Not discussing the recently uncovered privacy issues with Apple’s mobile phones, one impressive feature of an iPhone is that if you’re a MobileMe user, you can use the MobileMe service to track down your stolen iPhone using the GPS and connectivity integrated in the iPhone. If only something like this existed for cameras. I have never lost a camera to theft or otherwise – yet. Nevertheless, I stumbled across a new service online that may help you retrieve your lost camera – given someone else is bold enough to use it and post pictures taken with it on the Internet.
Pages
Categories
- General (2)
- Photography (15)
- UNIX (1)
- Travel (1)
- Software Development (4)
- Software (2)
Archives
- December 2011 (1)
- November 2011 (1)
- September 2011 (1)
- August 2011 (2)
- July 2011 (1)
- June 2011 (1)
- May 2011 (2)
- April 2011 (2)
- November 2010 (1)
- September 2010 (1)
- August 2010 (1)
- July 2010 (2)
Tags
Syndicate
Java Pattern: try things repeatedly until reaching a timeout
Nondeterministic tests are a common problem in test setups, especially with integration tests. For example, imagine you are doing an integration test of two components that exchange messages where receiving a message in one of the systems changes its internal state which you want to verify. However, the message exchange can be delayed due to external factors (network latency, load etc.). When running tests (for example using the excellent Cucumber framework), testing steps are usually run sequentially. It may happen that the tested system is lagging behind the testing steps, failing your test in some (but not all) cases. You need to make your tests more tolerant for these situations. Often, that means retrying for a couple of times.
Java, arrays, autoboxing and Arrays.asList
Yesterday, I had some fun with Java again. Since Java 1.5 it has become so natural to mix primitive datatypes with their object based counter parts as Java boxes and unboxes expressions as necessary without the need to make any explicit casts – or so I thought.
Using the MySQL encrypt function in Ruby
If you’re dealing with a legacy MySQL database schema where your users’ passwords are encrypted using MySQL’s encrypt function within your schema and you want to create new records like that using Ruby rather than calling the MySQL function, you can easily do that with Ruby. Ruby supplies a crypt function that does just what the MySQL encrypt function provides. Both implementations use the UNIX C function crypt(3) so you can replace the use of one with another.