Monthly Archives: November 2011

Php: XML parser

November 23, 2011
By

Name: XML Tools Author: Andrey Nikishaev Description: This class can parse and validate XML documents. It can parse a XML file and extract its structure into an array. The class can also validate a XML document against a XML schema definition. URL: http://www.phpclasses.org/package/7224.html Support forum: http://www.phpclasses.org/discuss/package/7224/

Read more »

php: geographic calculations

November 22, 2011
By

This class can perform several types of calculations with geographic coordinates. It can take the longitude and latitude of two points in the Earth globe and perform calculations like the surface distance between those two points using the Havesine formula, the initial bearing angle. The class can also mirror a bearing angle over the...

Read more »

ajax: javascript to remote php to update

November 22, 2011
By
ajax: javascript to remote php to update

Here is a code to update a section after looking up info, using AJAX: // the following will save changes to the table function makePOSTRequest(url, parameters, divarea) { var http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,… http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideMimeType(‘text/xml’); } } else if (window.ActiveXObject) { // IE...

Read more »

javascript: jump to a particular section in html page

November 21, 2011
By

Here’s how ya do it… You need to place two items on each page: 1. A basic link command pointing to another section of the page. 2. The point where the page will jump. Here’s the basic link command: Blue Words, Blue Words Here’s how you denote where the jump will scroll the page:...

Read more »

javascript: Changing the display to show or hide on elements using the id

November 20, 2011
By

// the following will show or hide edit sections in table // do this by show/hide sections by their tagnames with “name…” function showHide (thisname) { var tr=document.getElementsByTagName(‘th’) for (i=0;i

Read more »

medical: Mobile Medical Apps: Should They Require FDA Approval?

November 15, 2011
By

There is a great article by Paul Cerrato in Infoweek Healthcare, which I reprint here. The full article is here: http://i.cmpnet.com/infoweek/green/111411hc/InformationWeek_Healthcare_2011_11.pdf No matter how hard the Food and Drug Administration tries to find a middle ground between too much and too little regulation, it’s usually seen as the villain. When it implements strict rules...

Read more »

Body measure: measuring angles and size using your body

November 15, 2011
By

Here is an interesting post, which may be useful, if you don’t have a ruler handy: http://www.vendian.org/mncharity/dir3/bodyruler_angle/

Read more »

Php: gd2 image manipulate

November 4, 2011
By

Name: GD2 Imaging Author: Artur Graniszewski Description: This class can apply several types of advanced image processing effects. Currently it can: - Use the Hough transform to detect skew angles and deskew an image - Detect the background color of an image - Perform image quantization basic text recognition (OCR) in an image to...

Read more »

Php: amazon mechanical Turk

November 3, 2011
By

Name: Amazon Mechanical Turk PHP REST API Author: CPK Smithies Description: This package can set up, maintain and query crowd-sourcing tasks with the Amazon Mechanical Turk web service. It can send HTTP requests to Amazon Mechanical Turk API Web server to perform several types of operations. Currently it can request to execute operations on...

Read more »

Php: upload updater

November 2, 2011
By

Name: 100% PHP Uploader Author: Richard Keizer Description: This class can track the progress of file upload using Web sockets receive the files. It can generate HTML and JavaScript to upload a file by using a TCP socket that listens to the HTTP request on a given port to receive the files being uploaded....

Read more »