Articles
Debugging Windows Mobile 6.5 Application On Windows 7
Published February 22nd, 2015 at 9:49 AM. by Joe Prochazka
The following are the steps I used on Microsoft Windows 7 Professional with Service Pack 1 in order to develop and debug Windows Mobile 6 and Windows Mobile 6.5 applications requiring network or Internet access using Visual Studio 2008. Although I have not yet tested these steps outside of Windows 7 I see no reason why these steps would not work on later versions of Microsoft Windows including Windows 8 and Windows 8.1.
Update: February 23rd, 2015
I was unable to get this method to work...
Creating Public And Private Keys Using PuTTYgen
Published October 23rd, 2014 at 11:19 AM. by Joe Prochazka
One of the best ways to help secure SSH access to a remote computer is to utilize public/private keys by placing a copy of a public key on the remote server while retaining the private portion on the computer you will be accessing the remote computer from. Using public/private keys protects your remote system from password guessing due to the fact a copy of the private key will be needed as well as a password if the key is protected in that manor.
In this post I will cover how to generate...
Using Iptables To Firewall Both IPv4 And IPv6
Published June 17th, 2014 at 11:24 AM. by Joe Prochazka
The following is a quick example on how to firewall both IPv4 and IPv6 using iptables in Ubuntu. THe following article should be useful for other Linux disros as well though the last part about the iptables-persistant package may be Ubuntu/Debian specific. To start out lets keep it simple please and allow ssh, http, and https:
sudo iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
sudo iptables -I INPUT 1 -p tcp --dport 22 -j ACCEPT
sudo iptables -I INPUT 1 -p tcp...
Accessing .php Pages Without the Need for the .php Extension
Published August 28th, 2013 at 10:55 AM. by Joe Prochazka
This article covers setting up your web server to allow access to .php pages without the need for the .php extension. You can also easily modify these examples to work with other extensions as well. This trick is useful for making your URL more friendly and easier to remember. In this post I will show you example code to accomplish this on three different web servers. First I will cover doing so on the Apache web server using a .htaccess file after which an example for Internet Information...
Resetting a Forgotten or Lost MySQL root Password
Published April 29th, 2013 at 11:49 AM. by Joe Prochazka
The following are the command you can use to change your MySQL root password when in the off chance you have forgotten it or no longer have access to someone knowing the password to the root MySQL account. Changing the MySQL root password is easy and fairly painless. To change a forgotten MySQL root password simply follow the following steps.
Step 1: Stop the MySQL process.
You will need to first stop the MySQL server process.
root@darkstar:~# /etc/init.d/mysql stop
Step 2: Start MySQL...
How the MOD 10 Algorithm Works
Published March 21st, 2013 at 11:35 AM. by Joe Prochazka
The following is an explanation of how the MOD 10 algorithm works. This information is useful if you wish to validate a credit card number more thoroughly than just looking for what numbers a credit card starts with and/or it’s length. It is also useful if only to better understand how credit card numbers are created. First we will start with a bogus number generated using the algorithm.
Bogus But "Valid" Card Number = 378282246310005
Next we will flip the card number around.
Flip Card...
Rotating Nginx Vhost Log Files Using Logrotate
Published December 5th, 2012 at 11:22 AM. by Joe Prochazka
Web site access and error logs can grow out of control in size if not handled properly especially on medium to high traffic sites. In order to rotate logs kept for sites keeping separate log files from the Nginx logs themselves you can use the following script which can be executed by logrotate, which handles log management on most all *NIX types systems, to easily manage the rotation of your web site log files.
First open the file /etc/logrotate.d/nginx in your favorite text editor.
sudo...
Backing Up All Microsoft SQL Server Databases
Published November 17th, 2012 at 11:40 AM. by Joe Prochazka
I found the following query SQL which will back up all databases on a Microsoft SQL Server instance a while back. I wish I remembered where I found it so that I could give credit where credit is due but I do not. Anyways I figured I would post it here for anyone interested. This SQL query will back up all databases within a Microsoft SQL Server instance excluding the system databases. You can easily exclude more databases by editing the following line and adding the databases to exclude to...
Setting up XDebug to Debug PHP Applications
Published May 19th, 2012 at 11:41 AM. by Joe Prochazka
The following are general instructions as to how to set up XDebug and should work for most any environment you may be using whether it is Apache or IIS. You will want to make sure before continuing that you have a web server installed and running on which to do your PHP debugging using XDebug.
First you will need to download the latest version of XDebug from http://xdebug.org/download.php for the type of system your web server is running on.
Next place the XDebug binary you just downloaded...
Monitor AppPool Health Using the Windows Powershell Snap-in for IIS
Published May 19th, 2012 at 11:27 AM. by Joe Prochazka
Sometimes as an ASP.NET web developer you may wish to check on the performance of your application specifically when it comes to the performance of an app pool. The problem is there is no clear cut solution made easily available to do so. However one solution to monitoring your AppPools health can be to install the Windows Powershell Snap-in for IIS which you can download at http://www.iis.net/download/PowerShell. The following explains the process of getting this information using the IIS...