|
|
| March 09, 2010 | Adding GLUT elements and setting up the viewport |
|
Here is the full code listing code
Now the highlights:
import com.sun.opengl.util.*; //needed for GLUT
...
private GLU glu;
private GLUT glut;
We import the necessary library and declare class variables for glu and glut objects. In our init() method... |
| |
|
| March 03, 2010 | removing default windows 7 keyboard language keymap shortcut |
|
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... |
| |
|
|
| February 23, 2010 | Drupal 7.0 Alpha 2 released |
|
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.... |
| |
|
| February 13, 2010 | PDO traps to avoid |
|
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... |
| |
|
| February 13, 2010 | avoid the error suppression operator, @, whenever possible |
|
Debugging in is difficult by default. Types are loose and so are programming standards.
To combat this, you can:
set error levels high
install/enable xdebug. (Worthwhile for readable var_dump and print_r statements alone)
use try/catch blocks
You... |
| |
|
| February 13, 2010 | drupal 'gotchas' to avoid |
|
enable view permissions of new CCK fields
Whenever you create a new CCK field, you have to enable permissions for it in
/admin/user/permissions, under the content_permissions module setting.
Normally this involves checking view_new_field_name for your new... |
| |
|
|
| February 03, 2010 | YouTube streaming gallery |
|
Today, I will show how to make a YouTube gallery with just CCK/views.
Unlike in the flickr gallery tutorial,
videos will be added manually. |
| |
|
|
|
| January 16, 2010 | transition from C++/glut to JOGL |
|
Let's take a look at the code from our the first demo and analyze it. Documented in the source is that it is a Java port of Brian Pauls' C version. Unfortunately I could not find that source code for direct comparision but will outline the main... |
| |
|
| December 23, 2009 | what modules I have installed and why |
|
drupal is a great CMS. there are hundreds of third party modules - code that extends functionality
that you can install. however, finding the modules you need can be daunting. many
claim to do similar things, so which should you install? key factors are... |
| |
|
| December 21, 2009 | seo part 1 - eliminate duplicate content |
|
part of basic seo is having no duplicate content on your site. the major search engines - google, yahoo, ask and bing will penalize you heavily for it. in addition to real duplicate content, there is the issue of pseudo duplicates caused by a singular... |
| |
|
|
|
| December 15, 2009 | if i was a tech/program manager... |
|
part 1: hiring and training
screen out before hiring. enthusiasm is good, but only goes so far. especially in technical matters. training makes people better, but takes time.
i would rather have three to five highly skilled (and well paid ; ) coworkers/... |
| |
|
| December 15, 2009 | more productive browsing |
|
one problem I encountered was having TOO many bookmarks. way too many. over 1400. yes, many were good sites or articles.
the problem is that they have not been used in ages. for instance I had bookmarks on a dozen programming languages but have
only been... |
| |
|
| December 10, 2009 | NetBeans OpenGL Pack |
|
There is the Java Open GL or JOGL, a version of OpenGL for Java. Furthermore, there is a 'Netbeans OpenGL Pack' which is fantastic news to me since I made the switch to Netbeans. |
| |
|
| December 04, 2009 | Comparing DirectX11 and OpenGL 3.2 |
|
I have been away from developments in the graphics community for sometime. As such, I needed to research what
the present differences between DirectX and OpenGL are, so that I could make an informed decision on which to use in the
immediate future. My... |
| |
|
| December 04, 2009 | netbeans is now my preferred IDE |
|
A while back, I wrote about evaluating netbeans as an alternative to zend studio, which I had used for years. I have now made the switch, as there are some clear advantages. |
| |
|
| December 03, 2009 | value of wikipedia |
|
today i got a wikipedia account and made my first contribution, finally.for those who live in caves, wikipedia is an expansive set of knowledge, contributed and edited by anyone, available for free on the internet.
although, not always of the highest... |
| |
|
| November 27, 2009 | CSS Hex Color Values |
|
#web_colors_table td{
height: 40px;
}
Here is a list of colors I have found on the web, but formatted to be easier to read.
Description
HEX Code
Sample
Description
HEX Code
Sample
Description
HEX Code
Sample
Alice blue
#F0F8FF... |
| |
|