apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
kirun has quit [Quit: Client exiting]
nhhagen has quit [Ping timeout: 260 seconds]
Cheezebox has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
gsd has joined #ruby
x1337807x has joined #ruby
tskogber1 has quit [Ping timeout: 260 seconds]
kriskropd has joined #ruby
Takle has quit [Remote host closed the connection]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
armyriad has quit [Ping timeout: 245 seconds]
wjimenez5271 has quit [Ping timeout: 260 seconds]
armyriad has joined #ruby
freerobby has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vile` has quit [Remote host closed the connection]
ale4L3 has quit [Quit: Leaving]
Vile` has joined #ruby
axsuul has joined #ruby
p0sixpscl has quit [Ping timeout: 250 seconds]
lw has quit [Quit: s]
soasme has quit [Remote host closed the connection]
soasme has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
heftig has quit [Ping timeout: 260 seconds]
lw has joined #ruby
heftig has joined #ruby
bking39116 has joined #ruby
soasme has quit [Ping timeout: 255 seconds]
modernbob has quit [Ping timeout: 260 seconds]
emocakes has joined #ruby
modernbob has joined #ruby
mary5030 has joined #ruby
linojon has quit [Quit: linojon]
saarinen has joined #ruby
benlieb has joined #ruby
TheTopBloke has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
benlieb has quit [Client Quit]
mikecmpbll has quit [Quit: i've nodded off.]
lw has quit [Quit: s]
tylerkern has quit [Quit: Connection closed for inactivity]
TheTopBloke has joined #ruby
Wolland has joined #ruby
buto has joined #ruby
buto has quit [Max SendQ exceeded]
GriffinHeart has quit [Ping timeout: 255 seconds]
buto has joined #ruby
buto has quit [Max SendQ exceeded]
bking39116 has quit [Quit: bking39116]
buto has joined #ruby
buto has quit [Max SendQ exceeded]
Wolland_ has joined #ruby
bking39116 has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
buto has joined #ruby
buto has quit [Max SendQ exceeded]
soasme has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
gccostabr has joined #ruby
buto has joined #ruby
DrShoggoth has joined #ruby
linojon has joined #ruby
soasme has quit [Read error: Connection reset by peer]
britneywright has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
zettam_ has quit [Read error: Connection reset by peer]
LeVoDECoM has quit [Quit: Leaving]
timonv_ has joined #ruby
wang_ is now known as wang
ndrei has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
mkaesz has joined #ruby
mikecmpbll has joined #ruby
nhhagen has joined #ruby
aspires has joined #ruby
<edwardloveall> is there a prepending symbol for private methods?
<edwardloveall> like, instance methods are #method
<edwardloveall> class methods are self.method
mkaesz has quit [Ping timeout: 250 seconds]
<edwardloveall> this is when you're referring to them in rspec
<edwardloveall> like, describe '#method'
<edwardloveall> hmmm is it #method or .method
<edwardloveall> now i confused my self
<C0deMaver1ck> after defining a method you can then add private :method_name after the method declaration
emocakes has quit []
northfurr has quit [Quit: northfurr]
<edwardloveall> yeah that's how you make them
northfurr has joined #ruby
<C0deMaver1ck> or you can prepend private before def
<edwardloveall> i was wondering about conventions for documenting them
ale4L3 has joined #ruby
ale4L3_ has joined #ruby
<edwardloveall> i didn't know the prepend thing
<C0deMaver1ck> ah
aspires has quit [Client Quit]
<edwardloveall> maybe i'll do that
<edwardloveall> "private method"
emocakes has joined #ruby
<edwardloveall> "private foo"
jcxau has joined #ruby
klmlfl has joined #ruby
ale4L3_ has quit [Read error: Connection reset by peer]
deyuan has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<jcxau> Hye all, is there anyway to get the name the method that yielded a block?
<jcxau> *any way
<edwardloveall> does __method__ work?
<edwardloveall> i don't know the answer
nhhagen has quit [Ping timeout: 260 seconds]
chihhsin_cloud has joined #ruby
<jcxau> edwardloveall: __method__ give the the current method im in, not the method it was yielded from.
<edwardloveall> mmmm
<edwardloveall> not sure then, sorry
soasme has joined #ruby
<jcxau> No worries, thanks.
centrx has quit [Quit: Mead error: Connection reset by beer]
<edwardloveall> just incase i'm not understanding
<edwardloveall> in this case:
<edwardloveall> [1, 2, 3].each do
<edwardloveall> inside that block, you want "each"
<edwardloveall> yes?
<jcxau> yes
<edwardloveall> k. i did understand
klmlfl has quit [Ping timeout: 250 seconds]
<edwardloveall> best of luck
<jcxau> thx
soasme has quit [Remote host closed the connection]
<edwardloveall> is there something in particular you're trying to do?
<edwardloveall> maybe there's a different way to solve it
wjimenez5271 has joined #ruby
a____ has quit [Ping timeout: 245 seconds]
<jcxau> Trying to build a rails transaction... but not if already in another particular transaction.
a___ has quit [Ping timeout: 245 seconds]
<edwardloveall> oof yeah that's beyond me
<jcxau> Ill let you know if I find the answer
<edwardloveall> please
tylerkern has joined #ruby
<C0deMaver1ck> where caller is the call stack array
<C0deMaver1ck> so caller[0] will give you the immediate parent method calling your block
<jcxau> C0deMaver1ck: Great, I will check it out now!
<C0deMaver1ck> jcxau: however, if your block is being executed as a proc with .call instead of yield, caller[0] will be call
saarinen has joined #ruby
<jcxau> I am using yield
ale4L3 has left #ruby ["Leaving"]
BeanDip has joined #ruby
Kerber0s has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<duper> How do I invoke a method using a symbol of the same name?
jaffachief has quit [Quit: Connection closed for inactivity]
goodenough has quit [Remote host closed the connection]
<hoelzro> duper: send
V_ has joined #ruby
<pontiki> obj.public_send(:method)
jcxau has quit [Quit: Lingo - http://www.lingoirc.com]
goodenough has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
Channel6 has quit [Quit: Leaving]
RichardLitt has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moted has joined #ruby
<benzrf> duper: y do u need to
BeanDip has quit [Ping timeout: 250 seconds]
Zesty has joined #ruby
lbrown has joined #ruby
Cheezebox has quit [Remote host closed the connection]
moted has quit []
elementz has joined #ruby
<bricker> lame question
benlieb has joined #ruby
<benlieb> I'm fixing a failing test after upgrading to 1.9.3 from 1.8.7. The following test fails in 1.9.3, but passes in 1.8.7 assert p.sale_commissions.first.transactable_price == 0.69
GriffinHeart has joined #ruby
<benlieb> it seems now transactable_price is <BigDecimal:7fa6ad92cb78,'0.69E0',9(18)>
<benlieb> so transactable_price.to_f == 0.69
<benlieb> should I just tack on to_f and call it a day or should I be more concerned about this?
<pontiki> why not compare it to BigDecimal('0.69') ?
InhalingPixels has quit [Remote host closed the connection]
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<pontiki> .to_f and equality are sometimes problematic
elementz has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
<benlieb> I guess I'd have to convert it one way or the other. I'm not sure why it's a big decimal though.
x1337807x has quit [Max SendQ exceeded]
<benlieb> I don't remember manually making any BigDecimal things
x1337807x has joined #ruby
<pontiki> it's better (and recommended) to use BigDecimal for financial stuff nowadays, anyway
starless has quit [Quit: Leaving]
GriffinHeart has quit [Ping timeout: 255 seconds]
Bumptious has joined #ruby
bmurt has quit [Ping timeout: 250 seconds]
Cheezebox has joined #ruby
Bumptious has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
optiz0r has quit [Ping timeout: 240 seconds]
emocakes has quit []
guiguidoc has quit [Ping timeout: 246 seconds]
toretore has quit [Quit: This computer has gone to sleep]
emmesswhy has joined #ruby
Channel6 has joined #ruby
<edwardloveall> +1
<edwardloveall> there's also this gem: http://rubygems.org/gems/money
RichardLitt has quit [Quit: RichardLitt]
fabrice31 has joined #ruby
mikeric has quit []
alexju has joined #ruby
mikeric has joined #ruby
emocakes has joined #ruby
sylvanica has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
snorkra has joined #ruby
chipotle has joined #ruby
mkaesz has joined #ruby
chipotle has quit [Client Quit]
bking39116 has quit [Quit: bking39116]
BeanDip has joined #ruby
saarinen has quit [Quit: saarinen]
livingstn has joined #ruby
mikeric has quit []
mikeric has joined #ruby
mkaesz has quit [Ping timeout: 240 seconds]
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
juz88 has joined #ruby
ghr has joined #ruby
klmlfl has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikeric has quit [Ping timeout: 240 seconds]
niklasb has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
catbusters_ has quit [Quit: Connection closed for inactivity]
bearish has joined #ruby
InhalingPixels has joined #ruby
optiz0r has joined #ruby
AweyTare has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
klmlfl has quit [Ping timeout: 245 seconds]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
bearish has quit [Ping timeout: 250 seconds]
<froggy_> Which gem is most popular for working with HTTP requests? Do people just use Open-URI, or are HTTParty, Rest_Client, etc preferred?
mengu has joined #ruby
<edwardloveall> you could check the popularity here: https://www.ruby-toolbox.com/categories/http_clients
livingstn has quit [Ping timeout: 256 seconds]
thomasxie has joined #ruby
<edwardloveall> looks like rest-client is the most popular
Fezzler has joined #ruby
cirn0 has quit [Remote host closed the connection]
claw__ has quit [Ping timeout: 240 seconds]
claw__ has joined #ruby
livingstn has joined #ruby
InhalingPixels has quit []
mengu has quit [Ping timeout: 250 seconds]
Fezzler has quit [Quit: Leaving]
lbrown has quit [Ping timeout: 240 seconds]
soasme has joined #ruby
arup_r has joined #ruby
soasme has quit [Read error: Connection reset by peer]
wjimenez5271 has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
luckyruby has joined #ruby
goodenough has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
_lexjm has joined #ruby
lw has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
bcavileer has quit [Ping timeout: 245 seconds]
Ankhers has joined #ruby
cirn0 has joined #ruby
bcavileer has joined #ruby
TheTopBloke has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
manacit is now known as manacit[UW]
rubytor has quit [Quit: No Ping reply in 180 seconds.]
buto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubytor has joined #ruby
zubov has joined #ruby
kenneth has joined #ruby
kenneth has quit [Max SendQ exceeded]
kenneth has joined #ruby
nhhagen has joined #ruby
wjimenez5271 has joined #ruby
kachi8 has joined #ruby
nfk has quit [Quit: yawn]
michaeldeol has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
emmesswhy has joined #ruby
Sawbones has quit []
nhhagen has quit [Ping timeout: 260 seconds]
mkaesz has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xenomorph is now known as {xenomorph}
freerobby has joined #ruby
mkaesz has quit [Ping timeout: 250 seconds]
<_lexjm> any idea how to fix this: Installing ruby-build, to install Rubies ...
<_lexjm> Error: ruby-build-20140702_1 already installed
<_lexjm> failed
{xenomorph} is now known as xenomorph
benzrf is now known as benzrf|offline
ghr has joined #ruby
klmlfl has joined #ruby
b06464f377 has quit [Ping timeout: 250 seconds]
gccostabr has quit [Quit: ZZZzzz…]
b06464f377 has joined #ruby
juz88 has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 240 seconds]
klmlfl has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
benzrf|offline is now known as benzrf
juz88 has joined #ruby
kachi8 has quit [Ping timeout: 255 seconds]
mfmfmfmfmfmf has quit [Remote host closed the connection]
mfmfmfmfmfmf has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
braincrash has joined #ruby
dc_ has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
Cache_Money has joined #ruby
osvico has quit []
edwardloveall has quit [Quit: Leaving.]
jay_ has joined #ruby
io_syl has joined #ruby
axilla has quit [Ping timeout: 250 seconds]
rdavila has joined #ruby
Cache_Money has quit [Ping timeout: 245 seconds]
livingstn has quit []
frjkafk has joined #ruby
<frjkafk> hello all, why do all threads pause when a thread accesses operating system?
tlarevo has joined #ruby
SilkFox_ has joined #ruby
jay_ has quit [Ping timeout: 240 seconds]
TheTopBloke has joined #ruby
whatasunnyday has joined #ruby
Bumptious has joined #ruby
<whatasunnyday> Does brakeman check gem versions for known vulerabilities?
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby
Kricir has joined #ruby
<_lexjm> nvm, figured it out
_lexjm has quit [Quit: Textual IRC Client: www.textualapp.com]
dc has joined #ruby
smss1995 has joined #ruby
smss1995 has quit [Changing host]
smss1995 has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
armanghassemi_ has joined #ruby
fabrice31 has joined #ruby
<frjkafk> hello all, why do all threads pause when a thread accesses operating system?
<armanghassemi_> how do I push to a folder inside a git repository? I tried making the link to the folder the remote but then I get the repository not found error
<frjkafk> have you heard of the git book?
<frjkafk> im not a git expert but i could do a read along
charliesome has joined #ruby
whatasunnyday has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<frjkafk> do u need help?
fabrice31 has quit [Ping timeout: 250 seconds]
<frjkafk> i'll help you if you help me
ARCADIVS has joined #ruby
gsd has joined #ruby
froggy__ has joined #ruby
tectonic has joined #ruby
goodenough has joined #ruby
michaeldeol has joined #ruby
emmesswhy has joined #ruby
froggy_ has quit [Ping timeout: 255 seconds]
<pontiki> armanghassemi_: you don't push to a folder within a repo, you push the entire repo to a remote repo
whatasunnyday has quit [Quit: whatasunnyday]
kachi8 has joined #ruby
nhhagen has joined #ruby
whatasunnyday has joined #ruby
charliesome has quit [Quit: zzz]
x1337807x has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
mkaesz has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cheezebox has quit [Remote host closed the connection]
agent_wh1te has quit [Quit: leaving]
bearish has joined #ruby
jko_ has joined #ruby
juz88 has quit [Ping timeout: 250 seconds]
<frjkafk> hello all, why do all threads pause when a thread accesses operating system?
dorei has quit []
lxb has joined #ruby
mkaesz has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
bearish has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
Alina-malina has joined #ruby
AweyTare has joined #ruby
<waxjar> because the operating system needs to share resources between every process fairly
<frjkafk> ruby doesnt spawn its own process huh?
ghr has joined #ruby
<frjkafk> that came from the other room heh
klmlfl has joined #ruby
<frjkafk> great point, thanks
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zubov has quit [Ping timeout: 240 seconds]
<frjkafk> also, .join is for pausing main during threading?
<waxjar> it does, but ruby is not the only process running.
<waxjar> no, it is not
Fire-Dragon-DoL has quit [Quit: Leaving.]
<frjkafk> im sorry?
<frjkafk> join pauses thread main?
<waxjar> it may be a side effect but it's not what it's for
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<waxjar> it's for waiting until a thread is finished
ghr has quit [Ping timeout: 245 seconds]
klmlfl has quit [Ping timeout: 245 seconds]
<frjkafk> yeah, i am having trouble finding any docs on .join
<frjkafk> ruby-doc is unclear
Takle has joined #ruby
grenierm has joined #ruby
gsd has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
benlieb has quit [Quit: benlieb]
juz88 has joined #ruby
kachi8 has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
benlieb has quit [Client Quit]
Takle has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<armanghassemi_> Why is the demo_app folder in this repo greyed out?? https://github.com/ArmanG/LearningRails/tree/master
x1337807x has joined #ruby
wjimenez5271 has quit [Ping timeout: 250 seconds]
jko_ has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
GinoMan has joined #ruby
<pontiki> armanghassemi_: it's a submodule?
RandyT has joined #ruby
<armanghassemi_> pontiki, agh kk so i guess now i want to remove that submodule and make it a regular folder, or unsubmodule it
Es0teric has joined #ruby
<pontiki> well, no, i just cloned it
<pontiki> it's just an empty directory
zubov has joined #ruby
Xiti has quit [Quit: Leaving]
<armanghassemi_> what how
<pontiki> how?
<armanghassemi_> okay when i do git submodule status it doesn't show any
<armanghassemi_> its not suppose to be empty
goodenough has joined #ruby
<pontiki> right, it's NOT a submodule. it's an empty directory
<armanghassemi_> oh
<armanghassemi_> okay
<armanghassemi_> locally its not empty though
<pontiki> then the content of the directory hasn't been added to the repo index?
kenneth has joined #ruby
<armanghassemi_> basically I want to add a folder of files into an empty repo
<pontiki> did you try git add . ?
<pontiki> maybe look at http://git-scm.com
zubov has quit [Ping timeout: 240 seconds]
<armanghassemi_> i keep getting demo_app (untracked content)
<armanghassemi_> and it won't stage
<armanghassemi_> i did git add . and git add demo_app
ylluminarious has joined #ruby
CaptainJet has quit []
cirn0 has quit [Remote host closed the connection]
Cope_ is now known as Cope
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
Xiti has joined #ruby
ylluminarious has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
nszceta has quit []
mfmfmfmfmfmf has joined #ruby
rubytor has quit [Client Quit]
rubytor has joined #ruby
armanghassemi_ has quit [Quit: Leaving]
bjz_ has quit [Read error: Connection reset by peer]
bjz has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
nhhagen has joined #ruby
lxsameer has joined #ruby
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
rubytor has quit [Client Quit]
nhhagen has quit [Ping timeout: 260 seconds]
rubytor has joined #ruby
fold has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby
OffTheRails has joined #ruby
bearish has joined #ruby
circ-user-oHnDd has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
mkaesz has quit [Ping timeout: 250 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
kalz has quit [Ping timeout: 272 seconds]
bearish has quit [Ping timeout: 245 seconds]
mfmfmfmfmfmf has quit [Remote host closed the connection]
kalz has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
BBBThunda has quit [Quit: Leaving]
BBBThunda has joined #ruby
ghr has joined #ruby
juz88 has quit [Ping timeout: 250 seconds]
emocakes has quit []
klmlfl has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
whatasunnyday has quit [Quit: whatasunnyday]
OffTheRails has quit [Ping timeout: 255 seconds]
allgood38 has joined #ruby
klmlfl has quit [Ping timeout: 255 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Jesse1234 has joined #ruby
Jesse1234 has left #ruby ["Textual IRC Client: www.textualapp.com"]
emocakes has joined #ruby
grenierm has quit [Quit: grenierm]
grenierm has joined #ruby
grenierm has quit [Client Quit]
lbrown has joined #ruby
grenierm has joined #ruby
BBBThunda has quit [Quit: Leaving]
BBBThunda has joined #ruby
Kricir has joined #ruby
fabrice31 has joined #ruby
jack_rabbit has quit [Ping timeout: 245 seconds]
Xiti has quit [Quit: Leaving]
bjeanes_ has quit []
rubytor has quit [Quit: No Ping reply in 180 seconds.]
bjeanes_ has joined #ruby
rubytor has joined #ruby
bjeanes_ is now known as bjeanes
fabrice31 has quit [Ping timeout: 240 seconds]
ferr has joined #ruby
wjimenez5271 has joined #ruby
BBBThunda has quit [Quit: Leaving]
tvw has joined #ruby
jhass is now known as jhass|off
SilkFox_ has quit [Ping timeout: 250 seconds]
hellangel7 has joined #ruby
jack_rabbit has joined #ruby
wchun has joined #ruby
rdavila has quit [Quit: rdavila]
mengu has joined #ruby
mengu has joined #ruby
ctp has joined #ruby
allgood38 has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mengu has quit [Ping timeout: 240 seconds]
hellangel7 has quit [Remote host closed the connection]
nhhagen has joined #ruby
hellangel7 has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
GinoMan has quit [Ping timeout: 250 seconds]
rubytor has quit [Read error: Connection reset by peer]
nhhagen has quit [Ping timeout: 260 seconds]
emocakes has quit []
circ-user-oHnDd has left #ruby [#ruby]
mkaesz has joined #ruby
tylerkern has quit [Quit: Connection closed for inactivity]
juz88 has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
lkba has quit [Ping timeout: 245 seconds]
mkaesz has quit [Ping timeout: 240 seconds]
juz88 has quit [Ping timeout: 250 seconds]
klmlfl has joined #ruby
ghr has joined #ruby
IceDragon has quit [Quit: Space~~~]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellangel7 has quit [Quit: Leaving]
grenierm has quit [Quit: grenierm]
ghr has quit [Ping timeout: 240 seconds]
klmlfl has quit [Ping timeout: 250 seconds]
Xiti has joined #ruby
nhhagen has joined #ruby
wallerdev has quit [Quit: wallerdev]
mary5030 has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smss1995 has quit [Quit: Leaving]
Cer3bus has joined #ruby
kenneth has joined #ruby
Cache_Money has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
northfurr has left #ruby [#ruby]
lw has quit [Quit: s]
SilkFox_ has joined #ruby
ylluminarious has joined #ruby
ylluminarious has quit [Read error: Connection reset by peer]
alexju has quit [Remote host closed the connection]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
SilkFox_ has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
sevenseacat has joined #ruby
starkhallo has quit [Ping timeout: 245 seconds]
tectonic has quit []
cirn0 has joined #ruby
wallerdev has joined #ruby
anaeem1 has joined #ruby
cirn0 has quit [Ping timeout: 250 seconds]
catbusters_ has joined #ruby
andrewstewart_ is now known as andrewstewart
oo__ has joined #ruby
mechanize has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
nhhagen has joined #ruby
ValicekB has joined #ruby
mechanize has quit [Client Quit]
Cache_Money has quit [Quit: Cache_Money]
wallerdev has quit [Quit: wallerdev]
alexju has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nhhagen has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby
tlarevo has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 264 seconds]
tlarevo has joined #ruby
decoponio has joined #ruby
mkaesz has quit [Ping timeout: 240 seconds]
Ilyas has joined #ruby
Ilyas has quit [Max SendQ exceeded]
wjimenez5271 has quit [Remote host closed the connection]
Ilyas has joined #ruby
benzrf is now known as benzrf|offline
wjimenez5271 has joined #ruby
TheTopBloke has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ValicekB has quit [Ping timeout: 255 seconds]
terlar has joined #ruby
jay_ has joined #ruby
wjimenez5271 has quit [Ping timeout: 260 seconds]
mockra has joined #ruby
klmlfl has joined #ruby
ghr has joined #ruby
Channel6 has quit [Quit: Leaving]
<pagioss> hi all, so i would like to create a program in ruby that stores some permanent variables. Means if i set a variable to value X, exit and restart the program the variable value needs to be preserved. Is there any other way than using a standard db to accomplish this task?
kachi8 has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 250 seconds]
klmlfl has quit [Ping timeout: 250 seconds]
RyanV has joined #ruby
lkba has joined #ruby
Tom__Orrow has joined #ruby
fabrice31 has joined #ruby
wjimenez5271 has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lxb> pagioss: Write a file somewhere?
<pagioss> lxb: yea i was thinking of using a file and storing values seperated by some semi-colons as seperators, is there an easy method to manipulate such files?
juz88 has joined #ruby
ValicekB has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
TheNet_ has quit [Quit: Leaving...]
Kricir has quit [Remote host closed the connection]
DEA7TH has joined #ruby
DEA7TH has joined #ruby
Kricir has joined #ruby
nhhagen has joined #ruby
anshin has joined #ruby
anshin has quit [Client Quit]
SilkFox_ has joined #ruby
goodenough has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 250 seconds]
SilkFox_ has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
starless has joined #ruby
kachi8 has quit [Ping timeout: 240 seconds]
DEA7TH_ has joined #ruby
terlar has quit [Quit: WeeChat 1.0]
toastynerd has joined #ruby
<vinky> pagioss: something like yaml or similar?
goodenough has joined #ruby
DEA7TH has quit [Ping timeout: 260 seconds]
ferr has quit [Ping timeout: 250 seconds]
browndawg has joined #ruby
mockra has joined #ruby
GriffinHeart has joined #ruby
ValicekB has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
toastynerd has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 240 seconds]
mockra has quit [Ping timeout: 255 seconds]
toastynerd has joined #ruby
bearish has joined #ruby
m8 has joined #ruby
ValicekB has joined #ruby
oo_ has joined #ruby
oo__ has quit [Read error: Connection reset by peer]
lbrown has quit [Quit: WeeChat 1.0]
ndrei has joined #ruby
emocakes has joined #ruby
toastynerd has quit [Remote host closed the connection]
timonv_ has joined #ruby
sarkis has quit [Ping timeout: 245 seconds]
mkaesz has joined #ruby
emocakes__ has joined #ruby
jay_ has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 255 seconds]
emocakes has quit [Ping timeout: 245 seconds]
mkaesz has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
timonv_ has joined #ruby
nemesit|- has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
<RyanV> is there anyway to define a destructive instance method which will change the instance's class?
starless has quit [Quit: Leaving]
alexju has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
nemesit|znc has joined #ruby
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
ghr has joined #ruby
klmlfl has joined #ruby
juz88 has quit [Ping timeout: 240 seconds]
sectionme has joined #ruby
klmlfl has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 245 seconds]
juz88 has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
yosafbridge has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
IRLeif has joined #ruby
LangeOortjes has joined #ruby
ferr has joined #ruby
Takle has joined #ruby
GriffinHeart has joined #ruby
Takle has quit [Read error: Connection reset by peer]
ferr has quit [Read error: Connection reset by peer]
Takle has joined #ruby
mkaesz has joined #ruby
browndawg has quit [Ping timeout: 255 seconds]
yosafbridge has joined #ruby
drawingthesun has quit [Ping timeout: 260 seconds]
mskaesz has joined #ruby
mkaesz has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
SilkFox_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
juz88 has quit [Ping timeout: 245 seconds]
sparrovv has quit [Ping timeout: 250 seconds]
SilkFox_ has quit [Ping timeout: 260 seconds]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
<Tom__Orrow> Hi. Need help with Sidekiq. I know that for Unicorn there is a nice gem called 'unicorn-worker-killer' and I need something simillar for Sidekiq to kill worker if its memory size exceeds given value.
jhass|off is now known as jhass
<Tom__Orrow> Well not just kill, but restart.
sparrovv has joined #ruby
tanath has quit [Quit: Quit]
oo_ has quit [Ping timeout: 245 seconds]
poulet_a has joined #ruby
tskogberg has joined #ruby
IRLeif is now known as IRLeif_AFK
mengu has joined #ruby
browndawg has joined #ruby
andrewlio has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
IRLeif_AFK is now known as IRLeif
lkba has quit [Ping timeout: 260 seconds]
mengu has quit [Remote host closed the connection]
wjimenez5271 has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
dmyers1 has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Remote host closed the connection]
thomasxie1 has joined #ruby
robbyoconnor has joined #ruby
AlexRussia has joined #ruby
toretore has joined #ruby
thomasxie has quit [Ping timeout: 250 seconds]
DEA7TH_ is now known as DEA7TH
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
AweyTare has quit [Ping timeout: 240 seconds]
wjimenez5271 has quit [Ping timeout: 260 seconds]
Alina-malina has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
Envek has joined #ruby
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
chihhsin_ is now known as chihhsin
Jackneill has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
claymore has joined #ruby
shredding has joined #ruby
IRLeif is now known as IRLeif_AFK
Takle has quit [Remote host closed the connection]
yezzie has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
fabrice31 has joined #ruby
Photism has quit [Ping timeout: 240 seconds]
diegoviola has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
lemur has quit [Remote host closed the connection]
browndawg has quit [Remote host closed the connection]
browndawg has joined #ruby
lemur has joined #ruby
klmlfl has joined #ruby
mengu has joined #ruby
IRLeif_AFK has quit [Quit: I'm away at the moment.]
lemur has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
parduse has joined #ruby
klmlfl has quit [Ping timeout: 250 seconds]
frjkafk has quit [Quit: Page closed]
Guest32009 has quit [Ping timeout: 245 seconds]
elementz has joined #ruby
carraroj has joined #ruby
mike32 has joined #ruby
KnownSyntax has joined #ruby
<mike32> hi, i try use SOCKSProxy but all request go direclty , without using proxy
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
<mike32> could you help to show how correct use proxy in ruby
mengu has quit [Remote host closed the connection]
shevy has quit [Read error: Connection reset by peer]
Takle has joined #ruby
sarkis has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
sparrovv has quit [Remote host closed the connection]
IRLeif has joined #ruby
marr has joined #ruby
sparrovv has joined #ruby
SilkFox_ has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
fredsir has joined #ruby
autochthon has joined #ruby
sarkis has quit [Ping timeout: 260 seconds]
anaeem1 has quit [Ping timeout: 260 seconds]
Blaze_Boy has joined #ruby
sparrovv has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 272 seconds]
thomasxie1 has quit [Remote host closed the connection]
Urocyon has joined #ruby
Kruppe has joined #ruby
mikecmpbll has joined #ruby
xiphias has joined #ruby
poulet_a has quit [Quit: Quitte]
Symbiosisz_ has joined #ruby
mike32 has quit [Quit: Leaving]
Symbiosisz_ has quit [Client Quit]
KnownSyntax_ has joined #ruby
perryb has joined #ruby
mockra has joined #ruby
shevy has joined #ruby
KnownSyntax__ has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
Blaze_Boy has quit [Quit: Leaving]
mikecmpbll has quit [Quit: i've nodded off.]
cirn0 has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
sarkis has joined #ruby
browndawg has quit [Quit: Leaving.]
cirn0 has quit [Ping timeout: 240 seconds]
sectionme has quit [Ping timeout: 240 seconds]
goshdarnyou has quit [Quit: Connection closed for inactivity]
sarkis has quit [Ping timeout: 240 seconds]
duncannz has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
einarj has joined #ruby
e4xit has joined #ruby
AndChat| has joined #ruby
smss1995 has joined #ruby
smss1995 has quit [Changing host]
smss1995 has joined #ruby
Nahra has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
drawingthesun has joined #ruby
ta_ has joined #ruby
klmlfl has joined #ruby
spider-mario has joined #ruby
Xeago has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
klmlfl has quit [Ping timeout: 240 seconds]
Takle has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
carraroj has joined #ruby
banister has joined #ruby
jaffachief has joined #ruby
phoo1234567 has joined #ruby
ctp has joined #ruby
SilkFox_ has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
digitera has joined #ruby
phoo1234567 has joined #ruby
zettam has joined #ruby
narcan has joined #ruby
Takle has joined #ruby
AweyTare has joined #ruby
wallerdev has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
sevenseacat has quit [Quit: Leaving.]
yezzie has joined #ruby
sectionme has joined #ruby
Ilyas has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
digitera has left #ruby [#ruby]
yezzie has quit [Ping timeout: 245 seconds]
digitera has joined #ruby
darkxploit has quit [Ping timeout: 240 seconds]
Takle has quit [Ping timeout: 245 seconds]
bearish has quit [Remote host closed the connection]
marr has quit []
bearish has joined #ruby
jonathan_alban has joined #ruby
Hobogrammer has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
io_syl has quit []
bearish has quit [Ping timeout: 240 seconds]
claw__ has quit [Read error: Connection reset by peer]
drawingthesun has quit [Ping timeout: 255 seconds]
sarkis has joined #ruby
Envek has quit [Quit: Good bye, see you soon!/]
ctp has quit [Ping timeout: 245 seconds]
cousine has joined #ruby
ctp has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
darkxploit has joined #ruby
Wolland_ has quit [Remote host closed the connection]
oo_ has joined #ruby
fabrice31 has joined #ruby
Wolland has joined #ruby
sectionme has quit [Ping timeout: 260 seconds]
sarkis has quit [Ping timeout: 240 seconds]
buto has joined #ruby
ptrrr has joined #ruby
xp_prg has quit [Quit: This computer has gone to sleep]
carraroj has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
sparrovv has joined #ruby
postmodern has quit [Quit: Leaving]
wildroman2 has joined #ruby
sparrovv has quit [Remote host closed the connection]
gccostabr has joined #ruby
ctp has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
oo_ has quit [Remote host closed the connection]
sheath__ has quit [Quit: This computer has gone to sleep]
perryb has quit [Remote host closed the connection]
klmlfl has joined #ruby
kirun has joined #ruby
lxsameer has quit [Quit: Leaving]
Rydekull_ is now known as Rydekull
danijoo has quit [Read error: Connection reset by peer]
Rydekull has quit [Changing host]
Rydekull has joined #ruby
ta_ has quit [Remote host closed the connection]
danijoo has joined #ruby
ta_ has joined #ruby
klmlfl has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
cousine has quit [Remote host closed the connection]
W0rmDr1nk has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
ctp has joined #ruby
emmesswhy has joined #ruby
IRLeif is now known as IRLeif_AFK
a____ has joined #ruby
a___ has joined #ruby
SilkFox_ has joined #ruby
Takle has joined #ruby
KnownSyntax has quit [Quit: Connection closed for inactivity]
SilkFox_ has quit [Ping timeout: 240 seconds]
kachi8 has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
crdpink has quit [Read error: Connection reset by peer]
yacks has joined #ruby
IRLeif_AFK has quit [Quit: I'm away at the moment.]
<shevy> code code code code
nfk has joined #ruby
Mon_Ouie has joined #ruby
shredding has quit [Quit: shredding]
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
tvw has quit []
ctp has quit [Ping timeout: 245 seconds]
bearish has joined #ruby
gaussblurinc1 has joined #ruby
goodenough has quit [Remote host closed the connection]
axilla has joined #ruby
bearish has quit [Ping timeout: 250 seconds]
JBreit has joined #ruby
Cer3bus has quit [Ping timeout: 245 seconds]
wildroman2 has quit [Remote host closed the connection]
cirn0 has joined #ruby
JBreit has left #ruby [#ruby]
sectionme has joined #ruby
sarkis has joined #ruby
IRLeif has joined #ruby
cirn0 has quit [Ping timeout: 245 seconds]
sarkis has quit [Ping timeout: 245 seconds]
sectionme has quit [Ping timeout: 255 seconds]
ctp has joined #ruby
kachi8 has quit [Ping timeout: 245 seconds]
_foka has joined #ruby
_foka has quit [Remote host closed the connection]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
ctp_ has joined #ruby
wildroman2 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
dawkirst has joined #ruby
ctp has quit [Ping timeout: 260 seconds]
sectionme has joined #ruby
Akagi201 has joined #ruby
hellangel7 has joined #ruby
dawkirst has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
darkxploit has quit [Read error: Connection reset by peer]
sectionme has quit [Ping timeout: 260 seconds]
narendraj9 has joined #ruby
timonv_ has quit [Remote host closed the connection]
Cheezebox has joined #ruby
klmlfl has joined #ruby
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
<shevy> what ways exist to store data in modules?
Squarepy has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
<jhass> CONSTANTS and module level @instance_variables come to mind
<shevy> hmm
<jhass> one could say @@class_vars, but they aren't really contained to modules IMO
<shevy> yeah... my gripe with constants is that the name implies "do not change" :(
<shevy> aha
<shevy> I forgot about @@vars
<shevy> I think I used them only in classes so far
<jhass> I prefer module level @instance_vars for dynamic data
<shevy> hmm
<shevy> would these module level @instance_vars not leak into a class once the module gets included?
klmlfl has quit [Ping timeout: 245 seconds]
<jhass> no
<jhass> thus module level
ctp_ has quit [Ping timeout: 245 seconds]
<jhass> module Foo; class << self; attr_accessor :foo; end; end;
<jhass> Foo.foo = :bar
<shevy> cool
<shevy> that looks better than @@
<jhass> @@ would leak into included classes btw
gccostabr has joined #ruby
nhhagen has quit [Ping timeout: 250 seconds]
<shevy> ewwwwwwwww
dRbiG has quit [Ping timeout: 250 seconds]
testcore has quit [Ping timeout: 264 seconds]
W0rmDr1nk has joined #ruby
V_ has quit [Ping timeout: 264 seconds]
<a____> I was going to say, shevy - it's probably not a totally bad thing that @@ doesn't come completely naturally to you :)
<shevy> well you would have almost tricked me into trying to use them
<shevy> but when jhass wrote that they leak into included classes like an evil virus, that shut down that line of thought quickly :(
Cheezebox has quit [Remote host closed the connection]
testcore has joined #ruby
V_ has joined #ruby
dRbiG has joined #ruby
darkxploit has joined #ruby
<Mon_Ouie> Thankfully you can't include a class so that's not a big deal :p
<Mon_Ouie> They are inherited like constants are though
SilkFox_ has joined #ruby
<apeiros> but! but! but! I want to include classes!
<apeiros> also it's funny that classes are the only subclass of module which can't be included
ndrei has joined #ruby
sevenseacat has joined #ruby
<shevy> hehe
<apeiros> well, technically you include instances of module subclasses - so it's funny that Class is the only subclass of Module whose instances can't be included
<shevy> now we know why apeiros worked on his own language
<apeiros> because I'm bored all the time? :)
jaffachief has quit [Quit: Connection closed for inactivity]
smss1995 has quit [Remote host closed the connection]
sigurding has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
monse has joined #ruby
yfeldblum has quit [Remote host closed the connection]
ziggy_client has joined #ruby
yezzie has joined #ruby
claymore has joined #ruby
browndawg has joined #ruby
Cheezebox has joined #ruby
monse has left #ruby [#ruby]
yezzie has quit [Ping timeout: 240 seconds]
smss1995 has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.4.3]
e^0 has joined #ruby
timonv_ has joined #ruby
pandaant has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
ziggy_client has quit [Remote host closed the connection]
shredding has joined #ruby
fabrice31 has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
michele has joined #ruby
cousine has joined #ruby
<michele> Hi there. I developed a Ruby CLI application and I want to distribute it. This application consists in some ruby scripts, a sqlite3 db file, a log file (logger) and a config file (json). How can I efficiently distribute it? I read that I can build a gem that ships all of these files and add an executable that actually launches my program. However, my doubt is that all additional files (sqlite3 db file, log file, config.json) will be installed in ...
<michele> ... the default path for gems (e.g. /var/lib/gems/*). Is this the correct way to distribute Ruby software?
shevy has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
oso96_2000 has quit [*.net *.split]
minecoins has quit [*.net *.split]
cibs has quit [*.net *.split]
zz_karupa has quit [*.net *.split]
eshy has quit [*.net *.split]
cousine has quit [Remote host closed the connection]
<jhass> michele: there's the Gem.datadir stuff
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
oso96_2000 has joined #ruby
eshy has joined #ruby
zz_karupa has joined #ruby
cibs has joined #ruby
minecoins has joined #ruby
Insti has quit [Ping timeout: 240 seconds]
nhhagen has joined #ruby
abuzze has joined #ruby
sarkis has joined #ruby
Fire-Dragon-DoL has joined #ruby
einarj_ has joined #ruby
<jhass> michele: though I'd consider just writing that stuff to $XDG_DATA_HOME/gemname
garethrees has joined #ruby
parduse has quit [Killed (dickson.freenode.net (Nickname regained by services))]
parduse has joined #ruby
Cheezebo_ has joined #ruby
mage__ has joined #ruby
parduse is now known as Guest72189
<jhass> the log maybe even to $XDG_RUNTIME_DIR
bmurt has joined #ruby
<jhass> note you need fallbacks for these vars, they're not reliably set
Nahra` has joined #ruby
cornfeedhobo has joined #ruby
browndawg has joined #ruby
toertore has joined #ruby
browndawg has quit [Max SendQ exceeded]
drago777- has joined #ruby
<a____> Jeez. Testing REST/CRUD applications by mocking instead of using a database seems so tough.
sarkis has quit [Ping timeout: 250 seconds]
browndawg has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
<michele> thanks jhass
phreax_ has joined #ruby
bearish has joined #ruby
shevy has joined #ruby
agjacome has joined #ruby
claymore has quit [Quit: Leaving]
Mekkis has quit [Ping timeout: 276 seconds]
Deele has quit [Ping timeout: 276 seconds]
soulcake has quit [Ping timeout: 276 seconds]
bearish has quit [Ping timeout: 245 seconds]
cajone1 has left #ruby [#ruby]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nhhagen has quit [*.net *.split]
Cheezebox has quit [*.net *.split]
IRLeif has quit [*.net *.split]
ghr has quit [*.net *.split]
phoo1234567 has quit [*.net *.split]
einarj has quit [*.net *.split]
Nahra has quit [*.net *.split]
toretore has quit [*.net *.split]
wchun has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
Vile` has quit [*.net *.split]
drago777 has quit [*.net *.split]
Dr3amc0d3r|away has quit [*.net *.split]
mage_ has quit [*.net *.split]
Brando753 has quit [*.net *.split]
cornfeedhobo_ has quit [*.net *.split]
phreax has quit [*.net *.split]
MindfulMonk has quit [*.net *.split]
V_ has quit [*.net *.split]
testcore has quit [*.net *.split]
end_guy has quit [*.net *.split]
pskosinski has quit [*.net *.split]
o0oo0o has quit [*.net *.split]
Boohbah has quit [*.net *.split]
DrCode has quit [*.net *.split]
abuzze has quit [Remote host closed the connection]
sectionme has joined #ruby
Neomex has joined #ruby
abuzze has joined #ruby
Dr3amc0d3r|away has joined #ruby
phoo1234567 has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
MindfulMonk has joined #ruby
DrShoggoth has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camt has quit [Remote host closed the connection]
soulcake has joined #ruby
peckermanzzz has quit [Ping timeout: 276 seconds]
Mekkis has joined #ruby
Caius has joined #ruby
Caius has quit [Ping timeout: 276 seconds]
soulcake has quit [Ping timeout: 276 seconds]
Deele has joined #ruby
peckermanzzz has joined #ruby
Deele has quit [*.net *.split]
Caius has quit [*.net *.split]
peckermanzzz has quit [*.net *.split]
Mekkis has quit [*.net *.split]
Brando753 has joined #ruby
yfeldblum has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Caius has joined #ruby
soulcake has joined #ruby
Deele has joined #ruby
peckermanzzz has joined #ruby
Mekkis has joined #ruby
Caius has joined #ruby
soulcake has joined #ruby
Caius has quit [Changing host]
soulcake has quit [Changing host]
<Tom__Orrow> Hi. I have another question about GC in ruby 2.1.2. Is it possible that after GC.start i have more ram usage than before?
motto has joined #ruby
Vile` has joined #ruby
PHP4Ever has joined #ruby
sickdan is now known as halfdan
sectionme has quit [Ping timeout: 240 seconds]
halfdan is now known as halfdan_
halfdan_ is now known as halfdan
abuzze has quit [Ping timeout: 260 seconds]
FarlaTux has joined #ruby
Dev-Gitter has joined #ruby
m8 has quit [Ping timeout: 240 seconds]
Cheezebo_ has quit [Remote host closed the connection]
Cheezebox has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
Dev-Gitter has quit [Max SendQ exceeded]
<Tom__Orrow> Who can help to understand whats going on here?
Dev-Gitter has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
<Tom__Orrow> Actually why does ram usage increased at all if I use the same variable for the same amount of data?
Dev-Gitter has quit [Max SendQ exceeded]
jds has joined #ruby
smss1995 is now known as smss
peckermanzzz has quit [Ping timeout: 276 seconds]
Boohbah has joined #ruby
klmlfl has joined #ruby
InhalingPixels has joined #ruby
Dev-Gitter has joined #ruby
Cheezebox has quit [Ping timeout: 255 seconds]
Ilyas has joined #ruby
<jhass> it's not the variable that's consuming the memory, the assigned objects do
Dev-Gitter has quit [Max SendQ exceeded]
<Tom__Orrow> so I have 2kk of strings in memory. How can I remove them?
<jhass> so, iirc ruby doesn't release memory it once allocated, it just reuses it when it's (internally) free again
Dev-Gitter has joined #ruby
Scotteh has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
cajone has joined #ruby
<jhass> my guess it that the GC run consumes that much memory
Bumptious has quit [Remote host closed the connection]
<jhass> so after it, the process has allocated that memory but might not actually use it
<a____> Does anybody favour any frameworks over Rails, here?
Dev-Gitter has quit [Max SendQ exceeded]
<a____> Obviously there's Sinatra, but naturally that's lightweight - and I know there's Padrino, which attempts to bridge the gap
Takle has joined #ruby
<a____> Rails just seems full of anti-patterns to me.
Dev-Gitter has joined #ruby
browndawg has joined #ruby
Bumptious has joined #ruby
<jhass> Tom__Orrow: try comparing to require 'objspace'; ObjectSpace.memsize_of_all
<jhass> also ObjectSpace.count_objects
peckermanzzz has joined #ruby
klmlfl has quit [Ping timeout: 240 seconds]
<Tom__Orrow> thx. ill try
Caius has quit [Ping timeout: 276 seconds]
Deele has quit [Ping timeout: 276 seconds]
<jhass> and ObjectSpace.count_objects_size
soulcake has quit [Ping timeout: 276 seconds]
jonathan_alban has joined #ruby
soulcake has joined #ruby
Caius has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
Deele has joined #ruby
rikai has quit [Quit: No Ping reply in 180 seconds.]
Takle has quit [Ping timeout: 240 seconds]
rikai has joined #ruby
camt has joined #ruby
wchun has joined #ruby
fsapo has joined #ruby
pandaant has quit [Remote host closed the connection]
kachi8 has joined #ruby
ylluminarious has joined #ruby
rikai has quit [Client Quit]
ylluminarious has quit [Client Quit]
agjacome_ has joined #ruby
michele has left #ruby [#ruby]
SilkFox_ has joined #ruby
banister has joined #ruby
yfeldblum has joined #ruby
ndrei has joined #ruby
agjacome has quit [Ping timeout: 260 seconds]
nhhagen has joined #ruby
thomasfedb_ has joined #ruby
rikai has joined #ruby
tekku has joined #ruby
Photism has joined #ruby
Logiztik_ has joined #ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 245 seconds]
mnemon2 has joined #ruby
thomasfedb has quit [*.net *.split]
mnemon has quit [*.net *.split]
Olipro has quit [*.net *.split]
tekk has quit [*.net *.split]
<banister> anyone here from holland and has a decent gaming rig? (tower)
cajone has quit [Remote host closed the connection]
mockra has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
avelldiroll has quit [Quit: WeeChat 0.3.8]
AlSquire has joined #ruby
mockra has quit [Ping timeout: 260 seconds]
avelldiroll has joined #ruby
Bingo has joined #ruby
ndrei has joined #ruby
andrewlio has quit [Quit: Leaving.]
sarkis has joined #ruby
<mostlybadfly> has anyone made their own square root method? I'm trying to solve this problem without necessarily using Math.sqrt
crdpink has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Olipro has joined #ruby
michele has joined #ruby
rikai has quit [Quit: No Ping reply in 180 seconds.]
browndawg has quit [Ping timeout: 245 seconds]
<michele> Hi there. Are Ruby arrays accessible by multiple threads (of the same Ruby script) simultaneously?
smss has quit [Quit: Leaving]
<jhass> mostlybadfly: x**(1/2.0) ? :P
awestroke has joined #ruby
rikai has joined #ruby
<jhass> michele: yes, and index access should be pretty thread safe. Write access and iterating while modifying not so much
cajone has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
<michele> jhass: what if I need to write multithread safe?
<jhass> use a thread safe array implementation or a specialized data structure
<mostlybadfly> jhass: uh wow haha, i was way overthinking this
<gr33n7007h> jhass, how would you do cube root?
<jhass> 2 -> 3
gccostabr has quit [Quit: ZZZzzz…]
<gr33n7007h> oh yeah cool
michele has left #ruby [#ruby]
<apeiros> jhass: "and index access should be pretty thread safe" no
rdavila has joined #ruby
<jhass> while no other party is writing? sure
<apeiros> at that point you already started making assumptions
cryptoca has joined #ruby
cryptoca has quit [Excess Flood]
drawingthesun has joined #ruby
<jhass> MRI shouldn't allow access while the internal state is inconsistent though, so even while other parties are writing, you only have the usual outdated information problems
hellangel7 has quit [Remote host closed the connection]
awestroke has quit [Remote host closed the connection]
dorei has joined #ruby
sectionme has joined #ruby
freerobby has joined #ruby
GriffinHeart has joined #ruby
log has joined #ruby
txdv has quit [Read error: Connection reset by peer]
Takle has joined #ruby
txdv has joined #ruby
<apeiros> jhass: "MRI" is the next assumption
<apeiros> unless a datastructure explicitly states to be thread safe, it's to be considered not thread safe
<jhass> gosh, I'm human! that's how we work!
AweyTare has quit [Read error: Connection reset by peer]
<jhass> :P
rdavila has quit [Quit: rdavila]
<apeiros> well, above is a perfectly human broad generalization - but one which holds true :-p
<a____> Do you guys have your unit tests touch the DB?
<apeiros> humane?
Ice has joined #ruby
<apeiros> a____: depends on the SUT
<a____> I'm spending ages trying to have them *not* - I'm not sure if it's a waste of time, or if I'm learning profound design lessons that using a DB obscures
Ice is now known as Guest62308
<apeiros> also depends on whether I actually write unit tests :-S
<apeiros> a____: should be trivial in ruby to have your SUT not touch the db
<apeiros> I mean… you can easily stub/mock db calls
<a____> apeiros: yup.
sectionme has quit [Ping timeout: 245 seconds]
<a____> apeiros: I think the core of my problem at the moment, is that I'm mocking things, which have to return mocks, and things get complicated
<a____> Maybe this is where FactoryGirl comes in
andrewlio has joined #ruby
<a____> I haven't used - but I'm guessing FactoryGirl prevents the need for manually creating mock dependency graphs
<apeiros> factorygirl is more a way to generate test data for integration tests
GriffinHeart has quit [Ping timeout: 240 seconds]
<apeiros> btw., IMO it's perfectly valid to not mock out everything. it's a tradeoff like everything else.
cajone has quit [Remote host closed the connection]
startupality has joined #ruby
Guest62308 has left #ruby [#ruby]
gccostabr has joined #ruby
<apeiros> you lose pinpointing precision on test failure the more participants your test integrates
<a____> apeiros: yup. I'm starting to see the merits in the classicist approach of only mocking out external services
<apeiros> you lose execution performance
<a____> apeiros: at the same time, I don't want to choose alternative strategies because *I* suck, rather than because a strategy does :)
<apeiros> otoh you win testing multiple things at once, which wins you development time
Azulinho has joined #ruby
<apeiros> a____: well, try different approaches, see how it goes.
<a____> Yup. I'm exploring this one (further)
log has left #ruby ["Leaving"]
<a____> The humbling thing is, is that I can talk tremendously about everything, but doing a simple app in pure TDD with best practices like this, *without* taking shortcuts, is... humbling
<a____> s/humbling/thing/ :) # you get the point ;)
cajone has joined #ruby
cryptoca has joined #ruby
klmlfl has joined #ruby
Kricir has joined #ruby
mike32 has joined #ruby
starkhallo has joined #ruby
<apeiros> a____: like all things, TDD takes time to learn doing properly and quickly
<a____> apeiros: it's taking a while :) I work for a large TDDing organisation which can make you complacent
<a____> TDDing an existing system composed into services etc. does not require the same skills as puristically making stuff from scratch
klmlfl has quit [Ping timeout: 240 seconds]
zeroNones has joined #ruby
zeroNones has quit [Max SendQ exceeded]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spastorino has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
yfeldblum has joined #ruby
AlSquire has quit [Quit: Quitte]
AlSquire has joined #ruby
fold has joined #ruby
rdavila has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
TheKruex has joined #ruby
Cheezebox has joined #ruby
zeroNones has joined #ruby
zeroNones has quit [Max SendQ exceeded]
SilkFox_ has joined #ruby
fabrice31 has joined #ruby
lw has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
OffTheRails has joined #ruby
<apeiros> a____: I can imagine :)
<apeiros> adding tests later, especially for foreign code, makes you think whether your test is wrong or the code once a mismatch happens… (also all the other issues)
yezzie has joined #ruby
Azulinho has quit [Ping timeout: 260 seconds]
cousine has joined #ruby
bmurt has quit []
BeanDip has quit [Ping timeout: 245 seconds]
yezzie has quit [Ping timeout: 240 seconds]
gccostabr has quit [Quit: ZZZzzz…]
darkxploit has quit [Read error: Connection reset by peer]
cajone has quit [Remote host closed the connection]
cajone has joined #ruby
banister has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
startupality has quit [Quit: startupality]
arup_r has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
sarkis has joined #ruby
cousine has quit [Remote host closed the connection]
arup_r has joined #ruby
rdavila has quit [Quit: rdavila]
TheKruex has quit []
timonv_ has joined #ruby
InhalingPixels has joined #ruby
rdavila has joined #ruby
shredding has quit [Quit: shredding]
benvds has joined #ruby
<shevy> only wimps have to test
benvds has left #ruby [#ruby]
sarkis has quit [Ping timeout: 245 seconds]
<a____> I'm getting to the point where I'd like to be able to just write code and have "Developers in Test" around to boss about :)
sevenseacat has quit [Quit: Leaving.]
narendraj9 has quit [Quit: Connection closed for inactivity]
codecop has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
InhalingPixels has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
danijoo has joined #ruby
<shevy> is your code really that awful
<dorei> shevy: tests help you with regressions
<shevy> you have regressions in your code?
cajone has quit [Read error: Connection reset by peer]
rdavila has quit [Quit: rdavila]
<shevy> I am doing an extremely boring task right now
sectionme has joined #ruby
<shevy> I am converting a single config text file, with key: value entries
<shevy> into individual yaml files
<shevy> it also had comments of course
startupality has joined #ruby
rdavila has joined #ruby
<shevy> 500 lines left to do ...
GriffinHeart has joined #ruby
<pontiki> why not script it?
User458764 has joined #ruby
<a____> shevy is a YAML programmer
rdavila has quit [Client Quit]
<a____> YAML doesn't do that
<a____> ;)
OffTheRails has quit [Ping timeout: 260 seconds]
<shevy> pontiki well there are top comments, and individual comments, I'd have to extract the comments away first
<shevy> and I have to use my brain
<shevy> right now I am in zombie mode
sectionme has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
marr has joined #ruby
<a____> hurrr. How do the following parse differently?
<a____> let :key { "lol" } # let(:key) { "lol" }
Sht0 has joined #ruby
<shevy> yeah
foobarbaz has joined #ruby
<shevy> like in sinatra where you can do
<shevy> post '/' do"
<shevy> oops
<shevy> post '/' do
<shevy> some_method()
<shevy> end
<shevy> but not
<foobarbaz> Hi guys, when testing is it possible to spy on a class method call?
<shevy> post '/' {
<shevy> a____ the ruby parser is not always a pretty, consistent beast... ask eam :-)
klmlfl has joined #ruby
<a____> shevy: sounds like a can of worms. I'll put a lid on it :)
<shevy> well it's ok
chihhsin has quit [Quit: leaving]
<shevy> you just need to keep in mind that with a lot of freedom, and lots of options "more than one way", one may have to be more disciplinized when writing code
<shevy> or limit your code to less options
<shevy> let :key { "lol" } is nicer to read for the human eye than let(:key) { "lol" }
<a____> Afraid so. using do/end works, but it suddenly becomes a 3-line affair
chihhsin has joined #ruby
chihhsin has quit [Client Quit]
chihhsin has joined #ruby
<apeiros> a____: precedence
klmlfl has quit [Ping timeout: 250 seconds]
<apeiros> foo bar { … } --> foo(bar { … })
<apeiros> foo bar do … end --> foo(bar) do … end
<foobarbaz> Hi guys, when testing is it possible to spy on a class method call? using rspec in particular
<apeiros> (that's the difference between {} and do/end btw.)
<apeiros> foobarbaz: yes
axilla has quit [Ping timeout: 240 seconds]
<foobarbaz> apeiros: How so? I noticed rspec-mocks doesn't support class_spy anymore?
<foobarbaz> or am i looking at the wrong classes
<apeiros> I don't use rspec, so no idea.
<apeiros> but it certainly is possible
<dorei> any idea how can i write powers in a stackoverflow question?
DrCode has joined #ruby
buto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Read error: Connection reset by peer]
cajone has joined #ruby
<foobarbaz> apeiros: what search terms would you recommend?
<foobarbaz> I've come up blank
<jokke> hi
<apeiros> foobarbaz: I'd go to your mock/stub lib's API docs
tvw has joined #ruby
<jokke> are there any projects like drbfire, that are still maintained
<apeiros> jokke: checked ruby-toolbox.com?
<jhass> foobarbaz: expect/allow(Foo).to receive(..) should just work
<jokke> apeiros: i don't know what to search for...
<apeiros> jokke: I'd search for drbfire itself and see if it mentions "similar"
<foobarbaz> jhass: and_call_original
<foobarbaz> i think?
<jokke> apeiros: couldnt find it
shredding has joined #ruby
TheKruex has joined #ruby
<foobarbaz> jhass: in conjunction with and_call_original? *
<jhass> foobarbaz: depends on the behavior you want
<jhass> and_call_original, and_return etc
<foobarbaz> I'm hoping to just 'spy' on the Model's new call
<foobarbaz> and just verify i passed in what i thought i passed in
havenwood has joined #ruby
<foobarbaz> allo(Model).to receive(:new).and_call_through
<foobarbaz> expect(Model).to have_received(:new).with(...)
antoinedc has joined #ruby
<foobarbaz> Hopefully i'm doing that right :)
antoinedc has left #ruby [#ruby]
antoinedc has joined #ruby
SilkFox_ has joined #ruby
tomgavin has quit [Ping timeout: 260 seconds]
Wolland has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
SilkFox_ has quit [Ping timeout: 240 seconds]
jheg has joined #ruby
iamjarvo has joined #ruby
moritzschaefer has joined #ruby
Sht0 has quit []
sparrovv has joined #ruby
bking39116 has joined #ruby
starless has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
end_guy has joined #ruby
bluenemo has quit [Quit: Verlassend]
mikepack has joined #ruby
froggy_ has joined #ruby
gaussblurinc1 has joined #ruby
pskosinski has joined #ruby
mikepack has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
froggy__ has quit [Ping timeout: 255 seconds]
startupality has quit [Quit: startupality]
atmosx has joined #ruby
sarkis has joined #ruby
rubytor has joined #ruby
foobarbaz has quit [Quit: Page closed]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
sarkis has quit [Ping timeout: 245 seconds]
jay has joined #ruby
Kricir has quit [Ping timeout: 250 seconds]
klmlfl has joined #ruby
momomomomo has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
CaptainJet has joined #ruby
klmlfl has quit [Read error: No route to host]
toastynerd has quit [Remote host closed the connection]
klmlfl has joined #ruby
sectionme has joined #ruby
GriffinHeart has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
manacit[UW] is now known as manacit
sparrovv has quit [Remote host closed the connection]
klmlfl has quit [Ping timeout: 250 seconds]
shredding has quit [Quit: shredding]
sparrovv has joined #ruby
sectionme has quit [Ping timeout: 245 seconds]
GriffinHeart has quit [Ping timeout: 240 seconds]
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> what would be the simplest way to have an object
<shevy> that works like a hash, but also adds or removes methods based on its internal keys?
<shevy> so like: hash_like_object = {}; hash_like_object << { :foo => 'bar' }; hash_like_object.foo # "bar"
DEA7TH_ has joined #ruby
DEA7TH has quit [Disconnected by services]
DEA7TH_ is now known as DEA7TH
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<jhass> shevy: OpenStruct ?
<shevy> hmm lemme test that
sparrovv has quit [Ping timeout: 245 seconds]
DouweM has joined #ruby
sarkis has joined #ruby
Jake232 has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
mary5030 has joined #ruby
OffTheRails has joined #ruby
blueOxigen has joined #ruby
bearish has joined #ruby
anaeem1 has joined #ruby
kaspergrubbe has joined #ruby
Bumptious has quit [Remote host closed the connection]
browndawg has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
browndawg has quit [Max SendQ exceeded]
Bumptious has joined #ruby
anaeem1 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Symbiosisz has quit [Quit: Leaving]
anaeem1 has joined #ruby
mrsolo has joined #ruby
browndawg has joined #ruby
<waxjar> class Hash; def method_missing(meth, *args, &blk) fetch(meth) { super }; end; end
<a____> OpenStruct will do
bearish has quit [Ping timeout: 255 seconds]
<a____> stblib
<a____> stlib*
<a____> Forget it.
<waxjar> haha
<shevy> haha
<shevy> stdblib
Sonny|3oy has joined #ruby
jonathan_alban has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
jheg has quit [Quit: jheg]
mrsolo has quit [Quit: This computer has gone to sleep]
hiyosi has joined #ruby
Kricir has joined #ruby
hiyosi has quit [Client Quit]
lucianosousa has joined #ruby
o0oo0o has joined #ruby
hiyosi has joined #ruby
SilkFox_ has joined #ruby
cirn0 has joined #ruby
TheTopBloke has joined #ruby
hiyosi has quit [Client Quit]
shredding has joined #ruby
GriffinHeart has joined #ruby
AlSquire has quit [Quit: Quitte]
hiyosi has joined #ruby
AlSquire has joined #ruby
shredding has quit [Client Quit]
anshin has joined #ruby
cirn0 has quit [Remote host closed the connection]
cirn0 has joined #ruby
jokke has quit [Quit: WeeChat 1.0]
shredding has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
jokke has joined #ruby
iamjarvo has joined #ruby
yezzie has joined #ruby
cirn0 has quit [Ping timeout: 245 seconds]
mockra has joined #ruby
mockra_ has joined #ruby
antoinedc has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 245 seconds]
benzrf|offline is now known as benzrf
mrsolo has joined #ruby
hiyosi has quit [Quit: WeeChat 1.0]
yezzie has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
motto has quit [Quit: Sto andando via]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mockra has quit [Ping timeout: 240 seconds]
goshdarnyou has joined #ruby
hiyosi has joined #ruby
sparrovv has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
TheKruex has quit [Read error: No route to host]
fsapo has quit [Remote host closed the connection]
gaussblurinc11 has joined #ruby
jmbrown4_ has joined #ruby
gzl_ is now known as gzl
gzl has quit [Changing host]
gzl has joined #ruby
jmbrown412 has quit [Ping timeout: 240 seconds]
gaussblurinc1 has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
Ankhers has joined #ruby
InhalingPixels has joined #ruby
mockra_ has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
mockra has joined #ruby
DEA7TH has quit [Read error: Connection reset by peer]
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Insti has joined #ruby
nszceta has joined #ruby
anaeem1_ has joined #ruby
klmlfl has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
InhalingPixels has quit [Ping timeout: 260 seconds]
mockra has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klmlfl_ has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
klmlfl_ has quit [Read error: No route to host]
klmlfl has joined #ruby
<gr33n7007h> >> def m1; m2("thirteen", &Proc.new); end; def m2(arg); puts "#{arg} #{yield}"; end; m1 { "warriors" }
<eval-in____> gr33n7007h => thirteen warriors ... (https://eval.in/186143)
<gr33n7007h> How is this working?
Symbiosisz has joined #ruby
<jhass> gr33n7007h: Proc.new without arguments inside a method captures the block passed to a method, much like def foo(&block)
sectionme has joined #ruby
<jhass> so Proc.new captures the block and & passes it on to the next one
shredding has quit [Quit: shredding]
Cache_Money has joined #ruby
yfeldblum has joined #ruby
<gr33n7007h> I'm just trying to take this in
e^0 has quit [Ping timeout: 245 seconds]
<jhass> I prefer explicitly capturing the block personally
bking39116 has quit [Quit: bking39116]
buto has joined #ruby
startupality has joined #ruby
<gr33n7007h> ah I see now
rege has quit [Quit: Connection closed for inactivity]
klmlfl has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 250 seconds]
ptrrr has joined #ruby
bking39116 has joined #ruby
toastynerd has joined #ruby
ndrei has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
gsd has joined #ruby
Morkel has joined #ruby
Morkel has quit [Client Quit]
j416_ has joined #ruby
j416 has quit [Ping timeout: 245 seconds]
e^0 has joined #ruby
Dev-Gitter has quit [Quit: Leaving [Bye Everybody]]
FarlaTux has quit [Quit: Leaving [Bye Everybody]]
PHP4Ever has quit [Quit: Leaving [Bye Everybody]]
Cache_Money has quit [Quit: Cache_Money]
toastynerd has quit [Ping timeout: 240 seconds]
<gr33n7007h> jhass, def m1 arg; yield arg; end or m2 arg, &b; b.call arg; end ?
tectonic has joined #ruby
<jhass> def m1(&block); m2("thirteen", &block); end;
Kricir has joined #ruby
momomomomo has quit [Quit: momomomomo]
mage__ is now known as mage_
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
<gr33n7007h> much easier to understand
Ishiro has joined #ruby
bearish has joined #ruby
claymore has joined #ruby
jokke has quit [Quit: WeeChat 1.0]
heftig-android has joined #ruby
jokke has joined #ruby
zettam_ has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
bearish has quit [Ping timeout: 245 seconds]
zettam has quit [Ping timeout: 255 seconds]
modernbob has quit []
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sectionme has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
Neomex has quit [Quit: Leaving]
weeb1e has joined #ruby
momomomomo has joined #ruby
modernbob has joined #ruby
TheTopBloke has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has joined #ruby
shredding has quit [Quit: shredding]
SilkFox_ has joined #ruby
lw has quit [Ping timeout: 255 seconds]
lw has joined #ruby
User458764 has quit [Ping timeout: 250 seconds]
einarj_ has quit [Remote host closed the connection]
jay has quit [Remote host closed the connection]
lucianosousa_ has joined #ruby
Kricir has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
lucianosousa has quit [Ping timeout: 255 seconds]
lucianosousa_ is now known as lucianosousa
chrishough has joined #ruby
Kricir_ has joined #ruby
smartypantz_ has joined #ruby
cirn0 has quit [Remote host closed the connection]
LangeOortjes has quit []
nhhagen has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
mferrier has joined #ruby
Kricir_ has quit [Ping timeout: 255 seconds]
emmesswhy has joined #ruby
Scotteh has quit [Ping timeout: 240 seconds]
mnemon2 is now known as mnemon
Neomex has joined #ruby
Es0teric has joined #ruby
jokke has quit [Quit: WeeChat 1.0]
jokke has joined #ruby
edwardloveall has joined #ruby
jokke has quit [Client Quit]
jokke has joined #ruby
banister has joined #ruby
InhalingPixels has joined #ruby
jay has joined #ruby
agjacome has joined #ruby
klmlfl has joined #ruby
Es0teric has quit [Ping timeout: 260 seconds]
centrx has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
drjfreez1 is now known as drjfreeze
klmlfl has joined #ruby
shredding has joined #ruby
agjacome_ has quit [Ping timeout: 240 seconds]
jpic has quit [Ping timeout: 240 seconds]
dcoxall has joined #ruby
sectionme has joined #ruby
juco has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<edwardloveall> does anyone know a way make sure an rspec example fails or shows as pending if there is no expect statement?
wildroman2 has quit [Ping timeout: 255 seconds]
jheg has joined #ruby
Ishiro has quit [Quit: Computer has gone to sleep.]
jpic has joined #ruby
<edwardloveall> hmmm that's pretty cool
lucianosousa_ has joined #ruby
<edwardloveall> although I'm hoping for something automatic
lucianosousa has quit [Ping timeout: 250 seconds]
lucianosousa_ is now known as lucianosousa
<edwardloveall> the problem is sometimes i'll begin to write an it block, set some vars or whatever, and then never finish it
<edwardloveall> and it just shows up green when i run through
<edwardloveall> which IMO, it shouldn't
klmlfl has quit [Ping timeout: 255 seconds]
sectionme has quit [Ping timeout: 240 seconds]
mockra has joined #ruby
banister has joined #ruby
<havenwood> edwardloveall: hem, in RSpec 3 a #pending will actually error if the test passes and there's a new #skip
browndawg has left #ruby [#ruby]
<edwardloveall> havenwood: can you explain that a little more?
shredding has quit [Quit: shredding]
<edwardloveall> i'm using Rspec 3
<dcoxall> In my experience the best way to go about it is just to lay out the spec file with out specifying the block for your test but just to get a collection of describes, contexts and its with descriptions. These will then all show as pending and then you can go about one at a time. From my understandiong though I don't know a conveniant way to automate it.
<jhass> edwardloveall: sed -i s/it /pending / :P
Sonny|3oy has quit [Quit: Leaving]
<havenwood> edwardloveall: okay, so if you put pending all your specs then they'll throw an error until you get that test failing
<havenwood> edwardloveall: then when you get the test passing, they'll throw an error again
<havenwood> adam_: and you can remove the :pending
<edwardloveall> oh i se
<edwardloveall> e
yfeldblum has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<edwardloveall> yeah i have to add pending to everything though
<havenwood> edwardloveall: yes
<edwardloveall> hmmmm
<edwardloveall> gotta be a way
mockra has quit [Ping timeout: 255 seconds]
banister has quit [Client Quit]
<edwardloveall> i want this to fail: http://pastie.org/9517297
<edwardloveall> or warn
<edwardloveall> either would work
<havenwood> edwardloveall: if you did auto-pending behind the scenes then your tests would always fail :P
<edwardloveall> like an after each?
arup_r has quit [Quit: Leaving.]
juco has quit [Ping timeout: 260 seconds]
<edwardloveall> oh haha
<a____> undefined method attr_accessor
<a____> Can it not be invoked within a method?
<a____> I'm looking to dynamically create accessors
<momomomomo> you can send attr accessor to the class
<jhass> a____: it's Module#attr_accessor not Object#attr_accessor
<jhass> so self needs to be a Module
<a____> How would I invoke ti?
astegman has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
lucianosousa_ has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
axsuul has joined #ruby
<a____> Wait, how is it possible in classes, if it's a module method?
<jhass> Class < Module
User458764 has joined #ruby
Fezzler has joined #ruby
<apeiros> >> Class.ancestors
<eval-in____> apeiros => [Class, Module, Object, Kernel, BasicObject] (https://eval.in/186149)
<a____> How could I invoke it from within a method, then?
<jhass> seems broken
<apeiros> a____: by having the method be a class method?
lucianosousa has quit [Ping timeout: 260 seconds]
lucianosousa_ is now known as lucianosousa
<apeiros> a____: what do you want to achieve?
freerobby has quit [Quit: Leaving.]
<momomomomo> >> p Class.superclass
<eval-in____> momomomomo => Module ... (https://eval.in/186150)
<jhass> why would you want to add accessors to the class from an instance?
agjacome_ has joined #ruby
<shevy> to do live upgrades!
Jackneill has quit [Ping timeout: 240 seconds]
<apeiros> attr_accessor defines an instance method. so whatever you call it on must be able to have instance methods (that'd be modules and classes)
Takle has quit [Remote host closed the connection]
<a____> apeiros: I want my constructor to take a hash, and for each key to be accessible as a method
<a____> A little like an OpenStruct
<apeiros> a____: see singleton_class
<jhass> or method_missing
Fezzler has quit [Client Quit]
fabrice31 has joined #ruby
<a____> Evalling a string seems wrong
<heftig-android> Doing that on every construct might be a bad idea, though
agjacome has quit [Ping timeout: 260 seconds]
<heftig-android> Modifying or creating classes purges certain caches
<shevy> whoa
<momomomomo> a___: that is exactly what you're asking for
<momomomomo> eval a attr_accessor
<momomomomo> escape the string
<apeiros> momomomomo: um, no
<jhass> uhm, big no
<a____> I'm quite sure I don't want to evaluate strings
<shevy> >> def O_o; end; O_o
<eval-in____> shevy => uninitialized constant O_o (NameError) ... (https://eval.in/186151)
<apeiros> a____: as said, singleton_class is your way if you want attr_accessors on a single object
<a____> >> def o_0; end; o_0 # :)
<eval-in____> a____ => nil (https://eval.in/186152)
toastynerd has joined #ruby
<jhass> def O_o(); end;
<jhass> >> def O_o(); end;
<eval-in____> jhass => :O_o (https://eval.in/186153)
<apeiros> >> o = Object.new; o.singleton_class.attr_accessor :foo; o.foo = "hi"; o.foo
<shevy> >> def O_o; puts __method__; end; O_o()
<eval-in____> apeiros => private method `attr_accessor' called for #<Class:#<Object:0x417edc18>> (NoMethodError) ... (https://eval.in/186154)
<eval-in____> shevy => O_o ... (https://eval.in/186155)
<heftig-android> You're better off with something like Struct, where you first define the class and then repeatedly instantiate
<a____> apeiros: thanks, that sounds appropriate
<apeiros> bah
<apeiros> >> o = Object.new; o.singleton_class.send :attr_accessor, :foo; o.foo = "hi"; o.foo
<eval-in____> apeiros => private method `foo=' called for #<Object:0x40a59b9c> (NoMethodError) ... (https://eval.in/186156)
<apeiros> o0
<shevy> another smiley!
arya_ has joined #ruby
<apeiros> teh fuck?
<apeiros> works fine here
<havenwood> a____: class X; def x; class << self; attr_accessor :o end end end; x = X.new; x.x; x.o = 'xo'; x.o #=> "xo"
gregf has quit [Quit: WeeChat 1.0]
<momomomomo> havenwood: that's exactly what I said
<momomomomo> that's class_eval
jheg has quit [Quit: jheg]
<a____> Except without strings
<a____> What's class << self ?
<momomomomo> class eval
<momomomomo> ~_~
<shevy> eval ur mom
<momomomomo> you guys are nuts
<shevy> your nuts are guys
<havenwood> are nuts your guys
<shevy> a____ you can use that to add class methods
fabrice31 has quit [Ping timeout: 240 seconds]
<a____> havenwood: would that be safe to run multiple times?
<havenwood> excessive hugs and kisses
<shevy> >> class Foo; class << self; def foo; puts 'yo from foo()'; end; end; end; Foo.foo
<eval-in____> shevy => yo from foo() ... (https://eval.in/186157)
<havenwood> xoxoxo
<shevy> I think havenwood finally did it
<shevy> he finally is drunk
<momomomomo> shevy: that's the same shit I said that you all flipped out about
<shevy> I showed a pretty and working example :-)
<momomomomo> my bad for not spoon feeding
<shevy> that's ok
<momomomomo> and tsk tsk on this room
<shevy> your karma will simply be low
toastynerd has quit [Ping timeout: 240 seconds]
arya_ has quit [Client Quit]
<momomomomo> unless apeiros and jhass have a different resolution using the eigenclass
Jackneill has joined #ruby
<jhass> singleton_class.send :attr_accessor / define_singleton_method
mengu has joined #ruby
mengu has joined #ruby
<apeiros> this is weird… anybody see where my thoughts go wrong?
<apeiros> ruby -e 'o = Object.new; o.singleton_class.class_eval do attr_accessor :foo end; p o.methods(false)' # —> [:foo, :foo=]
<momomomomo> I already described why that wouldn't work jhass
<apeiros> ruby -e 'o = Object.new; o.singleton_class.send :attr_accessor, :foo; p o.methods(false)' # —> []
<apeiros> IMO the second one should have the same result
<momomomomo> tl;dr: context
<momomomomo> no
<momomomomo> it shouldn't
<apeiros> momomomomo: and why?
<momomomomo> read the link
<momomomomo> "However def behaves differently, it does not operate on the self but instead on the default definee. In the case of class_eval the default definee is the same as self but for instance_eval it is instead the metaclass of self."
<shevy> huh
<apeiros> momomomomo: that link does not apply
<momomomomo> lol
<a____> momomomomo: I don't think "spoon-feeding" is a concern given the discussion :)
<apeiros> I call attr_accessor on the same object in both cases
<momomomomo> right
<momomomomo> but what does attr_accessor have as context to define the method
<apeiros> momomomomo: self
<momomomomo> the metaclass
<apeiros> just as every method
<apeiros> ruby has settled on singleton_class
<momomomomo> you can class_eval on the singleton class
<apeiros> attr_accessor operates - like every method - on self
<momomomomo> and get what you're asking for
<momomomomo> but you can't do it via send
<apeiros> momomomomo: you are missing the point
<havenwood> the latter still defines the methods, just as private
* momomomomo sighs
<apeiros> havenwood: yes, I noticed. but why?
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<momomomomo> o = Object.new; o.singleton_class.class_eval do attr_accessor :foo; end; p o.methods(false)
<apeiros> momomomomo: the receiver of attr_accessor is both times the same object - the singleton_class. there is no difference in how you invoke a method.
<momomomomo> that should work
LangeOortjes has joined #ruby
<momomomomo> you're right
<momomomomo> >> o = Object.new; o.singleton_class.class_eval do attr_accessor :foo; end; p o.methods(false)
<eval-in____> momomomomo => [:foo, :foo=] ... (https://eval.in/186158)
<momomomomo> you were missing a semicolon
farid_ has quit [Read error: Connection reset by peer]
<momomomomo> the point is; you must class eval on the singleton
io_syl has joined #ruby
<shevy> oh
<shevy> apeiros forgot a semicolon?
<shevy> what a noob!!!
ndrei has quit [Ping timeout: 250 seconds]
<momomomomo> but this goes back to my original point about contexts
<momomomomo> which does apply
<momomomomo> otherwise you could just send attr_accessor
farid has joined #ruby
<apeiros> momomomomo: and now explain me how attr_accessor knows that it has been called via send vs. via direct invocation
<momomomomo> apeiros: momomomomo: um, no
<momomomomo> [1:04pm] jhass: uhm, big no
<momomomomo> [1:04pm] a____: I'm quite sure I don't want to evaluate strings
ndRx has joined #ruby
<momomomomo> it doesn't the context of self is different
ndrei has joined #ruby
<momomomomo> yugui.jp/articles/846#label-3
Scotteh has joined #ruby
<momomomomo> "Finally, class_eval changes both self and the default definee to the receiver."
klmlfl has joined #ruby
shock_one has joined #ruby
carraroj has joined #ruby
Channel6 has quit [Quit: Leaving]
<edwardloveall> you're comparing an instance to a class
<edwardloveall> try 5.is_a?(Fixnum)
* momomomomo throws hands up
<shock_one> I'm using case equality.
klmlfl_ has joined #ruby
<havenwood> shock_one: notice the difference with: Fixnum === 5
klmlfl has quit [Read error: Connection reset by peer]
yezzie has joined #ruby
<edwardloveall> oh weird
Cache_Money has joined #ruby
LangeOortjes has quit [Quit: brb]
mike32 has quit [Quit: Leaving]
<edwardloveall> oh it's an alias for #include?
<jhass> shock_one: Fixnum#===(Class) is false, Module#===(instance) will be true
kaspergrubbe has joined #ruby
<havenwood> shock_one: check out the #kind_of?, #is_a?, and #instance_of? methods: http://ruby-doc.org/core-2.1.2/Object.html
<shock_one> Actually I'm writing a switch, where I pass a variable, which is a number to when, and my case is Fixnum. This case is never executed.
<apeiros> this is idiotic. while def is a syntax construct, attr_* is not. it's a method. yet it makes use of an unattainable context. *sob*. IMO horrible, but well.
<apeiros> momomomomo: thanks for the link.
Ishiro has joined #ruby
<shevy> apeiros just got more motivation to continue on halsbe
Guest72189 has quit [Ping timeout: 240 seconds]
<shevy> +25 points
parduse has joined #ruby
LangeOortjes has joined #ruby
<momomomomo> no problem; didn't mean to be a dick, but next time maybe consider someone's answer before rejecting it outright, none of us always have a completely correct understanding of everything :p
<momomomomo> apeiros: ^
ptrrr has quit [Quit: ptrrr]
<jhass> shock_one: is it a big number? maybe it's not a Fixnum anymore, try Numeric
<jhass> or Integer
jheg has joined #ruby
<apeiros> momomomomo: well, in my defense - it's rather rare nowadays that I'm unaware of a quirk. so my default stance with ruby is "I'm quite probably right" :)
<edwardloveall> attempting to answer questions in here is making me realize how much ruby I don't know
<shevy> I'd say it is time for a kick-ban against momomomomo
<apeiros> this time, quite evidently, I was not
klmlfl_ has quit [Ping timeout: 260 seconds]
<shevy> you were
<shevy> DEAD WRONG!!!
<apeiros> thanks for sticking to it and linking good references
farid has quit [Read error: Connection reset by peer]
<apeiros> (+of a quirk *in ruby*)
<shevy> edwardloveall I gave up on that a long time ago
<momomomomo> just here to learn and help
<havenwood> filberts or hazelnuts?
<shevy> edwardloveall I try to write ruby in a way that it becomes "intuitive" so that I never ever have to think when churning out code
<shevy> filnuts
<shevy> when I have to use regexes though, the simplicity of ruby code almost always becomes more complex
farid has joined #ruby
SilkFox_ has joined #ruby
<shevy> it's ok for small or short regexes
wildroman2 has joined #ruby
<shevy> but then again, how do you use a regex?
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
<centrx> / ||= //
danijoo has quit [Read error: Connection reset by peer]
<centrx> :crap
danijoo has joined #ruby
<a____> /\/\\\// # like this
<shevy> that is not complete
<a____> handy if you've just eaten dinner
hellangel7 has joined #ruby
<shevy> for instance - how do you use capture groups
<a____> Looks complete to me
<shevy> a____ ok let's test
<shevy> >> /\/\\\//
<eval-in____> shevy => /\/\\\// (https://eval.in/186159)
<a____> ta-da
<shevy> a____ what's it do
<shevy> cool
<a____> /(?<mai_group>\/\\)\// # like this
<shevy> >> Regexp.new '\/\\\/'
<eval-in____> shevy => /\/\\\// (https://eval.in/186160)
<a____> >> >/(?<mai_group>\/\\)\// #
<eval-in____> a____ => /tmp/execpad-1a837823836b/source-1a837823836b:2: syntax error, unexpected '>' ... (https://eval.in/186161)
<shevy> a____ ERROR!!!
<a____> urrr
<shevy> you have a very strange nick by the way
sparrovv has quit [Remote host closed the connection]
<a____> thanks man. put a lot of thought into it
<shevy> if you replace a with _ it would be even stranger
<shevy> hahaha
SilkFox_ has quit [Ping timeout: 245 seconds]
<a____> >> /(?<mai_group>\/\\)\// #
<eval-in____> a____ => /(?<mai_group>\/\\)\// (https://eval.in/186163)
havenwood is now known as h____
Takle has joined #ruby
<a____> Accidentally >'d
robbyoconnor has quit [Ping timeout: 245 seconds]
juco has joined #ruby
<h____> a game of hangman?
robbyoconnor has joined #ruby
<shevy> omg
<a____> h____: I never got finished. I... never got finished... :'(
Kricir has joined #ruby
sparrovv has joined #ruby
<h____> a____: So huge, so hopeless to conceive, as these that twice befell.
farid has quit [Read error: Connection reset by peer]
<a____> h____: I hope your ruby is as poetic as that. one can dream
farid_ has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
astegman has left #ruby ["Out of time"]
jeroenvisser101 has joined #ruby
<shevy> how do you guys manage projects that you will publish to rubygems.org?
Kricir has quit [Ping timeout: 245 seconds]
<canton7> manage how? I have a git repo, and a rake task that builds the .gem
h____ is now known as havenwood
Takle has quit [Ping timeout: 245 seconds]
<shevy> hmm
rubytor has quit [Quit: No Ping reply in 180 seconds.]
<shevy> canton7, you mean you have a git repo for each ruby project?
ctp has joined #ruby
<shevy> where do you store that locally?
<shevy> like if your project is called "foobar"
heftig-android has quit [Remote host closed the connection]
<dorei> cd ~/Projects; mkdir foobar; cd foobar; hg init
<canton7> I have a projects folder, and a folder for each project
<canton7> it's a bit of a mess :P lots of temp and dead projects, but hey
<canton7> and yeah, one git repo per project
<shevy> hah precisely why I ask
<shevy> I have a mess
<havenwood> shevy: i use ~/code but if they're all repos isn't ~/repos tempting?
<shevy> ewww
<havenwood> shevy: :P
<shevy> that is even a bigger mess
<canton7> everything's flat, and that's fine. when I want to work on a project, I cd stright into it. no need to worry about the others?
<canton7> * :P
<shevy> right but what do you then do with standalone .rb files / scripts
<dorei> I use ~/Repos for project I clone from others, and ~/Projects for mine
<canton7> folder for then
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> hehehe
<canton7> *them
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> I think I've got a separate folder for sandbox project, actually. but that's more for compiled languages which need a project
<canton7> *sandbox projects. argh can't type
<havenwood> shevy: but a git repo for each gem and then either bundler-gemtasks with rake for installing/releasing or gem-release
sectionme has joined #ruby
startupality has quit [Quit: startupality]
juco has quit [Ping timeout: 240 seconds]
<havenwood> shevy: the former gives you `rake install` and `rake release` and the latter `gem bump --tag --release`, etc
nhhagen has quit []
darkness has joined #ruby
nhhagen has joined #ruby
<a____> the only stuff on my system is code
<a____> so... ~
<shevy> ok wait
<canton7> :P
Cache_Money has quit [Ping timeout: 255 seconds]
darkness is now known as Guest54718
<shevy> I didn't even know there is a gem bump command haha
<havenwood> shevy: only with the gem-release plugin
<havenwood> shevy: just a nicety
robbyoconnor has quit [Excess Flood]
<a____> gem bump?
<a____> oh
hellangel7 has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
<havenwood> >> '1.0.0.rc1'.next
<eval-in____> havenwood => "1.0.0.rc2" (https://eval.in/186168)
<shevy> wow
<shock_one> Did you guys know about CDPATH? If you have projects in ~/projects, say, ~/projects/fb, and you set "export CDPATH=:~/projects", then you can "cd fb" from any directory.
<shevy> I actually added something to my own scripts not long ago
<shevy> that does almost the same as "The bump command" seems to be doing
<canton7> ooh, I did not, thanks shock_one
decoponio has quit [Quit: Leaving...]
ndrei has quit [Ping timeout: 255 seconds]
<dorei> shock_one: thanx :)))
Cache_Money has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
sectionme has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
<shock_one> You're welcome. Useful for often visited directories. Note the : at the beginning. It means an inplicit . or current directory, so . always takes priority. If you have some questions about shells, I'm glad to answer, probably privately since it's a channel about Ruby.
yfeldblum has joined #ruby
agjacome has joined #ruby
Jake232 has joined #ruby
george2 has quit [Ping timeout: 240 seconds]
george2 has joined #ruby
<waxjar> i spend way too much time on a few functions that do almost exactly what $CDPATH does :(
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
<shock_one> Nobody reads documentation.
robustus has joined #ruby
agjacome_ has quit [Ping timeout: 250 seconds]
<centrx> Code should be self-documenting!
<centrx> Ruby wins again!
Hobogrammer has joined #ruby
agjacome has quit [Client Quit]
wildroman2 has quit [Remote host closed the connection]
ghr has joined #ruby
<shock_one> Even fewer people read BASH source code.
<shevy> ack
IceDragon has joined #ruby
<shock_one> Fewer than nobody.
Cer3bus has joined #ruby
jokke has quit [Quit: WeeChat 1.0]
bearish has joined #ruby
garethrees has quit [Ping timeout: 260 seconds]
jonathan_alban has joined #ruby
<shock_one> Here's another one: if you're in a directory ~/project/app/controllers/admin/ and you want to cd into ~/project/app/views/admin/, type "cd controllers views". In other words, passing two arguments to cd makes at work as replace. s/controllers/views/
claymore has quit [Ping timeout: 245 seconds]
<a____> If a programming language isn't DSL friendly, it can't be self-documenting
<a____> simples
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shock_one> a___: sometimes it's much easier to explain what's going on and why in English than in even the most DSL friendly language.
Akagi201 has quit []
heftig-android has joined #ruby
ndRx has quit [Ping timeout: 240 seconds]
jokke has joined #ruby
toastynerd has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
claymore has joined #ruby
lucianosousa has quit [Read error: Connection reset by peer]
bearish has quit [Ping timeout: 245 seconds]
<a____> shock_one: well, the most DSL-friendly language has the smallest disconnect with English
wildroman2 has joined #ruby
awestroke has joined #ruby
lucianosousa has joined #ruby
Takle has joined #ruby
<shock_one> Maybe if your domain is English Linguistics. DSL for calculus will not look like English at all.
<jhass> one plus two should equal three
<a____> That's a good point
<jhass> not a DSL?
<jhass> :P
<a____> Well, some domains are better explained in languages other than english
<a____> But they are niches
toastynerd has quit [Ping timeout: 250 seconds]
Cache_Money has quit [Quit: Cache_Money]
tylerkern has joined #ruby
tlarevo has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
<shock_one> jhass: I might dissappoint you, but addition is studied by a different branch of mathematics.
gtrak has joined #ruby
<jhass> bah, semantics!
bashrw has joined #ruby
<jhass> I don't do much math
<jhass> and less in English ;)
MCDev has quit [Ping timeout: 250 seconds]
<shock_one> It's never too late.
<jhass> I'm through the exams, what do I want more
bashrw has quit [Client Quit]
kaspergrubbe has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
einarj has joined #ruby
wildroman2 has quit [Remote host closed the connection]
einarj has joined #ruby
User458764 has quit [Ping timeout: 260 seconds]
goodenough has joined #ruby
<pskosinski> 10.to_s(2) => to_s': wrong number of arguments (1 for 0) Why?
lw has joined #ruby
<momomomomo> why do you have a 2 in the to_s
<momomomomo> >> p 10.to_s
<eval-in____> momomomomo => "10" ... (https://eval.in/186181)
<momomomomo> >> 2.to_s
<eval-in____> momomomomo => "2" (https://eval.in/186182)
<momomomomo> >> 2.methods.include? :to_s
<eval-in____> momomomomo => true (https://eval.in/186183)
DEA7TH has quit [Read error: Connection reset by peer]
<pskosinski> momomomomo: To convert to binary, and that code actually works, moment…
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
einarj has quit [Remote host closed the connection]
jottr has joined #ruby
<momomomomo> if it was a fixnum, it should work
bashrw has joined #ruby
lucianosousa has quit [Ping timeout: 240 seconds]
lucianosousa has joined #ruby
<pskosinski> Oh
and77 has joined #ruby
<momomomomo> pskosinski: floats cannot be expressed as binary exactly
bashrw has quit [Client Quit]
klmlfl has joined #ruby
elementz has quit [Ping timeout: 240 seconds]
anshin has quit [Quit: storms]
heftig-android has quit [Remote host closed the connection]
cajone has quit [Remote host closed the connection]
<pskosinski> momomomomo: Thank you :)
lucianosousa_ has joined #ruby
Guest54718 has quit [Ping timeout: 245 seconds]
<momomomomo> BigDecimal can
lucianosousa has quit [Ping timeout: 245 seconds]
lucianosousa_ is now known as lucianosousa
cajone has joined #ruby
<momomomomo> but then it's not a true float
klmlfl has quit [Ping timeout: 250 seconds]
awestroke has quit [Remote host closed the connection]
toastynerd has joined #ruby
SilkFox_ has joined #ruby
ndrei has joined #ruby
TheNet has joined #ruby
lucianosousa_ has joined #ruby
ptrrr has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
<pskosinski> Working with floats is hell
lucianosousa has quit [Ping timeout: 245 seconds]
xp_prg has joined #ruby
<pskosinski> >> -0.3000000000000003 + 0.3
<eval-in____> pskosinski => -3.3306690738754696e-16 (https://eval.in/186192)
<yxhuvvd> welcome to the nice world of cancellation errors.
lucianosousa_ is now known as lucianosousa
blueOxigen has quit [Ping timeout: 240 seconds]
qba73 has joined #ruby
sivteck has joined #ruby
toastynerd has quit [Ping timeout: 245 seconds]
<shock_one> It is well known they aren't precise because of the storage format. If you need both fractions and precision, use Rational.
SilkFox_ has quit [Ping timeout: 255 seconds]
gccostabr has joined #ruby
DEA7TH has quit [Remote host closed the connection]
mockra has joined #ruby
DEA7TH has joined #ruby
Kricir has joined #ruby
sivteck has left #ruby ["To Infinity and Beyond"]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
lw has quit [Quit: s]
ndrei has quit [Ping timeout: 255 seconds]
lucianosousa_ has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Ping timeout: 245 seconds]
mockra has quit [Ping timeout: 250 seconds]
shock_one has joined #ruby
lucianosousa has quit [Ping timeout: 260 seconds]
lucianosousa_ is now known as lucianosousa
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
BraddBitt has quit [Ping timeout: 250 seconds]
cajone has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
shock_one has quit [Ping timeout: 245 seconds]
qba73 has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
BraddPitt has joined #ruby
diegoviola has joined #ruby
cajone has joined #ruby
dcoxall has quit []
jeroenvisser101 has quit [Quit: I'm off, ttyl!]
ctp has quit [Quit: Textual IRC Client: www.textualapp.com]
e4xit has quit [Quit: Right I'm out!]
sectionme has joined #ruby
fabrice31 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
emocakes has joined #ruby
wildroman2 has joined #ruby
Cheezebox has quit [Remote host closed the connection]
Cheezebox has joined #ruby
sectionme has quit [Ping timeout: 245 seconds]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
emocakes__ has quit [Ping timeout: 240 seconds]
lw has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
Cheezebox has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 245 seconds]
bashrw has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
MCDev has joined #ruby
j416_ is now known as j416
cajone has quit [Remote host closed the connection]
Ishiro has quit [Quit: Lingo - http://www.lingoirc.com]
goodenough has quit [Remote host closed the connection]
<edwardloveall> apologies for a kinda spammy post, but this is pretty hilarious: http://bjorn.tipling.com/if-programming-languages-were-weapons
<edwardloveall> there's a pretty funny jab at ruby in there
cajone has joined #ruby
buto has quit [Read error: Connection reset by peer]
ewilliam has quit [Quit: Connection closed for inactivity]
Cheezebox has joined #ruby
wildroman3 has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
wildroman2 has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
DEA7TH has quit [Remote host closed the connection]
DEA7TH has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<Hanmac> "usually only used because of how shiny it is." XDDD
dopie has quit [Quit: Leaving]
lucianosousa_ has joined #ruby
lucianosousa has quit [Ping timeout: 255 seconds]
lucianosousa_ is now known as lucianosousa
<edwardloveall> my favorite was JS
jheg has quit [Quit: jheg]
gregf has joined #ruby
mijicd has joined #ruby
SilkFox_ has joined #ruby
mijicd has quit [Client Quit]
axsuul has joined #ruby
lw has quit [Read error: Connection reset by peer]
reset has joined #ruby
lw has joined #ruby
SouL__ has joined #ruby
timonv_ has quit [Remote host closed the connection]
<shevy> wat
<shevy> lol
<shevy> java
<edwardloveall> yeah that was also good
<shevy> "Java is a belt fed 240G automatic weapon where sometimes the belt has rounds, sometimes it doesn?t, and when it doesn?t during firing you get an NullPointerException, the gun explodes and you die."
vyorkin has joined #ruby
<shevy> HAHA
<shevy> javascript is even better
<shevy> how it starts
<shevy> JavaScript is a sword without a hilt.
<shevy> TOP: good part
TheTopBloke has joined #ruby
<shevy> BOTTOM: bad part
<shevy> lol
<shevy> "bash is a cursed hammer, when wielded everything looks like a nail, especially your thumb."
vyorkin has quit [Client Quit]
klmlfl has joined #ruby
<shevy> "C# is a powerful laser rifle strapped to a donkey, when taken off the donkey the laser doesn?t seem to work as well."
<shevy> the picture for Prolog is damn scary
LangeOortjes has quit [Quit: WeeChat 1.0]
axilla has joined #ruby
<shevy> does OptionParser.new respond to options like:
<shevy> --set_base_dir=/tmp
<shevy> ?
<shevy> or only
<shevy> --set_base_dir /tmp
startupality has quit [Quit: startupality]
TheTopBloke has quit [Ping timeout: 245 seconds]
klmlfl has quit [Ping timeout: 240 seconds]
<centrx> hahaha PHP is a hose, you usually plug one end into a car exhaust, and the other you stick in through a window and then you sit in the car and turn the engine on.
startupality has joined #ruby
juco has joined #ruby
lw has quit [Quit: s]
vieq has quit [Ping timeout: 250 seconds]
kognizant has joined #ruby
ndrei has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
rfv__ is now known as rfv
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has joined #ruby
charliesome has joined #ruby
goodenough has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
carraroj has quit [Quit: Konversation terminated!]
tectonic has quit []
kognizant has quit [Quit: leaving]
mockra has joined #ruby
kachi8 has quit [Remote host closed the connection]
niklasb has joined #ruby
shock_one has joined #ruby
mockra_ has joined #ruby
<and77> Interesting thing: BigDecimal gives less accuracy over the plain Float class here: https://eval.in/186234
axsuul has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
<and77> when raising to the power
<momomomomo> wrong and77 - bigdecimal guarantees arbitrary accuracy
<edwardloveall> that's a funny term
<edwardloveall> arbitrary accuracy
<yxhuvvd> momomomomo: the question is how BigDecimal#** is implemented.
<momomomomo> you can't get arbitrary precision on a square of a bigdecimal
<momomomomo> it's simple
shock_one has quit [Ping timeout: 240 seconds]
mockra has quit [Ping timeout: 260 seconds]
<momomomomo> 0.3 ** 0.1 is not a finite sequence
vieq has joined #ruby
<momomomomo> "Ruby provides built-in support for arbitrary precision integer arithmetic."
<momomomomo> "BigDecimal provides arbitrary-precision floating point decimal arithmetic."
BeanDip has joined #ruby
<and77> but still, I'd expect it to be _more_ accurate
<momomomomo> this is all documented
<yxhuvvd> momomomo: the precision of it wouldn't matter if, for example, BigDecimal#** is implemented in terms of Float#**, and converting back and forth could increase errors
<momomomomo> or rather, adjust it
jmbrown4_ has quit [Ping timeout: 240 seconds]
tectonic has joined #ruby
sepp2k has joined #ruby
ghr has joined #ruby
sectionme has joined #ruby
BeanDip has quit [Ping timeout: 240 seconds]
bearish has joined #ruby
AzureDiamond has joined #ruby
lucianosousa_ has joined #ruby
lucianosousa has quit [Ping timeout: 245 seconds]
lucianosousa_ is now known as lucianosousa
goodenough has quit [Remote host closed the connection]
bearish has quit [Ping timeout: 260 seconds]
sectionme has quit [Ping timeout: 260 seconds]
goodenough has joined #ruby
starless has quit [Quit: Leaving]
juco has quit [Ping timeout: 240 seconds]
goodenough has quit [Remote host closed the connection]
Neomex has quit [Quit: Leaving]
Kricir has joined #ruby
ctp has joined #ruby
SouL__ has quit [Read error: Connection reset by peer]
wildroman3 has quit [Ping timeout: 260 seconds]
Tentra has joined #ruby
<momomomomo> anyhow, running that and77, I get 0.30000000147124617
momomomomo has quit [Quit: momomomomo]
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
Takle has quit [Remote host closed the connection]
<and77> ok, thanks for your links
<and77> anyhow, i'll stick with Rational
<and77> I like it
bbloom has joined #ruby
pu22l3r has joined #ruby
axilla has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
edwardloveall has quit [Quit: Leaving.]
codecop has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
pu22l3r has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
edwardloveall has joined #ruby
Tom__Orrow has quit [Ping timeout: 240 seconds]
armyriad has quit [Ping timeout: 255 seconds]
armyriad has joined #ruby
iamjarvo has joined #ruby
and77 has quit [Ping timeout: 246 seconds]
Jackneill has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 260 seconds]
benzrf|offline is now known as benzrf
Kricir has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: zzz]
pu22l3r_ has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
Takle has joined #ruby
tvw has quit []
timonv_ has quit [Ping timeout: 255 seconds]
Ilyas has quit [Read error: Connection reset by peer]
gaussblurinc11 has quit [Quit: Leaving.]
reset has quit [Quit: Leaving...]
spastorino has joined #ruby
bashrw has quit [Quit: bashrw]
ghr has quit [Ping timeout: 250 seconds]
pu22l3r has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
pu22l3r has joined #ruby
hellome has joined #ruby
pu22l3r has quit [Remote host closed the connection]
klmlfl has joined #ruby
claymore has quit [Quit: Leaving]
Cache_Money has joined #ruby
Azure has quit [Read error: Connection reset by peer]
klmlfl has quit [Ping timeout: 240 seconds]
mengu has quit []
mskaesz has quit [Remote host closed the connection]
GinoMan has joined #ruby
Azure has joined #ruby
cirn0 has joined #ruby
nfk has quit [Quit: yawn]
birkoff has joined #ruby
<benzrf> heyimwill:
<benzrf> er
<benzrf> hey
<benzrf> i have a rack session cookie dump
<benzrf> how can i decode it into a HashNuke
<benzrf> *hash
cirn0 has quit [Ping timeout: 240 seconds]
Squarepy has quit [Quit: Leaving]
gaussblurinc1 has joined #ruby
hiyosi has joined #ruby
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
starless has joined #ruby
<jhass> still pressing tab after every second letter, eh?
KnownSyntax_ has quit [Read error: Connection reset by peer]
newmanships has joined #ruby
newmanships is now known as jesse1234
<shevy> hehehe
fabrice31 has joined #ruby
AzureDiamond has quit [Ping timeout: 250 seconds]
Azure has quit [Ping timeout: 240 seconds]
<jhass> benzrf: I'd expect some decode method on some class/module under Rack::Session::Cookie to work
benlieb has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
charliesome has quit [Quit: zzz]
axilla has joined #ruby
fold has quit [Ping timeout: 245 seconds]
lw has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
niklasb has quit [Ping timeout: 255 seconds]
startupality has quit [Quit: startupality]
<mostlybadfly> hi guys, i'm working on solving this problem http://projecteuler.net/problem=3 and I can get the example output to show, but for the actual exercise the large number just causes it run very very long. any tips on how to make it more efficient?
charliesome has joined #ruby
BeanDip has joined #ruby
fold has joined #ruby
shock_one has joined #ruby
<jhass> Prime.prime? :P
<jhass> Prime.prime_factors or something should exist too :P
<mostlybadfly> i'm trying to do it without additional libraries or whatever
<mostlybadfly> that's the challenge anyway
<mostlybadfly> i would have to require Prime for that i believe
<benzrf> wait up
<jhass> yeah
gaussblurinc1 has quit [Quit: Leaving.]
<jhass> it's in stdlib
<benzrf> Rack::Session::Cookie stores the session data server side?!
startupality has joined #ruby
<jhass> mostlybadfly: one obvious optimization is to cache intermediate values and results, you got a lot of the same ones there
<mostlybadfly> i only need the largest number, but i'm guessing i would still need to run though all to get to it
axsuul has quit [Ping timeout: 245 seconds]
<mostlybadfly> i'm not sure i follow. i know someone helped me with memoizing another method, is that similar? I never really heard of it until the other day
sectionme has joined #ruby
MCDev has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Nine out of ten l33t h4x0rz prefer it]
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
nszceta has quit []
<jhass> yeah
<shock_one> mostlybadfly: what OS do you use? Some linux distributions come with a 'factor' system command that does prime factorization.
<mostlybadfly> it's linux mint
<shock_one> Does the command exist?
reset has joined #ruby
<mostlybadfly> yeah i see it
<mostlybadfly> i'm trying to write this in ruby
<shock_one> I missed it, could you please repeat what you want to achieve?
Neomex has joined #ruby
chrishough has joined #ruby
<centrx> mostlybadfly, What is your algorithm?
<mostlybadfly> shock_one: i'm working on solving this problem http://projecteuler.net/problem=3 and I can get the example output to show, but for the actual exercise the large number just causes it run very very long. any tips on how to make it more efficient? this is what i wrote so far: https://www.irccloud.com/pastebin/gQzdM9YO
soxet has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
<centrx> mostlybadfly, When checking primes you only have to check up to n/2
ctp has quit [Ping timeout: 245 seconds]
<mostlybadfly> oh i see, let me update this
Kricir has joined #ruby
<mostlybadfly> it'll still run for a bit it seems, given that half of the number i need to input is still pretty huge
TheNet has quit [Ping timeout: 240 seconds]
<centrx> mostlybadfly, Something is strange about your algorithm
sectionme has quit [Ping timeout: 245 seconds]
reset has quit [Ping timeout: 245 seconds]
<centrx> mostlybadfly, if num % count == 0 would give you factors, not primes no?
Azure has quit [Excess Flood]
TheNet has joined #ruby
sparrovv has quit [Remote host closed the connection]
<centrx> mostlybadfly, and that logic in #prime_factors looks the same as the logic in #check_primes
ndrei has quit [Ping timeout: 240 seconds]
<mostlybadfly> i'm first taking out the factors, then finding the factors of the original number that are primes
sparrovv has joined #ruby
<shock_one> mostlybadfly: I guess the idea of ProjectEuler is to solve problems by yourself.
pu22l3r has joined #ruby
<centrx> mostlybadfly, How about putting the prime checking and the factor checking in the same loop
bking39116 has quit [Quit: bking39116]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
sparrovv has quit [Ping timeout: 260 seconds]
<mostlybadfly> centrx: thanks
toastynerd has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
lagweezle has quit [Quit: leaving]
lw has quit [Quit: s]
sepp2k has quit [Read error: Connection reset by peer]
toastynerd has quit [Ping timeout: 240 seconds]
bking39116 has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
Kricir has joined #ruby
sepp2k has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlSquire has quit [Quit: Quitte]
ptrrr has quit [Quit: ptrrr]
Kricir has quit [Ping timeout: 240 seconds]
<a____> Design question here - anyone familiar with Data Mapper pattern? (Should hope so :)
<a____> Was wondering: should a model AND its corresponding data mapper be visible within a controller, or just one?
BeanDip has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
mferrier has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
mferrier has joined #ruby
dopie has joined #ruby
sectionme has joined #ruby
jesse1234 has quit [Ping timeout: 255 seconds]
GodPuppet has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 240 seconds]
Channel6 has joined #ruby
gsd has joined #ruby
mferrier has quit [Ping timeout: 240 seconds]
reset has joined #ruby
sheath__ has joined #ruby
jay is now known as rubyonrailed
TheDerpSquad has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klmlfl has joined #ruby
sectionme has quit [Ping timeout: 240 seconds]
W0rmDr1nk has quit [Ping timeout: 245 seconds]
WormDrink has quit [Ping timeout: 250 seconds]
axilla has quit [Ping timeout: 255 seconds]
Cer3bus has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
klmlfl has quit [Ping timeout: 250 seconds]
relix has joined #ruby
InhalingPixels has quit []
Cache_Money has quit [Quit: Cache_Money]
gtrak has quit [Ping timeout: 264 seconds]
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
einarj has joined #ruby
bking39116 has quit [Quit: bking39116]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xp_prg has quit [Quit: This computer has gone to sleep]
benzrf is now known as benzrf|offline
hiyosi has joined #ruby
W0rmDr1nk has joined #ruby
WormDrink has joined #ruby
einarj has quit [Remote host closed the connection]
Tentra has quit [Read error: Connection reset by peer]
Tentra has joined #ruby
<heyimwill> benzrf: ?
reset has quit [Ping timeout: 245 seconds]
Tentra has quit [Read error: Connection reset by peer]
bking39116 has joined #ruby
Tentra has joined #ruby
<mostlybadfly> nice i got it thanks centrx , i had to stop the loop up until a certain point. i printed out the results and i got my answer right away, it was just checking unecessary numbers
hiyosi has quit [Ping timeout: 240 seconds]
<mostlybadfly> that is anything above the square root of the number i was checking
chrishough has joined #ruby
rubyonrailed has quit []
timonv_ has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Ping timeout: 245 seconds]
mferrier has joined #ruby
edwardloveall has quit [Quit: Leaving.]
TheNet has quit [Quit: Leaving...]
TheNet has joined #ruby
mferrier has quit [Ping timeout: 240 seconds]
Tentra_ has joined #ruby
catbusters_ has quit [Quit: Connection closed for inactivity]
Mon_Ouie has quit [Ping timeout: 250 seconds]
sheath__ has quit [Quit: This computer has gone to sleep]
birkoff has quit [Quit: Leaving]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has joined #ruby
chrishough has joined #ruby
Tentra has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
lw has joined #ruby
lw has quit [Max SendQ exceeded]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has joined #ruby
axsuul has joined #ruby
naw has quit []
aoeu256 has joined #ruby
Aranshada|W__ has joined #ruby
moxtree has joined #ruby
tylerkern has quit [Quit: Connection closed for inactivity]
Tentra__ has joined #ruby
tectonic has quit []
pu22l3r has joined #ruby
moxTreeDev has quit [Ping timeout: 260 seconds]
Aranshada|W_ has quit [Ping timeout: 260 seconds]
Tentra_ has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
<a____> Very frustrating
<a____> I have a model, which I want to contain an id attribute. I want to obtain that from the DB after inserting it. But I need to create the model before inserting (due to the ORM)
pu22l3r has quit [Ping timeout: 240 seconds]
<a____> Instantiating an incomplete model object, just to stick an ID into it later - seems wrong
Neomex has quit [Quit: Leaving]
<a____> Anybody have any immediate thoughts there? :)
ta_ has quit [Remote host closed the connection]
<benzrf> hmmmmmmmmmmm
GinoMan has quit [Ping timeout: 240 seconds]
<benzrf> sinatra is bein weird
<benzrf> oh
<benzrf> bleh
tectonic has joined #ruby
<a____> I did have a Q I was hoping to attract the attention of great minds to, but please feel free to spam meaningless drivel :)
SouL_ has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
Tentra has joined #ruby
banister has joined #ruby
banister has quit [Client Quit]
CodeBunny has joined #ruby
bking39116 has quit [Quit: bking39116]
sea_local has joined #ruby
charliesome has quit [Quit: zzz]
andrewlio has quit [Quit: Leaving.]
threesixes has joined #ruby
edwardloveall has joined #ruby
edwardloveall has left #ruby [#ruby]
startupality has quit [Quit: startupality]
lw has joined #ruby
Tentra__ has quit [Ping timeout: 260 seconds]
Gurpartap has joined #ruby
<Gurpartap> Does any here use Docker? Are you familiar with ruby gem extensions not installing/compiling properly?
User458764 has joined #ruby
IanMalco_ has joined #ruby
IanMalco_ has quit [Remote host closed the connection]
banister has joined #ruby
reset has joined #ruby
<a____> Gurpartap: not a Docker problem
<a____> That would be something to do with the base image, as it would on any other bare metal OS
<Gurpartap> a____: I used ubuntu:14.04.1
sectionme has joined #ruby
Tentra_ has joined #ruby
<Gurpartap> a____: although there are no issues when I do the same on actual ubuntu 14.04 machine.
phoo1234567 has quit [Quit: Leaving]
<Gurpartap> Someone on #docker suggested me to build my images on the host machine isntead of the docker’s registry server.
froggy_ has quit [Quit: Leaving]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<Gurpartap> for any difference in header files, he said.
<a____> Without any actual, like, details from the compilation process, I couldn't help you any more
iamjarvo has joined #ruby
reer has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<a____> Gurpartap: sounds like B.S. to me mate
<a____> That would contravene the whole intent and purpose of docker
reer has left #ruby [#ruby]
<Gurpartap> :)
niklasb has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
Tentra has quit [Ping timeout: 240 seconds]
JoshGlzBrk has joined #ruby
benlieb has quit [Quit: benlieb]
klmlfl has joined #ruby
kirun has quit [Quit: Client exiting]
iamjarvo has joined #ruby
mferrier has joined #ruby
benlieb has joined #ruby
sectionme has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Max SendQ exceeded]
<a____> Gurpartap: don't you want to ADD your app *before* trying to install its bundle?
<benzrf> gaaah
<benzrf> i need an expert here
iamjarvo has joined #ruby
<a____> benzrf: you're in luck
iamjarvo has quit [Max SendQ exceeded]
<a____> I'm an expert in palindromes
<a____> Did you know: racecar is racecar backwards
<Gurpartap> omg
<Gurpartap> haha
sea_local has quit [Remote host closed the connection]
<a____> Gurpartap: which two revelations that i just dropped in the past 30 seconds are you omg'ing at
<Gurpartap> the latter
<a____> :)
fabrice31 has joined #ruby
<Gurpartap> a____: That is how I did it before. For a reason I haven’t had time to find yet docker didn’t set the correct workdir for bundle exec to work. I used this particular sequence based on how fig suggests: http://www.fig.sh/rails.html
<a____> Gurpartap: now I look at it again, my suggestion shouldn't really make a differnce, if you're using a Gemfile (rather than a gemspec, say)
<Gurpartap> lol RIP english
klmlfl has quit [Ping timeout: 240 seconds]
<a____> Obviously compilation error details are necessary
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snowyfalse has joined #ruby
snowyfalse has quit [Remote host closed the connection]
Azure has joined #ruby
jxport_ is now known as jxpoirt
jxpoirt is now known as jxport
<benzrf> arughghughughu
spider-mario has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<a____> wtf, is there no rails channel here?
marr has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
cirn0 has joined #ruby
EasyCo has joined #ruby
fathogwash has joined #ruby
Tentra_ has quit [Ping timeout: 240 seconds]
Tentra__ has joined #ruby
fathogwash has quit [Remote host closed the connection]
<havenwood> a____: #rubyonrails
<a____> havenwood: bah. ta :)
rutheniumbuttere has joined #ruby
tectonic has quit []
jcxau has joined #ruby
dRbiG has quit [Ping timeout: 255 seconds]
cirn0 has quit [Ping timeout: 240 seconds]
<jcxau> Hey all, is there a difference between nesting modules with the 'module' keyword vs defining on one line with :: ?
jottr has joined #ruby
skysploit has joined #ruby
fold has quit [Ping timeout: 250 seconds]
skysploit has quit [Changing host]
skysploit has joined #ruby
hiyosi has joined #ruby
<Gurpartap> a____: rebuilding the image. i’ll get back with results as soon as it finishes.
<a____> Gurpartap: I might not still be here (I have a complaining girlfriend calling from bed) - best of luck if I am not
<a____> If I am, have some compilation logs ;)
Tentra has joined #ruby
<Gurpartap> a____: there aren’t enough palndromes if your sentences. i thought you were an expert
startupality has joined #ruby
<Gurpartap> except the single letter words
GinoMan has joined #ruby
<Gurpartap> s/palndromes/palindromes/
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcxau has quit [Quit: Lingo - http://www.lingoirc.com]
hiyosi has quit [Ping timeout: 250 seconds]
dRbiG has joined #ruby
<a____> Gurpartap: here's another mindblower for you then. deified
axsuul has quit [Read error: No route to host]
jottr has quit [Ping timeout: 250 seconds]
lucianosousa has quit [Quit: lucianosousa]
Tentra__ has quit [Ping timeout: 240 seconds]
<Gurpartap> a____: i was first amazed by palindromes when i was around 5 years old. one of our class mate has the name nitin
<Gurpartap> had*
nszceta has joined #ruby
rutheniumbuttere has quit [Remote host closed the connection]
<a____> Gurpartap: I appreciate the anecdote, I just hope the age reference wasn't an subversive attempt to undermine my lifelong area of study and expertise
startupality has quit [Quit: startupality]
benlieb has joined #ruby
lucianosousa has joined #ruby
digitera has quit [Quit: digitera]
Kerber0s has quit [Ping timeout: 240 seconds]
redlegion has quit [Ping timeout: 260 seconds]
redlegion has joined #ruby
banister has joined #ruby
bikeclutching has joined #ruby
Scripore has joined #ruby
jmbrown412 has joined #ruby
crazydiamond has joined #ruby
bikeclutching has quit [Remote host closed the connection]
Tentra_ has joined #ruby
banister has quit [Client Quit]
DEA7TH has quit [Remote host closed the connection]
crdprink2 has joined #ruby
crdpink has quit [Ping timeout: 255 seconds]
Tentra has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 255 seconds]
axilla has joined #ruby
CaptainJet has quit [Ping timeout: 245 seconds]
sparrovv has joined #ruby
benlieb has quit [Quit: benlieb]
CaptainJet has joined #ruby
nhhagen has quit [Remote host closed the connection]
pu22l3r has joined #ruby
nhhagen has joined #ruby