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
<noob101> um yeeeeah
<havenwood> but still, you should be able to build native extensions
heftig has joined #ruby
<havenwood> install the devkit
dmitrykorotkov has joined #ruby
platzhirsch has quit [Quit: Leaving.]
<noob101> tell me what to type
timonv has joined #ruby
platzhirsch has joined #ruby
<havenwood> google ruby devkit
<shevy> hehehe
<shevy> type: "sexy goat"
Shidash has joined #ruby
Martxel has quit [Read error: Connection reset by peer]
<havenwood> noob101: gem install google && google ruby devkit
<shevy> noob101 one day you should switch to linux or osx
<havenwood> :P
bluenemo_ has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<noob101> shevy: I'll think about it
revoohc has joined #ruby
Tricon has quit [Quit: Leaving...]
<noob101> havenwood: I am done, this is complicated for me to be honest too much crap I don't know which I am reading.
jumblemuddle has quit [Quit: Death]
<noob101> havenwood: I'll just work on my program and ask questions but thank you.
<noob101> Unless centrx helps me I can then do it cause centrx explains to me step by step, that's how I understand better
<shevy> :)
jumblemuddle has joined #ruby
<centrx> It's an honor
<noob101> You can help me centrx?
<shevy> you are lost
<shevy> you use windows
<shevy> centrx does not
<noob101> That's a big jump, how would I do that.
<noob101> That's like turning black to white. I used windows since I was young, no other operating system to be honest.
pen has joined #ruby
<centrx> My attentions are distracted right now, but with good luck my focus will return here
<benzrf> noob101: it is not so different
<benzrf> noob101: you should get used to gnu/linux fast
<benzrf> it is more betterer B)
timonv has quit [Ping timeout: 245 seconds]
<noob101> I'll think about it but for the moment, I would like to finish this project.
<shevy> what's stopping you from finishing
MrSamuel has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
jtdowney has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
jtdowney has quit [Max SendQ exceeded]
<noob101> shevy: I am encountering errors and crap it's annoying
Gue______ has joined #ruby
iamcalledrob has quit [Quit: Computer has gone to sleep.]
<eam> we have a FreeDOS image we use for booting up certain crufty vendor flashing utilities
Gue______ has quit [Client Quit]
<eam> I installed ruby for DOS on it so I didn't have to write .bat scripts
<eam> worked pretty well, I was impressed
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
platzhirsch has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Burgestrand]
MrSamuel has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
mjs2600 has joined #ruby
maoko has joined #ruby
dmitrykorotkov has quit [Ping timeout: 252 seconds]
agjacome has quit [Quit: leaving]
OffTheRails has joined #ruby
agjacome has joined #ruby
dmitrykorotkov has joined #ruby
mbwe has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
Megtastique has quit []
yfeldblum has joined #ruby
axilla_ has joined #ruby
snath has joined #ruby
kyb3r_ has quit [Quit: Leaving]
<shevy> cool
<shevy> if only I would have known ruby in the DOS days!
dingus_khan has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
moted has joined #ruby
MrSamuel has quit [Ping timeout: 252 seconds]
moted has quit [Remote host closed the connection]
ddv has joined #ruby
nfk has quit [Quit: yawn]
klaut has joined #ruby
alexju has joined #ruby
marr has quit []
digitalcake has quit [Quit: Leaving.]
teku has joined #ruby
teku is now known as dkendal
digitalcake has joined #ruby
MrSamuel has joined #ruby
<revoohc> is there anyway to sort a hash of hashes by 2 values in the embedded hashes? I.e. {server1 => {:label=>”server1”, value=>123}}. I want to sort by :value, then :label
dkendal is now known as tku
tku is now known as teku
b1205 has joined #ruby
dmitrykorotkov has quit [Quit: Leaving]
<teku> revoohc: try using sort with a block - gist incoming
<wallerdev> isnt it just like hsh.sort_by { |k, v| [v, k] }
<teku> yes
Xeago has joined #ruby
<benzrf> revoohc: i told u this earlier
<benzrf> >.<
mjs2600 has quit [Read error: Connection reset by peer]
<revoohc> benzrf: We were talking of a single sort. I’ve been working and googling trying to find out how to do the multicolumn sort now.
bluepojo has joined #ruby
<benzrf> ah
<revoohc> benzrf: sorry, I’m very much a ruby newbie.
<revoohc> teku: just stumbled on a page that says to do this “in_hash.sort_by{ |k, v| [v[:value], v[:label]] }”
<revoohc> That seems to work. Thanks for the willingness to help.
mjs2600 has joined #ruby
<shevy> guys
MrSamuel has quit [Ping timeout: 240 seconds]
<shevy> would you think of a convention "one method per file" as excessive?
<wallerdev> yes'
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<teku> revoohc: that's what I was going to suggest, it uses the array's <=> to do the comparison
<revoohc> :)
travisje_ has joined #ruby
MrSamuel has joined #ruby
binaryhat has joined #ruby
travisje_ has quit [Client Quit]
_2_hitari has joined #ruby
Megtastique has joined #ruby
mercerist has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
_2_hitari has left #ruby [#ruby]
toastynerd has joined #ruby
mercerist has joined #ruby
axilla_ has quit [Ping timeout: 265 seconds]
digitalcake has quit [Quit: Leaving.]
sinkensabe has joined #ruby
ephemerian has quit [Ping timeout: 276 seconds]
teddyp1cker has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
saarinen has joined #ruby
b1205 has quit [Ping timeout: 240 seconds]
hakunin has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
try has quit [Quit: derpity derp]
snath has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
toastynerd has joined #ruby
SHyx0rmZ has joined #ruby
MrSamuel has quit [Ping timeout: 258 seconds]
smathieu has quit [Remote host closed the connection]
smathieu_ has joined #ruby
klaut has quit [Remote host closed the connection]
takemikazuchi545 has joined #ruby
dingus_khan has quit [Remote host closed the connection]
<noob101> I am back I need help badly please. :(
<RubyPanther> help, I've fallen and I can't reach my beer
saarinen has quit [Quit: saarinen]
<noob101> RubyPanther: Why does my while loop do inf loops like 2 times out of 10 times I run the file can you solve this one for me please
<noob101> RubyPanther: me and centrx tried solving but we can't :(
toastynerd has quit [Remote host closed the connection]
MrSamuel has joined #ruby
<pontiki> ERH: "Please state the nature of the Ruby Emergency"
<centrx> I think he's got it now
<pontiki> ask him to explain it
Shidash has quit [Ping timeout: 276 seconds]
<RubyPanther> How do we know it was infinite, did you wait infinite minutes? Maybe we're jumping to conclusions.
<noob101> RubyPanther: here's my code http://pastie.org/9207854
<centrx> lol
<zastern> If I'm going to be doing `bundle install --path vendor/bundle` - do I probably want to gitignore the vendor/bundle dir?
<noob101> It's that while loop
<noob101> centrx: I know I know I am just seeing for responses
<centrx> RubyPanther made a funny
<noob101> centrx: RubyPanther said a joke like help I have fallen and I can't reach my beer, I guess hes a drinker ( . " )_ ( . " )
blackmesa has quit [Ping timeout: 258 seconds]
<RubyPanther> puts "#{cpu_rand_card[1].to_i} cpu_rand_card right here"
<RubyPanther> 0 cpu_rand_card right here
yoshiki__ has joined #ruby
<RubyPanther> so there you go, adding 0 will never change your condition parameter
<noob101> RubyPanther hold up
<noob101> This is my logic though, ruby is bullshitting me
<noob101> it's a loop, if it gets a value of 0 to add to cpu_cards and nothing changes, why doesn't it loop to get another number?
<RubyPanther> it was just a joke, it is too early for me to drink. Plus I haven't had beer in the house for years. And yesterday I drank half a bottle of wine, so way I'm drinking today.
<noob101> I has to meet that condition right?
mjs2600 has left #ruby [#ruby]
takemikazuchi545 has quit [Ping timeout: 265 seconds]
<noob101> RubyPanther: Ha ok, I drink before you know my age so yeah. But I "experimented"
<RubyPanther> noob101: it only repeats the while block, not the whole file... that is what you're testing in while cpu_cards < 17
<noob101> RubyPanther: I don't get it
Atttwww has joined #ruby
<RubyPanther> then you add 0 to cpu_cards, it is still 9. Then you test again. Then you add 0 again. Then you test again. THen you add 0 again.
<noob101> RubyPanther: I know I am not testing the whole file but still a loop is a loop, it's going to loop many times right>
<noob101> wait hold on
<RubyPanther> yeah, many, many times
<noob101> So you're saying when it's an inf loop
<RubyPanther> until cpu_cards >= 17
<noob101> It just happens that cpu_rand_card was getting 0 all those times???
supermarin has quit [Quit: Computer has gone to sleep.]
<RubyPanther> which is going to take a long time if it is only growing by 0 ;)
bmurt has joined #ruby
supermarin has joined #ruby
<noob101> RubyPanther: I will use the until loop, thanks.
<RubyPanther> cpu_rand_card = deck.sample[1].to_i # it is already assigned, it doesn't matter where it came from, that line already ran. There is only a value in cpu_rand_card
<pontiki> zastern: indeed, yes
<RubyPanther> You don't re-assign it in the loop, so it isn't some random value... it is the same value every time
<noob101> really???????
<noob101> I am so dumb, are you serious RubyPanther?
<noob101> It's the same value, ooooh cause it's stored in a variable right?
<RubyPanther> It isn't always 0, but it sometimes 0
<RubyPanther> but it doesn't change during the run, you have to run the whole script again to get another value
Azzurrio has joined #ruby
tjsousa______ has quit [Quit: Computer has gone to sleep.]
<noob101> So the cpu_rand_card in the loop will have the same value and doesn't change?
<RubyPanther> Now I'm going for a walk. If anybody asks where I am, I'm pretending I'm in Washington or Colorado.
<noob101> I thought that cpu_rand_card would get a new element from deck because it's a loop ya know.
MrSamuel has quit [Ping timeout: 240 seconds]
<noob101> RubyPanther: Answer my question please don't walk without me
<noob101> RubyPanther: I have yet to understand this.
sepp2k1 has quit [Read error: Connection reset by peer]
krazh has joined #ruby
<RubyPanther> noob101: What is a loop? All that is looping is lines 37-41, but that variable is assigned back at line 32
supermarin has quit [Ping timeout: 264 seconds]
revoohc has quit [Quit: revoohc]
<RubyPanther> noob101: You should really be starting with http://mislav.uniqpath.com/poignant-guide/
<RubyPanther> read it through to the end and all this will make sense
<noob101> RubyPanther: So the value never changes right
<shevy> noob101 you should start to use pp to debug
<shevy> require 'pp' at the top of your file
<shevy> then, pp on any object you are confused about and look whether it makes sense
lunaticedit has joined #ruby
<shevy> noob101 I would also recommend you to drop while, and instead use loop and count by yourself
<noob101> shevy: It's nice that you're helping me but come on, look at my name I have no idea what `pp` is, please explain.
robustus has quit [Ping timeout: 252 seconds]
<lunaticedit> wooah, wrong time to jump in on this conversation
<shevy> noob101 pp means pretty print
supermarin has joined #ruby
<EatMulti> infinite loop pp... that would definitely drop the programs performance a touch :)
<noob101> shevy: How a I suppose to do that, count by myself? Does it stop the inf loops?
<shevy> noob101 it will be your responsible to stop it; use the keyword break for that
<shevy> *responsibility
robustus has joined #ruby
<shevy> also noob, I don't recommend counting + putting on the same line, it will confuse you
<shevy> puts cpu_cards += cpu_rand_card
<shevy> keep it simple, stick to puts alone
<shevy> if you must count up, do so before you call puts
MrSamuel has joined #ruby
<noob101> shevy: so I am going to write my loop and tell me if it's valid
<shevy> it's very simple
<shevy> a loop in ruby is called loop
<shevy> loop {
<shevy> }
<shevy> now all you must do is fill in between {}
<shevy> and to break out you use break
<shevy> I do that in some games like so:
<shevy> loop {
<shevy> # user does things here
seanewest has joined #ruby
<shevy> break if game_over?
<shevy> }
Devanon has quit [Quit: WeeChat 0.4.3]
smathieu_ has quit [Remote host closed the connection]
<pontiki> i thought breaks were when you allowed to play games...
<noob101> shevy This is my loop ---> loop; cpu_cards += deck.sample[1]; break cpu_cards >= 17; end
<noob101> Is that good or do I fail?
supermarin has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
seanewest has quit [Quit: seanewest]
<shevy> noob101 no no no
<noob101> shevy: >:(
<shevy> did you not read what I wrote
<shevy> what did I write
<noob101> shevy: Sorry I will look
<shevy> 8 lines above
<shevy> <shevy> loop {
<shevy> why did you eat the {
<shevy> if you want to kill it
<shevy> then you must use do
<shevy> and then end
<shevy> loop do
<shevy> end
Guest23639 has quit [Quit: kab00m]
<shevy> but you picked neither of that:
<noob101> shevy: oooooh, that's what I forgot. Ok let me try again
<shevy> loop; cpu_cards += deck.sample[1]; break cpu_cards >= 17; end
<noob101> But Awwwwwww I want to do it.
<noob101> ok, now I know for next time
<shevy> you need to think like the ruby parser
unic0rn has joined #ruby
<shevy> it will scan over what you write
danijoo has quit [Read error: Connection reset by peer]
<shevy> if you write things it can not understand, it will choke
<noob101> What is a ruby parser, is that a pro rubyist?
<shevy> that is the thing you invoke if you do "ruby bla.rb"
MrSamuel has quit [Quit: MrSamuel]
<shevy> the computer does not understand english, noob101
<noob101> Oooh ok.
danijoo has joined #ruby
<shevy> it just looks like english to you
<noob101> oh wow, ok.
<shevy> but in the end, the computer only knows what to do with 0 and 1
<noob101> This is getting interesting.
<noob101> Binary code!
krazh has quit [Remote host closed the connection]
<shevy> yes
<noob101> Yes!
<shevy> perhaps you should learn C
<shevy> then ruby will be very easy for you
<noob101> Um C may be a little hard for me at the moment.
<shevy> yes
<noob101> I would rather learn ruby but I would like to learn languages like C cause it ties with like the computer deep right?
<noob101> It does deep things and I like that. C has like more power within the computer right?
<pontiki> no
<noob101> I am not sure how to explain it but it's like C looks more powerful to me
<pontiki> it does make access to some things easier
<pontiki> but it has no more power
<noob101> pontiki, there we go. That's what I meant.
<noob101> I must watch what I say in ruby
<pontiki> not so much
<shevy> noob101 only you can give answers, you must know why you want to learn anything
<shevy> C is faster than ruby
<pontiki> if you edit and guard your words, you might never learn you're thinking about something incorrectly
<pontiki> every time you are wrong is a chance to learn something new, to improve
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<pontiki> the failure isn't being wrong, the failure isn't learning from being wrong
<noob101> I never thought about that, I am a very reluctant person too.
<pontiki> it's okay
<pontiki> when surrounded by people who may seem like they know everything you want to, it's hugely daunting
<pontiki> and it's a culture one has to get used to
Atttwww has quit []
<noob101> It's also very intimidating :(
Atttwww has joined #ruby
<pontiki> :)
iamcalledrob has joined #ruby
chipotle has joined #ruby
<pontiki> sure, because you want to appear worthy
roolo has quit [Quit: Leaving...]
<noob101> Exaaactly and not look like you're special ed even though I had an IEP in elementary school.
<pontiki> no idea what an IEP is
<noob101> I am in regular classes in school currently but when I was younger, I had a hard time learning things sometimes and I would do things slower
<noob101> and IEP stands for Individual Education Program I think
<noob101> It's like for kids that have problems in school learning, I guess it's special education
<noob101> Not that I am retarded cause I am far from that.
<pontiki> many, if not most, people here learned ruby on their own, reading books, studying things, and so on
<noob101> I have honors and participate and a number of programs such as mentoring at the federal reserve bank in New York City and attending CodeNow
Fire-Dragon-DoL has quit [Quit: Leaving.]
<benzrf> noob101: k
<pontiki> but that's not always going to work for everyone
<noob101> But it's like me as an individual, when I learn something I don't know why but my brain has to analyze it and take time to understand everything about the matter.
OffTheRails has quit [Ping timeout: 252 seconds]
<pontiki> irc is not a particularly rich learning environment
<shevy> noob101 that's normal
<noob101> I am sorry I am off task I know people are here to learn I am sorry
<noob101> But I just want you guys to understand who noob101 is, who I am.
<shevy> noob101 best way to remember something is to understand it very well, then it gets effortless; you should try to compare memorizing trivia, like the first thousand numbers of PI (with a riddle)
<lunaticedit> noob101, are you an aspy
<noob101> A 16 year old african american who wants to learn code and is very determined
<noob101> you mean a spy?
<noob101> No
* lunaticedit facepalms
<pontiki> actually, it doesn't much matter
* lunaticedit hits the eject button
<noob101> pontiki: I know it's not the richest but people here are very nice
<noob101> I don't remember the channel but some channels are very mean
dmitrykorotkov has joined #ruby
<noob101> Maybe it was python, I was doing python before ruby if I can remember, I think it was
<pontiki> what i mean is, who you are as a person is quite important in some respects. and i would want to know the whole person. but irc, as a medium, is *so* limited
<pontiki> so i wouldn't treat you any different than anyone else
dmitrykorotkov has quit [Remote host closed the connection]
<pontiki> and i think that's true for most people willing to help?
<pontiki> on IRC i mean
dmitrykorotkov has joined #ruby
<noob101> that's cool. The thing I like about m joining the technology world is that people in general don't discriminate. I go to CodeNow meetups in the city so I can learn code and it's very very diverse and we don't have to wear suits and ties :)
<noob101> But some people told me that I was a troll and they would tell me to search this up search that up pontiki
<lunaticedit> Go to a gnu channel and you wouldn't say that
<pontiki> something i wish to the case forever. unless you begin to like suits and ties, then wear them
Azzurrio has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<noob101> Is gnu channel nice or mean
<lunaticedit> heh
agrinb has quit [Remote host closed the connection]
<noob101> People like centrx, shevy, RubyPanther and havenwood are nice, they helped me months ago.
<lunaticedit> I don't think either really defines those channels
snath has joined #ruby
benzrf is now known as [
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<noob101> Oh and benzrf too
<pontiki> noob101: here's the thing: IRC is okay for short answers, but is lousy for detailed explainations, especially when the detailed explanations are a google search away
revoohc has joined #ruby
<pontiki> this is not a school, this is not a class
<noob101> Right but sometimes when I go on wikipedia or search it up, it's hard for me to understand
[ is now known as Guest49448
<pontiki> so tell you to look it up is really quite valid
Guest49448 is now known as benzrf
<noob101> Honestl
<centrx> pontiki, A book is the best learning environment, and IRC can be like an interactive book :)
axilla_ has joined #ruby
<noob101> centrx: I am trying to get a book but my stupid caretaker doesn't want to buy me a book
<pontiki> centrx: with 100 different authors, no focal point, no common voice, intent or framework
dmitrykorotkov has quit [Client Quit]
<noob101> he's afraid of getting "hacked" or "scam" meanwhile, he buys blenders, juicers, cooking appliances
<centrx> pontiki, RubyPanther brings it all together for us :P
<centrx> How can you get hacked from a book?
dmitrykorotkov has joined #ruby
<pontiki> with half of them screaming at the other half that they are complete idiots
<noob101> It's ironic but I want the pickaxe book.
<centrx> noob101, There must be a book store with that book somewhere in NYC
<noob101> centrx: He is afraid if he spends his money on the web, it will get hacked
<benzrf> \
<noob101> His credit card
<noob101> centrx: I live on Staten Island, I went to barnes and nobles near the mall
<centrx> or a computer/electronics store
<noob101> I was in the mall. They didn't have any books on ruby
<pontiki> you can ask barnes and noble to order it for you
<centrx> yeah Staten Island is a lot less populated
<pontiki> B&N will order any book in print if you ask them
<centrx> pontiki, really!?
<noob101> Oh ok, next time I will ask them to order it for me, Will they really?
<pontiki> yes, really
<centrx> !wow
* noob101 smacks face
<noob101> I didn't know >:(
linuxnewb2 has quit [Quit: Leaving]
<pontiki> there is no extra charge, either
<noob101> Now I do.
<noob101> What, how nice.
<pontiki> do you know who B&N's biggest competitor is?
<shevy> noob101 effectively, when it comes down to everything, there is only one way to learn ruby - write ruby scripts, write more, write ruby for any problem you want to solve; practice practice practice
<noob101> pontiki: no local libraries?
<shevy> noob101 did you read the old pickaxe already? it is available online
axilla_ has quit [Ping timeout: 252 seconds]
<noob101> shevy: Tell me, am I doing it?
<noob101> shevy: No :(
krazh has joined #ruby
<noob101> shevy: I need to read that on first right? Is it legit though like.
charliesome has joined #ruby
Takle has quit [Remote host closed the connection]
<pontiki> no, Amazon. Which has no bookstores. If B&N is going to compete with Amazon, their physical stores have to be able to provide whatever their prospective customers would get by going to Amazon, and a lot more
timonv has joined #ruby
<shevy> noob101 what do you mean is it legit
<EatMulti> The free pickaxe is legit, think that's the 1.8.7 version but I think 95% of it is still valid now.
Hanmac1 has quit [Ping timeout: 276 seconds]
phoo1234567 has quit [Remote host closed the connection]
<noob101> shevy: Nothing, nothing. Sorry
<pontiki> assuming Staten Island has a public library, it will also be part of the inter-library loan system. so if you want a book the library does not have, you can ask them to locate it for you, and you should be able to pick it up from them
<noob101> pontiki: I did that
<shevy> noob101 work through http://ruby-doc.com/docs/ProgrammingRuby/
<shevy> then work through https://pine.fm/LearnToProgram/?Chapter=01 noob101
mercerist has quit [Quit: Computer has gone to sleep.]
<shevy> please please please really do
<noob101> There was a copy of some book out and it's lost They weren't able to retrieve it
<noob101> some book on ruby
dmitrykorotkov has quit [Ping timeout: 252 seconds]
<pontiki> if it's not in the system, they obviously can't
<shevy> now I got a question... CV markup... I stumble upon this here:
<shevy> "Your degree subject and university, plus A levels and GCSEs or equivalents."
spinx^ has quit [Ping timeout: 240 seconds]
<shevy> what exactly are A levels?
<noob101> shevy: thank you for links, these looks legit now!
<shevy> I assume it is related to university grades
<iamcalledrob> I'm building a module that contains several methods – most of which don't need to be accessible from any class that include's the module. What's best practice for naming+defining these methods to avoid collisions? Here's an example: https://gist.github.com/anonymous/dfbf0572175f07e01e13
<pontiki> yo rob
timonv has quit [Ping timeout: 245 seconds]
dmitrykorotkov has joined #ruby
<noob101> huh pontiki used vernacular, he said "yo" interesting
<shevy> thanks pontiki
<EatMulti> I would just chuck an underscore before any that aren't part of the class's public api kinda thing. Though that may be sloppy/poor practice, not too sure.
hgl has joined #ruby
<EatMulti> I would just chuck an underscore before any that aren't part of the class's public api kinda thing. Though that may be sloppy/poor practice, not too sure.
<EatMulti> woops sorry
spinx has joined #ruby
zorak has quit [Remote host closed the connection]
<EatMulti> iamcalledrob: ^
<iamcalledrob> EatMulti: aha, that's exactly what I have been doing! Nice to know i'm not crazy
<pontiki> if you're really worried about collisions (with a method called 'state' you probably should be), you can create a submodule inside the first to namespace them
Shidash has joined #ruby
dorei has quit []
<EatMulti> pontiki: how are submodules accesed when main module is included in a class?
<iamcalledrob> pontiki: hmmm, that's an interesting thought. If I made a submodule, would I be able to access those methods in the same scope?
<EatMulti> not sure why I can't figure this in my head, firin up irb
<pontiki> assuming what you're after is hiding them from the scopes they're included in, you'd just access them in the normal way in your module
<pontiki> if you did want to access them in the including class, you just fully qualify them
Hanmac has joined #ruby
weems has quit [Read error: Connection reset by peer]
fortunamajor has joined #ruby
KanKava_ has joined #ruby
<EatMulti> ah, I see, publicly accessible methods would be in the main module, they can call submodule methods, minimizing the number of methods included on the class. Nice.
KanKava has quit [Ping timeout: 240 seconds]
prathamesh has joined #ruby
saarinen has joined #ruby
eka has joined #ruby
<iamcalledrob> EatMulti, pontiki: I'm having an unintelligent moment. If I put my "private" methods inside a submodule, how would I access them without making them self. methods?
eka has quit [Client Quit]
<EatMulti> that was particularly ineloquently put on my part, I got you
<pontiki> from where, rob?
<pontiki> from the superior module?
<iamcalledrob> pontiki: yes
<pontiki> Submodule::method should always work
<EatMulti> I think I got a method not found issue with that, if inner module methods weren't defined with self.
<iamcalledrob> pontiki: I get a NoMethodError on SuperiorModule::InnerModule:Class – which makes me assume it's looking for a method called self.my_method
<EatMulti> though that may be an oversight on my part, it is pretty late over here.
<pontiki> hmm...
axilla_ has joined #ruby
Wessie_442 has joined #ruby
<pontiki> ah, yes, you're right. i implemented the inner module starting with module_function
<pontiki> so everything in it is like def self.method
<pontiki> which may not be what you want
binaryhat has quit [Quit: Leaving]
<iamcalledrob> pontiki: aha. alas, probably not, but I appreiate your help!
radic has quit [Ping timeout: 258 seconds]
axilla_ has quit [Ping timeout: 252 seconds]
OffTheRails has joined #ruby
radic has joined #ruby
<pontiki> in which case, prepending with underscore, and if it's a method like 'state' maybe prepending with something unique
<pontiki> it's just the word 'state' is so very overused
<EatMulti> maybe the module name?
b1205 has joined #ruby
<EatMulti> though that could end up ultra verbose
<pontiki> yeah
<pontiki> in this particular example, i might use _bark_mood
<EatMulti> I really like the submodule method hiding thing, I've not really noticed it implemented it before (probably just skimmed over it)
<EatMulti> really handy for support methods.
<pontiki> i didn't use it specifically for hiding, but it did work for that
b1205 has quit [Ping timeout: 265 seconds]
<EatMulti> you can always use the class << self; # method defs; end; making those methods easily accessible without def self.ing everything
* noob101 hugs shevy
<noob101> Thank you shevy, you was right no more loop infs WOOOOOOOOOOOOOOOOOOOOOOOOOOOO!
<noob101> Thank you shevy, you're my favorite helper now.
<pontiki> EatMulti: that is essentially what module_function does
alexju has quit [Remote host closed the connection]
<noob101> And centrx is too!
<noob101> centrx, shevy are you guys there? :(
<EatMulti> pontiki: I missed that first time you mentioned it... module_function? I'll check it out
<centrx> Thanks
<noob101> centrx!
<centrx> Welcome anytime :)
codeurge has quit [Quit: Quit.]
<centrx> One day you too will be a Ruby master
<EatMulti> noob101: congrats :)
<noob101> Guess what! Shevy found out what I needed to do and thanks
kitak has quit [Remote host closed the connection]
<noob101> Thank you EatMulti
<centrx> !wow
<noob101> I had to use a loop do : end
<pontiki> i was reading somewhere that class << self in module is frowned upon, but i can't remember why
<centrx> ah that's a good idea
<noob101> loop do; end*
<noob101> Yes I know, my stupid brain should of thought about that but look.
<noob101> I did think about using a different kind of loop!
<noob101> An until I was thinking
<noob101> but there would still be infs
<centrx> pontiki, I think it's just confusing, an including class won't have those as class methods
<EatMulti> pontiki: I'd roll with that, never used it in modules designed to be included
iamcalledrob has quit [Quit: Computer has gone to sleep.]
<EatMulti> pontiki: only when using a module for method grouping where a class would be overkill
teku has quit [Ping timeout: 258 seconds]
Wessie_442 has quit [Quit: Bye]
<pontiki> centrx: that was actually the point -- trying to keep the including class from seeing them, and removing the potential for collisions
fgo has joined #ruby
<centrx> hmm
<pontiki> it is a little misleading though, yeah
segfalt has quit [Quit: Connection closed for inactivity]
<centrx> I prefer def self. to class << self anyway
<EatMulti> for me it depends on context
<EatMulti> if it's a couple of methods then self. is perfect, if it's a class full of class methods I'd prefer save on the visual noise and use class << self
_FL1SK has joined #ruby
<EatMulti> though the syntax does feel like a bit of a hack :P
duncannz has quit [Ping timeout: 245 seconds]
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has quit [Ping timeout: 252 seconds]
<pontiki> i haven't used class << self in a module yet; i use that module_function, but it's what i learned first
FL1SK has quit [Ping timeout: 240 seconds]
andrewjanssen has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<EatMulti> ooh and extend self!
<EatMulti> so much choice
St_Marx has quit [Remote host closed the connection]
<pontiki> oh, yes, that's something i've not even tried to figure out
St_Marx has joined #ruby
jimbow has quit [Quit: jimbow]
<EatMulti> selected answer in http://stackoverflow.com/questions/11550213/ruby-module-function-vs-including-module was handy to me in brain think terms
thomasxie has joined #ruby
<EatMulti> light on heavy info but a concise illustration of a few different approaches
<shevy> noob101 I was reading a book about cancer biology meanwhile, actually only one chapter
<noob101> shevy oh cool
saarinen has quit [Ping timeout: 252 seconds]
<shevy> noob101 did you read those two online books yet?
jaequery has joined #ruby
<noob101> btw shevy can you please give me your advice and no I haven't I am programming I have to get this project done
<shevy> you already have irb running
<noob101> but shevy I be on the computer all day
<shevy> so 10% of that book is known to you by now
<noob101> and yes I do shevy
<noob101> is that a bad thing?
<noob101> on weekends I spend my whole days on my laptop or computer
<noob101> will I get cancer faster?
<shevy> eh
<noob101> if I am not in school, or doing extra cur then I am on the laptop
bluepojo_ has joined #ruby
<noob101> or if I am done with homework
<noob101> I have irb open yes
teddyp1cker has joined #ruby
<shevy> there are multiple causes for cancer and the environment plays a major role as well, so such a question can not be answered in a yes-no fashion
<pontiki> laptops are not a known carcinogen
<pontiki> unless maybe you burn them and / or eat them
<noob101> sometimes I might not respond since I might not be in browser so pm me since I got earphones in
saarinen has joined #ruby
<noob101> pontiki but the "RAA-DI-AAA-TION"
<shevy> noob101 you should worry about learning ruby, which is positive, and not worry about getting cancer, which is just negative thinking. now, I would recommend to start with the chris pine book, if you work it through, you will be able to explain what "yield" means in ruby
<noob101> What about that, it supposely "Builllds up in your syyystem"
<EatMulti> what about if you use laptops for PHP?
<shevy> php causes cancer
<noob101> shevy right right
<noob101> lol
<noob101> php causes cancer
bluepojo has quit [Ping timeout: 240 seconds]
<shevy> well that's a bit too harsh perhaps
<noob101> #phpcausescancer
<pontiki> noob101: what radiation?
<noob101> yeah but the book chris pine
<EatMulti> yeh, I feel bad for mentioning it
<pontiki> from your wifi antenna?
<shevy> yes, that book
<shevy> THAT is the book noob101
<EatMulti> chris pine!
<EatMulti> I concur
<shevy> noob101, what is Time.mktime good for
<shevy> the name gives a hint
<noob101> pontiki, is it like a breaking down of like atoms or something, it's something about unstable and matter releases something to balance it. I think it's either electrons or hydrogen or beta. Learned that in beginning of chemistry
<EatMulti> I haven't gone through it from back to back but it has some really good stuff in it!
<shevy> the code to that book is one big .rb file btw
<pontiki> noob101: i did NOT ask what radiation *is*
<shevy> it was a pretty genius idea of him
<noob101> shevy Time.mktime huh
<pontiki> i asked what radiation you are talking about
bmurt has quit []
<noob101> pontiki, oh sorry, I read to fast.
<shevy> well
sinkensabe has joined #ruby
<shevy> you have plenty of time
<noob101> pontiki: As for the radiation, I am not sure but I heard it can damage your eyes. People tell me.
<shevy> go work through the chris pine book
<pontiki> noob101: please, do not believe everything people tell you
<shevy> afterwards you will have understood classes
teddyp1cker has quit [Ping timeout: 245 seconds]
<pontiki> your laptop and every electronic device ever made does give off radiation
<noob101> shevy: thank you for helping me.
<EatMulti> shevy: the whole book is one big .rb file?! internet checking time, I'm excited
<pontiki> do you know the light from the bulb in your room is emitting radiation as well?
<noob101> pontiki: doesn't it give off a lot of radiation, more then microwave?
<shevy> EatMulti yeah
<pontiki> and the refrigerator?
<pontiki> good grief, NO
<shevy> EatMulti I tried to update it some years ago
<shevy> but his code is kinda weird
<pontiki> where do you hear this stuff?
<centrx> noob101, It's not scientifically proven that that kind of radiation is dangerous. It is a different wavelength. Visible light is also "radiation".
* noob101 gasp
<centrx> That said, I sleep in a lead box
<pontiki> neutrinos will still be passing through :)
<EatMulti> :)
<noob101> but I amm on the computer +10 - +16 hours a day, you sure I won't get anything?
<centrx> I'm just saying there is no conclusive or perhaps even persuasive scientific basis.
<pontiki> yes you will
<pontiki> you should start seeing your skin flake off in about an hour
<pontiki> and your eyes are probably shot too
<pontiki> can't be helped
<brain_shim> my face is falling off right now as a matter of fact
<pontiki> it's too late
<noob101> pontiki: LOOOOOOOOOOOOOOOOL Stop it!
<noob101> I am serious! >:(
<pontiki> so am i
<benzrf> noob101: better not go outside, there's UV radiation all overrrr the place
<pontiki> STOP BELIEVING EVERYTHING YOU HEAR
<benzrf> pontiki++
<noob101> benzrf: I try to stay home at all times.
<shevy> EatMulti I tried to adapt it but gave up like 5 or 6 years ago; I also broke it in the process lol http://shevegen.square7.ch/tutorial
sinkensabe has quit [Ping timeout: 252 seconds]
<EatMulti> your heart will begin the process of converting your blood into binary streams of pure energy
* brain_shim picks up his nose and puts it back on his face again
<centrx> My computer is made out of coconuts to avoid this problem
<noob101> I like staying in my room
<noob101> centrx: Are you serious
<pontiki> centrx has the coconut blueprints from the Professor
<shevy> noob101 do you believe everything
<noob101> You guys are joshing me I know
<shevy> centrx is
<noob101> I was joking ha ha, ehhh..
<brain_shim> lead aprons and wrist guards - the gold standard of all hardcore hackers
<shevy> damn hipster hackers
kitak has joined #ruby
<noob101> So computers nowadays don't do anything to us, at least hardly anything right?
<noob101> Cool
<shevy> computers cause me headache
<noob101> shevy: LOL, you're not getting me this time
<noob101> How is that possible
<brain_shim> I wear welding goggles when I code, just to be safe.
<pontiki> that's cause you're squinting at them, you have the screen too bright, and/or you're hunching over
<noob101> Why are you guys trolling me :(
<pontiki> noob101: i'm not
<EatMulti> shevy: oh wow, this is pretty full on, it looks like he's writing his own ruby based templating language, while writing the site...
<benzrf> 3
<noob101> I am sorry, let me rephrase myself.
<noob101> Why does it "FEEL
<shevy> EatMulti it was cool when I first saw it
<noob101> FEEL" like you guys are trolling me?
OffTheRails has quit [Ping timeout: 240 seconds]
<pontiki> what feels like trolling?
<centrx> It's not trolling if everyone is having fun
<shevy> EatMulti the original can be retrieved somewhere on the www, it's how I got it. but I think, for an updated version, that must be all rewritten from scratch step by step
<benzrf> noob101: stop being credulous
<brain_shim> where is this long file y'all talking about - I'm not seeing it in my backscroll
<noob101> How do you know I am having fun. hmmm
charliesome has joined #ruby
<noob101> Well I am cool but this radiation stuff was being told to me.
<shevy> and so what
<pontiki> by whom, noob101 ?
<shevy> if you live to 60 years or 80 years or 100 years
<brain_shim> gracias
<shevy> you won't be coding new programming languages at years 100
<pontiki> wth, why not, shevy?
<pontiki> i plan to
<EatMulti> shevy: I'll take a look around for the original too
<shevy> because you will be too fragile
epsylon has quit [Ping timeout: 252 seconds]
<noob101> I just turned down my brightness that should do something for my eyes
<shevy> yeah, I always code best in absolute darkness
<pontiki> you can program just by moving your eyes or blowing on a pipe, shevy
<noob101> ^ lol
t0rc has quit [Quit: WeeChat 0.4.3]
allen has joined #ruby
<noob101> do aliens exist
<EatMulti> shevy: that's fascinating, this will keep me distracted from work for a few days at least if I let it :G
<benzrf> noob101: whether they exist is unimoprtant
<benzrf> what matters
<benzrf> is what is in ur HEART
<EatMulti> is whether they are going to eat you or not?
<shevy> EatMulti haha; I liked that he could do intralinks in his tutorial, and it all is in essence the same .rb file
<pontiki> aliens exist
<allen> jinns exist
<pontiki> whether there is life off the Earth is another matter entirely
decoponio has joined #ruby
<pontiki> chances are pretty good
<benzrf> define life
<noob101> If aliens exist, I want to buy one so it can clean my room
<pontiki> but there's no evidence yet
<EatMulti> shevy: it's like a whole sinatra project in one flat file...
<shevy> noob101 considering that the universe is so huge and life is nothing but biological information, it seems likely. but I find it totally useless for, life is already here, so why have to seek it like an idiot anywhere else
<allen> benzrf, a test to prove who we are
<pontiki> hum. you'd enslave another sentient being?
<shevy> EatMulti haha yeah! but in like... 2002 or something :D
jack_rabbit has quit [Ping timeout: 252 seconds]
<EatMulti> shevy: :D
<noob101> shevy: you make a good point
<benzrf> noob101: u can already do that with humans
toastynerd has joined #ruby
<shevy> noob101 go buy a cleaning robot, they are cheap
<benzrf> but it makes you a shitty person
<shevy> noob101 or get married
<pontiki> ...
<noob101> shevy: ask the gov which is sponsorin space exploration
<benzrf> shevy pls
<pontiki> ...
<noob101> sponsoring*
<pontiki> holy crap
<EatMulti> or program some aliens in?
<shevy> hey it's good old division of labour!
<pontiki> i'm done
pontiki has left #ruby [""Poets have been mysteriously silent on the subject of cheese" -- G.K.Chesterson"]
<shevy> :(
<benzrf> shevy: gb2greatdepression
<noob101> pontiki: I wouldn't enslave it, in exchange for cleaning my room, I would feed it food, give it water, and shelter ta-da
<benzrf> noob101: ur a butt
<shevy> sounds like starbuck work condition doesn't it benzrf!
<noob101> benzrf: : '( I am
braincrash has quit [Quit: bye bye]
toastynerd has quit [Remote host closed the connection]
noob101 is now known as noob101_is_a_but
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noob101_is_a_but is now known as noob101
<noob101> Hello
<noob101> I am a new noob101
danijoo has quit [Read error: Connection reset by peer]
phinfonet has quit []
danijoo has joined #ruby
toastynerd has joined #ruby
lethjakman has joined #ruby
braincrash has joined #ruby
dingus_khan has joined #ruby
dangerousdave has joined #ruby
agjacome has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fgo has quit [Remote host closed the connection]
axilla_ has joined #ruby
dangerousdave has quit [Ping timeout: 264 seconds]
EatMulti has quit [Quit: Going to get some sleep, it's well late in the UK.]
jack_rabbit has joined #ruby
snath has quit [Ping timeout: 252 seconds]
axilla_ has quit [Ping timeout: 264 seconds]
jaequery has joined #ruby
<allen> in the zone with my koans, debt free with no loans
kitak has quit [Read error: No route to host]
kitak has joined #ruby
benzrf is now known as benzrf|offline
toastynerd has quit [Remote host closed the connection]
moneydouble has joined #ruby
SCommette has joined #ruby
robert___ has joined #ruby
tkuchiki has joined #ruby
kitak_ has joined #ruby
im0b has quit [Read error: Connection reset by peer]
robert___ has quit [Max SendQ exceeded]
kitak has quit [Ping timeout: 240 seconds]
im0b has joined #ruby
ltdl has joined #ruby
tchebb has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
<imaleaf> 18:45 <pontiki> centrx: with 100 different authors, no focal point, no common voice, intent or framework
<imaleaf> pontiki: sounds like php :p
mr_snowf1ake has joined #ruby
thomasxie has quit [Quit: Leaving.]
Hobogrammer has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
tchebb has joined #ruby
timonv has joined #ruby
b1205 has joined #ruby
robbyoconnor has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
b1205 has quit [Ping timeout: 252 seconds]
yummi_kiv|2 has joined #ruby
mercwithamouth has joined #ruby
zorak has joined #ruby
lunaticedit has quit []
b1205 has joined #ruby
yummi_kiv|2 has quit [Read error: Connection reset by peer]
<allen> i want to save the world with the click of a button
<centrx> Ruby can do that
<centrx> It's in the standard library
yummi_kiv|2 has joined #ruby
<allen> centrx, yeah I thought so
lunaticedit has joined #ruby
Hytosys has quit [Quit: Hytosys]
jblack has joined #ruby
<jblack> Hi. I ran into SRP in the lat couple days, and it's throwing me for a loop.
<centrx> Search Result Pages?
<jblack> It seems crazy to me that making classes with just one method is a serious thing.
yummi_kiv|2 has quit [Read error: Connection reset by peer]
<centrx> on Single Responsibility
SCommette has quit [Quit: SCommette]
<jblack> Single Responsibility Principle.
prathamesh has quit [Remote host closed the connection]
lunaticedit has quit [Client Quit]
<jblack> I first came across it on the rubyflow blog
<centrx> jblack Are you the jblack from #linux or #windows95 on DALNET in like 2000
prathamesh has joined #ruby
yummi_kiv|2 has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<centrx> jblack, I agree one method per class is silly
<centrx> jblack, I always though SRP meant making classes that represent one well-defined category/object and do it well, not one method per class
<jblack> #linux from like '95-'05, yeah
yummi_kiv|2 has quit [Read error: Connection reset by peer]
<centrx> Cool :)
jaequery has quit [Ping timeout: 252 seconds]
b1205 has quit [Ping timeout: 240 seconds]
<jblack> At first i thought this guy was just being silly, but I've been reading around a bit, and this seems to be a thing
<centrx> Yeah that seems nuts
<centrx> Might be a good rule of thumb like Occam's razor: minimize public methods
<centrx> but always try for one and only one? crazy
<jblack> http://blog.codinghorror.com/curlys-law-do-one-thing/ is slightly more clear about it
<centrx> There might be more opinions on this here during the daytime America/Europe
prathame_ has joined #ruby
frobrob has joined #ruby
<jblack> the approach from that paradigm is spliting a class up into partial classes. I.E. splitting up a class over several files.
<RubyPanther> jblack: It is a thing, but the SRP that Uncle Bob was pushing is a different thing than the SRP that most rails people push. The rails one is just the unix "do one thing"... per method
<centrx> ah, that makes sense
prathamesh has quit [Remote host closed the connection]
<RubyPanther> which is the general Ruby thing, too; unix
<jblack> Sure, I think any good method only has one responsibility. It seems the SRP concept brings that up to the class level, rather than the methods
<RubyPanther> And unix isn't OO, so we have Matz' Least Surprise version of unix mapped to OO
fgo has joined #ruby
<noob101> What kind of music do you guys like?
eka has joined #ruby
iamcalledrob has joined #ruby
* RubyPanther sings karaoke ~ these are the simple parts of Ruby yeah yeah yeah ~
<popl> SRP is definitely a thing.
omosoj has joined #ruby
<popl> So's separation of concerns, which is more generalized than SRP.
omosoj has quit [Remote host closed the connection]
omosoj has joined #ruby
<popl> That sort of thing always seemed intuitive to me.
<popl> I've always been somewhat minimalistic, though.
<popl> I think.
lunaticedit has joined #ruby
axilla_ has joined #ruby
<RubyPanther> the term "functional unit" seems correct
moneydouble has quit [Quit: Leaving.]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<lunaticedit> ok minus that weird black screen issue it looks like debian on vbox is going to do the trick
ltdl has quit [Ping timeout: 276 seconds]
duncannz has joined #ruby
omosoj has quit [Ping timeout: 240 seconds]
axilla_ has quit [Ping timeout: 264 seconds]
ftj has joined #ruby
spicerack has joined #ruby
<centrx> wow
<lunaticedit> import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.strategies.SingleStepOutputGenerationParameter;
<popl> «((new EnterpriseGradeFizzBuzzSolutionStrategyFactory()).createFizzBuzzSolutionStrategy()).runSolution(nFizzBuzzUpperLimit);»
<lunaticedit> really?
<lunaticedit> This is why i don't use java
<centrx> that's some Java right there
<popl> You can follow whatever naming guidelines you'd like.
<popl> :P
<lunaticedit> Maybe one that a human can actually deal with, preferably
<centrx> serious Java
<lunaticedit> If one of my developers had a function called LoopContextStateRetrievalToSingleStepOutputGenerationAdapter i'd reject the commit
<popl> I hate talking about other languages in this channel because people like to hate.
<RubyPanther> I was following until he got into C# code details, and then I realized, I really don't want to learn about this
<lunaticedit> it's not the language, it's the large overly verbose text in those files I'm hating on
<popl> "This is why i don't use java" # not true
lyanchih has joined #ruby
<lunaticedit> It's obviously not a deep and factual statement, just a random tongue in cheek one
<popl> "This is why i don't use long identifiers" # would make that statement true
<RubyPanther> lunaticedit: yeah, with android ruboto the code is mostly ruby but you still get stuck with the icky Java imports
<lunaticedit> i actually don't entirely hate that project layout, just the novel-style naming :)
<RubyPanther> I wish somebody would figure out how to build MRI for android, then I could just wrap the JNI
<lunaticedit> I wish my brain would hurry up and absorb vim key commands
<RubyPanther> hide the java interface in C, keep the Ruby pure
omosoj has joined #ruby
<lunaticedit> is there any vim guys here who know a better way to run ruby than :w ! ruby
mois3x has joined #ruby
<popl> lunaticedit: :help ruby
prathame_ has quit [Remote host closed the connection]
<popl> lunaticedit: you can compile ruby support into vim
prathamesh has joined #ruby
mr_snowf1ake has quit [Ping timeout: 258 seconds]
<RubyPanther> I only use vim to edit system files, so even after 15+ years of use, I know like 4 commands
<centrx> lunaticedit, Do you use you use multiple windows in vim? Use Conque, you can run any terminal commands (including having an interactive shell) inside a vim window
<centrx> i.e. alongside your code
dseitz has joined #ruby
lxsameer has joined #ruby
<lunaticedit> I'm a vim newb, so no I don't
<lunaticedit> i usually just use gedit and a terminal below it
<centrx> vim is very powerful
<lunaticedit> I'm sure it is. But my thousands of hours of experience is in visual studio, going to take time to get comfortable with vim and ruby :)
<popl> you could learn tmux or screen then have pry open too
prathamesh has quit [Ping timeout: 240 seconds]
ltdl has joined #ruby
<RubyPanther> emacs has menus
<mois3x> is fantastic tmux + vim + vim-turbux
<mois3x> and prc
sunya7a has joined #ruby
<popl> mois3x: prc?
iamcalledrob has quit [Quit: Computer has gone to sleep.]
sunya7a has quit [Client Quit]
<mois3x> 3 panes 1 - vim 2- tests 3- pry or whatever
mostlybadfly has joined #ruby
thrillagorilla has joined #ruby
moneydouble has joined #ruby
kyb3r_ has joined #ruby
<pipework> notepad.exe has dialog menus and context menus.
codecop has joined #ruby
bricker`LA has quit [Quit: leaving]
<mois3x> i have a silly question, what means: a = 1; a |= 5 ?
thrillagorilla has quit []
<jblack> a will be set to 5 if a is nil.
<mois3x> but when u do a = 2; a |= 5 it returns 7 why?
<lunaticedit> i'd guess it first sets a to 1, then ORs it by 5.. so it'd set A to.. well 5 since 1001 OR 0001 = 1001
<lunaticedit> >> a = 5; a |= 5 ; a
<eval-in__> lunaticedit => 5 (https://eval.in/156522)
sinkensabe has joined #ruby
<jblack> >> a= 1; a |= 5; a
<eval-in__> jblack => 5 (https://eval.in/156523)
<havenwood> Bitwise OR.
<lunaticedit> >> a = 2; a |= 5 ; a
<eval-in__> lunaticedit => 7 (https://eval.in/156524)
<jblack> That would be bitwise
<lunaticedit> because that's 0010 OR 0101 = 0111, or 7
ltdl has quit [Ping timeout: 252 seconds]
<jblack> Sorry mois3x, I was thinking of ||=
<lunaticedit> yup bitwise, as apposed to logical, which i'd imagine evaluates to 'true'.. but not completely sure on ruby
<mois3x> thanks so much, guys
sinkensabe has quit [Ping timeout: 240 seconds]
omosoj has quit [Ping timeout: 240 seconds]
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
<centrx> lunaticedit, || evalutes to the first expression that returns a truthy value
linuxnewb2 has joined #ruby
<lunaticedit> aye, figured, just didn't know for a fact as i'm on day 2 of coding in ruby :)
<lunaticedit> and I don't like stating something as fact unless i know for sure
linuxnewb2 has quit [Max SendQ exceeded]
<centrx> Day Two: The Quickening
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Changing host]
linuxnewb2 has joined #ruby
<lunaticedit> yarr, i'm looking into gtk on ruby now, as well as sdl, good times
lukec has quit [Quit: lukec]
abstrakt has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fgo has quit []
allen has quit [Ping timeout: 252 seconds]
sunya7a has joined #ruby
charliesome has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
combusean has quit [Ping timeout: 252 seconds]
<centrx> lunaticedit, Check out Shoes
kitak has joined #ruby
<lunaticedit> I did, but it seems sketchy
<centrx> oh?
<RubyPanther> Shoes is for teaching kids
yacks has joined #ruby
<RubyPanther> Gtk is layered and portable
<centrx> GUIs are for kids, so it works out
<RubyPanther> Yeah, most apps would be better if they were written in Shoes, even if they didn't meet their stated goals
<RubyPanther> luckily both the bottom layer, and even the graphics primitives layer of Gtk (glib and gdk) don't use the GUI
axilla_ has joined #ruby
iamcalledrob has joined #ruby
glenfe has quit [Quit: Restart.]
<RubyPanther> so you can share callbacks, etc with the CLI
prathamesh has joined #ruby
supermarin has joined #ruby
axilla_ has quit [Ping timeout: 252 seconds]
yoshiki__ has quit [Ping timeout: 276 seconds]
<lunaticedit> Yeah honestly politics and trends don't really mean anything to me. whatever gets the job done the quickest is what i use
<centrx> lunaticedit, What's sketchy about Shoes?
<lunaticedit> i don't see it supporting things like view models on treeviews, i could be wrong
timonv has joined #ruby
<lunaticedit> anyway i'm about to play some dwarf fortress before i pass out
<lunaticedit> ya'll have a good one
atraylen has joined #ruby
toastynerd has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
Dr3amc0d3r|away has quit [Changing host]
Dr3amc0d3r|away has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
krazh has quit [Quit: Leaving]
sski has joined #ruby
zzzbra has quit [Remote host closed the connection]
zzzbra has joined #ruby
teddyp1cker has joined #ruby
combusean has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
nari has joined #ruby
chipotle_ has joined #ruby
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
toastynerd has quit [Remote host closed the connection]
Vivekananda has quit [Read error: Connection reset by peer]
snath has joined #ruby
dapz has joined #ruby
zzzbra has quit [Ping timeout: 264 seconds]
chipotle has quit [Ping timeout: 276 seconds]
combusean has quit [Ping timeout: 245 seconds]
havenwood has quit []
zcreative has joined #ruby
Takle has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LiohAu has quit [Quit: LiohAu]
supermarin has quit [Quit: Computer has gone to sleep.]
supermarin has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
dapz has joined #ruby
yoshiki__ has joined #ruby
Dr3amc0d3r is now known as Dr3amc0d3r|away
zcreative has quit [Quit: Computer has gone to sleep.]
supermarin has quit [Ping timeout: 252 seconds]
prathamesh has quit [Remote host closed the connection]
prathamesh has joined #ruby
glenfe has joined #ruby
lunaticedit has quit [Quit: Ex-Chat]
bluepojo_ has quit [Read error: Connection reset by peer]
prathamesh has quit [Ping timeout: 276 seconds]
sski has quit [Remote host closed the connection]
sski has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty. I think I'll order a Tab.]
danijoo has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
centrx has joined #ruby
danijoo has joined #ruby
centrx has quit [Client Quit]
noop has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastyne_ has joined #ruby
mikecmpbll has joined #ruby
sski has quit [Ping timeout: 276 seconds]
toastynerd has quit [Ping timeout: 240 seconds]
koderok has joined #ruby
prathamesh has joined #ruby
alem0lars has joined #ruby
toastyne_ has quit [Ping timeout: 264 seconds]
axilla_ has joined #ruby
prathamesh has quit [Remote host closed the connection]
fantazo has joined #ruby
prathamesh has joined #ruby
axilla_ has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
havenwood has joined #ruby
iamcalledrob has quit [Quit: Computer has gone to sleep.]
prathamesh has quit [Ping timeout: 258 seconds]
noop has quit [Ping timeout: 258 seconds]
noop has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
dmitrykorotkov has quit [Ping timeout: 252 seconds]
dmitrykorotkov has joined #ruby
dmitrykorotkov has quit [Max SendQ exceeded]
alexju has joined #ruby
foooobear_ has joined #ruby
amclain has quit [Quit: Leaving]
snath has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
<certainty> moin
<certainty> does anybody happen to have paxctl sources? seems that pax.grsecurity.net is currently not available
<noob101> I need help
mois3x has quit [Quit: mois3x]
<noob101> So I created a method right
<noob101> but the only problem is, I used a variable in the method that wasn't defined I guess but I used it because it's used mostly in the program
<certainty> good style
<noob101> so How do I like inquire that variable in my method without having to really define it cause it's very long kind of
<noob101> it's deck = ( A very very very long array)
<certainty> depends
<noob101> actually deck is a dimensional array
koderok has quit [Ping timeout: 252 seconds]
<noob101> but the thing is, how would I go upon doing that
combusean has joined #ruby
Hanmac1 has joined #ruby
hl has quit [Ping timeout: 246 seconds]
<certainty> noob101: find a way to compute that array
<noob101> certainty: what do you mean by that
<noob101> how would that allow me to use my variable deck in an entirely new method?
<certainty> don't write it down literally if it is that long but rather find a way to create it programmatically
ixx has quit [Ping timeout: 240 seconds]
<certainty> create a deck method which returns the deck
ixx has joined #ruby
<noob101> what does self mean?
Hanmac has quit [Ping timeout: 252 seconds]
<abstrakt> noob101, memoize or singleton
ixx is now known as Guest20565
<abstrakt> noob101, you probably want a class e.g. Game on which there is an instance variable @deck that gets created in the constructor
combusean has quit [Ping timeout: 240 seconds]
<certainty> hmm the i is dangerously close to the e on my keyboard layout.
<abstrakt> lol
tacos1de has quit [Ping timeout: 272 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
sski has joined #ruby
hl has joined #ruby
tacos1de has joined #ruby
dingus_khan has joined #ruby
snath has joined #ruby
dangerousdave has joined #ruby
sski has quit []
dingus_khan has quit [Remote host closed the connection]
prathamesh has joined #ruby
sski has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
dingus_khan has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
abstrakt has quit [Quit: Leaving]
ridget has joined #ruby
Guest___ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
dangerousdave has quit [Ping timeout: 252 seconds]
jhass|off is now known as jhass
justinxreese has joined #ruby
coderhs has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
justinxreese has joined #ruby
jyc has joined #ruby
jyc has left #ruby ["Leaving"]
toastynerd has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
timonv has joined #ruby
toastynerd has quit [Ping timeout: 258 seconds]
diegoviola has joined #ruby
sunya7a has quit [Ping timeout: 252 seconds]
axilla_ has joined #ruby
JBreit has joined #ruby
spinx is now known as spinx^
haha_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 252 seconds]
lw has quit [Quit: s]
JBreit has left #ruby [#ruby]
banister has joined #ruby
axilla_ has quit [Ping timeout: 265 seconds]
zzzbra has joined #ruby
claymore has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Hanmac has joined #ruby
dangerousdave has joined #ruby
ridget has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest___ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hanmac1 has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
jack_rabbit has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jack_rabbit has joined #ruby
lethjakman has quit [Ping timeout: 245 seconds]
claymore has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
teddyp1cker has joined #ruby
AnoGen has joined #ruby
relix has joined #ruby
AnoGen has left #ruby [#ruby]
Takle has joined #ruby
banister has joined #ruby
combusean has joined #ruby
banister has quit [Max SendQ exceeded]
jack_rabbit has quit [Ping timeout: 252 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
combusean has quit [Ping timeout: 258 seconds]
Megtastique has quit []
chrisseaton has joined #ruby
banister has joined #ruby
chrisseaton has quit [Ping timeout: 240 seconds]
jheg_ has joined #ruby
Hanmac1 has joined #ruby
koderok has joined #ruby
sski has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
sski has joined #ruby
chipotle_ has quit [Quit: cya]
cina has joined #ruby
RaptorJesus_ has joined #ruby
sski has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
Doppp has quit [Quit: leaving]
Doppp has joined #ruby
RaptorJesus has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
roolo has joined #ruby
Hanmac has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dapz has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Hanmac1 has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
carneiro has joined #ruby
toastynerd has joined #ruby
carneiro has quit [Client Quit]
LiohAu has joined #ruby
banister has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
toastynerd has quit [Ping timeout: 240 seconds]
speakingcode has joined #ruby
axilla_ has joined #ruby
dingus_khan has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
alexju has quit [Remote host closed the connection]
yoshiki__ has quit [Ping timeout: 245 seconds]
LiohAu has quit [Quit: LiohAu]
TRexJesus has joined #ruby
andrewlio has joined #ruby
banister has joined #ruby
axilla_ has quit [Ping timeout: 265 seconds]
speakingcode has quit [Ping timeout: 265 seconds]
dingus_khan has quit [Ping timeout: 258 seconds]
speakingcode has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 258 seconds]
mijicd has joined #ruby
spider-mario has joined #ruby
michael_lee has joined #ruby
phansch has joined #ruby
metamaterials has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
metamaterials has left #ruby [#ruby]
igugu has joined #ruby
<igugu> Yo
metamaterials has joined #ruby
<igugu> Any of you guys use Netbeans as an IDE? I'm running into a strange issue while trying to set up a Ruby env
<igugu> I've got a peculiar issue with the Ruby plugin. I've installed Ruby via rvm, however both the bundler doesn't work (can't find the gem executable_hooks) and running projects doesn't work (I get /home/my-username/.rvm/rubies/ruby-1.9.3-p547/bin/ruby: No such file or directory)
* apeiros uses sublime
john2x has joined #ruby
<igugu> I then copy the line to the path that "doesn't exist", copy it into a terminal, and it runs.
<john2x> hello.. can I `break` out of a for loop in Liquid? can't find it in the docs
<john2x> or `continue`
<apeiros> john2x: don't know about liquid, but `next` is rubys `continue`
ixti has joined #ruby
combusean has joined #ruby
<igugu> Alright, screw Netbeans.
klaut has joined #ruby
<igugu> apeiros, I've never heard of Sublime. Is it available on Linux?
Takle has quit [Remote host closed the connection]
<apeiros> igugu: afaik it's available on all 3 platforms
<apeiros> it's a text editor, not an IDE
combusean has quit [Ping timeout: 240 seconds]
<igugu> Wait.. Yeah.
<igugu> Crap.
<apeiros> you don't really need an IDE for ruby
koderok has quit [Ping timeout: 252 seconds]
<igugu> Ugh. Christ. I've been trying to get this running since friday evening.
<igugu> Like nonstop pretty much. Energy drinks and all nighters
<igugu> Deadline is tomorrow.
<igugu> This is the Ruby installation I remember..
<apeiros> oh dear. ok, moving a git submodule only cost me an hour. how very much fun :-S
<igugu> Meh, it's just frustrating
kyb3r_ has quit [Read error: Connection reset by peer]
<apeiros> igugu: um, ruby installation is ~10min
<igugu> But I guess I could use text editor for files and commit it to the staging machine everytime I change a file..
<igugu> At this point it would've saved time I guess
<apeiros> if netbeans makes it difficult it's not really rubys fault, or is it? :)
<igugu> Yeah like I said, i'm just pulling my hairs at this point.
ktosiek has joined #ruby
<popl> igugu: Have you had any luck asking the people in #netbeans?
blackmesa has joined #ruby
LadyRainicorn has quit [Quit: Bye]
<igugu> haha
<igugu> No man
<igugu> Quiet as a graveyard there.
sinkensabe has joined #ruby
Takle has joined #ruby
<igugu> I've seen what google has to offer but to no avail
doev has joined #ruby
<igugu> I'll just take another stroll through Google lane and if that doesn't work, it's gonna be Scite and lots and lots of git commits
imaleaf has quit [Remote host closed the connection]
<popl> and maybe don't procrastinate so long next time? :)
<apeiros> haha, that never worked for me :D
<popl> If the problem exists without Netbeans then maybe it's a problem with the rvm installation.
skaflem has joined #ruby
<igugu> Heh, that's not it popl
<igugu> Right now I'm working on a bunch of things the deadline of which is always gonna be "yesterday."
<igugu> I'm on the road this weekend so I decided to continue on my laptop
sinkensabe has quit [Ping timeout: 252 seconds]
<popl> Let me guess - your laptop did not have a sufficient development environment present?
<igugu> Yeah.
<popl> I didn't see that coming. :)
<popl> igugu: Poor planning. Better luck next time.
<igugu> Heh. Well it's just high pressure I guess.
<igugu> I mean I'm technically with family right now.
<popl> No you're not.
<igugu> Yeah, I guess.
doev has quit [Quit: Verlassend]
<igugu> But I've got two websites, a document information system and an ERP system hanging overhead, with ramifications such as a 700k investment and high/little income, starting ASAP.
nfk has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
<igugu> Or rather, NSE. Never Soon Enough.
justinxreese has joined #ruby
<igugu> But I'm sure I'm preaching to the choir there
<popl> blah blah capitalism IPO paul graham
<igugu> Hey man, I got bills to pay.
<popl> I'm not judging you.
<apeiros> deadlines… gotta love them. *sobs*
St_Marx has quit [Quit: Ex-Chat]
<popl> there's always homicide
<igugu> I get you though man
<igugu> If only none of that were ever necessary
<apeiros> why is music so much better through more remote speakers?
<igugu> Honestly I'm trying to make it less necessary for other engineers.
<popl> apeiros: acoustics, probably
<popl> apeiros: what sort of speakers?
timonv has joined #ruby
<igugu> A big chunk of what I'm minding there involves a corp to recruit, train and deploy people. Chiefly from east EU
St_Marx has joined #ruby
<apeiros> the close ones are my laptop's speakers, the remote ones are from the living room (via airplay)
<apeiros> I don't think it's the speaker quality
danijoo has quit [Quit: Leaving...]
<popl> apeiros: acoustics, probably
<apeiros> it seems to be the room acoustics and that it's "not directly in my face"
<popl> apeiros: laptop speakers can sound attenuated
<popl> tinny
<igugu> We want to offer these people something else to look forward to than a Russian occupation. Like a full service ride to sweet gigs abroad.
<apeiros> I don't think that's it popl
danijoo has joined #ruby
<popl> apeiros: are your laptop speakers awesome?
<apeiros> they're quite good
<apeiros> not excellent. I mean dedicated speakers are clearly better. but I have the same sensational difference with dedicated speakers right in my face.
codecop has quit [Remote host closed the connection]
<apeiros> hrm, quite weird to explain that difference.
Rahul_Roy has joined #ruby
<popl> perceptual differences are
postmodern has quit [Quit: Leaving]
<apeiros> room speakers -> music becomes an "atmosphere". the room is filled with music
<apeiros> "in your face speakers" -> music is "shot" at me. it's not an atmosphere.
<popl> apeiros: technically it's probably all in your mind
<popl> ;P
<apeiros> probably :)
<popl> right
<apeiros> perception does happen in the mind, after all
timonv has quit [Ping timeout: 252 seconds]
<popl> that was the joke, apeiros
<popl> :P
<apeiros> it's still correct :-p
<apeiros> question is whether other people feel the same
<apeiros> gotta ask my wife when she's back
<apeiros> /OT
<popl> we're off-topic? really?
<popl> :)
<apeiros> I was :)
Hanmac1 has quit [Ping timeout: 245 seconds]
<apeiros> no, not really.
<apeiros> acoustics is very ruby related :-D
toastynerd has joined #ruby
* apeiros goes back to work on his framework
<popl> I just found out that some poor woman puts up with you.
<popl> It's always interesting to me that so many dudes on IRC actually have wives with as much time as they spend on IRC.
<apeiros> haha
<apeiros> maybe I've got so much time to spend on irc because she doesn't have the time to spend it with me - ever thought of that? :)
<popl> apeiros: How's tabledata coming along?
<apeiros> currently in production as-is
<apeiros> still want to rework the DSL and validation part
jackneill has joined #ruby
<apeiros> but I think I'll do that on company time :)
<popl> Everybody wants their own DSL nowadays.
Hanmac has joined #ruby
<apeiros> sure. sadly sometimes in places where they're IMO misplaced.
<popl> apeiros: I considered that but thought it would be rude to suggest. You don't hire a gardener, do you?
<popl> It's usually a gardener or a pool man.
<apeiros> nope. neither a pool boy :D
<popl> haha
toastynerd has quit [Ping timeout: 258 seconds]
<popl> wow, it's like we both had an idea of the cliché
combusean has joined #ruby
frogssgy has joined #ruby
axilla_ has joined #ruby
<apeiros> she's still in education and works, so she's pretty little time
dingus_khan has joined #ruby
<popl> ah
<popl> I considered going back to school.
ritz has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<popl> I also work a lot now, at some stupid-crazy shift (which is why I am always too tired or not home to do anything).
ItsYoda has joined #ruby
carraroj has joined #ruby
<popl> Ok, have a good night
<apeiros> night popl :)
frosgy has quit [Ping timeout: 245 seconds]
<popl> apeiros: I got a Linode so I just leave irssi running in a screen session now
<popl> <- player
<popl> no more random disconnects for me
axilla_ has quit [Ping timeout: 245 seconds]
dingus_khan has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
GateCrasher has joined #ruby
<igugu> If she can use bash or irssi, put a ring on her
<apeiros> she's learning R and LaTex atm
<apeiros> my attempts of teaching her ruby failed so far, though :)
<igugu> Damn.
<igugu> Well she's an exception as it is, I don't think I know anyone who's learned Ruby as a first language but hey she could be one there too.
<igugu> I mean we all know 95% of programmers are male.
<igugu> The other 5% are mtf transgenders
<apeiros> mtf?
<igugu> Male to female
<apeiros> ah
GateCrasher has quit [Client Quit]
Prawnzy has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
<igugu> So, what were you considering going back for?
sqwirl has joined #ruby
Hanmac1 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
speakingcode has quit [Ping timeout: 252 seconds]
TRexJesus has quit [Ping timeout: 264 seconds]
justinxreese has quit [*.net *.split]
chipotle has joined #ruby
AlexRussia has joined #ruby
Hobogrammer has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
maximski has joined #ruby
blackmesa has joined #ruby
ocke has joined #ruby
ritz has quit [Remote host closed the connection]
ritz4_5 has joined #ruby
sinkensabe has quit [Ping timeout: 258 seconds]
ritz4_5_ has joined #ruby
john2x has quit [Remote host closed the connection]
TRexJesus has joined #ruby
ritz4_5 has quit [Ping timeout: 265 seconds]
ritz4_5_ has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cya]
<apeiros> igugu: sorry, got distracted. how do you mean? going back for?
chipotle has joined #ruby
darkMatter has joined #ruby
darkMatter is now known as haha_
chipotle has quit [Client Quit]
duncannz has quit [Ping timeout: 276 seconds]
magri has joined #ruby
tiguser has quit [Ping timeout: 276 seconds]
ow has joined #ruby
teddyp1cker has joined #ruby
ow has quit [Client Quit]
justinxreese has joined #ruby
mikecmpbll has joined #ruby
TRexJesus is now known as shvelo
magri has quit [Remote host closed the connection]
shvelo has quit [Changing host]
shvelo has joined #ruby
fantazo has quit [Ping timeout: 264 seconds]
sinkensabe has joined #ruby
OffTheRails has joined #ruby
tiguser has joined #ruby
kirun has joined #ruby
GC_2 has joined #ruby
toastynerd has joined #ruby
tjsousa______ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Prawnzy has quit [Ping timeout: 264 seconds]
tjsousa______ has quit [Remote host closed the connection]
ridget has joined #ruby
Gues_____ has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
combusean has quit [Ping timeout: 258 seconds]
axilla_ has joined #ruby
dingus_khan has joined #ruby
tjsousa has joined #ruby
Olipro has joined #ruby
mercerist has joined #ruby
mercerist has quit [Client Quit]
donnoc_ has joined #ruby
axilla_ has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
alem0lars has quit [Quit: Going AFK...]
dingus_khan has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has joined #ruby
<sqwirl> Anyone know why I'm getting a "Syntax error: File to import not found or unreadable: bootstrap." when I try to @import: "bootstrap";? I've restarted the rails server several times and I'm able to locate the bootstrap-sass gem
Hanmac has joined #ruby
User458764 is now known as User458764_NotHe
Hanmac1 has quit [Ping timeout: 264 seconds]
Rydekull is now known as Rydekull_
Rydekull_ is now known as Rydekull
Rydekull has quit [Changing host]
Rydekull has joined #ruby
User458764_NotHe has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
relix has joined #ruby
User458764 has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<apeiros> sqwirl: #rubyonrails might be better suited for that
mercwithamouth has quit [Ping timeout: 276 seconds]
kitak_ has quit [Remote host closed the connection]
<sqwirl> apeiros: is #rubyonrails working for you? It redirects me to ##namespace
<apeiros> sqwirl: you have to be registered to join it
top4o has joined #ruby
cina has quit [Quit: leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kitak has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 276 seconds]
ritz4_5 has joined #ruby
mercwithamouth has joined #ruby
ritz4_5 has quit [Remote host closed the connection]
ritz4_5 has joined #ruby
phansch has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
justinxreese has quit [Ping timeout: 246 seconds]
justinxreese has joined #ruby
mikecmpbll has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
phansch has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
mercerist has joined #ruby
sepp2k has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
justinxreese has joined #ruby
banister has joined #ruby
timonv has quit [Remote host closed the connection]
fantazo has joined #ruby
prathamesh has quit [Remote host closed the connection]
revoohc has quit [Quit: revoohc]
prathamesh has joined #ruby
Hanmac has joined #ruby
phansch has quit [Client Quit]
lxsameer has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
schickung has joined #ruby
carneiro has joined #ruby
GC_2 has quit [Ping timeout: 264 seconds]
frobrob has quit [Ping timeout: 265 seconds]
Xeago has quit [Ping timeout: 252 seconds]
GC_2 has joined #ruby
lxsameer has joined #ruby
prathamesh has quit [Ping timeout: 240 seconds]
prathamesh has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
axilla_ has joined #ruby
Naoe-Kanno has joined #ruby
SHyx0rmZ has quit [Ping timeout: 265 seconds]
carraroj has quit [Quit: Konversation terminated!]
toastynerd has joined #ruby
klaut has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 245 seconds]
dingus_khan has joined #ruby
tjsousa has quit [Quit: Computer has gone to sleep.]
ridget has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gues_____ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 252 seconds]
tjsousa has joined #ruby
shvelo has quit [Ping timeout: 276 seconds]
dingus_khan has quit [Ping timeout: 245 seconds]
phansch has joined #ruby
tjsousa_ has joined #ruby
axilla_ has quit [Ping timeout: 265 seconds]
tjsousa has quit [Read error: No route to host]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lkba has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
axilla_ has joined #ruby
Xeago has joined #ruby
ltdl has joined #ruby
donnoc_ has quit [Ping timeout: 264 seconds]
phansch has quit [Quit: WeeChat 0.4.3]
phansch has joined #ruby
<shevy> test
combusean has joined #ruby
maximski has quit []
prathamesh has quit [Remote host closed the connection]
prathamesh has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
agjacome has joined #ruby
phansch has quit [Client Quit]
phansch has joined #ruby
atzorvas has joined #ruby
andrewlio has quit [Quit: Leaving.]
combusean has quit [Ping timeout: 245 seconds]
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prathamesh has quit [Ping timeout: 265 seconds]
ridget has joined #ruby
Gu_______ has joined #ruby
<deepy> I'm a bit new to Ruby, but when I 'p ress' I get the following: [#<Resolv::DNS::Resource::IN::SRV:0x8659228 @priority=1, @weight=1, @port=443, @target=#<Resolv::DNS::Name: foo.bar.>, @ttl=980>]
CorpusCallosum has joined #ruby
<deepy> How do I access target the correct way?
<apeiros> deepy: the [] around it tells you that it is an array
<apeiros> ress.class can verify that
<apeiros> so first you get the Resolv::DNS::Resource::IN::SRV instance out of it. you can do that by ress[0] or ress.first
<deepy> oh, I get it now
<deepy> Cheers
<apeiros> after that, it depends on how Resolv::DNS::Resource::IN::SRV provides access to target
<apeiros> but probably just ress.first.target
DaniG2k has joined #ruby
<DaniG2k> I'm trying to read the lines in a file and if a pattern is not present, append it to the file
<DaniG2k> but im having a hard time with this
moritzs has joined #ruby
<apeiros> DaniG2k: show current code, what it does, and what it should do
<DaniG2k> if I do file = File.open('file.txt', 'r+')
<DaniG2k> file.readlines gives me the lines in that file
<apeiros> best on gist
<DaniG2k> which is fine
mmochan_ has quit [Quit: Connection closed for inactivity]
<DaniG2k> then if I do file << 'some text' and read the lines again, I get an empty array
<DaniG2k> any clue whats going on?
<DaniG2k> is the pointer going to the end of the file?
<apeiros> your cursor moves
<apeiros> yes
<DaniG2k> ah
<apeiros> see File#seek
anaeem1_ has joined #ruby
<apeiros> (probably IO#seek actually)
<apeiros> also note that if you write in the middle of the file, the rest of the text is NOT moved
justinxreese has quit [Ping timeout: 246 seconds]
teddyp1cker has quit [Read error: Connection timed out]
<DaniG2k> apeiros: I always want to append to the end
justinxreese has joined #ruby
<DaniG2k> apeiros: also, should I be using a+ or r+ ?
<apeiros> i.e. if your file is "foobarbaz", and you write "boo" with cursor at position 3, the file will then be "fooboobaz", not "fooboobarbaz"
<DaniG2k> i want to append to the file if the regex pattern is not found
<DaniG2k> oh i see
<apeiros> see IO::new
<apeiros> a+ starts at the end of the file
<apeiros> so r+ is the better choice, since you want to read
<DaniG2k> ah got it
bakflash has joined #ruby
mercwithamouth has joined #ruby
<atzorvas> http://dpaste.com/2BDFFQ5/ I'm fairly new to ruby, and when doing an exercise I found that I can use .instance_eval on an object and pass a block which has different self, so to check if self == self.reverse. But as i've read this is a bad option, due to changing self to another object, so in a method it may mulfucntion and the self may need "restoring" to the "original" self of the instance object. (maybe I'm not right on this one). but .send(:eval, "se
narendraj9__ has joined #ruby
teddyp1cker has joined #ruby
<Hanmac> hihihi i got a spam email with this context "%MESSAGE_BOD" xD
phansch has quit [Quit: WeeChat 0.4.3]
narendraj9__ has quit [Remote host closed the connection]
knigitz has joined #ruby
sleepee has joined #ruby
<axilla_> how do i add a new value to an already existing array?
<axilla_> .push
<axilla_> nm
moneydouble has quit [Quit: Leaving.]
<axilla_> is it ruby standard to write it like games << game or games.push(game)
<axilla_> seems so much cleaner as games.push(game)
axilla_ is now known as axilla
mikecmpbll has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
justinxreese has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
teddyp1cker has quit [Read error: Connection timed out]
phansch has joined #ruby
DaniG2k has quit [Quit: leaving]
<axilla> thanks!
<axilla> ahhh
<axilla> that's great to know
segfalt has joined #ruby
<axilla> its faster to use << over .push if only adding a single item to an array
<axilla> good to know thanks a lot!
toastynerd has joined #ruby
tjsousa_ has quit [Quit: Computer has gone to sleep.]
teddyp1cker has joined #ruby
teddyp1c_ has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
justinxreese has quit [Ping timeout: 246 seconds]
sski has joined #ruby
justinxreese has joined #ruby
klaut has joined #ruby
dingus_khan has joined #ruby
Hanmac1 has joined #ruby
teddyp1cker has quit [Ping timeout: 252 seconds]
prathamesh has joined #ruby
carneiro has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
GriffinHeart has joined #ruby
pskosinski has joined #ruby
spider-mario has quit [Ping timeout: 252 seconds]
metamaterials has quit [Quit: Leaving.]
phansch has quit [Quit: WeeChat 0.4.3]
dingus_khan has quit [Ping timeout: 252 seconds]
phansch has joined #ruby
abra has joined #ruby
slmorton_ has joined #ruby
sputnik13 has joined #ruby
slmorton has quit [Ping timeout: 252 seconds]
slmorton_ is now known as slmorton
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<shevy> now I am stumped
Azzurrio has joined #ruby
mclee has quit [Ping timeout: 240 seconds]
<segfalt> shevy: Good morning, stumped with what
<shevy> how do I move a remote file with ruby into a remote directory, using ruby-ftp?
<shevy> I see a method called "rename(fromname, toname)"
<shevy> but the docu says "Renames a file on the server." which I am unsure if it works to relocate into another remote dir...
<segfalt> sounds like it should
<shevy> yeah seems so
<shevy> stackoverflow also gives that as answer
<shevy> weird name though :\
carneiro has joined #ruby
carneiro has quit [Client Quit]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Gu_______ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ridget has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
mostlybadfly has joined #ruby
teddyp1c_ has quit [Read error: Connection timed out]
akita is now known as Akita
toretore has joined #ruby
lxsameer has quit [Quit: Leaving]
<shevy> yeah, it works
moritzs has quit [Ping timeout: 264 seconds]
phoo1234567 has joined #ruby
sputnik13 has quit [Ping timeout: 276 seconds]
abra has quit [Ping timeout: 252 seconds]
justinxreese has quit [Ping timeout: 246 seconds]
GodPuppet has quit [Remote host closed the connection]
<shevy> hmm
<shevy> if I define << on a class
teddyp1cker has joined #ruby
michael_lee has quit [Remote host closed the connection]
<shevy> how do I call that within that class?
lw has joined #ruby
timonv has joined #ruby
schickung has quit [Quit: schickung]
Hanmac1 has quit [Ping timeout: 276 seconds]
justinxreese has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
phansch has joined #ruby
<segfalt> A class method called <<?
<segfalt> From an instance method shevy?
<segfalt> self.class.<<
_bart has joined #ruby
timonv has quit [Ping timeout: 276 seconds]
<shevy> hmm
<axilla> segfalt: are you trying to set a subclass inherint to the class?
Hanmac has joined #ruby
donnoc_ has joined #ruby
<segfalt> axilla: I'm not trying to do anything, shevy is.
<segfalt> :)
<axilla> oh
<_bart> Hello, I'm looking for the way to require this gem: https://github.com/bookmate/simhash but `require 'simhash'` doesn't work, is it possible to read the gemspec and find the solution there?
ltdl has quit [Ping timeout: 240 seconds]
abra has joined #ruby
<segfalt> _bart: If the Gem is installed properly, require 'simhash' should work. There is a lib/simhash.rb, which is what would make that work.
<shevy> segfalt I mean within the class
<shevy> but I got it to work
<segfalt> shevy: Can you show me a mock-up of what you're trying to do, I'm not really following.
<shevy> self.<< i
<segfalt> Oh ok
<shevy> weird way :\
<segfalt> oh it's an instance method in the class, from another instance method.
phansch has quit [Client Quit]
<shevy> ok
<shevy> do you think this is better:
<shevy> self.send :<<, i
<shevy> hehe
<shevy> oh well... I think it is too long :(
phansch has joined #ruby
jgx has joined #ruby
<segfalt> self.<< arg is probably best?
yfeldblum has joined #ruby
<shevy> I dunno
<segfalt> _bart: Any luck?
<shevy> I don't quite like that . before the <<
SHyx0rmZ has joined #ruby
<shevy> you know what it is with ruby, you try to find visual beauty / aesthetics
timonv has joined #ruby
<segfalt> shevy: And then you wonder where half your day went, and you've barely implemented anything. Story of my life.
<_bart> segfalt: I'm trying to require it in pry, no luck so far, even though the `gem install` worked fine
<segfalt> :)
Naoe-Kanno has quit [Ping timeout: 252 seconds]
<segfalt> _bart: I just tried it for kicks, worked for me. What version of Ruby?
<shevy> segfalt yeah but if you have to maintain it like in a year, I'd rather look at a nice code than ugly code. in perl it happened to me that I did not understood my own code which I wrote half a year ago...
<shevy> I was just going "wtf is this shit"
<segfalt> That happens to me too, I think it's normal :D
lambo has joined #ruby
<shevy> yeah to some extent
<shevy> the language plays a factor in it too
GC_2 has quit [Ping timeout: 264 seconds]
<shevy> I think languages have different difficulty/complexity levels
<shevy> my php code was always very stupid and very ugly
mehlah has joined #ruby
GC_2 has joined #ruby
<shevy> but I could understand it even after a long time
<shevy> ruby code can be very beautiful, it can however also become very complex
yfeldblum has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Read error: Connection timed out]
<_bart> segfalt: super weird right?
<segfalt> _bart: What is the value of Gem.path in pry?
<segfalt> Yeah.
<_bart> segfalt: => ["/Users/bart/.rvm/gems/ruby-2.1.1", "/Users/bart/.rvm/gems/ruby-2.1.1@global"]
<_bart> segfalt: something like require 'nokogiri' works
<_bart> I'll verify the installation
<segfalt> Yeah I would look for gems/simhash*/lib/simhash.rb in those paths.
<segfalt> Something went wrong.
ritz4_5 has quit [Remote host closed the connection]
ritz4_5 has joined #ruby
<_bart> segfalt: /Users/bart/.rvm/gems/ruby-2.1.1/gems/simhash-0.2.5/lib/simhash.rb exists
ixti has quit [Ping timeout: 252 seconds]
<segfalt> _bart: https://gist.github.com/askreet/add6360787c02ea4f9cb -- replicated your situation as best I can and it works, wtf?
teddyp1cker has joined #ruby
ritz4_5 has quit [Ping timeout: 252 seconds]
<segfalt> _bart: What happens if you do `load '/paht/to/simhash-x.y.z/lib/simhash.rb'`?
freerobby has joined #ruby
<segfalt> If that works, RubyGems is doing something wrong. If not... uh... things.
teddyp1cker has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
blackmesa has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0.1/20140506152807]]
lw has quit [Quit: s]
tryfics has joined #ruby
<lambo> hi, i use a drb server script who call back methods on the clients to print strings to output i pass a reference of a screen printer object of clients to the server to do so, here is my trouble : for example foo1 send msg to foo2, server calls print method on foo1 to either print the msg it just relay or to say for ex "foo2 isnt connected", its all right on foo1 but on foo2 it displays the output as exepcted but blocks waiting for
timonv has quit [Remote host closed the connection]
toastynerd has joined #ruby
<tryfics> exit
<tryfics> hello
<_bart> segfalt: it works in irb!! not in pry
<segfalt> _bart: Whoa.
<_bart> so pry is the one causing trouble here actually
<segfalt> That's uh.. interesting!
<_bart> Pry version 0.9.12.6 on Ruby 2.1.1
<segfalt> Are you sure pry is running out of the same ruby version as rvm is gem installing to?
<_bart> Probably an old bugged version?
<segfalt> you don't have like, a pry script installed that's loading a different ruby or anything crazy
<segfalt> no, your gem path was right scratch that
<_bart> segfalt: nope, I'm trying to update pry now though
<_bart> oh it's actually the latest it seems
<jhass> what's puts $LOAD_PATH saying inside pry?
<_bart> segfalt: could you maybe try your setup with pry?
<segfalt> _bart: I did, see the paste where I replicated your environment, I installed pry at the end. Worked fine?
toastynerd has quit [Ping timeout: 245 seconds]
<_bart> ah ok
XxLocutus has joined #ruby
axilla has quit [Ping timeout: 245 seconds]
XxLocutus has left #ruby [#ruby]
<_bart> jhass: good call, it's missing simhash
dingus_khan has joined #ruby
tryfics has quit [Quit: WeeChat 0.3.8]
codeurge has joined #ruby
sivoais has quit [Ping timeout: 252 seconds]
<_bart> jhass: but why? all the other gems in /Users/bart/.rvm/gems/ruby-2.1.1/gems/ show up fine
ritz4_5 has joined #ruby
<jhass> any extension gems to pry installed?
<_bart> pry-rails
donnoc_ has quit [Ping timeout: 245 seconds]
<jhass> are you inside a folder with a Gemfile?
<_bart> yes but that Gemfile doesn't have pry related stuff in there
spider-mario has joined #ruby
<segfalt> you think bundler/setup is getting required by pry-rails?
<_bart> I'll try pry in a different folder though
<_bart> yes it works in a different folder!
<segfalt> yeah, i bet bundler is bootstrapped in pry with pry-rails
shock_one has joined #ruby
<segfalt> which means if a gem isn't in your gemfile, no workie.
<segfalt> fun times.
<_bart> ah that's probably it
<jhass> unless you add pry-debundle :P
<_bart> HAHA! that gem actually exists
<_bart> what a mess
<_bart> all makes sense though, thanks
dingus_khan has quit [Ping timeout: 240 seconds]
<shock_one> Imagine we have 'Tea' and 'Coffee' classes. Each of them can be Chinese or Arabic. I want to have four classes: ArabicTea, ArabicCoffee, ChineseTea, and ChineseCoffee. What's the proper OOP way to organize such a hierarchy?
<segfalt> TIL pry-rails + Gemfile = unexpected behavior.
<_bart> Yep
<apeiros> shock_one: I doubt you should do that via classes
<segfalt> shock_one: It really depends on what shared functionality you expect to have, you could have a grandparent class Drink, two parent classes Coffee and Tea, and 4 classes named what you said already.
diegovio1 has joined #ruby
<shevy> shock_one start with a foundation, call it class Drink
<jhass> segfalt: _bart: I wouldn't say it's unexpected. pry-rails probably loads config/environment which in turn loads bundler
<shock_one> I need a common method on all of them, let's say `price`, which would do different things on each class. And it's STI, so having classes would be cool to automatically create instances of correct classes.
chipotle has joined #ruby
<havenwood> shock_one: mixin modules
<_bart> jhass: yes but I'm in a gem folder, writing a gem so it's not actually a rails project
<_bart> jhass: I guess pry-rails should only be loaded if there's a Gemfile AND there's a rails mention in there
<_bart> (my opinion)
<shock_one> havenwood, let's imagine I have a module 'Arabic'. Now I have to calculate price of ArabicCoffee. It's not at all similar to calculating ArabicTea, neither it is to ChineseCoffee. Each implementation is completely different.
<segfalt> Really? Not at *all* similar?
diegovio1 has quit [Quit: WeeChat 0.4.3]
<shock_one> Yes. As you can guess, it's not about tea and coffee. There is not a single common character in implementations.
<apeiros> shock_one: IMO still not a case for a class system
<apeiros> shock_one: rather attribute based strategy pattern
prathamesh has quit [Remote host closed the connection]
lambo has quit [Quit: leaving]
prathamesh has joined #ruby
<apeiros> def price; instance_eval(&PriceCalculators[drink_type]); end
<apeiros> less chance to paint yourself into a corner. no need to use the rather ugly STI
<shock_one> In your design PriceCalculator doesn't follow open-closed principle - it should know about all the types.
ua has quit [Ping timeout: 264 seconds]
<shock_one> I can define a method price on the base class with a large switch, and will have the same result.
<apeiros> *sob*
<shock_one> I'm sure this problem has a name using which I can find a solution. Maybe somebody have an idea?
<apeiros> well then, have fun with finding class intersections
<apeiros> class hierarchies are not the right tool for this kind of problem
<apeiros> google stuff like square vs rectangle inheritance etc.
timonv has joined #ruby
<havenwood> and keep your app safe from STIs and STDs!
<shock_one> I'm trying to utilize polymorphism for this solution.
<shock_one> What's wrong with STI?
prathamesh has quit [Ping timeout: 265 seconds]
<apeiros> I'm pretty sure you'll find a good amount of articles on that very query :)
<havenwood> shock_one: i just see Sexually Transmitted Infection
<segfalt> nope, bunch of articles about sexually transmitted infections
<segfalt> lol
<apeiros> haha
<apeiros> write it out then
blackmesa has quit [Ping timeout: 276 seconds]
Azzurrio has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ua has joined #ruby
snath has quit [Ping timeout: 252 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
ritz4_5 has quit [Remote host closed the connection]
<apeiros> having revisited open/closed principle (since it obviously no longer means what I learnt), I'm also not quite convinced your remark in that regard is accurate.
<apeiros> *inaccurate
<apeiros> gah
<apeiros> **accurate (since "not convinced") man… shouldn't irc right after jogging :D
<jhass> XEP-0308 to the resuce!
<jhass> oh... wait...
<apeiros> and even if it was… patterns may be a good guide. but they aren't truth incoroprated.
larsam has quit [Ping timeout: 240 seconds]
prathamesh has joined #ruby
axilla has joined #ruby
simono has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
<shevy> yeah
<shevy> incoroprated
<shevy> we can see what effect jogging has!
<apeiros> srsly :-S
slmorton has quit [Quit: slmorton]
az7ar has joined #ruby
axilla has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Remote host closed the connection]
andrewlio has joined #ruby
sinkensabe has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
az7ar has quit [Quit: az7ar]
az7ar has joined #ruby
yfeldblum has joined #ruby
az7ar has quit [Client Quit]
ashleah has joined #ruby
az7ar has joined #ruby
Soda has joined #ruby
sinkensabe has quit [Ping timeout: 276 seconds]
ritz4_5 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
az7ar has quit [Client Quit]
zorak has quit [Ping timeout: 252 seconds]
axilla has joined #ruby
GC_2 has quit [Read error: Connection reset by peer]
agjacome has quit [Ping timeout: 252 seconds]
sski has quit [Remote host closed the connection]
GC_2 has joined #ruby
sski has joined #ruby
prathamesh has quit [Remote host closed the connection]
prathamesh has joined #ruby
Hanmac1 has joined #ruby
andrewlio has quit [Quit: Leaving.]
sski has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prathamesh has quit [Ping timeout: 252 seconds]
spider-mario has quit [Remote host closed the connection]
omosoj has joined #ruby
jheg has joined #ruby
Martxel has joined #ruby
toastynerd has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
lw has joined #ruby
anaeem1_ has joined #ruby
mr_snowf1ake has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
anaeem1 has quit [Read error: Connection reset by peer]
axilla has quit [Ping timeout: 265 seconds]
dingus_khan has joined #ruby
NukePuppy has joined #ruby
noop has quit [Ping timeout: 264 seconds]
noop has joined #ruby
Neomex has joined #ruby
s00pcan has joined #ruby
<shevy> I hate this version inflation in things like firefox
lw has quit [Client Quit]
<shevy> 10 new major versions in a single year
<shevy> wtf
GC_2 has quit [Ping timeout: 264 seconds]
Puria has joined #ruby
prathamesh has joined #ruby
Gu_______ has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
Gu_______ has quit [Client Quit]
anaeem1_ has quit [Ping timeout: 240 seconds]
GC_2 has joined #ruby
benzrf|offline has quit [Ping timeout: 255 seconds]
<omosoj> shevy, what language/program are you talking about?
Shidash has joined #ruby
Alina-malina has joined #ruby
dingus_khan has quit [Ping timeout: 245 seconds]
michael_lee has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
Gu_______ has joined #ruby
<shevy> omosoj in this example firefox, more generally however any project that inflates version number for marketing reasons really; openSUSE did that as well years ago
Gu_______ has quit [Client Quit]
nfk has quit [Quit: yawn]
<havenwood> shevy: pull a Rake and jump from pre-1.0 to 10.0 :P
randomnick_ has joined #ruby
<shevy> now now rake seems conservative rake, version 0.9.3.beta.1
<havenwood> shevy: or like Perl and have fibonacci-esque versioning, Perl5, Perl6... Perl11.
<shevy> they were nicely pre 1.0 for like a decade
Neomex has quit [Quit: Neomex]
fschuindt has joined #ruby
<havenwood> Perl17
<omosoj> i see
<apeiros> havenwood: wasn't it java which popularized that?
<havenwood> apeiros: hehe, i don't know?
schickung has joined #ruby
<apeiros> they renamed java 1.6 to java 6
jrhe has joined #ruby
<apeiros> and retroactively 1.5 to 5. not sure how far back they went.
<havenwood> Ruby 22.0.0!
<apeiros> !
agrinb has joined #ruby
<shevy> man
IceDragon has joined #ruby
<shevy> python 2000
<havenwood> shevy: apparently python has decided to be even more bold and go from Python 3 back to Python 2. Soon they'll be on Python 1.
<apeiros> shevy: use windows version numbering
jheg has quit [Quit: jheg]
SCommette has quit [Quit: SCommette]
<apeiros> 3.11 -> 95 -> 2000 -> ME -> XP -> Vista -> 7 -> 8
<apeiros> or did ME appear before 2000?
<havenwood> heh, wasn't it about the same time but 2000 was NT?
<apeiros> also I'm curious which non-numeric version where non-major upgrades
GC_2 has quit [Read error: Connection reset by peer]
<apeiros> *were
prathamesh has quit [Remote host closed the connection]
<apeiros> since 3.11 -> 95 (= 4) -> 2000 (= 5) -> ME (= 6) -> XP (= 7) -> Vista (= 8) -> 7 (huh? should be 9)
<AntelopeSalad> you forgot windows 98
<apeiros> oh dear, true!
GC_2 has joined #ruby
prathamesh has joined #ruby
<AntelopeSalad> and i'm 99% sure ME came after 98 but before 2k
Shidash has quit [Ping timeout: 276 seconds]
<havenwood> when did they start the NT non-NT split?
agrinb has quit [Ping timeout: 264 seconds]
<apeiros> ME came after 2000
<apeiros> just checked
<havenwood> then they dropped non-NT after ME
<AntelopeSalad> ah
<havenwood> ME was the end of the non-NT line, right?
<AntelopeSalad> i think so yeah
<apeiros> ah, WP lists 98 as predecessor to ME
<apeiros> and NT as predecessor to 2000
<havenwood> Win NT to 2k and 98 to ME, right
<apeiros> and XP as their common successor
<apeiros> well then, replace 2000 with 98
<apeiros> in my line, I mean
freezey has joined #ruby
agrinb has joined #ruby
s00pcan has quit [Ping timeout: 276 seconds]
hgl has quit [Ping timeout: 252 seconds]
prathamesh has quit [Ping timeout: 258 seconds]
anaeem1 has joined #ruby
Shidash has joined #ruby
GC_2 has quit [Ping timeout: 264 seconds]
lethjakman has joined #ruby
fantazo has quit [Ping timeout: 264 seconds]
anaeem1 has quit [Remote host closed the connection]
Megtastique has joined #ruby
<igugu> apeiros, there's a reason behind that apparent inconsistency
oz has quit [Quit: EOF]
<igugu> NT wasn't in the lineup officially. The product line went 98 -> ME -> XP
<igugu> ME being halfway between the transition from 98 (DOS with a pretty shell) to XP (genuinely independent executable architecture)
RandyT has joined #ruby
<igugu> W2k was a successor to (and final "ultimate" version of) NT which was a separate architecture originally intended for office use with an emphasis on networking (active directory et. al)
s00pcan has joined #ruby
eka has joined #ruby
abstrakt has joined #ruby
yfeldblum has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
_bart has quit [Ping timeout: 258 seconds]
sepp2k has joined #ruby
<shevy> now with the explanation
<shevy> it actually is even more insane than it was before
<shevy> I actually liked ME :)
moritzs has joined #ruby
<igugu> Well the problem with ME was that it was a rushed, unfinished product.
s00pcan has quit [Ping timeout: 240 seconds]
prathamesh has joined #ruby
<igugu> Resulting in an unstable hybrid between the revamped arch based on original NT used in future Win versions, and DOS
oz has joined #ruby
akonny has joined #ruby
<igugu> Or, well.. I'm sure that if you liked it, it ran well for you. But generally people found it unstable.
ctp has joined #ruby
JoeGaudet has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 258 seconds]
absolutezeroff has joined #ruby
lukec has joined #ruby
donnoc_ has joined #ruby
<igugu> Conversely NT had a reputation as an exceptionally stable incarnation of Windows.. 2000 until today is popular among gamers because of both that stability, and a very low resource footprint.
<igugu> Though I think in the past couple years XP has taken its place for compatibility reasons.. DX and stuff.
phansch has quit [Quit: WeeChat 0.4.3]
moritzs has quit [Ping timeout: 264 seconds]
<igugu> But, ME - Essentially XP is what ME was supposed to be, as Win7/Longhorn is what Vista was supposed to be, and 98 was what 95 was supposed to be.
<igugu> I guess once you've had your IPO "when it's done" isn't a valid deadline anymore..
danijoo has quit [Read error: Connection reset by peer]
abstrakt has quit [Quit: Leaving]
danijoo has joined #ruby
freezey has quit [Remote host closed the connection]
chabill has joined #ruby
RandyT has quit [Quit: ZNC - http://znc.in]
magri has joined #ruby
RandyT has joined #ruby
elaptics`away is now known as elaptics
selite has joined #ruby
lethjakman has quit [Ping timeout: 265 seconds]
coderhs has joined #ruby
toastynerd has joined #ruby
axilla has joined #ruby
ctp has quit [Ping timeout: 265 seconds]
lw has joined #ruby
Freddan962 has joined #ruby
maximski has joined #ruby
toastynerd has quit [Ping timeout: 264 seconds]
axilla has quit [Ping timeout: 252 seconds]
dingus_khan has joined #ruby
mary5030 has joined #ruby
prathamesh has quit [Remote host closed the connection]
prathamesh has joined #ruby
EatMulti has joined #ruby
lw has quit [Quit: s]
maximski has quit [Ping timeout: 240 seconds]
magri has quit [Remote host closed the connection]
Martxel has quit [Quit: Leaving]
Martxel has joined #ruby
blackmesa has joined #ruby
simono has joined #ruby
dingus_khan has quit [Ping timeout: 240 seconds]
magri has joined #ruby
himsin has joined #ruby
prathamesh has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
Takle has quit [Remote host closed the connection]
RandyT has quit [Ping timeout: 252 seconds]
RandyT has joined #ruby
fraym has joined #ruby
mary5030 has quit [Remote host closed the connection]
sheperson has joined #ruby
fraym has quit [Quit: Lost terminal]
<apeiros> *sob*
<apeiros> Dir in ruby is so cumbersome
magri has quit [Read error: Connection reset by peer]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
selite has quit [Quit: Page closed]
DaniG2k has joined #ruby
simono has joined #ruby
<DaniG2k> hey guys I'm trying to figure out why I can't get the body to send with my little script here: https://gist.github.com/DaniG2k/7b3f34f9118d5a9ee902
<DaniG2k> im using ruby's smtp module
<DaniG2k> and the message contains a variable
<DaniG2k> #{tosee.join(', ')}
<DaniG2k> doesnt seem to send the body though
bmurt has joined #ruby
<jhass> iirc Body: is not a valid SMTP header
<DaniG2k> jhass: it's not meant to be, that's what the actual body should contain "Body: "
<jhass> oh, i c
<Freddan962> jhass, apeiros: Evening :)
<apeiros> hi Freddan962
<jhass> well, what's the error message?
<Freddan962> apeiros: If you would assign an AI movement patterns, would you do this by hardcoding or using textfiles that contains the instructions?
<apeiros> I would probably think about it ;-)
simono has quit [Client Quit]
alem0lars has joined #ruby
<DaniG2k> jhass: no error message, it sends the email
<apeiros> I doubt I would use textfiles for AI patterns
magri has joined #ruby
<DaniG2k> jhass: without a proper subject and no body
<Freddan962> apeiros: aight thanks
<DaniG2k> jhass: maybe the EOF part is icorrect?
ixti has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> damn, why is $LOAD_PATH not an ordered set? :-S
<jhass> DaniG2k: no, looks fine
magri has quit [Remote host closed the connection]
Wes has joined #ruby
<DaniG2k> hmm
<DaniG2k> I can't think of what else may be wrong
<jhass> can you post the source of the message you received?
phutchins has joined #ruby
<DaniG2k> jhass: hmmm I'm using Mac's mail client
<DaniG2k> there's just no body
<DaniG2k> and no subject
<apeiros> DaniG2k: isn't SMTP \r\n delimited?
<apeiros> i.e. your message uses wrong delimiters? (just \n)
<jhass> hmm, I'd expect most implementations to be tolerant though
himsin has quit [Read error: Connection reset by peer]
<DaniG2k> I'll try adding \n
<jhass> no, \r's
<apeiros> if you only want your stuff to work with "most implementations" :-p
IcyDragon has joined #ruby
<apeiros> jhass: maybe he uses classic mac os?
<DaniG2k> jhass: oh?
<apeiros> DaniG2k: newline on sane systems is \n. on windows it's \r\n
timonv has quit [Remote host closed the connection]
bmurt has quit []
himsin has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
slmorton has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
<DaniG2k> hmm ok adding the \n has made it send
<DaniG2k> and I'm getting text now
<apeiros> o0
<DaniG2k> but all that From:, To: Subject: stuff is appearing in the message itself
<apeiros> because you shouldn't add \n. you should add \r
cashnguns has joined #ruby
<DaniG2k> apeiros: nah that didn't work at all
<apeiros> little side note: literal strings with a literal line break in them in a file using \r\n as newlines will still only have a \n in it. ruby folds literal \r\n's into just \n :)
mclee has joined #ruby
<jhass> DaniG2k: so how does the source of the received message look like?
<apeiros> DaniG2k: do yourself a favor, just use the mail gem
LadyRainicorn has joined #ruby
<DaniG2k> apeiros: good idea -_-
kaspergrubbe has joined #ruby
NukePuppy has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Remote host closed the connection]
Wes has quit [Ping timeout: 245 seconds]
zcreative has joined #ruby
Stalkr^ has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
yfeldblum has joined #ruby
Atttwww has quit [Ping timeout: 245 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
<shevy> guys
jheg has joined #ruby
<shevy> that example indents case when differently
freezey has joined #ruby
<DaniG2k> apeiros: looooooooool
<DaniG2k> apeiros: works super easily with mail gem
<DaniG2k> thanks for the advice
<DaniG2k> was piss easy :D
<apeiros> told you it'd be a favor
yfeldblum has quit [Ping timeout: 245 seconds]
<apeiros> it's even easier with ponymail (or similar name, I keep forgetting)
timonv has joined #ruby
<apeiros> (it just provides a simplified interface on top of Mail)
fschuindt has quit [Ping timeout: 245 seconds]
speakingcode has joined #ruby
sivoais has joined #ruby
RubyRonin has joined #ruby
fantazo has joined #ruby
freezey has quit [Ping timeout: 252 seconds]
prathamesh has joined #ruby
amclain has joined #ruby
slmorton has quit [Quit: slmorton]
<DaniG2k> hmm I am trying to run the script from my server
<DaniG2k> but get this error message now
<DaniG2k> /home/dani/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/specification.rb:2064:in `raise_if_conflicts': Unable to activate mail-2.5.4, because mime-types-2.3 conflicts with mime-types (~> 1.16) (Gem::LoadError)
<DaniG2k> it works from my notebook
<DaniG2k> not on the server tho @_@
Hanmac1 has joined #ruby
keos has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
<DaniG2k> #dafuq
<EatMulti> DaniG2k: You using rvm gemsets?
magicien has quit [Changing host]
magicien has joined #ruby
tsunamie has quit [Ping timeout: 255 seconds]
soulcake has quit [Ping timeout: 255 seconds]
peckermanzzz has quit [Ping timeout: 255 seconds]
Caius has quit [Ping timeout: 255 seconds]
barratt has quit [Ping timeout: 255 seconds]
netf has quit [Ping timeout: 255 seconds]
netf has joined #ruby
barratt has joined #ruby
soulcake has joined #ruby
fantazo has quit [Ping timeout: 252 seconds]
peckermanzzz has joined #ruby
toastynerd has joined #ruby
prathamesh has quit [Remote host closed the connection]
<DaniG2k> EatMulti: on my server I have a Rails app
nfk has joined #ruby
<EatMulti> or two gems that have different mime-types dependencies?
tsunamie has joined #ruby
magri has joined #ruby
axilla has joined #ruby
hl has quit [Ping timeout: 255 seconds]
<DaniG2k> EatMulti: and it has a gemfile
jheg has quit [Ping timeout: 276 seconds]
<DaniG2k> EatMulti: but my script is just using require 'mail'
mgorbach has quit [Read error: Connection reset by peer]
Caius has joined #ruby
prathamesh has joined #ruby
<DaniG2k> oh maybe it doesnt know which one to require?
<DaniG2k> hmm
Caius is now known as Guest62918
soulcake has quit [Changing host]
soulcake has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jheg has joined #ruby
<shevy> hmm
<shevy> can I do:
mgorbach has joined #ruby
<shevy> foobar.rb --base_dir=/tmp
<shevy> ?
hl has joined #ruby
<EatMulti> DaniG2k: I think it's basically having dependency issues, if all your gems are installed globally it's often a bit of a problem
<jhass> shevy: sure, just chmod +x it and add #!/usr/bin/env ruby as first line
<EatMulti> DaniG2k: If you're using rvm maybe take a look at http://rvm.io/gemsets/basics
<shevy> no sorry
<shevy> I meant with the =
<shevy> I see examples with --base_dir /tmp
<shevy> in getoptlong and optparse
lolmaus has quit [Remote host closed the connection]
<shevy> invalid argument: --time=5 (OptionParser::InvalidArgument)
<shevy> :(
<EatMulti> DaniG2k: just to compartmentalise your dependencies... If I understand correctly your mail script isn't part of your rails app on the server?
<DaniG2k> EatMulti: I only have one Ruby version
<DaniG2k> 2.1.2
<DaniG2k> no it is not
<EatMulti> DaniG2k: but its managed by rvm so you can have separate gemsets for each use case
<EatMulti> DaniG2k: one for your rails app and another for your mail script?
<jhass> DaniG2k: anyway, your rails app probably already has the mail gem in its dependency tree, so try bundle exec ruby yourscript.rb
toastynerd has quit [Ping timeout: 264 seconds]
<DaniG2k> jhass: let me try that
timonv has quit [Remote host closed the connection]
<EatMulti> jhass: haha, that too
prathamesh has quit [Ping timeout: 265 seconds]
<DaniG2k> jhass: Could not locate Gemfile
az7ar has joined #ruby
<DaniG2k> this script is outside my rails app
dingus_khan has joined #ruby
<jhass> You could use its Gemfile though, for example by setting BUNDLE_GEMFILE iirc
<shevy> looks as if slop supports what I need
b1205 has joined #ruby
<DaniG2k> hmmmmm
lolmaus has joined #ruby
<EatMulti> or write a new gemfile and install the gems locally? bundle install --path vendor/bundle
<EatMulti> and then bundle exec the script
<EatMulti> bundle exec ruby mail_script.rb?
keos has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> yep, that should work too
centrx has joined #ruby
centrx has quit [Remote host closed the connection]
<DaniG2k> so the gemfile should only have the two lines gem 'mail' and gem 'mechanize'
<EatMulti> and source 'https://rubygems.org'
shock_one has quit [Ping timeout: 252 seconds]
ctp has joined #ruby
centrx has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
dingus_khan has quit [Ping timeout: 252 seconds]
<DaniG2k> bundler: command not found: flats_scan.rb
<jhass> bundle exec ruby script.rb
b1205 has quit [Ping timeout: 252 seconds]
<DaniG2k> that did the trick!!
<DaniG2k> thanks :D
justinxreese has quit [*.net *.split]
Olipro has quit [*.net *.split]
<EatMulti> use bundler for everything and you'll get fewer headaches :P
larissa has joined #ruby
supermarin has joined #ruby
<shevy> is that so
<omosoj> hey guys, i'm playing around with this new gem and running in to some problems. https://gist.github.com/josomo/868f57b3864bcdbf4e18
<omosoj> there seems to be an instance variable @text inside one of the objects but i don't know how to access it
<EatMulti> bundler!!! sorry I didn't even check the source...
renklaf_ has joined #ruby
<DaniG2k> EatMulti: ?
mikepack has joined #ruby
prathamesh has joined #ruby
SCommette has joined #ruby
RubyRonin00 has joined #ruby
<EatMulti> DaniG2k: sorry that was meant to be a stupid comment pertaining to omosoj's issue
<DaniG2k> ah
RubyRonin00 has quit [Client Quit]
<centrx> omosoj, Looking at the source code of that gem, the ZeroClickInfo object does not have a @text variable (or #text method)?
<omosoj> ok, so its value is stuck in the object. it needs a "getter"?
<jhass> omosoj: that seems to be part of the ::Link class
<havenwood> pry
<centrx> omosoj, That value is not present in the object at all
mercerist has joined #ruby
Darryl_ has joined #ruby
jblack_ has joined #ruby
<jblack_> I was playing with bundler last night. I couldn't get bundler to make or install the gem I made. I ended up using gem build and gem install
<jhass> omosoj: it's inside the related_topics variable
magri has quit [Remote host closed the connection]
<omosoj> jhass, any way to access it?
<omosoj> havenwood, you recommend pry to investigate the gem?
<EatMulti> zci.related_topics["_"] seems to be an array
<EatMulti> omosoj: ^
<jhass> omosoj: you obviously didn't even try with that new information
<omosoj> centrx, hmm
az7ar has quit [Quit: az7ar]
<havenwood> omosoj: yes, but meant to actually be typing in my terminal >.>
jgx has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpb_ has joined #ruby
<omosoj> i am an ultra-newb so this is the first time i've investigated things this deeply
b1205 has joined #ruby
pskosinski has joined #ruby
<EatMulti> omosoj: and that array has objects that respond to .text by the looks of it
speakingcode has quit [Ping timeout: 276 seconds]
<omosoj> i tried zci.related_topics.text, or [text] but didn't work
justinxreese has joined #ruby
<havenwood> omosoj: zci.related_topics['_'].first.text
_bart has joined #ruby
magri has joined #ruby
<havenwood> omosoj: bit of an awkward interface
<omosoj> havenwood, oh cool, ok.
Olipro has joined #ruby
<omosoj> what's this ['_'] ?
<havenwood> omosoj: a hash key
nemesit|- has joined #ruby
larissa has quit [*.net *.split]
RubyRonin has quit [*.net *.split]
sivoais has quit [*.net *.split]
absolutezeroff has quit [*.net *.split]
michael_lee has quit [*.net *.split]
Soda has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
jblack has quit [*.net *.split]
ari-_-e has quit [*.net *.split]
kartouch has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
canton7 has quit [*.net *.split]
Darryl has quit [*.net *.split]
renklaf has quit [*.net *.split]
Sammael has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
Hobogrammer has joined #ruby
<EatMulti> >> thing = {'_' => 'data you want}; thing['_']
<eval-in__> EatMulti => /tmp/execpad-d909d1a13cda/source-d909d1a13cda:2: syntax error, unexpected tIDENTIFIER, expecting '}' ... (https://eval.in/156619)
<EatMulti> woops
mary5030 has joined #ruby
optiz0r has quit [Read error: Connection reset by peer]
<EatMulti> >> thing = {'_' => 'data you want'}; thing['_']
<eval-in__> EatMulti => "data you want" (https://eval.in/156620)
optiz0r has joined #ruby
zorak has joined #ruby
<omosoj> whoa lol. so the ["_"] creates a blank call for a value, then fills it in with "text"?
SegFaultAX has joined #ruby
<jhass> uh, who did say that...
b1205 has quit [Ping timeout: 252 seconds]
<EatMulti> ["_"] is for retrieval, not for creation
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> it's a hash, a hashtable datastructure
<jhass> it maps keys to values
<jhass> "_" is the key
larissa has joined #ruby
<jhass> the value in this case is an array
<omosoj> yeah, i understand that, but it's blank. why doesn't related_topics[text] work?
Soda has joined #ruby
<omosoj> oh, hmm
dapz has joined #ruby
<jhass> where is anything blank?
<EatMulti> because there are lots of related topics?
jheg has quit [Quit: jheg]
ari-_-e has joined #ruby
<omosoj> oh, i'm interpreting the underscore as a blank
<EatMulti> and each one is stored as an entry in the array
<jhass> no, it's a string
<jhass> "_"
michael_lee has joined #ruby
<omosoj> OHH, ok. DUH, the key of the hash is "_"
<omosoj> and the value is an array
<EatMulti> :)
mary5030 has quit [Ping timeout: 252 seconds]
abstrakt has joined #ruby
<omosoj> thanks guys. i'm making an app and learning a lot. it's awesome :))
canton7 has joined #ruby
kartouch has joined #ruby
absolutezeroff has joined #ruby
sivoais has joined #ruby
wallerdev has joined #ruby
<EatMulti> omosoj: it seems the array contains DuckDuckGo::Link s, take a look at the source for that class https://github.com/andrewrjones/ruby-duck-duck-go/blob/master/lib/duck_duck_go/link.rb
DaniG2k has quit [Quit: leaving]
<EatMulti> omosoj: it's a pretty small gem and not too well documented so it may help
<omosoj> hmm. what effect does that have?
<omosoj> i'm only looking for a short blurb on a topic, not the link info.
<EatMulti> omosoj: or open up irb, require 'duck_duck_go' and see what methods ::Link has
<EatMulti> omosoj: ah fair enough, just depends how much exploring you want to do
<omosoj> am i right in assuming that the gem basically sends and receives jsons?
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prathamesh has quit [Remote host closed the connection]
sunya7a has joined #ruby
sunya7a has quit [Changing host]
sunya7a has joined #ruby
prathamesh has joined #ruby
<EatMulti> yep
<EatMulti> and builds them into ruby objects
dapz has joined #ruby
Takle has quit [Remote host closed the connection]
<omosoj> k. i should review the gem because i just learned about json and it's a small enough gem that i can understand it.
magri has quit [Remote host closed the connection]
<EatMulti> omosoj: haha yep! I wouldn't say it's anything like a necessity to get what you need done, but reading source other peoples source is always handy in the long run.
Takle has joined #ruby
_bart has quit [Ping timeout: 258 seconds]
lw has joined #ruby
<EatMulti> omosoj: have fun
<omosoj> thanks, and thanks for the help!
prathamesh has quit [Ping timeout: 240 seconds]
b1205 has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
donnoc_ has quit [Ping timeout: 276 seconds]
abstrakt has quit [Quit: Leaving]
sambao21 has joined #ruby
michael_lee has quit [Ping timeout: 252 seconds]
habanany1 has joined #ruby
sheperson_ has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
sheperson has quit [Ping timeout: 245 seconds]
sheperson_ is now known as sheperson
mgorbach has joined #ruby
b1205 has quit [Ping timeout: 252 seconds]
habanany1 has quit [Remote host closed the connection]
chabill has quit [Ping timeout: 264 seconds]
prathamesh has joined #ruby
gigetoo has quit [Remote host closed the connection]
mgorbach has quit [Read error: Connection reset by peer]
mgorbach has joined #ruby
enebo has joined #ruby
gigetoo has joined #ruby
elioat has joined #ruby
lw has quit [Quit: s]
chabill has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
prathamesh has quit [Remote host closed the connection]
mikepack has joined #ruby
elioat has quit [Ping timeout: 252 seconds]
prathamesh has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
zcreative has quit [Quit: Computer has gone to sleep.]
<shevy> god I hate reading the source other people wrote
<shevy> 1% it is genius
<shevy> 90% it is crap
prathame_ has joined #ruby
mary5030 has joined #ruby
Hanmac1 has quit [Ping timeout: 276 seconds]
toastynerd has joined #ruby
blackmesa has joined #ruby
prathamesh has quit [Ping timeout: 252 seconds]
tiguser has quit [Ping timeout: 252 seconds]
prathame_ has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
prathamesh has joined #ruby
digitalcake has joined #ruby
tiguser has joined #ruby
prathame_ has joined #ruby
dawkirst has joined #ruby
Freddan962_ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
prathamesh has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
Freddan962 has quit [Ping timeout: 264 seconds]
<apeiros> shevy: and the other 9%?
dingus_khan has joined #ruby
chipotle has quit [Quit: cya]
<shevy> well these are usually written by professionals, have at least solid to good docs, are fine to use
<shevy> I guess one of the major hurdle is writing good docs
mijicd has quit [Remote host closed the connection]
Stalkr^ has quit [Quit: Leaving...]
<apeiros> it starts with the major hurdle to write docs
mikepack has quit [Remote host closed the connection]
anaeem1 has joined #ruby
dingus_khan has quit [Ping timeout: 252 seconds]
brtdv has joined #ruby
blackmes1 has joined #ruby
supermarin has quit [Remote host closed the connection]
amargherio has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mijicd has joined #ruby
alem0lars has quit [Quit: Going AFK...]
mikepack has joined #ruby
_sambao21 has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
ctp has quit [Ping timeout: 276 seconds]
sambao21 has quit [Ping timeout: 264 seconds]
dmitrykorotkov has joined #ruby
dmitrykorotkov is now known as Guest82622
Guest82622 has quit [Max SendQ exceeded]
codename539 has joined #ruby
smathieu has quit [Remote host closed the connection]
codename539 has quit [Max SendQ exceeded]
smathieu has joined #ruby
codename539 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
digitalcake has quit [Quit: Leaving.]
codename539 has quit [Max SendQ exceeded]
codename539 has joined #ruby
codename539 has quit [Max SendQ exceeded]
iamcalledrob has joined #ruby
User458764 has joined #ruby
foooobear_ has quit [Ping timeout: 276 seconds]
IcyDragon is now known as IceDragon
moritzs has joined #ruby
zcreative has joined #ruby
atzorvas has quit [Ping timeout: 276 seconds]
lw has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
lw has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
lw has joined #ruby
iamcalledrob has quit [Ping timeout: 240 seconds]
mgorbach has joined #ruby
arrubin has joined #ruby
SCommette has quit [Quit: SCommette]
mgorbach has quit [Read error: Connection reset by peer]
mgorbach has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
mgorbach has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
atzorvas has joined #ruby
mgorbach has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
atzorvas is now known as Guest14674
Alina-malina has joined #ruby
alem0lars has joined #ruby
dawkirst_ has joined #ruby
mgorbach has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
alem0lars has quit [Client Quit]
mgorbach has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
agjacome has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
Puria has quit [Ping timeout: 240 seconds]
mgorbach_ has joined #ruby
ndrei has joined #ruby
mgorbach_ has quit [Read error: Connection reset by peer]
mgorbach has joined #ruby
meatherly has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
mgorbach has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
mijicd has quit [Remote host closed the connection]
mgorbach has joined #ruby
mijicd has joined #ruby
Rainicorn has joined #ruby
dawkirst_ has quit [Remote host closed the connection]
RaptorJesus_ is now known as RaptorJesus
Sammael has joined #ruby
dawkirst has joined #ruby
yfeldblum has joined #ruby
mikepack has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
robbyoconnor has joined #ruby
zzzbra has quit [Read error: Connection reset by peer]
zzzbra_ has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
klaut has quit [Remote host closed the connection]
Rainicorn has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
spider-mario has joined #ruby
Megtastique has quit []
Soda has quit [Remote host closed the connection]
SCommette has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 258 seconds]
lunaticedit has joined #ruby
zcreative has quit [Quit: Computer has gone to sleep.]
RubyPanther has quit [Ping timeout: 264 seconds]
<pipework> shevy: Don't bother writing docs, just write moar code!
mercerist has quit [Quit: Computer has gone to sleep.]
nicoulaj has joined #ruby
lyanchih has quit [Ping timeout: 258 seconds]
banister has joined #ruby
<shevy> pipework but people need docs! didn't I try to tell you that all the time, how important good docs are ... :(
<centrx> Self-documenting code is best
banister has quit [Client Quit]
<pipework> shevy: No one needs docs. If your code just worked then no one would need extra documentation to explain it.
EatMulti has quit [Quit: leaving]
timonv has joined #ruby
<AlexRussia> oh moon of Alabama.....
<shevy> but how would they know what the code does?
<AlexRussia> shevy: heeeeeeeeeeeell-on, bro
<shevy> hi AlexRussia
centrx has quit [Quit: All this computer hacking is making me thirsty. I think I'll order a Tab.]
mr_snowf1ake has quit [Ping timeout: 240 seconds]
jimbow has joined #ruby
<Freddan962_> Freddan962 already in use? What? :P
centrx has joined #ruby
<pipework> shevy: Because they'd use it and it would do things.
<AlexRussia> shevy: i can ask you about advice?
<jimbow> is there a place where we can see how programming statements work?
<jimbow> i mean as a learning resource
<jimbow> because i fell like the code doesn't really get executed line by line
<shevy> pipework ok but it could just do about anything :)
<jimbow> it doesn't really get executed in order
<jimbow> from top to bottom
<AlexRussia> shevy: brrrrrrrrrrrrroooooooo
<shevy> Shutdown.now <--- removes all files in user home dir
<pipework> shevy: If it's written correctly then who cares?
<mikecmpb_> jimbow: lo lwat.
<jimbow> well i'm going to give you an example code
<jimbow> i thought all ruby programs get interpreted from top to bottom
<mikecmpb_> they do
<jimbow> i mean executed
<mikecmpb_> in a way
<shevy> AlexRussia you should ask in general into the channel
fantazo has joined #ruby
<shevy> and don't ask to ask
mary5030 has quit [Remote host closed the connection]
<shevy> and if you must ask someone
<shevy> ask apeiros
<shevy> :>
<Freddan962_> I need some help designing a GUI system based on hiearchy - anyone who could lend a helping hand?
<pipework> jimbow: Ruby can be written procedurally, yes.
<pipework> But not all of it is written as such.
sheperson_ has joined #ruby
<shevy> Freddan962_ try
timonv has quit [Ping timeout: 240 seconds]
<pipework> Freddan962_ do not try, do.
sheperson has quit [Ping timeout: 252 seconds]
<shevy> pipework had his sugar rush again
sheperson_ is now known as sheperson
<shevy> he is hyper-active like an ermine right now
dseitz has joined #ruby
<Freddan962_> Shevy, pipework: I can of course pull it off, but it might not be that good coding wise. Well, I will try and ask for someone to review it :- )
<shevy> ack
<shevy> you capitalize me
<shevy> but not pipework
<shevy> :(
<pipework> shevy: I'm case sensitive.
<Freddan962_> As said, I capitalize everything in the start of a sentence. Old habit :P
<shevy> you did not even say what kind of GUI you use Freddan962_
<shevy> pipework but why am I not!!!
zcreative has joined #ruby
<shevy> I think if anyone has to be capitalized that it ought to be Pipework
<shevy> it sounds mightier with a capital P anyway
SCommette has quit [Quit: SCommette]
fantazo has quit [Ping timeout: 245 seconds]
dseitz_ has joined #ruby
digitalcake has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<Freddan962_> shevy: I am thinking of having a class, GUI, which is in charge of all the content within the GUI. Then we have the class GUIItem, which is a base class for GUI items, basically render + default initialize etc. GUIButton inherits from GUIItem, with a member method on_hover, does this sound like a good solution?
<Freddan962_> shevy: got your name right! :D
RubyPanther has joined #ruby
dseitz has quit [Ping timeout: 240 seconds]
<segfalt> Freddan962_: You might want to take a look at how other toolkits do it, or use one of them if that makes sense.
kris has joined #ruby
<shevy> ok but
<shevy> Freddan962_ what is the specific toolkit... or do you try to abstract this entirely?
kris has quit [Client Quit]
<shevy> ruby gnome has a hierarchy you could look at
<Freddan962_> shevy: Well, I am running Ruby with the Gosu 2D library. From this I am trying to make a GUI 'system' for my game(s).
Rahul_Roy has joined #ruby
<shevy> here you can see part of that hierarchy
<shevy> Object -> GLib::Boxed -> Gst::Format
<Freddan962_> shevy: Ok thanks! :)
<shevy> let me give you the last some six or so
<shevy> Gtk::Widget -> Gtk::Container -> Gtk::Bin -> Gtk::Button -> Gtk::ToggleButton -> Gtk::CheckButton -> Gtk::RadioButton
<shevy> all cascading down
<shevy> Button is the parent for the buttons
linuxnewb2 has quit [Quit: Leaving]
<shevy> #gamebox uses gosu too btw
dingus_khan has joined #ruby
<Freddan962_> shevy: Thank you so very much! Exactly what I needed!
<shevy> but it is more akin to rails-similar evolution of games
kris has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
<Freddan962_> Anyone here having connection related issue when pushing to github today?
zcreative has quit [Quit: Computer has gone to sleep.]
Hanmac1 has joined #ruby
mgorbach has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 258 seconds]
mgorbach has joined #ruby
sski has joined #ruby
nari has quit [Ping timeout: 264 seconds]
Freddan962__ has joined #ruby
dingus_khan has quit [Ping timeout: 264 seconds]
endash has joined #ruby
mercerist has joined #ruby
moritzs has quit [Ping timeout: 252 seconds]
Morkel has joined #ruby
kris has quit [Quit: Computer has gone to sleep.]
SHyx0rmZ has joined #ruby
<havenwood> Freddan962_: i haven't been having any issues
Freddan962_ has quit [Ping timeout: 240 seconds]
<havenwood> Freddan962__: https://status.github.com/
mary5030 has joined #ruby
Freddan962__ has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
digitalcake has quit [Quit: Leaving.]
mgorbach has quit [Read error: Connection reset by peer]
grieg has joined #ruby
<AlexRussia> shevy: meah
toastynerd has joined #ruby
mgorbach_ has joined #ruby
dseitz_ is now known as dseitz
<shevy> wat
mgorbach_ is now known as mgorbach
prathame_ has quit [Remote host closed the connection]
prathamesh has joined #ruby
AntelopeSalad has quit []
mary5030 has quit [Remote host closed the connection]
naw has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
b1205 has joined #ruby
iamcalledrob has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
prathamesh has quit [Ping timeout: 240 seconds]
mgorbach has joined #ruby
sheperson has quit [Quit: sheperson]
_sambao21 has quit [Quit: Computer has gone to sleep.]
b1205 has quit [Ping timeout: 245 seconds]
iamcalledrob has quit [Ping timeout: 258 seconds]
aspires has joined #ruby
chabill has quit [Ping timeout: 245 seconds]
rurban_ has quit [Ping timeout: 240 seconds]
andrewjanssen has joined #ruby
andrewjanssen has quit [Client Quit]
chabill has joined #ruby
ndrei has quit [Quit: leaving]
Shidash has quit [Quit: Leaving.]
alpha123 has joined #ruby
sski has quit [Remote host closed the connection]
franzip has joined #ruby
ndrei has joined #ruby
andrewjanssen has joined #ruby
User458764 is now known as User458764_NotHe
yfeldblum has joined #ruby
rurban_ has joined #ruby
Xeago has joined #ruby
timonv has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
flori has quit [Remote host closed the connection]
flori has joined #ruby
andrewjanssen has quit [Client Quit]
mercerist has quit [Quit: Computer has gone to sleep.]
Guest14674 is now known as atzorvas
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RubyPanther has quit [Ping timeout: 258 seconds]
atzorvas is now known as Guest99647
mercerist has joined #ruby
User458764_NotHe has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
LadyRainicorn has joined #ruby
Guest99647 has left #ruby [#ruby]
shvelo has joined #ruby
pasties has quit [Ping timeout: 245 seconds]
smathieu has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 252 seconds]
smathieu has joined #ruby
schickung has quit [Quit: schickung]
timonv has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
skaflem has quit [Quit: Leaving]
schickung has joined #ruby
dwts has joined #ruby
kris has joined #ruby
ktosiek_ has joined #ruby
codeurge has joined #ruby
pskosinski has joined #ruby
klaut has joined #ruby
pasties has joined #ruby
lw has quit [Quit: s]
ktosiek has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
ktosiek_ has quit [Ping timeout: 240 seconds]
michaeldeol_ has joined #ruby
relix has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
michaeldeol_ has left #ruby [#ruby]
AntelopeSalad has joined #ruby
codeurge has quit [Ping timeout: 252 seconds]
mgorbach has joined #ruby
EatMulti has joined #ruby
RubyPanther has joined #ruby
ktosiek has joined #ruby
Rylee has quit [Excess Flood]
codeurge has joined #ruby
kris has quit [Ping timeout: 276 seconds]
Sigma00 has quit [Ping timeout: 240 seconds]
EatMulti has quit [Client Quit]
hl has quit [Ping timeout: 252 seconds]
EatMulti has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
sambao21 has quit [Ping timeout: 264 seconds]
robertpohl has joined #ruby
<robertpohl> hi
rurban_ has quit [Ping timeout: 240 seconds]
hl has joined #ruby
decoponio has quit [Quit: Leaving...]
<robertpohl> How can I debug a console app in RubyMine?
Rylee has joined #ruby
Sigma00 has joined #ruby
Freddan962 has joined #ruby
Meowtism has joined #ruby
Kabaka has joined #ruby
Es0teric has joined #ruby
Deele has joined #ruby
<centrx> robertpohl, I don't use an IDE, but the way to debug is look at the error message
<pipework> ^ :D
<robertpohl> @centrx :D and set a mental breakpoint?
brtdv has quit []
Meowtism has quit [Remote host closed the connection]
<centrx> robertpohl, There is a Ruby debugger for stepping through the code, but it's usually unnecessary
<centrx> robertpohl, There is also TracePoint which will record everything that happens in the program line by line. Also rarely necessary.
<toretore> robertpohl: you must be more specific. what do you mean by a "console app" and what do you mean by debug?
noop has quit [Ping timeout: 240 seconds]
<jhass> binding.pry to the rescue!
ctp has joined #ruby
<centrx> s/TracePoint/Tracer
dingus_khan has joined #ruby
<robertpohl> @toretore I’d like to set a breakpoint and look at all values to see that all is good
yacks has quit [Quit: Leaving]
<toretore> so the question is "how do i set a breakpoint in rubymine?"?
t0rc has joined #ruby
<robertpohl> @toretore yes, thats right
<robertpohl> @toretore and attach the debugger to my console app that is
rurban_ has joined #ruby
<pipework> jhass: I've made a fun little snippet that takes the project name and sets it up in two procs and calls Pry.start passing in a binding.
<pipework> It's pretty neat.
<pipework> Pry's ruby interface is pretty easy and simple.
<toretore> is there another question there - "how do i run my app from rubymine?"?
Sigma00 has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
Rylee has quit [Excess Flood]
donnoc_ has joined #ruby
dingus_khan has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
t0rc has left #ruby [#ruby]
Kabaka has quit [Ping timeout: 245 seconds]
<robertpohl> @toretore figured it out :) forgive my noobness
m8 has joined #ruby
hl has quit [Ping timeout: 245 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m8 has quit [Max SendQ exceeded]
<AlexRussia> if someone too interesting in that, welcome! https://github.com/AlexTalker/lightningrb
jack_rabbit has joined #ruby
m8 has joined #ruby
cashnguns has quit [Ping timeout: 252 seconds]
Vivekananda has joined #ruby
maximski has joined #ruby
<havenwood> AlexRussia: a BSD licensed readme?
<AlexRussia> havenwood: em, what?
SCommette has joined #ruby
<centrx> He's saying this is a new project, Welcome to Join!
<toretore> i'm so going to fork that readme
<centrx> not here is this awesome new README file I created :)
<AlexRussia> havenwood: i added readme for overview idea and license for make divides
<havenwood> How do we run README.md?
<havenwood> :P
<AlexRussia> havenwood: github maybe?
kitak has joined #ruby
<havenwood> AlexRussia: I've never use Lighting, good stuff?
<AlexRussia> i forget good converter markdown written on haskell :)
<havenwood> used*
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Sthebig has quit [Ping timeout: 240 seconds]
<AlexRussia> havenwood: sometime, i dont like somethink like Gnome software and KDE for calendars, i some lose with that.Lightning is one software, what i long use gor calendat
<AlexRussia> calendar*
noop has joined #ruby
<AlexRussia> centrx: you've right :)
Sigma00 has joined #ruby
Sigma00 is now known as Guest71458
<AlexRussia> i paste that here because while i going to dream, you maybe push some fun stuffs and new ideas.....
<AlexRussia> for not loss time
<AlexRussia> you understand me?
<havenwood> i think so, except the 'loss time' part
iamcalledrob has joined #ruby
<AlexRussia> havenwood: s/loss/drop/ more understood?
sinkensabe has joined #ruby
mijicd has quit [Remote host closed the connection]
fresham has joined #ruby
Guest71458 has quit [Ping timeout: 264 seconds]
omosoj has quit [Ping timeout: 240 seconds]
marr has joined #ruby
Sthebig has joined #ruby
<havenwood> AlexRussia: for scheduling, no losing track of appointments - gotcha
<havenwood> not*
aspires has quit []
iamcalledrob has quit [Ping timeout: 240 seconds]
<havenwood> if that's what you mean
* havenwood needs more coffee.
<AlexRussia> that too
<AlexRussia> havenwood: try Puerh :D
<AlexRussia> havenwood: that make you more energy man :)
<AlexRussia> okay, i'll should be sleep, gn
kitak_ has joined #ruby
<AlexRussia> remember: i watch pull request's morning
hl has joined #ruby
<havenwood> okay, i just understood
<havenwood> AlexRussia: g'night!
aspires has joined #ruby
Xeago has joined #ruby
ritz4_5 has quit [Remote host closed the connection]
kitak_ has quit [Remote host closed the connection]
ritz4_5 has joined #ruby
JBreit has joined #ruby
Macaveli has joined #ruby
Hanmac has joined #ruby
JBreit has left #ruby [#ruby]
sleepee has quit [Quit: Leaving]
sepp2k1 has joined #ruby
hl has quit [Ping timeout: 245 seconds]
sunya7a has quit [Ping timeout: 276 seconds]
Sthebig has quit [Ping timeout: 255 seconds]
ritz4_5 has quit [Ping timeout: 240 seconds]
bmurt has quit []
timonv has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<dRbiG> anyone recalls a gem for linear scaling e.g. turn a number from 0..1 into a number from -1..1
donnoc_ has quit [Ping timeout: 240 seconds]
fantazo has joined #ruby
naw has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
JokerDoom has joined #ruby
ktosiek has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
maximski has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 252 seconds]
noop has quit [Read error: Connection reset by peer]
<shevy> I dont recall such a gem
<centrx> dRbiG, I think that should be pretty easy to implement in plain Ruby with multiplication and addition
<centrx> e.g. x * 2 - 1
kitak has quit [Remote host closed the connection]
<centrx> that's all it is for your example
kitak has joined #ruby
JokerDoom has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 276 seconds]
<dRbiG> sure, i'll whip my own
Hanmac1 has quit [Ping timeout: 252 seconds]
allen has joined #ruby
AlexRussia_Mobil has joined #ruby
lukec has quit [Quit: lukec]
sambao21 has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
AlexRussia_Mobil has quit [Remote host closed the connection]
combusean has joined #ruby
AlexRussia_m has joined #ruby
<AlexRussia_m> i'm laugh
blackmes1 has quit [Quit: WeeChat 0.4.3]
jimbow has quit [Quit: jimbow]
robbyoconnor has quit [Quit: Konversation terminated!]
<AlexRussia_m> mate tell other mate:why you read this old stuff? that posted 10 hours ago!
dawkirst has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 276 seconds]
<shevy> ooookayyyyy ....
andrewjanssen has joined #ruby
sambao21 has joined #ruby
<AlexRussia_m> shevy
<AlexRussia_m> .that not fun?
lethjakman has joined #ruby
<shevy> eh
Sigma00- has joined #ruby
<AlexRussia_m> why you said 'eh'?
<shevy> meh
<AlexRussia_m> lol
<pipework> bleh
hl has joined #ruby
Sthebig has joined #ruby
jmkeyes has joined #ruby
<AlexRussia_m> neh
ritz4_5 has joined #ruby
jmkeyes has left #ruby [#ruby]
andrewlio has joined #ruby
<shevy> meh
Hanmac has joined #ruby
Rylee has joined #ruby
sinkensabe has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
sinkensabe has joined #ruby
meatherly has quit [Remote host closed the connection]
saarinen has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
justinxreese has joined #ruby
vitorbaptista has quit [Remote host closed the connection]
ritz4_5 has quit [Ping timeout: 240 seconds]
nicoulaj has quit [Remote host closed the connection]
aspires has quit []
<AlexRussia_m> nufs
sinkensabe has quit [Ping timeout: 240 seconds]
robertpohl has quit [Quit: robertpohl]
NET||abuse has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby
saarinen has joined #ruby
JokerDoom has joined #ruby
combusean has quit [Ping timeout: 258 seconds]
ndrei has joined #ruby
jackneill has quit [Remote host closed the connection]
havenwood has quit []
hl has quit [Ping timeout: 255 seconds]
papercode has joined #ruby
papercode has quit [Client Quit]
combusean has joined #ruby
papercode has joined #ruby
dingus_khan has quit [Ping timeout: 240 seconds]
moneydouble has joined #ruby
Sigma00- is now known as Sigma00
lethjakman has quit [Ping timeout: 240 seconds]
Atttwww has joined #ruby
Takle has quit [Remote host closed the connection]
dilated_dinosaur has joined #ruby
iamayam has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
hl has joined #ruby
lethjakman has joined #ruby
bluenemo has quit [Quit: Verlassend]
Kabaka has joined #ruby
LadyRainicorn has quit [Quit: Bye]
aspires has joined #ruby
iamayam has joined #ruby
<Nilium> Just realized I should probably rename my VM since its acronym is RVM and that'd just make it ambiguous
andrewlio has quit [Ping timeout: 258 seconds]
<Nilium> Bah humbug.
grieg has quit [Ping timeout: 245 seconds]
aspires has quit [Client Quit]
sqwirl has joined #ruby
iamcalledrob has joined #ruby
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OffTheRails has quit [Remote host closed the connection]
r0ast has joined #ruby
Martxel has quit [Read error: Connection reset by peer]
andrewjanssen has quit [Quit: Leaving...]
kyb3r_ has joined #ruby
iamcalledrob has quit [Ping timeout: 264 seconds]
schickung has quit [Quit: schickung]
mengu has quit []
lw has joined #ruby
jmeeuwen_ has joined #ruby
enebo has quit [Quit: enebo]
jmeeuwen has quit [Ping timeout: 264 seconds]
kies has quit [Quit: baaaaiiiiiiiiiii~]
jmeeuwen_ is now known as jmeeuwen
kies has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
saarinen has joined #ruby
spider-mario has quit [Remote host closed the connection]
kies has quit [Client Quit]
kies has joined #ruby
Shidash has joined #ruby
agjacome has quit [Quit: leaving]
meatherly has joined #ruby
george2|chakra has joined #ruby
andrewlio has joined #ruby
george2 has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
dilated_dinosaur has quit [Ping timeout: 276 seconds]
meatherly has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
abstrakt has joined #ruby
thesheff17_ has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
thesheff17 has quit [Disconnected by services]
shvelo has quit [Ping timeout: 245 seconds]
thesheff17_ is now known as thesheff17
mr_snowf1ake has joined #ruby
dawkirst has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
andrewlio has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
Megtastique has joined #ruby
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has joined #ruby
bakflash has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 252 seconds]
RubyPanther has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
banister has joined #ruby
jhass is now known as jhass|off
try has joined #ruby
AlexRussia_m has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
chrisseaton has joined #ruby
frosgy has joined #ruby
abstrakt has quit [Quit: Leaving]
akonny has quit [Quit: akonny]
toastynerd has joined #ruby
lw has quit [Quit: s]
ritz4_5 has joined #ruby
frogssgy has quit [Ping timeout: 245 seconds]
toastynerd has quit [Read error: No route to host]
Megtastique has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
MindfulMonk has quit [Ping timeout: 245 seconds]
andrewlio has joined #ruby
Morkel has quit [Quit: Morkel]
pskosinski has quit [Quit: Til rivido Idisti!]
yokel has quit [Ping timeout: 252 seconds]
RubyPanther has joined #ruby
ritz4_5 has quit [Ping timeout: 252 seconds]
meatherly has quit [Ping timeout: 240 seconds]
dingus_khan has joined #ruby
freggles has quit [Remote host closed the connection]
Megtastique has joined #ruby
shvelo has joined #ruby
mijicd has joined #ruby
dingus_khan has quit [Ping timeout: 240 seconds]
[LustFul]V33nA has joined #ruby
[LustFul]V33nA has left #ruby [#ruby]
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
sambao21 has quit [Ping timeout: 258 seconds]
r0ast_ has joined #ruby
claymore has quit [Quit: Leaving]
SegFaultAX has quit [Excess Flood]
_JamieD_ has quit [Quit: _JamieD_]
SegFaultAX has joined #ruby
sski has joined #ruby
IceDragon has quit [Remote host closed the connection]
IceDragon has joined #ruby
r0ast has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
mikecmpb_ is now known as mikecmpbll
Hanmac has quit [Ping timeout: 264 seconds]
sski has quit [Ping timeout: 252 seconds]
sunya7a has joined #ruby
iamcalledrob has joined #ruby
sambao21 has joined #ruby
r0ast_ has quit []
kaspergrubbe has quit [Remote host closed the connection]
simono has joined #ruby
iamcalledrob has quit [Ping timeout: 258 seconds]
agrinb has joined #ruby
noob101 has quit [Quit: Page closed]
MindfulMonk has joined #ruby
meatherly has joined #ruby
fantazo has quit [Ping timeout: 252 seconds]
chabill has quit [Quit: WeeChat 1.0-dev]
atraylen has quit [Ping timeout: 276 seconds]
lukec has joined #ruby
yokel has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
noob101 has joined #ruby
<noob101> shevy, centrx, Guess what?
coderhs has quit [Ping timeout: 264 seconds]
agrinb_ has joined #ruby
codeurge has quit [Ping timeout: 258 seconds]
agrinb_ has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
agrinb has joined #ruby
<segfalt> what?! don't leave me hanging.
codeurge has joined #ruby
combusean has quit [Ping timeout: 264 seconds]
<noob101> Hi segfalt
olivier_bK has joined #ruby
parduse has quit [Ping timeout: 245 seconds]
<noob101> segfalt so basically, guys such as havenwood, RubyPanther, centrx and shevy we're helping me with a game I was creating. I was working on it for my possible job and I got news today
stringy has joined #ruby
<noob101> I didn't get the job ; _ ;
<segfalt> noooooes
Takle has joined #ruby
Azzurrio has joined #ruby
eka has joined #ruby
<noob101> Their spots were filled, that's what they said but it's ok. Q_Q *sniffle*
eka has quit [Client Quit]
parduse has joined #ruby
parduse has joined #ruby
parduse has quit [Changing host]
dawkirst has joined #ruby
brunops has joined #ruby
gverri has joined #ruby
gverri has quit [Max SendQ exceeded]
codeurge has quit [Ping timeout: 252 seconds]
combusean has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
dawkirst has quit [Ping timeout: 252 seconds]
andrewjanssen has joined #ruby
andrewjanssen has quit [Client Quit]
Azzurrio has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewlio has quit [Quit: Leaving.]
Freddan962 has quit [Quit: Leaving]
keen_____ has quit [Ping timeout: 240 seconds]
kotk has quit [Ping timeout: 276 seconds]
<centrx> noob101, bummer
<centrx> noob101, was it a summer internship?
<centrx> /summer job
codeurge has joined #ruby
csavola has joined #ruby
codeurge has quit [Remote host closed the connection]
codeurge has joined #ruby
kure_ has joined #ruby
Guest42916 has joined #ruby
parduse is now known as Guest38652
Guest42916 is now known as parduse
ritz4_5 has joined #ruby
fcrios145 has joined #ruby
fcrios145 has left #ruby ["Konversation terminated!"]
parduse is now known as Guest47072
shvelo has quit [Ping timeout: 240 seconds]
Guest38652 has quit [Ping timeout: 240 seconds]
fschuindt has joined #ruby
sinkensabe has joined #ruby
chipotle has joined #ruby
hakunin has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
hakunin has joined #ruby
kure_ has left #ruby [#ruby]
kirun has quit [Quit: Client exiting]
codeurge has quit [Read error: Connection reset by peer]
keen_____ has joined #ruby
ritz4_5 has quit [Ping timeout: 240 seconds]
lunaticedit is now known as lunaticedit\afk
sinkensabe has quit [Ping timeout: 252 seconds]
hakunin has quit [Ping timeout: 276 seconds]
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
craigp has joined #ruby
Es0teric has joined #ruby
try has quit [Ping timeout: 264 seconds]
b1205 has joined #ruby
KanKava_ has quit [Quit: leaving]
craigp has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
centrx has quit [Quit: All this computer hacking is making me thirsty. I think I'll order a Tab.]
SCommette has joined #ruby
moneydouble has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ToH has joined #ruby
VinDH has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
IceDragon has joined #ruby
n_blownapart has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
jheg_ has quit [Ping timeout: 252 seconds]
lambo has joined #ruby
iamcalledrob has joined #ruby
craigp has joined #ruby
kitak has joined #ruby
dangerousdave has quit [Remote host closed the connection]
moritzs has joined #ruby
iamcalledrob has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
ndrei has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
Steve21 has joined #ruby
glenfe has quit [Ping timeout: 276 seconds]
meatherly has quit [Ping timeout: 252 seconds]
Arkaniad|Laptop has quit [Ping timeout: 252 seconds]
b1205 has quit [Ping timeout: 258 seconds]
<Steve21> I am using MongoLab with Ruby, and I am getting a Unauthorized error when running a Aggregation framework.
<Steve21> anything use mongolab and know of any restrictions with the sandbox?
Nexus_x1 has joined #ruby
<lambo> hi! i could use some help dealing with input with Curses#getstr without blocking the script i tried some stuff with fiber but im stuck if some1 would mind to take a quick look : http://pastie.org/9213980
SegFaultAX has quit [Excess Flood]
stringy has quit [Quit: Page closed]
atomicwolf is now known as epochwolf
franzip has quit [Quit: ...]
SegFaultAX has joined #ruby
roolo has joined #ruby
grzywacz has joined #ruby
JoeGaudet has joined #ruby
dilated_dinosaur has joined #ruby
jheg has joined #ruby
kitak has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
poikon has joined #ruby
poikon has quit [Client Quit]
poikon has joined #ruby
roolo has quit [Ping timeout: 276 seconds]
lethjakman has quit [Ping timeout: 258 seconds]
digitalcake has joined #ruby
Megtastique has quit [Ping timeout: 264 seconds]
b1205 has joined #ruby
randomnick_ has quit [Quit: Leaving]
Soliah has joined #ruby
combusean has quit [Ping timeout: 264 seconds]
ToH has quit []
kitak has joined #ruby
ritz4_5 has joined #ruby
leyluj has joined #ruby
predator217 has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
yoshiki__ has joined #ruby
jheg has left #ruby [#ruby]
leyluj has quit []
digitalcake has quit [Quit: Leaving.]
predator117 has quit [Ping timeout: 264 seconds]
hakunin has joined #ruby
dilated_dinosaur has quit [Ping timeout: 258 seconds]
lambo has quit [Quit: leaving]
kitak has quit [Remote host closed the connection]
b1205 has quit [Ping timeout: 252 seconds]
kitak has joined #ruby
sunya7a has quit [Ping timeout: 240 seconds]
lambo has joined #ruby
axilla has quit [Ping timeout: 245 seconds]
jrhe has quit [Quit: Connection closed for inactivity]
<noob101> centrx, yes it was. Sorry, I am actually packing clothes cause I am leaving this home.
himsin has quit [Quit: himsin]
<noob101> Double bummer
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Changing host]
linuxnewb2 has joined #ruby
iamcalledrob has joined #ruby
moneydouble has joined #ruby
brunops has quit [Ping timeout: 252 seconds]
thomasxie has joined #ruby
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
combusean has joined #ruby
lambo has quit [Quit: leaving]
thomasxie has quit [Remote host closed the connection]
iamcalledrob has quit [Ping timeout: 264 seconds]
yoshiki__ has quit [Ping timeout: 252 seconds]
thomasxie has joined #ruby
moneydouble has quit [Quit: Leaving.]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has joined #ruby
lw has joined #ruby
moneydouble has joined #ruby
hakunin has quit [Ping timeout: 245 seconds]
kitak_ has joined #ruby
kaspergrubbe has joined #ruby
meatherly has joined #ruby
nfk has quit [Quit: yawn]
moneydouble has quit [Client Quit]
linuxnewb2 has quit [Quit: Leaving]
ritz4_5 has quit [Remote host closed the connection]
ritz4_5 has joined #ruby
codeurge has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
combusean has quit [Ping timeout: 252 seconds]