Unbeatable Tic Tac Toe – Rule Based Algorithms

May 19, 2015

Continuing my work with Java, recently, I developed an unbeatable Tic Tac Toe game in Java.

Tic Tac Toe Tie Game

Tic Tac Toe Tie Game

While you can find many such programs online, I think that I’m the only person to create the kinds of algorithms I have.

Coming from a database background, I implemented a number of database like structures in memory. An array list of remaining cells. A Decision Table. And a lookup table for intersections of runs.

Here’s how I did it.

——-

Many Event Handlers:

Read the rest of this entry »


Java error: non-static method cannot be referenced from a static context

April 16, 2015

Recently, while writing a java program, I got the classic Java error:
non-static method cannot be referenced from a static context.

No doubt, other young java practitioners have had this error.

Here, I’ve laid out a simple program, with explanations, so that you can avoid the problem. Voila: Read the rest of this entry »


Installing NEO4J on Windows 7

November 7, 2014

Installing and running NEO4J on Windows is a little different from installing it on Linux.

NEO4J has provided two options to install NEO4J on Windows. One version of NEO4J is a dumbed down version that includes the necessary Java, that comes bundled in an .EXE file. The other Windows version comes in a .ZIP file that more closely resembles a Linux installation.

With NEO4J on Linux, a correct version of the Java JDK/SDK is assumed to be installed, but not so on Windows. Java JDK/SDK installations do have a certain learning curve, and required reading, not suitable for some users.

And then there is Java licensing. Apparently, it’s ok to bundle to Java with an executable file. But it’s not ok for Neo4j to redistribute the correct Java JDK/SDK on NEO4J’s download page, and allow users to download it.

If you are serious about NEO4J, you’ll probably want to use the full blown Windows .ZIP version. For one thing, it follows the standard paradigm and navigation. You’ll get the full functionality. And, it’s not that difficult to use. Read the rest of this entry »


Installing Talend Open Studio For Big Data 5.5.1 on Redhat 6.4

September 20, 2014

Recently, Talend Open Studio For Big Data was recommended for me, so I thought I’d try it out.

But as I’ve so often encountered with Java on Linux, the install was a long process, full of java error stacks, google searches, research, trial and error, debugging, forum posts, and so on. Sigh, not again!

Here’s what I did to get Talend Big Data to install and work.  Big errors I encountered are detailed at the bottom.

 

Talend Open Studio 5.5.1

Talend Open Studio 5.5.1

 

Download Talend Big Data Software:

Read the rest of this entry »


Installing Gephi On 64 bit Machines

July 8, 2013

The instructions for installing Gephi can be found at:

https://gephi.org/users/install/

They seem simple enough. But I found out that on a 64 bit server, it’s really important that you have a full 64/64/64 bit combination. That represents the operating system, Java, and Gephi. Here are some hints to get it right.


Java
:

Be sure to download the right java file.   Read the rest of this entry »


Installing Oracle Applications R12 On Windows 7

March 15, 2013

Oracle Applications R12 is not certified for installation on Windows 7. The reason seems to be that Apps wants to be on a server that can do lots with domains. This is problematic or not possible with Windows 7, but easily accomplished with Windows Server 2003 or 2008.

But a few years ago, I managed to install Apps on Windows XP, even though XP is not certified either. So, why not Windows 7?

Read the rest of this entry »


What Version of Weblogic Is It?

January 28, 2012

Ever wonder what version of weblogic is on your server? Here is how to find out.

————-

First, set the environment variables in $DOMAIN_HOME

Read the rest of this entry »