Friday, February 15, 2013

How to build a racing game - straight roads

Previously we introduced our outrun-style racing game, but how do we get started building a pseudo-3d racing game ? read more at:

Saturday, October 06, 2012

cleaning mac for free

use a software omnidisksweeper it will show you like treesize for windows your largest dirs then just delete what you dont need. (find largest files in mac, find disk size mac)

Sunday, September 23, 2012

great web pages design

http://pages.github.com/ you can publish docs for your application greatly with this!

Monday, September 17, 2012

Javascript variable types

Javascript has two kind of variable types.  primitives and references.
Primitives are stored in the stack as we store the actual value of the variable in the memory cell in the stack.  we know its size, it is fixed, no need for dynamic allocation here.
References types of variables are stored in heap and also in stack, in stack we store the the variable heap memory address - the reference as it has a fixed size.  the actual value which is referenced by the stack memory address is the value of the heap address which is dynamic.

Monday, September 03, 2012

What they didn't tell you about selenium firefox webdriver

i wasted lot of time on this, no need for you to waste as well. i don't know if its specific to my os. (win 2003 unfortunately). but i'm using latest selenium 2.25.0 and nomatter what using FireFoxDriver i continuously got this error while running selenium from java:
org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: XP Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 22:18:01' System info: os.name: 'Windows 2003', os.arch: 'x86', os.version: '5.2', java.version: '1.7.0_03' Driver info: driver.version: FirefoxDriver
now nomatter what i did, updated the system property path for firefox bin, make selenium in a different folder THE ONLY THING THAT WORKED IS THIS: copy Mozilla Firefox into a folder iwth no spaces! like D:\dev\firefox\ now puet d:\dev\firefox in your PATH! THIS WORKED! :)

selenium Failed to start: SocketListener0@0.0.0.0:4444 Exception in thread "main" java.net.BindException: Selenium is already running on port 4444.

08:02:53.269 WARN - Failed to start: SocketListener0@0.0.0.0:4444 Exception in thread "main" java.net.BindException: Selenium is already running on port 4444. Or some other service is. at org.openqa.selenium.server.SeleniumServer.start(SeleniumServer.java:473) at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:281) at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:244) at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:54)
if you get this and you don't see any process capturing port 4444 try this: http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer (might happen when you try to start selenium locally with java -jar)