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
benzrf is now known as benzrf|offline
ndrei has joined #ruby
kevkev____ has joined #ruby
chihhsin_cloud has joined #ruby
TorpedoSkyline has joined #ruby
InfraRuby has left #ruby [#ruby]
Zespre has quit [Quit: leaving]
lisa__ has quit [Ping timeout: 246 seconds]
nopolitica has joined #ruby
centipedefarmer has joined #ruby
Mon_Ouie has quit [Ping timeout: 250 seconds]
kevkev____ has quit [Ping timeout: 250 seconds]
andrewjanssen has quit [Quit: Leaving...]
ndrei has quit [Ping timeout: 240 seconds]
marr has quit []
agrinb has quit [Quit: Leaving...]
benzrf|offline is now known as benzrf
benzrf is now known as benzrf|offline
sepp2k1 has joined #ruby
Shidash has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
centipedefarmer has quit [Ping timeout: 245 seconds]
nopolitica has quit [Ping timeout: 255 seconds]
w09x has quit [Remote host closed the connection]
w09x has joined #ruby
_1_ERodrigoC2 has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_1_ERodrigoC2 has quit [Remote host closed the connection]
mikesplain has joined #ruby
zenojis has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
w09x has quit [Ping timeout: 244 seconds]
Cache_Money has quit [Quit: Cache_Money]
w09x has joined #ruby
pierre1_ has joined #ruby
nasj has joined #ruby
fold has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
Boohbah has joined #ruby
ddv has quit [Ping timeout: 260 seconds]
ddv has joined #ruby
aspires has quit []
Fire-Dragon-DoL has quit [Quit: Leaving.]
nasj has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
jottr_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jottr has quit [Ping timeout: 245 seconds]
pierre1_ has quit [Ping timeout: 250 seconds]
benzrf|offline is now known as benzrf
qrohlf has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
phinfonet has joined #ruby
wrist has joined #ruby
gruz0[russia] has quit [Read error: Connection reset by peer]
surfs^ has joined #ruby
gruz0[russia] has joined #ruby
vsoftoiletpaper has quit []
nfk has quit [Quit: yawn]
szuletett has joined #ruby
jamto11 has quit [Remote host closed the connection]
wrist has quit [Ping timeout: 255 seconds]
o0oo0o has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
bmurt has joined #ruby
Spami has joined #ruby
ixti has quit [Ping timeout: 250 seconds]
w09x has quit []
nateberkopec has joined #ruby
TorpedoSkyline has joined #ruby
vsoftoiletpaper has joined #ruby
InfraRuby has joined #ruby
alexju has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
TorpedoSkyline has quit [Client Quit]
nateberkopec has quit [Ping timeout: 240 seconds]
jottr_ has quit [Quit: WeeChat 0.4.3]
Noob101 has joined #ruby
bradleyprice has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
lw has joined #ruby
bradleyprice has joined #ruby
Noob101 has left #ruby [#ruby]
jxf has joined #ruby
Cache_Money has joined #ruby
InfraRuby has left #ruby [#ruby]
jon___ has joined #ruby
LadyRainicorn has quit [Ping timeout: 256 seconds]
jon___ has quit [Client Quit]
LadyRainicorn has joined #ruby
bradleyprice has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
poguez_ has joined #ruby
benzrf|offline is now known as benzrf
jon___ has joined #ruby
heftig has quit [Quit: Quitting]
Cache_Money has quit [Quit: Cache_Money]
peret has joined #ruby
LadyRainicorn has quit [Ping timeout: 256 seconds]
mechanicalduck_ has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
cantonic has quit [Quit: cantonic]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
kevkev____ has joined #ruby
Spami has joined #ruby
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
LadyRainicorn has joined #ruby
centipedefarmer has joined #ruby
kevkev____ has quit [Ping timeout: 255 seconds]
Cache_Money has joined #ruby
blackmesa has joined #ruby
centipedefarmer has quit [Ping timeout: 260 seconds]
Panicky has left #ruby ["Killed buffer"]
Cache_Money has quit [Client Quit]
benzrf is now known as benzrf|offline
mikesplain has joined #ruby
TorpedoSkyline has joined #ruby
Akagi201 has quit [Read error: No route to host]
Akagi201_ has joined #ruby
jamto11 has joined #ruby
kyb3r_ has quit [Ping timeout: 255 seconds]
heftig has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
TorpedoSkyline has quit [Client Quit]
nasj has joined #ruby
mrnugget has joined #ruby
mikesplain has quit [Ping timeout: 245 seconds]
seamon has quit [Quit: Zzzzzzz]
kij__ has quit []
LadyRainicorn has quit [Ping timeout: 256 seconds]
alexju has quit [Remote host closed the connection]
szuletett has quit [Quit: Leaving]
mijicd has quit [Remote host closed the connection]
jon___ has quit [Quit: leaving]
jon___ has joined #ruby
jon___ has quit [Client Quit]
nasj has quit [Ping timeout: 260 seconds]
jon___ has joined #ruby
jon___ has quit [Client Quit]
pr0t has quit [Remote host closed the connection]
jon___ has joined #ruby
jon___ has quit [Client Quit]
jonr22 has joined #ruby
greenrose has joined #ruby
greenrose has quit [Excess Flood]
seamon has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
jonr22 has quit [Quit: Lost terminal]
wrist has joined #ruby
oo_ has joined #ruby
dorei has joined #ruby
robustus has joined #ruby
philcrissman has joined #ruby
ascarter has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
patrick99e99 has quit [Ping timeout: 255 seconds]
wrist has quit [Ping timeout: 264 seconds]
oo_ has quit [Ping timeout: 255 seconds]
philcrissman has quit [Ping timeout: 240 seconds]
dseitz has joined #ruby
ValicekB has quit [Ping timeout: 250 seconds]
alexju has joined #ruby
nateberkopec has joined #ruby
chipotle has quit [Quit: cya]
lw has quit [Quit: s]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jjasonclark has quit [Quit: jjasonclark]
mrnugget has quit [Quit: mrnugget]
nateberkopec has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
teddyp1cker has joined #ruby
kireevco has quit [Quit: Leaving.]
bradleyprice has joined #ruby
chipotle has joined #ruby
ValicekB has joined #ruby
kireevco has joined #ruby
teddyp1cker has quit [Ping timeout: 256 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
axsuul has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
jonr22 has joined #ruby
jxf has quit [Ping timeout: 255 seconds]
mehlah has quit [Quit: Linkinus - http://linkinus.com]
dorei has quit []
braincra- has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
alexju has quit [Remote host closed the connection]
kevkev____ has joined #ruby
centipedefarmer has joined #ruby
kevkev____ has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
amclain has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
amclain has quit [Client Quit]
amclain has joined #ruby
centipedefarmer has quit [Ping timeout: 256 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mikesplain has joined #ruby
<theharshest> how to read only the first line of the file, keeping it optimized for small or large file. can anyone tell me the most idiomatic way?
jayunit100 has joined #ruby
Nilium has quit [Ping timeout: 245 seconds]
nasj has joined #ruby
mikesplain has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cya]
<godd2> File.open(path_to_file, "r").lines.first
<godd2> maybe add a .chomp for good measure
ferr has joined #ruby
<gr33n7007h> File.open("somefile", &:readline)
<eam> the first one will read the whole file and leak a descriptor
<theharshest> thanks, what about "File.open(filename, "r") {|fl| fl.readline}"? godd2, gr33n7007h
pierre1_ has joined #ruby
eka has joined #ruby
nasj has quit [Ping timeout: 250 seconds]
<eam> theharshest: that's the same as gr33n7007h's, but easier to read
<theharshest> gr33n7007h: eam, this won't open whole file, right?
magic is now known as DayAfterTomorrow
<eam> theharshest: if you break from the loop, it won't
DayAfterTomorrow is now known as magic
magic is now known as KnowsIt
<gr33n7007h> probably better using File.open("somefile", &:gets)
<theharshest> eam: and gr33n7007h's way wont even go into a loop?
<godd2> Will passing the symbol to proc close the file like passing a block explicitly will?
Noob101 has joined #ruby
KnowsIt is now known as magic
<gr33n7007h> godd2, yes
Photism has joined #ruby
<eam> theharshest: right. It will however likely read more than one line
blackmesa has quit [Ping timeout: 264 seconds]
<theharshest> eam: so how can I make it more optimized to read only the first line?
<eam> theharshest: you probably don't care, it won't read more than once
jamto11 has quit [Remote host closed the connection]
lidaaa has quit [Ping timeout: 240 seconds]
<eam> the thing is, it reads in (probably) 4k blocks
robscormack has joined #ruby
<theharshest> eam: I see, thanks
wrist has joined #ruby
seamon has quit [Quit: Zzzzzzz]
justinv has quit [Remote host closed the connection]
wrist has quit [Ping timeout: 255 seconds]
pr0t has joined #ruby
jjasonclark has joined #ruby
Spami has joined #ruby
jamto11 has joined #ruby
robscormack has quit [Quit: Leaving]
bradleyprice has quit [Read error: Connection reset by peer]
amclain_ has joined #ruby
jonr22 has quit [Remote host closed the connection]
lidaaa has joined #ruby
niklasb has quit [Ping timeout: 255 seconds]
jtdowney has joined #ruby
chipotle has joined #ruby
amclain has quit [Ping timeout: 245 seconds]
amclain__ has joined #ruby
amclain__ has quit [Remote host closed the connection]
jjasonclark has quit [Quit: jjasonclark]
supermat has quit [Ping timeout: 272 seconds]
agrinb has joined #ruby
jamto11 has quit []
tolo123 has joined #ruby
amclain_ has quit [Ping timeout: 264 seconds]
<merqlove> hello there!) Guys, maybe someone know good example of "use case" driven development? I'm looking for silver bullet ;)
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
supermat has joined #ruby
JoshGlzBrk has joined #ruby
gogohome has joined #ruby
<gogohome> hi
<merqlove> Yo
ericmathison has joined #ruby
justinv has joined #ruby
<gogohome> wasamasa: hi
dc_ has joined #ruby
jtdowney has quit []
kevkev____ has joined #ruby
niklasb has joined #ruby
<godd2> UCDD? Isn't that what StackOverflow is?
kireevco has quit [Quit: Leaving.]
seamon has joined #ruby
braincra- has quit [Quit: bye bye]
amclain has joined #ruby
agrinb has quit [Remote host closed the connection]
Lexun has quit [Ping timeout: 255 seconds]
jjasonclark has joined #ruby
kireevco has joined #ruby
kevkev____ has quit [Ping timeout: 255 seconds]
alexju has joined #ruby
braincrash has joined #ruby
chipotle has quit [Quit: cya]
justinv has quit [Remote host closed the connection]
kireevco has quit [Client Quit]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
mikesplain has joined #ruby
surfs^ has quit [Quit: Konversation terminated!]
poguez_ has quit [Quit: Connection closed for inactivity]
mattstratton has joined #ruby
nasj has joined #ruby
mikesplain has quit [Ping timeout: 244 seconds]
philcrissman has joined #ruby
vsoftoiletpaper has quit []
vsoftoiletpaper has joined #ruby
jtdowney has joined #ruby
mary5030 has joined #ruby
nasj has quit [Ping timeout: 260 seconds]
philcrissman has quit [Ping timeout: 264 seconds]
davedev24_ has quit []
davedev24_ has joined #ruby
ferr has quit [Ping timeout: 250 seconds]
yoshie902a has joined #ruby
yoshie902a has quit [Client Quit]
TorpedoSkyline has joined #ruby
patrick99e99 has joined #ruby
wrist has joined #ruby
gogohome has quit [Quit: gogohome]
TorpedoSkyline has quit [Client Quit]
gogohome has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
wrist has quit [Ping timeout: 250 seconds]
mr_snowf1ake has joined #ruby
drawingthesun has joined #ruby
alexju has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
kyb3r_ has joined #ruby
neersighted has quit [Remote host closed the connection]
neersighted has joined #ruby
wrist has joined #ruby
kireevco has joined #ruby
justinv has joined #ruby
teddyp1cker has joined #ruby
<gogohome> hello
agrinb has joined #ruby
<gogohome> who know it?
axsuul has joined #ruby
<ari-_-e> gogohome: looks like it was answered?
teddyp1cker has quit [Ping timeout: 250 seconds]
justinv has quit [Remote host closed the connection]
<ari-_-e> four years ago?
<gogohome> yes
<gogohome> you know it?
<ari-_-e> I know what?
peret has quit [Remote host closed the connection]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gogohome> you know it/
<gogohome> ? ari-_-e
<ari-_-e> I know WHAT?
<ari-_-e> what is your actual question?
bradleyprice has joined #ruby
<gogohome> oh no
Zenigor has joined #ruby
<merqlove> It depends on your network. type gogohome
tonyhb has joined #ruby
<gogohome> my network?
<gogohome> how merqlove
<ari-_-e> gogohome: did you read the answer?
<gogohome> yes
<gogohome> i read it.
<ari-_-e> then what is your question?
<gogohome> in gernal no?
<merqlove> yeah. man said about multiple modes of wireshark for each network connection type
<merqlove> :)
agrinb has quit [Ping timeout: 240 seconds]
jayunit100 has quit [Quit: jayunit100]
tonyhb has quit [Ping timeout: 260 seconds]
benzrf|offline is now known as benzrf
<ari-_-e> that answer doesn't really have much to do with wireshark modes
seamon has quit [Quit: Zzzzzzz]
<merqlove> Yeah. more about network type
<gogohome> then i must study about network?
<ari-_-e> gogohome: sure?
<gogohome> thanks
<gogohome> :D
kevkev____ has joined #ruby
gogohome has left #ruby [#ruby]
gogohome has joined #ruby
jjasonclark has quit [Quit: jjasonclark]
<gogohome> wasamasa: i want request to you.
chihhsin has quit [Remote host closed the connection]
wrist has quit [Quit: Leaving...]
kevkev____ has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
sixxy has joined #ruby
drawingthesun has quit [Ping timeout: 250 seconds]
mikesplain has joined #ruby
davedev24_ has quit [Remote host closed the connection]
davedev24_ has joined #ruby
Zenigor has quit [Remote host closed the connection]
bmurt has quit []
Zenigor has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
nasj has joined #ruby
amclain has quit [Quit: Leaving]
brianherman has joined #ruby
Zenigor has quit [Ping timeout: 255 seconds]
redondos has quit [Excess Flood]
nasj has quit [Ping timeout: 240 seconds]
redondos has joined #ruby
beneggett has quit [Ping timeout: 260 seconds]
SomeGuy has joined #ruby
lxsameer has joined #ruby
gogohome has left #ruby [#ruby]
<SomeGuy> Hi
SomeGuy has left #ruby [#ruby]
pallavi_ has joined #ruby
pallavi_ is now known as pallavi_shastry
SomeGuy123123132 has joined #ruby
<SomeGuy123123132> any professional ruby devs around?
eka has quit [Max SendQ exceeded]
<ari-_-e> no we're all highly unprofessional
<SomeGuy123123132> haha
<SomeGuy123123132> I'm a bit confused and would like some clarity about a recent interview process
eka has joined #ruby
vsoftoiletpaper has quit []
<SomeGuy123123132> it was for a rails position, and I was asked to check validity of credit card using luhn algorithm
beneggett has joined #ruby
<SomeGuy123123132> trouble is, I don't have much experience with such algorithms. My first choice would be to see current implementations. I found a few on stackoverflow, and it didn't look that complicated
vsoftoiletpaper has joined #ruby
<SomeGuy123123132> however, I still would have used something like ActiveMerchant
<SomeGuy123123132> should I know this algorithm? I just don't see why I would be checking validity of credit card numbers. Why would I not use an API?
brianherman has quit [Read error: Connection reset by peer]
<ari-_-e> did they not give you the opportunity to do research at all?
<SomeGuy123123132> Does every interview involve flexing your algorithm knowledge? Really starting to irk me. I've worked on large applications and been professional for a good 4 years. never have I once had to implement common algorithms in a language like ruby
<SomeGuy123123132> It's a remote position, so I have plenty of time to research
<SomeGuy123123132> but it's troubling me
<SomeGuy123123132> is such a test a red flag?
<ari-_-e> I don't think so
<ari-_-e> in an in-person interview I think it would be
<ari-_-e> assuming that someone knows this special-purpose interview would be bad
<ari-_-e> special-purpose algorithm
<SomeGuy123123132> fair point
<SomeGuy123123132> I'm just worried of what they might ask me when they get me on the phone
<SomeGuy123123132> how's about this then... in their conditions they said I'd be required to be on web cam during working hours for legal reasons in their country (oz)
<SomeGuy123123132> that is surely a red flag?
<SomeGuy123123132> I said no
<ari-_-e> but if it's like a "answer this question and get back to us" sort of thing, it can just be a test of how well you can do research and such
<SomeGuy123123132> they still sent me interview questions
<ari-_-e> and in general, algorithmic knowledge is pretty good to have if you're a programmer
<ari-_-e> ah yeah, the web cam thing is weird
<SomeGuy123123132> so would you implement this algorithm manually, or would you use an already available solution? for example, active merchant has such things for validating credit card numbers
Atttwww has quit [Ping timeout: 255 seconds]
<ari-_-e> legal reasons? bs
<SomeGuy123123132> if I were to do this in a project, I'd suspect I'd be working with credit cards, and so I'd want to work with a mature library
centipedefarmer has joined #ruby
<SomeGuy123123132> I know algorithms are important, it's one of my weak spots. I've only ever used high-level dynamic languages. everything is already implemented for me
benlakey has joined #ruby
<SomeGuy123123132> for a ruby position, I would expect questions about oop and such
<ari-_-e> well, some algorithms are written for you - sorting, searching, etc
<ari-_-e> but you have to write your own all the time
matrixdevuk has quit [Excess Flood]
<SomeGuy123123132> true, I mean common algorithms
edwardly has quit [Excess Flood]
jdj_dk has joined #ruby
matrixdevuk has joined #ruby
edwardly has joined #ruby
jdj_dk has quit [Remote host closed the connection]
<SomeGuy123123132> the second part of that question:
<SomeGuy123123132> " Similarly, write a second function that takes a
<SomeGuy123123132> number of any length and calculates the Luhn check digit and returns the original
<SomeGuy123123132> number with the check digit appended on the end."
jdj_dk has joined #ruby
<godd2> isnt the luhn algo just an alternating chucksum?
<ari-_-e> from your description it sounds like they want you to implement the algorithm
Tarential has quit [Excess Flood]
<SomeGuy123123132> yeh from what I've read
<hakunin> i have a slightly mind-bending (for me) question that i'm trying to wrap my head around…
Tarential has joined #ruby
Sthebig has quit [Excess Flood]
jdj_dk has quit [Read error: Connection reset by peer]
centipedefarmer has quit [Ping timeout: 250 seconds]
jdj_dk_ has joined #ruby
<godd2> feel free to ask hakunin
<ari-_-e> of course, you can just copy-paste from somewhere, which would make the exercise sorta pointless
<SomeGuy123123132> ari-_-e, which is why I'm here :) I want to learn
<hakunin> godd2: yeah typing : )
<hakunin> Say you have 2 pieces of code that generate file from database. They both use .each, that goes over records in the database. They go over the same record. Instead of running one then another, I'd like to run both in parallel but have iteration over database happen only once…
<ari-_-e> I think the best you can do is to read a description of the algorithm and try to write the code yourself
Sthebig has joined #ruby
d00n has joined #ruby
<SomeGuy123123132> that link came along with the question
<ari-_-e> hah ok
<hakunin> The punchline is - it should be in streaming fashion, no buffering all records from db.
<hakunin> so i'm thinking fibers/iterators direction, but having hard time figuring it out…
<godd2> hakunin, are you doing more than just reading the values from the record?
jdj_dk_ has quit [Remote host closed the connection]
d00n has left #ruby [#ruby]
<hakunin> godd2: they iterate over thousands of records and generate 2 different files based on them
<hakunin> godd2: completely unrelated 2 routines just happen to need to read the same stuff from db
<SomeGuy123123132> ari-_-e, how long would you be prepared to spend on interview/pre-interview questions/exercises?
<ari-_-e> I dunno, depends on how busy I am hah
<hakunin> so i want to somehow share db iterator among them
<hakunin> i can change how they iterate (like, inject my own iterator object)
<hakunin> specifically they both generate an xml file using builder in a "stream directly to upload" fasion
<hakunin> (builder gem)
Zenigor has joined #ruby
<SomeGuy123123132> thanks for the help ari-_-e
SomeGuy123123132 has quit [Quit: Leaving]
<hakunin> gotta give it more thought…
Pharaoh2 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hakunin> my ruby sense tells me this is possible
<benzrf> ari-_-e: your nick looks pissed off
<ari-_-e> benzrf: it's tired
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
InfraRuby has joined #ruby
lid_ has joined #ruby
jtdowney has quit []
Zenigor has quit [Remote host closed the connection]
oo_ has joined #ruby
lidaaa has quit [Ping timeout: 255 seconds]
InfraRuby has left #ruby [#ruby]
Zenigor has joined #ruby
SomeGuy123123132 has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
Zenigor_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<SomeGuy123123132> ok, I'm back. Could somebody explain how you might approach this problem?
<SomeGuy123123132> "If two or more processes started to update the same logical payment (line_item_id, service_id)
<SomeGuy123123132> simultaneously then
<SomeGuy123123132> update the object and let the next one(s) do its(their) job.
<SomeGuy123123132> If the payment did not exist, one of the processes will create it and other processes should
<SomeGuy123123132> there should not be 2 or more payments afterwards, instead each process should wait its turn,
<SomeGuy123123132> wait their turn and use that exact payment object for update."
Guest2685 has quit [Read error: Connection reset by peer]
<SomeGuy123123132> won't paste like that again
<SomeGuy123123132> suggestions? database lock? I haven't thought about it too deeply, but I'd appreciate some pointers so I can go educate myself
EvanR has joined #ruby
jackneill has joined #ruby
EvanR is now known as Guest89567
godd2 has quit [Remote host closed the connection]
<merqlove> Write library
<merqlove> which can implement it
<SomeGuy123123132> it's the implementation that I'm stuck on
Zenigor has quit [Ping timeout: 253 seconds]
<SomeGuy123123132> if two requests come in, there in different ruby processes, how do I manage in that case?
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<merqlove> as I've seen at wiki long pythonyto example
<merqlove> think you can do it shorter
Wolland has joined #ruby
kevkev____ has joined #ruby
amacou has joined #ruby
lw has joined #ruby
<mattalexx> #linux
<merqlove> via sidekick
<merqlove> fuck ipad) sidekiq
<SomeGuy123123132> or redis?
<SomeGuy123123132> sidekiq seems bit ott
<merqlove> maybe
<SomeGuy123123132> and I'm still not sure how it would logically work
<merqlove> something like
<merqlove> for what you want todo it?
<SomeGuy123123132> first process updates payment, second process simultaneously tries to update same payment -- how to make it wait for first update to happen?
<SomeGuy123123132> you mean queue?
<merqlove> Yeah
silentpost has quit [Quit: silentpost]
philcris_ has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
<SomeGuy123123132> ok, I'll look into it. cheers
<merqlove> You can't save one and than work with when secon arrived?
<merqlove> second
<merqlove> save to redis
<merqlove> to prevent shitty records
<merqlove> or into me cache
<merqlove> memcache
kevkev____ has quit [Ping timeout: 256 seconds]
kalz has quit [Quit: exit]
Sou|cutter has quit [Ping timeout: 260 seconds]
<SomeGuy123123132> interesting lid_ cheers
InfraRuby has joined #ruby
philcris_ has quit [Ping timeout: 255 seconds]
gogohome has joined #ruby
<gogohome> 4
<lid_> SomeGuy123123132, using the proper tools will save you the trouble of implementing your own locking mechanisim.
<SomeGuy123123132> so if I do two "SELECT FOR UPDATE" queries, they will not conflict? does this negate the use of queues?
<gogohome> how can i learn to hack, then where i must go?
<SomeGuy123123132> gogohome, #security
<SomeGuy123123132> spoiler: you're not smart enough to hack
initself has quit [Ping timeout: 240 seconds]
mr_snowf1ake has quit [Quit: Leaving]
<lid_> SomeGuy123123132, I actually never used this feature of postgres but look like select for share might work as well for your case
<SomeGuy123123132> I'll try it out, cheers
<ari-_-e> gogohome: what does "hack" mean to you?
<SomeGuy123123132> they did specifically mention I can use whatever postgres solutions I find
<lid_> SomeGuy123123132, yep better to get your hands dirty
<SomeGuy123123132> I figure they wanted me to discover this
<lid_> you welcome ;)
<gogohome> ari-_-e: hack is think like your thinkg
<ari-_-e> gogohome: ...what?
<gogohome> hack is that everyone think so.
initself has joined #ruby
mikesplain has joined #ruby
<gogohome> you know the channel
<gogohome> ?
<ari-_-e> gogohome: why don't you just focus on learning english first
phinfonet has quit []
<gogohome> oh
<merqlove> )))
<gogohome> learning english is not end. so i learn it through learning coding.
<ari-_-e> learn english first
<gogohome> oh yes.
<gogohome> but i can speak english :(
<merqlove> Hack ruby)
<ari-_-e> you can't learn english through learning coding, that makes no sense
<merqlove> for ruby 4.0
kalz has joined #ruby
theharshest has joined #ruby
<gogohome> there is #hack?
mateu has quit [Ping timeout: 260 seconds]
mateu has joined #ruby
Zenigor_ has quit [Remote host closed the connection]
<ari-_-e> gogohome: if you could speak english, then you would be making more sense
Zenigor has joined #ruby
<gogohome> i can understand your saying.
<gogohome> :(
mikesplain has quit [Ping timeout: 245 seconds]
vsoftoiletpaper has quit []
neersighted has quit [Remote host closed the connection]
initself has quit [Remote host closed the connection]
initself has joined #ruby
anekos_ has quit [Read error: Connection timed out]
nasj has joined #ruby
<merqlove> SomeGuy123123132: locking Postgres can do the trick)
<SomeGuy123123132> going to try it now
<SomeGuy123123132> in rails, though, so looking into pessimistic locking
<SomeGuy123123132> seems I have instance.with_lock { }
anekos_ has joined #ruby
lw has quit [Quit: s]
<merqlove> yeah
<merqlove> or try clean Arel request
<Noob101> Hi I have a quetion
<Noob101> question*
SomeGuy123123132 has quit [Quit: Leaving]
<Noob101> If I am in a loop right, what should I type so if the loop condition isn't met so it can break then it should keep looping?
<Noob101> I am using loop do....end
nasj has quit [Ping timeout: 240 seconds]
<ari-_-e> Noob101: loop do ... end doesn't have a loop condition
<merqlove> Next
lxsameer has quit [Ping timeout: 255 seconds]
<merqlove> next unless shit
<merqlove> ))
<Wolland> you can use "while"
<lid_> or break
<lid_> just to overwhelm
<Noob101> I think it's next
<Noob101> Let me check
<Noob101> OK thanks.
Channel6 has quit [Quit: Leaving]
<merqlove> yup)
<lid_> next will skip to the next iteration.
<Wolland> next will skip that particular loop
<Wolland> will not exit
<lid_> break will exit the iteration
<merqlove> yeah
<merqlove> break will exit
<Noob101> wait
<Noob101> I don't want to break iteration if condition isn't met
<Wolland> while x == 1 do
<Noob101> if I am in a loop do..end and the break isn't met then I want that loop to keep looping until the break is met
<merqlove> so next
<Noob101> hm not bad
<Noob101> Wolland: thanks
lxsameer has joined #ruby
<Noob101> By the way, what version of ruby do you guys use?
<merqlove> 2.1.2
<Wolland> 2.x
<merqlove> 1.9.3
<Noob101> Oooh. :(
<merqlove> )))
<Noob101> 1.9.3 I use :((
<ari-_-e> Noob101: loops keep looping by themselves, you don't need to tell them to loop
<Noob101> ari-_-e: Oh ok, thank you
<Noob101> By the way, should I get the latest version?
<Noob101> Sometimes I get these errors, it's so annoying
<merqlove> yeah
<Noob101> I think it's cause of the version I use
<merqlove> 2.x faster
<ari-_-e> the errors are probably your fault
<Noob101> ari-_-e: :O
<Noob101> Maybe.
<merqlove> UTF8 problem was gone in 2.x
axl_ has joined #ruby
axl_ has quit [Client Quit]
cantonic has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
zkay11 has left #ruby [#ruby]
kireevco has quit [Quit: Leaving.]
Zenigor_ has joined #ruby
lid_ has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
InfraRuby has left #ruby [#ruby]
Sou|cutter has joined #ruby
kireevco has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Zenigor has quit [Ping timeout: 256 seconds]
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
lukeholder has joined #ruby
InfraRuby has joined #ruby
sixxy has quit [Remote host closed the connection]
elico has quit [Ping timeout: 250 seconds]
Pharaoh2 has joined #ruby
oo_ has joined #ruby
Zenigor_ has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
Zenigor has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
iamcalledrob has joined #ruby
tkuchiki has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
teddyp1cker has joined #ruby
kireevco has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
vsoftoiletpaper has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
bobdobbs` has joined #ruby
threesixes has quit [Quit: SATAN!!!!!!!!]
lkba has quit [Ping timeout: 255 seconds]
<bobdobbs`> hi all. I'm on ubuntu, and trying to run a relatively up-to-date version of ruby via rbenv
teddyp1cker has quit [Ping timeout: 250 seconds]
<bobdobbs`> I've installed rbenv and used it to install a couple of versions of ruby
<bobdobbs`> I've run 'rbenv global 2.1.1', and then 'rbenv rehash', and then closed my terminal emulator and loaded another one...
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bobdobbs`> but I'm still loading system ruby, which is 1.8.7
<bobdobbs`> so, once I've installed a version of ruby via rbenv, how do I actually execute the version of ruby that I've isntalled?
GriffinHeart has joined #ruby
neersighted has joined #ruby
Wolland_ has joined #ruby
ericmathison has quit [Quit: leaving]
kireevco has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dseitz> Is the path and shims in your shell script?
Wolland has quit [Ping timeout: 255 seconds]
Ankhers has quit [Remote host closed the connection]
<bobdobbs`> which shell script?
Ankhers has joined #ruby
<dseitz> The ones that execute when you login; like .zshrc or .bash_profile
<bobdobbs`> I'm looking in my zprofile and zshrc now
ziprar has quit [Quit: Leaving]
<bobdobbs`> I've got that open in front of me as well. I installed rbenv from the git repo
InfraRuby has left #ruby [#ruby]
teddyp1cker has joined #ruby
<bobdobbs`> it says "rbenv works by inserting a directory of shims at the front of your PATH", but it doesn't say how the shims get there. or how to put them there.
<bobdobbs`> that's kinda frustrating... I don't know if that's something I'm supposed to do when installing rbenv, or not.
<bobdobbs`> maybe not, because there don't seem to be any instructions on how to do it.
<bobdobbs`> but then again, maybe I'm supposed to do it, but the instructions have been ommitted
ericmathison has joined #ruby
<dseitz> Yeah if you missed a detail on steps 2 and 3, it won't setup things right when you login
kevkev____ has joined #ruby
mary5030 has joined #ruby
axl_ has joined #ruby
axl_ has quit [Client Quit]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
bluOxigen has joined #ruby
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
seamon has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
starkhalo has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
mary5030 has quit [Ping timeout: 250 seconds]
kevkev____ has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
<ericmathison> I'm having some trouble understanding the result of: (~0b10).to_s(2)
mikecmpbll has quit [Quit: i've nodded off.]
<ericmathison> I would expect the result to be the string '1'
<ericmathison> what am i missing? the tilde flips each bit of a ixnum right?
<ericmathison> *Fixnum
<bobdobbs`> dseitz: I've altered my .zshrc. rbenv is definately in my path.
<ari-_-e> ericmathison: yes, but the fixnum is not two bits long
<dseitz> and is the rbenv init line in there too?
<bobdobbs`> if I enter 'rebenv versions', I see which versions are available, and which one is selected
<bobdobbs`> test, the rbnev init line is in there
MindfulMonk has quit [Ping timeout: 250 seconds]
<bobdobbs`> but I have the same issue even if I enter 'rbenv init' manually
ziyadb has joined #ruby
<ericmathison> ari-_-e: it isn't? how so?
<ari-_-e> ericmathison: how many bits would you say 0b00000010 is?
<ericmathison> I'm not sure :) Do the zeros count?
<ari-_-e> no
SomeGuy123123132 has joined #ruby
<ericmathison> ari-_-e: two bits then?
MindfulMonk has joined #ruby
<dseitz> bobdobbs`: type env | grep PATH and tell me if you see the /shims directory listed
<ari-_-e> ericmathison: actually, you tell me if they count
<ari-_-e> ericmathison: are those different numbers?
<ericmathison> no, i don't think so
mikesplain has joined #ruby
mattalexx has quit [Ping timeout: 246 seconds]
<dseitz> Only extra thing I can think (I've had this issue before) was that I had to completely log out and log back in
<ari-_-e> ericmathison: it might help you to read the documentation for Fixnum
rippa has joined #ruby
<ari-_-e> it tells you what fixnums actually are
<ari-_-e> ericmathison: in general, computers don't really deal in bits very much
<bobdobbs`> dseitz: yes, I can the dir with the shims: /home/mantis/.rbenv/shims
<dseitz> Ok. If you're in a GUI shell; try logging back in and seeing it starts to function as expecte
<SomeGuy123123132> question: I have two threads attempting to create an object. first thread creates object, how to make second thread wait until first thread is done with object, and pass that exact object to second thread??
advorak has quit [Ping timeout: 245 seconds]
mikesplain has quit [Ping timeout: 245 seconds]
<ericmathison> ari-_-e: ok. it says they are integers that can be represented by a native machine word minus one. maybe i'm missing something more fundamental though since in my current frame of thinking (~0b00000010).to_s(2) and (~0b10).to_s(2) would return '1'.
<ari-_-e> ericmathison: ~ flips all of the bits
hellangel7 has joined #ruby
nasj has joined #ruby
<ericmathison> oh. even the leading zeros?
<ari-_-e> yes
<ari-_-e> fixnum actually uses native integers
<SomeGuy123123132> drizz, cheers. what if they are in different processes? I should note,the objects are backed by a database
<SomeGuy123123132> I have tried row-level locking, but not sure it is solution here
<ericmathison> ari-_-e: In that case, wouldn't something like (~0b00000010).to_s(2) return '11111101'?
<Noob101> question before I go to bed
<ari-_-e> ericmathison: only if the word size is one byte
<Noob101> what does string literal in condition mean?
<ari-_-e> ericmathison: check out Fixnum#size
<Noob101> that's my error
<Hanmac> ericmathison: why not try it?
<Hanmac> >> (~0b10).to_s(2)
<eval-in> Hanmac => "-11" (https://eval.in/174958)
<Hanmac> >> (~0b00000010).to_s(2)
<eval-in> Hanmac => "-11" (https://eval.in/174959)
chihhsin has joined #ruby
<drizz> SomeGuy123123132: I think that's a pretty good way to do it, not sure how else you would prevent 2 processes modifying the same row
<ari-_-e> ah, and it flips the sign bit as well
<ericmathison> that's what's got me confused i think
nasj has quit [Ping timeout: 240 seconds]
<ericmathison> what's a sign bit?
Akagi201_ has quit [Ping timeout: 244 seconds]
<ari-_-e> a bit which denotes the sign of the number
<Hanmac> ericmathison: also look at:
<Hanmac> >> "%b" % (~0b10)
<eval-in> Hanmac => "..101" (https://eval.in/174960)
<ari-_-e> I guess this http://en.wikipedia.org/wiki/Sign_bit is better
elico has joined #ruby
sputnik13 has joined #ruby
<ari-_-e> "Negative numbers will be displayed as a two's complement prefixed with `..1'."
<ari-_-e> hmm
Ilyas has joined #ruby
kldskp has joined #ruby
<SomeGuy123123132> if anybody can read 5 paragraphs and tell me where to even start I will be forever in your debt! http://pastie.org/9441203
vsoftoiletpaper has quit []
vsoftoiletpaper has joined #ruby
Akagi201 has joined #ruby
mateu has quit [Ping timeout: 240 seconds]
<ericmathison> I think this all is making more sense to me now. thanks ari-_-e and Hanmac
<SomeGuy123123132> I don't need a solution, I just need an idea of where to look. I've checked mutexes, row-level locking, queues. what is a decent way to deal with this?
mateu has joined #ruby
Zespre has joined #ruby
<ericmathison> the "%b" % (~0b10) ouput combined with ari-_-e's explanitory comment clears alot up for me. Thanks!
<ari-_-e> ericmathison: that was a quote from the Kernel.sprintf documentation, btw
<ericmathison> ari-_-e: thanks i'll take a look
jjasonclark has joined #ruby
Sou|cutter has quit [Ping timeout: 264 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
SCHAAP137 has joined #ruby
kireevco has quit [Ping timeout: 255 seconds]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
<SomeGuy123123132> anyone? http://pastie.org/9441203 -- I feel completely lost. maybe suggestions on where I can find this being solved already? spree maybe? I don't even know what terms to search to understand the problem/solution
tvw has joined #ruby
<ari-_-e> SomeGuy123123132: might help to ask in the rails channel?
<Radar> Sounds like homework
<SomeGuy123123132> yeh, possibly
<ari-_-e> yes, that too
<SomeGuy123123132> Radar, most definitely not homework, but yes, you could see it as homework if you like
<Radar> bbl
<SomeGuy123123132> Radar, however, I'm not AT ALL asking for a solution. I'm asking for a shove in the right direction
<SomeGuy123123132> Radar, is spree already dealing with something like this?
<SomeGuy123123132> I will go through your code for 8 hours if I have to
<SomeGuy123123132> I'm not looking for free handouts. I just want to learn
jackneill has quit [Ping timeout: 260 seconds]
teddyp1cker has quit [Ping timeout: 255 seconds]
<ari-_-e> it sorta seems like all you'd need is some sort of transaction
nairys has quit [Quit: nairys]
chipotle has joined #ruby
<ari-_-e> but I'm not positive and I don't know how rails exposes that stuff
Zespre has quit [Quit: leaving]
teddyp1cker has joined #ruby
Cache_Money has joined #ruby
vsoftoiletpaper has quit []
<SomeGuy123123132> that's why I was hoping Radar could chip in. I'm already poring through spree code, but can't really see where this might have been handled
Zespre has joined #ruby
Zespre has quit [Client Quit]
Zespre has joined #ruby
philcris_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
GriffinHeart has joined #ruby
seamon has quit [Quit: Zzzzzzz]
philcris_ has quit [Ping timeout: 255 seconds]
ferr has joined #ruby
Sou|cutter has joined #ruby
pierre1_ has quit [Quit: Leaving]
theharshest has quit [Quit: This computer has gone to sleep]
Ilyas has quit [Read error: Connection reset by peer]
Ilyas has joined #ruby
cantonic has joined #ruby
kevkev____ has joined #ruby
fgo has joined #ruby
Noob101 has quit [Ping timeout: 246 seconds]
kevkev____ has quit [Ping timeout: 240 seconds]
cantonic has quit [Ping timeout: 256 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
beef-wellington has joined #ruby
codygman has joined #ruby
Zenigor has quit [Remote host closed the connection]
Zenigor has joined #ruby
<codygman> Has anyone here used psd.rb? Can you do things like load a psd and insert another psd as a layer?
mattmcclure has quit [Quit: Connection closed for inactivity]
<SomeGuy123123132> Radar, ari-_-e thrown it up here with my attempt at a solution. I would really appreciate any pointers -- http://www.reddit.com/r/rails/comments/2chipv/stumped_on_seemingly_simple_rails_assignment/
<SomeGuy123123132> anybody here do paid consulting that isn't $50000/hour?
mikesplain has joined #ruby
banjara has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Zenigor has quit [Ping timeout: 245 seconds]
mr-foobar has quit [Quit: Leaving...]
relix has joined #ruby
seamon has joined #ruby
Starless has joined #ruby
mikesplain has quit [Ping timeout: 260 seconds]
Guest80654 has quit [Ping timeout: 255 seconds]
nasj has joined #ruby
nszceta has joined #ruby
jjasonclark has quit [Quit: jjasonclark]
felgenh3 has left #ruby [#ruby]
nasj has quit [Ping timeout: 240 seconds]
beef-wellington has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
tjr9898 has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nszceta has quit [Ping timeout: 244 seconds]
nszceta has joined #ruby
codecop has joined #ruby
InfraRuby has joined #ruby
rbenv has joined #ruby
kldskp has quit [Quit: Computer has gone to sleep.]
kldskp has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
tvw has quit []
tvw has joined #ruby
yacks has quit [Read error: Connection reset by peer]
kldskp has quit [Ping timeout: 256 seconds]
naw_ has joined #ruby
naw_ has quit [Read error: Connection reset by peer]
naw has quit [Ping timeout: 250 seconds]
naw has joined #ruby
kldskp has joined #ruby
naw has quit [Read error: Connection reset by peer]
naw has joined #ruby
naw has quit [Read error: Connection reset by peer]
naw has joined #ruby
davispuh has joined #ruby
jean-louis has joined #ruby
naw has quit [Read error: Connection reset by peer]
jean-louis has left #ruby [#ruby]
naw has joined #ruby
naw has quit [Read error: Connection reset by peer]
klaut has joined #ruby
naw has joined #ruby
naw has quit [Read error: Connection reset by peer]
radic has quit [Ping timeout: 260 seconds]
naw has joined #ruby
radic has joined #ruby
naw has quit [Read error: Connection reset by peer]
naw has joined #ruby
marr has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naw has quit [Read error: Connection reset by peer]
naw has joined #ruby
naw has quit [Read error: Connection reset by peer]
Nahra has quit [Remote host closed the connection]
naw has joined #ruby
yacks has joined #ruby
kotk_ has joined #ruby
kotk has quit [Ping timeout: 255 seconds]
Nahra has joined #ruby
nobodyzzz has joined #ruby
Jetchisel has joined #ruby
seamon has quit [Quit: Zzzzzzz]
qwyeth has joined #ruby
qwyeth has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 250 seconds]
heftig has joined #ruby
stoned has joined #ruby
nanoyak has joined #ruby
blackmesa has joined #ruby
kotk_ has quit [Quit: Leaving...]
surfs^ has joined #ruby
charliesome has joined #ruby
tjr9898 has joined #ruby
decoponio has joined #ruby
tectonic has joined #ruby
kevkev____ has joined #ruby
root3d has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
kevkev____ has quit [Ping timeout: 244 seconds]
supermarkettoday has joined #ruby
SomeGuy123123132 has left #ruby ["Leaving"]
SomeGuy123123132 has joined #ruby
supermarkettoday has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
mohamadl1199 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
lkba has joined #ruby
mikesplain has joined #ruby
tvw has quit []
drakciR_ has joined #ruby
mohamadl1199 has quit [Remote host closed the connection]
j416_ is now known as j416
supermarkettoday has joined #ruby
relix has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
supermarkettoday has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
nasj has joined #ruby
teddyp1cker has joined #ruby
Sou|cutter has quit [Ping timeout: 250 seconds]
kykypy3 has joined #ruby
ferr has quit [Ping timeout: 256 seconds]
koderok has joined #ruby
nasj has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Ping timeout: 255 seconds]
Ilyas_ has joined #ruby
ferr has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
root3d has quit [Ping timeout: 240 seconds]
nszceta has quit []
robbyoconnor has quit [Client Quit]
robbyoconnor has joined #ruby
charliesome has joined #ruby
w09x has joined #ruby
banjara has quit [Quit: Leaving.]
deweichen has joined #ruby
<gogohome> how can i send email by ruby?
Shidash has quit [Ping timeout: 250 seconds]
tectonic has quit []
ARCADIVS has joined #ruby
timonv_ has joined #ruby
drakciR_ has quit [Read error: Connection reset by peer]
<SomeGuy123123132> simple. Google: "how can i send email by ruby?"
philcrissman has joined #ruby
<gogohome> SomeGuy123123132: :(
<SomeGuy123123132> that would lead you to two places
<gogohome> thanks
<gogohome> SomeGuy123123132: :)
<SomeGuy123123132> where I'd suggest you read guides for mail gem
alexju has joined #ruby
<gogohome> ok i see
<gogohome> thanks
<SomeGuy123123132> np
MindfulMonk has quit [Ping timeout: 250 seconds]
philcrissman has quit [Ping timeout: 264 seconds]
drakciR has joined #ruby
root3d has joined #ruby
alexju has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
Sou|cutter has joined #ruby
yokel has quit [Remote host closed the connection]
deweichen has quit [Remote host closed the connection]
MindfulMonk has joined #ruby
yokel has joined #ruby
Starless has quit [Quit: Leaving]
Deele has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bobdobbs` has quit [Read error: Connection reset by peer]
bobdobbs` has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.4.3]
nateberkopec has joined #ruby
goshdarnyou has joined #ruby
rdark has joined #ruby
diegoviola has quit [Remote host closed the connection]
kevkev____ has joined #ruby
brianherman has joined #ruby
teddyp1cker has joined #ruby
diegoviola has joined #ruby
hellangel7 has quit [Remote host closed the connection]
surfs^ has quit [Quit: Konversation terminated!]
kevkev____ has quit [Ping timeout: 255 seconds]
koderok has quit [Quit: koderok]
autochthon has joined #ruby
koderok has joined #ruby
Derander has quit [Excess Flood]
GriffinHeart has quit [Remote host closed the connection]
koderok has quit [Remote host closed the connection]
Derander has joined #ruby
koderok has joined #ruby
mikesplain has joined #ruby
heftig has quit [Ping timeout: 250 seconds]
kykypy3 has quit []
ndrei has joined #ruby
mikesplain has quit [Ping timeout: 260 seconds]
beef-wellington has joined #ruby
nasj has joined #ruby
jackneill has joined #ruby
w09x has quit [Remote host closed the connection]
jdj_dk has joined #ruby
w09x has joined #ruby
alexju has joined #ruby
GriffinHeart has joined #ruby
banister has joined #ruby
beef-wellington has quit [Ping timeout: 255 seconds]
nasj has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
w09x has quit [Ping timeout: 250 seconds]
InfraRuby has left #ruby [#ruby]
patrick99e99 has joined #ruby
pepijndevos has left #ruby ["Leaving"]
root3d has quit [Ping timeout: 250 seconds]
jdj_dk has quit [Remote host closed the connection]
szuletett has joined #ruby
root3d has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 256 seconds]
Hobogrammer_ has quit [Ping timeout: 250 seconds]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heftig has joined #ruby
mr-foobar has joined #ruby
teddyp1cker has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
banister has joined #ruby
root3d has quit [Ping timeout: 244 seconds]
hellangel7 has joined #ruby
davispuh has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
ziyadb has quit [Quit: Connection closed for inactivity]
davispuh has joined #ruby
jhass|off is now known as jhass
BadQuanta has joined #ruby
spider-mario has joined #ruby
timonv_ has quit [Remote host closed the connection]
ctp has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
bridge_ has joined #ruby
nasj has joined #ruby
blackmesa has quit [Remote host closed the connection]
kldskp has quit [Quit: Computer has gone to sleep.]
kldskp has joined #ruby
blackmesa has joined #ruby
jdj_dk has joined #ruby
koderok has quit [Quit: koderok]
koderok has joined #ruby
kldskp has quit [Ping timeout: 260 seconds]
nopolitica has joined #ruby
kevkev____ has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
bridge_ has quit [Ping timeout: 244 seconds]
BadQuanta has quit [Ping timeout: 240 seconds]
razum2um has joined #ruby
beef-wellington has joined #ruby
kevkev____ has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
closer has quit [Ping timeout: 252 seconds]
jdj_dk has quit [Ping timeout: 255 seconds]
closer has joined #ruby
gogohome has left #ruby [#ruby]
koderok has quit [Quit: koderok]
koderok has joined #ruby
asdasdasdasss has joined #ruby
beef-wellington has quit [Ping timeout: 256 seconds]
redlegion has quit [Ping timeout: 250 seconds]
ringaring has joined #ruby
elaptics`away is now known as elaptics
mikesplain has joined #ruby
mijicd has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
drakciR has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
chipotle has quit [Quit: cya]
hellangel7 has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 240 seconds]
koderok has quit [Quit: koderok]
koderok has joined #ruby
nateberkopec has joined #ruby
Ilyas has joined #ruby
root3d has joined #ruby
drakciR_ has joined #ruby
kyb3r_ has quit [Quit: Leaving]
Ilyas_ has quit [Ping timeout: 255 seconds]
brianherman has quit [Quit: Leaving]
philcrissman has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Blue_Ice has joined #ruby
Blue_Ice has joined #ruby
drakciR_ has quit [Ping timeout: 255 seconds]
szuletett has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 250 seconds]
koderok has quit [Quit: koderok]
Ilyas has quit [Ping timeout: 255 seconds]
koderok has joined #ruby
xenomorph is now known as {xenomorph}
GriffinHeart has quit [Remote host closed the connection]
abuzze has joined #ruby
vifino has joined #ruby
jdj_dk has joined #ruby
DaniG2k has joined #ruby
ringaring has quit [Ping timeout: 245 seconds]
supermarkettoday has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
arup_r has quit [Ping timeout: 244 seconds]
ahuman has quit [Remote host closed the connection]
ahuman has joined #ruby
lkba has joined #ruby
loofer has quit [Remote host closed the connection]
lukeholder has joined #ruby
lukeholder has quit [Client Quit]
redondo has quit [Ping timeout: 255 seconds]
ferr has quit [Ping timeout: 255 seconds]
brianherman has joined #ruby
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
Guest65447 has quit [Ping timeout: 255 seconds]
duncannz has quit [Ping timeout: 244 seconds]
asdasdasdasss has joined #ruby
jdj_dk has quit [Ping timeout: 260 seconds]
mrnugget has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.0-dev]
shadow4snake has joined #ruby
koderok has quit [Quit: koderok]
redlegion has joined #ruby
koderok has joined #ruby
teddyp1cker has joined #ruby
asdasdasdasss has quit [Ping timeout: 244 seconds]
kldskp has joined #ruby
mark06 has joined #ruby
<mark06> hi, anyone willing to help some open source project?
<jhass> that's very vague. search for answers, not the people with them.
redlegion has quit [Ping timeout: 240 seconds]
kldskp has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevkev____ has joined #ruby
AlSquirrel has joined #ruby
wildroman2 has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
kevkev____ has quit [Ping timeout: 256 seconds]
nopolitica has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
<wasamasa> hmm
<wasamasa> perhaps I shall build a bot that can detect meta questions and let it roam on freenode...
<Mon_Ouie> What's the meaning of life?
<wasamasa> "I need an expert on this topic" - "No, you don't"
mikecmpbll has joined #ruby
phoo1234567 has joined #ruby
tolo123 has quit [Quit: tolo123]
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
<shevy> lol
<wasamasa> nobody would notice
iamcalledrob has quit [Quit: Computer has gone to sleep.]
mark06 has left #ruby [#ruby]
<wasamasa> they only notice the obnoxious ones going out of control
<shevy> let's call this bot
<shevy> Hanmac
TieSoul has joined #ruby
wallerdev has quit [Quit: wallerdev]
iamcalledrob has joined #ruby
mikesplain has joined #ruby
tolo123 has joined #ruby
<wasamasa> remember the time one started insulting people posting many lines at once?
iamcalledrob has quit [Read error: Connection reset by peer]
<wasamasa> that's how you don't do it
iamcalledrob has joined #ruby
nateberkopec has joined #ruby
<Mon_Ouie> I wonder if he called people java fanboys on #java
<shevy> lol
<Mon_Ouie> (or whatever's the Java channel)
<shevy> probably #java-serious-business-only
AlexRussia has joined #ruby
supermarkettoday has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Read error: No route to host]
mikesplain has quit [Ping timeout: 240 seconds]
jdj_dk has joined #ruby
iamcalledrob has quit [Ping timeout: 240 seconds]
Ayey_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdj_dk_ has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
<TieSoul> erm, if I have a class foo with a method bar in one file, and I import it into another file, it doesn't seem to let me do fooo = foo; puts fooo.bar; in the other file.
<shevy> please, write correct code
<shevy> 'class foo' can not be correct
<jhass> TieSoul: put your real code to gist.github.com
<TieSoul> it's just a placeholder name, the real name is "BefungeIP" and the method is "coords"
<shevy> now that is better
<shevy> >> class BefungeIP; def bar; puts 'hi from bar'; end; end; fooo = BefungeIp.new; fooo.bar
<eval-in> shevy => uninitialized constant BefungeIp (NameError) ... (https://eval.in/174985)
redlegion has joined #ruby
<shevy> haha
<shevy> >> class BefungeIP; def bar; puts 'hi from bar'; end; end; fooo = BefungeIP.new; fooo.bar
<eval-in> shevy => hi from bar ... (https://eval.in/174986)
<shevy> well, .bar should be .coords in the example above
Rollabunna has joined #ruby
relix has joined #ruby
tvw has joined #ruby
andrewlio has joined #ruby
relix has quit [Client Quit]
<TieSoul> well, I'm a noob to Ruby, so I didn't know you had to call .new. I'm coming from Python where you just call the class name
<TieSoul> thanks.
<jhass> you don't really for instance methods either
iamcalledrob has joined #ruby
redlegion has quit [Ping timeout: 244 seconds]
iamcalledrob has quit [Client Quit]
tvw has quit [Ping timeout: 240 seconds]
iamcalledrob has joined #ruby
Spami has joined #ruby
rbenv has quit [Quit: Textual IRC Client: www.textualapp.com]
GriffinHeart has joined #ruby
mosez has quit [Quit: Switching back to real life]
jdj_dk_ has quit [Ping timeout: 240 seconds]
mosez has joined #ruby
iamcalledrob has quit [Ping timeout: 256 seconds]
GriffinHeart has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
centipedefarmer has joined #ruby
SomeGuy123123132 has quit [Ping timeout: 244 seconds]
redlegion has joined #ruby
Dr3amc0d3r|away has quit [Changing host]
Dr3amc0d3r|away has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
yourmother_ has joined #ruby
yourmother_ has quit [Read error: Connection reset by peer]
centipedefarmer has quit [Ping timeout: 256 seconds]
kirun has joined #ruby
Dr3amc0d3r is now known as Dr3amc0d3r|away
shadow4snake has quit [Quit: shadow4snake]
Zebroid has joined #ruby
carraroj has joined #ruby
redlegion has quit [Ping timeout: 260 seconds]
SilkFox has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 260 seconds]
blackmesa has quit [Remote host closed the connection]
jottr has joined #ruby
kldskp has joined #ruby
w09x has joined #ruby
soulcake has quit [Quit: Quack.]
nateberkopec has joined #ruby
soulcake has joined #ruby
redlegion has joined #ruby
kldskp has quit [Ping timeout: 240 seconds]
sandelius has joined #ruby
<sandelius> If I have gems difenied in a gems Gemfile, will they be used in "production" or is only gems listed in the gemspec used?
jdj_dk has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
sandelius has left #ruby [#ruby]
sandelius has joined #ruby
<sandelius> If I have gems difenied in a gems Gemfile, will they be used in "production" or is only gems listed in the gemspec used?
jdj_dk has quit [Read error: Connection reset by peer]
<Hanmac> sandelius: "bundler"? if yes, try #bundler
jdj_dk has joined #ruby
lxsameer has quit [Quit: Leaving]
kevkev____ has joined #ruby
musicmatze has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<musicmatze> Hi #ruby! Can I somehow generate a Ruby Proc (block) with N arguments, where N is the number of arguments of a Proc/block I want to encapsulate?
beef-wellington has joined #ruby
redlegion has quit [Ping timeout: 255 seconds]
Dr3amc0d3r|away is now known as Dr3amc0d3r
kevkev____ has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
w09x has quit []
brianherman has quit [Read error: Connection reset by peer]
centrx has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
philcrissman has joined #ruby
mikesplain has joined #ruby
<shevy> cool
<shevy> ::Kernel.puts
<shevy> that reads strangely
supermarkettoday has joined #ruby
heftig has quit [Ping timeout: 250 seconds]
redlegion has joined #ruby
philcrissman has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Ping timeout: 245 seconds]
Photism has quit [Quit: Leaving]
mikesplain has quit [Ping timeout: 244 seconds]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
kldskp has joined #ruby
InfraRuby has joined #ruby
wildroman2 has quit [Ping timeout: 255 seconds]
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 250 seconds]
spacebug has quit [Ping timeout: 260 seconds]
wildroman2 has joined #ruby
sinkensabe has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
blackmesa has joined #ruby
blackmesa has quit [Remote host closed the connection]
Rollabunna has quit [Read error: No route to host]
Rollabunna has joined #ruby
mostlybadfly has joined #ruby
klaut has quit [Ping timeout: 255 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
DrCode has joined #ruby
iamcalledrob has joined #ruby
agjacome has joined #ruby
bmurt has joined #ruby
iamcalledrob has quit [Ping timeout: 244 seconds]
benzrf|offline is now known as benzrf
tonyhb has joined #ruby
TorpedoSkyline has joined #ruby
pzula has joined #ruby
Wolland_ has quit [Remote host closed the connection]
tonyhb has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
nfk has quit [Ping timeout: 250 seconds]
supermarkettoday has quit [Remote host closed the connection]
VTLob has joined #ruby
tonyhb has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
jdj_dk has joined #ruby
sevenseacat has joined #ruby
craigbowen3 has quit [Ping timeout: 240 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RandyT has quit [Ping timeout: 272 seconds]
matrixdevuk has quit [Quit: Lingo - http://www.lingoirc.com]
ctp has joined #ruby
matrixdevuk has joined #ruby
matrixdevuk has quit [Remote host closed the connection]
matrixdevuk has joined #ruby
ctp has quit [Client Quit]
<jhass> musicmatze: just like methods blocks and procs can receive an arbitrary number of arguments and pass them on: proc {|*args| other_proc.call(*args) }
craigbowen3 has joined #ruby
LadyRainicorn has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
sirecote has joined #ruby
sinkensabe has quit [Remote host closed the connection]
nateberkopec has joined #ruby
DaniG2k has quit [Ping timeout: 245 seconds]
earthquake has joined #ruby
Jetchisel has joined #ruby
codecop has quit [Remote host closed the connection]
marr has quit [Read error: Connection reset by peer]
bMalum_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
tkuchiki has joined #ruby
jdj_dk has quit [Ping timeout: 256 seconds]
kevkev____ has joined #ruby
timonv_ has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
pallavi_shastry has quit [Quit: Connection closed for inactivity]
yliu has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 250 seconds]
kevkev____ has quit [Ping timeout: 240 seconds]
o0oo0o has joined #ruby
DaniG2k has joined #ruby
jonr22 has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
o0oo0o has quit [Client Quit]
fgo has quit [Remote host closed the connection]
fgo has joined #ruby
sandelius has joined #ruby
GriffinHeart has joined #ruby
yliu has joined #ruby
timonv_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Remote host closed the connection]
gogohome has joined #ruby
<gogohome> hello
mikesplain has joined #ruby
<gogohome> ruby programmer.
Emmanuel_Chanel has joined #ruby
<gogohome> wasamasa: hello
<gogohome> what are you doing?
wildroman2 has quit []
<gogohome> wasamasa: you like wasabi?
fgo has quit [Ping timeout: 260 seconds]
root3d has quit [Remote host closed the connection]
InfraRuby has left #ruby [#ruby]
siwica has joined #ruby
abuzze_ has joined #ruby
<gogohome> your brother is wasabi?
mikesplain has quit [Ping timeout: 244 seconds]
SilkFox has joined #ruby
mattstratton has joined #ruby
<gogohome> wasamasa: unban someone
abuzze has quit [Ping timeout: 240 seconds]
<shevy> gogohome ah so you are back for another ban
<gogohome> :(
abuzze_ has quit [Remote host closed the connection]
<gogohome> i come here for rescuing someone
abuzze has joined #ruby
<ari-_-e> is there someone trapped in the tubes?
<gogohome> ari-_-e: what mean?
LadyRainicorn has quit [Quit: Bye]
starkhalo has joined #ruby
<ari-_-e> does someone need rescuing from the tubes?
<TieSoul> How do I get the length of the longest element of an array?
<gogohome> len(array) haha
<gogohome> TieSoul:
<TieSoul> (The array exclusively contains arrays)
<Mon_Ouie> max_by(&:size).size is probably the most convenient way to do it
<Mon_Ouie> and… not sure what to do about that other thing
gogohome has left #ruby [#ruby]
<Mon_Ouie> Oh, that works
<jhass> :D
<TieSoul> ah, thanks.
georgelappies has joined #ruby
<Mon_Ouie> Anyone know what ban mask I could use? ~lee is way too common and he's been using multiple IPs
RandyT has joined #ruby
gogohome has joined #ruby
gogohome was banned on #ruby by Mon_Ouie [*!*@110.35.20.203]
gogohome was kicked from #ruby by Mon_Ouie [gogohome]
<wasamasa> why the hell does he think I can do something about his bans
<Mon_Ouie> Maybe he'll get tired of not being able to connect before getting a new ip
jdj_dk has joined #ruby
<shevy> he probably just randomly picked someone
<wasamasa> shevy: no, he keeps telling it to me
sevenseacat has quit [Quit: Leaving.]
<shevy> well he kept addressing me before
<shevy> I am kinda glad he found someone else ;)
georgelappies has quit [Remote host closed the connection]
<wasamasa> hey, that's not nice!
<shevy> perhaps he actually read what you wrote back then
jackneill has quit [Read error: Connection reset by peer]
<wasamasa> I doubt that
apeiros has quit [Remote host closed the connection]
<shevy> with your jester list
apeiros has joined #ruby
<Mon_Ouie> Wasn't he kicked out at that point?
<wasamasa> since I've told him I don't have op rights in here
<shevy> weird
<shevy> <gogohome> wasamasa: i want request to you.
<shevy> <gogohome> wasamasa: hi
jackneill has joined #ruby
<shevy> perhaps he fell in love
<wasamasa> ugh
<wasamasa> fanboys I can deal with, but the bromance guys are weird
<shevy> hahaha
<ari-_-e> bromance is a beautiful thing
<wasamasa> I know at least three such guys
DaniG2k has quit [Quit: leaving]
iamcalledrob has joined #ruby
<TieSoul> It infinite loops.
<wasamasa> I wouldn't modify the array you're looping over
<wasamasa> can lead to infinite loops :P
<TieSoul> hrm
<TieSoul> wait
<TieSoul> lemme adjust that
nobodyzzz has quit [Ping timeout: 240 seconds]
<wasamasa> and rather create a new one
<wasamasa> functions do that for you usually
<jhass> what's your goal? make all the same size?
<wasamasa> use some argument, work with it, return the result
<jhass> TieSoul: check Array#fill
solid000 has joined #ruby
sirecote has quit [Remote host closed the connection]
<Mon_Ouie> TieSoul: a += [0] returns a new array, and assigns it to a
<Mon_Ouie> It doesn't modifiy any existing object
<TieSoul> Array#fill seems like it would require more Ruby knowledge than I have to use for this purpose.
<Mon_Ouie> >> x = [1, 2, 3]; old_x = x; x += [4]; [x, old_x]
<eval-in> Mon_Ouie => [[1, 2, 3, 4], [1, 2, 3]] (https://eval.in/174994)
<Mon_Ouie> >> x = [1, 2, 3]; old_x = x; x << [4]; [x, old_x]
<eval-in> Mon_Ouie => [[1, 2, 3, [4]], [1, 2, 3, [4]]] (https://eval.in/174995)
<jhass> I guess one question is why you create them with mixed lengths when you need them the same length in the first place
iamcalledrob has quit [Ping timeout: 250 seconds]
<jhass> the other one might be whether you're sure you need them the same length
centipedefarmer has joined #ruby
<TieSoul> It's for an interpreter of an esoteric language (Befunge) which needs all lines to be padded to the same length.
hlcmvb has joined #ruby
<Mon_Ouie> When you're working with strings you can easily use String#ljust for that purpose
<jhass> but for the sake, I'd go with lines.each do |line| item.fill(0, line.size, width-1); end
benzrf is now known as benzrf|offline
<Mon_Ouie> and that with arrays
<TieSoul> it's not strings
<jhass> * line.fill (too much correcting in the quest of finding proper variable names)
<TieSoul> the string gets turned into a 2D array.
Akagi201 has quit [Read error: Connection reset by peer]
<jhass> I really hope your real code doesn't use arr, e and so on all the time
sirecote has joined #ruby
InfraRuby has joined #ruby
Akagi201 has joined #ruby
zz_anildigital is now known as anildigital
p0sixpscl has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centipedefarmer has quit [Ping timeout: 240 seconds]
<TieSoul> oh no it doesn't
<TieSoul> of course not.
<jhass> why the hassle of renaming them for the examples you post then
<TieSoul> idk
<jhass> ;)
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<TieSoul> no don't forfeit
<TieSoul> don't
<TieSoul> oops
<TieSoul> wrong chat
<TieSoul> srry
<TieSoul> I game while I code sometimes :P
jdj_dk has quit [Ping timeout: 240 seconds]
carraroj has quit [Quit: Konversation terminated!]
p0sixpscl has quit [Ping timeout: 250 seconds]
<shevy> hmm
InfraRuby has left #ruby [#ruby]
koderok has quit [Ping timeout: 255 seconds]
earthquake has quit [Quit: earthquake]
newUser1234 has joined #ruby
<shevy> hmmmm
<shevy> can it be that gems slow down ruby startup?
<Hanmac> depends how many gems are automaticly required at startup
nateberkopec has joined #ruby
heftig has joined #ruby
uxp has quit [Remote host closed the connection]
philcris_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
uxp has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
philcris_ has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
jackneill has quit [Remote host closed the connection]
m8 has joined #ruby
teddyp1cker has quit [Ping timeout: 245 seconds]
craigbowen3 has quit [Ping timeout: 255 seconds]
jackneill has joined #ruby
jdj_dk_ has joined #ruby
mikesplain has joined #ruby
pzula has quit [Ping timeout: 260 seconds]
acumiskey has joined #ruby
justinv has joined #ruby
iamjarvo has joined #ruby
Photism has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
acumiskey has quit [Client Quit]
jgt has joined #ruby
abuzze_ has joined #ruby
benzrf|offline is now known as benzrf
abuzze_ has quit [Remote host closed the connection]
pzula has joined #ruby
abuzze_ has joined #ruby
arya_ has joined #ruby
sixxy has joined #ruby
abuzze has quit [Ping timeout: 260 seconds]
iamcalledrob has joined #ruby
Channel6 has joined #ruby
axl_ has joined #ruby
jdj_dk_ has quit [Ping timeout: 255 seconds]
arup_r has quit [Quit: Leaving.]
axl_ has quit [Client Quit]
gruz0[russia] has joined #ruby
iamcalledrob has quit [Ping timeout: 245 seconds]
jackneill has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
Dr3amc0d3r is now known as Dr3amc0d3r|away
jonr22 has quit [Ping timeout: 244 seconds]
arya_ has quit [Ping timeout: 250 seconds]
timonv_ has quit [Remote host closed the connection]
tylerkern has joined #ruby
pangur has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
tonyhb has quit [Quit: peace]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
arup_r has joined #ruby
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
asmodlol has quit [Quit: Leaving]
<pangur> I have four classes (District, Phone, Address, Person) defined in one file, which I require for my main file. Everything works fine except my District.counter (@@district_counter) reports the wrong number. It should say 49. Instead it says 1508, which is 4 times the number of people. I can post my classes for anyone willing to have a look to see what I might be doing wrong.
claymore has joined #ruby
<pangur> When I use Person.counter, it reports 377, which is correct.
arup_r has quit [Ping timeout: 244 seconds]
<pangur> Address.counter reports 2 times the number of addresses.
Jetchisel has quit [Ping timeout: 256 seconds]
<pangur> Sorry, I meant Address.counter reports twice the number of people.
abuzze has joined #ruby
jottr has joined #ruby
banister has joined #ruby
tkuchiki has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
<pangur> The number of addresses is actually 287. Addresses.counter says 754.
phutchin1 has quit [Ping timeout: 250 seconds]
<pangur> Is it likely to be something wrong with the class definitions or with the main file?
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
silentpost has joined #ruby
supermarkettoday has joined #ruby
fgo has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarkettoday has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 260 seconds]
<shevy> ossl_ssl.c:133:27: error: 'SSLv2_method' undeclared here (not in a function)
<shevy> OSSL_SSL_METHOD_ENTRY(SSLv2),
<shevy> damn
pzula has quit [Quit: leaving]
mattstratton has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
supermarkettoday has joined #ruby
tylerkern has joined #ruby
jdj_dk has joined #ruby
astav has joined #ruby
nateberkopec has joined #ruby
tjr9898 has joined #ruby
centipedefarmer has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
Ayey_ has quit [Ping timeout: 255 seconds]
<pangur> https://gist.github.com/anonymous/6a6a8bf80e815b6d0700 gives my classes file (people.rb)
nateberkopec has quit [Ping timeout: 240 seconds]
<shevy> @@variables are awful
<pangur> The second part of the page gives my script
AlSquirrel has quit [Read error: Connection reset by peer]
vsoftoiletpaper has joined #ruby
AlSquire has joined #ruby
<pangur> What is wrong with them?
<shevy> do you need them?
jgt has quit [Remote host closed the connection]
supermarkettoday has joined #ruby
arup_r has joined #ruby
<pangur> I want to count the number of addresses. I do not need to count the number of phones.
<pangur> I want to count Districts and Persons too.
<apeiros> pangur: @@cvars almost certainly don't work the way you think they do
tjr9898_ has joined #ruby
e4xit has joined #ruby
sigurding has joined #ruby
<pangur> My impression is (although it is now fading a little) is that they count the number of instances of a class.
<shevy> indeed
<shevy> every class should have them
<shevy> :>
<pangur> What do they count if not the number of instances of a class?
p0sixpscl has joined #ruby
p0sixpscl has quit [Max SendQ exceeded]
ferr has joined #ruby
<pangur> I was astonished that Districts.counter was giving me 4*Person.counter
hfp has quit [Ping timeout: 260 seconds]
<shevy> yeah
<shevy> now you learned the first lesson
<pangur> Address.counter gives me 2*Person.counter
<shevy> @@vars lead to more bugs
<pangur> So, do they not work?
nfk has joined #ruby
<shevy> I am sure they work
<pangur> Am I implementing them wrongly?
<shevy> they are after all variables
<Mon_Ouie> They do work
<apeiros> they do work. but as said, almost certainly not the way you think they do.
<shevy> and you can store data in them
<shevy> like in your case, a counter
jdj_dk has quit [Ping timeout: 255 seconds]
<arup_r> shevy is very good people at heart.
<shevy> even though it does not work right now
<shevy> so the only logical conclusion must be
<pangur> Why does it not work as I expected?
<shevy> you instantiate Districts 4x as often as Person
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> *person
hfp has joined #ruby
theharshest has joined #ruby
<apeiros> solyent shevy is people!
<apeiros> *soylent
<shevy> damn it
<pangur> Is that because I have @district = District.new in Address and in Person?
<shevy> I actually did read soylent
<shevy> only when you corrected it to *soylent did I notice you typoed
anildigital is now known as zz_anildigital
SilverKey has joined #ruby
SilverKey has quit [Client Quit]
<Mon_Ouie> pangur: Look at that people.each loop. It creates a district, an address and a person.
hfp_ has joined #ruby
<shevy> pangur I have no idea but whenever you call .new there, you add up your counter
<Mon_Ouie> Address#initialize creates a new district every time
supermarkettoday has quit [Remote host closed the connection]
<Mon_Ouie> Person#initialize creates a new district and a new address every time
<Mon_Ouie> Hence, you create 4 districts for each person you create
<pangur> I want to be able to say p.district or address.district, for example.
p0sixpscl has joined #ruby
<pangur> I am thinking of trying Sequel, and am wondering if it would deal with these issues for me?
<Mon_Ouie> Well storing the district at multiple places is only going to cause trouble
axl_ has joined #ruby
supermarkettoday has joined #ruby
<Mon_Ouie> Just store it in the address and define Person#district as address.district if it is needed
<pangur> OK
hfp has quit [Ping timeout: 264 seconds]
mikesplain has joined #ruby
jayunit100 has joined #ruby
<arup_r> apeiros: Weak in English!
<arup_r> I am
<arup_r> :(
axl_ has left #ruby [#ruby]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
seamon has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
mikesplain has quit [Ping timeout: 250 seconds]
lw has joined #ruby
<pangur> After having removed district = District.new from class Person, I now have District.counter = 1131. I have no idea where that is coming from.
lw has quit [Max SendQ exceeded]
lw has joined #ruby
solid000 has quit []
<pangur> p.address.district works for me.
<apeiros> arup_r: like yoda, you speak ;-)
<pangur> So, what are @@variables used for if not what I thought they did?
<pangur> do?
<apeiros> don't worry. everybody starts somewhere
Spami has quit [Quit: This computer has gone to sleep]
theharshest has quit [Quit: This computer has gone to sleep]
goodenough has joined #ruby
<pangur> Would it make any difference if I did not have all my classes in the one file?
<pangur> Is it my logic that is at fault?
spacemud has quit [Changing host]
spacemud has joined #ruby
Kricir has joined #ruby
IceDragon has joined #ruby
zz_anildigital is now known as anildigital
* pangur looks mystified
<pangur> Do I need to separate my data out into four separate tables?
<pangur> Would that remove some of the duplication that I see?
<pangur> Guessing it would.
patrick99e99 has joined #ruby
<arup_r> apeiros: I am not ugly like http://en.wikipedia.org/wiki/Yoda , but my english ofcourse
<arup_r> :)
marr has joined #ruby
* pangur attempts to split his data file into four, allocating each of the four to tables of differing lengths.
iamcalledrob has joined #ruby
<pangur> Am I on the right track?
bmurt has quit []
<pangur> Should I get rid of the @@variables as they seem to be useless to me?
<pangur> Unreliable at best.
seamon has quit [Quit: Zzzzzzz]
* pangur 's head is in a spin
Rollabunna has quit [Remote host closed the connection]
mrnugget has quit [Quit: mrnugget]
teddyp1cker has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
iamcalledrob has quit [Ping timeout: 240 seconds]
<hakunin> hm, this is reaching limits of my understanding. if i have 2 iterators that yield, then advance each other (using iter1.next or iter2.next respectively), how come first time they yield - it plays the original block they were started with, but subsequent yields aren't playing their blocks…
<Mon_Ouie> They work just fine for the purpose you're using them
<Mon_Ouie> You're just creating more instances than you seem to know
<hakunin> (p.s. i'm not even sure if what i'm trying to achieve is possible)
gruz0[russia] has quit [Read error: Connection reset by peer]
gruz0[russia] has joined #ruby
jdj_dk has joined #ruby
<hakunin> but here's an example i was trying to work with: https://gist.github.com/maxim/39230488b14a67050376
Rollabunna has joined #ruby
neohunter has joined #ruby
<hakunin> added output on the bottom
centipedefarmer has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
godd2 has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
alexju has joined #ruby
sdegutis has joined #ruby
<sdegutis> Hi.
<hakunin> idea was that if you have 2 iterations somewhere, and they use the same values, and you can supply any iterator to them, can you write said iterator such that the iterator will only have to be walked once
<sdegutis> Is there some shortcut for passing blocks that represent [] calls?
kireevco has joined #ruby
<godd2> Is it better to use the os gem to know what platform ruby is on or should I use RbConfig directly?
<sdegutis> I want to use sort_by on an Array, but it's an array of hashes, and I'm wondering if I can just pass a block like I would have been able to do with &:foo if it was an accessor.
jottr has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
ptrrr has joined #ruby
Atttwww has joined #ruby
<hakunin> so i thought 1. iterator starts the other method, 2. other method's iterator yields, then advances iterator in the first method, 3. first method iterator yields, then advances iter in the second method, … (etc)
neohunter has quit [Quit: Linkinus is updating...]
neohunter has joined #ruby
georgelappies has joined #ruby
<hakunin> it might not be doing what i think it's doing though, e.g. stack might be growing, not sure how fibers work in that scenario
hellangel7 has joined #ruby
supermarkettoday has joined #ruby
alexju has quit [Remote host closed the connection]
szuletett has joined #ruby
ari-_-e has quit [Ping timeout: 255 seconds]
theharshest has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
<wasamasa> sdegutis: in what way is ruby-mode "unusable" compared to enh-ruby-mode?
axl_ has joined #ruby
<sdegutis> wasamasa: Most ways.
<wasamasa> that's not really helpful
<sdegutis> wasamasa: I had a file with an __END__ block and ruby-mode tried to parse the stuff after it as Ruby.
<wasamasa> all I know is it's running an external process to fontify the buffer
<sdegutis> wasamasa: And when it tried to operate in the line containing the minified normalize.css, emacs just froze.
<shevy> isn't that a bug?
jdj_dk has quit [Ping timeout: 240 seconds]
<sdegutis> Yes.
<wasamasa> which wouldn't help me much since the only fontification bug I've encountered was about string interpolation
<wasamasa> sdegutis: does it do indentation differently?
bMalum__ has joined #ruby
bMalum_ has quit [Ping timeout: 250 seconds]
philcrissman has joined #ruby
<sdegutis> Half the time I couldn't get it to indent a line at all -- it would just push it to the beginning of the line.
<wasamasa> I haven't found a way to indent arguments differently
InfraRuby has joined #ruby
<wasamasa> the official ruby-mode has only lining up or only hanging for offer
<wasamasa> I'd want it to support both depending on the first line
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
Ayey_ has joined #ruby
tharindu has joined #ruby
Kricir has quit [Remote host closed the connection]
<wasamasa> also, what's with the encoding autocookie?
<wasamasa> is it necessary?
<szuletett> watching gorails
philcrissman has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
sdegutis has left #ruby [#ruby]
crazydev has joined #ruby
benzrf is now known as benzrf|offline
<shevy> goatrails?
coderhs has joined #ruby
zkay11 has joined #ruby
agjacome has quit [Quit: leaving]
Ayey_ has quit [Ping timeout: 260 seconds]
peret has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Asher has quit [Quit: Leaving.]
nfk has quit [Ping timeout: 245 seconds]
lw has quit [Quit: s]
centipedefarmer has joined #ruby
<AlexRussia> Hello!
tylerkern has joined #ruby
<AlexRussia> How i could made sth like 'enum' in ruby?
<AlexRussia> make*
<Mon_Ouie> You can use symbols for the different values of your enumeration
<jhass> we generally just use symbols for that
<AlexRussia> symbold could have diffrent value than default? sth like :foo = "bar" ?
Doppp has quit [Read error: Connection reset by peer]
agrinb_ has joined #ruby
advorak has joined #ruby
<jhass> no
<AlexRussia> ok
<jhass> that's not the point of an enum anyway. Do you look for constants?
chihhsin_cloud has joined #ruby
<AlexRussia> idk what i look
<AlexRussia> i want move all my identification logic on one private method, but idk what i need to return
<AlexRussia> okay, i guess, symbold be nice
<AlexRussia> symbols*
charliesome has joined #ruby
vsoftoiletpaper has quit []
<AlexRussia> how i could define symbols in class for make they availble for all methods?
vsoftoiletpaper has joined #ruby
pangur has quit [Quit: Ex-Chat]
kenneth has joined #ruby
<jhass> you don't define symbols, you just use them
<AlexRussia> @_@
agrinb has quit [Ping timeout: 260 seconds]
<jhass> def check_for_bla; if whatever; :this; elsif whatelse; :that else :thisthat; end; if check_for_bla == :this; do_stuff; end
<wasamasa> "My little Ruby - Symbols are Magic!"
crazydev has quit [Ping timeout: 246 seconds]
Doppp has joined #ruby
sinkensabe has joined #ruby
Zebroid has quit [Remote host closed the connection]
Zebroid has joined #ruby
<pontiki> a symbol is a literal, like a string, number, etc
<Mon_Ouie> AlexRussia: You can usually replace symbols with integers: "how could i define integers in a class to make them available for all methods?"
<pontiki> it isn't a variable or constant
justinv has quit [Remote host closed the connection]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AlexRussia> Mon_Ouie: @_@
F1skr has joined #ruby
<AlexRussia> Mon_Ouie: ok, ok
kireevco has quit [Quit: Leaving.]
klaut has joined #ruby
<shevy> has one of you guys managed to compile a static ruby that has no external dependencies?
Atttwww has quit [Ping timeout: 255 seconds]
shtirlic_ has quit [Ping timeout: 256 seconds]
jdj_dk has joined #ruby
starkhalo has quit [Ping timeout: 264 seconds]
razum2um has quit [Quit: Leaving.]
inkblots has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
coderhs has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
jdj_dk has joined #ruby
mikesplain has joined #ruby
sinkensabe has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
sinkensabe has joined #ruby
agrinb_ has quit [Remote host closed the connection]
Rollabunna has quit [Quit: Leaving...]
agrinb has joined #ruby
jjasonclark has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
ftj has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
m8 has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
m8 has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
deweichen has joined #ruby
sinkensabe has quit [Ping timeout: 250 seconds]
agrinb has quit [Ping timeout: 245 seconds]
anildigital is now known as zz_anildigital
hellangel7 has quit [Ping timeout: 255 seconds]
starkhalo has joined #ruby
InfraRuby has left #ruby [#ruby]
relix has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
theharshest has quit [Quit: This computer has gone to sleep]
Kricir has joined #ruby
Panicky has joined #ruby
iamcalledrob has joined #ruby
centipedefarmer has quit [Ping timeout: 260 seconds]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
amclain has joined #ruby
zz_anildigital is now known as anildigital
shtirlic has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
jjasonclark has quit [Quit: jjasonclark]
centipedefarmer has joined #ruby
iamcalledrob has quit [Ping timeout: 255 seconds]
tharindu is now known as tharindu|away
DaniG2k has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kricir has quit [Ping timeout: 256 seconds]
centipedefarmer has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
centipedefarmer has joined #ruby
txdv has quit [Read error: Connection reset by peer]
DaniG2k has quit [Quit: leaving]
gruz0[russia] has joined #ruby
txdv has joined #ruby
<AlexRussia> jhass: yo, what a hell is going on if i define constant outside of any method in class?
<jhass> the normal stuff? defining it inside a method is rather uncommon
<shevy> AlexRussia it should reside in class Object I think?
sinkensabe has joined #ruby
nasj has quit [Remote host closed the connection]
inkblots has quit [Quit: WeeChat 0.3.8]
nasj has joined #ruby
<AlexRussia> oh shit
<AlexRussia> jhass: how to i could change name one of field my model?
<AlexRussia> jhass: RoR question
nanoyak has quit [Quit: Computer has gone to sleep.]
<jhass> #rubyonrails (but by creating a migration that changes it)
atmosx has quit [Ping timeout: 264 seconds]
<shevy> jhass why did you learn rails? for work?
<jhass> contributing to diaspora
<AlexRussia> jhass: no, i need change it in generally
Xiti has quit [Quit: Leaving]
MartinCleaver has joined #ruby
<AlexRussia> jhass: i've thought, you knew
<jhass> I've no idea what you're talking about, but again, -> #rubyonrails
centipedefarmer has quit [Ping timeout: 240 seconds]
goodenough has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
goodenough has quit [Remote host closed the connection]
nasj has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
SouL has joined #ruby
Xiti has joined #ruby
sandelius has joined #ruby
fold has quit [Ping timeout: 240 seconds]
Ayey_ has joined #ruby
amacou has quit [Remote host closed the connection]
SouL has quit [Read error: Connection reset by peer]
amacou has joined #ruby
Kricir has joined #ruby
centipedefarmer has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
jdj_dk has joined #ruby
Ayey_ has quit [Ping timeout: 250 seconds]
IceDragon has joined #ruby
amacou has quit [Ping timeout: 245 seconds]
centiped_ has joined #ruby
jayunit100 has quit [Quit: jayunit100]
nasj has joined #ruby
iamcalledrob has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
centipedefarmer has quit [Ping timeout: 255 seconds]
seamon has joined #ruby
<shevy> anyone might have an idea how this error arises or what it means? http://pastie.org/pastes/9441864/text
<shevy> it happens when I try to compile ruby 2.1.2 as well
yeticry has quit [Read error: Connection reset by peer]
<wasamasa> zenspider: hey
<wasamasa> zenspider: are you the guy behind enh-ruby-mode?
<wasamasa> zenspider: or is this a different zenspider who's just hosting ruby docs :P
axl__ has joined #ruby
Nahra has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
Nahra has joined #ruby
axl__ has quit [Client Quit]
mary5030 has joined #ruby
iamcalledrob has quit [Ping timeout: 250 seconds]
centiped_ has quit [Ping timeout: 255 seconds]
nairys has joined #ruby
DaniG2k has joined #ruby
yeticry has joined #ruby
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
caveat- has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
centipedefarmer has joined #ruby
ari-_-e has joined #ruby
benzrf|offline is now known as benzrf
tharindu|away is now known as tharindu
tharindu has quit [Quit: Leaving...]
Nahra has quit [Remote host closed the connection]
sixxy has quit [Read error: Connection reset by peer]
MartinCleaver has quit [Read error: Connection reset by peer]
phinfonet has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
<godd2> What's the difference between add_dependency and add_runtime_dependency in a gemspec? Does the former apply to runtime and development environments? Or is it something else?
<shevy> custom_methods.rb:3725: unknown type of %string
<shevy> %i( foo )
<shevy> is there a way to make this code safe for ruby 1.9.3 to at least not break down?
<jhass> godd2: they're aliases
<jhass> shevy: replace by %w(foo).map(&:to_sym)
<shevy> ok
mary5030 has joined #ruby
mikesplain has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
banjara has joined #ruby
TieSoul has quit [Read error: Connection reset by peer]
TieSoul has joined #ruby
mikesplain has quit [Ping timeout: 250 seconds]
mgorbach has quit [Quit: ZNC - http://znc.in]
lw has joined #ruby
theharshest has joined #ruby
theharshest has quit [Client Quit]
mgorbach has joined #ruby
mgorbach has quit [Remote host closed the connection]
mgorbach has joined #ruby
MatthewsFace has joined #ruby
autochthon has quit [Quit: autochthon]
ftj has joined #ruby
lw has quit [Ping timeout: 250 seconds]
axl__ has joined #ruby
agjacome has joined #ruby
agjacome has quit [Client Quit]
patrick99e99 has joined #ruby
axl__ has quit [Client Quit]
neohunter has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
chrishough has quit [Quit: chrishough]
benzrf is now known as benzrf|offline
Nahra has joined #ruby
silentpost has quit [Quit: silentpost]
starkhalo has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Ping timeout: 256 seconds]
Shidash has joined #ruby
davedev2_ has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
OrangeJewce has joined #ruby
chipotle has joined #ruby
Tamae has joined #ruby
maletor has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
tharindu has joined #ruby
fold has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
uxp has quit [Remote host closed the connection]
jdj_dk has joined #ruby
<OrangeJewce> Hi all, I'm wondering what you guys think a "Hash tree" is? I was asked to store some data in a "hash tree" and I don't see using a Merkle tree for such an exercise.
philcrissman has joined #ruby
gr33n7007h has joined #ruby
uxp has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
deweichen has quit [Remote host closed the connection]
starkhalo has joined #ruby
centipedefarmer has joined #ruby
philcrissman has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
bMalum__ has quit [Quit: Lingo - http://www.lingoirc.com]
silentpost has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
bMalum has joined #ruby
asdasdasdasss has joined #ruby
DaniG2k has joined #ruby
ixti has joined #ruby
chrishough has joined #ruby
georgelappies has quit [Remote host closed the connection]
autochthon has joined #ruby
jayunit100 has joined #ruby
<banister> OrangeJewce hash table?
<OrangeJewce> That's what I was thinking banister
<OrangeJewce> I mean it'd make way more sense to do that as opposed to something like a Merkle tree
agent_white has joined #ruby
Channel6 has quit [Ping timeout: 264 seconds]
Ayey_ has joined #ruby
<OrangeJewce> The other option I was thinking of was a tree in which the nodes were hashes themselves
<OrangeJewce> Which kinda makes sense too
<apeiros> OrangeJewce: sounds like they asked you to grow marijuana
<OrangeJewce> apeiros: Ha!
<apeiros> my bet is on recursive hash of hashes
<OrangeJewce> Yeah…I think that makes the most sense given the data set
Ilyas has joined #ruby
<banister> apeiros why not just ask them what they mean?
<banister> OrangeJewce can't you just clarify it?
<banister> apeiros sry
Kricir has joined #ruby
<apeiros> :)
jdj_dk has quit [Ping timeout: 240 seconds]
<OrangeJewce> banister: I am
<OrangeJewce> I just wanted some opionions
<OrangeJewce> Didn't want to just sit on my arse and wait for a reply xD
tectonic has joined #ruby
<shevy> you could sit on your face too!
Ayey_ has quit [Ping timeout: 245 seconds]
<OrangeJewce> shevy: That's legit
<OrangeJewce> I think it would hurt a bit after a while though
<jhass> shevy: picture of you achieving that. Now.
<shevy> usually the people here are rather inactive on the weekend
bartj3 has joined #ruby
<shevy> jhass shaolin can do it
<shevy> I've seen them two handstands on two fingers
<shevy> *do handstands
<shevy> I don't know how their fingers don't break though
iamcalledrob has joined #ruby
Starless has joined #ruby
beef-wellington has joined #ruby
<OrangeJewce> they broke them many times already to build bone strength :P
<vifino> Can someone show me how to write on top of a line, and get user input, so I can make a chat program?
<OrangeJewce> Thanks for the help guys
OrangeJewce has left #ruby [#ruby]
TorpedoSkyline has joined #ruby
<shevy> vifino, can you use loop { user_input = $stdin.gets.chomp }
<shevy> there is also Kernel#select
<shevy> I used that for my ancient bot, which I also managed to break years ago and never fixed again
<vifino> hmm
axl_ has quit [Quit: axl_]
tharindu has quit [Quit: Leaving...]
<vifino> I mean, I want something like the output of gradle 2.0, where the latest line is always the status, and everything above are the steps
iamcalledrob has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Ping timeout: 255 seconds]
<vifino> Any idea?
arup_r has quit [Quit: Leaving.]
<wasamasa> zenspider: so, if you're the guy behind enh-ruby-mode, I just bisected it to be broken for my setup on this commit: https://github.com/zenspider/enhanced-ruby-mode/commit/6f7fb409ee605ac95872bfec19ecfda6a9a581ef#diff-f62b3a19afbcb9eac993e25ce930ea2b
arup_r has joined #ruby
blackmesa has joined #ruby
<jhass> vifino: for anything complex you probably have to use ncurses. For rudimentary stuff search for ASCII control sequences, there's stuff like erasing the current line, the screen etc.
thams has joined #ruby
Kricir has quit [Ping timeout: 244 seconds]
<vifino> ok.
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wasamasa> alternatively you might write an actual gui
astav has quit [Ping timeout: 260 seconds]
<jhass> ncruses almost is an actual gui these days
wchun has quit [Quit: Leaving]
<jhass> I mean you can click on the menu items and stuff
<vifino> jhass: You know how I can delete the current line?
<jhass> there's an ASCII control sequence for that
<jhass> er, ANSI, not ASCII
tectonic has quit []
autochthon has quit [Remote host closed the connection]
timonv_ has joined #ruby
ftj has joined #ruby
<wasamasa> vifino: I hope you don't plan on making this work on windows, too :P
maxk has joined #ruby
<vifino> wasamasa: hell no! :P
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> good
ftj has quit [Client Quit]
sigurding has quit [Quit: sigurding]
astav has joined #ruby
<vifino> jhass: Do you know how I can do this without modifying every "puts" line?
<jhass> write your own puts
<vifino> ._.
mspah_ has joined #ruby
hfp has joined #ruby
<wasamasa> let's take a look at the ruby toolbox
<wasamasa> they have terminal coloring :P
<vifino> ._.
Spami has joined #ruby
<wasamasa> which is just convenience over puts
mikesplain has joined #ruby
Soda has joined #ruby
sigurding has joined #ruby
<jhass> def reprint msg; print ERASE_LINE; print msg; end
<vifino> Whats "ERASE_LINE"
<vifino> ?
<jhass> a constant
<vifino> You mean, in standard ruby?
<vifino> O.O
<jhass> no
<vifino> :<
jdj_dk has joined #ruby
<jhass> I didn't bother looking up the code for you
tectonic has joined #ruby
anildigital is now known as zz_anildigital
hfp_ has quit [Ping timeout: 255 seconds]
<wasamasa> jhass: read something like tldp for the ansi codes
<wasamasa> jhass: have fun
<wasamasa> err, vifino
zz_anildigital is now known as anildigital
<vifino> wasamasa: yes?
<wasamasa> doit
hfp has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<wasamasa> vifino: if you can't figure out the ansi codes by reading tldp, you won't get to hack something together with ncurses either :P
mikesplain has quit [Ping timeout: 240 seconds]
<vifino> ._.
hfp has joined #ruby
<wasamasa> what, did you expect us spoonfeeding you?
JoshGlzBrk has joined #ruby
pr0t has quit [Ping timeout: 244 seconds]
<shevy> hmm
lidenbrock has joined #ruby
<shevy> how are .send and __send__ related to one another?
<jhass> I think nowadays send just delegates to __send__
revvy has joined #ruby
<banister> jhass you should stop working on diaspora
<jhass> shevy: looks like two names for the same C function in MRI
tolo123 has quit [Quit: tolo123]
<shevy> hmm
<shevy> >> "abc".__send__ :size
<eval-in> shevy => 3 (https://eval.in/175013)
<revvy> ...
centipedefarmer has quit [Read error: Connection reset by peer]
deweichen has joined #ruby
bklane has joined #ruby
ftj has joined #ruby
centipedefarmer has joined #ruby
<wasamasa> shevy: are you related with that person?
MartinCleaver has joined #ruby
<shevy> revvy?
<shevy> I like his nick
<shevy> but he has not much to say, doesn't he
sigurding has quit [Quit: sigurding]
<shevy> wasamasa I think your nick would sound better if it were "wasamasy"
vt102 has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
<wasamasa> shevy: dunno what my friends thought
<wasamasa> shevy: my nick IRL is "wasa"
<shevy> like the swedish bread?
<bklane> I am confused in an #initialize when to use =|| versus = for defining the variables. Anyone have a resource or able to explain the reasoning?
<jhass> I suppose you mean ||=
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> I can't remember using ||= in initialize
<bklane> yes, sorry
<banister> bklane theres' no real point to use ||= in #initialize
jjasonclark has joined #ruby
mattmcclure has joined #ruby
<bklane> alright, interesting someone in a code review said that would be helpful. Thank you
<apeiros> bklane: unless you call initialize in other places, it's pointless
<bklane> jhass, banister, and apeiros thank you, I appreciate the help.
x1337807x has joined #ruby
Kricir has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
<godd2> I'm developing a gem and was wondering if anyone would like to take a look at it to look over the general structure. It's still in alpha, but I want to make sure I'm developing in the right direction, or at least, in ways similar to other projects: https://rubygems.org/gems/juicy
Kricir_ has joined #ruby
codecop has quit [Remote host closed the connection]
jabbott has joined #ruby
<jabbott> How do I remove mongoid from my system? I'm getting /var/lib/gems/1.9.1/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require': cannot load such file -- mongoid (LoadError) . I've tried to remove the gem and do a bundle update and upgrade and keep receiving that error...
gruz0[russia] has quit [Quit: This computer has gone to sleep]
<jhass> godd2: bin/ stuff usually has a shebang and no .rb extension
seamon has quit [Quit: Zzzzzzz]
developer has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
<jhass> godd2: also once the gem is installed, lib is added to the loadpath by rubygems, so you can do normal require's as if you're a user of your gem in bin/. During development you can execute the scripts with ruby -Ilib bin/foo
<jhass> godd2: don't use require_relative in lib, as said once installed your gems lib is in the load path
microdex has joined #ruby
<godd2> oh os instead of require_relative 'juicy/pitch' just do require 'juicy/pitch' ?
peret has quit [Remote host closed the connection]
<jhass> yeah
<godd2> awesome, thank you for the tips
Kricir_ has quit [Ping timeout: 264 seconds]
mike24 has joined #ruby
<jhass> for the specs you usually have a spec helper that adds lib to the load path and then no need for relative requires there either
<vifino> #redefiningputs ftw
DrCode_ has joined #ruby
<jhass> godd2: also I would settle on either test-unit / minitest test-unit style or rspec / minitest rspec style, not using both
seamon has joined #ruby
rdark has quit [Quit: leaving]
<godd2> I was under the impression I was using only rspec
<jhass> you do have a test/ directory with a file in it
<godd2> oh right. Yea, that's an old file that I need to remove
revvy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jhass> if you're using rspec, declare it as development dependency in your spec
DrCode has quit [Ping timeout: 264 seconds]
developer has quit [Quit: Take my advice. I don't use it anyway]
Channel6 has joined #ruby
DrCode_ is now known as DrCode
axsuul has quit [Ping timeout: 255 seconds]
thams has quit [Quit: thams]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
centipedefarmer has quit [Read error: Connection reset by peer]
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
<godd2> You said bin/ doesn't have .rb files in it, and I don't know what a shebang is. Could you elaborate?
centipedefarmer has joined #ruby
<jhass> oh, you're on windows, right?
<godd2> Yea, but I want my gem to be cross platform
jmurphy has joined #ruby
<anildigital> again for those who missed yesterday http://ruby-operators.herokuapp.com/ ppl do contribute if you know any other nice ruby operator with awesome name
jmurphy has left #ruby [#ruby]
Hobogrammer has joined #ruby
<jhass> on unix systems a shebang is a special first line in a file that, if the file is marked as executable, designated the program to be launched with the script as argument. So for ruby scripts it would be #!/usr/bin/env ruby for example
mike24 has quit [Quit: Leaving]
<godd2> Oh so you wouldn't have to type `ruby some_script...`
<jhass> yeah
kldskp has quit [Quit: Computer has gone to sleep.]
kldskp has joined #ruby
tkuchiki has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 240 seconds]
jayunit100 has quit [Quit: jayunit100]
Ayey_ has joined #ruby
Kricir has joined #ruby
<gr33n7007h> Why can't I send anything over sockets always returns `Errno::EPIPE: Broken pipe - send(2)` any ideas ?
<jhass> can you provide an example that we can pull and run?
seamon has quit [Quit: Zzzzzzz]
kldskp has quit [Ping timeout: 260 seconds]
ferr has quit [Remote host closed the connection]
<godd2> that Signal#trap answer looks pretty definitive
axl_ has joined #ruby
<gr33n7007h> godd2, let me check thanks
chipotle has quit [Quit: cya]
arup_r has quit [Quit: Leaving.]
pierre1_ has joined #ruby
iamcalledrob has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
<gr33n7007h> Never mind I was trying to send when not even connected dummy :/
<godd2> jhass where do you suggest I put example code? In examples/ ?
Ayey_ has quit [Ping timeout: 264 seconds]
<jhass> yeah, why not
<jhass> didn't observe any standards for that
<godd2> fair enough
jdj_dk has joined #ruby
<godd2> Once again, thank you for your input. I'm hoping my gem will be practical and polished in no time.
beneggett has joined #ruby
seamon has joined #ruby
tectonic has quit []
TorpedoSkyline has joined #ruby
iamcalledrob has quit [Ping timeout: 255 seconds]
deweichen has quit [Read error: Connection reset by peer]
deweichen has joined #ruby
benzrf|offline is now known as benzrf
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
stytown has joined #ruby
<benzrf> today i learned what 'a monoid in the category of endofunctors' actually means
peret has joined #ruby
<ptrrr> that’s progress
tectonic has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
o0oo0o has joined #ruby
<gr33n7007h> Is there any way that JSON.parse method will make the keys symbols?
<gr33n7007h> I've done it before but forgot how to do it
<jhass> where does your json come from?
<jhass> do you absolutely trust the source?
anaeem1_ has joined #ruby
<gr33n7007h> jhass, ifconfig.me/all.json
<godd2> jhass one last question, how do I do the shebang thing in my bin as you suggested?
<jhass> #!/usr/bin/env ruby
<jhass> as first line
<jhass> and chmod +x the files
earthquake has joined #ruby
<godd2> first line of what though? isn't bin a folder?
stytown has quit [Quit: stytown]
<jhass> of the file
zcreative has joined #ruby
ptrrr has quit [Quit: ptrrr]
<godd2> what file are you referring to?
<jhass> the script itself
<godd2> you mean lib/juicy.rb ?
<jhass> gr33n7007h: if it's really that hard to write that couple of strings, check the docs: gr33n7007h: if it's re
matrixdevuk has quit [Quit: Lingo - http://www.lingoirc.com]
<jhass> godd2: no, the bin/ executable
matrixdevuk has joined #ruby
<jhass> godd2: bin/juicy
Photism has quit [Quit: Leaving]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<godd2> Oh I moved all those rb files that were in bin into an examples folder. There are no files inside bin now.
<gr33n7007h> Got it doesn't matter:symbolize_names => true
<gr33n7007h> keep forgetting tab completion in pry
jabbott has quit [Quit: Page closed]
<godd2> Since you said bin folder doesn't have rb files in it, so I took them out.
<godd2> Did you mean I should add shebang to each of the rb files that were in there?
<jhass> no
<czaks> symbolize_names is a DoS vector i believe
Channel6 has quit [Quit: Leaving]
<jhass> godd2: the bin/ folder is used for ruby scripts that should be installed in a way that they can be called from the command line, that is in a folder that is added to the $PATH
BadQuanta has joined #ruby
<czaks> i'm not sure if something changed, but ruby used to allocate all symbols and don't free them during the lifetime of a program
goodenough has joined #ruby
roolo has joined #ruby
tectonic has quit []
<jhass> godd2: now you don't want to have executables like juicy.rb, you want juicy instead. And to be then able to just type juicy you need to have the scripts marked executable and have a proper shebang
jdj_dk has quit [Ping timeout: 250 seconds]
<jhass> czaks: yes, it's a DoS vector if you don't totally trust the source, thus I asked if he does
tectonic has joined #ruby
<godd2> ok, I still don't quite understand, but I'm gonna jot down everything you wrote here and look into understanding it later. Thanks for all your help :)
<jhass> it helps using a unix system :P
tectonic has quit [Client Quit]
asdasdasdasss has quit [Quit: Lingo - http://www.lingoirc.com]
mikesplain has joined #ruby
zcreative has quit [Ping timeout: 260 seconds]
SilkFox has joined #ruby
iamcalledrob has joined #ruby
iamcalledrob has quit [Client Quit]
maletor has joined #ruby
skinny_much_ has quit [Quit: ZNC - http://znc.sourceforge.net]
iamcalledrob has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tectonic has joined #ruby
abuzze has quit [Remote host closed the connection]
kldskp has joined #ruby
TorpedoSkyline has joined #ruby
yacks has quit [Remote host closed the connection]
deweichen has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
deweiche_ has joined #ruby
mikesplain has quit [Ping timeout: 244 seconds]
szuletett has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
nfk has quit [Ping timeout: 240 seconds]
jjasonclark has quit [Quit: jjasonclark]
iamcalledrob has quit [Ping timeout: 255 seconds]
philcrissman has joined #ruby
kldskp has quit [Ping timeout: 255 seconds]
alex-i has joined #ruby
stytown has joined #ruby
<alex-i> Hi guys
<godd2> Alright, I think I cleaned up all of what you recommended: https://github.com/RSMP/juicy/commit/f19d18bf0c25d6434b4938ffdbaa5f85f36b5ce4
Spami has quit [Quit: This computer has gone to sleep]
philcrissman has quit [Ping timeout: 255 seconds]
Soda has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
anildigital is now known as zz_anildigital
pierre1_ has quit [Quit: Leaving]
alex-i has quit [Ping timeout: 256 seconds]
silentpost has quit [Quit: silentpost]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
Lexun has joined #ruby
kaspertidemann has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
ndrei has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
larissa has joined #ruby
spider-mario has joined #ruby
jdj_dk has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
deweiche_ has quit []
abuzze_ has joined #ruby
EmacsKid has joined #ruby
robscormack has joined #ruby
<EmacsKid> hi. I am interested in the connection between emacs lisp and ruby.
<EmacsKid> I have learned ruby was created as a descendant of emacs lisp. And am now interested in ruby.
ferr has joined #ruby
<EmacsKid> one sec
EmacsKid has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
abuzze has quit [Ping timeout: 250 seconds]
wallerdev has joined #ruby
zcreative has joined #ruby
Ilyas has quit [Ping timeout: 255 seconds]
earthquake has quit [Ping timeout: 245 seconds]
mijicd has quit [Quit: leaving]
nateberkopec has quit [Quit: Leaving...]
mijicd has joined #ruby
TieSoul has quit [Ping timeout: 255 seconds]
F1skr has quit [Ping timeout: 255 seconds]
autochthon has joined #ruby
<benzrf> emacskid: i really dont think thats true
timonv_ has quit [Remote host closed the connection]
iamcalledrob has joined #ruby
<pontiki> ruby's design owes a bit of lagacy to lisp, not specifically elisp, but much more to smalltalk and perl
goodenough has quit []
<mozzarella> >> $0
<eval-in> mozzarella => "/tmp/execpad-cf51cdde7616/source-cf51cdde7616" (https://eval.in/175029)
<pontiki> but it's way more in the "influenced Matz's thinking" than direct descendency, i think
goodenough has joined #ruby
<pontiki> although that is purely my speculation; i've never asked him
Zebroid has quit [Remote host closed the connection]
e4xit has quit [Quit: Right I'm out!]
St_Marx has joined #ruby
iamcalledrob has quit [Ping timeout: 255 seconds]
blackmesa has quit [Remote host closed the connection]
Ayey_ has joined #ruby
blackmesa has joined #ruby
tectonic has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
jottr has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
kirun has quit [Quit: Client exiting]
sinkensabe has joined #ruby
tectonic has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
timonv_ has joined #ruby
seamon has quit [Quit: Zzzzzzz]
Ayey_ has quit [Ping timeout: 255 seconds]
o0oo0o has quit [Remote host closed the connection]
zz_anildigital is now known as anildigital
ixti has quit [Read error: Connection reset by peer]
o0oo0o has joined #ruby
ixti has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
ringaring has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
timonv_ has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
<wasamasa> I've seen enough elisp badness
<wasamasa> like the need for a funcall equivalent
<pontiki> you've hardly seen enough
<wasamasa> nil, true and false being names Qnil, Qtrue and Qfalse in C
<wasamasa> YARV itself
mary5030 has quit [Remote host closed the connection]
<wasamasa> I've had enough of reading xdisp.c, why must there be more of it
<pontiki> you must read it AGAIN
mary5030 has joined #ruby
<wasamasa> nope
<wasamasa> I'll rather read rubinius
<Beoran__> wasamasa, thats' an implementation detail though. I think for example mruby does it a bit differently :)
<pontiki> until it's dancing in your dreams
<wasamasa> Beoran__: well, it's the one we're all dancing after
silentpost has joined #ruby
<wasamasa> tl;dr: I am troubled by matz' statement he deems emacs as a well-designed lisp interpreter and therefore decided to borrow from it
<wasamasa> in case that guy comes again, that's the slide explaining it
jottr has quit [Ping timeout: 250 seconds]
<Beoran__> wasamasa, I see
<Beoran__> well, ruby is a stealth lisp in many aspects
matchaw_ has quit [Ping timeout: 272 seconds]
<wasamasa> I'm glad he didn't go full way to castrate the standard library
<wasamasa> and instead added all kinds of useful methods
gregf has quit [Quit: WeeChat 0.4.3]
<wasamasa> that's pretty nice, to have that in elisp I need libraries like cl-lib and dash.el
sinkensabe has joined #ruby
<Beoran__> hmm I read that ppresentation I think it's not bad
<wasamasa> what's also nice is that he decided to have blocks
mary5030 has quit [Ping timeout: 244 seconds]
<wasamasa> which allow you to build DSLs
<wasamasa> although I miss the more advanced looping constructs
<Beoran__> yeah!
<Beoran__> DSLs are great in Ruby
<wasamasa> I mean, if I compare them with what people do in python to have comparable power
<Beoran__> but the implementatuion details of elisp are not tha tbad, that's comonly done, putting integers in pointers, etc
matchaw has joined #ruby
<wasamasa> compile to byte code, disassemble it, get an AST, modify it, put the bits back together
<wasamasa> that's madness
relix has joined #ruby
<Beoran__> python was invented by a dutch man. Dutch people tend to like like rules over convenience
<Beoran__> Japanese tend to like convenience
<Beoran__> IMHO
<pontiki> beauty. aesthetics.
anildigital is now known as zz_anildigital
<wasamasa> I'm also glad he didn't go for a c-like syntax
decoponio has quit [Quit: Leaving...]
<Beoran__> so we have to thank emacs for hat
<wasamasa> that's just the more obvious parts though :P
<pontiki> RMS is our saviour?
<Beoran__> well indirectly he helped a lot, so it seems
<wasamasa> I somehow suspect ruby shares the elisp tendency to do horrible hacks to achieve cool things
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> read about the possibility to open classes lately
<wasamasa> sounds like a great way to mess things up :P
siwica has quit [Remote host closed the connection]
<pontiki> meta programming is a great way to mess things up
<wasamasa> my issue with emacs and elisp is more the library design
goshdarnyou has quit [Quit: Connection closed for inactivity]
<Beoran__> ... is that not often the case in Japan? I saw many cool, yet slightly iffy things there.
<wasamasa> and how people circumvent it
<Beoran__> opening classes is fine if you need it ,and now we have refinements to keep it under control
jottr has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Beoran__> such a bridge is way cool, if a bit iffy to use.
SJr has quit [Ping timeout: 250 seconds]
<Beoran__> same with Ruby :)
matchaw has quit [Remote host closed the connection]
mikesplain has joined #ruby
mary5030 has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
<pontiki> it'd slow down speeders :)
TorpedoSkyline has joined #ruby
matchaw has joined #ruby
lidenbrock has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 255 seconds]
kldskp has joined #ruby
spider-mario has joined #ruby
SouL_ has joined #ruby
<Beoran__> oh and this one ,even cooler
ixti has quit [Quit: WeeChat 0.4.3]
<Beoran__> a double loop bridge
spider-mario has quit [Remote host closed the connection]
jdj_dk has joined #ruby
maxk has quit [Quit: Lingo - http://www.lingoirc.com]
mary5030 has quit [Remote host closed the connection]
<Beoran__> pontiki, well they also say ruby is "slow" ... :p
<wasamasa> same for elisp
Starless has quit [Quit: Leaving]
<wasamasa> you can byte-compile it and avoid the overhead of macros, but it doesn't help much
mary5030 has joined #ruby
<wasamasa> pretty slow compared to any other lisp out there
lidenbrock has joined #ruby
goshdarnyou has joined #ruby
Zebroid has joined #ruby
mikesplain has quit [Ping timeout: 256 seconds]
lw has joined #ruby
<Beoran__> wasamasa, well we can only hope for the lisp machine to come back ... nowadays we only have some CPUs with some JVM instructions...
spider-mario has joined #ruby
Zebroid has quit [Read error: Connection reset by peer]
seamon has joined #ruby
<Beoran__> the reason that c is a s fast as C has also a lot to do with that most CPUs are made for C since the last 30 years at least
kldskp has quit [Ping timeout: 240 seconds]
<mozzarella> is it weird that I prefer RISC?
<Beoran__> no
<Beoran__> I prefer MIPS even
<mozzarella> they're not made for C?
<Beoran__> MIPS is a brilliant idea, each CPU cycle takes exactly one clock
<Beoran__> RISC is also very c-ish though
mary5030 has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matrixdevuk has quit [Quit: Computer has gone to sleep.]
<Beoran__> good enough gotta go now
heftig has quit [Ping timeout: 250 seconds]
heftig has joined #ruby
<wasamasa> Beoran__: I doubt enough people would invest in it to come back
<pontiki> fire up a kickstarter
x1337807x has joined #ruby
<Beoran__> wasamasa, "Time flows like a river, and history repeats." who knows?
beef-wellington has quit [Ping timeout: 264 seconds]
<wasamasa> if history repeats, they will die again :P
tylerkern has joined #ruby
<pontiki> "what's new is old, and what's old is new again"
spider-mario has quit [Remote host closed the connection]
diegoviola has joined #ruby
diegoviola has quit [Client Quit]
diegoviola has joined #ruby
jottr has joined #ruby
x1337807x has quit [Ping timeout: 260 seconds]
hakunin has quit [Remote host closed the connection]
kies^ has quit [Quit: baaaaiiiiiiiiiii~]
hakunin has joined #ruby
Ayey_ has joined #ruby
gattuso has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 250 seconds]
gtrak has joined #ruby
ra4king has left #ruby ["Leaving"]
jottr has quit [Ping timeout: 240 seconds]
ringaring has quit [Ping timeout: 250 seconds]
hakunin has quit [Ping timeout: 245 seconds]
hlcmvb has quit [Remote host closed the connection]
jottr has joined #ruby
claymore has quit [Quit: Leaving]
microdex has quit [Remote host closed the connection]
lidenbrock has quit [Ping timeout: 255 seconds]
SouL_ has quit [Ping timeout: 255 seconds]
zcreative has quit [Quit: Computer has gone to sleep.]
zcreative has joined #ruby
mikecmpbll has quit [Quit: ciao.]
blackmesa has quit [Remote host closed the connection]
<benzrf> 'time flows like a river'
<benzrf> how meaningless
blackmesa has joined #ruby
<wasamasa> nou
banjara has quit [Quit: Leaving.]
Cache_Money has joined #ruby
kies has joined #ruby
zcreative has quit [Ping timeout: 240 seconds]
iamcalledrob has joined #ruby
SilkFox has quit [Ping timeout: 256 seconds]
Spami has quit [Quit: This computer has gone to sleep]
agjacome has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
agjacome has quit [Client Quit]
iamcalledrob has quit [Ping timeout: 260 seconds]
peret has quit [Remote host closed the connection]
ringarin has joined #ruby
autochthon has quit [Remote host closed the connection]
gruz0[russia] has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
Nahra has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
nfk has joined #ruby
seamon has quit [Quit: Zzzzzzz]
lkba has quit [Read error: Connection reset by peer]
dc_ has quit []
kies has quit [Quit: baaaaiiiiiiiiiii~]
bridge_ has joined #ruby
TDJACR has quit [Max SendQ exceeded]
seamon has joined #ruby
TDJACR has joined #ruby
jdj_dk has joined #ruby
SouL__ has joined #ruby
abuzze_ has quit [Remote host closed the connection]
tectonic has quit []
abuzze has joined #ruby
spastorino has joined #ruby
kaspergrubbe_ has joined #ruby
Nahra has joined #ruby
poguez_ has joined #ruby
theharshest has joined #ruby
gattuso has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
gtrak has quit [Remote host closed the connection]
tvw has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has quit [Quit: Leaving...]
TorpedoSkyline has joined #ruby
abuzze_ has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
gtrak has joined #ruby
sinkensabe has quit [Ping timeout: 244 seconds]
abuzze has quit [Ping timeout: 256 seconds]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zcreative has joined #ruby
sputnik13 has joined #ruby
mikesplain has joined #ruby
zcreative has quit [Ping timeout: 250 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
kldskp has joined #ruby
jdj_dk has quit [Ping timeout: 256 seconds]
sumperson has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
kies has joined #ruby
sumperson has left #ruby [#ruby]
mikesplain has quit [Ping timeout: 240 seconds]
seamon has quit [Quit: Zzzzzzz]
sinkensabe has joined #ruby
kldskp has quit [Ping timeout: 245 seconds]
mr-foobar has quit [Ping timeout: 244 seconds]
Atttwww has joined #ruby
Ayey_ has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
kaspergrubbe_ has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
ndrei has quit [Remote host closed the connection]
sptx00 has quit [Quit: Ex-Chat]
Wolland has joined #ruby
x1337807x has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
banjara has joined #ruby
kaspertidemann has quit []
chrishough has quit [Quit: chrishough]
ndrei has joined #ruby
theharshest has joined #ruby
Wolland_ has joined #ruby
mary5030 has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
nymous has joined #ruby
<nymous> hey guys, anyone alive?
quantsini has quit [Quit: meow]
<nymous> i need a little help with webrick
x1337807x has quit [Ping timeout: 240 seconds]
tectonic has joined #ruby
lkba has joined #ruby
<nymous> i've created a simple app using it
<nymous> it works
Wolland has quit [Ping timeout: 264 seconds]
<nymous> but if I add daemonization, it stops logging
<nymous> actually it do write logs, but after i kill it
<shevy> do you know why
<shevy> perhaps a permission error?
<nymous> no, without daemonization it writes it immediately
<nymous> the only change is WEBrick::Daemon.start
mary5030 has quit [Ping timeout: 255 seconds]
<nymous> it writes to logs, but after kill, sounds like buffering of some sort
nasj has quit [Remote host closed the connection]
<nymous> here's full code
nasj has joined #ruby
<nymous> it's just a simple webhook for puppet
SomeGuy123123132 has joined #ruby
nasj has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
kireevco has quit [Quit: Leaving.]
jdj_dk has joined #ruby
Lexun has quit [Ping timeout: 256 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinv has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
pskosinski has joined #ruby
iamcalledrob has joined #ruby
ferr has quit [Ping timeout: 250 seconds]
centipedefarmer has quit [Ping timeout: 250 seconds]
centipedefarmer has joined #ruby
codygman has quit [Remote host closed the connection]
peret has joined #ruby
Channel6 has joined #ruby
iamcalledrob has quit [Ping timeout: 245 seconds]
tvw has quit [Ping timeout: 255 seconds]
<nymous> i'd rewritten it to use start-stop-daemon and you know what? it doesn't write to logs either
<shevy> hmm
Kricir has joined #ruby
vsoftoiletpaper has quit []
<nymous> it works if started in foreground
stytown has quit [Quit: stytown]
<jhass> nymous: I'd try passing a Logger instance instead
kireevco has joined #ruby
VTLob has quit [Quit: VTLob]
<jhass> or WEBrick::BasicLog
tylerkern has joined #ruby
Lexun has joined #ruby
<nymous> ok, looks like docs gives bad advice
<nymous> i've replaced log_file with my constant LOGFILE
<nymous> so it's not a handler, but plain filename
<nymous> and it works!
olivier_bK has quit [Ping timeout: 256 seconds]
tylerkern has quit [Client Quit]
hakunin has quit [Remote host closed the connection]
sethen has joined #ruby
hakunin has joined #ruby
tjr9898 has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
Sauvin has quit [Ping timeout: 255 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
hakunin has quit [Ping timeout: 264 seconds]
kireevco has quit [Quit: Leaving.]
Kricir has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
tjr9898 has quit [Ping timeout: 250 seconds]
astav has quit [Quit: astav]
<shevy> huh
<shevy> now that seems as if the simplest solution has worked
_whitelogger has joined #ruby
_whitelogger_ has joined #ruby
stytown has joined #ruby
leslie_ has joined #ruby
elektronaut has joined #ruby
Zebroid has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
ixti has joined #ruby
jdj_dk has joined #ruby
aledovsky has quit [Ping timeout: 250 seconds]
andrewlio has quit [Remote host closed the connection]
<shevy> can I alias methods like so
<shevy> def foo; end; alias bar= foo ?
aledovsky has joined #ruby
<shevy> hmm
<shevy> seems to work
<shevy> I wonder why I always used alias_method
amystephen has joined #ruby
kldskp has quit [Ping timeout: 250 seconds]
Lavender has joined #ruby
end_guy has joined #ruby
x1337807x has quit [Ping timeout: 244 seconds]
Soda has joined #ruby
banister_ has joined #ruby
banister has quit [Read error: Connection reset by peer]
justinv has quit [Remote host closed the connection]
bridge_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<Lavender> How well does this room deal with question from total newbies? I don't want to set myself up to get yelled at for not being an expert...
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<gzl> Lavender: I haven't noticed any issues.
<hoelzro> Lavender: I've found most everyone here is very kind
<hoelzro> just ask your question; you won't get yelled at =)
banister has joined #ruby
<Lavender> haha, okay, I just wanted to ask, I've found some programmers get weirld offended by newbies
aspires has quit []
banister has quit [Max SendQ exceeded]
nobodyzzz has joined #ruby
benzrf|offline is now known as benzrf
banister_ has quit [Ping timeout: 250 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<Lavender> I started learning on code academy, maybe not the best source, but a place to start. I'm trying to improve one of their projects and I'm running into a error I don't know how to handle
blackmesa has quit [Remote host closed the connection]
nasj has joined #ruby
<shevy> what error
banister has joined #ruby
blackmesa has joined #ruby
banister has quit [Max SendQ exceeded]
<Lavender> so running this section http://i.imgur.com/SPkZmxk.png when I try to actually add a new movie I get undefined method `to_sym' for nil:NilClass
zcreative has joined #ruby
<Lavender> I'm not sure what I changed to break that though, cause it worked dfine before I started playing
<shevy> you have a nil there
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jxf has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
phutchins has joined #ruby
<Lavender> right, I was under the impression that .nil? should just be checking it the title is present or not
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<benzrf> Lavender: fyi, dont do to_sym on arbitrary input
<benzrf> the whole point of symbols is to be prespecified in-code identifiers
<benzrf> like variable names
<Lexun> yeah, the problem is that the title variable is nil, so you can't call to_sym on it
<shevy> well
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<shevy> Lavender you can check whether a title is included in a hash or not
<shevy> for instance: hash.has_key? 'this_key'
<benzrf> i have a theory that better languages have nice communities
<gzl> Lavender: you're using gsub! instead of gsub. also you're using movies[title] in one place and movies[title.to_sym] in another.
<benzrf> *nicer
<shevy> Lavender, also, you must be careful if you use .gsub!
banister has joined #ruby
<benzrf> hence why this room is quite nice
nasj has quit [Ping timeout: 245 seconds]
<benzrf> and #haskell is even nicer
<gzl> Lavender: but the nil problem is because of the use of gsub!.
<benzrf> ;)
<shevy> Lavender in your example, change .gsub! to .gsub
zcreative has quit [Ping timeout: 245 seconds]
<Lavender> ah, taking out ! did it
<shevy> \o/
phoo1234567 has quit [Quit: Leaving]
basiclaser has quit [Excess Flood]
<Lavender> now I have to make sure I understand why, haha. like I said at the start, newbie
<shevy> now you only have to understand why
<shevy> do you know why some methods in ruby have the ! character
fgo has joined #ruby
<Lavender> if I remember correctly the ! makes it permanently modify what it's attached to? sorry if "attached to" isn't the right term, I'm still trying to get all the terms straight
<benzrf> Lavender: remember, having the ! doesn't actually explicitly do something
<benzrf> Lavender: it's just part of the name
basiclaser has joined #ruby
<benzrf> and ! at the end of mutators is a naming convention
jdj_dk has quit [Ping timeout: 260 seconds]
<benzrf> Lavender: you cannot put ! at the end of random methods and have them mutate
<benzrf> l8r
<shevy> Lavender usually a method with ! in ruby means
<shevy> DANGEROUS!
<shevy> it may be assumed that it will modify-in-place
benzrf is now known as benzrf|offline
<shevy> for instance, you have a string object: foo = 'hi there'
<shevy> now you have two ways to modify it, which are the same for the net result
<shevy> >> foo = 'hi there'; foo.gsub!(/ /,''); foo
<eval-in> shevy => "hithere" (https://eval.in/175031)
<shevy> >> foo = 'hi there'; foo = foo.gsub(/ /,''); foo
<eval-in> shevy => "hithere" (https://eval.in/175032)
iamcalledrob has joined #ruby
<shevy> so if you then do an assignment here
<shevy> like:
justinv has joined #ruby
<shevy> >> foo = 'hi there'; foo = foo.gsub!(/ /,''); foo
<eval-in> shevy => "hithere" (https://eval.in/175033)
<shevy> dang forgot something
fgo has quit [Ping timeout: 240 seconds]
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
fgo has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Read error: No route to host]
JoshGlzBrk has joined #ruby
fgo has joined #ruby
iamcalledrob has quit [Ping timeout: 240 seconds]
<gzl> Lavender: did you figure it out?
stytown has quit [Quit: stytown]
<Lavender> I think I'm starting to understand, I also found a question about ! on stackoverflow. so the issue is that it wasn't returning a modified title, it was just mutating the string?
arya_ has quit [Ping timeout: 255 seconds]
lw has joined #ruby
x1337807x has joined #ruby
<gzl> Lavender: there's two things going on. if s is a string, then s.gsub('abc', 'def') does not change s, but returns the modified version of s (which is just s if no replacements are done). so you would use this and assign the result to a new variable, like "new_s = s.gsub('abc', 'def')".
lw_ has joined #ruby
<gzl> Lavender: s.gsub!('abc', 'def') modified s itself and returns the result of the replacement. if it made any changes, it's the modified string (which is why your code kind of worked). if it doesn't make any changes, it just returns nil.
zcreative has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
<Lavender> Ah! okay, I understand!
gr33n7007h has quit [Ping timeout: 256 seconds]
klaut has quit [Remote host closed the connection]
hekin has joined #ruby
klaut has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<gzl> Lavender: you would guess that you use the ! version to modify in place and the other one to generate a new version of the string because of the naming conventions. for the nil return value thing, you just have to read the documentation.
x1337807x has quit [Ping timeout: 250 seconds]
jayunit100 has joined #ruby
lw has quit [Ping timeout: 256 seconds]
justinv has quit [Remote host closed the connection]
lw_ has quit [Client Quit]
<Lavender> I think the problem came in me assuming I understood things that I turned out I didn't fully understand. still learning and making silly mistakes :)
axsuul has joined #ruby
Lexun has quit [Quit: Manjaro-KDE user leaving!]
arya_ has joined #ruby
<gzl> yeah. just need to go one step at a time.
kenneth has joined #ruby
doub has quit [Ping timeout: 260 seconds]
magic has quit [Ping timeout: 250 seconds]
roolo has quit [Quit: Leaving...]
Zebroid has joined #ruby
brianherman has joined #ruby
<Lavender> even if it was a silly mistake, I really appreciate you guys explaining it in easy to understand terms :)
Lexun has joined #ruby
klaut has quit [Ping timeout: 255 seconds]
ringarin has quit [Quit: Leaving]
<gzl> no problem
acumiskey has joined #ruby
<shevy> well
<shevy> you'll make the .gsub vs .gsub! mistake only once (normally)
acumiskey has quit [Client Quit]
<shevy> so now you should be safe for the rest of your life
<Lavender> haha, kind of like when I made an infinite loop and crashed chrome >.>
benzrf|offline is now known as benzrf
Zebroid has quit [Ping timeout: 255 seconds]
<shevy> in javascript?
<Lavender> yup
aspires has joined #ruby
lidaaa has joined #ruby
jdj_dk has joined #ruby
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
magic has joined #ruby
Beoran__ has quit [Ping timeout: 244 seconds]
axl__ has joined #ruby
axl__ has quit [Client Quit]
MartinCleaver has joined #ruby
mikesplain has joined #ruby
leslie_ is now known as leslie
leslie has quit [Changing host]
leslie has joined #ruby
lw has joined #ruby
gregf has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 255 seconds]
jtdowney has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
axl_ has quit [Quit: axl_]
aspires has quit []
Wolland_ has quit [Remote host closed the connection]
greyEarl has joined #ruby
Wolland has joined #ruby
marr has quit [Ping timeout: 240 seconds]
Beoran__ has joined #ruby
njection has quit [Ping timeout: 240 seconds]
greyEarl has left #ruby [#ruby]
larissa has quit [Quit: Leaving]
jdj_dk has quit [Ping timeout: 240 seconds]
kldskp has joined #ruby
Wolland has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
arya_ has quit [Quit: sayonara^_^]
kldskp has quit [Ping timeout: 255 seconds]
weems|nix has quit [Ping timeout: 255 seconds]
doub has joined #ruby
gruz0[russia] has quit [Quit: This computer has gone to sleep]
Shidash has quit [Ping timeout: 240 seconds]
jhass is now known as jhass|off
mijicd has quit [Remote host closed the connection]
stytown has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
nasj has joined #ruby
SouL__ has quit [Quit: No Ping reply in 180 seconds.]
tkuchiki has quit [Remote host closed the connection]
SouL_ has joined #ruby
kireevco has joined #ruby
kireevco has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 264 seconds]
nasj has quit [Ping timeout: 245 seconds]
DreamingRainne has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DreamingRainne> Right, so, I'm on a fresh OS install (Mint 17), and had been using 1.8.7 since the late Middle Ages. Maybe now I can go for a fresh start. Any recommendations of version, etc?