<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]
<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.
<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]
<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]
<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.
<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]
<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]
<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]
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/
<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_>
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.
<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?
<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
<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
<[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
<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
<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
<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>
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…]
<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!
<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)
<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
<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
<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]
<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
<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
<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]
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
<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.
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]
<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]
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?
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]
<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
<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)]
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?
<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
<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]
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…]