apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
tommylommykins has quit [Quit: Lost terminal]
tommylommykins has joined #ruby
kiyote23 has quit [Remote host closed the connection]
crueber has quit [Quit: Leaving.]
toretore has quit [Quit: This computer has gone to sleep]
kiyote23 has joined #ruby
thumpba has quit [Ping timeout: 256 seconds]
hiyosi has joined #ruby
charliesome has quit [Quit: zzz]
djbkd has joined #ruby
ij has left #ruby ["WeeChat 1.0.1"]
mleung has quit [Quit: mleung]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
mleung has joined #ruby
djbkd has quit [Remote host closed the connection]
jlast_ has quit [Remote host closed the connection]
djbkd has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
<jamgood96> I just rolled back a deploy using capistrano. All worked well until I restarted the computer, now my Unicorn init script gives me an error `releases/20141216180731/Gemfile not found`. This only happens when in a rolled-back stack and the server is restarted
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cheerio]
triple_b has joined #ruby
tus has joined #ruby
<Igneous> Pardon me for being slightly off-topic, I just asked in the eventmachine chan, but that's a way smaller group of people. Has anyone ever run into this before? The parent module "ZServer" is getting an EventMachine-specific "send_data" method mixed in somehow, but it's not in child modules. The ZServer module also doesn't expose it as a method / instance_method / protected_method, and I can't call it using module_exec. Any ideas?
jxf has quit [Ping timeout: 240 seconds]
LouisRoR1 has joined #ruby
<Igneous> Here's a simplified example of the code I'm working with, http://dpaste.com/0M5PMGT
lmickh has quit [Remote host closed the connection]
lbrf has joined #ruby
<siaw> i have a very general question
<siaw> the creator of Snapchat refused $4billion from Google
<siaw> now, this is what i don’t get
tokik has joined #ruby
<siaw> why would Google offer $4billion if they could create something SIMILAR, after all it’s code
<siaw> ??
charliesome has joined #ruby
mroach has joined #ruby
<mozzarella> it's not about the code, it's about the userbase
<siaw> why can’t they build their own “snapchat
jamgood9_ has joined #ruby
mengu has quit []
dfinninger has quit [Remote host closed the connection]
<mozzarella> because you can make something similar doesn't mean it's going to be as popular
<siaw> mozzarella: yeah i get it. but Google for one has BIG userbase on other products, if they built their OWN snapchat they could easily find people to use their version of snapchat?
<jamgood9_> siaw: because they want their userbase
<mozzarella> think Google+ vs facebook
<mozzarella> no
<mozzarella> and it's going to be the same userbase anyway
<mozzarella> users they already have
<siaw> mozzarella: i see
LouisRoR has quit [Ping timeout: 264 seconds]
<siaw> but did the creators of snapchat have to do any special thing to protect intelectuall property etc?
chipotle has joined #ruby
mikecmpbll has quit [Quit: ciao.]
lbrf has quit [Ping timeout: 240 seconds]
<siaw> i’m asking this cause considering i create something, some stupid app, just like that and put it on the app store or google play. how do i get to protect the idea?
jamgood96 has quit [Ping timeout: 240 seconds]
kiyote23 has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
<wallerdev> copycats will always exist, you have to keep innovating to stay ahead
<siaw> wallerdev: thanks :)
<wallerdev> if you launch a product like that and get the marketshare first, people wont want to use another system unless it has clear advantages since all their friends are on the first one already
<siaw> wallerdev: makes sense
<wallerdev> so its about trying to get as much marketshare as quickly as possible for a lot of "social" products
<wallerdev> helps to have good investors :p
<siaw> wallerdev: and what will be the role of the investors?
kiyote23 has joined #ruby
<siaw> let’s take Flappy bird for example
<wallerdev> give you money so you can spend it on getting more users
<wallerdev> marketing
<siaw> he didn’t have any investor i believe but his product was extremely popular
djbkd has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
<wallerdev> well thats just luck then, cant really count on that
baweaver has quit [Remote host closed the connection]
<wallerdev> tons of people put things on the app store that go nowhere
<siaw> so it all comes down to marketing a good product
mozzarella has quit [Quit: WeeChat 1.0.1]
<wallerdev> yup
<wallerdev> for social products especially
lzx has joined #ruby
kiyote23_ has joined #ruby
<siaw> ok
kiyote23 has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
jamgood9_ has quit [Quit: Leaving...]
jamgood96 has joined #ruby
MartynKeigher has joined #ruby
elaptics is now known as elaptics`away
econerd4ever has quit [Remote host closed the connection]
lzx has quit [Ping timeout: 255 seconds]
econerd4ever has joined #ruby
yfeldblum has joined #ruby
Photism has quit [Quit: Leaving]
jamgood96 has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
stunder has quit [Quit: Screw you guys I'm going home]
jamgood96 has joined #ruby
Musashi007 has joined #ruby
jamgood96 has quit [Client Quit]
oo_ has joined #ruby
DLSteve has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
aarkerio has quit [Quit: Verlassend]
conniemj has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 258 seconds]
rudisimo has quit [Remote host closed the connection]
LouisRoR1 has quit [Ping timeout: 245 seconds]
procat has joined #ruby
nfk has quit [Quit: yawn]
mattmcclure has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
mroach has quit [Quit: mroach]
conniemj has quit [Ping timeout: 250 seconds]
Neomex has quit [Read error: Connection reset by peer]
behrz has quit [Quit: Leaving]
Soliah has quit [Quit: Soliah]
pietr0_ has quit [Quit: pietr0_]
econerd4ever has joined #ruby
tier has joined #ruby
procat has quit [Ping timeout: 264 seconds]
DadoCe has joined #ruby
behrz has joined #ruby
arescorpio has joined #ruby
oo_ has joined #ruby
behrz has quit [Client Quit]
behrz has joined #ruby
n_blownapart has joined #ruby
djbkd has joined #ruby
<n_blownapart> hi here both if statements are true but the else statement still returns "zilch". I tried closing the second if statement on line 23 to no avail. how do I place the else statement? thanks http://pastie.org/9789188
arescorpio has quit [Read error: Connection reset by peer]
xymbol has joined #ruby
baweaver has quit [Remote host closed the connection]
oo_ has quit [Quit: Leaving...]
siaw has left #ruby [#ruby]
<wallerdev> um
<wallerdev> how can both if statements be true
<wallerdev> one checks if k = 1
pzzn has quit [Quit: pzzn]
<wallerdev> the other checks if k = 5
<wallerdev> they cant both be true
<wallerdev> anyway you probably want to use "elsif"
zorak_ has joined #ruby
<wallerdev> if k == 1; do this; elsif k == 5; do that; else; do something else; end
dideler has left #ruby ["undefined"]
zorak8 has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
behrz has quit [Remote host closed the connection]
behrz has joined #ruby
<n_blownapart> wallerdev: sorry I thought the the k or k/v is a 1 and then a 5. (line 23 is a dice toss of 4 ones and 1 five)
<n_blownapart> k of* k/v
VBlizzard is now known as blizzy
djbkd has quit [Remote host closed the connection]
baweaver has joined #ruby
pika_pika has joined #ruby
xymbol has quit [Ping timeout: 272 seconds]
jeff-ooh has quit [Remote host closed the connection]
zorak8 has joined #ruby
<n_blownapart> wallerdev group_by returns a hash on line 4 that looks like this: {1 => 4, 5 => 1}
<n_blownapart> is that correct?
zorak_ has quit [Read error: Connection reset by peer]
shuber_ has quit [Remote host closed the connection]
shuber_ has joined #ruby
cantonic has joined #ruby
<n_blownapart> the score (accum) should be 1050, which is what I get, but the zilch is returned
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
mozzarella has joined #ruby
djbkd has joined #ruby
rpag has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
shuber_ has quit [Remote host closed the connection]
Apocalypse has joined #ruby
adriancb has joined #ruby
shuber_ has joined #ruby
yfeldblum has joined #ruby
conniemj has joined #ruby
DadoCe has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 245 seconds]
byprdct has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
<Igneous> So, rubocop/style question
shuber_ has quit [Remote host closed the connection]
Menorah has joined #ruby
asteros has quit [Quit: asteros]
sailias has joined #ruby
asteros has joined #ruby
<Igneous> I have an if condition that, if true, makes two method calls. Rubocop is telling me to use guards instead of wrapping those calls in a conditional. Do I have to individually guard each call? Or is there a better way, syntactically, of doing that
apeiros_ has quit [Remote host closed the connection]
asteros has quit [Client Quit]
apeiros_ has joined #ruby
<jhass> sounds like a stupid suggestion
<jhass> quite a few of rubocops defaults are quite stupid from what I've heard
asteros has joined #ruby
<n_blownapart> << speaking of stupid
<wallerdev> yeah i wouldnt bother
DadoCe has joined #ruby
marr has quit [Ping timeout: 240 seconds]
<wallerdev> programming is an art form, cant be controlled by machines
cantonic has quit [Quit: cantonic]
patrick99e99 has quit [Ping timeout: 272 seconds]
<Igneous> That's what they're talking about I guess.. I suppose I could do that
_ixti_ has quit [Ping timeout: 250 seconds]
<n_blownapart> jhass: I got the dice game to work...but I still get "zilch" returned here : http://pastie.org/9789188 if you care to look..
<jhass> sure you get
<wallerdev> im not a fan of guards like that
<jhass> 4 of your items you loop over are not k == 5
baweaver has quit [Remote host closed the connection]
<jhass> so you get zilch 4 times
<shevy> jhass do you use another programming language aside from ruby on a (let's say) weekly base?
<wallerdev> you end up adding stuff to the bottom of the method to do afterwards and realize it doesnt happen because it bailed early or something
<wallerdev> and basically means you have to read methods all the way through before ever changing anything
<jhass> shevy: I don't program much atm
<pipework> jhass: aww, wry naught?
<mungojel1y> wallerdev: i found an answer to that question btw, i went to the minimagick source and found that there's an Image.read that did what i wanted yay :D
<jhass> bachelor thesis ;)
<wallerdev> nice :D
<pipework> jhass: Ooh cool.
<pipework> gonna Phd?
<jhass> nah
DadoCe has quit [Ping timeout: 245 seconds]
<jhass> tired of learning for the moment, plan to do some working first
tkuchiki has joined #ruby
<n_blownapart> jhass: if I close the statement if k == 5 ; count << (50 * v.size); end , I get an error. where do I place the else statement. I thought I attempted every possible place.
dfinninger has joined #ruby
<jhass> "I get an error" -> "then fix it"
<n_blownapart> no capiche
<jhass> I can imagine
<n_blownapart> believe it
mary5030 has joined #ruby
<jhass> quality of queston == quality of answer
* zenspider laughs
<zenspider> very well put
<n_blownapart> to be or not to be
shuber_ has joined #ruby
renderful has joined #ruby
<sevenseacat> :D
<n_blownapart> uh oh the aussie
byprdct has quit [Read error: Connection reset by peer]
<sevenseacat> dun dun dun
<wallerdev> n_blownapart: http://pastie.org/9789222
<sevenseacat> good morning
<wallerdev> thats where you could put an else
hamakn has joined #ruby
<wallerdev> to help
<jhass> n_blownapart: btw why's your indentation all messed up again?
<wallerdev> mines messed up because i didnt feel like formatting my paste lol
<shevy> admit it
<shevy> you are a dirty boy wallerdev
<n_blownapart> jhass: I live on a faultline
<wallerdev> lol
<wallerdev> thats why i hate python
<wallerdev> i dont format any of my code
<shevy> hehe
<wallerdev> just copy paste and leave it however it ends up
dfinninger has quit [Ping timeout: 264 seconds]
<shevy> I do format but I think a parser should be clever enough to ignore mandatorily forcing human beings to have to indent, else refuse it altogether
<n_blownapart> I am ignorant not lazy.
<shevy> I am both
agjacome has quit [Quit: leaving]
<wallerdev> parser can format it for you
<shevy> not in python!
<n_blownapart> working on it. thanks !
<wallerdev> yeah thats why python sucks
fabrice31 has joined #ruby
<wallerdev> in my editor i can press a button to format things for me
<shevy> what got to me in python was that I also have to use :
<shevy> if foo():
<wallerdev> python users have to worry about formatting things correctly by themselves lol
mary5030 has quit [Ping timeout: 258 seconds]
pika_pika has quit [Ping timeout: 258 seconds]
<shevy> return True
tier has quit [Remote host closed the connection]
<zenspider> that's _one_ reason why python sucks
j2p2 has joined #ruby
<shevy> wallerdev nimrod also uses indent
DadoCe has joined #ruby
<wallerdev> also because its based on indentation
renderful has quit [Ping timeout: 272 seconds]
<wallerdev> you cant write empty if statements
_ixti_ has joined #ruby
<wallerdev> you have to put like "pass" i think is the keyword to do nothing
<shevy> ah seems as if they already renamed the language to nim now http://nim-lang.org/
ghostmoth has quit [Quit: ghostmoth]
socash has quit [Ping timeout: 264 seconds]
<zenspider> distinguishing between statements and expressions. lambdas only allow expressions. etc.
djbkd has quit [Remote host closed the connection]
<shevy> wallerdev sounds like casino royale... I pass this turn, my cards suck
<wallerdev> i just watched that movie last weekend :)
socash has joined #ruby
djbkd has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
mikepack has quit []
<n_blownapart> wallerdev: thanks I got bad info from a c.s. student earlier.
<wallerdev> dont trust c.s. students
<wallerdev> no one knows what theyre doing haha
<n_blownapart> he was cool considering he claimed not to know ruby...
fabrice31 has quit [Ping timeout: 265 seconds]
<wallerdev> well maybe you two will become best friends
shuber_ has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
mroach has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
mleung has quit [Quit: mleung]
cantonic has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
wookiehangover has quit [Quit: i'm out]
Stalkr_ has quit [Quit: Leaving...]
<n_blownapart> wallerdev: are you saying else if and elsif are two differing animals?
<wallerdev> "else if" isnt a thing
<jhass> in ruby
ramfjord has joined #ruby
<jhass> in other languages it's called else if
<n_blownapart> but the two if statements require 'else' to keep them separated? why can't you close each if statement with an end statement and move on?
<pipework> Why not just use a case?
<n_blownapart> that I think I can do !
<pipework> Or are they not conditionally swapping on the same origin object?
roolo has joined #ruby
<n_blownapart> pipework: what do you mean?
<pipework> >> case 'hi'; when ->(str){str.include?('o')} then 'ooo'; when ->(str){str.include?('i')} then 'iii'; end
<eval-in__> pipework => "iii" (https://eval.in/236414)
<n_blownapart> thanks pipework do those eval.in pastes have a lifespan ?
<pipework> n_blownapart: I don't know.
<wallerdev> no
<n_blownapart> good thanks.
<pipework> You can always make use of that fantastic little-known feature called your system clipboard.
_JokerDoom has joined #ruby
<n_blownapart> pipework: I understood the case / when scenario, but I didn't get the comment 'conditionally swapping on the same object' very well.
asteros_ has joined #ruby
zorak8 has quit [Ping timeout: 264 seconds]
<pipework> n_blownapart: I passed in a single object to the case.
jpstokes has quit [Remote host closed the connection]
<pipework> If your two conditionals are completely different, like they don't relate at all to the same object in the condition, then a case probably ain't what you want.
roolo has quit [Ping timeout: 258 seconds]
<wallerdev> i never use case
<wallerdev> if 4 lyfe
<pipework> lul.
asteros has quit [Ping timeout: 245 seconds]
asteros_ is now known as asteros
JokerDoom has quit [Ping timeout: 264 seconds]
robustus has quit [Ping timeout: 255 seconds]
<n_blownapart> peace out thanks a lot.
Xiti` has joined #ruby
mroach has joined #ruby
blizzy has quit [Ping timeout: 240 seconds]
bmichelsen has joined #ruby
Soliah has joined #ruby
_gautam_ has quit [Quit: Be back later ...]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
levity_island has joined #ruby
j2p2 has quit [Ping timeout: 240 seconds]
<wallerdev> i am justified
<pipework> Not entirely.
xymbol has joined #ruby
asteros has quit [Quit: asteros]
<pipework> Look at her last number in that benchmark.
<pipework> case was faster at matching the last case.
Xiti has quit [Ping timeout: 264 seconds]
<pipework> Actually, sorry faster at matching first case.
<pipework> Though I bet you could match it or better if with a nested if.
RandyT has quit [Read error: Connection reset by peer]
<pipework> and some returns.
josephndenton has joined #ruby
RandyT has joined #ruby
wookiehangover has joined #ruby
jenrzzz has joined #ruby
n_blownapart has quit [Remote host closed the connection]
xymbol has quit [Ping timeout: 250 seconds]
Takle_ has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
<wallerdev> i dont care about speed of if statements
econerd4ever has joined #ruby
<wallerdev> thats like the least of my worries in life
<wallerdev> lol
giuseppesolinas has joined #ruby
<wallerdev> ill just write it in C if i need that calculation or w/e to be fast
zorak8 has joined #ruby
cantonic has quit [Quit: cantonic]
deric_skibotn has quit [Ping timeout: 250 seconds]
olivier_bK has joined #ruby
pen has joined #ruby
crdpink2 has quit [Quit: q term]
<jhass> crystal!
<jhass> write it in crystal, as a ruby class
econerd4ever has quit [Ping timeout: 258 seconds]
patrick99e99 has joined #ruby
j2p2 has joined #ruby
bricker`work has quit [Ping timeout: 250 seconds]
tokik has quit [Quit: leaving]
tokik has joined #ruby
lbrf has joined #ruby
cantonic has joined #ruby
asteros has joined #ruby
claptor has joined #ruby
lzx has joined #ruby
mikepack has joined #ruby
asteros has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
lzx has quit [Ping timeout: 245 seconds]
asteros has joined #ruby
_gautam_ has joined #ruby
it0a has joined #ruby
<pipework> wallerdev: Lul.
<pipework> The overhead of writing something in C to make an if conditional faster.
dorei has quit []
<pipework> IDK if you know this, but I'm pretty sure if is implement in C in ruby.
<wallerdev> im saying id implement whatever the algorithm that used the if statement was, not just the if statement itself lol
<wallerdev> but i dont think if statements are ever going to lead to performance issues
Megtastique has quit []
olivier_bK has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
mloveless has quit [Remote host closed the connection]
amclain has joined #ruby
<pipework> That sounds like you're not optimizing the condition then.
<wallerdev> lol shutup
<pipework> wallerdev: I think if conditions are pretty slow.
<pipework> CPU branching instructions and all.
goodenough has joined #ruby
dfinninger has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
claptor has quit [Quit: this channel is bakas]
j2p2 has quit [Ping timeout: 264 seconds]
<pipework> If you really wanted speed, you'd help GraalVM out.
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thomasfedb_ has quit [Quit: ZNC - http://znc.sourceforge.net]
tejas-manohar has quit [Quit: Page closed]
mikepack has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<pipework> Yeah a chum and I were talking about that, she knows a lot about processors.
hamakn has joined #ruby
kl has quit [Ping timeout: 240 seconds]
VictorBjelkholm has quit [Quit: Leaving]
procat has joined #ruby
JokerDoom has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
blahwoop has joined #ruby
<havenwood> yay Graal!
<blahwoop> hi all. whats the best way to titleize a sentence? i know rails has a method and ruby doesn't
<pipework> blahwoop: active_support
<wallerdev> yeah
uber_hulk has joined #ruby
<wallerdev> also think about the weird cases
<blahwoop> for ruby
uber_hulk has left #ruby [#ruby]
<wallerdev> like other languages
<pipework> wallerdev: That's what the article havenwood linked did.
<pipework> Covered weird cases.
<wallerdev> i was talking about tileize
<wallerdev> lol
<pipework> Oh.
Tamae has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
_JokerDoom has quit [Ping timeout: 244 seconds]
braincra- has joined #ruby
bashusr has quit [Ping timeout: 258 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
procat has quit [Ping timeout: 250 seconds]
eka has joined #ruby
<waxjar> that was a nice article havenwood
bashusr has joined #ruby
braincrash has quit [Ping timeout: 272 seconds]
bears_ has joined #ruby
mjmac has quit [Ping timeout: 258 seconds]
mgberlin_ has quit [Remote host closed the connection]
rshetty has joined #ruby
rockdon has quit [Ping timeout: 258 seconds]
krz has joined #ruby
mgberlin has joined #ruby
gokul__ has quit [Ping timeout: 264 seconds]
entrenador has joined #ruby
marcules has quit [Ping timeout: 246 seconds]
dseitz has joined #ruby
_2_Sierra has joined #ruby
yfeldblum has joined #ruby
<_2_Sierra> hi
_2_Sierra has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
kl has joined #ruby
havenwood has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 258 seconds]
okic_ has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
okic has joined #ruby
chu has joined #ruby
Megtastique has joined #ruby
kl has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
mjmac has joined #ruby
Megtastique has quit [Client Quit]
rockdon has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has joined #ruby
havenwood has joined #ruby
xymbol has joined #ruby
mjmac has quit [Ping timeout: 258 seconds]
rockdon has quit [Ping timeout: 258 seconds]
mary5030 has joined #ruby
apoorvparijat has joined #ruby
BadQuanta has joined #ruby
ghostmoth has joined #ruby
freerobby has joined #ruby
Menorah has quit [Quit: This computer has gone to sleep]
Musashi007 has quit [Quit: Musashi007]
sailias has quit [Quit: Leaving.]
xymbol has quit [Ping timeout: 256 seconds]
rockdon has joined #ruby
asteros has quit [Quit: asteros]
patrick99e99 has quit [Ping timeout: 240 seconds]
gaboesquivel has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
levity_island has quit [Quit: levity_island]
djbkd has quit [Read error: Connection reset by peer]
mjmac has joined #ruby
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has quit [Client Quit]
jfitzgerald has joined #ruby
wallerdev has quit [Quit: wallerdev]
rshetty has quit [Remote host closed the connection]
tyll_ has joined #ruby
Musashi007 has joined #ruby
dc_ has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synergyz_ has joined #ruby
jaequery has joined #ruby
sarmiena_ has joined #ruby
jaequery has quit [Max SendQ exceeded]
mattmcclure has quit [Quit: Connection closed for inactivity]
<shevy> havenwood is the channel wise
jaequery has joined #ruby
tyll has quit [Ping timeout: 265 seconds]
synergyz has quit [Ping timeout: 244 seconds]
dideler has joined #ruby
blahwoop has quit [Remote host closed the connection]
DadoCe has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 272 seconds]
zorak8 has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
BadQuanta has quit [Ping timeout: 250 seconds]
kuda has joined #ruby
josephndenton has joined #ruby
apoorvparijat has quit [Remote host closed the connection]
lemur has joined #ruby
Cyberheb has joined #ruby
Axy is now known as Mia
fabrice31 has quit [Ping timeout: 255 seconds]
josephndenton has quit [Ping timeout: 244 seconds]
lbrf has quit [Quit: Lingo: www.lingoirc.com]
levity_island has joined #ruby
AmirolAhmad has joined #ruby
econerd4ever has joined #ruby
entrenador has quit [Ping timeout: 250 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
econerd4ever has quit [Remote host closed the connection]
radic has quit [Ping timeout: 245 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
radic has joined #ruby
havenwood has quit [Remote host closed the connection]
bmichelsen has quit [Quit: ZZZzzz…]
cantonic has quit [Quit: cantonic]
tus has quit []
djbkd has joined #ruby
Musashi007 has quit [Quit: Musashi007]
DadoCe has joined #ruby
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
cesarstafe has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
jaequery has joined #ruby
reset has quit [Quit: Leaving...]
ajaiswal has joined #ruby
lampd1 has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
LouisRoR has joined #ruby
levity_island has quit [Quit: levity_island]
a346 has joined #ruby
a346 has quit [Client Quit]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
reinaldob has joined #ruby
LouisRoR has quit [Ping timeout: 256 seconds]
retornam has quit [Ping timeout: 256 seconds]
djbkd has quit [Quit: My people need me...]
cantonic has joined #ruby
bmn has quit [Ping timeout: 265 seconds]
nevans has quit [Ping timeout: 240 seconds]
retornam has joined #ruby
RTG` has quit [Ping timeout: 272 seconds]
reinaldob has quit [Ping timeout: 250 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
sailias has joined #ruby
bmn has joined #ruby
cesarstafe has quit [Ping timeout: 244 seconds]
claptor has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
caiges has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Excess Flood]
RTG` has joined #ruby
caiges has quit [Max SendQ exceeded]
jack_rabbit has joined #ruby
asteros has joined #ruby
freerobby has quit [Quit: Leaving.]
braincra- has quit [Ping timeout: 258 seconds]
robbyoconnor has quit [Ping timeout: 244 seconds]
dc_ has joined #ruby
claptor has quit [Remote host closed the connection]
havenwood has joined #ruby
apoorvpa_ has joined #ruby
claptor has joined #ruby
davedev24_ has joined #ruby
bmichelsen has joined #ruby
_gautam_ has quit [Quit: Lingo: www.lingoirc.com]
braincrash has joined #ruby
davedev2_ has quit [Ping timeout: 264 seconds]
mgberlin_ has joined #ruby
xymbol has joined #ruby
oo_ has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
lzx has joined #ruby
mgberlin has quit [Ping timeout: 240 seconds]
apoorvpa_ has quit [Remote host closed the connection]
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kyb3r_ has joined #ruby
oo_ has joined #ruby
xymbol has quit [Ping timeout: 264 seconds]
dain_ has quit [Quit: dain_]
yfeldblum has quit [Ping timeout: 258 seconds]
lzx has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
CrazyM4n has quit [Quit: ("sleep for finals")]
braincrash has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
mgberlin_ has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
braincrash has joined #ruby
braincrash has quit [Client Quit]
cantonic has quit [Quit: cantonic]
uber_hulk has joined #ruby
uber_hulk has left #ruby [#ruby]
dfinninger has joined #ruby
nevans has joined #ruby
Channel6 has quit [Quit: Leaving]
kapil__ has joined #ruby
braincrash has joined #ruby
mgberlin has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 250 seconds]
anaeem1_ has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
anaeem1 has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
sparr has quit [Changing host]
sparr has joined #ruby
josephndenton has joined #ruby
rshetty has joined #ruby
procat has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
Musashi007 has joined #ruby
rshetty has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
kiyote23_ has quit []
braincrash has quit [Ping timeout: 245 seconds]
<havenwood> Submit bugs now, Christmas is coming!: https://www.ruby-lang.org/en/news/2014/12/18/ruby-2-2-0-rc1-released/
kuda has quit [Quit: Textual IRC Client: www.textualapp.com]
braincrash has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
kiyote23 has joined #ruby
procat has quit [Ping timeout: 265 seconds]
nevans has quit [Ping timeout: 250 seconds]
rshetty has quit [Remote host closed the connection]
bears_ has quit [Remote host closed the connection]
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
DadoCe has quit [Remote host closed the connection]
siwica has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
rshetty has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braincrash has quit [Ping timeout: 272 seconds]
hobodave has joined #ruby
hobodave has quit [Changing host]
hobodave has joined #ruby
x1337807x has joined #ruby
ghostmoth has joined #ruby
braincrash has joined #ruby
Megtastique has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
oo_ has quit [Ping timeout: 258 seconds]
jaequery has joined #ruby
gokul has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
graydot has joined #ruby
n80 has quit [Quit: n80]
Musashi007 has quit [Quit: Musashi007]
graydot has quit [Client Quit]
rshetty has joined #ruby
Kabaka has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
echooo has joined #ruby
Takle has joined #ruby
mrdtt has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
mikepack has quit [Remote host closed the connection]
badhatter has joined #ruby
St_Marx has joined #ruby
<badhatter> Lets say I am creating a class and it has a subclass that just so happens to be one of the likely strings bound to a variable that the class initializes with, is there a way to keep track of the second parameter
Takle has quit [Ping timeout: 258 seconds]
havenwood has quit [Remote host closed the connection]
<badhatter> the type argument of the product class is always going to be a subclass that is instantatiated when a Product.new is instaniated
mgberlin has joined #ruby
chinmay_dd has joined #ruby
jaequery has joined #ruby
oo_ has joined #ruby
nevans has joined #ruby
digdeep has joined #ruby
digdeep has quit [Changing host]
digdeep has joined #ruby
Areessell has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
xymbol has joined #ruby
patrick99e99 has joined #ruby
jaequery_ has joined #ruby
jaequery has quit [Ping timeout: 250 seconds]
kiyote23 has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 255 seconds]
xymbol has quit [Ping timeout: 250 seconds]
rshetty has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 250 seconds]
mgberlin has quit [Read error: Connection reset by peer]
zarubin has quit [Ping timeout: 258 seconds]
<agent_white> Evenin
zarubin has joined #ruby
digdeep has quit [Remote host closed the connection]
fabrice31 has joined #ruby
psyprus has quit [Remote host closed the connection]
psyprus has joined #ruby
testcore has quit [Ping timeout: 250 seconds]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mgberlin has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
mgberlin has quit [Remote host closed the connection]
Morkel has joined #ruby
jaequery_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noop has joined #ruby
lzx has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
commmmodo has quit [Quit: commmmodo]
siwica has quit [Remote host closed the connection]
it0a has quit [Quit: WeeChat 1.0.1]
siwica has joined #ruby
karmatr0n has quit [Remote host closed the connection]
rshetty has joined #ruby
Musashi007 has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Photism has joined #ruby
MartynKeigher has quit [Read error: Connection reset by peer]
engineered_acade has joined #ruby
lzx has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
josephndenton has joined #ruby
ycodr has joined #ruby
josephndenton has quit [Ping timeout: 272 seconds]
noop has quit [Ping timeout: 264 seconds]
chipotle_ has joined #ruby
chipotle has quit [Ping timeout: 244 seconds]
kenneth has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
commmmodo has joined #ruby
lzx has joined #ruby
frog|OFF is now known as green-big-frog
icarus has quit [Remote host closed the connection]
lzx has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
hmsimha has quit [Ping timeout: 252 seconds]
ARCADIVS has joined #ruby
<green-big-frog> good morning
braincrash has quit [Ping timeout: 256 seconds]
roolo has joined #ruby
Soliah has quit [Quit: Soliah]
<relic> Bah.
braincrash has joined #ruby
larissa has quit [Quit: Leaving]
robustus has quit [Ping timeout: 250 seconds]
roolo has quit [Ping timeout: 264 seconds]
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
commmmodo has quit [Quit: commmmodo]
tobago has joined #ruby
Xiti` is now known as Xiti
jusmyth has joined #ruby
arup_r has joined #ruby
xymbol has joined #ruby
<pontiki> g'd evening
pwnz0r has joined #ruby
<relic> Meh.
tyfighter has quit [Quit: tyfighter]
<godd2> relic, you just won the lottery!
chipotle_ has quit [Max SendQ exceeded]
<relic> Wow, me!?
mrdtt has quit [Quit: Textual IRC Client: www.textualapp.com]
<relic> What are the odds of winning the lottery when you don't buy a ticket?
AlexRussia has quit [Ping timeout: 255 seconds]
lzx has joined #ruby
xymbol has quit [Ping timeout: 244 seconds]
<pontiki> about the same, maybe better, than if you do
* agent_white lives on a farm, read the above as "when you don't buy a chicken"
pwnz0r_ has joined #ruby
pwnz0r has quit [Ping timeout: 258 seconds]
chipotle has joined #ruby
tyfighter has joined #ruby
<relic> Peculiar.
nateberkopec has quit [Quit: Leaving...]
gauravagarwalr has joined #ruby
Menorah has joined #ruby
monzie has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
procat has joined #ruby
procat has quit [Ping timeout: 258 seconds]
Stoge88 has joined #ruby
Stoge88 has quit [Client Quit]
devoldmx has joined #ruby
<agent_white> I agree - if you don't buy a chicken you're also missing out on eggs.
Stoge88 has joined #ruby
green-big-frog is now known as frog|OFF
ghostmoth has quit [Quit: ghostmoth]
devoldmx_ has quit [Ping timeout: 250 seconds]
oleo has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
thumpba has joined #ruby
lemur has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
lemur has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
tyfighter has quit [Quit: <3]
robustus|Off has joined #ruby
gauravagarwalr has quit [Read error: Connection reset by peer]
robustus|Off is now known as robustus
sarmiena_ has joined #ruby
ballpointcarrot has joined #ruby
thumpba has quit [Remote host closed the connection]
sigurding has joined #ruby
Megtastique has quit []
sinequanon has joined #ruby
lzx has quit [Remote host closed the connection]
sevenseacat has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
psyprus has joined #ruby
conniemj has quit [Quit: (null)]
Hobogrammer has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
almostworking has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
t3h_j4n170r has quit [Ping timeout: 245 seconds]
o010n9 has quit [Ping timeout: 244 seconds]
NightMonkey has quit [Ping timeout: 244 seconds]
banister has joined #ruby
t3h_j4n170r has joined #ruby
NightMonkey has joined #ruby
o010n9 has joined #ruby
dfinninger has joined #ruby
sevenseacat has joined #ruby
Mia has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
chipotle has quit [Max SendQ exceeded]
apeiros_ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
last_staff has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
dfinninger has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
jaequery has joined #ruby
fabrice31 has joined #ruby
arietis has joined #ruby
patrick99e99 has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
xymbol has joined #ruby
almostworking has left #ruby ["Leaving"]
Cyberheb has quit [Ping timeout: 244 seconds]
Soda has joined #ruby
xymbol has quit [Ping timeout: 250 seconds]
patrick99e99 has quit [Ping timeout: 258 seconds]
sinequanon has quit [Remote host closed the connection]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros_ has quit [Remote host closed the connection]
Crazy_Atheist has joined #ruby
apeiros_ has joined #ruby
Takle has joined #ruby
siwica has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
sinanislekdemir has joined #ruby
josephndenton has joined #ruby
apeiros_ has quit [Ping timeout: 256 seconds]
Takle has quit [Ping timeout: 258 seconds]
siwica has joined #ruby
arup_r has quit [Remote host closed the connection]
sinequanon has joined #ruby
perturbation has joined #ruby
arup_r has joined #ruby
josephndenton has quit [Ping timeout: 250 seconds]
aganov has joined #ruby
noop has joined #ruby
phutchins has quit [Quit: Lost terminal]
mloveless has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
kapil__ has quit [Quit: Connection closed for inactivity]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
raldu has quit [Ping timeout: 244 seconds]
pwnz0r_ has quit [Remote host closed the connection]
sandelius has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has joined #ruby
raldu has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
<agent_white> Is there any way to squish .map { |e| e.pack 'c*' } into inject() ?
robbyoconnor has quit [Quit: Konversation terminated!]
<certainty> in case anyone here is using projectile-rails and happens to use mercurial rather than git. You have to customize projectile-hg-command to include the full path (-f). Otherwise you'll see the wrong list of files and projectile is unable to open them
<certainty> agent_white: you have an array of array?
<pipework> certainty: Probably not the best place for a protip, since IRC tends to disappear.
<godd2> agent_white .inject([]) {|acc, e| acc << e.pack('c*')} ?
<pipework> each_with_object tends to be faster.
ballpointcarrot has quit [Ping timeout: 252 seconds]
<certainty> .flat_map
<agent_white> godd2: Ahhh hmm
<certainty> and go with it
<agent_white> Basically, trying to just simplify this
<agent_white> "ruby".bytes.permutation.find_all.entries.map { |e| e.pack 'c*' }
<pipework> YEah, I bet flat_map would be best.
<agent_white> Just to see if it's possibly
<certainty> if you seek one array. If all you do is emulate map, there is no point
<agent_white> possible*
AndroUser466 has joined #ruby
bal has joined #ruby
<agent_white> pipework: Nice!
lzx has joined #ruby
renderful has joined #ruby
<godd2> "ruby".chars.to_a.permutation.map {|e| e.join}
<godd2> >> "ruby".chars.permutation.map {|e| e.join}
<eval-in__> godd2 => ["ruby", "ruyb", "rbuy", "rbyu", "ryub", "rybu", "urby", "uryb", "ubry", "ubyr", "uyrb", "uybr", "bruy", "bryu", "bury", "buyr", "byru", "byur", "yrub", "yrbu", "yurb", "yubr", "ybru", "ybur"] (https://eval.in/236471)
<godd2> on 1.9.3 it wont let me drop the to_a
pjakobs has joined #ruby
<agent_white> wat
<agent_white> godd2: NICE
rshetty has joined #ruby
jenrzzz has joined #ruby
lzx has quit [Client Quit]
<godd2> "ruby".chars.permutation.map(&:join) for ruby golf
lzx has joined #ruby
<certainty> incidently we had a similar task yesterday. That was to find all permutations of orderd pairs in the domain -2 .. 2
<godd2> something, something, mandelbrot set
<pipework> godd2: Symbol#to_proc is faster
parabolize has joined #ruby
apeiros_ has joined #ruby
<agent_white> godd2: Badass :P
renderful has quit [Ping timeout: 258 seconds]
superrorc_ has joined #ruby
<superrorc_> hi there!
<certainty> o/
mleung has joined #ruby
<godd2> pipework doesn't the & call to_proc on it? or are you saying that if I pass :join.to_proc that its faster than if I let ruby do it?
<certainty> i think he meant the #to_proc version is preferrable (the one you gave)
<godd2> ah ok
<pipework> godd2: I don't know about whether calling #to_proc explicitly is faster, but &:join is faster than the block.
<agent_white> In that `(&:method)` syntax, can you pass a variable method? Or block param, etc? (you know whatteye mean) :P
<pipework> agent_white: Not in the version available in Ruby, no.
jfitzgerald85 has joined #ruby
<agent_white> pipework: I remember that someone was saying that yesterday...
<agent_white> Ahhh alrighty, good deal!
rshetty has quit [Ping timeout: 240 seconds]
<superrorc_> a have array with ipadds , if i print it i got this - ["192.168.4.115", "192.168.4.120",......] . and how can i print only ipaddrs, without " and , ?
<certainty> agent_white: i don't know what you mean
rshetty has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<certainty> superrorc_: puts ipadds.join(' ')
<agent_white> certainty: Ah nevermind, I got it :P
apoorvparijat has joined #ruby
<agent_white> Well pipework did :P
<certainty> alright
<pipework> certainty: No space needed.
<pipework> >> %w|lol wat now bruv are you sure|.join
<eval-in__> pipework => "lolwatnowbruvareyousure" (https://eval.in/236475)
surs has joined #ruby
<pipework> Oh wait, shit that's for split.
<superrorc_> certainty: ill try! thanks
<certainty> agent_white: i was asking because it was not clear to me wether you want to know if the symbol can be the value of a variable like x = :join; someting.map(&x) or if you wanted to pass arguments in the to_proc version
jfitzgerald has quit [Ping timeout: 244 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
jeff-ooh has joined #ruby
<superrorc_> certainty: great!!! thanks a lot!
<godd2> >> %%quotes are a racket%
<eval-in__> godd2 => "quotes are a racket" (https://eval.in/236476)
<certainty> agent_white: not that Method also implements to_proc. So you can map a method the same way. foo.map(&method(:something))
sinkensabe has joined #ruby
<agent_white> certainty: Forgive me, I am not good at explaining my needs. But pass args to the proc version is what I meant :)
<agent_white> Whoaaa
<pipework> %|so are confusing uses of percent syntax|
<pipework> >> %|so are confusing uses of percent syntax|
<eval-in__> pipework => "so are confusing uses of percent syntax" (https://eval.in/236477)
perturbation has quit [Quit: Leaving]
<godd2> >> %^making yoru own delimiter is fun^
<eval-in__> godd2 => "making yoru own delimiter is fun" (https://eval.in/236478)
<agent_white> certainty: s/not/note/ ?
<certainty> agent_white: alright, well then pipework answered it. There are solutions for this, probably the nicest so far using the callable interface. foo.map(&:some_thing.(*arguments))
<certainty> agent_white: yeah sorry. I meant note
<pipework> godd2: You can't choose just anything.
<pipework> >> %>hi there bruv>
<eval-in__> pipework => "hi there bruv" (https://eval.in/236479)
<agent_white> certainty: Aye he did! but thank you for clarifying. Never knew I could do that method/proc syntax.
<agent_white> That's crazy.
rshetty has quit [Ping timeout: 255 seconds]
<certainty> it's handy
<agent_white> Well... I never have implemented a method that takes in a block either, so this is crazymagicstuff to me.
Stoge88 has joined #ruby
<pipework> It's also not slow, so there's that.
<agent_white> Awesome :D
<certainty> you're missing all the fun agent_white
<agent_white> Ahhh
<pipework> agent_white: I hope you're holding your mind, because I'm about to blow it. Every method takes a block in ruby, even if it doesn't do anything with it.
<agent_white> certainty: So I'm told when I explain I write in ruby. "you write in ruby but don't use the things that make it ruby?!"
<certainty> for real?
<agent_white> pipework: But then... what if it doesn't do anything with it?
<agent_white> What happens if you send it a block?
<pipework> agent_white: Nothing about it.
<godd2> >> %~what can't it be?~
<eval-in__> godd2 => "what can't it be?" (https://eval.in/236480)
ajaiswal has quit [Quit: Leaving]
<agent_white> WAIT
timonv_ has joined #ruby
<pipework> agent_white: If the method doesn't do anything with the block, the block just never gets called.
<agent_white> Every method does?!
<pipework> EVERY METHOD!
<agent_white> pipework: I was too late to secure my skull seatbelt apparently.
Stoge88 has quit [Client Quit]
troulouliou_dev has joined #ruby
mleung has quit [Quit: mleung]
Fire-Dragon-DoL has joined #ruby
<certainty> godd2: an UTF-8 character for example
amclain has quit [Quit: Leaving]
Fire-Dragon-DoL has quit [Max SendQ exceeded]
<certainty> unicode rather (encoding doesn't matter)
<agent_white> What's the most general use for a method block then? To... "rinse" variables before computing them within the method?
<godd2> agent_white if you didn't already love Ruby, youll fall in love now
<godd2> certainty well yea it just takes the \ :(
<pipework> blocks are awesome because they aren't evaluated until you call them, you can change their scope, and all kinds of other things.
Fire-Dragon-DoL has joined #ruby
<godd2> >> %\00this wont work\ # :(
<eval-in__> godd2 => "00this wont work" (https://eval.in/236481)
<pipework> lol
<certainty> agent_white: they make behvavior first class
<agent_white> godd2: Hahah :D I still have been easing up to metaprogramming as well... if I haven't known of a use for method blks until this moment, I think it'll be awhile before I even understand how to metaprogramming stuffs.
<certainty> code as data and all that
<pipework> certainty: What does that even mean?
<pipework> Homoiconicity isn't something that ruby really has.
<certainty> it's not exactly homoiconic
<certainty> since you can not manipulate the code
<pipework> Evaling strings makes data code and code data if you want.
<certainty> but you can pass it around
<certainty> pipework: yeah but that's error prone
<pipework> It's not really data though.
<certainty> every function (not method) is data (potentially)
<agent_white> pipework: Hmmm... I'm writing down what you said on a sticky. I think it'll make sense soon. (I dunno why I would want to change the scope of the block)
<pipework> Blocks are exactly as error prone as eval, they're just not as dangerous.
<godd2> passing blocks off to somewhere else is really useful for wrappers though
<certainty> since you can unroll it into a lookup table
<pipework> certainty: s/function/method/
<certainty> and that table is data
timonv_ has quit [Remote host closed the connection]
<certainty> pipework: no only functions
<godd2> blocks make polymorphism a little easier
<pipework> certainty: Ruby has no functions.
<certainty> you can not encode side-effects in a table
<certainty> pipework: it has methods that act like functions
<pipework> certainty: All methods are member functions.
<pipework> All methods 'act like' functions.
<certainty> i just wanted to make clear that i was talking about method that are functions in the mathematical sense
<agent_white> methods != functions ?
<pipework> But they're methods on an object.
<certainty> yes
<agent_white> I thought they are just aliases for one another.. as well as coroutine.
<pipework> agent_white: Functions aren't methods, methods are functions that are member functions to an object.
<godd2> >> "".methods.length
<eval-in__> godd2 => 164 (https://eval.in/236482)
<godd2> >> "".functions.length
<eval-in__> godd2 => undefined method `functions' for "":String (NoMethodError) ... (https://eval.in/236483)
mleung has joined #ruby
<pipework> There's no such thing as a function in the ruby language.
<godd2> its settled. Ruby has no functions
<agent_white> So self.foo() is a method, bar() a function?
kapil__ has joined #ruby
<pipework> agent_white: Nope, they're all methods.
<pipework> bar() is a method on whatever self is.
<godd2> agent_white in ruby bar() would get called with an implicit receiver of self
<agent_white> Oh... "cause eveything is an object"
<godd2> >> self
<eval-in__> godd2 => main (https://eval.in/236484)
<agent_white> ? ;)
<certainty> the term function is not something that is bound to a PL. If you have something that you can apply to multiple values and that thing returns you a value. And it returns the same value if you apply the same arguments. then that thing is a function
<pipework> That's wrong.
roolo has joined #ruby
<certainty> no matter how it is implemented and called otherwise
mleung has quit [Client Quit]
<certainty> pipework: why?
<certainty> ok there are of course nullary functions
<certainty> which are constants
<pipework> Look up the difference between methods and functions.
<certainty> i'm talking about the math term
<pipework> This isn't math.
fabrice31 has joined #ruby
<godd2> A true function can be called without context. In Ruby there is always self
<certainty> that's whay i explicitly said (twice now) what i considere a function
<pipework> I guess I just don't care what you consider anything to be, I'm more concerned with what things actually are. :\
sinkensabe has quit [Remote host closed the connection]
<godd2> certainty of course, in math, a hash would qualify as a function :)
<certainty> godd2: yes
<godd2> but then so would an array
<agent_white> Hm. Then... is subroutine a function or a method?
<agent_white> Or neither?
<certainty> ok this causes more confusion than it shed light on things. I take everything back
* certainty calls the saved continuation
mikepack has joined #ruby
mleung has joined #ruby
<godd2> hey all
<certainty> :)
<godd2> hmmm
<godd2> pry + cc == timetravel...
<certainty> i don't remember how i started
<certainty> you don't need pry do you?
<certainty> cc == timetravel
<godd2> well sure, but pry can make it more fun
<certainty> of course
<agent_white> Hahah. Maybe I'll just call them "messages" instead.
<agent_white> ;P
roolo has quit [Ping timeout: 265 seconds]
<certainty> agent_white: that's a valid way to see them
<certainty> at least at runtime when the program is executed
techsethi_ has joined #ruby
<godd2> Structs + lambdas = functional programming in Ruby
<agent_white> Thank you certainty/godd2/pipework for your explanation though. I shall make use of this new ruby magic.
<pipework> agent_white: learn the difference between call and yield, you'll have some fun.
<certainty> godd2: what are the structs for? You can encode simple data-structures (cons cells) in pure lambdas of course
leo-unglaub has joined #ruby
devoldmx has quit [Remote host closed the connection]
<certainty> and with those cons-cells you can buld struct-like things
<certainty> build
<godd2> certainty Im talkin Ruby Structs
<agent_white> pipework: eee...
mikepack has quit [Ping timeout: 255 seconds]
* pipework has also done enough scheme and lisp to get the point but still doesn't care
<certainty> godd2: i thought so. Can you elaborate why they're needed? I can't follow :/
<agent_white> Never knew it existed in just ruby, thought that was a rails thing
* agent_white hides from his ignorance
<godd2> certainty they're not needed, just familiar
<certainty> godd2: alright. then i see your point
robbyoconnor has joined #ruby
mleung has quit [Quit: mleung]
<certainty> godd2: still not very funny FP. I'm pretty biased though and have a rather rigorous view on what denotes a good functional programming language
mbr_ is now known as mbr
<agent_white> Looks like I'll be tinkering with blocks yet... forgot about it split to proc/lambda until you said it godd2.
<godd2> certainty with lambdas and ||= you can get memoization and homoiconicity in one go
<agent_white> lawdy.
<certainty> godd2: i get the memoization. the homoiconicity i don't see. Help please :)
* pipework has to stop watching all the 'nope'.
SOLDIERz has joined #ruby
<agent_white> ruby is 24 kinds of crazy
codecop has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xymbol has joined #ruby
<pipework> Makes heinz look bland.
<agent_white> Hahahah
<godd2> certainty all that's required for homoiconicity is that a language's AST and its syntax be isomorphic.
kiyote23 has joined #ruby
<certainty> godd2: yeah
<pipework> I don't know if it's about AST. But I haven't read it in a while.
<pipework> I think it's specifically about providing facilities to treat code as data and data as code interchangeably.
<pipework> Oh nope, it does say specifically the AST.
kamilc__ has joined #ruby
<certainty> godd2: that's the thing i don't get. Ruby's AST doesn't look like ruby code. I bet i'm overlooking something
<godd2> ah, I didn't say it looked like it, I said it was isomorphic
pjakobs has left #ruby [#ruby]
xymbol has quit [Ping timeout: 256 seconds]
jeff-ooh has quit [Remote host closed the connection]
<certainty> godd2: i have to think about that. That's something that isn't immediatly clear to me
<certainty> is every AST restructurable into it's source representation?
kiyote23 has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
narph has joined #ruby
jfitzgerald85 has quit [Ping timeout: 256 seconds]
<godd2> in general? or in Ruby?
<certainty> is isomorphism required to be bijective?
<certainty> in ruby
<certainty> +an
terlar has quit [Quit: WeeChat 1.0.1]
Areessell has joined #ruby
kyb3r_ has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
_Andres has quit [Quit: jazz]
<certainty> my understanding of category theory is limited. I need to invest more time in that
sevenseacat has quit [Ping timeout: 272 seconds]
<godd2> I think every ast in ruby is able to be mapped to its source representation. excepting for trivial differences like optional parens and ignored whitespace
tlarevo has quit [Read error: Connection reset by peer]
<godd2> (after all, whitespace is ignored in clojure and its considered homoiconic)
Takle has quit [Ping timeout: 265 seconds]
<certainty> agreed
Takle has joined #ruby
bmichelsen has joined #ruby
tskogberg has quit [Ping timeout: 264 seconds]
Cache_Money has quit [Ping timeout: 256 seconds]
sigurding has quit [Quit: sigurding]
tlarevo has joined #ruby
lemur has quit [Read error: Connection reset by peer]
<godd2> also, if you're encapsulating with a lambda then you can replace the lambda with what it evaluates to (since the ||= enforces the result will be the same)
<godd2> so that's why I said it's homoiconic
StoneCypher has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
zenspider has quit [Ping timeout: 272 seconds]
<agent_white> Lawd. I have many -ations, -isms, and -icitys to learn.
<godd2> I guess I should've said that makes it referentially transparent
<pipework> godd2: Isn't any language where you can replace any expression with the value homoiconic then?
<godd2> not if what you replaced could have returned something different later
<godd2> consider def some_method; rand; end
<agent_white> Like... piglatin?!
<pipework> Isn't that the same with lambdas?
* agent_white trotts off to wikipedia
<pipework> You can evaluate them in one binding and then another, or evaluate in the same binding more than once.
<godd2> pipework in general yes, but my statement earlier was restricted to using ||=
alex88 has joined #ruby
<pipework> godd2: But not all lambdas emit that.
terlar has joined #ruby
<avril14th> morning
jenrzzz has quit [Ping timeout: 245 seconds]
mroach has quit [Quit: mroach]
lzx has quit [Remote host closed the connection]
SOLDIERz has quit [Quit: Be back later ...]
Xeago has joined #ruby
Menorah has quit [Quit: This computer has gone to sleep]
<godd2> pipework I'm saying capture the result of a call to a lambda
<pipework> for maybe a small fragment of the AST, but not the AST that calls the lambda and stores the value.
* pipework might just not get the point.
tskogberg has joined #ruby
<godd2> ah of course
<godd2> then I take back what I said
arup_r has quit [Remote host closed the connection]
Stoge88 has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
mengu has joined #ruby
wpp has joined #ruby
wpp has quit [Client Quit]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
codecop has quit [Remote host closed the connection]
kyb3r_ has quit [Quit: Leaving]
Menorah has joined #ruby
livathinos has joined #ruby
einarj has joined #ruby
sigurding has joined #ruby
tlarevo has joined #ruby
monzie has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
HOS_nerv has quit [Quit: Leaving]
ajaiswal has joined #ruby
dfinninger has quit [Ping timeout: 255 seconds]
sinequanon has quit [Remote host closed the connection]
Menorah has quit [Quit: This computer has gone to sleep]
sinequanon has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
ponga has joined #ruby
ponga has quit [Client Quit]
dc_ has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
decoponio has joined #ruby
CustosL1men has joined #ruby
CustosL1men has quit [Changing host]
CustosL1men has joined #ruby
sinequanon has quit [Ping timeout: 258 seconds]
ajaiswal has quit [Quit: Leaving]
ajaiswal has joined #ruby
apoorvparijat has quit [Remote host closed the connection]
tlarevo_ has joined #ruby
techsethi_ has quit [Quit: techsethi_]
mroach has joined #ruby
apoorvparijat has joined #ruby
Menorah has joined #ruby
calmoto has joined #ruby
sevenseacat has joined #ruby
techsethi_ has joined #ruby
arup_r has joined #ruby
kamilc__ has quit [Quit: Leaving...]
charliesome has joined #ruby
FooMunki has joined #ruby
n008f4g_ has quit [Ping timeout: 272 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has joined #ruby
<ponga> hi shevy
josephndenton has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
RTG` has quit [Ping timeout: 272 seconds]
Mia has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
kenneth has joined #ruby
AndroUser466 has quit [Quit: good bye]
ecksit has joined #ruby
patrick99e99 has joined #ruby
davedev24_ has quit [Remote host closed the connection]
xymbol has joined #ruby
DaniG2k has joined #ruby
RTG` has joined #ruby
zenspider has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Cache_Money has joined #ruby
josephndenton has quit [Ping timeout: 250 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
xymbol has quit [Ping timeout: 272 seconds]
echooo has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
echooo has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
billy_ran_away has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Cache_Money has joined #ruby
sea_local has quit [Ping timeout: 258 seconds]
billy_ran_away has joined #ruby
anarang has joined #ruby
leo-unglaub has quit [Ping timeout: 250 seconds]
agent_white has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
keen___________7 has joined #ruby
tlarevo_ has quit [Read error: Connection reset by peer]
keen___________6 has quit [Ping timeout: 255 seconds]
tlarevo_ has joined #ruby
noop has quit [Ping timeout: 245 seconds]
mroach has quit [Quit: mroach]
<shevy> hi ponga
pandaant has quit [Remote host closed the connection]
agent_white has joined #ruby
roolo has joined #ruby
siwica has quit [Ping timeout: 240 seconds]
msgodf has joined #ruby
jheg has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shortCircuit__ has joined #ruby
elaptics`away is now known as elaptics
sinanislekdemir has quit [Remote host closed the connection]
noop has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
echooo1 has joined #ruby
mroach has joined #ruby
dionysus69 has joined #ruby
Menorah has quit [Quit: Leaving]
echooo has quit [Ping timeout: 272 seconds]
mloveless has quit [Remote host closed the connection]
econerd4ever has joined #ruby
testcore has joined #ruby
tokik has quit [Ping timeout: 264 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
leo-unglaub has joined #ruby
ohcibi_ is now known as ohcibi
Xeago has quit [Remote host closed the connection]
rbrs has joined #ruby
watermel0n has joined #ruby
Inoperable has joined #ruby
<avril14th> I don't get it, /\\/.match "\W" returns nil
<apeiros_> avril14th: "\W" == "W"
<avril14th> ahah
<avril14th> I get it
<apeiros_> either '\W' or "\\W"
* avril14th facepalm
mikecmpbll has joined #ruby
<avril14th> I thought Regexp was the bad uy, but String was
rshetty has joined #ruby
zarubin has quit [Remote host closed the connection]
echooo has joined #ruby
tlarevo_ has quit [Ping timeout: 255 seconds]
<banister> apeiros_ what's up stefan
tlarevo has joined #ruby
jenrzzz has joined #ruby
echooo1 has quit [Ping timeout: 272 seconds]
<apeiros_> banister: not much, working on the ORM part of my webframework. currentl 1/3rd the amount of object allocations and 3x the performance of activerecord 4.1
<banister> apeiros_ link?
<apeiros_> not public yet
conniemj has joined #ruby
<banister> apeiros_ what's k00 about it again?
relic has quit [Quit: ZNC - http://znc.in]
<apeiros_> it's postgres centric. opinionated. "single" page web application. json API. lets you avoid tons of boilerplate compared to rails.
Xeago has joined #ruby
<apeiros_> "single" page because it's not a target to keep it truly a single page. but you'll probably usually not have more than a single page.
<banister> apeiros_ so cool. does it prefer a certain js mvc or any r ok?
<apeiros_> it comes with its own set of JS, but that should still leave you quite a lot of freedom to use whatever you want.
<apeiros_> i.e. it's mostly concerned about the SPA loading mechanism, the page change and model interaction
<apeiros_> theoretically it should be possible to replace every single component of the framework. but for now it's not a focus to make that easy.
marr has joined #ruby
<banister> apeiros_ do you support PUT? :P
conniemj has quit [Ping timeout: 240 seconds]
SOLDIERz has joined #ruby
<apeiros_> your controller gets the http verb, so yes, I support put
<banister> apeiros_ oh so you have to manually setup the routes for all your resources?
<apeiros_> since I only target modern browsers (it's for webapps, not websites), I'll test whether emulation of put/patch is necessary
<pipework> banister: You only need GET, psh. :p
<apeiros_> no. there are no routes.
<banister> "THERE ARE NO ROUTES"
<banister> explain yourself bb
<pipework> There are no requests.
<apeiros_> it's a 1:1 mapping of the url to the resource.
<banister> there is no internet
dANO has joined #ruby
<pipework> match * # fuck routes
<arup_r> anybody using http://vimcasts.org/blog/2010/12/a-text-object-for-ruby-blocks/ in their vim plugin?
<apeiros_> so there's no need to have something like rails' routes.rb
Soda has quit [Remote host closed the connection]
<pipework> So resources are flat in the HTTP API?
<apeiros_> pipework: what do you mean by "flat"?
<pipework> Or does it just dynamically handle routes for non-simple things
<pipework> apeiros_: /users /posts /blogs instead of something like /blog/:name/posts/:post_name
<apeiros_> example.org/Api/Package/V1/My/Nested/Resource -> Api::Package::V1::My::Nested::Resource
<apeiros_> example.org/Api/Package/V1/Gallery:1/Album:15/Picture:12 -> Api::Package::V1::My::Nested::Resource with scope information containing those IDs
<apeiros_> whoops
<apeiros_> example.org/Api/Package/V1/Gallery:1/Album:15/Picture:12 -> Api::Package::V1::Gallery::Album::Picture with scope information containing those IDs # fixed that pesky copy&paste
<apeiros_> the /Api/Package/V1 part is mandatory
<apeiros_> where Package & V1 are variable and represent the package name (~ rails engine) and api version
AFKGeek has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
sk87 has joined #ruby
workmad3 has joined #ruby
<apeiros_> what the controller Api::Package::V1::Gallery::Album::Picture does with the request is its own business. but the default controller will perform a "nested" lookup. i.e. it'll invoke Api::Package::V1::Gallery, Api::Package::V1::Gallery::Album and then process its own data. the idea is to be able to automatically perform something like what Gallery.find(1).albums.find(15).pictures.find(12) would do in rails
econerd4_ has joined #ruby
giuseppesolinas has joined #ruby
<banister> apeiros_ do you have shallow routes tho, say: SHOW picture, is not unnecessarily nested under gallery/album
<apeiros_> so routing isn't really routing but translating and hence will be constant time (well, not entirely - the longer the url, the longer the translation, but not more routes = slower)
<apeiros_> banister: if you put a controller there, yes
<apeiros_> and if you use the default controllers, they'll be really slim
<apeiros_> and with really slim I mean: class Api::Package::V1::Picture; inherit Framework::Controller; end
<apeiros_> ah well, actually a line more to declare that it takes an integer id as param
giuseppesolinas has quit [Client Quit]
reinaldob has joined #ruby
econerd4ever has quit [Ping timeout: 258 seconds]
<apeiros_> (all acceptable input to controllers has to be explicitly declared, but you can share validation with the models the reduce duplication)
<banister> apeiros_ do u support streaming
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
<apeiros_> not yet, and it's not on my priorities. but if you want to help and implement streaming… :)
lemur has quit []
<apeiros_> my focus at the moment is getting some basics right
<banister> apeiros_ open it up to me then bb
<apeiros_> banister: ok, with a bit of luck, january '15 :)
<banister> nice :)
<apeiros_> right now it's not in a state where I want to show it to anybody
<banister> do u have a name for it yet?
<apeiros_> yes
<banister> some complicated german word with those funny symbols above the letters?
<apeiros_> it's a working name, tho. not sure I'll release it under that name.
reinaldob has quit [Ping timeout: 255 seconds]
econerd4_ has quit [Remote host closed the connection]
econerd4ever has joined #ruby
sandelius has joined #ruby
noop has quit [Read error: Connection reset by peer]
tlarevo has quit [Ping timeout: 244 seconds]
watermel0n has quit [Quit: Lingo: www.lingoirc.com]
<sandelius> What's new in Rack 1.6? Cannot find a changlog
LouisRoR has joined #ruby
noop has joined #ruby
tlarevo has joined #ruby
xymbol has joined #ruby
sandelius has quit [Client Quit]
sandelius has joined #ruby
econerd4ever has quit [Ping timeout: 258 seconds]
goodenough has quit [Remote host closed the connection]
<dANO> Hello, I am trying to retrieve a web page on url that is present in a video tag , but this tag is written in javascript. I used Nokogiri HTML to display data from the page and now I would like to retrieve the url, I tried to parse the div or is logically called the video tag, but it does not work. There is a way to retrieve the url ? Perhaps with regex or with Nokogiri ? Gist : https://gist.github.com/fclement21/035c9bc1573034e5463b . Thank's
max96at|off is now known as max96at
cantonic has joined #ruby
xymbol has quit [Ping timeout: 265 seconds]
GeorgesLeYeti has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
Timgauthier has joined #ruby
reinaldob has joined #ruby
mengu has quit [Remote host closed the connection]
oo_ has joined #ruby
jusmyth has quit [Quit: Leaving.]
Klumben has quit [Ping timeout: 258 seconds]
cantonic has quit [Ping timeout: 250 seconds]
cantonic has joined #ruby
Klumben has joined #ruby
kl__ has joined #ruby
TgMts_ has joined #ruby
bankair has quit [Quit: leaving]
tlarevo__ has joined #ruby
TgMts has quit [Ping timeout: 258 seconds]
tlarevo has quit [Ping timeout: 250 seconds]
SOLDIERz has quit [Quit: Be back later ...]
zarubin has joined #ruby
bankair has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
tobago has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tobago has joined #ruby
<GeorgesLeYeti> Is it possible (and how to) set content type while put file with net/ftp ?
Inoperable has quit [Quit: Rectified]
apoorvparijat has quit [Remote host closed the connection]
<canton7> no. the filesystem has no concept of content-type
jenrzzz has quit [Ping timeout: 245 seconds]
dfinninger has joined #ruby
jenrzzz has joined #ruby
Xeago has quit [Remote host closed the connection]
knutmithut has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
npgm has quit [Quit: Connection closed for inactivity]
_5kg has quit [Ping timeout: 240 seconds]
_5kg has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
marcules has joined #ruby
<marcules> hi
SOLDIERz has joined #ruby
apoorvparijat has joined #ruby
lolmaus has joined #ruby
<agent_white> GeorgesLeYeti: You could match up your file's extension with /etc/mime.types.
bankair has quit [Quit: WeeChat 0.3.8]
sk87 has joined #ruby
cesarstafe has joined #ruby
<GeorgesLeYeti> agent_white: ok. But how ?
bankair has joined #ruby
FooMunki has quit [Quit: FooMunki]
ziyadb has joined #ruby
<agent_white> GeorgesLeYeti: Are you are Linux/Mac/Unix?
<GeorgesLeYeti> Linux
<agent_white> OK good :)
bhaak_ is now known as bhaak
<GeorgesLeYeti> agent_white: ty
<agent_white> GeorgesLeYeti: That's from my own httpd I started working on awhile ago... it's still very fresh as I haven't worked on it in awhile
<agent_white> But if you want to look at the code: https://github.com/jakenotjacob/Dishd/blob/master/server.rb
iamninja has joined #ruby
cantonic has quit [Quit: cantonic]
jenrzzz has quit [Ping timeout: 245 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Remote host closed the connection]
noop has quit [Read error: Connection reset by peer]
noop has joined #ruby
cantonic has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
josephndenton has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
cantonic has quit [Client Quit]
<Hanmac> man i need to make hurry ... i did made a ticket on the ruby tracker marked as "Immediate" ;P
cantonic has joined #ruby
davedev24_ has joined #ruby
s00pcan has quit [Quit: Lost terminal]
s00pcan has joined #ruby
cesarstafe has quit [Ping timeout: 250 seconds]
josephndenton has quit [Ping timeout: 265 seconds]
Inoperable has joined #ruby
cantonic has quit [Ping timeout: 245 seconds]
davedev24_ has quit [Ping timeout: 240 seconds]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tokik has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
noop has quit [Read error: Connection reset by peer]
_5kg has quit [Ping timeout: 265 seconds]
noop has joined #ruby
patrick99e99 has joined #ruby
Xeago has joined #ruby
xymbol has joined #ruby
jenrzzz has joined #ruby
sk87 has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmichelsen has quit [Quit: ZZZzzz…]
cesarstafe has joined #ruby
davedev24_ has joined #ruby
nfk has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
Takle_ has joined #ruby
xymbol has quit [Ping timeout: 255 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
Soda has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
Asher has quit [Client Quit]
Asher has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
kamilc__ has joined #ruby
Kilo`byte has quit [Read error: Connection reset by peer]
apoorvparijat has quit [Remote host closed the connection]
surs has quit [Quit: leaving]
surs has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
<certainty> "So like everyone without a job, I’ve started to learn Rust" lol i love that introduction
jxf has joined #ruby
prasselpikachu has quit [Remote host closed the connection]
<apeiros_> yeah, made me smile too
olivier_bK has joined #ruby
bal has quit [Ping timeout: 240 seconds]
mostlybadfly has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
Takle has joined #ruby
bal has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
noop has quit [Read error: Connection reset by peer]
sevenseacat has left #ruby [#ruby]
chinmay_dd has quit [Quit: Leaving]
Takle_ has quit [Ping timeout: 244 seconds]
bal1 has joined #ruby
<banister> certainty where did u read tht
chu has joined #ruby
bal has quit [Ping timeout: 240 seconds]
<Timgauthier> ugh ##php isn't helping me with my issue :'(
<certainty> Timgauthier: what issue?
<Timgauthier> i want to have a default selection in my form, based on language, without rewriting the form elements into two if statements, but i suspect having two if statements isn't any better
<Timgauthier> i don't even know how i'd structure that in ruby either (which is often how i figure shit out lol)
<Timgauthier> wait, i'm a retard. i already have the logic for this in here, it is just broken.
<certainty> /nick rubberduck
apoorvparijat has joined #ruby
* Timgauthier sits in shame in the corner.
<Hanmac> ruby has 2.2.0rc1 tag ... BUT it does break my gems :/ ... and i did warn them weeks ago ... now its time, if they dont fix it now i will prevent the next ruby release! ;P
<certainty> i have a rubberduck sitting on one of my monitors too for that reason
<Timgauthier> i've read about this, its the reminder to be simple?
<Timgauthier> or is it a reminder that we're all just a rubber ducky
<zenspider> hanmac: what'd it break?
<certainty> it's someone you can tell your issues and while you explain them you find the solution
fabrice31 has quit [Remote host closed the connection]
<certainty> that's the theory :)
<Timgauthier> ah...
<Timgauthier> thanks for being my rubberducky :P
fabrice31 has joined #ruby
<certainty> yw
qz has left #ruby [#ruby]
<Hanmac> zenspider: in the C-API, TypedData does have a rb_data_type_t check ... previor to 2.2rc it could have a parent type so you could port the C(++) class stucture into ruby, without you cant
wgrepm has joined #ruby
bogeyd6 has joined #ruby
<zenspider> hanmac: so did you track down the change that causes the problem? who did it? why? what was the commitlog message? etc...
sigurding has quit [Quit: sigurding]
<Hanmac> zenspider: i did i telled him weeks ago that it does break my stuff and there is no workaround for that ... but today it got into the rc tag, i couldnt take it anymore and i did this: https://bugs.ruby-lang.org/issues/10621 a ticket marked as "Immediate" ;P
gogiel_ has joined #ruby
gogiel_ has quit [Client Quit]
gogiel_ has joined #ruby
gogiel_ has quit [Client Quit]
fabrice31 has quit [Ping timeout: 250 seconds]
<zenspider> you really don't get to pick the priority... but it looks like in this case you got nobu's attention
<Hanmac> yes! i got him in my trap ;P
techsethi_ has quit [Quit: techsethi_]
<zenspider> hanmac: when filing a bug, use less english and more code to show your problem
<zenspider> "in C++ like Class B and Class C does inherit both Class A" that's mud.
noop has joined #ruby
mengu has joined #ruby
<Hanmac> hm maybe next time, but its a bit more dificult to describe it with code ... and i was in hurry
<zenspider> This used to work: "class A {...} class B : A {...} .. etc."
<zenspider> that's all you really need to say
<zenspider> (obvs showing the ruby C part as well)
<zenspider> hopefully koichi will chime in soon and you'll get a revert or a patch
ponga has quit [Quit: Connection closed for inactivity]
zarubin has quit [Remote host closed the connection]
acck has joined #ruby
<zenspider> I should sleep
echooo has quit [Ping timeout: 265 seconds]
n1lo has joined #ruby
chinmay_dd has joined #ruby
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
fabrice31 has joined #ruby
rbrs has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Morkel_ has joined #ruby
_5kg has joined #ruby
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
echooo has joined #ruby
sandelius has joined #ruby
Kilo`byte has joined #ruby
acck has quit [Quit: Textual IRC Client: www.textualapp.com]
ixolit has joined #ruby
ixolit has left #ruby [#ruby]
deepy has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
bweston92 has joined #ruby
techsethi_ has joined #ruby
superrorc_ has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
AFKGeek has joined #ruby
gokul has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
_5kg has quit [Ping timeout: 264 seconds]
arup_r has quit [Remote host closed the connection]
chinmay_dd has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
cesarstafe has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
jxf has quit [Remote host closed the connection]
thoughnut has joined #ruby
echooo1 has joined #ruby
echooo has quit [Ping timeout: 240 seconds]
xymbol has joined #ruby
sigurding has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
chinmay_dd has joined #ruby
lessless has joined #ruby
arietis has joined #ruby
kapott has joined #ruby
chinmay_dd_ has joined #ruby
echooo1 has quit [Ping timeout: 255 seconds]
xymbol has quit [Ping timeout: 244 seconds]
chinmay_dd_ is now known as cdd|afk
davedev24_ has quit [Ping timeout: 258 seconds]
arup_r has joined #ruby
chinmay_dd has quit [Ping timeout: 258 seconds]
Mia has joined #ruby
Mia has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
Axy has quit [Ping timeout: 240 seconds]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theotherstupidgu has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
theotherstupidgu has joined #ruby
AmirolAhmad has joined #ruby
Beoran has joined #ruby
apoorvparijat has quit [Remote host closed the connection]
Beoran_ has quit [Ping timeout: 240 seconds]
dfinninger has quit [Ping timeout: 255 seconds]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bogeyd6 has quit [Read error: Connection reset by peer]
AmirolAhmad has quit []
Vivekananda has joined #ruby
Inoperable has quit [Quit: Rectified]
LouisRoR has quit [Ping timeout: 250 seconds]
ajaiswal has quit [Remote host closed the connection]
<shevy> long live ruby! \o/
FooMunki_ has joined #ruby
<shevy> hanmac well he is honest there, he was lazy :-)
<Hanmac> shevy, yes, yes he was, but lets hope that thing does not get into ruby2.2, otherwise i mark rwx not working with that ruby version
<shevy> hehe
<shevy> just get matz' attention
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hanmac since you also show lots of pics, here is one for you http://s3.favim.com/orig/44/cute-owl-Favim.com-375486.gif
<Hanmac> aw how cute ;P
jaequery has joined #ruby
<Hanmac> or better " 'ow cute!" ;P
ycodr has quit []
alex88 has quit []
<shevy> howl cute!
dionysus69 has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
Ulrike_Rayne is now known as UlrikeTristy
jaequery has quit [Client Quit]
noop has quit [Quit: Leaving]
<Hanmac> ;P
josephndenton has joined #ruby
rshetty has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
<arup_r> shevy: +1
radic has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
radic has joined #ruby
postmodern has quit [Quit: Leaving]
sonOfRa has quit [Quit: Bye!]
LouisRoR has joined #ruby
mengu has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 250 seconds]
sonOfRa has joined #ruby
dideler has left #ruby ["undefined"]
_5kg has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
shazaum has joined #ruby
sigurding has quit [Quit: sigurding]
Timgauthier has joined #ruby
claptor has quit [Quit: this channel is bakas]
sigurding has joined #ruby
<Hanmac> shevy today is shopping day ... the new hard drives are available at the shop and i can get them ... then i will install the new system on them ... and then over the night and maybe next day i will make a dd copy of the old stuff
<Hanmac> hey guys, what are some tips to speedup a dd copy?
mrkn has joined #ruby
s00pcan has quit [Quit: Lost terminal]
<canton7> go have a nap ;)
rylev has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
oz has quit [Ping timeout: 255 seconds]
AFKGeek has joined #ruby
Stalkr_ has joined #ruby
leo-unglaub has quit [Ping timeout: 250 seconds]
Brando753 has quit [Ping timeout: 265 seconds]
<Hanmac> canton7: i will to a dd copy of my data before i try to restore something myself ... so, what can i do to speed it up, otherwise to litterally "sleep over it" ? ;p
DanKnox has quit [Ping timeout: 255 seconds]
seanmarcia has quit [Excess Flood]
saltsa has quit [Ping timeout: 240 seconds]
LRgraham has quit [Ping timeout: 256 seconds]
TinkerTyper has quit [Ping timeout: 265 seconds]
seanmarcia has joined #ruby
justinmcp has joined #ruby
<canton7> heh, I know what you were asking :P I don't have anything useful to suggest, so I went with an unhelpful suggestion instead...
androidbruce has quit [Ping timeout: 256 seconds]
Photism has quit [Quit: Leaving]
dfas has joined #ruby
jasonmit has quit [Ping timeout: 258 seconds]
wjimenez5271 has quit [Ping timeout: 240 seconds]
Azure has quit [Ping timeout: 265 seconds]
pgmcgee has quit [Ping timeout: 265 seconds]
Gate has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
ghormoon has quit [Ping timeout: 255 seconds]
avelldiroll has quit [Ping timeout: 255 seconds]
justinmcp_ has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 265 seconds]
BTRE has quit [Ping timeout: 265 seconds]
TPBallbag has joined #ruby
saltsa has joined #ruby
Brando753 has joined #ruby
Cache_Money has joined #ruby
pgmcgee has joined #ruby
BTRE has joined #ruby
DanKnox has joined #ruby
oz has joined #ruby
androidbruce has joined #ruby
androidbruce has joined #ruby
androidbruce has quit [Changing host]
wjimenez5271 has joined #ruby
LRgraham has joined #ruby
elek has joined #ruby
_5kg has quit [Ping timeout: 256 seconds]
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
daniell has quit [Ping timeout: 258 seconds]
ghormoon has joined #ruby
krz has joined #ruby
avelldiroll has joined #ruby
TPBallbag is now known as Ballkenende
<Hanmac> canton7: i need to make a dd copy of more than 7TB data ... or as windows would say: "that will take some time ..." ;P
<canton7> oh, lovely!
<canton7> aren't there dedicated bits of hardware for replicating hdds?
Ballkenende is now known as TPBallbag
<canton7> no idea whether they'd be faster than a normal computer.... depends where the bottleneck is
Spami has joined #ruby
<canton7> if you're hitting the write speed of the target drive, there's not a lot you can do :P
<Hanmac> canton7: the data on that HDDs is broken ... i need to make a dd copy to try to recover the data
TinkerTyper has joined #ruby
<canton7> aha, ok
Romance has left #ruby ["Leaving"]
banister has joined #ruby
Spami_ has joined #ruby
Spami has quit [Ping timeout: 265 seconds]
patrick99e99 has joined #ruby
<Hanmac> canton7: its lvm data
frem has quit [Quit: Connection closed for inactivity]
anaeem1__ has joined #ruby
prasselpikachu has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
xymbol has joined #ruby
s00pcan has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yalue has joined #ruby
banister has joined #ruby
anaeem1 has quit [Ping timeout: 250 seconds]
banister has quit [Max SendQ exceeded]
mrkn has quit [Quit: exit(1)]
patrick99e99 has quit [Ping timeout: 250 seconds]
duncannz has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
xymbol has quit [Ping timeout: 264 seconds]
duncannz has joined #ruby
techsethi_ has quit [Quit: techsethi_]
dionysus69 has joined #ruby
n008f4g_ has joined #ruby
sambao21 has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
sigurding has quit [Ping timeout: 265 seconds]
duncan_ has joined #ruby
sigurding has joined #ruby
frog|OFF is now known as green-big-frog
Spami has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
kp666 has quit [Quit: Leaving]
banister has joined #ruby
Spami_ has quit [Ping timeout: 244 seconds]
<green-big-frog> hi
cesarstafe has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
pika_pika has joined #ruby
banister has quit [Client Quit]
psy_ has quit [Read error: Connection reset by peer]
larissa has joined #ruby
<GeorgesLeYeti> Is it possible to simplify this ? mytext.gusb(/^char/, " char").gsub(/^struct/, " struct").gsub(/^double/, " double").gsub(/^program/, " program") ?
<GeorgesLeYeti> I want that every line which start by char / struct / double or program to be replace by space + the same char
codecop has joined #ruby
duncan_ has quit [Ping timeout: 240 seconds]
apoorvparijat has joined #ruby
<avril14th> GeorgesLeYeti: mytext.gsub /^(?=char|struct|double|program)/, ' ' ?
<canton7> GeorgesLeYeti, or this https://eval.in/236579
agjacome has joined #ruby
<canton7> they're pretty much the same
doodlehaus has joined #ruby
leo-unglaub has joined #ruby
nfk has quit [Quit: yawn]
yalue has quit [Quit: return 0;]
hgl has quit [Ping timeout: 264 seconds]
thoughnut has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hgl has joined #ruby
TPBallbag has joined #ruby
giuseppesolinas has joined #ruby
thoughnut has joined #ruby
<shevy> hanmac sounds like a lot of work
<Hanmac> shevy hm yeah but if it works it does save me a very lot of money
asmodlol has joined #ruby
<shevy> hehe
phutchins has joined #ruby
TPBallbag has quit [Remote host closed the connection]
TPBallbag has joined #ruby
dionysus69 has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 258 seconds]
renderful has joined #ruby
techsethi_ has joined #ruby
kiyote23 has joined #ruby
tristanp has joined #ruby
Calmoto1 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
AlSquirrel has joined #ruby
rudisimo has joined #ruby
Calmoto1 is now known as Calmotro
lessless has joined #ruby
livathinos has quit []
engineered_acade has quit [Ping timeout: 240 seconds]
kiyote23 has quit [Remote host closed the connection]
calmoto has quit [Ping timeout: 240 seconds]
AlSquire has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 258 seconds]
LRgraham has quit [Ping timeout: 258 seconds]
Calmotro is now known as Calmoto
davedev24_ has joined #ruby
justinmcp has quit [Ping timeout: 240 seconds]
RandyT has quit [Ping timeout: 258 seconds]
chu has joined #ruby
justinmcp has joined #ruby
maasha has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
psyprus has joined #ruby
UlrikeTristy is now known as Ulrike_Rayne
DaniG2k has quit [Ping timeout: 245 seconds]
LRgraham has joined #ruby
RandyT has joined #ruby
<maasha> I would like to know the index positions of elements shared elements between two arrays - how?
_5kg has joined #ruby
<canton7> turn each array into a hash of word -> indexes. intersect the keys of the two hashes
<canton7> use that insection to look up the positions
<canton7> boom
rshetty has joined #ruby
workmad3 has joined #ruby
rudisimo has quit []
<apeiros_> >> %w[a b c].map.with_index.to_h
<eval-in__> apeiros_ => {"a"=>0, "b"=>1, "c"=>2} (https://eval.in/236581)
<apeiros_> ^ build index hash like that
tlarevo__ has quit [Remote host closed the connection]
xymbol has joined #ruby
jack_rabbit has quit [Ping timeout: 272 seconds]
<maasha> Hmmm
<canton7> ahem, s/word/element/ in my initial statement
oleo has joined #ruby
tier has joined #ruby
leizzer has joined #ruby
zorak8 has joined #ruby
arup_r has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
beef-wellington has joined #ruby
mengu has joined #ruby
xymbol has quit [Ping timeout: 245 seconds]
<apeiros_> improving on canton7's suggestion: don't intersect the keys of the hashes. intersect the arrays directly.
<apeiros_> (since keys of hashes == the arrays)
workmad3 has quit [Ping timeout: 272 seconds]
<canton7> you've already done a load of de-duplication for the hash generation - wouldn't it be cheaper to utilise that?
Xeago has quit [Remote host closed the connection]
engineered_acade has joined #ruby
<canton7> "cheap" is quite an insignificant term here, though :P
kapil__ has quit [Quit: Connection closed for inactivity]
<engineered_acade> I have a question related to freelancing, a person wants me to help him put together a spec for software he wants to have built. How much would you charge for such a service?
<avril14th> maasha: you want the index in both arrays?
<apeiros_> canton7: Hash#keys is probably more expensive than the deduplication. would have to measure with some edge cases, though.
<avril14th> and why the index, not just the array of common values?
<apeiros_> engineered_acade: so many variables in there
zorak8 has quit [Ping timeout: 264 seconds]
<engineered_acade> @apeiros_ that's why I'm having a hard time coming up with a number :)
rudisimo has joined #ruby
<apeiros_> engineered_acade: by the hour then
<avril14th> or rand()
<maasha> avril14th: something like [1, 3, 6, 7, 4, 3].index([7, 1]) => [3, 0]
_5kg has quit [Ping timeout: 272 seconds]
<canton7> apeiros_, true, I guess
<maasha> It would require overloading the Array.index method with some duck typing.
<apeiros_> maasha: a.maasha_index(b) --> a.map.with_index.to_h.values_at(*b)
<GeorgesLeYeti> sorry had a call.
<canton7> it's gonna depend so much on the size of the arrays and how sparese the hash happens to be... and be insignificant here anyway :P
<apeiros_> there is no overloading in ruby maasha
<GeorgesLeYeti> avril14th & canton7 : TY a lot
<canton7> :)
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
josephndenton has joined #ruby
<apeiros_> that's different from "index of intersecting elements", though.
<engineered_acade> Do you ever charge on a fixed-price?
<maasha> apeiros_: well, you can overwrite the index method with one with more functionality - probably not a good idea.
<apeiros_> maasha: correct, that's a bad idea. and it's not overloading.
<avril14th> >> [1,2,3,4,5].map.with_index{ |v, idx| idx if [1,3,5].include? v }.compact!
<eval-in__> avril14th => [0, 2, 4] (https://eval.in/236582)
<apeiros_> engineered_acade: when I freelanced, I mostly charced on a fixed-price, yes. not sure I'd still do it like that.
<maasha> apeiros_: and your last solution here is perfect! TY
<apeiros_> engineered_acade: if you do charge a fixed-price, make sure you renegotiate when the job changes
<maasha> avril14th: see apeiros_ solution
<apeiros_> engineered_acade: and that includes "but just do this little bit too please"
<avril14th> maasha: is his faster?
<engineered_acade> Yeah, I want to have very specific requirements for the contract
<apeiros_> avril14th: yes
<apeiros_> avril14th: yours is an m*n, mine isn't
mroach has quit [Quit: mroach]
<avril14th> true
<maasha> avril14th: it appears more clean. Speed is not too critical here.
olivier_bK has quit [Ping timeout: 258 seconds]
<maasha> but now you must have me excused! G&T time!
Sunlorhic has joined #ruby
<apeiros_> G&T? Glory & Thunder?
<tobiasvl> gin and tonic?
<certainty> grand and theft
<engineered_acade> I'll think about it thanks :)
josephndenton has quit [Ping timeout: 265 seconds]
<engineered_acade> I was thinking $500 for crafting up a detailed RFP wouldn't be so bad.
allcentury has joined #ruby
ta has quit [Remote host closed the connection]
yojimmbo has joined #ruby
sk87 has joined #ruby
n80 has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
dfinninger has joined #ruby
yojimmbo has quit [Quit: Leaving]
kapil__ has joined #ruby
engineered_acade is now known as Cat_1
yojimmbo has joined #ruby
sk87 has quit [Client Quit]
<apeiros_> Cat_1: in india, that's f'ing expensive
<apeiros_> Cat_1: as I said, lots of variables.
triple_b has joined #ruby
asmodlol has quit [Ping timeout: 256 seconds]
fandi has joined #ruby
mengu has quit [Remote host closed the connection]
sankaber has joined #ruby
dfinninger has quit [Ping timeout: 255 seconds]
asmodlol has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
sigurding has quit [Quit: sigurding]
gaboesquivel has joined #ruby
sk87 has joined #ruby
hamakn has quit [Remote host closed the connection]
Xeago has joined #ruby
goodenough has joined #ruby
atta has left #ruby [#ruby]
byprdct has joined #ruby
Xeago has quit [Remote host closed the connection]
tvw has joined #ruby
Xeago has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
yano has quit [Changing host]
yano has joined #ruby
toretore has joined #ruby
mroach has joined #ruby
tier has quit [Ping timeout: 255 seconds]
Inoperable has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
aclearman037 has joined #ruby
tus has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
rylev has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
tier has joined #ruby
s00pcan has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
dblessing has joined #ruby
Mon_Ouie has joined #ruby
bayed has joined #ruby
kevinxu has joined #ruby
kevinxu has quit [Client Quit]
Inoperable has quit [Quit: Rectified]
Photism has joined #ruby
Azure has joined #ruby
billy_ran_away has quit [Quit: ZNC - http://znc.in]
s00pcan has quit [Quit: Lost terminal]
livingstn has joined #ruby
s00pcan has joined #ruby
s00pcan has quit [Remote host closed the connection]
<shevy> cats in india!
s00pcan has joined #ruby
<shevy> why does apeiros_ talk to Cat_1 btw... did Cat_1 write something?
<shevy> ohhhh
<shevy> * engineered_acade is now known as Cat_1
<shevy> missed that one
stevegmag has joined #ruby
evanjs has joined #ruby
Xeago has joined #ruby
DaniG2k has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
jerius has joined #ruby
j2p2 has joined #ruby
freerobby has joined #ruby
jeanlinux has joined #ruby
sailias has joined #ruby
doodlehaus has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
joast has quit [Quit: Leaving.]
_5kg has joined #ruby
TPBallbag is now known as uwot
theotherstupidgu has quit [Remote host closed the connection]
yojimmbo has quit [Quit: Leaving]
theotherstupidgu has joined #ruby
Xeago has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
enebo has joined #ruby
surs has quit [Quit: leaving]
mary5030 has joined #ruby
davedev2_ has joined #ruby
josephndenton has joined #ruby
rylev_ has joined #ruby
davedev24_ has quit [Ping timeout: 258 seconds]
paulfm has joined #ruby
rylev has quit [Read error: Connection reset by peer]
lxsameer has quit [Remote host closed the connection]
<shevy> ok guys
<shevy> what is better to use in a method invocation
Avahey has joined #ruby
<shevy> foobar 'one', 'two', 'three', %w( a b c ), {}
<shevy> foobar('one', 'two', 'three', %w( a b c ), {})
s00pcan has joined #ruby
tokik has quit [Ping timeout: 258 seconds]
<agent_white> Oh no
max96at is now known as max96at|off
<shevy> :)
<agent_white> I love my parens-pillows. What's a blanket without a nice pillow?!
<shevy> agent_white I am trying to create a pipe that can replace avisynth:
<shevy> there are examples like this, changed by me into a pipe-setup:
<shevy> AviSource("c:\folder\myclip.avi") | DirectShowSource("c:\folder\myclip.mpg", fps=25)
Avahey is now known as avahey91
<shevy> now I hate those capitalized methods... but I also wondered about the ()
Channel6 has joined #ruby
<shevy> they are more annoying to type and don't seem to be necessary
anarang has quit [Quit: Leaving]
<shevy> 'c:\folder\myclip.avi' | direct_show_source "c:\folder\myclip.mpg", fps=25
<shevy> is better, no?
<agent_white> Oooo!
mroach has quit [Quit: mroach]
<agent_white> LOADS better!!!
vinleod has joined #ruby
HaikuUser has joined #ruby
xymbol has joined #ruby
Hanmac has quit [Quit: Leaving.]
nateberkopec has joined #ruby
maasha has quit [Quit: Page closed]
<shevy> sometimes I wonder if people here are on drugs
<certainty> shevy: for sure!
<Timgauthier> i love drugz
dfinninger has joined #ruby
<certainty> rubberdrugs
<Timgauthier> haha
davedev2_ has quit [Ping timeout: 258 seconds]
<Timgauthier> yay all that PHP paid off. it works! looks mostly nice! http://youcantwritethat.com
<certainty> shevy: does the ballmer peak also work with other drugs?
<Timgauthier> now i just need to rewrite content, and learn swift
mgberlin has joined #ruby
mgberlin has quit [Remote host closed the connection]
<Timgauthier> and if anyone ever makes a system like this in ruby, i'll use it
<certainty> Timgauthier: Fatal error: Call to a member function html() on a non-object in /home/youcantw/public_html/site/snippets/menu.php on line 16
<certainty> :D
karmatr0n has joined #ruby
<Timgauthier> which page?
<certainty> index
<Timgauthier> oh, reload, you likely hit it as i fixed another page :P
<certainty> yepp works
ctrlrsf has quit [Ping timeout: 264 seconds]
<certainty> still you probably don't want to display errors in production
JokerDoom has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
hamakn has joined #ruby
sailias1 has joined #ruby
sailias has quit [Read error: Connection reset by peer]
JokerDoom has joined #ruby
Parker0 has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
Sunlorhic has quit [Ping timeout: 264 seconds]
hgl has quit [Ping timeout: 264 seconds]
<shevy> certainty dunno, I think ballmer hat something funny in the head
<shevy> erm
<shevy> *had
Takle has joined #ruby
<shevy> my head went funny there for a moment
hgl has joined #ruby
<shevy> but sure enough does a hat belong to a head!
<shevy> Timgauthier ok the page is nice but that can be done with ruby as well or?
pzzn has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
<shevy> oh oh oh!
<Timgauthier> shevy yeah that could be done with shevy, but what you don't see is that its a really simple system, its templates (in php) with text files for content, and a nice backend that lets my wife and I keep it up to date
<certainty> shevy: i believe you mean ho ho ho! but that's too early
<Timgauthier> and i didn't have to write the whole thing to do that, which is what i mean by someone needing to make it in ruby :P
<shevy> certainty damn... that reminds me, The Office bloopers
<certainty> :)
last_staff has quit [Quit: last_staff]
jeanlinux has quit [Remote host closed the connection]
<certainty> time for me to get home and into holiday. merry x-mas and happy new year guys
<certainty> (and women)
<agent_white> Cheers! :D
<Timgauthier> indeed! have a good holiday, A merry christmas and a happy new year to you and yours.
* agent_white clinks glass against cat
<shevy> time for WHAM last xmas again!
<shevy> everyone sing
nhhagen_ has joined #ruby
<shevy> certainty do they (lisp)?
<Timgauthier> I gave you my heart
<shevy> lol
<Timgauthier> and the very next day, you gave it away
<Timgauthier> oooaaahhhahhoohhh LASSSsssttttttt Christmass!
<certainty> shevy: i bet they do
<shevy> omg
* agent_white mumlehums-muhumbles-huhmbles to himself
<shevy> it was created in 1984... that is 30 years
<agent_white> Ooo
* agent_white boogies
leizzer has quit [Ping timeout: 265 seconds]
max96at|off is now known as max96at
adriancb has joined #ruby
max96at is now known as max96at|off
<shevy> hey... for boogie you should do k-c and the sunshine band
<agent_white> "I'm your boggie man" ?! 0_0
* agent_white shudders
patrick99e99 has joined #ruby
cassianoleal has joined #ruby
stevegmag has quit []
<agent_white> EEEE
sanadora has joined #ruby
nhhagen has quit [Ping timeout: 245 seconds]
<agent_white> I wish kis (KC?)'s shirt was business atire.
pu22l3r__ has joined #ruby
nhhagen_ has quit [Ping timeout: 245 seconds]
<shevy> hehe
Xeago has joined #ruby
Megtastique has joined #ruby
<shevy> I like the trumpet guys, they have the real boogie going
<agent_white> Dude they are gettin down!
hgl has quit [Ping timeout: 265 seconds]
AlSquirikou has joined #ruby
spyderman4g63 has joined #ruby
<agent_white> Only way to play the trumpet that well
techsethi_ has quit [Quit: techsethi_]
<shevy> haha
BTRE has joined #ruby
<shevy> yeah... you can't do that with a piano
pu22l3r has quit [Ping timeout: 256 seconds]
t0rc has joined #ruby
devdazed has joined #ruby
<agent_white> Hahah I noticed that, 3:00 KC can't take it anymore
<agent_white> needabooey
<agent_white> Tamborine guy prolly just holding it in.
<agent_white> He wants to jam though.
Takle_ has joined #ruby
<shevy> now a semi-ruby question... I am working on my ancient IRC bot again, and trying to add colour support, like in mIRC http://www.ircbeginner.com/ircinfo/colors.html
rippa has joined #ruby
<shevy> does anyone know where the colour definitions can be found?
larissa has quit [Quit: Leaving]
<shevy> or is that some custom addon
hgl has joined #ruby
<shevy> looking at https://tools.ietf.org/html/rfc2812 I can not even find "color" or "colour" so I assume it is solely client based?
patrick99e99 has quit [Ping timeout: 264 seconds]
AlSquirrel has quit [Ping timeout: 256 seconds]
_beechnut has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
<canton7> shevy, see the "mirc color codes convention"
<canton7> it's not part of the standard, no. it's mirc doing their own thing, and other people copying
sambao21 has joined #ruby
<shevy> ah ok
<shevy> thanks canton7
Takle has quit [Ping timeout: 265 seconds]
<canton7> also many channels on freenode have colors disabled, I believe
JokerDoom has quit [Ping timeout: 245 seconds]
<canton7> +c on the channel modes
Xeago has quit [Remote host closed the connection]
fernandolopez has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 255 seconds]
asd1 has joined #ruby
HaikuUser has quit [Read error: Connection reset by peer]
sambao21 has quit [Client Quit]
<asd1> \away
Megtastique has quit []
procat has joined #ruby
sailias1 has quit [Read error: Connection reset by peer]
sailias has joined #ruby
davedev24_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
hamakn has quit [Remote host closed the connection]
Xeago has joined #ruby
<asd1> \join #snowden
freerobby has quit [Quit: Leaving.]
asd1 has quit [Quit: Leaving]
nhhagen has joined #ruby
Megtastique has joined #ruby
kiyote23 has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
<agent_white> ruby always seems to have the most enthusiastic people I see in any channel.
<cn28h> meh
<shevy> we are cheerful
<shevy> as we can adapt the language to our needs (a lot at least, more than most other programming languages)
<agent_white> Exactly.
<shevy> can lisp be adapted more than ruby?
arya_ching has joined #ruby
JokerDoom has joined #ruby
Takle has joined #ruby
<agent_white> And I think cause there's many options to do something?
sk87 has joined #ruby
<agent_white> I notice when someone mentions a way to do something in cool in here, suddenly a gode-golf gladiator arena emerges from the floors
<agent_white> And people begin to trade battle-strategies
<canton7> golf in ruby is fun :P
<agent_white> No naysayers, just people egging each other on to tighten their swordskills
<agent_white> ya know?
<agent_white> I enjoy that.
Takle_ has quit [Ping timeout: 256 seconds]
bahar has quit [Ping timeout: 256 seconds]
asmodlol has quit [Ping timeout: 244 seconds]
<agent_white> ./endminirant
t0rc has quit [Quit: WeeChat 1.0.1]
bahar has joined #ruby
<canton7> I think there's a bit more to it than that. People *tend* to be doing ruby because they want to, rather than because they have to. so you don't tend to get people coming in here asking to be spoonfed - people are capable of thinking for themselves, and want to
apoorvparijat has quit [Remote host closed the connection]
nhhagen has quit []
<canton7> compare that to somewhere like ##csharp, where we're full of people expecting (demanding!) to be given all sorts of answers on a silver platter, and throw a strop if they're told to read a book / some docs
<canton7> so yeah - I think it's partly the people who answer the questions, but the people who ask them
workmad3 has joined #ruby
<canton7> *but also the
amundj has joined #ruby
asmodlol has joined #ruby
<agent_white> canton7: Very true!
arya_ching has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
<agent_white> What spurred me up was hearing from a learning channel I'm in.
arya_ching has joined #ruby
<agent_white> People are there excited to do things they've never done... yet there's the few who are... negative. Doesn't make sense to me. Especially those who are experienced and there to guide others.
uwot is now known as Ballkenende
adriancb has quit [Remote host closed the connection]
<agent_white> canton7: exactly! Odd how the jaded ones are so eager to speak up ya know?
arup_r has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
<agent_white> Shit I'd be telling them to put some rockets on their rollerblades and see how far to jump.
adriancb has joined #ruby
<agent_white> s/to/they can/
cdd|afk is now known as chinmay_dd
Ballkenende is now known as TPBallbag
workmad3 has quit [Ping timeout: 240 seconds]
pu22l3r__ has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
apeiros_ has quit [Remote host closed the connection]
CustosL1men has quit [Ping timeout: 250 seconds]
<agent_white> But ALAS. The sweet nectar of ruby is shared by many people who've tasted it and want to spread the good news.
* agent_white clicks ruby's glass
apeiros_ has joined #ruby
<agent_white> *clinks even. We can click though.
Takle_ has joined #ruby
AlexRussia has joined #ruby
t0rc has joined #ruby
sigurding has joined #ruby
Xeago has quit [Remote host closed the connection]
treehug88 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
amundj has quit [Ping timeout: 258 seconds]
shortCircuit__ has quit [Remote host closed the connection]
apoorvparijat has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
leo-unglaub has quit [Remote host closed the connection]
amundj has joined #ruby
ta has joined #ruby
apeiros_ has quit [Ping timeout: 250 seconds]
joast has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
the_f0ster has joined #ruby
<Cat_1> I've found that the Ruby community is helpful but also expects you to find a lot of the information on your own. The fact that the Rails frameowrk is also pretty convention-based and there isn't much documentation on the "conventions" makes it difficult for people who aren't go-getters to succeed on the platform.
AlexRussia has quit [Ping timeout: 258 seconds]
<Cat_1> There's no "ruby IDE" so it's hard for beginners to get started I've found.
dANO_ has joined #ruby
DonOtreply has joined #ruby
sambao21 has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
josephnd1nton has joined #ruby
davedev24_ has joined #ruby
dANO has quit [Ping timeout: 245 seconds]
gaboesquivel has joined #ruby
spastorino has joined #ruby
<agent_white> Very true!
GeorgesLeYeti has quit [Ping timeout: 244 seconds]
bahar has quit [Ping timeout: 250 seconds]
Kricir has joined #ruby
<agent_white> At the same time, I don't see people here sending newcomers links to lmgtfw.com ... They genuinely seem to want to help the newcomer onboard.
giuseppesolinas has joined #ruby
GeorgesLeYeti has joined #ruby
tvw has quit [Ping timeout: 272 seconds]
Morkel has quit [Quit: Morkel]
<Cat_1> I"ve noticed recently however the number and quality of Rails gems has stagnated- a lot of projects haven't been updated in a long time and are Rails 2-3 compatible.
<agent_white> It's good stuff to embrace newcomers. Just makes a chain-reaction sorta thhing happen.
<Cat_1> It makes me wonder if Rails has peaked, and developers have moved on to other things
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Cat_1> Or if more stuff is just being accomplished in javascript and the rails ecosystem is "mature"
josephnd1nton has quit [Ping timeout: 240 seconds]
bahar has joined #ruby
freerobby has joined #ruby
allcentury has quit [Ping timeout: 258 seconds]
rismoney1 has joined #ruby
tlarevo has joined #ruby
<agent_white> I couldn't tell you... haven't been around enough to have seen it. But I enjoy what I've seen :)
AlexRussia has joined #ruby
Channel6 has quit [Quit: Leaving]
<Cat_1> I've seen a lot of frameworks come and go, Rails has been around a pretty long time.
<pipework> Yeah like .NET, oh wait.
amundj has joined #ruby
<pipework> It just keeps coming. My nightmares... the therapy.
<agent_white> Hahaha
<Cat_1> .NET wasn't that bad the last time I worked with it
<Cat_1> which admittedly was years ago
<pipework> cummerbund is my safe word, baby.
allcentury has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
jeanlinux has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
sanadora has quit [Quit: sanadora]
byprdct has quit [Read error: Connection reset by peer]
tvw has joined #ruby
cantonic has joined #ruby
mikepack has joined #ruby
amundj has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has quit [Remote host closed the connection]
<agent_white> Gnight everyone.
agent_white has quit [Quit: night]
kiyote23 has quit [Remote host closed the connection]
crueber has joined #ruby
havenwood has joined #ruby
amil has joined #ruby
adriancb has quit [Remote host closed the connection]
commmmodo has joined #ruby
livathinos has joined #ruby
bal1 has quit [Ping timeout: 240 seconds]
aganov has quit [Remote host closed the connection]
ta has joined #ruby
iwishiwerearobot has quit [Quit: Be back later ...]
rylev_ has quit [Read error: Connection reset by peer]
livathinos has quit [Remote host closed the connection]
rylev has joined #ruby
kamilc__ has quit [Ping timeout: 245 seconds]
apeiros_ has joined #ruby
gsd has joined #ruby
razieliyo has quit [Quit: Saliendo]
kapil__ has quit [Quit: Connection closed for inactivity]
bkulbida has joined #ruby
pygospa has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
pygospa has joined #ruby
tobago has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
AlexRussia has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
chinmay_dd has quit [Quit: Leaving]
Darryl__ has joined #ruby
gsd has quit [Client Quit]
ta has quit [Remote host closed the connection]
AlexRussia has joined #ruby
green-big-frog is now known as frog|OFF
msgodf has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
max96at|off is now known as max96at
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jaequery has joined #ruby
asmodlol has quit [Ping timeout: 245 seconds]
tubuliferous has joined #ruby
larissa has joined #ruby
dstarh has joined #ruby
davedev24_ has joined #ruby
frog|OFF is now known as green-big-frog
RaCx has joined #ruby
mclee has quit [Ping timeout: 256 seconds]
asmodlol has joined #ruby
banister has joined #ruby
TPBallbag is now known as Ballkenende
fabrice31 has quit [Remote host closed the connection]
AFKGeek has quit [Quit: Fades into the shadows]
fabrice31 has joined #ruby
asmodlol has quit [Client Quit]
quimrstorres has joined #ruby
hmsimha has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 250 seconds]
procat has quit [Ping timeout: 264 seconds]
armyriad has quit [Ping timeout: 272 seconds]
_JokerDoom has joined #ruby
Lucky__ has joined #ruby
armyriad has joined #ruby
anaeem1_ has joined #ruby
hamakn has joined #ruby
renderful has joined #ruby
JokerDoom has quit [Ping timeout: 258 seconds]
techsethi_ has joined #ruby
diegoviola has joined #ruby
asteros has joined #ruby
diegoviola has quit [Client Quit]
studiotate has joined #ruby
diegoviola has joined #ruby
ta has joined #ruby
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
hamakn has quit [Ping timeout: 256 seconds]
t0rc has quit [Quit: WeeChat 1.0.1]
procat has joined #ruby
tubuliferous has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has quit [Ping timeout: 250 seconds]
armyriad has quit [Ping timeout: 255 seconds]
armyriad has joined #ruby
Xiti has quit [Quit: Xiti]
DaniG2k has quit [Ping timeout: 244 seconds]
msgodf has joined #ruby
Stoge88 has joined #ruby
banister has joined #ruby
rajeshchawla has joined #ruby
jenrzzz has joined #ruby
<shevy> oh cool
<shevy> .start_with? accepts more than one argument
thumpba_ has joined #ruby
<shevy> >> "abcdef".start_with?('e','a')
<eval-in__> shevy => true (https://eval.in/236623)
dblessing has quit [Ping timeout: 245 seconds]
Xiti has joined #ruby
<havenwood> shevy: would be nifty if #include? did too!
tier has quit [Ping timeout: 255 seconds]
<shevy> hmm
<shevy> I guess so
thumpba has quit [Ping timeout: 255 seconds]
<shevy> but I think I may exchange code like string[0,1] with .start_with?
<shevy> it seems to be more consistent with when I also would want to do array.first rather than array[0]
<Morrolan> With include? you'd have the potential ambiguity of whether it'd return true if any, or all arguments, would be included, though.
ArchBeOS has joined #ruby
<shevy> seems consistent with .start_with? behaviour, it gives true if any is found
<ArchBeOS> hey guys. how do i call a class method in an instantiated object?
DonOtreply has quit [Quit: DonOtreply]
<shevy> no
<shevy> you call it on the class
<shevy> if the creator was clever then he also added it as an instance method
<ArchBeOS> Example: I have @site = Site.new and Site class has Site.set_stuff. How do I get to set_stuff from @site?
<shevy> through Site.set_stuff
<havenwood> ArchBeOS: self.class.set_stuff
<havenwood> ArchBeOS: did you create Site?
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
<ArchBeOS> havenwood: nope. let me write out a real world scenario real quick.
<havenwood> Morrolan: i guess you can't start with several different things, but you can include several different things
lmickh has joined #ruby
GeorgesLeYeti has quit [Quit: Leaving]
Spami has joined #ruby
<havenwood> apeiros: topic could use a bump for 2.2.0-rc1, if you're still doing RCs up there :)
<havenwood> 6 days till 2.2!
<havenwood> ArchBeOS: aack, vegetables!
fivetwentysix has joined #ruby
lkb has joined #ruby
karmatr0n has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 264 seconds]
<ArchBeOS> tell me about it
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #ruby
<shevy> that code is really complicated
jaequery has joined #ruby
mjuszczak has joined #ruby
<shevy> >> module Foo; def self.foo; puts 'Hi from foo'; end; end; class Bar; include Foo; end; bar = Bar.new; bar.foo
<eval-in__> shevy => undefined method `foo' for #<Bar:0x422b0c40> (NoMethodError) ... (https://eval.in/236631)
<shevy> ArchBeOS as you can see, Bar won't know of the class method defined on module Foo
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ArchBeOS> hmm
sigurding has quit [Quit: sigurding]
<ArchBeOS> so there isnt a way?
davedev24_ has quit [Ping timeout: 258 seconds]
<ArchBeOS> im gonna just rework the problem
<ArchBeOS> there's gotta be an easier way
davedev24_ has joined #ruby
<ArchBeOS> thanks guys.
gsd has joined #ruby
<shevy> ArchBeOS here is how you can define both in a module: http://pastie.org/9790179
<shevy> both calls work
<shevy> Foo.foo would essentially be the same as your Site.set_stuff example
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> though set_stuff wants an argument, so you would have to extend Foo.foo to accept/deal with an argument too
<ArchBeOS> extend self. let me read more on that. this might solve my issue :-)
<shevy> the first answer on http://stackoverflow.com/questions/17552915/ruby-mixins-extend-and-include is ok to start explaining
<shevy> it is best if you write this on your own btw from zero, once your brain groks it, it will be easy
<shevy> it illustrates the example by using Bacon and Egg
<ArchBeOS> thanks shevy and havenwood.
<shevy> never before has Egg.ancestors been put to such beautiful use
<ArchBeOS> i got a start :-)
quimrstorres has quit []
<shevy> I would have expected class Hen to be part of the ancestor chain
<shevy> "So what does all this mean? extend and include do the same thing on different levels"
Ballkenende has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
<shevy> hmm
BlackGear has joined #ruby
<shevy> havenwood the only alternatives to class << self are
<shevy> def self.name
<shevy> and *eval* ways, right?
<havenwood> shevy: i'm sure we could figure out other ways to get a method bound, but sane ways sure :P
davedev24_ has quit [Ping timeout: 258 seconds]
RTG` has quit [Ping timeout: 272 seconds]
shazaum has joined #ruby
RTG` has joined #ruby
patrick99e99 has joined #ruby
lkba has joined #ruby
lkba has quit [Client Quit]
lkba has joined #ruby
lkba has quit [Remote host closed the connection]
lkba has joined #ruby
sambao21 has joined #ruby
kenneth has joined #ruby
lkb has quit [Quit: Wychodzi]
stunder has joined #ruby
asteros has quit [Quit: asteros]
<shevy> hmm
<shevy> we have method() and Unbound...something
yalue has joined #ruby
<shevy> I wonder if matz' brain is so big that he always knows which ways are possible
patrick99e99 has quit [Ping timeout: 244 seconds]
xymbol has quit [Quit: Be back later ...]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
amil has quit [Quit: Linkinus - http://linkinus.com]
renderful has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
banister has joined #ruby
slester has joined #ruby
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
RaCx_ is now known as RaCx
RaCx has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xymbol has joined #ruby
charliesome has quit [Quit: zzz]
jenrzzz has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RaCx has joined #ruby
freerobby has quit [Quit: Leaving.]
davedev24_ has joined #ruby
sailias1 has joined #ruby
workmad3 has joined #ruby
sailias has quit [Read error: No route to host]
Ballkenende has joined #ruby
fmcgeough has joined #ruby
deric_skibotn has joined #ruby
sailias1 has quit [Client Quit]
apoorvparijat has quit [Read error: No route to host]
sailias has joined #ruby
apoorvparijat has joined #ruby
dangerousdave has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
geggam has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
studiotate has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 265 seconds]
studiotate has joined #ruby
n80 has quit [Quit: n80]
joonty has quit [Quit: Leaving]
sigurding has joined #ruby
studiotate_ has joined #ruby
dangerousdave has quit [Ping timeout: 255 seconds]
studiotate has quit [Ping timeout: 258 seconds]
Photism has quit [Quit: Leaving]
DaniG2k has joined #ruby
roolo has quit [Quit: AAAAaaaaAAAAAAA]
rylev has quit [Remote host closed the connection]
Ballkenende has quit [Remote host closed the connection]
josephnd1nton has joined #ruby
jmdade has joined #ruby
theother1tupidgu has joined #ruby
ramfjord has joined #ruby
theother1tupidgu has quit [Client Quit]
yokel has quit [Ping timeout: 265 seconds]
pzzn has quit [Read error: Connection reset by peer]
theother1tupidgu has joined #ruby
yokel has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
devoldmx has joined #ruby
rismoney1 has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
rshetty has quit [Remote host closed the connection]
ghostmoth has joined #ruby
pietr0 has joined #ruby
josephnd1nton has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
DonOtreply has joined #ruby
DaniG2k has quit [Quit: leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mleung has joined #ruby
thumpba has joined #ruby
Inoperable has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
thumpba has quit [Remote host closed the connection]
Takle_ has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
Takle has joined #ruby
bricker`work has joined #ruby
thumpba_ has quit [Ping timeout: 240 seconds]
thumpba has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
arya_ching has quit []
chrishough has joined #ruby
davedev24_ has joined #ruby
bhaak has quit [Ping timeout: 264 seconds]
jheg has quit [Quit: jheg]
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
nateberkope has joined #ruby
<theother1tupidgu> hi
karmatr0n has joined #ruby
<theother1tupidgu> why @vars doesn't work in this gist https://gist.github.com/theotherstupidguy/8a80916b98bd3b589620
psy has joined #ruby
asteros has joined #ruby
sailias has quit [Quit: Leaving.]
davedev2_ has quit [Ping timeout: 258 seconds]
lkba_ has joined #ruby
mjuszczak has quit []
Ballkenende has joined #ruby
nateberkopec has quit [Ping timeout: 255 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
ponga has quit [Remote host closed the connection]
chrishough has joined #ruby
econerd4ever has joined #ruby
Ballkenende has quit [Remote host closed the connection]
ponga has joined #ruby
Tranquility has joined #ruby
<eam> theother1tupidgu: @name is an instance variable. In Doesntwork, which instance are you accessing?
lkba has quit [Ping timeout: 244 seconds]
dANO_ has quit []
cassianoleal has quit [Quit: (null)]
<eam> theother1tupidgu: what is "self" inside your X.create {} blocks?
<theother1tupidgu> self there is a new obj from X, i suppose
Timgauthier is now known as timgauthier_away
<theother1tupidgu> eam thnx
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
<eam> so np
<eam> s/so //
<theother1tupidgu> yup :)
ponga has quit [Ping timeout: 250 seconds]
dblessing has joined #ruby
apoorvparijat has quit []
Timgauthier has joined #ruby
Takle has quit [Read error: No route to host]
Takle has joined #ruby
lmickh has quit [Ping timeout: 250 seconds]
AndyBotwin has joined #ruby
green-big-frog is now known as frog|OFF
lmickh has joined #ruby
havenwood has quit [Remote host closed the connection]
maletor has joined #ruby
tier has joined #ruby
frog|OFF is now known as green-big-frog
lkba_ has quit [Quit: Bye]
lkba has joined #ruby
Takle_ has joined #ruby
adriancb has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
gaboesquivel has joined #ruby
sailias has joined #ruby
shuber_ has joined #ruby
ctrlrsf has joined #ruby
RaCx has joined #ruby
centrx has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
allcentury has quit [Ping timeout: 240 seconds]
terlar has quit [Ping timeout: 245 seconds]
athan has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
<athan> How do I populate an `irb` session with modules?
shuber_ has quit [Remote host closed the connection]
tejas-manohar has joined #ruby
jeanlinux has quit [Remote host closed the connection]
<centrx> athan, use require, or make a little script and load it with irb
<athan> centrix: Ahh, thank you :)
rudisimo has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
adriancb has joined #ruby
goodenough has quit [Remote host closed the connection]
tfitts has joined #ruby
shuber_ has joined #ruby
goodenough has joined #ruby
despai has joined #ruby
Timgauthier is now known as timgauthier_away
LouisRoR has quit [Ping timeout: 250 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paramourne has quit [Remote host closed the connection]
wallerdev has joined #ruby
bkulbida has quit [Quit: bkulbida]
<tfitts> Is there an easy way to take an array and sum up the elements make add the sum of the elements below? such that [1,3,4,6] becomes [1,4,8,14]
sanguisdex has quit [Quit: Leaving.]
<shevy> code code code more code people
<shevy> don't be lazy
bkulbida has joined #ruby
<tfitts> and even more important [1,3,0,4,6] becomes [1,4,4,8,14]
<shevy> tfitts several ways but what is the criterium?
<shevy> element - 1 + element == new element ?
<shevy> if that is the case then I think this is a job for .inject
<shevy> it looks a bit like a fibonacci series
elaptics is now known as elaptics`away
theotherstupidgu has quit [Quit: leaving]
<tfitts> shevy: what I have is a day split into 30 minute time increments. so the array has 48 elements each with the sales during that 30 minute period. Now I need to translate it to a running total, such that element 24 has the sum of sales through noon that day.
<wallerdev> id just overwrite the array as i looped through, seems easy enough
<tfitts> I guess just slice and sum?
<tfitts> that probably works pretty easy
sigurding has quit [Quit: sigurding]
_maes_ has joined #ruby
<tfitts> or how would you loop through and overwrite. because I can't make element 3 be 0+1+2+3 and then make element 4 be 0+1+2+3+4 unless I do a new array, but that's not really a problem.
mclee has joined #ruby
n80 has joined #ruby
shuber_ has quit [Remote host closed the connection]
psy has quit [Disconnected by services]
<Karunamon> Has anyone ever written a somewhat complex program in procedural style and then realized after a few weeks that it's becoming a pain to work on?
tristanp has joined #ruby
psy_ has joined #ruby
theother1tupidgu has quit [Quit: leaving]
<godd2> tfitts I know how to do it in clojure. (into [] (reductions + [1 3 0 4 6])) will return [1 4 4 8 14] but is there a reductions method in ruby?
shuber_ has joined #ruby
<wallerdev> >> ary = [1,3,0,4,6]; sum = 0; ary.each_with_index { |x, i| tmp = ary[i]; ary[i] += sum; sum += tmp }
<eval-in__> wallerdev => [1, 4, 4, 8, 14] (https://eval.in/236652)
arya_ching has joined #ruby
<wallerdev> basic enough
<wallerdev> could be simplified
<banister> wallerdev quite inelegant though ;)
<banister> a brute-force imperative approach rather than something neat and functional
<banister> i think you could probably do it very sexily with a recursive function
<banister> but i'm too distracted right now to focus on it
<banister> and the margin is too small to contain it
<banister> ;)
StoneCypher has joined #ruby
dfinninger has quit [Remote host closed the connection]
Sunlorhic has joined #ruby
ndrei has joined #ruby
reinaldob has quit [Remote host closed the connection]
rismoney1 has joined #ruby
goodenough has quit [Remote host closed the connection]
Crazy_Atheist has quit [Read error: Connection reset by peer]
thumpba_ has joined #ruby
<wallerdev> haha yeah its pretty ugly
<godd2> >> [1,3,0,4,6].inject([]) {|acc, elem| acc << acc.last.to_i + elem }
<eval-in__> godd2 => [1, 4, 4, 8, 14] (https://eval.in/236653)
<eka> is there anyway I can check for a file existence in an URL without having to download it?
<wallerdev> o.o
bkulbida has quit [Quit: bkulbida]
spider-mario has joined #ruby
<bricker`work> eka: What do you mean exactly?
mjuszczak has joined #ruby
<shevy> eka if you use curl or wget then yes
<wallerdev> taking advantage of nil.to_i lol
<godd2> hehe you like that?
<bricker`work> eka: you can try a HEAD request and check the content type, size, status, etc,
<eka> bricker`work: I have a setting to uploda a file or provide a link... if link is broken I need to default to uploaded file
AndyBotwin has quit [Read error: Connection reset by peer]
<shevy> eka cmd = 'wget --spider -v URL_GOES_IN_HERE 2>&1'; puts cmd; system cmd
thumpba has quit [Ping timeout: 255 seconds]
sanguisdex has joined #ruby
<bricker`work> eka: I would just do a simple HEAD request and make sure you get a 200 response
<eka> shevy: how I know it failed or not?
paramourne has joined #ruby
<wallerdev> godd2: no :p
<eka> bricker`work: using net::Http?
<godd2> wallerdev that's ducktyping, man
<wallerdev> lol
bkulbida has joined #ruby
n80 has quit [Quit: n80]
<wallerdev> couldve just done || 0
<bricker`work> eka: yeah, `Net::HTTP.new(uri.host).request_head(uri.path).code == "200"`
<bricker`work> something like that
<eka> bricker`work: thanks will try
ghostmoth has quit [Read error: Connection reset by peer]
n80 has joined #ruby
Takle has joined #ruby
renderful has quit [Remote host closed the connection]
lmickh has quit [Quit: No Ping reply in 180 seconds.]
<godd2> wallerdev looks like ||0 is about 8% faster. But mine is WAYYYY more readable :P
<wallerdev> :p
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
arya_ching has quit []
Rene has left #ruby [#ruby]
GaryOak_ has joined #ruby
wgrepm has quit [Remote host closed the connection]
<wallerdev> >> [1,3,0,4,6].inject([]) {|acc, elem| acc << acc.fetch(-1, 0) + elem }
<eval-in__> wallerdev => [1, 4, 4, 8, 14] (https://eval.in/236655)
shuber_ has quit [Remote host closed the connection]
<wallerdev> how bout that :p
Takle_ has quit [Ping timeout: 265 seconds]
asteros has quit [Quit: asteros]
<tejas-manohar> << puts 'lol testing'
<wallerdev> lol
<tejas-manohar> how do u do the eval thing
<wallerdev> arrows the other way
<tejas-manohar> >> puts 'testing again'
<eval-in__> tejas-manohar => testing again ... (https://eval.in/236656)
<godd2> fetch is between the two but closer in speed to mine
<tejas-manohar> ah
<eka> bricker`work: that did it thanks
<godd2> so ||0 is still king
ghostmoth has joined #ruby
<tejas-manohar> ||0?
<wallerdev> lol
Sunlorhic has quit [Ping timeout: 255 seconds]
<wallerdev> id rather see the fetch one in a codebase
ramfjord has quit [Ping timeout: 256 seconds]
<wallerdev> how does my tmp variable one compare :p
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
_cb1 has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
renderful has joined #ruby
kiyote23 has joined #ruby
<godd2> tmp var cersion takes the longest :)
<godd2> version*
shuber_ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
Takle has quit [Ping timeout: 265 seconds]
<bricker`work> godd2: did you just have a stroke?
<bricker`work> tmp var cersion
tlarevo has quit []
<bricker`work> derp
Takle has joined #ruby
apurcell has joined #ruby
Megtastique has quit []
commmmodo has quit [Quit: commmmodo]
Hobogrammer has joined #ruby
claw___ has joined #ruby
_cb1 has joined #ruby
Dopagod has joined #ruby
havenwood has joined #ruby
jenrzzz has joined #ruby
Hobogrammer_ has joined #ruby
Hobogrammer_ has quit [Client Quit]
asteros has joined #ruby
ponga has joined #ruby
Ballkenende has joined #ruby
kl__ has quit [Ping timeout: 272 seconds]
kiyote23 has quit [Remote host closed the connection]
claw__ has quit [Ping timeout: 265 seconds]
lolmaus has joined #ruby
dfinninger has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
kl has joined #ruby
dfinninger has joined #ruby
<shevy> eka you can also use `` like: result = `#{cmd}`
marr has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 245 seconds]
apurcell has quit [Quit: Be back later ...]
ponga has quit [Ping timeout: 250 seconds]
andikr has quit [Remote host closed the connection]
marr has joined #ruby
Ballkenende has quit [Ping timeout: 272 seconds]
apurcell has joined #ruby
<tejas-manohar> hey guys
<tejas-manohar> i followed the best answer here and loaded tha function into pry
jstimm has joined #ruby
jstimm has quit [Max SendQ exceeded]
<tejas-manohar> then i tried http://i.imgur.com/gke7Voy.png w/ a random us # and thats the result
<tejas-manohar> i just wanted it formatted as s string
<tejas-manohar> why is an array weird thing
<tejas-manohar> formatted_number(num)[0] returns "("
giuseppesolinas has quit [Quit: This computer has gone to sleep]
shazaum has joined #ruby
shazaum has quit [Changing host]
green-big-frog is now known as frog|OFF
commmmodo has joined #ruby
<jenrzzz> tejas-manohar: see jwal's comment on the SO question
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jenrzzz> tejas-manohar: need to do digits = digits.join before the format string
karmatr0n has quit []
<tejas-manohar> jenrzz: NoMethodError: undefined method `join' for "615 776 4114":String
<jenrzzz> tejas-manohar: gist the whole function you're using please
lolmaus has quit [Quit: Konversation terminated!]
<jenrzzz> tejas-manohar: https://gist.github.com
n008f4g_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby
<jenrzzz> tejas-manohar: call digits.join on line 8
Takle has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
Takle has joined #ruby
<havenwood> >> "1 (703) 451-5115".sub(/\A1/, '').scan(/\d/)
<eval-in__> havenwood => ["7", "0", "3", "4", "5", "1", "5", "1", "1", "5"] (https://eval.in/236666)
mloveless has joined #ruby
<tejas-manohar> lol nice
<tejas-manohar> thats way better
kirun has joined #ruby
Spami has quit [Remote host closed the connection]
<tejas-manohar> >> "6157764114".sub(/\A1/, '').scan(/\d/)
<eval-in__> tejas-manohar => ["6", "1", "5", "7", "7", "6", "4", "1", "1", "4"] (https://eval.in/236670)
<tejas-manohar> >> "qoiwnewqe".sub(/\A1/, '').scan(/\d/)
<eval-in__> tejas-manohar => [] (https://eval.in/236671)
ta has joined #ruby
patrick99e99 has joined #ruby
apurcell has quit [Read error: Connection reset by peer]
<tejas-manohar> >> "123 1234 1234".sub(/\A1/, '').scan(/\d/)
<eval-in__> tejas-manohar => ["2", "3", "1", "2", "3", "4", "1", "2", "3", "4"] (https://eval.in/236672)
<tejas-manohar> havenwood: do you know a quick way to make it recognize thats not a real phone number
<wallerdev> call it
renderful has quit [Remote host closed the connection]
<tejas-manohar> havenwood: in node i once did - https://github.com/tejasmanohar/is-phone-number/blob/master/index.js#L3
<havenwood> wallerdev: haha
apurcell has joined #ruby
pandaant has joined #ruby
<tejas-manohar> wallerdev: lol great idea, waste my twilio credits on that
<tejas-manohar> :P
<havenwood> tejas-manohar: real US number?
rpag has joined #ruby
<wallerdev> it could be a valid number, you can put extra numbers at the end
<tejas-manohar> havenwood: nah my regex supports international just wanna know equivalent of that .match in ruby
<wallerdev> like 1-800-COOL-CARPETS
<jenrzzz> tejas-manohar: i think somewhere you could find a list of active area codes and prefixes
<tejas-manohar> international tho
<tejas-manohar> var re = /^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/; seems good
<jenrzzz> tejas-manohar: regex is good enough most of the time
<wallerdev> seems like twilio would have a phone number validater if thats what youre using?
<wallerdev> right?
zacts has joined #ruby
<wallerdev> thats lke their job
asteros has quit [Quit: asteros]
<jenrzzz> wallerdev: doesn't look like it. idk if this is really that common of a use case cause usually if you want to ensure a phone is valid, you're going to call it at some point
yfeldblum has quit [Remote host closed the connection]
kenichi|away is now known as kenichi
Takle has quit [Ping timeout: 256 seconds]
<tejas-manohar> well yeah theyre gonna call/text it
__JokerDoom has joined #ruby
<tejas-manohar> i also dont wanna store a ton of random phone numbers in my db no point
<tejas-manohar> like qowienqweqwe in my db
greenbagels_ has joined #ruby
kotk_ has joined #ruby
pietr0_ has joined #ruby
patrick99e99 has quit [Ping timeout: 265 seconds]
<tejas-manohar> 99% sure theyll do some validation but i dont want to rely on them and jsut send bad data and get error responses lol
<jenrzzz> tejas-manohar: yeah, that regex should do the trick then
bahar_ has joined #ruby
mleung_ has joined #ruby
chrisseaton_ has joined #ruby
adambeynon__ has joined #ruby
tmoore_ has joined #ruby
Tranquility_ has joined #ruby
jeff-ooh has joined #ruby
huddy_ has joined #ruby
kapott_ has joined #ruby
ELLIOTTCABLE_ has joined #ruby
shaman42 has joined #ruby
<tejas-manohar> jenrzzz: which function in ruby should i use? as you can see i used .test() in js but that doesn't seem to exist --> regex /^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/
jrunning_ has joined #ruby
giuseppesolinas has joined #ruby
Soda has quit [Remote host closed the connection]
<tejas-manohar> jenrzzz: in js, re.test(num);
<jenrzzz> tejas-manohar: use the =~ operator
kapott_ has quit [Client Quit]
<jenrzzz> tejas-manohar: 'string' =~ /pattern/
r0bby_ has joined #ruby
<tejas-manohar> awesome
ta_ has joined #ruby
<tejas-manohar> >> '6157764114' =~ /^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/
<eval-in__> tejas-manohar => nil (https://eval.in/236696)
bweston92_ has joined #ruby
reset has joined #ruby
suffice has joined #ruby
<tejas-manohar> >> '1 615 776 4114' =~ /^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/
<eval-in__> tejas-manohar => nil (https://eval.in/236698)
<jenrzzz> tejas-manohar: ruby's regex engine might be a bit different from javascript's. check out http://rubular.com
<tejas-manohar> jenrzzz: oh ok
wang has joined #ruby
musicmatze1 has joined #ruby
multi_io_ has joined #ruby
PaulePan1er has joined #ruby
rx has joined #ruby
pgmcgee- has joined #ruby
<tejas-manohar> jenrzzz: So when it returns nil that means what?
xenomorp has joined #ruby
Patteh has joined #ruby
<jenrzzz> tejas-manohar: it returns falsey if there's no match, true otherwise
kiki_lam1 has joined #ruby
<tejas-manohar> ah
athan_ has joined #ruby
kiyote23 has joined #ruby
giuseppesolinas has quit [Client Quit]
Mongey_ has joined #ruby
pietr0 has quit [Ping timeout: 244 seconds]
bahar has quit [Ping timeout: 244 seconds]
Deele has quit [Ping timeout: 244 seconds]
clamstar has quit [Ping timeout: 244 seconds]
mleung has quit [Ping timeout: 244 seconds]
LRgraham has quit [Ping timeout: 244 seconds]
TrafficMan has quit [Ping timeout: 244 seconds]
bahar_ is now known as bahar
skmp_ has quit [Ping timeout: 244 seconds]
chrisseaton has quit [Ping timeout: 244 seconds]
multi_io has quit [Ping timeout: 244 seconds]
shaman42_ has quit [Ping timeout: 244 seconds]
kotk has quit [Ping timeout: 244 seconds]
Mongey has quit [Ping timeout: 244 seconds]
PaulePanter has quit [Ping timeout: 244 seconds]
paramourne has quit [Ping timeout: 244 seconds]
Tranquility has quit [Ping timeout: 244 seconds]
diegoviola has quit [Ping timeout: 244 seconds]
atomi_ has joined #ruby
Parker0 has quit [Ping timeout: 244 seconds]
kapott has quit [Ping timeout: 244 seconds]
atomi has quit [Ping timeout: 244 seconds]
huddy has quit [Ping timeout: 244 seconds]
akkad has quit [Ping timeout: 244 seconds]
adambeynon_ has quit [Ping timeout: 244 seconds]
ELLIOTTCABLE has quit [Ping timeout: 244 seconds]
suffice_ has quit [Ping timeout: 244 seconds]
vjt_ has quit [Ping timeout: 244 seconds]
tmoore has quit [Ping timeout: 244 seconds]
Patteh_ has quit [Ping timeout: 244 seconds]
wang_ has quit [Ping timeout: 244 seconds]
troyready has quit [Ping timeout: 244 seconds]
Jelco has quit [Ping timeout: 244 seconds]
kiki_lamb has quit [Ping timeout: 244 seconds]
kith has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 244 seconds]
_JokerDoom has quit [Ping timeout: 244 seconds]
tvw has quit [Ping timeout: 244 seconds]
athan has quit [Ping timeout: 244 seconds]
pgmcgee has quit [Ping timeout: 244 seconds]
bweston92 has quit [Ping timeout: 244 seconds]
Deele has joined #ruby
robbyoconnor has quit [Ping timeout: 244 seconds]
greenbagels has quit [Ping timeout: 244 seconds]
kalz has quit [Ping timeout: 244 seconds]
arrubin has quit [Ping timeout: 244 seconds]
{xenomorph} has quit [Ping timeout: 244 seconds]
musicmatze has quit [Ping timeout: 244 seconds]
malcolmva has quit [Ping timeout: 244 seconds]
jrunning has quit [Ping timeout: 244 seconds]
genta has quit [Ping timeout: 244 seconds]
iaj has quit [Ping timeout: 244 seconds]
arrubin has joined #ruby
pietr0_ is now known as pietr0
Jelco_ has joined #ruby
mleung_ is now known as mleung
arrubin has quit [Changing host]
arrubin has joined #ruby
<Zleec> lol
vjt has joined #ruby
<jenrzzz> netsplit?
troyreadyy has joined #ruby
<tejas-manohar> lol
chrisseaton_ is now known as chrisseaton
LRgraham has joined #ruby
<tejas-manohar> DDOS
<shevy> NETWARS
<tejas-manohar> isn't regex universal? --> /^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/
skmp_ has joined #ruby
<shevy> ONLY ONE SIDE WILL PREVAIL
<shevy> god that is a monster of a regex man
adambeynon__ is now known as adambeynon_
tmoore_ is now known as tmoore
diegovio1 has joined #ruby
akkad has joined #ruby
<jenrzzz> tejas-manohar: try writing it from scratch in the rubular editor
ramfjord has joined #ruby
rx is now known as clamstar
<tejas-manohar> ah, sure
Tranquility_ is now known as Tranquility
<tejas-manohar> i just thought regex was universal
giuseppesolinas has joined #ruby
<jenrzzz> tejas-manohar: in theory, yeah, but things like capture groups and backreferences can have different implementations
<tejas-manohar> ok sure
huddy_ is now known as huddy
iaj has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
Guest73815 is now known as tekacs
tekacs is now known as Guest9929
jrunning_ is now known as jrunning
Guest9929 has quit [Quit: Disappearing... *poof*]
freerobby has joined #ruby
freerobby has quit [Client Quit]
<shevy> I always document my regexes
<jenrzzz> i don't #yolo
ELLIOTTCABLE_ is now known as ELLIOTTCABLE
josephnd1nton has joined #ruby
JimmyNeutron has quit [Read error: Connection reset by peer]
<wallerdev> /a/
<wallerdev> # matches the letter a
genta has joined #ruby
<eam> tejas-manohar: no, regex is not universal
testcore has quit [Remote host closed the connection]
<jenrzzz> eam: does JS use PCRE?
mjuszczak has quit []
<eam> there's basic POSIX (grep), extended posix (grep -E) and perl/PCRE (grep -P)
<eam> jenrzzz: no I think it uses ERE
<eam> ruby uses PCRE, but it's somewhat buggy
testcore has joined #ruby
<jenrzzz> what's buggy about it?
renderful has joined #ruby
Takle has joined #ruby
Takle has quit [Read error: Connection reset by peer]
<eam> small implementation details, like I recall running into problems in how $ is handled
TrafficMan_ has joined #ruby
tekmaster has joined #ruby
atomical has joined #ruby
freerobby has joined #ruby
slester has quit [Remote host closed the connection]
<jenrzzz> ah, yeah. i see those more as quirks than bugs
Takle has joined #ruby
<eam> fair
<eam> not like there's a formal spec
<eam> I wish ruby used libpcre though
<havenwood> tejas-manohar: Unsupported use of {N,M} as general quantifier; in Perl 6 please use ** N..M (or ** N..*).
georgesmith has joined #ruby
<tejas-manohar> havenwood: ?
<havenwood> Whose Regexp shall reign supreme?
<jenrzzz> eam: i wonder how hard that would be to implement and if it it'd be worth it
<tejas-manohar> havenwood: what were you commenting on?
Inoperable has quit [Quit: Rectified]
<tejas-manohar> in perl 6
cliffstah has quit [Quit: ZNC - http://znc.in]
<eam> jenrzzz: it's easy, there are some gems binding it
mjuszczak has joined #ruby
<havenwood> tejas-manohar: just joking, that's what your regex errors with in perl6
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<tejas-manohar> i've done very very little perl but dont remember mentioning it here
<tejas-manohar> Oh
<tejas-manohar> Lol
kalz has joined #ruby
<tejas-manohar> Never tried Perl 6, only 5 and below
josephnd1nton has quit [Ping timeout: 264 seconds]
<tejas-manohar> havenwood: you use perl?
<havenwood> tejas-manohar: nope, but i like to spy on perl6
<tejas-manohar> o lol
<eam> shevy: also that regex is pretty damn simplistic
<tejas-manohar> i've only done so for hacking on duckduckgo - https://github.com/tejasmanohar/zeroclickinfo-spice/commits/master
<shevy> if I have a string = 'abc def ghi jkl', and an array = ['ghi','mno'], what would be the simplest way to check if any of the array is included in string ?
tejas-manohar has quit [Quit: Page closed]
<havenwood> tejas-manohar: it's getting there!: http://perl6.org/compilers/features
malcolmva has joined #ruby
bassclef_ has joined #ruby
athan_ is now known as athan
dfinninger has quit [Remote host closed the connection]
bassclef_ is now known as axilla
<shevy> eam this is the perversion of perl
<shevy> actually he commented the regex
<shevy> I give that guy credit for that
ducklobster has quit [Ping timeout: 272 seconds]
<havenwood> >> 'abc def ghi jkl'.scan Regexp.union(['ghi','mno'])
<eval-in__> havenwood => ["ghi"] (https://eval.in/236705)
<havenwood> hrm, how could you do that better?
tyll has joined #ruby
giuseppesolinas has joined #ruby
sailias1 has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> havenwood: can it be better?
<havenwood> eam: maybe not
sailias has quit [Read error: No route to host]
tyll_ has quit [Ping timeout: 250 seconds]
<shevy> havenwood hmm
<shevy> ok
chipotle has quit [Excess Flood]
<shevy> >> Regexp.union(['ghi','mno'])
<eval-in__> shevy => /ghi|mno/ (https://eval.in/236706)
<shevy> whoa
<shevy> that is cool
thumpba_ has quit [Ping timeout: 258 seconds]
<havenwood> shevy: \o/
chipotle has joined #ruby
x1337807x has joined #ruby
ndrei has quit [Remote host closed the connection]
<shevy> you are a living library havenwood
<shevy> I need to download your brain
ndrei has joined #ruby
sarmiena_ has joined #ruby
luckyruby has joined #ruby
<jenrzzz> TIL
giuseppesolinas has quit [Quit: This computer has gone to sleep]
thumpba has joined #ruby
<shevy> oh wasamasa I immortalized you in a quote from IRC:
<shevy> <wasamasa> lukbitz: if you want to do business with people who are impressed by fat libraries and dead code, use java
POjadpw has joined #ruby
dorei has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
sailias1 has quit [Read error: Connection reset by peer]
sailias has joined #ruby
<shevy> I need more epic quotes from you folks
<centrx> shevy rulez
<shevy> naaah
<wasamasa> shevy: ok
<shevy> we need to have some conversation going
<shevy> eam what are you looking forward in perl6?
<havenwood> Guess what year streem replaces bash as default shell on OS X?
<wasamasa> havenwood: streem?
<shevy> can it?
<shevy> I thought it was just more like ... missing stuff that bash could do
<jenrzzz> '"when shit goes downhill, just lower your standards" -- michael scott' -- jenrzzz
<wasamasa> havenwood: oh that
<wasamasa> havenwood: I thought it was an experiment
<shevy> whoa
<shevy> "The second part in the pipeline ({|x|...}) is a function object."
<shevy> "If a function object is connected in the pipeline, it will be invoked for each elements in the stream."
<wasamasa> an experiment with 2885 stars
r0bby_ has quit [Quit: Konversation terminated!]
<wasamasa> damn
<wasamasa> I'm jelly
<shevy> they are monitoring matz
<shevy> he is like the justin bieber of programming!
<centrx> so dreamy
<havenwood> we should all start writing libraries in streem, working interpreter be damned
<jenrzzz> write a working streem interpreter in streem
diegovio1 is now known as diegoviola
renderful has quit [Remote host closed the connection]
<havenwood> speaking of streem, i can't get streeem to compile >.> ./streeem.go:15: undefined: vm.IO
rylev has joined #ruby
<havenwood> streem already has a go and lisp clone
<shevy> hehehe
<shevy> what the
<shevy> why are there 3 e
<eam> shevy: by perl6 you mean ruby?
diegoviola has quit [Quit: WeeChat 1.0.1]
mjuszczak has quit []
<wasamasa> havenwood: lol
<shevy> eam perl6
<shevy> the future of perl
<eam> so ruby
<shevy> well
<shevy> perl is not ruby and ruby is not perl
Crazy_Atheist has joined #ruby
<eam> shevy: interesting idea, not sure it holds up though
<wasamasa> so, someone hacked together a working version of streeem using CL
<wasamasa> fucking lispers
<shevy> and there is this raduko or rakudo or whatever
Crazy_Atheist is now known as Guest63766
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hahah
<shevy> yeah (fuck(them)
<wasamasa> schemers are more cool anyways
zacts has quit [Quit: leaving]
russt has joined #ruby
Guest63766 is now known as Crazy_Atheist
Crazy_Atheist has quit [Changing host]
Crazy_Atheist has joined #ruby
rylev has quit [Ping timeout: 250 seconds]
anaeem1 has joined #ruby
Takle_ has joined #ruby
triple_b has joined #ruby
sevvie has joined #ruby
arietis has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
<shevy> that reminds me
<shevy> why did matz actually come to the idea of experimenting with streem?
icebourg has joined #ruby
triple_b has quit [Client Quit]
POjadpw has quit [Quit: Leaving]
Takle has quit [Ping timeout: 265 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alicanyilmaz has joined #ruby
mjuszczak has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
<Zleec> matz is from japan
<shevy> lol
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
sea_local has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
shazaum has quit [Quit: Leaving]
PaulePan1er is now known as PaulePanter
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
havenn has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
cndiv has joined #ruby
BlackGear has joined #ruby
ponga has joined #ruby
cndiv is now known as Guest58050
econerd4ever has quit [Ping timeout: 240 seconds]
jnollette has quit [Remote host closed the connection]
luckyruby has quit [Quit: Leaving...]
Ballkenende has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
havenn is now known as havenwood
Ballkenende is now known as Guest88496
luckyruby has joined #ruby
jnollette has joined #ruby
econerd4ever has joined #ruby
sevvie has joined #ruby
<wasamasa> shevy: maybe he realized bash sucks
bkulbida has left #ruby [#ruby]
blizzy has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wasamasa> shevy: and wanted to do something else than writing ruby oneliners
arietis has joined #ruby
Guest88496 has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 240 seconds]
n80 has quit [Quit: n80]
triple_b has joined #ruby
bkulbida has joined #ruby
<alicanyilmaz> Guys do you recommend me to upgrade yosemite ?
blizzy is now known as blizzy
<Cat_1> I've done it
<Cat_1> It's not that bad.
<alicanyilmaz> BTW google chrome is really does memory leak
<alicanyilmaz> wasting my battery
<centrx> Yosemite seems to be not broken
<alicanyilmaz> is google chrome same in yours?
<Cat_1> update your git btw
<Cat_1> if you haven't
<alicanyilmaz> ok Cat_1
<Cat_1> vulnerability discovered today
kl has quit [Ping timeout: 240 seconds]
<alicanyilmaz> Cat_1: if you are using yosemite how chrome behaving ?
<alicanyilmaz> it is really bad i think
<Cat_1> Chrome seems fine
<Cat_1> I haven't had any problems.
<alicanyilmaz> what computer do you using ?
frog|OFF has quit [Remote host closed the connection]
<alicanyilmaz> mine is MBPr 15”
thoughnut has quit []
procat has quit [Quit: Lost terminal]
<alicanyilmaz> 2.2 ghz version
lessless has joined #ruby
<Cat_1> MacPro
<sandelius> Cat_1 alicanyilmaz chrome always eat my memory :/
<havenwood> alicanyilmaz: rMBP here and all is well on Yosemite 10.10.1
<Cat_1> How much RAM do you have?
<alicanyilmaz> 16 gig
<Cat_1> That should be relatively enough. Are you running extensions or addons that could be causing leaks?
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yalue has quit [Quit: return 0;]
<alicanyilmaz> adblocker and zenmate
<alicanyilmaz> i’m currently using
apurcell has quit [Ping timeout: 264 seconds]
georgesmith has quit [Ping timeout: 264 seconds]
<alicanyilmaz> when i sliding in facebook newfeed its freezing
<alicanyilmaz> when loading contents
chrishough has joined #ruby
georgesmith has joined #ruby
<Cat_1> Strange
<Cat_1> What's your disk usage like?
<Cat_1> you could be experiencing paging issues.
giuseppesolinas has joined #ruby
jamesaxl has joined #ruby
<alicanyilmaz> now reads in 58,215
<alicanyilmaz> writes out 41,070
<alicanyilmaz> data read 2,45 gig
<alicanyilmaz> data written 1,25 gig
<alicanyilmaz> data read/sec 17,3 kb
econerd4ever has quit [Remote host closed the connection]
<alicanyilmaz> data written sec 31,0 kb
<alicanyilmaz> Cat_1:
<Cat_1> 17.3 kb/sec seems really slow
<alicanyilmaz> its now 0 bytes O.O
<Cat_1> for disk IO
<alicanyilmaz> 819 bytes
<alicanyilmaz> what is the normal value
econerd4ever has joined #ruby
<alicanyilmaz> but not a disk io currently processing i think
<alicanyilmaz> Cat_1:
wldcordeiro_ has quit [Read error: Connection reset by peer]
<Cat_1> You can use gdb and attach it to the chrome process to see what's eating all your RAM
jerius has quit []
<alicanyilmaz> what gdb stands for ?
rodfersou has quit [Remote host closed the connection]
cantonic has joined #ruby
<alicanyilmaz> Cat_1:
<Cat_1> gcc debugger?
<fmcgeough> Gnu debugger
jerius has joined #ruby
<Cat_1> that one
Takle_ has quit [Ping timeout: 256 seconds]
<Cat_1> :-p
<alicanyilmaz> lol
<alicanyilmaz> Cat_1: you can remote my pc btw
anaeem1 has quit [Remote host closed the connection]
<alicanyilmaz> with teamviewer
<alicanyilmaz> etc
<alicanyilmaz> for look whats goign on
<alicanyilmaz> goin*
georgesmith has quit [Read error: Connection reset by peer]
<Cat_1> Sorry, got a lot to do
<alicanyilmaz> oh ok
georgesmith has joined #ruby
jeanlinux has joined #ruby
<alicanyilmaz> installing gdb with homebrew
BlackGea_ has joined #ruby
<alicanyilmaz> :)
<alicanyilmaz> thanks for advices Cat_1
<Cat_1> Good luck man
BlackGea_ has quit [Max SendQ exceeded]
econerd4ever has quit [Ping timeout: 250 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
Timgauthier has joined #ruby
<fmcgeough> I’m relatively new to Ruby and having fun using the language. I’m using it for various purposes including a reporting engine. I do wonder about how Ruby’ish my code is though. I find that not infrequently I’ll have to put a line at the end of a method to ensure that I”m returning what I want to return from my method. Is that fairly common? see : https://gist.github.com/fmcgeough/c0f85e05f41f11040397 for example.
BlackGea_ has joined #ruby
<havenwood> alicanyilmaz: you might want to look at lldb instead of or as well as gdb, since you're on a BSD not a GNU/Linux.
Takle has joined #ruby
jeanlinu_ has joined #ruby
BlackGear has quit [Ping timeout: 240 seconds]
zacts has joined #ruby
<alicanyilmaz> havenwood: i’m on macos
<havenwood> alicanyilmaz: picked that up from your mention of brew, and OS X is a BSD :)
lmickh has joined #ruby
<alicanyilmaz> oh ok
<alicanyilmaz> :)
<havenwood> alicanyilmaz: a descendant of FreeBSD
<dorei> fmcgeough: #tap might be usefull
jeanlinux has quit [Ping timeout: 245 seconds]
Timgauthier has quit [Max SendQ exceeded]
jeff-ooh has quit [Remote host closed the connection]
<dorei> >> puts 2; 1
<eval-in__> dorei => 2 ... (https://eval.in/236726)
jeanlinu_ has quit [Remote host closed the connection]
<havenwood> fmcgeough: yeah, it's common to use the last line for an implicit return
DLSteve has joined #ruby
<fmcgeough> havenwood: okey doke. thanks.
ghostmoth has quit [Quit: ghostmoth]
<fmcgeough> dorei: tap?
Soda has joined #ruby
<fmcgeough> dorei: never mind. found it.
tekmaster is now known as tekacs
RaCx has joined #ruby
<alicanyilmaz> Cat_1: its saying
<alicanyilmaz> pc register is not available
<alicanyilmaz> can’t attack process 258 which is google chrome
<alicanyilmaz> attach*
drPoggs has quit [Ping timeout: 272 seconds]
asmodlol has joined #ruby
Guest58050 has quit [Quit: WeeChat 0.4.3]
<Cat_1> Hmmm.
<Cat_1> standby
<alicanyilmaz> ok
rippa has quit [Ping timeout: 250 seconds]
frog|OFF has joined #ruby
n1lo has quit [Quit: Leaving]
frog|OFF is now known as green-big-frog
rippa has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spastorino has quit [Quit: Connection closed for inactivity]
<alicanyilmaz> Cat_1:
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
<alicanyilmaz> thanks
freerobby has joined #ruby
windowlicker has joined #ruby
<alicanyilmaz> Cat_1: btw i’m tested my disk speed with disk speed test on app store
<alicanyilmaz> 667 mb/sec write
<alicanyilmaz> 720 mb/sec disk read
beef-wellington has quit [Ping timeout: 264 seconds]
<Cat_1> That's more like it.
<Cat_1> You're fine
wallerdev has quit [Quit: wallerdev]
sevvie has quit [Read error: Connection reset by peer]
RTG` has quit [Ping timeout: 272 seconds]
BlackGea_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
<alicanyilmaz> ok
rylev has joined #ruby
havenwood has quit []
RTG` has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
ctooley has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<ctooley> I’m trying to get my grape API started. After following a lot of examples (which all seem just slightly different), I’m back to a very basic example based on the grap github MD.
<ctooley> However, my route for reaching the one class I have defined doesn’t seem to show up.
lolmaus has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
spastorino has joined #ruby
<ctooley> I have a app/api/api.rb that has “mount MyAPI::v1::Users”.
mleung has quit [Quit: mleung]
<ctooley> In config/routes.rb I have “mount API => ‘/‘“
beef-wellington has joined #ruby
jeff-ooh has joined #ruby
Pattt has joined #ruby
jenrzzz has joined #ruby
asmodlol has quit [Ping timeout: 250 seconds]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
<ctooley> and within myapi/v1/users.rb I have a resource named users with one get defined.
genta has quit [Quit: Quit]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
xymbol has quit [Quit: Be back later ...]
icebourg has quit []
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
vt102 has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
sailias1 has joined #ruby
sailias1 has quit [Client Quit]
Sunlorhic has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
aclearman037 has joined #ruby
papercode has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
cantonic has quit [Quit: cantonic]
tus has quit [Ping timeout: 250 seconds]
Sunlorhic has joined #ruby
rylev has quit [Remote host closed the connection]
davedev2_ has joined #ruby
agjacome has quit [Quit: leaving]
alicanyilmaz has left #ruby [#ruby]
terlar has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
sailias has quit [Ping timeout: 256 seconds]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
davedev24_ has quit [Ping timeout: 258 seconds]
qubit has left #ruby [#ruby]
diegoviola has joined #ruby
techsethi_ has quit [Quit: techsethi_]
rylev has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
freerobby has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
genta has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
zacts has quit [Ping timeout: 272 seconds]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 264 seconds]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
max96at is now known as max96at|off
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
geggam has quit [Ping timeout: 250 seconds]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
renderful has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
siwica has joined #ruby
josephnd1nton has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
rylev has quit [Ping timeout: 264 seconds]
ghostmoth has joined #ruby
rylev has joined #ruby
tuelz has joined #ruby
alicanyilmaz has joined #ruby
<tuelz> I'm trying to implement a slim preprocessor with only html (no dynamic content) output. Can't for the life of me find out how to do that, anyone know any good resources?
asmodlol has quit [Ping timeout: 264 seconds]
<alicanyilmaz> Anyone can suggest ruby books *
<alicanyilmaz> ?
davedev24_ has joined #ruby
drPoggs has joined #ruby
dc has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
davedev2_ has quit [Ping timeout: 264 seconds]
<tuelz> in haml it's as easy as `Haml::Engine.new(content).render`
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
asmodlol has joined #ruby
ponga has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
jeff-ooh has quit [Remote host closed the connection]
<tuelz> slim has some other thing called Tilt that gives some sort of common api for ruby preprocessors so I guess it's more complicated? I can't figure it out anyways
Sunlorhic has joined #ruby
Ballkenende has joined #ruby
larissa has quit [Quit: Leaving]
josephnd1nton has quit [Ping timeout: 250 seconds]
livingstn has quit [Ping timeout: 258 seconds]
<tuelz> hard part seems to be that I can't use tilt docs because slim implements their own version of tilt and slim docs either aren't there or the ones I'm reading aren't clicking in my brain
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Takle has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
reset has quit [Ping timeout: 240 seconds]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
maletor has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
luksaur has quit [Quit: Leaving]
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
ponga has quit [Ping timeout: 250 seconds]
sk87 has joined #ruby
maletor has quit [Client Quit]
Ballkenende has quit [Ping timeout: 245 seconds]
Sunlorhic has joined #ruby
<tuelz> Nevermind found some methods that work, just not in the docs apparently
Sunlorhic has quit [Read error: Connection reset by peer]
maletor has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
<tuelz> well they are, but not in the ruby-docs, only hidden in a section of their how-to stuff
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
apurcell has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
tus has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
sk87 has quit [Client Quit]
Sunlorhic has quit [Read error: Connection reset by peer]
_beechnut has quit [Ping timeout: 255 seconds]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
n_blownapart has quit []
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
RDash has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
avahey91 has quit [Quit: Connection closed for inactivity]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
sevvie has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
elaptics`away is now known as elaptics
freerobby has quit [Quit: Leaving.]
yano has left #ruby ["WeeChat, The Better IRC Client -- http://weechat.org/"]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
crdpink has joined #ruby
geggam has joined #ruby
diegovio1 has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
davedev2_ has joined #ruby
asmodlol has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
max96at|off is now known as max96at
davedev24_ has quit [Ping timeout: 258 seconds]
rylev has quit []
asmodlol has joined #ruby
spyderman4g63 has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
jeanlinux has joined #ruby
jeanlinux has quit [Remote host closed the connection]
codecop has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
icebourg has joined #ruby
Xiti` has joined #ruby
xenomorp is now known as {xenomorph}
{xenomorph} has quit [Changing host]
{xenomorph} has joined #ruby
despai has joined #ruby
econerd4ever has joined #ruby
lampd1 has quit []
Pixi_ has joined #ruby
Pixi_ has quit [Client Quit]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
RandyT has quit [Quit: ZNC - http://znc.in]
freerobby has joined #ruby
RandyT has joined #ruby
Dopagod has quit [Ping timeout: 250 seconds]
Xiti has quit [Ping timeout: 265 seconds]
josephndenton has quit [Ping timeout: 245 seconds]
tommylommykins has quit [Quit: Lost terminal]
tommylommykins has joined #ruby
sevvie has joined #ruby
Xiti` has quit [Ping timeout: 258 seconds]
snowpeas has quit [Read error: Connection reset by peer]
sevvie has quit [Read error: Connection reset by peer]
diegovio1 is now known as diegoviola
einarj has quit [Remote host closed the connection]
sami has joined #ruby
sami has left #ruby [#ruby]
fmcgeough has quit [Quit: fmcgeough]
_maes_ has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
snowpeas has joined #ruby
pu22l3r has joined #ruby
msgodf has quit [Ping timeout: 256 seconds]
jamgood96 has joined #ruby
barderer has joined #ruby
shuber_ has quit [Remote host closed the connection]
<barderer> hey in ruby does this mean the first 16 bytes in the array? aes.key = nlkm[16...-1]
<barderer> what does that [16...-1] syntax mean?
<Mon_Ouie> It means everything from the element at index 16 up to the last
<Mon_Ouie> (Basically, add the size of the array to negative indices)
<apurcell> up to, but not including
<godd2> >> array = [3,4,5,6,7,8,9]; array[3..-1] #grab everything from the 4th to the last element
<eval-in__> godd2 => [6, 7, 8, 9] (https://eval.in/236731)
<Mon_Ouie> Oh, yeah, didn't notice the 3rd dot
<barderer> what does the 3rd dot do?
<godd2> oh yea, don't use the three-dot range. its hard to read
<Mon_Ouie> a..b is [a, b], a...b is [a, b[ (b is not inside the range)
<godd2> >> array = [3,4,5,6,7,8,9]; array[3...0]
<eval-in__> godd2 => [] (https://eval.in/236732)
<godd2> >> array = [3,4,5,6,7,8,9]; array[3...-1]
<eval-in__> godd2 => [6, 7, 8] (https://eval.in/236733)
<barderer> wierd
jamgood96 has quit [Client Quit]
<godd2> blech
rismoney1 has quit [Ping timeout: 258 seconds]
<wallerdev> needs more dots
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<godd2> thats 50 dkp!
shuber_ has joined #ruby
postmodern has joined #ruby
<bashusr> hi guys, i'm writing rspecs to test the following json array to be valid [ {"name":"Blah", stuff_to_process: {..}}, {"name":"whatever", stuff_to_process: {..}}, {"name":"Food", stuff_to_process: {..}} ]... i need to go into the name:"Blah" object and expect certain things about stuff_to_process, any ideas how to do this?
kedibasi has joined #ruby
marcules has quit [Ping timeout: 246 seconds]
byaruhaf has joined #ruby
jerius has quit []
tier has quit []
mleung has joined #ruby
asteros has joined #ruby
<godd2> expect(array[0][:stuff_to_process]).to eq something
reinaldob has quit [Remote host closed the connection]
jerius has joined #ruby
tjohnson has joined #ruby
mleung has quit [Read error: Connection reset by peer]
<godd2> bashusr remember to make each test not very complicated.
mleung has joined #ruby
<bashusr> godd2, but i don't know if it is array[0]
<bashusr> it could be array[1] or array[2]
m8 has joined #ruby
m8 has quit [Changing host]
m8 has joined #ruby
<bashusr> i only know once i examine the hash
jenrzzz_ has joined #ruby
<godd2> hash = array.find {|h| h["name"].eql? "Blah"}; expect(hash[:stuff_to_process]).to eq stuff
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<godd2> although I would recommend against stuffing logic into your tests
<godd2> my recommendation is that *that* test should have a well-known array passed into it so you can test the code that affects :stuff_to_process
x1337807x has joined #ruby
<godd2> the moment you add logic into your tests (even a simple find) is the moment you need to have tests for you tests, as they can now have a bug
<bashusr> godd2, i can for this individual test, but i'm testing the logic of my application and the format just happens to be like this so i don't think it is extensible
frem has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<godd2> bashusr if you're testing across your app, then that's fine. my recommendations are more for unit testing.
<godd2> just don't get carried away, and make sure you know that you're doing an integration test
<bashusr> actually, i think you raise an excellent point
<bashusr> i'm not unit testing at this point
<bashusr> i'm testing too far down into the app
<bashusr> i should be testing the logic at a lower level, not after it has been formatted and all
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
chrishough has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
asteros has quit [Quit: asteros]
Musashi007 has joined #ruby
asteros has joined #ruby
bestie has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
davedev24_ has joined #ruby
tristanp has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby
bogeyd6 has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
LouisRoR has joined #ruby
diegoviola has joined #ruby
jeanlinux has joined #ruby
TeresaP has joined #ruby
codezomb has joined #ruby
LouisRoR1 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
ponga has joined #ruby
atomical has quit [Quit: Textual IRC Client: www.textualapp.com]
arup_r has quit [Quit: Leaving.]
go|dfish has quit [Remote host closed the connection]
Ballkenende has joined #ruby
LouisRoR has quit [Ping timeout: 250 seconds]
<TeresaP> Is this syntax correct for symlinking? File.symlink("/Volumes/CalabashTestFiles/mockData", "UIAutomation/features/test_content/mockData")? Where the /Volumes path exists and I want the symlink to mockData to exist at the path that is the second parameter
xymbol has joined #ruby
chu has joined #ruby
cuppscakes has joined #ruby
<bricker`work> TeresaP: yes
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
Neomex has joined #ruby
<TeresaP> bricker`work: I am getting "No such file or directory"
reset has joined #ruby
<bricker`work> TeresaP: for what?
<TeresaP> Errno::ENOENT: No such file or directory - (/Volumes/CalabashTestFiles/mockData, /UIAutomation/features/test_content/mockData)
Ballkenende has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 245 seconds]
<TeresaP> Ah, stupid thing. I think I see the problem.
renderful has quit [Remote host closed the connection]
rajeshchawla has quit []
cesarstafe has quit [Ping timeout: 265 seconds]
Tranquility has quit [Quit: Connection closed for inactivity]
<bricker`work> TeresaP: that leading slash is problematic I bet
<bricker`work> on the second URL
mloveless has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 245 seconds]
shuber_ has quit [Remote host closed the connection]
oleo has quit [Ping timeout: 264 seconds]
alicanyilmaz has quit [Quit: alicanyilmaz]
<TeresaP> yep :-|
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulfm has quit [Quit: Goodbye]
<TeresaP> Thanks bricker`work :)
tuelz has quit [Ping timeout: 245 seconds]
alicanyilmaz has joined #ruby
josephndenton has joined #ruby
despai has joined #ruby
oleo has joined #ruby
Cache_Money has quit [Read error: Connection reset by peer]
asteros has quit [Quit: asteros]
Takle has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
jerius has quit []
asteros has joined #ruby
x1337807x has quit [Ping timeout: 245 seconds]
josephndenton has quit [Ping timeout: 264 seconds]
{xenomorph} is now known as xenomorph
shuber_ has joined #ruby
karmatr0n has joined #ruby
Kricir has quit [Remote host closed the connection]
x1337807x has joined #ruby
Photism has joined #ruby
bhaak has joined #ruby
sevvie has joined #ruby
DadoCe has joined #ruby
sigurding has joined #ruby
pu22l3r has joined #ruby
<shevy> when should one use private in ruby?
TeresaP has quit [Quit: Page closed]
shuber_ has quit [Remote host closed the connection]
maxd has joined #ruby
<maxd> hi
<maxd> req = Net::HTTP::Get.new(uri)
shuber_ has joined #ruby
pengin has joined #ruby
<maxd> /usr/lib/ruby/1.9.1/net/http.rb:1860:in `initialize': undefined method `empty?' for #<URI::HTTP:0x00000001a7dfe0> (NoMethodError)
<maxd> why?
<maxd> what is wrong?
<bricker`work> maxd: initializer accepts a string, not a URI
<maxd> oh
georgesmith has quit [Quit: georgesmith]
<maxd> I use uri because I want to add hostname and port: res = Net::HTTP.start(uri.hostname, uri.port) {|http|
DadoCe has quit [Ping timeout: 255 seconds]
ctooley has quit [Quit: ctooley]
<jhass> maxd: ruby version?
kenneth has joined #ruby
<bricker`work> maxd: call uri.request_uri when intiailizting the Get object
<bricker`work> "Returns the full path for an HTTP request, as required by Net::HTTP::Get."
<jhass> might be a doc bug or a version issue
<maxd> ah, right
<maxd> it is the ruby version
<maxd> I use 1.9, and it is designed for 2.1.5 or so
shuber_ has quit [Remote host closed the connection]
bricker`work has quit [Quit: leaving]
pu22l3r has quit [Remote host closed the connection]
cantonic has joined #ruby
Takle has joined #ruby
shuber_ has joined #ruby
icebourg has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
trampi has quit [Ping timeout: 240 seconds]
bricker`work has joined #ruby
devoldmx33 has joined #ruby
asteros has quit [Quit: asteros]
hmsimha has joined #ruby
pengin has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
pengin has joined #ruby
kl has joined #ruby
icebourg has joined #ruby
rismoney1 has joined #ruby
beneggett has joined #ruby
cajone has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 258 seconds]
doodlehaus has quit [Remote host closed the connection]
shuber_ has joined #ruby
cajone has joined #ruby
sigurding has quit [Quit: sigurding]
pengin has quit [Ping timeout: 255 seconds]
shuber_ has quit [Remote host closed the connection]
kl has quit [Ping timeout: 265 seconds]
shuber_ has joined #ruby
asteros has joined #ruby
shuber_ has quit [Remote host closed the connection]
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hmsimha has quit [Ping timeout: 252 seconds]
mjuszczak has quit []
davedev24_ has quit [Ping timeout: 264 seconds]
Mekkis has quit [Quit: ZNC - http://znc.in]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
DadoCe has joined #ruby
gsd has joined #ruby
evanjs has quit [Remote host closed the connection]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
pu22l3r has joined #ruby
asteros has quit [Quit: asteros]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuelz has joined #ruby
asteros has joined #ruby
x1337807x has joined #ruby
DadoCe has quit [Ping timeout: 250 seconds]
Mekkis has joined #ruby
icebourg has quit [Ping timeout: 250 seconds]
evanjs has joined #ruby
shuber_ has joined #ruby
beef-wellington has quit [Ping timeout: 264 seconds]
entrenador has joined #ruby
JimmyNeutron has joined #ruby
georgesmith has joined #ruby
sarcas has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tuelz has quit [Ping timeout: 245 seconds]
icebourg has joined #ruby
sarcas has quit [Client Quit]
narph has quit [Quit: Connection closed for inactivity]
DonOtreply has quit [Quit: DonOtreply]
kirun has quit [Quit: Client exiting]
evanjs has quit [Remote host closed the connection]
philwantsfish1 has quit [Ping timeout: 245 seconds]
athan has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
beneggett has quit [Read error: Connection reset by peer]
j2p2 has quit [Ping timeout: 250 seconds]
DonOtreply has joined #ruby
sarcas has joined #ruby
beneggett has joined #ruby
shuber_ has quit [Ping timeout: 245 seconds]
<frem> Is there something like instance_method that I can use for methods that are in a module?
<rpag> instance_method works on modules as well
georgesmith has quit [Ping timeout: 272 seconds]
<frem> I'm getting `NameError: undefined method` for a module method that I can call normally.
<rpag> >> Module.new { def foo() end }.instance_method(:foo)
<eval-in__> rpag => #<UnboundMethod: #<Module:0x41e34ef0>#foo> (https://eval.in/236738)
fantazo has quit [Quit: Verlassend]
<rpag> is it defined as an instance method or a singleton method?
beneggett has quit [Max SendQ exceeded]
asteros has quit [Quit: asteros]
<frem> It's in a `class << self` block
georgesmith has joined #ruby
<rpag> you want to use .method() then
<frem> thanks!
ponga has joined #ruby
<rpag> np
Ballkenende has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
sarcas has quit [Quit: Leaving]
enebo has quit [Quit: enebo]
sarcas has joined #ruby
georgesmith has quit [Read error: Connection reset by peer]
Rene has joined #ruby
georgesmith has joined #ruby
Tranquility has joined #ruby
shuber_ has joined #ruby
ponga has quit [Ping timeout: 250 seconds]
Ballkenende has quit [Ping timeout: 264 seconds]
shuber_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has joined #ruby
mikepack has quit [Remote host closed the connection]
asteros has joined #ruby
Photism has quit [Ping timeout: 240 seconds]
maxd has left #ruby [#ruby]
Megtastique has joined #ruby
v0n has quit [Ping timeout: 265 seconds]
m8 has quit [Quit: Sto andando via]
pu22l3r has quit [Remote host closed the connection]
sdwrage has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
econerd4ever has quit [Remote host closed the connection]
badhatter has quit [Read error: Connection reset by peer]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
patrick99e99 has joined #ruby
econerd4ever has joined #ruby
treehug88 has quit []
pu22l3r has joined #ruby
siwica has quit [Remote host closed the connection]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
siwica has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
Menorah has joined #ruby
pothepanda has joined #ruby
pu22l3r has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
ArchBeOS has quit [Ping timeout: 246 seconds]
<shevy> anyone has an idea how to make this here shorter? http://pastie.org/9790696
<shevy> actually I am dumb, I'll just use a regex instead
bmichelsen has joined #ruby
LouisRoR1 has quit [Ping timeout: 264 seconds]
sevvie has quit [Quit: leaving]
wallerdev has quit [Quit: wallerdev]
<Cat_1> couldn't you do something like a with_index block and loop through an array of options?
jobewan has quit [Quit: Leaving]
deryl has joined #ruby
deryl has quit [Read error: Connection reset by peer]
e^ipi has joined #ruby
josephndenton has joined #ruby
deryl has joined #ruby
<bricker`work> new_i = %w[ aac wmav2 mp2 mp3 ].find { |s| old_i.include?(s) }
cuppscakes has quit [Quit: Whoops, AFK.]
VBlizzard has joined #ruby
bears has joined #ruby
deepy has joined #ruby
<shevy> wheeee!
<shevy> thanks bricker`work
DadoCe has joined #ruby
blizzy has quit [Ping timeout: 255 seconds]
RandyT has quit [Ping timeout: 256 seconds]
josephndenton has quit [Ping timeout: 272 seconds]
tuelz has joined #ruby
deryl has quit [Quit: Nettalk6 - www.ntalk.de]
RandyT has joined #ruby
bears has quit [Remote host closed the connection]
rismoney1 has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
bkulbida has quit [Quit: bkulbida]
wallerdev has joined #ruby
Zleec has quit [Quit: ( www.nnscript.de :: NoNameScript 4.02 :: www.XLhost.de )]
mary5030 has quit [Remote host closed the connection]
mjuszczak has joined #ruby
karmatr0_ has joined #ruby
bears has joined #ruby
Megtastique has quit []
karmatr__ has joined #ruby
karmatr0n has quit [Ping timeout: 245 seconds]
pandaant has quit [Remote host closed the connection]
freerobby has joined #ruby
karmatr0_ has quit [Read error: Connection reset by peer]
bogeyd6 has quit [Read error: Connection reset by peer]
commmmodo has quit [Quit: commmmodo]
bears has quit [Ping timeout: 255 seconds]
commmmodo has joined #ruby
entrenador has quit [Quit: Textual IRC Client: www.textualapp.com]
fandi has quit [Ping timeout: 265 seconds]
tuelz has quit [Ping timeout: 258 seconds]
Musashi007 has quit [Quit: Musashi007]
x1337807x has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jcp has quit [Quit: Leaving]
jcp has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Client Quit]
max96at is now known as max96at|off
thumpba has quit [Ping timeout: 245 seconds]
lmickh has quit [Remote host closed the connection]
agjacome has joined #ruby
econerd4ever has quit [Remote host closed the connection]
kedibasi has quit [Remote host closed the connection]
caiges has joined #ruby
terlar has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
<shevy> that my friend is not a duck
<shevy> that is the nose of a pig
e^ipi has left #ruby [#ruby]
mloveless has joined #ruby
ponga has joined #ruby
Takle has quit [Read error: No route to host]
Takle has joined #ruby
wallerdev has quit [Quit: wallerdev]
ponga has quit [Ping timeout: 272 seconds]
renderful has joined #ruby
LouisRoR has joined #ruby
kith has joined #ruby
tuelz has joined #ruby
apeiros_ has joined #ruby
crueber has quit [Quit: Leaving.]
renderful has quit [Ping timeout: 272 seconds]