Author Archives: admin

using find to get newer files into single tar

Use this: find . -type f  -newer /last_time_file -print0 | tar -czvf backup.tar.gz -T – –null It will: deal with files with spaces, newlines, leading dashes, and other funniness handle an unlimited number of files won’t repeatedly overwrite your backup.tar.gz … Continue reading

Posted in Uncategorized | Leave a comment

closing jquery dialogs

We had problems with IE page minimizing when we called xajax server functions from dialogs that sent commands to close the dialogs. To fix it I changed the way we sent the script to close the dialog from: $(‘#notice_message’).dialog(‘close’); with … Continue reading

Posted in Uncategorized | Leave a comment

Cross Cert Removal

If you get errors when clients are trying to access PKI restricted web pages similar to this: [Thu Mar 14 09:19:58 2013] [error] [client 72.73.17.34] Certificate Verification: Error (20): unable to get local issuer certificate It usually means a windows … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Using Fading Div tag messages to show ajax call results without requiring click.

We use xajax calls to server functions to update databases or insert records from a web page. Usually when they finish they return javascript to close the dialog or div tag and show an alert — this can be maddening … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Security Invoker for MYSQL views

When moving mysql databases between machines. It is best if all stored procedures, functions, and views need to have the following line after their create statement: DEFINER=CURRENT_USER SQL SECURITY INVOKER Example: CREATE OR REPLACE DEFINER=CURRENT_USER SQL SECURITY INVOKER VIEW MYVIEW … Continue reading

Posted in Uncategorized | Leave a comment

Using Handbrake to convert / combine videos from Samsung camcorder

I wanted to combine my snippets of video shot on our family vacation into one file for easy viewing on my mythtv frontend. I tried to use mkvmerge, but it gave errors because of the heading / encodings.  so only … Continue reading

Posted in Uncategorized | Leave a comment

success dialog message w/ xajax that fades away

Xajax:    $objResponse->create(“content”, “div”, “done_message”); $html = “ Save Complete”; $objResponse->assign(‘done_message’, ‘innerHTML’, “$html”); $objResponse->script(” $(‘#done_message’).dialog({ width: 300, height: 130, modal:true, resizable: false, draggable: false, dialogClass: ‘done_message’ }); “); $objResponse->script(” $(‘#done_message’).closest(‘.ui-dialog’).find(‘.ui-dialog-titlebar’).hide();”); $objResponse->script( “setTimeout(function(){ $(‘#done_message’).fadeOut(300, function(){ $(this).remove();});}, 500);  “);     CSS: … Continue reading

Posted in Uncategorized | Leave a comment

Installing handbrake on ubuntu 12.04

This is what I did to install handbrake on ubuntu 12.04 sudo apt-add-repository ppa:stebbins/handbrake-snapshots sudo apt-get update sudo apt-get install handbrake-gtk    

Posted in Uncategorized | Leave a comment

turning off greylisting with Plesk

Tried this command tonight to turn off greylisting.  Hopefully other spam filters will catch most spam so this will allow legitimate email through. /usr/local/psa/bin/grey_listing –update-server -status off To find info on greylisting use this: /usr/local/psa/bin/grey_listing –info-server

Posted in Uncategorized | Leave a comment

plesk perl / cgi scripts — permissions!!!

This is a good instruction i found for pemissions Directory permissions and ownership are important too. The /var/log/httpd/suexec_log  is the place to look when regular error_log doesn’t show anything…   Firstly, make sure you upload the script into the cgi-bin … Continue reading

Posted in Uncategorized | Leave a comment