Tech Lull
 
 
PHPSQLDrupalOpenGLMathematicsRenderingsjQuery
 
 

OpenGL Tutorial #4 - materials and lighting 2: improving realism and refactoring our code
March 12, 2010

Synopsis: We improve upon our last scene demo by refactoring our code and adding a material setting class. We also change our light position to dramatic effect.
OpenGL Tutorial #3 - lighting and materials
March 10, 2010

Synopsis: In this tutorial, we add lighting and material properties to our scene.
 
OpenGL Tutorial #2 - Adding GLUT elements and setting up the viewport
March 09, 2010

Synopsis: In this tutorial we add some prebuilt GLUT shapes and adjust the viewing angle.
Tech Blog Item - removing default windows 7 keyboard language keymap shortcut
March 03, 2010

For whatever reason, windows 7 comes with the keyboard shortcut 'left shift + alt' switching the keyboard language. It is quite easy to without knowing it, switching the keyboard from US to Canadian French for example and getting weird characters like french accented e's instead of a slash, '\', for example

To prevent this, open up the control panel from the start menu.
...

view
 
Tech Blog Item - Drupal 7.0 Alpha 2 released
February 23, 2010

Today, the second alpha of drupal 7 was released. There is still no upgrade path from drupal 6.x to 7 supported. As well, this alpha version should not be used in a production environment. This release saw mostly security and bug fixes.

From the drupal.org site, "...The most notable change for developers is moving $form['#field'] to $form_state. This makes field forms more resilient to form_alters and debugging became a lot less tedious. Comment body became a field and new fields can be added to...

view
PHP Tip - PDO traps to avoid
February 13, 2010

not using rowCount on select statements.

from php.net manual page at http://ca3.php.net/manual/en/pdostatement.rowcount.php,
int PDOStatement::rowCount ( void )

PDOStatement::rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding PDOStatement object.

If the last SQL statement executed by the associated PDOStatement was a SELECT statement, some databases may return the number...

view