howto

zFeeder – Making PHP 5.3 + compatible, solving ‘Function ereg_replace() is deprecated’

The latest zFeeder 1.6 uses couple PHP functions – ereg_replace and set_magic_quotes_runtime, which are deprecated in PHP starting from version 5.3. These function will no more be supported from PHP 6.0 onward.

How to solve “Deprecated: Function ereg_replace() is deprecated” problem?
Use preg_replace, which uses perl regular experssion, instead of ereg_replace.
There are two occurrences of ereg_replace [...]

Thursday, January 14th, 2010

Fix for mergelog, fails with error “abort due to a problem” for dummy records of apache access logs

If you are getting “abort due to problem” for apache access logs for dummy records when your run mergelog (or zmergelog) then you fix the problem as follows:
1. Open mergelog.c file under src folder
2. Look for #define SCAN_OFFSET 9
3. Change it to #define SCAN_OFFSET 7
That’s all.
The problem is that the mergelog looks for [...]

Monday, December 14th, 2009

How to catch copy paste from explorer using shell extension? ICopyHook alternative for files and folder

Handling copy paste/cut paste event from explorer using shell extension…
Solution to :
1. How to catch copy paste from explorer using shell extension? ICopyHook alternative for files and folder
2. Howto trap copy paste event from explorer to do your custom processing or even
3. Howto replace/substitute the copy-paste/cut-paste operation with your own copy or move or anything else

Thursday, November 12th, 2009

How to convert ASCII/UNICODE string to hex string? Function/API to convert to hex string

Code snippet/API/function to convert a ASCII/UNICODE string to HEX

Wednesday, November 4th, 2009

How to solve ‘ReadFile hangs’ for named pipe client/server – sample working code for named pipe

Cause of ReadFile hangs for a named pipe client

Tuesday, November 3rd, 2009