Jump to content

View more

The Code Zone Bargain Basement Blog

4: Adsense

A couple of minor changes

First off, the Google Checkout issue is fixed. The site should be in the pink again.



Second, I made a couple of changes to the look. The old Flash-based menu has been replaced with a shiny new standards-compliant HTML menu. The old one worked, but it gave the HTML purists fits.



Note that HTML menus tend to give some browsers fits (much like the Flash...

Google checkout issues

Looks like my shared SSL certificate is expired. Fortunately for me, all that affects is Google Checkout. As it stands, I'll be fulfilling any google checkout orders by hand until that issue is resolved. My service provider is aware of the issue and is working to fix it.



Thanks for your...

Handy piece of code

Here's a quick-n-simple piece of AS3 (or Javascript) that calculates the point on a line closest to a given point. It took me a couple of tries to get it right, so I figured I would share it.



var nearestPtToLine = function(segA:Point, segB:Point, p:Point, infinite:Boolean = true):Point

{

var dx:Number = segB.x - segA.x

var dy:Number = segB.y -...

Handy piece of code

Here's a quick-n-simple piece of AS3 (or javascript) that calculates the point on a line closest to a given point. It took me a couple of tries to get it right, so I figured I would share it.

var nearestPtToLine = function(segA:Point, segB:Point, p:Point, infinite:Boolean = true):Point
{
var dx:Number = segB.x - segA.x
var dy:Number = segB.y -...