Connection Java with AppHarbour & MySql

In this day i want to share your with how to use the service provide by AppHarbour to connect with a Java App.

“AppHarbor is a fully hosted .NET Platform as a Service. AppHarbor can deploy and scale any standard .NET application to the cloud.” as it declare in their site:

Sin título3

In the site we can use some services for free like a databases in Mysql, MongoDB and SQL Server, but there are a lot of services, there is a free option to use for which is ideal for learning and test the technology.

I try it with Java using it in Jsp pages, to test one of my apps and it works great.

The first thing we need to do is open an account, later create an application and add then install some add-ons, in my case i install a mysql database.

Here is a screenshot of my DB and App. Sin título2

There we can see all what we need to connect with the database in our apps.

Then in our Java Proyect we only need to put the information correctly:

conn= DriverManager.getConnection(“jdbc:mysql://Hostname/Database“, “Username“, “Password“);

Take a special care to put the database data otherwise we cannot connect to the DB.

Sin título3

The best of this service is that we dont need to install another database application in our system and we can test our apps in several enviroments.

I hope this can be usefull for you. See ya and Happy Coding!!!


Dev-Training: Unity Test Tool & Test Runner

Sin título.png

One of the best addition in Unity is the test tools, (in older versions you will need to install it from the asset store) now you need only to go to the windows sectin and click in Test Runner

Here is a simple code for test classes in unity with that tool.

Training-Dev Js+CSS (Section 15): Color RBG Game – How to Generate a Random Color Array

Sin título3

function generateRandomColors(size){
var coloramount= size+1;
var colorR;
var colorG;
var colorB;
var colorFinal;
var colors=[];
for(var i=0; i<size; i++){
colorFinal="rgb("+ colorR +", " + colorG +", " + colorB +")";

return colors;


Unity + XML + Doxygen + Graphviz: Documentation and Views

Sometimes is good to have a good documentation in a proyect specially if you restart a proyect after several month of doing other things, so here is a quick guide, maybe you will need it some day.

XML: In front of any item (class, variable, method, etc), just type “///”. The editor will fill in an XML template and attempt to auto-document the item. You can adjust the comments however you want.

Doxygen: install Doxygen and Jacob Pennock’s Doxygen Unity integration.

Graphviz: install it, after that you need to choose with options do you will need in your proyect, editing the Doxygen file of your proyect.

Configure DOT and Doxygen: The best way to configure, is with the Doxygen GUI frontend:

Start → Programs → doxygen → doxywizard

Click “Expert…” in the Doxygen Wizard and select the tab “Dot”.
Here you need to tell Doxygen that Graphiz has been installed and the path to Graphviz.
Select “HAVE_DOT” and enter the path to the Graphiz binaries.

Sin título3

In the wizard we can configure the options we will need in the proyect.

Remember to add the DOT_PATH and then only runn the program in the RUN seccion of the wizard.

The Result will be something like this:

Sin título2

Sin título

Dev-Training 8-21: Unity – Triggers

Sin título

When the ball enter in the pinSetter box the letter change the color, and the pins are delete

void OnTriggerEnter(Collider other){
     if (other.gameObject.GetComponent<Ball>()) {
           pinText.color =;
          _ballEnteredBox = true; }


Always when we use trigger we need 2 things:

1- Collider

2- Check the box “Trigger”

Sin título



Subir ↑