Release 0.4.1 is now available of the Harvest API PHP Wrapper Library. This release is a Bug Fix for those accounts that have SSL support enabled. When utilizing the 0.4 version of the library you may notice that if you set SSL to true that you will not get any results back from the server,…
Optimizing T-SQL Procedures – Utilize same datatypes as is in the table
Today I was running some tests on my T-SQL Procedures and noticed that for some reason my Select statement was performing in seconds compared to my Procedure which would take minutes to complete. After a few hours I stumbled upon my mistake I had used the date datatype in the procedure parameters when my database…
An Overview of the DateTime object in PHP
Most if not all PHP developers are aware of the getdate function and how it returns an associated array of the current time and date. $current_time= getdate(); print_r( $current_time ); Output Format: Array ( [seconds] => 40 [minutes] => 58 [hours] => 21 [mday] => 17 [wday] => 2 [mon] => 6 [year] => 2003…
THe inner workings of Ruby Message Passing : Lesson 10 of My Self-Inflicted Crash Course into Ruby
Calling an object method in Ruby behind the scenes is actually a message to another object or Message Passing. These can more easily be understood by an example, and for that reason lets look at a basic multiplication script. 3 x 4 As you are aware everything in Ruby is an object, including an integer.…
HTML5 Forms
In addition to new tag elements in HTML5 the input element has been extended with new types and attributes. Although these changes are not fully supported across all browsers they can still be added if desired to your existing websites. New input attributes Placeholder Text It is common practice to include placeholder or default text…
Iterating over collections in Ruby: Lesson 9 of My Self-Inflicted Crash Course into Ruby
Ruby provides a multitude of methods and structures for iterating or looping through arrays and collections. The most commonly used methods are the basic for and each loops. However there exists other convenience (or code bloat) methods on both arrays and integers to also perform iteration. The basic FOR loop The for loop in Ruby…
Seeing past the HTML5 hype, why are we wasting time with tags that serve no purpose.
Ah don’t you just enjoy all the hype and sniping that goes on when new features or standards are released. HTML5 has started things off with a bang, regardless of the actual full standard still being years away from being finalized, Web Browsers have jumped on implementing the new tags and functions. I don’t want…
Visual Basic Comments
The strangest way to comment I have come across in my career is the use of the single quote (‘). Usually a language will use the pound (#) or double backslash (//) and will use the single quote (‘) to specify string values. However for whatever reason in Visual Basic they use the single quote…
The Ruby Case Statement a.k.a the Switch Statement: Lesson 8 of My Self-Inflicted Crash Course into Ruby
Most developers are aware of the Switch statement that compares a variable to specific cases and performs logic based on if it matches the case criteria. In Ruby they decided to implement this as simply a Case statement with when clauses specifying logic to be performed if the when clause is true. case year when…
A brief overview of Arrays and utility functions in Visual Basic
Arrays in Visual Basic are handled differently then their counter parts in Java, PHP, and Ruby. The first difference is that you specify array index by use of parenthesis not square brackets. Java Array Initialization String[] myArray = new String[20]; Visual Basic Array Initialization Dim myArray(19) As String Looking over the two arrays you may…