Tech Lull
 
 
JavaPHPSQLDrupalOpenGLMathematicsRenderings
 
 

Java Tip - JogAmp: JOGL, JOAL, JOCL - one stop media
July 28, 2010

JOGL, Java OpenGL bindings (graphics), is now hosted at http://jogamp.org/. In addition, JogAMP provides JOAL, Java OpenAL bindings (audio), and JOCL, Java OpenCL bindings (cpu/gpu).

JogAmp Logo

The JogAmp project itself is a nice example of using JNA/JNI. The GlueGen...

view
Java Tip - JNA: Java Native Access
July 23, 2010

Java Native Access (JNA) is the successor of the Java Native Interface (JNI). Both allow your java code to make use of an existing library, like a dll, or .so file that was written in C or C++.

The major advantage of JNA over JNI is requiring no boilerplate code.

The libraries that you use JNA for can be built in windows system dlls, to custom made dlls of large projects.

Despite how large java and the java community are, there are real cases (I have experienced one...

view
 
PHP Tip - Basic Java and PHP Syntax Differences
June 04, 2010

PHP and Java are generally used for vastly different purposes. However they share a fairly common syntax based on C++. If you use both, here are some differences to remember.

A simple PHP function might be public function add_three_numbers($x, $y, $z) { $answer = $x + $y + $z; print('foobar message'.$answer."\n"); return $answer; } ... $sum = $this->add_three_numbers(1, 2, 3); while the Java equivalent is...

view
OpenGL Tutorial #6 - A Basic Camera and Keyboard Input
April 13, 2010

Synopsis: in this tutorial we will make use of keyboard listeners. the camera position can be changed by pressing the arrow keys, a, or z. we will also map the escape and q keys to exit the program.
camera - part I
 
SQL Tip - Finding duplicate values in a table
April 12, 2010

Let's say you have a table of inventory items for an electronics store. The primary key is an integer id, and there are no other constraints on the table. Other columns are
type, brand, model, price, etc

some sample rows are id | item | brand | model | price --------------------------------------------------- 1 tv sharp acquos 1299 2 tv sony bravia...

view
OpenGL Tutorial #5 - Texture Mapping
March 23, 2010

Synopsis: In this tutorial texture mapping using JOGL is introduced. We show how easy it is to load jpg images as textures and do a variety of mapping types including linear and spherical.
Texture mapping