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…
FTP (File transfer protocol) is a common method of storing and transferring files over the internet. Consuming a file from an FTP in C# is a very easy process and is something you may frequently find yourself needing to perform when dealing with online file transfers. The .NET Framework has built-in libraries to handle the…
I have a stream reader inside a using block of code in C#. Do I need to call reader. Close as part of this to close off the process and allow GC to clean up any memory or does it happen on its own? Here is the code that I am using. using (StreamReader reader…
I have the default tinymce snipped of code on my page. This script was used in the example on the website so I would think there are no syntax errors or anything with it. Regardless, whenever I load the page, the editor does not load and I get the error "Failed to initialize the editor…
Is c++ a compiler language or is it a scripted language like python
I have a json string that is a regular raw string and job a javascript object. How do i load this json into a javascript object so that I can use it normally?  var jsonStr = "{\"property1\": \"test\", \"property2\": \"something else\" }"; alert(loadedJson.property1); The example above is a basic idea of what I am trying…
Calculating the length of a string is a very simple thing to do in most programming languages. It is an action that you will find yourself needing to perform very often. Be it for validation, reporting or comparisons, knowing how to find how many characters a piece of text has using code is incredibly useful.…