jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
trwyth has joined #ruby
rgrmatt has joined #ruby
grayjedi has joined #ruby
edwinvdgraaf has quit []
grayjedi has quit [Quit: WeeChat 1.3]
<Ox0dea> underplank: $ echo exit | dtruss irb 2>&1 | grep irbrc
<Ox0dea> Something like that.
shock_one has joined #ruby
Hazel has joined #ruby
nertzy has joined #ruby
nateberkopec has quit [Quit: Leaving...]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
<shevy> .irbrc in my home works on linux
reaVer has quit [Remote host closed the connection]
cassioscabral has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
_main_ has joined #ruby
shanemcd has joined #ruby
<shevy> oh man
<shevy> if irbrc = ENV["IRBRC"]
reaVer has joined #ruby
<shevy> I read this as comparison!
dlitvak has joined #ruby
underplank has quit [Quit: underplank]
__main__ has quit [Ping timeout: 250 seconds]
<Ox0dea> That's why it warns. :P
_main_ is now known as __main__
underplank has joined #ruby
<shevy> for m in @CONF[:LOAD_MODULES]
nfk|laptop has quit [Quit: yawn]
Ketchy has quit [Quit: Leaving]
ibouvousaime has quit [Ping timeout: 240 seconds]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
TheBloke has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 256 seconds]
TheBloke has joined #ruby
underplank has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trwyth has quit [Read error: Connection reset by peer]
<metredigm> i can't find anything on other people having linking errors with the http_parser.rb package.. would a 32 bit word size cause problems?
phantummm has joined #ruby
bronson has joined #ruby
duckpuppy has joined #ruby
DLSteve has joined #ruby
akem has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
cdg has joined #ruby
metredigm has quit [Quit: WeeChat 1.3]
Hazel has quit [Quit: WeeChat 1.3]
ruid has quit [Ping timeout: 256 seconds]
duderonomy has quit [Ping timeout: 256 seconds]
cdg has quit [Ping timeout: 250 seconds]
ElFerna has quit [Quit: WeeChat 1.3]
bronson has quit [Remote host closed the connection]
toretore has quit [Ping timeout: 240 seconds]
zarubin has joined #ruby
DavidDudson has joined #ruby
thejamespinto has joined #ruby
azgil has quit [Quit: Leaving]
tethra_ has quit [Remote host closed the connection]
n_blownapart has joined #ruby
zarubin has quit [Ping timeout: 250 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thejamespinto has quit [Ping timeout: 240 seconds]
rgrmatt has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
rgrmatt has joined #ruby
akem has joined #ruby
Azure has joined #ruby
ta has joined #ruby
G_ is now known as G
Azure has quit [Client Quit]
tenderlove has joined #ruby
_stu_ has joined #ruby
Azure has joined #ruby
ornerymoose has joined #ruby
thejamespinto has joined #ruby
InvGhost has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
weemsledeux has joined #ruby
hxegon has quit [Ping timeout: 256 seconds]
tenderlove has quit [Remote host closed the connection]
cwong_on_irc has quit [Quit: Leaving.]
ethe has quit [Quit: *.net *.split]
DavidDudson has joined #ruby
nateberkopec has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
shanemcd has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
n_blownapart has quit []
julian-delphiki has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Remote host closed the connection]
TheHodge has joined #ruby
dlitvak has joined #ruby
charliesome has joined #ruby
TheBloke has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
TheBloke has joined #ruby
hackeron has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
hackeron_ has quit [Ping timeout: 272 seconds]
n_blownapart has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
user1138 is now known as jdm
nateberkopec has joined #ruby
greg has joined #ruby
atumzin has quit [Read error: Connection reset by peer]
jdm has quit [Quit: Leaving]
nateberkopec has quit [Client Quit]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
jdm has joined #ruby
ta has joined #ruby
<greg> hello i have a doubt while going through ruby tut. i found in ruby everything is an object but how keywords can be called as object?
<jhass> well an object or syntax
<jhass> keywords are syntax
<greg> object
<jhass> I was correcting what you read
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<greg> but it can be called as object or not?
<jhass> no
<jhass> with "everything" we mean "every thing", that is all values are
<greg> then we cant say everything is an object
pwnd_nsfw has joined #ruby
<shevy> who says so
n_blownapart has quit []
<shevy> now you know which book not to learn from
bean has joined #ruby
<havenwood> greg: If it's not returned it's not a thing.
<havenwood> greg: It's no-thing.
<shevy> greg look at that:
<shevy> >> x = 5; def x.hi; puts "hi"; end
<ruboto> shevy # => can't define singleton (TypeError) ...check link for more (https://eval.in/484243)
<greg> shevy: then which book to follow?
DavidDudson has joined #ruby
<havenwood> greg: Return value are Objects. Move forward with learning!
<havenwood> values*
<shevy> greg depends, I started with the pickaxe book myself which was ok, at the least the one for the 1.8.x era
bronson has joined #ruby
<havenwood> >> BasicObject.is_a? Object
<ruboto> havenwood # => true (https://eval.in/484244)
<Ox0dea> >> Object === BasicObject.new
<ruboto> Ox0dea # => false (https://eval.in/484245)
<Ox0dea> havenwood: Don't go misleadin' folks now.
<havenwood> Ox0dea: :P
<jhass> both is just confusing atm
<shevy> greg https://pine.fm/LearnToProgram/chap_01.html is quite ok, if we could all contribute to it and extend it then it would be even cooler
Coldblackice has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 256 seconds]
Azure has quit [Quit: Oops.]
bubbys has quit [Ping timeout: 250 seconds]
<greg> shevy: gone through it. it neeed many upgradation
<havenwood> Ox0dea: Just don't instantiate it!
dlitvak has joined #ruby
bubbys has joined #ruby
<Ox0dea> greg: Which is your favorite Ruby keyword?
duncannz has quit [Remote host closed the connection]
govg has joined #ruby
<greg> ruby
<greg> ruby:
<jhass> >> class If; def initialize(&condition); @condition = condition; end; def then(&body); @condition.call && body.call; end; end; If.new { 1 == 1 }.then { puts "1 is 1" }
<ruboto> jhass # => 1 is 1 ...check link for more (https://eval.in/484246)
<greg> Ox0dea
<jhass> can we do with only method calls?
bronson has quit [Ping timeout: 256 seconds]
<Ox0dea> Proc is Turing-complete. :P
bronson has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
<havenwood> greg: (In Ruby 1.9 Object got a parent called BasicObject, if you want to be pedantic about all return values.)
<havenwood> greg: It's doesn't matter.
<havenwood> It*
dlitvak has quit [Ping timeout: 272 seconds]
<greg> i can say the word which return something can be called as object?
<havenwood> greg: Statements return objects.
<greg> <havenwood> greg: Return value are Objects. Move forward with learning
<jhass> greg: "All values are objects" better? Move on.
Guest69113 is now known as saneax_AFK
<havenwood> ^
<blub> ruby is great..
<Ox0dea> >> def if; 42; end
<ruboto> Ox0dea # => :if (https://eval.in/484247)
shock_one has joined #ruby
_stu_ has quit [Quit: _stu_]
<Ox0dea> "After all, He Who Must Not Be Named did great things--terrible, yes, but great."
<Ox0dea> I've said it before: Ruby is Voldemort.
<Ox0dea> Er, no, it seems it was ObjectSpace last time.
<havenwood> greg: If you wonder if something is an Object, ask it! (If it's not a value there's nothing to ask so the question ends there.)
<Ox0dea> >> defined? defined?
<ruboto> Ox0dea # => /tmp/execpad-04e0c75cd9af/source-04e0c75cd9af:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/484248)
<Ox0dea> havenwood: That went well.
A5101 has joined #ruby
<havenwood> Ox0dea: Just need parens for a better error.
shock_one has quit [Ping timeout: 250 seconds]
<Ox0dea> Aye, and that the one I was hoping for.
<havenwood> Should change when to use parens from "when it breaks the interpreter" to "when it breaks the interpreter or produces gibberish errors."
<Ox0dea> >> BasicObject.new.respond_to? :is_a?
<ruboto> Ox0dea # => undefined method `respond_to?' for #<BasicObject:0x40a64344> (NoMethodError) ...check link for more (https://eval.in/484249)
<Ox0dea> Methinks maybe BasicObjects are a little too basic.
<greg> what is the current stable version of ruby
<havenwood> greg: 2.2.3
<greg> my system says ruby 2.2.1p85 (2015-02-26 revision 49769) [i686-linux]
<greg> how to upgrade
<havenwood> greg: How'd you install 2.2.1?
reaVer has quit [Remote host closed the connection]
<greg> sudo aptget ruby
<havenwood> greg: Ubuntu or something else?
<greg> ubuntu
<havenwood> greg: You might just use your Ubuntu's latest stable unless you have a reason to do otherwise. One otherwise option is to use Brightbox's up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
<greg> my ubuntu is lts 14
<havenwood> yup
Zamerick_ has joined #ruby
weemsledeux has joined #ruby
reaVer has joined #ruby
kaka__ has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
shanemcd has joined #ruby
juddey has quit [Ping timeout: 272 seconds]
greg has quit [Quit: Leaving]
SCHAAP137 has quit [Remote host closed the connection]
beast has joined #ruby
shanemcd has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
Azure has quit [Client Quit]
Azure has joined #ruby
yilmaz_alican has joined #ruby
chouhoulis has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
yilmaz_alican has left #ruby [#ruby]
blackgoat has joined #ruby
krobzaur has quit [Ping timeout: 256 seconds]
<jhass> oh, new bundler
agent_white has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
FooMunki has quit [Quit: FooMunki]
enlycanm3nt has joined #ruby
A5101 has quit [Quit: Leaving]
A5101 has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
casadei has joined #ruby
dlitvak has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
juddey has joined #ruby
ruby-lang518 has joined #ruby
ruby-lang518 has quit [Client Quit]
dlitvak has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
<Ox0dea> Oh, new Linux.
iamcz has joined #ruby
duckpuppy has joined #ruby
duckpuppy has quit [Client Quit]
segmond has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
iamcz has quit [Ping timeout: 252 seconds]
duckpuppy has joined #ruby
yfeldblum has joined #ruby
bronson has joined #ruby
chipotle has joined #ruby
calderonroberto has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
JDiPierro has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
Jardayn has quit [Read error: Connection reset by peer]
JDiPierro has quit [Remote host closed the connection]
cassioscabral has quit [Quit: cassioscabral]
duckpuppy has quit [Ping timeout: 272 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
dlitvak has joined #ruby
tenderlove has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
shiru has joined #ruby
tenderlove has joined #ruby
cassioscabral has joined #ruby
User458764 has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
mooe has joined #ruby
bubbys has quit [Ping timeout: 250 seconds]
nibbo has quit [Ping timeout: 256 seconds]
14WAAEQEK has joined #ruby
djbkd has joined #ruby
shiru has quit [Ping timeout: 240 seconds]
cassioscabral has quit [Quit: cassioscabral]
ss_much has quit [Quit: Connection closed for inactivity]
cassioscabral has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
tenderlove has quit [Remote host closed the connection]
kkeuning has joined #ruby
kkeuning has quit [Max SendQ exceeded]
DavidDudson has joined #ruby
kkeuning has joined #ruby
14WAAEQEK has left #ruby [#ruby]
chipotle has quit [Quit: cheerio]
Guest66119 has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
dorei has quit []
wildlander has quit [Quit: Saliendo]
bubbys has joined #ruby
chipotle has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
Nanuq has quit [Ping timeout: 264 seconds]
Nanuq has joined #ruby
krobzaur has joined #ruby
djbkd has joined #ruby
rgrmatt has quit [Remote host closed the connection]
JDiPierro has joined #ruby
atomical has joined #ruby
nibbo has joined #ruby
voodo|away is now known as voodo
voodo has quit [Quit: Leaving...]
DeXterbed has joined #ruby
JDiPierro has quit [Remote host closed the connection]
kalopsian has joined #ruby
brt has quit [Quit: peace]
dlitvak has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
shanemcd has joined #ruby
The_Phoenix has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
calderonroberto has quit [Ping timeout: 250 seconds]
shock_one has joined #ruby
lessless has joined #ruby
Coldblackice has joined #ruby
brt has joined #ruby
sucks has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
calderonroberto has joined #ruby
shanemcd has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 240 seconds]
cassioscabral has quit [Quit: cassioscabral]
sucks has joined #ruby
cassioscabral has joined #ruby
qiukun has joined #ruby
gaiada has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
blackgoat has joined #ruby
braincrash has quit [Quit: bye bye]
Bellthoven has joined #ruby
yeticry has joined #ruby
davedev24 has quit [Remote host closed the connection]
crowell has quit [Read error: Connection reset by peer]
casadei has quit [Remote host closed the connection]
crowell has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
yeticry has quit [Remote host closed the connection]
n_blownapart has joined #ruby
yeticry has joined #ruby
grayjedi has joined #ruby
grayjedi has left #ruby [#ruby]
n_blownapart has quit [Client Quit]
braincrash has joined #ruby
ss_much has joined #ruby
Zamerick_ has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
atumzin has quit [Read error: Connection reset by peer]
nertzy has joined #ruby
chouhoulis has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 240 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 256 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
yqt has quit [Ping timeout: 240 seconds]
beast has quit [Quit: Leaving]
Guest77458 has quit [Ping timeout: 260 seconds]
gix has joined #ruby
chipotle has joined #ruby
nocd has joined #ruby
kkeuning has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has joined #ruby
DeXterbed has quit [Ping timeout: 256 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Bellthoven has quit []
wmdrossard has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
psy_ has joined #ruby
atumzin has joined #ruby
shanemcd has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shanemcd has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 240 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
duckpuppy has joined #ruby
krobzaur has quit [Ping timeout: 240 seconds]
qiukun has quit [Quit: qiukun]
duckpuppy has quit [Ping timeout: 240 seconds]
bigmac has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
calderonroberto has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: brbsec]
phantummm has quit [Read error: Connection reset by peer]
phantummm has joined #ruby
darkxploit has quit [Quit: Leaving]
darkxploit has joined #ruby
kiez0rd has joined #ruby
darkxploit has quit [Client Quit]
darkxploit has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
iamvery has quit [Quit: ZNC - 1.6.0 - http://znc.in]
agent_white has joined #ruby
qiukun has joined #ruby
jawa_ has quit [Ping timeout: 250 seconds]
iamvery has joined #ruby
meatchicken has quit [Quit: Leaving]
brt has quit [Quit: peace]
calderonroberto has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
calderonroberto has quit [Client Quit]
colegatron has quit [Ping timeout: 256 seconds]
iateadonut has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
blackgoat has quit [Ping timeout: 240 seconds]
qiukun has quit [Remote host closed the connection]
skweek has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 250 seconds]
qiukun has joined #ruby
skweek has joined #ruby
Rickmasta has joined #ruby
skweek has quit [Read error: Connection reset by peer]
Wsewolod has quit [Ping timeout: 250 seconds]
skweek has joined #ruby
gvaughn has quit [Remote host closed the connection]
nocd has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
dviola has joined #ruby
colegatron has joined #ruby
blackgoat has joined #ruby
dviola has quit [Ping timeout: 240 seconds]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
phantummm has quit [Quit: WeeChat 1.3]
jessemcgilallen has joined #ruby
blackgoat has quit [Ping timeout: 256 seconds]
kiez0rd has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
govg has quit [Ping timeout: 240 seconds]
tpendragon has quit [Quit: ZNC - http://znc.in]
blackjid has quit [Quit: ZNC - http://znc.in]
aps has quit [Quit: left]
skarn has quit [Quit: ZNC - http://znc.in]
bronson has quit [Ping timeout: 256 seconds]
duckpuppy has joined #ruby
darkf has joined #ruby
houhoulis has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
govg has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
gaiada has quit [Ping timeout: 250 seconds]
tenderlove has joined #ruby
dviola has joined #ruby
dlitvak has joined #ruby
gaiada has joined #ruby
s00pcan_ has joined #ruby
s00pcan_ has quit [Client Quit]
BTRE has joined #ruby
s00pcan_ has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 240 seconds]
s00pcan_ has joined #ruby
gaiada has quit [Max SendQ exceeded]
gaiada has joined #ruby
tenderlove has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
shanemcd has joined #ruby
djbkd has joined #ruby
rdavila has joined #ruby
rdavila has quit [Client Quit]
user083_ has joined #ruby
user083_ has quit [Client Quit]
c355e3b has quit [Quit: Connection closed for inactivity]
dlitvak has joined #ruby
houhoulis has joined #ruby
tenderlove has joined #ruby
A124 has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
shanemcd has quit [Ping timeout: 256 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sapslaj has quit [Remote host closed the connection]
yfeldblum has joined #ruby
kspencer has quit [Ping timeout: 260 seconds]
gaiada has quit [Ping timeout: 240 seconds]
tpendragon has joined #ruby
TomPeed has joined #ruby
chouhoulis has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
radgeRayden_ has quit [Ping timeout: 256 seconds]
bean has quit [Changing host]
bean has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
bubbys has quit [Ping timeout: 256 seconds]
bubbys has joined #ruby
gaiada has joined #ruby
ruby-lang097 has joined #ruby
framling has joined #ruby
<ruby-lang097> Hey guys I'm having a simple problem. My program is supposed to read an integer value from a file (and save the data in runtill variable) and if the data is : not integer, empty, nil etc the program would just assign its own value to runtill variable but it's not quite working
<ruboto> ruby-lang097, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/4dcba93d89705cae1b11
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<ruby-lang097> The if statement at the bottom is supposed to be ran when data read from the file is anything other than an integer value
dlitvak has quit [Remote host closed the connection]
Liam` has joined #ruby
<bean> ruby-lang097, so what does it do now?
<bean> ruby-lang097, any errors? or it just says it was edited?
Liam` has quit [Remote host closed the connection]
<bean> ruby-lang097, also, you might want to use AND, not OR
<ruby-lang097> I don't get any error, but if i create variables to track what's not working, it seems that 0 gets assigned to runtill and i wonder why
<bean> and invert your syntax, potentially
<bean> one moment, i'll pull up my ruby box
TomPeed is now known as justbleed
tenderlove has joined #ruby
<ruby-lang097> I tried using "and" and now I'm getting "class or module required (Typeerror)" D:
jessemcgilallen has quit [Ping timeout: 256 seconds]
skweek has quit [Ping timeout: 250 seconds]
<bean> gist.github.com/daniellockard/e8b73fa4cd49ec473ae0
<bean> that totally works for me
<bean> and doesn't set it to "thing"
<bean> if testfile just contains '1'
gaiada has quit [Ping timeout: 240 seconds]
enlycanm3nt has quit [Ping timeout: 240 seconds]
<bean> ruby-lang097, ^
tenderlove has quit [Ping timeout: 240 seconds]
<ruby-lang097> i do not understand
M-mistake has quit [Remote host closed the connection]
M-prosodyContext has quit [Remote host closed the connection]
M-shine has quit [Read error: Connection reset by peer]
M-Kodo has quit [Remote host closed the connection]
<bean> I guess i'm not sure what you're confused on
claw has quit [Ping timeout: 256 seconds]
<bean> that code reads the contents of testfile, makes it into an int.
Liam` has joined #ruby
<bean> and then checks it
akem has quit [Ping timeout: 240 seconds]
<bean> oh, ruby-lang097. check this
<bean> >> puts "".to_i
<ruboto> bean # => 0 ...check link for more (https://eval.in/484288)
<bean> " If there is not a valid number at the start of str, 0 is returned. This method never raises an exception when base is valid."
akem has joined #ruby
<ruby-lang097> ohhh, so we get 0 if there is no data at all?
gaiada has joined #ruby
<ruby-lang097> thank you
<ruby-lang097> I will see if this problem has been fixed
sucks has quit [Remote host closed the connection]
<bean> ruby-lang097, its not a 'problem'. it's a design choice.
aspire has quit [Quit: Leaving]
<ruby-lang097> Will it be okay to use if contents == 0 on line 12 https://gist.github.com/daniellockard/e8b73fa4cd49ec473ae0
Ox0dea has joined #ruby
<Ox0dea> ruby-lang097: In this case, you're actually seeing the results of converting `nil` to an integer, not an empty string.
<Ox0dea> >> nil.to_i
<ruboto> Ox0dea # => 0 (https://eval.in/484291)
<Ox0dea> >> ''.lines
<ruboto> Ox0dea # => [] (https://eval.in/484293)
<bean> i mean, yeah, you could also check to see if its 0, ruby-lang097
<Ox0dea> No.
<Ox0dea> There is a difference between nonexistence (`nil`) and nothing (0).
<bean> it'll just also not work if you have "0" in the file.
<bean> I'm aware, Ox0dea, but nil.to_i == 0.
<Ox0dea> bean: If you were aware of the incorrectness of your proposal, why propose it?
<bean> because in this case nil casted to an int is, infact, 0.
<Ox0dea> bean: Why are you telling me something which I just plainly demonstrated my awareness of?
Guest55126 has joined #ruby
<bean> wow, hostile.
<Ox0dea> It was an honest question in whose answer I am genuinely interested.
<bean> I'm just telling him he could do that, as long as he understands the implications.
<Ox0dea> You addressed me specifically.
duckpuppy has joined #ruby
<bean> *sigh* calm down, you replied to something I was already talking to ruby-lang097 about.
<Ox0dea> "Speak only that you would improve the silence", in my opinion.
<Ox0dea> Telling newbies to treat 0 and `nil` equivalently is scarcely worthy of being called advice.
<bean> http://ruby-doc.org/core-2.2.0/String.html#method-i-to_i it literally says "If there is not a valid number at the start of str, 0 is returned. This method never raises an exception when base is valid."
<bean> I never said to treat nil and 0 the same.
A5101 has quit [Ping timeout: 240 seconds]
M-prosodyContext has joined #ruby
M-mistake has joined #ruby
<ruby-lang097> I don't get any of what you guys are saying.
shanemcd has joined #ruby
<ruby-lang097> Learnning on our own sucks v_v
<bean> Don't worry about it ruby-lang097. You can learn pretty easily. Lots of good ruby tutorials and exercises online.
ponga has quit []
<Ox0dea> I think there's an IRC channel too.
duckpuppy has quit [Ping timeout: 272 seconds]
<bean> I think you're correct, not sure what it is, though.
<ruby-lang097> The main problem is my english u know, most of the time i cant learn because i do not understand the words
* baweaver raises eyebrow
<ruby-lang097> but yeah thanks for the help
<Ox0dea> It wasn't help if nothing stuck. :<
<ruby-lang097> huh? Thats because im very newbie man..?
shock_one has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<ruby-lang097> but yeah i now know 0 != nil but i did know it before huehuehue just dont know the key difference between them
<Ox0dea> They're just... completely different things.
shanemcd has quit [Ping timeout: 240 seconds]
<Ox0dea> It's probably for the worse that `nil.to_i` is 0, but that's well past renegotiation.
<ruby-lang097> why would you get nil by reading a file?
<baweaver> nothing in it, doesn't exist, something like that
<bean> if the file was empty you might, depending on the implementation, or the file being unable to open or something.
chipotle has quit [Quit: cheerio]
<Ox0dea> ruby-lang097: IO.readlines on an empty file returns an empty array, of which the 0th element is `nil`.
<baweaver> read nothing get nothing
<Ox0dea> Simple as that, really.
<ruby-lang097> Thanks Ox0dea
jdelaney has joined #ruby
<Ox0dea> Happy to help.
<ruby-lang097> Lmao i dnt even know what im coding sucks
<baweaver> everyone says that about code they wrote last week, welcome to programming
<baweaver> if they don't there's another issue.
gaiada has quit [Ping timeout: 272 seconds]
M-Kodo has joined #ruby
zast has quit [Quit: Leaving.]
<ruby-lang097> :D okay
<ruby-lang097> i will fix this bug right away then
shock_one has quit [Ping timeout: 272 seconds]
<jdelaney> I'm moving to a job soon where I'll be using Ruby for the first time. Any book recommendations that are targeted towards people experienced with programming?
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<Ox0dea> Not a book, but a solid quickstart.
<jdelaney> Ox0dea: Thanks! I'll check that out
<Ox0dea> Sure thing.
yardenbar has joined #ruby
M-shine has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lessless has joined #ruby
crystalmaiden has joined #ruby
ruby-lang097 has quit [Ping timeout: 252 seconds]
<baweaver> jdelaney: Eloquent Ruby if you want a full book.
<baweaver> and just ruby or rails as well?
Coldblackice has quit [Ping timeout: 240 seconds]
kp666 has quit [Ping timeout: 240 seconds]
<jdelaney> baweaver: I'll check that book out. Thanks as well!
<norc> Ox0dea: Luckily nil equals nil. In SQL null == null equals null, because there "NULL" means unknown. :-)
AmericanRedneck has joined #ruby
<AmericanRedneck> what is a good $100,000+ job where people love free speech and expression ("hate" and "racist" speech must be not discriminated against and only encouraged) and that has great benefits too?
<jdelaney> baweaver: Just ruby. I believe I'll be using Sinatra
<bean> AmericanRedneck, .... trolling?
<baweaver> Might read into that as well
shock_one has joined #ruby
<baweaver> !mute AmericanRedneck
<baweaver> probably
<baweaver> and that's all we'll say about that.
<blub> hi baweaver
<baweaver> alo
dionysus69 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tildes has joined #ruby
<norc> Wow.
lxsameer has joined #ruby
<norc> The referenced xkcd is really fitting: http://xkcd.com/327/
<norc> :-)
<Ox0dea> Always.
<baweaver> little bobby tables was it?
kalopsian has quit [Ping timeout: 272 seconds]
<Ox0dea> I'm surprised there isn't yet an xkcd about there being an xkcd for every occasion.
chouhoulis has quit [Ping timeout: 240 seconds]
<baweaver> put it by Randall then
<Ox0dea> That might be too meta even for his tastes.
<baweaver> hehe
<baweaver> dangit!
<Ox0dea> So, it has come to this.
<Ox0dea> I had https://xkcd.com/1022/ in mind.
<baweaver> mmm
gaiada has joined #ruby
rippa has joined #ruby
gaiada has quit [Max SendQ exceeded]
gaiada has joined #ruby
devoldmx has joined #ruby
DavidDudson has joined #ruby
User458764 has joined #ruby
shock_one has quit [Remote host closed the connection]
AmericanRedneck has quit [K-Lined]
devoldmx has quit [Ping timeout: 240 seconds]
blackgoat has joined #ruby
Cohedrin has joined #ruby
claw has joined #ruby
thejamespinto has quit [Remote host closed the connection]
zarubin has joined #ruby
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slackbotgz has joined #ruby
Liam` has quit [Quit: http://bouncer.ml]
vikas027 has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
DeXterbed has joined #ruby
bronson has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
iateadonut has joined #ruby
AmericanCowboy has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
devbug_ has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
vikas027 has quit [Read error: Connection reset by peer]
AmericanCowboy has quit [Ping timeout: 252 seconds]
juddey has quit [Ping timeout: 256 seconds]
Guest32 has joined #ruby
ZeeNoodleyGamer has joined #ruby
ZeeNoodleyGamer is now known as Guest47420
duckpuppy has quit [Ping timeout: 250 seconds]
djbkd has quit [Quit: My people need me...]
Guest32 has quit [Read error: Connection reset by peer]
gaiada has quit [Ping timeout: 240 seconds]
Guest32 has joined #ruby
User458764 has joined #ruby
jdm_ has joined #ruby
thejamespinto has joined #ruby
Guest32 has quit [Quit: Textual IRC Client: www.textualapp.com]
TheBloke- has joined #ruby
djbkd has joined #ruby
TheBloke has quit [Ping timeout: 240 seconds]
jdm has quit [Ping timeout: 250 seconds]
gaiada has joined #ruby
lessless has joined #ruby
thejamespinto has quit [Ping timeout: 256 seconds]
solars has joined #ruby
gaiada has quit [Max SendQ exceeded]
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
gaiada has joined #ruby
minimalism has quit [Quit: leaving]
chouhoulis has joined #ruby
gaiada has quit [Max SendQ exceeded]
gaiada has joined #ruby
_hs2000_ has joined #ruby
ibouvousaime has quit [Ping timeout: 240 seconds]
ibouvousaime has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
gaiada has quit [Max SendQ exceeded]
gaiada has joined #ruby
brt has joined #ruby
gaiada has quit [Max SendQ exceeded]
ibouvousaime has quit [Ping timeout: 240 seconds]
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akem has quit [Remote host closed the connection]
ornerymoose has quit [Quit: ornerymoose]
brt_ has joined #ruby
triangles2 has quit [Quit: Leaving]
brt has quit [Ping timeout: 240 seconds]
blackgoat has quit [Ping timeout: 240 seconds]
Arnvald has joined #ruby
arooni has quit [Ping timeout: 240 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
devoldmx has joined #ruby
baweaver has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
_hs2000_ has left #ruby ["Leaving"]
Zamerick_ has joined #ruby
spider-mario has joined #ruby
Jackneill has joined #ruby
Ishido has joined #ruby
firstdayonthejob has joined #ruby
agit0 has joined #ruby
duckpuppy has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
iateadonut has quit [Quit: Leaving.]
devoldmx has quit [Remote host closed the connection]
Arnvald has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
Arnvald has joined #ruby
devoldmx has joined #ruby
DeXterbed has quit [Ping timeout: 240 seconds]
shanemcd has quit [Ping timeout: 272 seconds]
blackgoat has joined #ruby
jdm has joined #ruby
BaroMeter has joined #ruby
devoldmx has quit [Remote host closed the connection]
jdm_ has quit [Ping timeout: 250 seconds]
gaiada has joined #ruby
Arnvald_ has joined #ruby
gaiada has quit [Max SendQ exceeded]
Arnvald has quit [Ping timeout: 250 seconds]
gaiada has joined #ruby
chouhoulis has joined #ruby
devoldmx has joined #ruby
djbkd has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
Arnvald has joined #ruby
Arnvald_ has quit [Read error: Connection reset by peer]
charles81 has quit [Ping timeout: 240 seconds]
charles81 has joined #ruby
zarubin has joined #ruby
Arnvald_ has joined #ruby
Arnvald has quit [Read error: Connection reset by peer]
zarubin has quit [Ping timeout: 272 seconds]
favadi has joined #ruby
baweaver has joined #ruby
kp666 has joined #ruby
crystalmaiden has quit [Ping timeout: 240 seconds]
framling has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 256 seconds]
bMalum has joined #ruby
berserk_ren has joined #ruby
duckpuppy has joined #ruby
shock_one has joined #ruby
Mr_Pancake has quit [Quit: Yes, I'm flour]
Mr_Pancake has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
Zamerick_ has quit [Ping timeout: 240 seconds]
Arnvald_ has quit [Read error: Connection reset by peer]
cornerma1 has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
Arnvald has joined #ruby
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
jdm_ has joined #ruby
dopie has joined #ruby
neanderslob has joined #ruby
waka has quit [Remote host closed the connection]
Hounddog has joined #ruby
spt0 has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
jdm has quit [Ping timeout: 256 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
favadi has joined #ruby
InvGhost has joined #ruby
charliesome has joined #ruby
troter______ has quit [Ping timeout: 246 seconds]
bjmllr_ has quit [Ping timeout: 246 seconds]
HANJIN has joined #ruby
lancetw has quit [Ping timeout: 250 seconds]
bjmllr_ has joined #ruby
troter______ has joined #ruby
lancetw has joined #ruby
InvGhost has quit [Read error: Connection reset by peer]
TheBloke has joined #ruby
The_Phoenix has joined #ruby
TheBloke- has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
chouhoulis has joined #ruby
BaroMeter has quit [Quit: Leaving]
_joes___ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
agit0 has quit [Quit: zzzZZZ….]
rfv has quit [Ping timeout: 240 seconds]
zrl has quit [Ping timeout: 260 seconds]
spt0 has joined #ruby
brt_ has quit [Quit: peace]
colstrom has quit [Ping timeout: 272 seconds]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
yo61 has quit [Ping timeout: 240 seconds]
err_ok has quit [Ping timeout: 246 seconds]
Guest4184___ has quit [Ping timeout: 250 seconds]
bttf has quit [Ping timeout: 250 seconds]
jord has quit [Read error: Connection reset by peer]
amitchellbullard has quit [Read error: Connection reset by peer]
vikaton has quit [Read error: Connection reset by peer]
manveru has quit [Ping timeout: 260 seconds]
mikolalysenko has quit [Ping timeout: 260 seconds]
bestie has quit [Ping timeout: 250 seconds]
Heero has quit [Ping timeout: 250 seconds]
ELCALOR has quit [Read error: Connection reset by peer]
angiebadillo has quit [Read error: Connection reset by peer]
braderhart has quit [Ping timeout: 240 seconds]
jmcc_____ has quit [Ping timeout: 240 seconds]
machty has quit [Ping timeout: 250 seconds]
zeljkof has quit [Ping timeout: 250 seconds]
cbednarski has quit [Ping timeout: 250 seconds]
mostlybadfly has quit [Ping timeout: 250 seconds]
bjeanes has quit [Ping timeout: 250 seconds]
n1ftyn8_ has quit [Ping timeout: 250 seconds]
pmarreck has quit [Ping timeout: 250 seconds]
alxndr has quit [Ping timeout: 250 seconds]
sideshowcoder has quit [Ping timeout: 250 seconds]
lancetw has quit [Ping timeout: 240 seconds]
mooe has quit [Ping timeout: 240 seconds]
im0b has quit [Ping timeout: 240 seconds]
kellabyte has quit [Ping timeout: 260 seconds]
pfg has quit [Ping timeout: 260 seconds]
akitada has quit [Ping timeout: 260 seconds]
jlyndon has quit [Ping timeout: 240 seconds]
mjc_ has quit [Ping timeout: 240 seconds]
ramblinpeck has quit [Ping timeout: 240 seconds]
skmp has quit [Ping timeout: 240 seconds]
prosody has quit [Ping timeout: 240 seconds]
Eleeleth has quit [Ping timeout: 250 seconds]
daxroc has quit [Ping timeout: 250 seconds]
pizzaops has quit [Ping timeout: 250 seconds]
apipkin has quit [Ping timeout: 250 seconds]
golgaroth has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Ping timeout: 272 seconds]
avdi has quit [Ping timeout: 240 seconds]
countryHick has quit [Ping timeout: 250 seconds]
jevs has quit [Ping timeout: 250 seconds]
faisal_ has quit [Ping timeout: 250 seconds]
frode15243 has quit [Ping timeout: 260 seconds]
djbender has quit [Ping timeout: 260 seconds]
jeregrine has quit [Ping timeout: 260 seconds]
benlakey has quit [Ping timeout: 250 seconds]
deimos has quit [Read error: Connection reset by peer]
spastorino has quit [Ping timeout: 260 seconds]
AdamMeghji has quit [Ping timeout: 246 seconds]
lacrosse has quit [Ping timeout: 250 seconds]
HashNuke has quit [Ping timeout: 250 seconds]
mrsolo has quit [Ping timeout: 250 seconds]
tonini has quit [Ping timeout: 250 seconds]
thesheff17 has quit [Ping timeout: 240 seconds]
bjmllr_ has quit [Ping timeout: 240 seconds]
chrisseaton has quit [Ping timeout: 260 seconds]
MiracleBlue_ has quit [Ping timeout: 260 seconds]
Heero has joined #ruby
troter______ has quit [Ping timeout: 250 seconds]
ornerymoose has joined #ruby
frankS2 has quit [Read error: Connection reset by peer]
PhilK has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
schaary has quit [Ping timeout: 240 seconds]
aphprentice has quit [Ping timeout: 250 seconds]
joaomdmoura__ has quit [Ping timeout: 250 seconds]
AlexRussia has quit [Ping timeout: 256 seconds]
Guest85414______ has quit [Ping timeout: 240 seconds]
Lloyd has quit [Ping timeout: 240 seconds]
adambeynon has quit [Ping timeout: 260 seconds]
huddy has quit [Ping timeout: 240 seconds]
bove has quit [Ping timeout: 240 seconds]
halfdan has quit [Ping timeout: 240 seconds]
shelling__ has quit [Ping timeout: 260 seconds]
ggherdov has quit [Ping timeout: 260 seconds]
zipkid has quit [Ping timeout: 250 seconds]
jxf has quit [Ping timeout: 240 seconds]
apipkin has joined #ruby
mostlybadfly has joined #ruby
cbetta has quit [Ping timeout: 260 seconds]
twodayslate has quit [Ping timeout: 260 seconds]
zemmihates has quit [Ping timeout: 250 seconds]
iamdevnul__ has quit [Ping timeout: 240 seconds]
lessless has quit [Max SendQ exceeded]
cstrahan has quit [Ping timeout: 260 seconds]
countryHick has joined #ruby
jlyndon has joined #ruby
bcavileer_ has quit [Ping timeout: 250 seconds]
rideh has quit [Ping timeout: 246 seconds]
zzak_ has quit [Ping timeout: 260 seconds]
Heero has quit [Read error: Connection reset by peer]
rideh has joined #ruby
DoYouKnow has quit [Ping timeout: 240 seconds]
Arnvald has quit [Read error: Connection reset by peer]
Arnvald_ has joined #ruby
cwong_on_irc has joined #ruby
n008f4g_ has joined #ruby
SCHAAP137 has joined #ruby
manveru has joined #ruby
berserk_ren has quit [Remote host closed the connection]
bryancp has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
avdi has joined #ruby
zeljkof has joined #ruby
pandaant has joined #ruby
danneu has quit [Ping timeout: 246 seconds]
countryHick has quit [Ping timeout: 250 seconds]
apipkin has quit [Ping timeout: 240 seconds]
jlyndon has quit [Ping timeout: 240 seconds]
n008f4g_ has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
jord has joined #ruby
avdi has quit [Read error: Connection reset by peer]
deimos has joined #ruby
charles81 has quit [Ping timeout: 240 seconds]
Guest69624 has joined #ruby
Guest4184___ has joined #ruby
jxf has joined #ruby
MiracleBlue_ has joined #ruby
ELCALOR has joined #ruby
zzak_ has joined #ruby
zeljkof has quit [Ping timeout: 240 seconds]
colstrom has joined #ruby
pmarreck has joined #ruby
angiebadillo has joined #ruby
DoYouKnow has joined #ruby
zipkid has joined #ruby
lancetw has joined #ruby
jeregrine has joined #ruby
halfdan has joined #ruby
vikaton has joined #ruby
daxroc has joined #ruby
mjc_ has joined #ruby
schaary has joined #ruby
aphprentice has joined #ruby
bryancp has joined #ruby
HashNuke has joined #ruby
akitada has joined #ruby
PhilK has joined #ruby
alxndr has joined #ruby
mrsolo has joined #ruby
twodayslate has joined #ruby
bjmllr_ has joined #ruby
zrl has joined #ruby
Eleeleth has joined #ruby
kellabyte has joined #ruby
_joes___ has joined #ruby
adambeynon has joined #ruby
bestie has joined #ruby
pizzaops has joined #ruby
thesheff17 has joined #ruby
jmcc_____ has joined #ruby
sideshowcoder has joined #ruby
amitchellbullard has joined #ruby
shelling__ has joined #ruby
Lloyd has joined #ruby
cstrahan has joined #ruby
cbetta has joined #ruby
djbender has joined #ruby
bove has joined #ruby
bcavileer_ has joined #ruby
zemmihates has joined #ruby
Guest85414______ has joined #ruby
tonini has joined #ruby
iamdevnul__ has joined #ruby
huddy has joined #ruby
ramblinpeck has joined #ruby
n1ftyn8_ has joined #ruby
Arnvald_ has quit [Read error: Connection reset by peer]
Heero has joined #ruby
Arnvald has joined #ruby
frankS2 has joined #ruby
The_Phoenix has joined #ruby
pfg has joined #ruby
mikolalysenko has joined #ruby
mooe has joined #ruby
prosody has joined #ruby
AdamMeghji has joined #ruby
skmp has joined #ruby
bttf has joined #ruby
countryHick has joined #ruby
avdi has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
golgaroth has joined #ruby
apipkin has joined #ruby
troter______ has joined #ruby
rfv has joined #ruby
bjeanes has joined #ruby
jevs has joined #ruby
frode15243 has joined #ruby
joaomdmoura__ has joined #ruby
lacrosse has joined #ruby
cbednarski has joined #ruby
chrisseaton has joined #ruby
yo61 has joined #ruby
spastorino has joined #ruby
jlyndon has joined #ruby
benlakey has joined #ruby
faisal_ has joined #ruby
charles81 has joined #ruby
hanmac has quit [Ping timeout: 260 seconds]
zeljkof has joined #ruby
im0b has joined #ruby
machty has joined #ruby
neanderslob has quit [Remote host closed the connection]
err_ok has joined #ruby
ggherdov has joined #ruby
spt0 has quit [Ping timeout: 260 seconds]
m8 has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
ornerymoose has quit [Quit: ornerymoose]
The_Phoenix has quit [Quit: Leaving.]
zarubin has joined #ruby
ElSif has quit [Read error: Connection reset by peer]
felixal has quit [Remote host closed the connection]
duckpuppy has joined #ruby
zarubin has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
Arnvald has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 240 seconds]
Arnvald has joined #ruby
DeXterbed has joined #ruby
shanemcd has joined #ruby
hanmac has joined #ruby
tomphp has joined #ruby
yfeldblum has joined #ruby
shanemcd has quit [Ping timeout: 240 seconds]
blackgoat has quit [Ping timeout: 250 seconds]
jdm__ has joined #ruby
qiukun has quit [Quit: qiukun]
lurch_ has joined #ruby
toretore has joined #ruby
Arnvald has quit [Remote host closed the connection]
jdm_ has quit [Ping timeout: 256 seconds]
howdoi has joined #ruby
houhoulis has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
colegatron has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
kirun has joined #ruby
lkba has joined #ruby
tomphp has quit [Client Quit]
qiukun has joined #ruby
shock_one has quit [Remote host closed the connection]
chouhoulis has joined #ruby
tomphp has joined #ruby
jbrhbr has joined #ruby
tomphp has quit [Client Quit]
chouhoulis has quit [Ping timeout: 240 seconds]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
tomphp has joined #ruby
Mon_Ouie has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
tomphp has quit [Client Quit]
colegatron has joined #ruby
tomphp has joined #ruby
blackgoat has joined #ruby
<Diabolik> is anyone here on codewars
<Diabolik> ?
DeXterbed has quit [Ping timeout: 240 seconds]
DeXterbed has joined #ruby
bronson has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
Guest66119 has joined #ruby
TomyLobo has joined #ruby
shock_one has joined #ruby
vdamewood has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
HANJIN has quit [Quit: HANJIN]
solocshaw has joined #ruby
Guest66119 has quit [Client Quit]
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
agit0 has joined #ruby
<blub> hi j hass
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
bMalum has quit [Quit: bMalum]
cornerman has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
bigkevmcd has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
<Diabolik> jhass struggling with this
Arnvald has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Arnvald has quit [Remote host closed the connection]
Arnvald has joined #ruby
duckpuppy has joined #ruby
<Diabolik> just want to count how many items in a string are duplicated, but not how many times they have been duplicated
cornerman has joined #ruby
Arnvald has quit [Remote host closed the connection]
shazaum_ has joined #ruby
c355e3b has joined #ruby
matp has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
<shevy> when you write items in a string
<shevy> what do you mean with items
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
dviola has quit [Ping timeout: 256 seconds]
diego1 is now known as dviola
<jhass> Diabolik: well, count all occurrences and then count which have a count > 1
<jhass> &ri String#chars
<`derpy> method `String#chars`: Returns an array of characters in str. This is a shorthand for str.each_char.to_… • http://rubydoc.info/stdlib/core/String#chars-instance_method
jdm_ has joined #ruby
charliesome has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
jdm__ has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
InvGhost has joined #ruby
tomphp has joined #ruby
nfk|laptop has joined #ruby
skade has quit [Client Quit]
<Diabolik> so do
agent_white has quit [Quit: night]
<Diabolik> .chars.count then pass a block in
<Diabolik> ?
qiukun has quit [Remote host closed the connection]
diego1 has joined #ruby
qiukun has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
CloCkWeRX has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
dviola has quit [Ping timeout: 240 seconds]
diego1 is now known as dviola
<Diabolik> shevy i meant characters
<Diabolik> sorry for confusion
<jhass> Diabolik: if you can't solve it then you can't solve it
zarubin has joined #ruby
<jhass> the point of these is not to find somebody that solves them for you
zarubin has quit [Remote host closed the connection]
<Diabolik> i was just looking for advice..
<Diabolik> but ok
<jhass> I'll happily discuss prettier solutions once you've shown yours
<shevy> Diabolik ok so substring searching
<jhass> I think I've given you a quite huge advice already by giving you the base algorithm
<shevy> quite huge hmmm
<shevy> :D
chouhoulis has joined #ruby
<soahccc_> I try to write a little tool which can accept a file via argument or piped input. ARGF.each_line does the trick except for when there is neither an argument nor input stream it waits forever for input :( How do I prevent this?
blackjid has joined #ruby
<blub> it reads standard input and waits for an end of file, c-d on unix
<blub> that's the correct behaviour
<toretore> soahccc_, does the program work without the input?
<blub> if it didn't do that, piping wouldn't work anyway
<toretore> ^
<shevy> soahccc_ simply pipe it through a method that can handle the input-versus-no-input situation
<soahccc_> toretore: well not really but it should just exit (maybe show help). I just don't know how to check if there is something
diego1 has joined #ruby
<toretore> what you could do is check if stdin is attached to a terminal
diego1 has quit [Changing host]
diego1 has joined #ruby
<toretore> but that's not really something you should do
mooe has quit [Quit: Connection closed for inactivity]
<toretore> if a program takes input on stdin it is correct behavior to block
chouhoulis has quit [Ping timeout: 256 seconds]
<soahccc_> hmm cat without anything blocks as well. Maybe I should just leave it then :)
<blub> that's how unix programs work, its why ruby makes it easy to write programs that work like that :)
<toretore> some programs make you explicitly set "-" as the filename to indicate it should use stdin
dviola has quit [Ping timeout: 250 seconds]
diego1 is now known as dviola
f00bar-32 has joined #ruby
<toretore> but i don't really like that
<toretore> if it makes sense, it should just default to stdin
jbrhbr has quit [Quit: Leaving.]
<soahccc_> I thought maybe it's as simple as either there is $pipein but apparently it's all stdin :)
skade has joined #ruby
<Diabolik> ok jhass
<Diabolik> i got a solution
<Diabolik> but its case sensitive
<jhass> &ri String#downcase String#upcase String#casecmp
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danneu has joined #ruby
<Diabolik> is there a prettier solution than this?
<Diabolik> def duplicate_count(text)
<Diabolik> array = text.downcase.chars
<Diabolik> array.select { |item| array.count(item) > 1 }.uniq.count
<Diabolik> end
<Diabolik> apparently the best way is ('a'..'z').count { |c| text.downcase.count(c) > 1 }
<jhass> the uniq passed the tests?
<Diabolik> yes
<apeiros> It's probably quite a bit slower than using a counting hash
<jhass> for the latter I don't like that it downcases on each iteration
<apeiros> since you iterate over the string once for every character
<apeiros> i.e., if your string has 200 chars, you go over each character 200*200 times.
sdothum has joined #ruby
tomphp has joined #ruby
<jhass> text = text.downcase; text.chars.uniq.count {|char| text.count(char) > 1 }
<apeiros> what exactly should your result tell you? it seems to me that your first and second code example don't do the same
<jhass> apeiros: "aAbcc" #=> 2
<Diabolik> the first solution was mine
<apeiros> you want to know how many character occur more than once?
<Diabolik> the second was the highest voted one
<Diabolik> yes
matp has joined #ruby
<apeiros> text.downcase.chars.each_with_object(Hash.new(0)) { |char, counter| counter[char] += 1 }.select { |char, count| count > 1 }.values.inject(:+) # longer, but only iterates the string once
<apeiros> might want .inject(0, :+)
<apeiros> otherwise text="abc" would result in nil instead of 0
<jhass> huh, that's wrong apeiros :P
<apeiros> oh, right
<jhass> not sum, just occurrences
thejamespinto has joined #ruby
<apeiros> text.downcase.chars.each_with_object(Hash.new(0)) { |char, counter| counter[char] += 1 }.select { |char, count| count > 1 }.size
<apeiros> or actually…
<jhass> apeiros: count takes a block :D
<apeiros> text.downcase.chars.each_with_object(Hash.new(0)) { |char, counter| counter[char] += 1 }.count { |char, count| count > 1 }
<jhass> apeiros: now each_char.with_object ;P
<apeiros> I bet with you that's slower :)
<jhass> for small inputs maybe
<apeiros> even for large, unless you start hitting memory limits
<apeiros> but since your text consumes O(n) memory already, this solution doesn't increase memory complexity (it takes "only" a factor more memory)
<jhass> hence relative measures aren't always the best
<jhass> 1G vs 2G makes a differences
<jhass> *difference
<apeiros> test it with a 1G string then ;-p
<jhass> can't be bothered :P
qiukun has quit [Quit: qiukun]
<apeiros> but yeah, if you work with *very* large strings, each_chars may be a consideration. but then you might even consider not having the full text in memory in the first place -> hence vape
bMalum has quit [Quit: bMalum]
thejamespinto has quit [Ping timeout: 256 seconds]
CloCkWeRX has quit [Quit: Leaving.]
akem has joined #ruby
FernandoBasso has joined #ruby
tk__ has joined #ruby
davedev24 has joined #ruby
tildes has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
saneax_AFK is now known as saneax
saneax is now known as Guest42221
cassioscabral has quit [Quit: cassioscabral]
FooMunki has joined #ruby
spt0 has joined #ruby
dlitvak has joined #ruby
akem has quit [Remote host closed the connection]
shanemcd has joined #ruby
symm- has joined #ruby
akem has joined #ruby
rippa has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
inukshuk_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zamerick_ has joined #ruby
jdm__ has joined #ruby
blackgoat has quit [Ping timeout: 256 seconds]
shanemcd has quit [Ping timeout: 250 seconds]
f00bar-32 has quit [Ping timeout: 272 seconds]
akem has quit [Remote host closed the connection]
weihan has joined #ruby
jdm_ has quit [Ping timeout: 256 seconds]
shock_one has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
DroidBurgundy has joined #ruby
bMalum has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
inukshuk_ has quit [Quit: leaving]
shanemcd has joined #ruby
akem has joined #ruby
tomphp has joined #ruby
shock_one has joined #ruby
weihan has quit [Quit: Leaving...]
shanemcd has quit [Ping timeout: 240 seconds]
blackgoat has joined #ruby
iateadonut has joined #ruby
chouhoulis has joined #ruby
pawnbox has joined #ruby
favadi has joined #ruby
skcin7 has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
igor has joined #ruby
TomyLobo has quit [Ping timeout: 272 seconds]
nocd has joined #ruby
charliesome has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
shock_one has quit [Remote host closed the connection]
bronson has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
bronson has quit [Ping timeout: 256 seconds]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
igor has quit [Remote host closed the connection]
igor has joined #ruby
firstdayonthejob has joined #ruby
lessless has joined #ruby
loren has joined #ruby
nocd has quit [Quit: nocd]
loren has left #ruby [#ruby]
arup_r has joined #ruby
baweaver has joined #ruby
radgeRayden_ has joined #ruby
Visitante has joined #ruby
<shevy> xmas is happening soon
agit0 has quit [Quit: zzzZZZ….]
<arup_r> shevy: any new ruby ? :)
<blub> whats that shev
<blub> y
baweaver has quit [Ping timeout: 240 seconds]
charliesome has quit [Read error: Connection reset by peer]
DeXterbed has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
tlaxkit has joined #ruby
Bloomer has joined #ruby
charliesome has joined #ruby
duckpuppy has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby
shazaum_ has quit [Quit: This computer has gone to sleep]
igor has quit [Quit: Leaving]
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw1 has joined #ruby
platzhirsch has joined #ruby
wmdrossard has joined #ruby
govg has joined #ruby
<shevy> arup_r yeah in 11 days or so
duckpuppy has quit [Ping timeout: 256 seconds]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
solocshaw1 is now known as solocshaw
<platzhirsch> woopie
dfinninger has joined #ruby
jdm_ has joined #ruby
shazaum_ has joined #ruby
Visitante has quit []
dviola has quit [Quit: WeeChat 1.3]
jpank has joined #ruby
jdm__ has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
tildes has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DeXterbed has joined #ruby
favadi has joined #ruby
favadi has left #ruby [#ruby]
aryaching has joined #ruby
chouhoulis has joined #ruby
platzhirsch has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
workmad3 has joined #ruby
ruid has quit [Ping timeout: 240 seconds]
darkxploit has quit [Ping timeout: 272 seconds]
arup_r has quit []
thejamespinto has joined #ruby
solars has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
TheBloke has quit [Read error: Connection reset by peer]
thejamespinto has quit [Ping timeout: 256 seconds]
TheBloke has joined #ruby
Bloomer has quit [Remote host closed the connection]
darkxploit has joined #ruby
zarubin has joined #ruby
shock_one has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: Leaving]
tomphp has joined #ruby
Guest42221 is now known as saneax_AFK
govg has quit [Ping timeout: 240 seconds]
f00bar-32 has joined #ruby
blackgoat has quit [Quit: night night]
govg has joined #ruby
dorei has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
Xentil has joined #ruby
devoldmx has joined #ruby
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
dfinninger has quit [Remote host closed the connection]
loren has joined #ruby
platzhirsch has quit [Read error: Connection reset by peer]
loren321 has joined #ruby
<Diabolik> jhass what is wrong with my solution?
ibouvousaime has joined #ruby
kobain has joined #ruby
<jhass> it's slow?
shock_one has quit [Ping timeout: 256 seconds]
<jhass> idk, it doesn't show the failing test cases in your screenshot
platzhirsch has joined #ruby
<ddv> how can I parse a date but prevent things like 'Mar' from parsing to March, but allow things like '20-10-2016' to parse correctly?
<adaedra> And you don't need to convert to a string for that, a modulo is enough.
<adaedra> ddv: Using strptime with predefined patter
<Diabolik> i can't even see the tests that are failing
<ddv> Cool will check that one
<Diabolik> what would be more optimal jsaak
<ddv> out*
<Diabolik> *jhass
kmckelvin has quit [Ping timeout: 240 seconds]
lessless has quit [Ping timeout: 250 seconds]
TheBloke has quit [Read error: Connection reset by peer]
TheBloke has joined #ruby
bMalum has joined #ruby
Azure has joined #ruby
shazaum_ has quit [Quit: Leaving]
<jhass> looks like you ran out of available digits
loren has quit [Quit: Leaving]
sigurding has joined #ruby
<jhass> Diabolik: to_i returns 0 if it can't convert it to a number
<havenwood> >> [1, 31, 33, 328, 324, 3247].map { |n| n % 10 }
<jhass> look at what you got instead
<ruboto> havenwood # => [1, 1, 3, 8, 4, 7] (https://eval.in/484363)
ElSif has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<Diabolik> but the problem is im arriving at Infinity
platzhirsch has quit [Read error: Connection reset by peer]
<Diabolik> [10] pry(main)> (2**200)**(2**300)
<Diabolik> (pry):10: warning: in a**b, b may be too big
<Diabolik> => Infinity
duckpuppy has joined #ruby
<jhass> so
<jhass> looks like we need some maths here ;)
<Diabolik> well
<Diabolik> i can guarantee that 39 * 54
<Diabolik> the last number will be 6
saneax_AFK is now known as saneax
<Diabolik> so i just need to multiply the last 2 digits of a and b?
saneax is now known as Guest88079
zarubin has quit [Remote host closed the connection]
shanemcd has joined #ruby
zarubin has joined #ruby
aryaching_ has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 250 seconds]
<havenwood> Diabolik: What's 9 times 4?
<Diabolik> 36
shanemcd has quit [Client Quit]
<havenwood> Diabolik: Note last digit.
<Diabolik> yeah im modulo-ing
<Diabolik> so so far i have
<Diabolik> ((n1 % 10) ** n2) % 10
<Diabolik> which is getting me further
<Diabolik> but im still hitting infinity
zarubin has quit [Ping timeout: 250 seconds]
<havenwood> Diabolik: Could you make anything else ^ there smaller?
<Diabolik> n2
<Diabolik> but im trying to figure out how
jdm has joined #ruby
aryaching_ has quit [Ping timeout: 250 seconds]
zast has joined #ruby
Guest88079 is now known as saneax_AFK
jdm_ has quit [Ping timeout: 256 seconds]
stevenxl has quit [Ping timeout: 272 seconds]
<Diabolik> hmmm
SCHAAP137 has quit [Ping timeout: 240 seconds]
rikai has quit [Ping timeout: 256 seconds]
shanemcd has joined #ruby
dfinninger has joined #ruby
<Diabolik> is this meant to be hard?
<shevy> PROGRAMMING IS HARD
<Diabolik> lol
stannard has quit [Remote host closed the connection]
thejamespinto has joined #ruby
shanemcd has quit []
solocshaw has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
rikai has joined #ruby
<Diabolik> im stumped
thejamespinto has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
devoldmx has quit [Remote host closed the connection]
<Diabolik> havenwood any ideas on how to get n2 smaller?
<adaedra> how did you do with n1?
<Diabolik> moduloing it by 10 which doesn't work with n2
chouhoulis has quit [Ping timeout: 240 seconds]
<adaedra> why?
devoldmx has joined #ruby
<Diabolik> more test failures
bubbys has quit [Ping timeout: 240 seconds]
Hounddog has quit [Remote host closed the connection]
rikai has quit [Ping timeout: 240 seconds]
<adaedra> It would be cool to have the inputs on these tests tho.
shock_one has joined #ruby
<Diabolik> hang on il get them
<Ox0dea> They don't matter.
_stu_ has joined #ruby
workmad3 has joined #ruby
<Mon_Ouie> a**b % 10 == (a**(b/2) % 10) * (a**(b/2) % 10) --- you can use this to implement modular exponentiation
<Ox0dea> >> (1..100).all? { |n| 3 ** n % 10 == 123 ** n % 10 } # Diabolik
<ruboto> Ox0dea # => true (https://eval.in/484374)
DiCablo has joined #ruby
ibouvousaime has quit [Ping timeout: 240 seconds]
<Ox0dea> The trick is to avoid doing the massive exponentiation at all.
devoldmx has quit [Read error: No route to host]
devoldmx has joined #ruby
stannard has joined #ruby
<Diabolik> if you do a hmmm
<Diabolik> lol
<Diabolik> typo
<Diabolik> so how does that help you get the last digit Ox0dea
psy_ has quit [Ping timeout: 240 seconds]
gvaughn has joined #ruby
<Ox0dea> Diabolik: As jhass' SO link plainly demonstrated, the unit digit cycles.
<Ox0dea> As my snippet demostrated, the unit digits for the exponentiation of some x are the same as those for x % 10.
loren321 has left #ruby ["Leaving"]
<Ox0dea> The combination of these insights really ought to be enough to get there.
DeXterbed has quit [Ping timeout: 256 seconds]
<Ox0dea> *demonstrated
psy_ has joined #ruby
shock_one has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
Arnvald has joined #ruby
Bloomer has joined #ruby
ibouvousaime has joined #ruby
marr has joined #ruby
shock_one has joined #ruby
rikai has joined #ruby
<shevy> *emostrated
<Ox0dea> Is that the process of having one's emotions surgically removed?
devoldmx has quit [Remote host closed the connection]
<ja> sounds unpleasant
nfk|laptop has quit [Ping timeout: 250 seconds]
<shevy> emocakes cry when you slice them
<Ox0dea> What is an emocake?
timonv has quit [Ping timeout: 250 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
<shevy> I was thinking the same about emostration!
Arnvald_ has joined #ruby
<Ox0dea> Diabolik: Status?
Arnvald has quit [Read error: Connection reset by peer]
<Ox0dea> shevy: But you just invented emostration?
baweaver has joined #ruby
<shevy> well we had demostrated before
<Diabolik> i got some help from SO
tk__ has quit [Quit: ばいばい]
<Diabolik> or rather reading stuff in python
<Diabolik> but it works
* Diabolik shrugs
<Ox0dea> Diabolik: And so nothing was learned. :<
<Diabolik> i know
<Diabolik> im pissed with myself
<Diabolik> genuinely
<Ox0dea> But you won!
n008f4g_ has joined #ruby
<Diabolik> not really
<Diabolik> LEARNING IS WINNING
<Diabolik> my blood pressure won i think
<Ox0dea> Fuck that noise. The tests passed, right?
<Ox0dea> That means you won. Well done.
<Diabolik> well i guess i learnt how to translate from python
<Diabolik> which is something
<shevy> haha
<Diabolik> i did the next one without any help based on reading
<Diabolik> i had done previously
baweaver has quit [Ping timeout: 240 seconds]
<Diabolik> this isn't how i pictured spending my birthday weekend but
<Diabolik> meh
<Ox0dea> /part #therapy
<ja> naww, happy birthday weekend, Diabolik!
workmad3 has quit [Ping timeout: 256 seconds]
hxegon has joined #ruby
<Diabolik> lol thanks Ox0dea
duckpuppy has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
Arnvald_ has quit [Read error: Connection reset by peer]
txdv_ has quit [Ping timeout: 272 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
jgt1 has joined #ruby
stevenxl has joined #ruby
nfk|laptop has joined #ruby
stannard has quit [Remote host closed the connection]
govg has quit [Ping timeout: 272 seconds]
jdm_ has joined #ruby
govg has joined #ruby
RegulationD has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
jordanm has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdm has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
BrunoIpexy has joined #ruby
<BrunoIpexy> hello
<BrunoIpexy> im from brazil
<BrunoIpexy> i need help some question
<shevy> bom dia
thejamespinto has joined #ruby
<hxegon> BrunoIpexy: Hello! Just ask you question and anyone capable may chime in.
<BrunoIpexy> bom dia? brasileiro?
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
<stevenxl> exit
<stevenxl> woops
<stevenxl> that didn't work
<stevenxl> ;-)
<Ox0dea> Stay a while.
<shevy> don't get distracted BrunoIpexy :D
<stevenxl> haha - OK Ox0dea.
<BrunoIpexy> :D
sepp2k has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
bronson has quit [Ping timeout: 256 seconds]
<BrunoIpexy> The ruby rails have some gem of automatic form as the zendform the Zend?
<Ox0dea> ?rails BrunoIpexy
<ruboto> BrunoIpexy, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<BrunoIpexy> oh
<BrunoIpexy> tanku
<Ox0dea> Diabolik: You got pretty close with `((n1 % 10) ** n2) % 10` and then settled for cribbing some massively over-engineered Python solution. :'
<Ox0dea> I have no mouth and I must scream.
thejamespinto has quit [Ping timeout: 256 seconds]
skade has joined #ruby
<shevy> lol
BTRE has quit [Remote host closed the connection]
nfk|laptop has quit [Quit: yawn]
BTRE has joined #ruby
<BrunoIpexy> tanu, i'm now registred
<BrunoIpexy> tank, i'm now registred
<BrunoIpexy> ruboto, taks
aspire has joined #ruby
<BrunoIpexy> tanks
<jhass> ?justabot
<ruboto> I'm just a bot. You don't need to address me.
lkba has joined #ruby
<hxegon> bots need love too
<Diabolik> Ox0dea what's the best ruby way of doing it?
<adaedra> by not switching to python.
fantazo has joined #ruby
chouhoulis has joined #ruby
aryaching has joined #ruby
<Diabolik> sure but there was no way i could do it with my previous solution without hitting infinity
skade has quit [Quit: Computer has gone to sleep.]
<adaedra> Uh.
ibouvousaime has quit [Read error: Connection reset by peer]
pdoherty has joined #ruby
<shevy> bots need more tanks apparently
chouhoulis has quit [Ping timeout: 250 seconds]
<`derpy> /_oo_oo_\--
<shevy> lol
<shevy> that must have been you adaedra
<adaedra> mmh?
<adaedra> I don't ascii so well.
yilmaz_alican has joined #ruby
nocd has joined #ruby
jdelaney has joined #ruby
<Ox0dea> Diabolik: https://eval.in/484386
stevenxl has quit [Quit: leaving]
<Diabolik> why do the 4s come in?
<Ox0dea> Diabolik: Do you have jhass on ignore?
<Diabolik> no
stevenxl has joined #ruby
<Diabolik> the SO link?
<Ox0dea> Yeah.
<Ox0dea> The length of the units digit cycle is always 1, 2, or 4.
<Ox0dea> You *could* bother with finding the length of the cycle for a given n, but that's silly and unnecessary for this problem.
freerobby has joined #ruby
ibouvousaime has joined #ruby
yilmaz_alican has quit [Quit: yilmaz_alican]
freerobby has quit [Client Quit]
sucks has joined #ruby
_stu_ has quit [Quit: _stu_]
Wsewolod has joined #ruby
YankNYC has joined #ruby
dlitvak has joined #ruby
Arnvald has joined #ruby
devoldmx has joined #ruby
agit0 has joined #ruby
platzhirsch has joined #ruby
Hates_ has joined #ruby
<BrunoIpexy> quit
BrunoIpexy has quit [Quit: HydraIRC -> http://www.hydrairc.com <- IRC with a difference]
fcser has joined #ruby
Arnvald has quit [Ping timeout: 250 seconds]
<Ox0dea> "tanu", "tank", "taks", and "tanks"; you'd figure he'd've gotten it at least once.
WizJin has quit [Excess Flood]
devoldmx has quit [Ping timeout: 256 seconds]
<apeiros> Ox0dea: h stands for hard
jgt1 has quit [Ping timeout: 240 seconds]
tildes has quit [Ping timeout: 240 seconds]
<shevy> h stands for hopping!
zarubin has joined #ruby
WizJin has joined #ruby
codecop has quit [Remote host closed the connection]
<jhass> h stands for correct
<hxegon> horrect sounds like an urban dictionary word
<shevy> hexagon!
dravine_ has joined #ruby
<Ox0dea> pxeboot!
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrmatt_ has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
dravine has quit [Ping timeout: 260 seconds]
dravine_ is now known as dravine
duckpuppy has joined #ruby
Tessier-Ashpool has quit [Quit: leaving]
platzhirsch has quit [Ping timeout: 250 seconds]
govg has quit [Ping timeout: 256 seconds]
Tessier-Ashpool has joined #ruby
dlitvak has quit [Remote host closed the connection]
* hxegon looks up
<apeiros> shevy: hexaflexagon! (search that on youtube ;-D)
sigurding has quit [Quit: sigurding]
<hxegon> apeiros: I don't need to, vi hart is amazing
<apeiros> yupp, she totally is.
Hates_ has left #ruby [#ruby]
yardenbar has quit [Ping timeout: 240 seconds]
ePascoal has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
<ePascoal> Hi guys, im learning ruby on rails... I made a mistake generating a model using rails g model ...
<apeiros> ?rails ePascoal
<ruboto> ePascoal, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ePascoal> how can i re generate again?
imperator has joined #ruby
<imperator> good morning
<apeiros> moin imperator
<hxegon> morning imperator
<imperator> just looking at timeout stuff
<hxegon> ePascoal: look at apeiros's message
jdm__ has joined #ruby
<ePascoal> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ePascoal> oh ok!
<ePascoal> sorry
<imperator> wondering what the best way is to timeout an arbitrary block of code without using the timeout module
<hxegon> ePascoal: no problem, happens all the time :D
<ePascoal> thnks
<adaedra> hxegon: users tend not to see that it's a bot replying and don't really see the link between the ?message and the reply.
thejamespinto has joined #ruby
<apeiros> imperator: arbitrary: no silver bullets besides Timeout
* imperator looked at safe_timeout
<apeiros> note that there's now better tools to deal with timeouts downsides
<hxegon> adaedra: noted
jdm_ has quit [Ping timeout: 246 seconds]
thejamespinto has quit [Ping timeout: 256 seconds]
agit0 has quit [Quit: zzzZZZ….]
f00bar-32 has quit [Ping timeout: 250 seconds]
colegatron has quit [Ping timeout: 256 seconds]
f00bar-32 has joined #ruby
kaka__ has joined #ruby
Ishido has quit [Remote host closed the connection]
Tahada_Puto has joined #ruby
agit0 has joined #ruby
<Tahada_Puto> Hello everyone!
<Tahada_Puto> how to make a bot for dice site?
<jhass> with programming!
agit0 has quit [Client Quit]
<jhass> well, first thing to check is whether you're allowed to
stevenxl has quit [Ping timeout: 240 seconds]
agit0 has joined #ruby
<Tahada_Puto> jhass: they provide api for bots
Ishido has joined #ruby
dlitvak has joined #ruby
gaiada has quit [Ping timeout: 256 seconds]
<bean> jhass, then it sounds like it should be easy!
<bean> err Tahada_Puto
<jhass> indeed
<jhass> step 2: check on rubygems.org if somebody already wrote you a wrapper around their API
stevenxl has joined #ruby
<Tahada_Puto> jhass: no result
<jhass> step 3: decide on an HTTP client: net/http or https://www.ruby-toolbox.com/categories/http_clients
<Tahada_Puto> jhass: which is the most widely use?
chouhoulis has joined #ruby
<jhass> popularity shouldn't be your primary measure
A5101 has joined #ruby
agit0 has quit [Ping timeout: 272 seconds]
kalopsian has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
<Tahada_Puto> jhass: which is the natural and easy to use?
<jhass> that's rather subjective
edwinvdgraaf has joined #ruby
rgrmatt_ has quit [Remote host closed the connection]
govg has joined #ruby
<Tahada_Puto> jhass: I'm beginner. I need to know -_-
<jhass> Look at the docs/readmes for a couple and make up your own mind
nocd has left #ruby [#ruby]
chouhoulis has quit [Ping timeout: 256 seconds]
colegatron has joined #ruby
Tahada_Puto has quit [Quit: Page closed]
tvw has joined #ruby
kalopsian has quit [Ping timeout: 240 seconds]
imperator has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 240 seconds]
Bellthoven has joined #ruby
freerobby has joined #ruby
skade has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheBloke has quit [Read error: Connection reset by peer]
skade has quit [Client Quit]
TheBloke has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
skade has joined #ruby
bMalum has quit [Quit: bMalum]
Phage has left #ruby [#ruby]
Arnvald has joined #ruby
kaka__ has quit [Ping timeout: 256 seconds]
SCHAAP137 has joined #ruby
kalopsian has joined #ruby
aryaching has joined #ruby
Arnvald has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
kalopsian has quit [Ping timeout: 240 seconds]
rgrmatt has joined #ruby
jbrhbr has joined #ruby
blackjid has quit [Max SendQ exceeded]
user083 has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
blackjid has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
kaka__ has joined #ruby
rgrmatt has quit [Remote host closed the connection]
boxofrox has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
decoponio has quit [Quit: Leaving...]
Rickmasta has joined #ruby
_whitelogger_ has joined #ruby
pawnbox_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
vinleod has joined #ruby
edwinvdg_ has joined #ruby
deimos has joined #ruby
mroth_ has joined #ruby
ohcibi has joined #ruby
devoldmx has joined #ruby
c355e3b_ has joined #ruby
heftig has joined #ruby
Lloyd has joined #ruby
jxf has joined #ruby
MiracleBlue_ has joined #ruby
moloch has joined #ruby
thesheff17_ has joined #ruby
contradictioned has joined #ruby
tejasmanohar_ has joined #ruby
yaewa has joined #ruby
vdamewood has quit [Disconnected by services]
iamdevnul__ has joined #ruby
zemmihates_ has joined #ruby
vinleod is now known as vdamewood
johnpank has joined #ruby
jbrhbr1 has joined #ruby
kmckelvin has joined #ruby
zrl has joined #ruby
Eleeleth_ has joined #ruby
Bloomer_ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
ramblinpeck_ has joined #ruby
cstrahan_ has joined #ruby
PlasmaStar has joined #ruby
zeljkof_ has joined #ruby
camilasan has joined #ruby
benlakey_ has joined #ruby
DroidBur_ has joined #ruby
thejamespinto has quit [Ping timeout: 256 seconds]
sideshowcoder_ has joined #ruby
jdm_ has joined #ruby
Downtime has joined #ruby
chandlerbing has joined #ruby
Jackneill_ has joined #ruby
pandaant_ has joined #ruby
tessier-1shpool has joined #ruby
x0f_ has joined #ruby
sumark_ has joined #ruby
AdamMeghji_ has joined #ruby
spidermario has joined #ruby
kadoppe_ has joined #ruby
hackeron_ has joined #ruby
bestie has quit [Ping timeout: 240 seconds]
adambeynon has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Ping timeout: 240 seconds]
heyimwill has quit [Ping timeout: 240 seconds]
_whitelogger has quit [Ping timeout: 240 seconds]
tvw has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 240 seconds]
crayfishx has quit [Ping timeout: 240 seconds]
zly has quit [Ping timeout: 240 seconds]
danneu has quit [Ping timeout: 240 seconds]
c355e3b has quit [Ping timeout: 240 seconds]
zeljkof has quit [Ping timeout: 240 seconds]
AdamMeghji has quit [Ping timeout: 240 seconds]
cstrahan has quit [Ping timeout: 240 seconds]
soahccc_ has quit [Ping timeout: 240 seconds]
tejasmanohar has quit [Ping timeout: 240 seconds]
artmann_ has quit [Ping timeout: 240 seconds]
LoganG has quit [Ping timeout: 240 seconds]
zapata has quit [Ping timeout: 240 seconds]
WizJin has quit [Ping timeout: 240 seconds]
InvGhost has quit [Ping timeout: 240 seconds]
Mr_Pancake has quit [Ping timeout: 240 seconds]
arian0n has quit [Ping timeout: 240 seconds]
krasnus has quit [Ping timeout: 240 seconds]
Trieste has quit [Ping timeout: 240 seconds]
Hobbyboy has quit [Ping timeout: 240 seconds]
heftig_ has quit [Ping timeout: 240 seconds]
Uptime has quit [Ping timeout: 240 seconds]
SuperTux88 has quit [Ping timeout: 240 seconds]
zemmihates has quit [Ping timeout: 240 seconds]
Guest85414______ has quit [Ping timeout: 240 seconds]
mroth has quit [Ping timeout: 240 seconds]
bauruine has quit [Ping timeout: 240 seconds]
[BNC]BLuEGoD has quit [Ping timeout: 240 seconds]
camilasann has quit [Ping timeout: 240 seconds]
dr_Poggs has quit [Ping timeout: 240 seconds]
ohcibi_ has quit [Ping timeout: 240 seconds]
contradictioned_ has quit [Ping timeout: 240 seconds]
phrozen77 has quit [Ping timeout: 240 seconds]
Eleeleth has quit [Ping timeout: 240 seconds]
sideshowcoder has quit [Ping timeout: 240 seconds]
kadoppe has quit [Ping timeout: 240 seconds]
M-Kodo has quit [Ping timeout: 240 seconds]
x0f has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
jpank has quit [Ping timeout: 240 seconds]
benlakey has quit [Ping timeout: 240 seconds]
machty has quit [Ping timeout: 240 seconds]
chandlerbing_ has quit [Ping timeout: 240 seconds]
kirun has quit [Ping timeout: 240 seconds]
ramblinpeck has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 240 seconds]
sdothum has quit [Ping timeout: 240 seconds]
darkxploit has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 240 seconds]
bean has quit [Ping timeout: 240 seconds]
gremax has quit [Ping timeout: 240 seconds]
epitron has quit [Ping timeout: 240 seconds]
Tessier-Ashpool has quit [Ping timeout: 240 seconds]
kobain has quit [Ping timeout: 240 seconds]
tlaxkit has quit [Ping timeout: 240 seconds]
pandaant has quit [Ping timeout: 240 seconds]
Jackneill has quit [Ping timeout: 240 seconds]
dellavg has quit [Ping timeout: 240 seconds]
sumark has quit [Ping timeout: 240 seconds]
jbrhbr has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
hackeron has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 240 seconds]
moei has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
Bloomer has quit [Ping timeout: 240 seconds]
LoganG_ is now known as LoganG
Guest85414______ has joined #ruby
sideshowcoder_ is now known as sideshowcoder
thesheff17_ is now known as thesheff17
c355e3b_ is now known as c355e3b
Mr_Pancake has joined #ruby
AdamMeghji_ is now known as AdamMeghji
atomical has joined #ruby
Jackneill_ has quit [Max SendQ exceeded]
cstrahan_ is now known as cstrahan
benlakey_ is now known as benlakey
zeljkof_ is now known as zeljkof
BLuEGoD has joined #ruby
machty_ has joined #ruby
mroth_ is now known as mroth
zemmihates_ is now known as zemmihates
Eleeleth_ is now known as Eleeleth
tejasmanohar_ is now known as tejasmanohar
kaka__ has quit [Quit: Leaving]
M-Kodo has joined #ruby
jdm__ has quit [Ping timeout: 246 seconds]
shock_one has quit [Remote host closed the connection]
ramblinpeck_ is now known as ramblinpeck
fantazo has quit [Ping timeout: 256 seconds]
gix has joined #ruby
braincrash has joined #ruby
juddey has joined #ruby
shock_one has joined #ruby
tomaw_ has joined #ruby
bronson has joined #ruby
tomaw has quit [Disconnected by services]
tomaw_ is now known as tomaw
machty_ is now known as machty
colegatron has joined #ruby
Fridtjof has quit [Ping timeout: 245 seconds]
kirun_ has joined #ruby
marienz_ has joined #ruby
DroidBurgundy has quit [Ping timeout: 240 seconds]
kirun has quit [Ping timeout: 240 seconds]
marienz has quit [Ping timeout: 600 seconds]
tlaxkit has joined #ruby
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
bestie has joined #ruby
blackjid has quit [Max SendQ exceeded]
firstdayonthejob has joined #ruby
govg has quit [Ping timeout: 256 seconds]
kalopsian has quit [Ping timeout: 250 seconds]
danneu has joined #ruby
blackjid has joined #ruby
superman_ has joined #ruby
adambeynon has joined #ruby
adambeynon has quit [Changing host]
adambeynon has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 256 seconds]
Fridtjof has joined #ruby
boxofrox has joined #ruby
tlaxkit has quit [Ping timeout: 240 seconds]
kobain has quit [Ping timeout: 240 seconds]
darkxploit has joined #ruby
djbkd has joined #ruby
n008f4g_ has joined #ruby
sdothum has joined #ruby
kobain has joined #ruby
tlaxkit has joined #ruby
WizJin has joined #ruby
bMalum has joined #ruby
Blaguvest has joined #ruby
<stevenxl> Ox0dea: I gotta move from this cafe. Getting dirty looks.
<stevenxl> Just letting you know so you won't get worried.
<stevenxl> ;)
chouhoulis has joined #ruby
<Ox0dea> stevenxl: Alas. Well, thanks for hangin' out.
ePascoal has quit [Ping timeout: 252 seconds]
djbkd has quit [Quit: My people need me...]
govg has joined #ruby
rgrmatt has joined #ruby
stevenxl has quit [Ping timeout: 272 seconds]
Platonides has quit [Remote host closed the connection]
bauruine has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
rgrmatt has quit [Remote host closed the connection]
yardenbar has joined #ruby
tomphp has joined #ruby
aptrcki has joined #ruby
epitron has joined #ruby
dellavg has joined #ruby
chouhoulis has joined #ruby
tomphp has quit [Max SendQ exceeded]
<aptrcki> anyone mind me picking there brain for a minute?
Bloomer_ has quit [Remote host closed the connection]
baweaver has joined #ruby
<Ox0dea> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
kiez0rd has joined #ruby
Wsewolod has quit [Ping timeout: 240 seconds]
zerowaitstate has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
<aptrcki> gotcha. so I'd like to know if it's possible to make an object that can hold a block that can be executed on demand, similar to the call method
crayfishx has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
freerobby has quit [Quit: Leaving.]
stevenxl has joined #ruby
Wsewolod has joined #ruby
vdamewood has quit [Quit: Life beckons.]
ruid has joined #ruby
ruid has joined #ruby
krobzaur has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<Ox0dea> aptrcki: Maybe you just want a Proc?
<Ox0dea> >> p = proc { 1 }; [p.call, p.call, p.call]
<ruboto> Ox0dea # => [1, 1, 1] (https://eval.in/484483)
<havenwood> >> stabby = ->{ 1 }; [stabby.call, stabby.call, stabby.call]
<ruboto> havenwood # => [1, 1, 1] (https://eval.in/484484)
<aptrcki> I considered that, but doesn't a proc end the process as soon as the block is finished executing?
<Ox0dea> No.
<Ox0dea> A Proc is essentially just a block in value form.
stevenxl has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
last_staff has quit [Client Quit]
<havenwood> aptrcki: Try it in IRB or Pry.
<Ox0dea> aptrcki: You might be conflating processes and termination with methods and return semantics?
<aptrcki> Will do, thanks haven and Ox0dea :)
<aptrcki> Probably, because I was told the proc doesn't return control
<Ox0dea> `return` in a Proc does return control, but to the caller, not the OS.
<Ox0dea> That's usually not what you want, and why `lambda` has different semantics on that count.
<aptrcki> Hah. That sounds like its exactly what Im looking for
<aptrcki> go figure
FooMunki has quit [Quit: FooMunki]
Bellthoven has quit []
iateadonut has quit [Quit: Leaving.]
gremax has joined #ruby
<shevy> anyone playing around with frozen strings yet?
<adaedra> Frozen strings have existed for some time now.
SCHAAP137 has quit [Ping timeout: 250 seconds]
<Ox0dea> >> {'a' => 1}.keys[0].frozen?
<ruboto> Ox0dea # => true (https://eval.in/484486)
kalopsian has joined #ruby
JuckFews has joined #ruby
<Ox0dea> Meant to prefix that with "19".
FooMunki has joined #ruby
<JuckFews> what is "19"?
tlaxkit has quit [Quit: ¡Hasta luego!]
sepp2k has quit [Read error: Connection reset by peer]
<adaedra> !ban JuckFews !P Unacceptable nick
JuckFews was kicked from #ruby by ChanServ [Banned: Unacceptable nick]
tildes has joined #ruby
thejamespinto has joined #ruby
codecop has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
stannard has joined #ruby
tomphp has joined #ruby
thejamespinto has quit [Ping timeout: 256 seconds]
kalopsian has quit [Read error: Connection reset by peer]
kalopsian has joined #ruby
duckpuppy has joined #ruby
thejamespinto has joined #ruby
juddey has quit [Ping timeout: 272 seconds]
WizJin has quit [Excess Flood]
woiers has joined #ruby
woiers has left #ruby [#ruby]
synthroid has quit []
duckpuppy has quit [Ping timeout: 272 seconds]
kalopsian has quit [Ping timeout: 240 seconds]
jdm has joined #ruby
SCHAAP137 has joined #ruby
yardenbar has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
zerowaitstate has quit [Quit: Lost terminal]
aptrcki has left #ruby [#ruby]
jessemcgilallen has joined #ruby
jdm_ has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
minimalism has joined #ruby
cjk101010 has joined #ruby
dfinninger has joined #ruby
soahccc has joined #ruby
drPoggs has joined #ruby
Trieste has joined #ruby
julian-delphiki has quit [Changing host]
julian-delphiki has joined #ruby
ruid has quit [Ping timeout: 240 seconds]
Hobbyboy has joined #ruby
SuperTux88 has joined #ruby
sucks has quit [Ping timeout: 272 seconds]
symm- has joined #ruby
Shy has joined #ruby
Shy is now known as Guest68607
tildes has quit [Ping timeout: 256 seconds]
<shevy> hmm
dfinninger has quit [Ping timeout: 272 seconds]
Guest68607 has quit [Client Quit]
akem has quit [Remote host closed the connection]
<blub> hi shevy
iamvery has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> hi blub
<blub> hi ox0dea
zapata has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
spt0 has quit [*.net *.split]
DexterLB has quit [*.net *.split]
skakri has quit [*.net *.split]
flughafen has quit [*.net *.split]
DEac- has quit [*.net *.split]
sparr has quit [*.net *.split]
gf3 has quit [*.net *.split]
bier has quit [*.net *.split]
rcs_ has quit [*.net *.split]
heinrich5991 has quit [*.net *.split]
funnel has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
AustinMatherne has quit [*.net *.split]
nlsun has quit [*.net *.split]
xxneolithicxx has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
Muz has quit [*.net *.split]
absolutejam has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
riceandbeans has quit [*.net *.split]
Keltia has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
ruboto has quit [*.net *.split]
segy has quit [*.net *.split]
yasu has quit [*.net *.split]
j2k has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
moua has quit [*.net *.split]
rdema has quit [*.net *.split]
saltsa has quit [*.net *.split]
lianj has quit [*.net *.split]
noodle has quit [*.net *.split]
lnx has quit [*.net *.split]
ja has quit [*.net *.split]
groundnuty has quit [*.net *.split]
genpaku has quit [*.net *.split]
xybre has quit [*.net *.split]
KramerC has quit [*.net *.split]
beagles has quit [*.net *.split]
sts__ has quit [*.net *.split]
bhaak has quit [*.net *.split]
utkarsh_ has quit [*.net *.split]
Radar has quit [*.net *.split]
ekem has quit [*.net *.split]
dualbus has quit [*.net *.split]
veloutin has quit [*.net *.split]
\13k_ has quit [*.net *.split]
uxp has quit [*.net *.split]
DefV_ has quit [*.net *.split]
janelleb has quit [*.net *.split]
Eising has quit [*.net *.split]
tokik has quit [*.net *.split]
rfi_ has quit [*.net *.split]
ss_ss_ has quit [*.net *.split]
wlanboy_ has quit [*.net *.split]
Antiarc has quit [*.net *.split]
ericwood_ has quit [*.net *.split]
fold3 has quit [*.net *.split]
izzol has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
sunya7a_ has quit [*.net *.split]
mduca_ has quit [*.net *.split]
M-Technic has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
OmegaA_ has quit [*.net *.split]
ccooke has quit [*.net *.split]
jidar has quit [*.net *.split]
low-profile has quit [*.net *.split]
exceion_ has quit [*.net *.split]
iDavid has quit [*.net *.split]
peterhu has quit [*.net *.split]
sung has quit [*.net *.split]
slash_nick has quit [*.net *.split]
DylanJ has quit [*.net *.split]
z4ph0d has quit [*.net *.split]
ex0ns has quit [*.net *.split]
nitrix has quit [*.net *.split]
moredhel has quit [*.net *.split]
BaNzounet has quit [*.net *.split]
thomas has quit [*.net *.split]
tomaw has quit [*.net *.split]
sjohnsen has quit [*.net *.split]
torpig has quit [*.net *.split]
Insti has quit [*.net *.split]
agentmeerkat has quit [*.net *.split]
monoprotic has quit [*.net *.split]
kalleth has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
mhenrixon_ has quit [*.net *.split]
digneety has quit [*.net *.split]
kloeri has quit [*.net *.split]
ereslibre has quit [*.net *.split]
freeze has quit [*.net *.split]
philtr has quit [*.net *.split]
Bish has quit [*.net *.split]
matti has quit [*.net *.split]
chris2 has quit [*.net *.split]
Freeaqingme has quit [*.net *.split]
rubber has quit [*.net *.split]
Helheim has quit [*.net *.split]
braidn has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
rclements has quit [*.net *.split]
sarlalian has quit [*.net *.split]
ltp has quit [*.net *.split]
jokester has quit [*.net *.split]
scroff has quit [*.net *.split]
BraddPitt has quit [*.net *.split]
oddalot has quit [*.net *.split]
danoo_ has quit [*.net *.split]
majjoha_ has quit [*.net *.split]
kramsee has quit [*.net *.split]
xnr has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
bytecrawler has quit [*.net *.split]
gilesww has quit [*.net *.split]
bascht has quit [*.net *.split]
kent\n has quit [*.net *.split]
alol has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
xsdg has quit [*.net *.split]
mosez has quit [*.net *.split]
gamache has quit [*.net *.split]
jericon has quit [*.net *.split]
pl1ght has quit [*.net *.split]
certainty has quit [*.net *.split]
conrfrmn has quit [*.net *.split]
jtperreault has quit [*.net *.split]
suffice has quit [*.net *.split]
rmrrn has quit [*.net *.split]
sugardrunk has quit [*.net *.split]
TTilus has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
Guest50975 has quit [*.net *.split]
ZYPP has quit [*.net *.split]
stephenh has quit [*.net *.split]
ironcamel has quit [*.net *.split]
rethi has quit [*.net *.split]
vandemar has quit [*.net *.split]
Vile` has quit [*.net *.split]
flori has quit [*.net *.split]
VladGh has quit [*.net *.split]
Ray` has quit [*.net *.split]
Drakevr has quit [*.net *.split]
ozzloy has quit [*.net *.split]
euoia has quit [*.net *.split]
boshhead has quit [*.net *.split]
hightower4 has quit [*.net *.split]
[ace] has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
Koshian has quit [*.net *.split]
fluchtreflex has quit [*.net *.split]
existensil has joined #ruby
tomaw has joined #ruby
spt0 has joined #ruby
riceandbeans has joined #ruby
jtperreault has joined #ruby
DexterLB has joined #ruby
sjohnsen has joined #ruby
skakri has joined #ruby
torpig has joined #ruby
flughafen has joined #ruby
Insti has joined #ruby
agentmeerkat has joined #ruby
DEac- has joined #ruby
sparr has joined #ruby
gf3 has joined #ruby
monoprotic has joined #ruby
kalleth has joined #ruby
bier has joined #ruby
Sp4rKy has joined #ruby
funnel has joined #ruby
rcs_ has joined #ruby
mhenrixon_ has joined #ruby
heinrich5991 has joined #ruby
justinmcp_ has joined #ruby
digneety has joined #ruby
AustinMatherne has joined #ruby
vandemar has joined #ruby
nlsun has joined #ruby
kloeri has joined #ruby
xxneolithicxx has joined #ruby
SirCmpwn has joined #ruby
Muz has joined #ruby
absolutejam has joined #ruby
ereslibre has joined #ruby
moua has joined #ruby
MissionCritical has joined #ruby
freeze has joined #ruby
Keltia has joined #ruby
philtr has joined #ruby
ELLIOTTCABLE has joined #ruby
Bish has joined #ruby
ltp has joined #ruby
matti has joined #ruby
chris2 has joined #ruby
Freeaqingme has joined #ruby
ruboto has joined #ruby
segy has joined #ruby
thomas has joined #ruby
BaNzounet has joined #ruby
moredhel has joined #ruby
nitrix has joined #ruby
ex0ns has joined #ruby
z4ph0d has joined #ruby
DylanJ has joined #ruby
slash_nick has joined #ruby
sung has joined #ruby
peterhu has joined #ruby
iDavid has joined #ruby
exceion_ has joined #ruby
low-profile has joined #ruby
jidar has joined #ruby
ccooke has joined #ruby
OmegaA_ has joined #ruby
kiki_lamb has joined #ruby
M-Technic has joined #ruby
mduca_ has joined #ruby
sunya7a_ has joined #ruby
Gnubie_ has joined #ruby
fold3 has joined #ruby
izzol has joined #ruby
ericwood_ has joined #ruby
Antiarc has joined #ruby
wlanboy_ has joined #ruby
ss_ss_ has joined #ruby
rfi_ has joined #ruby
tokik has joined #ruby
Eising has joined #ruby
janelleb has joined #ruby
DefV_ has joined #ruby
uxp has joined #ruby
\13k_ has joined #ruby
veloutin has joined #ruby
dualbus has joined #ruby
ekem has joined #ruby
Radar has joined #ruby
utkarsh_ has joined #ruby
bhaak has joined #ruby
sts__ has joined #ruby
beagles has joined #ruby
KramerC has joined #ruby
xybre has joined #ruby
genpaku has joined #ruby
groundnuty has joined #ruby
ja has joined #ruby
lnx has joined #ruby
noodle has joined #ruby
lianj has joined #ruby
saltsa has joined #ruby
rdema has joined #ruby
queequeg1 has joined #ruby
j2k has joined #ruby
yasu has joined #ruby
rubber has joined #ruby
Helheim has joined #ruby
braidn has joined #ruby
connor_goodwolf has joined #ruby
rclements has joined #ruby
sarlalian has joined #ruby
jokester has joined #ruby
scroff has joined #ruby
BraddPitt has joined #ruby
oddalot has joined #ruby
danoo_ has joined #ruby
majjoha_ has joined #ruby
kramsee has joined #ruby
xnr has joined #ruby
PaulePanter has joined #ruby
gilesww has joined #ruby
bytecrawler has joined #ruby
bascht has joined #ruby
kent\n has joined #ruby
alol has joined #ruby
yeltzooo has joined #ruby
xsdg has joined #ruby
mosez has joined #ruby
gamache has joined #ruby
jericon has joined #ruby
pl1ght has joined #ruby
certainty has joined #ruby
conrfrmn has joined #ruby
suffice has joined #ruby
rmrrn has joined #ruby
sugardrunk has joined #ruby
coffeejunk has joined #ruby
TTilus has joined #ruby
Guest50975 has joined #ruby
ZYPP has joined #ruby
stephenh has joined #ruby
ironcamel has joined #ruby
rethi has joined #ruby
Vile` has joined #ruby
flori has joined #ruby
VladGh has joined #ruby
Ray` has joined #ruby
Drakevr has joined #ruby
ozzloy has joined #ruby
euoia has joined #ruby
boshhead has joined #ruby
hightower4 has joined #ruby
Skelz0r has joined #ruby
[ace] has joined #ruby
Koshian has joined #ruby
fluchtreflex has joined #ruby
Freeaqingme has quit [Max SendQ exceeded]
Helheim has quit [Max SendQ exceeded]
Vile` has quit [Max SendQ exceeded]
doodleha_ has joined #ruby
ruboto has quit [Excess Flood]
atomical has quit [Ping timeout: 256 seconds]
<shevy> yo blub
symbol has joined #ruby
aclearman037 has joined #ruby
moeabdol has joined #ruby
Helheim has joined #ruby
tokik has quit [Max SendQ exceeded]
genpaku has quit [Max SendQ exceeded]
MissionCritical has quit [Max SendQ exceeded]
yasu has quit [Excess Flood]
phrozen77 has joined #ruby
heinrich5991 has quit [Excess Flood]
solocshaw has quit [Ping timeout: 240 seconds]
tokik has joined #ruby
DeXterbed has joined #ruby
genpaku has joined #ruby
tildes has joined #ruby
yasu has joined #ruby
Xentil has quit [Ping timeout: 256 seconds]
gbailey has quit [Ping timeout: 270 seconds]
ebertx has quit [Ping timeout: 270 seconds]
ajb has quit [Ping timeout: 270 seconds]
joaomdmoura__ has quit [Ping timeout: 272 seconds]
icey has quit [Ping timeout: 272 seconds]
RTG` has quit [Remote host closed the connection]
ruboto_ has joined #ruby
sjohnsen has quit [Ping timeout: 245 seconds]
symbol has quit [Client Quit]
solocshaw has joined #ruby
wjimenez5271 has quit [Ping timeout: 272 seconds]
Vile` has joined #ruby
joaomdmoura__ has joined #ruby
gigetoo has quit [Remote host closed the connection]
heinrich5991 has joined #ruby
sami has quit [Ping timeout: 272 seconds]
cyb3rspy has quit [Ping timeout: 272 seconds]
gigetoo has joined #ruby
sami has joined #ruby
cyb3rspy has joined #ruby
ajb has joined #ruby
Xentil has joined #ruby
RTG` has joined #ruby
ebertx has joined #ruby
wjimenez5271 has joined #ruby
weemsledeux has joined #ruby
gbailey has joined #ruby
aclearman037 has quit [Quit: Textual IRC Client: www.textualapp.com]
Wsewolod has quit [Ping timeout: 240 seconds]
<hxegon> adaedra: you should have banned him for the question
<shevy> lol
weemsledeux has quit [Max SendQ exceeded]
sjohnsen has joined #ruby
Wsewolod has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
DavidDudson has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
MissionCritical has joined #ruby
shock_one has quit [Remote host closed the connection]
ap4y has joined #ruby
tildes has quit [Ping timeout: 272 seconds]
atomical has joined #ruby
iamvery has joined #ruby
sucks has joined #ruby
nateberkopec has joined #ruby
doodleha_ has quit [Remote host closed the connection]
devbug has joined #ruby
drptbl has joined #ruby
TheBloke has quit [Read error: Connection reset by peer]
TheBloke has joined #ruby
<jhass> poll: Do you think the acme-client gem violates namespace conventions by also using the Acme namespace for other constants besides Acme::Client, for example Acme::Certificate?
tomdp has left #ruby ["Leaving"]
bMalum has quit [Quit: bMalum]
tomdp has joined #ruby
hxegon has quit [Read error: Connection reset by peer]
<pontiki> i think so
underplank has joined #ruby
ornerymoose has joined #ruby
cats is now known as santacat
<pontiki> are there any other gems staking a claim in the Acme namespace?
howdoico1 has joined #ruby
<jhass> not yet, at least nothing serious (and iirc the other acme* gems use ACME), but I can easily picture that will change given ACME is the protocol used by Let's encrypt
<jhass> ah well, https://github.com/smathy/acme is lowercase too
heyimwill has joined #ruby
<pontiki> seems like they're poaching the space
Ishido has quit [Read error: Connection reset by peer]
Ishido has joined #ruby
duckpuppy has joined #ruby
yardenbar has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
Jardayn has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
trwyth has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
jdm_ has joined #ruby
ohaibbq has joined #ruby
scripore has joined #ruby
djbkd has joined #ruby
jdm has quit [Ping timeout: 264 seconds]
krasnus has joined #ruby
FussyPuck has joined #ruby
FussyPuck was banned on #ruby by ChanServ [*!*@gateway/web/freenode/ip.50.31.252.86]
FussyPuck was kicked from #ruby by ChanServ [Banned: Unacceptable nick]
chouhoulis has quit []
reaVer has quit [Quit: Lost terminal]
underplank has quit [Quit: underplank]
<shevy> ruby simply needs more sophisticated ways to handle projects that use the same namespace
reaVer has joined #ruby
bronson has joined #ruby
ruid has joined #ruby
Bugboy1028 has quit [Max SendQ exceeded]
Bugboy1028 has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 256 seconds]
<pontiki> jhass: still looking at the acme-client, this is egregious poaching: https://github.com/unixcharles/acme-client/blob/master/lib/acme/error.rb
<jhass> yeah, I'm going to open an issue to discuss it I think
chouhoulis has joined #ruby
stevenxl has joined #ruby
leedleLoo has joined #ruby
gluec_ has quit [Ping timeout: 240 seconds]
jdm_ has quit [Quit: Leaving]
trwyth has quit [Read error: Connection reset by peer]
stevenxl has left #ruby [#ruby]
<leedleLoo> I'm trying to write a ruby extension, but can't find the official documentation for the ruby C api. Does anyone know where it is?
lkba has quit [Remote host closed the connection]
<jhass> is there anything beyond README.ext by now?
zarubin has joined #ruby
stannard has quit [Remote host closed the connection]
<leedleLoo> Wonderful, thank you
rgrmatt has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
f00bar-32 has quit [Ping timeout: 240 seconds]
darkf has quit [Quit: Leaving]
tomphp has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
ruid has quit [Ping timeout: 240 seconds]
scripore has quit [Quit: This computer has gone to sleep]
s00pcan_ has quit [Remote host closed the connection]
kalopsian has joined #ruby
DexterLB has joined #ruby
leedleLoo has left #ruby [#ruby]
<apeiros> !fact add extensions for native extensions, read https://github.com/ruby/ruby/blob/trunk/doc/extension.rdoc and http://ruby-doc.com/docs/ProgrammingRuby/html/ext_ruby.html (the latter is slightly out of date, but much still applies)
<ruboto_> apeiros, I will remember that extensions is for native extensions, read https://github.com/ruby/ruby/blob/trunk/doc/extension.rdoc and http://ruby-doc.com/docs/ProgrammingRuby/html/ext_ruby.html (the latter is slightly out of date, but much still applies)
nfk|laptop has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> one day ruboto_ will have all our knowledge
Azure has quit [Quit: Oops.]
dh64 has joined #ruby
<apeiros> that's when he'll start taking over the world
Ishido has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
jessemcgilallen has joined #ruby
akem has joined #ruby
Azure has joined #ruby
scripore has joined #ruby
DoYouKnow has quit [Changing host]
DoYouKnow has joined #ruby
DoYouKnow has joined #ruby
<shevy> skynet - led by ruboto_ swarm
atumzin has quit [Read error: Connection reset by peer]
rgrmatt has quit [Remote host closed the connection]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
shock_one has joined #ruby
otherj has joined #ruby
f00bar-32 has joined #ruby
framling has joined #ruby
otherj has quit [Client Quit]
codecop has quit [Remote host closed the connection]
atumzin has quit [Read error: Connection reset by peer]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
hxegon has joined #ruby
zarubin has quit []
<adaedra> ruboto_: you're all dressed up with this underscore (cc apeiros)
DeXterbed has quit [Ping timeout: 250 seconds]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
rgrmatt has joined #ruby
atomical has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Coraline has quit [Ping timeout: 240 seconds]
atomical has joined #ruby
Coraline has joined #ruby
rgrmatt has quit [Remote host closed the connection]
blowmage has quit [Ping timeout: 260 seconds]
rgrmatt has joined #ruby
maxmanders has quit [Ping timeout: 260 seconds]
alexblom has quit [Ping timeout: 260 seconds]
clamstar has quit [Ping timeout: 260 seconds]
sirecote has quit [Ping timeout: 260 seconds]
vF3hNGxc47h8 has joined #ruby
duckpuppy has joined #ruby
atomical has quit [Max SendQ exceeded]
marienz_ has quit [Ping timeout: 600 seconds]
Wsewolod has quit [Ping timeout: 240 seconds]
sirecote has joined #ruby
ruid has quit [Ping timeout: 250 seconds]
alexblom has joined #ruby
maxmanders has joined #ruby
blowmage has joined #ruby
jgt1 has joined #ruby
jbrhbr1 has quit [Quit: Leaving.]
duckpuppy has quit [Ping timeout: 240 seconds]
rgrmatt has quit [Remote host closed the connection]
blowmage has quit [Ping timeout: 272 seconds]
clamstar has joined #ruby
atomical has joined #ruby
blowmage has joined #ruby
rgrmatt has joined #ruby
Arnvald has joined #ruby
DeXterbed has joined #ruby
zarubin has joined #ruby
zarubin has quit [Client Quit]
rgrmatt has quit [Remote host closed the connection]
Wsewolod has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
chouhoulis has quit []
spidermario is now known as spider-mario
atomical has quit [Max SendQ exceeded]
bbert has joined #ruby
Arnvald has quit [Ping timeout: 250 seconds]
dopie has quit [Read error: No route to host]
rgrmatt has joined #ruby
<zacts> are there any good Ruby music synth gems?
dfinninger has joined #ruby
<zacts> for live musical programming
dopie has joined #ruby
rgrmatt has quit [Remote host closed the connection]
<adaedra> Running gems installed for 2.2 with ruby 2.0? Great idea you have here, RubyMine.
rgrmatt has joined #ruby
blowmage has quit [Ping timeout: 250 seconds]
<bbert> Hi. C++ programmer here trying to get comfortable in Ruby. About programming with OO paradigms in Ruby, I keep seeing in the docs things like globally scoped variables. For example, the mutex defined on this page's example: http://ruby-doc.org/core-2.2.0/Mutex.html . Is this for brevity, or is it more idiomatic to actually do it this way in Ruby?
BTRRY has joined #ruby
<adaedra> For sample.
<adaedra> But note that you'll have to do some things at the top level, as there is no main function – the code at top-level is the one that runs at startup.
devbug_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BTRE has quit [Ping timeout: 272 seconds]
dfinninger has quit [Ping timeout: 256 seconds]
blowmage has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
atomical has joined #ruby
JDiPierro has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
rgrmatt has quit [Remote host closed the connection]
devbug has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
<jhass> bbert: it's mainly brevity, yes
rgrmatt has joined #ruby
lurch_ has quit [Quit: lurch_]
weemsledeux has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
jessemcgilallen has quit [Quit: jessemcgilallen]
aspire has quit [Quit: Leaving]
al2o3-cr has quit [Quit: WeeChat 1.3]
chouhoulis has joined #ruby
al2o3-cr has joined #ruby
stannard has joined #ruby
Xentil has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
JDiPierro has joined #ruby
workmad3 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
InvGhostt has quit [Ping timeout: 240 seconds]
rgrmatt has quit [Remote host closed the connection]
JDiPierro has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
<adaedra> mh, test failing because of rspec mocking getting in the way.
<bbert> jhass and adaedra: thanks. I thought as much. I suppose that it does make it more accessible at a glance, but I started to worry about the quality (from an OO perspective) of the code I'd run into.
rgrmatt has joined #ruby
tomphp has joined #ruby
<adaedra> bbert: usually, for short and quick code, you'll stay in the global scope. For larger project, you'll try to stuff things in classes/modules, and keep little in the top-level.
rgrmatt has quit [Remote host closed the connection]
Suntzu has quit [Ping timeout: 250 seconds]
rgrmatt has joined #ruby
vF3hNGxc47h8 has quit [Remote host closed the connection]
roshanavand has joined #ruby
<bbert> adaedra: that's similar to breaking components out into their own header and object files in C++. Keeps things logically separated and makes it easier to program to an interface/abstraction.
<adaedra> that's different.
devbug_ has joined #ruby
yfeldblum has joined #ruby
superman_ has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<adaedra> in C++, you'll keep declaration and implementation separate (the header and source). In Ruby, you cannot, as you cannot just declare something.
devbug has quit [Ping timeout: 250 seconds]
YankNYC has quit [Quit: Connection closed for inactivity]
ChameleonSix has joined #ruby
<bbert> adaedra: no, I get that. I'm just saying that by logically separating things, for instance in a module (that may live in another file), you steer yourself in the direction of interacting with that code through some designed manner, not simply changing it to suit your current needs
<ChameleonSix> Hello
<ChameleonSix> Can anyone help me
<adaedra> ?ask ChameleonSix
<ruboto_> ChameleonSix, Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<ChameleonSix> i got a bet with a friend
<ChameleonSix> i need to bypass admin.php login somehow
<ChameleonSix> found this
<adaedra> You're trying to hack websites?
<ChameleonSix> the problem is no one wants to help me
<TTilus> surprise!
<havenwood> ChameleonSix: PHP? Wrong channel.
<ChameleonSix> this is for educational purpose only
<ChameleonSix> i got permission to do it
<ChameleonSix> people on php are jerks
<TTilus> ChameleonSix: that's what they always say...
<adaedra> And we won't help you on PHP.
<ChameleonSix> why
<adaedra> On hacking either, mind.
colegatron has quit [Ping timeout: 256 seconds]
<ChameleonSix> hmm
<TTilus> hacking, yes, cracking into systems, no
<ChameleonSix> why not
<ChameleonSix> lol
<ChameleonSix> this isnt illegal
<havenwood> !kick ChameleonSix Ruby is the topic here.
ChameleonSix was kicked from #ruby by ruboto_ [Ruby is the topic here.]
<TTilus> ChameleonSix: there's a reaso why this is a _ruby_ channel (implies not a php channe)
houhoulis has joined #ruby
marienz has joined #ruby
<bbert> thank you ruboto_
<TTilus> ...and havenwood for pulling the strings
davedev2_ has joined #ruby
<adaedra> ?justabot bbert
<ruboto_> bbert, I'm just a bot. You don't need to address me.
Shidash has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 240 seconds]
<bbert> thank you anyway
<adaedra> :)
rodfersou has joined #ruby
<adaedra> TTilus: it looks like your keyboard ate some of your keystrokes.
krobzaur has quit [Ping timeout: 250 seconds]
akem has quit [Remote host closed the connection]
waka has joined #ruby
htmldrum has joined #ruby
<TTilus> adaedra: only one, that s/channe)/channel)/
<adaedra> TTilus: and reaso(n).
<TTilus> adaedra: ah
<adaedra> :)
ChameleonSix has joined #ruby
<ChameleonSix> ruby is the topic
<ChameleonSix> we can talk about metasploit
<ChameleonSix> written in ruby/
<adaedra> No, they have their own channel.
<jhass> ?metasploit ChameleonSix
<ruboto_> ChameleonSix, Please join #metasploit for help with it.
<havenwood> ChameleonSix: /join #metasploit
<ChameleonSix> Hmm
InvGhostt has joined #ruby
<ChameleonSix> Im banned and i didnt even join
<ChameleonSix> wtf
roshanavand has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> it probably bans unregistered users
roshanavand has joined #ruby
<jhass> /msg NickServ help
Shidash has joined #ruby
<ChameleonSix> im registerd
<jhass> you're not identified
<jhass> oh you are
<ChameleonSix> hmm
rgrmatt has quit [Remote host closed the connection]
<ChameleonSix> what is the problem
<jhass> ChameleonSix!*@* banned by wvu (~wvu@metasploit/wvu) on Fri, 11 Dec 2015 18:48:53
Asher has quit [Quit: Leaving.]
<jhass> stop telling bullshit
skcin7 has quit [Quit: Textual IRC Client: www.textualapp.com]
<ChameleonSix> hmm
davedev2_ has quit [Ping timeout: 250 seconds]
duckpuppy has joined #ruby
<TTilus> ChameleonSix: you need to sort out your stuff with #metasploit ops
ChameleonSix has left #ruby [#ruby]
<TTilus> we can't help you with that
roshanavand has quit [Ping timeout: 272 seconds]
SCHAAP137 has joined #ruby
davedev24 has joined #ruby
duckpuppy has quit [Ping timeout: 272 seconds]
Arnvald has joined #ruby
rgrmatt has joined #ruby
bklane has joined #ruby
Ikzi has quit [Remote host closed the connection]
BTRRY has quit [Quit: Leaving]
stannard has quit [Remote host closed the connection]
Arnvald has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
bbert has quit [Read error: Connection reset by peer]
yqt has joined #ruby
BTRE has joined #ruby
ChameleonSix has joined #ruby
<ChameleonSix> im very confused
<ChameleonSix> you offer ruby help?
zeroDivisible has quit [Quit: WeeChat 1.3]
<jhass> Yes we answer your questions with the Ruby programming language's syntax and standard library
Asher has joined #ruby
zeroDivisible has joined #ruby
Ikri has joined #ruby
<ChameleonSix> how do i use I/O in ruby
<ChameleonSix> and i cant make .exe from .rb
<adaedra> This was already discussed with you.
<jhass> I should clarify, we answer your questions after you've shown you've done basic research on them on your own
bronson has joined #ruby
<ChameleonSix> it was
<ChameleonSix> but how do you know
<jhass> that's is we provide clarifications upon other material you're using
<ChameleonSix> anyway seriously I/O i cant understand
<jhass> read a tutorial
<ChameleonSix> can you link me a good example
solocshaw has quit [Ping timeout: 250 seconds]
dfinninger has joined #ruby
<jhass> I don't have any at hand
<ChameleonSix> ok
<ChameleonSix> I got a few more questions
<ChameleonSix> How do i use ruby with html9
<ChameleonSix> html?
<jhass> Please ask less general and basic questions
<ChameleonSix> for example i want to make an online calculator in ruby
<ChameleonSix> lol
<jhass> what did you try so far?
myztic has left #ruby [#ruby]
<ChameleonSix> i used <script> for javascript
<ChameleonSix> idk for this
<ChameleonSix> hmm ruby on rails?
dlitvak has joined #ruby
User458764 has joined #ruby
<jhass> doesn't sound like you tried to use Ruby for this yet or made any research on the topic
Ilyes512 has joined #ruby
<shevy> jhass are you still using sublime as your main editor?
<jhass> yes
shock_one has joined #ruby
solocshaw has joined #ruby
<ChameleonSix> try atom
<ChameleonSix> lol
<ChameleonSix> i made a tons of programs
purplexed- has joined #ruby
purplexed- has quit [Changing host]
purplexed- has joined #ruby
<ChameleonSix> but idk how to use them or put them into my html
bronson has quit [Ping timeout: 256 seconds]
<ChameleonSix> hints?
<ChameleonSix> you said you can help me with ruby
bklane has quit [Ping timeout: 256 seconds]
dimik has joined #ruby
<shevy> ChameleonSix you need a hug
<adaedra> With precise questions, once you shown you did your research already, yes.
tenderlove has joined #ruby
wildlander has joined #ruby
nfk|laptop has quit [Quit: yawn]
<adaedra> I suggest you use this little website, it's all new and all good: http://www.google.com
dfinninger has quit [Ping timeout: 272 seconds]
<ChameleonSix> google is shit
<adaedra> I see.
<adaedra> Though, well used, it yields amazing results.
f00bar-32 has quit [Ping timeout: 272 seconds]
platzhirsch has joined #ruby
<ChameleonSix> lol
<ChameleonSix> i still dont know how to use ruby with html
dlitvak has quit [Ping timeout: 272 seconds]
<ChameleonSix> and i tried
<jhass> show your attempt
<jhass> ?gist
<ruboto_> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
shock_one has quit [Ping timeout: 240 seconds]
<ChameleonSix> ruboto you are smart
bklane has joined #ruby
<ChameleonSix> any hints?
<adaedra> ...
<shevy> now you made it ChameleonSix .... jhass does not believe that you have tried anything at all so far :(
<adaedra> shevy: funny, you're usually the first one to call fake.
<ChameleonSix> hmm
<ChameleonSix> you want me to make a program in ruby
<shevy> adaedra I am sure ChameleonSix will soon show some code
<ChameleonSix> ah that is the problem
<shevy> after all he said he tried it
<ChameleonSix> lol
<ChameleonSix> im on phone
<ChameleonSix> what code do you want
<ChameleonSix> loops ?
<ChameleonSix> functions?
<shevy> lol
<shevy> I want ALL THE CODE
<ChameleonSix> lol
<jhass> ChameleonSix: the one you want to ask a question about
<ChameleonSix> ah ok
<ChameleonSix> sec
<ChameleonSix> can i type it here
JDiPierro has quit [Remote host closed the connection]
<adaedra> Gist it
Liam` has joined #ruby
bklane has quit [Ping timeout: 250 seconds]
<ChameleonSix> gist:ded60ddf941f16ddcc23
<ChameleonSix> lol
<ChameleonSix> i am on a phone
<jhass> please post the link in your address bar
<ChameleonSix> and i need to code
<ChameleonSix> lol
<jhass> ChameleonSix: last warning, the next single line lol gets you kicked, the one after that muted for an hour
<ChameleonSix> ah ok
<ChameleonSix> sorry
<ChameleonSix> i didnt see any warnings
<adaedra> And what is the problem with this code?
<ChameleonSix> before
<jhass> ChameleonSix: and what's your question now?
<ChameleonSix> there is no problem
<ChameleonSix> i want to use it with html
<ChameleonSix> on a website
<ChameleonSix> in bod
<ChameleonSix> body
<jhass> do it
<ChameleonSix> how
<adaedra> ChameleonSix: you've been kicked from this place before for "lol" already.
<ChameleonSix> ah yes
<ChameleonSix> sorry for that
<shevy> you wrote a loop there
<ChameleonSix> i got a habbit
<jhass> ChameleonSix: also please write entire sentences on a single line, don't use enter three times in a row
<ChameleonSix> yeah
<ChameleonSix> why not
<ChameleonSix> it is better
<jhass> because it's annoying
<hxegon> ChameleonSix: it floods the page and makes the irc history hard to read
BTRE has quit [Ping timeout: 240 seconds]
<havenwood> ChameleonSix: Try: https://github.com/migrs/rack-server-pages
<havenwood> ChameleonSix: Or: https://jekyllrb.com
Rickmasta has joined #ruby
<ChameleonSix> you dont understand me
<ChameleonSix> i want to make a website that uses that ruby code
<ChameleonSix> how do i link them together
<shevy> ChameleonSix you can use .cgi
Cohedrin has joined #ruby
<ChameleonSix> like script source?
Ebok has joined #ruby
<shevy> what is script source
<havenwood> ChameleonSix: Look at my first link. Read!
<jhass> ChameleonSix: I don't believe you that you fully evaluated havenwood's suggestion in less than a minute, especially given that you're on a phone
<julian-delphiki> I think he means he wants to use ruby like you can use javascript.
<jhass> ChameleonSix: please stop wasting our time
<jhass> julian-delphiki: I think they don't know what they want because they didn't do any research yet
<julian-delphiki> also possible.
<shevy> julian-delphiki huh how weird
<havenwood> ERB
<shevy> but if he wants to do away with javascript in favour of ruby, I am all for it!
<ChameleonSix> it is easier with js
<shevy> the-browser-as-programming-environment
bklane has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
<ChameleonSix> anyway
dlitvak has joined #ruby
<ChameleonSix> i same things with ruby as with python
Freeaqingme has joined #ruby
<ChameleonSix> can do
bb010g has joined #ruby
<jhass> yes
<julian-delphiki> ChameleonSix, again, one line at a time please.
<shevy> on a phone
<shevy> you type like
<shevy> this
<adaedra> shevy: don't.
<adaedra> If the phone medium is not good enough to use IRC correctly, then wait to be in a better environment.
<jhass> in other words I don't care where your bad habit comes from, it doesn't excuse it
scripore has joined #ruby
crack__david has joined #ruby
ChameleonSix has quit [Ping timeout: 252 seconds]
<jhass> that should give us another week or three
<shevy> I think it'll give us perhaps two hours at best
<shevy> he will be back!
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<crack__david> hey, when i set rbenv global 2.1.4 should ruby -v show 2.1.4?
arooni has joined #ruby
<crack__david> because it shows me 1.9.3 :/
tenderlove has quit [Remote host closed the connection]
<hxegon> <ChameleonSix> HEY CAN YOU\nTEACH ME\n RUB\nY ON\nRAILS\n???
agent_white has joined #ruby
<jhass> crack__david: mmh, how strongly are you attached to rbenv? :P
m8 has quit [Quit: Sto andando via]
beast has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hxegon> crack__david: what does rbenv versions show
<crack__david> im not really sure. i just started today learning ruby and im setting up my development environment on ubuntu
saneax_AFK is now known as saneax
Cohedrin has joined #ruby
<crack__david> rbenv versions shows 2.1.4
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
<hxegon> crack__david: did you install that ruby version through rbenv?
<crack__david> yes
saneax is now known as Guest56608
tenderlove has joined #ruby
BTRE has joined #ruby
<jhass> who told you to go with rbenv?
<crack__david> a tutorial that i followed
stevenxl has joined #ruby
<jhass> damn bloggers
<hxegon> crack__david: have you tried 'rbenv rehash'?
<crack__david> im on elementaryos which is based on ubuntu
<hxegon> what's wrong with rbenv?
juddey has joined #ruby
monoprotic has quit [Remote host closed the connection]
<crack__david> yes i did rehash
monoprotic has joined #ruby
monoprotic has quit [Changing host]
monoprotic has joined #ruby
stevenxl has quit [Client Quit]
<crack__david> so any idea how i can fix that?:P
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> hxegon: what's right?
<hxegon> jhass: not overwriting cd.
<jhass> hxegon: chruby only does so optionally
dlitvak_ has joined #ruby
<hxegon> crack__david: did you add the rbenv stuff to your .bash_profile or .zshrc?
<crack__david> when i try to do bin/rake db:create db:migrate i get an error that i should update from 1.9.3 :/
kalopsian has quit [Ping timeout: 240 seconds]
<crack__david> no i think i didnt
<jhass> crack__david: can you run eval "$(rbenv init -)" and see if it works afterwards?
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
<crack__david> eval "$(rbenv init -)" doesnt give me any output
tenderlove has quit [Ping timeout: 250 seconds]
<jhass> that's okay
<jhass> but did it affect ruby -v ?
<hxegon> jhass, crack__david, you might have to export the .rbenv folder to your path too
<crack__david> oh nice
rodfersou has quit [Remote host closed the connection]
<crack__david> now it shows 2.1.4
<crack__david> lets see if bin/rake db:create db:migrate works now
<jhass> crack__david: then you missed out the step of adding that line to your .${SHELL}_profile or .${SHELL}rc
<hxegon> so to make those changes permanent, follow the top answer here https://stackoverflow.com/questions/24736204/rbenv-cant-change-global-ruby-version
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
<hxegon> crack__david: what jhass said
<crack__david> i c
<crack__david> wasnt in the tutorial :(
dionysus69 has quit [Ping timeout: 272 seconds]
<jhass> I repeat myself
<jhass> damn bloggers
<crack__david> :p
<hxegon> LURN RAILS IN 3O SECUNDS
dlitvak has quit [Ping timeout: 250 seconds]
pandaant_ has quit [Remote host closed the connection]
<crack__david> i want to do the lynda course but ive to setup a development environment which is kinda difficult for me
bklane_ has joined #ruby
jgt1 has quit [Ping timeout: 240 seconds]
<shevy> what is the indent to use in a ruby-c file? I am looking at ruby-gnome, it uses 4 spaces as indent
<hxegon> crack__david: learning about the dev env is kind of a right of passage. It's all stuff you need to learn anyway, and knowing that stuff makes trouble shooting easier.
<jhass> shevy: I doubt there's a community convention for that
bklane has quit [Ping timeout: 256 seconds]
rgrmatt has quit [Remote host closed the connection]
<crack__david> i c, makes sense
<jhass> but good C code should also be good ruby extension C code
rgrmatt has joined #ruby
<jhass> crack__david: also note that there's a separate room for rails questions, #RubyOnRails
<crack__david> hxegon: any idea where to start?
<crack__david> ah ok
<crack__david> didnt knew that
Arnvald has joined #ruby
duckpuppy has joined #ruby
<hxegon> crack__david: not really, I just learned by dealing with problems that came up naturally.
Arnvald has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
duckpuppy has quit [Ping timeout: 272 seconds]
jgt1 has joined #ruby
PaulCapestany has quit [Quit: .]
JammyHammy has joined #ruby
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
stevenxl has quit [Client Quit]
bklane_ has quit [Ping timeout: 240 seconds]
PaulCapestany has joined #ruby
bklane has joined #ruby
ChameleonSix has joined #ruby
<ChameleonSix> hi
bronson has joined #ruby
wolffles has joined #ruby
ChameleonSix has left #ruby [#ruby]
_stu_ has joined #ruby
wolffles has quit [Client Quit]
rgrmatt has quit [Remote host closed the connection]
wolffles has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
dfinninger has joined #ruby
<shevy> he was back!
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has quit [Read error: Connection reset by peer]
rgrmatt has joined #ruby
bklane has joined #ruby
shock_one has joined #ruby
dfinninger has quit [Ping timeout: 250 seconds]
agent_white has quit [Remote host closed the connection]
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
rgrmatt has quit [Remote host closed the connection]
agent_white has joined #ruby
shock_one has quit [Ping timeout: 256 seconds]
duncannz has joined #ruby
crack__david has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jessemcgilallen has joined #ruby
FernandoBasso has quit [Quit: Leaving]
kent\n has quit [Ping timeout: 245 seconds]
TomPeed has joined #ruby
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
Guest55126 has quit [Ping timeout: 256 seconds]
kent\n has joined #ruby
wolffles has quit [Quit: wolffles]
stevenxl has quit [Quit: leaving]
bklane_ has joined #ruby
Guest44668 has joined #ruby
Phage has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
bklane has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: leaving]
djbkd has joined #ruby
Stalkr_ has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
<Stalkr_> Hi, I am using Grape to define my API. I want to accept an array for parameter, but both ?a[]=x&a[]=y and ?a[0]=x&a[1]=y should be legal, anyone knows how to do that? I only have success for a[]=x&a[]=y requests
platzhirsch has left #ruby [#ruby]
bronson has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
<darix> Stalkr_: the a[] syntax without index makes more sense imho. with the 2nd syntax it is really easy to remove a field and then forgetting to reindex everything.
kalopsian has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
<Stalkr_> darix: Problem is I can only figure out how to send the [0] syntax from the client, but the backend only accepts []
wolffles has joined #ruby
akem has joined #ruby
charliesome has joined #ruby
wolffles has left #ruby [#ruby]
wolffles has joined #ruby
dlitvak has joined #ruby
InvGhosttt has joined #ruby
_stu_ has quit [Quit: _stu_]