Archive

Archive for the ‘Code’ Category

Using State Machines

November 10th, 2011

Implementing a state machine is a great way to keep your automated process under control and to be easily able to test and make changes.

Basically, you define all of the expected states of your process (such as waiting for server to respond) and capture events (such as response received) that cause a transition from state to [...]

Categories: Code Tags:

Internet Marketing Automation #1

November 6th, 2011

In this post series I want to suggest some ways to employ Internet Marketing Automation.

This is where we deploy some code, kick back and let the code automate our repetivive tasks such as article submission or blog publishing.

Let’s explore some of the ways that this can be achieved.

The first method that I am not planning to [...]

Categories: Code Tags:

How To Open A Web Page And Send Post Data In C#

October 30th, 2011

To open a web page and send post data in C# involves opening a web browser, and displaying a web page where POST data is sent to it.

You can do this by using the WebBrowser control, but there seems to be licensing issues when you come to redistribute the code. And your users may prefer to [...]

Categories: Code Tags:

C# Coding Problems

October 19th, 2011

Now I am coding more in C# and having the usual coding problems, I am finding that web searching helps to find the answer but often leads to out-dated advice.

The latest example was how to make the Enter/Return key fire the OK button on a dialog form. Most of the web search results lead me to [...]

Categories: Code Tags:

How To Hide ClickBank Affiliate Links

September 8th, 2011

Here is how to hide ClickBank affiliate links in your posts to the web.

When you get your ClickBank affiliate link it is best to go for the encoded version. This looks something like: 3aa6b2rhnd05g83j35ob3kepfp.hop.clickbank.net/?tid=BLOG Here I have included a tracking code: BLOG This helps when viewing your reports to see where the conversion came from.

My method [...]

Categories: Code Tags:

Concrete5 Blog Block

June 1st, 2011

I was thinking about how to implement a blog with the Concrete5 CMS and came across a solution that although good, seemed to be going against the Concrete5 way of doing things.

This solution seemed to be trying to mimic WordPress with one custom block. If you want to mainly blog, then why not use WordPress? Or [...]

Categories: Code Tags:

PHP Obfuscation Example

February 9th, 2011

I created a PHP Obfuscation tool for my own needs and put it up on the web for anyone to use.

I think it works very well. Here is an example of how it works:

PHP Obfuscator

Input files:
Array
(
[0] => input/answers.php
[1] => input/article.php
[2] => input/functions.php
[...]

Categories: Code Tags:

Diary of a Programming Geek

December 27th, 2010

So here is a post about my diary of a programming Geek (without dates and times).

I did a post to a forum about the joy of coding. You know – the satisfaction that comes from leaning back in your swivel chair to admire your code and contemplate how awesome it is :)

Today: intrigued by the following [...]

Categories: Code Tags:

Concrete5 MVC

December 19th, 2010

In my last post I talked about the Concrete5 CMS. In this post I want to introduce you to the Concrete5 MVC (Model View Controller) model of coding that it adopts.

It took me a while to grasp this concept, but now I think I get it so here it is:

The Model is the code that interfaces [...]

Categories: Code Tags:

Mod Rewrite Not Working

August 17th, 2010

I searched for a solution to my problem of Mod Rewrite Not Working and the advice was rather obvious such as to make sure you remove the hash (#) symbol before the mod rewrite extension inclusion line in Apache httpd.conf where you see LoadModule rewrite_module modules/mod_rewrite.so

But what solved it for me was recognizing that the default [...]

Categories: Code Tags: