apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
DonOtreply has joined #ruby
Jetchisel has joined #ruby
<Limix> Hi all, is it possible to add env variables into travis and then grab them inside the travis.yml? Example notifications for slack or similar. I want to store that as an env variable in travis so it’s not in the repo
<Limix> or something like: <%= ENV["REDEPLOYMENT_HOOK"] %> in the travil.yml
TheRinger has joined #ruby
ptrrr has joined #ruby
_1_Andy has joined #ruby
<_1_Andy> Hola
_1_Andy has left #ruby [#ruby]
TgMts has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
Beoran_ has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
bruno- has joined #ruby
Beoran has quit [Ping timeout: 255 seconds]
Senjai has quit [Ping timeout: 244 seconds]
felixjet_ has quit [Ping timeout: 255 seconds]
jlast has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
wldcordeiro has joined #ruby
bonhoeffer has joined #ruby
DonOtreply has joined #ruby
bruno- has joined #ruby
felixjet has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
piotrj has joined #ruby
ponga has joined #ruby
jlast has joined #ruby
multi_io_ has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
piotrj_ has joined #ruby
zorak8 has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
bwilson has quit [Ping timeout: 255 seconds]
Senjai has joined #ruby
shaquile has quit [Ping timeout: 246 seconds]
ponga has quit [Ping timeout: 265 seconds]
multi_io has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 245 seconds]
<jhass> Limix: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
piotrj has quit [Ping timeout: 255 seconds]
<Limix> jhass, ok
<Limix> jhass, any ideas though?
<Limix> btw just posted the following in angularjs: so if someone wanted to be mean, would it be possible to look at an open source projects travis.yml, if there was a redeployment hook, they could, even is encrypted, they could just keep hitting the hook and causing a redeploy?
shaquile has joined #ruby
starfox_sf has quit [Ping timeout: 250 seconds]
byprdct has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
davejacobs has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
iMe has quit [Ping timeout: 265 seconds]
TgMts has joined #ruby
iMe has joined #ruby
perturbation has joined #ruby
TheNet has quit [Quit: Leaving...]
davejacobs has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
zyxelthrone has quit [Ping timeout: 245 seconds]
avrc has quit [Quit: this channel is bakas]
Senjai has quit [Ping timeout: 246 seconds]
KnownSyntax has quit [Quit: Connection closed for inactivity]
CpuID2 has joined #ruby
djellemah has joined #ruby
wldcordeiro has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
tomengland has quit [Quit: Leaving...]
DadoCe has joined #ruby
adriancb has joined #ruby
li0ninawhat has quit [Remote host closed the connection]
lioninawhat has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
DonOtreply has quit [Quit: DonOtreply]
iMe has quit [Ping timeout: 252 seconds]
zyxelthrone has joined #ruby
charliesome has joined #ruby
iMe has joined #ruby
karmatr0n has quit [Remote host closed the connection]
jenrzzz has joined #ruby
CpuID2 has quit [Quit: This computer has gone to sleep]
marr has quit [Ping timeout: 245 seconds]
arescorpio has joined #ruby
DadoCe has quit [Ping timeout: 245 seconds]
ptrrr has quit [Quit: ptrrr]
swgillespie has joined #ruby
Troy^ has joined #ruby
bruno- has joined #ruby
swgillespie has quit [Client Quit]
Senjai has joined #ruby
Alives has joined #ruby
<Alives> whats wrong with this line? s = "%s %s %s %f°C" % [d['serial'], d['type'], d['build'], d['battery']['temperature'].to_f / 10]
<Alives> i cant get it to work
pu22l3r has joined #ruby
<Alives> learning ruby from a python perspective
<blizzy> you don't need the [] around the entire list
lioninawhat has quit [Remote host closed the connection]
<Alives> ah ok
bruno- has quit [Ping timeout: 250 seconds]
jc__ has joined #ruby
<Alives> well it has to span multiple lines bc its so long... do i use () around it then?
jc__ has quit [Client Quit]
<blizzy> you don't have to
<blizzy> but () works I think.
Megtastique has quit []
pu22l3r_ has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
<miah> () is generally optional in ruby
<miah> i tend to use () around large code blocks just to prevent readers from being confused
jc__ has joined #ruby
dfinninger has joined #ruby
jc__ has quit [Client Quit]
gfawcettpq has joined #ruby
freerobby has joined #ruby
jc__ has joined #ruby
jerry_tao has joined #ruby
duncannz has quit [Ping timeout: 246 seconds]
<Alives> ok ill try that
nfk has quit [Quit: yawn]
<Alives> syntastic keeps saying this though: unexpected $end, expecting keyword_end
jc__ has quit [Client Quit]
jc__ has joined #ruby
<blizzy> hmm.
plainprogrammer has joined #ruby
mikecmpbll has quit [Quit: ciao.]
<blizzy> Alives, think you can gist the line and the code around it?
CpuID2 has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
jc__ has quit [Client Quit]
<Alives> blizzy: sure
jc__ has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
chishiki has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Remote host closed the connection]
<Alives> this is for puppet
piotrj_ has quit []
fabrice31 has joined #ruby
iMe has joined #ruby
<demophoon> Alives: I think you have one too many ends
Senjai has quit [Ping timeout: 255 seconds]
Limix has quit [Quit: Limix]
<Alives> ah
<Alives> derp
<blizzy> also, Alives
<demophoon> your File.open doesn;t need an end :P
<blizzy> I would use "#{variable}" instead
<Alives> demophoon: yeah youre right!
<Alives> blizzy: ah ok
yokel has quit [Ping timeout: 244 seconds]
plainprogrammer has quit [Remote host closed the connection]
<Alives> blizzy: how do i do that for the math on the battery temp variable at the end?
<Alives> can i do like #{var / 10} ?
<demophoon> blizzy: possible noob question, why use "#{variable}" over "%s"?
<blizzy> demophoon, well, usually #{} is preferred.
<Alives> demophoon: i think its more readable, but i like hte %s from python
yokel_ has quit [Ping timeout: 255 seconds]
<miah> you can do #{var / 10} yes
<demophoon> blizzy, fair enough. Alives I'm also coming from the python world :P
Jetchisel has joined #ruby
<miah> %s and such works in ruby; if you use sprintf http://ruby-doc.org/core-1.9.3/Kernel.html#method-i-sprintf
fabrice31 has quit [Ping timeout: 244 seconds]
<miah> otherise "#{ foo }" is the standard string interplation
<miah> if 'foo' is a string you can also do the usual 'string' + foo
<Alives> line 9 gives me: unexpected $end, expecting ')'
perturbation has quit [Ping timeout: 245 seconds]
yokel has joined #ruby
yokel_ has joined #ruby
ninjazach has joined #ruby
[gmi] has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<jhass> you're sure that's the code you actually run?
tunaCanBruh has joined #ruby
<jhass> btw data = JSON.parse File.read("/tmp/adb_device_info")
<Alives> oh nice
<jhass> in your each is actually a .map
<jhass> *and
<Alives> i dont follow.. what should it be?
<Alives> oh i see
<jhass> >> [{a: 1}, {a: 2}].map {|datapoint| "#{datapoint[:a]}" }
<eval-in__> jhass => ["1", "2"] (https://eval.in/286036)
<jhass> so info = data.map {|datapoint| ...
KnownSyntax has joined #ruby
<Alives> ah nice!
jlast has quit [Ping timeout: 245 seconds]
russkd has joined #ruby
<Alives> thanks for the help everyone
tunaCanBruh has quit [Ping timeout: 256 seconds]
zachrab has joined #ruby
Senjai has joined #ruby
<miah> <3
TgMts has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
ponga has joined #ruby
zmisc has joined #ruby
iMe has quit [Ping timeout: 256 seconds]
TgMts has joined #ruby
russkd has left #ruby [#ruby]
iMe has joined #ruby
jc__ has left #ruby [#ruby]
zachrab has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 245 seconds]
ponga has quit [Ping timeout: 252 seconds]
Motoservo has joined #ruby
ninjazach has quit [Ping timeout: 245 seconds]
monod has quit [Quit: Sto andando via]
Lemur has quit [Remote host closed the connection]
Lemur has joined #ruby
awerush has quit [Ping timeout: 256 seconds]
dmbennett has joined #ruby
chishiki has joined #ruby
<dmbennett> is there a ruby for beginners channgel?
<dmbennett> channel*
jerry_tao has quit [Ping timeout: 250 seconds]
jerry_tao has joined #ruby
jbw_ has joined #ruby
<zmisc> No, there is not. Sorry
<dmbennett> thanks
Guest123 has joined #ruby
Lemur has quit [Ping timeout: 245 seconds]
zmisc has quit [Remote host closed the connection]
<blizzy> dam, he left.
<blizzy> I would of said #learnprogramming
<dmbennett> meh, no big worry
<dmbennett> I'm putzing around, learning to make api calls with httparty
<blizzy> nice.
jbw__ has quit [Ping timeout: 264 seconds]
Senjai has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Ping timeout: 250 seconds]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> there actually is #new2ruby
<dmbennett> thanks!
<jhass> or something like that
lioninawhat has joined #ruby
<jhass> double hash, ##new2ruby
<dmbennett> hahaha no one is home
<dmbennett> oh
<dmbennett> join /##new2ruby
<jhass> but we totally welcome noob questions here too
iwishiwerearobot has joined #ruby
<dmbennett> I appreciate that
Hobogrammer has quit [Ping timeout: 264 seconds]
iMe has quit [Ping timeout: 250 seconds]
silkfox has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
iwishiwerearobot has quit [Ping timeout: 246 seconds]
iMe has joined #ruby
<shevy> nooo :(
<shevy> stay here, ask questions, don't let jhass answer it all
<shevy> he is just selfish
<shevy> we promise to be faster and prettier than jhass!
<jhass> I do not hang out in ##new2ruby much tbh
<jhass> the chatter to topic ratio is even higher than here
robbyoconnor has joined #ruby
<shevy> lies!
<shevy> we are never off topic here
<jhass> right....
<jhass> let's play your game
<jhass> 00:05 <shevy> is there something like that too, where you can write a letter, and the content of that letter also becomes some kind of mini-code on the lower right side ...
<shevy> that was an exception
Senjai has joined #ruby
<jhass> 2015-01-20 17:36:11 shevy ok who wants to be spanked
<shevy> now now there
<jhass> 2015-01-28 15:49:25 shevy who wants to be spanked
<shevy> man
Spami has quit [Quit: This computer has gone to sleep]
<shevy> do you like log everything?
<work_op> dont you?
<lampd1> lolz
<waxjar> #ruby is publicly logged ;)
<shevy> not really, I kinda have just one neverending scroll bar here without timestamps and such
<shevy> well "never ending"
<shevy> I can scroll up to: <Timgauthier> aloha!
<shevy> no idea when that happened
<shevy> and please, don't try to find out :)
paulfm has joined #ruby
alameow has joined #ruby
<work_op> i log everything and i read random days when im bored
<alameow> hello
<work_op> irc has hidden gems sometimes
<shevy> irc can be super useful for learning secret snippets
<shevy> especially when havenwood is about
<jhass> 2015-02-13 19:26:34 shevy pr0n!
<shevy> you can't generalize on that
<shevy> I think I actually said that in reply to apeiros about some UUID data storage thingy!
Troy^ has joined #ruby
<shevy> hi alameow
<jhass> no idea, I grepped without context :P
<alameow> the passwd variable doesn't work,
<alameow> i have no idea
<jhass> alameow: "doesn't work", you can do better than that, I'm sure
<jhass> alameow: my pc doesn't work, how fix?
<jhass> that's the kind of question you're asking currently ;)
<alameow> when i run this code , it let me to submit the password
<shevy> well
<alameow> like this :root@192.168.13.254's password:
<weaksauce> alameow don't use the keyword argument
<weaksauce> or your password is wrong
<alameow> i use puts passwd , it give me the right password
robustus has quit [Ping timeout: 255 seconds]
<jhass> mmh, password auth
<alameow> [root@puppetmaster ruby]# ruby test.rb
<jhass> where are my free servers?
<jhass> :P
<alameow> redhat
dixie__ has quit [Quit: later everyone. I'm headed home.]
<alameow> root@192.168.13.254's password:
<jhass> did you try what weaksauce said yet?
<alameow> <weaksauce> alameow don't use the keyword argument , i don't understand
<weaksauce> sigh. what you think is the correct password might be wrong. remove the :password =>
robustus|Off has joined #ruby
dfinninger has joined #ruby
robustus|Off is now known as robustus
zyxelthrone has quit [Quit: WeeChat 1.1.1]
iMe has quit [Ping timeout: 265 seconds]
<alameow> this code works well.http://pastebin.com/cNkr4R1n
Senjai has quit [Ping timeout: 245 seconds]
<jhass> seriously now
CpuID2 has quit [Quit: This computer has gone to sleep]
<jhass> where are my free servers
<alameow> but i want use variable replace password,not string
<jhass> bluehost, mmh
iMe has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
mroach has joined #ruby
<alameow> and this is my serverlist.csv file
<alameow> 192.168.13.254,root,redhat
<jhass> boo, local network
zyxelthrone has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silkfox has quit [Ping timeout: 245 seconds]
<jhass> alameow: use p, not puts for debug output
<alameow> ok, i give a try
<alameow> "redhat\n"
<jhass> there you go
<alameow> en
<alameow> yes
<alameow> why
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
<alameow> \n
<jhass> probably the "," where it expects a hash
<jhass> I'm rather surprised that doesn't blow up in the first place
<alameow> you are right
<alameow> it because the ","
<jhass> what's your ruby version?
<alameow> i give 192.168.13.254,root,password,
gsd has joined #ruby
<alameow> it works
<alameow> ruby 1.8.7
<jhass> ah, that's why it doesn't blow up
<jhass> it's still the old CSV
Senjai has joined #ruby
<jhass> btw ruby 1.8.7 EOL'd
<jhass> you won't get any security updates if new issues are found
<jhass> you should update
jlast has joined #ruby
Guest123 has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soda has quit [Remote host closed the connection]
<alameow> very thanks <jhass> <weaksauce>,you are handsome
<jhass> rs sounds like row separator
<DogHackit> If I want to look through and array of instances and return the one with an attribute or false, how would I do that?
<jhass> not column separator
TgMts_ has joined #ruby
<jhass> DogHackit: what did you try so far?
<DogHackit> found = @tally.find { @assignment_name == assignment }, but it seems to set everythign to found
<jhass> yes
<jhass> @assignment_name is always the same
<jhass> it doesn't magically change in the block
<jhass> find with ignoring the block param makes little sense in the first place
<DogHackit> I want to compare it to assignment in def update_grade(assignment, points)
<weaksauce> DogHackit gist the method
jlast has quit [Ping timeout: 245 seconds]
TgMts has quit [Ping timeout: 255 seconds]
<weaksauce> like jhass said you should be using the block param
amystephen has quit [Quit: amystephen]
coderhs has joined #ruby
coderhs has quit [Client Quit]
jlast has joined #ruby
Limix has joined #ruby
<jhass> array.find {|item| ... }
<jhass> that's your start point
<jhass> inside the block you need to do something with item
<jhass> and that should return true if you want that item returned
<DogHackit> OK, I tried that too. Everything changes whether it matches or not
<jhass> show "that"
ponga has joined #ruby
sankaber has joined #ruby
CpuID2 has joined #ruby
hamakn has joined #ruby
perturbation has joined #ruby
<weaksauce> >> [1,2,2,3].find {|x| x==2}
<eval-in__> weaksauce => 2 (https://eval.in/286063)
<weaksauce> >> [1,2,2,3].select {|x| x > 1 }
<eval-in__> weaksauce => [2, 2, 3] (https://eval.in/286064)
<jhass> >> %w(foo bar baz).find {|x| x[1] == 'a' }
<eval-in__> jhass => "bar" (https://eval.in/286065)
jlast has quit [Ping timeout: 245 seconds]
iMe has quit [Ping timeout: 245 seconds]
athan has quit [Remote host closed the connection]
<DogHackit> This is the gist of it...
TgMts_ has quit [Quit: No Ping reply in 180 seconds.]
<jhass> we..
ponga has quit [Ping timeout: 265 seconds]
<jhass> well, that ignores the assignment parameter of your method
<jhass> since your block param shadows that
hamakn has quit [Remote host closed the connection]
iMe has joined #ruby
<jhass> so it always updates the same or always returns nil and should give you a NoMethodError in that case
<DogHackit> found = @tally.find { |assignment| @assignment_name == @assignment }
<jhass> so it's equal to just @assignment_name.points_received = point
<DogHackit> That updates everything, sorry
<jhass> no, that line does no modifications at all
<jhass> and it either returns nil or always the first item
<DogHackit> So, found will either equal true or false
jonr22 has joined #ruby
<jhass> no
<jhass> unless @tally includes true or false
paradisaeidae has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
<DogHackit> No, @tally is an array of Grades
<jhass> and if it would, how would found.points_received= work
Megtastique has joined #ruby
agrinb has joined #ruby
<jhass> use the p() method to verify the values of all involved variables are what you think they are
ecksit has joined #ruby
<jhass> p(@assignment_name)
TgMts has joined #ruby
Kricir has joined #ruby
<weaksauce> DogHackit find returns the value of the true or false element. so ["test"].find {|x| x == "test"} would return "test"
<jhass> puts "#{@assignment_name.inspect} == #{@assignment.inspect} = #{(@assignment_name == @assignment).inspect}"
<jhass> do stuff like that
<jhass> verify your assumptions if something doesn't work
<jhass> it's essential
<weaksauce> also play around in irb
jonr22 has quit [Ping timeout: 245 seconds]
<ecksit> hey, i am using faraday and i have this (https://gist.github.com/jacobbednarz/508b4cbb8c0d7105ca40) conditional for applying proxy details however i would like to refactor it to be more like https://gist.github.com/jacobbednarz/13aef509182f033f8666 but i'm not sure how to do it. could someone advise if it's possible?
Troy^ has joined #ruby
<DogHackit> OK. Thanks. I am trying...
<jhass> ecksit: tip: a gist can hold multiple files
Troy^ has quit [Client Quit]
TgMts has quit [Client Quit]
Lemur has joined #ruby
himera has joined #ruby
<jhass> ecksit: see the block form: https://github.com/lostisland/faraday#usage
<jhass> I'd expect something alike faraday.proxy = xxx if proxy? to work
<ecksit> ok thanks. will check it out
jenrzzz has quit [Ping timeout: 264 seconds]
Senjai has quit [Ping timeout: 246 seconds]
<jhass> ecksit: it yields a Faraday::Connection, so http://www.rubydoc.info/gems/faraday/Faraday/Connection#proxy-instance_method
nobitanobi has joined #ruby
sent1nel has joined #ruby
<ecksit> thanks
CpuID2 has quit [Quit: This computer has gone to sleep]
TgMts has joined #ruby
jenrzzz has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sent1nel has quit [Ping timeout: 265 seconds]
TgMts has quit [Client Quit]
TgMts has joined #ruby
freerobby has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 246 seconds]
himera has quit [Remote host closed the connection]
<perturbation> whenever you're using Ruby for standalone scripts, do you end up having to make some variables globals?
Kricir has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 256 seconds]
<perturbation> I run into issues with that sometimes, and I'm not sure if it's necessary or if I'm just being hackish
iMe has quit [Ping timeout: 250 seconds]
TgMts has quit [Client Quit]
iMe has joined #ruby
alameow has quit [Quit: Page closed]
lys has joined #ruby
ismaelga has joined #ruby
ravenzz has joined #ruby
Senjai has joined #ruby
fabrice31 has joined #ruby
<ravenzz> hello
Guest123 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<weaksauce> perturbation not really no
<weaksauce> it's better to use modules to namespace things
claptor has quit [Quit: this channel is bakas]
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
TgMts has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
dfinninger has joined #ruby
<perturbation> thanks weaksauce... it just tends to sneak up on me if I'm writing something short since variables aren't out of scope until I define a method
adriancb has quit [Remote host closed the connection]
<perturbation> but then I usually refactor anyways
djellemah has quit [Ping timeout: 245 seconds]
rbennacer has joined #ruby
<weaksauce> make a class and make those class variables
j0n3 has quit [Read error: Connection reset by peer]
<weaksauce> or instance variables
<weaksauce> classes and modules are so cheap to create it almost doesn't make sense to not do it like that from the start
<weaksauce> you have the side effect of every method being defined before you use it too.
Megtastique has quit []
TgMts has quit [Ping timeout: 252 seconds]
tunaCanBruh has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
Troy^ has joined #ruby
iMe has quit [Ping timeout: 240 seconds]
Troy^ has quit [Client Quit]
geefolk has joined #ruby
claptor has joined #ruby
iMe has joined #ruby
tunaCanBruh has quit [Ping timeout: 252 seconds]
zachrab has joined #ruby
adriancb has joined #ruby
<ravenzz> hi I have something like this https://gist.github.com/giuseppeg/ad204292fd49bea8224a
work_op has quit [Ping timeout: 245 seconds]
<ravenzz> is it possible to pull out the string at line 4
<ravenzz> and or it with the things in parenthesis?
Senjai has quit [Ping timeout: 245 seconds]
<ravenzz> like (conf[] || conf[]).gsub() || 'default'
zachrab has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
perturbation has quit [Quit: goodnight everyone]
avr has joined #ruby
jud has quit [Quit: Leaving]
cnj has quit [Ping timeout: 245 seconds]
rockdon has quit [Ping timeout: 245 seconds]
artgoeshere has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 256 seconds]
Mia has quit [Read error: Connection reset by peer]
rockdon has joined #ruby
Seich has quit [Ping timeout: 245 seconds]
Klumben has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
charliesome has quit [Ping timeout: 245 seconds]
LBRapid has quit [Ping timeout: 245 seconds]
riotjones has joined #ruby
ponga has joined #ruby
Klumben has joined #ruby
cnj has joined #ruby
LBRapid has joined #ruby
artgoeshere has joined #ruby
Seich has joined #ruby
charliesome has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pontiki_ has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
pontiki has quit [Disconnected by services]
TDJACR has quit [Ping timeout: 245 seconds]
KC9YDN has quit [Ping timeout: 245 seconds]
pontiki_ is now known as pontiki
work_op has joined #ruby
work_op has joined #ruby
iwishiwerearobot has joined #ruby
Senjai has joined #ruby
KC9YDN has joined #ruby
flaccid_ has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
techietrash has quit [Ping timeout: 245 seconds]
psmolen has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 244 seconds]
ponga has quit [Ping timeout: 265 seconds]
artgoeshere has quit [Ping timeout: 245 seconds]
<flaccid_> in a ruby class is it possible for a def self.foo to access another method in the class such as def bar ?
KnownSyntax has quit [Quit: Connection closed for inactivity]
<flaccid_> maybe the right way is to access it statically
paradisaeidae has quit [Ping timeout: 264 seconds]
artgoeshere has joined #ruby
psmolen has joined #ruby
iMe has joined #ruby
rhg135 has joined #ruby
iwishiwerearobot has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
TDJACR has joined #ruby
paradisaeidae has joined #ruby
balazs has quit [Ping timeout: 252 seconds]
lemur_ has joined #ruby
bonhoeffer has joined #ruby
danman has quit [Quit: danman]
hesco has quit [Ping timeout: 265 seconds]
Lemur has quit [Ping timeout: 252 seconds]
willharrison has joined #ruby
Senjai has quit [Ping timeout: 246 seconds]
dixie__ has joined #ruby
amacou has joined #ruby
freerobby has joined #ruby
P1RATEZ has quit []
tus has quit []
bwilson has joined #ruby
tejas-manohar has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
<tejas-manohar> yo
Kricir has joined #ruby
iMe has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<tejas-manohar> anyone know what's going on here ^
<tejas-manohar> i included the error in commnets
bluehavana has quit [Quit: Connection closed for inactivity]
hamakn has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
luriv_ has joined #ruby
dmbennett has quit []
Senjai has joined #ruby
hesco has joined #ruby
sevenseacat has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
luriv has quit [Ping timeout: 246 seconds]
<muzik> is the item parameter an array?
hesco has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
keen__________63 has joined #ruby
<tejas-manohar> muzik: it's an item in an array
<tejas-manohar> no
<tejas-manohar> it's a string
keen__________62 has quit [Ping timeout: 250 seconds]
<tejas-manohar> muzik: it's this -> https://github.com/tejasmanohar/todo-sinatra -- people submit strings like going to mall in the input field lol
starfox_sf has joined #ruby
amacou has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 265 seconds]
paradisaeidae has quit [Ping timeout: 250 seconds]
maximski has joined #ruby
braincrash has quit [Quit: bye bye]
dfinninger has quit [Ping timeout: 252 seconds]
iMe has joined #ruby
<tejas-manohar> muzik: do you know what's up?
starfox_sf has quit [Ping timeout: 252 seconds]
Senjai has quit [Ping timeout: 250 seconds]
shum has quit [Quit: WeeChat 1.1.1]
chrishough has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
starless has quit [Quit: Leaving]
davedev2_ has quit []
braincrash has joined #ruby
jaequery has joined #ruby
hesco has joined #ruby
maximski has quit []
jlast has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jonr22 has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
iMe has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
Senjai has joined #ruby
zacstewart has quit [Remote host closed the connection]
iMe has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
armyriad has quit [Ping timeout: 246 seconds]
tejas-manohar has quit [Ping timeout: 246 seconds]
armyriad has joined #ruby
lioninawhat has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 245 seconds]
adriancb has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
amacou has joined #ruby
zyxelthrone has quit [Quit: WeeChat 1.1.1]
psmolen has quit [Ping timeout: 245 seconds]
artgoeshere has quit [Ping timeout: 245 seconds]
TDJACR has quit [Ping timeout: 245 seconds]
KC9YDN has quit [Ping timeout: 245 seconds]
Seich has quit [Ping timeout: 245 seconds]
skmp has quit [Ping timeout: 245 seconds]
SegFaultAX has quit [Ping timeout: 245 seconds]
li0ninawhat has joined #ruby
<DogHackit> Gosh, I think I finally got it. Thank again.
<DogHackit> Only problem is, how do I test for nil so the program doesn't blow up when I search for something that returns nil?
icarus has joined #ruby
LBRapid has quit [Ping timeout: 245 seconds]
Klumben has quit [Ping timeout: 245 seconds]
rockdon has quit [Ping timeout: 245 seconds]
Junaos has quit [Ping timeout: 245 seconds]
djbender has quit [Ping timeout: 245 seconds]
tejas-manohar has joined #ruby
lys has quit [Quit: lys]
<tejas-manohar> anyone know what;s going on here?
<tejas-manohar> https://github.com/tejasmanohar/todo-sinatra/blob/master/app.rb#L3 errors undefined method `join' for #<String:0x007fd7190c8698>
zyxelthrone has joined #ruby
culturelabs has quit [Ping timeout: 245 seconds]
blackjid has quit [Ping timeout: 245 seconds]
Zimsky- has quit [Ping timeout: 245 seconds]
Kamilion has quit [Ping timeout: 245 seconds]
<tejas-manohar> any idea how to solve this?
arescorpio has quit [Excess Flood]
<tejas-manohar> i'm making a really simple todolist app
psmolen has joined #ruby
SegFaultAX has joined #ruby
Junaos has joined #ruby
Seich has joined #ruby
hostess has quit [Read error: Connection reset by peer]
ravenzz has quit [Ping timeout: 245 seconds]
skmp has joined #ruby
djbender has joined #ruby
KC9YDN has joined #ruby
rockdon has joined #ruby
LBRapid has joined #ruby
artgoeshere has joined #ruby
Zimsky- has joined #ruby
zrl has quit [Ping timeout: 245 seconds]
gmcintire has quit [Ping timeout: 245 seconds]
hellschreiber has quit [Ping timeout: 245 seconds]
wookiehangover has quit [Ping timeout: 245 seconds]
troter___ has quit [Ping timeout: 245 seconds]
tcrypt has quit [Ping timeout: 245 seconds]
johnhamelink has quit [Ping timeout: 245 seconds]
epochwolf has quit [Ping timeout: 245 seconds]
tmoore has quit [Ping timeout: 245 seconds]
Paradox has quit [Ping timeout: 245 seconds]
Inv1s1ble has quit [Ping timeout: 245 seconds]
amacou has quit [Ping timeout: 246 seconds]
Inv1s1ble has joined #ruby
epochwolf has joined #ruby
greenbagels has joined #ruby
tmoore has joined #ruby
Klumben has joined #ruby
Paradox has joined #ruby
ravenzz has joined #ruby
troter___ has joined #ruby
<DogHackit> No idea how to stop .points_received from trying to work with nil
hostess has joined #ruby
gmcintire has joined #ruby
culturelabs has joined #ruby
hellschreiber has joined #ruby
<tejas-manohar> anyone know how to solve this issue?
zrl has joined #ruby
blackjid has joined #ruby
wookiehangover has joined #ruby
tylersmith has joined #ruby
johnhamelink has joined #ruby
Senjai has quit [Ping timeout: 244 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Klumben has quit [Read error: Connection timed out]
Kamilion has joined #ruby
Lemur has joined #ruby
<tejas-manohar> hey, anyone here? my issue is really mind boggling
lioninawhat has joined #ruby
iMe has quit [Ping timeout: 246 seconds]
pu22l3r has quit [Remote host closed the connection]
lkba has joined #ruby
lemur_ has quit [Ping timeout: 265 seconds]
li0ninawhat has quit [Ping timeout: 265 seconds]
zorak8 has quit [Ping timeout: 264 seconds]
rbennacer has quit [Remote host closed the connection]
Klumben has joined #ruby
iMe has joined #ruby
fabrice31 has joined #ruby
<tejas-manohar> havenwood: shevy: ?
TDJACR has joined #ruby
willharrison has joined #ruby
athan has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
hiyosi has joined #ruby
Senjai has joined #ruby
<tejas-manohar> hey guys, seems like no one is here?
<DogHackit> I don't know
<DogHackit> I am, but I am a n00b and can't help you. Sorry
pika_pika has quit [Ping timeout: 245 seconds]
starfox_sf has joined #ruby
<tejas-manohar> :\
enterprisedc has quit [Quit: enterprisedc]
athan has quit [Client Quit]
<DogHackit> I think it may be really late/early for most of the world, or the all have Valentine's Day dates
<willharrison> what's a good onilne ruby course (free)?
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<willharrison> online*
dixie__ has quit [Remote host closed the connection]
enterprisedc has joined #ruby
sargas has joined #ruby
tunaCanBruh has joined #ruby
Limix has quit [Quit: Limix]
<mozzarella> tejas-manohar: you need to define @list inside the get block
chipotle_ has joined #ruby
<tejas-manohar> mozzarella: i dont wanna reset the values every time the POST is sent
zachrab has joined #ruby
amitchellbullard has quit [Ping timeout: 245 seconds]
JaTochNietDan has quit [Ping timeout: 245 seconds]
JaTochNietDan has joined #ruby
iMe has quit [Ping timeout: 265 seconds]
skmp has quit [Ping timeout: 245 seconds]
KC9YDN has quit [Ping timeout: 245 seconds]
Seich has quit [Ping timeout: 245 seconds]
chrisseaton has quit [Ping timeout: 245 seconds]
charles81 has quit [Ping timeout: 245 seconds]
terrellt has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Quit: Leaving.]
sevenseacat has joined #ruby
lioninawhat has quit [Ping timeout: 245 seconds]
amitchellbullard has joined #ruby
lioninawhat has joined #ruby
johnhamelink has quit [Ping timeout: 245 seconds]
hellschreiber has quit [Ping timeout: 245 seconds]
skarn_ has quit [Ping timeout: 245 seconds]
epochwolf has quit [Excess Flood]
epochwolf has joined #ruby
Kamilion has quit [Ping timeout: 245 seconds]
wookiehangover has quit [Ping timeout: 245 seconds]
blackjid has quit [Ping timeout: 245 seconds]
lele has quit [Ping timeout: 245 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
lele has joined #ruby
freerobby has quit [Quit: Leaving.]
chipotle has quit [Ping timeout: 240 seconds]
<mozzarella> tejas-manohar: then use @@list instead, I guess
charles81 has joined #ruby
skmp has joined #ruby
chrisseaton has joined #ruby
tunaCanBruh has quit [Ping timeout: 246 seconds]
terrellt has joined #ruby
wookiehangover has joined #ruby
Seich has joined #ruby
hellschreiber has joined #ruby
skarn has joined #ruby
KC9YDN has joined #ruby
Kamilion has joined #ruby
iMe has joined #ruby
blackjid has joined #ruby
haylon has quit [Quit: Leaving]
Deithrian has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
ismaelga has quit [Remote host closed the connection]
rhg135 has quit [Quit: ZNC - http://znc.in - making IRC 20% cooler]
rhg135 has joined #ruby
dfinninger has joined #ruby
silkfox has joined #ruby
Channel6 has joined #ruby
Senjai has quit [Ping timeout: 240 seconds]
gut has joined #ruby
dfinninger has quit [Ping timeout: 244 seconds]
johnhamelink has joined #ruby
<gut> i realize that this is a super stupid question, but i'm a very novice programmer... what am i doing wrong here? https://gist.github.com/TannerFilip/ad2c6fdf53fe1588f61b when i run it in "irb" the code works like it should, but when i rub the script from shell it doesn't work
jerematic has joined #ruby
<mozzarella> tejas-manohar: you need to update the view
<tejas-manohar> o
silkfox has quit [Ping timeout: 250 seconds]
<mozzarella> gut: newline character at the end
aphprentice_ has quit [Ping timeout: 240 seconds]
claptor has quit [Quit: this channel is bakas]
tmtwd has joined #ruby
<mozzarella> just do "p logfile" and you'll see why it doesn't work
<gut> mozzarella: yeah, I just realized that was probably it as you said that
<gut> so i'll want to call gets.chomp, right?
startupality has joined #ruby
geefolk has quit [Max SendQ exceeded]
<gut> aha, that worked. thanks!
iMe has quit [Ping timeout: 245 seconds]
geefolk has joined #ruby
jerematic has quit [Ping timeout: 264 seconds]
claptor has joined #ruby
geefolk has quit [Max SendQ exceeded]
adriancb has quit [Remote host closed the connection]
jlast has joined #ruby
iwishiwerearobot has joined #ruby
geefolk has joined #ruby
adriancb has joined #ruby
iMe has joined #ruby
geefolk has quit [Client Quit]
tejas-manohar has quit [Quit: Page closed]
blizzy has quit [Ping timeout: 245 seconds]
geefolk has joined #ruby
rbennacer has joined #ruby
iwishiwerearobot has quit [Ping timeout: 250 seconds]
jlast has quit [Ping timeout: 265 seconds]
Senjai has joined #ruby
geefolk has quit [Client Quit]
geefolk has joined #ruby
adriancb has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
zacstewart has joined #ruby
rbennacer has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 245 seconds]
zacstewart has quit [Read error: Connection reset by peer]
joufflu has joined #ruby
larsam has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
daed has quit [Quit: Lost terminal]
billy_ran_away has quit [Ping timeout: 255 seconds]
aphprentice_ has joined #ruby
Troy^ has joined #ruby
hesco has quit [Ping timeout: 256 seconds]
starless has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
startupality has quit [Client Quit]
Lemur has quit [Remote host closed the connection]
geefolk has quit [Quit: Leaving]
geefolk has joined #ruby
Lemur has joined #ruby
Senjai has quit [Ping timeout: 246 seconds]
iMe has quit [Ping timeout: 250 seconds]
geefolk has quit [Remote host closed the connection]
geefolk has joined #ruby
iMe has joined #ruby
billy_ran_away has joined #ruby
ghostlines has joined #ruby
Lemur has quit [Ping timeout: 264 seconds]
Limix has joined #ruby
lioninawhat has quit [Remote host closed the connection]
blackjid has quit [Ping timeout: 245 seconds]
Klumben has quit [Ping timeout: 245 seconds]
Paradox has quit [Ping timeout: 245 seconds]
artgoeshere has quit [Ping timeout: 245 seconds]
rockdon has quit [Ping timeout: 245 seconds]
psmolen has quit [Ping timeout: 245 seconds]
g-nom3 has quit [Ping timeout: 245 seconds]
Paradox has joined #ruby
skmp has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 245 seconds]
rockdon has joined #ruby
ghostlines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terrellt has quit [Ping timeout: 245 seconds]
amitchellbullard has quit [Ping timeout: 245 seconds]
skmp has joined #ruby
terrellt has joined #ruby
amitchellbullard has joined #ruby
blackjid has joined #ruby
artgoeshere has joined #ruby
psmolen has joined #ruby
tylersmith has joined #ruby
g-nom3 has joined #ruby
jaequery has joined #ruby
Senjai has joined #ruby
hamakn has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Klumben has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
iMe has quit [Ping timeout: 244 seconds]
Jetchisel has quit [Ping timeout: 252 seconds]
Guest123 has joined #ruby
yfeldblu_ has quit [Ping timeout: 244 seconds]
iMe has joined #ruby
hesco has joined #ruby
Jetchisel has joined #ruby
davedev24_ has joined #ruby
geefolk has quit [Max SendQ exceeded]
geefolk has joined #ruby
geefolk has quit [Max SendQ exceeded]
ecksit has quit [Ping timeout: 264 seconds]
geefolk has joined #ruby
hesco has quit [Ping timeout: 255 seconds]
geefolk has quit [Max SendQ exceeded]
TgMts has joined #ruby
jud has joined #ruby
jud has joined #ruby
geefolk has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amacou has joined #ruby
dfinninger has joined #ruby
Senjai has quit [Ping timeout: 252 seconds]
Jetchisel has quit [Ping timeout: 252 seconds]
TgMts has quit [Ping timeout: 252 seconds]
starless has quit [Quit: Leaving]
jonr22 has joined #ruby
dfinninger has quit [Ping timeout: 240 seconds]
iMe has quit [Ping timeout: 264 seconds]
iMe has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
claptor has quit [Quit: this channel is bakas]
jonr22 has quit [Ping timeout: 250 seconds]
rhg135 is now known as rhg135|zzz
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
jlast has joined #ruby
Jetchisel has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Senjai has joined #ruby
Lemur has joined #ruby
work_op has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
wldcordeiro has joined #ruby
swgillespie has joined #ruby
bricker has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
iMe has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
Spami has quit [Client Quit]
iMe has joined #ruby
davedev24_ has quit [Remote host closed the connection]
riotjones has joined #ruby
pu22l3r has joined #ruby
bluOxigen has joined #ruby
Senjai has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
riotjones has quit [Ping timeout: 252 seconds]
Deele has quit [Ping timeout: 245 seconds]
amacou has quit []
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorbsOne has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
Darryl___ has joined #ruby
ravenzz has left #ruby [#ruby]
tunaCanBruh has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
sargas has quit [Quit: Leaving]
zachrab has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
hvxgr has quit [Ping timeout: 255 seconds]
Senjai has joined #ruby
iMe has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
zachrab has quit [Ping timeout: 250 seconds]
sleeper has joined #ruby
agrinb has joined #ruby
KnownSyntax has joined #ruby
bwilson has quit [Quit: bwilson]
agrinb has quit [Ping timeout: 265 seconds]
<ghormoon> hi, is there any easy way to package gem to install on another system? I've got problem with building RedCloth on rhel7, co I'd rather uild it on centos7 which I have dedicated for building rpms and such, so it doesn't matter if I polute it with devel files and such
iMe has quit [Ping timeout: 264 seconds]
jerematic has joined #ruby
Senjai has quit [Ping timeout: 256 seconds]
iMe has joined #ruby
jerematic has quit [Ping timeout: 255 seconds]
iwishiwerearobot has joined #ruby
dfinninger has joined #ruby
LRgraham has quit [Ping timeout: 245 seconds]
wldcordeiro has quit [Ping timeout: 250 seconds]
iwishiwerearobot has quit [Ping timeout: 240 seconds]
dfinninger has quit [Ping timeout: 250 seconds]
speaking1ode has joined #ruby
speakingcode has quit [Ping timeout: 250 seconds]
wookiehangover has quit [Ping timeout: 245 seconds]
geefolk has quit [Quit: Leaving]
Senjai has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
hvxgr has joined #ruby
jlast has joined #ruby
wookiehangover has joined #ruby
lolmaus has joined #ruby
iMe has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
joufflu has quit [Read error: Connection reset by peer]
DEA7TH has joined #ruby
nii236|irssi has joined #ruby
joufflu has joined #ruby
duncannz has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
renier_ has joined #ruby
renier has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
davejacobs has joined #ruby
Lewix_ has quit [Remote host closed the connection]
Senjai has quit [Ping timeout: 255 seconds]
Mon_Ouie has joined #ruby
towski_ has joined #ruby
davejacobs has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
towski_ has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 240 seconds]
djellemah has joined #ruby
iMe has joined #ruby
Channel6 has quit [Remote host closed the connection]
Senjai has joined #ruby
rbennacer has joined #ruby
djellemah has quit [Quit: Leaving]
djellemah has joined #ruby
zyxelthrone has quit [Quit: WeeChat 1.1.1]
rbennacer has quit [Ping timeout: 244 seconds]
naftilos76 has joined #ruby
cajone has left #ruby [#ruby]
hollywood has joined #ruby
iMe has quit [Ping timeout: 246 seconds]
zorbsOne has quit [Quit: Leaving]
jonr22 has joined #ruby
iMe has joined #ruby
Morkel has joined #ruby
Senjai has quit [Ping timeout: 240 seconds]
nii236|irssi has quit [Remote host closed the connection]
terlar has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
bunbury_ has joined #ruby
dfinninger has joined #ruby
aapole has joined #ruby
adriancb has joined #ruby
hesco has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
echevemaster has joined #ruby
adriancb has quit [Ping timeout: 250 seconds]
Caius has quit [Quit: ""]
Ca1us has joined #ruby
iMe has quit [Ping timeout: 265 seconds]
lessless has joined #ruby
<Cope> given an array such as [1,2,3], i want to produce a single value by multiplying the first by x, the second by y and the third by z... this feels like a combination of zip and inject... i can bodge something together but is there something clever in the standard library that will help?
iMe has joined #ruby
<Nilium> Ok, I'm drunk, everything is officially hilarious
Senjai has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jlast has joined #ruby
Takle has joined #ruby
nickjj has quit [Ping timeout: 252 seconds]
sEnC has joined #ruby
sEnC has left #ruby [#ruby]
jerry_tao has quit [Ping timeout: 256 seconds]
pu22l3r has joined #ruby
bMalum has quit [Read error: No route to host]
bMalum has joined #ruby
<sevenseacat> awesome
jerry_tao has joined #ruby
__main__ has quit [Ping timeout: 246 seconds]
<Hanmac> Cope like: or do you want to sum it in the end?
<Hanmac> >> [1,2,3].zip([4,5,6]).map {|a,b| a * b}
<eval-in__> Hanmac => [4, 10, 18] (https://eval.in/286179)
jlast has quit [Ping timeout: 250 seconds]
<Hanmac> ghormoon: the best way is to fix your building problems, precompiled packages doesnt always work
fabrice31 has joined #ruby
jlast has joined #ruby
Brando753 has quit [Quit: o_O_o]
pu22l3r has quit [Ping timeout: 246 seconds]
ValicekB has quit [Read error: Connection reset by peer]
<ghormoon> well, i've already did in meantime, ut that meant pulling packages out of repositories, since some of the -devel packages are not present in rhel, only centos ...
lid_ has quit [Ping timeout: 245 seconds]
echevemaster has quit [Remote host closed the connection]
<Cope> Hanmac: more like [1,2,3].zip([4,5,6]).flatten.reduce(:*)
<Cope> >> [1,2,3].zip([4,5,6]).flatten.reduce(:*)
<eval-in__> Cope => 720 (https://eval.in/286180)
<Hanmac> Cope: but in your sample everything is multipyled with each other, not the first with x
__main__ has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
jlast has quit [Ping timeout: 250 seconds]
<Cope> that's actually what i want, i think
<Mon_Ouie> i.e. you might as well just do a.reduce(1, :*) * b.reduce(1, :*)
bMalum has quit [Quit: bMalum]
* Cope wrires a few tests
roshanavand has joined #ruby
<Hanmac> ghormoon: means that for some libs you dont get devel packages but on centos you did? ... what a shitty OS
<ghormoon> yep ... I had to bring in ruby-devel and libyaml-devel
hesco has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
<Cope> Mon_Ouie: yeah, but that gets ugly as there are more numbers in the input array
ptrrr has joined #ruby
<Cope> my one won't work, though, if there are zeros in the input :(
Senjai has quit [Ping timeout: 264 seconds]
<Mon_Ouie> I don't know what you mean by more numbers in the array. What are your inputs, and what do you expect as an output?
<Hanmac> ghormoon: in ubuntu and debian there is a nice "build-dep" command ... bad that other OS i did look at doesnt have one like that
cats has joined #ruby
hesco has joined #ruby
cats is now known as Guest89693
tunaCanBruh has joined #ruby
<Cope> Mon_Ouie: so say the input is [1,2] and [10, 100] - I want to do 1 * 10 + 2 * 100
iMe has joined #ruby
Guest89693 has quit [Changing host]
Guest89693 has joined #ruby
Guest89693 is now known as cats
<Mon_Ouie> So, what Hanmac said, just with reduce(0, :+) at the end
ValicekB has joined #ruby
<Cope> ok..
<ghormoon> Hanmac: well, this is corporate enviroment, so they choose rhel :-/ I have debian on my personal machines ....
<Mon_Ouie> (Or just one call to reduce to avoid creating the intermediary array)
zachrab has joined #ruby
<Hanmac> corporates should listen to the developers when they say that something is shit
<Hanmac> Cope & Mon_Ouie: what about that:
<Hanmac> >> [1,2,3].zip([4,5,6]).inject(0) {|c,(a,b)| c + a * b}
<eval-in__> Hanmac => 32 (https://eval.in/286188)
govg has quit [Ping timeout: 245 seconds]
flaccid_ has quit [Quit: flaccid_]
tunaCanBruh has quit [Ping timeout: 246 seconds]
<Cope> Hanmac: right... yes, so my zip and inject feeling was right :)
<Mon_Ouie> Yeah, that's one way, you could also avoid creating intermediary arrays with Enumerable#lazy, but I'm not sure it actually ends up being faster (or that it matters)
<Mon_Ouie> Alternatively: require 'matrix'; Vector.elements(a).dot(Vector.elements(b))
<Cope> readability is probably most important
<Cope> ooh never seen that!
<Mon_Ouie> (Especially if this is actually for linear algebra stuff)
zachrab has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
LetErikTry has quit [Quit: sleep]
Spami has joined #ruby
Senjai has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
gokul has quit [Ping timeout: 244 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jerematic has joined #ruby
Lemur has quit [Remote host closed the connection]
Lemur has joined #ruby
Baprath has joined #ruby
hesco has quit [Ping timeout: 252 seconds]
iMe has quit [Ping timeout: 245 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
Baprath has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
Lemur has quit [Ping timeout: 250 seconds]
jerematic has quit [Ping timeout: 264 seconds]
iMe has joined #ruby
codecop has joined #ruby
iwishiwerearobot has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
decoponio has quit [Ping timeout: 264 seconds]
decoponio has joined #ruby
iwishiwerearobot has quit [Ping timeout: 264 seconds]
Senjai has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
lessless has joined #ruby
hesco has joined #ruby
wosk has joined #ruby
shredding has joined #ruby
govg has joined #ruby
vdamewood has joined #ruby
gokul has joined #ruby
dfinninger has joined #ruby
dfinninger has quit [Ping timeout: 244 seconds]
Lemur has joined #ruby
Senjai has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
bMalum has joined #ruby
paulfm has quit [Quit: Zzzzz...]
wosk has quit [Remote host closed the connection]
iamninja has joined #ruby
The_Phoenix has joined #ruby
iMe has joined #ruby
jlast has joined #ruby
gokul has quit [Ping timeout: 264 seconds]
timmmaaaayyy_ has joined #ruby
felixjet_ has joined #ruby
mikemac has joined #ruby
Deithrian has quit [Read error: Connection reset by peer]
digifiv5e has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
michael_imac has joined #ruby
Deithrian has joined #ruby
digifiv5e is now known as Guest98385
yeticry has joined #ruby
xybr_ has joined #ruby
timmmaaaayyy has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
krisleech_ has joined #ruby
susmus_ has joined #ruby
jlast has joined #ruby
icarus_ has joined #ruby
pasv__ has joined #ruby
julie_harshaw has joined #ruby
phreakocious_ has joined #ruby
thejoecarroll_ has joined #ruby
hgl has quit [Max SendQ exceeded]
PaulePan1er has joined #ruby
wang_ has joined #ruby
s_e_ has joined #ruby
hesco has quit [Ping timeout: 246 seconds]
ezra_ has joined #ruby
hgl has joined #ruby
n88_ has joined #ruby
Takle has quit [Remote host closed the connection]
rvchangu- has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
Akagi201_ has joined #ruby
gokul has joined #ruby
kke_ has joined #ruby
Senjai has quit [Ping timeout: 250 seconds]
Takle has quit [Ping timeout: 264 seconds]
vire has joined #ruby
Takle has joined #ruby
Some-body_ has joined #ruby
lessless has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
icarus has quit [*.net *.split]
felixjet has quit [*.net *.split]
rvchangue has quit [*.net *.split]
Dopagod has quit [*.net *.split]
Akagi201 has quit [*.net *.split]
xybre has quit [*.net *.split]
kt2 has quit [*.net *.split]
crazymykl has quit [*.net *.split]
roger_rabbit has quit [*.net *.split]
atourino has quit [*.net *.split]
daynaskully has quit [*.net *.split]
jkyle1 has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
susmus has quit [*.net *.split]
pasv_ has quit [*.net *.split]
lightstalker has quit [*.net *.split]
phreakocious has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
julieeharshaw has quit [*.net *.split]
krisleech has quit [*.net *.split]
n88 has quit [*.net *.split]
s_e has quit [*.net *.split]
ezra has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
wang has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
kke has quit [*.net *.split]
krisleech_ is now known as krisleech
s_e_ is now known as s_e
roger_rabbit has joined #ruby
Some-body_ is now known as DarthGandalf
lkba has quit [Read error: Connection reset by peer]
sleeper is now known as sleeper_
gokul has quit [Ping timeout: 244 seconds]
lightstalker has joined #ruby
hollywood has quit [Quit: Leaving]
gokul has joined #ruby
agrinb has joined #ruby
hollywood has joined #ruby
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
Takle_ has joined #ruby
hesco has joined #ruby
jerry_tao has quit [Quit: jerry_tao]
Deithrian has quit [Ping timeout: 252 seconds]
PaulePan1er is now known as PaulePanter
agrinb has quit [Ping timeout: 250 seconds]
shredding has quit [Quit: shredding]
Senjai has joined #ruby
roshanavand1 has joined #ruby
jokester has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
<Hanmac> hey using net/imap what is the best way to get the subject of a mail from a given message_id ?
Morkel has quit [Quit: Morkel]
roshanavand has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
jonr22 has joined #ruby
jayne_ has joined #ruby
jayne has quit [Read error: Connection reset by peer]
wosk has joined #ruby
TDJACR has quit [Ping timeout: 245 seconds]
Inv1s1ble has quit [Ping timeout: 245 seconds]
LBRapid has quit [Ping timeout: 245 seconds]
CustosL1men has quit [Ping timeout: 246 seconds]
codecop has quit [Quit: Išeinu]
jonr22 has quit [Ping timeout: 240 seconds]
Inv1s1ble has joined #ruby
Deithrian has joined #ruby
LBRapid has joined #ruby
sevenseacat has left #ruby [#ruby]
hmsimha has quit [Ping timeout: 252 seconds]
ByronJohnson has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
Senjai has quit [Ping timeout: 250 seconds]
Kilo`byte has joined #ruby
jimms has joined #ruby
Fire-Dragon-DoL has joined #ruby
TDJACR has joined #ruby
KC9YDN has quit [Ping timeout: 245 seconds]
Seich has quit [Ping timeout: 245 seconds]
larissa has quit [Ping timeout: 245 seconds]
t_p has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
wosk_ has joined #ruby
larissa has joined #ruby
Seich has joined #ruby
KC9YDN has joined #ruby
wosk has quit [Ping timeout: 255 seconds]
djellemah has quit [Ping timeout: 256 seconds]
BloodyMutt has quit [Read error: Connection reset by peer]
wosk_ has quit [Remote host closed the connection]
jkyle1 has joined #ruby
tvw has joined #ruby
dfinninger has joined #ruby
Senjai has joined #ruby
ByronJohnson has joined #ruby
CrazyM4n has joined #ruby
gokul has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
<crome> fetch only the envelope
djellemah has joined #ruby
sevenseacat1 has joined #ruby
sevenseacat1 is now known as sevenseacat
<crome> it's been a while ago since I was in that corner of the stdlib but I can take a look if you still need it
nickjj has joined #ruby
jlast has joined #ruby
adsfz has joined #ruby
Jetchisel has joined #ruby
adsfz has quit [Client Quit]
tunaCanBruh has joined #ruby
Rollabunna has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 250 seconds]
Rollabunna has joined #ruby
jlast has joined #ruby
roshanavand1 has quit [Remote host closed the connection]
Senjai has quit [Ping timeout: 244 seconds]
zachrab has joined #ruby
TgMts has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
Musashi007 has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
zachrab has quit [Ping timeout: 240 seconds]
sleeper_ has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
agrinb has joined #ruby
george2 has quit [Ping timeout: 245 seconds]
DonOtreply has joined #ruby
agrinb_ has joined #ruby
etdev has quit [Ping timeout: 245 seconds]
duncannz has quit [Ping timeout: 245 seconds]
awerush has joined #ruby
hostess has quit [Ping timeout: 245 seconds]
KC9YDN has quit [Ping timeout: 245 seconds]
culturelabs has quit [Ping timeout: 245 seconds]
etdev has joined #ruby
epochwolf has quit [Excess Flood]
agrinb has quit [Ping timeout: 250 seconds]
skarn has quit [Ping timeout: 245 seconds]
DogHackit has quit [Ping timeout: 245 seconds]
postmodern has quit [Ping timeout: 245 seconds]
epochwolf has joined #ruby
skarn has joined #ruby
postmodern has joined #ruby
postmodern has joined #ruby
postmodern has quit [Changing host]
DogHackit has joined #ruby
george2 has joined #ruby
culturelabs has joined #ruby
sleeper has joined #ruby
agrinb_ has quit [Ping timeout: 250 seconds]
KC9YDN has joined #ruby
Senjai has joined #ruby
<Hanmac> crome: i do "imap.fetch(message_id, "ENVELOPE")[0].attr["ENVELOPE"].subject" ... but imo its very long shit for only the subject :/
tens0r has joined #ruby
hostess has joined #ruby
jerematic has joined #ruby
<crome> yeah, it rings a bell
<crome> I don't think there is a neater solution using only the stdlib
Razor has joined #ruby
<crome> let me check though
KC9YDN has quit [Ping timeout: 245 seconds]
sleeper has left #ruby [#ruby]
Razor is now known as Guest12797
Guest12797 has quit [Client Quit]
sudog has quit [Ping timeout: 245 seconds]
SumoBoy has joined #ruby
tens0r has quit [Quit: tens0r]
jerematic has quit [Ping timeout: 264 seconds]
suy|BNC has quit [Ping timeout: 245 seconds]
iMe has quit [Ping timeout: 255 seconds]
iwishiwerearobot has joined #ruby
User458764 has joined #ruby
KC9YDN has joined #ruby
sudog has joined #ruby
Musashi007 has quit [Quit: Musashi007]
suy|BNC has joined #ruby
lessless has joined #ruby
iMe has joined #ruby
Phagus has joined #ruby
elaptics is now known as elaptics_away
User458764 has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
hgl has quit [Ping timeout: 264 seconds]
<Phagus> What's a good way to store structured data produced by content creators? I don't want a huge system or anything, just something small like Access or Libre Office, but has a web frontend
charliesome has joined #ruby
davidhq has joined #ruby
iwishiwerearobot has quit [Ping timeout: 252 seconds]
KC9YDN has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 244 seconds]
hgl has joined #ruby
AlexRussia has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
melmouss has joined #ruby
Senjai has quit [Ping timeout: 244 seconds]
joufflu has quit [Read error: Connection reset by peer]
KC9YDN has joined #ruby
SumoBoy has quit [Quit: Leaving]
<Deithrian> A database?
<crome> Hanmac: I don't think therei is a better way :/
<Deithrian> guys is it only on Windows that you get errors like "You have to install development tools first." when trying to install mysql2, while you have the DevKit installed?
<Deithrian> *mysql2 gem
<Hanmac> crome hm ok i think i need to live with that ... (what my task is to group emails after some match in the subject)
<wasamasa> Deithrian: it's on any system lacking a C compiler I assume
<Deithrian> wasamasa, would ruby development be more carefree on a Linux system?
<wasamasa> Deithrian: very likely
<crome> Deithrian: installing the dev tools is not a big fuss, though, it's a one off thing, a few commands and you are set
<wasamasa> I haven't tested ruby on windows yet, however from my experiences with windows on python it's a pain as soon as you use something wrapping a C library
jgt has joined #ruby
<wasamasa> especially if you start combining them because there's at least two incompatible ways of building those on windows
<crome> (but don't expect all the gems with C extension to work properly on windows)
<wasamasa> then, the reason why I switched was support
<Deithrian> crome, I have the dev tools installed already, trying to install them again says it skips because they're there, but gem install mysql2 fails with the "install dev tools" message :/
<crome> oh
<Deithrian> weird stuff
<Deithrian> Oh well, gotta have fun testing Linux on SSD now :)
<crome> or just use a VM
<wasamasa> ^
<wasamasa> there's preconfigured virtualbox and vmware images
siso has joined #ruby
jimms has quit [Remote host closed the connection]
spider-mario has joined #ruby
<Deithrian> They're so sluggish :( I can't stand it. My system is not a beast but it's an i5 with 8GB ram and SSD, still everything works as if it's running on 486 in a VM even with lots of ram and two cores allocated.
iMe has quit [Ping timeout: 246 seconds]
KC9YDN has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
<crome> I think i5's also have the VT extensions
<crome> so in this respect it's probably not much different from my notebook with an i7 and I run VMs in it
<crome> depends on which i5 cpu though
<crome> and which series
mostlybadfly has quit [Quit: Connection closed for inactivity]
Senjai has joined #ruby
iMe has joined #ruby
KC9YDN has joined #ruby
<Deithrian> crome, it's an i5 2430m
hesco has quit [Ping timeout: 252 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tens0r has joined #ruby
elaptics_away is now known as elaptics
Mia has joined #ruby
<Deithrian> Maybe it's just me, I'm real twitchy when it comes to performance. Used to reinstall windows every month XD
<wasamasa> ._.
* wasamasa can't recall the last time he reinstalled his linux machine
CrazyM4n has quit [Remote host closed the connection]
elimS has joined #ruby
m8 has joined #ruby
Nahra has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Morkel has joined #ruby
<wasamasa> it's kind of funny I'm busier tweaking my text editor than worrying about something as vague as "performance"
dfinninger has joined #ruby
<Deithrian> wasamasa, I would use Linux too but the drivers for my laptop are not working at all. Last time I tried it wireless was loosing connection every 20 seconds, and no video drivers for switchable graphics that work.
KC9YDN has quit [Ping timeout: 245 seconds]
<wasamasa> right, broadcom and optimus
* wasamasa grabs a barf bag
jgt has quit [Ping timeout: 256 seconds]
<Deithrian> Yeah, the solution on forums was to use another wireless nic, so I got an external one, which was performing well, but when you disable the internal one it disables the external one too lol...
starfox_sf has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<crome> but no worries, this years going to be the year of the linux desktop
<wasamasa> lol
<Deithrian> It's just a roller coaster of problems with my hardware :/
<Deithrian> crome, how do you figure?
<wasamasa> it's a running gag
<crome> sorry, I forgot to wave my sarcasm sign
<crome> ever since ubuntu started getting mainstream someone always said that year x was going to be the year linux is going to be as good for desktop as windows/osx
dfinninger has quit [Ping timeout: 246 seconds]
<crome> "good"
<Deithrian> They really could have done it when Win 8 came out XD
<wasamasa> they don't care
<crome> my notebook is coincidentally "ubuntu certified" or something like that
<wasamasa> it's a loose collective of people writing and improving (mostly) free software
<crome> in reality it means that the wifi drops every hour or so :)
<crome> only
aapole has quit [Ping timeout: 265 seconds]
<wasamasa> unlike a company like microsoft or apple
<crome> well, there has been quite some improvement lately
<crome> things like dbus
jlast has joined #ruby
<Deithrian> crome same here, certified and wifi drops.
<crome> you can always try newer kernels and firmware
<Deithrian> I'll do just that, I think it's been a year since I last tried xubuntu :)
centrx has joined #ruby
hesco has joined #ruby
KC9YDN has joined #ruby
tkuchiki has joined #ruby
<Deithrian> not holding my breath though, especially for the video drivers. Without them the machine is going hot, with them I can't use dual monitors because artifacts lol
<Deithrian> I really wish they would focus on drivers instead of unity and gnome 12 and kde 44
<crome> although until something is done with power management in linux it is always going to be just a weird toy on notebooks
elimS has quit [Quit: Lingo: www.lingoirc.com]
lid_ has joined #ruby
Lemur has quit [Remote host closed the connection]
<Deithrian> I thought they have it enabled by default now?
jlast has quit [Ping timeout: 265 seconds]
Lemur has joined #ruby
iMe has quit [Ping timeout: 265 seconds]
<crome> it's incredibly complicated to configure
Senjai has quit [Ping timeout: 246 seconds]
<crome> there are several packages that somehow make up the functionality
jlast has joined #ruby
<centrx> Laptops are weird toys now unless they get 12 hours of power?
<crome> centrx: I didn't mean battery life
akas has quit [Remote host closed the connection]
iMe has joined #ruby
Dopagod has joined #ruby
nfk has joined #ruby
<crome> but rather things like telling the system what to do when I clsoe the lid
KC9YDN has quit [Ping timeout: 245 seconds]
<wasamasa> that's an entry in /etc/systemd/logind.conf here
<wasamasa> where I use a "HandleLidSwitch=ignore"
<crome> that's a distro specific setting. and then you have event handlers wired by your desktop environment (if you use one)
<wasamasa> no, it's not
tens0r has left #ruby [#ruby]
lid_ has quit [Ping timeout: 244 seconds]
<wasamasa> thank systemd
<crome> well, sure as hell I'm not using systemd
agrinb has joined #ruby
Lemur has quit [Ping timeout: 250 seconds]
<wasamasa> it's only a matter of time
<crome> right now it is a distro specific thing
jlast has quit [Ping timeout: 244 seconds]
<wasamasa> soon pretty much everything relevant will be using it
<wasamasa> even debian!
hesco has quit [Ping timeout: 252 seconds]
KC9YDN has joined #ruby
<crome> haha :D
<wasamasa> because someone decided to tackle the hard problems with init systems and whipped up something that works better
<wasamasa> wayland is a similiar story, though it will take more time
<crome> I don't have anything against systemd it just feels like early to switch to on distros that don't support it ouf of the box
<crome> guess I would end up rewriting half my init scripts for it
wottam has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
<wasamasa> the nice part is that most of these turn into config files
<wasamasa> no silly race conditions, no boilerplate
<wasamasa> you even have docs!
<crome> I can see a problem with that
KC9YDN has quit [Ping timeout: 245 seconds]
<crome> you can only rely on configuration directives provided by systemd
<wasamasa> yes, there's going to be people who prefer reading a horrible shell script file
<wasamasa> or actually rely on broken behaviour
<crome> coming back to power management, if systemd doesn't have a "suspend only when there are no external displays or audio jack plugged in" setting then one would have to write their own handler scripts anyway
KC9YDN has joined #ruby
<wasamasa> you can use a more advanced daemon, yes
<wasamasa> like upowerd to handle low battery events
<wasamasa> which is what pretty much all desktop environments do use already, mind you
<crome> upowerd is almost a good thing
<crome> but it ended up not being smart enough so distros started forking it :D
<crome> and now it's a mess
djellemah has quit [Ping timeout: 245 seconds]
mahmoudmahfouz has joined #ruby
mahmoudmahfouz has quit [Client Quit]
timonv has quit [Ping timeout: 250 seconds]
Senjai has joined #ruby
jonr22 has joined #ruby
Morkel has quit [Quit: Morkel]
djellemah has joined #ruby
<crome> and then there is acpid which has some overlapping functionality
<crome> but enough ranting already
<crome> let's watch cat videos
<Deithrian> :D
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
hesco has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
iMe has quit [Ping timeout: 256 seconds]
psyprus has quit [Read error: Connection reset by peer]
mathie has joined #ruby
Brando753 has joined #ruby
Guest98385 has quit [Changing host]
Guest98385 has joined #ruby
Guest98385 is now known as daynaskully
psyprus has joined #ruby
chinmay_dd has joined #ruby
quazimodo has joined #ruby
<quazimodo> yo anyone alive?
<wasamasa> nope
<quazimodo> hey wasamasa
<quazimodo> oh you emacs too?
iMe has joined #ruby
<wasamasa> yes
<quazimodo> you're now my cool emacs and ruby friend
<quazimodo> onto interesting stuff
Nahra has joined #ruby
Hobogrammer has quit [Ping timeout: 244 seconds]
<quazimodo> dictionary.each_line do |line|; cleaned = line.gsub /[^A-Za-z0-9]/, ""; <- that takes *forever*
<quazimodo> the gsub is slow as butts
<crome> damn. emacs seems to have a lot nicer community
<crome> I don't have any vim friends :'(
<wasamasa> just walk over to your local hackerspace
gokul has joined #ruby
<yxhuvud> quazimodo: are there any difference if you remove all objects you don't have to create inside the loop to the outside of it? I'm thinking of the regexp and of the empty string.
startupality has joined #ruby
twistedpixels is now known as zz_twistedpixels
<yxhuvud> also, tr is usually faster than gsub.
<quazimodo> yxhuvud: whatcha mean?
<quazimodo> dno how to use tr there
shredding has joined #ruby
<apeiros_> quazimodo: why .each_line?
<apeiros_> why not gsub directly on dictionary?
Senjai has quit [Ping timeout: 245 seconds]
<yxhuvud> >> "hello".tr "lo", ""
<eval-in__> yxhuvud => "he" (https://eval.in/286263)
<apeiros_> yxhuvud: with second arg == "", just use String#delete
blizzy has joined #ruby
kirun has joined #ruby
JBreit has joined #ruby
gokul has quit [Ping timeout: 246 seconds]
<yxhuvud> apeiros: even better. My point was not to use a regexp for this.
<quazimodo> apeiros_: i'm going through a dict to find anagrams, if i gsub the entire thing i lose lots of stuff. I want to gsub out non alphanumerics on a line (but keep the original string), then add the original string to a hash with a key being the sorted new string
<quazimodo> here
<apeiros_> quazimodo: um, no
MasterPiece has joined #ruby
<apeiros_> quazimodo: unless you pasted fake code, it'd be equivalent
<quazimodo> apeiros_: dog's is not the same as dogs
<apeiros_> *sob*
<quazimodo> but i'm assuming punctuation isn't part of the anagram (is it?)
<apeiros_> not in the mood
<quazimodo> what's wrong?
pu22l3r has joined #ruby
<quazimodo> yxhuvud: so i'd have to give a 'blacklist' to tr to replace out, rather than a white list (alphanumerics) to keep
Brando753 has quit [Quit: o_O_o]
<quazimodo> crome: emacs group is usually quite nice to me
mahmoudmahfouz has joined #ruby
fabrice31 has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
oleo has joined #ruby
<yxhuvud> quazimodo: regardless, you are still creating twice the amount of objects each iteration compared to what you need to.
DadoCe has joined #ruby
<yxhuvud> though I suppose the costs of the other lines may dominate that. You may have to benchmark to see exactly what part it is that is slow
User458764 has joined #ruby
iMe has joined #ruby
Notte has joined #ruby
n008f4g_ has joined #ruby
<quazimodo> yxhuvud: yeah see i don't understand what you mean
<quazimodo> i'm having a 'cloudy brain' day actually
<quazimodo> i'm creating objects, ok hold up let me look
oleo__ has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 246 seconds]
<quazimodo> so i end up with line, cleaned and sorted. well actually I'm not sure how else to do this without creating all 3?
dys has joined #ruby
<yxhuvud> you can break out objects that you create over and over outside the loop, eg filter=/[^abc]/; es = ""; dict.each_line {|l| l.gsub filter, es }
Senjai has joined #ruby
<quazimodo> yxhuvud: that's reasonable, i forgot that / / is syntactic sugar for creating a new regex object
<apeiros_> -sugar
DadoCe has quit [Ping timeout: 264 seconds]
gokul has joined #ruby
<quazimodo> is syntax for creating...
<yxhuvud> I doubt you will get much improvement though, with the .chars later on which will end up creating lots of objects as well
<quazimodo> yeah
<quazimodo> didn't know how else to sanely sort a string
<quazimodo> without writing something to do it anyway
Morkel has joined #ruby
maximski has joined #ruby
Deithrian has quit [Read error: Connection reset by peer]
User458764 has quit [Ping timeout: 255 seconds]
tunaCanBruh has joined #ruby
dfinninger has joined #ruby
Notte has quit [Remote host closed the connection]
timonv has joined #ruby
zachrab has joined #ruby
skj3gg has joined #ruby
Takle has joined #ruby
Xiti` has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
dfinninger has quit [Ping timeout: 256 seconds]
<quazimodo> yxhuvud: pulling the filter out did not much actually
Troy^ has joined #ruby
mathie_ has joined #ruby
gokul has quit [Ping timeout: 256 seconds]
mostlybadfly has joined #ruby
zachrab has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
Xiti has quit [Ping timeout: 246 seconds]
gokul has joined #ruby
Takle_ has joined #ruby
mathie has quit [Ping timeout: 252 seconds]
Takle has quit [Ping timeout: 255 seconds]
mathie has joined #ruby
Troy^ has quit [Ping timeout: 246 seconds]
iMe has quit [Ping timeout: 264 seconds]
Senjai has quit [Ping timeout: 256 seconds]
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jlast has quit [Ping timeout: 250 seconds]
iMe has joined #ruby
timonv has quit [Ping timeout: 250 seconds]
mathie_ has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
jerematic has joined #ruby
User458764 has joined #ruby
hesco has quit [Ping timeout: 264 seconds]
skj3gg has quit [Quit: ZZZzzz…]
jlast has quit [Ping timeout: 265 seconds]
gokul has quit [Ping timeout: 265 seconds]
jerematic has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
gokul has joined #ruby
goodenough has quit [Remote host closed the connection]
mathie_ has joined #ruby
iwishiwerearobot has joined #ruby
jimms has joined #ruby
mathie has quit [Ping timeout: 245 seconds]
prasselpikachu has joined #ruby
mathie has joined #ruby
Senjai has joined #ruby
bonhoeffer has joined #ruby
naftilos76 has quit [Remote host closed the connection]
bMalum_ has joined #ruby
iwishiwerearobot has quit [Ping timeout: 255 seconds]
mathie_ has quit [Ping timeout: 245 seconds]
iMe has quit [Ping timeout: 245 seconds]
bMalum has quit [Ping timeout: 256 seconds]
bMalum_ is now known as bMalum
hesco has joined #ruby
Takle has joined #ruby
iMe has joined #ruby
gokul has quit [Ping timeout: 250 seconds]
Takle_ has quit [Ping timeout: 246 seconds]
djellemah has quit [Ping timeout: 246 seconds]
iamninja has joined #ruby
S0da has joined #ruby
<shevy> guys
<shevy> XML as a programming language for the win!
shum has joined #ruby
gokul has joined #ruby
Senjai has quit [Ping timeout: 244 seconds]
siso has quit [Quit: siso]
iMe has quit [Ping timeout: 255 seconds]
iMe has joined #ruby
Morkel has quit [Quit: Morkel]
bonhoeffer has quit [Quit: bonhoeffer]
bonhoeffer has joined #ruby
codecop has joined #ruby
DonOtreply has quit [Ping timeout: 252 seconds]
DouweM has joined #ruby
hesco has quit [Ping timeout: 252 seconds]
leafybasil has quit [Remote host closed the connection]
djellemah has joined #ruby
roshanavand has joined #ruby
gokul has quit [Ping timeout: 264 seconds]
Senjai has joined #ruby
DouweM has quit [Client Quit]
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
iMe has quit [Ping timeout: 245 seconds]
kostitas has joined #ruby
dfinninger has joined #ruby
bonhoeffer has joined #ruby
mahmoudmahfouz has joined #ruby
iMe has joined #ruby
pika_pika has joined #ruby
dfinninger has quit [Ping timeout: 265 seconds]
bonhoeffer has quit [Client Quit]
jlast has joined #ruby
bonhoeffer has joined #ruby
gokul has joined #ruby
thebastl has joined #ruby
bonhoeffer has quit [Client Quit]
iamninja_ has joined #ruby
pu22l3r has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
iamninja_ has quit [Client Quit]
iamninja_ has joined #ruby
jlast has joined #ruby
DouweM has joined #ruby
DouweM has quit [Client Quit]
pu22l3r has quit [Remote host closed the connection]
iamninja has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Remote host closed the connection]
CustosL1men has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Deele has joined #ruby
jonr22 has joined #ruby
iamninja_ has left #ruby [#ruby]
Senjai has quit [Ping timeout: 240 seconds]
DouweM has joined #ruby
iamninja has joined #ruby
roshanavand has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 265 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 250 seconds]
adriancb has joined #ruby
User458764 has joined #ruby
adriancb has quit [Ping timeout: 250 seconds]
wikiziner has joined #ruby
wikiziner has quit [Quit: Textual IRC Client: www.textualapp.com]
djellemah has quit [Ping timeout: 245 seconds]
iMe has quit [Ping timeout: 252 seconds]
shredding has quit [Quit: shredding]
lessless has joined #ruby
gokul has quit [Ping timeout: 250 seconds]
zorak8 has joined #ruby
Senjai has joined #ruby
iMe has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
pika_pika has quit [Quit: Leaving]
Musashi007 has joined #ruby
thebastl has quit [Quit: Leaving...]
TgMts_ has joined #ruby
fabrice31 has joined #ruby
KC9YDN has quit [Ping timeout: 245 seconds]
gokul has joined #ruby
TgMts has quit [Ping timeout: 252 seconds]
KC9YDN has joined #ruby
r0bby_ has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
jerematic has joined #ruby
j0n3 has joined #ruby
Senjai has quit [Ping timeout: 250 seconds]
mroach has quit [Quit: mroach]
TgMts_ has quit [Quit: No Ping reply in 180 seconds.]
tunaCanBruh has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
TgMts has joined #ruby
iMe has quit [Ping timeout: 256 seconds]
jerematic has quit [Ping timeout: 244 seconds]
monod has joined #ruby
iMe has joined #ruby
TripTastic has joined #ruby
aapole has joined #ruby
tunaCanBruh has quit [Ping timeout: 246 seconds]
serivich has joined #ruby
zachrab has joined #ruby
JBreit has quit [Ping timeout: 246 seconds]
hamakn has quit [Remote host closed the connection]
zyxelthrone has joined #ruby
iamjarvo has quit [Ping timeout: 255 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
druznek has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
lessless has joined #ruby
Senjai has joined #ruby
Notte has joined #ruby
atomical has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
Notte has quit [Client Quit]
TgMts has quit [Ping timeout: 246 seconds]
Phagus has quit [Quit: leaving]
dfinninger has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
TgMts has joined #ruby
fantazo has quit [Quit: Verlassend]
dfinninger has quit [Ping timeout: 250 seconds]
chimmy has joined #ruby
iMe has joined #ruby
jlast has joined #ruby
djellemah has joined #ruby
iwishiwerearobot has joined #ruby
soxet has joined #ruby
Senjai has quit [Ping timeout: 255 seconds]
jlast has quit [Ping timeout: 250 seconds]
kostitas has quit [Quit: Leaving]
jlast has joined #ruby
jimms has quit [Remote host closed the connection]
jerius has joined #ruby
terlar has quit [Ping timeout: 250 seconds]
iwishiwerearobot has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
chimmy has quit [Remote host closed the connection]
druznek has quit [Quit: Leaving]
aapole has quit [Ping timeout: 246 seconds]
jlast has quit [Ping timeout: 250 seconds]
lys has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
Senjai has joined #ruby
tier has joined #ruby
jimms has joined #ruby
shaquile has quit [Ping timeout: 250 seconds]
Freelusion has joined #ruby
shaquile has joined #ruby
Freelusion has quit [Client Quit]
iMe has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
iMe has joined #ruby
mistnim has joined #ruby
TgMts has joined #ruby
Morkel has joined #ruby
riotjones has joined #ruby
tus has joined #ruby
<mistnim> hello, I'm on fedora21, I do ruby install jekyll, it does install it, ok, than I go to install another package, and now "ruby install any_package" always gives me "/usr/bin/ruby-mri: No such file or directory -- install (LoadError)"
<centrx> I think you are looking for: gem install <gem name>
aapole has joined #ruby
<centrx> ruby install does not do anything
<mistnim> oh
<centrx> unless maybe if you happen to be in a directory with a file named "install.rb"
lxsameer has joined #ruby
<mistnim> but is it ok to install packages without root?
<centrx> yes
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djellemah has quit [Ping timeout: 245 seconds]
mahyuddin has joined #ruby
mahyuddin is now known as panji_alam
riotjones has quit [Ping timeout: 250 seconds]
Senjai has quit [Ping timeout: 252 seconds]
Freelusion has joined #ruby
Freelusion has quit [Client Quit]
zyxelthrone has quit [Quit: WeeChat 1.1.1]
zyxelthrone has joined #ruby
zyxelthrone has quit [Client Quit]
zyxelthrone has joined #ruby
jerius has quit []
panji_alam has quit []
JBreit has joined #ruby
jimms has quit [Remote host closed the connection]
TripTastic has quit [Ping timeout: 265 seconds]
zyxelthrone has quit [Client Quit]
iMe has quit [Ping timeout: 264 seconds]
MasterPiece has quit [Quit: Leaving]
iMe has joined #ruby
<atmosx> hello
leafybasil has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
agrinb has joined #ruby
amystephen has joined #ruby
Senjai has joined #ruby
havenwood has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> does ruby have a wrapper over the Urho3D game engine?
<shevy> hey atmosx
tus has quit []
<atmosx> hello shevy
sevenseacat has quit [Remote host closed the connection]
pu22l3r has joined #ruby
TgMts has quit [Ping timeout: 255 seconds]
dfinninger has joined #ruby
jonr22 has joined #ruby
dfinninger has quit [Ping timeout: 250 seconds]
pu22l3r has quit [Ping timeout: 255 seconds]
iMe has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
icbm has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 256 seconds]
iMe has joined #ruby
<icbm> Got an error doing an include inside a refine. Any ideas? https://eval.in/286376
jlast has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
Freelusion has joined #ruby
Pixi_ has joined #ruby
jlast has joined #ruby
Tuxero has quit [Ping timeout: 246 seconds]
Freelusion has quit [Client Quit]
<atmosx> hm if I have to save an Array or hash in a MySQL database, what kind of format do I choose?
<atmosx> string?
<atmosx> blob?
<atmosx> blob + marshalling?
<jhass> what's the array items?
kapil__ has quit [Quit: Connection closed for inactivity]
<atmosx> jhass: integers in my specific ase
<jhass> btw PostgreSQL has data types for such stuff ;)
<atmosx> jhass: why does the data type matter?
jimms has joined #ruby
<jhass> easier and more efficient queries if the DB knows the actual data type, also more efficient storage
<atmosx> jhass: hm,maybe I should switch to PSQL while I'm still at the first steps of this project.
<jhass> so the easy thing is to serialize to json or yaml
_maes_ has joined #ruby
Xiti` has quit [Ping timeout: 255 seconds]
<atmosx> jhass: say I serialize to yaml, the end result is a 'string' ?
<jhass> yes
Tuxero has joined #ruby
<atmosx> so I save the array a data-type string fetch, convert and use
<atmosx> awesome
<jhass> if your integers are fixed size, say you know they won't exceed 32bit or 64bit for example
maximski has quit []
<jhass> then BLOB + Array#pack / String#unpack would be most efficient
Tuxero has quit [Client Quit]
<jhass> with postgresql you just save it as int array
jlast has quit [Ping timeout: 250 seconds]
Tuxero has joined #ruby
kr1shnak has joined #ruby
<atmosx> ty
govg has quit [Quit: leaving]
zz_twistedpixels is now known as twistedpixels
zachrab has joined #ruby
dreinull75 has quit [Remote host closed the connection]
dreinull75 has joined #ruby
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx> Hm, jhass my integer are fixed size, but I'm not sure how the 32bit/64bit thing works here. It's just integers ranging say from 0 to 100000
<jhass> it's simple, the maximum value you can store is 2**bitsize
r0bby_ has quit [Ping timeout: 250 seconds]
<jhass> or rather that's the amount of values you can store
<jhass> then there's signed and unsigned
<jhass> that is whether you have negative values or not
<jhass> if you have them, you need one bit to mark it positive or negative
<jhass> since you don't, you can use an unsigned one
<atmosx> Unsigned: From 0 to 4,294,967,295 which equals 232 − 1 (from wikipedia)
<atmosx> so I can use 32bit unsigned
<atmosx> I don't think anyone in my queue will need more than 4 billion numbers in 24 hours.
sivoais has quit [Ping timeout: 255 seconds]
zachrab has quit [Ping timeout: 264 seconds]
<jhass> yeah, 24bit would be enough too, but pack doesn't seem to provide that directly
<jhass> you need to split it up into a 8bit and 16bit one first
<jhass> you would*
fabrice31 has joined #ruby
tmtwd has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 264 seconds]
Morkel has quit [Quit: Morkel]
lioninawhat has joined #ruby
iMe has joined #ruby
<waxjar> jhass, can you query on the array elements in psql? e.g. if you have a posts table and a tags table, does storing the tags in an array eliminate the need for creating a table linking a post_id to a tag_id?
tunaCanBruh has joined #ruby
<jhass> you sort of can, but I'm not sure it would be more efficient
<jhass> you would want an index on it and I can't imagine that would end up being smaller than with the classic approach
fabrice31 has quit [Ping timeout: 245 seconds]
<atmosx> jhass: but you have to know the size of the array right?
OrbitalKitten has joined #ruby
<atmosx> jhass: otherwise String#unpack doesn't know how chars to expect..
jerematic has joined #ruby
<waxjar> hmm, either way, that's pretty neat :P
Rollabunna has quit [Quit: Leaving...]
<jhass> you can query the size
<jhass> it just leads to rather complex queries
<atmosx> hm no I don't wanna mess in to this right now, it's just a prototype. If it ever becomes a product then I'll look into it. Thanks
sivoais has joined #ruby
blizzy has quit [Ping timeout: 255 seconds]
<atmosx> for the hint, it's cool stuff
<jhass> oh, you don't need the size for String#unpack either
<jhass> L* just eats as much as it can
tkuchiki has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 264 seconds]
<atmosx> oh nice
<kr1shnak> Hi. Has anyone ever try to launch the osacript command and pass it arguments from a Ruby script?
jerematic has quit [Ping timeout: 256 seconds]
<jhass> what's osacript?
aapole has quit [Ping timeout: 264 seconds]
<kr1shnak> its the command you use to run an Applescript from the terminal
User458764 has quit [Ping timeout: 246 seconds]
mahmoudmahfouz has joined #ruby
<jhass> so you just shell out to it?
<kr1shnak> yes
<jhass> Kernel#system/Kernel#spawn/Kernel#` depending on your needs
<jhass> open3/subprocess stdlib if the above don't feed your needs
<jhass> *fit
Channel6 has joined #ruby
User458764 has joined #ruby
<kr1shnak> well I have been trying some of those, and I get a problem where the AppleScript only seems to receive the first argument I pass to it, and then the shell tries to execute the second argument as if it was a command itself
zyxelthrone has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
Senjai has quit [Ping timeout: 265 seconds]
<jhass> show code
<shevy> show skin!
dfinninger has joined #ruby
<kr1shnak> ok hang on
<shevy> jhass did you have a look at the language nim yet?
<shevy> I know you are busy with crystal
<wasamasa> nim isn't ruby-like enough
agrinb has joined #ruby
timonv has joined #ruby
<wasamasa> how dare you suggest he had a look at it
iMe has quit [Ping timeout: 264 seconds]
<atmosx> rust
<atmosx> is nice
<atmosx> and fast
<atmosx> and rusty
<shevy> wasamasa yeah the syntax is kinda strange
<shevy> but let's be honest here, ruby has a very good syntax
<icbm> Rust is the answer for those of us who want to be in the C++ solution space but hate C++.
r0bby_ has joined #ruby
<wasamasa> shevy: well, I already have another language compiling to C, so I didn't look much at nim either
<jhass> shevy: nope
<shevy> wasamasa which language is that?
iMe has joined #ruby
<jhass> oh, nimrod renamed?
<wasamasa> shevy: CHICKEN
<shevy> yeah jhass
<shevy> chicken so I see
<shevy> this name alone promises greatness
<kr1shnak> so all I am trying to do is construct the command line string to run an applescript via osascript.
<shevy> it's kind of strange that programming languages tend to have peculiar names
TgMts has joined #ruby
<wasamasa> unfortunately there's already a lowercase esoteric language known as chicken, so
zyxelthrone has quit [Quit: WeeChat 1.1.1]
<shevy> lol
<wasamasa> I have to peruse the shift key at times
agrinb has quit [Ping timeout: 256 seconds]
<shevy> I thought the caps were by accident
<jhass> kr1shnak: what does project_links look like? I guess it contains &?
<wasamasa> shevy: nope: http://call-cc.org/
<jhass> or ; ?
<jhass> anyway, look at the system form that takes an array instead
DadoCe has joined #ruby
<kr1shnak> doh. One of the urls contains an &
<jhass> yeah, use the array form of system
<kr1shnak> thanks man, I will give that a go!
<wasamasa> kr1shnak: I'd generally try avoiding putting a shell into the code
pu22l3r has joined #ruby
<wasamasa> kr1shnak: the open3 module provides you the basics for executing processes safely
r0bby_ has quit [Ping timeout: 250 seconds]
darkswordchris has joined #ruby
<kr1shnak> do you have any links to learning about open3? I will check it out
<darkswordchris> Hello. I was looking through some ruby code and saw this /\ACHT\t(.{6})\t(.+)\t(.+)/ What is it?
<wasamasa> kr1shnak: it's an official module
<havenwood> darkswordchris: a Regexp literal
<kr1shnak> cool
hesco has joined #ruby
<kr1shnak> thank you
<darkswordchris> havenwood: Thanks, now I know what to search for :)
<wasamasa> kr1shnak: there's also a pretty interesting blog about another programming language that uses ruby as example to demonstrate what can go wrong when shelling out
<jhass> wasamasa: the array form of system doesn't invoke a shell
Senjai has joined #ruby
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
tvw has quit []
<wasamasa> jhass: hmk
<havenwood> darkswordchris: You can try out regex here and there's a quick ref: http://rubular.com/
* atmosx FF - Take me out
confucius has joined #ruby
* wasamasa only knew the regular form
<darkswordchris> havenwood: Ah, thanks
* atmosx \o/
aswen has joined #ruby
confucius has quit [Max SendQ exceeded]
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
iwishiwerearobot has joined #ruby
confucius has joined #ruby
DadoCe has quit [Ping timeout: 250 seconds]
confucius has quit [Max SendQ exceeded]
aphprentice__ has joined #ruby
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
aphprentice_ has quit [Ping timeout: 265 seconds]
Hanmac has joined #ruby
TgMts has joined #ruby
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
dfinninger has quit [Remote host closed the connection]
KC9YDN has quit [Ping timeout: 245 seconds]
iwishiwerearobot has quit [Ping timeout: 256 seconds]
thebastl has joined #ruby
twistedpixels is now known as zz_twistedpixels
confucius has joined #ruby
<kr1shnak> I just tried using the array form of system() and it worked a treat
<kr1shnak> :)
confucius has quit [Max SendQ exceeded]
<shevy> \o/
confucius has joined #ruby
spider-mario has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 240 seconds]
<shevy> this is sparta!
jenrzzz has joined #ruby
<shevy> sorry
<shevy> wrong idiom
<shevy> this is ruby!
confucius has quit [Max SendQ exceeded]
<atmosx> hahaha
iMe has quit [Ping timeout: 250 seconds]
<atmosx> Sparta
nobitanobi has joined #ruby
serivich has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
confucius has joined #ruby
KC9YDN has joined #ruby
confucius has quit [Max SendQ exceeded]
<kr1shnak> heh
iMe has joined #ruby
confucius has joined #ruby
<shevy> atmosx how do greek people see that by the way? in like austria we'd say... athens, there were the clever people... and sparta, there were the rough brutal but strong barbarians
confucius has quit [Max SendQ exceeded]
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 264 seconds]
mistnim` has joined #ruby
<atmosx> shevy: Well, hm. It's a little naive as a view. We study a lot both communities in school. It's more complicated than that, but you *could* say that. I mean the position of women for example in Sparta was paramount while in Athens they didn't have any rights.
<shevy> the man is the king!
<atmosx> I think, I have a pretty decent skeleton :D... I need to buy the hardware now.
jlast has quit [Ping timeout: 252 seconds]
confucius has joined #ruby
<centrx> damn Lacedominians
<atmosx> shevy: well, kinda. On the other hand Democracy and Philosophy were born in Athens so it's hard to argue that Sparta was more *advanced* at any level...
<atmosx> at any definition of *clever*
confucius has quit [Max SendQ exceeded]
mistnim has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
<shevy> oh yeah
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> I am reading a book about rhetorics right now. it kinda starts with... I forgot haha... I think it was Plato? or wait... his student I think... Sokrates right? I think Plato hated rhetorics and was suspicious
Morkel has joined #ruby
<shevy> wait
<shevy> it was Aristoteles I think
<atmosx> Socrates -> Platoo -> Aristoteles
<shevy> he wrote some famous book
confucius has joined #ruby
<shevy> yeah!
<shevy> see how good I remember stuff haha
zz_twistedpixels is now known as twistedpixels
confucius has quit [Max SendQ exceeded]
<shevy> but it is cool how far the old greeks got without modern tools. like the democrit atom model
<centrx> it's Playdoh
<atmosx> Actually Platoo is the most famous philosophy in the history of the western world, but all he did was describe largely the life of Socrates through his eyes
<shevy> hehe sounds like a lazy bum
confucius has joined #ruby
<atmosx> Aristotle was the first 'scientist' of sorts. Tried to define some sort of scintific method, but also redefined some of Platoo's argumetns, etc.
darkswordchris has quit [Quit: Page closed]
confucius has quit [Max SendQ exceeded]
<atmosx> shevy: Like the Sieve of Eratosthenes hehe
dfinninger has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
confucius has joined #ruby
<atmosx> shevy: yeah it's fascinating stuff. I've not extremely proficient with Platoo's work, I know the titles, dates, but the texts per se the analysis. It's not easy, although they were 2.500 years back, many assertions are made mind-blowing.
x77686d has joined #ruby
<atmosx> they *made* are mind-blowing.
confucius has quit [Max SendQ exceeded]
jlast has quit [Ping timeout: 250 seconds]
TgMts has joined #ruby
confucius has joined #ruby
<atmosx> shevy: platoo was basically sayign that you already *know* ruby. All you have to do is remember that you know... Because knowledge is already within you.
kt2 has joined #ruby
<atmosx> shit like this which are extremely hard to grasp. Then they come up with a proof and you're puzzled more than before http://plato.stanford.edu/entries/plato-theaetetus/
confucius has quit [Max SendQ exceeded]
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
hollywood has quit [Ping timeout: 265 seconds]
confucius has joined #ruby
DouweM has quit [Quit: Leaving...]
neoxquick has joined #ruby
keen__________64 has joined #ruby
confucius has quit [Max SendQ exceeded]
polysics has joined #ruby
keen__________63 has quit [Ping timeout: 245 seconds]
Tuxero has quit [Read error: Connection reset by peer]
confucius has joined #ruby
Tuxero has joined #ruby
confucius has quit [Max SendQ exceeded]
serivich has joined #ruby
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iMe has quit [Ping timeout: 256 seconds]
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
hesco has quit [Ping timeout: 240 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ptrrr has quit [Quit: ptrrr]
confucius has joined #ruby
S0da has quit [Remote host closed the connection]
confucius has quit [Max SendQ exceeded]
blizzy has joined #ruby
iMe has joined #ruby
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
dfinninger has quit [Remote host closed the connection]
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
hollywood has joined #ruby
jonr22 has joined #ruby
<shevy> atmosx I guess those old things will be for me to read when I am also old :)
<shevy> I am only semi-old right now!
adriancb has joined #ruby
<atmosx> haha
<atmosx> might be
<shevy> and I am trying to understand how to generate audio notes and chords right now ... I'd wish I could have ericwood's knowledge about music
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
Tuxero has quit [Quit: Tuxero]
Mon_Ouie has quit [Ping timeout: 255 seconds]
Tuxero has joined #ruby
maximski has joined #ruby
<waxjar> i've seen a couple of talks on confreaks about exactly that shevy
confucius has joined #ruby
maximski has quit [Max SendQ exceeded]
higherpass has quit [Quit: leaving]
confucius has quit [Max SendQ exceeded]
<waxjar> cool stuff
maximski has joined #ruby
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
DouweM has joined #ruby
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
confucius has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
agrinb has joined #ruby
confucius has quit [Max SendQ exceeded]
User458764 has joined #ruby
confucius has joined #ruby
aswen has quit [Quit: WeeChat 1.0.1]
confucius has quit [Max SendQ exceeded]
confucius has joined #ruby
blackthor has joined #ruby
freerobby has joined #ruby
confucius has quit [Max SendQ exceeded]
diegoviola has joined #ruby
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
agrinb has quit [Ping timeout: 265 seconds]
confucius has joined #ruby
confucius has quit [Max SendQ exceeded]
confucius has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
confucius has quit [Max SendQ exceeded]
confucius has joined #ruby
ponga has quit [Remote host closed the connection]
vozcelik has joined #ruby
vozcelik has quit [Client Quit]
Hanmac has quit [Ping timeout: 256 seconds]
fantazo has joined #ruby
pierre1_ has joined #ruby
aef has quit [Remote host closed the connection]
confucius has left #ruby [#ruby]
aef has joined #ruby
skj3gg has joined #ruby
Vivex_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
SumoBoy has joined #ruby
MikeRogers0 has joined #ruby
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
melmouss has quit [Quit: Textual IRC Client: www.textualapp.com]
OrbitalKitten has joined #ruby
havenwood has quit [Remote host closed the connection]
jaequery has joined #ruby
coinrookie has quit [Read error: Connection reset by peer]
banister has joined #ruby
havenwood has joined #ruby
coinrookie has joined #ruby
roolo has joined #ruby
MikeRogers0 has quit [Remote host closed the connection]
<SumoBoy> folks i need to fully understand a very basic concept in ruby (the conversions)
MikeRogers0 has joined #ruby
<SumoBoy> for instance 555.55.to_f ,,will not change any thing casuse basically this afloat ,
<SumoBoy> 85.333.to_i ----> will puts 85 cause that is a conversion from float to integer
<SumoBoy> but what i can't understand well is (20.to_s) that's a conversion from number to a string whice i can't understand it well . how logically a number convert to a string
<SumoBoy> ?
MikeRogers0 has quit [Client Quit]
jlast has joined #ruby
<shevy> SumoBoy it will return a string object
centrx is now known as HireThisJobAppli
<shevy> the content of the string object can be "" or "20" or any other string
leat has quit [Ping timeout: 250 seconds]
<shevy> in ruby the fixnums will be the same
<shevy> >> 20.object_id == 20.object_id
<eval-in__> shevy => true (https://eval.in/286424)
thebastl has quit [Quit: Leaving...]
<shevy> >> "20".object_id == "20".object_id
<eval-in__> shevy => false (https://eval.in/286425)
<shevy> waxjar thanks I'll check that out
<SumoBoy> so a string object in not only contain 0-9 just numbers ?
lys has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 245 seconds]
leat has joined #ruby
ArchRogem has joined #ruby
<SumoBoy> sorry i mean a string is not only contain a characters it's also contains a numbers ?
zachrab has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<apeiros_> SumoBoy: yes
jlast has quit [Ping timeout: 244 seconds]
<apeiros_> a string can contain any character
<gizmore> which encoding?
<apeiros_> gizmore: you want to confuse this beginner right from the start? :)
geefolk has joined #ruby
<gizmore> confusion is strong in most people :)
geefolk has quit [Max SendQ exceeded]
rhg135|zzz is now known as rhg135
jlast has joined #ruby
geefolk has joined #ruby
<yxhuvud> of course, strings can contain stuff that isn't really valid in that encoding. (which of course will break a lot of stuff)
zyxelthrone has joined #ruby
geefolk has quit [Max SendQ exceeded]
<apeiros_> I don't find that so "of course"
<gizmore> that´s impossible..,. if a sequence is invalid, it´s not a character... however... unicode misses a lot of symbols
<apeiros_> IMO it's rather bad that ruby allows strings to contain data which is not valid in that encoding. should use binary for that.
geefolk has joined #ruby
nateberkopec has joined #ruby
<SumoBoy> apeiros_ :llol right i'm a beginner i don't now whice encoding
geefolk has quit [Max SendQ exceeded]
<apeiros_> what does "whice" mean?
<SumoBoy> which encoding? sorry
HireThisJobAppli is now known as UnemployedHobo
geefolk has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
starless has joined #ruby
fabrice31 has joined #ruby
tunaCanBruh has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
coinrookie has quit [Quit: Leaving]
jlast has quit [Ping timeout: 265 seconds]
<SumoBoy> thank you guys
jonr22 has quit [Remote host closed the connection]
SumoBoy has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 256 seconds]
tunaCanBruh has quit [Ping timeout: 245 seconds]
jerematic has joined #ruby
dmbennett has joined #ruby
comma8 has quit [Quit: YourBNC - (https://yourbnc.co.uk)]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerematic has quit [Ping timeout: 246 seconds]
DonOtreply has joined #ruby
hesco has joined #ruby
havenwood has joined #ruby
bMalum has quit [Quit: bMalum]
djellemah has joined #ruby
pushpak has joined #ruby
hamakn has joined #ruby
UnemployedHobo has quit [Quit: Shutting down, Please wait...]
Cache_Money has joined #ruby
blackmesa has joined #ruby
Spami has quit [Quit: Leaving]
DonOtreply has quit [Quit: DonOtreply]
agrinb has joined #ruby
serivich has quit [Read error: Connection reset by peer]
tus has joined #ruby
gemmy has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 245 seconds]
havenwood has quit []
nobitanobi has quit [Remote host closed the connection]
mikemac is now known as crazymykl
ssidelnikov has joined #ruby
lxsameer has quit [Quit: Leaving]
Pixi_ has quit [Quit: Pixi_]
skj3gg has quit [Read error: Connection reset by peer]
nobitano_ has joined #ruby
comma8 has joined #ruby
skj3gg has joined #ruby
roolo has quit [Quit: Linkinus - http://linkinus.com]
SumoBoy has joined #ruby
iwishiwerearobot has joined #ruby
jimms has quit [Remote host closed the connection]
roolo has joined #ruby
nobitano_ has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
ssidelnikov has quit [Remote host closed the connection]
ponga has joined #ruby
Xiti has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
nobitanobi has joined #ruby
iwishiwerearobot has quit [Ping timeout: 240 seconds]
tier has quit [Remote host closed the connection]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
skj3gg has quit [Quit: ZZZzzz…]
hmsimha has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
zleslie has joined #ruby
<zleslie> Hi. Can someone tell me why my regex doesn't match and return 'down' in http://pastie.org/9951930 ? the string in resource[:name] is 'em0'.
<zleslie> When 'UP' appears in the string, 'up' is returned without issue.
nobitanobi has quit [Ping timeout: 250 seconds]
TgMts has quit [Ping timeout: 252 seconds]
iMe has quit [Ping timeout: 246 seconds]
iamninja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
<zleslie> The regex seems to match without issue outside of ruby
nobitanobi has joined #ruby
SumoBoy has quit [Quit: Leaving]
iMe has joined #ruby
tier has joined #ruby
jimms has joined #ruby
bMalum has joined #ruby
Yzguy has joined #ruby
djellemah has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Ping timeout: 256 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
icarus_ has quit [Quit: leaving]
JBreit has quit [Ping timeout: 246 seconds]
Troy^ has joined #ruby
tier has quit [Remote host closed the connection]
iamninja has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has joined #ruby
jlast has joined #ruby
Tuxero has quit [Quit: Tuxero]
ptrrr has joined #ruby
<waxjar> zleslie: [^UP] means "neither a U nor a P" not "not UP"
geefolk has quit [Ping timeout: 255 seconds]
Troy^ has quit [Client Quit]
willharrison has joined #ruby
<zleslie> How would I say not 'UP'?
magic__ has joined #ruby
JBreit has joined #ruby
KC9YDN has quit [Ping timeout: 245 seconds]
adriancb has quit [Ping timeout: 256 seconds]
ghostpl has joined #ruby
athan has joined #ruby
luriv_ has quit [Ping timeout: 250 seconds]
<waxjar> i'm not an expert at regexpes, it's p icky to do negative assertions
zachrab has joined #ruby
<zleslie> Hrmm, but I literally mean 'does not contain the string 'UP' :)
<waxjar> you could just switch the regexpes, something like http://pastie.org/private/aeyskktyt83y9famdsykxa
jlast has quit [Ping timeout: 265 seconds]
reber has joined #ruby
KC9YDN has joined #ruby
jlast has joined #ruby
<reber> hi. Got a problem after rvm install. I need to source ~/.rvm/scripts/rvm for every terminal i open. How to fix this please ? (sry it's a rvm problem but ...)
Troy^ has joined #ruby
timonv has joined #ruby
<zleslie> waxjar: for some reason, its skilling the down and returning 'absent'
<zleslie> *skipping
luriv_ has joined #ruby
x77686d has quit [Ping timeout: 264 seconds]
iMe has quit [Ping timeout: 246 seconds]
zachrab has quit [Ping timeout: 240 seconds]
<zleslie> reber: put the source line in your bashrc or similar
<reber> even if this source line is in my .bash_profile
riotjones has joined #ruby
<zleslie> does $SHELL contain bash?
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspertidemann has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
magic__ has quit [Ping timeout: 250 seconds]
TgMts has joined #ruby
adriancb has joined #ruby
djellemah has joined #ruby
iMe has joined #ruby
crazysim has quit [Quit: ZNC - http://znc.in]
blackmesa has quit [Quit: WeeChat 1.1.1]
bMalum has quit [Quit: bMalum]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lioninawhat has quit [Read error: Connection reset by peer]
amclain has joined #ruby
lioninawhat has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
<shevy> is it code smell when we use .dup for input that derives from ARGV? such as def foo(i = ARGV); i = i.first.dup unless i.empty?
Yzguy has quit [Quit: I'm sleeping, go away.]
davejacobs has joined #ruby
mistnim` has quit [Remote host closed the connection]
mistnim` has joined #ruby
tjohnson has joined #ruby
Megtastique has joined #ruby
aapole has joined #ruby
Hanmac has joined #ruby
lioninawhat has quit [Remote host closed the connection]
<waxjar> why would you do that shevy?
swgillespie has joined #ruby
mistnim` has quit [Remote host closed the connection]
<reber> zleslie, no
JBreit has quit [Ping timeout: 245 seconds]
<shevy> waxjar so I can freely modify e. g. @ivars that derive from external input
adriancb has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
hesco has quit [Ping timeout: 240 seconds]
davejacobs has quit [Ping timeout: 264 seconds]
Megtastique has quit [Client Quit]
athan has quit [Quit: No Ping reply in 180 seconds.]
swgillespie has quit [Client Quit]
bwilson has joined #ruby
crazysim has joined #ruby
athan has joined #ruby
<waxjar> i wouldn't call it a code smell then, the mutating that happens afterwards might be, though
last_staff has joined #ruby
bMalum has joined #ruby
blackmesa has joined #ruby
agrinb has joined #ruby
swgillespie has joined #ruby
nolic has quit [Quit: Quitte]
JBreit has joined #ruby
athan has quit [Read error: Connection reset by peer]
tunaCanBruh has joined #ruby
User458764 has joined #ruby
daynaskully has quit [Quit: quit]
<reber> zleslie, removed from .bash_profile to .bashrc it worked thanks
agrinb has quit [Ping timeout: 265 seconds]
starfox_sf has joined #ruby
athan has joined #ruby
freerobby has quit [Quit: Leaving.]
iMe has quit [Ping timeout: 240 seconds]
tunaCanBruh has quit [Ping timeout: 245 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
quazimodo has quit [Ping timeout: 255 seconds]
iMe has joined #ruby
quazimodo has joined #ruby
hesco has joined #ruby
TripTastic has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
shredding has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JBreit has quit [Ping timeout: 264 seconds]
hollywood has quit [Quit: Leaving]
timonv has quit [Ping timeout: 246 seconds]
Rhainur has joined #ruby
scripore has joined #ruby
elaptics is now known as elaptics_away
<Rhainur> hey guys, got a question about naming a method. If I have a model Employee who has certain times at which he/she is available for a meeting, and I want to write a method that takes a start and end time and returns true/false for availability, should I call that Employee.is_available_during(start_time, end_time) or Employee.available?(start_time, end_time) or something else?
xiq has joined #ruby
hesco has quit [Ping timeout: 264 seconds]
ponga has joined #ruby
razrunelord has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aapole has quit [Ping timeout: 244 seconds]
b4rbz has joined #ruby
<shevy> Rhainur if shorter is possible then go for shorter
<Rhainur> it's gotta be readable though
<shevy> well
<shevy> in one case you have a '?'
<shevy> in the other you don't
<shevy> so it is not trivial to want to compare
ponga has quit [Ping timeout: 256 seconds]
pu22l3r has joined #ruby
DouweM has quit [Quit: Leaving...]
phoo1234567 has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
hesco has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
iMe has joined #ruby
davidhq has joined #ruby
phoo1234567 has joined #ruby
monod has quit [Ping timeout: 240 seconds]
Vivex has joined #ruby
jlast has joined #ruby
jonr22 has joined #ruby
bwilson has quit [Quit: bwilson]
bMalum has quit [Quit: bMalum]
Fractional has joined #ruby
bricker has joined #ruby
cocotton has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
<Fractional> Hi, why does my gem have problem finding my classes? For instance when I write: require 'Gosuplus'; window = new Gosuplus::Window I get the error: Undefined method Window. Please help me! https://github.com/Freddan962/GosuPlus
zachrab has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
Brando753 has joined #ruby
jlast has joined #ruby
athan has quit [Ping timeout: 244 seconds]
<Fractional> It can however find the test method.
<Fractional> Sorry the error was: unintializec constant Gosuplus::Window <NameError>
akkad has quit [Ping timeout: 245 seconds]
zachrab has quit [Ping timeout: 256 seconds]
jlast has quit [Ping timeout: 240 seconds]
athan has joined #ruby
<waxjar> i think because you don't require your files properly
<Fractional> waxjar, is my path wrong?
<waxjar> Dir['/Gosuplus/.*rb'].each {|file| require file} will look at /Gosuplus on the top level of your file system i think
fantazo has quit [Quit: Verlassend]
<Fractional> What path would you use in this case?
zleslie has left #ruby [#ruby]
<waxjar> i'd just require my files manually, per file
<Fractional> So many files to require though.. *cough*
lys has joined #ruby
<waxjar> e.g. if lib/window.rb depends on lib/helpers/foo.rb, require it in lib/window.rb
<waxjar> *lib/gosuplus
akkad has joined #ruby
athan has quit [Client Quit]
iMe has quit [Ping timeout: 255 seconds]
digifiv5e has joined #ruby
digifiv5e is now known as Guest30481
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
agrinb has joined #ruby
sent1nel has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
athan has joined #ruby
iMe has joined #ruby
razrunelord has quit []
pengin has joined #ruby
chrishough has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 265 seconds]
reber has quit [Remote host closed the connection]
joufflu has joined #ruby
cocotton has quit [Remote host closed the connection]
Hanmac has joined #ruby
Soda has joined #ruby
athan has quit [Ping timeout: 252 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
avr has quit [Quit: this channel is bakas]
tunaCanBruh has joined #ruby
nonnatus has quit [Ping timeout: 255 seconds]
bunbury_ has quit [Ping timeout: 246 seconds]
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
m8 has quit [Read error: Connection reset by peer]
anarang has joined #ruby
Guest30481 has quit [Changing host]
Guest30481 has joined #ruby
byprdct has joined #ruby
Guest30481 is now known as daynaskully
hamakn has joined #ruby
iwishiwerearobot has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
pengin has quit [Remote host closed the connection]
happyface has joined #ruby
pengin has joined #ruby
zyxelthrone has quit [Quit: WeeChat 1.1.1]
hamakn has quit [Ping timeout: 240 seconds]
iwishiwerearobot has quit [Ping timeout: 264 seconds]
pengin has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Read error: Connection reset by peer]
<starless> Why do true and false have distinct classes in Ruby (TrueClass and FalseClass)?
<starless> (As opposed to some mutual class Boolean?)
nolic has joined #ruby
OrbitalKitten has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> implementation detail
iMe has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
<jhass> since they're the only instances of those classes their singleton classes are actually identical to their classes or something like that iirc
<jhass> >> true.singleton_class.equal? TrueClass
<eval-in__> jhass => true (https://eval.in/286492)
<jhass> yup
TripTastic has left #ruby ["Leaving"]
<waxjar> it'd be neat if a Boolean module was mixed in though, so you could write something.is_a? Boolean
<weaksauce> waxjar what use is that?
<jhass> yeah, easy to monkey patch though
<jhass> case foo; when Boolean
<jhass> that's one usecase I can imagine easily
<waxjar> there you go :p
davedev24_ has quit [Ping timeout: 250 seconds]
iMe has joined #ruby
<weaksauce> jhass that's not a great usecase unless it's an outlier. you shouldn't care much about class type
Hanmac has quit [Ping timeout: 265 seconds]
zyxelthrone has joined #ruby
nolic has quit [Remote host closed the connection]
exadeci has joined #ruby
<jhass> imagine it in a DSL method that takes various kinds of input parameters
DadoCe has joined #ruby
<jhass> not that case foo; when true, false; hurts that much more
<jhass> but Boolean might transport intent a little better
The_Phoenix1 has joined #ruby
chinmay_dd has joined #ruby
<weaksauce> that would be every object in ruby though.
<weaksauce> anything not nil or false is true
<weaksauce> so you just described the else clause
<jhass> not to Module#===
<jhass> or TrueClass#===
jhebden has joined #ruby
olivier_bK has joined #ruby
<jhass> >> true === Object.new
<eval-in__> jhass => false (https://eval.in/286495)
turtil has joined #ruby
goodenough has joined #ruby
The_Phoenix has quit [Ping timeout: 240 seconds]
<weaksauce> ah yeah
thoraxe has quit [Ping timeout: 264 seconds]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
DadoCe has quit [Ping timeout: 255 seconds]
hdrv has quit [Quit: ZNC - http://znc.in]
tunaCanBruh has joined #ruby
davedev24_ has joined #ruby
scripore has joined #ruby
OrbitalKitten has joined #ruby
iamjarvo has joined #ruby
dixie__ has joined #ruby
hgl has quit [Ping timeout: 245 seconds]
Fractional has quit [Quit: Leaving]
ta_ has quit [Remote host closed the connection]
ta has joined #ruby
yfeldblum has joined #ruby
hgl has joined #ruby
Lemur has joined #ruby
athan has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 264 seconds]
marr has joined #ruby
jlast has joined #ruby
<xiq> hey, can somebody help me with a gosu related problem?
pierre1_ has quit [Ping timeout: 252 seconds]
Megtastique has joined #ruby
<jhass> is there a question?
* apeiros_ assumes it's related to "do something"
msgodf has joined #ruby
<jhass> side notes then: ruby community standard is 2 spaces for indentation, if ! is better written as unless
<apeiros_> xiq: you can probably make your code simpler if you calculate the theoretical new position first, then check for collision and then decide whether the new position will replace the current.
<xiq> oh sorry, I forgot to point out
Megtastique has quit [Client Quit]
vozcelik has joined #ruby
<jhass> the return keyword in 14 is not needed
hyperdrive has joined #ruby
<apeiros_> and "check for collision" - pass in the new position. otherwise you do work twice.
Hanmac has joined #ruby
<xiq> dudes wait a second :)
<apeiros_> second is up! quick!
<apeiros_> ;-)
<jhass> beeeep, times up, have a nice day!
<xiq> not so fast my hand is hurt lol
<xiq> the problem is different - i think I don't quit understand the concept of modularity or the implementation therof
jlast has quit [Ping timeout: 250 seconds]
<shevy> your hand is hurting
<xiq> the main class (a window) creates a scene - a scene is a switchable thing like a state that the game can be in
<shevy> your head should rather be hurting!
twistedpixels is now known as zz_twistedpixels
<xiq> it is too, trust me
<shevy> hehe
<xiq> now there's a scene called 'ScenePlayerInfo' that shows information about the player
jlast has joined #ruby
skj3gg has joined #ruby
shredding has quit [Quit: shredding]
<xiq> and in this scene, a player object is instantiated
DadoCe has joined #ruby
<xiq> the problem is, gosu wants you to declare a window when you load an image. But how can I reference the window from inside the player class?
<xiq> so my problem is actually on line 5
<apeiros_> you pass it in
<apeiros_> and store it
gokul has quit [Ping timeout: 246 seconds]
<shevy> yeah
<shevy> like beer
<jhass> you store beer?
<shevy> ok you got me there
<jhass> that's what I'm doing wrong all the time...
<apeiros_> or you use the singleton pattern and have a globally accessible window instance
gokul has joined #ruby
<shevy> yeah, I buy at max like only 1 beer per week and drink it
startupality has joined #ruby
zz_twistedpixels is now known as twistedpixels
juancaman has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
vozcelik has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
lessless has joined #ruby
twistedpixels is now known as zz_twistedpixels
agrinb has quit [Ping timeout: 250 seconds]
zz_twistedpixels is now known as twistedpixels
blackmesa has quit [Quit: WeeChat 1.1.1]
lightstalker has quit [Ping timeout: 246 seconds]
sent1nel has quit [Read error: Connection reset by peer]
sent1nel has joined #ruby
twistedpixels is now known as zz_twistedpixels
aapole has joined #ruby
pu22l3r has joined #ruby
MaciejCzyzewski has joined #ruby
<xiq> apeiros_: i tried with using a global variable but that didn't quite work out
maletor has joined #ruby
<xiq> I sometimes think that the more I learn, the more I start to overcomplicate stuff
<xiq> and then it gets so much more complicated inside of my head than it really is
<xiq> and as a result i'm endlessly procrastinating because I can't find a way to express my thoughts in code anymore
Dopagod has quit [Ping timeout: 245 seconds]
lidaaa has joined #ruby
<xiq> also I wonder why a resource needs to declare a window in its creation
joufflu has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Megtastique has joined #ruby
Megtastique has quit [Client Quit]
davejacobs has joined #ruby
gsd has joined #ruby
lightstalker has joined #ruby
dmbennett has quit [Remote host closed the connection]
<juancaman> dat feel bro
<djellemah> xiq: Sometimes it helps to think of what needs to be where so you can give the right things to the api you're using. And how to do that in the easiest (both for you and for the cpu) way.
lys has quit [Quit: lys]
skj3gg has quit [Quit: ZZZzzz…]
davejacobs has quit [Ping timeout: 252 seconds]
bwilson has joined #ruby
chipotle_ has quit [Quit: cheerio]
dorei has joined #ruby
nolic has joined #ruby
MaciejCzyzewski has quit [Quit: Textual IRC Client: www.textualapp.com]
bMalum has joined #ruby
ponga has joined #ruby
uglybandersnatch has joined #ruby
fabrice31 has joined #ruby
zz_twistedpixels is now known as twistedpixels
Dopagod has joined #ruby
jonr22 has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has quit [Ping timeout: 244 seconds]
gokul has quit [Ping timeout: 245 seconds]
Megtastique has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
uglybandersnatch has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
soxet has quit [Quit: Leaving]
zachrab has joined #ruby
<xiq> still nothing
jonr22 has quit [Ping timeout: 252 seconds]
mikemac has joined #ruby
athan has quit [Ping timeout: 265 seconds]
zachrab has quit [Ping timeout: 250 seconds]
crazymykl has quit [Ping timeout: 252 seconds]
slyv has joined #ruby
<bradland> xiq: i try to develop toward an API that makes sense to me, rather than trying to think too hard about the computer sciency bits
jlast has joined #ruby
bwilson has quit [Quit: bwilson]
<bradland> i think about the things i'm trying to achieve, and how they group together logically
<bradland> i have to refactor a lot, because i almost never get it right the first time
<bradland> but it works better than dumping too much effort in up-front and stalling
nolic has quit [Remote host closed the connection]
<xiq> yeah you're probably right
<bradland> accepting that your first run will suck is a real life changer haha :)
<xiq> everything went so smoothly until I added gosu
posixpascal has joined #ruby
<xiq> I mean I'm a pretty decent rails dev and I've also developed quite some videogames already
<bradland> game dev is some of the hardest dev (IMO), fwiw
<bradland> i live in the land of CRUD, text mangling, and systems administration/devops
skj3gg has joined #ruby
<xiq> but I don't know I feel like I need a good hit from the pipe
<xiq> aye
<xiq> the boring corporate world that has shaped me into this mess
lioninawhat has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
<xiq> should have just gone to university
gokul has joined #ruby
agrinb has joined #ruby
jlast has joined #ruby
<bradland> you in the UK? or on the continent?
<xiq> I live in Germany but I'm originally from EX-YU
<bradland> i'm in the US, and didn't go to university
<bradland> everything seems to have worked out OK :)
<xiq> but I thought to myself 'hah I don't need to finish the last year of school that qualifies me for university, I'll just do the practical apprenticeship'
<xiq> lol
<xiq> I'm glad it worked out for you
pu22l3r has quit [Remote host closed the connection]
swgillespie has joined #ruby
<bradland> the cost/value proposition is a little different here in the states though
blackmesa has joined #ruby
<xiq> but for me, I see that I have no real interest in practical programming, but for discovering and defining patterns, models and stuff like this
bluOxigen has quit [Ping timeout: 245 seconds]
<xiq> you mean with the debt for students?
mxrguspxrt has joined #ruby
Morkel has quit [Quit: Morkel]
agrinb has quit [Ping timeout: 265 seconds]
swgillespie has quit [Max SendQ exceeded]
jlast has quit [Ping timeout: 250 seconds]
<bradland> yeah, college is very expensive here.
<bradland> not to say i didn't pay for an education, of sorts
<bradland> just not in the sense that i wrote a check to a university, or took on any debt
swgillespie has joined #ruby
<xiq> it's not really different here, germany is like the model-2-classes-society
<bradland> rather, i spent a good portion of my early career earning very little and making mistakes on someone else's dime
unreal_ has joined #ruby
<xiq> earning little sucks
<xiq> if you aren't privileged and don't want to live like a motherfucker, then you don't even have to apply for university in germany, I guess
<bradland> i'm a bit like a labrador retriever, so earning little didn't bother me too much.
<bradland> i was just happy to be doing what i enjoyed
<xiq> haha
elaptics_away is now known as elaptics
<xiq> of course joy can compensate for a lot
yfeldblum has joined #ruby
unreal has quit [Ping timeout: 246 seconds]
bMalum has quit [Ping timeout: 250 seconds]
<xiq> I mean I really that I get to work with ruby every day in my job but the place where I work just doesn't suit me at all
<xiq> I get so depressed sitting there, because they're all acting serious. No creativity flowing there :p
Motoservo has joined #ruby
Megtastique has quit []
gokul has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Read error: Connection reset by peer]
<xiq> I'm just not the guy who likes to act dramatically when all the servers shut down and stuff happens
OrbitalKitten has joined #ruby
<xiq> the IT doods always act like drama queens when some random bullshit happens and they appear to be so involved in it - you start asking yourself if they even have friends outside the company
<xiq> or a social life. whatever.
<wasamasa> this must be #rant
Lewix has quit [Remote host closed the connection]
bMalum has joined #ruby
<xiq> sorry it just came over me lol
<shevy> no this is either #sparta or #reallife
<wasamasa> I mean, how the hell did "can somebody help me with a gosu related problem?" turn into "I'm someone you wouldn't want to work with!"
iwishiwerearobot has joined #ruby
* xiq apologizes for the wall of OT
CpuID2 has joined #ruby
CpuID2 has joined #ruby
<shevy> would you work with xiq wasamasa
<wasamasa> shevy: no
adriancb has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Lewix has joined #ruby
chipotle has joined #ruby
* wasamasa is also living in germany and writing ruby at his internship
<xiq> well that's ok I blame it on my poor english skill
skj3gg has quit [Quit: ZZZzzz…]
<xiq> I can't get across what I want to say
jhebden has quit [Ping timeout: 264 seconds]
<shevy> don't worry wasamasa speaks german
<shevy> strangely enough, really many people here actually do
Crisix has joined #ruby
iwishiwerearobot has quit [Ping timeout: 250 seconds]
adriancb has quit [Ping timeout: 246 seconds]
<xiq> meh
djellemah has quit [Ping timeout: 252 seconds]
<xiq> why exactly wouldn't you want to work with me, wasamasa
<wasamasa> xiq: because you blame your procrastination on others doing their job instead of goofing around
bwilson has joined #ruby
binary1985 has joined #ruby
<xiq> sorry but I never said anything like that
rubytor has joined #ruby
<shevy> xiq wasamasa is the channel pessimist
<xiq> as you can see I'm actively working on stuff that I want to understand
baweaver has joined #ruby
<shevy> you won't be able to convince a pessimist :>
The_Phoenix1 has quit [Read error: Connection reset by peer]
<xiq> It's just that without guidance, I get lost in my own web of questions
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
<xiq> kk i apologize lol
<wasamasa> shevy: I'm a realist FWIW
<shevy> xiq you need to establish a way how you can work with code
jonr22 has joined #ruby
<shevy> I am myself struggling often. right now I struggle with optionparser again... one day I will find the strength to either use something else or write my own way to handle ARGV
<wasamasa> xiq: well, you wrote that you procrastinate because of your mental state, that your corporate life imposed that mental state on you and that people at your job aren't helping
iMe has quit [Ping timeout: 255 seconds]
<wasamasa> xiq: from which I infer that you're blaming them
<wasamasa> shevy: use slop?
<shevy> one day I shall!
<wasamasa> ...
jonr22 has quit [Client Quit]
<xiq> oh no, I procrastinate because I'm running in circles around my problem ( by reading walls upon walls of docs and references ) the corporate life thing was just a random throw-in
<wasamasa> ok then
jaequery has joined #ruby
<wasamasa> still doesn't change my opinion :P
iMe has joined #ruby
baweaver has quit [Remote host closed the connection]
<xiq> It's like you're learning the same thing in 10 different ways, but you don't see that it's the same thing, so you keep learning it again and again
anarang has quit [Ping timeout: 246 seconds]
<shevy> xiq you have used a programming language before right?
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
<xiq> yes, for 8 years already, oddly
<shevy> k so things such as functions and methods are extremely similar in most programming languages
<xiq> the problem is that I've teached myself the most so I have more of an intuition for it than a grounded knowledge
<xiq> go on shevy
<shevy> organization of projects - documentation, what and how to document, tests, bugs, bug reports, feature requests, changes
<shevy> I am sure you already have habits and patterns that you use to organize knowledge or how you operate
tunaCanBruh has quit [Ping timeout: 246 seconds]
<shevy> I tend to store stuff such as how to solve something into snippet-section
<shevy> I mean, I have no idea how things are in haskell land for instance
<shevy> probably they think completely differently
Megtastique has joined #ruby
spider-mario has joined #ruby
<shevy> but this is not haskell here, this is ruby. ruby is somewhat complex if taken as a whole but in essence really simple. you have objects that may have data and behavior
<wasamasa> shevy: they lift functions
<shevy> and you can modify stuff at will
<shevy> they lift functions?
<wasamasa> shevy: and they eat monoids for breakfast
<shevy> don't you normally lift weights or your face?
<wasamasa> yes, lambda lifting is a thing
jottr has joined #ruby
<xiq> lol
<shevy> string lambda and string tanga
<wasamasa> you promote a function to become more general
<shevy> cool
<shevy> so like a general on the battlefield
<wasamasa> lol
<wasamasa> no, you transform a function you're using locally into a function you can use globally
<wasamasa> which is a pretty snazzy thing, however I've only found out it has a name thanks to haskell
<wasamasa> you may know it as a more or less common way of refactoring
pdoherty has joined #ruby
Astrologos_ has joined #ruby
CpuID2 has quit [Quit: This computer has gone to sleep]
dorei has quit [Ping timeout: 264 seconds]
Astrologos_ is now known as dorei
pdoherty has quit [Client Quit]
raphaelss has quit [Quit: leaving]
agrinb has joined #ruby
<xiq> ok I found this book, and they do it exactly like i do it in this chapter: https://leanpub.com/developing-games-with-ruby/read#leanpub-auto-switching-between-game-states
bwilson has quit [Quit: bwilson]
<xiq> so I know I can't be crazy or demented, but that there's some kind of bug
SumoBoy has joined #ruby
jonr22 has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Megtastique has quit []
decoponio has quit [Read error: Connection reset by peer]
thatslifeson has joined #ruby
decoponio has joined #ruby
ponga has joined #ruby
pierre1_ has joined #ruby
gokul has joined #ruby
speakingcode has joined #ruby
Crisix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has quit [Ping timeout: 246 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
Takle has joined #ruby
claptor has joined #ruby
iMe has quit [Ping timeout: 246 seconds]
Deithrian has joined #ruby
banister has joined #ruby
<Deithrian> Aaaaannnd... backtowindows..
iMe has joined #ruby
jimms has quit [Remote host closed the connection]
SumoBoy has quit [Quit: Leaving]
SumoBoy has joined #ruby
jlast has joined #ruby
flaccid_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
<flaccid_> hey guys, i’m using Timeout::timeout(@timeout) { <multiple lines here> } and rubocop doesn’t like me using mutliple lines. what should i be using instead?
bogdanteleaga has joined #ruby
jenrzzz has joined #ruby
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
bruno- has quit [Quit: Lost terminal]
<juancaman> :t Monad
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
codecop has quit [Remote host closed the connection]
<juancaman> sorry wring channel
<juancaman> *wrong
jlast has quit [Ping timeout: 265 seconds]
agrinb has quit [Remote host closed the connection]
pu22l3r has joined #ruby
bruno- has joined #ruby
agrinb has joined #ruby
pu22l3r has quit [Remote host closed the connection]
zyxelthrone has quit [Quit: WeeChat 1.1.1]
jlast has joined #ruby
bruno- has quit [Remote host closed the connection]
<jhass> flaccid_: there are essentially two schools for using do/end vs {/}. The simple one is do /end for multiline blocks and {/} for single line blocks. The other school is called weirich's rule, here's his original blogpost: https://web.archive.org/web/20140221124509/http://onestepback.org/index.cgi/Tech/Ruby/BraceVsDoEnd.rdoc
<flaccid_> jhass: thanks. i’m reading https://github.com/bbatsov/ruby-style-guide
<jhass> don't be too intimidated by rubocops defaults, many people disagree with it and it's okay to have your own preferences
Motoservo has joined #ruby
<crome> ah, another styleguide
_tpavel has joined #ruby
<flaccid_> this is one of the problems with ruby :)
agrinb has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 252 seconds]
Motoservo has quit [Client Quit]
<crome> I really, really like gofmt. the only valid code is what gofmt spits out. it's brilliant
Megtastique has joined #ruby
<crome> I don't always like it but there are no stupid arguments about style
zyxelthrone has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
<crome> not to mention competing guides
WillAmes has quit [Remote host closed the connection]
<SumoBoy> Strings, are sequences of characters. so (characters) contains numbers ? or just letters ?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gwillickers has joined #ruby
Megtastique has quit [Client Quit]
jerius has joined #ruby
mroach has joined #ruby
<eam> SumoBoy: characters are numbers, which also represent letters
agrinb has joined #ruby
<apeiros_> SumoBoy: (ruby) strings are byte arrays
<eam> most numbers have a character value. All characters have a ordinal numeric value
<apeiros_> what a byte, or a sequence of bytes means is defined by the encoding of the string
<eam> apeiros_: I'd say ruby strings are character arrays
<apeiros_> i.e. in all ASCII compatible encodings (and most currently used encodings are), the letter "A" is encoded with a value of 65
<apeiros_> eam: that'd be wrong. but most methods abstract the byte nature away.
<apeiros_> if it was a char array, you'd have O(1) access on multibyte encodings
<apeiros_> s/multibyte/variable byte/
<eam> well it's not a true array of either type, is it?
duncannz has joined #ruby
<eam> but logically, the indicies are on character boundaries not byte
duncannz has quit [Max SendQ exceeded]
_tpavel has quit [Quit: Leaving]
<apeiros_> it is a true byte array. that's why it needs to seek a utf-8 string for a given index.
<eam> are you sure it's not a list?
CpuID2 has joined #ruby
mikepack has joined #ruby
<apeiros_> I am pretty sure. but you can always check the source :)
duncannz has joined #ruby
rubytor has quit [Ping timeout: 240 seconds]
duncannz has quit [Max SendQ exceeded]
CpuID2 has quit [Client Quit]
DEA7TH has quit [Ping timeout: 250 seconds]
cajone has joined #ruby
<SumoBoy> for example https://gist.github.com/anonymous/113ef2c48558d0af21e2 very simple code clear that (20)outputs as a word or phrase not a number is that right ?
spider-mario has quit [Ping timeout: 250 seconds]
WillAmes has joined #ruby
<eam> SumoBoy: to_s turns a number into a multi-character string
<eam> >> 1234.to_s
<eval-in__> eam => "1234" (https://eval.in/286580)
<eam> the ordinal value of a character is different. For example
<eam> >> 1.ord
<eval-in__> eam => 1 (https://eval.in/286582)
spider-mario has joined #ruby
<eam> >> "1".ord
<eval-in__> eam => 49 (https://eval.in/286584)
<eam> >> 1.to_s.ord
<eval-in__> eam => 49 (https://eval.in/286585)
crazymykl has joined #ruby
<eam> because in ASCII, the character "1" is represented by a numeric value of 49
mikemac has quit [Ping timeout: 246 seconds]
gokul has quit [Ping timeout: 252 seconds]
rubytor has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
willharrison has joined #ruby
charliesome has joined #ruby
maximski has quit []
monod has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
xiq has quit [Ping timeout: 246 seconds]
<apeiros_> SumoBoy: and just to have that said too - whenever you see e.g. in irb the number 1234, it's because that transformation happened
iMe has joined #ruby
jhebden has joined #ruby
monod has quit [Quit: Sto andando via]
Deithrian has quit [Ping timeout: 250 seconds]
DadoCe has quit [Remote host closed the connection]
greenbagels has quit [Read error: Connection reset by peer]
tunaCanBruh has joined #ruby
raphaelss has joined #ruby
SumoBoy has quit [Quit: Leaving]
agrinb has quit [Remote host closed the connection]
mxrguspxrt has quit [Remote host closed the connection]
agrinb has joined #ruby
Azure has joined #ruby
aapole has quit [Ping timeout: 246 seconds]
tunaCanBruh has quit [Ping timeout: 245 seconds]
rubytor has quit [Ping timeout: 246 seconds]
j0n3 has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 252 seconds]
adriancb has joined #ruby
agrinb has joined #ruby
skj3gg has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
zachrab has joined #ruby
LetErikTry has joined #ruby
LetErikTry has joined #ruby
charliesome has quit [Quit: zzz]
it0a has joined #ruby
sent1nel has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
ponga has joined #ruby
sent1nel has joined #ruby
zachrab has quit [Ping timeout: 256 seconds]
sent1nel has quit [Remote host closed the connection]
joekain has joined #ruby
nobitanobi has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
joekain has quit [Client Quit]
skj3gg has quit [Quit: ZZZzzz…]
ponga has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
iMe has joined #ruby
Rhainur1 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rhainur has quit [Ping timeout: 264 seconds]
cajone has quit [Remote host closed the connection]
razieliyo has joined #ruby
agrinb_ has joined #ruby
cajone has joined #ruby
ixti has joined #ruby
agrinb has quit [Ping timeout: 250 seconds]
crazymykl has quit [Ping timeout: 246 seconds]
atomicalloy has joined #ruby
sent1nel has joined #ruby
jlast has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<skyjumper> trying to figure out why OpenStruct isn't behaving like in the docs...
<skyjumper> ruby 2.2.0p0
athan has joined #ruby
gemmy has quit [Ping timeout: 255 seconds]
goodenough has quit [Remote host closed the connection]
* skyjumper figured it out. duh.
jlast has quit [Ping timeout: 250 seconds]
<apeiros_> skyjumper: where in the docs do you see a block form of new?
<skyjumper> in the facets docs
<apeiros_> well, facets != ruby
<skyjumper> indeed
jlast has joined #ruby
iwishiwerearobot has joined #ruby
scripore has quit [Quit: Leaving]
jlast has quit [Ping timeout: 244 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
raphaelss has quit [Quit: leaving]
Sawbones has joined #ruby
iwishiwerearobot has quit [Ping timeout: 246 seconds]
msgodf has quit [Ping timeout: 240 seconds]
Lingo___ has joined #ruby
Lingo___ has quit [Client Quit]
olivier_bK has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
dfinninger has joined #ruby
kirun has quit [Quit: Client exiting]
sent1nel has quit [Remote host closed the connection]
Salve has joined #ruby
charliesome has quit [Client Quit]
mikecmpbll has joined #ruby
chipotle has quit [Quit: cheerio]
hiyosi has joined #ruby
Sawbones has quit [Remote host closed the connection]
iMe has quit [Ping timeout: 252 seconds]
vire has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
raphaelss has joined #ruby
jenrzzz has joined #ruby
postmodern has joined #ruby
dfinninger has quit [Remote host closed the connection]
iMe has joined #ruby
flaccid__ has joined #ruby
flaccid_ has quit [Ping timeout: 244 seconds]
vasuvi has joined #ruby
FooMunki_ has joined #ruby
Tuxero has joined #ruby
tunaCanBruh has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has joined #ruby
nii236|irssi has joined #ruby
tunaCanBruh has quit [Ping timeout: 244 seconds]
sent1nel has joined #ruby
nobitanobi has quit [Remote host closed the connection]
phutchins has joined #ruby
iMe has quit [Ping timeout: 246 seconds]
ptrrr has quit [Quit: ptrrr]
zachrab has joined #ruby
skj3gg has joined #ruby
iMe has joined #ruby
Takle has quit [Remote host closed the connection]
CpuID2 has joined #ruby
Musashi007 has quit [Ping timeout: 252 seconds]