A while ago we ordered a couple of servers from United Hosting.
These are great little server, they seem very secure.
Only problems with security we’ve ever had was because we used ftp to upload a couple of websites, and the login credentials were captured by some malware. We recommend you use sftp where ever possible over ftp.
Recently I’ve beginning to wonder why I try to support IE6 anymore.
Vista and Window 7 do not support Multiple IEs and never will.
So I’ve just had to install XP into a virtual machine, just to test with IE6. Upon launching IE6 for the first time, I was greated with a broken page. This broken page just happens to be the first page IE7 users see.
What is Cygwin?
Cygwin is a Linux-like environment for Windows. It consists of two parts:
- A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
- A collection of tools which provide Linux look and feel.
Why is it useful?
With Cygwin you can compile lots of Linux applications with little or no modification for use on your Windows computer.
Take advantage of Bash scripting and whole host of other useful Linux programs, like traceroute, whois, xwindow and hostx.
How can I get it?
This is the easy part. Go to the Cygwin website and download setup.exe.
The set-up process is straight forward, and there will be three decisions to make:
- Where you want your Linux root to be installed
- Which mirror you would like to use
- which packages to use and you are on your way.
You will now have successfully installed Cygwin.
If you have any stories about Cgywin, feel free to post comments about them.
Suppose you have a script in PHP that you only ever want to only ever run one instance of.
- Maintenance script (repair,optimise)
- Update script (crawler)
These types of scripts need only to be launched once, and more could be counter productive or even dangerous.
The simplest way to stop multiple instances is to check to see if the last running script is still running.
I have found I kept getting an error when I modified some of the example code.
The error message was:
C Run-Time Error R6034
"An application has made an attempt to load the C runtime library incorrectly. Please contact the application’s support team for more information."
After trying a few of the suggested fixes I was starting to give up hope.
Luckly I found a post suggesting to change the configuration from debug to retail and recompiling.
OpenCV stands for Open Computer Vision Library.
OpenCV is an open source library for computer vision development. There are some very interesting sample applications included with this library.
This sounds like the perfect start for Sir Bones.
Before we can start we need to be able to build the library.
We are going to be using Microsoft Visual Studio for this install.
The reasons for this include Support from OpenCV, Lots of Internet Articles for creating software, MSDN, Offical Software and its FREE.
Step 1 – Installing Visual C++ and Platform SDK
Visit http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ and follow Microsofts Guide to setup Visual C++ and the Platform SDK.
When you get to Step 3, add this line to "Include Files" (assume default install location)
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\mfc
This is because OpenCV requires some files that are inside that folder.
Step 2 – Update Visual C++ with Service Pack 1 (Optional)
Service Packs for the each of the Visual Studio products are available on one page from Microsoft.
The specific update that you will require is called "C++ 2005 Express Edition SP1 – VS80sp1-KB926748-X86-INTL.exe"
Step 3 – Install OpenCV
Installation is straight forward.
Step 4 – Customising Visual C++ for use with OpenCV
We need to setup the directories for Open Visual C++
- Open Visual C++
- Choose menu "Tools" and select "Options"
- In "Projects and Solutions" and go to "VC++ Directories"
- Show directories for "Library Files"
- Add "C:\Program Files\OpenCV\lib" to the list of directories
Step 5 – Open "OpenCV Workspace .NET 2005"
In the start menu a folder called "Open CV" was created when you installed OpenCV.
Inside the folder "OpenCV" there is a shortcut called "OpenCV Workspace .NET 2005"
Open "OpenCV Workspace .NET 2005"
This will load OpenCV solution within Visual C++
There is one last thing you need to do, to be able to compile OpenCV.
- Choose menu "Build" and Select "Configuration Manager"
- Change "Active solution configuration" to either "Debug" or "Release"
Step 6 – Build
Now that everything is installed and setup; building OpenCV should be a breeze.
- Choose menu "Build" and Select "Build Solution"
Building OpenCV can take anywhere from a few minutes to an hour.
When I built OpenCV it took about 10 minutes.< /p>
Congratulations OpenCV is now installed and built.
Last year, I released a php script called CounterScript.
It purpose was to generate extended statistics about the visitors to your site.
The script stores all the data about the visitors in a mysql for later analysis.
Check it out: http://sourceforge.net/projects/counterscript/