Two Peas in a Pod
12Aug/100

Best Method for Email Obfuscation?

email_obfuscator

I came across this great tutorial from Perishable Press that demonstrates some really cool methods for E-Mail Obfuscation - that is the concealment of intended meaning in communication, or making an e-mail address unreadable to spambot farmers.  I will be added this method to my collection of neat and handy tools.

Best Method for Email Obfuscation? • Perishable Press

31Jul/100

ColdFusion 9 running on Apache using WampServer

ColdFusion-9-Logo-drop-shadow

I have created a detailed step-by-step to help you setup Adobe ColdFusion on a Windows machine using WampServer with Apache as the web server.

This is what I use for a development environment, and I completely recommend this to you if you are a ColdFusion Developer in need of a development environment and want to move away from Microsoft Internet Information Server (IIS).

https://docs.google.com/document/pub?id=1HqFDs6j_-2VCg7x4Y8X-T9wtJa2S9latFNN1_6EU6Ys

Please let me know if you have any questions.  Thanks!

15Apr/100

My First AIR App – F1 Standings

adobe_air_realin

AIR, the Adobe Integrated Runtime, is part of the Adobe Flash platform that allows you to build and deploy a RIA (Rich Internet application) that will work the same whether you are on a Windows 7 machine, Windows XP, Apple Mac, and hopefully soon, the Android mobile phone platform.

This evening I decided to investigate AIR development a little, and I have created my first AIR App.  I have named it "F1 Standings" as that is exactly what it is.  Displays the current Formula 1 Driver and Team Standings.

You can download it here.  You will need to install Adobe AIR to run this app.

Basically this app fires off an AJAX call to my home CF8 server where the data is gathered for either the Driver Standings or Team Standings, and then that process returns the data to the app, displaying the data on the screen.

Please comment with your feed back, and YES I know this is a very simply app.  It's meant to be!

Tagged as: No Comments
6Apr/100

Force WordPress to use the Latest Version of jQuery

I was looking for a way to override the default version of jQuery that is being used in WordPress 2.9x and I came across this article that explains how to do this.

It doesn't say in the article where you place this function, but I figured that I'd slide it into the functions.php in my active theme and this did the trick.

Read the full article and get the code here Force WordPress to use the Latest Version of jQuery | bavotasan.com.

Tagged as: No Comments
9Aug/090

Strange Behavior with WordPress Pagination, Fix

I was creating a custom theme for a website that I work on - www.f1weekly.com - and I was getting some strange behavior with the default WordPress pagination.

Using the standard code, as found in the "default" theme included with WordPress, I used the following code to create my pagination links in my templates:

 

<div class="navigation">
<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>

Suddenly I noticed that I was getting some strange results happening with the pagination links. Below is an example:

On a category page like http://www.f1weekly.com/category/podcasts/ the pagination to the second page should be http://www.f1weekly.com/category/podcasts/page/2/ but all my pagination links where going to http://www.f1weekly.com/page/2/ - which is the link for the second page of all posts, like the links on the home page.

This was driving me mad, and I just couldn't figure it out.  I even rebuilt the theme from scratch.  Still no dice, but it did work correctly when I was loading the "default" theme.

So, I did a comparison of the code I had in my header.php template against the "default" theme header.php.  I had additional JavaScript files link, some additional CSS files linked, and some other code such as Google Webmaster Tools verification Meta tags.

On review of the code, nothing jumped out at me.  So I started again, this time removing anything that I had which the "default" theme did not.  Suddenly the pagination worked like it should.  Success!  Well sort of...

Now I started to add in my extra code one line at a time.  Still working... until I got to the following:

 

<? if($_server['REQUEST_URI'] == "/"){ ?>
<script src="/scripts/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="/scripts/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<? } ?>

This code was there to only output the Adobe Spry TabbedPanels code on the home page, but this PHP condition was somehow re-setting something that was causing my pagination nightmare.  I have since removed this and I am simply including the SpryTabbedPanels.js and SpryTabbedPanels.css on all pages.  The offset of having those files load on all pages, whether or not they are needed, beats not having working navigation.

My thanks on this fix goes out to Eric Baker, as he gave a helping hand on this one!

 

Tagged as: , No Comments