about security
i just called vodafon because my internet password was not working anymore. before sending a new password by SMS the operator did ask me for my secret phone password, so i told her. But she did actually not check it at all! How can i know? Because anytime i give my phone password, i have to spell it, the usual spelling differs from my password. Nice trick, just ask for a password to check peoples reaction to the question. secure, hu?
fetisch phone
i must a admit, this would be the right follow-up to my aging T610: Sony Ericsson Black Diamond

lazy unit testing
inspired by lazy-migrations-table-drop i thought this works for collecting unit tests as well. Decide on a pattern for unit test files(t_.rb for me) and put this code in something like AllTest.rb and it will execute all units test in the current directory.
require ‘test/unit’
glob = ARGV[0] && “t_#{ARGV[0]}.rb” || “t_.rb”
dir = File.dirname __FILE__
puts “==> running all unit test in: #{dir}”
Dir.glob(“#{dir}/#{glob}”).each do |file|
testname = File.basename(file, “.rb”)
puts “== next: #{testname}”
require testname
end
Technorati Tags: ruby, coding