ljarvis changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
stamina has quit [Ping timeout: 246 seconds]
jamesfordummies has joined #ruby-lang
mykoweb has joined #ruby-lang
chichou has quit [Remote host closed the connection]
pixelhandler has quit [Quit: pixelhandler]
InfraRuby has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 250 seconds]
BubonicPestile-1 has quit [Quit: BubonicPestile-1]
ddv has quit [Ping timeout: 260 seconds]
ddv has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby-lang
ascarter has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
nbarnett has quit [Read error: Connection reset by peer]
vintik has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
nbarnett has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
mistym_ has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
nbarnett has quit [Read error: Connection reset by peer]
heftig has joined #ruby-lang
nathanstitt has joined #ruby-lang
yfeldblum has joined #ruby-lang
symm- has quit [Ping timeout: 255 seconds]
jhass is now known as jhass|off
vintik has joined #ruby-lang
jamesfordummies has quit [Remote host closed the connection]
davispuh has joined #ruby-lang
davispuh has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
tkuchiki has joined #ruby-lang
davispuh has joined #ruby-lang
vintik has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby-lang
amsi has quit [Quit: Leaving]
dingus_khan has joined #ruby-lang
marr has quit [Ping timeout: 264 seconds]
sarkyniin has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
mistym has joined #ruby-lang
TrueJet has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby-lang
davispuh has quit [Ping timeout: 245 seconds]
mistym_ has joined #ruby-lang
koderok has joined #ruby-lang
davispuh has joined #ruby-lang
koderok has quit [Client Quit]
mistym has quit [Ping timeout: 240 seconds]
magikfx__ has quit [Quit: Computer has gone to sleep.]
CaptainJet has joined #ruby-lang
chichou has joined #ruby-lang
heftig has quit [Quit: Quitting]
chichou has quit [Client Quit]
mcantor has quit [Ping timeout: 246 seconds]
<dingus_khan> can someone explain something about arguments on a recursive method call for me? first example in this blog post: http://sandmoose.com/post/59658391296/quicksort-in-ruby
sduckett has joined #ruby-lang
64MAAHYAY has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby-lang
amclain has joined #ruby-lang
jbardin has joined #ruby-lang
<jbardin> darix: thanks
yatish27 has joined #ruby-lang
amystephen has quit [Quit: amystephen]
yatish27 has quit [Remote host closed the connection]
Miphix has joined #ruby-lang
michaeldeol has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
<chrisseaton> dingus_khan: what's your question about it?
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby-lang
ascarter has joined #ruby-lang
vintik has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
jxpx777_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
jxpx777 has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
nathanstitt has joined #ruby-lang
hellangel7 has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
dingus_khan has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
shinnya has quit [Ping timeout: 250 seconds]
jbardin has quit [Quit: jbardin]
koderok has joined #ruby-lang
dingus_khan has joined #ruby-lang
willdrew has joined #ruby-lang
willdrew has quit [Client Quit]
lcdhoffman has quit [Quit: lcdhoffman]
djbkd has quit [Remote host closed the connection]
koderok has quit [Quit: koderok]
emmesswhy has joined #ruby-lang
agarie has joined #ruby-lang
tectonic has joined #ruby-lang
ponch_ has quit [Remote host closed the connection]
dexkiki has joined #ruby-lang
mykoweb has joined #ruby-lang
<stardiviner> What the difference between += and x.concat ? like the following code: x = "hello" ; x += " world" ; x.concat " world" ;
64MAAHYAY has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
<stardiviner> In Ruby code, you quite often see the trick of using an expression like array.map(&:method_name) as a shorthand form of array.map { |element| element.method_name }. How exactly does it work?
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
<dexkiki> For concat vs +, + returns a new string and concat works on the current string
<dexkiki> not sure about the array.map question
<stardiviner> dexkiki: I see.
<stardiviner> dexkiki: thanks for your answer
<diegoviola> array.map(&:method) calls :method on all the elements from the array, no?
<diegoviola> ["a", "b", "c"].map(&:upcase) => ["A", "B", "C"]
<dexkiki> yeah i think thats right diego
<diegoviola> right
<diegoviola> #map also prints the output instead of just iterating on it
<diegoviola> #each would just iterate (won't print anything)
mykoweb has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby-lang
<stardiviner> diegoviola: this answer is very detailed. Thanks
BubonicPestilenc has joined #ruby-lang
<diegoviola> glad i could help
jdecuirm has joined #ruby-lang
<jdecuirm> Hi all!
<jdecuirm> I need some help to understand Ruby variables
Cakey has joined #ruby-lang
<dexkiki> hi. ask away
<jdecuirm> for example, what are best practices to use class variables
djbkd has quit [Ping timeout: 240 seconds]
<dexkiki> if a value is shared by all instances of a class, then you should use class variable
<dexkiki> for example, if the class Square, then @@sides= 4
<jdecuirm> oh i see
<jdecuirm> something like standar for all instance variables?
<dexkiki> of a different usage is if you need to keep track how many instances of a class there are
<dexkiki> so if you have class People @@num_people = 0. and for every People.new, add one to @@num_people
<dexkiki> yeah thats one way to use them
<jdecuirm> Ok cool! thanks for the help dexkiki
toastynerd has joined #ruby-lang
<dexkiki> ultimately it's up to you to see if it's appropriate or not.
<dexkiki> np
<jdecuirm> i am in my way to learn ruby so i can get rails i need a backend for an ios app i'm developing
<jdecuirm> but i remember that i will suffer with push notifications but first i need to tackle the server side
jxpx777_ has quit [Quit: Leaving...]
<dexkiki> nice. ive never built a mobile app. a responsive website yeah
brooks has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brooks has quit [Client Quit]
brooks has joined #ruby-lang
brooks has quit [Client Quit]
jxpx777 has joined #ruby-lang
<jdecuirm> Wow, and what do you thing about rails?
spuk has quit [Ping timeout: 255 seconds]
<jdecuirm> I had some advices here!, for example instead of mysql, postgrade sql
<jdecuirm> instead of apache server, nginx server
<jdecuirm> the output format is JSON
toastynerd has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
<jdecuirm> To tell you the truth i am not a server side guy, and as i have never developed for web, i guess that's why i'm having problems
spuk has joined #ruby-lang
<jdecuirm> in fact, most people told me to begin with php and phpcake for my purpose
eeezkil has quit [Read error: Connection reset by peer]
<dexkiki> I haven't used other frameworks besides rails.
<dexkiki> But i really like it. after you ge tthe hang of it's structure, it really helps organize your code when you're starting out
<jdecuirm> i see
<jdecuirm> i guess the hard part that i am facing is
<jdecuirm> how much ruby to do rails
<jdecuirm> i took many courses and read two books of ruby
<dexkiki> i think the most important thing is to choose one framework and stick with it
toastynerd has joined #ruby-lang
<dexkiki> michael hartl book i think only has one chapter on ruby
<dexkiki> and its in like ch 4
<jdecuirm> oh
<dexkiki> so arguably not much. however if you want to add more features, then knowing more ruby helps
<jdecuirm> yes it's true
dingus_khan has quit [Ping timeout: 240 seconds]
<jdecuirm> the first part i guess
<jdecuirm> is to achieve CRUD
Hinkdogg has quit [Quit: Computer has gone to sleep.]
<jdecuirm> create read update delete, when that happens i guess i will concern more in other functions
<jdecuirm> What book or course can you suggest me to Rails?
Hinkdogg has joined #ruby-lang
TrueJet has joined #ruby-lang
<dexkiki> i used michael hartl. i'm a book guy and i found it really helpful. its important to do the code with the book. i didnt use any other source to learn rails. not containing individual problems and stuff. so im not sure how good the others are
<dexkiki> which ruby books did you read
CaptainJet has quit [Ping timeout: 264 seconds]
dingus_khan has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
Hinkdogg has quit [Ping timeout: 240 seconds]
<jdecuirm> i read to code ruby the hard way
<jdecuirm> aaaand
dingus_khan has joined #ruby-lang
<jdecuirm> programming ruby 1.9 2.0 the pragmatic programmer's guide
<dexkiki> that second one is pretty classic. i havent read it tho
<dexkiki> i gtg. gl on your stuff
dexkiki has quit [Quit: Page closed]
mjboselowitz has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
priodev has quit [Ping timeout: 255 seconds]
magikfx__ has joined #ruby-lang
priodev has joined #ruby-lang
snsei has joined #ruby-lang
danijoo has joined #ruby-lang
michaeldeol has joined #ruby-lang
magikfx__ has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby-lang
lcdhoffman has joined #ruby-lang
snsei has quit [Remote host closed the connection]
bffff_ has joined #ruby-lang
mykoweb has quit []
dknox has quit [Quit: Textual IRC Client: www.textualapp.com]
gix has quit [Ping timeout: 240 seconds]
hagabaka has quit [Ping timeout: 246 seconds]
koderok has joined #ruby-lang
gix has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
hagabaka has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
hellangel7 has joined #ruby-lang
centrx has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
agarie has quit [Remote host closed the connection]
hellangel7 has quit [Max SendQ exceeded]
agarie has joined #ruby-lang
hellangel7 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
nhmood has joined #ruby-lang
hellangel7 has quit [Read error: Connection reset by peer]
<nhmood> anyone have any experience with rufus-scheduler
saarinen has joined #ruby-lang
agarie has quit [Ping timeout: 246 seconds]
mistym_ has quit [Remote host closed the connection]
koderok has quit [Quit: koderok]
jxpx777 has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Remote host closed the connection]
TrueJet has quit []
kaiwren has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
agarie has joined #ruby-lang
ari-_-e has joined #ruby-lang
mistym has joined #ruby-lang
sduckett has quit [Ping timeout: 264 seconds]
jdecuirm has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby-lang
agarie has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
emmesswhy has quit [Quit: This computer has gone to sleep]
michaeldeol has joined #ruby-lang
agarie has joined #ruby-lang
saarinen has quit [Quit: saarinen]
agarie has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
torrieri has quit [Ping timeout: 246 seconds]
_ht has joined #ruby-lang
agarie has joined #ruby-lang
<kuanding> is it safe to upgrade GCC after upgrading Ruby to 2.1.2? I used “brew install gcc” and it’s taken over 10 minutes, I’m not sure if this is normal.
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
mistym has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ari-_-e> gcc is kind of a big deal
apeiros has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
apeiros has joined #ruby-lang
worm` has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
Jaood has joined #ruby-lang
Jaood has left #ruby-lang [#ruby-lang]
symm- has joined #ruby-lang
agarie has quit [Remote host closed the connection]
<kuanding> ari-_-e: should I terminate the GCC installation process, uninstall Ruby and reinstall GCC and then Ruby?
<ari-_-e> brew compiles stuff right?
<ari-_-e> or no?
<kuanding> it won’t pass “make bootstrap”
relix has joined #ruby-lang
<kuanding> the heading of terminal are showing “cc1plus”, I suppose that means the compiler isn’t working correctly?
emmesswhy has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
vintik has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
[spoiler] has joined #ruby-lang
solars has joined #ruby-lang
tbuehlmann has joined #ruby-lang
kaiwren has quit [Quit: kaiwren]
mistym has joined #ruby-lang
symm- has quit [Ping timeout: 240 seconds]
skade has joined #ruby-lang
apeiros has joined #ruby-lang
bffff_ has quit [Quit: Connection closed for inactivity]
skade has quit [Quit: Computer has gone to sleep.]
AKASkip has joined #ruby-lang
skade has joined #ruby-lang
dingus_khan has quit []
vondruch has joined #ruby-lang
sMecKs has quit [Read error: Connection reset by peer]
kaiwren has joined #ruby-lang
AKASkip has quit [Ping timeout: 250 seconds]
skade has quit [Ping timeout: 245 seconds]
clauswitt has joined #ruby-lang
marr has joined #ruby-lang
clauswit_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
clauswitt has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
kyb3r_ has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
cantonic has quit [Quit: cantonic]
Forgetful_Lion has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
skade has joined #ruby-lang
ddv has joined #ruby-lang
ddv has quit [Changing host]
AKASkip has joined #ruby-lang
InfraRuby has joined #ruby-lang
worm` has quit [Ping timeout: 260 seconds]
tectonic has quit []
hramrach has quit [Ping timeout: 264 seconds]
skade has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
qba73 has joined #ruby-lang
worm` has joined #ruby-lang
skade has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
skade has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby-lang
vondruch has quit [Ping timeout: 260 seconds]
Atttwww has quit [Ping timeout: 245 seconds]
hramrach has joined #ruby-lang
skade has joined #ruby-lang
worm` has quit [Read error: Connection reset by peer]
<stardiviner> This is a lambda, -> (a, b) {print a, b} ["Hello world", " hi"] But I don't understand the ["hello world", "hi"] part, What happens here?
skade has quit [Read error: Connection reset by peer]
<apeiros> stardiviner: Proc#[] is an alias for Proc#call
<DefV> Proc#[] calls the lambda
<apeiros> i.e., -> (a, b) {print a, b}.call("Hello world", " hi") # does the same as the above
<apeiros> also .() would work the same too
<apeiros> >> -> (a, b) {print a, b}.("Hello world", " hi")
<eval-in> apeiros => Hello world hinil (https://eval.in/177275)
<apeiros> >> -> (a, b) {print a, b}.call("Hello world", " hi")
<eval-in> apeiros => Hello world hinil (https://eval.in/177276)
<apeiros> >> -> (a, b) {print a, b}["Hello world", " hi"]
<eval-in> apeiros => Hello world hinil (https://eval.in/177277)
<stardiviner> apeiros: I see. So the -> (a, b) {print a, b} is the Proc object. then it call #[] method?
<apeiros> correct
<stardiviner> apeiros: thanks
<apeiros> the # in Proc#call / Proc#[] is "documentation-speak", it means "instance method"
<stardiviner> apeiros: right,
arBmind has joined #ruby-lang
<yorickpeterse> morning
jhass|off is now known as jhass
michd is now known as MichD
jds has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 255 seconds]
worm` has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
jhass is now known as jhass|off
jhass|off is now known as jhass
arBmind has joined #ruby-lang
worm` has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
corecode_ has left #ruby-lang ["ERC Version 5.3 (IRC client for Emacs)"]
<sluukkonen> btw, is there a good reason why it's proc.call(foo) and not just proc.(foo)?
<sluukkonen> that one always seemed a bit weird to me
<sluukkonen> err, I mean proc(foo)
dangerousdave has joined #ruby-lang
Payl has joined #ruby-lang
<Payl> Hi! I ported part of Ruby (bignum.c Division) info Delphi, into another bignum library (because it's division was slow). Anyone know what license I have to use for module now? My bignum library has MPL 1.1/LGPL3. Thanks!
kyb3r_ has quit [Read error: Connection reset by peer]
<yorickpeterse> sluukkonen: because if you use `proc(foo)` then `proc` should be a method
<yorickpeterse> which it isn't
skade has joined #ruby-lang
<apeiros> sluukkonen: proc.(foo) works, as shown above
<apeiros> personally I find it an atrocity, though
<sluukkonen> oh it does? I've always just used .call
<Silex> I think they should only allow .call and remove the [] and .() notation
<Silex> the laters are unexpected
<stardiviner> I have an expression kk = true and false. Is there a way to print it out ? Because use: puts kk = true and false will get true, instead of false which it should be.
<apeiros> stardiviner: what?
<Silex> forgot () ?
vintik has joined #ruby-lang
<Silex> puts (kk = true and false)
<Silex> assuming you're righta bout "and"'s behavior
<apeiros> you wrote literally `kk = true and false`? o0
<apeiros> also assignments mid-statement == ew. don't do that.
<stardiviner> Silex: yeah, I forgot it. thanks. I know and vs. &&.
<apeiros> puts x = val # <-- bad, mkay?
<sluukkonen> `and` has a lower precedence than =
<sluukkonen> && higher
<sluukkonen> use &&
workmad3 has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
<stardiviner> sluukkonen: yes.
arBmind has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
vintik has quit [Remote host closed the connection]
ironhide_604 has joined #ruby-lang
cantonic has joined #ruby-lang
eeezkil has joined #ruby-lang
jonathan_alban has joined #ruby-lang
alexju has joined #ruby-lang
<jonathan_alban> Hi all
Cakey has quit [Ping timeout: 264 seconds]
InfraRuby has joined #ruby-lang
alexju has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby-lang
skade has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Ping timeout: 260 seconds]
<jhass> hi
tkuchiki has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
alexju has joined #ruby-lang
robbyoconnor has joined #ruby-lang
benlovell has joined #ruby-lang
kyb3r_ has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has joined #ruby-lang
stef_204 has joined #ruby-lang
workmad3 has joined #ruby-lang
nofxx has quit [Ping timeout: 244 seconds]
<maloik_> running a rake task in 4 different terminal panes to import a dns database into ours
<maloik_> spotify is hanging every once in a while, fans blowing hard
<maloik_> I think my laptop will soon take off
<maloik_> my very first drone <3
<surrounder> lol
<Payl> :D My laptop doesn't care about fan, it just overheats...
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
cantonic has quit [Quit: cantonic]
Hanmac has joined #ruby-lang
<Hanmac> hey for the MRI ruby source, what is the difference between default_gems ("defs/default_gems") and bundled gems ("gems/bundled_gems") ? because i am curios that there might be default gems that depend on bundled gems?
skade has quit [Read error: Connection reset by peer]
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonathan_alban has joined #ruby-lang
stef_204 has joined #ruby-lang
Miphix has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 255 seconds]
stamina has joined #ruby-lang
kaiwren has quit [Quit: kaiwren]
kaiwren has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
skade has joined #ruby-lang
hakunin_ has joined #ruby-lang
sharpmac_ has joined #ruby-lang
tkuchiki has joined #ruby-lang
bin7me has joined #ruby-lang
arBmind1 has joined #ruby-lang
maloik has joined #ruby-lang
Pain has joined #ruby-lang
wmoxam_ has joined #ruby-lang
nopc0de has quit [Ping timeout: 245 seconds]
kaiwren has quit [Read error: Connection reset by peer]
tkuchiki_ has quit [Ping timeout: 245 seconds]
stardiviner has quit [Ping timeout: 245 seconds]
arBmind has quit [Ping timeout: 240 seconds]
maloik_ has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 240 seconds]
sharpmachine has quit [Ping timeout: 240 seconds]
wmoxam has quit [Ping timeout: 240 seconds]
hakunin has quit [Ping timeout: 240 seconds]
symm- has joined #ruby-lang
skade has quit [Ping timeout: 272 seconds]
nopc0de has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
gix has joined #ruby-lang
jxie has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
clauswit_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
skade has joined #ruby-lang
tkuchiki has quit [Ping timeout: 260 seconds]
skade has quit [Read error: Connection reset by peer]
skade_ has joined #ruby-lang
skade_ has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
skade has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Ping timeout: 260 seconds]
skade has joined #ruby-lang
symm- has quit [Quit: Leaving...]
symm- has joined #ruby-lang
robbyoconnor has joined #ruby-lang
kek has joined #ruby-lang
dangerousdave has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 250 seconds]
robbyoconnor has joined #ruby-lang
skade has quit [Ping timeout: 240 seconds]
thang has quit [Ping timeout: 250 seconds]
clauswitt has joined #ruby-lang
skade has joined #ruby-lang
thang has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
sarkyniin has joined #ruby-lang
sarkyniin has quit [Client Quit]
skade has quit [Ping timeout: 244 seconds]
skade has joined #ruby-lang
BubonicPestile-1 has joined #ruby-lang
benlovell has joined #ruby-lang
BubonicPestilenc has quit [Ping timeout: 244 seconds]
bin7me has quit [Quit: WeeChat 0.4.3]
skade has quit [Quit: Computer has gone to sleep.]
Miphix has joined #ruby-lang
vondruch has joined #ruby-lang
<yorickpeterse> Hanmac: you can not uninstall default Gems
<yorickpeterse> Bundler Gems I'm not sure
<apeiros> rm to the rescue!
<Hanmac> hm because it seems the test-unit default gem might need the bundled power_assert ... hm
<yorickpeterse> apeiros: the long term solution is to just stop using MRI :>
<yorickpeterse> "just"
mjboselowitz has quit [Remote host closed the connection]
<apeiros> no, that's the mid-term solution
<apeiros> long term is "REINVENTING ALL THE LANGUAGES!!!"
ldnunes has joined #ruby-lang
lcdhoffman has joined #ruby-lang
<yorickpeterse> just use Go
<yorickpeterse> :>
<apeiros> that's mid-term only too.
<apeiros> reinventing programming languages is long-term imperative :D
benlovell has quit [Ping timeout: 244 seconds]
araujo has quit [Ping timeout: 244 seconds]
araujo has joined #ruby-lang
<sluukkonen> imperative!? don't you know functional is the hot new thing :p
sarkyniin has joined #ruby-lang
<apeiros> sluukkonen: I object!
Missphoenix has joined #ruby-lang
<whitequark> I, object.
Miphix has quit [Ping timeout: 245 seconds]
sarkyniin has quit [Ping timeout: 245 seconds]
benlovell has joined #ruby-lang
jxie has quit [Quit: leaving]
<yorickpeterse> whitequark: you write ocaml, you're biased
sarkyniin has joined #ruby-lang
elia has joined #ruby-lang
<whitequark> Objective Caml.
<yorickpeterse> I see what you did there
Forgetful_Lion has quit [Remote host closed the connection]
miqui has joined #ruby-lang
davispuh has quit [Remote host closed the connection]
<apeiros> yorickpeterse: you meant "I C what you did there"?
<yorickpeterse> I dun C how da is shortr
<yorickpeterse> ReAlNeRdSwRiTeShItLiKeThIsIhAtEtHiS
<yorickpeterse> That took way too long to type
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
<whitequark> Rd? Sw? Ri?
<yorickpeterse> wat
<yorickpeterse> oh
<yorickpeterse> it's meant to say "Real nerds write shit like this I hate this"
<sluukkonen> n33d5 m04r 1337
<yorickpeterse> do I happen to just have the plugin for that
<yorickpeterse> 7hi5 i5 |*|2377'/ )34££3|2
<yorickpeterse> 3x©3|*7 I |)0|_|)37 4|\|'/)30|)'/ ©4|\| 4©7|_|4££'/ |234|) 7hi5
<yorickpeterse> ^ NSA that
<DefV> Mmpfmffmp ffm'mmmpmfpmf mmfmmmppp'fmp fmmpfmmppmmmpmp pmfmffpmpmpp Pmpmppppppppffm :-)
Sgeo has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby-lang
<yorickpeterse> wat
<yorickpeterse> is that what love sounds like?
r0bby_ has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 260 seconds]
r0bby_ has joined #ruby-lang
InfraRuby has joined #ruby-lang
magikfx__ has joined #ruby-lang
<whitequark> maybe if it's the love of Shub-Niggurath
vondruch has quit [Ping timeout: 264 seconds]
symm- has quit [Quit: Leaving...]
Pain has quit [Ping timeout: 250 seconds]
qba73 has quit [Read error: Connection reset by peer]
qba73 has joined #ruby-lang
shinnya has joined #ruby-lang
malconis has joined #ruby-lang
workmad3 has joined #ruby-lang
workmad3 has quit [Client Quit]
heftig-z has joined #ruby-lang
<heftig-z> any idea how to unpack a signed BE integer?
<heftig-z> er
<heftig-z> signed 24-bit BE integer
<whitequark> use String#getbyte and bitwise operations
sarkyniin has quit [Ping timeout: 272 seconds]
<AKASkip> String#unpack?
sarkyniin has joined #ruby-lang
Pain has joined #ruby-lang
<whitequark> String#getbyte. String#unpack doesn't have 24-bit modifiers
r0bby_ has quit [Max SendQ exceeded]
goatish_mound is now known as rsl
r0bby_ has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r0bby_ has quit [Remote host closed the connection]
r0bby_ has joined #ruby-lang
marr has quit []
<sluukkonen> that sounds like it will get pretty ugly fast
r0bby_ has quit [Max SendQ exceeded]
<yorickpeterse> I don't mind the concept. It however feels like a case where somebody thinks they need type hinting, but they don't
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<sluukkonen> def foo(bar -> My::Project::Some::Module::Friday, baz -> My::Project::Some::Module::Thursday)
r0bby_ has joined #ruby-lang
<yorickpeterse> Also, I feel it would have to be applied as a first-class citizen from the start, not an extra pair of legs bolted on later on
yorickpeterse has quit [Quit: The NSA took my baby]
yorickpeterse1 has joined #ruby-lang
yorickpeterse1 has quit [Changing host]
yorickpeterse1 has joined #ruby-lang
<sluukkonen> as there is no way to import (so to say) namespaces in ruby
yorickpeterse1 is now known as yorickpeterse
<yorickpeterse> soz, Failnode goofd
<yorickpeterse> what did I miss?
<sluukkonen> nothing
jperry has left #ruby-lang [#ruby-lang]
<maloik> if I'm looking at importing 250k+ records from a db, changing/reformatting them into my own objects and saving them, what would be a good way of splitting this up into different processes to speed things up?
<yorickpeterse> multi-threading
<yorickpeterse> and don't use MRI for that
<yorickpeterse> I'd split rows up into batches of, say, 1000
<maloik> this is a one-time thing, I think MRI will be fine?
<yorickpeterse> maloik: enjoy the GIL in that case
<maloik> :/
r0bby_ has quit [Excess Flood]
<yorickpeterse> Having said that, what database is this?
<maloik> mysql
<yorickpeterse> Ah ok, so no global table locks upon updates
r0bby_ has joined #ruby-lang
<yorickpeterse> If that were the case concurrency wouldn't really help, you'd have workers fight over the lock
<yorickpeterse> How many records are there exactly?
<yorickpeterse> 250k is not that much, you can probably do that in sequence just fnie
<yorickpeterse> * fine
<yorickpeterse> For Mongo on the other hand....
<maloik> I've never gotten to the end (still debugging, db contains bad data here and there too) but so far it's taking about 45min or longer
<benlovell> mongomg
[spoiler] has quit [Quit: Leaving]
fullybaked has joined #ruby-lang
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby-lang
yatish27 has joined #ruby-lang
<yorickpeterse> maloik: meh, 45min is not bad
<yorickpeterse> also put some simple progress tracking in there
<maloik> yea I just added a progressbar
<yorickpeterse> Our latest Mongo migration, which was a month or 3 ago, took I think 2-3 days
<yorickpeterse> can't really update Mongo in parallel because herp derp collection wide write locks
<maloik> hmm, im not really sure how to split this thing up
<maloik> must be friday :/
<yorickpeterse> Then again that was an update on 50-something million documents
<yorickpeterse> maloik: start with processing stuff in batches of N documents
<yorickpeterse> opposed to one by one
<yorickpeterse> That alone will save you lots of queries
jxie has joined #ruby-lang
<sluukkonen> inserting the records in large enough batches is the biggest optimization you can do
InfraRuby has left #ruby-lang [#ruby-lang]
<sluukkonen> the maximum batch size is limited by mysql's max_allowed_packet
Pain has quit [Ping timeout: 255 seconds]
<maloik> if I were to translate what I have to pseudo code it's basically this: https://gist.github.com/anonymous/7dfb2de372130d26326a
<maloik> actually no, 1sec
<yorickpeterse> maloik: the secret sauce literally is...
<yorickpeterse> your_database_object_thing.each_slice(1000) { |slice| ....; insert_into_db(new_slice) }
<bougyman> which db is it?
<maloik> mysql
<maloik> https://gist.github.com/hannesfostie/dcf37fdf5028608de8b2 this is a little more like what I had
<maloik> yorickpeterse: that's considering those objects are in memory, so I assume my find_in_batches does the same
<maloik> (this is a rails project)
JohnFord has joined #ruby-lang
hellangel7 has joined #ruby-lang
tbuehlmann has quit [Quit: Leaving]
<maloik> if the progressbar's ETA is to be trusted I've halved the time it will take with the find_in_batches
<maloik> although it's still going up, so hard to say
lcdhoffman has quit [Quit: lcdhoffman]
Pain has joined #ruby-lang
jamesfordummies has joined #ruby-lang
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmesswhy has joined #ruby-lang
loincloth has joined #ruby-lang
nathanstitt has joined #ruby-lang
<Pain> What is the difference between class < ClassName, and class << self ? And in class << self, what does the operator << mean ?
<apeiros> class < ClassName # is a syntax error
<apeiros> you probably mean: class SomeClass < OtherClass
<apeiros> and there it means "open class SomeClass, which has OtherClass as its parent"
<apeiros> class << some_obj # this means "open the singleton_class of some_obj"
r0bby_ has quit [Ping timeout: 250 seconds]
<apeiros> and some_obj can be any object. self is an object. within a class body, it's the class. see:
<apeiros> >> class Foo; self; end
<eval-in> apeiros => Foo (https://eval.in/177378)
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Pain> apeiros: So both operator < and << means open the following class or object or singleton class ?
r0bby_ has joined #ruby-lang
<apeiros> Pain: no. < means "inherit"
vladgh has quit [Ping timeout: 250 seconds]
<apeiros> `class …` means "open class …"
spastorino has joined #ruby-lang
<apeiros> where `class ***Foo***` is "open class Fooo"
<apeiros> and `class ***<< Foo***` is "open singleton_class of Foo"
<Pain> apeiros: I see now.
<apeiros> and if you use `class Foo < Bar`, you say "open class Foo" + "Foo inherits from Bar"
<apeiros> once the class is defined, you can open it without specifying the inheritance. observe:
yatish27 has quit [Ping timeout: 250 seconds]
<apeiros> >> class Foo < Bar; end; class Foo; end
<eval-in> apeiros => uninitialized constant Bar (NameError) ... (https://eval.in/177379)
<apeiros> bah
<apeiros> >> class Bar; end; class Foo < Bar; end; class Foo; end
<eval-in> apeiros => nil (https://eval.in/177380)
<apeiros> but you can't open it with a different subclass specification:
<apeiros> >> class Bar; end; class Foo < Bar; end; class Foo < Array; end
<eval-in> apeiros => superclass mismatch for class Foo (TypeError) ... (https://eval.in/177381)
dwknoxy has joined #ruby-lang
r0bby_ has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby-lang
r0bby_ has joined #ruby-lang
hramrach has quit [Ping timeout: 264 seconds]
cmhobbs has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vladgh has joined #ruby-lang
AKASkip has quit [Ping timeout: 272 seconds]
weems|mac has joined #ruby-lang
Squarepy has joined #ruby-lang
hramrach has joined #ruby-lang
JohnFord has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 264 seconds]
relix has joined #ruby-lang
<maloik> getting nowhere with these threads :D
<maloik> think I should call it a day
relix has quit [Client Quit]
Pain has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
chouhou__ has joined #ruby-lang
chouhoul_ has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
cmhobbs has quit [Quit: Leaving]
apeiros has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
chouhoulis has quit [Ping timeout: 246 seconds]
toastynerd has joined #ruby-lang
heftig-z has quit [Quit: heftig-z]
apeiros has quit [Ping timeout: 260 seconds]
lcdhoffman has joined #ruby-lang
mistym has joined #ruby-lang
<yorickpeterse> maloik: you're thinking to literal, each_slice was just an example method
<yorickpeterse> The concept is what matters: batch processing
<yorickpeterse> brb, I'm required to be social in the kitchen (blargh)
lcdhoffman has quit [Client Quit]
NemesisD has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
agarie has joined #ruby-lang
|jemc| has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby-lang
saarinen has joined #ruby-lang
mjboselowitz has joined #ruby-lang
chouhou__ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby-lang
mikecmpb_ has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 260 seconds]
agarie has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
mikecmpb_ is now known as mikecmpbll
sarkyniin has quit [Ping timeout: 250 seconds]
agarie has joined #ruby-lang
saarinen has quit [Quit: saarinen]
Missphoenix has quit [Quit: Leaving]
tbuehlmann has joined #ruby-lang
ironhide_604 has quit [Ping timeout: 260 seconds]
amerine has joined #ruby-lang
michaeldeol has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
toastynerd has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby-lang
charliesome has joined #ruby-lang
apeiros has joined #ruby-lang
mistym has quit [Remote host closed the connection]
macsplean1 has joined #ruby-lang
RobertBirnie has joined #ruby-lang
fullybaked has quit []
apeiros has quit [Ping timeout: 272 seconds]
vintik has joined #ruby-lang
vintik has quit [Remote host closed the connection]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
jbardin has joined #ruby-lang
zz_anildigital is now known as anildigital
apeiros has joined #ruby-lang
momomomomo has joined #ruby-lang
jamesfordummies has quit [Ping timeout: 264 seconds]
omosoj has joined #ruby-lang
qba73 has quit []
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
pixelhandler has joined #ruby-lang
benlovell has quit [Ping timeout: 250 seconds]
jamesfordummies has joined #ruby-lang
wallerdev has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kek has quit [Remote host closed the connection]
sepp2k has quit [Quit: Konversation terminated!]
cantonic has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby-lang
worm` has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
CaptainJet has joined #ruby-lang
cantonic has quit [Quit: cantonic]
JohnFord has joined #ruby-lang
Cakey has joined #ruby-lang
saarinen has joined #ruby-lang
michaeldeol has joined #ruby-lang
MichD is now known as michd
ascarter has joined #ruby-lang
mcantor has joined #ruby-lang
diegoviola has joined #ruby-lang
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
Pain has joined #ruby-lang
anildigital is now known as zz_anildigital
mistym has joined #ruby-lang
vintik has joined #ruby-lang
zz_anildigital is now known as anildigital
eeezkil has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby-lang
dvorak has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby-lang
Cakey has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby-lang
michaeldeol has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dvorak has joined #ruby-lang
saarinen has quit [Quit: saarinen]
mistym_ has joined #ruby-lang
yatish27 has joined #ruby-lang
mistym has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby-lang
r0bby_ has quit [Excess Flood]
Asher has quit [Quit: Leaving.]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r0bby_ has joined #ruby-lang
chouhoul_ has joined #ruby-lang
dangerousdave has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
chouhoulis has quit [Ping timeout: 244 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
cantonic has joined #ruby-lang
dangerousdave has joined #ruby-lang
dangerousdave has quit [Client Quit]
loincloth has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
relix has joined #ruby-lang
JohnFord has joined #ruby-lang
centrx has joined #ruby-lang
hellangel7 has quit [Ping timeout: 260 seconds]
dangerousdave has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
dangerousdave has quit [Client Quit]
yatish27 has quit [Remote host closed the connection]
danijoo has joined #ruby-lang
worm` has quit [Ping timeout: 260 seconds]
yatish27 has joined #ruby-lang
djbkd has joined #ruby-lang
hellangel7 has joined #ruby-lang
mjboselowitz has quit [Remote host closed the connection]
mjboselowitz has joined #ruby-lang
yatish27 has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
illiam has joined #ruby-lang
dangerousdave has joined #ruby-lang
mistym has joined #ruby-lang
mistym_ has quit [Ping timeout: 264 seconds]
worm` has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
djbkd has joined #ruby-lang
cantonic has quit [Ping timeout: 244 seconds]
cantonic has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
<kuanding> is there a practical reason for the method “replace”, can’t we do evertying with a simple “=“ instead?
loincloth has joined #ruby-lang
nofxx_ has joined #ruby-lang
_elia has joined #ruby-lang
OrkzRule has joined #ruby-lang
stamina has quit [Ping timeout: 250 seconds]
nofxx has quit [Ping timeout: 245 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> kuanding: not the same thing
michaeldeol has quit [Ping timeout: 272 seconds]
<apeiros> replace mutates the object. = assigns to a variable.
elia has quit [Ping timeout: 272 seconds]
<apeiros> >> a = "hello"; b = [a]; a = "world"; b
<eval-in> apeiros => ["hello"] (https://eval.in/177492)
illiam has left #ruby-lang [#ruby-lang]
<apeiros> >> a = "hello"; b = [a]; a.replace("world"); b
<eval-in> apeiros => ["world"] (https://eval.in/177493)
<apeiros> kuanding: notice the difference?
sarkyniin has joined #ruby-lang
<kuanding> apeiros: thank you, I need a minute to try it out
<kuanding> apeiros: thank you, I see the differences now
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
djbkd has joined #ruby-lang
miqui has quit [Read error: Connection reset by peer]
dangerousdave has quit [Client Quit]
mcantor has quit [Quit: leaving]
wmoxam_ has quit [Quit: leaving]
wmoxam has joined #ruby-lang
wmoxam has quit [Changing host]
wmoxam has joined #ruby-lang
dangerousdave has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-lang
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
CaptainJet has quit [Ping timeout: 246 seconds]
yatish27 has joined #ruby-lang
omosoj has quit [Ping timeout: 260 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
CaptainJet has joined #ruby-lang
eeezkil has joined #ruby-lang
eeezkil has quit [Max SendQ exceeded]
charliesome_ has joined #ruby-lang
ascarter has joined #ruby-lang
momomomomo has joined #ruby-lang
charliesome has quit [Ping timeout: 250 seconds]
amsi has joined #ruby-lang
omosoj has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
r0bby_ has quit [Ping timeout: 264 seconds]
nifoc has quit [Ping timeout: 240 seconds]
magikfx__ has quit [Quit: Computer has gone to sleep.]
jamesfordummies has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 272 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
michaeldeol has joined #ruby-lang
omosoj has quit [Ping timeout: 245 seconds]
ari-_-e has quit [Ping timeout: 264 seconds]
nifoc has joined #ruby-lang
michaeldeol has quit [Ping timeout: 260 seconds]
_elia has quit [Ping timeout: 260 seconds]
arBmind1 has quit [Quit: Leaving.]
michaeldeol has joined #ruby-lang
yfeldblum has joined #ruby-lang
maximeshr has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
michaeldeol has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
omosoj has joined #ruby-lang
djbkd has joined #ruby-lang
stamina has joined #ruby-lang
karamazov has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 260 seconds]
Atttwww has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
Kero has quit [Ping timeout: 255 seconds]
ruby-lang688test has joined #ruby-lang
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
Kero has joined #ruby-lang
maximeshr has quit [Quit: leaving]
rsl has joined #ruby-lang
lcdhoffman has joined #ruby-lang
nfsnobody has quit [*.net *.split]
ruby-lang688test has quit [Ping timeout: 246 seconds]
nfsnobody has joined #ruby-lang
jbardin has quit [Quit: jbardin]
relix has joined #ruby-lang
miqui has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Kero has quit [Ping timeout: 245 seconds]
mistym_ has joined #ruby-lang
Kero has joined #ruby-lang
mistym has quit [Ping timeout: 260 seconds]
jeff_r has joined #ruby-lang
amsi has quit [Ping timeout: 260 seconds]
mistym has joined #ruby-lang
amsi has joined #ruby-lang
<jeff_r> how can I get the path of a file from which ERB is executing?
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym_ has quit [Ping timeout: 246 seconds]
mistym has quit [Remote host closed the connection]
vintik has quit [Remote host closed the connection]
havenwood has quit []
<apeiros> jeff_r: the template's path or the file which renders the template?
vintik has joined #ruby-lang
<jeff_r> apeiros the file which renders the template
<apeiros> a) pass it in, b) try caller
<apeiros> or c) if you can, caller_locations instead of caller
<jeff_r> apeiros actually I meant the template's path, confusing :)
<apeiros> if the code properly invoked it, __FILE__
<jeff_r> I'm trying to the get the absolute path of the template from within the template
yatish27 has quit [Remote host closed the connection]
<apeiros> but that requires the code to pass the path to ERB as an argument
anildigital is now known as zz_anildigital
<apeiros> uh… wait…
vintik has quit [Ping timeout: 240 seconds]
<apeiros> ah, right, with ERB, you don't have to pass it, you have to set ERB#filename=
amsi has quit [Ping timeout: 255 seconds]
amsi has joined #ruby-lang
arBmind has joined #ruby-lang
worm` has left #ruby-lang ["Leaving"]
elia has joined #ruby-lang
<jeff_r> apeiros so I've got something like ERB.new(File.read('/path/to/my/file')).result
yfeldblum has quit [Ping timeout: 240 seconds]
pixelhandler has quit [Quit: pixelhandler]
<apeiros> jeff_r: so you have to change that to call filename=
s1kx has quit [Read error: Connection reset by peer]
Cakey has joined #ruby-lang
<apeiros> or add a new constructor to ERB
<jeff_r> apeiros something like? erb = ERB.new(File.read('/path/to/my/file'); erb.filename = '/path/to/my/file'; erb.result
<jeff_r> ?
<apeiros> yes
<apeiros> and then you should have access via __FILE__
<jeff_r> apeiros I'll try that, thanks :)
<apeiros> yw
karamazov has quit []
Cakey has quit [Ping timeout: 240 seconds]
amsi has quit [Ping timeout: 255 seconds]
jbardin has joined #ruby-lang
yalue has quit [Quit: Leaving]
hellangel7 has quit [Read error: Connection reset by peer]
s1kx has joined #ruby-lang
saarinen has joined #ruby-lang
lele has quit [Ping timeout: 260 seconds]
nofxx_ has quit [Ping timeout: 272 seconds]
r0bby_ has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
_ht has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vintik has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
JohnFord has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
lele has joined #ruby-lang
ascarter has joined #ruby-lang
agarie has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
djbkd has joined #ruby-lang
agarie has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
Squarepy has quit [Quit: Leaving]
djbkd has quit [Ping timeout: 255 seconds]
amystephen has joined #ruby-lang
rickruby__ has left #ruby-lang [#ruby-lang]
rickruby has joined #ruby-lang
michaeldeol has joined #ruby-lang
mistym has joined #ruby-lang
jamesfordummies has joined #ruby-lang
djbkd has joined #ruby-lang
jamesfordummies has quit [Client Quit]
amsi has joined #ruby-lang
yatish27 has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby-lang
InfraRuby has joined #ruby-lang
mjboselowitz has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeff_r has quit []
dingus_khan has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
JohnFord has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
jamesfordummies has joined #ruby-lang
mjboselowitz has joined #ruby-lang
ssimpkin has joined #ruby-lang
_elia has joined #ruby-lang
miqui has quit [Remote host closed the connection]
x0f has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnFord has joined #ruby-lang
x0f_ has quit [Ping timeout: 272 seconds]
apeiros has quit []
apeiros has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
yfeldblum has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
mjboselowitz has quit [Remote host closed the connection]
mjboselowitz has joined #ruby-lang
ta_ has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
agarie has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solars has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
nofxx_ has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
frank_o has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
austincb has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
agarie has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dingus_khan> i think i have a stupid question: is there some relatively simple way to take a symbol that's passed as a parameter, that's the same name as a method, and convert it into a call to that method? am i insane?
dorei has joined #ruby-lang
<zenspider> dingus_khan: what are you ACTUALLY trying to do?
<dingus_khan> zenspider: the other ruby channel nailed it, __send__! d'oh
<dingus_khan> i was basically trying to remember that, i think
<dingus_khan> but in case i'm wrong again, i have a method that calls another class method to build a response hash, and instead of writing a case for each different protected method that might be called, i wanted to parse the method symbol specified and use it to make the appropriate call
marr has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
djbkd has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
AKASkip has quit [Ping timeout: 272 seconds]
toastynerd has joined #ruby-lang
Hinkdogg has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
djbkd has quit [Ping timeout: 255 seconds]
agarie has quit [Remote host closed the connection]
momomomomo_ has joined #ruby-lang
momomomomo_ has quit [Client Quit]
momomomomo has joined #ruby-lang
charliesome has joined #ruby-lang
momomomomo has quit [Client Quit]
momomomomo has joined #ruby-lang
mjboselowitz has quit [Remote host closed the connection]
Sgeo has joined #ruby-lang
mjboselowitz has joined #ruby-lang
momomomomo has left #ruby-lang [#ruby-lang]
momomomomo has joined #ruby-lang
ur5us has joined #ruby-lang
mjboselowitz has quit [Ping timeout: 272 seconds]
momomomomo has left #ruby-lang [#ruby-lang]
yfeldblum has joined #ruby-lang
momomomomo has joined #ruby-lang
jdecuirm has joined #ruby-lang
araujo has quit [Read error: Connection reset by peer]
<jdecuirm> Hi
sepp2k has quit [Read error: Connection reset by peer]
araujo has joined #ruby-lang
<jdecuirm> I'm just testing the irc chat app!
<jhass> it doesn't work!
<jdecuirm> lol hate you :c
yatish27 has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
yatish27 has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has joined #ruby-lang
<frank_o> hehe
yatish27 has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby-lang
<jhass> jdecuirm: is it written in ruby? (highlight test for you)
yfeldblum has quit [Ping timeout: 240 seconds]
<jdecuirm> jhass: hahahaha no, i'm not that good!!
yfeldblum has joined #ruby-lang
<jdecuirm> i'm in fact learning! i am about to enter in the *amazing sound* metaprogramming world!
pixelhandler has joined #ruby-lang
cantonic has quit [Quit: cantonic]
austincb has quit [K-Lined]
chouhoulis has quit [Ping timeout: 272 seconds]
<zenspider> pls don't test bots in here. make a new channel
<jdecuirm> hahahaha don't worry! i'm not that pro! in fact i guess i will re study some ruby, i wanna tackle rails well prepared!
ascarter has joined #ruby-lang
mjboselowitz has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
s1kx has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby-lang
s1kx has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
<zenspider> omnifocus version 2.1.5 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2014/08/omnifocus-version-2-1-5-has-been-released.html
<jdecuirm> :0
<jdecuirm> any good book that you can share with me for ruby?! the one that you can say THIS is a great book?!
ssimpkin_ has joined #ruby-lang
ssimpkin has quit [Read error: Connection reset by peer]
bin7me has joined #ruby-lang
Pain has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
|jemc| has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
nertzy has joined #ruby-lang
dorei has quit []
OrkzRule has quit [Ping timeout: 260 seconds]
nertzy has quit [Client Quit]