Quick Introduction to Mock
Mock is a powerful library for facilitating testing. It allows users to replace components of your application with powerful mock objects at testing runtime. These objects can then be used to make observations about call patterns and to assert which methods of the object were accessed, the number of times a method is called, and with what parameters the method was called. Additionally, you can specify return values and raise exceptions from these mock calls to test your application under certain situations. Mock objects can also be used to replace entire objects with lightweight objects to ...
Updated 12/11/14 @ 04:07PM CST by djohnson
Categories: Testing1 Comments
This week, Google announced a radically new way of handling human detection with a revamped reCAPTCHA. This new iteration, called No CAPTCHA reCAPTCHA replaces the hard-to-read distorted text image transcription with a simple checkbox.
We've never been big fans of CAPTCHA technology. It transfers the burdeon of proof from the server to the end user. It adds another field - often cryptic and frustration - to the form conversion funnel. Unfortunately, it has been the most reliable way to parse out human input and drown out the form spam noise.
Now, through Google wizardry, all a user needs to do is ...
Updated 12/10/14 @ 12:12PM CST by brian
Categories: System-level Tools3 Comments
The Rock and Roll Hall of Fame recently announced their 2015 nominees. At the same time, they opened up a Fan Voting application so that music fans across the world could make their selections known.
Rock Hall approached Imaginary a couple weeks prior and asked if we could design an app to handle the fan vote (in previous years, it was outsourced).
When asked how many votes they received last year, they said "two million." And, although the voting is open for several weeks, the distribution was more like "one million votes in the first week and one ...
Updated 10/21/14 @ 11:16AM CDT by brian0 Comments
In Part 1 of this article, we discussed our choice of typical server stack and the general packages that we find useful upon an initial installation. Part 2 will focus on setting up the site environment and configuring the system services. As mentioned before, at Imaginary, this setup process is normally automated via the Saltstack provisioner. However, for the purposes of this article, we will walk through the steps individually. This article assumes that you have read Part 1 previously.
In order to make the OS usable to our System Administrators, we need to set up the system ...
Updated 09/23/14 @ 11:49AM CDT by jjasinski4 Comments
A core challenge of setting up a Django project is creating a production-worthy server environment and project setup. At Imaginary Landscape, we've put a lot of thought into how to accomplish this task in an intuitive and flexible way.
The goal of this article is to detail the default setup process that we use for a single-server site. We will cover the process of provisioning a server, configuring a virtual environment, and setting up a Django project. Each site that we create comes with very unique requirements, but this article will detail our default provisioning approach.
Please note that ...
Updated 09/03/14 @ 04:43PM CDT by jjasinski3 Comments
Page 1 of 11