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/
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Icey has quit [Quit: Leaving]
moeabdol has joined #ruby
Alazoral has quit [Ping timeout: 264 seconds]
Bellthoven has joined #ruby
skweek has joined #ruby
jtperreault has joined #ruby
moeabdol has quit [Client Quit]
jtperreault has left #ruby [#ruby]
jtperreault has joined #ruby
justinmburrous has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
y2k has quit [Quit: Page closed]
mistermocha has joined #ruby
sanjayu has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
zenguy_pc has quit [Ping timeout: 246 seconds]
moeabdol has joined #ruby
ericjphillips has joined #ruby
chipotle has joined #ruby
barhum2013 has quit [Quit: barhum2013]
michaeldeol has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
barhum2013 has joined #ruby
bkxd has joined #ruby
benlovell has joined #ruby
<shevy> good old webchatters with their very real questions
diegoaguilar_ has joined #ruby
diegoaguilar_ has quit [Remote host closed the connection]
diegoaguilar_ has joined #ruby
ericjphillips has quit [Ping timeout: 244 seconds]
balazs has quit [Ping timeout: 265 seconds]
fastAndSlow has quit [Quit: Lost terminal]
sheepman has quit [Quit: ZNC - http://znc.in]
wildlander has quit [Quit: Saliendo]
finisherr has quit [Quit: finisherr]
bkxd has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 250 seconds]
Bellthoven has quit []
Skelz0r has quit [Ping timeout: 250 seconds]
marr has quit [Ping timeout: 240 seconds]
Kerber0s has joined #ruby
Dopagod has quit [Quit: WeeChat 1.0]
bubbys has quit [Ping timeout: 260 seconds]
barhum2013 has quit [Quit: barhum2013]
Kerber0s has quit [Ping timeout: 244 seconds]
Igorshp has quit [Read error: Connection reset by peer]
renderfu_ has quit [Remote host closed the connection]
Igorshp has joined #ruby
baweaver has quit [Remote host closed the connection]
djbkd has joined #ruby
zenguy_pc has joined #ruby
devoldmx has joined #ruby
Igorshp has quit [Remote host closed the connection]
`tim` has joined #ruby
Ox0dea has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<Ox0dea> shevy: How do I invoke the instance methods of a singleton class?
CloCkWeRX has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
devoldmx has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
s2013 has joined #ruby
Yzguy has joined #ruby
bungoman_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
chipotle has quit [Quit: cheerio]
michaeldeol has joined #ruby
<shevy> hey
<shevy> use class methods man
speakingcode has quit [Ping timeout: 256 seconds]
s2013 has quit [Client Quit]
blackmesa has quit [Ping timeout: 240 seconds]
pocketprotector- has quit [Ping timeout: 250 seconds]
bungoman has quit [Ping timeout: 264 seconds]
bungoman_ has quit [Ping timeout: 250 seconds]
p3ery has joined #ruby
baweaver has joined #ruby
p3ery has quit [Client Quit]
EllisTAA has quit [Quit: EllisTAA]
p3ery has joined #ruby
p3ery has quit [Client Quit]
lkba has joined #ruby
Lucky__ has joined #ruby
p3ery has joined #ruby
p3ery has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
p3ery has joined #ruby
p3ery has quit [Client Quit]
mary5030 has joined #ruby
speakingcode has joined #ruby
mistermocha has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 246 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
dopieee has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
Rickmasta has joined #ruby
<shevy> Ox0dea you missed norc
mary5030 has quit [Ping timeout: 240 seconds]
Bellthoven has joined #ruby
<shevy> <norc> shevy: Im using Ruby extensively. Im just spending some time getting to know the internals bit by bit.
hahuang65 has joined #ruby
<shevy> he has lots of real questions
dopamean_ has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
mistermocha has joined #ruby
bkxd has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
<BraddPitt> can someone explain the difference between bundler's rake install command and `gem build *.gemspec`?
t_mmyv has joined #ruby
diegoaguilar_ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
weemsledeux has joined #ruby
mary5030 has joined #ruby
shmilan has joined #ruby
nateberkopec has joined #ruby
chipotle has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 246 seconds]
haraoka has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
<Ox0dea> BraddPitt: If "build" and "install" are synonymous in your dictionary, something's gone awry.
<Ox0dea> > real questions
mary5030 has quit [Ping timeout: 240 seconds]
<BraddPitt> wasn't sure if they did different things, since the output is different
<Ox0dea> shevy: How goes the C learning?
ramfjord has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
diegoaguilar_ has joined #ruby
<havenwood> BraddPitt: Build and install with bells and whistles and optional heel symbol versus simple build-only.
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 265 seconds]
baweaver has quit [Remote host closed the connection]
<havenwood> BraddPitt: Building a gem doesn't install the gem.
bruno- has quit [Ping timeout: 260 seconds]
Bellthoven has quit []
swgillespie has joined #ruby
<shevy> Ox0dea I dunno... 2015 is almost over already...
workmad3 has joined #ruby
bungoman has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<pipework> Thank Matz for that. Hopefully we all get a great Christmas present from him.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
Ox0dea has quit [Disconnected by services]
Ox0dea has joined #ruby
nk8 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
nateberkopec has joined #ruby
mistermocha has joined #ruby
<shevy> yeah
sdothum has joined #ruby
<Ox0dea> >> Time.now.yday / 365.0
<ruboto> Ox0dea # => 0.7835616438356164 (https://eval.in/449246)
<Ox0dea> pipework: matz is to blame for the year being ~78% over, you say?
workmad3 has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 256 seconds]
sanjayu has quit [Ping timeout: 255 seconds]
blue_deref has joined #ruby
nateberkopec has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
towski_ has quit [Remote host closed the connection]
<pipework> Ox0dea: It was a safer person to thank than any one diety.
<Ox0dea> matz isn't a deity, you say?
mistermocha has quit [Ping timeout: 246 seconds]
<pipework> Ox0dea: He's not just one.
<Ox0dea> If you mean he's *the* one, the matter is concluded.
<Ox0dea> "d | Convert argument as a decimal number." -- `ri sprintf`
<Ox0dea> >> '%d' % '0x0dea'
<ruboto> Ox0dea # => "3562" (https://eval.in/449250)
<Ox0dea> Is that an oops?
tlolczyk has joined #ruby
<Ox0dea> It bit me with an "octal" number in a string. :<
houhoulis has joined #ruby
space-oddity has joined #ruby
space-oddity has left #ruby ["Leaving"]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
tkuchiki has joined #ruby
tier has joined #ruby
<tlolczyk> Is there some sort of library that allows me top mount a volume ( linux ) without doing a popen/exec/system?
<Ox0dea> tlolczyk: There's a FUSE wrapper?
skweek has quit [Remote host closed the connection]
shoutsid has joined #ruby
<tlolczyk> Ox0dea, Sorry I forgot to mention that I will be running the script as root.
`tim` has joined #ruby
<Ox0dea> tlolczyk: More illuminating would be why you can't shell out.
bruce_lee2 has joined #ruby
beauby has joined #ruby
htmldrum has joined #ruby
stardiviner has joined #ruby
<tlolczyk> Ox0dea, I want to write a script that, given a partition name "/dev/sdf1", mounts that partition someplace, reads "/dev/sdf1"/etc/fstab mounts those partitions in the right place, then bind mounts the appropriate pseudofilesystems and chroot to the mount point. It doesn't make sense to shell out.
shoutsid has quit [Ping timeout: 244 seconds]
allcentury has quit [Ping timeout: 272 seconds]
bruce_lee has quit [Ping timeout: 250 seconds]
tier has quit [Remote host closed the connection]
haraoka has quit [Remote host closed the connection]
mary5030 has joined #ruby
simplyianm has joined #ruby
rewzn has quit [Ping timeout: 264 seconds]
tubuliferous has quit [Ping timeout: 252 seconds]
speakingcode has quit [Ping timeout: 272 seconds]
simplyianm has quit [Ping timeout: 244 seconds]
speakingcode has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Porfa has quit [Read error: Connection reset by peer]
rewzn has joined #ruby
Porfa has joined #ruby
riotjones has joined #ruby
Pathfinder_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
nateberkopec has quit [Remote host closed the connection]
tmtwd has joined #ruby
michael_mbp has quit [Excess Flood]
Igorshp has joined #ruby
iamjarvo_ has joined #ruby
cajone has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
speakingcode has quit [Ping timeout: 265 seconds]
colegatron has quit [Ping timeout: 246 seconds]
oetjenj has quit [Ping timeout: 240 seconds]
keen__________12 has joined #ruby
michael_mbp has joined #ruby
Igorshp has quit [Remote host closed the connection]
cajone has joined #ruby
Igorshp has joined #ruby
polycaster has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
keen__________11 has quit [Read error: Connection reset by peer]
oetjenj has joined #ruby
Igorshp has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
mistermocha has quit [Remote host closed the connection]
Ox0dea has joined #ruby
riskish has joined #ruby
speakingcode has joined #ruby
Limix has joined #ruby
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
Limix has quit [Client Quit]
cmoneylulz has joined #ruby
astrobun_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
Igorshp has quit [Ping timeout: 260 seconds]
jdawgaz has joined #ruby
haraoka has joined #ruby
Zamerick has quit [Read error: Connection reset by peer]
Channel6 has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
davedev24 has quit [Remote host closed the connection]
bruno- has joined #ruby
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
northfurr has joined #ruby
Rickmasta has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
eminencehc has joined #ruby
workmad3 has joined #ruby
zenguy_pc2 has joined #ruby
zenguy_pc has quit [Ping timeout: 250 seconds]
dorei has quit []
workmad3 has quit [Ping timeout: 256 seconds]
shoutsid has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
inteq has joined #ruby
Ropeney has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
PatrickKrebs has joined #ruby
PatrickKrebs has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 250 seconds]
skweek has joined #ruby
northfurr has quit [Quit: northfurr]
bruno- has quit [Ping timeout: 256 seconds]
renderfu_ has joined #ruby
northfurr has joined #ruby
devoldmx has joined #ruby
allcentury has joined #ruby
renderfu_ has quit [Ping timeout: 264 seconds]
unreal has quit [Ping timeout: 256 seconds]
blackjid has quit [Max SendQ exceeded]
cajone has quit [Remote host closed the connection]
grzegorz has joined #ruby
blackjid has joined #ruby
mary5030 has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 240 seconds]
bruce_lee2 is now known as bruce_lee
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
mary5030 has joined #ruby
tubuliferous has joined #ruby
finisherr has joined #ruby
unreal has joined #ruby
blackmesa has joined #ruby
cajone has joined #ruby
djbkd has quit [Quit: My people need me...]
phutchins has quit [Ping timeout: 256 seconds]
cmoneylulz has quit [Remote host closed the connection]
roshanavand has joined #ruby
mary5030 has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
c_nick has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
roshanavand has quit [Ping timeout: 246 seconds]
<c_nick> i have a job in team city (builin n release tool) it launches something and returns successful. so in this job i dont have the actual status of the job whether its successful or not.
<c_nick> I need to trigger another job post this. Any suggestion what would be the best way forward wrt implementation?
<c_nick> brb
cmoneylulz has joined #ruby
Soda has joined #ruby
swgillespie has joined #ruby
riotjones has joined #ruby
cmoneylulz has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
grzegorz has quit []
peteykun has quit [Quit: Leaving]
riotjones has quit [Ping timeout: 264 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
Feyn has joined #ruby
Outlander has joined #ruby
<Outlander> anyone see any issues running the same ruby app in amazon aws us-east-1 region vs other regions? specifically in a vpc vs not vpc? Start up of the ruby app is much slower, even on the same AMI
krz has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
benlieb has joined #ruby
Jameser has joined #ruby
northfurr has quit [Quit: northfurr]
bryanray has joined #ruby
Eiam_ has joined #ruby
skweek has quit [Remote host closed the connection]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
bryanray has quit [Ping timeout: 240 seconds]
bryanray has joined #ruby
aaeron has quit [Quit: Leaving.]
gener1c_ has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
mrtomme has quit [Ping timeout: 264 seconds]
mrtomme has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
skweek has joined #ruby
sankaber has quit [Remote host closed the connection]
gener1c has quit [Ping timeout: 252 seconds]
sankaber has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aaeron has joined #ruby
aaeron has quit [Client Quit]
c_nick has left #ruby [#ruby]
braincrash has quit [Quit: bye bye]
favadi has joined #ruby
djbkd has joined #ruby
gix has quit [Ping timeout: 265 seconds]
justin_pdx has joined #ruby
braincrash has joined #ruby
workmad3 has joined #ruby
lubarch has joined #ruby
gix has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
tlolczyk has quit [Quit: Leaving]
diegoaguilar_ has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
Eiam_ has quit [Read error: Connection reset by peer]
vdamewood has quit [Quit: Life beckons.]
bkxd has joined #ruby
Porfa has quit [Quit: Porfa]
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
benlieb has quit [Quit: benlieb]
bkxd has quit [Ping timeout: 240 seconds]
jpfuentes2 has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
nk8 has joined #ruby
Porfa has joined #ruby
_blizzy_ has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
mistermocha has joined #ruby
nk8 has quit [Ping timeout: 250 seconds]
The_Phoenix has joined #ruby
Jameser` has joined #ruby
Jameser has quit [Ping timeout: 244 seconds]
bandrami has joined #ruby
psy_ has quit [Ping timeout: 256 seconds]
devbug has joined #ruby
benlieb has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
eminencehc has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
skweek has quit [Remote host closed the connection]
michael_mbp has joined #ruby
darkf has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 272 seconds]
skweek has joined #ruby
amystephen has quit [Quit: amystephen]
aaeron has joined #ruby
aaeron1 has joined #ruby
pawnbox has joined #ruby
aaeron has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has quit [Remote host closed the connection]
skweek has joined #ruby
jpfuentes2 has joined #ruby
devoldmx has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
s00pcan has joined #ruby
opal has joined #ruby
benlovell has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has quit [Remote host closed the connection]
justin_pdx has quit [Quit: justin_pdx]
grenierm has joined #ruby
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
zotherstupidguy has joined #ruby
arup_r has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
bungoman has quit []
towski_ has joined #ruby
minimalism has quit [Quit: leaving]
spuk has joined #ruby
sivsushruth has quit [Ping timeout: 240 seconds]
sivsushruth has joined #ruby
minimalism has joined #ruby
jdawgaz has joined #ruby
psk17_ has joined #ruby
shmilan has joined #ruby
pawnbox has quit [Remote host closed the connection]
opal has left #ruby [#ruby]
pawnbox has joined #ruby
psk17_ has quit [Max SendQ exceeded]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Porfa has quit [Quit: Porfa]
yfeldblum has quit [Ping timeout: 240 seconds]
Plas has joined #ruby
skweek has joined #ruby
xxneolithicxx has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
zenguy_pc2 has quit [Ping timeout: 255 seconds]
skweek has quit [Remote host closed the connection]
skweek has joined #ruby
krz has quit [Quit: WeeChat 1.2]
mistermocha has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
skweeke has joined #ruby
astrobunny has joined #ruby
Yzguy has quit [Quit: Zzz...]
jpfuentes2 has joined #ruby
ICantCook has quit [Ping timeout: 268 seconds]
skweek has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
sankaber has quit [Remote host closed the connection]
t_mmyv has quit [Ping timeout: 240 seconds]
yardenbar has joined #ruby
Plas has quit [Quit: ZNC - http://znc.in]
sankaber has joined #ruby
astrobunny has quit [Ping timeout: 250 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
yardenbar has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
jenrzzz has joined #ruby
Gnomethrower has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
blue_deref has quit [Quit: Taking myself out of hear.]
zenguy_pc2 has joined #ruby
renderfu_ has joined #ruby
benlovell has joined #ruby
LMity has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
v0n has quit [Quit: WeeChat 1.0.1]
yosafbridge has quit [Read error: Connection reset by peer]
renderfu_ has quit [Ping timeout: 268 seconds]
houhoulis has quit [Remote host closed the connection]
tubuliferous has joined #ruby
benlovell has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
bruno- has joined #ruby
bandrami has quit [Quit: bandrami]
mistermocha has joined #ruby
NeverDie has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
Sam_Gerber has quit [Ping timeout: 246 seconds]
Kero has quit [Ping timeout: 250 seconds]
Kero has joined #ruby
yosafbridge has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
|ifei5good has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
Log1x has quit [Ping timeout: 240 seconds]
johnny56 has quit [Read error: Connection reset by peer]
lemur has joined #ruby
noethics has quit [Quit: Leaving]
|ifei5g00d has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 260 seconds]
johnny56 has joined #ruby
framlinqp has quit [Read error: Connection reset by peer]
pharaoh2 has joined #ruby
Log1x has joined #ruby
l_tonz has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
aaeron1 has quit [Quit: Leaving.]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aaeron has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
tkuchiki has quit [Remote host closed the connection]
riotjones has joined #ruby
tkuchiki has joined #ruby
Igorshp has joined #ruby
astrobunny has joined #ruby
psy_ has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
doritostains has quit [Ping timeout: 240 seconds]
Jameser` has quit [Ping timeout: 240 seconds]
Igorshp has quit [Ping timeout: 256 seconds]
mondayrain has joined #ruby
mondayrain has quit [Remote host closed the connection]
<finisherr> How do I call a class as a method?
<finisherr> I’ve seen this before, I think in nokogiri
<Ox0dea> finisherr: Pardon?
Sam_Gerber has joined #ruby
<finisherr> Where you run something like ClassOrModuleName(param)
<Ox0dea> That's just a method.
<Ox0dea> Methods can share names with classes.
<finisherr> I’ve seen helper methods like that
<finisherr> Ah, interesting
<finisherr> didn’t know that
lubarch has quit [Ping timeout: 240 seconds]
<finisherr> Cool thanks
<Ox0dea> Happy to help.
solocshaw has joined #ruby
tesuji has joined #ruby
<Ox0dea> finisherr: I probably shouldn't show you this, but here it is. https://eval.in/449354
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
|ifei5good has quit [Ping timeout: 250 seconds]
<finisherr> I was thinking of something like: http://www.nokogiri.org/tutorials/parsing_an_html_xml_document.html
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> You found Nokogiri!
<Ox0dea> Here's what's going on: https://eval.in/449355
|ifei5g00d has joined #ruby
<finisherr> Yeah
<Ox0dea> The "trick" is to realize that `::` and `.` are equivalent for invoking methods.
<Ox0dea> But forget you read that. :P
<finisherr> yeah, maybe it’s not idiomatic
<Ox0dea> >> 'foobar'::size
<ruboto> Ox0dea # => 6 (https://eval.in/449356)
<Ox0dea> It's ghastly.
tubuliferous has quit [Ping timeout: 244 seconds]
<finisherr> In some cases it migth be considered sugary though?
<finisherr> ha
<Ox0dea> Oh, certainly.
<Ox0dea> Ruby is easily the sweetest language, in that sense.
<finisherr> yeah
<Ox0dea> finisherr: To cap the thing, here's what you were looking for: http://git.io/vC0Nx
<finisherr> I’ve been doing a lot of Chef cookbook work and it’s really opened the doors for me. A lot of the flexibility got on my nerves at first. Just takes some getting used to.
<finisherr> Yeah! That’s what I was looking at
skweeke has quit [Ping timeout: 246 seconds]
PlasmaStar has quit [Quit: ZNC - http://znc.in]
<finisherr> I have a particular situation where this might make sense
<finisherr> thanks
<Ox0dea> I guess it's "good" insofar as it makes folks such as yourself dive a bit further to figure out what's going on.
djbkd has quit [Quit: Leaving...]
rakm has joined #ruby
spuk has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
<Ox0dea> Still, invoking `Nokogiri.HTML` as the convenience method seems the best of both worlds.
Spami has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
lubarch has joined #ruby
beauby has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
dhjondoh has joined #ruby
Eiam_ has joined #ruby
stardiviner has quit [Ping timeout: 252 seconds]
scripore has joined #ruby
|ifei5good has joined #ruby
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Platini has quit [Remote host closed the connection]
devyn has quit [Remote host closed the connection]
|ifei5g00d has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby
pharaoh2 has joined #ruby
warriorkitty has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
towski_ has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 246 seconds]
doritostains has joined #ruby
<warriorkitty> Inside Ruby's source code, in file main.c is a line: "#undef RUBY_EXPORT". What does it do?
bkxd has joined #ruby
warriorkitty has quit [Read error: Connection reset by peer]
odigity has quit [Ping timeout: 244 seconds]
warriorkitty has joined #ruby
<Ox0dea> warriorkitty: Ruby can be used from other C programs.
BTRE has quit [Quit: Leaving]
<Ox0dea> Ruby itself, however, is not such a program, so it shouldn't export the things it otherwise would when used as an interpreter.
<warriorkitty> Ox0dea: Seems reasonable, thank you.
devyn has joined #ruby
<warriorkitty> I'm diving into source code. :D
xxneolithicxx has joined #ruby
<Ox0dea> Yay!
xxneolithicxx has quit [Max SendQ exceeded]
eminencehc has joined #ruby
<Ox0dea> `grep -R -A5 '#ifdef RUBY_EXPORT'` if you want to see where all it participates.
<Ox0dea> It's not terribly interesting, mind.
<warriorkitty> Hah, I was just googling grep functionalities for this. :D Thanks!
<warriorkitty> I hate the capital R and r inconsitencies.
<Ox0dea> Yay, Unix!
Gnomethrower has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 246 seconds]
MeMoc has joined #ruby
BTRE has joined #ruby
<Ox0dea> I only used `grep` because I knew you'd likely recognize it; do yourself the favor of upgrading to `ag` (the_silver_searcher). :P
<Ox0dea> It's recursive by default, but that's the tip of the iceberg.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<warriorkitty> Well, I was learning PHP's source code through the software called... Just a min.
<Ox0dea> A masochist, eh?
<warriorkitty> hahahaha
MeMoc_ has joined #ruby
MeMoc has quit [Client Quit]
MeMoc_ is now known as MeMoc
MeMoc has quit [Client Quit]
shoutsid has quit [Remote host closed the connection]
MeMoc has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shoutsid has joined #ruby
rattatmatt has quit [Quit: Leaving]
<warriorkitty> lxn or something like that. Web app, which understood all the macros and was capable finding definitions and implementations.
amystephen has joined #ruby
<Ox0dea> warriorkitty: You want ctags.
<Ox0dea> And an editor capable of incorporating them, I suppose.
kidoz has quit [Quit: Ухожу я от вас]
<warriorkitty> Well, I have ctags vim. :D
<Ox0dea> Then you're good to go.
dhjondoh has quit [Quit: dhjondoh]
favadi has joined #ruby
<Ox0dea> <C-]> on any identifier that tickles your fancy.
shoutsid has quit [Remote host closed the connection]
tmtwd has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
favadi has quit [Max SendQ exceeded]
l_tonz has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
warriorkitty has quit [Read error: Connection reset by peer]
amystephen has quit [Ping timeout: 272 seconds]
ruurd has joined #ruby
|ifei5good has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
tagrudev has joined #ruby
LMity has quit [Ping timeout: 240 seconds]
skade has joined #ruby
aaeron has quit [Ping timeout: 246 seconds]
trautwein has joined #ruby
bruno- has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
RobertBirnie has joined #ruby
RobertBirnie has quit [Max SendQ exceeded]
Gnomethrower has joined #ruby
yardenbar has joined #ruby
ruurd has joined #ruby
RobertBirnie has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
dhjondoh has joined #ruby
ruurd has quit [Client Quit]
shoutsid has joined #ruby
pawnbox has quit [Remote host closed the connection]
shoutsid has quit [Remote host closed the connection]
niemcu has joined #ruby
codecop has joined #ruby
Igorshp has joined #ruby
pawnbox has joined #ruby
claw has quit [Ping timeout: 250 seconds]
claw has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
devoldmx has quit [Read error: Connection reset by peer]
Igorshp has quit [Ping timeout: 264 seconds]
blueOxigen has quit [Ping timeout: 256 seconds]
shoutsid has joined #ruby
Pathfinder_ has quit [Ping timeout: 244 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
shoutsid has quit [Remote host closed the connection]
Pathfinder_ has joined #ruby
krz has joined #ruby
boozehound has joined #ruby
odigity has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
AlexRussia has quit [Quit: WeeChat 1.4-dev]
yeticry has quit [Read error: Connection reset by peer]
UtkarshRay has joined #ruby
Lucky__ has joined #ruby
zenguy_pc2 has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
aaeron has joined #ruby
weemsledeux has joined #ruby
oetjenj has quit [Ping timeout: 240 seconds]
sanjayu has joined #ruby
AlexRussia has joined #ruby
riotjones has joined #ruby
eminencehc has quit [Remote host closed the connection]
haraoka has quit [Ping timeout: 268 seconds]
warriorkitty has joined #ruby
yeticry has joined #ruby
ekleog has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
oetjenj has joined #ruby
aaeron has quit [Ping timeout: 246 seconds]
Meow-J has quit [Quit: Connection closed for inactivity]
shoutsid has joined #ruby
<awk> guys, what is the best way to do this.. I want to replace 000_blah.csv / 0001_blah1.csv ... I'm trying to use gsub to remove just the 000_ (so digits underscore) and the csv .. I tried if tableName =~ /[d+]/ a = tableName.gsub /.*_|\.csv/'' else a = tableName.gsub /\.csv/,'' end return a
acke has joined #ruby
mmasaki has joined #ruby
tomphp has joined #ruby
shoutsid has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xiti` has joined #ruby
tomphp has quit [Client Quit]
boozehound has quit [Ping timeout: 272 seconds]
warriorkitty has quit [Quit: Lost terminal]
|ifei5g00d has quit [Read error: Connection reset by peer]
|ifei5good has joined #ruby
astrobunny has quit [Ping timeout: 255 seconds]
Pupp3tm4st3r has joined #ruby
Xiti has quit [Ping timeout: 244 seconds]
<Ox0dea> >> '0001_foo_bar_baz.csv'[/_(\w+)/, 1] # awk
<ruboto> Ox0dea # => "foo_bar_baz" (https://eval.in/449369)
lemur is now known as baweaver
<Ox0dea> It works because '_' is in \w and '.' isn't.
astrobunny has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
Pathfinder_ has quit [Ping timeout: 268 seconds]
oetjenj has quit [Ping timeout: 244 seconds]
`based_pdev` has joined #ruby
pepperbreath1 has joined #ruby
simplyianm has joined #ruby
jgt has joined #ruby
stardiviner has quit [Ping timeout: 256 seconds]
brixen_ has quit [Ping timeout: 250 seconds]
julie_harshaw has quit [Ping timeout: 250 seconds]
Scient has quit [Ping timeout: 250 seconds]
_aeris_ has quit [Ping timeout: 250 seconds]
havenwood has quit [Ping timeout: 250 seconds]
helpa has quit [Ping timeout: 250 seconds]
astrobunny has quit [Ping timeout: 250 seconds]
Vile` has quit [Ping timeout: 250 seconds]
apeiros has quit [Ping timeout: 250 seconds]
Rixius has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Ping timeout: 250 seconds]
hectortrope has quit [Ping timeout: 250 seconds]
alexherbo2 has quit [Ping timeout: 250 seconds]
PDI has quit [Ping timeout: 250 seconds]
pepperbreath has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 250 seconds]
Feyn has quit [Ping timeout: 250 seconds]
b3nt_pin has quit [Ping timeout: 250 seconds]
ksteck has quit [Ping timeout: 250 seconds]
tubbo has quit [Ping timeout: 250 seconds]
based_pdev_ has quit [Ping timeout: 250 seconds]
CrazyEddy has quit [Ping timeout: 250 seconds]
omegahm has quit [Ping timeout: 250 seconds]
bnagy has quit [Ping timeout: 250 seconds]
ejnahc has quit [Ping timeout: 250 seconds]
Brando753 has quit [Ping timeout: 250 seconds]
omegahm_ has joined #ruby
havenn has joined #ruby
Rixius|Alt has joined #ruby
swgillespie has quit [Ping timeout: 250 seconds]
davidt has quit [Ping timeout: 250 seconds]
Biohazard has quit [Ping timeout: 250 seconds]
Caelum has quit [Ping timeout: 250 seconds]
lotherk has quit [Ping timeout: 250 seconds]
iceden has quit [Ping timeout: 250 seconds]
apeiros has joined #ruby
Biohazard has joined #ruby
lotherk has joined #ruby
tomphp has joined #ruby
havenn is now known as havenwood
omegahm_ is now known as omegahm
<certainty> moin
Feyn has joined #ruby
hectortrope has joined #ruby
oetjenj has joined #ruby
julieeharshaw has joined #ruby
_aeris_ has joined #ruby
Scient has joined #ruby
PDI has joined #ruby
alexherbo2 has joined #ruby
astrobunny has joined #ruby
renderfu_ has joined #ruby
helpa has joined #ruby
bnagy has joined #ruby
ejnahc has joined #ruby
yardenbar has joined #ruby
b3nt_pin has joined #ruby
boozehound has joined #ruby
b3nt_pin is now known as Guest92803
tubbo has joined #ruby
davidt has joined #ruby
iceden has joined #ruby
shoutsid has joined #ruby
Vile` has joined #ruby
eGGsha has joined #ruby
Caelum has joined #ruby
firstdayonthejob has joined #ruby
Mia has quit [Ping timeout: 265 seconds]
stardiviner has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
brixen has joined #ruby
Brando753 has joined #ruby
renderfu_ has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
timonv has joined #ruby
<Sam_Gerber> Hi there, very stupid question from total noob here, but I don't know the right words to use to search for this online. What do you do in the class definition to determine the value an object will return if a user inspects or puts the object without calling one of its methods or accessing one of its attributes?
Mia has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
beast has joined #ruby
hadrig has joined #ruby
<Ox0dea> Sam_Gerber: If your object is passed to Kernel#p, its #inspect method is used, otherwise its #to_s.
mloy has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
blaxter has joined #ruby
blackmesa has joined #ruby
astrobunny has joined #ruby
<Sam_Gerber> Thank you, I'll try to see if I can understand the implications:)
l_tonz has joined #ruby
<Ox0dea> Sam_Gerber: In the broadest possible strokes, #print and #puts are intended to be read by users, whereas #p is almost always for debug printing.
<Ox0dea> Thus, you want the gritty details in #inspect, and something nicer to look at for #to_s.
<eam> >> p p p p p to_s
<ruboto> eam # => "main" ...check link for more (https://eval.in/449381)
<awk> Ox0dea: thanks, sorry I missed your reply, I landed up doing this gsub(/^[a-zA-Z]_|\.csv$/, '')
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Sam_Gerber: What he's trying to say is that #p returns its argument, whereas #print and #puts return `nil`.
<eam> oh, I had a message?
<eam> it's a good one; I'm proud of myself
<Ox0dea> awk: Using #gsub for matching is ungood, but okay.
<Sam_Gerber> yes, that part I understand. I'm just having an issue with a class I've made that inherits from String. I can do pretty much everything I want to with the class, but the string is stored an accessed as an instance variable, and putsing printing inspect the object itself just yields an empty string. Where can I see the implementation of the String class?
<Ox0dea> Sam_Gerber: It's implemented in C.
<Sam_Gerber> augh
<Ox0dea> You could always check out Rubinius' implementation?
<awk> Ox0dea: what is the reason for that
<awk> I would like to learn
<Ox0dea> Sam_Gerber: In any case, you probably shouldn't be inheriting from String.
blackmesa has quit [Ping timeout: 265 seconds]
<eam> Sam_Gerber: I'm curious, care to share code?
<Ox0dea> awk: Well, the "sub" in #gsub is "substitution"; you're carving the marble rather than picking a statue off the shelf, as it were.
stan has joined #ruby
<Ox0dea> You want to extract some portion of the string, not remove the bits in which you're not interested. They ultimately amount to the same thing, but one is much clearer and intention-revealing than the other.
<Sam_Gerber> It's super messy and I'm sure completely rudimentary, it's the second problem from exercism.io https://eval.in/449383
oetjenj has quit [Ping timeout: 260 seconds]
kwd has joined #ruby
<Ox0dea> Sam_Gerber: How come you're inheriting from String? Does Strand need ~170 instance methods?
<awk> Ox0dea: interesting thanks
freezevee has joined #ruby
oetjenj has joined #ruby
<eam> Sam_Gerber: when you redefine initialize() you cause the original initializer for String to not becalled
<eam> Sam_Gerber: try adding "super" at the end of your initialize
<Ox0dea> Y U DO DIS?
<Sam_Gerber> Ox0dea, nope, certainly don't. I think I only really ever used length
lubarch has quit [Ping timeout: 256 seconds]
<Ox0dea> Sam_Gerber: Well, you're using #each_char there.
dikaio has quit [Ping timeout: 250 seconds]
<Ox0dea> But you're invoking it on the instance variable that contains a String, not the Strand itself.
krz has quit [Read error: Connection reset by peer]
<eam> yeah, Strand doesn't need to inherit from String to use string like methods
<eam> but as a learning exercise, why not?
<Sam_Gerber> that makes sense
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bb010g has quit [Quit: Connection closed for inactivity]
<Sam_Gerber> ok, I feel bad spamming so much here on such basic stuff, I'll try to search around more about it on my own. I really appreciate everone's time in reading and helping, though. Cheers.
tomphp has joined #ruby
oetjenj has quit [Client Quit]
<Ox0dea> Sam_Gerber: Do you know about the Koans?
<eam> >> class Thing < String; end; x = Thing.new "thing"; class Thing2 < String; def initialize x; end; end; y = Thing2.new "thing"; class Thing3 < String; def initialize x; super; end; end; z = Thing3.new "thing"; [x,y,z]
<ruboto> eam # => ["thing", "", "thing"] (https://eval.in/449384)
<Sam_Gerber> downloading them now, thanks Ox0dea
_blizzy_ has joined #ruby
bruno- has joined #ruby
<Ox0dea> Huzzah!
<eam> well now what are we going to talk about
<Ox0dea> My implementation of Strand? https://eval.in/449386
<Ox0dea> Alternatively, cat tag.
<Sam_Gerber> eam, yes, that's exactly the behavior I was trying to figure out
<Sam_Gerber> thanks
<eam> np
psy_ has quit [Remote host closed the connection]
pepperbreath1 has left #ruby [#ruby]
Outlander has left #ruby [#ruby]
<eam> >> String, Fixnum = Fixnum, String; 1.class
<ruboto> eam # => /tmp/execpad-5dbaf82b7e16/source-5dbaf82b7e16:2: warning: already initialized constant String ...check link for more (https://eval.in/449388)
<eam> ugh, ruboto you and warnings
<Ox0dea> Wat.
<Sam_Gerber> thanks for the cat tag...it's much nicer. I'm going to disappear for the next bit reading about super and zip
doritostains has quit [Quit: WeeChat 1.1.1]
troulouliou_div2 has joined #ruby
ekleog has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
<eam> >> $VERBOSE = nil; String, Fixnum = Fixnum, String; 1.class
<ruboto> eam # => String (https://eval.in/449390)
<Ox0dea> >> require 'fiddle'; magic =->o { Fiddle::Pointer.new(o.__id__*2)[4,4] = [Fixnum.__id__*2].pack ?Q }; str = 'foo'; magic[str]; str
<ruboto> Ox0dea # => 541368550 (https://eval.in/449392)
skade has quit [Quit: Computer has gone to sleep.]
roshanavand has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
roshanavand has joined #ruby
<eam> >> rand(2**31).instance_eval { object_id === self * 2 + 1 }
<ruboto> eam # => true (https://eval.in/449395)
_blizzy_ has joined #ruby
brunto has joined #ruby
<Ox0dea> What're the odds? ;)
<Ox0dea> >> '\\a'.tr '\\a', ''
bruno- has quit [Ping timeout: 250 seconds]
<ruboto> Ox0dea # => "\\" (https://eval.in/449396)
<Ox0dea> Hm, I don't think that's right.
krz has joined #ruby
Guest96590 is now known as Apocalypse
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
samson65321 has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
<Ox0dea> x.tr(x, "") ought to be "" for all x, no?
samson65321 has left #ruby [#ruby]
lubarch has joined #ruby
joufflu has quit [Read error: Connection reset by peer]
jas02 has joined #ruby
<eam> Ox0dea: looks like \ is meta to tr
<Ox0dea> eam: Aye, but only for '^' and '-' if the documentation is to be believed.
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
speakingcode has quit [Ping timeout: 244 seconds]
tomphp has joined #ruby
andikr has joined #ruby
jenrzzz has joined #ruby
<Ox0dea> `tr -d '\\a' <<< '\\a'` is empty, and it seems like Ruby ought to behave like its namesake in this regard.
<eam> yeah, this is odd
<Ox0dea> Easy enough to conclude that the bug is in the documentation.
nfk|laptop has joined #ruby
<eam> so, the docs conflict
<Ox0dea> Only insofar as they don't mention '\' itself as being a metacharacter, I suppose.
<Ox0dea> >> '\\a'.tr '\\\\a', ''
<ruboto> Ox0dea # => "" (https://eval.in/449405)
<eam> tr definitely supports \a as the escape for bell
<Ox0dea> It's nothing to do with the 'a'.
<eam> oh wait, it's using "" in the examples
<eam> perl tr allows escapes for those sequences
guardianL has joined #ruby
<Ox0dea> Why should "" matter?
michael_mbp has quit [Excess Flood]
<Ox0dea> >> '\\' == "\\"
<ruboto> Ox0dea # => true (https://eval.in/449406)
<eam> well "\a
<eam> >> "\a".size
<ruboto> eam # => 1 (https://eval.in/449407)
michael_mbp has joined #ruby
<eam> >> "\a".ord
<ruboto> eam # => 7 (https://eval.in/449408)
<eam> bel char
<eam> '\a' is two characters
finisherr has quit [Quit: finisherr]
<Ox0dea> >> '\\:'.tr '\\:', ''
<ruboto> Ox0dea # => "\\" (https://eval.in/449409)
<Ox0dea> Better?
<eam> seems like a bug
workmad3 has joined #ruby
<Ox0dea> >> '\\:'.tr ':\\', '' # Definitely.
<ruboto> Ox0dea # => "" (https://eval.in/449410)
shoutsid has quit [Remote host closed the connection]
* Ox0dea wonders how tr_trans() came to be 243 lines long.
pawnbox has quit [Remote host closed the connection]
<Ox0dea> Jesus, there's even a `struct tr` type for this monstrosity.
<eam> Ox0dea: I think the parsing rules for \\x in tr are reversed
<eam> the backslash is escaping the rightmost character
<Ox0dea> I'm not sure I follow.
<Ox0dea> I'm always using an even number of '\'s.
workmad3 has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Remote host closed the connection]
Pupeno has joined #ruby
<eam> ok I got it
<eam> The backslash character can be used to escape ^ or - and is otherwise ignored
bkxd has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
<eam> so it's being ignored, yeah?
<Ox0dea> Then why does double-escaping do the "right" thing?
Pupp3tm4_ has joined #ruby
<eam> I'm guessing "can be used to escape ^ or - or \\" is more accurate
lubarch has quit [Quit: leaving]
l_tonz has quit [Remote host closed the connection]
<eam> no, that's nonsense
<Ox0dea> Aye, I'm pretty sure the code *and* the documentation are wrong here.
guardianL has quit [Quit: Community garden workshop, teach me to rake and hoe-oe!]
simplyianm has quit [Remote host closed the connection]
<Ox0dea> tr_trans() may well be the longest method implementation in MRI, and there are no occurrences of '-' or '\\' in it, so I'm gonna bail.
<eam> yeah I don't see the ascii ordinal value either
<Ox0dea> You're sick.
Klumben has quit [Ping timeout: 246 seconds]
<Ox0dea> Spoken like somebody who's been there, I suppose.
Pupp3tm4st3r has quit [Ping timeout: 244 seconds]
norc_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
firstdayonthejob has quit [Ping timeout: 250 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnhamelink has quit [Ping timeout: 246 seconds]
benlieb has quit [Quit: benlieb]
ruurd has joined #ruby
SCHAAP137 has joined #ruby
terlar has joined #ruby
stardiviner has joined #ruby
<shevy> you two are like brothers!
pharaoh2 has joined #ruby
devbug_ has joined #ruby
<Ox0dea> >> "\a".tr '\\a', ''
<ruboto> Ox0dea # => "\a" (https://eval.in/449430)
jgt has quit [Ping timeout: 255 seconds]
<Ox0dea> Worth a shot. I concede that I have no idea.
<Ox0dea> shevy: [k- is usually around about now, no?
yeshacker has joined #ruby
solars has joined #ruby
devbug has quit [Ping timeout: 268 seconds]
* eam ^C's the build and adds --disable-install-rdoc
shoutsid has joined #ruby
<shevy> dunno, Singaporean time zone
platzhirsch has joined #ruby
khebbie has joined #ruby
karapetyan has joined #ruby
jgt has joined #ruby
<Ox0dea> eam: Did you find where '-' gets interpreted?
zotherstupidguy has quit [Ping timeout: 240 seconds]
l_tonz has joined #ruby
favadi has joined #ruby
<eam> trnext()
jgt has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
<Ox0dea> Hey, there's '\\' too.
herbst has joined #ruby
joonty has joined #ruby
lubarch has joined #ruby
roshanavand has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
Igorshp has joined #ruby
skade has joined #ruby
ght has quit [Remote host closed the connection]
subscope has joined #ruby
roshanavand has joined #ruby
senayar has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
Igorshp has quit [Ping timeout: 246 seconds]
kimegede has joined #ruby
Skelz0r has joined #ruby
l_tonz has quit [Remote host closed the connection]
Cyther_ has quit [Read error: Connection reset by peer]
pharaoh2 has quit [Quit: Textual IRC Client: www.textualapp.com]
Hounddog has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgt has joined #ruby
The_Phoenix1 has joined #ruby
devoldmx has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
craysiii has joined #ruby
n008f4g_ has joined #ruby
The_Phoenix has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
bruno- has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
kalusn has joined #ruby
Voker57 has joined #ruby
Voker57 has quit [Changing host]
Voker57 has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
heathd has joined #ruby
Ox0dea has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
rdark has joined #ruby
allcentury has joined #ruby
krisquigley has joined #ruby
<yorickpeterse> morning
<bougyman> yes, yes it is.
SCHAAP137 has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
jgt has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
lsmola_ has joined #ruby
roshanavand has quit [Remote host closed the connection]
pawnbox has joined #ruby
roshanavand has joined #ruby
krz has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
krz has joined #ruby
boozehound has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
roshanavand has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
[k- has joined #ruby
roshanavand has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
Voker57 has quit [Ping timeout: 264 seconds]
<shevy> translate for me my pretties
workmad3 has quit [Ping timeout: 240 seconds]
Nanuq has quit [Ping timeout: 264 seconds]
Kendos-Kenlen has joined #ruby
bkxd has joined #ruby
khebbie has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
Voker57 has joined #ruby
Nanuq has joined #ruby
<[k-> now we know shevy thinks canton7 is pretty!
<canton7> pffft
<[k-> Ox0dea isn't here :(
<[k-> :(((((((
<[k-> shevy whyyyyyyyyyy
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> <Ox0dea> shevy: [k- is usually around about now, no?
<shevy> like 5 minutes ago really
<shevy> that translate is yoda speak :)
<norc_> More like 50 minutes.
beast has quit [Quit: Leaving]
<norc_> [k- might have a bad memory, but your sense of time is worse!
subscope has joined #ruby
<[k-> my sense of time is pretty bad too, i can miss a whole day at times
bkxd has quit [Ping timeout: 264 seconds]
<[k-> shevy: im coding, im coding!
jenrzzz has joined #ruby
boozehound has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
moty66 has joined #ruby
<norc_> shevy: Here is my professional translation. He or she wants File.open to do things.
Peg-leg has joined #ruby
mark2 has joined #ruby
stardiviner has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
<Couch> Can anyone help me fix this newbie problem ?: http://pastebin.com/SpdjuR7B
<ruboto> Couch, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/ad501dfda17a9829af9a
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Couch> why thank you ,ruboto
ndrei has quit [Ping timeout: 260 seconds]
benlovell has joined #ruby
<shevy> norc_ well it was cross-referenced in File#unlik
last_staff has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
<shevy> erm
<shevy> File#unlink
Kendos-Kenlen_ has joined #ruby
<shevy> Couch munge_boolean is not known to the class
<shevy> try if "include PuppetX" in your class will fix this error
<Couch> shevy, indeed, what is the correct way to call it? I tried PuppetX.munge_boolean, which also did not work
The_Phoenix has joined #ruby
Kendos-Kenlen has quit [Ping timeout: 264 seconds]
benlovell has quit [Client Quit]
<shevy> yes, you'd have to do a def self.munge_boolean for the API example you gave
<shevy> but simply include the module, you have done so before right?
The_Phoenix has quit [Client Quit]
<Couch> shevy, include PuppetX solves it, but is there no other way ? It doesn't feel right
<yorickpeterse> heh, File#unlick should be a thing
<Couch> aha
<norc_> shevy: On a more serious note, do you still want to know what the ticket is about?
zotherstupidguy has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobu__ has joined #ruby
<Couch> including a module in a class that is inside that module's namespace feels wrong
beast has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix1 has quit [Ping timeout: 268 seconds]
bluOxigen has joined #ruby
workmad3 has joined #ruby
<Couch> after including PuppetX, PuppetX::BooleanProperty::BooleanProperty exists
blackmesa has joined #ruby
ndrei has joined #ruby
beast_ has joined #ruby
<shevy> norc_ the yoda translate said that matz approved of the second change, I still don't know about File#unlink
roshanavand has joined #ruby
simplyianm has joined #ruby
<shevy> Couch module_function could be used, but it makes the method private
<shevy> but it really depends on how you want to use the API
krisquigley has quit []
<shevy> if you just want to add methods to your class, then you can do so via a module, and use "include" or "extend"
The_Phoenix1 has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
rdark_ has joined #ruby
bruno-_ has joined #ruby
krisquigley has joined #ruby
The_Phoenix1 has quit [Client Quit]
<Couch> shevy, thanks!
Trynemjoel has quit [Ping timeout: 264 seconds]
roshanavand has quit [Ping timeout: 264 seconds]
simplyianm has quit [Ping timeout: 240 seconds]
<norc_> shevy: I suppose its just about that code example where they do Tempfile.create { |f| f.unlink } -- which would only work in Win32 if FILE_SHARE_DELETE is passed in CreateFile.
<norc_> From what I can gather at MSDN anyway.
dmolina has joined #ruby
<norc_> shevy: And the japanese patch just provided that functionality to Ruby.
<norc_> but idk
gregoriokusowski has joined #ruby
The_Phoenix has quit [*.net *.split]
beast has quit [*.net *.split]
rdark has quit [*.net *.split]
bruno- has quit [*.net *.split]
skade has quit [*.net *.split]
solars has quit [*.net *.split]
_aeris_ has quit [*.net *.split]
lkba_ has joined #ruby
lkba has quit [Read error: Connection reset by peer]
solars has joined #ruby
_aeris_ has joined #ruby
krz has quit [Read error: Connection reset by peer]
ruurd has quit [Quit: ZZZzzz…]
c0m0 has joined #ruby
The_Phoenix has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<shevy> well windows
<shevy> we adhere to the lowest common denominator!
ndrei has joined #ruby
The_Phoenix has quit [Ping timeout: 240 seconds]
Kendos-Kenlen_ has quit [Quit: Konversation terminated!]
ruurd has joined #ruby
<norc_> shevy: Nothing wrong with Windows. Except when you want to do anything Ruby related.
devoldmx has joined #ruby
<bougyman> and give microsoft all your datas.
devbug has joined #ruby
marr has joined #ruby
michael_mbp has quit [Excess Flood]
Balzrael has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
Pupp3tm4_ has quit [Read error: Connection reset by peer]
devbug_ has quit [Ping timeout: 260 seconds]
leafybasil has joined #ruby
Pupp3tm4st3r has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
ruurd has quit [Quit: ZZZzzz…]
michael_mbp has joined #ruby
jenrzzz has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
neanderslob has quit [Read error: Connection reset by peer]
polycaster has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
The_Phoenix has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
Kendos-Kenlen has joined #ruby
T1loc has joined #ruby
niemcu has quit [Ping timeout: 264 seconds]
Kero has quit [Ping timeout: 246 seconds]
Kendos-Kenlen has quit [Client Quit]
ruurd has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
codecop has quit [Remote host closed the connection]
jenrzzz has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
Kero has joined #ruby
The_Phoenix has quit [Ping timeout: 256 seconds]
<T1loc> hello !
kohgpat has joined #ruby
<T1loc> i've a little problem
solocshaw has quit [Ping timeout: 272 seconds]
kohgpat has left #ruby [#ruby]
kohgpat has joined #ruby
<adaedra> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<T1loc> I try to find if a value is include in my array. If true I want to find the next value
<T1loc> but My code doesn't works :/
kohgpat has quit [Client Quit]
<T1loc> For exemple if I start to 100, I want to get the 102 value.
<T1loc> and If I start to 103 I want to get the 104 value
<T1loc> to take (not to get :))
<canton7> T1loc, you should probably learn about the difference between numbers and strings
patchedmonkey has joined #ruby
<T1loc> ok :)
subscope has joined #ruby
<craysiii> D:
dionysus69 has quit [Ping timeout: 252 seconds]
<musicmatze> Ho
<musicmatze> Hi* #ruby...
baweaver has quit [Remote host closed the connection]
<musicmatze> Can someone tell me how to sum up the values in a hash like this: { <date> => <array of int> }
<musicmatze> result should look like: { <date> => <int> }
Kero has quit [Ping timeout: 246 seconds]
<musicmatze> I could loop through each pair and put the result in another hash, but that looks rather non-rubyish...
Kero has joined #ruby
T1loc has left #ruby ["1 2 3 4 5 est différent de a b c d ! belle leçon !"]
Azure has quit [Ping timeout: 265 seconds]
<craysiii> >> ['1', '2', '3'].map(&to_i).reduce(:+)
<ruboto> craysiii # => undefined local variable or method `to_i' for main:Object (NameError) ...check link for more (https://eval.in/449581)
<craysiii> oops
<bougyman> missed a :
<craysiii> >> ['1', '2', '3'].map(&:to_i).reduce(:+)
<ruboto> craysiii # => 6 (https://eval.in/449582)
<musicmatze> craysiii: so I would still do a Hash#each_pair, right=
<craysiii> my keyboard shift key has been giving me some trouble on certain keys
bkxd has joined #ruby
stamina has joined #ruby
workmad3 has joined #ruby
T1loc has joined #ruby
spider-mario has joined #ruby
<craysiii> yes
<craysiii> Hash#each should suffice though?
<musicmatze> k... and I can put the result right back in the same Hash object I'm iterating with, can't I?
BustyLoli-Chan has joined #ruby
<BustyLoli-Chan> can anyone tell me where ruby gems are installed
<bougyman> in GEM_HOME
<craysiii> back again with the name huh lol
Kendos-Kenlen has joined #ruby
<BustyLoli-Chan> echo $GEM_HOME returns nothing
Kendos-Kenlen has quit [Client Quit]
<bougyman> BustyLoli-Chan: try 'gem environment'
bkxd has quit [Ping timeout: 252 seconds]
<bougyman> you'll see a section called Gem Paths
gregoriokusowski has quit [Quit: gregoriokusowski]
<BustyLoli-Chan> thank you!
leafybasil has joined #ruby
patchedmonkey has quit [Quit: Textual IRC Client: www.textualapp.com]
patchedmonkey has joined #ruby
pontiki has joined #ruby
krz has joined #ruby
Igorshp has joined #ruby
leafybasil has quit [Remote host closed the connection]
solocshaw has joined #ruby
leafybasil has joined #ruby
The_Phoenix has joined #ruby
Igorshp has quit [Remote host closed the connection]
arup_r has joined #ruby
Kero has quit [Ping timeout: 246 seconds]
DEA7TH has joined #ruby
Igorshp has joined #ruby
<BustyLoli-Chan> has anyone here used jekyll before?
devbug has quit [Read error: Connection reset by peer]
<TTilus> BustyLoli-Chan: just ask
dhjondoh has quit [Quit: dhjondoh]
solocshaw has quit [Ping timeout: 246 seconds]
<BustyLoli-Chan> We have a bunch of web server files that are hosted on a github repository
<BustyLoli-Chan> one of the machines on our network then somehow takes that repository and hosts it locally
<BustyLoli-Chan> I want to know if it's possible to have jekyll do this for multiple branches of that repository
<BustyLoli-Chan> that way we can have a live branch and a testing/dev branch
<TTilus> why jekyll?
<BustyLoli-Chan> I don't know
<BustyLoli-Chan> Some other guy set it up
<BustyLoli-Chan> and he was the system administrator guy before he left
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<TTilus> ah, you mean the "web server files" in "a github repository" is essentially a website written in jekyll?
<BustyLoli-Chan> prettymuch
<BustyLoli-Chan> I think the github repo is the jekyll source
<TTilus> prolly
<TTilus> can you log in "one of the machines on our network"?
<BustyLoli-Chan> yeah
<BustyLoli-Chan> currently I'm on the web server
<TTilus> locate the clone of that gh repo
pawnbox has quit [Remote host closed the connection]
<TTilus> (that's prolly how the pages end up there)
pawnbox has joined #ruby
<TTilus> what you prolly wanna have is several clones of the repo, side by side
<TTilus> each clone has different branch checked out
<TTilus> and hooks/whatnot set up for pulling from gh and regenerating static site
<BustyLoli-Chan> I see
<BustyLoli-Chan> the problem is, I'm not even sure this is the actual box that is pulling the repo
<BustyLoli-Chan> what do you think the best way to find the repo would be?
<TTilus> you have a problemn
<BustyLoli-Chan> like I can ssh to several machine
<BustyLoli-Chan> *machines
<ghr> BustyLoli-Chan first place I'd look is in the crontabs
<BustyLoli-Chan> is my best option just to run find / -name "reponame" ?
pandaant has joined #ruby
<TTilus> there's no easy general way to find out something like that
pawnbox has quit [Remote host closed the connection]
<ghr> might be fetching the repo every hour or whatever
pawnbox has joined #ruby
<TTilus> to be sure whats happening, i'd start with tracing back the path of http request that displays the site in your browser
<TTilus> check the ip/name of the host
<TTilus> log into the host
<TTilus> check who listens http(s) there
<TTilus> check the conf there
<TTilus> etc
The_Phoenix has quit [Ping timeout: 256 seconds]
<ghr> +1
<TTilus> BustyLoli-Chan: usually `locate reponame` does better job and faster than find
<TTilus> (once you get there and if you need it)
sanjayu has quit [Remote host closed the connection]
<BustyLoli-Chan> I can't find the repo on the web host
<BustyLoli-Chan> which is strange because I know this is the box that hosts the website
<TTilus> you are likely to find the repo path (or subpath) inside webserver conf as virtualhost root, since jekyll by default spits the generated site inside the repo
<TTilus> BustyLoli-Chan: just do careful step-by-step
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BustyLoli-Chan> like I found the actual web directory
<TTilus> BustyLoli-Chan: who listens http(s) on that box?
<BustyLoli-Chan> is there an easy way to check that?
<TTilus> BustyLoli-Chan: do i need to google that for you?
<TTilus> ;)
err_ok has joined #ruby
<BustyLoli-Chan> apache 2 listens to http and https on this box
<err_ok> Is there a way of writing def self.types<<(t) to define the behaviour of the array append method?
pandaant has quit [Remote host closed the connection]
<TTilus> BustyLoli-Chan: ok, then go find apache virtualhost config for the particular hostname you are interested in
dhjondoh has joined #ruby
LiquidInsect has quit [Ping timeout: 264 seconds]
<TTilus> BustyLoli-Chan: and then go look at the path where it serves from, because it might be inside the repo root you are looking for
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<TTilus> BustyLoli-Chan: it is highly likely that it'll be /clone/of/the/gh/repo/_site/
scripore has joined #ruby
prosody has quit [Quit: Updating details, brb]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
dhjondoh has quit [Client Quit]
jenrzzz has quit [Ping timeout: 255 seconds]
prosody has joined #ruby
<BustyLoli-Chan> this apache server doesn't even look set up....
<BustyLoli-Chan> what the hell is going on here
jenrzzz has joined #ruby
minimalism has quit [Quit: leaving]
minimalism has joined #ruby
techYJ has joined #ruby
<techYJ> 81589
techYJ has left #ruby [#ruby]
<TTilus> BustyLoli-Chan: sometimes ppl have evil habits of sprinkling configs all over the place, you could try `grep -rin the.host.of.the.site /etc`
lkba_ has quit [Ping timeout: 250 seconds]
yuanjun has joined #ruby
yuanjun has left #ruby [#ruby]
stardiviner has joined #ruby
<BustyLoli-Chan> it says it's serving out of /var/www
Kero has joined #ruby
The_Phoenix has joined #ruby
<TTilus> BustyLoli-Chan: and it is?
techYJ has joined #ruby
<BustyLoli-Chan> but there's no like _config.yml in the root of the server
<TTilus> BustyLoli-Chan: i mean like if you see legit site stuff inside and when you edit something there it changes
techYJ has left #ruby [#ruby]
<BustyLoli-Chan> yes
<BustyLoli-Chan> that happens
<BustyLoli-Chan> but if you change something on github it will overwrite the local files
techYJ has joined #ruby
<BustyLoli-Chan> AFTER jekyll builds it somewhere
<TTilus> BustyLoli-Chan: then jekyll generation output dir is not default
techYJ has left #ruby [#ruby]
<BustyLoli-Chan> "somewhere"
<TTilus> BustyLoli-Chan: i'd first look crontabs and git hooks
<TTilus> s/look/look into/
boozehound has quit [Ping timeout: 268 seconds]
CloCkWeRX has quit [Ping timeout: 268 seconds]
lkba has joined #ruby
lubarch has quit [Ping timeout: 244 seconds]
favadi has joined #ruby
<BustyLoli-Chan> I tried chrontab -l
<BustyLoli-Chan> and it just says no chrontabs for "user"
Rickmasta has joined #ruby
patchedmonkey has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
<BustyLoli-Chan> so if this is a bust
guardianL has joined #ruby
<BustyLoli-Chan> how hard would it be to set up jeckyll on my remote machine and have it pull from the fit repo?
leafybasil has joined #ruby
<BustyLoli-Chan> *git
pawnbox has quit [Ping timeout: 265 seconds]
troulouliou_div2 has quit [Ping timeout: 272 seconds]
arup_r has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
ndrei has joined #ruby
renderfu_ has joined #ruby
boozehound has joined #ruby
herbst has quit [Remote host closed the connection]
allcentury has joined #ruby
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Remote host closed the connection]
codecop has joined #ruby
CloCkWeRX has joined #ruby
tkuchiki has quit [Remote host closed the connection]
pawnbox has joined #ruby
renderfu_ has quit [Ping timeout: 260 seconds]
lubarch has joined #ruby
nettoweb has joined #ruby
CloCkWeRX has quit [Client Quit]
CloCkWeRX1 has joined #ruby
guardianL has quit [Quit: Community garden workshop, teach me to rake and hoe-oe!]
shredding has joined #ruby
<tobiasvl> BustyLoli-Chan: just set up a crontab for the user then
<tobiasvl> crontab -e
craysiii has quit [Ping timeout: 246 seconds]
beauby has joined #ruby
<BustyLoli-Chan> I want to talk to the guy and figure out what machine does this already
jenrzzz has quit [Ping timeout: 240 seconds]
<BustyLoli-Chan> so we don't have two separate machines doing it
jenrzzz has joined #ruby
craysiii has joined #ruby
lubarch has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
CloCkWeRX1 has quit [Ping timeout: 272 seconds]
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
beauby has quit [Ping timeout: 246 seconds]
K1MOS has joined #ruby
sanjayu has joined #ruby
Feyn has quit [Quit: Leaving]
<norc_> So why does irb start screwing up when I start pasting somewhat longish lines?
<norc_> Line breaks just are not displayed properly
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Spami has quit [Quit: Leaving]
blueOxigen has joined #ruby
moty66 has quit [Read error: Connection reset by peer]
moty66 has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
<norc_> Oh. This could actually be my terminal emulator being too fast. :o
shterrett has joined #ruby
karapetyan has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
rodfersou has joined #ruby
michael_mbp has quit [Excess Flood]
SenpaiSilver_ has joined #ruby
Guest92803 is now known as beagles
SenpaiSilver has quit [Ping timeout: 246 seconds]
amystephen has joined #ruby
michael_mbp has joined #ruby
karapetyan has joined #ruby
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
BSaboia has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
shredding has quit [Ping timeout: 268 seconds]
moty66 has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
moty66 has joined #ruby
dhjondoh has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
SenpaiSilver_ has quit [Quit: Leaving]
zotherstupidguy has quit [Quit: WeeChat 1.2]
Pathfinder_ has joined #ruby
dhjondoh has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
roshanavand has quit [Ping timeout: 268 seconds]
dhjondoh has joined #ruby
davedev24 has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
<norc_> So I am currently looking at UnboundMethod - what is this useful for?
Xeago has joined #ruby
<adaedra> >> class Foo; def bar; end; end; Foo.method(:bar) # here is one
<ruboto> adaedra # => undefined method `bar' for class `Class' (NameError) ...check link for more (https://eval.in/449731)
<adaedra> uh
<adaedra> >> class Foo; def bar; end; end; Foo.instance_method(:bar) # here is one
<ruboto> adaedra # => #<UnboundMethod: Foo#bar> (https://eval.in/449732)
<adaedra> silly me :p
<norc_> adaedra: And that could be useful how?
<adaedra> If you need a reference to an instance method without attached class yet
<adaedra> s/class/object/
atmosx has joined #ruby
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> you can then bind it to an object which gives you a callable method
<norc_> adaedra: You just described what an UnboundMethod is - but what is this useful for?
<norc_> ÖP
jespada has joined #ruby
<norc_> adaedra: Sounds to me like a mixin can solve the problem if you need shared functionality.
bkxd has joined #ruby
yeshacker has quit [Ping timeout: 240 seconds]
<adaedra> Not for shared functionality only
<adaedra> For later call, like you have the method and the object you have to call it on is dynamic
<adaedra> A different way of doing send() with a variable as first parameter
<[k-> you cant just bind a method to any object
LiquidInsect has joined #ruby
<[k-> it's like sticking your organ into someone else's body
<[k-> the body will reject it and start attacking the foreign organ!
pawnbox has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 268 seconds]
<adaedra> There's a limit on what you can bind it
<norc_> It has to be kind_of which means its even less useful than a Mixin.
jenrzzz has joined #ruby
pawnbox has joined #ruby
<norc_> http://pastie.org/10478479 -- I mean this is the dynamic dispatch that you were talking abotu adaedra
<norc_> (Maybe not the most creative example...)
<[k-> Unbound methods are copies of the original method
khebbie has joined #ruby
<adaedra> The bind is done on an instance
<[k-> (this is from the docs since i last saw it)
HammyJammy has joined #ruby
<[k-> that means that you can actually use unbound methods to save a method before you actually alter a method
bkxd has quit [Ping timeout: 240 seconds]
<[k-> the unbound method can later be restored into the class when needed to
pawnbox has quit [Remote host closed the connection]
<[k-> a useful example could be (...someone think of one please)
pawnbox has joined #ruby
<norc_> Heh.
<norc_> I mean I found one posting stating that this could be useful for embedded systems with limited memory. Not that Ruby would be my first pick there though....
Xeago has quit [Remote host closed the connection]
lubarch has joined #ruby
<shevy> guys
<shevy> I love you
JammyHammy has quit [Ping timeout: 240 seconds]
<adaedra> ?guys shevy
<ruboto> shevy, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
Icey has joined #ruby
<norc_> adaedra: Still, I could just rewrite my snippet to include it on the singleton_class of the instance.
<norc_> adaedra: Unless shevy meant guys.
<norc_> And shevy does not love the girls here.
<shevy> can I not love the guys :(
<adaedra> meh and meh
scripore has quit [Quit: This computer has gone to sleep]
<adaedra> let me poke shevy
<[k-> i thought shevy was pranked
<shevy> I just got home again so I am not quite here yet... it's damn cold outside
<adaedra> He can let me do it, for all the times he bothers me with his baguette
<[k-> and someone just came and went: hey, this is a chatroom (channel*), let's just type this love you message
<norc_> adaedra: http://pastie.org/10478495 this is what I meant
allcentury has quit [Ping timeout: 250 seconds]
yeshacker has joined #ruby
<[k-> wow such introspectable
<shevy> [k- yeah!
<[k-> very big word
<shevy> it's the biggest channel I am in on freenode
<norc_> [k-: It is a brilliant Module is it not?
<[k-> i think it is the only channel you are in
<shevy> I find this ugly:
<shevy> class << foo
<[k-> it's the only channel you are in!
<adaedra> Funny, modules' UnboundMethods do not seems to have limitiations on what they can bound to.
<norc_> adaedra: As opposed to what the docs say you mean?
The_Phoenix has quit [Quit: Leaving.]
<[k-> >> {}.ancestors
<ruboto> [k- # => undefined method `ancestors' for {}:Hash (NoMethodError) ...check link for more (https://eval.in/449746)
<shevy> can an UnboundMethod be bound to an UnboundMethod?
CloCkWeRX has joined #ruby
<[k-> woooooo so deep, but no
<norc_> shevy: Hey, dont be hating on my code.
<adaedra> shevy: yes, can even be bound on itself.
<[k-> whattttt
<[k-> this is deep recursion here
<adaedra> >> module Foo; def bar; "hello" end; end; m = Foo.instance_method(:bar); m.bind(m).call
<shevy> cool
<ruboto> adaedra # => "hello" (https://eval.in/449750)
<shevy> infinite itself
<shevy> norc_ not the rest, only the "class << foo" part
phutchins has joined #ruby
<[k-> since classes are open, they can be redefined at any point in time
<[k-> even UnboundMethods
ldnunes has joined #ruby
<shevy> norc_ how about this: http://pastie.org/10478503
khebbie has quit [Ping timeout: 255 seconds]
pawnbox has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
<shevy> oh wait
<shevy> I forgot your rescue....
<shevy> ah well, I am still not quite awake
<[k-> shevy: your code is horrible
<shevy> hah
subscope has joined #ruby
pawnbox has joined #ruby
minimalism has quit [Quit: leaving]
<[k-> i do not see the aesthetic improvement you vowed to bring to us
kobain has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
<EdwardIII> heh looking into ruby i found out i could do this: https://gist.github.com/EdwardIII/87c436c204098d3ce0e9
<norc_> shevy: Ok, I was gonna do foo.singleton_class.send(:include, Introspectable) - but I guess that does about the same thing. :-)
<EdwardIII> that's cute
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
_blizzy_ has joined #ruby
boozehound has quit [Quit: Leaving]
sdothum has joined #ruby
kobain has quit [Max SendQ exceeded]
<adaedra> >> dice = (1..6).to_a; Fixnum.instance_method(:times).bind(dice.sample).call { puts "hello" }
michael_mbp has joined #ruby
kobain has joined #ruby
<shevy> there is .singleton_class again... I have no idea who made this popular. I swear I have not seen it in the past
zenguy_pc has joined #ruby
<ruboto> adaedra # => hello ...check link for more (https://eval.in/449759)
<norc_> shevy: Oh that is just me. Ever since I found out about it Im using it left and right - even in our production code powering our space rockets.
kobain has quit [Max SendQ exceeded]
<shevy> EdwardIII yeah accessors or rather writers (setters); you can also use: attr_writer :name
kobain has joined #ruby
<Ebok> Quick question: in making an array of stop_words, I would prefer to use the %w{words,words,words} however some of the listed words are ruby commands such as : if when while do etc... so they are automatically highlighted due to not being outright listed as a string "do". Is there a shorthand way to make this worK? Or should I stick with a full literal array?
<shevy> ruby has a space rocket command now
<shevy> ->
<EdwardIII> so 'def name=(name)' is operator overloading. but is_old_enough_to_drink? is not? that's just a convention?
<shevy> nono
<norc_> That looks more like a weapon rocket. The space rocket has been there for a long while =>
<shevy> it's a method name called "name=" the = is part of it
<[k-> it is not overloaded
<[k-> methods are just overwritten
<shevy> the ? can also be part of the name EdwardIII
<EdwardIII> ok maybe operator loading doesn't mean what i think it means
<shevy> and a trailing ! too
<shevy> so you could have: def name?; def name!; def name=
<norc_> I would like to have a leading ? in my method names.
<bougyman> no
<shevy> >> ?a
<ruboto> shevy # => "a" (https://eval.in/449763)
<shevy> norc_ well you could cheat via define_method() and .send()
UtkarshRay has joined #ruby
<shevy> obviously bougyman is not happy with leading ? in method names :-)
<adaedra> >> def +@; "Hi!"; end; +self
<ruboto> adaedra # => private method `+@' called for main:Object (NoMethodError) ...check link for more (https://eval.in/449764)
<[k-> >> ?a??b:?c # Warning :(
<ruboto> [k- # => /tmp/execpad-f0d910a55a35/source-f0d910a55a35:2: warning: string literal in condition ...check link for more (https://eval.in/449765)
<adaedra> ahah
<norc_> shevy: If my production code becomes completely and utterly maintainable now, you will have to take responsibility.
pawnbox has quit [Remote host closed the connection]
odt has left #ruby ["Leaving"]
<norc_> unmaintainable I meant...
pawnbox has joined #ruby
<adaedra> -> is for the stabby lambda
blueOxigen has quit [Ping timeout: 268 seconds]
<shevy> norc_ just remove all your code :)
shterrett has quit [Quit: shterrett]
s2013 has joined #ruby
<norc_> There. You are hating on my code again. :(
<EdwardIII> but shevy how come ".name" = works? i.e. with the space?
acke has quit [Quit: Leaving...]
<[k-> in shevy's mind, only haskell is the best code;
<shevy> the ruby parser was written in hell
<EdwardIII> shevy: i'd understand if .name=() works, but it's the .name = () that i'm interested in
_blizzy_ has quit [Ping timeout: 240 seconds]
<EdwardIII> i bet you guys have a lot of experience with ruby eh?
<[k-> EdwardIII that is known as syntatic sugar
<[k-> ruby actually converts it to name=
<EdwardIII> ok
<EdwardIII> but when you say def [] that's real operator overloading, right?
<[k-> well, it calls name=
p0wn3d__ has joined #ruby
<norc_> EdwardIII: No.
pawnbox has quit [Remote host closed the connection]
<[k-> no, overloading refers to a method doing different things for different input types
dhjondoh has joined #ruby
Porfa has joined #ruby
<[k-> def [] is just one method
<[k-> but in java, overloaded methods are tons of methods
bryanray has joined #ruby
<workmad3> [k-: it still gets called operator overloading, rather than polymorphic method overloading
<EdwardIII> heh right ok maybe it's a terminology thing
<[k-> the Runtime just decides which actual method to called
<EdwardIII> i consider operator overloading to mean "make an operator in the language that usually does something e.g. + do something else"
<EdwardIII> but i know in java/c# operator overloading means like function (int a), function (string a) etc and it matches them based on the arguments
<EdwardIII> well, method overloading, not operator overloading
<norc_> Oh!
<shevy> EdwardIII you could also do: .name = 5
<[k-> well, if you look at [] or + in a very general sense
<[k-> yes, they are overloaded
<shevy> the parser just won't care about the ' '
<EdwardIII> that's what operator overloading means in perl, right?
<shevy> take this strangeness:
<shevy> >> 1_2_333
<ruboto> shevy # => 12333 (https://eval.in/449776)
<norc_> [k-: Possibly UnboundMethod could be the closest thing to actually do overloading in Ruby!
<shevy> look! it killed off the _
<workmad3> EdwardIII: exactly... operator overloading is generally taken as "Make a thing that looks like an operator, e.g. +, have different behaviour", while "parametric method overloading" (sorry, I meant parametric, not polymorphic earlier) means "a different method gets called based on the parameters"
<EdwardIII> yep
<shevy> paramedic!
spcmastertim has joined #ruby
<EdwardIII> ok good so randall schwartz doesn't have to come around and punch me in the mouth
<workmad3> [k-: i.e. you're using 'overloading' to just mean 'parametric method overloading' ;)
<[k-> (technically they are not, because the definition of + is attached to an object, and and object can only ever have one +)
<workmad3> [k-: and ruby doesn't support parametric method overloads
<[k-> if you look at Haskell's Typeclasses,
<[k-> workmad3: hang on, i already knew those!
<EdwardIII> then i will go blind with madness because of their beauty?
<[k-> indeed, such beautiful typeclasses
<EdwardIII> so this is probably +bworthy but, do you guys sort of like/love the language?
<[k-> Well, that is overloading, you know, types and what not
<[k-> and you can also make the + do different things
<EdwardIII> or do you think "well i'm in bed with ruby now, so i'll use it, but i'd rather be coding in x?'
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> EdwardIII: I like ruby, which is why I keep at it
<[k-> adaedra and shevy here refuses to use anything else
<EdwardIII> well ##php is pretty busy with people kepeing at it ;)
<EdwardIII> bit not because they like it
<adaedra> [k-: what?
<workmad3> shevy would use something else, if it was 'less bad' than ruby :)
<EdwardIII> man i am typing like an infant today
<[k-> and yorickpeterse just comes along and writes a new language!
<EdwardIII> i like the language from what i've seen so far, but i have some reservations about rails
<adaedra> [k-: what shit are you saying about me again?
<[k-> :>
<yorickpeterse> [k-: ?
<[k-> :/
<EdwardIII> the only thing about the language that concerns me a little is the amount of stuff you can do without getting an exception
<norc_> >> :o
<ruboto> norc_ # => :o (https://eval.in/449782)
<[k-> we are talking about languages here
<EdwardIII> like how with the default hashes if you access a missing array key it's hunky dory
<shevy> I will use something when it is elegant
<workmad3> >> {}.fetch(:whatever)
<ruboto> workmad3 # => key not found: :whatever (KeyError) ...check link for more (https://eval.in/449783)
<workmad3> EdwardIII: :P
<adaedra> >> {}.fetch(:a)
<ruboto> adaedra # => key not found: :a (KeyError) ...check link for more (https://eval.in/449784)
<norc_> EdwardIII: Seeing how you come from Java, Im not surprised that you have to wrap a function call to print something in a catch block.
<adaedra> too slow
<[k-> >> [1,2,3,4,]
kobain has quit [Read error: No route to host]
<ruboto> [k- # => [1, 2, 3, 4] (https://eval.in/449785)
<norc_> EdwardIII: Or expect to rather.
<EdwardIII> norc_: i'm not coming from java
<[k-> trailing ,!
<EdwardIII> but i am familiar with it
<shevy> and ideally, it should be simple too
syath has joined #ruby
<norc_> EdwardIII: Oh. Nevermind then! :D
<workmad3> adaedra: :)
<EdwardIII> i found python's exception-happiness kind of useful
<[k-> traaaaaillllling commmmnaaaaaaa
loocash has joined #ruby
<shevy> python has weird stuff
<shevy> decorators... I still have not understood why they are used
<EdwardIII> like felt like it simplified writing correct code
<adaedra> [k-: trailing comma is nice.
<EdwardIII> shevy: what would you do for similar functionality in ruby? just have a func call or whatever wrapping the return contents?
<norc_> EdwardIII: I almost puked today when I was forced to throw an exception to control the program flow today.
<EdwardIII> heh
<loocash> hi, what is the best way to make a ruby binding for c++ library?
<norc_> (ActiveRecord::Rollback is the culprit here)
<workmad3> EdwardIII: ruby can frequently expose two different ways of doing something, like `hsh[]` and `hsh.fetch` which basically give you control over whether you care about a particular condition, which I quite like
<[k-> the Ruby mantra is not to use exceptions as control flow
<adaedra> loocash: have a C interface
<norc_> loocash: Just use the C binding
<EdwardIII> norc_: pretty much every framework i've seen uses that when they say, control form validation
<[k-> (exceptions are slow in ruby)
jenrzzz has quit [Ping timeout: 265 seconds]
<workmad3> EdwardIII: e.g. if I really need a hash key set, use `fetch`, if I don't care and want to provide a default, use `[]` (or even `.fetch(:whatever, default)`
<EdwardIII> [] or || heh?
jenrzzz has joined #ruby
<norc_> [k-: exceptions are slow everywhere.
<[k-> ◻
scripore has joined #ruby
<EdwardIII> the reason why this concerns me is because it feels like PHP's whole policy is "continue program execution at ALL costs"
<EdwardIII> which ends up producing loads of bugs in weird places that are hard to track back unless you're very strict with your defensive programming
<[k-> this is why to not use exceptions as control flow
bigkevmcd has quit [Ping timeout: 256 seconds]
<norc_> EdwardIII: They want the millions of badly written applications to work, despite idiot programmers fiddling around with them.
<[k-> that is the web
<norc_> Its a pretty neat concept.
<norc_> Developers get the feeling "it just works".
<[k-> look at the state of html
scripore has quit [Client Quit]
<Ebok> I'll ask again. If I want to have the %w(turn these words into an array) but one of the words is an active ruby word such as 'do' or 'while' is there a command I can use to ignore the words alternative meaning?
<workmad3> EdwardIII: PHP can be even worse than that... it can sometimes ignore all of your defensive programming and continue to produce shitloads of bad bugs based on compile-time options and magical globals
<shevy> >> %w( turn these words into an array do while )
<[k-> Ebok, that depends on your text editor, not ruby
<ruboto> shevy # => ["turn", "these", "words", "into", "an", "array", "do", "while"] (https://eval.in/449788)
<adaedra> >> %w(do while if what is the problem here)
<ruboto> adaedra # => ["do", "while", "if", "what", "is", "the", "problem", "here"] (https://eval.in/449789)
<Ebok> Oh
<Ebok> Huh
<[k-> if your text editor does not support it, it would mishighlight the words
<shevy> Ebok see, all Strings. Unsure what you mean with "alternative meanings" for a string...
caliostro has joined #ruby
<shevy> do you use notepad!!!
ruurd has joined #ruby
<Ebok> Actually, that simply wasnt the result when i ran the code.
<[k-> ruby does not confuse the meanings
<shevy> aha
<Ebok> I was working within a cloud9 project
<shevy> some strange editors do things behind the scene
Icey has joined #ruby
<workmad3> EdwardIII: rails doesn't have that sort of problem though... it doesn't just gloss over errors and continue execution, you do actually need to handle them or let them flow up... it's just when you get down to things like form validation, you can frequently either ask for a simple boolean or use exceptions to control flow, and the convention tends towards not using an exception
<[k-> in Haskell, exceptions can only be handled in the IO monad, so it's no exceptions if possible!
<Ebok> And... it fired this time. I suspect I had another error going on, my bad.
<[k-> all our erroring code in one place
<[k-> how nice
<workmad3> EdwardIII: e.g. take saving a model... `some_model.save` will return a boolean based on validation, `some_model.save!` will raise an exception on failed validation... both of them will raise exceptions if the database screws up or goes away, unlike a lot of PHP programs which will end up just continuing in that scenario
tsou has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Client Quit]
EasyCo has quit [Quit: Connection closed for inactivity]
<workmad3> EdwardIII: personally, I find frameworks and languages that only provide exceptions to control fairly normal flows (such as validating user input) to be more annoying :)
norc_ has quit [Ping timeout: 246 seconds]
<shevy> the bot downloads on rubygems.org are strange
<workmad3> bad user input != exceptional circumstance... it's about as normal as you can get, users are untrustworthy and useless! (I <3 you really, users)
<shevy> I could swear there is some difference in bot behaviour... either they measure size of a project, or they measure other-downloads count, but whatever it is, I could swear that projects that have been downloaded more often than other projects, also get in more downloads lateron, even very rapidly so like 1-3 hours after a new gem push release
sanjayu has quit [Ping timeout: 265 seconds]
<workmad3> hmm, lunch time
gusTester has joined #ruby
<caliostro> yes
<[k-> ha! now i know when workmad3 has lunch!
jmtorresg has joined #ruby
<[k-> and it is the same as adaedra!
<Porfa> hmmm any particular command to see whats inside a variable?
last_staff has joined #ruby
<adaedra> what now
<adaedra> Porfa: in what context? irb/pry: just type it, otherwise, p
<[k-> Porfa, binding.local_variable_get(:my_variable)
<Porfa> oh sorry i forgot that (..) I'm in irb
<[k-> binding always works!
<[k-> adaedra: are you going for lunch sooooon
nateberkopec has joined #ruby
<[k-> workmad3 has gone already!
<jmtorresg> Hey guy! Just a quick question: why do so many people in the Ruby community seem to use Macs? Do they have advantages over other platforms when programming in Ruby? (Not trolling, just genuinely curious about that)
sanguisdex has joined #ruby
<adaedra> [k-: why do you ask?
<adaedra> jmtorresg: personal preferences.
<[k-> because workmad3 has gone already!
<adaedra> Why should I care?
<[k-> i didbt say you should care
<[k-> but i did care.
kobain has joined #ruby
<jmtorresg> adaedra: no technical reason at all?
<[k-> you are commiting a logical fallacy
jespada has quit [Read error: Connection reset by peer]
kobain has quit [Max SendQ exceeded]
<adaedra> jmtorresg: for me it's that at least. I like OS X.
kobain has joined #ruby
<adaedra> [k-: and you're comiting annoyance.
<Porfa> i use mac because its light, aluminum and the battery lasts a lot. and the equivalent built quality with dell latitude or hp elite book's would cost the same or even more than a mac...
CloCkWeRX has quit [Ping timeout: 260 seconds]
kobain has quit [Max SendQ exceeded]
<Porfa> but I'm not a ruby user, i just like to hang out with these guys
<adaedra> Poor girls.
kobain has joined #ruby
last_staff has quit [Ping timeout: 255 seconds]
<[k-> Porfa: dell xps 13 is better than a macbook!
<adaedra> wow
<jmtorresg> Porfa: Me neither, but I got a Macbook as well. Just curious as to why virtually every guy I see talking about Ruby on YouTube uses a Macbook
<adaedra> such troll
<[k-> and cheaper too
<jmtorresg> I don't see that in other programming laguage communities
zenguy_pc has quit [Ping timeout: 250 seconds]
<[k-> does them use windoze
<jmtorresg> Being more acquainted with the Python guys in general
yfeldblum has quit [Ping timeout: 246 seconds]
<jmtorresg> Although I prefer using Linux for programming
<Porfa> [k-: looks amazing that dell
ndrei has joined #ruby
<Porfa> is it built on anything other than plastic?
<Porfa> the keyboard looks nice too
<Porfa> and if i can downgrade that from windows 10 it's a really nice laptop for that price
acke has joined #ruby
<EdwardIII> i mean the thing is, one typical use for me is when i'm working on a lower level object where, say, trying to get a user that doesn't exist is exceptional. then in the higher level object it's not exceptional, it's normal. so i use exceptions that way
<[k-> Porfa: asus ux is a metallic build
<EdwardIII> different from form validation
<[k-> not sure about dell xps 13 though
<EdwardIII> but in php that method would just return 'null' everywhere
<Porfa> wow, that's not "mac" at all ;)
cgfbee has quit [Ping timeout: 240 seconds]
<caliostro> My own is an old Toshiba A200
<caliostro> 2GB of RAM
<caliostro> with ubuntu 12.04 installed
<EdwardIII> one other thing about ruby... this is more of an inherited opinion, but that the lack of initialising a variable in a form way is a bit meh
<EdwardIII> e.g. my $person = new Person rather than just $person = new Person
<[k-> i want to get a chromebook, but those might not be enough to compile haskell code!
<EdwardIII> meaning you can get a nice handy "tried to use uninitialised variable $person" later down the line
tvw has quit []
<EdwardIII> [k-: you could buy the pixel heh
naftilos76 has joined #ruby
<[k-> it's so exxxxx
<EdwardIII> yeah it's very expensive for what you get imo
<EdwardIII> i like the display though
<EdwardIII> (i use a mbp)
<EdwardIII> (so i should have been coding in ruby for years ;)
<Porfa> that asus goes up to a nice 1300 USD, same as a macbook..! it all comes down to personal preference i guess… and when i come to think about it, the real machine i use to run my code is a AMD athlon 1.2 or something, with 2gb ram..! i just use the macbook with the text editor
<[k-> but that asus looks so damn hot
<EdwardIII> i find big ram is good for running tons of vms, and the high res display enables lovely text rendering
<Porfa> i just ssh to that old baby and act like a foo in front of rib, and foo i get
<[k-> so shiny
decoponio has joined #ruby
jdawgaz has joined #ruby
<EdwardIII> plus osx - i can use brew and get my toolchain up and running with minimal pain, but i can also plug my laptop into hdmi and it works with no kernel recompiles
<Porfa> yes it does.. and the display.. damn i wonder how many errors i i would see there
cgfbee has joined #ruby
<EdwardIII> oh so many errors
prestorium has joined #ruby
<EdwardIII> high res display reduces bugs by 47.32%, of course
jmtorresg has quit [Remote host closed the connection]
<Porfa> i won't do this because it would change my whole workflow.. but that new iPad pro 13" + external keyboard… haha
Igorshp has quit [Remote host closed the connection]
<EdwardIII> wrap your athlon/2gb up in a vm, build with vagrant, job done
<EdwardIII> throw that old thing away and run it locally
<Porfa> EdwardIII: it's also running an instance of own cloud for the company
krisquigley has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 256 seconds]
<EdwardIII> haha ok maybe don't throw it away then
<Porfa> hahaha :D
<EdwardIII> one of the things i hear a lot is that ruby takes the best of perl
krisquigley has joined #ruby
jenrzzz has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
jenrzzz has joined #ruby
karapetyan has joined #ruby
<EdwardIII> but to me that would mean "use strict;" type behaviour being on by default?
s00pcan has joined #ruby
zenguy_pc has joined #ruby
sgambino has joined #ruby
Igorshp has joined #ruby
jgt has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
renderfu_ has joined #ruby
codecop has quit [Quit: Išeinu]
moty66 has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
devoldmx has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 268 seconds]
krisquigley has joined #ruby
moty66 has joined #ruby
andikr has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 250 seconds]
renderfu_ has quit [Ping timeout: 255 seconds]
dorei has joined #ruby
bruno-_ has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
<shevy> EdwardIII you can run via -w
devoldmx has quit [Ping timeout: 268 seconds]
<shevy> if you use modules and classes then you can't do much wrong really
<shevy> the typical ruby program can't be compared to the typical perl atrocity
karapetyan has joined #ruby
<shevy> in ruby people would typically not do any of this
<shevy> they'd start by: class Bla, or perhaps a toplevel namespace
<shevy> I mean this is classic perl spaghetti code
JohnBat26 has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
dhjondoh has quit [Quit: dhjondoh]
dhjondoh has joined #ruby
dhjondoh has quit [Client Quit]
The_Phoenix has quit [Ping timeout: 256 seconds]
dhjondoh has joined #ruby
asxbr has joined #ruby
<certainty> or "use strict;" isn't one of the best things of perl
* certainty hides
shmoon_ has quit [Quit: Connection closed for inactivity]
<shevy> you kinda have to be strict to avoid too much spaghettification
<shevy> let me show you the typical PHP in bioinformatics
<EdwardIII> shevy: there's some beautiful code in perl though
pandaant has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
adac has joined #ruby
DexterLB has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<shevy> yeah well
sankaber has joined #ruby
<shevy> you can write well-structured code in any language but some languages make it easy to write awful code
<shevy> you could of course literally copy the two examples given above in ruby
bigkevmcd has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
<shevy> it would still be cleaner in ruby :)
Igorshp has joined #ruby
jenrzzz has joined #ruby
kobain has joined #ruby
<adac> Does someone know how to delete a key in redis?
<EdwardIII> shevy: most of the stuff i've seen uses the Moose object system in perl - like the Catalyst mvc framework
<EdwardIII> i learned a huge amount from the perl community
<EdwardIII> they were knowledgeable about smalltalk and lisp and stuff that i didn't know about at the time
<EdwardIII> and they always make you read Object Thinking which i thought was pretty fantastic when i read it back in the day
<shevy> yeah we all have nostalgia about the year 2000
<shevy> I learned regexes through a perl book back then too
krz has quit [Ping timeout: 268 seconds]
<shevy> the rest of the world moved on so only nostalgia was left
freezevee has quit [Remote host closed the connection]
<adac> ah it seems to be just del
<shevy> eam here is a perl guru
DexterLB has quit [Ping timeout: 260 seconds]
<[k-> shevy still cant learn haskell :/
<shevy> haskell is really hard
tk__ has joined #ruby
<shevy> my brain is more suited for objects
DexterLB has joined #ruby
<shevy> I still have not understood what a monad really is either even though it was explained many times
DEA7TH has quit [Quit: DEA7TH]
<yorickpeterse> a monad is a burrito
The_Phoenix has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lubarch has quit [Quit: leaving]
basiles has joined #ruby
DEA7TH has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
The_Phoenix has quit [Client Quit]
tier has joined #ruby
ndrei has joined #ruby
<certainty> shevy: well then don't focus on trying to understand monads. Just use them and learn all the other valuable things that come with haskell.
<[k-> when you use them, intuition will come with it
fxck has joined #ruby
fxck has quit [Changing host]
fxck has joined #ruby
fxck was kicked from #ruby by ChanServ [Banned: troll]
fxxck has joined #ruby
<fxxck> ruby regex is PCRE, right?
<shevy> certainty well the monads just stand out, the rest isn't that much easier :)
<shevy> certainty I am sure scheme is much easier than haskell!
<bougyman> no
<bougyman> it's oniguruma, fxxck
anisha has joined #ruby
balazs has joined #ruby
<shevy> fxxck are you norc?
<certainty> shevy: depends on how you define easy. But yeah most lisps are computationally very simple. (Also semantically)
<fxxck> no im govt
<fxxck> and fxck, cyber_police, etc
<fxxck> if I need to do really complex parsing, should I abandon regex and use something like parslet?
<certainty> shevy: but really I don't think that haskell is any harder to learn. It just happens to have that reputation
<bougyman> regex is not capable of parsing.
<bougyman> utilizing regex in a parser is sometimes sane.
<bougyman> but other parsing methods will be more efficient, usually.
jenrzzz has quit [Ping timeout: 252 seconds]
<EdwardIII> shevy: there's an element of truth in what you're saying but really you've got the wrong end of the stick i think heh
<EdwardIII> your opinion reflects popular opinion
<EdwardIII> and it's definitely true that perl isn't popular any more
lkba has quit [Ping timeout: 264 seconds]
<EdwardIII> but there's a lot of really smart people doing really good stuff there
JDiPierro has joined #ruby
<fxxck> i have word lists that categorize words, and i need to categorize sentences based on the structure of the sentence's words and their categories
<EdwardIII> not CGI.pm horribleness
<fxxck> seems like parslet would be a lot easier
<bougyman> sounds like it.
patchedmonkey has joined #ruby
<fxxck> yo, perl is def not dead
jenrzzz has joined #ruby
<certainty> it just fades
<shevy> yeah there are fossil coders using it
<certainty> out
<bougyman> fxxck: so where's perl 6?
<fxxck> on my machine right now
<fxxck> its pretty great
<shevy> sleeping?
<shevy> ok ... * ChanServ has kicked fxck from #ruby (Banned: troll)
<shevy> I can now see why :)
<EdwardIII> a lot of top people seem to hate perl6
<fxxck> yeah thats old
`tim` has joined #ruby
<shevy> perl6 should have been out in 2005
<EdwardIII> my biggest gripe with perl6 was not having sensible defs for passing by ref or value and making you handle that
s2013 has joined #ruby
<EdwardIII> er perl5 sorry
<certainty> i have no idea about perl6. My gut feeling is, is that probably is not a bad thing, because perl seems to have become irrelevant most of the times
<certainty> that's true at least for me
<shevy> this chart is not ideal http://goo.gl/yRzGQB but the general trend seems to be quite correct IMO
Mojo_Nixon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<fxxck> yeah but in perl6, everything is an object the same way that ruby does it. immutable strings and nums...
arup_r has quit [Quit: Leaving]
<certainty> so what? welcome to the modern age
sivsushruth has quit [Ping timeout: 272 seconds]
<shevy> slight decline for php, ruby and perl, moderate increase for python - all of which may be relative, considering that there should be more programmers in 2015 than there were in e. g. 2000
last_staff has joined #ruby
<certainty> why would I pick up perl now instead of all the other PLs that have been developed
<fxxck> python will die when julia thrives
<shevy> and TIOBE for the ultimate truth :) http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
<EdwardIII> right
sivsushruth has joined #ruby
<fxxck> perl 6 will live on when 5t06 doesnt suck so much
<bougyman> I don't see python death happening.
<fxxck> 5to6*
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bougyman> the scientific community has volumes of math and sci libs in python that work perfectly well there.
<shevy> yeah, python is now one higher step in the league above the other scripting languages
<EdwardIII> i remember reading a HN article years ago talking about perl to python to ruby, it was great
<fxxck> julia can inline c, fortran already. when it can inline python, there will be no need
<bougyman> plus the wonderous ipython integration.
<fxxck> and yeah, julia can run in pynb
<fxxck> already
<EdwardIII> along the lines of: perl was great but the refs thing sucks, saying "but look anything can be a reference" is not an excuse, python was better but the lack of blocks causes issues, then ruby came out, fixed these things and was great
<shevy> it's hard for programming languages to really die, it's more like a declining trend but over a time span of 10 years, one can definitely notice certain trends
<fxxck> yeah btu SciRuby isn't exactly a landslide victory, eh?
<shevy> ruby has other problems such as awful docs!
cantaberry has joined #ruby
<fxxck> and stupid naming conventions for libs
ndrei has quit [Ping timeout: 265 seconds]
<shevy> which libs
<bougyman> IJulia <-> IPython already exists.
<certainty> there are naming conventions?
<fxxck> almost all of them
<fxxck> gems i mean
<shevy> gems are picked by +100000 different gem authors
<fxxck> lack of, like perl I can just Net::IRC or whatever
<fxxck> in Ruby, there is Cinch
<shevy> Net::IRC is an integrated part of perl when you download the source?
<fxxck> or XML::Simple, and Nokogiri
<fxxck> no i meant third party, like gems
ndrei has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<ytti> i understand the complain, there probably is net/irc though
<ytti> but that type of naming implies one is formal/standard
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
<shevy> fxxck well gems were an afterthought
<fxxck> yeah i guess so
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<certainty> guess what. I can search for the things
<shevy> people can use all sorts of different namespaces, but whoever is the first to define one, wins
<certainty> type in irc and see all the libraries that relate to that term
<shevy> I got mad when someone took over class Configuration!
<shevy> get out of ma namespace bro
<certainty> you will be probably presented with some infrared stuff, but our brains are good at disambiguating
<EdwardIII> heh yes in perl
<EdwardIII> i can make Net::Bungholio
<EdwardIII> and release it pretty quickly
supergeek has joined #ruby
supergeek has quit [Read error: Connection reset by peer]
<EdwardIII> then i would be the internet's foremost authority on network bungholio access protocols
<fxxck> arent you already?
Gnomethrower has quit [Max SendQ exceeded]
sankaber has quit [Remote host closed the connection]
atmosx has quit [Quit: Lost in trance]
roshanavand has joined #ruby
whippythellama has joined #ruby
sankaber has joined #ruby
c355E3B has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
<shevy> EdwardIII yeah, similar with gems. I'd love if namespaces would have more way to control them in ruby
<shevy> for instance, a way to restore to the corelib namespace
victortyau has joined #ruby
<shevy> so that I don't have to use modified core classes by other people's ruby code
e1senhorn has joined #ruby
<shevy> or same-named gems able to coexist
gambl0re has quit [Ping timeout: 256 seconds]
harryk_ is now known as harryk
<certainty> require "somegem", ns: "Foo"
decoponio has quit [Quit: Leaving...]
<EdwardIII> shevy: riiiight this was one of the things that stood out to me when i was reading one of the intros to ruby
bkxd has joined #ruby
<certainty> require "something", hide: [:Foo, :Bar, :Baz]
<certainty> ?
<fxxck> what if gems were only accessible from rubygems as a hash id, and we could alias any name to any hash?
<EdwardIII> that ruby's (i assume) most popular framework does some pretty extensive monkey patching on the stdlib
<loocash> hi, when I have a c++ library and I want to make a ruby binding for it then I should have a c api. Could someone give me a simple example of how to connect a piece of code written in C++ to ruby through c api? thanks.
<shevy> certainty dunno, I think require will stay as it is but perhaps some more advanced import-like system or something could be used
<shevy> another thing I wanted was to be able to control the main namespace upon load-time
roshanavand has quit [Remote host closed the connection]
<shevy> if someone calls it module Foo, I want to be able to rename it to module Bar
roshanavand has joined #ruby
<shevy> but we have ruby 3.0 for all sorts of crazy ideas!
jmignault has joined #ruby
<shevy> like frozen strings!!!
<c355E3B> ok guide
<c355E3B> you may also just want to read the headers
<shevy> loocash hanmac here maintains rxwidget ruby bindings to the C++ api, he knows a lot about C++
funkenstrahlen has joined #ruby
<funkenstrahlen> hey, will 'spec.required_ruby_version = '~> 1.9.3'' in my gemspec require 1.9.3 and higher?
<funkenstrahlen> or only 1.9.3?
<funkenstrahlen> I want to accept 2.0, 2.1, ... and up also
<c355E3B> ~> locks to 1.9.3
<funkenstrahlen> c355E3B: so I should use '> 1.9.3' ?
<c355E3B> yeah
<funkenstrahlen> c355E3B: ok thank you!
<c355E3B> well => i think, you want 1.9.3 right?
<havenwood> >=
Xeago has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
aaeron has joined #ruby
<funkenstrahlen> havenwood: right of course
<funkenstrahlen> another question: I read a config file on start via JSON.parse(File.read(client_secret_file_path))
<funkenstrahlen> how can I write such a config file to disk?
<funkenstrahlen> or better use yml?
dhjondoh has quit [Quit: dhjondoh]
xlogic has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
<funkenstrahlen> so in other words: best practice for using config files?
<c355E3B> JSON#generate yields a string
newdan has joined #ruby
<c355E3B> funkenstrahlen: what kind of app is this?
<fxxck> ive been in starbucks long enough to have heard all these shitty tracks before
aaeron1 has joined #ruby
patchedmonkey has quit [Remote host closed the connection]
ndrei has joined #ruby
loocash has quit [Quit: Leaving]
aaeron1 has quit [Client Quit]
<havenwood> funkenstrahlen: The stdlib has PStore (Marshal) and YAML::Store if you need transactional writes to disk.
umgrosscol has joined #ruby
<havenwood> funkenstrahlen: File.write(client_secret_file_path, content.to_json)
hadrig has quit []
<funkenstrahlen> havenwood: so content should be a hash?
jenrzzz has quit [Ping timeout: 255 seconds]
<havenwood> funkenstrahlen: It can be.
<funkenstrahlen> content will have to contain 4-5 parameters
yeshacker has quit [Ping timeout: 264 seconds]
aaeron has quit [Ping timeout: 240 seconds]
Dopagod has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
dopieee has quit [Ping timeout: 250 seconds]
decoponio has joined #ruby
lkba has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
stardiviner has quit [Ping timeout: 255 seconds]
machinewar has joined #ruby
JDiPierro has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
sepp2k has joined #ruby
bigkevmcd has quit [Ping timeout: 256 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dopagod has quit [Quit: WeeChat 1.0]
<EdwardIII> hey
Xeago_ has joined #ruby
<EdwardIII> the reason why i brought up perl was that i was interested in ruby's lack of "my $var" or "var name;" syntax
<EdwardIII> whaddya call that? declarative variable initialisation?
ruurd has joined #ruby
<certainty> i have no idea
<adaedra> It's variable declaration, no?
Xeago has quit [Ping timeout: 240 seconds]
<ddv> sugar
<ytti> EdwardIII, those are for scoping in perl
Coldblackice has quit [Ping timeout: 265 seconds]
<ytti> EdwardIII, in ruby scope depends on variable name
* adaedra drowns ddv in sugar
<ddv> sugar is bad for you
<EdwardIII> *too much
<ddv> adeponte
<ddv> err, adaedra
<adaedra> Poor adeponte
<ddv> didn't want to drag adeponte into this
ndrei has joined #ruby
<fxxck> is ruby gluten-free cuz I only hack on organic, gluten-free, non-GMO, non-subsidized, non-fat languages
bigkevmcd has joined #ruby
<adaedra> &ri Gluten
<`derpy> No results
<certainty> EdwardIII: how does my scope in perl?
<adaedra> Seems safe
<fxxck> k, thats good
<wnd> I like to declare variables because I make typos and "use strict; use warnings FATAL => 'all';" catches large number of the kind. Sometimes I wish Ruby would allow me to do the same.
<ytti> { $poo = 3 }
<ytti> is visible outside scope
<EdwardIII> certainty: it declares it in the scope of the current block (i think)
<ytti> { my $foo = 3 } is not
devoldmx has joined #ruby
<EdwardIII> hah poo, you say?
<certainty> ytti: oh i see. thanks
<EdwardIII> whereas without 'var' it's globalish, right?
<EdwardIII> like with JS
<EdwardIII> er without' my'
<ytti> yeah
<ytti> so all 'foo = 3' in ruby are as if my $foo in perl
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
<eam> wnd: I wish ruby allowed it as well -- its scoping syntax is super clumsy
finisherr has joined #ruby
Pupp3tm4st3r has joined #ruby
<EdwardIII> wnd, eam: is ruby -w not similar?
<ytti> my is not really about declaring, it's about scoping
<ytti> in dynamic typing (And weak in case of perl) declaring is kind of moot point
<eam> for example, how many ruby people know what a semicolon does inside of || ?
<wnd> ytti, true
<eam> EdwardIII: no, not similar at all
<eam> take for example a simple block scope in ruby:
<EdwardIII> it just stopped me having a file saying only "puts not_initialised"
beast_ has quit [Quit: Leaving]
<eam> >> y = 5; 1.times { |x| y = 6 } y
<ruboto> eam # => /tmp/execpad-df4f2a35f831/source-df4f2a35f831:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/449829)
n008f4g_ has quit [Ping timeout: 240 seconds]
<eam> >> y = 5; 1.times { |x| y = 6 }; y
<ruboto> eam # => 6 (https://eval.in/449830)
<eam> in perl, you'd use my() to scope the y local to the block
<eam> in ruby, the syntax for this is strained |x;y|
bigkevmcd has quit [Ping timeout: 256 seconds]
Mojo_Nixon has joined #ruby
<eam> and not generally applicable
<Diabolik> if im editing 30k database records, what is faster and more efficient than .each?
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
<eam> you can't warn on this, since it's not necessarily an error
<fxxck> wait |x;y| makes y locally scoped?
<eam> see? No one knows this
<certainty> Diabolik: updating them using SQL
<fxxck> thats awesome
Pupp3tm4st3r has joined #ruby
* certainty knew this
<eam> >> y = 5; 1.times { |x;y| y = 6 }; y
<ruboto> eam # => 5 (https://eval.in/449831)
<certainty> but has forgotten about it
badeball_ is now known as badeball
<eam> I'm also cranky about the lack of block scope around a ton of ruby constructs, like if/else
axl_ has joined #ruby
<EdwardIII> eam: hmm so... in ruby y = 3 is not synonymous to my $y = 3 at all then?
<EdwardIII> or... it is?
<ytti> yes it is
<EdwardIII> right ok
<EdwardIII> that example was helpful
<ytti> the y inside the block did not change hte value of y outside the block
<eam> EdwardIII: in ruby, the first assignment kind of acts like a weak form of declaration -- but because it's not an explicit statement of scope it can't guard against reuse
<eam> EdwardIII: and, block scope in ruby is different than you'd expect from other languages like C or perl
<eam> ytti: it did change
<eam> you need to use |;y| to avoid change
<EdwardIII> eam: overall would you rather spend your days writing perl or ruby? or other?
<eam> EdwardIII: these days I write about 1000x more ruby than perl
<fxxck> perl
<fxxck> ez
<EdwardIII> eam: but which do you prefer?
<eam> tough question :)
<eam> ruby has a lot of benefits over perl as well
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<certainty> of course the correct answer is miranda
<eam> I think I prefer perl though
<workmad3> >> y = 5; 1.times { |x,y| y = 6 }; y
<ruboto> workmad3 # => 5 (https://eval.in/449832)
<workmad3> eam: they sorted out the block scoping with ^ a while back
mary5030 has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
<workmad3> eam: or are you talking about when it's not a parameter, so you're relying on the closure aspect of a block? :)
<eam> workmad3: yeah after 1.8 I think? But you need ; if you want to avoid params
<eam> workmad3: yes
bruno- has joined #ruby
<certainty> workmad3: yeah the latter
supergeek has joined #ruby
<EdwardIII> eam: the funny thing with perl is that although it lets you write disgusting code, the perl coders i've met have been some of the smartest people i've met and they have also written some of the most beautiful expressive code i've seen
<eam> in 1.8 even || vars would stomp on outer scope
<workmad3> eam: I think they backported that fix into later 1.8.7 releases, but yeah it was a problem before then
<fxxck> thats something that worries me about perl6, is that there are going to be rubyists clogging up CP6N with ruby-ized perl code
<eam> I'm cranky about stuff like the complete lack of scope for things like begin blocks, or conditionals
<workmad3> fxxck: how about not worrying until it's released in a decade or so? ;)
<EdwardIII> heh who's writing begin blocks?
<fxxck> its out now...
JDiPierro has joined #ruby
<fxxck> not cp6n, but perl6 is out and usable rn
<EdwardIII> eam: total curiousity, i promise this is not something i'm going to do, but can you hack the symbol table in ruby as you can with perl?
<eam> sure
chthon has joined #ruby
batu has joined #ruby
<batu> sdf
<workmad3> fxxck: oh, fair enough... I stopped paying attention to perl6 years ago :D
<fxxck> i'll write that down
<havenwood> fxxck: Christmas
<fxxck> havenwood: yeah but rakudo is usable right now
<ruurd> perl? isn't that that language that looks the same before and after uuencoding it???
<fxxck> there are real projects already happening
<havenwood> fxxck: Just not released.
<EdwardIII> eam: what do they call it? i googled "hacking the symbol table in ruby" but it just referred me to loads of docs on :symbols
naftilos76 has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
djcp has joined #ruby
Mojo_Nixon has quit [Quit: Textual IRC Client: www.textualapp.com]
northfurr has joined #ruby
<workmad3> 'The design process for Perl 6 began in 2000.' haha
<havenwood> Ruby 2.3 and Perl 6 on the same day.
<eam> EdwardIII: it's done through methods like instance_variable_set
<fxxck> does 2.3 have anything good?
<eam> or define_method
<havenwood> workmad3: And it's been scheduled for release every Christmas! :P
<EdwardIII> this kind of leads me onto an actual real question
<havenwood> This Christmas is the one!
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<certainty> because every day is Christmas when perl6 is out
<eam> >> define_method :foo, ->{"hello world"}; foo()
<ruboto> eam # => "hello world" (https://eval.in/449833)
cdg_ has joined #ruby
<workmad3> havenwood: haha
<EdwardIII> in python, if you want to make an api return a response from a fixture or you want to see what happens when you run your test on leap year you use @patch to swap-out the underlying obj
cdg has quit [Read error: Connection reset by peer]
<EdwardIII> i've seen vcr for ruby which i will definitely be using
<EdwardIII> but like... what's the standard practice here?
Xeago_ has quit [Remote host closed the connection]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
<fxxck> "how come ruby can't" => "there's a gem for that"
<EdwardIII> in symfony/swing you use a whole big fat DIC framework so it's easy to swap out collaborators under tests
Pathfinder_ has quit [Ping timeout: 240 seconds]
<workmad3> EdwardIII: there's not exactly a standard practice, as it depends a fair bit on what you want your tests to achieve... on the one hand, you have tools like webmock and fakeweb (and vcr built on top of webmock), which stubs out the net/http library, letting you inject faked responses and prevent actual API access... some people will write a wrapper around the actual network requests, test that hitting the re
<workmad3> al API (normally with sandbox creds or similar) and then stub out their client in other tests for speed...
mistermocha has quit [Ping timeout: 265 seconds]
<workmad3> EdwardIII: and sometimes, if you're developing the API and the client in tandem, it might make sense to just bring up your API as part of your test suite, and run your client tests against that version of the API
<EdwardIII> what if you wanted to see what happened when you ran your test on the bonus day in a leap year?
<EdwardIII> is the stubbing part i'm interested in
cwong_on_irc has quit [Quit: Leaving.]
chouhoul_ has quit [Remote host closed the connection]
<workmad3> EdwardIII: well, once you can inject fake responses into the net/http stack, you can pretty much fake anything you want... so you can easily inject responses that have feb 29th in them and make sure your code works correctly
chouhoulis has joined #ruby
<workmad3> EdwardIII: whether that's going to represent the actual behaviour of the API at that point is another question
catphish has joined #ruby
tagrudev has quit [Remote host closed the connection]
<EdwardIII> workmad3: not in terms of API responses, i mean like if your method uses d = Date.parse(Time.now.to_s)
<catphish> does anyone know if it's possible to use ECDH in openssl within ruby?
<catphish> (specifically, as a server)
khebbie has joined #ruby
jas02 has quit [Quit: jas02]
prefixed has joined #ruby
<EdwardIII> perhaps something like Time.any_instance.stub(:foo).and_return(:return_value) ?
<workmad3> EdwardIII: oh... there are two thoughts on that front... one thought is basically "Stub out Time.now to return the date/time you want" (there are libraries like TimeCop that support that)... the other thought is that relying on Time.now directly is an implicit global dependency, you should try to make it explicit and pass in a timesource or similar to your methods, so you can easily test by simply injecting
to_json has quit [Quit: Leaving.]
<workmad3> an arbitrary time in
anisha has quit [Quit: Leaving]
<EdwardIII> workmad3: ok cool thanks - and this kind of goes back to the earlier conversation with eam about hacking the symbol table :)
sgambino has quit [Ping timeout: 246 seconds]
mdst has quit [Quit: Leaving]
<workmad3> EdwardIII: the exact syntax for stubbing/mocking will also depend on the library you use. rspec, for example, would have `allow(Time).to recieve(:now).and_return(...)`
supergeek has quit [Quit: Goodbue blue sky...]
<EdwardIII> workmad3: ah and that will patch Time?
<EdwardIII> neato
<EdwardIII> this looks pretty good
last_staff has quit [Quit: last_staff]
<EdwardIII> i'm going to go back into +b territory i think but - do you think there's any inherent danger on doing this? rather than having a big DIC framework liek symfony/swing do?
<workmad3> EdwardIII: if you wanted to patch Time globally, you can also make use of ruby's open classes - `class Time; def self.now; "The end is now!"; end; end`
<EdwardIII> liek/like, damnit
momomomomo has joined #ruby
simplyianm has joined #ruby
dopamean_ has joined #ruby
troulouliou_div2 has joined #ruby
jamesaxl has joined #ruby
<workmad3> EdwardIII: again, differing views, at least in the rails world... some people (DHH included) think that there's no point in having a big DIC framework, and if you want/need to alter some behaviour like that, just monkeypatch or similar... I personally don't like using a framework to wire things together for me, but I'll tend towards being able to inject dependencies rather than rely on them being globally a
<workmad3> vailable
bkxd has joined #ruby
niemcu has joined #ruby
<EdwardIII> then have a factory function to save you having to type out the collaborators you're injecting in each time?
<workmad3> e.g. `def do_something(param, time_source: Time)` is perfectly valid ruby, letting you call that method like `do_something(:foo)` or `do_something(:foo, time_source: FakeTime)`
<EdwardIII> yes
favadi has joined #ruby
<EdwardIII> there was a lot of overhead and extra complexity with the DIC
<EdwardIII> but it did have some advantages too
Dopagod has joined #ruby
<workmad3> EdwardIII: it helps that in ruby, you always use the method `new` to create instances, rather than a special syntax construct... so you can also monkeypatch `new` to inject things, if you want
s2013 has joined #ruby
zenguy_pc has quit [Ping timeout: 265 seconds]
favadi has quit [Max SendQ exceeded]
<EdwardIII> it was nice seeing exactly what the collaborators were at a glance, it made you extremely aware when you were getting a bit greedy with responsibilites and it made test subs in unit tests very very easy indeed
<workmad3> EdwardIII: it's not unheard of to inject a specific instance into a rails controller by doing `allow(SomeClass).to receive(:new).and_return(some_fake)` for example
<workmad3> EdwardIII: yeah, that's exactly the sort of reasons given for heading that way :)
<workmad3> EdwardIII: it's just not a monoculture of 'DIC everything!' in rails like it can sometimes seem in java :)
Porfa has quit [Quit: Porfa]
<EdwardIII> yeah
deepu has joined #ruby
finisherr has quit [Quit: finisherr]
<EdwardIII> sometimes it felt like you were breaking your balls pretty hard 100% of the time just to get a benefit 6% of the time
Xeago has joined #ruby
<workmad3> and 'poor mans DIC', where you set up ad-hoc dependency injection if you need it is easier in ruby too, so it tends to be broken out as needed
<workmad3> the above examples, of injecting or overriding methods if required, are a real PITA through the java reflection APIs :D
northfurr has quit [Quit: northfurr]
diegoaguilar has joined #ruby
Trynemjoel has joined #ruby
ksteck has joined #ruby
Porfa has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<EdwardIII> well usually you'd mock the whole object and inject it through the constructor, and the mock would basically be an instance of the real object but just have 1 method mocked, that was fairly easy
kwd has quit [Quit: kwd]
<EdwardIII> mock spec object or something
<EdwardIII> but yes probably the reflection aspect of that was a pain for the mocking library author hehe
Gnomethrower has joined #ruby
Mojo_Nixon has joined #ruby
<workmad3> EdwardIII: yeah, it's been figured out... but it's normally more painful IME :)
<workmad3> EdwardIII: and that's assuming you only want to do that in a test, rather than something like correct a bug in a library you don't control
fxxck has quit [Ping timeout: 246 seconds]
<EdwardIII> i've run into some swines of issues with JS due to monkey patching though
<EdwardIII> where other lib authors have been a little monkey-patch happy
neanias_ is now known as neanias
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mojo_Nixon has quit [Client Quit]
<EdwardIII> a personal favourite was when someone patched jQuery.load(function(){}) to squash all errors
<workmad3> oh sure, it's a technique that has potential issues if you misuse it or overuse it
<EdwardIII> that really had me scratching my head heh
Xeago has quit [Remote host closed the connection]
<workmad3> but then, that can be said of pretty much any technique ;)
grenierm has quit [Quit: grenierm]
<workmad3> and monkey-patching is a tool of last resort, IMO... but it's a pretty life-saving one if you end up with it :)
atomical has joined #ruby
<EdwardIII> yeah it's flexibility vs correctness i guess?
<EdwardIII> "correctness"
krz has joined #ruby
<havenwood> EdwardIII: Call it Freedom Patching and it'll work better. Ruby does have Refinements as well now for locally scoped Freedom Patching.
zenguy_pc has joined #ruby
richard4 has joined #ruby
<richard4> Hello
<havenwood> richard4: hi
jdawgaz has joined #ruby
basiles has joined #ruby
fxxck has joined #ruby
northfurr has joined #ruby
basiles has quit [Client Quit]
<workmad3> EdwardIII: I see that as a weird dichotomy, personally... it's almost like saying "This thing you're doing isn't getting correct results, even though it's the thing ensuring you get correct results. The incorrectness isn't a 'visible' incorrectness"
renderfu_ has joined #ruby
<EdwardIII> haha
funkenstrahlen has left #ruby ["WeeChat 1.1.1"]
<richard4> is $stdout.sync = true is similar to fflush in c?
<EdwardIII> i like havenwood's description
ndrei has quit [Ping timeout: 240 seconds]
<EdwardIII> locally scoped patching... that would solve so many issues
basiles has joined #ruby
<EdwardIII> who was it that was saying they didn't see the point in decorators?
caliostro_ has joined #ruby
karmatr0n has joined #ruby
<EdwardIII> shevy: that's quite a decent use of decorators. in python for say, a unit test, you can say @patch('some.object', spec=whatever, other=stuff) and then python does the patch when it enters your method, then undoes it when it leaves your method. that's a pretty handy thing
yeshacker has joined #ruby
hobodave has joined #ruby
<[k-> refinements...
<[k-> read havenwood's link!
<[k-> (they are implemented in ruby actually)
<[k-> so it's not special syntax!
renderfu_ has quit [Ping timeout: 250 seconds]
caliostro has quit [Quit: Exit-Chat]
* EdwardIII reads
<EdwardIII> after this i promise i'll stfu and build something
supergeek has joined #ruby
jmignault has quit [Ping timeout: 246 seconds]
beauby has joined #ruby
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kies^ has joined #ruby
Trynemjoel has quit [Max SendQ exceeded]
Trynemjoel has joined #ruby
basiles has joined #ruby
tk__ has quit [Quit: ばいばい]
funkenstrahlen has joined #ruby
yardenbar has joined #ruby
supergeek has quit [Client Quit]
<funkenstrahlen> hey, I call 'auth_code = gets.chomp' and get 'podcast-to-youtube.rb:33:in `gets': No such file or directory @ rb_sysopen - upload (Errno::ENOENT)
<funkenstrahlen> whats wrong?
karapetyan has quit [Remote host closed the connection]
Dopagod has quit [Quit: WeeChat 1.0]
<funkenstrahlen> what has gets to do with files?
supergeek has joined #ruby
karapetyan has joined #ruby
<funkenstrahlen> I only want to read from command line
<havenwood> funkenstrahlen: "Returns (and assigns to $_) the next line from the list of files in ARGV (or $*), or from standard input if no files are present on the command line."
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<EdwardIII> heh i didn't realise you had $_ in ruby
<havenwood> funkenstrahlen: Try: STDIN.gets
<havenwood> EdwardIII: Many perlisms!
izzol has quit [Quit: .]
<fxxck> rubyists dont like perlisms for some reason
supergeek has quit [Client Quit]
polishdub has joined #ruby
<[k-> i would mention yorick again but he would be angry for many pings
karapetyan has quit [Remote host closed the connection]
bluOxigen has joined #ruby
shmilan has joined #ruby
karapetyan has joined #ruby
lkba has quit [Remote host closed the connection]
dopie has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
stannard has joined #ruby
leafybas_ has joined #ruby
northfurr has quit [Quit: northfurr]
<fxxck> yorick is too busy parsing xml anyways
justin_pdx has joined #ruby
<[k-> well actually, he is waiting for his new carbon x1 to arrive
<fxxck> i want to get the Chromebook Pixel 2 next
to_json has joined #ruby
to_json has joined #ruby
<[k-> give me your old chromebook pixel 1 :>
okdas has quit [Excess Flood]
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
podman has joined #ruby
imperator has joined #ruby
Meow-J has joined #ruby
<imperator> anyone up for some peer review? https://github.com/mrbrdo/vcr/tree/threadsafety
russt has quit [Ping timeout: 240 seconds]
<imperator> part of a code bounty to add thread support for vcr gem
ngscheur1 has joined #ruby
<imperator> seems to work, just want to see if there are any obvious issues
sankaber has quit [Remote host closed the connection]
<fxxck> i dont have a pixel, ive got the newer acer one
<fxxck> the first pixel wasnt worth what they were charging
<fxxck> im shocked people fell for that shit
<catphish> is there a likely timescale for ruby 2.3?
<fxxck> xmas
sankaber has joined #ruby
Trynemjoel has quit [Quit: Quitting]
<havenwood> catphish: Here comes Sana Claws.
<catphish> lol
baroquebobcat has quit [Quit: baroquebobcat]
grenierm has joined #ruby
shredding has joined #ruby
<catphish> i'll probably have to backport what i need for now :)
dopie has quit [Quit: Leaving]
acke has quit [Remote host closed the connection]
eikood has quit [Quit: ByeBye]
<[k-> has the world suddenly gone flat and bright?
<[k-> do you like the new github [build: pass] [code coverage: 99%] and all those other newly designed tags?
<[k-> yorickpeterse: ^
<funkenstrahlen> havenwood: thanks. STDIN.gets fixed my problem!
richard4 has quit [Ping timeout: 246 seconds]
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> [k-: what the fuck are you on about?
sgambino has joined #ruby
v0n has joined #ruby
The_Phoenix has joined #ruby
rippa has joined #ruby
cdg_ has quit [Ping timeout: 240 seconds]
p0wn3d__ has quit [Ping timeout: 268 seconds]
basiles has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
justin_pdx has quit [Quit: justin_pdx]
edp1 has joined #ruby
<edp1> hi
funkenstrahlen has left #ruby ["WeeChat 1.1.1"]
jdawgaz has joined #ruby
l_tonz has joined #ruby
riichard4 has joined #ruby
Jardayn has joined #ruby
The_Phoenix has quit [Ping timeout: 252 seconds]
<edp1> I got the exact same error as DomT4 -> https://github.com/flori/json/issues/229#issuecomment-68802010 but I don't know how to apply the patch as I execute $ bundle install --path foo/bar to install install bundle
<edp1> do you know how can I make it ?
freerobby has joined #ruby
grenierm has quit [Quit: grenierm]
<jhass> edp1: you need to find a git repository that has it applied (possibly just flori/json? didn't read the full thread)
<jhass> edp1: then just use the git/github option to gem in your Gemfile
<jhass> (and possibly branch option)
<edp1> jhass: ok I understand I will try that thank you
hobodave has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
finisherr has joined #ruby
<[k-> yorickpeterse: that vcr github link sported the new badges
lkba has joined #ruby
riichard4 has quit [Quit: Page closed]
doddok has joined #ruby
<karapetyan> hello
Helius has joined #ruby
<karapetyan> https://projecteuler.net/problem=44 but let's assume we have only 1 chance run application (and can't set limit for 5000 elements)
ruurd has quit [Quit: ZZZzzz…]
<karapetyan> is my algorithm very very bad? :)
<havenwood> imperator: I was going to suggest `warn` in place of `STDERR.puts` so it doesn't print if warnings are disabled like with -W0. I wasn't sure if the goal is to print anyways but thought I'd mention.
pdoherty has joined #ruby
prestorium_ has joined #ruby
l_tonz has quit [Remote host closed the connection]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
riotjones has quit [Remote host closed the connection]
l_tonz has joined #ruby
l_tonz has quit [Remote host closed the connection]
jmtorresg has joined #ruby
cwong_on_irc has joined #ruby
<jhass> karapetyan: the problem from last time is still present, but we can try https://en.wikipedia.org/wiki/Pentagonal_number#Tests_for_pentagonal_numbers for now
catphish has left #ruby ["Leaving"]
Pupp3tm4st3r has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 255 seconds]
edp1 has quit [Quit: .]
<havenwood> imperator: No issues jump out at me. Neat!
<imperator> havenwood, thanks
jmtorresg has quit [Client Quit]
<imperator> i'll mention the stderr thing
vipaca has joined #ruby
ruurd has joined #ruby
prestorium has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
finisherr has quit [Ping timeout: 252 seconds]
The_Phoenix has joined #ruby
finisherr has joined #ruby
arup_r has joined #ruby
favadi has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
ndrei has joined #ruby
favadi has quit [Max SendQ exceeded]
<karapetyan> jhass: but now i don't calculate twice ? yes, i have tail and there some double-calculation
<imperator> havenwood, actually, where do you see that?
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> karapetyan: well I think the problem is meant to be solved without knowing the range you have to consider
<karapetyan> jhass:
<imperator> havenwood, thanks
<karapetyan> jhass: yes, i want to solve it without range.
<havenwood> imperator: no prob, any time
<jhass> karapetyan: and my ruby implementation of my algorithm from last time takes just 5 seconds here
apt-get has joined #ruby
slackr has joined #ruby
<karapetyan> jhass: cool.
baroquebobcat has joined #ruby
slackr has quit [Client Quit]
mistermocha has joined #ruby
<karapetyan> jhass: your algorithm uses some limits?
Pathfinder_ has joined #ruby
<jhass> no
<jhass> just two hashes and the above test to check for pentagonality
favadi has joined #ruby
astrobu__ has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<jhass> if unknown yet
<karapetyan> jhass: ok
<karapetyan> jhass: so, where is my mistake?
momomomomo has joined #ruby
<jhass> by now in the whole approach, kinda
favadi has quit [Max SendQ exceeded]
jgt has quit [Ping timeout: 250 seconds]
<jhass> you try to precompute stuff instead of doing calculations as you need them but only if you didn't cache their result yet
favadi has joined #ruby
<jhass> it probably would even perform acceptably without caching using just the efficient pentagonality test
rcvalle has joined #ruby
<jhass> and not repeating combinations of course
finisherr has quit [Ping timeout: 264 seconds]
ruurd has quit [Quit: ZZZzzz…]
mistermocha has quit [Ping timeout: 244 seconds]
brunto_ has joined #ruby
finisherr has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
brunto has quit [Ping timeout: 260 seconds]
_blizzy_ has joined #ruby
apt-get has quit [Ping timeout: 256 seconds]
ItSANgo has quit [Quit: Leaving...]
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 240 seconds]
basiles has joined #ruby
<prefixed> is it possible to include private mthods in modules?
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ishikawa91> yes
blackmesa has joined #ruby
<prefixed> how
SCHAAP137 has quit [Remote host closed the connection]
<ishikawa91> in your module
<ishikawa91> put private
<ishikawa91> and then any method you declare after it, will be a private method for that module
<karapetyan> jhass: eh, actually i got so much troubles with that code. Seems i haven't enough experience for that
f4cl3y has quit [Ping timeout: 260 seconds]
<prefixed> why is it possible to use private methods outside a module / class in ruby?
<jhass> karapetyan: so want to see my solution?
<karapetyan> jhass: no :)
<karapetyan> jhass: after... )
<ishikawa91> outside a module or class? What are you trying to do?
<to_json> prefixed: ideological reasons. Ruby largely doesn't prevent you from doing anything
<jhass> karapetyan: ah, kinda sounded like you gave up :P
Limix has joined #ruby
<prefixed> to_json sounds smart
<to_json> i'm not
jairojunior has joined #ruby
roshanavand has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<gregf__> ishikawa91: https://gist.github.com/anonymous/424dae3a3de47a411774 <== something like that?
ItSANgo has joined #ruby
symm- has joined #ruby
<karapetyan> jhass: actually i feel stupid :( i spent about 2 days on it. And now. i feel if i remove this code i can't write it fast again
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gregf__> oops , prefixed i meant :|
closer has quit [Ping timeout: 272 seconds]
arup_r has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
Cache_Money has joined #ruby
closer has joined #ruby
xlogic has quit [Quit: Textual IRC Client: www.textualapp.com]
<ishikawa91> gregf__ thats how you do it. But only the public methods in the module Foo can access the private methods, not the class Bar
cibs has quit [Ping timeout: 272 seconds]
<ishikawa91> and instead of writing public, just move def foo to before the private line
<ishikawa91> then have foo call bar
ndrei has quit [Ping timeout: 240 seconds]
railsForDaiz has joined #ruby
<yardenbar> Hi all, where can I find the documentation for Logger 'daily' rotation? when the rotation occurs and such..?
cibs has joined #ruby
nettoweb has joined #ruby
mistermocha has joined #ruby
ruurd has joined #ruby
rwilcox has joined #ruby
The_Phoenix has quit [Ping timeout: 240 seconds]
loveablelobster has joined #ruby
eminencehc has joined #ruby
solars has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
kimegede has quit [Quit: Leaving...]
rwilcox has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
loveablelobster has quit [Client Quit]
c355E3B has quit [Quit: Connection closed for inactivity]
rwilcox has joined #ruby
NeverDie has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
The_Phoenix has joined #ruby
nfk|laptop has quit [Remote host closed the connection]
f4cl3y has joined #ruby
TDJACR has quit [Ping timeout: 246 seconds]
lxsameer has quit [Quit: Leaving]
rwilcox has quit [Client Quit]
ruurd has joined #ruby
s2013 has joined #ruby
eminencehc has quit [Remote host closed the connection]
railsForDaiz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brunto_ has quit [Ping timeout: 240 seconds]
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
momomomomo has quit [Quit: momomomomo]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
marco_ has joined #ruby
eminencehc has joined #ruby
sanjayu has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Ping timeout: 240 seconds]
djcp has quit [Ping timeout: 252 seconds]
shoutsid has quit [Ping timeout: 264 seconds]
Limix has quit [Quit: Limix]
TDJACR has joined #ruby
grenierm has joined #ruby
jgt has joined #ruby
toretore has joined #ruby
grenierm has quit [Client Quit]
Soda has joined #ruby
mistermocha has quit [Remote host closed the connection]
Helius has quit [Quit: Helius]
joonty has quit [Quit: joonty]
Peg-leg has quit [Quit: Leaving.]
amclain has joined #ruby
[k- has quit [Ping timeout: 250 seconds]
mase-chatter has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
kalusn has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
p0wn3d__ has joined #ruby
momomomomo has joined #ruby
SCHAAP137 has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
favadi has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjone_ has joined #ruby
riotjone_ has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
riotjone_ has quit [Read error: Connection reset by peer]
shredding has quit [Ping timeout: 252 seconds]
djcp has joined #ruby
towski_ has joined #ruby
riotjones has joined #ruby
ajaiswal_ has joined #ruby
justinmburrous has joined #ruby
eGGsha has joined #ruby
russt has joined #ruby
chopin has joined #ruby
naftilos76 has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
ajaiswal has quit [Ping timeout: 272 seconds]
justin_pdx has joined #ruby
victortyau has quit [Ping timeout: 250 seconds]
riotjones has quit [Ping timeout: 246 seconds]
vdamewood has joined #ruby
victortyau has joined #ruby
beauby has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
The_Phoenix has joined #ruby
zenguy_pc has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
senayar has quit []
ndrei has joined #ruby
<ytti> https://www.yubico.com/github-special-offer/ - might be relevant to some
RobertBirnie has joined #ruby
krz has quit [Ping timeout: 252 seconds]
skade has joined #ruby
p0wn3d__ has quit [Ping timeout: 256 seconds]
<jhass> that's still running? also you're late
Dopagod has joined #ruby
Dopagod has joined #ruby
The_Phoenix has quit [Read error: No route to host]
justinmburrous has quit []
Rollabunna has quit [Quit: Leaving...]
p0wn3d__ has joined #ruby
nfk|laptop has joined #ruby
stan has quit [Ping timeout: 265 seconds]
<shevy> ruby runs forever
<shevy> ytti are you coding in Helsinki?
machinewar has quit [Remote host closed the connection]
iateadonut has quit [Quit: Leaving.]
krisquigley has quit [Remote host closed the connection]
<caliostro_> what is the difference among + and << in string concatenation ?
<shevy> I swear this came up like 3 days ago :)
niemcu has quit [Ping timeout: 240 seconds]
<shevy> += will create a new object, << is just appending to your string object (if you have a string there that is); you can query this by calling .object_id
<ytti> shevy, i moved to cyprus in may
<shevy> cool, so hot!
<newdan> Is there a place where I can read what's on the schedule for Ruby 2.3?
karapetyan has joined #ruby
<shevy> hey... we are using ruby 2.3...
<ytti> shevy, but yeah, lived in helsinki for 15 years or so
<shevy> ruby 2.2.3p173 (2015-08-18 revision 51636) [i686-linux]
<shevy> no wait
<shevy> you are right
<caliostro_> shevy : thanks
<shevy> we are using 2.2.3 sorry
<ytti> but i'm mostly network monkey, only develope to make my life easier
The_Phoenix has joined #ruby
momomomomo has quit [Quit: momomomomo]
<newdan> shevy: lol np had me worried that I forgot how to read for a second
Pathfinder_ has quit [Remote host closed the connection]
basiles has joined #ruby
<shevy> haha yeah... I usually glance at the changelog https://github.com/ruby/ruby/blob/trunk/ChangeLog
<shevy> there were some minor changes, for instance, the ruby-ftp module got a few new methods
<shevy> then there were some changes related to the upcoming string freezing stuff
rodfersou is now known as rodfersou|lunch
zenguy_pc has joined #ruby
<shevy> and some superhuman changes by Koichi Sasada which I don't understand (it's above my level)
grenierm has joined #ruby
subscope has quit [Quit: Textual IRC Client: www.textualapp.com]
jairojunior has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
djbkd has joined #ruby
benlieb has joined #ruby
doddok has left #ruby ["Leaving"]
robbyoconnor has quit [Ping timeout: 246 seconds]
The_Phoenix has quit [Ping timeout: 272 seconds]
avelldiroll has quit [Ping timeout: 265 seconds]
Asher has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
Gnomethrower has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
kristofferR has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
oetjenj has joined #ruby
bryanray has joined #ruby
arup_r has joined #ruby
blackmesa has joined #ruby
jairojunior has joined #ruby
robbyoconnor has joined #ruby
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Ping timeout: 256 seconds]
<adac> How to compare two sets?
dorei has quit []
basiles has joined #ruby
psy_ has joined #ruby
<slash_nick> adac: compare how?
<adac> slash_nick, in terms of if they contain the same elements
<adac> exactly the same
mark2 has quit [Remote host closed the connection]
robbyoconnor has quit [Client Quit]
<slash_nick> adac: [1,2,3] & [3] #=> [3]
leafybasil has joined #ruby
terlar has quit [Ping timeout: 250 seconds]
Channel6 has joined #ruby
<slash_nick> >> [:foo, :bar, :baz, "bang"] & %w{ bang }
<ruboto> slash_nick # => ["bang"] (https://eval.in/449921)
spider-mario has quit [Ping timeout: 264 seconds]
MeMoc has quit [Quit: Connection closed for inactivity]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
leafybas_ has quit [Ping timeout: 260 seconds]
basiles has quit [Client Quit]
<adac> [1,2,3] & [3] #=> [3]
pandaant has quit [Remote host closed the connection]
basiles has joined #ruby
agent_white has joined #ruby
leafybasil has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
<agent_white> Moin
basiles has quit [Client Quit]
basiles has joined #ruby
<prefixed> yo. why is this retuning a "undefined method `build_exclude_list' for class `Module'" error? https://gist.github.com/anonymous/d9290c204d37fae27fb1
spider-mario has joined #ruby
deol has joined #ruby
<adaedra> because it's not a class method
Gnomethrower is now known as GT|away
Steve_Jobs has quit [Ping timeout: 256 seconds]
<prefixed> what does that *even* mean? I am using the notation given in this post: http://stackoverflow.com/questions/318850/private-module-methods-in-ruby
symm-_ has joined #ruby
prestorium_ is now known as prestorium
symm- has quit [Ping timeout: 264 seconds]
<adaedra> The method you define is not a class method, which would be defined by self.xxx
fxxck has left #ruby [#ruby]
<prefixed> ok. that makes sense
urbanmonk has joined #ruby
<adaedra> You're defining A#b and make A.b private, if you prefer this notation
michaeldeol has quit [Ping timeout: 268 seconds]
jpfuentes2 has joined #ruby
eikood has joined #ruby
K1MOS has joined #ruby
jairojunior has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Helius has joined #ruby
<adac> How can I copy/clone a set object So the objects are different objects?
andi_ has joined #ruby
solocshaw has joined #ruby
andi_ has left #ruby ["WeeChat 1.3"]
rsk has joined #ruby
rsk has quit [Client Quit]
moty66 has quit [Quit: rebooting]
<adac> arr2 = arr.inject([]) { |a,element| a << element.dup }
<adac> think this ways it wors
<adac> works
<adac> got to go have a nice time guys!
simplyianm has quit [Remote host closed the connection]
mdih has joined #ruby
rakm has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hanmac has quit [Ping timeout: 246 seconds]
firstdayonthejob has joined #ruby
karapetyan has quit [Remote host closed the connection]
baweaver has joined #ruby
guacjack has joined #ruby
adac has quit [Ping timeout: 272 seconds]
Hounddog has quit [Remote host closed the connection]
krz has joined #ruby
caliostro_ has quit [Quit: Exit-Chat]
<platzhirsch> Wow, JS doesn't have a method_missing method *cough* JS sucks *cough*
karapetyan has joined #ruby
Steve_Jobs has joined #ruby
<tubbo> lol
<platzhirsch> So you can't write magic code that is hard to understand
<tubbo> platzhirsch: challenge accepted... http://www.jsfuck.com/
nertzy2 has joined #ruby
<platzhirsch> tubbo: oh, well JS is already screwed
<platzhirsch> no reason to set the dead horse on fire
dorei has joined #ruby
shoutsid has joined #ruby
<tubbo> in all seriousness though i've been really happy with the latest JS news
<tubbo> there seems to be an effort in making it suck a little bit less to write in JS all the time
Motoservo has joined #ruby
nertzy has quit [Ping timeout: 256 seconds]
ruurd has joined #ruby
eminencehc has quit [Remote host closed the connection]
khebbie has joined #ruby
ericjphillips has joined #ruby
bryanray has joined #ruby
<shevy> oh the nodehirsch... I miss the old platzhirsch ...
kalusn has joined #ruby
loocash has joined #ruby
riotjones has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnhamelink has joined #ruby
hanmac has joined #ruby
eikood has quit [Quit: ByeBye]
<platzhirsch> lol
grenierm has quit [Quit: grenierm]
<platzhirsch> tubbo: yeah, ES6 is... great
eminencehc has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eikood has joined #ruby
<pocketprotector> i am starting to get the hang of this
krz has quit [Ping timeout: 265 seconds]
<pocketprotector> i wish chef would use pure ruby, instead of a DSL
<pocketprotector> What IDE's do you guys use? I am using sublime text to help me with the auto-complete
<bougyman> vim
<pocketprotector> auto-suggestion i should say
<pocketprotector> I also use vim. are there any special configs i should use for vim?
ruurd has quit [Quit: ZZZzzz…]
bruno- has quit [Ping timeout: 256 seconds]
pwnd_nfsw has joined #ruby
Helius has quit [Quit: Helius]
rakm has joined #ruby
__chris has joined #ruby
newdan has left #ruby [#ruby]
naztharune has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
ajaiswal_ is now known as ajaiswal
ruurd has joined #ruby
momomomomo has joined #ruby
nateberkopec has quit [Quit: Leaving...]
jairojunior has joined #ruby
basiles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eikood has quit [Quit: ByeBye]
eminencehc has quit [Remote host closed the connection]
basiles has joined #ruby
eminencehc has joined #ruby
eikood has joined #ruby
loocash has quit [Quit: Leaving]
jairojunior has quit [Quit: Textual IRC Client: www.textualapp.com]
Dopagod has quit [Quit: WeeChat 1.0]
urbanmonk has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
shoutsid has quit [Remote host closed the connection]
renderfu_ has joined #ruby
[k- has joined #ruby
kirun has joined #ruby
to_json has quit [Quit: Leaving.]
blaxter has quit [Quit: foo]
shoutsid has joined #ruby
rodfersou|lunch is now known as rodfersou
cdg has joined #ruby
karapetyan has quit [Remote host closed the connection]
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ericjphillips has quit [Quit: Leaving.]
davedev24 has quit []
jgt has quit [Ping timeout: 244 seconds]
naftilos76 has quit [Ping timeout: 252 seconds]
n008f4g_ has joined #ruby
ericjphillips has joined #ruby
K1MOS has joined #ruby
<balazs> Hi, how do I truly detach a forked process ? I want it to keep running even if the parent process exits.
musl has quit [Quit: WeeChat 1.1.1]
K1MOS has quit [Client Quit]
rdark_ has quit [Ping timeout: 268 seconds]
<dorei> balazs: oh, you want to make it a daemon, i'm pretty sure that there are specialized gems for this task
musl has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Channel6 has quit [Ping timeout: 255 seconds]
krisquigley has joined #ruby
<eam> there are definitely gems for this, but the short answer is: double fork, setsid, close inherited descriptors, cd /
shmilan has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
Igorshp has quit [Remote host closed the connection]
David27 has joined #ruby
nateberkopec has joined #ruby
<pocketprotector> eam: is your name have anything to do with the artist?
<pocketprotector> s/is/does
<eam> the artist?
urbanmonk has joined #ruby
<eam> it's my initials
krisquigley has quit [Ping timeout: 240 seconds]
<pocketprotector> look up a documentary on PBS called the painter and the architect
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pocketprotector> or architect and the painter i forget
<eam> oh Ray Eames
<pocketprotector> thats the lady
<pocketprotector> aka wife
<eam> huh, I'll watch it
ramfjord has joined #ruby
karapetyan has joined #ruby
<pocketprotector> sorry, i totally misspelled Eames
Klumben has joined #ruby
shoutsid has quit [Remote host closed the connection]
Porfa has quit [Quit: Porfa]
c0m0 has quit [Ping timeout: 240 seconds]
<shevy> Games
<shevy> try ita gain
<platzhirsch> EEmes
<platzhirsch> waht
<karapetyan> jhass: your algorithm uses math formula?
musl has quit [Quit: WeeChat 1.1.1]
jenrzzz has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
dmolina has quit [Quit: Leaving.]
<jhass> karapetyan: my implementation does the pentagonality check with the inverse function (that's all the function at wikipedia is)
devoldmx has joined #ruby
shoutsid has joined #ruby
<jhass> if that returns an integer result it is a pentagonal number
momomomomo has quit [Quit: momomomomo]
simplyianm has joined #ruby
simplyianm has quit [Remote host closed the connection]
<karapetyan> jhass: ehm don't understand math at all :(
simplyianm has joined #ruby
bruno- has joined #ruby
simplyianm has quit [Remote host closed the connection]
tomphp has quit [Ping timeout: 255 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has joined #ruby
mistermo_ has joined #ruby
Cache_Money has left #ruby [#ruby]
chthon has quit [Ping timeout: 268 seconds]
<shevy> 2 + 2 = 5
<karapetyan> jhass: x = y(3y-1)/2 if x == integer then x == pentagonal?
solocshaw has quit [Remote host closed the connection]
<karapetyan> shevy: 1984
<jhass> karapetyan: yes
solocshaw has joined #ruby
<jhass> well, no
<pocketprotector> if 2 + 2 = 5, then 1 + 3 = 6
<tubbo> karapetyan: you know you're talking to us on the world's most expensive calculator right? :P
mistermo_ has quit [Remote host closed the connection]
<tubbo> Cmd + Space, type in your math problem ;)
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
<jhass> karapetyan: that's actually not the inverse function but the original one
mikecmpbll has joined #ruby
petricore has joined #ruby
<jhass> karapetyan: x is P(n), y is n
mary5030 has quit [Ping timeout: 246 seconds]
victortyau has quit [Ping timeout: 260 seconds]
kgirthofer has joined #ruby
Musashi007 has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
avelldiroll has joined #ruby
victortyau has joined #ruby
lea has quit [Ping timeout: 265 seconds]
<shevy> yo people... did you know that sheep can program?
guacjack has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> this is a sheep-loop: http://shevegen.square7.ch/screenshot.png
cdg has quit [Ping timeout: 264 seconds]
srashidi has joined #ruby
uber has quit [Ping timeout: 264 seconds]
* bougyman watching S6E1
bryanray has joined #ruby
<kgirthofer> shevy: needs an escape dog
<shevy> hah
<karapetyan> jhass: ok, show me your code! :D
<karapetyan> please)
<shevy> it's genius though... they are just following the leader-sheep... and the next one is just following the prior sheep... etc...
<karapetyan> jhass: but if possible without math tricks)
victortyau has quit [Excess Flood]
<jhass> I only have one version
<karapetyan> only hardcore, logic + code)
<jhass> no real math trick
<karapetyan> jhass: no math formula )
<karapetyan> jhass: ok :)
<jhass> karapetyan: http://p.jhass.eu/3.rb
naztharune has quit [Disconnected by services]
victortyau has joined #ruby
nnaztharue has joined #ruby
naztharune has joined #ruby
<kgirthofer> shevy: shrodingers sheep. they are all the leader sheep, while also they are all the prior sheep
<shevy> lol
datanoise has joined #ruby
solars has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
bb010g has joined #ruby
chthon has joined #ruby
kidoz has joined #ruby
senayar has joined #ruby
blt has joined #ruby
riotjone_ has joined #ruby
last_staff has joined #ruby
<karapetyan> jhass: so, what you can recommend me? i am junior developer with huge problems in math and understanding algorithms. Now i see your code and have no idea how it works. Especially if it contain nested loops etc.
p0wn3d__ has quit [Read error: Connection reset by peer]
akkad has quit [Excess Flood]
p0wn3d__ has joined #ruby
danman has joined #ruby
<adaedra> karapetyan: get used to it. Read some, Write some, Read on the background, etc.
<jhass> karapetyan: don't focus on math then, get great at other stuff. Don't do euler, do ruby warrior, codewars & exercism
uber has joined #ruby
akkad has joined #ruby
riotjone_ has quit [Ping timeout: 240 seconds]
arup_r has quit [Quit: Leaving]
<karapetyan> jhass: i do ruby warrior then.
musl has joined #ruby
sankaber has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 250 seconds]
<shevy> I do ruby ninja
sankaber has joined #ruby
srashidi has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 268 seconds]
lea has joined #ruby
<pipework> I do ultimate ruby ninja warrior
<jhass> where are the pirates? I demand more pirates! And zombies. And cats.
blt has left #ruby ["WeeChat 1.3"]
<shevy> you can be a cat jhass
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
basiles has quit [Ping timeout: 240 seconds]
<adaedra> ?cat
<ruboto> I don't know anything about cat
<adaedra> You don't?
datanoise has quit [Quit: Textual IRC Client: www.textualapp.com]
datanoise has joined #ruby
adac has joined #ruby
Musashi007 has quit [Quit: Musashi007]
shoutsid has quit [Remote host closed the connection]
subscope has joined #ruby
dbz has joined #ruby
<dbz> Hello
naftilos76 has joined #ruby
shoutsid has joined #ruby
<shevy> ?adaedra
<ruboto> don't be mean to adaedra
ericjphillips has quit [Quit: Leaving.]
Xeago has joined #ruby
<adaedra> In a general way, don't be mean to anyone.
prestorium has quit [Quit: Leaving]
simplyianm has quit [Remote host closed the connection]
mase-chatter has quit [Ping timeout: 246 seconds]
datanoise has quit [Client Quit]
datanoise has joined #ruby
Jackneill has joined #ruby
prestorium has joined #ruby
ericjphillips has joined #ruby
shoutsid has quit [Remote host closed the connection]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ericjphillips has quit [Client Quit]
Xeago has quit [Ping timeout: 250 seconds]
troulouliou_div2 has quit [Ping timeout: 260 seconds]
bryanray has joined #ruby
kalusn has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
jackjackdripper has joined #ruby
cyber_police has joined #ruby
cyber_police has quit [Changing host]
cyber_police was kicked from #ruby by ChanServ [Banned: troll]
cyber_police has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
greymeister has joined #ruby
shoutsid has joined #ruby
baroquebobcat has joined #ruby
grenierm has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
simplyianm has joined #ruby
<shevy> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
<shevy> this bot will one day hold all the knowledge in the world
sankaber has quit [Remote host closed the connection]
mattprelude has joined #ruby
sankaber has joined #ruby
barhum2013 has joined #ruby
AccordLTN has quit [Remote host closed the connection]
simplyianm has quit [Ping timeout: 264 seconds]
mistermo_ has quit [Remote host closed the connection]
AccordLTN has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
jackjackdripper has quit [Quit: Leaving.]
yeticry has joined #ruby
jackjackdripper has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
urbanmonk has quit [Quit: urbanmonk]
nfk|laptop has quit [Quit: yawn]
failshell has joined #ruby
failshell has quit [Client Quit]
chthon has quit [Quit: Leaving]
grenierm has quit [Ping timeout: 240 seconds]
finisherr has quit [Ping timeout: 246 seconds]
eminencehc has quit [Remote host closed the connection]
Igorshp has joined #ruby
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
f4cl3y has quit [Ping timeout: 246 seconds]
yairgo has joined #ruby
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Client Quit]
AccordLTN has quit [Ping timeout: 240 seconds]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
zotherstupidguy has joined #ruby
dikaio has joined #ruby
cwong_on_irc has quit [Remote host closed the connection]
jenrzzz has joined #ruby
chrisja has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
cwong_on_irc has joined #ruby
dbz has quit [Ping timeout: 246 seconds]
Igorshp has quit [Ping timeout: 268 seconds]
diegoviola has joined #ruby
Musashi007 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
AccordLTN has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
toretore has quit [Ping timeout: 255 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shmilan has joined #ruby
AccordLTN has quit [Remote host closed the connection]
marco_ has left #ruby ["Leaving"]
user1138 has joined #ruby
toretore has joined #ruby
n008f4g_ has joined #ruby
asui has joined #ruby
ruby-lang509 has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
jpfuentes2 has joined #ruby
Channel6 has joined #ruby
VeryBewitching has joined #ruby
jackjackdripper has quit [Client Quit]
dionysus69 has joined #ruby
mistermocha has joined #ruby
<ruby-lang509> r
AccordLTN has joined #ruby
<jhass> s
jamesaxl has joined #ruby
<ddv> t
momomomomo has joined #ruby
simplyianm has joined #ruby
fantazo has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ubuntu___ has joined #ruby
<ubuntu___> hi
<jhass> hi
mistermocha has quit [Ping timeout: 244 seconds]
<ubuntu___> Hi Mr jhass I an ur fann
<jhass> well, that was quick
<jhass> what did I do to earn that honor?
<ubuntu___> You are a great ruby developer I know ur git
mooe has joined #ruby
<ubuntu___> Ur reply is my onor
<ubuntu___> honor*
<pipework> all ur git r no to him
phutchins has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
<ubuntu___> I want to know ur age? 40 + and so ur very experienced?
moeabdol has quit [Ping timeout: 264 seconds]
acke has joined #ruby
darkf has quit [Quit: Leaving]
<ubuntu___> or just 30's and started very early
<ubuntu___> hello pipework
simplyianm has quit [Ping timeout: 246 seconds]
<ubuntu___> ruby === best proh=gramming but only few use it correct?
<ubuntu___> all use java and c++
SenpaiSilver has joined #ruby
swgillespie has joined #ruby
<ubuntu___> no reply ok then byee
jenrzzz has quit [Ping timeout: 268 seconds]
riotjones has joined #ruby
<jhass> a good programmer has patience
ruby-lang509 has quit [Ping timeout: 246 seconds]
<ubuntu___> but I am not even a programmer so i learn patience
<pipework> And a good coffee pot.
<ubuntu___> why coffee pot?
riotjones has quit [Read error: Connection reset by peer]
acke has quit [Remote host closed the connection]
<jhass> it helps with the patience
riotjones has joined #ruby
<ubuntu___> all programmer drink coffee?
<ubuntu___> I never drink coffee I just drink milk
acke has joined #ruby
<ubuntu___> cofee is bad to health
dstarh has joined #ruby
<ubuntu___> its kind of toxic right?
<A124> Anyone ever create some sort of own database? (I mean the thing that manages database itselt, not a schema) Wonder what to look for and how to implement certain stuff, how to save and load B-trees and all.
<jhass> everything is toxic in the wrong amount
<jhass> milk too
<A124> ubuntu___ Milk is bad too.
AccordLTN has quit [Remote host closed the connection]
atmosx has joined #ruby
Channel6 has quit [Quit: Leaving]
<A124> Its acidic for human body.
<ubuntu___> ok
<jhass> milk is fat, sugar and protein
<A124> I drink both, but limit as much as possible.
<jhass> too much of it is like fast food
<A124> And antibiotics, hormones, etc.
AccordLTN has joined #ruby
<A124> Trace elements mater. Because trace today is a lot.
<ubuntu___> ok and how many hours top level programmers slee[p they stay online whole nights??
<jhass> sounds like you believe in homoeopathics :P
<A124> Top level programmers enough to be fresh.
<ubuntu___> No I dont be;ieve in any homeopathics
<A124> Most 6-8h
<ubuntu___> A124: thats too much right
renier has joined #ruby
<A124> How clear your mind is is more important then time.
<ubuntu___> Ok
<A124> It makes up quadruple.
<ubuntu___> Ok
<jhass> generalizing such stuff is worthless, everybody is different
<pipework> ?ot much
<ruboto> much, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
platzhirsch has left #ruby [#ruby]
<ubuntu___> ok ruboto
shoutsid has quit [Remote host closed the connection]
<jhass> ?justabot
<ruboto> I'm just a bot. You don't need to address me.
<ubuntu___> wow
ReK2 has joined #ruby
ReK2 has joined #ruby
shoutsid has joined #ruby
n008f4g_ has quit [Ping timeout: 255 seconds]
bryanray has joined #ruby
barhum2013 has quit [Quit: barhum2013]
djbkd has quit [Remote host closed the connection]
barhum2013 has joined #ruby
Motoservo has quit [Read error: No route to host]
ddv has left #ruby ["Leaving"]
kristian_ has joined #ruby
<kristian_> hi
podman has quit [Quit: Connection closed for inactivity]
<jhass> tubbo: haha, yeah read that story
<kristian_> I'm on a fresh Linux Mint install ... I will be using jekyll and friends, but perhaps not much more
<kristian_> I just got ruby-full from repos
<jhass> tubbo: it gets ugly when they claim to be able to treat things like cancer
ddv has joined #ruby
fantazo has quit [Quit: Verlassend]
Motoservo has joined #ruby
devoldmx has joined #ruby
<kristian_> I'd like to be able to just install gems as a regular user
Lucky__ has joined #ruby
ramfjord has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
<pipework> kristian_: You can do that with setting some environment variables.
banister has joined #ruby
mistermocha has quit [Remote host closed the connection]
<kristian_> pipework: good
Macaveli has joined #ruby
mase-chatter has joined #ruby
<kristian_> should I get RVM?
<bougyman> for what?
<jhass> kristian_: echo "install: --user-install -n ~/.bin" > ~/.gemrc
<pipework> I'd go for ruby-install and chruby instead of RVM, but what yo uhave works.
<jhass> kristian_: most likely don't need RVM no, with ^ just add ~/.bin to your PATH then
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
hectortrope has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
mistermocha has joined #ruby
yairgo has left #ruby [#ruby]
<kristian_> jhass: should that do it?
devoldmx has quit [Ping timeout: 246 seconds]
justin_pdx has quit [Quit: justin_pdx]
<jhass> that'd be all, if that's what you mean
goldfish6744 has joined #ruby
<kristian_> it works
opensource_ninja has joined #ruby
<kristian_> seems like I should make a ~/.bin/ though :)
hectortrope has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
momomomomo has quit [Quit: momomomomo]
acke has quit [Remote host closed the connection]
simplyianm has joined #ruby
<kristian_> ah, it made itself ... amazing
<kristian_> thanks, jhass
<jhass> yw
momomomomo has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<shevy> tubbo the power of believe
<tubbo> jhass: that's just evolution man
<tubbo> natural selection
<jhass> dunno, defective animals don't tell other animals to die
<tubbo> jhass: false.
acke has joined #ruby
nfk has joined #ruby
<tubbo> i mean they don't tell anyone anything because they can't speak but what about that worm that implants itself into a grasshopper and makes the grasshopper drown itself?
<jhass> ... inside the same species
<shevy> you and your zombie worms
dionysus69 has quit [Ping timeout: 256 seconds]
<ishikawa91> call of duty black ops 267 nazi worm zombies :O
krisquigley has joined #ruby
clebrun has joined #ruby
sdothum has joined #ruby
Soda has quit [Remote host closed the connection]
<clebrun> what should I name a function that takes a product hash and a block, searches through the hash for strings and returns the a new product hash with mutated strings?
Helius has joined #ruby
karapetyan has quit [Remote host closed the connection]
Sembei has quit [Quit: WeeChat 1.4-dev]
<pipework> clebrun: Name it after what it's intention is, not what it does.
khebbie has quit [Ping timeout: 240 seconds]
Igorshp has joined #ruby
<clebrun> pipework: thanks for reminding me to kiss.
krisquigley has quit [Ping timeout: 252 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PaulCapestany has quit [Quit: .]
<clebrun> fix_product_strings it is...
<shevy> def cleanup
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jamto11 has joined #ruby
<pipework> clebrun: Are you actually mutating the instances of String or are you modifying the instances and returning new instances of String?
<clebrun> modifying and returning new, sorry. didn't make that clear
<pipework> If the prior, might wanna add a ! to the method so that people know something possibly confusing is going on.
<pipework> Ah good.
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
sepp2k has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
Pupeno has quit [Remote host closed the connection]
cdg has joined #ruby
michael_mbp has quit [Excess Flood]
eminencehc has joined #ruby
gusTester has quit [Quit: Leaving.]
PaulCapestany has joined #ruby
yfeldblum has joined #ruby
atmosx has quit [Quit: Lost in trance]
nettoweb has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
gusTester has joined #ruby
mattprelude has quit [Ping timeout: 268 seconds]
yeshacker has quit [Ping timeout: 255 seconds]
<shevy> "Agile is a hammer"
michael_mbp has joined #ruby
<shevy> "You are the nail"
eminencehc has quit [Ping timeout: 268 seconds]
<shevy> hmm
norc has joined #ruby
<shevy> some blogs are so violent
mordocai has joined #ruby
timonv has quit [Quit: WeeChat 1.3]
momomomomo_ has joined #ruby
asui has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
momomomomo has quit [Client Quit]
diegoaguilar has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
niemcu has joined #ruby
solars has quit [Ping timeout: 260 seconds]
meoblast001 has joined #ruby
<meoblast001> hi. if i get Net::SMTPFatalError (550 5.1.1 <my@email.address>... User unknown, is this more likely to be an issue with the email address or the SMTP server?
greymeister has left #ruby [#ruby]
<BraddPitt> its an SMTP server error, meoblast001
kristian_ has quit [Remote host closed the connection]
<meoblast001> ah okay. thanks :)
djbkd has joined #ruby
p0wn3d__ has quit [Ping timeout: 252 seconds]
<meoblast001> BraddPitt: but then it would be safe to assume the SMTP server is being reached?
<jhass> whether it's a configuration issue or not depends on how sure you are it exists
<jhass> or should exist
kristian_ has joined #ruby
<kristian_> hi again
<kristian_> it all works now, and I added the environment -- cool!
<jhass> meoblast001: it successfully connected, yes
<meoblast001> okay thanks. then i'll have to see why it's not reaching the email address
barhum2013 has quit [Quit: barhum2013]
<meoblast001> also in other things, long time no see jhass
<jhass> not on me
<jhass> but yeah, hi ;)
doddok has joined #ruby
<meoblast001> not on you?
<jhass> you stopped visiting, not me :P
<meoblast001> oh lol
barhum2013 has joined #ruby
salmon42 has joined #ruby
<meoblast001> okay it works.. the email address was actually screwed up.. but i should be catching this exception anyways
eminencehc has joined #ruby
bmurt has joined #ruby
adac has quit [Ping timeout: 250 seconds]
Pupeno has joined #ruby
Musashi007 has quit [Quit: Musashi007]
shmilan has quit [Quit: Leaving]
diegoaguilar has joined #ruby
Pupeno has quit [Remote host closed the connection]
shmilan has joined #ruby
doddok has quit [Quit: Leaving]
basiles has joined #ruby
kalusn has joined #ruby
ksteck has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
Helius has quit [Quit: Helius]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
<ELLIOTTCABLE> hi all.
<ELLIOTTCABLE> been out of the loop for a while:
ruurd has quit [Quit: ZZZzzz…]
<kristian_> when I install a gem, I get "WARNING: You don't have /home/kristian/.bin in your PATH gem executables will not run." ... but they seem to run fine?
<ELLIOTTCABLE> really hoping I'm not accidentally starting a flamewar, but: is rbenv still the go-to ruby-installation-manager?
<ELLIOTTCABLE> vs rvm, or, idk, a new one altogether
<adaedra> that's all matter of preference
<workmad3> I prefer chruby with ruby-install
<adaedra> me too
<shevy> source!
* jhass kicks shevy
<shevy> truth!
<ELLIOTTCABLE> one particular problem I had with rvm for the longest time, and am now happy to escape from:
<workmad3> shevy: ruby-install == source but without needing to remember the configure options :P
<ELLIOTTCABLE> ‘global’ packages; that is, ones I want installed in every single ruby, updated in every single ruby, etc; so no matter which ruby I'm working in, they're available system-wide.
<jhass> kristian_: what's the exact entry in echo $PATH ?
<ELLIOTTCABLE> i.e. when I install something like heroku-toolbelt globally, I don't want that command disappearing if I switch Rubies.
<ELLIOTTCABLE> does any of the options handle that well right now? :x
<jhass> nope
<workmad3> ELLIOTTCABLE: no... but if you're on a mac, you can install the `brew-gem` extension and have homebrew install them systemwide
<ELLIOTTCABLE> also! hi, shevy! :D
<workmad3> *on a mac and using homebrew
<ELLIOTTCABLE> workmad3: oooooh.
<ELLIOTTCABLE> workmad3: I'll look into that. That sounds perfect.
riotjone_ has joined #ruby
<shevy> hey ELLIOTTCABLE
Porfa has joined #ruby
<ELLIOTTCABLE> shevy: long time no see.
`based_pdev` has quit [Read error: Connection reset by peer]
<shevy> you abandoned ruby!
<workmad3> I had to hack foreman slightly with that, but otherwise it's been pretty good for systemwide ruby tools :)
<ELLIOTTCABLE> shevy: A little. >:
<ELLIOTTCABLE> I still love Ruby more than almost any other language, but I've been working on the same damn Omega Project for the last five years, and haven't really had much time for working on new side-projects in different fun languages.
<ELLIOTTCABLE> the languages-I'm-desperate-to-learn-asap list is *also* as long as my arm right now, and that will probably take precedence over coming back to Ruby, when I *do* start on new projects. /=
jgt has joined #ruby
basiles has quit [Ping timeout: 268 seconds]
<ELLIOTTCABLE> workmad3: do you *also* use chruby and/or rbenv?
<workmad3> ELLIOTTCABLE: yeah, I use chruby for version switching, and ruby-install for installing ruby
<ELLIOTTCABLE> i.e., it looks like brew-gem completely ignores/avoids those, and uses the system Ruby. does that work well?
<workmad3> for the stuff I want systemwide, it works well yeah
* ELLIOTTCABLE nods
<ELLIOTTCABLE> excellent. thanks.
<workmad3> ELLIOTTCABLE: apart from, as I said, a slight need to hack the foreman binscript (basically to stop it from trashing the chruby-set GEM_PATH and GEM_HOME env vars)
eminencehc has quit [Remote host closed the connection]
krisquigley has joined #ruby
riotjone_ has quit [Ping timeout: 264 seconds]
solocshaw has joined #ruby
chandlerbing has joined #ruby
<ELLIOTTCABLE> workmad3: did you fork it and submit those fixes? :P
<ELLIOTTCABLE> if not, wanna /msg me the specifics? :P :P
barhum2013 has quit [Quit: barhum2013]
kimegede has joined #ruby
jackjackdripper has joined #ruby
barhum2013 has joined #ruby
eminencehc has joined #ruby
<workmad3> ELLIOTTCABLE: I didn't, and sure :)
martin_work has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
zenguy_pc has joined #ruby
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
tier_ has joined #ruby
rakm_ has joined #ruby
<BraddPitt> how can I test a method that loops, expecting user input, until 'exit' is typed?
<kristian_> jhass: echo PATH just gives me "PATH"
slawrence00 has joined #ruby
<jhass> kristian_: $PATH
Jackneill has quit [Remote host closed the connection]
<kristian_> bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/kristian/tex/bin/x86_64-linux/:/home/kristian/.bin/: No such file or directory
<kristian_> ah
based_pdev has joined #ruby
spcmastertim has quit [Ping timeout: 244 seconds]
<jhass> mmh, dunno
bruno- has quit [Ping timeout: 268 seconds]
<jhass> maybe it chokes on the trailing /
<kristian_> yes
<kristian_> that's what I think, too
rakm has quit [Ping timeout: 260 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
chandlerbing has quit [Quit: I'm your father...]
tier has quit [Ping timeout: 272 seconds]
<baweaver> Dam?
pdoherty has quit [Ping timeout: 250 seconds]
kristian_ has quit [Remote host closed the connection]
ericjphillips has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
AccordLTN has quit [Ping timeout: 255 seconds]
Pupeno has joined #ruby
kristian_ has joined #ruby
<kristian_> hurm
CloCkWeRX has quit [Quit: Leaving.]
<kristian_> removed the /'s and reloaded, problem persists ... but now I know where the problem is
simplyianm has quit [Remote host closed the connection]
AccordLTN has joined #ruby
kalusn has quit [Remote host closed the connection]
ericjphillips has quit [Client Quit]
rakm has joined #ruby
wochie has joined #ruby
rakm_ has quit [Ping timeout: 268 seconds]
kalusn has joined #ruby
baweaver has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
jenrzzz has joined #ruby
ericjphillips has joined #ruby
<jhass> kristian_: yeah that part is not what I meant
<jhass> kristian_: my initial suggestion was echo $PATH, you did echo PATH and I corrected the PATH to $PATH
<kristian_> sorry
ekleog has quit [Ping timeout: 272 seconds]
<kristian_> I'm tired :)
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
XxionxX has joined #ruby
ericjphillips has quit [Client Quit]
Pupeno has quit [Remote host closed the connection]
<kristian_> I think the answer may be in my ~/.profile
barhum2013 has quit [Quit: barhum2013]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> well, is anything actually not working? else just ignore the warning
barhum2013 has joined #ruby
wedgwood has quit [K-Lined]
<kristian_> stuff seems to work okay
wochie has quit [Quit: Page closed]
ekleog has joined #ruby
ericjphillips has joined #ruby
ksteck has joined #ruby
ramfjord_ has joined #ruby
deol has quit [Quit: Textual IRC Client: www.textualapp.com]
mistermo_ has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
mistermo_ has quit [Read error: Connection reset by peer]
JDiPierro has quit [Remote host closed the connection]
mistermo_ has joined #ruby
ericjphillips has quit [Quit: Leaving.]
Igorshp has quit [Remote host closed the connection]
t0code has joined #ruby
<shevy> yay!
mistermocha has quit [Ping timeout: 240 seconds]
subscope has quit [Quit: Leaving]
pietr0_ has quit [Ping timeout: 256 seconds]
mistermo_ has quit [Remote host closed the connection]
<t0code> anyone got some time to help a noob on some basic code?
barhum2013 has quit [Quit: barhum2013]
<jhass> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
simplyianm has joined #ruby
__chris has quit [Ping timeout: 246 seconds]
tomphp has joined #ruby
mistermocha has joined #ruby
<t0code> just need corrections on syntax...do i post code here directly or link?
<shevy> paste it onto jhass!
<jhass> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
AccordLTN has quit [Remote host closed the connection]
skade has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
kimegede has quit [Quit: Linkinus - http://linkinus.com]
momomomomo has joined #ruby
AccordLTN has joined #ruby
spuk has joined #ruby
momomomomo has quit [Client Quit]
salmon42 has quit [Quit: salmon42]
michaeldeol has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<t0code> just trying to figure why its not accepting my arguments correctly. https://gist.github.com/anonymous/38f8bc5ae92503987247
niemcu has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
hooper has joined #ruby
hooper has quit [Max SendQ exceeded]
<shevy> if you change all_accounts to ALL_ACCOUNTS wherever it occurs, does your code work?
hooper has joined #ruby
hooper has quit [Max SendQ exceeded]
<jhass> shevy: no
<shevy> btw you can move things such as acct_input = gets.chomp into your class
<jhass> t0code: which method of your class gets called when you call .new?
hooper has joined #ruby
hooper has quit [Max SendQ exceeded]
<shevy> t0code yeah, use @acct_input rather than all_accounts
hooper has joined #ruby
hooper has quit [Max SendQ exceeded]
<t0code> well i assume it would move through the firstCheck method authomatically?
<jhass> t0code: why?
<t0code> because i called the class...
<shevy> t0code entry point for a class is at "def initialize", so you have to define it and pass through it
hooper has joined #ruby
Porfa has quit [Quit: Porfa]
<jhass> t0code: well, what tutorial are you following?
<t0code> just finished the codeacademy one on ruby and realized i didnt retain as much as i should have so just doing my own project and came here for help first...:p
<jhass> maybe redo the part about classes ...
Igorshp has joined #ruby
<jhass> because tbh. your assumption shows quite some lack on a rough idea of their purpose
<shevy> t0code add def initialize, in def initialize call that second method
<jhass> ?styleguide
<ruboto> I don't know anything about styleguide
<jhass> ?styleguides
lenwood has joined #ruby
gusTester has quit [Quit: Leaving.]
acke has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
Asher has quit [Quit: Leaving.]
syath has quit [Quit: WeeChat 1.2]
ldnunes has quit [Quit: Leaving]
<odigity> If I'm inside a module that's going to be included in a class Foo::Bar::Baz, is there an elegant way to extract the second segment of the namespace (Bar in this example)?
northfurr has joined #ruby
<jhass> mmh, I think self.class.name will have the full name, though it sounds like an ugly assumption that will add an unnecessary tight coupling
<BraddPitt> odigity Class.ancestors
<BraddPitt> will return an array of the ancestor chain
<jhass> BraddPitt: which has nothing to do with the namespace
<BraddPitt> oh right
<BraddPitt> modules
DoubleMalt has joined #ruby
<BraddPitt> derf
<jhass> odigity: so, why?
<odigity> jhass, I know it's tight coupling, but it's a temporary solution and is based on assumptions that hold true within my project for now. going to refactor it later
<BraddPitt> uh
<odigity> jhass, it's a long story
<BraddPitt> what about self.class.name.split("::")
Ox0dea has joined #ruby
<odigity> BraddPitt, I'm about to try: self.to_s.split('::')[1]
<jhass> BraddPitt: that's what I suggested ;)
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<Ox0dea> odigity: https://eval.in/449998
`tim` has joined #ruby
<jhass> no, don't realy on to_s
<BraddPitt> sorry jhass didn't read above
<jhass> Ü rely
<odigity> jhass, ok, then: self.class.name.split('::')[1]
<jhass> heh, how did I do that
<odigity> I mean, self.name, since self is the class
solocshaw has quit [Ping timeout: 240 seconds]
pignatovsky has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Agoldfish has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jgt has quit [Ping timeout: 252 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mooe has quit [Quit: Connection closed for inactivity]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pignatovsky has quit [Client Quit]
tomphp has joined #ruby
gusTester has joined #ruby
nateberkopec has quit [Quit: Leaving...]
wpp has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
XxionxX has quit [Quit: Leaving.]
riotjone_ has joined #ruby
caliostro has joined #ruby
kristian_ has quit [Quit: Leaving]
dmolina1 has joined #ruby
nnaztharue has quit [Quit: OuT!]
ngscheur1 has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
naztharune has quit [Remote host closed the connection]
scripore has joined #ruby
eminencehc has quit [Remote host closed the connection]
diegoaguilar has quit [Ping timeout: 246 seconds]
_wldcordeiro has joined #ruby
_wldcordeiro has quit [Client Quit]
_wldcordeiro has joined #ruby
riotjone_ has quit [Ping timeout: 255 seconds]
jdawgaz has joined #ruby
shoutsid has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 246 seconds]
<stannard> This just cost me 4 hours of my life: http://ruby-doc.org/stdlib-2.0.0/libdoc/mathn/rdoc/Fixnum.html
devoldmx has quit [Ping timeout: 265 seconds]
<stannard> idk why stdlib of all things is overriding methods of core classes
Motoservo has quit [Remote host closed the connection]
shoutsid has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
mistermocha has quit [Remote host closed the connection]
<jhass> hope you learned about Method#source_location in the process at least :P
Motoservo has joined #ruby
<jhass> but yeah, mathn is a weirdo
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
<eam> whaaaat is that
yfeldblum has joined #ruby
EllisTAA has joined #ruby
<jhass> haha, you never encountered mathn?
northfurr has quit [Quit: northfurr]
<eam> nope, and I don't think I want to
<eam> warn('lib/mathn.rb is deprecated') if $VERBOSE
<eam> heh
mistermocha has joined #ruby
EllisTAA has quit [Client Quit]
dmolina1 has quit [Quit: Leaving.]
mistermocha has quit [Remote host closed the connection]
EllisTAA has joined #ruby
dmolina has joined #ruby
dmolina has quit [Client Quit]
wpp has quit [Quit: ZZZzzz…]
northfurr has joined #ruby
NivenHuH has joined #ruby
mistermocha has joined #ruby
dmolina has joined #ruby
leafybasil has joined #ruby
<slash_nick> ... why not just adhere to the correct order of precedence?
eminencehc has joined #ruby
dmolina has quit [Read error: Connection reset by peer]
<slash_nick> parens, exponents, multiplication, division, addition, subtraction, no?... weird
bb010g has quit [Quit: Connection closed for inactivity]
nk8 has joined #ruby
nk8 has quit [Client Quit]
wpp has joined #ruby
caliostro has quit [Ping timeout: 268 seconds]
bruno- has quit [Ping timeout: 240 seconds]
Porfa has joined #ruby
diegoaguilar has joined #ruby
_wldcordeiro has quit [Quit: WeeChat 1.1.1]
_wldcordeiro has joined #ruby
davedev24 has joined #ruby
ReK2 has quit [Remote host closed the connection]
<clebrun> decided to go with map_product_strings
neanderslob has joined #ruby
<clebrun> I like that way better
tier_ has quit [Ping timeout: 260 seconds]
pietr0 has joined #ruby
yfeldblum has quit [Quit: Leaving...]
_wldcordeiro has quit [Client Quit]
eminencehc has quit [Remote host closed the connection]
<shevy> giving things names is one of the hardest thing there is in programming
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponio has quit [Quit: Leaving...]
Igorshp has quit [Remote host closed the connection]
yfeldblum has joined #ruby
martin_work has quit [Quit: martin_work]
Asher has joined #ruby
NivenHuH has quit [Quit: Textual IRC Client: www.textualapp.com]
yardenbar has quit [Ping timeout: 246 seconds]
<clebrun> Is there a better way to do that?
eminencehc has joined #ruby
Eiam_ has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<slash_nick> shevy: and most fun?
jamesaxl|2 has joined #ruby
<shevy> nah, names are overrated
<shevy> my favourite variable is still _ but it's not exactly a meaningful name now is it
allcentury has joined #ruby
prestorium has quit [Quit: Leaving]
hahuang65 has quit [Ping timeout: 240 seconds]
e1senhorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meoblast001 has quit [Quit: Leaving]
mistermo_ has joined #ruby
jessemcgilallen has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
jamesaxl has quit [Ping timeout: 246 seconds]
beauby has joined #ruby
northfurr has quit [Quit: northfurr]
caliostro has joined #ruby
p0wn3d__ has joined #ruby
jessemcgilallen has left #ruby [#ruby]
spuk has quit [Ping timeout: 240 seconds]
<caliostro> hi there!
<caliostro> what a fantastic language
mistermo_ has joined #ruby
norc has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
<jhass> hi
shinnya has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
kirun has quit [Quit: Client exiting]
_wldcordeiro has joined #ruby
polishdub has quit [Quit: Leaving]
zcreative has joined #ruby
zcreative has quit [Remote host closed the connection]
jessemcgilallen has joined #ruby
zcreative has joined #ruby
zcreative_ has joined #ruby
tynamite has joined #ruby
Azure has joined #ruby
tynamite is now known as Guest13389
Guest13389 has left #ruby [#ruby]
_wldcordeiro has quit [Client Quit]
arthurix_ has joined #ruby
northfurr has joined #ruby
victortyau has quit [Quit: Leaving]
_wldcordeiro has joined #ruby
mistermo_ has quit [Remote host closed the connection]
MeMoc has joined #ruby
<hal_9000> who here was at rubyconf in 2008?
zcreative__ has joined #ruby
zcreative has quit [Ping timeout: 260 seconds]
zcreative_ has quit [Ping timeout: 240 seconds]
arthurix has quit [Ping timeout: 255 seconds]
martin_work has joined #ruby
northfurr has quit [Client Quit]
Coldblackice has joined #ruby
mistermocha has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
kristian_ has joined #ruby
zcreative__ has quit [Ping timeout: 250 seconds]
<kristian_> I get this error: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require': cannot load such file -- jekyll-last-modified-at (LoadError) -- is it a jekyll thing or ruby?
lenwood has quit [Ping timeout: 256 seconds]
<jhass> https://rubygems.org/gems/jekyll-last-modified-at appears to be a gem, did you install it?
zcreative has joined #ruby
<shevy> kristian_ this means you have not installed this gem
<kristian_> ah
zcreative_ has joined #ruby
zcreative_ has quit [Remote host closed the connection]
zcreative_ has joined #ruby
zcreative_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
<kristian_> the name was so weird I thought it was something else
jenrzzz has joined #ruby
trajing has quit [Ping timeout: 256 seconds]
sagax has quit [Quit: Leaving]
Cyther has joined #ruby
<shevy> <shevy> giving things names is one of the hardest thing there is in programming
trajing has joined #ruby
<shevy> I assume the author wanted some jekyll addon
<kristian_> yes
_aeris_ has quit [Ping timeout: 250 seconds]
<kristian_> I'm not dissing anyone :)
<shevy> there are countless gems containing "jekyll" as part of their name :\ https://rubygems.org/search?utf8=%E2%9C%93&query=jekyll
noethics has joined #ruby
_aeris_ has joined #ruby
sankaber has quit [Remote host closed the connection]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
stannard has quit [Remote host closed the connection]
zcreative_ has joined #ruby
cantaberry has quit [Ping timeout: 260 seconds]
icarus has joined #ruby
gusTester has left #ruby [#ruby]
murder_guido has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
sankaber has joined #ruby
djcp has quit [Ping timeout: 250 seconds]
<platzhirsch> hyde
simplyianm has quit [Remote host closed the connection]
zcreative has quit [Ping timeout: 240 seconds]
<shevy> hidehirsch
<shevy> dr. jekyll and mr. hyde - good cop, bad cop
<shevy> I don't even know what jekyll is
jenrzzz has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
symm-_ has quit [Quit: Leaving...]
acke has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
platzhirsch has left #ruby [#ruby]
firstdayonthejob has joined #ruby
gregoriokusowski has joined #ruby
last_staff has quit [Quit: last_staff]
cornerma1 has joined #ruby
northfurr has joined #ruby
acke has quit [Ping timeout: 240 seconds]
<pipework> shevy: How are you so often completely oblivious to the rubygems ecosystem?
kies^ has quit [Ping timeout: 264 seconds]
<pipework> I bet shevy's google search history is like, 20 searches, max.
<BraddPitt> ahahaha
Azure has joined #ruby
XxionxX has joined #ruby
imperator has quit [Quit: Leaving]
zenguy_pc has quit [Ping timeout: 244 seconds]
batu has quit [Quit: Leaving]
cornerman has quit [Ping timeout: 268 seconds]
cornerma1 is now known as cornerman
simplyianm has joined #ruby
caliostro has quit [Read error: Connection reset by peer]
<adaedra> Too busy doing static builds of his ruby.
hinbody has quit [Quit: leaving]
<jhass> shevy is the kind of person that would stick to fortran unless forced to learn something else ;)
<pipework> And even then, wouldn't use anything resembling a library.
nateberkopec has joined #ruby
<shevy> pipework I dunno, I usually look at gems that seem really useful to me, such as kramdown or coderay
Eiam_ has joined #ruby
<pipework> shevy: You should subscribe to rubyweekly.
<shevy> jhass nah, fortran has awful syntax
<pipework> Expose yourself to more tools that might be useful.
<shevy> pipework I can't keep up with mailing list!
<pipework> But ultimately it'll just waste your time.
<pipework> shevy: It's a newsletter not a mailing list, per se.
<BraddPitt> is there a comprehensive tutorial or documentation for the curses gem?
<shevy> I am already watching cat videos on youtube
<pipework> Read what you want or don't.
<BraddPitt> https://github.com/ruby/curses shows literally no info and has no wiki :(
<shevy> newsletter, mailing list, same thing! I grew up in the phpBB era!
senayar has joined #ruby
<pipework> BraddPitt: Curses upon the ruby curses library!
riotjone_ has joined #ruby
user1138_ has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
<shevy> BraddPitt I guess they were just happy to get rid of it
riotjone_ has quit [Read error: Connection reset by peer]
<shevy> it would be ironic if the github wiki would have more information than the old stdlib for curses had
riotjone_ has joined #ruby
<pipework> shevy: would it really be irony?
<shevy> does anyone here still use curses?
<shevy> pipework yeah
<shevy> because it would mean that github works better for documenting stuff... but I actually don't like the github wiki, it feels so clunky
<pipework> shevy: I don't think there will be any intentional use of the opposite of what was intended.
<BraddPitt> or cna anyone recommend a good wrapping lib for curses?
<pipework> Amusing, but not ironic.
tomphp has quit [Read error: Connection reset by peer]
<pipework> BraddPitt: I've looked for a number of them and found a number of them but haven't found anything that stands out and away from the rest.
<diegoviola> what's the equivalent of for i in range() in ruby?
tomphp has joined #ruby
<BraddPitt> kind of my experience pipework
<pipework> diegoviola: diegoviola Enumerable with a Range object
<BraddPitt> maybe i just wont use curses and do my own repl type thing
user1138 has quit [Ping timeout: 246 seconds]
neanderslob has quit [Read error: Connection reset by peer]
<pipework> Look at #up_to as well.
<shevy> go use curses, it's like the ultimate bootcamp, then you know why this name was picked
<shevy> did I already mention that naming stuff is hard?
<acidrainfall> Bahahaha
dreinull75 has left #ruby ["undefined"]
davedev24 has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
<BraddPitt> i hear curses is pretty fucking irritating to use
davedev24 has joined #ruby
<acidrainfall> That would be an understatement
<shevy> try to code a dungeonhack clone in ruby-curses
weemsledeux has joined #ruby
prefixed has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
riotjone_ has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
duderonomy has quit [Max SendQ exceeded]
neanderslob has joined #ruby
<BraddPitt> ok yeah fuck it
<BraddPitt> i won't die if my terminal application scrolls
<BraddPitt> instead of redrawing
balazs has quit [Ping timeout: 265 seconds]
mordocai has quit [Remote host closed the connection]
s00pcan has quit [Quit: leaving]
lenwood has joined #ruby
weemsledeux has quit [Client Quit]
<adaedra> There are better ways than plain curses
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
<pipework> adaedra: What complete and useful alternatives are there?
<diegoviola> ty
weemsledeux has joined #ruby
<adaedra> I don't know them exactly, sorry
<pipework> lul
<shevy> lol
axl_ has quit [Quit: axl_]
bruno- has joined #ruby
p0wn3d__ has quit [Ping timeout: 252 seconds]
rakm has left #ruby ["Textual IRC Client: www.textualapp.com"]
<adaedra> Been some time since I played with terminals last
DEA7TH has quit [Quit: DEA7TH]
zenguy_pc has joined #ruby
rgtk has joined #ruby
duderonomy has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
duderonomy has quit [Max SendQ exceeded]
sgambino has joined #ruby
diegoaguilar has quit [Ping timeout: 264 seconds]
bruno- has quit [Ping timeout: 264 seconds]
wpp has quit [Quit: ZZZzzz…]
sgambino has quit [Client Quit]
kalusn has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
p0wn3d__ has joined #ruby
akkad has quit [Excess Flood]
Igorshp has joined #ruby
kalusn has joined #ruby
<jhass> diegoviola: or simply Fixnum#upto / Fixnum#downto
<jhass> or possibly even #times
<pipework> Didn't I say look up #upto?
beauby has quit [Read error: Connection reset by peer]
<pipework> I dumbed and said up_to
akkad has joined #ruby
arthurix has joined #ruby
<shevy> yeah, your brain corrected a typo it thought to exist
gambl0re has joined #ruby
murder_guido has quit [Ping timeout: 252 seconds]
ghq has joined #ruby
<ghq> Are all blocks in Ruby passed to methods as proc objects?
<kristian_> shevy: jekyll is good fun if you want to make a website
<shevy> hmm
zcreative_ has quit [Quit: (null)]
platzhirsch has left #ruby [#ruby]
user1138__ has joined #ruby
<workmad3> ghq: depends on if you look at them or not (if you're talking about implementation specifics)
Steve_Jobs has quit [Remote host closed the connection]
Steve_Jobs has joined #ruby
arthurix_ has quit [Ping timeout: 250 seconds]
vdamewood has quit [Quit: Life beckons.]
<ghq> I just don't understand '&' in method defs and calls.
chopin_ has joined #ruby
beauby has joined #ruby
user1138_ has quit [Ping timeout: 246 seconds]
<adaedra> in method def, it tags an argument to explicitely receive the block
<workmad3> ghq: in a def, it captures the block arg into a parameter (which also means a proc object is created). In a method call, it calls `to_proc` on the thing you prefix with `&` and passes the result to the method as the block arg
barhum2013 has joined #ruby
umgrosscol has quit [Remote host closed the connection]
<ghq> workmad3: Does this mean blocks are just procs?
SCHAAP137 has quit [Quit: Leaving]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chopin has quit [Ping timeout: 264 seconds]
Igorshp has quit [Remote host closed the connection]
<pipework> ghq: Not really, but they can become procs.
<workmad3> ghq: implementation-wise, no, blocks and procs are separate things... within ruby, it's a distinction that can lack semantic meaning, because in all useful ways (and whenever you have a 'block' to play with) a block is a proc
vF3hNGxc47h8 has joined #ruby
<ghq> workmad3: So inside a method call the '&' converts a proc to a block and inside a method definition it's vice versa?
bryanray has joined #ruby
<workmad3> ghq: other way around
Igorshp has joined #ruby
<workmad3> oh wait, no... sorry
<workmad3> it's late for me, and I personally just tend to think of 'procs' most of the time, not 'procs and blocks' :)
shoutsid06 has joined #ruby
shoutsid has quit [Ping timeout: 255 seconds]
mistermo_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
p0wn3d__ has quit [Ping timeout: 268 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
<diegoviola> how can I do string arithmetic like print((n - m - 1) * ' ' + (m + 1) * '#')
mistermocha has quit [Ping timeout: 244 seconds]
<diegoviola> ruby complains that a string can't be coerned into a fixnum
<bnagy> >> n=4;m=1; ' ' * (n-m-1)
<ruboto> bnagy # => " " (https://eval.in/450062)
lenwood has quit [Ping timeout: 256 seconds]
<bnagy> operator inference is from LHS
<bnagy> because they're actually methods
<diegoviola> LHS?
<bnagy> left hand side
dnewkerk has joined #ruby
dorei has quit []
<diegoviola> not sure what that is
<workmad3> diegoviola: it means that `' ' * 10` works, but `10 * ' '` is a type error
<bnagy> the meaning of '*' is inferred from what's on the left, not what's on the right
<diegoviola> ah, thanks
dionysus69 has quit [Ping timeout: 255 seconds]
jamto11 has quit [Remote host closed the connection]
<bnagy> because '*' is actually a method, so it's like ' '.send :*, operand
twistedpixels has quit [Ping timeout: 244 seconds]
ghq has left #ruby [#ruby]
<diegoviola> yes, sometimes I forget about that
<diegoviola> ty
jamto11 has joined #ruby
jamto11 has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 268 seconds]
<bnagy> np
CloCkWeRX has joined #ruby
twistedpixels has joined #ruby
_blizzy_ has joined #ruby
dorei has joined #ruby
polycaster has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polycaster has joined #ruby
diegoaguilar has quit [Ping timeout: 265 seconds]
deepu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
_blizzy_ has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
polycaster has quit [Ping timeout: 264 seconds]
step1step2 has joined #ruby
<step1step2> Anyone know how to fix this? https://gist.github.com/step1step2/b7bf8a9d099fcd611376
mistermocha has joined #ruby
acke has joined #ruby
_blizzy_ has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 250 seconds]
<step1step2> jhass: <3
Spami has joined #ruby
joneshf-laptop has quit [Ping timeout: 240 seconds]
acke has quit [Ping timeout: 255 seconds]
Balzrael has quit [Quit: Leaving]
<diegoviola> is there another way to do this
<diegoviola> I'm getting an ArgumentError for some reason
<diegoviola> foo.rb:5:in `*': negative argument (ArgumentError)
EllisTAA has left #ruby [#ruby]
mikecmpbll has quit [Quit: i've nodded off.]
<diegoviola> not sure why
weemsledeux has joined #ruby
<diegoviola> I mean I don't understand the error
<shevy> haha
<shevy> negative arguments
<shevy> what are you doing
<workmad3> diegoviola: means that your calculation is coming out as negative
<dnewkerk> Trying to understand something more fully. When I initialize a variable in my class as an instance variable (say, @foo = ‘bar’), I can read the value from an instance of the object like myobject.foo (returns ‘bar’). Does ruby automatically set up attr_reader for my instance variable?
northfurr has quit [Quit: northfurr]
<bnagy> >> ' ' * -1
<ruboto> bnagy # => negative argument (ArgumentError) ...check link for more (https://eval.in/450077)
<diegoviola> workmad3: so like -4?
<workmad3> dnewkerk: no
<jhass> ('#'*(m+1)).rjust(n)
joneshf-laptop has joined #ruby
<bnagy> negative one spaces names no sense
* bnagy eyes fingers
<bnagy> makes
solocshaw has joined #ruby
BSaboia has quit [Ping timeout: 265 seconds]
diegoaguilar has joined #ruby
<diegoviola> thanks
<bnagy> dnewkerk: no
serialaxel has joined #ruby
<bnagy> dnewkerk: attr_reader is basically shortcut for defining def foo; @foo; end in your class
<jhass> diegoviola: also 1.upto can probably save the +1
eminencehc has joined #ruby
HammyJammy has quit [Read error: Connection reset by peer]
_wldcordeiro has quit [Ping timeout: 255 seconds]
<diegoviola> jhass: what do you mean?
senayar has quit [Remote host closed the connection]
<jhass> I wonder if you thought about what I said...
<bnagy> dnewkerk: you can't access via a method like that without doing anything, so if that's what you think you're seeing then there's some missing information
<jhass> 1.upto(n) { puts ('#'*m).rjust(n) }
<diegoviola> jhass: yes I did, still doesn't make sense
<diegoviola> jhass: oh
<diegoviola> jhass: that makes sense
`tim` has joined #ruby
<jhass> n += 1 if you really need to print one more than entered for n
shmilan has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
northfurr has joined #ruby
<jhass> which I kinda doubt
<dnewkerk> bnagy: thanks, just before you posted that I decided to exit my IRB session and retype my test code, and it gave the expected result that time. Not sure why it was behaving that way before (had me very confused)
twistedpixels has quit [Ping timeout: 264 seconds]
<bnagy> you might have used the same class name, for example
devoldmx has joined #ruby
<bnagy> in which case you might have been extending an existing class
riotjone_ has joined #ruby
<dnewkerk> bnagy: yeah must be what happened, I assumed I was overwriting it when I pasted different iterations of it into IRB to test
twistedpixels has joined #ruby
<bnagy> two-for-one mystery solutions. Boom.
Igorshp has quit [Remote host closed the connection]
twistedpixels has quit [Max SendQ exceeded]
JammyHammy has joined #ruby
[k- has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
blackmesa has quit [Quit: WeeChat 1.3]
eminencehc has quit [Remote host closed the connection]
jdawgaz has joined #ruby
<diegoviola> jhass: this works, thanks: https://gist.github.com/02ebc541f0ab63f854a4
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
riotjone_ has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
agent_white has quit [Quit: bbl]
arthurix_ has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
serialaxel has quit [Remote host closed the connection]
Jardayn has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
jenrzzz has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dnewkerk> I see in many code examples attr_reader defined for the same instance variables being setup in an initialize method, like attr_reader :items ; def initialize @items = items ; end. However the variables tend to be used only inside the class’s own instance methods, but called items instead of @items. Is there any reason for this other than wanting to remove the @ when using the variable? The intent of using attr_reader in the
arthurix has quit [Ping timeout: 264 seconds]
<dnewkerk> examples doesn’t usually seem to be to read the value from an instance of the class, but rather just internal methods
<drbrain> dnewkerk: some people don't like to type @
<drbrain> I don't mind typing @
<dnewkerk> :)
bryanray has joined #ruby
rcvalle has quit [Quit: rcvalle]
<drbrain> the advantage of using attr_accessor is that you may decide to replace the instance variable at some point with a method
<drbrain> … such as replacing attr_accessor :items with def items; …; end and def items= things; …; end
<dnewkerk> ah good point
twistedpixels has joined #ruby
<drbrain> so using the accessor methods means reduced churn
* pipework loves attr_* for all readers and writers, public or private.
<pipework> Whale, trivial ones, obviously.
Agoldfish has quit [Quit: G'Bye]
Ropeney has joined #ruby
bryanray has quit [Client Quit]
Guest123456666 has joined #ruby
<dnewkerk> cool that’s the understanding I was after :D thanks!
duderonomy has joined #ruby
naztharune has joined #ruby
serialaxel has joined #ruby
bmurt has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
simplyianm has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
eminencehc has joined #ruby
maikowblue has joined #ruby
serialaxel has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 268 seconds]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
renderfu_ has quit [Remote host closed the connection]
Igorshp has joined #ruby
mistermocha has quit [Remote host closed the connection]
umgrosscol has joined #ruby
senayar has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Thomas-0725 has joined #ruby
Bellthoven has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
nym has joined #ruby
ledestin has joined #ruby
baweaver has joined #ruby
momomomomo has joined #ruby