<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Zekkocho.com</title>
<description>Developers Resource</description>
<link>http://www.zekkocho.com</link>
<lastBuildDate>Sun, 20 May 2012 09:49:06 -0400</lastBuildDate>
<generator>Zekkocho Latest Articles</generator>
<item>
<title>Java Multi-threading, Synchronization</title>
<link>http://www.zekkocho.com/java/95</link>
<guide>http://www.zekkocho.com/java/95</guide>
<pubDate>Mon, 18 Apr 2011 03:28:41 -0400</pubDate>
<description>
This example demonstrates a multi-threaded program that must share a resource between threads.
Each thread will be required to obtain an exclusive lock on the shared resource to avoid a potentially disastrous conflict.



We will create two threads, one called MissileFactory and one called MissileLauncher.



The...</description>
</item>
<item>
<title>Java: Serialization, Number, Date and Currency Formatting</title>
<link>http://www.zekkocho.com/java/94</link>
<guide>http://www.zekkocho.com/java/94</guide>
<pubDate>Mon, 11 Apr 2011 23:47:44 -0400</pubDate>
<description>
The following class demonstrates the use of Java's Format, Number, Date and Locale classes (util.*, text.*).  It also shows how to serialize and de-serialize and object by implementing the Serializable interface (io.*).



Item.java



//Demonstrates:
//Serialization, 
//Number/Currency Formatting,...</description>
</item>
<item>
<title>Java: Pattern, Matcher and Regex</title>
<link>http://www.zekkocho.com/java/93</link>
<guide>http://www.zekkocho.com/java/93</guide>
<pubDate>Mon, 11 Apr 2011 23:42:14 -0400</pubDate>
<description>
The following class demonstrates basic use of Java's Pattern and Matcher class by adding the rel attribute 'nofollow' to the anchor tags of several links.



*Note, this is for educational purposes only. Pattern, Matcher and Regex are NOT ideal for manipulating HTML in Java.



NoFollow.java



//Adds...</description>
</item>
<item>
<title>Connect to Database with JDBC, Singleton</title>
<link>http://www.zekkocho.com/java/91</link>
<guide>http://www.zekkocho.com/java/91</guide>
<pubDate>Tue, 05 Apr 2011 03:20:28 -0400</pubDate>
<description>
This example shows how to connect to, and query, a MySQL database in Java using JDBC.



The example will attempt to implement the singleton design pattern.  The singleton design pattern restricts the instantiation of a class to one object.



First get a copy of the MySQL JDBC driver at: http://www.mysql.com/downloads/connector/j/



Extract...</description>
</item>
<item>
<title>Javascript Dynamic Tables</title>
<link>http://www.zekkocho.com/javascript/90</link>
<guide>http://www.zekkocho.com/javascript/90</guide>
<pubDate>Thu, 17 Mar 2011 19:17:00 -0400</pubDate>
<description>

