Yahoo Releases YSlow

July 25th, 2007

YSlow is an add-on for the popular FireBug add-on for the popular browser, FireFox. Confused? :D

It has neat tools to help you to improve your site’s load times, and rates you accordingly. I scored an F on my blog. haha

Check it out: YSlow

BrainBench Certifications

July 21st, 2007

I got an email tonight to take some free online tests. I took a couple, and scored pretty high in many areas, as I expected to, but also got stumped on a couple of the performance related issues (as I rarely deal with them). It’s fun to see how you compare to others who have taken the same test.

You can view my complete transcript here:

Brain Bench Transcript

HTML Programmer Cert

DB Cert

apache config

Getting a Global Array to work in a Function

July 9th, 2007

I recently spent a lot of time debugging this code i was working on for what I thought would be a simple onchange event.

The Issue:
I have sizes and colors, but not all sizes are available in all colors, so onchange of the color select box, i need to load the correct size options select box.

Between a lot of back-end manipulation, I was able to create my front-end JS arrays of colors with the sizes that are available. I ran into the issue that my passed in variable to the function was becoming the array, instead of calling the array.

For example, If I passed in “BLK” for Black, I was getting:


array[0] =>B
array[1] =>L
array[2] =>K
array[N] => undefined

where the Nth options looped through undefined until my for loop for the options of my color box’s length had been reached.

The Solution:
After scratching my head for hours and trying 232132 things, It turns out all I needed to do was to use the eval() function to evaluate my variable first, instead of treating it like a literal string.

Here’s the completed working source:



function popsizes(colorcode) {

var BLK= ["2XL","3XL","4XL","5XL","LG","MD","SM","XL","XS"];
var WH= ["LG","MD"];
// etc, many more color arrays

elem = document.getElementById("selcolor");
sizelist = eval(colorcode);

for (i=0; i<elem .options.length; i++) {
  document.getElementById("selsize").options[i] = new Option(sizelist[i]);
}
}

That script is powered by the onchange event from the form:


<tr>
  <td>
    <select "id="selcolor" name="color" onchange="popsizes(this.options[this.selectedIndex].value);">
      <option value="WH">White</option>
      <option value="BLK">Black</option>
      <option value=""> Many more colors, etc .... </option>
    </select>
  </td>
  <td>
    <select "id="selsize" name="size">
      <option value="">Select Color First</option>
    </select>
  </td>
</tr>

It’s My Birthday, and I’ll post if I want to :)

May 2nd, 2007

It seems like only yesterday that I was sitting in my parents house on a Win3.1 box with 8 MB of ram that cost 5 grand, on AOL v1.0 playing Minesweeper. The reality of it, is that was merely 10 years ago. Computers have changed so much in these past years, and looking back at myself, I too have changed.

While I’d like to think that I’ve become cheaper to own, easier to operate, and can do more things, I think I’d just be kidding myself. At least on the first two.

It’s fun to check your mail on your birthday. Of course, all my friends didn’t send me anything, but every forum I’ve ever registered at did. Half of them, I didn’t even realize I had an account on. I must’ve gotten 30-40 emails from random sites that I don’t even remember registering at.

Perhaps this is a marketing lesson. Send birthday emails out to everyone who hasn’t logged in in over 6 months 4 times a year. Sure, you’ll get the “hey, its not my birthday” responses, but it will remind them that they have an account there, and maybe re-spark an interest that died or slipped the mind.

Anyway, time to party (yeah right, Its 3am on my b-day morning, and i’m working :( ).
27… damn. I’m old :(

-B

The Fall of CPC Advertising, Part Deux: Yahoo buys Right Media

April 30th, 2007

earlier this month, Google announced its purchase of DoubleClick. Today, the news is out that Yahoo has bought Right Media. The fall of CPC advertising is coming soon. :(

The Fall of CPC Advertising

April 13th, 2007

Announced just a few minuets ago, Google has purchased DoubleClick for $3 Billion and change. (Source: NyTimes)

This is a huge buy in many respects, but the one that effects me as a web publisher the most, is that once again, our options for dealing with providers has been literally cut in half.

As you probably noticed on this page, I run Adsense here and on the majority of my sites. Through hard trial and error, its proven to be the best converting provider for me and my content.

Will buying into the CPM and CPA programs be the fall of the CPC focus? I’ve NEVER made good money or conversion rates with CPA offers and ads. In order to secure my income, i need CPC ads to stay popular, and keep the fresh advertisers coming into the Adwords program. If this new buy takes away from the CPC side of things, I may be in for a global shut down as lord knows I cannot afford to pay a $500 server bill every month out of pocket.

Do you think that Google will start to loose focus on its CPC advertising and start putting more effort into CPA? They have already started this with their referrals and products programs through Adsense, and I think that may have been the stepping stone to move away from CPC.

Scripting Around Poor Table Design

January 16th, 2007

We’ve all seen it. Some 3rd party database you’ve inherited from someone else was simply never designed with scalability and portability in mind. There’s no hope to change it, as it will break the original design and thus the original application that it is supporting.
Read the rest of this entry »

Quick SQL Date Functions and Queries

January 12th, 2007

It’s easy to grab the date from a field in a database so long as you saved a timestamp field along with your data row. However, there are often times in developing stored procedures and advanced queries where one needs to look up events in the future, or past based on some other reference point from either the data at hand, or an arbitrary date, such as in a calendar.
Read the rest of this entry »

RFC-32 Date Formatting with Classic ASP

December 22nd, 2006

Tonight I was working on an RSS package for a client of mine. Having dealt with RSS feeds in the past, I figured it wouldn’t be a big deal. However, my experience with them has always been on the ‘receiving’ end of it, imploding out the <item></item>’s and making sense of the xml.

For the most part, setting up the RSS2.0 feed was pretty straight forward. The one thing that took a little time to manipulate was the RFC-32 date/time formatting that RSS Feeds require in order to validate. And we all know how important validation is :)
Read the rest of this entry »

Lightbox and WordPress- The Easy Way

July 30th, 2006

I recently wrote an article on BloggerSkills.com on how to better utilize the Lightbox functions within a WordPress blog. No more manually typing rel=”lightbox” attributes!

read more | digg story