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.
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.
The 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.
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.
Ever since WordPress 2.5 was released, we’ve been pushing the boundaries of