The HTML 5 Canvas has to be one of the coolest features that has been introduced in quite some time. Solid and well built, it makes image editing and modification such a breeze compared to the javascript-based tools we had in the past. There are bound to be some useful wrapper libraries out there that…
With the widespread popularity of Nuget, there is a package for everything in C#. Parsing CSVs are no exception, but this feels like overkill. Parsing a csv, tsv or any value separated file in C# is not complicated and can be done very easily by simply breaking up the string. It takes a little more…
I am able to add a jpg image to a pdf document using insert image but for some reason the code throws an error when I try to add a png image. Why would this be failing? This is the error that I see getting thrown Error in function n/At: String contains an invalid character…
CORS stands for Cross-Origin Resource Sharing. For most scenarios, what it does is let you use Javascript to make HTTP requests to a different domain. It is a very important security feature but is a useful thing to enable if you have the need for it. This guide will show you how to enable it…
I am trying to make a get request using file_get_contents and I want to get back the HTTP headers from the response along with the content body. Whenever I try to provide the headers to the function, I get the error "file_get_contents() expects parameter 3 to be resource". I am not sure what I am…
reCaptcha is a smart captcha system that will help prevent spammers from submitting junk data using forms on your website. The system works very well and is relatively simple to implement. This guide will show you how to setup and configure reCaptcha with PHP. In order to set up reCaptcha, you will need to register…
This should be a relatively simple task to achieve in most scenarios, there are circumstances where it is not. This guide will show you what you need to do to make custom meta boxes appear above the default WordPress editor in the admin area. When you are adding a new meta box to the post…
By default, the page post type in wordpress will not have comments enabled. Chances are your theme already has support for them, so it should be a simple case of editing the page within the Wordpress admin area to fix. Here is how to enable comments for pages in Wordpress. Go to the pages section…
Performing analysis on content that a user is typing is a common requirement for interfaces. A simple word counter, for example, will need to bind to an event so that it can scan the text when the user has modified the data. There are ways to do this using jQuery, but what if you want…
Reading a File over FTP is a common scenario. Best case scenario, the file is JSON and you can very easily convert it to a C# object using the serializer. What happens when it is XML? Converting it to a model requires a little more work. Here is how to read an XML file from…