Archive for July, 2009

Switching between languages

In daytime, I work with C++. When it comes to night, I have to struggle with PHP; meanwhile I am learning Actionscript 3 and Javascript scripting for Unity3D. It’s no wonder that I begin to write code like this:

 
#include_once("config.php");

public class MyClass : public MyInterface
{
  public function __construct($initialData : array)
  {
     $this->initialData = $initialData;
     for (int i = 0; i < count($initialData); i++)
     {
             ....
     }
}

Someone help me, please!

Tags:

Why you should consider learning XNA

If you are new to games development in general, and especially 3D, XNA is one good way to start out. Why so? For one, there is a large number of materials published on it and they cover quite large ground – terrain, shaders, cameras, 3d movement and the such. Second, it is using the right-handed coordinate system, which make its compatible with whatever mathematics you can find in textbooks and OpenGL tutorials.

The other advantage,  I have realised, is that Unity3D’s API shares quite a number of similarity with XNA’s Maths library. That will in handy if you are intending to pick up Unity3D later on.

Tags:

Getting Started with XNA and such

First, you will have to get XNA and Visual Studio 2008. If you are a student, head off to DreamSpark to get the student’s editions. After the installation, here are some good sites to get started on the basic:

Of course, the Creator Club for XNA has some samples and tutorials worth looking through too.

Tags:

Research: Doing a custom frontpage for WordPress

One of my challenges now, for a particularly difficult project, is to create a WordPress site, with a custom front-page. As it would be showing posts in different layouts, from different categories, I would need to create a custom WordPress loop. Looking at this, I realise I need to answer the following questions:

  1. How do I display a custom page as a WordPress Frontpage?
  2. How do I get multiple WordPress Loop?
  3. How do I select which posts to show and what not to show?

Read the rest of this entry »

Tags: ,

On Choosing a Template for WordPress

After installing WordPress 2.8.1, configuring it and deleting the default “Welcome to WordPress Message!” what’s the next order of the day? Choosing a template (or a theme, to use WordPress Jargon). While there are lots of good designs out there, the graphics are just first impressions for me, and it does not count. It’s the little things that count. Here’s what I will look for when choosing a theme.

Read the rest of this entry »

Tags: ,