Skip to content


Reward Your Regular Readers - Skip The Ads

Now I know you’ve read about this and it’s usually a good idea: concentrate most of your ads on your older posts and hide ads from your regular visitors. I mean, they come here everyday, reward them with a little bit of clean content.

But also, if you’re like me, you’re lazy and haven’t gotten around to coding this yet. Well here you go, a Wordpress plugin that I’ve stumbled upon: Who See’s Ads?.

First of all, you can display anything in these blocks: HTML, JavaScript, even PHP. The ad blocks are controlled by certain contexts. It’s a lil’ bit like coding if you think about it. You still a bunch of if statements together to determine whether or not your content is displayed. These include:

  • Regular visitors - Which you can define by those who’ve viewed your content a certain number of times within a certain period (eg. twice in 10 days).
  • Coming from search engine - Self explanatory I hope.
  • Posts older than a defined number of days
  • Logged in visitors
  • Between a particular date period
  • If the ad was viewed a certain number of times - You could set and expiration duration

Posted in General.


Review: StaticPageBuilder

Introduction

These guys make it a point of duty to try their hardest to follow Google’s Webmaster Guidelines to drive traffic. Who benefits from this service? Based on the name of this service, you can see that it’s not for your average blogger. This service will benefit folks with eCommerce sites or some other type of static content.

They specialize in SEO for static pages. They use targeted key words, to help you build key word rich content for your website to drive the most traffic to it.

Design

As I do with every site I review, I have to give my commentary on their web design. At first, it struck me as relatively cool, even a lil’ Web 2.0 (ish). There are some nice Web 2.0 buttons, a basic logo with some reflections. But then I looked at the source and was gravely disappointed by the number of tables there were.

Conclusion

This is a fairly new search engine optimization company, give them a try and let me know what you think. At $0.10 per static page, what do you have to lose?

Sponsored Post

Posted in Sponsored Post.


Give Me 15 Minutes and I’ll Make You A jQuery Expert

Introduction

jQuery - Write Less, Do MoreIn the spirit of rapid web development, I’ve stumbled upon jQuery. Here’s a testimonial from a jQuery user:

You start with 10 lines of jQuery that would have been 20 lines of tedious DOM JavaScript. By the time you are done it’s down to two or three lines and it couldn’t get any shorter unless it read your mind.”

In my experience it’s been more like five (5) lines of jQuery.

jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.

I’ve found jQuery great for the following reasons:

  • Simple Ajax in a breeze
  • Search for elements in the DOM is made easy
  • The helper function [ $() ] is a pleasure to use
  • Most importantly: it handles cross browser compatibility.

Here We Go - Tutorials Galore

Your first step will be to Download jQuery 1.2.1 and include it in the head of your web page. After this you need to start reading some tutorials. Don’t worry, it’s going to take 15 minutes tops for you to start writing usable code:

Posted in Ajax, CakePHP, JavaScript.


I Hate Internet Explorer With A Passion

I jsut realized that my brand new Wordpress theme sucks in Internet Explorer 7. My footer doesn’t show up, and my sidebar is all the way to the bottom.

I remember when I first started with this them, I went through the whole cross browser thing and everything looked fine. I tweaked everything to my liking and was satisfied. Now I have to go backwards, one element at a time and try to isolate which tweak, new content, post, or plugin that has caused this to happen.

Or I may just find a new theme. But in the mean while, I’ll continue hating IE. Why doesn’t stuff just work as it’s supposed to?

 I realized this problem at the worst possible time, Monday morning at 1:41AM, so who knows when I’ll get to it.

Posted in General, Work.


Web Development 2.0 Carnival - September 8, 2007

I am proud to present the first edition of Carnival of Web Development 2.0. This is my first time hosting one of these things, so enjoy:

