Archive for February, 2012

JavaScript to Calculate the angle between two points in degrees

Posted in Geekdom, Programing, Web Development on February 19th, 2012 by Jarred – Comments Off on JavaScript to Calculate the angle between two points in degrees

Quick little snippet here for later reference (Yeah this one took me a bit to figure out).  The below function will return the angle between two points and return it in degrees from 0-360.



		function calcAngle(x1, x2, y1, y2)
		calcAngle = Math.atan2(x1-x2,y1-y2)*(180/Math.PI);	
		if(calcAngle < 0)	
		calcAngle = Math.abs(calcAngle);
		calcAngle = 360 - calcAngle;		
		return calcAngle;





HTML5 Game Portal Completed

Posted in Entrepreneurship, Web Development on February 16th, 2012 by Jarred – 1 Comment

At long last I have finally finished my HTML5 game portal. You can find it here. I have been working on it for about 8 or 9 months and I think it is finally ready to go! I included a unique ranking system that hopefully will improve the user experience. This is the first website that I have done that is data base driven, so it took me a bit longer to figure that out. I am hoping that it will be a good way to promote my future HTML5 games. If you are trying to promote an HTML5 game, please visit the site and submit your game

Universal AJAX function

Posted in Geekdom, Programing, Web Development on February 13th, 2012 by Jarred – 1 Comment

Here is my universal AJAX function. I am posting it here for reference. Over the months I have adapted/revised this function and now have finally gotten it to do pretty much what I want it. I did not write all of this myself I pulled most of it off of somewhere, but I can not remember so I can not give proper credit. Let me know if you have any suggestions on how to improve it.


// ******************************************************
// Universal Ajax Function
// Useage Example:  universalAJAX('', "var1=true&var2=false", functionWhenDone, functionWhenWaiting, functionWhenFail);
// ******************************************************

function universalAJAX(URL, DataToSend, doneFunction, waitingFunction, errorFunction)

var json_http;
if (window.XMLHttpRequest)
{json_http=new XMLHttpRequest();}
{json_http=new ActiveXObject("Microsoft.XMLHTTP");}

   if (json_http.readyState==1)
  if (json_http.readyState==4 && json_http.status==200)
	if (json_http.status==200)
  json_http.setRequestHeader("Content-type", "application/x-www-form-urlencoded")

  var timeOutVarCancel=setTimeout(errorFunction,10000);

2/12 Update

Posted in Entrepreneurship on February 10th, 2012 by Jarred – 1 Comment

Well, good news is I got my first Google Adsense check in the mail today, bad news is it took me several years to earn up to the minimum $100 payout. 🙁 Looking to my little chart on the right of how my income compares to how much time I have invested in this project and how little money I have made, it really is quite depressing. I have some news for anyone who whats to make easy money off of the internet – “Don’t quit your day job”. I don’t know what I am doing so wrong, but every one of my projects has an initially burst of visits and then gradually tapers off. I have spent a lot of time this past month updating my Asteroids Inc game to be submitted to a HTML5 contest where the first prize pays out $30,000. I have my hopes up, but realistically it is unlikely that will pay out. I still have an HTML5 portal I am about 75% done with that should be released here in a few weeks which I am hopeful for as well, but I guess in truth I am feeling a little defeated.

Moving forward, I guess I need to seriously look into other various forms of monetization. I bet that might help my overall income from this project. Finishing the new HTML5 portal also just may be a good priority which could add a lot of traffic and give me a place to promote my game.

Things are definitely looking down income wise (and morale wise), but this is my dream, and I am going to see this one through to the end.

Hints for how to Install Adobe Photoshop 7 on Windows 7 (64-Bit)

Posted in Geekdom on February 1st, 2012 by Jarred – Comments Off on Hints for how to Install Adobe Photoshop 7 on Windows 7 (64-Bit)

Turns out installing photoshop 7 from the cd on a 64 bit windows is possible, but it is kind of buggy. Do a quick search on google and you will find it is a common problem. For a while I was stumped and had to live without my vintage photoshop, however I was finally able to get it to install. How I got it to work was I had to unhook all my monitors except my primary display, and then run the install program in compatibility mode (windows XP), and boom, it installed no problem. I don’t know if this will work for/help everyone, but prior to doing this the program would not install.