News and Blog

A Look Back At 2012

December 31st, 2012 - Posted by Steve Marks to Miscellaneous.
At the time of writing this post, it’s New Year’s Eve and that time when everyone begins to decide on their new year resolutions, only to then fall back on them a few weeks later (I apologise in advance and congratulate you if you’ve stuck with yours). It’s also a t...

New Website Launched For Gifts And Experiences

December 31st, 2012 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, MySQL, PHP, SEO, Web Development.
This week has seen the launch of a new website of mine, Gifts To Thrill. The site offers experiences such as driving supercars and helicopter lessons, as well as traditional and personalised gifts. Behind the scenes the website acts as affiliate site, meaning that when someone clicks throu...

Converting From jQuery’s .live() to .on()

December 15th, 2012 - Posted by Steve Marks to Javascript / jQuery, Web Development.
If you’ve ever updated the DOM’s contents manually using JavaScript (ie. with the response from an AJAX call), and then wanted to manipulate this updated content, you’ve no doubt needed to use the jQuery .live() function. As of version 1.7 of jQuery however, the .live() f...

Why http://1.2.3.4/bmi-int-js/bmi.js Is Your Friend

December 8th, 2012 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
Before I get too far into proceedings, allow me to explain a bit of background as to why I’m writing this article. I’ve included below a summarized transcript of a call I had with my ISP a few days ago: Me: “I’m not getting an internet signal” ISP Lady: “...

‘Content Encoding Error’ In Firefox When Using MVC Framework

November 29th, 2012 - Posted by Steve Marks to MySQL, PHP, Software, Web Development.
The problem I’m about to explain had me stumped, good and proper. There I am, working away happily on a basic PHP MVC framework, when BHAM! Life comes to a standstill and I spend the next hour or so trying to debug why I’m getting a ‘Content Encoding Error’ appear i...

Downloadable List of UK Towns, Cities and Counties

November 18th, 2012 - Posted by Steve Marks to Web Development.
Whilst recently working on a site that required a database of locations (all the towns, cities and counties) within the UK, I couldn’t find a list available in a downloadable format. As a result, for others that find themselves in the same position, I’m making the list that I c...

Resolve “This list does not have interest groups enabled” MailChimp API Error

November 17th, 2012 - Posted by Steve Marks to PHP, Web Development.
Whilst previously working with the MailChimp API, I was receiving the following error when using the listInterestGroupings() function: This list does not have interest groups enabled The message returned seems pretty self explanatory, but how to actually enable interest groups isn’t ...

New Website Launched to Find Attractions Between Two Places

November 12th, 2012 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, MySQL, PHP, SEO, Web Development.
For regular readers of this blog you might have guessed that I’m a huge fan of maps, and working inparticular with the Google Maps API. I also find that the best way to learn anything in the coding world is to use it in a real life scenario. As a result, and to hopefully produce [......

Method Invocation Failed Error When Calling SaveAs() In PowerShell Script

November 11th, 2012 - Posted by Steve Marks to Web Development.
Whilst recently running Microsoft Office 2007 and attempting to convert a Word doc to a PDF via a PowerShell script, I was getting the following error returned: Method invocation failed because [System.__ComObject] doesn't contain a method named 'SaveAS' The Solution The solution in my cas...

MySQL BETWEEN Two Negative Numbers Returning No Results

November 8th, 2012 - Posted by Steve Marks to MySQL, Web Development.
When recently working on an application that contained a map, I wanted to get all items from a MySQL database between two latitude/longitude coordinates. As a result my initial queries looked similar to the below: SELECT `fieldNames` FROM `my_table` WHERE `latitude` BETWEEN 42.689506 AND 4...