Safely migrate Cpanel from DSO to SuPHP
Wednesday, 14 March 2012 19:56
Written by Uditha Bandara Wijerathna
Cpanel has the ability to change between loader technologies. For a shared hosting environment which hosts CMS s like Joomla, DSO mood will not be 100% success when considering nasty permission problems coming from the default httpd user. As a solution SuPHP provides better PHP execution method by running PHP files using the original user which owns that shared host.
A program to find the convex hull using Pakage wrapping algorithm
Friday, 06 January 2012 12:40
Written by Uditha Bandara Wijerathna
In this program, basically user is free to enter what ever the point coordinates he/she likes. But minimally there have to be 4 coordinates. Because triangle is always a convex hull. So this programs strictly tries get first 4 coordinates from the user. After that user can choose whether he/she wants to enter more coordinates or not. This program uses a very smart function named findAng(), which able to convert the -PI,+PI range of antan2() function in to positive degree angle according to the quadrant which the angle is in. So by that it finds the convex hull according to the given set of points. Comments are placed in relevant places of the source code where an explanation is needed.