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?
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
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
<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]
<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
<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.
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]
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>
"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
<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
<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))
<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?
<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.
<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]
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
<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]
<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?
<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…]
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
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 :)
<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
<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]
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?
<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}$/
<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 ?
<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]
<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]
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?
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]
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