WordPress Memory Allocation error while installing a plugin

Mar 16

Ever run into an error while installing a plugin and or attempting to activate it within your copy of wordpress. Your error may look something like Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 491520 bytes) in wp-content/plugins/nextgen-gallery/admin/manage-images.php on line 485 I recently recieved this error installing NextGEN...

Read More

How to put site in construction mode quick and easy via .htaccess

Mar 16

Do you run a blog like wordpress or some other CMS driven website? Or even a MVC like CakePHP or Codeigniter? Something that in essense runs solely off of index.php for the most part? Sure why not. Most sites now a days run off of a lone php file. So. A quick easy way to get your site into a maintenance or construction mode is to alter your .htaccess file by adding...

Read More

MySQL Query to get radius of longitude and latitude

Mar 08

Lately I have been doing a lot of work with longitude and latitude references, of which I needed to search my Database for points of interest surrounding a particular reference. At first it was quite difficult, as I have never done something to that extreme query wise, and I couldn’t find something via google or other resource that really helped for my needs,...

Read More

PHP Debug Array or JSON object easily

Mar 08

As a engineer I work with Arrays of Data, day in and day out. Whether its building them out or pulling them in from somewhere. More often than I’d like to admit something gets lost in translation and I have to see whats going on. Now most people will just simply do a quick debug statement like: echo "<pre>"; print_r($arrayData); ...

Read More

PHP Calculate Distance between 2 Longitude / Latitude Points

Mar 08

Geo-location is becoming more and more popular as time passes and technology supports it better more so as there is plenty of free resources to help you get the data you need to be more GEO centric with your users. However sometimes you want to give a range from point A to point B and this is one way you can do it. You can do the calculation in this function to...

Read More