15 Sep

PHP and Memcached Returning Random Data

This took a long time to track down and only applies in specific circumstances:

  • Your process is forking
  • You are using persistent memcache connections
  • The data you request does not match what you receive, for instance you expect an array and an integer is returned.

The problem is caused by the persistent connection being shared after the process has forked. This is a known issue on database connections which is why you should always stop and restart your database connections after a process forks however this is not a documented ‘feature’ of the memcache connections. Trying to close and reopen the memcache connections doesn’t help either.… Read the rest

12 Sep

Jquery Save to Excel II

Slightly more advanced version of my previous script. This script handles if the table doesn’t have an ID which was a problem previously. It also paves the way for multiple export options including Excel, HTML and PDF – whatever your server can handle.

This code is slightly different to previous code as it will add the export buttons to all tables on the page that do not have a class of ‘noExcel’. Run this script from your jQuery ready() function. A simpler version of this code is available at http://www.topsemtips.com/2008/11/save-html-table-to-excel-using-jquery/:

var RandomIDToUse = 1000;
function AddActionsToTable(  )
{
$(" table:not(.noExcel)").each(
Read the rest
12 Sep

PHP Processes Getting Killed

This one took a while to suss out.

Symptoms are:

  • Database connections idle for long periods of time.
  • Processes start and then stop intermittently.
  • Processes report ‘Killed’ when you run them.
  • Running ‘dmesg’ from the command line shows the OMM process was called.

If this is happening to you you need to check your logs to see if the OMM (out of memory manager) is getting called. To check this run ‘dmesg’ from a Unix command line and look for the term ‘OMM’. The OM process kicks in when there is not enough memory to satisfy memory requests (malloc) that the system has already OKed.… Read the rest

10 Jul

Qriocity is too expensive

So I got a new Sony Blu Ray over the weekend and was setting it up when prompted to set up Qriocity.  Qriocity is a streaming movies service. I thought this will be nice, rather than having to wait for the movies to arrive from Netflix or go down to the local RedBox or Blockbuster Express I will be able to stream the latest releases. So I setup my account, put in my credit card, link my account to my Blu Ray player and go to look at the movies. $3.99 for a movie in SD – WTF! and $5.99 if I want HD.… Read the rest

15 Jun

1 Hour To Great Results with Sycara

The Sycara SEO tool is great for quick site audits and the results for the time invested are outstanding. The steps for a quick one hour audit are:

  1. Login to your Sycara account.
  2. Add your site to the Sycara system using the ‘Add Site’ menu option – supply the site name and site URL and hit save.
  3. When the ‘Next Steps’ options appear click ‘Visit Site Dashboard’
  4. Gather your list of top keywords and turn them in a CSV format on one line i.e. diamond watch, gold ring.
  5. Under ‘Site Settings’ -> ‘Map Keywords’ click the down arrow on the blue bar and select ‘Add Keywords’ – cut and paste your CSV keyword string here.
Read the rest
06 Jun

Make More Money by Performing Keyword Research

By Karon Thackston © 2011, All Rights Reserved

Whether you’re a virtual assistant, copywriter, web design pro or search engine optimizer, keyword research is a useful and necessary service you can add to your lineup to make more money.

Anyone with a website or blog who aims to rank high in the search engines can benefit from professional-quality keyword research.

Why Would Others Pay You to Perform Keyword Research?

Because, as a trained professional, you will gather and evaluate data and make confident decisions. You won’t be an amateur who doesn’t understand the finer points of this craft and guesses at which terms are best to use where.… Read the rest

10 May

How to Clean a Washing Machine

Turn washer to highest level and hottest temperature. With nothing in the drum but water, put two cups of bleach in and let the washer lid sit open allowing the hot water and bleach clean the drum. After letting that mixture sit for awhile close the lid and let the cycle go all the way through to the end.

Once the cycle is complete, start it over again at the highest level and hottest temperature and add the two cups of white vinegar into the water. Again let that sit for awhile with the lid open. After letting it sit, close the lid and allow for the cycle to finish.… Read the rest