Thinking » Tags » Advanced Programming


The Dice News Network blog had a slated launch date of April 1st, and Oomph was charged with the task of preparing a theme for WordPress VIP as well as performing a data migration with under a week to accomplish these tasks. After an initial consultation on Friday, Oomph started work on this seemingly insurmountable task, and was able to get the site polished and ready for launch on time. Our client was thrilled and had the following to say:

I am very happy with [Wordpress VIP's] recommendation of Oomph. This week, they did what all consultancies should but rarely do: under-promise and over-deliver. Our launch is clearly due to their skill and willingness to work the problem until it’s resolved.

Just another example of the hard work we do at Oomph to ensure that our clients meet their deadlines.

Allen Waldrop

.Net Float vs MS SQL Float

While working on some custom tracking software, I ran into a very peculiar issue when storing some floating point values in a Microsoft SQL database. Specifically, I noticed I was getting weird rounding applied to my input. This only happened when there were more than two digits after the decimal point; for instance, 1.005 would become 1.004853184548342. The column in MS SQL was a float, and I was using a float before sending it through the ADO.Net pipeline.

continue reading

WordPressEver since WordPress 2.5 was released, we’ve been pushing the boundaries of WordPress as a comprehensive CMS.

WordPress offers a wealth of plug-ins that extend the limitations of its reasonably light core; we’ve even contribued a couple of our own back to the community. But if you like to make slim, fast websites – like we do – you know that sometimes the plug-ins, and their overhead, are overkill.

Here are five power tips for template developers that address common CMS implementation challenges with solutions that are not well documented or not entirely intuitive. Please note that all of the code here was written for and tested with the latest version of WordPress (2.7.1). Some of the functions may not be compatible with older versions, or may require some initialization (i.e. global $post).

continue reading

PayPal .NET 2.0The sample API code provided by PayPal has not been updated in some time. When it comes to recent versions of Microsoft’s .NET platform, not only is PayPal missing some DLLs needed to use it ‘out of the box’, the sample functions are actually wrong!

We discovered the problem while working on a custom built .NET web application for the Council of Public Relations Firms that includes integrated eCommerce. Thankfully, with some sleuthing and tinkering, we were able to update the necessary DLLs and correct the functions.

continue reading

Although there’s a lack of good documentation, adding a function that takes parameters (i.e. Function_Name(Parameter)) to one of JavaScript’s standard ‘On’ events (i.e. ‘OnClick‘ or ‘onKeyDown‘) is relatively simple for JavaScript coders. Advanced programmers might refer to this as dynamic runtime event assignment with functions using parameters passed.

Confused? Here’s a practical example.

Let’s say we have a text area field on a web page, and we want to execute some function every time they make a keystroke inside that field. In our real world example, we wanted to count the number of characters, so we could let the user know how close they were to the limit, and warn them when they exceed the limit. To capture keystrokes, we need to hook into JavaScript’s ‘onKeyUp and ‘onKeyDown‘ events.

continue reading

Oomph is a full-service digital agency providing strategy, design & development and a host of other web services. A leader in WordPress and Drupal implementation, Oomph pushes the boundaries of today’s web platforms. Oomph has a diverse portfolio of non-profits, international corporations and publications. Team Oomph is always thinking creatively about the digital world. Oomph is located in Providence and Boston.