HolisticNetworking.Net: Thomas Belknap's Laboratory of LAMP

Thomas J Belknap’s Laboratory of LAMP

 

SyntaxHighlighter Evolved

I’m a big fan of Viper007Bond’s plugins, so when I saw he was releasing a new version of his SyntaxHighlighter, I had to give it a go. Especially for this website, it’s always been a challenge to find just the right code highlighter to properly display my code. What follows is an experiment with the new plugin, based on some CakePHP code I’ve been working on.

<?php
class MetrosController extends AppController {

var $name = ‘Metros’;
var $helpers = array(‘Form’);
var $components = array(‘Uuid’, ‘Cookie’);
var $uses = array(‘Metro’, ‘Pothole’, ‘Town’);

// Cookies:
var $cookieName = ‘PHpatrol’;
var $cookieKey = ‘has82js737hak2′;
var $cookieDomain;
// Add domain name dynamically:
function __construct() [...]

Using Ping.FM as a Job Search Tool

I’m just playing around with hooking up Ping.FM to my blog so that I can update my Twitter, del.icio.us and LinkedIn profiles with the latest from the blog. It’s a good idea to keep recruiters and hiring managers abreast of the things you’re doing and saying on your professional blog. That way, they see your name and associate it with what you do.
It’s just one more way to keep your name fresh in the minds of those people who may be able to help you further your career.

Creepy Uncle Google’s AdSense Plan

I can’t imagine how much worse this could possibly be. Google’s new plan, announced on it’s AdSense blog, is to allow it’s widgets to read site user’s cookies and advertise to them based on their browsing preferences. To restate: visitors to your website will have their cookies read by a third party and then they will see ads based on their own search history rather than your website’s content.
Let’s walk through the reasons that this is a bad idea:
Site Content Integrity
While its certainly true that Google’s AdSense ads very often make almost no sense to your site’s content [...]

Error: Database table ts for model className was not found.

OK, I’m playing around with CakePHP and have been banging my head against a wall trying to figure out the error message which is the title of this post. For the benefit of those who come after me, let me explain what I’ve been doing wrong:
The problem was the models I was using. In my haste to get some drudge work out of the way quickly, I setup one of my models and – assuming I had done it correctly – copied and pasted for all my other models, changing the specifics as needed but basically assuming the [...]