Recently my local Apache2 gave me a segmentation fault: /opt/local/apache2/bin/apachectl: line 78: 42092 Segmentation fault $HTTPD -k $ARGV I spent about 5 minutes trouble shooting then decided to move on to MAMP Pro, but not with out some headaches. First was, Chrome Kept forwarding http://localhost:8888/ as a Google search this was odd, because http://localhost:8888// worked, but having only [...]
MAMPA Quick Glimpse of the admin Amazon SES (Simple Email Service) Plugin for WordPress.
Amazon SESSo what blog wouldn’t be complete without a Contact Form? One of the simplest and first point of entries for your visitors. Granted I receive more request for Plugin “help” or services via email, the most recent came way of North Korea, more on that later. I decided to place a Contact form on my [...]
One thing I do enjoy about programming is when I can automate routine processes yet, avoid pitfalls where your future code is bound by the automation. Thus, making it difficult to add features, find and fix bugs. With the 40+ plugins I’ve developed, all varying in complexity, some are just 1 file others 50+. I’ve [...]
AutomationTL;DR — Bypass the database and store the data as flat JSON files. Spend as less time on your target site as possible Basically you don’t want to nest your scraping nor read and write to a database while scraping. Instead you’ll want to scrap small portions of the site into JSON encoded files. Then [...]
Web ScrapingThis was one of the few times I decided to work backwards, which I’m starting to prefer. What I mean is that wrote the below snippet, prior to writing the methods. What this snippet does is retrive all the Venue IDs in our database, then retrieves the corresponding Venue title (post title) and contact email. Simple enough, nothing major. [...]
During the development process you may find your self wanting to “rename” your Custom Post Type. Renaming the post_type is trivial but, if you’ve already added content you’ll find your previous post in accessible. This is because WordPress stores the post_type name in the wp_posts table with each posts. With this nifty function all you [...]
Custom Post TypeIntegrated TinyMCE into the WordPress Plugin I forgot just how easy it was to add TinyMCE. Note, don’t even bother trying to use any WordPress hooks for TinyMCE, just download it, enqueue it, add some code, and then go out and ride. Finally Added a Footer It was fun to do some light design for a change Some gym… [...]
TinyMCEIn an attempt to make our site blazing fast we implemented a 3rd round of optimization this weekend. We installed XCache an opcode server side caching system. The 1st round of optimization was minification and concatenation using YUI and Google’s Closure (the process is automated and integrated into our WordPress plugin framework). The third round was [...]
Unix