General

  1. Doug Boude presents DEMYSTIFYING JSON posted at Doug Boude (rhymes with ‘loud’)
  2. sylv3rblade presents Stages of Software Development posted at Atma Xplorer, saying, “My take on the process of software development”
  3. prakash presents A2Z Informative-Technology, Software, Internet, Tips, Ideas posted at A2Z Informative, saying, “Identifying the color code of an image on the screen is not an easy task. Usually it involves a multi step process and is time consuming. But this tool is able to find out HTML, RGB or HEX color of any pixel on the screen with just a single mouse click. This little tool is very useful for webmasters.”
  4. Thorsten Ott presents Sourcebench - freelancer sites reviews posted at Sourcebench - building a better web.
  5. Scott H presents 15 Web Sites College Students Can’t Live Without posted at College and Finance, saying, “Not specifically about design, but has a great list of web sites students love, including StumbleUpon which, in terms of developing a web site, can be quite useful.”

Posted in Carnival, General, JavaScript, MySQL, PHP.


The Secret of CakePHP Advanced Routing - Even Better URLs

The power of CakePHP has a lot to do with conventions. The framework (like many others) harnesses its power by enforcing certain conventions and standards that users must follow. You name your database tables, file names, etc; a particular way and boom, models, views and controllers are automatically created and ready for use. This is the beauty of the MVC structure. Your URLs also follow thing structure: www.site.com/controller/action/params.

Straying From Convention

But sometimes, conventions suck. Sometimes you want greater control over things, but still don’t wanna do them from scratch. The strictness of the MVC structure dictates how your URLs will look. Consider this: CakePHP has a basic pages controller, which you can use when you don’t need a model or controller. You just enter the view and voilà , a page. But your pages have a URL of:

www.site.com/pages/page

Wouldn’t you rather:

www.site.com/page.htm

The Routes Configuration examples in the CakePHP manual are a bit simple. Here’s how to use a bit more advanced routing:

Router::connect('/(.*).htm', array('controller' => 'pages', 'action' => 'display'));

This says, consider everything that comes in with an HTM extension and send the URL as a parameter to the display action on the pages controller.

The idea was stolen from Lumad CMS. They use the following in Rewrite in .htaccess for their pages:

RewriteRule ^~(.*) content_pages/displayurl/$1 [L]
They use a prefix of ‘~’ instead of a suffix of ‘.htm’, but you get the picture. I’m sorry to disappoint you, I’m not as creative as you thought.

Posted in CakePHP, PHP, SEO.


XAMPP Lite on USB Disk - Benchmark PHP and MySQL by Slowing Down Your Server

To develop PHP and MySQL on a Windows machine, I usually use WAMP. I had tried XAMPP before, but I found that it was a bit bloated, with the OpenSSL and FTP Server, etc. So WAMP it was. But lately, I decided to give XAMPP another try and I like what I’ve got so far.

XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start.For the past three weekends, I’ve been away from my personal computer. The only life line I’ve had is my stock of Portable Apps on my 512MB USB disk. So I’ve been neglecting a few projects lately. But all of this has changed as of Friday. I’ve discovered XAMPP Lite. It’s just what it says it is, a Lite version of XAMPP. The beauty of this is that it can also run from a USB disk. There’s no install required. So partnered with XAMPP Lite, Mozilla Firefox, Portable Edition, NotePad++ Portable, and, FileZilla Portable I can take my development on the road to anywhere I can stick in my USB disk.

Posted in CakePHP, MySQL, PHP.


CakePHP Installation Guide: Just Add Water and 2 Medium Eggs

Introduction

As you guys know, I’ve recently discovered the marvels of rapid web development with CakePHP. This shall be the first in a long serious of CakePHP related material coming from me since I’ve now veered off on a slightly different focus.

After a short analysis, I’ve picked CakePHP as my framework of choice. I’ve been struggling through it for a few months now, but it’s by far better than the alternative of coding by hand (Yeah, I know I’m lazy). I’ve struggled through it so that you don’t have to.

Downloading - Stable or Alpha Version

Step one is downloading CakePHP. The first problem that you’ll run into is that there are two (2) versions to pick from: Stable 1.1 and Alpha 1.2. When I first started out, I needed to use CakePHP for a project instantly, so I decided to with the stable version because the word alpha scared me a little bit. I mean, it’s not even beta yet.

Posted in CakePHP, MySQL, PHP.