Now with 50% more self-hosting…

Just switched this blog over to a self hosted Digital Ocean VM. I was able to migrate all of my content away from WordPress.com, which was nice. Testing out some Cloudflare DNS and Nginx action.   This site is going to be a playground for…

ChromeLogger for PHP

I recently came across this great plugin for Chrome called Chrome Logger. http://craig.is/writing/chrome-logger Basically, it allows you to target the developer console in Chrome from within PHP. It’s really handy for debugging live PHP sites without printing nasty var_dump()’s to the screen, or SSH’ing into…

Sending vCalendar/iCal Invites with PHP and Mailgun

Update, you can use the live application here! http://holidayhangoverhelper.ca/ ===================================== Recently I was tasked with the job of creating an application that would create and send calendar invites to a users email. On the surface it seemed like a very simple build, send an email,…

How to restrict access to wp-admin by IP Address

One of the easiest and quickest way to protect your WordPress admin is to use an .htaccess file to restrict access to a certain IP. To do this use the following code: In your /wp-admin folder, add an .htaccess file with the following in it:…

2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here’s an excerpt: 600 people reached the top of Mt. Everest in 2012. This blog got about 2,100 views in 2012. If every person who reached the top of Mt. Everest viewed…

Facebook JS SDK API – Post Image to Feed

Here’s a little snippet that will post an image to a user’s feed. It’s pretty handy as it shows all the components of using the Facebook Javascript SDK to post to the Facebook API.

Facebook Set Auto Grow – A version that actually works

Edit October 25th, 2013 This is some updated code that I’ve found recently that works a bit better. It can be triggered on load, or on an event. Theres no need for the setTimeout()… code any longer. One the hard things about Facebook App development…

Joomla ‘Pharma’ Hack

One of the more CSI type things I get to do in my job is figure out how servers are compromised. Last week I was tasked with figuring out why a site was listing Pharmaceuticals in Google results. I’ve dealt alot with hacked and compromised servers, but…

WordPress pagination on custom posts

Something I just came across in the WordPress.org forums that I thought would share as it definitely helped me (http://wordpress.org/support/topic/pagination-on-singlephp-causing-301-redirect?replies=9). Let’s say you’ve created a new custom post type, let’s say it’s called ‘fancy-post’. If you want a custom template for all the posts in the…