function addCol(table){

	var table = document.getElementById(table);		

	var th = document.createElement('th');

	th.innerHTML = "";	

	table.rows[0].appendChild(th);

	for(i=1; i</description>
</item>
<item>
<title>MySQL Union</title>
<link>http://www.zekkocho.com/sql/89</link>
<guide>http://www.zekkocho.com/sql/89</guide>
<pubDate>Mon, 14 Mar 2011 23:14:04 -0400</pubDate>
<description>

A UNION is used to combine the result sets of multiple queries into one result set.
  The queries that are being combined may come from any table, but must have two similarities in order to be combined.



The queries must return the same number of fields.  If the number of fields does not match,...</description>
</item>
<item>
<title>MySQL Outer Join, Left Join, Right Join</title>
<link>http://www.zekkocho.com/sql/88</link>
<guide>http://www.zekkocho.com/sql/88</guide>
<pubDate>Mon, 14 Mar 2011 23:00:33 -0400</pubDate>
<description>

OUTER JOIN, LEFT JOIN and RIGHT JOIN are used to combine result sets from two queries made to different tables into one result set.
  This is useful for combining queries where one table may or may not contain a relevant matching record.







This example will use the 'world.sql' sample...</description>
</item>
<item>
<title>MySQL Inner Join</title>
<link>http://www.zekkocho.com/sql/87</link>
<guide>http://www.zekkocho.com/sql/87</guide>
<pubDate>Mon, 14 Mar 2011 22:48:32 -0400</pubDate>
<description>

An INNER JOIN is usually used to query the same table twice and join the results as one result set.







This example will use the 'world.sql' sample database provided by http:dev.myql.com/doc









The 'country' table contains the year of each countries independence, if any.





mysql>...</description>
</item>
<item>
<title>Getting Started with Reason</title>
<link>http://www.zekkocho.com/music/86</link>
<guide>http://www.zekkocho.com/music/86</guide>
<pubDate>Sun, 13 Mar 2011 22:40:09 -0400</pubDate>
<description>
Making music with Reason can seem overwhelming at first due to it's seemingly infinite number of tools and instruments.
It is the complexity, the realistic interface, and the endless options however, that make Reason the best program available for making music.







One of the first steps...</description>
</item>
<item>
<title>Throw a Projectile (shuriken) Using Atan2 in Java</title>
<link>http://www.zekkocho.com/java-games/85</link>
<guide>http://www.zekkocho.com/java-games/85</guide>
<pubDate>Sat, 12 Mar 2011 01:00:50 -0500</pubDate>
<description>


In this tutorial we will start with the double buffer from Double Buffer Animation with Java, and just the mouseListener from Create an Expolsion in Java. But before we deal with the main class, let's take a look at the Shuriken class that will control our shurikens.



import java.lang.Math;
public...</description>
</item>
<item>
<title>Create an Explosion in Java</title>
<link>http://www.zekkocho.com/java-games/84</link>
<guide>http://www.zekkocho.com/java-games/84</guide>
<pubDate>Sat, 12 Mar 2011 00:51:34 -0500</pubDate>
<description>


In this tutorial we will create an explosion by loading a series of frames and creating a class that plays them as an animation. To learn how we created the explosion frames for this tutorial check out Explosions in Studio Max Part 1.



Explosion.java



import java.awt.*;
public class...</description>
</item>
<item>
<title>Detect a Collision in Java  (Pythagorean Distance Formula)</title>
<link>http://www.zekkocho.com/java-games/83</link>
<guide>http://www.zekkocho.com/java-games/83</guide>
<pubDate>Sat, 12 Mar 2011 00:26:57 -0500</pubDate>
<description>


In this tutorial we will introduce a simple technique for detecting a collision between two objects.  When the distance between two objects is less than their combined radii they are touching. 

We can calculate the distance between two objects using the Pythagorean Distance Formula. 




Ball.java


import...</description>
</item>
<item>
<title>Java, Move an Object Using the Arrow Keys (KeyListener)</title>
<link>http://www.zekkocho.com/java-games/82</link>
<guide>http://www.zekkocho.com/java-games/82</guide>
<pubDate>Sat, 12 Mar 2011 00:10:37 -0500</pubDate>
<description>


The first thing we will do in this tutorial is get our ball data into it's own class (unlike the previous article).



public class Ball {
    private int px;
    private int py;
    private int speed;
    private int width;
    public Ball(int px, int py, int speed) {
        this.px...</description>
</item>
<item>
<title>Double Buffer Animation with Java</title>
<link>http://www.zekkocho.com/java-games/81</link>
<guide>http://www.zekkocho.com/java-games/81</guide>
<pubDate>Fri, 11 Mar 2011 23:43:52 -0500</pubDate>
<description>




In this tutorial we will create a double buffer in Java and then test it by animating a bouncing ball, like the example above. So what exactly is a double buffer? When displaying images on the screen in Java, be it an animation or game, writing each image to the screen, one after the other,...</description>
</item>
<item>
<title>Fire a Projectile (arrow) Using Atan2, AS2</title>
<link>http://www.zekkocho.com/flash-games/80</link>
<guide>http://www.zekkocho.com/flash-games/80</guide>
<pubDate>Fri, 11 Mar 2011 23:25:25 -0500</pubDate>
<description>
 



In the example above, we move the arrows using Math.cos and Math.sin, just like when we moved the ball in Rotate and Move an Object Using Sine/Cosin, AS2. The difference is that instead of using the LEFT and RIGHT arrow keys to change the angle of the object, we will be calculating the angle...</description>
</item>
<item>
<title>How to Create an Explosion in Flash, AS2</title>
<link>http://www.zekkocho.com/flash-games/79</link>
<guide>http://www.zekkocho.com/flash-games/79</guide>
<pubDate>Fri, 11 Mar 2011 23:06:49 -0500</pubDate>
<description>

 




To create an explosion in Flash like the one above we first need the frames that make up the animation. We will be using 25 .png files with transparent backgrounds and a resolution of 100x100 for this animation. To learn more check out Explosions in Studio Max. 



The first thing...</description>
</item>
<item>
<title>Basic Collision Detection Using the Pythagorean Theorem AS2</title>
<link>http://www.zekkocho.com/flash-games/78</link>
<guide>http://www.zekkocho.com/flash-games/78</guide>
<pubDate>Fri, 11 Mar 2011 22:45:36 -0500</pubDate>
<description>

 



In this tutorial we will write a simple function that will tell us if any two objects are touching. The algorithm for this function is surprisingly simple. If the distance between object A and object B is less than their combined radii, they are touching. So, what we need first is a smaller...</description>
</item>
<item>
<title>Rotate and Move an Object Using Sine/Cosin, AS2</title>
<link>http://www.zekkocho.com/flash-games/77</link>
<guide>http://www.zekkocho.com/flash-games/77</guide>
<pubDate>Fri, 11 Mar 2011 04:23:23 -0500</pubDate>
<description>

 




In Move a Movie Clip with the Arrow Keys, AS2, we showed you how to move an object UP, DOWN, LEFT or RIGHT using the arrow keys. In this tutorial however, we assume that you want to create a more naturally moving object, for example, steering a car (or tank), or moving an object, such...</description>
</item>
<item>
<title>Android Development: Parsing XML</title>
<link>http://www.zekkocho.com/android/76</link>
<guide>http://www.zekkocho.com/android/76</guide>
<pubDate>Fri, 11 Mar 2011 02:23:57 -0500</pubDate>
<description>



Since Android Applications are written in Java, anything you can do with Java you can pretty much do on a droid.  Of course there are limitations, as well as classes that are exclusive to the android SDK.  In this example we will parse XML in an android application using POJO (plain old Java...</description>
</item>
<item>
<title>﻿Parsing XML with Java</title>
<link>http://www.zekkocho.com/java/75</link>
<guide>http://www.zekkocho.com/java/75</guide>
<pubDate>Fri, 11 Mar 2011 01:58:12 -0500</pubDate>
<description>

This tutorial shows how to retrieve an XML document from a URL and parse it using Java's SaxParser.
  The XML in question comes from a zekkocho exclusive API that returns a random set of Japanese words along with their possible Engilsh definitions.



http://www.zekkocho.com/api/japanese/wordset.php?n=5


−

効力
こうりょく
effect
efficacy
validity
potency

...


Before...</description>
</item>
<item>
<title>Joomla Plugins: unpublishing an article</title>
<link>http://www.zekkocho.com/joomla/74</link>
<guide>http://www.zekkocho.com/joomla/74</guide>
<pubDate>Fri, 11 Mar 2011 01:39:13 -0500</pubDate>
<description>
It is interesting that by default, Joomla requires an article to be approved by an administrator before it is published live, but once the article has been published, the author can edit it in any way they choose.  It seems to me that any time an article is edited by someone other than an administrator,...</description>
</item>
<item>
<title>JQuery Mobile Transitions</title>
<link>http://www.zekkocho.com/jquery-mobile/73</link>
<guide>http://www.zekkocho.com/jquery-mobile/73</guide>
<pubDate>Thu, 10 Mar 2011 04:04:50 -0500</pubDate>
<description>

With the JQuery mobile framework you can quickly and easily create a web layout that looks and feels like a native mobile application.  The trick to getting the feel of a native app is duplicating it's transitions.



To try out some of Jquery's transitions, first create the following files.


JQuery1.html




...</description>
</item>
<item>
<title>Ruby on Rails Partials</title>
<link>http://www.zekkocho.com/ruby-on-rails/72</link>
<guide>http://www.zekkocho.com/ruby-on-rails/72</guide>
<pubDate>Wed, 09 Mar 2011 02:34:17 -0500</pubDate>
<description>
A Ruby on Rails partial can be thought of as a kind of view-function.  When a partial is created it is given a name and collection of data, such as an array.  The code inside the partial template will then be repeated for each element of that array, and that array element can be accessed by the name...</description>
</item>
<item>
<title>Cool CSS Borders: drop shadows, gradients, overlays</title>
<link>http://www.zekkocho.com/css/71</link>
<guide>http://www.zekkocho.com/css/71</guide>
<pubDate>Wed, 09 Mar 2011 01:35:00 -0500</pubDate>
<description>

.grad_border {		
/* Gradient Border */
-moz-box-shadow:0 0 10px black;
-webkit-box-shadow:0 0 10px black;
box-shadow:inset 0 0 10px black;
}

.drop_shadow {
/* Gradient Border */
-moz-box-shadow:5px 5px 10px black;
-webkit-box-shadow:5px 5px 10px black;
box-shadow:inset 5px 5px 10px black;	
}

.border_overlay...</description>
</item>
<item>
<title>Reversing a Select Box with Javascript</title>
<link>http://www.zekkocho.com/javascript/70</link>
<guide>http://www.zekkocho.com/javascript/70</guide>
<pubDate>Tue, 08 Mar 2011 02:17:31 -0500</pubDate>
<description>
Whether you are working with select boxes that are generated outside of your control, or trying to implement sorting features in your user interface, you may find it necessary to dynamically reverse the options in a select box.



These select box options are reversed dynamically here with Javascript





function...</description>
</item>

</channel>
</rss>
