Nifty Ruby Trick #38
Found this in one of the example camping.rb apps:
puts File.read(__FILE__).gsub(/.*__END__/m, '')
# code goes here
__END__
/* css here in this example */
Nifty!
Found this in one of the example camping.rb apps:
puts File.read(__FILE__).gsub(/.*__END__/m, '')
# code goes here
__END__
/* css here in this example */
That's right. And it occurred to me today when an image popped into my head. You know the one I'm talking about. The ubiquitous reality-TV-show-confidential shot with the person's hat or t-shirt obscured because it says Nike or Coke or something of the sort.
That logo has rights. It has the right to be obscured and blurred out of a photo. But what about you? Nope. Someone can snap a photo of you, me or a homeless man and then sell it to Time for their cover. All without giving you the time of day.
The solution? Copyright your likeness!