-
Recent Posts
Top Posts & Pages
Tags
- Follow Code for Hire on WordPress.com
Author Archives: Sampo J.
When to hard-code
Hard-coding is generally considered an anti-pattern and abhorred by experienced developers. Input and configuration data should be externalized from the code, or at the very least parametrized to a language constant. While working at Wellmo, I’ve come to reconsider this … Continue reading
Backup KeePass2 database on Linux
There are several instructions on how to use the KeePass2 trigger mechanism to create a backup of your password database when saving the database. However, all of the instructions I found were for Windows. It took a bit of figuring … Continue reading
Hybrid app testing using dynamic DNS
Hybrid apps simplify implementing cross-platform mobile applications in many ways. You only need to write the HTML once, and it should work on all platforms. However, you still need to test those platforms. At Wellmo, we do most of our … Continue reading
Using Spark with MongoDB
I recently started investigating Apache Spark as a framework for data mining. Spark builds upon Apache Hadoop, and allows a multitude of operations more than map-reduce. It also supports streaming data with iterative algorithms. Since Spark builds upon Hadoop and … Continue reading
CoffeeScript woes
I recently wrote a piece comparing CoffeeScript, TypeScript and Dart. For the UI component of Wellmo, we decided upon using CoffeeScript. While this has been a great leap from JavaScript, we’ve had our share of setbacks. Here’s a few issues … Continue reading
Modifying the pace of audiobooks
I’ve recently started listening to audiobooks. They’re a convenient way to enjoy books on your way to work or while driving. After listening to Mika Waltari’s The Egyptian, I took on The Hunger Games, read by Carolyn McCormick. Like many … Continue reading
Testing visual appearance with Cucumber + Watir
One of the great things about Cucumber and Watir is that it allows you to write functional tests that are decoupled of the UI. By using page objects, the definition of how the UI works is decoupled from the tests … Continue reading
Posted in CSS, Cucumber, Testing, Watir-Webdriver, Web
Tagged css, cucumber, watir-webdriver
Leave a comment
Testing time-dependent features in JavaScript
Many applications use the current time in their functionality. For example, they can show data for a certain period of time or show the current date within the application. Writing functional tests for such applications can be tedious. How do … Continue reading
Simple image devignetting
With the prevalence of smart phone cameras today, they are often used instead of scanners as quick digitization methods for documents. Unfortunately this leads to excessive vignetting (darkened areas at the edges), which makes it hard to print the document … Continue reading