Skip to content


Enter CakePHP - Rapid Development Framework - No Really!

Almost two months ago I mentioned that I was looking into some PHP Frameworks I must say, that I’ve procrastinated with the whole thing. Since then I’ve caught up on a few. A friend of mine tried introducing me to Code Igniter framework. I didn’t really get a good feel for it. He mentioned that it was more powerful and flexible, but I’m lazy, so I was looking for a lazy man PHP Framework.

Enter CakePHP

Here’s a bit of background. I know you’ve heard of Ruby on Rails (RoR). I mean who hasn’t? Well, I’m one of those guys who never paid it much mind, and for that I was wrong :). RoR introduces the MVC model: Model-View-Controller pattern. What these Frameworks do is bring this pattern to the PHP platform and I love them for it.

CakePHP is a bit simpler than Code Igniter at first, so that’s what drew me to it. However, this weekend I stumbled upon the Baking capability of CakePHP and I was hooked. I have an upcoming project, which I’ve decided to use CakePHP on. I will keep you posted on how things go.

This is what helped me make my decision: CodeIgniter vs. CakePHP

Posted in CakePHP, PHP.


Information Overload

Ok,

This weekend has been kind of rough in terms of information. I’ve been playing with a lot of new toys (CakePHP, AutoHotKey, ScriptALicious) so my brain is kind of fried right now. I promise, I’ll report when I sort things out.

Posted in General.


How To Make PayPerPost and Google Adsense Play Nice - MightyAdsense Plugin Hack

MightyAdsense - Automatically Inject Ads

The MightyAdsense Plugin has many useful options. You can store up to 10 different sets of ads for various locations on your blog. You can insert them into your template by calling one simple function instead of having to paste entire code snippets for the ads. Since all your code for the ads are stored in Wordpress, it makes changing the format of an ad a breeze.

But here’s where the magic comes in. You can chose certain ads to be automatically inserted into posts and pages. One your homepage, category list, etc; where you list many different posts on one page, you can chose to insert specific ads into certain ads on the page. Namely the first, second, and third posts. This is the set up I have for my first post:

ad_post_1.png

The second post I leave blank, but have the following on the third:
ad_post_3.png

Now this is what I have on every page/post:ad_post.png

PayPerPost Says No Ads

PayPerPost has recently modified their Terms of Service:

Inline Ads and Links. There are to be no third party links, ads or other detractors located within the sponsored post.

Posted in Blog, Money, PHP.


Steal Browser History with SpyJax

Ever wanted to find out what your users have been up to before they came to your site? Yep, you now have that power. I can see that little twinkle in your eyes now. You’re thinking that this is just insane and you can only imagine the power that now lies at your fingertips. Well, it’s not that easy.

How It Works

First of all, stop freaking out. We’re not exactly stealing your browser’s history. We’re doing a bit of guessing. It can only be run against a defined list of sites. This means that you can only check whether someone has visited a site, say Disney.com, but you can’t ask their browser for a list of the sites they’ve visited. That information is still kept confidential by the browser.

What we do is use some JavaScript to check the color of the links on a page. Ahhh, I see the lil’ light bulb going on over your head right now. Yep folks, that’s all. Nothing fancy. So rest at ease, your browser history is safe for the most part.

SpyJax: Go check it out, and figure out how to stop it, or at least limit the way people use it on you.

Posted in Ajax, JavaScript.


Web 2.0 Buttons On The Fly

Now I’ve never really been a Photoshop guy. I just don’t have an eye for that stuff, even if it may be very basic. What’s my solution? My Cool Button. This service allows you to created, not to bad if I do say so myself, Web 2.0 buttons on the fly.

A lil’ PHP and GD2 sure does go a long way these days.

Posted in Ajax, CSS, General, PHP.


Major Hosting Issues

Lately, I’ve been having some issues with me web host. It’s just been crawling lately with a lot of outages. Also, my apologies for the lack of posts, but along with these host problems, I’ve been having my own PC problems also.

It seems like right now computers on a whole don’t really like me. But I promise, I’ll be with you guys soon.

Stay tuned!

Posted in General.


Wordpress Widgets

Now I know I’m late, very late. But I finally decided to find out what all the fuss was about. The great thing about Widgets is that you can drag them all over the place. Of course, they are made for the sidebar, but you can reorder them however you like or just remove them. And the great thing is removing doesn’t mean deleting. They are there to be reused at your whim and fancy. Here is an example of what Widgets can do for you:Wordpress Widgets

Widgets are, however, a bit awkward to design. A lot of plugins these days come with widgets built in, but there are those that don’t. For these, it’s a bit of a pain to use.

For this purpose we have the King Text + PHP Widget Plugin. This plugin enables you to define empty plugins that you can paste text, HTML, or even PHP into.

I’ve converted all of my blogs (except this one :)) to use Widgets. It takes a bit of time to set up, at first, but the flexibility they offer you is just great.

Posted in Blog.


Google Analytics Upgrade - They’ve Done It Again

Google has upgraded their beautiful and free Google Analytics for tracking traffic on your website. It’s all flash and beautiful.

There are a lot of new features that I haven’t yet investigated, but what I do know, is that it’s pretty, lol.

google_analytic.jpg

Just one thing to note however, I can’t seem to find the place where they have average visits. You know, the average number of visits per day? In all the adding of new stuff tehy must have overlooked it guess.

Read More:

Posted in General.