havenwood 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/
<Dairenn_> Haha! It's an outstanding pull request since 2014: https://github.com/schacon/ruby-git/pull/168
<Dairenn_> Well that's a bummer.
pwnd_nsfw has quit [Ping timeout: 246 seconds]
<Ox0dea> Dairenn_: Time to switch to Rugged?
<Dairenn_> I literally just noticed that seems to be the one people are using instead.
<Dairenn_> But it seems to require libgit2?
trosborn has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
trosborn has quit [Client Quit]
ICantCook has quit [Quit: bye]
ICantCook has joined #ruby
zenguy_pc has joined #ruby
bruno-_ has quit [Ping timeout: 240 seconds]
Icey has quit [Ping timeout: 252 seconds]
ramfjord_ has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 260 seconds]
bryanray has joined #ruby
Cyther_ has quit [Quit: Leaving]
<jhass> Dairenn_: doesn't it vendor that in even? like nokogiri libxml2 these days?
Cyther has joined #ruby
<Dairenn_> Yeah it might; it's just that what I'm writing had to work on kind of an older, "frozen" version of Linux so I'm trying to have to worry about too many dependencies.
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev24 has quit []
mikecmpbll has quit [Quit: i've nodded off.]
tomchapin has joined #ruby
tomchapin has quit [Client Quit]
David27 has joined #ruby
shmilan has joined #ruby
blt has joined #ruby
mondayrain has joined #ruby
mondayrain has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
marr has quit []
_blizzy_ has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
gambl0re has quit [Ping timeout: 250 seconds]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby
Rollabunna has joined #ruby
nettoweb has joined #ruby
karapetyan has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
faras has joined #ruby
Asher has quit [Quit: Leaving.]
_blizzy_ has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
dopie has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
Dairenn_ has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
Cyther_ has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
idefine has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cyther has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
_blizzy_ has joined #ruby
ledestin has joined #ruby
tkuchiki has joined #ruby
spot_ has joined #ruby
jessemcgilallen has joined #ruby
pocketprotector- has joined #ruby
blt has quit [Quit: WeeChat 1.3]
Asher has joined #ruby
blackoperat has joined #ruby
blackoperat has quit [Client Quit]
nateberkopec has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
tomchapin has joined #ruby
diegoaguilar has joined #ruby
chop1n has joined #ruby
chop1n is now known as Guest24378
stamina has quit [Ping timeout: 256 seconds]
alcipir has quit [Ping timeout: 240 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matugm has quit [Quit: Leaving]
yitsushi has joined #ruby
j4cknewt_ has joined #ruby
dfdfdf has quit [Quit: Leaving]
GriffinHeart has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has quit [Ping timeout: 246 seconds]
spot_ has quit [Quit: ChatZilla 0.9.90 [SeaMonkey 2.19/20130714085432]]
baweaver has quit [Remote host closed the connection]
j4cknewt_ has quit [Ping timeout: 260 seconds]
trosborn has joined #ruby
trosborn has quit [Client Quit]
|ifei5g00d has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
j4cknewt has joined #ruby
trosborn has joined #ruby
IrishGringo has joined #ruby
riotjone_ has joined #ruby
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
trosborn has quit [Client Quit]
dfockler has joined #ruby
tomchapin has joined #ruby
trosborn has joined #ruby
bonhoeffer has joined #ruby
riotjone_ has quit [Ping timeout: 264 seconds]
d34th4ck3r has joined #ruby
rodfersou has quit [Remote host closed the connection]
avahey has quit [Quit: Connection closed for inactivity]
wallerdev has quit [Ping timeout: 260 seconds]
unreal has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
Lucky__ has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cndiv has joined #ruby
dikaio has joined #ruby
v4n_ has joined #ruby
trosborn has quit [Quit: trosborn]
v4n_ has quit [Client Quit]
v4n has joined #ruby
unreal_ has quit [Ping timeout: 264 seconds]
EllisTAA has joined #ruby
v4n has quit [Client Quit]
ixti has quit [Ping timeout: 250 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
dopamean_ has quit [Ping timeout: 264 seconds]
towski_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
blackoperat has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
rbowlby has quit [Remote host closed the connection]
hfp_work has quit [Ping timeout: 260 seconds]
Guest24378 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
_blizzy_ has quit [Ping timeout: 265 seconds]
hfp_work has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brook has joined #ruby
tjbiddle has joined #ruby
hfp_work has quit [Ping timeout: 260 seconds]
[1]brook has quit [Ping timeout: 260 seconds]
blackoperat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hfp_work has joined #ruby
tj__ has joined #ruby
freerobby has joined #ruby
trosborn has joined #ruby
dfockler has quit [Ping timeout: 250 seconds]
faras has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
freerobby has quit [Client Quit]
eminencehc has joined #ruby
freerobby has joined #ruby
rbowlby has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Ping timeout: 268 seconds]
diegobiavati has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
GnuYawk has joined #ruby
chouhoulis has joined #ruby
dopamean_ has joined #ruby
`tim` has joined #ruby
mloy is now known as napstablook
GriffinHeart has joined #ruby
tkuchiki has joined #ruby
chop1n has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
freerobby has joined #ruby
chop1n is now known as Guest18548
Melpaws has quit [Quit: Leaving.]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Client Quit]
allcentury has joined #ruby
freerobby has joined #ruby
ledestin has quit [Ping timeout: 244 seconds]
Yzguy has quit [Quit: Zzz...]
haraoka has joined #ruby
trosborn has quit [Quit: trosborn]
freerobby has quit [Client Quit]
zenguy_pc has quit [Ping timeout: 250 seconds]
trosborn has joined #ruby
nateberkopec has quit [Quit: Leaving...]
[1]brook has joined #ruby
brook has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
Asher has quit [Quit: Leaving.]
faras has joined #ruby
freerobby has quit [Client Quit]
|ifei5g00d has quit [Read error: Connection reset by peer]
bonhoeffer_ has joined #ruby
|ifei5g00d has joined #ruby
j4cknewt has quit [Remote host closed the connection]
mbff has joined #ruby
bonhoeffer_ has quit [Client Quit]
riotjone_ has joined #ruby
<mbff> Hello! I am creating a class that uses another class. Can I avoid writing out all of those getters and setters? https://gist.github.com/marshallford/0af11a74f5ecef1116b3
lzx has joined #ruby
zenguy_pc has joined #ruby
lzx has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
<BraddPitt> yep, look at attr_accessor, attr_read and attr_writer, mbff
freerobby has joined #ruby
<Ox0dea> BraddPitt: Stop that.
riotjone_ has quit [Ping timeout: 240 seconds]
nemo_ has joined #ruby
freerobby has quit [Client Quit]
<mbff> BraddPitt, can I use those shortcuts with a class inside a class?
nemo_ has quit [Read error: Connection reset by peer]
<tjohnson> mbff: consider `attr_reader :address`, then `my_person.address.city = 'Portland'` and similar
haraoka has quit [Ping timeout: 252 seconds]
<BraddPitt> what do you mean "class inside a class"?
<Ox0dea> mbff: You are being given bad advice. :<
workmad3 has joined #ruby
<Ox0dea> You want Forwardable.
<tjohnson> mbff: what you seem to want to do is a Law of Demeter violation and broadly considered bad practice in OO design: https://en.wikipedia.org/wiki/Law_of_Demeter
nemo_ has joined #ruby
idefine has joined #ruby
<BraddPitt> oh I see what you're trying to do
<BraddPitt> why not create the address and then pass that to the Person constructor
<BraddPitt> then you can do a.address.state or whatever
tjbiddle has quit [Ping timeout: 268 seconds]
<BraddPitt> the way you have it setup breaks OO convention as stated before
tjbiddle has joined #ruby
idefine has quit [Remote host closed the connection]
swgillespie has joined #ruby
YankNYC has quit [Quit: Connection closed for inactivity]
idefine has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 260 seconds]
<Ox0dea> mbff: Did you find Forwardable?
britt_ has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
swgillespie has quit [Client Quit]
nemo_ has joined #ruby
<mbff> Ox0dea, I cannot use gems, it is for school.
<Ox0dea> mbff: Forwardable is in the standard library.
<Ox0dea> &ri Forwardable
<mbff> Ox0dea, hmmm alright
<Ox0dea> mbff: Person.extend(Forwardable) and def_delegators(:@address, :street, :city, ...)
allcentury has quit [Ping timeout: 256 seconds]
araujo_ has quit [Ping timeout: 252 seconds]
korolyov_ is now known as korolyov2
araujo_ has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
trosborn has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
nemo_ has joined #ruby
<Ox0dea> mbff: For even more fun, put Address first so you can delegate programmatically: https://eval.in/454423
<mbff> Ox0dea, wow that's actually pretty cool
<Ox0dea> Duh.
<mbff> haha
<Ox0dea> :P
ramfjord_ has quit [Ping timeout: 260 seconds]
Melpaws has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
chouhoulis has quit []
Rollabunna has joined #ruby
nemo_ has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
danman has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
danman has joined #ruby
freerobby has joined #ruby
Guest18548 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cndiv has quit [Quit: Be back later ...]
hmsimha has joined #ruby
pathrocle has quit [Remote host closed the connection]
pathrocle has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
nertzy has quit [Quit: This computer has gone to sleep]
Rollabunna has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
nemo_ has joined #ruby
cndiv has joined #ruby
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
faras has left #ruby [#ruby]
idefine has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has quit [Ping timeout: 256 seconds]
pathrocle has quit [Ping timeout: 240 seconds]
finisherr has quit [Quit: finisherr]
moeabdol has joined #ruby
maletor has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 260 seconds]
p0wn3d has joined #ruby
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
atomical has joined #ruby
nemo_ has joined #ruby
mbff has quit [Quit: Leaving]
cndiv has quit [Quit: Quit]
yitsushi has joined #ruby
gambl0re has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
willharrison has joined #ruby
nemo_ has joined #ruby
shmilan has joined #ruby
tjbiddle has quit [Ping timeout: 272 seconds]
tubuliferous_ has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Read error: No route to host]
JJM has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
mois3x has joined #ruby
willharrison has quit [Client Quit]
`tim` has joined #ruby
nemo_ has joined #ruby
tjbiddle has joined #ruby
trosborn has quit [Quit: trosborn]
ICantCook has quit [Quit: bye]
trosborn has joined #ruby
beauby has quit [Ping timeout: 256 seconds]
trosborn has quit [Client Quit]
shevy has quit [Ping timeout: 256 seconds]
GriffinHeart has joined #ruby
nemo_ has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
grekkos has quit [Ping timeout: 246 seconds]
lkba_ has quit [Read error: Connection reset by peer]
lkba has joined #ruby
baweaver has joined #ruby
rbowlby has quit [Remote host closed the connection]
towski_ has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
gener1c_ has joined #ruby
favadi has joined #ruby
tj__ has quit [Quit: Leaving]
mrtomme has joined #ruby
Cache_Money has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has quit []
sdothum has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
ramfjord has joined #ruby
gener1c has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
darkf has joined #ruby
p0wn3d has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
djbkd has joined #ruby
rdavila has joined #ruby
bruno- has joined #ruby
ibouvousaime has joined #ruby
arthurnn has quit [Quit: bye...]
<ibouvousaime> Hello I have a question for linux users here, what IDE do you use ?
shevy has joined #ruby
ledestin has joined #ruby
braincrash has joined #ruby
tmtwd has joined #ruby
AlexRussia has joined #ruby
trosborn has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
arthurnn has joined #ruby
gambl0re has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 240 seconds]
ruby-lang045 has quit [Ping timeout: 246 seconds]
<Ox0dea> ibouvousaime: This is #ruby.
<ibouvousaime> IDE for ruby I mean
arescorpio has joined #ruby
trosborn has quit [Quit: trosborn]
<ibouvousaime> I thought I didnt have to precice since were already on a ruby room
<ibouvousaime> precise*
ICantCook has joined #ruby
ICantCook has quit [Client Quit]
<shevy> good morning #vietnam!
<shevy> I mean... #ruby
bmurt has joined #ruby
hmsimha has quit [Ping timeout: 265 seconds]
bmurt has quit [Client Quit]
<Ox0dea> ibouvousaime: Very few people use full-blown IDEs to write Ruby.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Eiam_ has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
chopin has joined #ruby
dnewkerk has joined #ruby
duderonomy has joined #ruby
<shevy> ruby is so simple that you don't need an IDE!
<ibouvousaime> Im very new to it lol
bollullera has quit [Quit: Leaving.]
<Nilium> I use Ruby to write CLI tools that I don't care about being slow, so I can't imagine an IDE ever being useful there.
<dnewkerk> ibouvousaime: sublime text for me
chopin_ has quit [Ping timeout: 240 seconds]
<ibouvousaime> cool Iwill get that one
inteq has quit [Ping timeout: 256 seconds]
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> ibouvousaime: Why not just use WINE to run Notepad?
<ibouvousaime> notepad++ ?
<Ox0dea> --notepad;
tubuliferous_ has quit [Ping timeout: 250 seconds]
<ibouvousaime> lel
<ibouvousaime> xD
yfeldblum has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 250 seconds]
chopin has quit [Ping timeout: 260 seconds]
shmilan has quit [Ping timeout: 240 seconds]
dnewkerk has quit [Quit: dnewkerk]
gambl0re has joined #ruby
freerobby has quit [Quit: Leaving.]
idefine has quit [Remote host closed the connection]
gix has joined #ruby
dnewkerk has joined #ruby
idefine has joined #ruby
Motoservo has joined #ruby
<shevy> notepad++ is ok but really, all you need to have are sharp eyes
dnewkerk has quit [Client Quit]
dnewkerk has joined #ruby
dnewkerk has quit [Client Quit]
dnewkerk has joined #ruby
ibouvousaime has quit [Ping timeout: 250 seconds]
dnewkerk has quit [Client Quit]
idefine has quit [Remote host closed the connection]
shmilan has joined #ruby
trosborn has joined #ruby
<Ox0dea> I read that as "shar pies".
iateadonut has joined #ruby
<shevy> you are drunk again
<shevy> there are no harpies here
inteq has joined #ruby
dnewkerk has joined #ruby
leat has joined #ruby
diegoaguilar has quit [Ping timeout: 264 seconds]
dnewkerk has quit [Client Quit]
dnewkerk has joined #ruby
napstablook has quit [Quit: Leaving]
<Ox0dea> Under the assumption that you posited my inebriation on account of my suggesting that a computer program might make for a delicious snack: http://www.mike-worth.com/2013/03/31/baking-a-hello-world-cake/
psy_ has joined #ruby
speakingcode has joined #ruby
arthurnn has quit [Quit: bye...]
<Ox0dea> > Program recipes should not only generate valid output, but be easy to prepare and delicious.
<Ox0dea> David Morgan-Mar is much more interested in "programmer happiness" than matz ever was.
IrishGringo has quit [Ping timeout: 246 seconds]
GriffinHeart has quit [Remote host closed the connection]
idefine has joined #ruby
opensource_ninja has quit [Remote host closed the connection]
opensource_ninja has joined #ruby
[1]brook has quit [Read error: Connection reset by peer]
brook has joined #ruby
arthurnn has joined #ruby
XxionxX has joined #ruby
idefine has quit [Remote host closed the connection]
ponga has quit [Quit: Connection closed for inactivity]
idefine has joined #ruby
doll has joined #ruby
<doll> what's the syntax for doing multiple .gsub in one line?
<shevy> he seems to be more interested in cooking and eating
<shevy> doll you could chain them together :)=
<doll> yeah i'm derping on it :D
trosborn has quit [Quit: trosborn]
GriffinHeart has joined #ruby
<doll> just .gsub(blah).gusb(blah)?
<Ox0dea> ?try
<ruboto> Why don't you try it and see for yourself?
idefine has quit [Remote host closed the connection]
psy_ has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 252 seconds]
nertzy has joined #ruby
<doll> it just feels ghetto i guess
duderonomy has quit [Ping timeout: 272 seconds]
<shevy> doll well that would it be
<shevy> but don't use .gusb() use .gsub() :)
blackoperat has joined #ruby
<Ox0dea> doll: What exactly feels "ghetto", method chaining?
<Ox0dea> Or chaining calls to #gsub because your regex-fu is lacking?
freerobby has joined #ruby
blackoperat has quit [Client Quit]
<doll> my lack of regex-fu
<Ox0dea> Well, let's not go blaming the tool for that, eh?
<doll> i didn't say the tool feels ghetto, i said "it" :P
idefine has joined #ruby
postmodern has joined #ruby
<Ox0dea> Are you able to share the specifics of the replacements you're trying to perform?
GriffinHeart has quit [Remote host closed the connection]
juanca_ has joined #ruby
workmad3 has joined #ruby
araujo_ has quit [Quit: Leaving]
araujo has joined #ruby
araujo has joined #ruby
idefine has quit [Remote host closed the connection]
rbowlby has joined #ruby
jenrzzz has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
idefine has joined #ruby
sapslaj has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
karapetyan has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
idefine has quit [Remote host closed the connection]
<shevy> dumdedum
riotjone_ has joined #ruby
bruno- has joined #ruby
zenguy_pc has joined #ruby
<Ox0dea> >> 'A. Dumbledore'.downcase.delete('^a-z').bytes.reduce(0) { |s, b| s + b - 96 }
<ruboto> Ox0dea # => 100 (https://eval.in/454445)
Cyther_ has quit [Quit: Leaving]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
karapetyan has quit [Ping timeout: 246 seconds]
spuk has quit [Ping timeout: 260 seconds]
riotjone_ has quit [Ping timeout: 252 seconds]
XxionxX has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 240 seconds]
opensource_ninja has quit [Quit: opensource_ninja]
d34th4ck3r has quit [Quit: zzz]
mistermocha has joined #ruby
arescorpio has quit [Quit: Leaving.]
whippythellama has quit [Ping timeout: 240 seconds]
ishikawa91 has joined #ruby
whippythellama has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
idefine has quit [Remote host closed the connection]
_djbkd has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
Gnomethrower has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
trosborn has joined #ruby
tkuchiki has quit [Remote host closed the connection]
rbowlby has quit [Ping timeout: 265 seconds]
`based_pdev` has quit [Read error: Connection reset by peer]
`based_pdev` has joined #ruby
Rollabunna has quit [Remote host closed the connection]
yfeldblum has joined #ruby
DroidBurgundy has quit []
symbol has quit [Ping timeout: 264 seconds]
JJM has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
JJM has joined #ruby
bastion has joined #ruby
rgb-one has quit [Read error: Connection reset by peer]
bastion has quit [Read error: Connection reset by peer]
bastion has joined #ruby
pocketprotector- has quit [Remote host closed the connection]
<xxneolithicxx> https://savecrypto.org/
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
tkuchiki has joined #ruby
Chaoborid has joined #ruby
nemo_ has joined #ruby
GriffinHeart has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gexe__ has joined #ruby
XxionxX has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
Bellthoven has joined #ruby
freerobby has quit [Quit: Leaving.]
arup_r has joined #ruby
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
tmtwd has quit [Ping timeout: 252 seconds]
Bellthoven has quit [Ping timeout: 260 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
sanjayu has joined #ruby
mistermocha has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
Caelum has quit [Quit: WeeChat 1.1.1]
DarkBushido has quit [Quit: ZNC - http://znc.in]
Renich has quit [Quit: leaving]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
moeabdol has joined #ruby
GriffinHeart has joined #ruby
toy has joined #ruby
tjbiddle has quit [Ping timeout: 268 seconds]
nemo_ has quit [Remote host closed the connection]
gexe__ has quit [Ping timeout: 240 seconds]
haxrbyte_ has joined #ruby
nemo_ has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gexe__ has joined #ruby
gexe__ has quit [Max SendQ exceeded]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
haxrbyte has quit [Ping timeout: 268 seconds]
mois3x has quit [Quit: mois3x]
bluOxigen has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
swgillespie has joined #ruby
mistermocha has joined #ruby
devbug has joined #ruby
britt_ has quit [Quit: Be back later ...]
astrobun_ has joined #ruby
balazs has joined #ruby
d34th4ck3r has joined #ruby
devbug_ has joined #ruby
dhjondoh has joined #ruby
ohaibbq has joined #ruby
chrissonar has joined #ruby
favadi has joined #ruby
<bigmac_> x=9999999999999999
<bigmac_> Math.sqrt(x*x)=>1000000000000000
<bigmac_> Wrong
<bigmac_> buffer over flow i guess
<bigmac_> i would like to perform math with huge numbers, with precision
devbug has quit [Ping timeout: 272 seconds]
<Ox0dea> bigmac_: require 'bigdecimal'
duncannz has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
<bigmac_> i think i understand the reason why this is inaccurate
<bigmac_> Bigdecimal, i think im doing it wrong
<shevy> bigmac is working with bigdecimal
duncannz has quit [Max SendQ exceeded]
<bigmac_> BigDecimal.new(9999999999999999).sqrt(16)=>1000000000000000
duncannz has joined #ruby
<bigmac_> um wait, 1.E16 or something
chouhoulis has joined #ruby
<bigmac_> how do i find sqrt properly with BigDecimal
<bigmac_> BigDecimal.new(999*999).sqrt(16)=>.999E3
<bigmac_> im not sure what (16) is for
GriffinHeart has joined #ruby
<Ox0dea> &ri BigDecimal#sqrt
solocshaw has quit [Ping timeout: 265 seconds]
<bigmac_> BigDecimal.new(999*999).sqrt(16)=>.999E3
<bigmac_> Math.sqrt(999*999)=>999
skade has joined #ruby
<bigmac_> when the input number is larger then 15, then the inaccurate results happen. even with BigDecimal
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<Ox0dea> bigmac_: You're misreading the BigDecimal representation.
ramfjord has quit [Ping timeout: 256 seconds]
riotjone_ has joined #ruby
<bigmac_> well, is it possible to process numbers larger then 15 in length?
<Ox0dea> Of course it is.
gustav_ has joined #ruby
duncannz has quit [Ping timeout: 255 seconds]
<Ox0dea> bigmac_: Could you show an example of what you think to be an inaccurate BigDecimal result?
duderonomy has joined #ruby
saddad has quit [Ping timeout: 264 seconds]
rbowlby has joined #ruby
trautwein has joined #ruby
aganov has joined #ruby
skcin7 has joined #ruby
chouhoulis has quit []
XxionxX has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
opensource_ninja has joined #ruby
ruurd has joined #ruby
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has quit [Quit: WeeChat 1.3]
claw has quit [Ping timeout: 252 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
rdavila has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
claw has joined #ruby
tagrudev has joined #ruby
_blizzy_ has joined #ruby
Rollabunna has joined #ruby
workmad3 has joined #ruby
soosfarm has joined #ruby
krz has joined #ruby
<bigmac_> Ox0dea: well, i know the awnser to my examples, as im dealing with sqrt
<bigmac_> 15 in length
shinnya has quit [Ping timeout: 264 seconds]
GriffinHeart has quit [Remote host closed the connection]
michael_mbp has quit [Ping timeout: 268 seconds]
<bigmac_> 16 in lenght x=9999999999999999
<bigmac_> puts BigDecimal(x*x).sqrt(16) =>0.9999999999999999E16
workmad3 has quit [Ping timeout: 240 seconds]
<Ox0dea> bigmac_: Do you understand that output?
<bigmac_> that looks about right, but how do i convert to a whole number
<bigmac_> 16 decimal places?
<Ox0dea> It's "scientific" notation.
wldcordeiro has quit [Ping timeout: 255 seconds]
<Ox0dea> >> 0.999e3
<ruboto> Ox0dea # => 999.0 (https://eval.in/454486)
<bigmac_> puts "%d" % (BigDecimal(x*x).sqrt(16))
<bigmac_> is this proper?
<Ox0dea> No.
zenguy_pc has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
michael_mbp has joined #ruby
moeabdol has joined #ruby
firstdayonthejob has joined #ruby
<bigmac_> how do you convert .99e3 properly?
Pupp3tm4st3r has joined #ruby
<Ox0dea> You asked how to convert it to a whole number and then showed your attempt to convert it to a string; which do you actually want?
<bigmac_> well, i guess, to_i would have done the trick
<Ox0dea> That it would've.
workmad3 has joined #ruby
<bigmac_> weird, i thought i tried this. over and over again
papercode has quit [Quit: WeeChat 0.4.3]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
opensource_ninja has quit [Quit: opensource_ninja]
<bigmac_> seems to be working just fine now lol
krz has quit [Read error: Connection reset by peer]
Chaoborid has quit [Quit: Textual IRC Client: www.textualapp.com]
khebbie_ has joined #ruby
khebbie has joined #ruby
Asher has joined #ruby
bigmac_ has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
yardenbar has joined #ruby
krz has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: ZZZzzz…]
acke has joined #ruby
<certainty> yo hackers
zenguy_pc has joined #ruby
bruno- has joined #ruby
mistermocha has joined #ruby
jessemcgilallen has joined #ruby
rdavila has quit [Quit: Textual IRC Client: www.textualapp.com]
bruno- has quit [Ping timeout: 268 seconds]
nemo_ has quit [Read error: Connection reset by peer]
nemo__ has joined #ruby
_djbkd has quit [Quit: My people need me...]
unshadow_ has joined #ruby
ramfjord has joined #ruby
unshadow has quit [Ping timeout: 240 seconds]
juanca_ has quit []
<arup_r> bummer!
<arup_r> Ox0dea: o/
<arup_r> certainty: \o
<Ox0dea> Did you just high-five yourself for us?
devbug_ has quit [Read error: Connection reset by peer]
bluOxigen has left #ruby [#ruby]
unshadow_ has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
gettalong has joined #ruby
dopie has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
bastion has quit [Read error: Connection reset by peer]
nemo_ has joined #ruby
<arup_r> no.. I did to you experts!!!
<arup_r> You guys made ruby Rock!!
bastion has joined #ruby
artmann has joined #ruby
norc has joined #ruby
<norc> Hi, I have written a proof of concept library that interfaces with various network interfaces for statistics aggregation and provisioning.
papercode has joined #ruby
nemo__ has quit [Ping timeout: 246 seconds]
<norc> Since I want to develop the real thing, I would like to start off with rspec early on. Obviously I will need to mock/stub a lot of these interfaces (since they would require hardware on the other hand for testing)
idefine has joined #ruby
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
<norc> So Im looking for some resource that guides me through the process of mocking/stubbing these interfaces in the early development phase.
jessemcgilallen has quit [Quit: jessemcgilallen]
kp666 has joined #ruby
lsmola_ has quit [Ping timeout: 240 seconds]
shoutsid has joined #ruby
EllisTAA has joined #ruby
EllisTAA has quit [Client Quit]
GriffinHeart has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
n008f4g_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
gustav_ has quit [Remote host closed the connection]
kp666 has quit [Read error: Connection reset by peer]
firstdayonthejob has quit [Ping timeout: 240 seconds]
<certainty> norc: add an abstraction barrier that you own, which you can then mock.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lsmola_ has joined #ruby
TomyWork has joined #ruby
contradictioned has quit [Remote host closed the connection]
<norc> certainty: I just cannot figure out how to do this design wise.
last_staff has joined #ruby
mdih has joined #ruby
krz has quit [Read error: Connection reset by peer]
<certainty> norc: you certainly know which messages your interfaces will need to respond to, no?
mistermocha has quit [Remote host closed the connection]
yfeldblum has joined #ruby
skade has joined #ruby
danman has quit [Quit: danman]
nfk|laptop has joined #ruby
bMalum has joined #ruby
<norc> certainty: Sure. I could simply record the responses from a hardware device to specific commands for my stubs
inteq has quit [Ping timeout: 256 seconds]
balazs has quit [Ping timeout: 265 seconds]
krz has joined #ruby
diegoviola has joined #ruby
ishikawa91 has quit [Quit: Connection closed for inactivity]
ruurd has joined #ruby
tkuchiki has quit [Remote host closed the connection]
andikr has joined #ruby
<certainty> norc: yeah then categorize them and build tests for each category. be sure to include failure scenarios
skade has quit [Quit: Computer has gone to sleep.]
arup_r has quit [Quit: Leaving]
skade has joined #ruby
v4n has joined #ruby
SCHAAP137 has joined #ruby
lea has quit [Ping timeout: 240 seconds]
uber has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
futilegames has joined #ruby
solars has joined #ruby
<nemo_> how do we give a flash message in model
<nemo_> ?
v4n has quit [Quit: WeeChat 1.3]
v4n has joined #ruby
<v4n> join #elixir
inteq has joined #ruby
_blizzy_ has quit [Ping timeout: 244 seconds]
ruurd has quit [Max SendQ exceeded]
ruurd has joined #ruby
jas02 has joined #ruby
<Ox0dea> Rude.
tkuchiki has joined #ruby
<v4n> oops. meant to type a command...
CloCkWeRX has joined #ruby
alienaut has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Remote host closed the connection]
terlar has joined #ruby
<Ox0dea> I'm gonna roll; all Strings means you're an #elixir sockpuppet.
<Ox0dea> >> [*ObjectSpace.each_object].sample 3
<ruboto> Ox0dea # => ["@ri_dir", "'", "mon_enter_for_cond"] (https://eval.in/454537)
eGGsha has joined #ruby
bkutil_ has quit [Quit: leaving]
bruno- has joined #ruby
doll has quit [Ping timeout: 246 seconds]
adac has joined #ruby
mloy has joined #ruby
uber has joined #ruby
lea has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
shoutsid has quit [Remote host closed the connection]
<v4n> Me an my coworker wasted a lot of time debugging a memory leak in our rails app. It was being caused by zipruby. He has has created a list of Gems we are aware that leak memory: https://github.com/ASoftCo/leaky-gems
<v4n> Might come handy!
tubuliferous_ has joined #ruby
lolmaus has joined #ruby
<mloy> v4n, nice
<mloy> v4n, have you submitted bug reports for any?
tubuliferous_ has quit [Max SendQ exceeded]
bruno- has quit [Ping timeout: 264 seconds]
<v4n> mloy: the gem links in the readme file links to the bug reports
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stan has joined #ruby
<mloy> v4n, oh awesome. I didn't check where the links pointed.
<mloy> v4n, kudos to you and your coworker!
yardenbar has quit [Read error: Connection reset by peer]
yardenbar has joined #ruby
solocshaw has joined #ruby
lea has quit [Ping timeout: 240 seconds]
uber has quit [Ping timeout: 260 seconds]
futilegames has left #ruby [#ruby]
kimegede has joined #ruby
ncopa has joined #ruby
<ncopa> hi
<ncopa> does anybody know if CVE-2015-4020 fix is included in ruby 2.2.3?
Asher has quit [Quit: Leaving.]
<ncopa> CVE-2015-4020 was introduced by the fix for CVE-2015-3900
adac has quit [Ping timeout: 240 seconds]
Ebok has quit [Read error: Connection reset by peer]
gustav_ has joined #ruby
tubuliferous_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 244 seconds]
shoutsid has joined #ruby
<Ox0dea> ncopa: Are you not allowed to `gem up --sys`?
ta_ has quit [Quit: Leaving...]
xcesariox has joined #ruby
ta has joined #ruby
aufi has joined #ruby
aryaching has joined #ruby
ndrei has joined #ruby
brook has quit [Quit: HydraIRC -> http://www.hydrairc.com <- In tests, 0x09 out of 0x0A l33t h4x0rz prefer it :)]
lea has joined #ruby
jxs_ has joined #ruby
shai123bn has joined #ruby
<shai123bn> Hi :) Can someone please point me to the documentation on Ruby 1.8.7 for the method 'first' of a hash object? Like: a.first
<ncopa> Ox0dea: i am packaging ruby for alpine linux
keen______ has joined #ruby
<Ox0dea> shai123bn: Using 1.8.7 is illegal.
<shai123bn> Ox0dea: lol
<apeiros> &ri Enumerable#first @shai123bn
keen_____ has quit [Ping timeout: 250 seconds]
Igorshp has joined #ruby
<ncopa> Ox0dea: it is not possible to run `gem <anything>` unless you already have ruby installed
karapetyan has joined #ruby
rdark has joined #ruby
rdark has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest19345
diego1 is now known as diegoviola
marr has joined #ruby
rdark has quit [Client Quit]
galeido has joined #ruby
<shai123bn> `derpy: thank you!
rdark has joined #ruby
<shai123bn> apeiros: thank you :)
Guest19345 has quit [Ping timeout: 240 seconds]
krz has quit [Read error: Connection reset by peer]
karapetyan has quit [Ping timeout: 268 seconds]
uber has joined #ruby
v4n has quit [Quit: WeeChat 1.3]
Igorshp_ has joined #ruby
doublemalt_ has joined #ruby
diegok has quit [Ping timeout: 244 seconds]
Igorshp has quit [Read error: Connection reset by peer]
krz has joined #ruby
khebbie has quit [Ping timeout: 240 seconds]
khebbie_ has quit [Ping timeout: 252 seconds]
weaksauce has quit [Ping timeout: 255 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
astrobun_ has joined #ruby
sonne has quit [Quit: ZNC - http://znc.in]
<ncopa> fwiw, ruby-2.2.3 does include the fix for CVE-2015-4020, even if the release notes doe not say anything about it
ncopa has quit [Quit: Leaving]
ohaibbq has quit [Quit: Leaving...]
terlar has quit [Quit: WeeChat 1.3]
joonty has joined #ruby
rdark has quit [Quit: leaving]
adac has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
zenguy_pc has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
senayar has joined #ruby
acke_ has joined #ruby
<norc> certainty, dnewkerk. Mmm, Ill take your tips - and just start. :)
nemo_ has quit [Remote host closed the connection]
kalusn has joined #ruby
tomaz_b has joined #ruby
kalusn has quit [Remote host closed the connection]
akem has joined #ruby
kalusn has joined #ruby
Hounddog has joined #ruby
acke has quit [Ping timeout: 246 seconds]
diego1 has joined #ruby
acke has joined #ruby
curses has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest46969
Guest46969 has quit [Ping timeout: 260 seconds]
diego1 is now known as diegoviola
gettalong has quit [Quit: WeeChat 1.1.1]
jxs_ has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
acke_ has quit [Ping timeout: 246 seconds]
Gnomethrower has joined #ruby
rdark has joined #ruby
rdark has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
diego1 has joined #ruby
deps has left #ruby [#ruby]
diego1 has quit [Changing host]
diego1 has joined #ruby
contradictioned has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
codecop has joined #ruby
karapetyan has joined #ruby
lea has quit [Ping timeout: 255 seconds]
uber has quit [Ping timeout: 265 seconds]
zenguy_pc has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
blaxter has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
aryaching has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
Igorshp_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
jxs_ has joined #ruby
tvw has joined #ruby
bruno- has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
ahmetkapikiran has joined #ruby
bMalum has quit [Quit: bMalum]
ta has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 268 seconds]
diego1 has quit [Ping timeout: 240 seconds]
dhjondoh has joined #ruby
bMalum has joined #ruby
skade has joined #ruby
jxs_ has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
htmldrum has joined #ruby
sonne has joined #ruby
diegok has joined #ruby
mark2 has joined #ruby
uber has joined #ruby
lea has joined #ruby
<certainty> norc: alright, have fun
workmad3 has joined #ruby
korolyov2 is now known as korolyov_
nfk|laptop has quit [Ping timeout: 250 seconds]
nemo_ has joined #ruby
SenpaiSilver has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
codecop has quit [Quit: Išeinu]
jxs_ has joined #ruby
jds has joined #ruby
nemo__ has joined #ruby
gustav_ has quit [Remote host closed the connection]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
diegoaguilar has joined #ruby
mordocai has joined #ruby
nemo_ has quit [Ping timeout: 250 seconds]
matp has quit [Ping timeout: 268 seconds]
shai123bn has quit [Quit: Page closed]
Pumukel has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 264 seconds]
skcin7 has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has joined #ruby
ibouvousaime has joined #ruby
mordocai has quit [Remote host closed the connection]
dANO_ has joined #ruby
SOLDIERz has joined #ruby
<shevy> knock knock
lolmaus has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
tubuliferous_ has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
lkba_ has joined #ruby
<certainty> shevy: who's this?
<shevy> your daddy!
<certainty> shevy: my daddy, who?
<shevy> yeah
ramfjord has joined #ruby
Pumukel has joined #ruby
c0m0 has joined #ruby
Some-body_ has joined #ruby
Bellthoven has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
DarthGandalf has quit [Ping timeout: 240 seconds]
Some-body_ is now known as DarthGandalf
uber has quit [Ping timeout: 255 seconds]
lea has quit [Ping timeout: 240 seconds]
krz has quit [Read error: Connection reset by peer]
diego1 has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
diego1 has quit [Read error: Connection reset by peer]
diegoviola has quit [Ping timeout: 246 seconds]
Bellthoven has quit [Ping timeout: 244 seconds]
matp has joined #ruby
hoylemd_ has quit [Remote host closed the connection]
zotherst1 has quit [Quit: WeeChat 1.2]
<apeiros> certainty: daddy cool!
miah has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
ahmetkapikiran has quit [Ping timeout: 268 seconds]
zotherstupidguy has joined #ruby
ahmetkapikiran has joined #ruby
krz has joined #ruby
bastion has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
vigintas has joined #ruby
andikr has quit [Remote host closed the connection]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<certainty> apeiros: at least you know how to roll these jokes :)
GriffinHeart has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
vigintas has quit [Remote host closed the connection]
lee-jon has joined #ruby
soc42 has joined #ruby
vigintas has joined #ruby
dhjondoh1 has joined #ruby
<shevy> rolling your daddy!
dhjondoh has quit [Ping timeout: 256 seconds]
dhjondoh1 is now known as dhjondoh
PierreRambaud has quit [Quit: Quitte]
<apeiros> I was curious where shevy's joke would lead. I'm slightly disappointed. iocus interruptus…
lolmaus has joined #ruby
Rollabunna has joined #ruby
<shevy> daddy apeiros!
<shevy> I am rewriting old ruby code and it's not a lot of fun :(
<certainty> shevy: aren't you always rewriting old code?
karapetyan has quit [Remote host closed the connection]
<certainty> oh wait no. You're old, writing code. That was it :D
<shevy> certainty sorta
<certainty> shevy: <3
workmad3 has joined #ruby
cwong_on_irc has quit [Ping timeout: 240 seconds]
<shevy> usually when I get annoyed at some API or how to use something
c0m0 has quit [Ping timeout: 252 seconds]
aryaching_ has quit [Read error: No route to host]
Rollabunna has quit [Ping timeout: 265 seconds]
<shevy> or when documentation is missing!
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
c0m0 has joined #ruby
bruno- has joined #ruby
astrobun_ has quit [Remote host closed the connection]
lee-jon has quit [Quit: lee-jon]
sgambino has joined #ruby
GriffinHeart has joined #ruby
aryaching has joined #ruby
lee-jon has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
vigintas has quit [Ping timeout: 265 seconds]
Peg-leg has joined #ruby
rbowlby has quit [Remote host closed the connection]
c0m0 has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
DEA7TH has joined #ruby
lee-jon has left #ruby [#ruby]
skade has quit [Quit: Computer has gone to sleep.]
Igorshp has joined #ruby
vigintas has joined #ruby
uber has joined #ruby
lea has joined #ruby
herbst has joined #ruby
c0m0 has joined #ruby
idefine has joined #ruby
skade has joined #ruby
leafybasil has joined #ruby
`based_pdev` has quit [Read error: Connection reset by peer]
livcd has joined #ruby
`based_pdev` has joined #ruby
nemo_ has joined #ruby
bruno- has joined #ruby
<livcd> what do you guys think of codewars ?
ahmetkapikiran has quit [Quit: ahmetkapikiran]
S_Walker has quit [Ping timeout: 250 seconds]
nemo___ has joined #ruby
leafybasil has quit [Remote host closed the connection]
c0m0 has quit [Ping timeout: 250 seconds]
`based_pdev` has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
c0m0 has joined #ruby
nemo__ has quit [Read error: Connection reset by peer]
`based_pdev` has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 260 seconds]
Alina-malina has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
nemo__ has joined #ruby
lea has quit [Ping timeout: 268 seconds]
Synthead has quit [Ping timeout: 244 seconds]
nemo___ has quit [Read error: Connection reset by peer]
nemo_ has quit [Ping timeout: 240 seconds]
faces has joined #ruby
zotherst1 has joined #ruby
nemo_ has joined #ruby
bruno- has joined #ruby
face has quit [Ping timeout: 260 seconds]
nemo_ has quit [Remote host closed the connection]
uber has quit [Ping timeout: 268 seconds]
nemo_ has joined #ruby
zotherstupidguy has quit [Ping timeout: 260 seconds]
speaking1ode has joined #ruby
Synthead has joined #ruby
nemo__ has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
<shevy> what is it good for?
mdih has quit [Ping timeout: 260 seconds]
bruno- has quit [Ping timeout: 256 seconds]
AxonetBE has joined #ruby
mdih has joined #ruby
<AxonetBE> if I write a csv file like this : https://gist.github.com/bigbentobox/6b90ac44e4efa7572020 how can I enclose the values of the second row by double qoutes?
kaspergrubbe has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
bruno- has joined #ruby
<apeiros> AxonetBE: why'd you care? the csv gem ensures the data is valid csv.
<apeiros> a value would be double quoted if it contains one of the seperators
<AxonetBE> for example, I work with phone numbers and the values are 0321752520 for example and when importing into excel he doesn't import the leading 0
<apeiros> it might also be possible to force the csv gem to just quote all values. check the options.
<AxonetBE> apeiros: yes force_quotes let's quote all the values, that is good but my 3rd party doesn't want to have quoted the header row
<apeiros> AxonetBE: I doubt that'll change by quoting it. as far as I remember excel, you tell it that it's a text column, not a number column.
* apeiros afk
unreal_ has joined #ruby
unreal has quit [Ping timeout: 250 seconds]
khebbie_ has joined #ruby
<shevy> certainty why does clojure look so weird? http://vgel.me/posts/cracking-online-textbook/
karapetyan has joined #ruby
yashinbasement has joined #ruby
<workmad3> looks like a lisp to me
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 240 seconds]
blaxter has quit [Ping timeout: 244 seconds]
mdih has quit [Ping timeout: 246 seconds]
GriffinHeart has joined #ruby
<daxroc> Morning
karapetyan has quit [Ping timeout: 256 seconds]
SegFaultAX has quit [Quit: ZNC - http://znc.in]
<workmad3> morning
Igorshp has quit [Remote host closed the connection]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
diegoaguilar has quit [Remote host closed the connection]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
dmolina has joined #ruby
cwong_on_irc has joined #ruby
rodfersou has joined #ruby
rcs has quit [Ping timeout: 272 seconds]
Sou|cutter has quit [Ping timeout: 244 seconds]
<shevy> orning
d34th4ck3r has quit [Quit: zzz]
ndrei has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
lea has joined #ruby
khebbie has joined #ruby
mary5030 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
jenrzzz has joined #ruby
cornerma1 has joined #ruby
zenguy_pc has joined #ruby
uber has joined #ruby
blaxter has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
cornerman has quit [Ping timeout: 268 seconds]
cornerma1 is now known as cornerman
trosborn has quit [Quit: trosborn]
mary5030 has quit [Ping timeout: 256 seconds]
Contigi has quit [Read error: Connection reset by peer]
stamina has joined #ruby
kraljev11 has joined #ruby
mdih has joined #ruby
dmolina has quit [Quit: Leaving.]
Pumukel has quit [Remote host closed the connection]
dviola has joined #ruby
minimalism has quit [Quit: leaving]
GriffinHeart has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
platzhirsch has joined #ruby
gustav_ has joined #ruby
Rickmasta has joined #ruby
David27 has quit [Ping timeout: 240 seconds]
pathrocle has joined #ruby
trosborn has joined #ruby
Akagi201_ has quit [Ping timeout: 260 seconds]
pwnd_nsfw has joined #ruby
Igorshp has joined #ruby
bnagy has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
mdih has quit [Read error: Connection reset by peer]
ahmetkapikiran has joined #ruby
Cyther has joined #ruby
hectortrope has quit [Read error: Connection reset by peer]
bruce_lee has joined #ruby
doddok has joined #ruby
Akagi201 has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest33227
dviola has quit [Ping timeout: 250 seconds]
diego1 is now known as dviola
pdoherty has quit [Remote host closed the connection]
Guest33227 has quit [Quit: leaving]
zacts has quit [Read error: Connection reset by peer]
<apeiros> AxonetBE: solved your issue?
<AxonetBE> apeiros: not really
lubarch has joined #ruby
<apeiros> you can try adding a leading ' to the value
<apeiros> within excel, that's an indicator to treat it as a string value and the ' itself is not shown
<apeiros> maybe it behaves that way too when importing
lubarch has quit [Client Quit]
raphagodoi has joined #ruby
zacts has joined #ruby
raphagodoi has left #ruby [#ruby]
kraljev11 has quit [Quit: kraljev11]
krz has quit [Quit: WeeChat 1.2]
allcentury has joined #ruby
spider-mario has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
but3k4 has joined #ruby
dviola has quit [Ping timeout: 240 seconds]
CooloutAC has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
CooloutAC has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
trautwei_ has joined #ruby
hectortrope has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chridal has quit [Ping timeout: 240 seconds]
trosborn has quit [Quit: trosborn]
trautwein has quit [Ping timeout: 256 seconds]
khebbie_ has quit [Ping timeout: 240 seconds]
CooloutAC has quit [Ping timeout: 252 seconds]
soc42 has quit [Remote host closed the connection]
ruisantos has joined #ruby
khebbie has quit [Ping timeout: 264 seconds]
nemo__ has joined #ruby
_blizzy_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
lipoqil has joined #ruby
CooloutAC has joined #ruby
postmodern has quit [Quit: Leaving]
ruisantos has quit [Client Quit]
hanmac has quit [Ping timeout: 246 seconds]
pathrocle has quit [Remote host closed the connection]
pathrocle has joined #ruby
ruisantos has joined #ruby
nemo_ has quit [Ping timeout: 265 seconds]
dhjondoh1 has joined #ruby
decoponio has joined #ruby
dhjondoh has quit [Ping timeout: 250 seconds]
dhjondoh1 is now known as dhjondoh
_blizzy_ has quit [Read error: Connection reset by peer]
skade has joined #ruby
Fredrich_ has joined #ruby
mordocai has joined #ruby
Fredrich_ is now known as Nicola-1980
pathrocle has quit [Ping timeout: 240 seconds]
_blizzy_ has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mordocai has quit [Remote host closed the connection]
vigintas has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
ramfjord has joined #ruby
<shevy> ruby ruby ruby ruby
bryanray has joined #ruby
lee-jon has joined #ruby
baroquebobcat has joined #ruby
vigintas has joined #ruby
hanmac has joined #ruby
sdothum has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 260 seconds]
Pupp3tm4st3r has joined #ruby
gustav_ has quit [Remote host closed the connection]
<jhass> ruby: No such file or directory -- ruby (LoadError)
gustav_ has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 246 seconds]
GriffinHeart has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
GriffinHeart has joined #ruby
Voker57 has joined #ruby
lee-jon has quit [Quit: lee-jon]
akem has quit [Read error: No route to host]
lee-jon has joined #ruby
akem has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<certainty> shevy: what's weired about that?
jgt has joined #ruby
<certainty> also note that this is probably not the best resource for what clojure is about. Due to the interop with awt. That's why there are so many (doto)
wpp has joined #ruby
RandyT_ has joined #ruby
vigintas has quit [Quit: vigintas]
RandyT- has joined #ruby
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
Igorshp has quit [Remote host closed the connection]
RandyT| has joined #ruby
vigintas has joined #ruby
bkxd has joined #ruby
RandyT has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
RandyT^ has joined #ruby
RandyT_ has quit [Ping timeout: 250 seconds]
Alina-malina has quit [Ping timeout: 255 seconds]
RandyT_ has joined #ruby
RandyT- has quit [Ping timeout: 240 seconds]
RandyT- has joined #ruby
RandyTa has joined #ruby
RandyT| has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
RandyT has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
RandyT^ has quit [Ping timeout: 240 seconds]
gregf has quit [Quit: WeeChat 1.3]
RandyT| has joined #ruby
RandyT_ has quit [Ping timeout: 252 seconds]
RandyT has joined #ruby
RandyT- has quit [Ping timeout: 260 seconds]
Icey has joined #ruby
<yorickpeterse> hi
RandyTa has quit [Ping timeout: 240 seconds]
prestorium has joined #ruby
RandyT_ has joined #ruby
atomical has joined #ruby
_joes__ has joined #ruby
RandyT- has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
RandyT^ has joined #ruby
Alina-malina has joined #ruby
RandyTa has joined #ruby
RandyT| has quit [Ping timeout: 256 seconds]
RandyT has quit [Ping timeout: 240 seconds]
RandyT has joined #ruby
ahmetkapikiran has joined #ruby
RandyT| has joined #ruby
RandyT_ has quit [Ping timeout: 255 seconds]
[BNC]WizJin has joined #ruby
RandyT_ has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
RandyT- has quit [Ping timeout: 256 seconds]
dhjondoh has joined #ruby
RandyT- has joined #ruby
dhjondoh has quit [Client Quit]
zenguy_pc has quit [Ping timeout: 268 seconds]
dhjondoh has joined #ruby
RandyTb has joined #ruby
idefine has joined #ruby
RandyT^ has quit [Ping timeout: 272 seconds]
RandyTa has quit [Ping timeout: 255 seconds]
RandyT has quit [Ping timeout: 244 seconds]
RandyT^ has joined #ruby
nateberkopec has joined #ruby
RandyT has joined #ruby
RandyT| has quit [Ping timeout: 240 seconds]
RandyT_ has quit [Ping timeout: 256 seconds]
stamina has quit [Ping timeout: 244 seconds]
RandyT_ has joined #ruby
[BNC]WizJin has quit [Excess Flood]
synthroid has joined #ruby
RandyT- has quit [Ping timeout: 260 seconds]
ushbkk has joined #ruby
RandyT| has joined #ruby
RandyT- has joined #ruby
stamina has joined #ruby
kraljev11 has joined #ruby
RandyTb has quit [Ping timeout: 268 seconds]
idefine has quit [Ping timeout: 272 seconds]
RandyT^ has quit [Ping timeout: 250 seconds]
WizJin has joined #ruby
RandyT has quit [Ping timeout: 250 seconds]
nemo__ has quit [Remote host closed the connection]
RandyT has joined #ruby
lee-jon has quit [Quit: lee-jon]
Rollabunna has joined #ruby
RandyT^ has joined #ruby
RandyT_ has quit [Ping timeout: 240 seconds]
diegobiavati has joined #ruby
RandyT- has quit [Ping timeout: 240 seconds]
RandyT| has quit [Ping timeout: 268 seconds]
RandyT_ has joined #ruby
<Icey> hi
RandyT- has joined #ruby
<jhass> hi
RandyT| has joined #ruby
RandyT has quit [Ping timeout: 264 seconds]
<ddv> hi
RandyT has joined #ruby
<Icey> so welcoming in here today ;-)
RandyTa has joined #ruby
RandyT^ has quit [Ping timeout: 256 seconds]
RandyT^ has joined #ruby
nemo_ has joined #ruby
RandyT- has quit [Ping timeout: 240 seconds]
RandyT_ has quit [Ping timeout: 268 seconds]
darkhex has joined #ruby
RandyT_ has joined #ruby
RandyT| has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
RandyT has quit [Ping timeout: 255 seconds]
zotherst1 has quit [Quit: WeeChat 1.2]
RandyTa has quit [Ping timeout: 240 seconds]
khebbie has joined #ruby
gusTester has joined #ruby
khebbie_ has joined #ruby
dnewkerk has joined #ruby
`tim` has joined #ruby
Igorshp has joined #ruby
RandyT^ has quit [Ping timeout: 264 seconds]
<yorickpeterse> :P
RandyT has joined #ruby
zotherstupidguy has joined #ruby
lkba has joined #ruby
RandyT_ has quit [Ping timeout: 260 seconds]
RandyT_ has joined #ruby
diegoviola has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
lkba_ has quit [Ping timeout: 240 seconds]
RandyT has quit [Ping timeout: 240 seconds]
diegoviola has quit [Read error: Connection reset by peer]
kraljev11 has quit [Ping timeout: 255 seconds]
gustav_ has quit [Remote host closed the connection]
haylon has joined #ruby
mbeasley has left #ruby ["WeeChat 0.4.2"]
RandyT_ has quit [Ping timeout: 264 seconds]
Ropeney has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
kraljev11 has joined #ruby
matp has quit [Ping timeout: 246 seconds]
khebbie has quit [Ping timeout: 265 seconds]
Ropeney has quit [Client Quit]
khebbie_ has quit [Ping timeout: 264 seconds]
skade has joined #ruby
wpp has quit [Ping timeout: 246 seconds]
gustav_ has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
gregf has joined #ruby
karapetyan has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
karapetyan has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
allcentury has quit [Ping timeout: 246 seconds]
aryaching has joined #ruby
Melpaws has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
dviola has joined #ruby
<norc> Hi, I want to read from a couple hundred devices simultaneously, while pushing the results (slightly transformed) to our REST API.
matp has joined #ruby
sgambino has joined #ruby
<norc> For now I use thread pool from the gem 'thread'
<jhass> "devices"?
<norc> jhass: Things on our network. Its all behind my libraries.
<norc> As for my question:
GriffinHeart has joined #ruby
gusTester has left #ruby [#ruby]
<norc> Given that, I was thinking of maintaining two thread pools, one to aggregate data from those devices, pushing the results into a worker queue
khebbie_ has joined #ruby
<norc> with a second thread pool continuously clearing that queue into the API
n008f4g_ has joined #ruby
<norc> (The read speed greatly exceeds the rate at which I can write to my REST API)
<norc> Is this so far a bad concept?
iceden has quit [Ping timeout: 252 seconds]
<jhass> so this is all HTTP or ...?
<norc> Nope.
<norc> The devices use their own protocol - but I have that implemented already.
<norc> The REST API is HTTP however.
<jhass> mmh
pathrocle has joined #ruby
<jhass> well, you can probably get away with a single consumer that pushes things to a typhoeus hydra
<jhass> that thing has an astonishing performance
toy_ has joined #ruby
zenguy_pc has joined #ruby
lxsameer has quit [Quit: Leaving]
<norc> My API might not appreciate being bombarded with HTTP requests. I have already successfully DoS'ed the server (even SSH failed) with HTTP. ;-)
AxonetBE has quit [Quit: AxonetBE]
<jhass> if you're not on +100% CPU already having a separate queue for each producer and the consumer iterating over these without blocking on them might help (or not and that busy loop makes everything worse actually, that's the thing with concurrency applications, you need to try out a few concepts)
<jhass> well, you asked about scaling out the consumer side..
toy has quit [Ping timeout: 246 seconds]
<norc> mm
big|bad|wolf has joined #ruby
rwilcox_ has joined #ruby
gustav_ has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
tomaz_b has quit [Ping timeout: 244 seconds]
<jhass> so you're already capable of exhausting the targets resources
<norc> jhass: Well, actually I already have something implemented, I just struggle with some basic concepts how to resolve exiting everything
<jhass> what exactly do you seek to improve?
<norc> jhass: That remark was actually about hydra in particular.
diegoaguilar has quit [Ping timeout: 240 seconds]
<jhass> I don't follow how it's not relevant in general though
krz has joined #ruby
<norc> You have a good point.
<norc> A single consumer would greatly simplify things.
_blizzy_ has quit [Ping timeout: 244 seconds]
demonlove has joined #ruby
mag42c has joined #ruby
Igorshp has quit [Remote host closed the connection]
treehug88 has joined #ruby
symbol has joined #ruby
marr has quit [Ping timeout: 244 seconds]
toy_ has quit [Remote host closed the connection]
toy has joined #ruby
yitsushi has joined #ruby
big|bad|wolf has quit [Quit: Textual IRC Client: www.textualapp.com]
JDiPierro has joined #ruby
gustav_ has joined #ruby
khebbie has joined #ruby
ahmetkapikiran has joined #ruby
toy has quit [Read error: Connection reset by peer]
toy has joined #ruby
Guest50 has joined #ruby
<symbol> Anyone know of up to date auth gems that can be used with Sinatra?
toy has quit [Client Quit]
Coldblackice has quit [Ping timeout: 255 seconds]
<symbol> Ah, just found sinatra-warden.
norc has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
dmolina has joined #ruby
_blizzy_ has joined #ruby
Nicola-1980 has quit [Ping timeout: 268 seconds]
dviola has quit [Ping timeout: 250 seconds]
<haylon> What's Sinatra Warden?
big|bad|wolf has joined #ruby
<adaedra> I suppose a way to integrate warden into sinatra
<symbol> Just a wrapper around warden for sinatra
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
big|bad|wolf has quit [Max SendQ exceeded]
JJM has joined #ruby
bMalum has quit [Quit: bMalum]
kraljev11 has quit [Quit: kraljev11]
<haylon> Nifty. I'll have to check it out
<symbol> I was hoping for a devise-like solution to save time but sinatra-authentication (which is semi deviseish) is really out of date.
_blizzy_ has quit [Read error: Connection reset by peer]
lipoqil has quit [Quit: Connection closed for inactivity]
big|bad|wolf has joined #ruby
khebbie_ has quit [Ping timeout: 240 seconds]
danman has joined #ruby
khebbie has quit [Ping timeout: 264 seconds]
diegobiavati has quit [Remote host closed the connection]
cdg has joined #ruby
Igorshp has joined #ruby
_blizzy_ has joined #ruby
sdwrage has joined #ruby
Nicola-1980 has joined #ruby
dmolina has quit [Quit: Leaving.]
sanjayu has quit [Ping timeout: 260 seconds]
treehug88 has quit [Ping timeout: 264 seconds]
wpp has joined #ruby
diegoaguilar has joined #ruby
unshadow has joined #ruby
kraljev11 has joined #ruby
ndrei has joined #ruby
O47m341 has joined #ruby
nemo_ has quit [Remote host closed the connection]
O47m341 has quit [Remote host closed the connection]
TPBallbag has joined #ruby
sanjayu has joined #ruby
sankaber has joined #ruby
<unshadow> Is there a way for me to format a string into byte sequnse ? like in [0x03, 0x00].pack('C*')
bonhoeffer has joined #ruby
krz has quit [Ping timeout: 250 seconds]
nemo_ has joined #ruby
<apeiros> unshadow: what's wrong with pack then?
bMalum has joined #ruby
krz has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
<unshadow> Nothing wrong, just can't find the way to do it :/
<unshadow> >> "Testing".pack('C*')
<ruboto> unshadow # => undefined method `pack' for "Testing":String (NoMethodError) ...check link for more (https://eval.in/454744)
freerobby has joined #ruby
roshanavand has joined #ruby
lee-jon has joined #ruby
<unshadow> is pack only for Array ?
yxhuvud has quit [Ping timeout: 250 seconds]
<apeiros> yes
<apeiros> I don't get what you want then.
<adaedra> yes, because the goal is to pack multiple variables (so an Array)
<unshadow> I want to take a string, for example: "testing" and have a byte sequence in the end
<apeiros> unshadow: a string already is a byte sequence
<apeiros> you'll have to elaborate.
treehug88 has joined #ruby
yeticry has quit [Quit: leaving]
<unshadow> I want to print out, a byte representaion of the string I take from the user, like "testing" and print out \30d \sde4 \e4dd etc...
bigmac_ has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
O47m341 has joined #ruby
<apeiros> that's quite a different thing than what you've asked before :-p
<unshadow> apeiros: Sorry, I'm having hard time explainig my self sometimes XD
<apeiros> >> "testing".unpack("H*").first.gsub(/../, '\x\0')
yxhuvud has joined #ruby
<ruboto> apeiros # => "\\x74\\x65\\x73\\x74\\x69\\x6e\\x67" (https://eval.in/454747)
blackoperat has joined #ruby
<unshadow> yey
<apeiros> unshadow: you know, examples go a long way.
pietr0 has quit [Quit: pietr0]
moei has joined #ruby
<apeiros> though, honestly, "\30d" makes no sense
<apeiros> (even less so \sde4)
blackoperat has quit [Client Quit]
<unshadow> hahah I know, just wanted to show what I ment XD
<apeiros> yes, and you made it harder to understand than necessary.
blackoperat has joined #ruby
<unshadow> ok.... any way thanks
darkhex has quit [Quit: Textual IRC Client: www.textualapp.com]
sankaber has quit [Remote host closed the connection]
bryanray has joined #ruby
Cyther has quit [Ping timeout: 255 seconds]
sankaber has joined #ruby
devdazed has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
akem has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
big|bad|wolf has joined #ruby
teclator has quit [Ping timeout: 250 seconds]
Gnomethrower has joined #ruby
lee-jon has quit [Quit: lee-jon]
teclator has joined #ruby
nemo_ has quit [Remote host closed the connection]
chrislotix has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
TheMoonMaster has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
sepp2k has joined #ruby
linuxboytoo has joined #ruby
idefine has joined #ruby
dopamean_ has quit [Ping timeout: 252 seconds]
aryaching has quit [Read error: Connection reset by peer]
lee-jon has joined #ruby
hmsimha has joined #ruby
bryanray has quit [Ping timeout: 246 seconds]
<bigmac_> can i take a number and round up to the nearest sqrt?
<bigmac_> i can do this with a loop
lee-jon has quit [Client Quit]
<bigmac_> num+=1 until sqrt==% 1 !=0
GriffinHeart has quit [Remote host closed the connection]
jgt has joined #ruby
<bigmac_> but this can take loads of time
aryaching has joined #ruby
<canton7> are you sure about that 'sqrt==%'?
<bigmac_> well, that is improper
<bigmac_> i have a loop that checks the sqrt, if its a proper whole number... no remaining decimals...
marr has joined #ruby
<monoprotic> what is "nearest square root"
<canton7> yeah, I'm failing to understand the question. some terms are unclear, and the equivalent code sample doesn't run
subscope has joined #ruby
<monoprotic> i think s/he is trying to get the least square of an integer which is equal to or greater than a given number
<apeiros> bigmac_: Math.sqrt(num).ceil**2
Rollabunna has quit [Read error: Connection reset by peer]
demonlove has quit [Ping timeout: 256 seconds]
subscope has quit [Max SendQ exceeded]
lee-jon has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
nurbson has joined #ruby
<bigmac_> oh thank you
jenrzzz has joined #ruby
<bigmac_> math is so much fun lol
<bigmac_> in ruby
David27 has joined #ruby
<apeiros> wait until you have to understand floats/doubles.
`tim` has quit [Ping timeout: 260 seconds]
<apeiros> immediate evaporation of all fun.
big|bad|wolf has joined #ruby
<monoprotic> haha
<monoprotic> so true :(
<apeiros> wife studies maths and has to learn C++. now I have to re-learn all those nasty details like how subnormals work.
hornairs has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
<zwdr> for me cl macros are filled with that kind of fun
<apeiros> or why 0.2*5 == 1.0 (that's actually one I still want to work out, though I have an idea why it might work out)
hornairs has left #ruby [#ruby]
caliostro has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<jhass> apeiros: could be worse, could be fortran :P
<monoprotic> jhass same amount of characters :P
<jhass> monoprotic: only one more reason!
Rodya_ has joined #ruby
dhjondoh has quit [Remote host closed the connection]
<apeiros> jhass: true. even though fortran is only worse because it offers less "other world value" (or how ever you want to call it)
<certainty> s/he is still limiting to two options, whereas they is completely neutral as I understand it
<jhass> certainty: I'd follow that
<bigmac_> thank you again...
`tim` has joined #ruby
<monoprotic> what does s/he exclude?
<apeiros> monoprotic: gender isn't binary ;-)
<monoprotic> i mean what pronouns
<apeiros> afaik there's no proper pronouns besides they for non-binary genders.
Nicola-1980 has quit [Ping timeout: 250 seconds]
<monoprotic> could someone assert that 'they' does not properly describe them?
rwilcox_ has quit [Quit: WeeChat 1.2-dev]
<apeiros> certainly
<zwdr> they sounds and reads a lot better as well
<monoprotic> so what makes it completely neutral
ericjphillips has joined #ruby
<apeiros> that it's commonly accepted as neutral.
<monoprotic> well thats fuzzy
<apeiros> language isn't an absolute
<monoprotic> anyway point taken, old habits die hard :)
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> heh, totally.
<apeiros> I still wonder how often I don't even notice.
<monoprotic> no one would have blinked if i said 'he'
rwilcox has joined #ruby
Nicola-1980 has joined #ruby
<monoprotic> lol
<certainty> wanna bet?
K1MOS has joined #ruby
britt_ has joined #ruby
<monoprotic> not particularly :)
karapetyan has quit [Remote host closed the connection]
K1MOS is now known as moos3
<bigmac_> num=BigDecimal.new(1000)
mghaig has joined #ruby
Cyther has joined #ruby
<bigmac_> ("%d" %num).ti_i
microx has joined #ruby
balazs has joined #ruby
<microx> Are local variables stored in self or the default definee?
<apeiros> microx: neither. they're local to the lexical context.
<bigmac_> is there a BigDecimal way to convert the number
<apeiros> bigmac_: BigDecimal(1000).to_i
<apeiros> same roundtrip as your code.
tagrudev has quit [Remote host closed the connection]
<bigmac_> lol
<bigmac_> oh i feel dumb... i would have made that mistake hundreds of times
bffff_ has joined #ruby
<microx> apeiros: https://eval.in/454755
<caliostro> hi there!
aganov has quit [Remote host closed the connection]
<apeiros> microx: #local_variables does not work that way.
joonty has quit [Quit: joonty]
<microx> apeiros: How does it work then?
Alayde has joined #ruby
<bigmac_> apeiros: if you had one look all my projects, you could turn 3000 lines into 3...
<apeiros> microx: it does not make sense to call it on a receiver. no matter on what object you call it, it will always return the same.
<microx> apeiros: What's the lexical context at the top level? Isn't it the Object class?
joonty has joined #ruby
<apeiros> microx: you could do `x = "hi"; "whatever".send(:local_variables)`
<apeiros> as said, the lexical context is relevant, not the receiver.
khebbie has joined #ruby
yashinbasement has quit [Ping timeout: 240 seconds]
<apeiros> microx: no, lexical context is orthogonal to objects.
khebbie_ has joined #ruby
<apeiros> or is it? hm…
<apeiros> microx: anyway, only some things start a new lexical context. examples: `class`, `module`, `def`. to a degree blocks do too. being closures, they're a bit special, though.
Motoservo has quit [Quit: Motoservo]
<apeiros> so *until* your code reaches one of those keywords, your lexical scope won't change.
<apeiros> so your lvars are not related to an object, but to a place in the code.
yitsushi has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
null__ has quit [Quit: void]
<apeiros> caliostro: hi there too :)
karapetyan has joined #ruby
dravine_ has joined #ruby
microx has quit [Ping timeout: 246 seconds]
shmilan has joined #ruby
dravine has quit [Ping timeout: 252 seconds]
dravine_ is now known as dravine
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanav_ has joined #ruby
idefine has quit [Remote host closed the connection]
vkey1 has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
demonlove has joined #ruby
vkey1 has quit [Client Quit]
bjaX has joined #ruby
DroidBurgundy has joined #ruby
rezas has joined #ruby
<rezas> hi
<jhass> hi
<zwdr> hey
<rezas> anybody knows a service to analyzie Gemfiles and gives report about Gems compatibility after a ruby or rails update ?
<rezas> ex. version x of foo gem is not supported in y version of ruby or rails , latest compatible version is m
karapetyan has quit [Remote host closed the connection]
<jhass> well, that's hard to assess automatically
umgrosscol has joined #ruby
idefine has joined #ruby
<jhass> if not impossible
doublemalt__ has joined #ruby
mary5030 has joined #ruby
<rezas> dependency handeling?
mary5030 has quit [Remote host closed the connection]
<apeiros> as far as it is written in the gemspec itself, bundler will already tell you
gustav_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
<rezas> hmmm
blackmesa has quit [Ping timeout: 240 seconds]
<rezas> any ideas about using rubygems.org API for doing this ?
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
tvon has joined #ruby
teclator has quit [Ping timeout: 260 seconds]
chrissonar has quit [Remote host closed the connection]
balazs has joined #ruby
doublemalt_ has quit [Ping timeout: 265 seconds]
chouhoulis has joined #ruby
rezas has left #ruby [#ruby]
Cyther has quit [Quit: Leaving]
psy_ has joined #ruby
gustav_ has joined #ruby
kimegede has quit [Quit: Linkinus - http://linkinus.com]
treehug88 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
big|bad|wolf has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
troulouliou_div2 has joined #ruby
kies^ has joined #ruby
k3asd` has joined #ruby
chouhoulis has quit [Remote host closed the connection]
v4n has joined #ruby
chouhoulis has joined #ruby
tylersmith has joined #ruby
EmeraldExplorer has joined #ruby
curses has quit [Remote host closed the connection]
IrishGringo has joined #ruby
The_Phoenix has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
The_Phoenix has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
The_Phoenix has joined #ruby
mag42c_ has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
null__ has joined #ruby
null__ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
sanjayu has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
tenderlove has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
mag42c has quit [Ping timeout: 252 seconds]
mag42c_ is now known as mag42c
dopamean_ has joined #ruby
The_Phoenix has joined #ruby
bigmac_ has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
rodfersou is now known as rodfersou|lunch
SamGerber has joined #ruby
Sam_Gerber has joined #ruby
skade has joined #ruby
Channel6 has joined #ruby
lee-jon has quit [Quit: lee-jon]
null__ has quit [Quit: void]
p0wn3d has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
riotjone_ has quit [Remote host closed the connection]
rodfersou|lunch has quit [Quit: leaving]
rodfersou has joined #ruby
rodfersou is now known as rodfersou|lunch
null__ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
devdazed has quit [Remote host closed the connection]
pathrocle has quit [Remote host closed the connection]
Akagi201 has quit [Remote host closed the connection]
pathrocle has joined #ruby
rcs has joined #ruby
britt_ has quit [Quit: Be back later ...]
tvon has quit [Quit: leaving]
big|bad|wolf has quit [Quit: Textual IRC Client: www.textualapp.com]
tenderlove has quit [Read error: Connection reset by peer]
null__ has quit [Client Quit]
demonlove has quit [Quit: Leaving]
jason^ has joined #ruby
tenderlove has joined #ruby
GriffinHeart has joined #ruby
<jason^> can anyone recommend a graphing gem?
null__ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
The_Phoenix has joined #ruby
treehug88 has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
diegoaguilar has quit [Ping timeout: 250 seconds]
e1senhorn has joined #ruby
chouhoulis has quit []
relix has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
kaleido has joined #ruby
deception1 has quit [Ping timeout: 264 seconds]
The_Phoenix has quit [Ping timeout: 240 seconds]
null__ has quit [Quit: void]
ruurd has quit [Quit: ZZZzzz…]
mghaig has quit []
<caliostro> can you please suggest me , for a ruby smb client for linux ?
null__ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
The_Phoenix has joined #ruby
bkxd has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
zotherstupidguy has quit [Quit: WeeChat 1.2]
<agentmeerkat> caliostro maybe sambal: https://github.com/johnae/sambal
<caliostro> ok
<agentmeerkat> jason what kind of graphing are you trying to do?
The_Phoenix has joined #ruby
vigintas has quit [Quit: vigintas]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
slawrence00 has joined #ruby
pwnd_nsfw has quit [Remote host closed the connection]
ruurd has joined #ruby
sdothum has joined #ruby
<agentmeerkat> Here's a list of different graphing gems: https://www.ruby-toolbox.com/categories/graphing
The_Phoenix has quit [Max SendQ exceeded]
pwnd_nsfw has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
acke has quit [Remote host closed the connection]
bryanray has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
bruce_lee has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
mnemon has quit [Ping timeout: 240 seconds]
ericjphillips has quit [Quit: Leaving.]
tenderlove has quit [Read error: Connection reset by peer]
chopin has joined #ruby
tenderlove has joined #ruby
nhhagen has joined #ruby
blaxter has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
khebbie_ has quit [Remote host closed the connection]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
khebbie has quit [Read error: Connection reset by peer]
pwnd_nfsw has joined #ruby
ericjphillips has joined #ruby
nisstyre has quit [Quit: WeeChat 1.3]
idefine has quit [Remote host closed the connection]
pwnd_nsfw has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 265 seconds]
podman has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aufi has quit [Quit: Konversation terminated!]
vigintas has joined #ruby
roshanav_ has quit [Remote host closed the connection]
jgpawletko has joined #ruby
null__ has quit [Quit: ZNC - http://znc.in]
m8 has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
shmilan has quit [Ping timeout: 240 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
tenderlove has quit [Read error: Connection reset by peer]
null__ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
shmilan has joined #ruby
David27 has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 256 seconds]
blaxter has joined #ruby
IrishGringo has quit [Remote host closed the connection]
davedev24 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Coldblackice has joined #ruby
tjohnson has joined #ruby
teclator has joined #ruby
ramfjord has joined #ruby
ndrei has joined #ruby
axl_ has joined #ruby
tenderlove has joined #ruby
skade has joined #ruby
<akahn> I want to start a webrick server in a thread and then wait until the server is listening before making requests to it in my main thread. how would I go about doing that?
_blizzy_ has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
stan has quit [Ping timeout: 244 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
syath has joined #ruby
retornam has joined #ruby
<agentmeerkat> This describes how to programatically interact with the webrick server: http://ruby-doc.org/stdlib-2.0.0/libdoc/webrick/rdoc/WEBrick.html
ramfjord has quit [Ping timeout: 246 seconds]
roshanavand has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 240 seconds]
kraljev11 has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
nemo_ has joined #ruby
<akahn> agentmeerkat: thanks, I've been reading that, but it doesn't describe how to do what I need to do. I think I need a ConditionVariable
<akahn> to wait and signal between the two threads
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kraljev11 has joined #ruby
tenderlove has joined #ruby
kraljev11 has quit [Read error: Connection reset by peer]
<agentmeerkat> I haven't actually done threading with Ruby, this looks like a good read about it though: https://blog.engineyard.com/2013/ruby-concurrency
nemo_ has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
finisherr has joined #ruby
The_Phoenix has joined #ruby
dANO_ has quit []
moos3 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: ZZZzzz…]
<agentmeerkat> One thing that clojure excells at is concurrent programming: http://clojure.org/concurrent_programming
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
<zwdr> I've written an IRCbot, and it took only around 5 lines to make it multithreaded
<agentmeerkat> zwdr is that code on github?
Peg-leg has quit [Quit: Leaving.]
<zwdr> might not be a realistic case for bigger apps, but the base is simple
shmilan has quit [Ping timeout: 240 seconds]
<zwdr> yea agentmeerkat, sec
<tubbo> yeah i've been experimenting with multi-threading with this midi sequencer dsl i built in ruby
SCHAAP137 has quit [Remote host closed the connection]
<agentmeerkat> zwdr Thanks!
step1step2_ has joined #ruby
<zwdr> it has a read-thread, write-thread and spawns an additional thread for handling replies
atmosx has joined #ruby
<havenwood> akahn: Threading rules: 1) Don't do it, 2) Don't share data, 3) Don't share mutable data, 4) Synchronize access to shared mutable data.
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
blaxter has quit [Ping timeout: 272 seconds]
<havenwood> akahn: The earliest rule you can comply with the better.
roshanavand has joined #ruby
k3asd` has quit [Ping timeout: 240 seconds]
kraljev11 has joined #ruby
Cache_Money has joined #ruby
<akahn> havenwood: given the problem I described, do you see a solution that doesn't use threads?
solars has quit [Ping timeout: 250 seconds]
britt_ has joined #ruby
aldodelgado has joined #ruby
riotjones has joined #ruby
step1step2 has quit [Ping timeout: 265 seconds]
<havenwood> akahn: Maybe modify WEBrick so it notifies you when status changes to :Start, dunno. I'm not sure I quite get what you're doing.
<havenwood> akahn: Here's a great concurrency gem for Ruby: https://github.com/ruby-concurrency/concurrent-ruby#readme
<tubbo> there's also celluloid..
riotjones has quit [Read error: Connection reset by peer]
<tubbo> but that's more for building concurrent applications
<akahn> good point, I can just poll the server's state
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<akahn> kinda wanna figure out this ConditionVariable way though :D
centrx has joined #ruby
riotjones has joined #ruby
herbst has quit [Remote host closed the connection]
<havenwood> akahn: Maybe looking at futures will give you ideas?: http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Edge/FutureShortcuts.html
roshanavand has quit [Ping timeout: 240 seconds]
TomyWork has quit [Remote host closed the connection]
dfinninger has joined #ruby
tenderlove has quit [Ping timeout: 256 seconds]
<agentmeerkat> Futures looks neat, but it also looks very alpha, not even beta - "Edge features are under active development and may change frequently."
chouhoul_ has quit [Remote host closed the connection]
trautwei_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
<havenwood> agentmeerkat: I just point there since I'm not sure what akahn wants exactly and the new edge futures combines concepts from Promise, IVar, Probe, etc.
bruno- has quit [Ping timeout: 246 seconds]
<akahn> thanks
<agentmeerkat> havenwood that's fair
sphex has quit [Ping timeout: 240 seconds]
kraljev11 has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
cschneid_ has joined #ruby
tenderlove has joined #ruby
d10n-work has joined #ruby
riotjones has quit [Ping timeout: 265 seconds]
htmldrum has joined #ruby
nurbson has quit []
sphex has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
K1MOS has joined #ruby
step1step2_ has quit [Quit: Leaving]
Gnomethrower has joined #ruby
bmurt has joined #ruby
step1step2 has joined #ruby
K1MOS has quit [Read error: Connection reset by peer]
kraljev11 has joined #ruby
cwong_on_irc has joined #ruby
eminencehc has joined #ruby
QualityAddict has quit []
blaxter has joined #ruby
rbennacer has joined #ruby
Coldblackice has quit [Ping timeout: 268 seconds]
soc42 has joined #ruby
jenrzzz has joined #ruby
Asher has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
linuxboytoo has quit [Quit: Leaving...]
kraljev11 has quit [Ping timeout: 255 seconds]
synthroid has quit [Remote host closed the connection]
gustav_ has quit [Remote host closed the connection]
`tim` has joined #ruby
NeverDie has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
bMalum has quit [Quit: bMalum]
rewzn has joined #ruby
bMalum has joined #ruby
bruno- has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has quit [Client Quit]
arup_r has joined #ruby
duderonomy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 252 seconds]
britt_ has quit [Ping timeout: 255 seconds]
britt_ has joined #ruby
symm- has joined #ruby
ruurd has joined #ruby
<Rennex> er, how do i apply map() to an enumerator and receive another enumerator?
bruno- has quit [Ping timeout: 272 seconds]
<havenwood> >> [0, 1].cycle.lazy.map { |n| n + 42 }
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruboto> havenwood # => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: [0, 1]:cycle>>:map> (https://eval.in/454883)
bruno- has joined #ruby
<havenwood> Rennex: lazy is one option
microx has joined #ruby
<Rennex> havenwood: ok... is there a 1.9.3-compatible option?
tenderlove has quit [Read error: Connection reset by peer]
atomical has joined #ruby
Soda has joined #ruby
<havenwood> 1.9 is dead, long live 2.2!
<sharkman> test
tenderlove has joined #ruby
<microx> Why is the first value false? https://eval.in/454884
<Rennex> havenwood: i wish it were so...
<havenwood> Rennex: mmm :)
microx has quit [Client Quit]
<zwdr> well, I have to work with PHP 5. It's a struggle I tell you!
adac has quit [Ping timeout: 240 seconds]
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
shoutsid has quit [Remote host closed the connection]
<havenwood> micro, left already? Anyways, :is_a != :is_a?
<Ox0dea> Rennex: Are you sure you need another Enumerator?
Motoservo has joined #ruby
rbowlby has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
Couch has quit [Ping timeout: 252 seconds]
<Rennex> Ox0dea: yes, unless i change the method that takes an enumerator and processes stuff coming out of it
The_Phoenix1 has joined #ruby
bruno- has joined #ruby
aldodelgado has quit [Quit: aldodelgado]
bruno- is now known as Guest51375
ruurd has quit [Quit: ZZZzzz…]
aryaching has quit [Read error: Connection reset by peer]
The_Phoenix has quit [Ping timeout: 256 seconds]
ferr has joined #ruby
shmilan has joined #ruby
Icey has quit [Ping timeout: 265 seconds]
Pupeno has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
iceden has joined #ruby
mrtomme has joined #ruby
joonty has quit [Quit: joonty]
wldcordeiro has joined #ruby
aryaching has joined #ruby
amclain has joined #ruby
purplexed^ has joined #ruby
Guest51375 has quit [Ping timeout: 260 seconds]
axl_ has quit [Quit: axl_]
pdoherty has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
bruno-_ has joined #ruby
towski_ has joined #ruby
<purplexed^> hi. I'm having trouble with http://pastebin.com/1Ax2cAPQ ... on line 17 I am setting a variable to a value from a class. But for some reason the program doesn't do anything after that line. If I remove it, it runs normally.. You can see the class at the bottom. Anyone know what I am doing wrong ?
<ruboto> purplexed^, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/ced6d69764f71bc7f9f6
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
kraljev11 has joined #ruby
<jhass> purplexed^: could you elaborate on "doesn't do anything"? sit there? exit?
<Ox0dea> Rennex: Well, Array#to_enum exists in 1.9, but methinks your thing should quack a little louder.
<purplexed^> it doesn't crash... it just doesn't seem to move beyond that point... anything I send through the wire seems to be ignored
krzkrz has joined #ruby
<purplexed^> I'm very new to ruby... can I debug this some way, ... I'm using rubymine
<jhass> purplexed^: are you sure you send a \n over the wire?
krz has quit [Ping timeout: 264 seconds]
inteq has quit [Remote host closed the connection]
wpp has quit [Quit: ZZZzzz…]
<Rennex> Ox0dea: i think Enumerator.new works fine
<purplexed^> jhass: actually that's not so important, since it doesn't even output what is on line 18
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
<Ox0dea> > warning: Enumerator.new without a block is deprecated; use Object#to_enum
<Ox0dea> Rennex: ^ Just something to bear in mind.
<Ox0dea> Using Enumerator where you mean Array is wasteful and silly.
<jhass> purplexed^: that seems quite unlikely. Are you sure you're actually running the code you're looking at?
<purplexed^> jhass: but if I remove the "state" stuff everything works
TPBallbag has quit []
<purplexed^> jhass: yes, I am running the code
vollov_ has joined #ruby
<purplexed^> and I can connect to it
<purplexed^> and if I add a line in the loop to echo what is sent to it... it responds
<jhass> and you do see the "... connected" puts?
tenderlove has joined #ruby
<purplexed^> yes
<purplexed^> lemme run it again
<Rennex> Ox0dea: yeah, i mean Enumerator.new {|y| my_code and y << my_result }
p0wn3d has quit [Ping timeout: 264 seconds]
<purplexed^> Welcome to PingBuddy v0.0.1
<purplexed^> 127.0.0.1:34012 is connected
bonhoeffer has joined #ruby
<purplexed^> it works until that line
mark2 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :card.freenode.net"]
mary5030 has quit [Remote host closed the connection]
<Ox0dea> Rennex: Sure, that'd do; I thought you still intended to #map before converting to an Enumerator.
shoutsid has joined #ruby
jackjackdripper has joined #ruby
bjaX has quit [Read error: Connection reset by peer]
yitsushi is now known as yitsushi^away
<purplexed^> i'm just setting a variable to a string.. its pretty weird :)
<purplexed^> oh
<purplexed^> is my class declaration wrong?
yitsushi^away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
<purplexed^> I guess I can't retrieve a value, when it's just declared like that, can I...
ramfjord has joined #ruby
<purplexed^> http://www.rubyfleebie.com/enumerations-and-ruby/ does the same thing though, so I guess it's alright
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
<Rennex> Ox0dea: well the only reason i wanted map() was to filter incoming values from an enumerator
ndrei has joined #ruby
rcvalle has joined #ruby
Rodya_ has quit [Quit: Leaving...]
<jhass> purplexed^: ah, I see what's going on. Please add Thread.abort_on_exception = true at the top of your script
tenderlove has quit [Read error: Connection reset by peer]
idefine has joined #ruby
<purplexed^> hmmm, interesting. Now it kills the connection right away
<Rennex> Ox0dea: also... my method read_receipts() takes an enumerator (of lines of text) and finds receipts in it. Now, since it takes a parameter, it can't "return enum_for(:read_receipts) unless block_given?" :P
p0wn3d has joined #ruby
<jhass> purplexed^: read the output of where you run your script
senayar has quit []
tubuliferous_ has joined #ruby
<Rennex> Ox0dea: so i have to call it with a block, or put the function in class Enumerator so that i can call linesource.read_receipts.whatever
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
eminencehc has joined #ruby
skade has joined #ruby
<purplexed^> cool, now I get an actual error... thanks alot
<purplexed^> PingBuddy/main.rb:19:in `block (2 levels) in <top (required)>': uninitialized constant ConsoleState (NameError)
<purplexed^> I can work with it from here. Cheers
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
linduxed has quit [Ping timeout: 250 seconds]
tenderlove has joined #ruby
soc42 has quit [Remote host closed the connection]
<Rennex> it'd be great if a method could return, you know, "itself" as an enum, instead of relying on Kernel.enum_for to call it and thus lose the ability to take arguments
<jason^> agentmeerkat: graphing library would be good to throw random dates/times and temperatures on a graph
NeverDie has joined #ruby
<purplexed^> jhass: does it make sense that I should use class level variables, instead of what I am doing ?
linduxed has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
hmsimha has quit [Ping timeout: 265 seconds]
<purplexed^> i mean prefix HELO, and CONSOLE with @@
<jhass> no
<jhass> not at all
<purplexed^> ok
<jhass> the valid usecases for class variables are very very rare
eminencehc has quit [Remote host closed the connection]
<purplexed^> so, the class definition looks correct ?
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ebok has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bryanray has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
ferr has quit [Ping timeout: 252 seconds]
<purplexed^> ohhhh
<purplexed^> the class isn't defined yet, because it's below the other code
Jardayn has joined #ruby
kalusn has quit [Remote host closed the connection]
britt_ has quit [Quit: Be back later ...]
<purplexed^> yes, now it works
mistermocha has joined #ruby
<purplexed^> thanks again
iceden has quit [Ping timeout: 272 seconds]
aRaym has joined #ruby
<purplexed^> i should go learn how to include other classes now, so it's not just one file
yitsushi has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
aRaym has left #ruby [#ruby]
aRaym has joined #ruby
Contigi has joined #ruby
spastorino has quit []
spastorino has joined #ruby
Sou|cutter has joined #ruby
mistermocha has quit [Remote host closed the connection]
<agentmeerkat> jason^ try taking a look at chartkick: http://www.rubydoc.info/gems/chartkick/1.4.1
tenderlove has quit [Ping timeout: 240 seconds]
yitsushi has quit [Read error: Connection reset by peer]
<pipework> jhass: I haven't seen a really good use of class variables before. I've only seen silly shortcuts taken to not extract an object to share and then you're suddenly using inheritance to use the shortcut.
c0m0 has quit [Ping timeout: 240 seconds]
caliostro has quit [Quit: Exit-Chat]
<pipework> Do you know of any really good use cases for a class variable? I can't even find one on the internets.
<jhass> no, but I can't prove non-existence
rodfersou|lunch is now known as rodfersou
vollov_ has quit [Quit: Leaving...]
ruurd has quit [Quit: ZZZzzz…]
<apeiros> if class variables were only shared across a class and its instances. that'd be jolly nice :-/
synthroid has joined #ruby
<jhass> apeiros: you mean like it is in Crystal? :P
<Ox0dea> pipework: "Module variables" do occasionally prove useful, and they're really just class variables, so there's that.
roshanavand has joined #ruby
sarlalian has joined #ruby
<apeiros> jhass: you could write a generator for that
Pumukel has quit [Ping timeout: 265 seconds]
<pipework> Ox0dea: I'm looking for a use case that really says that I need a class variable for it.
* apeiros says something he doesn't like about ruby, generator says "that's been done better in crystal!"
Icey has joined #ruby
mistermocha has joined #ruby
<jhass> :P
tenderlove has joined #ruby
<pipework> Maybe tenderlove has had a use case that demanded a class variable and all its behaviour!
<Ox0dea> gems $ ag @@ | wc -l
<Ox0dea> 821
<Ox0dea> pipework: ^ Maybe do some exploring of that variety.
<jhass> apeiros: tbf it doesn't have class level instance vars, so it would really suck if it were otherwise
<pipework> Ox0dea: Hm, might not be a bad idea there.
Puffball has quit [Remote host closed the connection]
shoutsid has quit [Remote host closed the connection]
blaxter has quit [Ping timeout: 255 seconds]
<Ox0dea> pipework: https://eval.in/454905
pietr0 has joined #ruby
jobewan has joined #ruby
<Ox0dea> That's a silly thing, of course, but module variables were the right choice.
roshanavand has quit [Ping timeout: 240 seconds]
dfockler has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
blackmesa has joined #ruby
ruurd has joined #ruby
leafybasil has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
aRaym has left #ruby [#ruby]
skade has joined #ruby
K3VA has joined #ruby
ruurd has quit [Client Quit]
iceden has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
ngscheurich has joined #ruby
tubuliferous_ has quit [Ping timeout: 256 seconds]
skade has quit [Client Quit]
blackmesa has joined #ruby
lkba has quit [Remote host closed the connection]
blaxter has joined #ruby
eminencehc has joined #ruby
roshanavand has joined #ruby
DroidBur_ has joined #ruby
<ibouvousaime> Hello Im a rub newb can someone help me know where I made a mistake on this code http://pastebin.com/ri5PZUbn
<ruboto> ibouvousaime, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/fc064938c6aa67850014
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
firstdayonthejob has joined #ruby
bmurt has joined #ruby
<tobiasvl> neat
<centrx> You seem to believe you made a mistake?
<ibouvousaime> sorting.rb:9:in `block in <main>': undefined method `+' for nil:NilClass (NoMethodError)
<ibouvousaime> from sorting.rb:9:in `each'
<ibouvousaime> from sorting.rb:9:in `<main>'
DroidBur_ has quit [Read error: Connection reset by peer]
tenderlove has quit [Read error: Connection reset by peer]
<ibouvousaime> thats the error I get :(
<tobiasvl> ibouvousaime: what's "frequency"?
<Ox0dea> ibouvousaime: In your code, `numberoftimes[word]` is always nil, and you can't add to `nil`.
DroidBur_ has joined #ruby
finisherr_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
<ibouvousaime> tobiasvl, sorry wrong link http://pastebin.com/F2c6ZiQs
<ruboto> ibouvousaime, as I told you already, please use https://gist.github.com
DroidBurgundy has quit [Ping timeout: 252 seconds]
tenderlove has joined #ruby
gizmore has joined #ruby
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finisherr has quit [Ping timeout: 252 seconds]
finisherr_ is now known as finisherr
<tobiasvl> ibouvousaime: specifically, Hash.new(0) will use 0 as the default value instead of nil
<ibouvousaime> Ox0dea, so how could I fix it, Im on my first day on ruby tbh
<ibouvousaime> ?*
<Ox0dea> ibouvousaime: But you were here yesterday?
<ibouvousaime> I was about to start
`tim` has joined #ruby
<ibouvousaime> so I was asking on the IDEs
<tobiasvl> I gave you the solution above
<ibouvousaime> before going to bed
<ibouvousaime> I wrote frequence my mistake instead of numberoftimes, I fixed that but it wasnt the main problem apparently
<ibouvousaime> tobiasvl,
ruurd has joined #ruby
blueOxigen has joined #ruby
<Ox0dea> ibouvousaime: `foo += bar` is "syntactic sugar" for `foo = foo + bar`.
Rollabunna has quit [Quit: Leaving...]
danman has quit [Quit: danman]
DroidBur_ has quit []
<Ox0dea> Keying into a Hash with a nonexistent key returns `nil`, so `foo[bar] += baz` invokes `foo[bar] = foo[bar] + baz`, and since `bar` isn't a valid key into `foo`, that becomes `nil + baz` and you get a NoMethodError.
karapetyan has joined #ruby
<Ox0dea> >> nil.to_respond_to? :+
<ruboto> Ox0dea # => undefined method `to_respond_to?' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/454916)
<Ox0dea> >> nil.respond_to? :+ # Derp.
<ruboto> Ox0dea # => false (https://eval.in/454917)
<ibouvousaime> humm
skade has joined #ruby
<ibouvousaime> I think I get it ...
JJM has joined #ruby
miah has joined #ruby
mblagden has joined #ruby
lapide_viridi has joined #ruby
roshanavand has quit [Remote host closed the connection]
wallerdev has joined #ruby
centrx has quit [Remote host closed the connection]
jessemcgilallen has joined #ruby
skcin7 has joined #ruby
<Ebok> is there a shorthand for writing if x == abc || y == abc || z == abc ?
shoutsid has joined #ruby
wpp has joined #ruby
yosiat has joined #ruby
<Ox0dea> Ebok: `if [x, y, z].include?(abc)`.
<Ox0dea> You miss out on short-circuit evaluation, though.
darkf has quit [Quit: Leaving]
<Ebok> Hm. ugly but fairenough
<Ox0dea> Why "ugly"?
<Ebok> short-circuit?
<eam> does include? not short-circuit?
<Ebok> Oh you mean if true stop looking at the rest
ruurd has quit [Quit: ZZZzzz…]
<Ox0dea> eam: Well, yeah, but you've got to construct the Array first.
<Ox0dea> Ebok: Yes, that.
blackmesa has quit [Quit: WeeChat 1.3]
<eam> yeah, definitely more expensive
roshanavand has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
miah_ has joined #ruby
shoutsid has quit [Remote host closed the connection]
<Ox0dea> ibouvousaime: As tobiasvl suggested, you want to create a Hash with a default value.
pietr0 has quit [Quit: pietr0]
<ibouvousaime> yeah
<ibouvousaime> I fixed it
<ibouvousaime> finnally
miah has quit [Disconnected by services]
miah_ is now known as miah
blackmesa has joined #ruby
<ibouvousaime> by having numberoftimes= Hash.new(0) instead of numberoftimes= Hash.new
adac has joined #ruby
mikecmpbll has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby
lapide_viridi has quit [Quit: Leaving]
blaxter has quit [Ping timeout: 240 seconds]
shoutsid has joined #ruby
mary5030 has joined #ruby
shinnya has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
mary5030 has quit [Remote host closed the connection]
unshadow has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
maletor has joined #ruby
mary5030 has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
lea has quit [Ping timeout: 240 seconds]
kellabyte has quit [Ping timeout: 240 seconds]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
nuck has quit [Ping timeout: 240 seconds]
AdamMeghji has quit [Ping timeout: 240 seconds]
kellabyte_ has joined #ruby
manveru has quit [Ping timeout: 240 seconds]
pmarreck has quit [Ping timeout: 240 seconds]
JDiPierro has quit [Remote host closed the connection]
ahuman has joined #ruby
_joes__ has quit [Quit: No Ping reply in 180 seconds.]
lea has joined #ruby
ggherdov has quit [Ping timeout: 240 seconds]
lele has quit [Ping timeout: 240 seconds]
ht__ has joined #ruby
AdamMeghji has joined #ruby
aspiers has quit [Ping timeout: 240 seconds]
pmarreck has joined #ruby
nuck has joined #ruby
machty has quit [Ping timeout: 240 seconds]
PhilK has quit [Ping timeout: 240 seconds]
sonOfRa_ has joined #ruby
sonOfRa has quit [Quit: Bye!]
whippythellama has quit [Ping timeout: 240 seconds]
livcd has quit [Ping timeout: 240 seconds]
silverdust has quit [Ping timeout: 240 seconds]
manveru has joined #ruby
livcd has joined #ruby
lele has joined #ruby
cscheib_ has joined #ruby
inteq has joined #ruby
_joes__ has joined #ruby
tjohnson has quit [Ping timeout: 240 seconds]
cscheib has quit [Ping timeout: 240 seconds]
Olipro has quit [Ping timeout: 240 seconds]
silverdust has joined #ruby
lele has quit [Max SendQ exceeded]
<tobiasvl> yes, like I suggested
soloone has quit [Ping timeout: 240 seconds]
Olipro has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjohnson has joined #ruby
lele has joined #ruby
silverdust is now known as Guest83086
PhilK has joined #ruby
JDiPierro has joined #ruby
jamo__ has quit [Ping timeout: 240 seconds]
shoutsid has quit [Remote host closed the connection]
Jamo has joined #ruby
diego2 has joined #ruby
soloone has joined #ruby
diego2 is now known as diegoviola
pdoherty has quit [Ping timeout: 264 seconds]
machty has joined #ruby
Igorshp has quit [Remote host closed the connection]
ggherdov has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
shoutsid has joined #ruby
nemo_ has joined #ruby
roshanav_ has joined #ruby
ledestin has joined #ruby
blue_deref has joined #ruby
riotjones has joined #ruby
tenderlove has quit [Ping timeout: 250 seconds]
d5sx43 has joined #ruby
SuzieQueue has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
cantaberry has quit [Ping timeout: 260 seconds]
sonOfRa_ is now known as sonOfRa
atmosx has quit [Ping timeout: 240 seconds]
based_pdev_ has joined #ruby
<sharkman> whats the name of the ruby rails channel?
jgt has quit [Ping timeout: 264 seconds]
<ruurd> #rubyonrails
O47m341 has quit [Ping timeout: 250 seconds]
rehat has joined #ruby
Puffball has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
tenderlove has quit [Read error: Connection reset by peer]
<haylon> shevy, or jhass, isn't there one of those << or ? commands that says that same thing?
ramfjord has joined #ruby
Cyther has joined #ruby
nw has quit [Ping timeout: 250 seconds]
<jhass> haylon: not sure I get what you're asking
`based_pdev` has quit [Ping timeout: 250 seconds]
DenSchub has quit [Ping timeout: 250 seconds]
<haylon> Like when you guys get ruboto to say where to go for rails, or the other channels for regular banter
platzhirsch has left #ruby [#ruby]
DenSchub has joined #ruby
<jhass> ?rails haylon
<ruboto> haylon, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
tkuchiki has joined #ruby
nw has joined #ruby
tenderlove has joined #ruby
nw is now known as Guest95790
<haylon> My apologies about that. I just remembered that you seemed to know most of those tricks
<adaedra> jhass knows everything.
blackoperat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
danman has joined #ruby
kraljev11 has quit [Ping timeout: 240 seconds]
dotrb has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
danman has quit [Read error: Connection reset by peer]
britt_ has joined #ruby
tenderlove has joined #ruby
rdark has quit [Quit: leaving]
<dotrb> this loop breaks whenever i try to use string interpolation within it. why? http://pastie.org/private/0koi6pojarzrpmffbwiobw
roshanav_ has quit [Remote host closed the connection]
tenderlove has quit [Client Quit]
jenrzzz has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
<dotrb> for the life of me i cant seem to build a string out of two variables within this loop in irb, lol
Guest95790 is now known as nw1
nw1 is now known as nw2
nw2 is now known as nw3
nw3 is now known as nw4
bMalum has joined #ruby
diego2 has joined #ruby
weaksauce has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
kirun has joined #ruby
diego2 has quit [Client Quit]
<dotrb> what did i do wrong in there
m8 has quit [Quit: Sto andando via]
diegoviola has quit [Ping timeout: 250 seconds]
aspiers has joined #ruby
tenderlove has joined #ruby
whippythellama has joined #ruby
diegoviola has joined #ruby
tenderlove has quit [Client Quit]
<dotrb> whoops.. irl the loop doestnt have a trailing slash within the single quotes
tenderlove has joined #ruby
tenderlove has quit [Changing host]
tenderlove has joined #ruby
tenderlove has quit [Client Quit]
shoutsid has quit [Remote host closed the connection]
tenderlove has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> >> (0..255).each {|i| v = i.to_s(16); print "\\x#{v}" } # probably not the output you're expecting, but...
<ruboto> jhass # => \x0\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c ...check link for more (https://eval.in/454929)
tenderlove has quit [Client Quit]
shoutsid has joined #ruby
tenderlove has joined #ruby
<dotrb> jhass: you rock.
<dotrb> jhass: thank you
<dotrb> exactly the output i want :)
tenderlove has quit [Client Quit]
tkuchiki has quit [Read error: Connection reset by peer]
<dotrb> oh, escaping the escape chars, lol
<dotrb> QE
d5sx43 has quit [Remote host closed the connection]
<jhass> >> (0..255).each {|i| print "\\x#{i.to_s(16)}" } # could condense it a little
<ruboto> jhass # => \x0\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c ...check link for more (https://eval.in/454930)
tenderlove has joined #ruby
<adaedra> mh
<dotrb> whoah, that was rad
symbol_ has joined #ruby
tenderlove has quit [Client Quit]
<adaedra> >> (0..255).each do { |i| print("\\x%x" % i) }
<ruboto> adaedra # => /tmp/execpad-323584f6b23f/source-323584f6b23f:2: syntax error, unexpected '|', expecting '}' ...check link for more (https://eval.in/454931)
<adaedra> er
<adaedra> >> (0..255).each { |i| print("\\x%x" % i) }
<ruboto> adaedra # => \x0\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c ...check link for more (https://eval.in/454932)
<dotrb> adaedra: thanks!
<jhass> >> 255.times {|i| print "\\x%x" % i }
<ruboto> jhass # => \x0\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c ...check link for more (https://eval.in/454933)
<Ebok> lol
troulouliou_div2 has quit [Remote host closed the connection]
<dotrb> i need to find a good ruby text book
symbol has quit [Ping timeout: 260 seconds]
tenderlove has joined #ruby
gustav__ has joined #ruby
hooper has joined #ruby
tenderlove has quit [Changing host]
tenderlove has joined #ruby
hooper has quit [Max SendQ exceeded]
uber has quit [Ping timeout: 240 seconds]
nw4 is now known as nw1
nw1 is now known as nw2
lea has quit [Ping timeout: 268 seconds]
nw2 is now known as nw3
hooper has joined #ruby
hooper has quit [Max SendQ exceeded]
hooper has joined #ruby
hooper has quit [Max SendQ exceeded]
hooper has joined #ruby
hooper has quit [Max SendQ exceeded]
hooper has joined #ruby
wallerdev has quit [Quit: wallerdev]
hooper has quit [Max SendQ exceeded]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hooper has joined #ruby
hooper has quit [Max SendQ exceeded]
Synthead has quit [Remote host closed the connection]
ledestin has quit [Read error: Connection reset by peer]
diegoaguilar has quit [Ping timeout: 240 seconds]
kalusn has joined #ruby
lsmola_ has quit [Ping timeout: 265 seconds]
idefine has quit [Remote host closed the connection]
jas02 has quit [Quit: jas02]
bluOxigen has joined #ruby
bb010g has joined #ruby
idefine has joined #ruby
<BraddPitt> dotrb for basics or something specific?
d5sx43 has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
shoutsid has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 246 seconds]
paulcsmith has joined #ruby
karapetyan has quit [Remote host closed the connection]
<dotrb> BraddPitt: to take me from basic to advanced, thoroughly in depth coverage of the language
The_Phoenix1 has quit [Quit: Leaving.]
<adaedra> ?books
<ruboto> You can find a list of recommended books at http://ruby-community.com/pages/links
karapetyan has joined #ruby
kidoz has joined #ruby
but3k4 has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
bryanray has joined #ruby
d5sx43 has quit [Remote host closed the connection]
shoutsid has joined #ruby
<BraddPitt> there are a lot of books missing from there adaedra
nw3 is now known as nw1
nw1 is now known as nw2
uber has joined #ruby
<adaedra> BraddPitt: do a pull request, I'm sure apeiros will be happy to have this input
<BraddPitt> POODR, Eloquent Ruby, Well Grounded Rubyist
<BraddPitt> cool, will do
idefine has quit [Remote host closed the connection]
tenderlove has joined #ruby
tenderlove has joined #ruby
KensoDev has joined #ruby
idefine has joined #ruby
karapetyan has quit [Remote host closed the connection]
but3k4 has joined #ruby
stannard_ has joined #ruby
<BraddPitt> wait
<BraddPitt> wtf
swgillespie has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
<BraddPitt> its in the repo
dfinninger has quit [Remote host closed the connection]
<BraddPitt> latest build isnt deployed?
<adaedra> apeiros: ^
<BraddPitt> apeiros fix please :<
<shevy> apeiros fixes all the things
<adaedra> It is indeed some versions old
purplexed^ has left #ruby [#ruby]
<apeiros> yes, I'm behind. part of the plan is to get to a system until end of year where more people than just me can deploy. removing me as a bottleneck.
kies^ has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 240 seconds]
<adaedra> yay, more bottlenecks
idefine has quit [Ping timeout: 255 seconds]
<dotrb> lol
diegoaguilar has joined #ruby
karapetyan has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<adaedra> apeiros: btw, I've been re-working on `derpy's rubydoc code. Once this will be done, it will be, I think, easier to stuff it into ruboto.
diegoviola has quit [Ping timeout: 260 seconds]
<apeiros>
<Ox0dea> apeiros: And also increasing the bus factor to >1.
baweaver has joined #ruby
fsociety has joined #ruby
<fsociety> Is super a language keyword or a method?
<apeiros> Ox0dea: hm?
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> fsociety: keyword
fsociety is now known as Guest56883
Guest56883 is now known as fsociety_
fsociety_ is now known as ross
tenderlove has joined #ruby
<Ox0dea> fsociety_: The #method method lets you ask that question of the interpreter itself, for reference.
<apeiros> Ox0dea: that has already happened
ross is now known as Guest76215
Guest76215 has quit [Client Quit]
<apeiros> ruboto's source is available to the ops, and ruby-community's code is public. all it'd need is a new server if I were gone.
nw2 is now known as nw1
<Ox0dea> Fair.
choke has joined #ruby
momomomomo has joined #ruby
cloaked1_ has quit [Quit: bbiab]
baroquebobcat has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
cdg_ has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
pdoherty has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
bhegel has joined #ruby
baroquebobcat has joined #ruby
<shevy> apeiros is a bottleneck!!!
<eam> man, what's with the personal attacks on appearance
<shevy> Ox0dea is #method a method?
cdg has quit [Remote host closed the connection]
d5sx43 has joined #ruby
<jhass> >> method(:method)
<ruboto> jhass # => #<Method: Object(Kernel)#method> (https://eval.in/454941)
tvw has quit [Remote host closed the connection]
<shevy> hmm
<shevy> an Object#method
<adaedra> &ri Obect#method
<`derpy> No results
<adaedra> &ri Object#method
<adaedra> You could correct, `derpy
chrislotix has quit []
<shevy> method instance method
<shevy> ah... a "Method object" not a "method object". A method that is an object which is a method.
tenderlove has quit [Read error: Connection reset by peer]
_aeris_ has quit [Remote host closed the connection]
blackoperat has joined #ruby
_aeris_ has joined #ruby
tenderlove has joined #ruby
NeverDie has joined #ruby
mag42c has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
baweaver has quit [Remote host closed the connection]
<jhass> >> method(:method).call(:method)
<ruboto> jhass # => #<Method: Object(Kernel)#method> (https://eval.in/454945)
skade has joined #ruby
aibot has quit [Remote host closed the connection]
fsr9 has joined #ruby
aibot has joined #ruby
<rehat> is there a git gem to connect to a private github server?
jackjackdripper has quit [Quit: Leaving.]
<jhass> rehat: you mean an github api gem?
<rehat> yeah
lifeonmars has joined #ruby
nfk|laptop has quit [Quit: yawn]
NeverDie has quit [Max SendQ exceeded]
<jhass> I would expect octokit to be configurable in that regard, let's see
jessemcgilallen has joined #ruby
eikood has quit [Quit: ByeBye]
mag42c has joined #ruby
<rehat> ahh octokit looks nice, just wondering if I can configure it so connect to a private github server that my company has
jessemcgilallen has quit [Client Quit]
<rehat> jhass: nice! thanks dude
d5sx43 has quit [Remote host closed the connection]
kidoz has quit [Quit: Ухожу я от вас]
blackoperat has quit [Quit: Textual IRC Client: www.textualapp.com]
bMalum has quit [Quit: bMalum]
riotjones has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
techsethi has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iateadonut has left #ruby [#ruby]
skade has quit [Quit: Computer has gone to sleep.]
kies^ has joined #ruby
tenderlove has joined #ruby
ahmetkapikiran has joined #ruby
nw1 is now known as nw
eikood has joined #ruby
nw is now known as Guest28998
hahuang65 has joined #ruby
riotjones has quit [Ping timeout: 268 seconds]
roshanavand has quit [Remote host closed the connection]
shoutsid has quit [Remote host closed the connection]
bMalum has joined #ruby
bklane has joined #ruby
diegoaguilar has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has joined #ruby
dfinninger has joined #ruby
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
krzkrz has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving]
haylon has quit [Ping timeout: 265 seconds]
tenderlove has joined #ruby
idefine has joined #ruby
v4n has quit [Ping timeout: 260 seconds]
Guest28998 is now known as nw1
nw1 is now known as nw2
nw2 is now known as nw3
nw3 is now known as nw4
centrx has joined #ruby
d5sx43 has joined #ruby
techsethi has quit [Quit: techsethi]
tenderlove has quit [Read error: Connection reset by peer]
<Ox0dea> shevy: Methods are not objects, but Methods are.
<Ox0dea> Who knew capitalization could be so confusing?
diegoaguilar has joined #ruby
lifeonmars has quit [Quit: Page closed]
vigintas has quit [Read error: Connection reset by peer]
d5sx43 has quit [Remote host closed the connection]
choke has quit [Quit: Textual IRC Client: www.textualapp.com]
yosiat has joined #ruby
tenderlove has joined #ruby
bhegel has quit [Quit: bhegel]
shoutsid has joined #ruby
shoutsid has quit [Remote host closed the connection]
nw4 is now known as nw1
nw1 is now known as nw2
nw2 is now known as nw3
nemo_ has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
Taha_The_Hacker has joined #ruby
Taha_The_Hacker has left #ruby [#ruby]
<Ox0dea> > untrusted pickles can execute arbitrary Python code
Taha_The_Hacker has joined #ruby
choke has joined #ruby
skcin7 has quit [Max SendQ exceeded]
tenderlove has quit [Ping timeout: 268 seconds]
tenderlove has joined #ruby
adac has quit [Ping timeout: 250 seconds]
ruby616 has joined #ruby
skcin7 has joined #ruby
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
drocsid has joined #ruby
pdoherty has quit [Remote host closed the connection]
s2013 has joined #ruby
idefine has quit [Remote host closed the connection]
c33s has joined #ruby
nw3 is now known as nw1
nw1 is now known as nw2
pdoherty has joined #ruby
shoutsid has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
shoutsid has quit [Remote host closed the connection]
<c33s> hello. is it possible in ruby to simply require/include another ruby file, where the contents of the file will simply be inserted at the include position (same as the php include/require)? i am trying to move the code which i want to reuse out of a Vagrantfile without building modules or overdo things.
Taha_The_Hacker has quit [Quit: I WANNA LEAVE I AM FULLY BORED, LEFT 12 CHANNELS.]
dasher00 has quit [Remote host closed the connection]
Guest50 has joined #ruby
tenderlove has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<Ox0dea> &Kernel#load @ c33s
<Ox0dea> &ri Kernel#load @ c33s
v4n has joined #ruby
but3k4_ has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
DairennL has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
<Ox0dea> Be advised that #load doesn't do deduplication like #require does.
<drocsid> anybody know if there is a way to use sudo privligies while copying a file with netscp to a privleged path on a remote server?
|ifei5g00d has joined #ruby
<ruby616> Getting issue deploying to Linux a Gemfile.lock generated on Windows, the Gemfile.lock has windows specific version
tenderlove has quit [Read error: Connection reset by peer]
jsrn has quit [Read error: Connection reset by peer]
adac has joined #ruby
dasher00 has joined #ruby
centrx has quit [Remote host closed the connection]
nw2 is now known as nw1
tenderlove has joined #ruby
VeryBewitching has joined #ruby
loc22 has joined #ruby
jsrn has joined #ruby
synthroid has quit []
haylon has joined #ruby
haylon has quit [Remote host closed the connection]
opensource_ninja has joined #ruby
eminencehc has quit [Remote host closed the connection]
skade has joined #ruby
bonhoeffer has joined #ruby
rehat has quit [Read error: Connection reset by peer]
neohunter has joined #ruby
<neohunter> How I can control what is the ouput of just calling an instance?
<neohunter> for example a = MyThing.new
<neohunter> a
drocsid has quit [Ping timeout: 246 seconds]
<neohunter> i want to simulate an array
<neohunter> so instead of ouput #<MyThing:0x109cc8aa8> i want to output a collection
<shevy> the # is just a display
<shevy> you can reformat it for your class
<neohunter> ok, i dont want a string output
aryaching_ has joined #ruby
<neohunter> i want an Enumerator output
dotrb has quit [Quit: Lost terminal]
<neohunter> so i can do things like
<shevy> but the above is a string output!
<neohunter> my_object # [1,2,3]
Sam_Gerber has quit [Ping timeout: 244 seconds]
SamGerber has quit [Ping timeout: 244 seconds]
<neohunter> my_object.some_method
tenderlove has quit [Read error: Connection reset by peer]
drocsid has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
loc22 has quit [Quit: Lingo: www.lingoirc.com]
<drocsid> maybe I'l 2-step it. Use net/scp to copy to /tmp, then use net/ssh to exec sudo copy command.
tenderlove has joined #ruby
tenderlove has quit [Changing host]
tenderlove has joined #ruby
<Ox0dea> >> [1,2,3].inspect.class # neohunter
<ruboto> Ox0dea # => String (https://eval.in/454958)
baweaver has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<shevy> neohunter define a custom #inspect
<shevy> >> class Foo; def inspect; [1,2,3]; end; end; foo = Foo.new
<ruboto> shevy # => [1, 2, 3] (https://eval.in/454960)
ahmetkapikiran has joined #ruby
<neohunter> how rails 2.3 used to do model.relationship returns an array of results, and model.relatiopnship.find exists
<neohunter> inspect, ok lets test with that
<shevy> rails does a lot of atrocities
Galas has joined #ruby
<c33s> @Ox0dea i tried around a little, but i don't get it to work. having a Vagrantfile in which i define the variable boxes and then loading my test.rb file results in test.rb:59:in `block in <top (required)>': undefined local variable or method `boxes'
<c33s> i load the test.rb with: load File.expand_path("../../test.rb", __FILE__)
willharrison has joined #ruby
<shevy> I'd wish the xmas release would happen at the beginning of december, then I could update my gems before the end of the year is there :D
<drocsid> hmm looks like I can try passing a shell...
<Ox0dea> c33s: Right, sorry; #load does not "import" locals.
finisherr_ has joined #ruby
moli has joined #ruby
<Ox0dea> Nor does #eval, so there's no native way to just "drop" a file in.
ahmetkapikiran has quit [Client Quit]
postmodern has joined #ruby
<shevy> not even with wicked black magic evil.rb?
finisherr has quit [Ping timeout: 240 seconds]
finisherr_ is now known as finisherr
<Ox0dea> I mean, binding_of_caller would suffice.
relix has joined #ruby
<shevy> \o/
<shevy> atrocities here we come
<Ox0dea> As would properly structuring the thing, likely as not.
<c33s> Ox0dea: thanks anyway.
<Ox0dea> c33s: Sure thing. Maybe consider sticking your stuff on a singleton of some kind?
riotjones has joined #ruby
<Ox0dea> You could also just use `@boxes` instead of `boxes`, but `main` probably shouldn't have instance variables.
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
idefine has joined #ruby
troulouliou_dev has joined #ruby
<c33s> Ox0dea: it worked now having $boxes
hadees has joined #ruby
<c33s> quite unflexible :)
<hadees> is there a way to use ||= in a send method?
<Ox0dea> c33s: But that's a global.
shoutsid has joined #ruby
<hadees> i have attribute_name which is the name of the attribute on the object i'm trying to use ||= on
shoutsid has quit [Remote host closed the connection]
<Ox0dea> c33s: The authorities are probably already on their way.
ruby-lang293 has joined #ruby
anisha has joined #ruby
<c33s> hehe :) but it works @ hasn't worked
riotjones has quit [Ping timeout: 246 seconds]
ruby-lang293 has quit [Client Quit]
jxs_ has quit [Remote host closed the connection]
<Ox0dea> Oh, then you're not accessing `@boxes` at the top level of the file into which it's being imported?
<c33s> oh, i see. also works
fsr9 has quit [Quit: Page closed]
moeabdol has quit [Ping timeout: 250 seconds]
<Ox0dea> #instance_variable_get_or_set is the method you want, but it doesn't exist and likely won't.
skade has quit [Quit: Computer has gone to sleep.]
K3VA has quit []
<hadees> Ox0dea: ugh, yeah I guess that is ugly, i can work around it, thanks
<Ox0dea> hadees: ||= is a compound assignment, but the semantics are essentially the same as for regular assignment, which can't be emulated by #send in most cases.
<Ox0dea> Given `foo = 1`, what message could you send to `foo` to turn it into 2, you know?
synthroid has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
skade has joined #ruby
benaiah has joined #ruby
jenrzzz has joined #ruby
tenderlo_ has joined #ruby
tenderlove has quit [Ping timeout: 256 seconds]
idefine has joined #ruby
kraljev11 has joined #ruby
stannard_ has quit [Ping timeout: 265 seconds]
<hadees> Ox0dea: it makes sense but I still wish there was a nicer way to do what I want.
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anisha has quit [Quit: Leaving]
nw1 is now known as nw
maletor has quit [Quit: Computer has gone to sleep.]
jenrzzz has quit [Ping timeout: 250 seconds]
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
nw is now known as Guest18493
SamGerber has joined #ruby
<DairennL> Cipher cannot be inferred: must specify it as an argument when I use pass = crypted_pass.decrypt using the encrypted_strings gem - I'm not clear on how to include the additional argument here. I believe that argument should be the secret key (I'm using symmetric encryption).
Sam_Gerber has joined #ruby
<Ox0dea> hadees: You... wish #= were a method?
<Ox0dea> Even in Lisp, `define` is a special form.
hahuang65 has quit [Quit: WeeChat 1.3]
<Ox0dea> You're asking for utter madness, and Ruby does you a kindness by not obliging.
Soda has quit [Remote host closed the connection]
kraljev11 has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
tenderlo_ has quit [Read error: Connection reset by peer]
minasmazar has joined #ruby
<hadees> Ox0dea: no i just wish there was a nicer looking way to run ||= on a generated variable name. For example ruby could just know if you do send("foo||=") you really want to use ||= and not that you are looking for a method called ||=
Jackneill has joined #ruby
<Ox0dea> It couldn't, though.
niftylettuce has joined #ruby
rgb-one has joined #ruby
<Ox0dea> You've simply rephrased your wish to have assignment be a method.
cdg has joined #ruby
<rgb-one> Hello
jackjackdripper has joined #ruby
<Ox0dea> rgb-one: Hiya!
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rgb-one> Ox0dea: Hey bro/sis, hows it going :)
<Ox0dea> Well enough, to be sure. And for yourself?
<rgb-one> decent
<Ox0dea> Good, good.
<rgb-one> Indeed :)
baweaver has quit [Remote host closed the connection]
tenderlove has joined #ruby
<hadees> Ox0dea: I don't see it that way, maybe send is the wrong method, I guess I could use eval...
<Ox0dea> hadees: If we could say `foo.send(:||=)`, then we could also say `foo.send(:=)`, which is just bonkers.
idefine has quit [Ping timeout: 268 seconds]
<hadees> Ox0dea: maybe it shouldn't be send then
cwong_on_irc has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
<Ox0dea> What's so bad about `foo = foo.send(bar) unless foo`?
mistermocha has quit [Remote host closed the connection]
<Ox0dea> Well, #instance_variable_set/get, in your particular case, but the question stands.
<rgb-one> How do I reference a string entered as a parameter on the command line?
<Ox0dea> rgb-one: The command-line arguments live in ARGV.
<hadees> Ox0dea: this is what I ended up doing
jackjackdripper has quit [Client Quit]
<hadees> default_value = object.send(attribute_name) || collection.first.send(value_method)
<hadees> object.send("#{attribute_name}=", default_value)
<hadees> it just looks ugly to me
jackjackdripper has joined #ruby
<hadees> if you have a nicer way to write it let me know
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ruby616 has quit [Ping timeout: 246 seconds]
Guest18493 is now known as nw1
nw1 is now known as nw2
nw2 is now known as nw3
nw3 is now known as nw4
shoutsid has joined #ruby
<hadees> i guess I should have really used instance_variable_set
mondayrain has joined #ruby
sdothum has joined #ruby
<Ox0dea> And #instance_variable_get instead of the first #send.
<rgb-one> What am I doing wrong here: abort_with_note("#{ARGV[1]} doesn't exist in this directory.")
<jhass> DairennL: open an issue with the gem's author
tenderlove has quit [Read error: Connection reset by peer]
<Ox0dea> rgb-one: Looks fine?
idefine has joined #ruby
<hadees> Ox0dea: anyway thanks for the help, it works so i'm just going to move on
<rgb-one> Ox0dea: abort_with_note will print to stderr if a note is passed to it as a parameter which it is in this case, however, that part of ARGV[1] part doesnt return anything.
tenderlove has joined #ruby
<Ox0dea> hadees: Sure thing. I do concede that metaprogramming in Ruby is a little verbose, but it's for the better.
stannard has joined #ruby
shoutsid has quit [Remote host closed the connection]
<Ox0dea> rgb-one: Ruby's ARGV is not like C's.
mondayrain has joined #ruby
mondayrain has quit [Client Quit]
<Ox0dea> The program name is in $0, so it doesn't need to be (and isn't) in ARGV.
SegFaultAX has joined #ruby
Drakevr has joined #ruby
<rgb-one> Ox0dea: Ah so its like bash in that respect.
<Ox0dea> Just so.
<rgb-one> so $1 will be the first parameter.
<rgb-one> argument*
<Ox0dea> No, ARGV[0] will be.
<minasmazar> $1 will be used in regular expression
<minasmazar> as alias for MatchData[1]
<Ox0dea> rgb-one: $0 is something of an anomaly; as minasmazar points out, all of the other numeric globals contain match captures.
howdoicomputer has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
milkohol has joined #ruby
<eam> ruby is like perl in that respect
<Ox0dea> Ruby's ancestry is all over the place.
milkohol has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has joined #ruby
milkohol has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<Ox0dea> >> [$-9, (begin; eval '$-10'; rescue SyntaxError; 'wtf'; end)]
<ruboto> Ox0dea # => [nil, "wtf"] (https://eval.in/454993)
nw4 is now known as nw1
nw1 is now known as nw2
nw2 is now known as nw3
<Ox0dea> What is $-1?
ldnunes has quit [Quit: Leaving]
cwong_on_irc has quit [Quit: Leaving.]
shoutsid has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
milkohol is now known as macowie
idefine has quit [Ping timeout: 250 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
shoutsid has quit [Remote host closed the connection]
tenderlove has joined #ruby
shoutsid has joined #ruby
<minasmazar> Ox0dea: don't know but $-0 in a pry session is "\n" xD
stannard_ has joined #ruby
DairennL has quit [Remote host closed the connection]
<Ox0dea> minasmazar: English doesn't alias them. :<
stannard has quit [Read error: Connection reset by peer]
KnownSyntax has quit [Read error: Connection reset by peer]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
<Ox0dea> $-0 == $INPUT_RECORD_SEPARATOR
<Ox0dea> I wonder if $-1 and friends are related to the shell's PS1 and such.
dfockler has quit [Ping timeout: 260 seconds]
eminencehc has joined #ruby
k3asd` has joined #ruby
DairennL has joined #ruby
idefine has joined #ruby
shoutsid has quit [Remote host closed the connection]
tenderlove has quit [Read error: Connection reset by peer]
shoutsid has joined #ruby
<Ebok> Whats the command the take [[ [1][2] ][3][4][5][ [6] ] ] and output [[1][2][3][4][5][6]] ?
<Ox0dea> shevy: Are you seeing this?
nw3 is now known as nw1
nw1 is now known as nw2
<Ebok> I know I've read it before...
<Ox0dea> Ebok: Are you thinking of #flatten?
<Ebok> yup
mistermocha has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<minasmazar> ahahah Ruby is incredible weird. Love for that
<Ox0dea> I suspect you have no idea. :P
<minasmazar> Ebok: .flatten!.map {|i| [i] } maybe
maletor has joined #ruby
<minasmazar> map!
<Ox0dea> minasmazar: Nah, Ebok just provided a slightly confusing representation.
<Ebok> Yeah, sorry.
<Ox0dea> minasmazar: Did you know that Ruby is Turing-complete even if you're not allowed to use any letters or numbers?
<Ebok> [1,2,3,4,5,6] works too. I just wanted to level the info
tenderlove has joined #ruby
<slash_quit> here goes Ox0dea with those crazy cool one liners again
EmeraldExplorer has quit [Quit: Connection closed for inactivity]
<Ox0dea> The *amount* of code and its arrangement is immaterial; it's just nuts that you could theoretically write any program in Ruby with only symbols.
mbeasley has joined #ruby
<Ox0dea> Of course, the `mov` assembly instruction is TC, so it's not that bewildering.
<minasmazar> Ox0dea: no i did not
<Ox0dea> Welp, it totally is.
<Ox0dea> >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
<ruboto> Ox0dea # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/454998)
rgb-one has quit [Ping timeout: 255 seconds]
<Ox0dea> There's FizzBuzz, and I've got a brainfuck interpreter around here somewhere.
mordocai has joined #ruby
skade has joined #ruby
swgillespie has joined #ruby
<minasmazar> ahahahah fantastic
mistermocha has quit [Ping timeout: 265 seconds]
* slash_quit would love to bust that out in an interview
karapetyan has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 260 seconds]
<slash_quit> might not get the job, but that's an epic fizzbuzz
swgillespie has quit [Client Quit]
<mag42c> is this the best channel for rails specific questions?
<shevy> Ox0dea dunno, my eye tends to ignore $ whenever that is possible
<slash_quit> mag42c: #rubyonrails
bb010g has quit [Quit: Connection closed for inactivity]
<mag42c> slash_quit: Thanks!
<slash_quit> shevy: vow of poverty?
<Ox0dea> slash_quit: Check your privilege?
<shevy> slash_quit vow of simplicity!!!
<shevy> and elegance
<adaedra> slash_quit: he's european, he prefers €
karapetyan has joined #ruby
<shevy> is that french unicode again
<eam> if they euro keeps falling he'll prefer $ again
<adaedra> shevy: that's the Euro symbol
<Ox0dea> minasmazar: https://eval.in/455001
karapetyan has quit [Remote host closed the connection]
<Ox0dea> Since brainfuck is TC, so too must be non-alphanumeric Ruby if it's able to simulate it.
<shevy> damn... I can't see the euro key on my keyboard anymore :(
<shevy> ah... ?
baweaver has joined #ruby
<shevy> I am typing half blind because half of my keys are no longer readable
karapetyan has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<adaedra> You can search for you keyboard layout on google images.
but3k4_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> this is so insane
eminencehc has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<adaedra> Welcome to the 21st century.
nettoweb has quit [Read error: Connection reset by peer]
<slash_quit> shevy: my top row is poiuytrewq... it's funny to watch people do the reach for my keyboard like "let me just type it --- whoa, whoa, how?" thing
<shevy> what the ... is poiuytrewq
nw2 is now known as nw1
<slash_quit> shevy: qwertyuiop, reversed
<adaedra> I have an US keyboard. It's enough to mess up with people here, slash_quit.
<slash_quit> i now know who in my office types by sight
<shevy> I have qwertz
Qantourisc has joined #ruby
tenderlove has joined #ruby
spuk has joined #ruby
<Qantourisc> "/usr/lib64/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find rake-10.1.1 in any of the sources (Bundler::GemNotFound)"
pikajude has joined #ruby
<slash_quit> shevy: what keyboard do you use?
nettoweb has joined #ruby
<shevy> slash_quit a german microsoft keyboard!
<pikajude> hi, is there an equivalent of "scan" that can return positions as well, like match would be able to?
<Qantourisc> Can't quite find what causes ruby to look for THAT specific version of rake
<shevy> they can't do software but they have good keyboards
<slash_quit> ha
<adaedra> Qantourisc: Gemfile.lock
<slash_quit> or automobiles? re: VW
beauby has joined #ruby
rgtk has joined #ruby
<Ox0dea> pikajude: No. :<
Musashi007 has quit [Quit: Musashi007]
<shevy> I think my fingers must be acidic, the keys that are used the most by the index fingers are those that have decayed the most
<pikajude> Ox0dea: I've found a "workaround" on stackoverflow, given as "foo".to_enum(:scan, /pat/).map { Regexp.last_match }
<pikajude> and i'm all like, wtf is that
karapetyan has quit [Ping timeout: 250 seconds]
<Ox0dea> Well, that's actually kinda neat.
<slash_quit> shevy: boogers
Voker57 has quit [Read error: Connection reset by peer]
<rgtk> Is it possible to access constant defined "above" module inside this module if name is the same? For example I want to access Ruby's Set inside Module that have defined Set constant.
<Qantourisc> adaedra: thanks, but that file lists rake (10.4.2) and rake (>= 0.8.7)
Azure has quit [Ping timeout: 250 seconds]
<Ox0dea> rgtk: ::Set
<shevy> slash_quit nah they reside under the table
<slash_quit> shevy: but how do they get there? index finger.
<shevy> hmm interesting theory
<rgtk> Ox0dea: Thank you
<minasmazar> i prefer !€ :D
<slash_quit> shevy: my nostrils are larger, so i go with the thumb myself... but the space-bar is already blank, so nothing to rub off... i can't personally test this theory, not without using an undersized finger for my nose picking.
<slash_quit> and that'd feel wrong.
troulouliou_dev has quit [Quit: Leaving]
* Qantourisc dislikes ruby for the dependency mess
<havenwood> Qantourisc: Use fewer dependencies?
tenderlove has quit [Read error: Connection reset by peer]
<Qantourisc> havenwood: not a developer, system installer
<Ox0dea> >> 'foobarbaz'.to_enum(:scan, /[aeiou]/).map { $~.begin 0 } # pikajude
<ruboto> Ox0dea # => [1, 2, 4, 7] (https://eval.in/455005)
tenderlove has joined #ruby
<havenwood> Qantourisc: Aha.
<Ox0dea> Kinda wonky, though.
<shevy> slash_quit strangely enough, I am right handed, but it's the left area of the keyboard that has more blank keys
<havenwood> Qantourisc: No up-to-date package on your distro/OS?
riotjones has joined #ruby
<Qantourisc> havenwood: not sure, not if the package-package, suppose I could manualy install
karapetyan has joined #ruby
<havenwood> Qantourisc: What distro?
<Qantourisc> havenwood: ok have a usefull error message atm "rails (= 3.2.13) "
jds has quit [Quit: Connection closed for inactivity]
<Qantourisc> havenwood: gentoo, and it's redmine app
<Qantourisc> the version provided is
SuzieQueue has quit [Quit: Swoosh...]
<Qantourisc> 2.4.6
<Qantourisc> release date:
nw1 has quit [Quit: WeeChat 1.3]
<Qantourisc> 1 year
nw1 has joined #ruby
<slash_quit> shevy: maybe the boogers aren't the cause... maybe the boogers form some protective barrier
gustav__ has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
<shevy> slash_quit this keyboard has helped write hundres of .rb files! I can't let it go...
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
c33s has left #ruby [#ruby]
<Ox0dea> >> [].tap { |i| 'foobarbaz'.gsub(/[aeiou]/) { i << $~.begin(0) } }
<ruboto> Ox0dea # => [1, 2, 4, 7] (https://eval.in/455010)
<Ox0dea> pikajude: That one'll go over better in a review.
roshanavand has joined #ruby
<pikajude> got that right
Rickmasta has joined #ruby
jobewan has quit [Ping timeout: 240 seconds]
<Ox0dea> Still, #to_enum is a pretty nifty method; I forgot it could take more than just the method to enumerate by.
riotjones has quit [Ping timeout: 250 seconds]
tenderlove has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
tenderlove has joined #ruby
swgillespie has joined #ruby
drocsid has left #ruby [#ruby]
rgb-one has joined #ruby
Musashi007 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
<Ox0dea> So, ${>9} don't get to be with the others in #global_variables, and ${<-9} are syntax errors.
jgpawletko has quit [Quit: jgpawletko]
synthroid has quit []
gustav_ has joined #ruby
freerobby has quit [Quit: Leaving.]
bollullera has joined #ruby
yardenbar has joined #ruby
eminencehc has joined #ruby
rgtk has quit []
<Ox0dea> It's a moral outrage, a failure of common decency, an embrace of the tyrannical unfairness that code is heir to.
yashinbasement has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rwilcox> pretty sure the left side is going to wear faster than the right side, because QWERTY. At least in my experience
<rwilcox> if you look at a longtime Dvorak user you'll see their home row all worn out like that too
ht__ has quit [Quit: Konversation terminated!]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spuk has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
cwong_on_irc has joined #ruby
Igorshp has joined #ruby
Musashi007 has quit [Quit: Musashi007]
null_ref has quit []
yashinbasement has quit [Quit: Leaving]
shoutsid has quit [Remote host closed the connection]
wldcordeiro has quit [Read error: Connection reset by peer]
mr_am has joined #ruby
<Qantourisc> havenwood: thanks for upgrade idea, just slapped on some gems, now works just fine
roshanavand has joined #ruby
Hien has quit [Remote host closed the connection]
<Ox0dea> rwilcox: I appreciate the subtlety of that burn.
pdoherty has quit [Remote host closed the connection]
jobewan has joined #ruby
vigintas has joined #ruby
minasmazar has quit [Quit: leaving]
elektronaut has quit [Quit: ZNC - http://znc.in]
Takumo has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
GriffinHeart has joined #ruby
decoponio has quit [Quit: Leaving...]
_djbkd has joined #ruby
<Ox0dea> >> $-
<ruboto> Ox0dea # => nil (https://eval.in/455043)
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pikajude has left #ruby ["bye"]
baweaver has quit [Remote host closed the connection]
arthurix has joined #ruby
roshanavand has quit [Ping timeout: 255 seconds]
<Ox0dea> $-9 to $-1 are only incidentally valid, it seems.
<drbrain> Ox0dea:
Igorshp has quit [Remote host closed the connection]
<Ox0dea> They're the same.
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mr_am> I'm reading about "executing loaded code" in the book "The Ruby Programming Language" by the creator of Ruby... can someone explain these two points please? http://ctrlv.it/txt/2695/520925891
<Ox0dea> But it's true that one or the other is contextually more intention-revealing.
shoutsid has joined #ruby
<shevy> mr_am you simply need to keep track of the scope
bryanray has joined #ruby
Didac has quit [Quit: LayerBNC - https://LayerBNC.org/]
rgb-one has quit [Ping timeout: 244 seconds]
anisha has joined #ruby
eminencehc has quit [Remote host closed the connection]
rgb-one has joined #ruby
<Ebok> mr_am what about those two points are confusing to you?
arthurix_ has quit [Ping timeout: 260 seconds]
<mr_am> Ebok: I can't seem to understand them...
<Ebok> Alright
<Ox0dea> mr_am: Just a second.
syath has quit [Quit: WeeChat 1.2]
shoutsid has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 260 seconds]
paulcsmith has quit [Quit: Be back later ...]
<Ox0dea> That should help clarify.
<Ebok> The first point basically means that loading gems or files doesnt highlight/change_selection of the ruby object
blackmesa has quit [Quit: WeeChat 1.3]
gustav_ has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
pdoherty has joined #ruby
paulcsmith has joined #ruby
<Ebok> If his examples are clear to you I'mma save my typing
gustav_ has joined #ruby
jonnyro has joined #ruby
eminencehc has joined #ruby
mistermocha has joined #ruby
Scient has quit [Ping timeout: 240 seconds]
dikaio has quit [Quit: ........]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Ox0dea> mr_am: Replace `load` with `eval File.read` to see how #load *doesn't* behave.
Asher has quit [Quit: Leaving.]
Musashi007 has joined #ruby
kadoppe has quit [Ping timeout: 264 seconds]
bmurt has joined #ruby
kadoppe has joined #ruby
<mr_am> Ox0dea: What does this sentence mean in simple terms? "That is, invoking load or require within a method invocation does not propagate the receiver object to the loaded file."
<Ox0dea> mr_am: It means `self` is always `main` at the start of a load.
Scient has joined #ruby
momomomomo has joined #ruby
yardenbar has joined #ruby
yardenbar has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
gustav_ has quit [Ping timeout: 252 seconds]
<mr_am> Ox0dea: So it basically means loaded files are executed with self as main?
<Ox0dea> Yes.
Senjai has quit [Changing host]
Senjai has joined #ruby
<Ox0dea> If you *want* the loaded file to inherit the current `self`, you have to use #eval directly.
paulcsmith has quit [Quit: Be back later ...]
choke has joined #ruby
yardenbar has joined #ruby
<mr_am> Ox0dea: Loaded files are also executed in a different scope?
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> mr_am: You've only rephrased your previous question.
blackmesa has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
Encapsulation has quit [Read error: Connection reset by peer]
<mr_am> Ox0dea: Why don't I have access to local variables in the required file?
konrath has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Because you don't actually want that.
<mr_am> Ox0dea: Yeah I know but where does ruby execute loaded files? In what scope?
paulcsmith has joined #ruby
<Ox0dea> A brand-new one with `self` set to `main`.
<rgb-one> Alright, say I have an argument --output which outputs content to a file. Using optparse, how would I set the --output function to perform the task of writing to a file? The file could be named anything. Would I use the gets method to read the output filename entered by the user? eg. progname infile.txt -o outfile.txt.
Encapsulation has joined #ruby
Outlastsheep has joined #ruby
<Ox0dea> mr_am: If loaded files brought their locals, top-level locals would be equivalent to globals, which would be very silly.
<rgb-one> progname infile.txt --output outfile.txt*
<mr_am> Ox0dea: And since self is set to main, all constants defined in the loaded file become constants of the Object class?
maletor has joined #ruby
<Ox0dea> mr_am: That's not immediately relevant to `main`; it's just that top-level constants go on Object.
Nicola-1_ has joined #ruby
ruby-lang504 has joined #ruby
<Ox0dea> >> Foo = 1; Object.constants.include?(:Foo)
<ruboto> Ox0dea # => true (https://eval.in/455044)
imperator has joined #ruby
<ruby-lang504> test
<Ox0dea> ArgumentError: wrong number of arguments (0 for 2..3)
Nicola-1980 has quit [Ping timeout: 252 seconds]
paulcsmith has quit [Ping timeout: 265 seconds]
<drbrain> rgb-one: in the option body you would store it into, say, a Hash
<rgb-one> drbrain: option["--option"] right?
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dikaio has joined #ruby
<drbrain> rgb-one: here's an example doing something similar: https://github.com/drbrain/drbdump/blob/master/lib/drbdump.rb#L289-L295
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
<mr_am> Ox0dea: Okay, one last question. How does ruby have access to constants defined in a required file if it's executed in a different scope?
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> mr_am: Because they're being placed on Object, which is available in any scope.
maletor has joined #ruby
maletor has quit [Client Quit]
<Ox0dea> Constant resolution is hierarchical, with Object at the top of the tree.
nateberkopec has quit [Quit: Leaving...]
<mr_am> Ox0dea: Alright got it. Thanks!
<Ox0dea> Happy to help.
ruby-lang504 has quit [Quit: Page closed]
mr_am has quit [Quit: Page closed]
<rgb-one> drbrain: I think I understand. option[:output] = file would perform the task of registering the users input.
<drbrain> yes
RobertBirnie has joined #ruby
<sharkman> why is i that i started up an instance on amazon of a server and with ubuntu, apt-get install ruby got me ruby1.9. and when it was debian, apt-get install ruby got me ruby2.1?
<drbrain> rgb-one: then I pass the options to the library part that does what I want: https://github.com/drbrain/drbdump/blob/master/lib/drbdump.rb#L361
Musashi007 has quit [Quit: Musashi007]
freerobby has joined #ruby
tubuliferous_ has joined #ruby
rwilcox has quit [Ping timeout: 272 seconds]
shoutsid has joined #ruby
britt_ has quit [Remote host closed the connection]
<rgb-one> drbrain: Interesting
<imperator> there a way to force an ostruct to override an existing method? OpenStruct.new(:foo => 1, :tap => 2).tap # get a a block error, want 2
last_staff has quit [Quit: nite!]
sepp2k has quit [Quit: Leaving.]
jimmmmy has joined #ruby
<Ox0dea> >> require 'ostruct'; OpenStruct.new(:foo => 1, :tap => 2)[:tap] # imperator
<ruboto> Ox0dea # => 2 (https://eval.in/455045)
Coldblackice has joined #ruby
<drbrain> rgb-one: I separate options-parsing from implementation that way so the library can work standalone
idefine has joined #ruby
tenderlove has quit [Ping timeout: 256 seconds]
nateberkopec has joined #ruby
but3k4 has joined #ruby
tenderlove has joined #ruby
mary5030 has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
mary5030 has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
NeverDie has joined #ruby
karapetyan has joined #ruby
haxrbyte_ has quit [Ping timeout: 255 seconds]
chrisja has joined #ruby
momomomomo has quit [Quit: momomomomo]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ankhers has joined #ruby
<rgb-one> drbrain: That is a useful approach. I was thinking of doing the same for an upcoming project but didn't know how to.
petricore has joined #ruby
<drbrain> rgb-one: it also make it easier to test options parsing: https://github.com/drbrain/drbdump/blob/master/test/test_drbdump.rb#L5-L13
arthurnn has quit [Quit: bye...]
Xeago has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
QualityAddict has joined #ruby
<Xeago> My dear rubyists, if I may be allowed to go offtopic: given 81^(1/m)=9^n, what is m*n?
swgillespie has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
stamina has joined #ruby
duderonomy has joined #ruby
eminencehc has quit [Remote host closed the connection]
NeverDie has quit [Max SendQ exceeded]
<Ox0dea> Xeago: Sounds like you want #prolog.
tenderlove has joined #ruby
duderonomy has quit [Max SendQ exceeded]
minimalism has joined #ruby
<Xeago> Would that be after division by 9, 9^(1/m)=1^n, thus 9^(1/m)=1
NeverDie has joined #ruby
eminencehc has joined #ruby
arthurnn has joined #ruby
<Xeago> which would mean that 9^(1/m) should divide by 0? :S
shoutsid has quit [Remote host closed the connection]
solocshaw1 has joined #ruby
<Xeago> I'm probably not allowed to divide the base
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw1 is now known as solocshaw
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> >> [[1, 2], [2, 1], [4, 0.5]].all? { |m, n| 81 ** (1.0/m) == 9 ** n }
<ruboto> Ox0dea # => true (https://eval.in/455046)
kalusn has quit [Remote host closed the connection]
<Ox0dea> Do you perceive a pattern?
<Xeago> yes
<Ox0dea> Yay, numbers!
<Ox0dea> Xeago: How many solutions are there?
<Xeago> infinite
<Ox0dea> <3
jobewan has quit [Ping timeout: 244 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xeago> Ox0dea: given that you had no calculator, or ruby at your hand
<Xeago> how would you approach this?
sdwrage has quit [Quit: This computer has gone to sleep]
<Ox0dea> The Ruby was only for demonstration purposes?
<Xeago> given that I now know the solution, I still feel powerless to explain it to my gf, other than just wing it with a number (which is usually fine for 2 unknown variable computations)
shoutsid has joined #ruby
<Ox0dea> The number of resources available to you isn't quite so many as the number of solutions to that equation, but it's close.
<Ox0dea> (I'm not so great at explaining math in ways that'll "stick".)
tenderlo_ has joined #ruby
<Xeago> try on me - I'm not exalting at math, but better than my gf for sure
tenderlove has quit [Ping timeout: 256 seconds]
<Xeago> So I got stuck at trying to think of either m or n of being 0
<Xeago> thinking of them of being 1 a solution is trivial
chouhoul_ has joined #ruby
<Ox0dea> But 1 is the multiplicative identity, so it's the ideal place to start?
sdwrage has joined #ruby
skade has joined #ruby
<Xeago> raising it 0 would mean that you nullify the exponentiation
<Xeago> and perhaps consider it to be a more easy equation - in this case, no
kobain has joined #ruby
sdwrage has quit [Client Quit]
<rgb-one> atr_accessor = setter right?
<Ox0dea> rgb-one: Both.
chouhoul_ has quit [Read error: Connection reset by peer]
<Radar> rgb-one: attr_writer is the setter.
<Radar> attr_reader is the getter.
chouhoul_ has joined #ruby
<rgb-one> attr_accessor is the same as attr_setter?
chouhoulis has quit [Ping timeout: 260 seconds]
<rgb-one> attr_accessor is the same as attr_writer?*
<Radar> No.
jenrzzz has joined #ruby
<Radar> You're not paying attention.
<Radar> attr_accessor is both reader + writer.
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rgb-one> Radar: I see.
karapetyan has quit []
Rickmasta has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
ss_much has joined #ruby
skcin7 has joined #ruby
jessemcgilallen has joined #ruby
roshanavand has joined #ruby
shoutsid has quit [Remote host closed the connection]
tenderlove has joined #ruby
benjito has joined #ruby
tenderlo_ has quit [Read error: Connection reset by peer]
rcvalle has quit [Quit: rcvalle]
jessemcgilallen has quit [Client Quit]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
jessemcgilallen has joined #ruby
e1senhorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bryanray has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
rcvalle has joined #ruby
rcvalle has quit [Client Quit]
p0wn3d has quit [Ping timeout: 240 seconds]
shoutsid has joined #ruby
rcvalle has joined #ruby
jobewan has joined #ruby
karapetyan has joined #ruby
leslie has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
ndrei has quit [Ping timeout: 240 seconds]
tenderlove has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
ericjphillips has quit [Quit: Leaving.]
beauby has quit [Ping timeout: 264 seconds]
tenderlove has joined #ruby
chipotle has joined #ruby
asxbr has joined #ruby
ngscheurich has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
Azure has joined #ruby
Musashi007 has quit [Client Quit]
sdwrage has joined #ruby
mag42c_ has joined #ruby
kirun has quit [Quit: Client exiting]
jimmmmy has quit []
Asher has joined #ruby
yfeldblum has joined #ruby
Rickmasta has quit [Read error: Connection reset by peer]
jessemcgilallen has quit [Quit: jessemcgilallen]
Rickmasta has joined #ruby
mag42c has quit [Ping timeout: 265 seconds]
eminencehc has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 256 seconds]
gustav_ has joined #ruby
shoutsid has quit []
spider-mario has joined #ruby
symbol_ has quit [Ping timeout: 272 seconds]
jessemcgilallen has joined #ruby
d5sx43 has joined #ruby
k3asd` has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 240 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
sankaber has joined #ruby
gustav_ has quit [Ping timeout: 240 seconds]
sankaber has quit [Remote host closed the connection]
<imperator> Ox0dea, and if I want to forcibly redefine it?
sankaber has joined #ruby
<imperator> i guess just o.class.send(:undef_method, :tap)
ericjphillips has joined #ruby
d5sx43 has quit [Remote host closed the connection]
Xeago has joined #ruby
<Ox0dea> There are only two hard things in computer science.
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jessemcgilallen has quit [Quit: jessemcgilallen]
RegulationD has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybasil has joined #ruby
<imperator> caching and bitcoins?
Qantourisc has quit [Ping timeout: 250 seconds]
sepp2k has joined #ruby
ericjphillips has quit [Quit: Leaving.]
beauby has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby
nateberkopec has joined #ruby
<pipework> Ox0dea: Other people and people who aren't me?
nertzy has joined #ruby
hadees has quit [Quit: hadees]
<Ox0dea> Cache invalidation, naming things, off-by-one errors, and cache invalidation.
trosborn has joined #ruby
rcvalle has quit [Quit: rcvalle]
_wldcordeiro has quit [Ping timeout: 240 seconds]
<imperator> hah
Trynemjoel has quit [Ping timeout: 250 seconds]
imperator has quit [Quit: Leaving]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby
d5sx43 has joined #ruby
<Ox0dea> I think that was a bad decision.
ajb is now known as ajb-
<rgb-one> With optparse, when i use the opts.version provided it doesn't display in the help message. I use `opts; exit` for the --help message.
Trynemjoel has joined #ruby
adac has quit [Ping timeout: 240 seconds]
<rgb-one> Is there any way to show the -v, --version message in the help output?
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ajb- is now known as ajb
ericjphillips has joined #ruby
Pupeno has quit [Remote host closed the connection]
macowie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gabi_300 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Galas has quit []
karapetyan has quit [Remote host closed the connection]
eminencehc has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
<adaedra> Just call your version method just before calling opts
allcentury has quit [Ping timeout: 252 seconds]
eminencehc has quit [Remote host closed the connection]
gabi_300 has quit []
jpfuentes2 has joined #ruby
ericjphillips has quit [Client Quit]
mordocai has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
jpfuente_ has quit [Ping timeout: 246 seconds]
Pupeno has joined #ruby
Pupeno has joined #ruby
trosborn has quit [Quit: trosborn]
baweaver has joined #ruby
bonhoeffer has quit [Client Quit]
<Xeago> Ox0dea: got a moment for another question? Given a square ABCD, there is an equal-sided triangle inside ABE. What's the angle of E in the triangle CED?
alienaut has quit [Remote host closed the connection]
Qantourisc has joined #ruby
aryaching_ has quit []
<Xeago> I can go elsewhere if I am disturbing the fine folks of #ruby - these are just the nicest people I know :>
trosborn has joined #ruby
<pipework> Xeago: There are math channels on IRC that aren't too bad.
<pipework> Err, freenode.
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tenderlove has quit [Read error: Connection reset by peer]
<Xeago> pipework: ok, I'll look for em
willharrison has joined #ruby
_wldcordeiro has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.3]
tenderlove has joined #ruby
riotjone_ has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
Jackneill has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Quit: Musashi007]
Salve has joined #ruby
beauby has quit [Ping timeout: 255 seconds]
beauby has joined #ruby
Musashi007 has joined #ruby
ericjphillips has joined #ruby
bmurt has joined #ruby
nertzy has quit [Quit: Leaving]
rodfersou has joined #ruby
riotjone_ has quit [Ping timeout: 240 seconds]
dorei has joined #ruby
jgt has joined #ruby
jobewan has quit [Remote host closed the connection]
Ox0dea has quit [Quit: WeeChat 1.4-dev]
shinnya has quit [Ping timeout: 246 seconds]
inteq has quit [Quit: Leaving]
RegulationD has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
trosborn has quit [Quit: trosborn]
rbennacer has quit [Remote host closed the connection]
mag42c_ has quit [Quit: mag42c_]
mistermo_ has joined #ruby
dopamean_ has quit [Ping timeout: 240 seconds]
GnuYawk has quit [Ping timeout: 260 seconds]
tenderlove has quit [Read error: Connection reset by peer]
dfinninger has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 246 seconds]
cschneid_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
tenderlove has joined #ruby
d5sx43 has quit [Quit: Leaving...]
molly has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
wildlander has joined #ruby
wildlander has quit [Max SendQ exceeded]
moli has quit [Ping timeout: 240 seconds]
yardenbar has quit [Ping timeout: 264 seconds]
spider-mario has quit [Remote host closed the connection]
wildlander has joined #ruby
nertzy has joined #ruby
baweaver has quit [Remote host closed the connection]
noodle has quit [Ping timeout: 250 seconds]
jonnyro has quit [Quit: Leaving.]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alayde has quit [Ping timeout: 255 seconds]
Pupeno has quit [Quit: Leaving...]
yfeldblum has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 240 seconds]
jessemcgilallen has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
maletor has joined #ruby
chouhoulis has joined #ruby
dopamean_ has joined #ruby
wpp has quit [Quit: ZZZzzz…]
hadees has joined #ruby
chrisja has quit [Quit: leaving]
hooper has joined #ruby
bonhoeffer has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
firstdayonthejob has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
bonhoeffer has quit [Client Quit]
yfeldblum has joined #ruby
tenderlove has joined #ruby
baweaver has joined #ruby
nateberkopec has quit [Quit: Leaving...]
hahuang65 has joined #ruby
bklane has quit []
|ifei5g00d has quit []
GeissT has joined #ruby
jgpawletko has joined #ruby
Azure has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 268 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 260 seconds]
barhum2013 has joined #ruby
s00pcan has quit [Ping timeout: 265 seconds]
tenderlove has quit [Read error: Connection reset by peer]
rehat has joined #ruby
eminencehc has joined #ruby
kyle__ has quit [Ping timeout: 250 seconds]
nej is now known as ja
mistermo_ has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has joined #ruby
Qantourisc has quit [Ping timeout: 260 seconds]
ericjphillips has quit [Quit: Leaving.]
haxrbyte has quit [Ping timeout: 250 seconds]
benjito has quit [Ping timeout: 246 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby
Xeago has quit [Remote host closed the connection]
JuanIbiapina has joined #ruby
Qantourisc has joined #ruby
|ifei5g00d has joined #ruby
JuanIbiapina has left #ruby [#ruby]
Musashi007 has quit [Quit: Musashi007]
n_blownapart has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
|ifei5g00d has quit [Read error: Connection reset by peer]
tenderlove has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
Xiti has quit [Quit: Xiti]
murilo has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Xiti has joined #ruby
stardiviner has joined #ruby
arthurix_ has joined #ruby
tenderlove has joined #ruby
arthurix has quit [Ping timeout: 244 seconds]
Jardayn has quit [Quit: Leaving]
JJM has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
|ifei5g00d has joined #ruby
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
mistermocha has joined #ruby
cdg has joined #ruby
murilo has left #ruby [#ruby]
JJM has quit [Client Quit]
workmad3 has quit [Ping timeout: 272 seconds]
swgillespie has joined #ruby
teclator has quit [Ping timeout: 246 seconds]
tenderlove has quit [Ping timeout: 268 seconds]
|ifei5g00d has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
|ifei5g00d has joined #ruby
JJM has joined #ruby
idefine has quit [Remote host closed the connection]
rbennacer has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
blackmesa has quit [Quit: WeeChat 1.3]
tenderlove has joined #ruby
tubuliferous_ has joined #ruby
e1senhorn has joined #ruby
Qantourisc has quit [Ping timeout: 265 seconds]
iateadonut has joined #ruby
mistermocha has quit [Remote host closed the connection]
blackjid has quit [Max SendQ exceeded]
paulcsmith has joined #ruby
blackjid has joined #ruby
Qantourisc has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
ishikawa91 has joined #ruby
mistermocha has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
<chopin> Would anyone familiar with the ruby google api client mind taking a look at this SO post?
bryanray has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
v4n has quit [Quit: WeeChat 1.3]
hadees has quit [Quit: hadees]
gustav_ has joined #ruby
<VeryBewitching> chopin: Could you make a gist of your code, including an initializer if you have one?
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
bruno-_ has quit [Ping timeout: 244 seconds]