testing equality
You know, they say Ruby is a great language for testers, and I am finding this to be true. Earlier today I was able to test the state of reality itself using Ruby, and now I have devised a test for equality.
First, let’s examine equality:
def equality(x=0, y=0)
tellxy = ” ( x = ” +x.to_s [...]
Reality check
Here is a bit of Ruby that everyone needs in their library.
def check_reality( x=0, y=0 )
if x == y && x != y
puts “The world has ended. You no longer exist.”
else
puts “Everything appears to be in order.”
end
end
If you ever feel mystified or sense that things [...]
Financial sophistication survey
The results of our annual SYHOF Financial Sophistication Survey 2008 are now available. We surveyed 1,000,000 US young adults age 18 - 35, asking basic questions about finance and financial vocabulary. Here are some sample questions and answers:
Q: In reference to financial products, what does the term “CD” signify?
Most common answer: “Thats how [...]
Bioelectric conductivity in lemon wood
As some of you may know I dabble in chemistry and physics in my garage, doing anything from making soap to salvaging magnatrons for smelting iron. My latest experiment did not have the effect I expected.
Here is a synopsis. Using a wood selected for no other purpose than its availability, I decided to impregnate the [...]
What an interesting day
Today has been very invigorating. At 5AM this morning, I found an email from Secretia. She said the multi-level marketing was not working out, and she wants her job back as a blog secretary. I gloated. But, after she also called me I gave in and now I have three blog secretaries (at the [...]
For those who are still ‘hanging’
I thought I would post a few updates on goings-on. After this I will post a serious post for my biz & insurance readers. Here is what I look like with a goatee:
Now that that is out of the way, let me explain. Recall that I decided not to shave during most of December… [...]
Global Warming Hits Tampa
Many scientists agree that global warming is caused by CO2 emissions from child-exploiting factories owned by heartless tycoons. Methane emitted by middle-managers may also contribute. Unfortunately, these facts are hard to prove; one anonymous source conceded that hell will freeze over before there is proof that global warming is the result of human intervention.
The [...]
I couldn’t help myself
Available at Perpetual Kid.
keep looking »