Programming

As you may have seen, I’m a programmer. Specifically, I’m a .NET programmer using the C# language to build websites and applications.

Oddly enough, this site is hosted on a Linux server and was originally written in PHP, and now is built using WordPress on AWS hardware.

Regardless, sometimes issues come up and I’ll post about them here. Perhaps, I’ll post a discussion on a problem that I’ve worked through that you may be facing now. In that case, I hope that you can find this useful.

JavascriptSerializer Example – Parsing JSON with C#

Parsing a JSON string is straightforward. You create an instance of the JavaScriptSerializer class and then call it’s Deserialize function to operate on the JSON string. You will get back a dictionary object of type  Dictionary<string, object>. This dictionary can then be examined and referenced as you would any other dictionary object. But… it’s never...

Read more ...

Compiling a C# Project using Command Line Tools (Example)

(Updated 12/4/2015) Compiling a C# (C-Sharp) file using command line tools is not as difficult as you may think. In this tutorial, I will walk you through the steps needed to create a project using nothing more than Notepad and the Command Prompt. Jump to the code A lot of programmers are not aware that...

Read more ...

Generating Hierarchical (Nested) XML from a DataSet

At my latest position, we work with data in XML format. A Lot! (Jump to the code. Download all the code.) Our results are often offered to outside clients from some of our web services. In most cases the data is provided in XML format (we are beginning to convert our output to JSON, but...

Read more ...

GoDaddy, MySQL, iTextSharp and Shared Hosting Woes

Beginnings In the summer of 2008, I volunteered to help out a local political organization Get Out The Vote this election year. There is an old saying that goes something along the lines of, "No good deed goes unpunished" I wish I'd remembered that before I started all this! NOTE: Looking for System.Security.SecurityException: That assembly...

Read more ...

A Programmer’s Cheat-Sheet for GoDaddy.com

You've got your website running beautifully on your development / staging server. Then you upload your site to your GoDaddy Shared Hosting environment and are met with the ugly yellow screen of death and this message: System.Security.SecurityException: That assembly does not allow partially trusted callers Here, I present the workarounds that I used to get...

Read more ...

Compiling iTextSharp

Here are some step-by-step instructions on how to compile iTextSharp for use in a partially-trusted-caller environment such as that found on GoDaddy hosted servers. Step 1. Download the source. The source code is available here: http://sourceforge.net/projects/itextsharp/files/itextsharp/iTextSharp-5.0.6/ As of this writing, the current version available is 5.0.6. Newer source should always be available at this site....

Read more ...

Getting Request Variables in PHP

I originally created this page while I was trying to learn a thing or two about PHP. Since  then I've become a .NET programmer and don't do much with PHP. However, I'm always  trying to learn new things. Here we discuss two arrays of data that are available to PHP that allow you to get...

Read more ...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.