Uncategorized

## Project Euler Problem 17

I’ve been having some fun doing the first few problems of Project Euler and figured I’d share my solution to problem 17 here. The Problem If the numbers 1 to 5 are written out in words:…

Uncategorized

## How do I perform integer division in PHP

PHP’s division operator returns a floating point result from the division operator unless both operands are integers and they are evenly divisible (the result is an integer). I was recently working on Project Euler Problem 13…

Uncategorized

## Project Euler Problem 10

I’ve been having some fun doing the first few problems of Project Euler and figured I’d share my solution to problem 10 here. The Problem The sum of the primes below 10 is 2 + 3…

Uncategorized

## Project Euler Problem 9

I’ve been having some fun doing the first few problems of Project Euler and figured I’d share my solution to problem 9 here. The Problem A Pythagorean triplet is a set of three natural numbers, a…

Uncategorized

## Removing more WordPress Meta tags

If you have a relatively new installation of wordpress you will notice there are a bunch of meta tags in the source that are not that common to see. “Which ones do I need?” I thought….

Wordpress

## Canonical URLs: How to Disable in WordPress

Canonical URL tags help eliminate self-created duplicate content in the index, which is an important addition to good SEO practices. In the newer version of wordpress (version 2.9+) they included and canonical URL function. Since any…

Uncategorized

## Project Euler Problem 7

I mentioned yesterday, I’ve been doing the first few problems of Project Euler and figured I’d share my solution to problem 7 here. The Problem By listing the first six prime numbers: 2, 3, 5, 7,…

Uncategorized

## Project Euler Problem 6

I mentioned yesterday, I’ve been doing the first few problems of Project Euler and figured I’d share my solution to problem 6 here. The Problem Find the difference between the sum of the squares of the…

Uncategorized

## Project Euler Problem 5

I’ve been having some fun doing the first few problems of Project Euler and figured I’d share my solution to problem 5 here. The Problem 2520 is the smallest number that can be divided by each…

Uncategorized

## “mysql_connect(): [2002] No such file or directory” error on Apple OS

I ran into a problem setting up a php framework on a Mac Mini. Once I thought I had everything configured I found this error: “Warning:mysql_connect(): [2002] No such file or directory” I went and rechecked…

Uncategorized

## How do I iterate through recently modified posts in WordPress?

I have a client who has a WordPress installation with thousands of pages. There are a couple things wrong with this, mainly relating to speed and editing practicality. It’s also an issue to find pages because…

Uncategorized

## CSS: Anchor Tag and Hidden Overflow

Having an anchor within a div that has the overflow attribute set to ‘hidden’ via applying the equal height column method creates a unique problem. When selecting an anchor, the columns get “chopped off” at the top…

jQuery / Javascript

## Using FancyBox to display an element’s dynamic content

I’ve been trying to find a nice modal/lightbox for jquery and I was recommended FancyBox. But what I needed it for was not wholly described in their examples. I needed to get some json from an…

Uncategorized

## What is the E-Myth

The E-Myth is a myth in the country that people start businesses because they are entrepreneurs. That is, they start businesses to take on risk in order to make capital. According to Michael Gerber, the real…