Meek Consulting Websites
Author Archives: admin
SLOW log in over SSH
If you are experiencing very long delays when logging into linux systems using SSH. It could be waiting for Reverse DNS to time out before giving the login prompt or password prompt. I made the following change to fix it … Continue reading
Posted in Uncategorized
Leave a comment
Analyzing mysql slow query logs
The mysql servers we use are configured to log slow queries ( those that take over 5 seconds to run or queries that do not use any index). The output is put in /var/log/mysqld.slow.log ( on the dbhost server! ) … Continue reading
Upgrading PHP on redhat 5
I updated the php ona redhat box today. This upgrade now seems to fix a bug in PHP that wouldn’t allow values of > 1.5 Gig on file uploads I have the settings now set to allow up to … Continue reading
Posted in Uncategorized
Leave a comment
Using Handler postDelayed to queue a task for later execution
I figured out how to get my android app to auto post after a certain amount of idle time. Trick was to create a handler in the activity that is running. Then make a “Runnable” function that will … Continue reading
Posted in Uncategorized
Leave a comment
SELINUX local policy creation
Run the command audit2allow -m local -l > local.te < /var/log/audit.log This will generate a local.te file that will have the policy to allow the things denied int he current audit.log You’ll want to review closely to see if those … Continue reading
Run subcommand and return output to variable in PHP
If you need to run a subcommand and pull the output you can use the proc_open like below. Kevin
Refreshing jquery-ui tabs using php xajax calls
I have a jquery-ui tab displays information that can be edited using a xajax pop up dialog. After saving the dialog I wanted to “refresh” the current tab. This little bit of code in the server did the trick. … Continue reading
Making textarea boxes expand on entry
If you have ever worked with web forms you know that editing a large amount of text can be painful when you can only see a few lines of text at a time. Firefox 4 has a nifty feature that … Continue reading
Configuring apache for server monitoring
We adjusted some of the apache config parameters to try and keep it from using up all the memory on the server today. We turned on apache monitoring through mod_monitor which makes the URL: http://domain.com/server-status Show some good stats on … Continue reading
Posted in Uncategorized
Leave a comment
Debugging Smarty — Printing array values
You can print a variable using this code in your template: {$row|@debug_print_var} Good for arrays to see what they contain.
Posted in Uncategorized
Leave a comment