Monthly Archives: August 2011

August 31, 2011
By

From php manual: http://php.net/manual/en/function.shell-exec.php If you are using a Windows server with IIS, and you try to execute a batch file with shell_exec() function, or his related functions you should do it like this: Note the parameter /c which says “Carries out the ommand specified by string and then terminates” If you don’t add...

Read more »

php/Shell: How to run a php script in the background

August 31, 2011
By

This was taken form php manual: http://php.net/manual/en/function.shell-exec.php After many failed attempts to find a way to run a php script in the background (the script had to be activated from a web browser). Since I create and test my scripts on a windows box, I need an automatic way to detect if the script...

Read more »

Online Book Library

August 31, 2011
By

I don’t have time for this now, but will get to it later… here’s a good reference for online book cataloging: http://www.librarything.com/ And a description of how to make this happen for your own books: http://matt.might.net/articles/how-to-create-online-catalog-of-books-with-cuecat-barcode-scanner-and-librarything/

Read more »

Shell script: Catch weasel words

August 31, 2011
By

There is a good article about using Shell scripting to find “weasel words” inside a file: http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/

Read more »

iPhone Web: get rid of the url

August 31, 2011
By

Prevent scaling: Prevent Elastic scrolling: … Create home screen icon: Create a Splash screen: Detecing iPhone iOS: var IsiPhone = navigator.userAgent.indexOf(“iPhone”) != -1 ; var IsiPod = navigator.userAgent.indexOf(“iPod”) != -1 ; var IsiPad = navigator.userAgent.indexOf(“iPad”) != -1 ; var IsiPhoneOS = IsiPhone || IsiPad || IsiPod ; Here is an great article: http://matt.might.net/articles/how-to-native-iphone-ipad-apps-in-javascript/

Read more »

Biopsy Complications

August 31, 2011
By

Here are some complications from a renal biopsy: 7.5 – 19.5%   MINOR: Microscopic/Gross hematuria Peri-renal hematoma Subcapsular hematoma but rarely causes AKI AV Fistula 15%   MAJOR: Hemodynamic instability AKI Need for transfusion Need for intervention (renal abscess, AV fistula, large hematoma) – eg, embolization 1.5%, urgery 0.1-0.4% Nephrectomy 0.06% Death

Read more »

Whitham photos

August 31, 2011
By

Here are the photos for Whitham for rental.   www.smugmug.com/gallery/17030233_5JmBK r

Read more »

php: Captcha creation

August 30, 2011
By

Name: CAPTCHA IMG > > Author: Eper Kalman > > Description: > This class can generate images for CAPTCHA verification. > > It generates a text with random letters and digits and display them in an > image of a given width and height for CAPTCHA verification. > > The generated image file is...

Read more »

Extra Client: db2 access

August 30, 2011
By

Here is how to get to DB2 from Extra: TSOUSER Haygl1 after the ready prompt type in :”ISPF” PLP RACF LURS PURR FR2 tables. SELECT * FROM SYSIBM.SYSTABLES WHERE CREATOR = ‘LURS’ Select * from sysibm.systables where creator = ‘LURS’

Read more »

SQL: Clarity and order medications

August 30, 2011
By

SELECT * FROM ORDER_MED Where ORDER_MED.PAT_ID = PATIENT.PAT_ID AND PATIENT.PAT_MRN_ID = ’1100xxxxxxxx’ AND Current_Date < ORDER_MED.END_DATE ORDER BY ORDERING_DATE DESC;

Read more »