Upload JSON Data from Android Phone to MySQL Database on Website / Server Example

Here is an example of uploading Json Data to a MySQL database on a website/Server from a Android phone.  This is great to upload user data from the phone to a website. The bad thing is  that you have to use a different Thread instead of the main UI thread. It fairly simple to multithread even though some examples  makes it pretty complicated. Check out my attempted to explain an example of using the Android Thread class.

Continue reading

Android Development Tips

I am going to be adding small Android code snippet here that I think others can benefit from. I will only show Android code that has worked for me. I can not guarantee that it is the best way of doing it, but I know it will work. I will continue to add more in depth code (e.g. classes) in separate posts.

Continue reading

Find the closest point

This post is the third installment from my post (How to detect a collision between a circle and a line).  In this post I will show how to find the closest point to a point or circle. It is pretty straight forward after you know how to determine the distance between 2 points.
Continue reading

Determine if a point/ball is above a line

This post is the second installment from my previous post (How to detect a collision between a circle and a line).  In this post I will show how to determine if a circle or point is above a line. If you know anything about a dot product of two vectors then you probably could come up with the ‘if’ statement yourself. Without going in to too deep of details about dot products, it is basically means if two vectors point the same direction then their dot product will be greater then zero.

Continue reading

How to detect a collision between a circle and a line.

I just now finished another computer graphic school project and want to share a few things. As you can tell there is a few bugs, but that is a different story. So far I am going to do this any many parts. I wanted to start off by talking about how to detect a collision between a circle/ball with a line. I will later talk about how to find the reflection, what to with many different lines and what else I can brew up.

Here is a visual of what I am talking about:

Continue reading

Curve Subdivision using Neville’s Method

Here is some code and an applet of showing how the Neville’s method affects curve subdivision.  How to use the applet is on the bottom. Check out my previous post on an applet that just uses Neville to compute a curve. Enjoy!

Subdivision with Neville’s Method


Neville’s Method code and program

Here is a project I implemented recently  in class. It uses the Neville Method to interpolate 4 points. Press the number of the dot to control the dot. This is a non-recursive version on it. The code is sorta hard to follow, but email me if you have any questions greenbizkit33 [at] gmail.com.

Neville’s method code and program

Creating 3D graphics using Java Processing and Matrix Stacks

For my last computer graphics project I created a robot that was assembled (nothing elaborate) and then shot a bullet. I tried to get a demo to run in the browser but was having too much difficulty to get it running. Here is the source file for it:
Source code: hays_nathan_Project_2

There is examples of using moving shapes, using a matrix stack, creating a cylinder, and using a timer to animate and change camera angles.  I hope this comes in handy for someone.

Continue reading

Java code for Vertex, Matrix, and a CTM stack

Very recently I had a school project to create a computer graphics library similar to gl library. I was not able to get the whole library to work (of course), but I did manage to get some of it to work. So i want to toss up what I manage to get done. Continue reading

Changing your coordinates for computer graphics.

Ok I know this might be a boring topic, but it might be helpfully for someone out there.  I want to show how to change a coordinate system. One reason you might want to dothis is for computer graphics (which is the class I learned this from). Some computer graphic software will start their coordinates from the upper left where Y increases as you go down. This is sorta confusing since most people are use to the Cartesian coordination system (the x y coordinates) , where Y increases as it goes up and there is a negative x and y.

Continue reading

Graveyard Database Logo

Has everything you want to know about grave yards. Plus has many celebrites and world leaders graves. Pssst it is my other site

Google + Profile
Check out Android Photo Mapping, its a app/site I been working on
Fabulou wholesale Petr Mrazek jersey is back. Best choice to get the wholesale Petr Mrazek jersey is suitable for all style of people.