Archive for April, 2012

http://www.cardealerhub.org another useless ad server

Thursday, April 19th, 2012

Looks like there is another spam server out there this time in the world of auto sales. This morning I received a spam solicitation to claim my listing on www.cardealerhub.org in other words they have ripped of google places, or someone else and put up a directory of car dealers.

Why would one do such a thing, well, for money! Obviously there is not benefit to the site what so ever, other than placing advertising. So, you as a consumer let say you are searching for a used car, and this service pops up to tell you where there are used car dealers… already know where they are, what do they have?

Well, another failed attempt to build a useful tool, keep an eye out for a new auto industry tool, coming in the next couple of weeks!! It’s going to be huge!

Javascript format number function like php number_format

Tuesday, April 10th, 2012

function numFormat(thisNum,dec){
// 133.88888, 2
// like phps format function
if( !thisNum ){ return 0; }
thisNum = thisNum.toString();
var Integer = thisNum.split(“.”);
var Principal = Integer[0];
var Decimal = 0;
if( Integer[1] != ” && dec != 0 ){
Decimal = (Integer[1]).substring(0,(dec*1)); // drop decimal after requested
} else {
Decimal = “”;
}
if( Principal > 1000 ){
Principal = Principal.toString();
if( Principal.length == 4 ){
// xxxx.xxxx => x,xxx.xx
var retStr = Principal[0] + “,” + Principal[1] + Principal[2] + Principal[3];
} else if( Principal.length == 5 ){
var retStr = Principal[0] + Principal[1] + “,” + Principal[2] + Principal[3] + Principal[4];
}
else if( Principal.length == 6 ){
var retStr = Principal[0] + Principal[1] + Principal[2] + “,” + Principal[3] + Principal[4] + Principal[5];
}
else {
retStr = Principal;
}
retStr += ( Decimal != ” ? “.” + Decimal : ” );
return retStr;
} else {
return Integer[0] + “.” + Decimal;
}
}

Creationism Really???

Monday, April 9th, 2012

I can’t believe that NPR was talking about evolution and creationism. More incredible is that 25% of Americans believe that Creationism is real. Come on, even if it is, maybe god made the amoeba and then it evolved. We have sooooooo much proof of evolution even today, that American’s are rediculous that don’t believe evolution.