apeiros changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
TinkerTyper has joined #ruby
gambl0re has quit [Ping timeout: 244 seconds]
moretti has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d10n-work has quit [Quit: Connection closed for inactivity]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paradisaeidae has joined #ruby
bMalum has quit [Quit: bMalum]
commondream has joined #ruby
baweaver has quit [Remote host closed the connection]
TheNet has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
DerisiveLogic has joined #ruby
workmad3 has joined #ruby
kies has quit [Ping timeout: 252 seconds]
balazs has quit [Remote host closed the connection]
cubesandcode has quit [Remote host closed the connection]
juanpaucar has quit [Remote host closed the connection]
marr has quit [Ping timeout: 272 seconds]
mandarinkin has quit [Quit: Leaving]
dorei has quit []
<Vendella> Has anyone here tried Elixir? :)
<dfockler> Vendella: I was trying it out this morning
<havenwood> Vendella: yup
<Vendella> dfockler, Can't ask you much then :(
<Vendella> havenwood, What did you think about it?
<havenwood> Vendella: love it
<Vendella> havenwood, I think I'm worried. A lot of rubyists here said the same.
<havenwood> Vendella: I'm excited about Elixir 1.3. Good stuff coming down the pipeline.
mello has joined #ruby
scripore has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
Zai00 has quit [Quit: Zai00]
<Vendella> havenwood, Oh sounds great.
MatthewsFace has joined #ruby
<dfockler> Elixir has a few gotchas in the syntax, but it's pretty nice
mello has quit [Ping timeout: 256 seconds]
jpfuentes2 has joined #ruby
kropotkin__ has joined #ruby
Channel6 has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
bigmac has quit [Ping timeout: 265 seconds]
vikaton has quit []
balazs has joined #ruby
soulcake has quit [Quit: Quack.]
jenrzzz has joined #ruby
soulcake has joined #ruby
serivich has joined #ruby
balazs has quit [Remote host closed the connection]
dfockler has quit []
iliketurtles has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanda has quit [Quit: juanda]
Musashi007 has joined #ruby
qwertme has joined #ruby
asteros has quit [Quit: asteros]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asteros has joined #ruby
Lucky__ has joined #ruby
nfk has quit [Quit: yawn]
gluten_hell_ has joined #ruby
gizmore has quit [Ping timeout: 252 seconds]
gluten_hell_ has quit [Ping timeout: 265 seconds]
allcentury has joined #ruby
_seanc_ has quit [Quit: _seanc_]
pengin has joined #ruby
wldcordeiro has quit [Quit: Konversation terminated!]
nettoweb has joined #ruby
garyserj has quit [Ping timeout: 245 seconds]
garyserj has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
kayloos has quit [Remote host closed the connection]
scripore has joined #ruby
<Diabolik> how can i refactor my times_prime method
<Diabolik> it seems kinda clunky
scripore has quit [Client Quit]
_blizzy_ has quit [Ping timeout: 265 seconds]
<jhass> Diabolik: uh, check again on how map works
<jhass> >> [1, 2, 3].map {|n| n*2 }
<ruboto> jhass # => [2, 4, 6] (https://eval.in/372745)
livathinos has joined #ruby
juanda has joined #ruby
<Diabolik> so i can remove the do loop?
allcentury has quit [Ping timeout: 272 seconds]
<jhass> you can remote the <<
<jhass> *remove
bogdanteleaga has quit [Ping timeout: 276 seconds]
Rickmasta has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
allcentury has joined #ruby
Yzguy has joined #ruby
<jhass> or can you, mh
<Diabolik> nope
<Diabolik> it fails if you remove it
<Diabolik> the test
commondream has quit [Remote host closed the connection]
fedexo has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
<jhass> oh, you shadow multi
<jhass> that confused me a lot
ndrei has joined #ruby
<Diabolik> the first half of the code is slick
<Diabolik> second half is clunky
bogdanteleaga has joined #ruby
<Diabolik> and kinda cluttered i guess
<jhass> multi = primes.map {|prime1| primes.map {|prime2| prime2 * prime1 } }
northfurr has quit [Quit: northfurr]
<jhass> and since that's the return value you don't even need the assignment
commondream has joined #ruby
asteros has quit [Quit: asteros]
<Diabolik> expected: [[1, 2, 3], [2, 4, 6], [3, 6, 9]]
<Diabolik> got: [[4, 6], [6, 9]]
iliketurtles has quit [Quit: zzzzz…..]
garyserj has quit [Ping timeout: 258 seconds]
<Diabolik> and it doesn't sort the row issue out
allcentury has quit [Ping timeout: 256 seconds]
garyserj has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
<Diabolik> oh hang on
<Diabolik> i understand jhass
commondream has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
<alxndr> Diabolik: map and reduce can replace a surprisingly large number of loops & variables
<jhass> 2.upto(Float::INFINITY).lazy.reject {|i| 2.upto(i-1).any? {|j| i % j == 0 } }.first(n) is what I'd write for the first method, style wise
garyserj has quit [Ping timeout: 258 seconds]
pontiki has joined #ruby
<Diabolik> lazy is really cool
asteros has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
<pontiki> hallo/
garyserj has joined #ruby
Guest24 has quit [Ping timeout: 272 seconds]
pengin has quit [Ping timeout: 264 seconds]
djbkd has quit [Quit: My people need me...]
iliketurtles has joined #ruby
robustus has joined #ruby
gusrub has quit [Quit: Leaving]
michael_mbp has quit [Excess Flood]
jenrzzz has quit [Ping timeout: 250 seconds]
gr33n7007h is now known as al2o3-cr
Yzguy has quit [Quit: I'm sleeping, go away.]
michael_mbp has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
DEA7TH has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ox0dea has joined #ruby
<Ox0dea> >> 1/0.0
<ruboto> Ox0dea # => Infinity (https://eval.in/372750)
zotherstupidguy has quit [Ping timeout: 258 seconds]
<jhass> >> Float::INFINITY
<ruboto> jhass # => Infinity (https://eval.in/372751)
<Ox0dea> >> ['1/0.0'.size, 'Float::INFINITY'.size]
<ruboto> Ox0dea # => [5, 15] (https://eval.in/372752)
claptor has joined #ruby
<jhass> >> def clarity(code); code.count("a-zA-Z"); end; [clarity("1/0.0"), clarity("Float::INFINITY")]
<ruboto> jhass # => [0, 13] (https://eval.in/372753)
ghr has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cheerio]
<pontiki> hmm
asteros has quit [Quit: asteros]
<pontiki> >> (1/0.0).class
<ruboto> pontiki # => Float (https://eval.in/372754)
<pontiki> >> Infinity.class
<ruboto> pontiki # => uninitialized constant Infinity (NameError) ...check link for more (https://eval.in/372755)
doritostains has joined #ruby
<pontiki> >> (1/0.0).inspect
<ruboto> pontiki # => "Infinity" (https://eval.in/372756)
quimrstorres has joined #ruby
<pontiki> aha
<pontiki> >> Float::IFINITY.to_s
<ruboto> pontiki # => uninitialized constant Float::IFINITY (NameError) ...check link for more (https://eval.in/372757)
<pontiki> oops
<pontiki> >> Float::INFINITY.to_s
<ruboto> pontiki # => "Infinity" (https://eval.in/372758)
<pontiki> ok, sorry
mello has joined #ruby
juanca_ has joined #ruby
chipotle has joined #ruby
<jhass> >> [(1/0.0).object_id, Float::INFINITY.object_id]
<ruboto> jhass # => [543064820, 543156360] (https://eval.in/372759)
<jhass> odd
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dseitz has joined #ruby
<alxndr> >> [(1/0.0).object_id, (1/0.0).object_id, (1/0.0).object_id, (1/0.0).object_id]
<ruboto> alxndr # => [548429120, 548429260, 548429650, 549634020] (https://eval.in/372760)
<jhass> >> [(1/0.0).hash, Float::INFINITY.hash]
<ruboto> jhass # => [210226327, 210226327] (https://eval.in/372761)
quimrstorres has quit [Ping timeout: 250 seconds]
pwattstbd has quit [Quit: Textual IRC Client: www.textualapp.com]
mello has quit [Ping timeout: 240 seconds]
livathinos has quit []
TheNet has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
davedev24_ has joined #ruby
juanda has quit [Read error: Connection reset by peer]
moted_ has quit []
scripore has quit [Quit: This computer has gone to sleep]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
juanca_ has quit [Remote host closed the connection]
juanca_ has joined #ruby
juanca_ has quit [Client Quit]
amclain has joined #ruby
juanda has joined #ruby
scripore has joined #ruby
mary5030 has joined #ruby
nettoweb has joined #ruby
XxionxX has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 252 seconds]
_seanc_ has joined #ruby
moted has joined #ruby
s2013 has joined #ruby
zotherstupidguy has joined #ruby
gambl0re has joined #ruby
snockerton has quit [Quit: Leaving.]
asteros has joined #ruby
senayar has quit [Remote host closed the connection]
watchtheblur has quit [Ping timeout: 252 seconds]
DynamicMetaFlow has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
retornam has quit [Ping timeout: 244 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phreakocious has quit [Ping timeout: 265 seconds]
bmn has quit [Ping timeout: 264 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has quit [Ping timeout: 264 seconds]
SegFaultAX has quit [Ping timeout: 265 seconds]
kenichi has quit [Ping timeout: 244 seconds]
rcs has quit [Ping timeout: 255 seconds]
Sou|cutter has quit [Ping timeout: 246 seconds]
ebonics is now known as lebonics
DrForr has quit [Ping timeout: 256 seconds]
papercode has quit [Ping timeout: 255 seconds]
Hamled has quit [Ping timeout: 272 seconds]
keyofnight has quit [Ping timeout: 272 seconds]
lebonics has quit [Quit: Leaving]
Liothen has quit [Ping timeout: 276 seconds]
Junaos has quit [Ping timeout: 276 seconds]
johnhamelink has quit [Ping timeout: 265 seconds]
Klumben has quit [Ping timeout: 265 seconds]
ChasedSpade has quit [Ping timeout: 272 seconds]
Renich has joined #ruby
asteros has quit [Quit: asteros]
juanda has quit [Quit: juanda]
balazs has joined #ruby
moretti has quit [Quit: Leaving...]
Musashi007 has quit [Quit: Musashi007]
noethics has joined #ruby
garyserj has quit [Ping timeout: 240 seconds]
paulcsmith has joined #ruby
paulcsmith has quit [Client Quit]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
garyserj has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
Lucky__ has joined #ruby
DynamicMetaFlow has joined #ruby
Renich_ has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
commondream has joined #ruby
Renich has quit [Ping timeout: 256 seconds]
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
pipework is now known as draughtpunk
Rickmasta has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 264 seconds]
jpfuentes2 has joined #ruby
commondream has quit [Ping timeout: 240 seconds]
qwertme has joined #ruby
mrmargolis has joined #ruby
serivich has quit [Ping timeout: 272 seconds]
FernandoBasso has quit [Quit: leaving]
starless has joined #ruby
kropotkin__ has quit [Ping timeout: 256 seconds]
TheNet has joined #ruby
TheNet has quit [Client Quit]
gauke has joined #ruby
nettoweb has joined #ruby
gauke has quit [Client Quit]
ghr has joined #ruby
jpfuente_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Renich_ is now known as Renich
jamesaxl has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 276 seconds]
jpfuentes2 has quit [Ping timeout: 252 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
quimrstorres has quit [Ping timeout: 265 seconds]
HotCoder has quit [Ping timeout: 252 seconds]
serivich has joined #ruby
darkf has joined #ruby
bkxd has joined #ruby
Channel6 has quit [Quit: Leaving]
starless has quit [Quit: Leaving]
TheHodge has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
zarubin_ has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 244 seconds]
doublemalt_ has quit [Ping timeout: 258 seconds]
zarubin_ has quit [Ping timeout: 255 seconds]
Musashi007 has joined #ruby
mrmargolis has quit [Remote host closed the connection]
kalusn has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
yourabi has joined #ruby
yourabi has quit [Client Quit]
iamninja has quit [Read error: Connection reset by peer]
kalusn has quit [Ping timeout: 272 seconds]
iamninja has joined #ruby
namester has joined #ruby
HotCoder has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
athos_diddy has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
huddy has quit [Quit: Connection closed for inactivity]
<athos_diddy> jhass: i wonder if we used a closure it could be more of an interfae
<athos_diddy> jhass: for sprites and stuff
<athos_diddy> npc's etc
<jhass> sorry, late here, I better get some sleep ;)
<athos_diddy> lol
<athos_diddy> tks again
<athos_diddy> night
yaogwai has joined #ruby
chipotle has quit [Quit: cheerio]
<forgot> >> [1/0.0, -1/0.0]
<ruboto> forgot # => [Infinity, -Infinity] (https://eval.in/372772)
roadt has joined #ruby
scripore has joined #ruby
Lucky__ has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
Vendella has quit [Ping timeout: 255 seconds]
Aww is now known as PotHeadAww
Feyn has joined #ruby
RegulationD has joined #ruby
nettoweb has joined #ruby
oo_ has quit [Ping timeout: 272 seconds]
sevenseacat has joined #ruby
Musashi007 has quit [Quit: Musashi007]
balazs has joined #ruby
mello has joined #ruby
bkxd has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
Musashi007 has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
<shevy> aha
<shevy> you forgot Infinity
<shevy> * use warn instead of STDERR.print
<shevy> hmmmm
<shevy> is this the same?
mello has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Client Quit]
ihatehonkies has joined #ruby
<ihatehonkies> bruh I was in dogecoin channel and some op was treating me like I was his nigger by trying to make me do shit and obey his orders its like no bitch do I look like a nigger to you? I ain't gonna do shit for no bitch ass cracker
ghr has quit [Ping timeout: 246 seconds]
<sevenseacat> !ban ihatehonkies !T 1d
ihatehonkies was kicked from #ruby by ChanServ [User is banned from this channel]
braincrash has quit [Quit: bye bye]
Channel6 has joined #ruby
PotHeadAww is now known as Aww
mcpierce has quit [Ping timeout: 272 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> lol
quimrstorres has joined #ruby
<sevenseacat> good morning.
braincrash has joined #ruby
quimrstorres has quit [Ping timeout: 244 seconds]
ismaelga has joined #ruby
keen___________3 has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
keen___________2 has quit [Ping timeout: 244 seconds]
chinmay_dd has joined #ruby
AlexRussia has joined #ruby
rodfersou has quit [Quit: leaving]
chinmay_dd has quit [Remote host closed the connection]
<Ox0dea> shevy: `warn` prints a newline.
duoi has joined #ruby
<shevy> hmm
scripore has quit [Quit: This computer has gone to sleep]
balazs has quit [Remote host closed the connection]
<al2o3-cr> so warn and STDERR.puts a the same?
<al2o3-cr> *are
<Ox0dea> al2o3-cr: Right.
<al2o3-cr> oh, ok :)
tejasmanohar has joined #ruby
chinmay_dd has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
CorySimmons has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
<duoi> hi all. what is the benefit of adding an exclamation mark to things like .upcase?
<duoi> does it just mean to forcefully do it?
<shevy> a method can end with a '!' or a '?'
<al2o3-cr> duoi: it mutates the object
_blizzy_ has joined #ruby
roadt has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
<al2o3-cr> >> nums = [1,2,3]; nums_d = nums.clone; nums.map(&:to_s); nums_d.map!(&:to_s); [nums, nums_d]
<ruboto> al2o3-cr # => [[1, 2, 3], ["1", "2", "3"]] (https://eval.in/372773)
C1V0 has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bosma_ has joined #ruby
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hongo has joined #ruby
<Hongo> helllo
bosma has quit [Ping timeout: 255 seconds]
jpfuentes2 has joined #ruby
phutchins has joined #ruby
jenrzzz has joined #ruby
Vainglory has joined #ruby
<Vainglory> if i wanted to install rotp, how would i do so?
Hongo has left #ruby [#ruby]
workmad3 has joined #ruby
jamesbrink has joined #ruby
<al2o3-cr> Vainglory: gem i rotp?
byprdct has joined #ruby
<Vainglory> al2o3-cr: i know nothing of ruby
<Vainglory> my terminal appears to just be stalling on that command 'gem i rotp'
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
<Vainglory> ERROR: While executing gem ... (Errno::EACCES) Permission denied @ dir_s_mkdir - /var/lib/gems
<al2o3-cr> Vainglory: sudo gem install rotp
<Vainglory> is it gem install or gem i?
<al2o3-cr> there the same
<Vainglory> they're the same? that's confusing
phutchins has quit [Ping timeout: 258 seconds]
<Vainglory> it appears to have installed. one moment
commondream has joined #ruby
<shevy> Vainglory you have a debian box right?
<Vainglory> shevy: yes
<shevy> debian tends to modify its shipped ruby
CorySimmons has quit [Quit: Bye!]
<shevy> different directory, mkmf.rb not available by default and things like that
workmad3 has quit [Ping timeout: 256 seconds]
<Vainglory> well, it appears to have installed
<Vainglory> i'm just testing a few things
<shevy> you can try if it was installed, by starting "irb"
<shevy> then require 'rotp'
<shevy> hmm
<shevy> sure that is what you wanted?
<shevy> anyway it tells you how to use it: http://www.rubydoc.info/gems/rotp/2.1.0
Hongo has joined #ruby
<Hongo> hello!
Renich has quit [Quit: Lost terminal]
<al2o3-cr> cool fact there are 100917 gems ;p
s2013 has joined #ruby
<Hongo> can someone help me with a newbie question?
<shevy> and how many of them are useful
watchtheblur has joined #ruby
<shevy> you must ask the question
<al2o3-cr> shevy: pass :)
<Hongo> how do i upgrade ruby 1.9.3 to 2.0.0 or later in ubuntu?
<al2o3-cr> Vainglory: also rotp ships with an executable
<Diabolik> shevy
<al2o3-cr> ?brightbox
<ruboto> I don't know anything about brightbox
<Diabolik> my code is done :D
<Hongo> should i use RVM?
<shevy> does it work
<Diabolik> yep shevy
<Diabolik> try it out pls
<al2o3-cr> oh, thought ruboto had a list for that :(
idafyaid has quit [Read error: Connection reset by peer]
<shevy> I run prime_time.rb
<shevy> it prints up to 841
<Diabolik> shevy
<shevy> Diabolik, here is a suggestion
<Diabolik> do git pull
Vainglory has left #ruby [#ruby]
<shevy> extend that file
coderhs has joined #ruby
<shevy> and allow commandline pass-in of a number
<shevy> like 20000
<Diabolik> shevy i refactored shit
<Diabolik> do git pull
<Diabolik> then do main.rb
<shevy> yeah gives me same result
Contigi has quit [Quit: Leaving]
<Diabolik> the max number it shows is 841?
jenrzzz has quit [Ping timeout: 252 seconds]
<Hongo> how do i upgrade ruby 1.9.3 to 2.0.0 or later in ubuntu?
yaogwai has quit [Ping timeout: 265 seconds]
<xxneolithicxx> apt-get install ruby-2.0
<Hongo> done, but when i type ruby -v
<Diabolik> shevy
<Hongo> it says 1.9.3
<shevy> yeah Diabolik
<Diabolik> the max number it accepts as a param is 841?
<Diabolik> or the max number in the table is 841
<Hongo> do i gotta unistall the 1.9.3 package?
<xxneolithicxx> use ruby-2.0 the binary will be different
<Ox0dea> Diabolik: Using a count of 26 results in a five-digit number at the bottom right, which messes up the formatting.
<Diabolik> can someone point me in the direction of how to control the formatting of the table
<xxneolithicxx> otherwise use rbenv/rbenv-usergems or rvm
<Diabolik> id like to add borders to the top row and first column
felltir has joined #ruby
<Hongo> oh yeah rvm looks easy,much thanks xxneolithicxx
<Diabolik> shevy mine goes up to however big i make the terminal windo
<Diabolik> w
ghr has joined #ruby
<shevy> my last number is 841
<shevy> what is your last number
frem has quit [Quit: Connection closed for inactivity]
<shevy> Hongo if you use only one ruby version, it may be easier for you
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Hongo> yeah im reading a book for beginners and i need 2.0.0
The_Phoenix has joined #ruby
<Hongo> so if i do the apt-get ruby2.0 should i need to unistall the other version?
<xxneolithicxx> then you already got it, i wouldnt mess with rvm just for that yet. just replace commands for ruby with ruby-2.0 or #!/usr/bin/ruby with #!/usr/bin/ruby-2.0
<xxneolithicxx> no you dont
<xxneolithicxx> they cant sit there just fine just make sure to call the right one
cubesandcode has joined #ruby
<xxneolithicxx> otherwise uninstall the ruby one if you really want to be sure and leave ruby-2.0
Igorshp_ has joined #ruby
mcpierce has joined #ruby
<al2o3-cr> Hongo: which version of ubuntu?
n3b has quit [Ping timeout: 246 seconds]
<Diabolik> shevy it goes up as high as i can
<Diabolik> before the screen gets fucked
<crowell> it goes up to 11
<shevy> lol
<Hongo> a12o3 well i've the last LST
<shevy> you wrote magical code Diabolik
<Hongo> LTS*
<Diabolik> i know
<shevy> it works differently for different people
<xxneolithicxx> least or latest
<xxneolithicxx> *last
<crowell> i think that 14.04 ships with 1.9.x?
<Diabolik> crowell screen?
<Diabolik> shevy do you have the latest version
<Hongo> ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
ghr has quit [Ping timeout: 258 seconds]
<shevy> of ruby?
Igorshp has quit [Ping timeout: 276 seconds]
<Diabolik> no of primetime
<Diabolik> ofc
<al2o3-cr> Hongo: what does `uname -a`
<Diabolik> the most important app in the word
<Diabolik> *world
<shevy> ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
<shevy> I downloaded primetime zip from the github link you provided
<Diabolik> i fixed a few things
Musashi007 has joined #ruby
<Diabolik> maybe my code isn't magical anymore :(
<xxneolithicxx> sorry its ruby2.0 on 14.04 not ruby-2.0
<shevy> last prime I get is 841
<xxneolithicxx> ruby 2.0.0p384 (2014-01-12) [x86_64-linux-gnu]
<Hongo> uname -a?
<Diabolik> shevy even if you expand the terminal window?
<xxneolithicxx> ubuntu 14.04
<al2o3-cr> Hongo: yeah type: uname -a in your terminal
Musashi007 has quit [Client Quit]
<al2o3-cr> oh he's on 14.04
<shevy> Diabolik not sure what you mean, I use kde konsole and it is maximized :)
<al2o3-cr> must of missed that
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has joined #ruby
<xxneolithicxx> *i am, not sure about him
<shevy> <Hongo> yeah im reading a book for beginners and i need 2.0.0
<Hongo> Linux fungi 3.13.0-53-generic #89-Ubuntu SMP Wed May 20 10:34:39 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
<shevy> he was clear already
chinmay_dd has quit [Remote host closed the connection]
<Hongo> wich one shevy?
<shevy> well, you said you need 2.0.0
<shevy> so you want only 2.0.0 exactly right? ;)
<Hongo> oh yeah 2.0.0 or 2.1
chinmay_dd has joined #ruby
<shevy> if you don't have a preference for a specific 2-version, just use the latest
<xxneolithicxx> Hongo: lsb_release -r
yaogwai has joined #ruby
<al2o3-cr> that's a pretty old kernel
<Diabolik> shevy this is confusing the shit out of m
<Diabolik> e
<Hongo> Release:14.04
<xxneolithicxx> ok so sudo apt-get install ruby2.0
<xxneolithicxx> and you are good
<Hongo> im using a Linux Lite distro
<Hongo> done
felltir has quit []
<xxneolithicxx> now run ruby2.0 instead of ruby
quimrstorres has joined #ruby
<Hongo> but how? :/
mansel has quit [Ping timeout: 264 seconds]
<Ox0dea> Diabolik: You're setting primes_count to 10 by default; why do you expect the output to magically fill the window?
bronson has joined #ruby
<Hongo> ruby2.0 -v
<Hongo> ruby 2.0.0p384 (2014-01-12) [x86_64-linux-gnu]
<xxneolithicxx> oh gosh, you dont know how to use a command line?
<Diabolik> because it should show 10 by default
<Hongo> i guess is done
<xxneolithicxx> yes you got it
<Diabolik> shevy do ruby main.rb --count 100
<Hongo> lol im a newbie neo :(
yh has quit [Ping timeout: 265 seconds]
Agoldfish has quit [Quit: G'Bye]
<xxneolithicxx> Hongo: anywhere your book says run "ruby" or "gem" you run "ruby2.0" or "gem2.0"
<xxneolithicxx> then you should be fine
<al2o3-cr> main.rb --count 20 #=> 5041
bronson has quit [Remote host closed the connection]
balazs has joined #ruby
<Hongo> oh, nicey! thanks a lot guys <3
<Diabolik> shevy it defaults to 10
<Diabolik> in the readme the instructions are there
<Diabolik> which explains your 841
<shevy> yeah now it works when I do --count 100
<Diabolik> \o/
<shevy> ruby is not your first programming language though right?
jacor has quit [Read error: Connection reset by peer]
<Diabolik> correct
jacor has joined #ruby
<Diabolik> shevy can you point me in the direction of where to learn how to format the table to have a separated first column and row?
<Diabolik> i know its each_with_index
<shevy> Diabolik, this is what I am re-working right now http://shevegen.square7.ch/screenshot.png
<shevy> what do you mean with formatting
<shevy> there is sprintf() too
quimrstorres has quit [Ping timeout: 244 seconds]
<shevy> and .ljust or so
<shevy> >> 'abc'.ljust 5
<ruboto> shevy # => "abc " (https://eval.in/372774)
<shevy> >> '%5s' % '1'
<ruboto> shevy # => " 1" (https://eval.in/372775)
<shevy> yeah simply add those tokens
<Diabolik> shevy that's really cool
<shevy> whenever you use .each, you can also use .each_with_index
<shevy> if you need the index
<xxneolithicxx> 3 template strings and you are good to go
mansel has joined #ruby
<Diabolik> in the render method?
<xxneolithicxx> and use a transpose on the first row to get the vertical side
<xxneolithicxx> yes
CorySimmons has joined #ruby
<xxneolithicxx> first row is print the join of the range, second is print the separator to the right length and all others are for each element in transpose of the first row print the element and then the join of the products
<al2o3-cr> Diabolik: what does ruby main.rb supposed to show?
<Diabolik> a multiplication table of prime numbers
<al2o3-cr> ah ok
dopie has quit [Quit: This computer has gone to sleep]
<al2o3-cr> >> require 'prime'; Prime.first(100)[-1]
<ruboto> al2o3-cr # => 541 (https://eval.in/372776)
<xxneolithicxx> you will have to pre-calculate the whole table to determine the max length of the columns though
<al2o3-cr> >> require 'prime'; Prime.first(10)[-1]
<ruboto> al2o3-cr # => 29 (https://eval.in/372777)
<xxneolithicxx> Diabolik: is this homework?
<shevy> this is life
<Diabolik> coding challenge
<Diabolik> shevy i was quite proud of my find_primes method
<xxneolithicxx> ahh ok, i have something close that could solve this or be canabilized to solve it if u get stuck
<Diabolik> definitely an improvement on yesterday
<Hongo> so who knows what is MINSWAN?
<xxneolithicxx> for rendering
mahmoudmahfouz has joined #ruby
<Diabolik> xxneolithicxx im being judged on the logic
<Diabolik> not the formatting
<Diabolik> its just me being pedantic
<Diabolik> :P
<Diabolik> so by all means send it over if you want :D
<al2o3-cr> Diabolik: are all the numbers supposed to be prime numbers in that grid?
<Diabolik> they are supposed to be prime numbers multiplied by other prime numbers
<Diabolik> a multiplication table
<Diabolik> so no
<al2o3-cr> gotcha
<al2o3-cr> hey, looks cool by the way :)
<Diabolik> cheers
<xxneolithicxx> https://github.com/audiolize/vagrant-softlayer/blob/master/contrib/vagrant-softlayer-vlans#L298-L326 might be hard to follow without being able to run for context
<xxneolithicxx> but it justifies a table similar to what you are trying to do in yours
<xxneolithicxx> by precalculating the matrix of the max column lengths to get the spacing right
<xxneolithicxx> it prints ": item : item : item :"
<xxneolithicxx> but each column is properly centered
<Diabolik> i see
<Diabolik> thanks dude
blt has joined #ruby
Hongo has left #ruby [#ruby]
zarubin_ has joined #ruby
<Diabolik> xxneolithicxx this is some complex shit
<Diabolik> the whole script i mean
<xxneolithicxx> that was the easy one :-P
Musashi007 has joined #ruby
<Diabolik> so im presuming i put all this logic before the each blocks
chinmay_dd has quit [Remote host closed the connection]
<xxneolithicxx> no idea, did you paste some code? i didnt even look at it yet
Hongo has joined #ruby
Hongo has left #ruby [#ruby]
<xxneolithicxx> i would make that a function, i was lazy there.
<Diabolik> its in lib/prime_grid.rb
<Ox0dea> xxneolithicxx: Ruby doesn't have functions.
arescorpio has quit [Quit: Leaving.]
Vainglory has joined #ruby
<xxneolithicxx> methods, whatever, same difference
<xxneolithicxx> Diabolik: yes before the each
<xxneolithicxx> you will want to compute the max column width matrix
<Vainglory> my program is getting /usr/bin/two_factor_ssh:11:in `gets': Interrupt from /usr/bin/two_factor_ssh:11:in `<main>' - when doing ctrl+c to close. how can i catch all exceptions and simply exit without showing anything?
zarubin_ has quit [Ping timeout: 272 seconds]
<al2o3-cr> Vainglory: you can rescue Interrupt for ctrl+c
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
draughtpunk is now known as pipework
serivich has quit [Ping timeout: 265 seconds]
chinmay_dd has joined #ruby
<Vainglory> al2o3-cr: i'm not quite sure what that means
<xxneolithicxx> im out, have to get up early in the morning to learn nodejs, drop me a pm if you have more questions Diabolik
<Vainglory> so how do i catch all exceptions?
<Diabolik> cheers xxneolithicxx
<al2o3-cr> Vainglory: read the link
<Vainglory> i am reading the link, and it makes absolutely no sense to me
<al2o3-cr> >> begin; 1/0; rescue ZeroDivisionError; puts "caught"; end
<ruboto> al2o3-cr # => caught ...check link for more (https://eval.in/372778)
kalusn has joined #ruby
Sawbones has quit [Remote host closed the connection]
<al2o3-cr> or just rescue to rescue all exceptions
<Ox0dea> al2o3-cr: Are you sure?
<al2o3-cr> well, not all
<Vainglory> it looks like rescue Exception => e is what i want to do
<Vainglory> but the script doesn't accept it
<Vainglory> /usr/bin/two_factor_ssh:18: syntax error, unexpected keyword_rescue, expecting end-of-input
<Vainglory> rescue Exception => e
zotherstupidguy has quit [K-Lined]
<al2o3-cr> Vainglory: can you gist your code?
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
zotherstupidguy has joined #ruby
haxrbyte_ has joined #ruby
haxrbyt__ has joined #ruby
haxrbyt__ has quit [Remote host closed the connection]
<Ox0dea> Vainglory: You can only rescue in certain contexts; easiest would just be to wrap your script in a begin block.
kalusn has quit [Ping timeout: 245 seconds]
<Vainglory> Ox0dea: still no clue how to do that, i don't do ruby
haxrbyt__ has joined #ruby
<Vainglory> begin/rescue/end you mean?
<Ox0dea> Right.
<Ox0dea> But do you really need to catch everything?
Sawbones has joined #ruby
<Ox0dea> Why not just trap Interrupt?
haxrbyt__ has quit [Read error: Connection reset by peer]
<Vainglory> yeah, considering this is for a 2fa ssh script
<Vainglory> i don't want anyone who attempts to login to know it's an external script
Rollabunna has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
Exponential has joined #ruby
RegulationD has joined #ruby
<Ox0dea> In that case, the begin block is probably the best approach.
pengin has joined #ruby
<Ox0dea> It's gross, but it's still probably the cleanest way to ignore everything that might go wrong.
haxrbyte_ has quit [Ping timeout: 250 seconds]
<al2o3-cr> Vainglory: something like this https://gist.github.com/anonymous/c1091381bf7cea7327c3
mello has joined #ruby
<Ox0dea> al2o3-cr: That should be Exception, not StandardError.
ramsub07 has left #ruby [#ruby]
coderhs has quit [Ping timeout: 256 seconds]
<al2o3-cr> Why?
<Vainglory> appears to work
<Ox0dea> Vainglory: Yes, because you're using Exception.
commondream has quit [Remote host closed the connection]
<Ox0dea> al2o3-cr: Rescuing StandardError doesn't handle the Interrupt exception, for example, which defeats the purpose.
Vainglory has left #ruby [#ruby]
baweaver has joined #ruby
Exponential has quit [Client Quit]
senayar has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
ohaibbq has joined #ruby
<al2o3-cr> Ox0dea: I thought he was using trap for that my bad
mello has quit [Ping timeout: 264 seconds]
Sawbones has quit []
senayar has quit [Ping timeout: 245 seconds]
Darryl___ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
yh has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
codeFiend has quit [Quit: codeFiend]
iamninja has joined #ruby
ghr has joined #ruby
bMalum has joined #ruby
jeaye has joined #ruby
havenwood has joined #ruby
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pengin has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
blt has quit [Quit: WeeChat 1.2]
greenbagels has joined #ruby
Musashi007 has quit [Quit: Musashi007]
duderonomy has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
CloCkWeRX has left #ruby [#ruby]
quimrstorres has joined #ruby
starless has joined #ruby
athos_diddy has quit []
Sawbones has joined #ruby
bronson has joined #ruby
dseitz has joined #ruby
commondream has joined #ruby
mary5030 has quit [Remote host closed the connection]
quimrstorres has quit [Ping timeout: 256 seconds]
Robr3rd has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<Robr3rd> Perhaps I'm thinking about this the wrong way, but I can't help but wonder what the best way would be to get a list (so Array) of instance objects of a class. For example, `Class.getAllInstances` would return "[InstanceObject1, InstanceObject2, InstanceObject3]" for 3 instances.
riotjones has joined #ruby
commondream has quit [Remote host closed the connection]
Deck- has joined #ruby
yh has quit [Ping timeout: 265 seconds]
riotjones has quit [Read error: Connection reset by peer]
<baweaver> @@instances = []; def initialize() ...; @@instances << self end
Deck- has quit [Max SendQ exceeded]
riotjones has joined #ruby
<Robr3rd> So 'self' references the class as a whole, not just the instance?
Deck- has joined #ruby
<al2o3-cr> Robr3rd: ObjectSpace.each_object(Foo) {|o| o }
Deck- has quit [Max SendQ exceeded]
<al2o3-cr> map rather ObjectSpace.each_object(Foo).map{|o| o}
Deck` has quit [Ping timeout: 272 seconds]
Deck- has joined #ruby
Deck- has quit [Max SendQ exceeded]
<baweaver> >> class A;def initialize; as << self end; def as; @@as ||= [] end;def self.as;@@as end end; 5.times { A.new }; A.as
<ruboto> baweaver # => [#<A:0x41827cc4>, #<A:0x41827c9c>, #<A:0x41827c88>, #<A:0x41827c74>, #<A:0x41827c60>] (https://eval.in/372785)
Deck- has joined #ruby
<baweaver> al2o3-cr: How'd you know that was a thing?
Deck- has quit [Max SendQ exceeded]
* baweaver more of wanted to see if his solution worked
<al2o3-cr> from on here ages ago :)
Lorn_ has joined #ruby
<baweaver> Go figure.
Deck- has joined #ruby
<al2o3-cr> >> class Foo; end; a = Foo.new; b = Foo.new; c = Foo.new; ObjectSpace.each_object(Foo).map{|o| o }
<ruboto> al2o3-cr # => [#<Foo:0x40a77e6c>, #<Foo:0x40a77e80>, #<Foo:0x40a77e94>] (https://eval.in/372787)
jamesbrink has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 272 seconds]
<Robr3rd> So I take it al2o3-cr's method would be the "proper" way to go with this? (This is something that will be interacted with frequently.)
greenbagels has quit [Read error: Connection reset by peer]
<baweaver> Probably, but why do you need to?
User458764 has joined #ruby
greenbagels has joined #ruby
ismaelga has quit [Remote host closed the connection]
<Robr3rd> So the scenario would probably be the most helpful. To learn Ruby, I am making a Taxt-based RPG (typical, I know). I am currently making the battle engine -- more specifically the targeting system AI for the computer enemies. So my thinking is, if I have multiple players then (at least for now) I want it to pull a random character (instantiated by the Character class).
Lorn_ has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bosma_ is now known as bosma
<Robr3rd> So something like `Character.getCharacter(rand(0...Character.getAllCharacters))` or something along those general lines.
<Ox0dea> al2o3-cr: Why the #map?
michael_mbp has joined #ruby
<michael_mbp> hmm rather quiet.
<al2o3-cr> Ox0dea: because it returns an enumerator
<al2o3-cr> to_a
jpfuentes2 has joined #ruby
<Ox0dea> Yes.
mistermocha has quit [Remote host closed the connection]
jpfuentes2 has quit [Client Quit]
<Ox0dea> map(&:itself) just looks really silly is all.
<al2o3-cr> Ox0dea: just rushing and not thinking is all
<Ox0dea> Fair enough.
yh has joined #ruby
A205B064 has quit [Ping timeout: 272 seconds]
CorySimmons has quit [Quit: Bye!]
bkxd has joined #ruby
<Robr3rd> Or I guess this might be more helpful to convery where my mind is: `character_instance = Character.getCharacter(rand(0...Character.getAllCharacters.size)); character_instance.damage(5)``
Sawbones has quit [Remote host closed the connection]
konsolebox has joined #ruby
<Robr3rd> There are some obvious logical issues in that code, but you get the gist of it. But yeah, so am I going about this the right way baweaver such that I have a legitimate reason to go down this line of thought, or am I missing a better methodology?
<Ox0dea> Robr3rd: You should probably structure your code such that getting a random character is as simple as `characters.sample`.
Exponential has joined #ruby
Musashi007 has joined #ruby
<baweaver> Just make an array for your characters
<baweaver> Look into Practical Object Oriented Design in Ruby
<baweaver> That should cover about anything you need to know about structure
Sawbones has joined #ruby
aryaching has joined #ruby
<Robr3rd> baweaver, Thank you. Bookmarked for now. In the short-term, my struggle is where I should keep that array such that it is easily accessible when necessary. Coming from a PHP background, Ruby's variable scopes are *just* different enough to throw me for a loop sometimes.
<baweaver> Very short variant of it
<baweaver> Create objects for everything
<baweaver> then make a script that builds / runs the script
charliesome has quit [Quit: zzz]
<Robr3rd> So I should have a Character object for handling each instance of a character and then a Characters object that is able to interact with them all on a macro scale?
<baweaver> So you have characters, enemies, and a map
<baweaver> You could make a team class
<baweaver> but keep all actions you can in the character
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<Robr3rd> Aha, I gotcha.
<Robr3rd> Another part I'm undecided on is how to do skills. In PHP I would make it a static class, although I'm not sure what the "Ruby Way" to do this is. Essentially, each method would be a skill and the code for that skill (passing the source and target)
joneshf-laptop has joined #ruby
<baweaver> So you have the objects so far: Entity, Character < Entity, Enemy < Entity, Team, Map
<baweaver> Hm
<baweaver> Just a sec
<baweaver> http://collabedit.com/wqcg9 - Let's just play a bit then
codeFiend has joined #ruby
Exponential has quit [Quit: Textual IRC Client: www.textualapp.com]
podman has quit [Quit: Connection closed for inactivity]
connor_goodwolf has quit [Ping timeout: 272 seconds]
Sawbones has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
speakingcode has joined #ruby
DerisiveLogic has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
agent_white has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
lxsameer has joined #ruby
lxsameer has joined #ruby
<agent_white> Evenin' folks
senayar has joined #ruby
speaking1ode has quit [Ping timeout: 264 seconds]
connor_goodwolf has joined #ruby
Channel6 has quit [Quit: Leaving]
balazs has quit [Remote host closed the connection]
adijanuarsyah has joined #ruby
senayar has quit [Ping timeout: 250 seconds]
adijanuarsyah has quit [Client Quit]
krz has joined #ruby
allcentury has joined #ruby
ghr has joined #ruby
oo_ has joined #ruby
multi_io has quit [Ping timeout: 255 seconds]
yh has quit [Ping timeout: 255 seconds]
multi_io has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 256 seconds]
chinmay_dd has quit []
Joufflu has joined #ruby
allcentury has joined #ruby
connor_goodwolf has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
bMalum has quit [Quit: bMalum]
_ht has joined #ruby
kriskropd has quit [Quit: WeeChat 0.4.2]
bronson has joined #ruby
Deck- has quit [Ping timeout: 244 seconds]
tejasmanohar has quit [Ping timeout: 264 seconds]
cubesandcode has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Ping timeout: 265 seconds]
Exponential has joined #ruby
cubesandcode has joined #ruby
davedev24_ has quit [Ping timeout: 252 seconds]
Musashi007 has joined #ruby
davedev24_ has joined #ruby
connor_goodwolf has joined #ruby
yaogwai has quit [Ping timeout: 246 seconds]
cubesandcode has quit [Remote host closed the connection]
cubesandcode has joined #ruby
DoubleMalt has joined #ruby
jpfuentes2 has joined #ruby
mrsolo has joined #ruby
anekos has joined #ruby
bronson has quit [Remote host closed the connection]
zarubin_ has joined #ruby
Jarboe has quit []
mistermocha has joined #ruby
cubesandcode has quit [Remote host closed the connection]
cubesandcode has joined #ruby
A205B064 has joined #ruby
rom1504 has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
DerisiveLogic has joined #ruby
zarubin_ has quit [Ping timeout: 245 seconds]
tesuji has joined #ruby
sinkensabe has joined #ruby
RegulationD has joined #ruby
bmn has joined #ruby
Liothen has joined #ruby
mello has joined #ruby
aryaching has quit []
davidhq has joined #ruby
mrsolo has joined #ruby
jpfuentes2 has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
mello has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 276 seconds]
papercode has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
phutchins has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
phreakocious has joined #ruby
amclain has quit [Quit: Leaving]
_seanc_ has quit [Quit: _seanc_]
oo__ has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
oo_ has quit [Ping timeout: 246 seconds]
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo__ has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
rcs has joined #ruby
blt has joined #ruby
rom1504 has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greenbagels has quit [Quit: Leaving]
User458764 has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
stirfryad has joined #ruby
Rollabunna has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
quimrstorres has joined #ruby
Robr3rd has quit [Quit: Leaving]
hanmac has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Ping timeout: 272 seconds]
davidhq has joined #ruby
ndrei has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
rippa has joined #ruby
rgb-one has quit [Remote host closed the connection]
bMalum has joined #ruby
codecop has joined #ruby
Musashi007 has joined #ruby
<bkxd> agent_white: what's going on
<agent_white> bkxd: Nada! Relaxing. How about yourself?
<bkxd> bout the same mate
<bkxd> whoops, i mean this https://www.youtube.com/watch?v=8H6jEgJsbs8 ...
starless has quit [Quit: Leaving]
ponga has joined #ruby
yh has joined #ruby
Ox0dea has left #ruby ["WeeChat 1.2-rc1"]
lele has joined #ruby
hanmac has joined #ruby
yh has quit [Ping timeout: 255 seconds]
senayar has joined #ruby
ahmetkapikiran has joined #ruby
ahmetkapikiran has quit [Client Quit]
mello has joined #ruby
Zai00 has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
chinmay_dd has joined #ruby
rom1504 has left #ruby [#ruby]
Joufflu has quit [Read error: Connection reset by peer]
gluten_hell_ has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
mello has quit [Ping timeout: 264 seconds]
lele is now known as Guest24
tvw has joined #ruby
Guest24 is now known as lele
jenrzzz has quit [Ping timeout: 252 seconds]
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
gluten_hell_ has joined #ruby
blt has quit [Ping timeout: 246 seconds]
Feyn has quit [Quit: Leaving]
The_Phoenix has quit [Read error: Connection reset by peer]
gluten_hell_ has quit [Read error: Connection reset by peer]
gluten_hell_ has joined #ruby
User458764 has joined #ruby
lindii_ has quit [Ping timeout: 272 seconds]
dru` has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
agent_white has quit [Quit: gnight]
commondream has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
roolo has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
bluish has joined #ruby
yeticry has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
codeFiend has quit [Quit: codeFiend]
mrsolo has quit [Quit: This computer has gone to sleep]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
quimrstorres has joined #ruby
bronson has joined #ruby
bruno- has joined #ruby
DLSteve has joined #ruby
commondream has quit [Remote host closed the connection]
miah has joined #ruby
Deck` has joined #ruby
quimrstorres has quit [Ping timeout: 265 seconds]
psy_ has quit [Ping timeout: 264 seconds]
Deck` has quit [Max SendQ exceeded]
bronson has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
psy_ has joined #ruby
retornam has joined #ruby
RegulationD has joined #ruby
XxionxX has left #ruby [#ruby]
mistermocha has joined #ruby
davidhq has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
davidhq has quit [Max SendQ exceeded]
chinmay_dd has quit [Remote host closed the connection]
zarubin_ has joined #ruby
chinmay_dd has joined #ruby
Musashi007 has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
zarubin_ has quit [Ping timeout: 272 seconds]
Soda has joined #ruby
chinmay_dd has quit [Ping timeout: 250 seconds]
tomphp has joined #ruby
mrsolo has joined #ruby
TheHodge has joined #ruby
kalusn has joined #ruby
aryaching has joined #ruby
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
ohaibbq has quit [Quit: Leaving...]
nso95 has joined #ruby
kalusn has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 258 seconds]
ndrei has joined #ruby
lkba has quit [Read error: Connection reset by peer]
Musashi007 has quit [Ping timeout: 255 seconds]
stirfryad has quit [Remote host closed the connection]
edwinvdg_ has quit [Remote host closed the connection]
Musashi007 has joined #ruby
edwinvdgraaf has joined #ruby
CloCkWeRX has joined #ruby
jenrzzz has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
longfeet has quit [Quit: Leaving]
CloCkWeRX has left #ruby [#ruby]
ghr has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
s2013 has joined #ruby
ndrei has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
Igorshp_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
ta has quit [Remote host closed the connection]
toretore has joined #ruby
olistik has joined #ruby
ndrei has joined #ruby
olistik has quit [Remote host closed the connection]
mello has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
bentanweihao has joined #ruby
baweaver has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
ponga has quit [Quit: Leaving...]
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
Mon_Ouie has joined #ruby
delianides has quit [Ping timeout: 240 seconds]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
cubesandcode has quit [Ping timeout: 240 seconds]
watchtheblur has quit [Ping timeout: 244 seconds]
centrx has joined #ruby
delianides has joined #ruby
livathinos has joined #ruby
livathinos has quit [Client Quit]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
A205B064 has quit [Ping timeout: 252 seconds]
Darryl___ has quit [Quit: Connection closed for inactivity]
kalusn has joined #ruby
s2013 has joined #ruby
platzhirsch has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
mandarinkin has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pengin has joined #ruby
olistik has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
edwinvdgraaf has joined #ruby
tvw has quit []
lhobas has left #ruby ["Textual IRC Client: www.textualapp.com"]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
pengin has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 265 seconds]
jamesbrink has joined #ruby
Exponential has joined #ruby
ghr has joined #ruby
Guest40102 has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sarkyniin has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Exponential has joined #ruby
RegulationD has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest992
RegulationD has quit [Ping timeout: 256 seconds]
qwertme has joined #ruby
mistermocha has joined #ruby
roshanavand has joined #ruby
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
Ponyo has joined #ruby
<Ponyo> Hi there, if I have a string like "See Dog Run" and I always wanted to extract the 3rd word from the string, how would I do that in Ruby?
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
cubesandcode has joined #ruby
DLSteve has joined #ruby
<jhass> .split[2]
<Ponyo> thank you, I didn't know split could work that way
<Andriamanitra> what other way it works o,O
<Ponyo> on character?
<centrx> split splits on whitespace by default
<Andriamanitra> " " is character
<jhass> Andriamanitra: though not the default
<jhass> >> "foo bar\tbaz".split
<ruboto> jhass # => ["foo", "bar", "baz"] (https://eval.in/372833)
<Andriamanitra> ah
<jhass> so the default is more like /\s+/
mistermocha has quit [Ping timeout: 258 seconds]
<jhass> Ponyo: if you have to filter out garbage besides whitespace, .scan might be handy
cubesandcode has quit [Ping timeout: 265 seconds]
sdothum has joined #ruby
aryaching has quit [Ping timeout: 258 seconds]
cubesandcode has joined #ruby
DerisiveLogic has quit [Ping timeout: 264 seconds]
commondream has joined #ruby
zarubin_ has joined #ruby
OrbitalKitten has joined #ruby
commondream has quit [Ping timeout: 256 seconds]
<Andriamanitra> i recently did something like .gsub(/[^a-z]/,"") for my project, i wonder if scan would be more efficient
zarubin_ has quit [Ping timeout: 240 seconds]
DEA7TH has joined #ruby
allcentury has joined #ruby
platzhirsch has quit [Quit: Leaving.]
<Andriamanitra> nvm it actually wouldnt work the same in my case
cubesandcode has quit [Remote host closed the connection]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
lele is now known as Guest24
allcentury has joined #ruby
Mohan has joined #ruby
Guest992 has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FernandoBasso has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
Mohan has joined #ruby
mikecmpbll has joined #ruby
Mohan is now known as Guest3930
riotjones has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
ta has joined #ruby
mcpierce has quit [Quit: Coyote finally caught me]
Guest3930 has quit [Read error: Connection reset by peer]
mcpierce has joined #ruby
workmad3 has joined #ruby
spider-mario has joined #ruby
Mohan_ has joined #ruby
ghr has joined #ruby
dorei has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
Soda has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
I has joined #ruby
I is now known as Guest26781
olistik has quit [Remote host closed the connection]
MrBeardy has joined #ruby
Rickmasta has joined #ruby
allcentury has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
serivich has joined #ruby
mello has quit [Ping timeout: 240 seconds]
Guest26781 has quit [Quit: This computer has gone to sleep]
Ropeney_ has joined #ruby
Pupeno has joined #ruby
Ropeney_ has quit [Client Quit]
Ropeney_ has joined #ruby
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney_ has quit [Client Quit]
Ropeney has joined #ruby
yqt has joined #ruby
Musashi007 has quit [Quit: Musashi007]
HotCoder has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
s2013 has joined #ruby
olistik has joined #ruby
pengin has joined #ruby
serivichi has joined #ruby
gluten_hell_ has joined #ruby
serivich has quit [Ping timeout: 265 seconds]
olistik has quit [Remote host closed the connection]
gluten_hell_ has quit [Ping timeout: 272 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
cubesandcode has joined #ruby
bentanweihao has quit [Remote host closed the connection]
bronson has joined #ruby
tomphp has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
lhobas has joined #ruby
Guest26781 has joined #ruby
codecop has quit [Remote host closed the connection]
pengin has quit [Ping timeout: 272 seconds]
djellemah has joined #ruby
cubesandcode has quit [Remote host closed the connection]
cubesandcode has joined #ruby
olistik has joined #ruby
last_staff has joined #ruby
olistik has quit [Remote host closed the connection]
scripore has joined #ruby
platzhirsch has joined #ruby
Guest26781 has quit [Quit: This computer has gone to sleep]
cubesandcode has quit [Remote host closed the connection]
lennae has joined #ruby
ghr has joined #ruby
msgodf has joined #ruby
msgodf has quit [Remote host closed the connection]
Meow-J has joined #ruby
MrBeardy has quit []
RegulationD has joined #ruby
serivichi has quit [Ping timeout: 258 seconds]
SalexW has joined #ruby
phale has joined #ruby
<phale> jhass: my friend just died
<phale> whats the sympathy channel
ghr has quit [Ping timeout: 245 seconds]
cubesandcode has joined #ruby
<jhass> phale: ##social
<phale> thanks
lxsameer has quit [Quit: Leaving]
mikecmpbll has quit [Quit: i've nodded off.]
RegulationD has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
AlphaAtom has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zarubin has quit [Quit: leaving]
olistik has joined #ruby
User458764 has joined #ruby
mello has joined #ruby
Musashi007 has quit [Quit: Musashi007]
phale has left #ruby ["Leaving"]
mistermocha has joined #ruby
ndrei has joined #ruby
Guest26781 has joined #ruby
FernandoBasso has quit [Quit: leaving]
cubesandcode has quit [Remote host closed the connection]
yaogwai has joined #ruby
roolo has quit [Remote host closed the connection]
fabrice31 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 265 seconds]
roolo has joined #ruby
randiman has joined #ruby
tejasmanohar has joined #ruby
yh has joined #ruby
lhobas has left #ruby ["Textual IRC Client: www.textualapp.com"]
senayar has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest26781 has quit [Quit: This computer has gone to sleep]
michael_mbp has quit [Quit: leaving]
scripore has quit [Quit: This computer has gone to sleep]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdark has joined #ruby
krz has quit [Read error: Connection reset by peer]
yh has quit [Ping timeout: 265 seconds]
rdark has quit [Client Quit]
aryaching has joined #ruby
yh has joined #ruby
michael_mbp has joined #ruby
scripore has joined #ruby
jacor has quit [Read error: Connection reset by peer]
jacor has joined #ruby
Pupeno has quit [Quit: Leaving...]
Musashi007 has joined #ruby
zarubin has joined #ruby
krz has joined #ruby
Guest26781 has joined #ruby
zarubin has quit [Ping timeout: 252 seconds]
roshanavand has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 240 seconds]
kropotkin__ has joined #ruby
Sawbones has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
phutchins has joined #ruby
Sawbones has quit [Ping timeout: 255 seconds]
OrbitalKitten has joined #ruby
qwertme has joined #ruby
apt-get_ has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
sarkyniin has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
Igorshp has joined #ruby
Hamled has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
TheHodge has joined #ruby
moshee has joined #ruby
watchtheblur has joined #ruby
cubesandcode has joined #ruby
Aeyrix has joined #ruby
<Aeyrix> Is ruby-libvirt maintained?
mcpierce has quit [Quit: Coyote finally caught me]
scripore has quit [Quit: This computer has gone to sleep]
Musashi007 has quit [Quit: Musashi007]
scripore has joined #ruby
vikaton has joined #ruby
ghr has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Igorshp has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
kropotkin__ has quit [Ping timeout: 256 seconds]
kirun has joined #ruby
iamninja has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
scripore has quit [Client Quit]
tejasmanohar has quit [Ping timeout: 244 seconds]
konsolebox has quit [Ping timeout: 264 seconds]
enebo has joined #ruby
pigoz has quit [Ping timeout: 245 seconds]
<centrx> Aeyrix, It's not too old, last update was Jan 2014, still compatible with Ruby
<Aeyrix> Gotcha.
<Aeyrix> Cheers. :>
scripore has joined #ruby
scripore has quit [Client Quit]
wookiehangover has quit [Ping timeout: 256 seconds]
ismaelga has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
Tingo1983 has joined #ruby
someword has joined #ruby
gambl0re has quit [Ping timeout: 245 seconds]
peteykun has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
aryaching has quit [Ping timeout: 276 seconds]
Tingo1983 is now known as tingo_sh
tingo_sh is now known as tingo_51
enebo has quit [Quit: enebo]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
haxrbyte has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
scripore has joined #ruby
Ropeney has quit [Quit: Konversation terminated!]
roolo has quit [Quit: Leaving...]
senayar has quit [Ping timeout: 250 seconds]
haxrbyte has quit [Remote host closed the connection]
Akagi201 has joined #ruby
RegulationD has joined #ruby
haxrbyte has joined #ruby
mello has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
haxrbyte_ has joined #ruby
psy_ has quit [Ping timeout: 272 seconds]
Guest26781 has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Ping timeout: 255 seconds]
mcpierce has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
crus has joined #ruby
crus` has quit [Ping timeout: 244 seconds]
krz has quit [Quit: WeeChat 1.0.1]
jenrzzz has quit [Ping timeout: 246 seconds]
__chris has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Affix has quit [Excess Flood]
Affix has joined #ruby
fabrice31 has joined #ruby
haxrbyte_ has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
Affix is now known as Guest85609
scripore has joined #ruby
tejasmanohar has joined #ruby
Pisuke has quit [Ping timeout: 246 seconds]
Sembei has joined #ruby
platzhirsch has quit [Quit: Leaving.]
iamninja has joined #ruby
juanda has joined #ruby
cubesandcode has quit [Remote host closed the connection]
tomphp has joined #ruby
tomphp has quit [Client Quit]
orionstein has quit [Ping timeout: 265 seconds]
mmazing has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
__chris has quit [Quit: This computer has gone to sleep]
centrx has quit [Quit: Shutting down, Please wait...]
scripore has joined #ruby
kalusn has quit [Remote host closed the connection]
Guest85609 has quit [Changing host]
Guest85609 has joined #ruby
Guest85609 is now known as Affix
xargs has joined #ruby
scripore has quit [Client Quit]
fabrice31 has quit [Remote host closed the connection]
SalexW has quit [Remote host closed the connection]
atomosphere has joined #ruby
ghr has joined #ruby
victorkohl has joined #ruby
someword has quit [Quit: Leaving.]
mistermocha has joined #ruby
<atomosphere> i have learned ruby by reading prf. but still not getting start for contibuting any open source project
orionstein has joined #ruby
Guest26781 has joined #ruby
Yzguy has joined #ruby
someword has joined #ruby
<atomosphere> answer my question..
<jhass> why so impatient and demanding?
Ropeney has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
<atomosphere> same problem we are discussing 2 days before related to wrapper
ta has quit [Ping timeout: 252 seconds]
<shevy> atomosphere which part is the question?
gambl0re has joined #ruby
nateberkopec has joined #ruby
<atomosphere> actually i want make a ruby binding for jruby which supports capn proto feature
tingo_51 has quit [Ping timeout: 245 seconds]
<shevy> so you don't have a question
sinkensabe has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<atomosphere> its question , i am not able to convert my idea through ruby code
wookiehangover has joined #ruby
scripore has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
ta has joined #ruby
someword has quit [Quit: Leaving.]
fabrice31 has joined #ruby
<shevy> Just practice by writing more ruby code.
peteykun has quit [Quit: Leaving]
Guest26781 has quit [Quit: This computer has gone to sleep]
csavola has joined #ruby
ta has quit [Ping timeout: 276 seconds]
roolo has joined #ruby
<atomosphere> shevy if i want to contribute open source community then it will be good or not right now?
victorkohl has quit []
tvw has joined #ruby
<shevy> I am sure it will be good eventually.
<atomosphere> thanks
sinkensabe has joined #ruby
Blaguvest has joined #ruby
nettoweb has joined #ruby
victorkohl has joined #ruby
bentanweihao has joined #ruby
atomosphere has quit [Quit: Page closed]
sinkensabe has quit [Ping timeout: 240 seconds]
platzhirsch has joined #ruby
<Diabolik> shevy
<Diabolik> i did the table :D
<shevy> \o/
<Diabolik> just needed one last word of advice
<Diabolik> before im done
<Diabolik> currently the output is as seen in the readme
<Diabolik> however I can't figure out how to get the | only as a divider on the first column
<Diabolik> not on every single number
<shevy> and I continued on the old ascii heart code :P http://shevegen.square7.ch/screenshot.png
<shevy> you should turn such things into a gem btw Diabolik
krz has joined #ruby
juanda has quit [Quit: juanda]
<shevy> well, the name "prime_time" is actually already occupied
<shevy> once it's a gem, people can do "gem install name" from the commandline
Guest26781 has joined #ruby
<Diabolik> is there a way i can change my each with index to do only the first column?
fabrice31 has quit [Remote host closed the connection]
<shevy> dunno
<shevy> you could however always build up your array first
<shevy> before displaying it
<shevy> like you can describe a 2D plot with an array; and the table that you will display, is essentially a 2D plot too
<shevy> even when it includes those '---' separators
Ponyo has left #ruby ["Leaving"]
bronson has joined #ruby
senayar has joined #ruby
platzhirsch has left #ruby [#ruby]
Limix has joined #ruby
Sawbones has joined #ruby
Jackneill has joined #ruby
<Diabolik> shevy can you give me a generic gist example
<Diabolik> ?
bronson has quit [Ping timeout: 255 seconds]
senayar has quit [Ping timeout: 256 seconds]
<shevy> dunno what you need; it's just an Array, you can manipulate them
<shevy> first column would mean array[0] entries
<shevy> you can have an array of arrays
zarubin has joined #ruby
<shevy> like when you want to create a minesweeper game map
<shevy> where some entries have the mines
olistik has quit [Remote host closed the connection]
Sawbones has quit [Ping timeout: 252 seconds]
olistik has joined #ruby
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
Guest26781 has quit [Quit: This computer has gone to sleep]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olistik has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 240 seconds]
<Diabolik> shevy do you have any suggestions for projects using pure ruby to try out?
<Diabolik> This one has been surprisingly satisfying
<shevy> dunno
<shevy> write code that you need
<shevy> that's the best advice since you'll become your own main user :D
<Diabolik> i need to write a bot that answers all my ruby questions
<Diabolik> so il code my own version of zenguy_pc
<Diabolik> * zenspider
<shevy> you could write a game like minesweeper, I did that in gtk... but I have not put it into a gem; will do so later this weekend
platzhirsch has joined #ruby
A124 has quit [Ping timeout: 264 seconds]
<platzhirsch> Any useful alternatives to Sinatra? I just need some leight-weight to host exaclty one page
<Diabolik> platzhirsch almost sinatra?
<Diabolik> its lightweight
<Diabolik> 6 lines of code
<platzhirsch> just saw Padrino
<platzhirsch> yeah I guess it makes no difference :D
Meow-J has quit [Quit: Connection closed for inactivity]
IrishGringo has joined #ruby
<jhass> platzhirsch: does it need to be dynamic?
<jhass> or could you use a static page builder like middleman?
<platzhirsch> jhass: yeah, I want to inject data
A124 has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
Limix has quit [Read error: Connection reset by peer]
pengin has joined #ruby
<jhass> cuba, roda, stuff like that
<Diabolik> cuba's nice this time of year
<jhass> or plain Rack even, isn't too hard for a single page thing
chinmay_dd has joined #ruby
<platzhirsch> nice
sinkensabe has joined #ruby
yh has quit [Ping timeout: 252 seconds]
apt-get__ has joined #ruby
krz has quit [Ping timeout: 255 seconds]
Sou|cutter has joined #ruby
tvw has quit []
apt-get_ has quit [Ping timeout: 256 seconds]
delianid_ has joined #ruby
kalusn has joined #ruby
tvw has joined #ruby
delianides has quit [Ping timeout: 246 seconds]
<xxneolithicxx> \o/ the grid es perties
randiman has quit [Quit: (null)]
pengin has quit [Remote host closed the connection]
havenwood has joined #ruby
Klumben has joined #ruby
pengin has joined #ruby
Soda has joined #ruby
<xxneolithicxx> that spacing is going to look mighty crazy the higher up you go though
<xxneolithicxx> or maybe not i cant tell if you did a global width or per column
Joufflu has joined #ruby
pengin has quit [Ping timeout: 252 seconds]
bentanweihao has quit [Ping timeout: 264 seconds]
M-Technic has joined #ruby
ghr has joined #ruby
ismaelga has quit [Remote host closed the connection]
johnhamelink has joined #ruby
bMalum has quit [Quit: bMalum]
elev has joined #ruby
Junaos has joined #ruby
<elev> I want to make a program there you can type a number and the sqrt comes out
ghr has quit [Ping timeout: 265 seconds]
<jhass> looks about right, printing the result would be good
<elev> yes but I try
<elev> doesnt work
<jhass> "doesn't work"
mistermocha has joined #ruby
<elev> sorry..?
<jhass> "ma computer doesn't work! please fix!" you want a conversation on that level?
mordof has quit [Quit: Leaving]
<elev> no
<elev> ..=
<jhass> cool, then let's try to read and understand the error message you've been given
banister has quit [Read error: Connection reset by peer]
<elev> cant convert string into a float
iamninja has quit [Ping timeout: 272 seconds]
darkf has quit [Quit: Leaving]
<jhass> it tells you which line it's happening too
bMalum has joined #ruby
<elev> 3
<elev> I know its line 3, just dont know how
tvw has quit []
<elev> I can fix it or what to do
mase-chatter has joined #ruby
mase-chatter has quit [Max SendQ exceeded]
ndrei has joined #ruby
<elev> jhass you know what I can do?
mase-chatter has joined #ruby
<sevenseacat> you're casting a string to an int and back to a string again...
<jhass> so, what's the error message saying to us, it says there's a string and there should be a number (a float)
<toretore> hint: Math.sqrt is the one that's complaining
<jhass> where in line 3 do you have a string?
<elev> user input
pigoz has joined #ruby
<elev> to i
<elev> ahh, I try to_f
<sevenseacat> hint: its the part with the " "
<jhass> >> "#{1+1}".class
<ruboto> jhass # => String (https://eval.in/373000)
ta has joined #ruby
<jhass> see, you can just ask ruby what stuff is
Limix has joined #ruby
maquriaf has joined #ruby
<maquriaf> I've been trying to load couple pages from Ruby script and I keep getting this error: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
tesuji has joined #ruby
<maquriaf> After looking around it seems like there's something wrong with the SSL certificates file far as I read, so I tried updating by: apt-get install ca-certificates
<elev> but jhass how can I fix it? I think its all line 3 wrong
<maquriaf> it's installed and still having error.
<elev> I dont think I can code it in that way
<maquriaf> I also tried changing the certificate file by using:
<sevenseacat> maquriaf: try updating your rubygems
<jhass> elev: what is "something"?
<maquriaf> OpenSSL::X509::DEFAULT_CERT_DIR = "/etc/ssl/certs"
<maquriaf> OpenSSL::X509::DEFAULT_CERT_FILE = '/etc/ssl/certs/ca-certificates.crt'
<elev> all line 3
<elev> its wrong, from the start right?
<maquriaf> since that's the place certificates files seem to be at in my system (Ubuntu 14.04), but I'm still having the same error.
<sevenseacat> maquriaf: gem update --system
<jhass> elev: do you even try to understand your mistake?
<elev> yes
<sevenseacat> then undo all of the stuff you did stuffing around with certificates
<jhass> you don't make the impression
<jhass> elev: you've been given about 5 hints by now, none to which you responded and just continued whining that it doesn't work
Yzguy has quit [Quit: I'm sleeping, go away.]
<toretore> sounds to me like you've been given homework and you come here to ask incessently until someone gives you the answer and you don't have to think or learn
mistermocha has quit [Ping timeout: 265 seconds]
<elev> so everything its good before the string+
wookiehangover has quit [Ping timeout: 265 seconds]
Limix has quit [Ping timeout: 256 seconds]
banister has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
xargs has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Jarboe has joined #ruby
<sevenseacat> elev: what does the " " do?
bkxd has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
<elev> print out gets.to_f
bb010g has joined #ruby
<elev> ?
<sevenseacat> no.
<elev> what does it do then=
<sevenseacat> it denotes a string.
A205B064 has joined #ruby
<elev> why
<jhass> why is why spelled "why"?
<sevenseacat> ...
<jhass> because it is that way
mello has joined #ruby
<elev> well ok
The_Phoenix has joined #ruby
thoffmeyer has left #ruby ["Leaving"]
<elev> so what should I do?
<sevenseacat> "hello" is a string. the " " mark the start and end of the string.
<sevenseacat> >> "hello".class
<ruboto> sevenseacat # => String (https://eval.in/373001)
ismaelga has joined #ruby
<sevenseacat> elev: you ask yourself why you're making it into a string
<elev> can I make it to anything else?
dudedudeman_ has joined #ruby
yh has joined #ruby
<elev> is that possible?
<sevenseacat> elev: what *should* it be?
<dudedudeman_> hey jhass, are you around?
<jhass> elev: yes, you already did
Limix has joined #ruby
banister has quit [Client Quit]
<jhass> .to_i makes things into a Fixnum
<elev> I got to_f now
<jhass> that makes things into a Float
<elev> yup
<jhass> I guess you're still making that Float into a String though
<elev> this is wrong right? "#{user}"
<jhass> this makes user into a String
<sevenseacat> google "string interpolation"
<jhass> dudedudeman_: sup?
<dudedudeman_> jhass: you helped me with my activerecord query yesterday, and i'm wanting to expand upon that using .last
<dudedudeman_> i'm just not sure where to put it: y = x.joins(:dream_color_monitor).where(["calibrations.date < ?", 76.days.ago]).pluck("dream_color_monitors.tag")
Limix has quit [Read error: Connection reset by peer]
Yzguy has joined #ruby
<elev> but every time I want a variable to come I need to "#{}
<elev> right?
RegulationD has joined #ruby
<sevenseacat> elev: no. are you doing that on line 2?
<toretore> and try to understand what is going on
<jhass> dudedudeman_: uh, you shouldn't focus on people, just state your new question open to everybody providing all necessary details
<elev> HAHAHAH
<elev> It worked :D
stonecolddevin has quit [Ping timeout: 252 seconds]
mello has quit [Ping timeout: 272 seconds]
<jhass> elev: do you understand why?
<dudedudeman_> jhass: well then, that works
<elev> I did it
<elev> I just removed everything
<elev> without user
wookiehangover has joined #ruby
<sevenseacat> wat
lindii_ has joined #ruby
<toretore> "elev has quit (homework done, going out to play)"
<elev> puts "Type an integer: "
<elev> user = gets.to_f
<elev> print Math.sqrt user
<elev> this is the code
stonecolddevin has joined #ruby
<sevenseacat> toretore: lol
<shevy> that was a nice quit message indeed
<noethics> HOW CAN USER BE A NUMBER
<noethics> THAT MAKES NO SENSE
<shevy> bye elev!
<sevenseacat> noethics: because elev.
<shevy> lol
apt-get__ has quit [Quit: Quit]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> elev you could think of "gets" as "get string"
<elev> but the code worked
<elev> puts "Type an integer: "
<elev> user = gets.to_f
<elev> print Math.sqrt user
<elev> ok
<shevy> yeah you can assign any arbitrary name to a variable
<sevenseacat> we saw it the first time you pasted it. don't spam the channel.
<shevy> like
<shevy> not_user_input = $stdin.gets.chomp
jenrzzz has joined #ruby
<sevenseacat> use gist when pasting multiple lines of code.
pigoz has quit [Ping timeout: 265 seconds]
<elev> ok sorry sevenseacat
mase-chatter has quit [Quit: Leaving]
<elev> yes shevy :) variables can be any sring
<elev> well ok, thanks guys :) bye
elev has left #ruby [#ruby]
<dudedudeman_> i have an active record query and it's showing me all records past a certain amount of days. but, i want to see if the last record is past the specified days, not all of them. gist here: https://gist.github.com/anonymous/f3107d328da67eb99c1e
<shevy> toretore made him quit
RegulationD has quit [Ping timeout: 264 seconds]
<dudedudeman_> i have spent some time toying with .last, i just don't know where to put it?
<jhass> dudedudeman_: in other words you want to know if any is past that amount of days?
balazs has joined #ruby
<jhass> or you want the oldest record if there's one past x days?
mahmoudmahfouz has joined #ruby
m8 has joined #ruby
<dudedudeman_> newest record that's past days
senayar has joined #ruby
<jhass> order("date DESC").limit(1)
<jhass> or just .first I guess
<jhass> that won't pluck anymore though
<dudedudeman_> y = x.joins(:dream_color_monitor).where(["calibrations.date < ?", 76.days.ago]).order("date DESC").limit(1).pluck("dream_color_monitors.tag")
<jhass> yeah, does that work?
<dudedudeman_> i think it does. i'm playing in irb and it gave me 1 result
psy_ has joined #ruby
pengin has joined #ruby
balazs has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 245 seconds]
<dorei> are there any nlp gems?
<havenwood> dorei: Whatcha looking for or just wandering in general?
jpfuentes2 has joined #ruby
_blizzy_ has joined #ruby
<miah> lol. i read nlp and though neurolinguistic programming.
bruno- has quit [Ping timeout: 240 seconds]
<dorei> it's the same acronym :p
<dorei> havenwood: a language classifier, given a text detect its language
balazs has joined #ruby
jpfuentes2 has quit [Remote host closed the connection]
banister has joined #ruby
balazs has quit [Remote host closed the connection]
dseitz has joined #ruby
jpfuentes2 has joined #ruby
balazs has joined #ruby
pigoz has joined #ruby
podman has joined #ruby
jstanton has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Meow-J has joined #ruby
banister has quit [Read error: Connection reset by peer]
pengin has quit [Remote host closed the connection]
<dudedudeman_> jhass, i think that .order .limit one is not quite what I was looking for. that's probably because i worded my question in correctly
pengin has joined #ruby
allcentury has joined #ruby
olistik has joined #ruby
<dudedudeman_> i think this makes more sense: i want to look at all of the records for that particular monitor, and then look at the most recent of those records and then see if it's over the amount of days i specify
pigoz has quit [Ping timeout: 256 seconds]
<jhass> so you want to now if all records that exists are older?
olistik has quit [Remote host closed the connection]
garyserj has quit []
User458764 has joined #ruby
olistik has joined #ruby
<dudedudeman_> yes.. it's basically to keep track of whether or not these monitors are out of their calibration spec
growlove has quit [Remote host closed the connection]
Channel6 has joined #ruby
pigoz has joined #ruby
pengin has quit [Ping timeout: 246 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ta has quit [Ping timeout: 252 seconds]
<jhass> mh, that's gonna be tricky in a single query via AR, does it need to be fast?
User4587_ has joined #ruby
railsForDaiz has joined #ruby
User458764 has quit [Ping timeout: 272 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pigoz has quit [Ping timeout: 252 seconds]
<dudedudeman_> say monitor 123456 has 20 calibration records, all on different dates, i only care if the most recent one is out of the date
<dudedudeman_> oh, not really. it's not a huge db, and it's only 2 tables
banister has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<dudedudeman_> there's 80 monitors, and each will only get a new record every 3 months.. so we're talking only adding 1000 rows to the table a year
blt has joined #ruby
ghr has joined #ruby
Brozo has joined #ruby
Blaguvest has quit [Remote host closed the connection]
<dudedudeman_> i guess i could get all the latest entries before i even pass it through the join and the pluck
kenichi has joined #ruby
<dudedudeman_> x = Calibration.all.last... something like that
ghr has quit [Ping timeout: 244 seconds]
Blaguvest has joined #ruby
maquriaf has left #ruby ["Leaving"]
andrewcarroll has joined #ruby
<andrewcarroll> hello
coderhs has joined #ruby
<zotherstupidguy> andrewcarroll hello
<andrewcarroll> how's it going?
yh has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Quit: Leaving...]
<zotherstupidguy> liseting to smooth jazz and watchin MIT markov chains lec. opencourseware
<zotherstupidguy> you?
Brozo has quit [Quit: Leaving...]
<dudedudeman_> maybe a conditional would be better...
mrsolo has joined #ruby
mistermocha has joined #ruby
<noethics> that sounds like the most hipster thing of my life
sevenseacat has quit [Quit: Me dun like you no more.]
tomaw has quit [Quit: Quitting]
<noethics> not music, not jazz, smooth jazz. not a video, not about markov chains, an MIT video about markov chains. that's how it's going, bro
<noethics> deal with it
<andrewcarroll> lol
lennae has quit [Ping timeout: 244 seconds]
<andrewcarroll> my afternoon is a bit less interesting. just mowed back lawn, and now i'm trying to figure out the right search terms to find what i'm looking for on google
<noethics> what kind of lawn mower did you use?
<noethics> that's important information
<zotherstupidguy> lol
vikaton has quit []
<andrewcarroll> the kind with an engine, and without a seat
yh has joined #ruby
<andrewcarroll> i'm not a connoisseur
<andrewcarroll> of lawn mowers
<dudedudeman_> pleb
<noethics> i hear those are the best
<dudedudeman_> lol
<andrewcarroll> well it's worked solidly for over 20 years I am told
<andrewcarroll> so that's something
tomaw has joined #ruby
<noethics> sounds like a good machine you have there
<dudedudeman_> i just want to live somewhere that requires me to own a lawnmower
<noethics> no, you really don't
<noethics> mowing lawns is something that should be avoided if possible
jpfuentes2 has joined #ruby
mary5030 has joined #ruby
<andrewcarroll> it's not that bad, if the lawn is flat and featureless
mistermocha has quit [Ping timeout: 265 seconds]
<andrewcarroll> but it's not really something i'd look forward to
<zotherstupidguy> can you train a dog to do your lawn?
<zotherstupidguy> i am sure its on youtube =)
olistik has quit [Remote host closed the connection]
mello has joined #ruby
<andrewcarroll> hm
<andrewcarroll> not without huge risk of harm to the animal i'd imagine
<zotherstupidguy> well,if mexicans can do it! nah i didnt just say tht :P
lennae has joined #ruby
kenichi has quit [Quit: ZNC - http://znc.in]
Jello_Raptor has joined #ruby
<shevy> why use a dog if you could use a cat
enebo has joined #ruby
<Jello_Raptor> I'm futzing around with rake, and is there any way to create a rule which will run if *any* (rather than all) of its prereqs are satisfied?
enebo has quit [Client Quit]
<andrewcarroll> @shevy cats use, they do not get used
tomaw has quit [Remote host closed the connection]
<Jello_Raptor> Ideally that works without breaking Rake::task.prerequisite_tasks() since i'm using that mapping for shenanigans.
tomaw has joined #ruby
<zotherstupidguy> Jello_Raptor i dont think its that flexiable
_seanc_ has joined #ruby
kenichi has joined #ruby
<zotherstupidguy> you guys saw the two legged cat?
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mello has quit [Ping timeout: 245 seconds]
<shevy> wat
<shevy> cats have four legs man
ismaelga has quit [Remote host closed the connection]
<shevy> we need to get back to the basics in school
<Jello_Raptor> zotherstupidguy: darn :/ *grumbles about rake prereqs not being an algebra*
workmad3 has joined #ruby
<zotherstupidguy> shevy not the ultra cute ones :P
delianides has joined #ruby
<andrewcarroll> does anybody know how to present a separate view in a terminal, like vim does when called? as in, when you call vim for example, it creates a separate view for its editor, and when you close it, the previous shell view (with command history) is preserved. is there a way to do that with ruby?
<shevy> they need to learn how to regrow limbs
ismaelga has joined #ruby
olistik has joined #ruby
<hoelzro> andrewcarroll: I believe that's a terminal feature called alternate screen or something
kinduff has joined #ruby
<Diabolik> can someone explain the orthogonality principle to me?
<Diabolik> in terms of ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<andrewcarroll> @hoelzro thank you i believe that put me on the right track
pigoz has joined #ruby
Agoldfish has joined #ruby
<noethics> andrewcarroll, use tmux
<noethics> screen is old tech
ta has joined #ruby
<andrewcarroll> i don't believe alternate screen is the same thing as screen
mujou has quit [Quit: Leaving...]
<noethics> oh you mean jus tthe vim thing?
delianid_ has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Sawbones has joined #ruby
senayar has joined #ruby
sandstrom has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<noethics> uh yeah this is tmux but more user friendly and less powerful
User4587_ has quit [Ping timeout: 244 seconds]
<sandstrom> What's a good way of encapsulating internal methods of a module? (stuff that doesn't need to be accessible from the class that includes the module)
<noethics> ruby cant do that
kobain has joined #ruby
<zotherstupidguy> sandstrom private methods?
pontiki has joined #ruby
<shevy> yeah, private - but note that ruby still allows you to bypass things, via e. g. .send() sandstrom
<noethics> for semantics it's good i guess
<noethics> but yeah it's basically pointless
<noethics> functionally
<sandstrom> zotherstupidguy they are accessible to the class including the module
jpfuentes2 has joined #ruby
<zotherstupidguy> if you really need it! you can override .send() in the module level to raise an exception
<noethics> :|
<noethics> pls dont
User458764 has joined #ruby
<andrewcarroll> it's not pointless, it clearly communicates that they're not supposed to be touched, but in true ruby fashion gets out of your way if you want to be a rebel
zarubin has joined #ruby
<noethics> yeah as i said it's good for semantics
jpfuentes2 has quit [Client Quit]
<noethics> let's fight about it
<andrewcarroll> rar
olistik has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 265 seconds]
<sandstrom> I'm thinking something like this: `module MyModule; module Internal; extend self; def my_int_method; end; end; def my_shared_method; my_int_method; end; end;`
<shevy> <noethics> but yeah it's basically pointless
<shevy> <noethics> yeah as i said it's good for semantics
<shevy> :)
senayar has quit [Ping timeout: 272 seconds]
<noethics> <noethics> for semantics it's good i guess
<noethics> <noethics> but yeah it's basically pointless
<noethics> <noethics> functionally
<shevy> oh so it is not pointless?
scripore has joined #ruby
<noethics> >functionally
<shevy> so I decorate my classes
<shevy> for what gain exactly
<noethics> SEMANTICAL GAIN
someword has joined #ruby
<andrewcarroll> that sounds like it should be a magic spell
<andrewcarroll> "I cast semantical gain"
<shevy> I counter with a "lose time" spell
mello has joined #ruby
jenrzzz has joined #ruby
<andrewcarroll> that's my secret. i never had any time to lose in the first place!
<andrewcarroll> muahaha
<shevy> we could turn this into a harry potter fight http://www.bash.org/?111338
segfalt has joined #ruby
zarubin has quit [Ping timeout: 244 seconds]
<jhass> dudedudeman_: y.map {|tag| Monitor.find_by(tag: tag).calibrations.exists?("date > ?", 76.days.ago) } ?
sinkensabe has quit [Remote host closed the connection]
yh has quit [Ping timeout: 272 seconds]
<jhass> many queries, but meh
scripore has quit [Client Quit]
<jhass> where instead of find_by might be better
segfalt has quit [Client Quit]
<zotherstupidguy> sandstorm i tried it myself and yeah you are right, include makes it avialable to the initialized objects;
Cache_Money has joined #ruby
yaogwai has quit [Quit: WeeChat 1.2-dev]
Yzguy has quit [Quit: I'm sleeping, go away.]
nettoweb has joined #ruby
railsForDaiz has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs has quit [Ping timeout: 265 seconds]
<shevy> nono
<shevy> it's not sandstorm
<shevy> it is sandstrom
delianides has quit [Remote host closed the connection]
<shevy> perhaps it's a german nick
<sandstrom> close
pigoz has quit [Ping timeout: 264 seconds]
allcentury has quit [Ping timeout: 256 seconds]
<zotherstupidguy> sandstrom the german cup final is today?
patteh has quit [Remote host closed the connection]
<sandstrom> I wouldn't know, I'm not german and I don't follow cups.
patteh has joined #ruby
pigoz has joined #ruby
<shevy> perhaps scandinavia?
jenrzzz has quit [Ping timeout: 264 seconds]
<zotherstupidguy> sandstrom there is hack for what you want
<sandstrom> shevy you are right!
<sandstrom> 'sandström' in Swedish
<zotherstupidguy> sandstrom you can make some private methods on the class, and inside of them you can extend the Private Module, and use its own methods
<zotherstupidguy> 404
<zotherstupidguy> oh, somthing wrong with my client
pigoz has quit [Ping timeout: 252 seconds]
soulcake has quit [Quit: Quack.]
yqt has quit [Ping timeout: 252 seconds]
codeFiend has joined #ruby
soulcake has joined #ruby
vickleton has joined #ruby
Aearnus has joined #ruby
<Aearnus> Alright, I have probably the weirdest problem anybody's going to hear all day. I'm not quite sure where to ask about it, but here is probably the closest to the best place.
<Aearnus> I have a CGI script that's supposed to run through webrick
<shevy> yay!
<shevy> ruby cgi
<Aearnus> I kept getting an error saying "Premature end of script headers" bla bla bla
<Aearnus> (also :P)
ghr has joined #ruby
<shevy> WEBrick::HTTPServlet::CGIHandler
<shevy> yeah I think you sent the wrong header Aearnus
<Aearnus> No, hold on
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Aearnus> this is where it gets weird
<shevy> can you view the source of the page?
* zotherstupidguy excited
<Aearnus> I'm sending the headers correctly, the issue is that when the CGI script tries to run, it doesn't output the headers or anything
<shevy> I usually have something like "<!DOCTYPE html>\r\n" or similar to that
vikaton has joined #ruby
<shevy> your script works when you use lighttpd or apache-httpd?
<Aearnus> It just outputs ": No such file or directory"
<shevy> hmm
<shevy> my .cgi files exist :D
<Aearnus> Like, I think it's a problem with rbenv
<shevy> oh... ok. I don't have rbenv... I use plain ruby in /usr prefix
<Aearnus> Because if I run any ruby file with ./ and a shebang at the top it does that.
tmadsen has joined #ruby
<Aearnus> (Which is what exec does, which is what runs the CGI scripts, which is why I'm having this problem)
Sawbones has quit [Remote host closed the connection]
tmadsen has left #ruby [#ruby]
allcentury has joined #ruby
pigoz has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
krz has joined #ruby
<Aearnus> When I type "file <my script>", it has the correct output (Ruby script, ASCII text executable, with CRLF line terminators)
<Aearnus> It just refuses to run with ./ :(
<pontiki> Aearnus: what's the full #! line?
<Aearnus> #!/usr/bin/env ruby
djbkd has joined #ruby
<jhass> what's the exact output?
<jhass> maybe make a gist with the script and the output
hsps_ has joined #ruby
<pontiki> do you have that in the PATH / ENV of the context where that's running? probably not your own login shell
<Aearnus> The script itself isn't important, this happens with every ruby script I've tried on my system
<jhass> what does type -a ruby say?
<Aearnus> /usr/bin/env ruby --version outputs ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux] as it should
<Aearnus> type -a ruby outputs "ruby is /home/spng453/.rbenv/shims/ruby \n ruby is /usr/bin/ruby"
<Aearnus> Which also seems correct
rkazak has joined #ruby
<Aearnus> I think I might know the issue, is there a command to directly dump the data from a file? Like, without encoding
<jhass> hexdump
<Aearnus> I think that I was editing all these scripts on windows and it added a carriage return to the shebang
<jhass> oh right, file reports CRLF
<jhass> dos2unix your_script.rb
<jhass> can't do harm
coderhs has quit [Ping timeout: 264 seconds]
<Aearnus> That... that was the stupidest issue I've ever had to deal with
<Aearnus> dos2unix worked though
RegulationD has joined #ruby
<Aearnus> Thanks!
<shevy> I am sure there more stupid issues will crop up in the future
gaboesquivel has joined #ruby
<jhass> yeah, line ending issues are stupid
Zai00 has quit [Quit: Zai00]
<Aearnus> Alright, at least I know what it looks like when that happens now, lol
<jhass> or just stop using cgi :P
<noethics> jhass, why ;o
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> because we got rack!
<noethics> but
<jhass> sshh
Asher has quit [Quit: Leaving.]
kalusn has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hsps_ has quit [Quit: Leaving]
Asher has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
<Aearnus> I would, but this was supposed to be a 2 minute thing, I just wanted to show my friend all the gifs I had :(
aryaching has quit []
<Aearnus> In a convenient web page format, of course
<pontiki> why not just pop up a local web server on the directory?
banister is now known as banisterfiend
<Aearnus> Because I put them into a little gallery and added css animations to them and it looks cool :P
<pontiki> all of that works
<pontiki> it's basically a static site
<Aearnus> True, but I have a *lot* of gifs that I didn't want to type out into a static site
<Aearnus> And I needed to brush up on my ruby skills a little
<pontiki> wut?
<pontiki> write a script
shuber_ has joined #ruby
<Aearnus> Eh, same thing. Sure, it's not the most conventional use of CGI, but if it works, it works :P
olistik has joined #ruby
<jhass> middleman \o/
<jhass> (yes, total overkill for that)
<noethics> i think that's probably the #1 idiom from the "real world" that doesn't convert to programming. "if it works it's not stupid"
lennae has quit [Ping timeout: 244 seconds]
jenksy is now known as dijikul
someword has quit [Quit: Leaving.]
dijikul is now known as jenksy
Ropeney has joined #ruby
starless has joined #ruby
bMalum has quit [Quit: bMalum]
gaboesquivel has quit [Remote host closed the connection]
yqt has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
jpfuentes2 has joined #ruby
balazs has joined #ruby
tejasmanohar has quit [Ping timeout: 276 seconds]
Limix has joined #ruby
tejasmanohar_ has joined #ruby
scripore has joined #ruby
balazs has quit [Ping timeout: 255 seconds]
delianides has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
<Obfuscate> noethics: I can assure you that's not the case in the real world either.
I has joined #ruby
I is now known as Guest50824
bluish has quit [Quit: bluish]
tejasmanohar_ has quit [Ping timeout: 250 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
andrewcarroll has left #ruby [#ruby]
ito42 has joined #ruby
claptor has quit [Quit: this channel is bakas]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_seanc_> Obfuscate: +1
olistik has quit [Remote host closed the connection]
CustosLimen has quit [Ping timeout: 264 seconds]
User458764 has joined #ruby
<ito42> is this http://pastebin.com/K3P6GdGv implementation of parallel map good, any other ideas?
<ruboto> ito42, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/14556a479ec3bdd6cb0f
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
CustosLimen has joined #ruby
a346 has joined #ruby
bMalum has joined #ruby
yqt has quit [Ping timeout: 264 seconds]
Guest50824 has quit [Quit: This computer has gone to sleep]
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<jhass> ito42: as with most concurrency problems, it heavily depends on your workload, there are few generally applicable solutions to concurrency
yh has joined #ruby
<jhass> oh and afaik .value joins the thread, so the join is redundant
nettoweb has joined #ruby
<jhass> you can also replace the manual array concats with flat_map and map
kinduff has quit [Ping timeout: 250 seconds]
plashchynski has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
mary5030 has quit [Ping timeout: 264 seconds]
bMalum has quit [Quit: bMalum]
<ito42> jhass: do you think is gonna be better if i wrote it with mutex and enumerable.next?
<jhass> see above
<jhass> for example it might be worth to see if (for your workloads) creating a bunch of queues and c consumers for these might be more efficient than spawning n/c threads
<jhass> well, n threads even
<jhass> after all thread creation is a bit expensive
ndrei_ has joined #ruby
Lucky__ has joined #ruby
olistik has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
delianides has quit [Remote host closed the connection]
momomomomo has joined #ruby
mistermocha has joined #ruby
bMalum has joined #ruby
jenrzzz has joined #ruby
momomomomo has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
pengin has joined #ruby
someword has joined #ruby
kinduff has joined #ruby
kinduff has joined #ruby
GnuYawk has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shuber_ has quit []
Limix has quit [Quit: Limix]
__chris has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
Limix has joined #ruby
juanda has joined #ruby
RegulationD has joined #ruby
evlute has joined #ruby
<evlute> hello - i wanna know what evironment variables i have to set, to get rack/rackup working as a system.d service file
<evlute> i get the error: require : cannot load such file -- rack (LoadError)
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
pengin has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 250 seconds]
kies has joined #ruby
pengin has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Sawbones has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
dru` has joined #ruby
bMalum has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
someword has quit [Quit: Leaving.]
bruno- has joined #ruby
pengin has quit [Ping timeout: 246 seconds]
Limix has quit [Ping timeout: 252 seconds]
zz_Outlastsheep is now known as Outlastsheep
Sawbones has quit [Ping timeout: 245 seconds]
commondream has joined #ruby
<jhass> evlute: how did you install ruby?
platzhirsch has left #ruby [#ruby]
ixti has joined #ruby
commondream has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 1.0.1]
senayar has joined #ruby
kriskropd has joined #ruby
wildroman2 has quit [Remote host closed the connection]
nrnube has joined #ruby
mary5030 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Aearnus has quit [Remote host closed the connection]
dudedudeman_ has quit [Ping timeout: 246 seconds]
zarubin has joined #ruby
davedev2_ has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
davedev24_ has quit [Ping timeout: 256 seconds]
rindolf has joined #ruby
<rindolf> Hi all.
zarubin has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
jobewan has quit [Ping timeout: 258 seconds]
mary5030 has quit [Remote host closed the connection]
Spami has quit [Quit: Leaving]
ismaelga has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
jobewan has joined #ruby
mary5030 has joined #ruby
Spami has joined #ruby
User458764 has joined #ruby
mmazing has quit [Ping timeout: 272 seconds]
centrx has joined #ruby
__chris has quit [Quit: This computer has gone to sleep]
mdw has joined #ruby
mrsolo has joined #ruby
m8 has quit [Quit: Sto andando via]
scripore has joined #ruby
__chris has joined #ruby
<kinduff> Hey rindolf
victorkohl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kinduff> good morning
<evlute> ttp://fossbytes.com/save-your-eyes-from-computer-strain-using-f-lux-for-windows-mac-and-linux/
<rindolf> kinduff: morning.
<rindolf> kinduff: it's already 21:49 here.
blt has quit [Quit: WeeChat 1.2]
jottr has quit [Quit: WeeChat 1.2]
victorkohl has joined #ruby
HotCoder has joined #ruby
Limix has joined #ruby
ismaelga has joined #ruby
<kinduff> and 13:52 here, ugt :)
techsilo has joined #ruby
watchtheblur has quit [Ping timeout: 276 seconds]
Limix has quit [Ping timeout: 256 seconds]
bMalum has quit [Quit: bMalum]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
<rindolf> kinduff: OK. :-)
<rindolf> kinduff: sup?
<kinduff> rindolf: not much, fighting with some date change logic in a ror app
<kinduff> rindolf: how about you?
ghr has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
<rindolf> kinduff: I worked on code today.
juanda has quit [Quit: juanda]
<rindolf> kinduff: some C code (Freecell Solver - http://fc-solve.shlomifish.org/ ) and some CPAN distributions.
evlute has quit [Ping timeout: 272 seconds]
mdw has quit [Ping timeout: 265 seconds]
juanda has joined #ruby
spider-mario has joined #ruby
segfalt has joined #ruby
bMalum has joined #ruby
segfalt has quit [Client Quit]
<kinduff> rindolf: that's pretty awesome
starless has quit [Quit: Leaving]
spider-mario has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 265 seconds]
<kinduff> rindolf: did you translate it to JS with a compiler or by hand?
allcentury has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
gluten_hell_ has joined #ruby
bMalum has quit [Quit: bMalum]
yqt has joined #ruby
<rindolf> kinduff: with a compiler.
<rindolf> kinduff: Emscripten.
<rindolf> kinduff: Emscripten is very nice.
kyle__ has quit [Ping timeout: 252 seconds]
<kinduff> rindolf: pretty cool, I searched for a ruby->js one, reading about Opal now
rikai has quit [Ping timeout: 265 seconds]
codecop has joined #ruby
towski_ has joined #ruby
Cache_Money has joined #ruby
<rindolf> kinduff: ah, good luck with that.
gaboesquivel has joined #ruby
icarus has joined #ruby
<rindolf> kinduff: what do you want to use it for?
<kinduff> rindolf: nothing atm, I'm just interested
<icarus> make sure you all call your senators today and demand they not extend the patriot act: eff.org
Channel6 has quit [Quit: Leaving]
centrx has quit [Quit: Shutting down, Please wait...]
towski_ has quit [Read error: No route to host]
<kinduff> rindolf: this one would be interesting https://gist.github.com/kinduff/7b2c8a809c1e94872226
towski_ has joined #ruby
<kinduff> rindolf: binary push for an array
elev has joined #ruby
r4pha has joined #ruby
<elev> whats my mistake?
<elev> whats the mistake
<jhass> worked first time
<jhass> so that's one mistake
<jhass> second mistake is that I again have to ask you what the error is
<havenwood> elev: Name your gist with a .rb extension for syntax highlighting. Use two-space soft tabs instead of hard tabs.
<elev> it worked for you?
Sawbones has quit [Remote host closed the connection]
<jhass> not relevant
flynn has joined #ruby
<jhass> make it easy to help you, you do that by providing as much information as possible
<havenwood> elev: `name` and `@name` have important differences with their scope.
towski_ has quit [Remote host closed the connection]
<elev> ohhh
<elev> I used name instead of @name
<havenwood> elev: One method can't see another's `name` unless it is passed it as an argument. Any method can see `@name` from within the class.
<elev> haha lol.. thanks man :) ye I got it :)
<elev> there we go.. :) ty bye
<kinduff> goodbye elev, goodbye
davedev2_ has quit [Ping timeout: 264 seconds]
Sawbones has joined #ruby
jobewan has quit [Ping timeout: 256 seconds]
Sawbones has quit [Remote host closed the connection]
davedev24_ has joined #ruby
arup_r has joined #ruby
atmosx has joined #ruby
bluOxigen has joined #ruby
Sawbones has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
gaboesquivel has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kinduff has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
jobewan has joined #ruby
Igorshp has joined #ruby
nrnube has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
Limix has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ismael_ has joined #ruby
Igorshp_ has joined #ruby
ismaelga has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
__chris has quit [Quit: This computer has gone to sleep]
kadoppe has quit [Ping timeout: 265 seconds]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp__ has joined #ruby
kadoppe has joined #ruby
<elev> How can I make a program where when you print it out it doesnt show
<elev> like a password on facebook
<elev> ****
<jhass> did you google that?
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<elev> nope
<elev> you know how to jhass?
Igorshp has joined #ruby
<jhass> yeah, first result on google explained it to me
senayar has quit [Ping timeout: 256 seconds]
<elev> what did you google?
<elev> I am bad englich
<jhass> "ruby get password"
<elev> thanks
Igorshp_ has quit [Ping timeout: 272 seconds]
Sawbones has quit [Remote host closed the connection]
<elev> so I replace gets.chomp with password?
victorkohl has quit []
Igorshp has quit [Read error: Connection reset by peer]
victorkohl has joined #ruby
<jhass> what result on google did suggest that?
<elev> yes, but I need gems to do it?
<elev> oh the second one
Igorshp has joined #ruby
victorkohl has quit [Max SendQ exceeded]
<jhass> yeah, the one with the crap load of upvotes
kinduff has joined #ruby
Igorshp__ has quit [Ping timeout: 276 seconds]
Igorshp_ has joined #ruby
<elev> but I need gems jhass?
<elev> or it wont work?
allcentury has joined #ruby
<jhass> did you read the comments on the stackoverflow answer with the many upvotes?
Musashi007 has joined #ruby
<elev> yea
<elev> require highline/inport
<elev> gems
<jhass> "I cannot +1 this answer enough. Beats having to include extra gems any day!" doesn't answer your question?
scripore has quit [Quit: This computer has gone to sleep]
<pipework> jhass: Maybe it's a language barrier thing?
<jhass> it's going on for a while
<pipework> Might not be easy to detect what they're looking for.
<elev> But I have to download a gem jhass?
<jhass> pipework: they're not spending a minute trying to understand
<pipework> jhass: English is hard!
<jhass> yes, so you need to take your time
victorkohl has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
byteoverfl0w has joined #ruby
Igorshp has quit [Ping timeout: 256 seconds]
<jhass> and they seem to have no language barrier when spoonfed here
victorkohl has quit [Max SendQ exceeded]
<elev> To answer my own question, and for the benefit of anyone else who would like to know, there is a Ruby gem called HighLine that you need.
<elev> jhass he said this
<elev> all of them uses require
mrsolo has joined #ruby
<jhass> just because it uses require doesn't mean it's a gem
stoddart has joined #ruby
<stoddart> hi
allcentury has quit [Ping timeout: 244 seconds]
<jhass> hi
jenrzzz has quit [Ping timeout: 265 seconds]
<elev> hi
<shevy> hi
<stoddart> I am new to Ruby, working mostly on the Python side
<shevy> sshsh shshs Zshshs!
TheHodge has quit [Quit: Connection closed for inactivity]
<stoddart> just here to lurk
Joufflu has quit [Read error: Connection reset by peer]
<shevy> welcome my ssssslithering friend sssssshtoddart
nahtnam has joined #ruby
Igorshp has joined #ruby
Igorshp_ has quit [Read error: Connection reset by peer]
<elev> python.. .. D:
Igorshp_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> they can swallow a whole deer
jenksy has quit [Ping timeout: 265 seconds]
Sawbones has joined #ruby
<stoddart> they can also swallow a warthog
wildroman2 has joined #ruby
<stoddart> is _why here?
postmodern has joined #ruby
<shevy> _why vanished many years ago
<shevy> perhaps he is here incognito
<stoddart> I keep hoping he'll turn up, we're actually both from the same state
<jhass> but the identity _why is pretty much gone, yeah
jenksy has joined #ruby
jenksy has quit [Changing host]
jenksy has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
Igorshp_ has quit [Read error: Connection reset by peer]
platosha has joined #ruby
Sawbones has quit [Remote host closed the connection]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
Sawbones has joined #ruby
byteoverfl0w has quit [Read error: Connection reset by peer]
<shevy> yeah he chopped off the _why personae
byteoverfl0w has joined #ruby
<stoddart> I remember that day when he ragequit. That was a sad day :(
allcentury has joined #ruby
<shevy> are you _why
mrsolo has quit [Quit: This computer has gone to sleep]
mistermocha has joined #ruby
delianid_ has joined #ruby
Igorshp_ has joined #ruby
<stoddart> someone "new to Ruby" couldn't possibly be _why
tejasmanohar_ has joined #ruby
delianid_ has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 265 seconds]
delianides has joined #ruby
<jhass> well, it could be a cover
Sawbones has quit []
* jhass prepares some chunky bacon as bait
<shevy> :)
<shevy> lol
ismael_ has quit [Remote host closed the connection]
kalusn has joined #ruby
<stoddart> is there any sandbox implementation for Ruby where I can run untrusted code?
scripore has joined #ruby
delianid_ has joined #ruby
<stoddart> jhass: thanks
ghr has joined #ruby
Igorshp has joined #ruby
someword has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<stoddart> oh I see, it's a ptrace based sandbox
CpuID has joined #ruby
<jhass> http://carc.in/#rb here's a playpen based one
<jhass> a bit more open
Channel6 has joined #ruby
delianides has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
someword has quit [Read error: Connection reset by peer]
<stoddart> ok
kies has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
Igorshp has quit [Remote host closed the connection]
<elev> I can log in every time, no matter what, the last if statement its just ignored..
baweaver has joined #ruby
Igorshp_ has quit [Ping timeout: 272 seconds]
<jhass> elev: wrong url
<havenwood> stoddart: It's not what you asked but there's also a nice mruby in the browser: https://joshnuss.github.io/mruby-web-irb/
HotCoder is now known as HotFlower
<havenwood> elev: `=` is an assignment operator
ghr has quit [Ping timeout: 255 seconds]
<elev> oh fuck
<elev> :D
<elev> dam
<elev> worked now, always these easy things :P
<havenwood> elev: Instead of `gistfile1.txt` name your Gists with a .rb extension. That way they have nice syntax highlighting and they're easier for folk to clone and try.
workmad3 has quit [Ping timeout: 272 seconds]
<elev> ah ok
<havenwood> elev: Change your editor to use two-space soft tabs (where tabs are represented by two spaces) rather than hard tabs.
<elev> what you mean by that?
riotjones has quit [Ping timeout: 272 seconds]
<_seanc_> What editor do you use?
<elev> sublime text
<jhass> havenwood: I hope you do have those canned
<havenwood> jhass: I actually type them. >.>
<havenwood> Getting a finger workout.
<_seanc_> elev: not sure if this is still accurate: https://css-tricks.com/changing-spaces-tabs-sublime-text/
<elev> but I like it
<_seanc_> That’s mo better.
agent_white has joined #ruby
<elev> I dont have that
<elev> LOL
<agent_white> Afternoon, gentlefolks.
<elev> I got line 24, collum 1 tab size: 4 ruby
commondream has joined #ruby
<_seanc_> Yeah
perrier has quit [Read error: Connection reset by peer]
<_seanc_> Click “tab size: 4”
scripore has quit [Quit: This computer has gone to sleep]
<havenwood> "Indent Using Spaces"
perrier has joined #ruby
<elev> ok
<elev> and take to 2?
<havenwood> "Tab Width: 2"
<elev> easier to read?
<_seanc_> 2 spaces is pretty standard in Ruby.
<_seanc_> You’ll find soft-tabs in everyone’s style guide.
<havenwood> elev: Will look nicer on Github and be consistent across text editors regardless of tab settings. It's a firmly ingrained community standard.
gambl0re has joined #ruby
<elev> ok
<havenwood> elev: Change the preferences as _seanc_ linked to make it stick.
jstanton has quit [Ping timeout: 265 seconds]
namester has quit [Ping timeout: 244 seconds]
scripore has joined #ruby
namester_ has joined #ruby
<Jello_Raptor> hmm, rake adds string.pathmap_explode and a few other functions as protected methods. How can i play around with them in irb?
<Jello_Raptor> require 'rake' doesn't seem to do much
jpfuentes2 has joined #ruby
namester_ has quit [Client Quit]
<_seanc_> Jello_Raptor: you can use send(:symbol) to access protected/private methods if you’re playing around.
<_seanc_> I’d avoid using that in production code as you may experience unintended consequences.
OrbitalKitten has joined #ruby
elev has quit [Quit: Lost terminal]
delianid_ has quit []
<Jello_Raptor> _seanc_: i'm nto sure i understand.
<Jello_Raptor> ahh nevermind
<Jello_Raptor> that's useful
<Jello_Raptor> thanks :)
<_seanc_> YW!
<_seanc_> Let me know if you need a hand :)
DerisiveLogic has joined #ruby
<Jello_Raptor> _seanc_: heh <_< i'm trying to futz with rake so that it can precompute a full dependancy graph for a system which includes tools that read files to analyse their dependancies :V
<Jello_Raptor> /o/ monkey-patches ahoy
michael_mbp has quit [Excess Flood]
elev has joined #ruby
<_seanc_> Sounds cool!
michael_mbp has joined #ruby
kinduff has quit [Ping timeout: 276 seconds]
scripore has quit [Quit: This computer has gone to sleep]
codecop has quit [Remote host closed the connection]
elev has quit [Quit: Lost terminal]
<shevy> dumdedum
senayar has joined #ruby
centrx has joined #ruby
zarubin has joined #ruby
<shevy> is there a way to have rdoc or yard apply custom-formatting rules to .rb files?
__chris has joined #ruby
senayar has quit [Ping timeout: 258 seconds]
Encapsulation has quit [Quit: Leaving]
_ixti_ has joined #ruby
__chris has quit [Client Quit]
soahccc has quit [Ping timeout: 240 seconds]
ixti has quit [Ping timeout: 272 seconds]
zarubin has quit [Ping timeout: 272 seconds]
soahccc has joined #ruby
senayar has joined #ruby
maloik has quit [Remote host closed the connection]
duckson has quit [Ping timeout: 272 seconds]
senayar has quit [Changing host]
senayar has joined #ruby
maloik has joined #ruby
qwertme has joined #ruby
Yzguy has joined #ruby
wildroman2 has joined #ruby
watchtheblur has joined #ruby
duckson has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
crus` has joined #ruby
crus has quit [Ping timeout: 255 seconds]
ito42 has quit []
Pupeno has joined #ruby
Pupeno has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rindolf has quit [Quit: Leaving]
maloik has quit [Ping timeout: 244 seconds]
maloik has joined #ruby
yh has quit [Ping timeout: 265 seconds]
a346 has quit [Quit: a346]
allcentury has quit [Ping timeout: 256 seconds]
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Yzguy has quit [Remote host closed the connection]
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
aef has quit [Remote host closed the connection]
aef__ has joined #ruby
__chris has joined #ruby
stoddart has quit [Quit: leaving]
DefV has quit [Ping timeout: 272 seconds]
DefV has joined #ruby
__chris has quit [Client Quit]
yardenbar has quit [Quit: Leaving]
commondream has quit [Ping timeout: 255 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<flynn> Does anyone know how to change desktop resolution using Windows API? I can read information into my program but I don't seem to be able to influence any change to windows. I've read through the 'ChangeDisplaySettings' function documentation but, in truth, its all beyond me and mostly applies to C+ which I'm even less capable in than ruby.
hollywood has quit [Ping timeout: 272 seconds]
hollywood has joined #ruby
segfalt has joined #ruby
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
SebastianThorn has quit [Remote host closed the connection]
SebastianThorn has joined #ruby
qwertme has joined #ruby
<shevy> the windows API is very annoying
ndrei_ has quit [Ping timeout: 246 seconds]
<shevy> usually the ruby API is a direct mapping to that
<shevy> shell = Win32API.new('shell32','ShellExecute', ['L','P','P','P','P','L'], 'L')
<shevy> nobody would pass such strange arguments in ruby :)
mrsolo has joined #ruby
DefV has quit [Ping timeout: 246 seconds]
tejasmanohar_ is now known as tejasmanoahr
tejasmanoahr is now known as tejasmanohar
bMalum has quit [Quit: bMalum]
DefV has joined #ruby
aphprentice_ has joined #ruby
byteoverfl0w has quit [Read error: Connection reset by peer]
<flynn> Indeed! I've been having many issues with it :p I think I may just give up for the night and start again fresh
byteoverfl0w has joined #ruby
RegulationD has joined #ruby
ARCADIVS has joined #ruby
ddv has quit [Ping timeout: 272 seconds]
ddv has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
claptor has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
Igorshp_ has joined #ruby
swgillespie has joined #ruby
mello has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
woodruffw has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
Igorshp has quit [Ping timeout: 265 seconds]
qwertme has joined #ruby
joneshf-laptop has quit [Ping timeout: 265 seconds]
tesuji has quit [Ping timeout: 265 seconds]
bosma_ has joined #ruby
bosma has quit [Disconnected by services]
bosma_ is now known as bosma
ItSANgo_ has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
ItSANgo has joined #ruby
Igorshp_ has quit [Ping timeout: 244 seconds]
jpfuentes2 has joined #ruby
Igorshp_ has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
woodruffw has joined #ruby
agent_white has quit [Quit: bblworktime]
jenrzzz has joined #ruby
Pupeno has quit [Remote host closed the connection]
balazs has joined #ruby
Cache_Money has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
byprdct has joined #ruby
Pupeno has joined #ruby
juanda has quit [Read error: Connection reset by peer]
juanda has joined #ruby
Cache_Money has quit [Client Quit]
moggy has joined #ruby
doublemalt_ has joined #ruby
gluten_hell_ has joined #ruby
Pupeno has quit [Ping timeout: 264 seconds]
preller has quit [Quit: leaving]
DoubleMalt has quit [Ping timeout: 276 seconds]
preller has joined #ruby
moggy has left #ruby [#ruby]
pengin has joined #ruby
joneshf-laptop has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Igorshp_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
yfeldblum has joined #ruby
scripore has joined #ruby
Brozo has joined #ruby
Igorshp has joined #ruby
tomaszbalon has joined #ruby
yh has joined #ruby
allcentury has joined #ruby
joneshf-laptop has quit [Ping timeout: 276 seconds]
joneshf-laptop has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
kirun has quit [Quit: Client exiting]
pengin has quit [Remote host closed the connection]
coderhs has joined #ruby
pengin has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
allcentury has joined #ruby
pengin has quit [Ping timeout: 255 seconds]
commondream has joined #ruby
ghr has joined #ruby
Limix has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
<shevy> "The game originates from the 1960s"
<shevy> did you people know that
Guest50824 has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: parting / quiting]
commondream has quit [Ping timeout: 258 seconds]
Limix has quit [Client Quit]
decoponio has joined #ruby
coderhs has quit [Quit: Leaving]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomaszbalon has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 256 seconds]
mandarinkin has quit [Quit: Leaving]
toretore has quit [Quit: This computer has gone to sleep]
balazs has quit [Remote host closed the connection]
byteoverfl0w has quit [Read error: Connection reset by peer]
byteoverfl0w has joined #ruby
HotFlower has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
Xiti has joined #ruby
Brozo has quit [Remote host closed the connection]
juanda has quit [Quit: juanda]
juanda has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mello has joined #ruby
ddarkpassenger has joined #ruby
scripore has joined #ruby
Power88 has joined #ruby
<Power88> is anyone here a web developer?
<Diabolik> yes Power88
assembledbits has joined #ruby
<Power88> how much would you charge to setup an etsy page?
mattp__ has joined #ruby
<assembledbits> but the interpolation isn't working, it just spits out as string.. what's the correct format?
<assembledbits> i tried concatenation with ' + but that throws an error
<Diabolik> Power88 what do you mean
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mattp_ has quit [Quit: WeeChat 0.4.2]
<Diabolik> and this probably isn't the right channel for this
greenbagels has joined #ruby
<assembledbits> Hey guys, I have this as html_safe output, flash[:notice] = '<div class="alert alert-success" role="alert">Category <strong>#{category.name}"</strong> destroyed successfully.</div>' ^^
<Power88> like how much would it cost to make an etsy page if I were to hire you
mello has quit [Ping timeout: 252 seconds]
greenbagels has quit [Max SendQ exceeded]
HotFlower has joined #ruby
<assembledbits> anyone know why the interpolation isn't working
<assembledbits> I'm not sure how to escape string for interpolation in that format
<Power88> escape is always \
<Power88> \
Joufflu has joined #ruby
<Power88> backslash
bluOxigen has quit [Ping timeout: 272 seconds]
HotFlower has quit [Client Quit]
<assembledbits> That prints "Category \#{category.name}" destroyed successfully."
<existensil> assembledbits: looks like yu're trying to use interpolation with single quotes
HotCoder has joined #ruby
<existensil> you can't do that
<assembledbits> If I use the single quotes in the html is that fine
<existensil> use double quotes, or %{} or one of the many other interpolation enabled
<existensil> just escape your quotes if you use double quotes
Rickmasta has joined #ruby
<assembledbits> AHA!
<assembledbits> there we go, thanks man
<assembledbits> <3
<assembledbits> I only just learned ruby (on rails) a few weeks ago
<existensil> I understand
Power88 has quit [Remote host closed the connection]
Guest50824 has quit [Quit: This computer has gone to sleep]
<assembledbits> Yeah, I'm using to PHP and single / double quote eye sores
<existensil> there are many more ways to represent strings in Ruby. But no interpolation with '' or %q{}
ArchRogem has joined #ruby
<assembledbits> <3
Guest50824 has joined #ruby
ArchRogem has quit [Client Quit]
byteoverfl0w has quit [Quit: Leaving... have a good one...]
<assembledbits> What's a clean way to resolve when you click the back button and it tries to reload an item but it can't find that ID
last_staff has quit [Quit: last_staff]
<assembledbits> rather than give an error, can I make it auto forward to index
zarubin has joined #ruby
<existensil> redirect_to in your controller to the index you want when the lookup fails. You might want #RubyOnRails though
Cache_Money has joined #ruby
<existensil> or don't have objects that would disappear when you press back
Musashi007 has quit [Quit: Musashi007]
<assembledbits> so if I'm using @category = Category.find(params[:id]) for show, then I'd do if !@category .. redirect_to ?
<existensil> yes, but only if you use find_by_id instead of find
<existensil> find throws an error when it doesn't find anything
<existensil> find_by_id just returns nil
jpfuentes2 has joined #ruby
<assembledbits> okay, nice.. works
frowmanjo has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<frowmanjo> Free SEO Analyzer/Optimizer + PDF Generator without shit signups or paying. thought i'd share - https://www.criosphinx.net/seo-checker SAVE & SHARE
frowmanjo has quit [Client Quit]
qwertme has joined #ruby
<assembledbits> oh man that's slick
blackmesa has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Cache_Money has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
Cache_Money has quit [Client Quit]
starless has joined #ruby
banisterfiend is now known as Xtopherus`
Musashi007 has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
segfalt has quit [Quit: segfalt]
bkxd has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
allcentury has joined #ruby
ghr has joined #ruby
<assembledbits> New problem.. when testing, my the destroy command throws an error referencing that a table doesn't exist
<assembledbits> and I have no idea why it's pointing to that tabl
<postmodern> is there a ruby class for working with durations?
<postmodern> or can I get away with using Time.parse for that?
allcentury has quit [Ping timeout: 246 seconds]
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dseitz has joined #ruby
segfalt has joined #ruby
tejasmanohar has quit [Quit: WeeChat 1.1.1]
Xoro has quit [Read error: Connection reset by peer]
<assembledbits> NVM fixed that too
ghr has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
Pupeno has quit [Quit: Leaving...]
<shevy> postmodern I think "duration"
<shevy> I also think that apeiros once wrote something like that too
<shevy> hmm wait
<shevy> the "duration" gem at rubygems.org is not the one I mean... last update 2007 :\
<shevy> apeiros would probably know :) ... or was it chronos gem? hmmm
<postmodern> every lib seems to do activesupport style
vickleton has quit [Remote host closed the connection]
<postmodern> i just need to parse time codes (00:04:13) and do arithmetic on them
<shevy> arithmetic is simple the moment you have a time object
<shevy> like when you add +3 means add +3 seconds; or if you have a date object, then I think this will be +3 days
<postmodern> yeah, and i suppose i could just parse them down to seconds
<postmodern> and format them back out to XX:XX:XX
juanda has quit [Quit: juanda]
RegulationD has quit [Ping timeout: 264 seconds]
mujou has joined #ruby
veduardo has joined #ruby
Pupeno has joined #ruby
<jhass> I think you'll run into issues with using Time
Soda has quit [Remote host closed the connection]
iamninja has joined #ruby
mrsolo has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
GPrime has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
mrsolo has quit [Client Quit]
mrsolo has joined #ruby
watchtheblur has quit [Ping timeout: 276 seconds]
joneshf-laptop has quit [Ping timeout: 255 seconds]
juanda has joined #ruby
allcentury has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
kinduff has joined #ruby
assembledbits has quit [Quit: Leaving]
arescorpio has joined #ruby
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
Kudos2Me has joined #ruby
centrx has joined #ruby
centrx has quit [Client Quit]
starless has quit [Quit: Leaving]
centrx has joined #ruby
<Kudos2Me> Send 100% completely unbranded e-mails by us free, forever, try it on yourself first if you don't believe me! Send it from any made up name + email at http://bit.ly/1cqkqvW
Kudos2Me has quit []
balazs has joined #ruby
kinduff_ has joined #ruby
chipotle has quit [Quit: cheerio]
kinduff has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
workmad3 has joined #ruby
_seanc_ has quit [Read error: Connection reset by peer]
Guest50824 has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 276 seconds]
<Jello_Raptor> _hmm, so i'm trying to monkey-patch rake so that I can change how some of its internals work (make some rules non-mandatory, keep track of dependencies in a slightly different way, etc)
<jhass> forking might be easier?
mistermocha has quit [Ping timeout: 256 seconds]
Brozo has joined #ruby
Guest50824 has joined #ruby
<Jello_Raptor> jhass: hmm, i'd like to keep all of the rest of the (non-rake) state around though, since I'm doing a few other things besides.
_seanc_ has joined #ruby
Pupeno_ has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
<Jello_Raptor> before I can start on the modifications to rake :/ :w
Pupeno_ has quit [Client Quit]
<Jello_Raptor> ahh yeah :/ it doesn't look reasonable, forking it'll have to be.
jpfuentes2 has quit [Quit: Textual IRC Client: www.textualapp.com]
kinduff_ has quit [Quit: leaving]
kinduff has joined #ruby
ghr has joined #ruby
commondream has joined #ruby
Encapsulation has joined #ruby
chipotle has joined #ruby
Guest50824 has quit [Quit: This computer has gone to sleep]