Archive for September, 2009

Rusty Javascript

Today I was having a total brain fart on my javascript abilities. So after some nifty google searching I was able to refresh my memory. If I’ve forgotten I’m sure you will too.

Declare A String

var result = new String(“my text goes in here”);

Substring Function

result.substring(0, 3); //pulls the first 3 characters off the string

Find All Child Field Of A DIV Layer

var children = document.getElementById(“div_id_here”).childNodes;

For Each Loop

for (var i in children) {
alert(children[i]);
}

Is Numeric Check

if (!isNAN(document.getElementById(“div_id_here”).value))
alert (“This really is a number!”);

Add comment September 22, 2009

Upcoming Programming Competitions – Win Big

Oct 3rd -4th: Wild Pocket Team Programming Competition – Pittsburgh & Harrisburg, PA. $2,500 to the best game.

July 1st – October 5th: IGDA Unreal Engine 3 Level Design Contest – Finalists get $50,000 and a demo at the South Miami, FL Infinite Bits Conventions.

Add comment September 21, 2009

Awesome Firefox Addons For Programmers

If you’re writing any kind of web-based program then these addons are for you as well. I use these pretty much every week, sometimes every day. Firefox is my browser of choice because it’s the most compliant so far and passes the ACID 2 and since it’s new update, nearly passes the ACID 3 test. Way to go Firefox!!

Web Developer – display information about the forms, view CSS info, highlight tables, clear sessions and so much more. By far my favorite.

Bottom Error Console – having the error console popup and then disapper any time you click on a page is flipping annoying. This saves you the time and trouble. Just click on it to show/hide the error console at the bottom of your screen.

Firebug Addon – edit, debug and monitor Javascript and CSS live.

Colorzilla – for all the times you wondered, what the hell color is that?!? Now you don’t have to take a screenshot and pull the color into a graphics program or lookup the color in the stylesheet (if you can). Now simply click on the eyedropper and the HEX code for the color shows up in your status bar.

SQL Injection – checks to see where you have vulnerable SQL injection fields/scripts in your forms.

SQL Inject Me – another SQL injection script that may find vulnerabilities the other one didn’t.

IE Net Render – Re-render your URL using IE standards right inside of Firefox. Now you don’t have to open another browser to see how messed up your CSS is in IE.

LoremTools – Copy Lorem text to your clipboard so you can paste filler text.

Add comment September 17, 2009

Previous Posts


Cool Sites

Free Code

Game Developer

Game Engines

Game Jobs

Music & Sound

Second Life

Sprites

Lost In Oblivion

September 2009
M T W T F S S
« Aug   Oct »
 123456
78910111213
14151617181920
21222324252627
282930  

Top Posts

Recent Posts

Archives

Feeds