Learn how to make a basic website framework.

This will teach you how to setup one page for all pages! So it’ll be a lot easier when changing layouts!
Not only that, say GOODBYE to /index.php?page=contact…now you can just have /contact without actually making the directory!
This will ALSO teach you how to have a site which you can easily switch version (like when running parallel systems) when you are working on a new version and you don’t want others to know. It will have password protection which will allow only authorized users to test the version.
Say goodbye to “coming soon” pages!

Ok, first we want a layout…Let’s be simple (just forget validation temporarily, this just an example):

My title.<br />
<a href=”http://site.com”>Home</a><br />
<a href=”http://site.com/asdf”>asdf</a><br />
content will go here<br />

Let’s save that file as index.php. Save it in a directory called “versionname” (you can change this, but remember to change the rest of the code as well) Now, replace “content will go here” with this:

if($page == “”) {
include “/home/username/public_html/versionname/home.php”;
} elseif($page == “asdf”) {
include “/home/username/public_html/versionname/asdf.php”;
} else {
echo “error”;

Basically, it will see what the value of the variable $page is and accordingly, it will display the correct page.
Create a new page called home.php (you can put whatever you want in it), and save it in the “versionname” directory. Then create a new page called asdf.php and put whatever you want in it and save it in the “versionname” directory.

Now try and go to yoursite.com/versionname. It will display your home page. Then go to yoursite.com/versionname/?page=asdf. It will display your asdf page. Let’s say in the future you decide to change your layout…you only need to change one page…the index.php page.

Ok. now instead of ?page=asdf, lets turn it into just /asdf. Go into your public_html folder (or your equivalent of it) and search for .htaccess. Open it up. This is apache server scripting. Won’t go into much detail though. You’re probably annoyed because you want your homepage to be in yoursite.com and not yoursite.com/versionname. Simple, add this code in .htaccess:

RewriteEngine on
RewriteBase /

ReWriteRule ^/$ versionname/index.php
ReWriteRule ^$ versionname/index.php

Now, try to go to yoursite.com. Amazing! The URL didn’t even change! Now to change into /asdf. add this:

ReWriteRule ^asdf/$ versionname/index.php?page=asdf
ReWriteRule ^asdf$ versionname/index.php?page=asdf

Now, go to yoursite.com/asdf. Amazing! It showed the ?page=asdf page!
Ok, now that you’ve done all that, let’s say you want a new version, but you don’t want to delete everything and setup a coming soon page. Create your new version in a directory called “versionname2”.
Now, you want people to be able to access your new version, but not all people. So here’s what you do. Add this to the top of your versionname (not 2) index.php:

header(“Cache-control: private”);
if( $_POST[beta] ) {
if( $_POST[pass] == “yourpassword” ) {
$_SESSION[“beta”] = “1”;
if( $_SESSION[beta] == 1 ) {
include “/home/username/public_html/versionname2/index.php”;
} else {

And now, add the form below to wherever you want the verification to be:

<form method=”post” action=””><br />
<input name=”pass” type=”password” class=”input”>
<input name=”beta” type=”submit” value=”betatest”>

So now, when you type in the password “yourpassword” in the form, you will be browsing your new version, with no edited URLs! Of course, to make it fully compatible you need to add the if $page=”” statements to your versionname2 index.php, but that’s simple to do.
Ok, you’ve finished coding your new version. Simple, just go to your .htaccess, and replace all the /versionname to /versionname2. Done! You’ve succesfully upgraded your site.

Note: this is very basic but I hope it has helped some of you.


How to choose a website host?

This is a much discussed subject when beginners start on website making. I myself have searched long for a good host. Well, let’s keep this straightforward and to the point.

First, you need to know what your website will offer. Will it only contain text? Will it have videos? Will users be able to submit items (articles, messages)? Will you need a domain? Those sorts of questions help you to identify the key features of a webhost that you require. If you will just need the ability to post text, any webhost will do. This is the simplest item. However, if you need to post a lot of pre-written text, with lots and lots of archives, you might consider getting a host that supports FTP access. If you require large videos and image files, you would probably look for the best bandwidth and file capacity in order for you to host and users to view these files. You will also require an FTP client, which will give more convenience to you when transferring these huge files.

If you need user-submitted content, you will definitely need some sort of database support. Unless you are confident you can work with just flatfiles. You will also probably need a good control panel to configure your statistics. For this, the webhost is up to you, but I find that I prefer using CPanelX which is available from most Linux servers.

Will you need a domain? Almost all paid hosts allow for this, though you will have to consider whether or not you want more than one domain or not. (see Addon Domains) However, more free hosts have been giving domain availbility as a feature, so I would be sure to check first.

Finally, is it worth to pay for your hosting? If you’ve just had a brainwave about making a website, I would say no. There is no guarantee that you will keep the website. (Trust me, not your brainwave, as you are deluded by excitement) Most free webhosts are sufficient for people, but if you are planning to have a huge website, don’t get a paid host right away. Start off free, but make sure that your host has the ability to upgrade your account to a paid service should the need arise.

I hope this quick guide helps you.

Want me to recommend a webhost? These guys are great.


CM Updates

Some interesting things to talk about on this post. Firstly, sorry about the delay on posting, as I never really find the time for these things. Well, cobramilk.com now allows Guests to vote on all submissions on their sites! This is an awesome update, and means you don’t have to register to have all the fun! Well, if you want your vote to be worth more, or if you want to submit your own creations, you’ll have to register an account. So go check them out. I’ve made a forum thread about it on the CM forums. Next things up will be a nice design update to some of the forum pages, and a little treat I’m going to keep secret for now on CM.

Also, the Blender 2.46 has been up on the BCon, so that’s just … wow, I still have a lot to play around with, but you can see a list of features here: clicky. Mr Bomb (well known character modeler) and I have taken up a 3D freelance project (my second 3D related commercial project!) but that should be over in 1 or 2 weeks. If I’m allowed, I will post the finished project here. Also, I’m back on IRC! I’ve finished my Duke of Edinburgh camp, which included a weekend of forest trekking 6-8 hours a day. You can again catch me on #e2-productions on the irc.freenode.net server.

Soon I’ll release “Bleeding Edge” updates for the POSE2 systems and the members module, which is nearing completion. This means that you can download it even if you don’t have access to the version control server (available on request when I’m online on IRC – so you can add your own updates to it!) Also, my art coursework is done and I’m full up to my neck in art work to complete for my final exam, so that means that some traditional artwork (sketches, paintings, etc) will be added to my never ending portfolio.

Also, take a look at the l-system which I’ll do some tests on in order to find out how to best make a forest scene.


I promised you an update:

So, firstly, you can now visit http://e2-productions.com/ and see the awesome new work-in-progress. So far all that is up is a very simple website layout, a home page with some brief information, and a resources page. Upcoming soon in the world of Moult will be some awesome updates to Cobramilk.com, including a special edit in their voting system, a members module to allow you to register an e2-productions.com account, and a whole stack of documentation. I’m going to be going to Penang from tomorrow until Thursday, so I’ll be out of action. However, I’m showing you some pictures to keep you happy knowing that I’m actually doing stuff.Doesn’t he look cool, just like a grumpy, cranky, eccentric weird guy? (unfinished)
…and we’ve also got a little get-together with the Earth and my Space station:
Sorry for the small size, they’re only meant to be previews. When I feel like it I’ll post a much bigger update in the official ThoughtScore work-in-progress thread on BA.

Looking forward to your comments! Always remember you can catch me on the IRC server irc.freenode.net on the #e2-productions channel!



I’ve been getting all my exam results back – and they seem to be pretty decent :)

Anyways, I’ve spent the last few days mainly configuring my computer, including switching over to Fluxbox as a window manager instead of Xfce, and configuring Fluxbox to all my needs, menus, shortcuts, desktops, toolbar, slit, etc. Of course, I also spent some time configuring my previous applications and adding some new ones.

I spent a full-day session with a buddy on Saturday discussing some cool “behind-the-scenes” work for the most secretive E2 project ever started (recently). So now I’m going to spoil all the fun. I’m working through some pretty darn ambitious personal projects right now, and they’re progressing pretty well…but what about in a team project? A friend and I got together and decided to do something about simulations, AI, that sort of thing. We got some motivation off ventrella.com (they’ve got some pretty cool stuff there) and went on towards designing our own project. At the moment all we’ve got is a huge amount of “oh, whoops, I just remembered that what we’re trying to do is classified as AI-COMPLETE, so…I guess we’ll just continue”. Won’t spoil it too much now, but I’ll give you some serious updates on the site soon.

The E2 website should be up within the next week. Together with that will be a POSE2 version, some POSE2 modules for download, some new 3D models, and a ThoughtScore update. I’m sorry if it seems as though I’m just saying “oh, we’re going to give all this stuff, but not yet”, but I really am going to give it really soon. I’ll update you when I do :)


…back with a tux.

The thinkMoult blog is back! (with a purpose). Before anything, you might have noticed that e2-productions.com is down. That’s because I’m fully rewriting the whole site.

If you like PHP, simple webdesign, graphics, or are just interested in making a site, this is something you’d better look out for. E2-Productions is going to be built from scratch, featuring mainly a development system, user system, portfolio generator, resources etc…and will all be built using my lovely PHP framework, called POSE2. POSE2 is a very simple framework, and basically routes all the information in an intelligent way, allowing you to arrange your files also in an intelligent way. This way, you don’t get lost in all the clutter of a huge website. Not only that, everything is neatly ordered in Modules, which means you can cut out a certain section of your site, and give it to a friend, which will be completely compatible with their site. wow.

This blog will be updated ASAP, and even more on wednesday after my exams are finished. Coming soon will be the download of the POSE2 PHP Framework, and the release of the website’s current stage. (if you’re lucky, you can go to e2-productions.com right now and see if you can access my localhost – which will be available until i reset my modem or my computer.

Now, about my computer, I’m now no longer on my dying 10 year old ancient desktop which requires prayers to boot up. I’m now on a sexy, (only 3 years old) laptop with 240MB ram (might upgrade it later) running on Gentoo, linux. I’ve learnt so much about linux so far (something to blog about in the future), and now it has Firefox, aMSN, The GIMP, Blender, Audacity, Apache, OpenOffice, BitchX IRC, CLI ftp, Vim…etc. All the power tools needed for graphics, sound, servers, programming, chat, and work. What else do I need? Oh, yes, I added two games in case I get bored. (available on portage), such as “Chickens”, which involves blowing up chickens utilizing rocket launchers, shotguns, quick wit, intelligence, strategy, positioning…oh no, wait…yeah, you just blow up chickens mindlessly. Another, is XPilot (and XPilot-NG), so far, it’s been a pretty addictive game, especially because I lag all the european servers. You should try it out.

So, until Wednesday, then. Then you’ll have some pretty stuffez.


Blender Extraordinaire.

Following a link found on the popular Blender newscast site BlenderNation.com, I came to a site which compared Blender3D – a FREE 3D program – to paid programs such as Maya, Lightwave, Autodesk, etc. The result? Sure, we have our ups and downs, but other than that, Blender is right up there with the big boys.

Given this information, I don’t see why Blender just doesn’t hop right up and declare immense popularity. I guess people don’t take Blender seriously enough compared to something they feel they “paid” for. Or maybe they look at its stunning 12MB filesize. Or maybe they’re just scared by its cluttered interface. (Yeah, but you get used to it)

What’s the purpose of this post? Nothing actually. This is another of the 99% of useless blog posts. However, just think about Blender for a while. If you’re thinking about starting 3D art/animation, why not use Blender?

Decide for yourself: http://www.tdt3d.com/articles_viewer.php?art_id=99


I’m tired, but not enough to wake up.

Researchers now know that sleep is an active and dynamic state that greatly influences our waking hours, and they realize that we must understand sleep to fully understand the brain.

I am typing this now close to midnight. I ask myself, “why sleep?” Not because I’m staring at the computer with my brain shut off, not because I’m addicted to RSI, but because I am curious. Following a simple google search I came up with this: http://www.helpguide.org/life/sleeping.htm – to be honest, I once read an article about some old lady who managed to run on 3 hours every 2 days. I think that’s pretty swash.

I also found this link: http://faculty.washington.edu/chudler/chasleep.html – comparing us with animals, we can look at the brown bat, who clocks a stunning 19.9 hours a day sleeping. This isn’t surprising, as it’ll be hard to get up if you’re lying upside down. We’ve then got the other end of the spectrum, featuring the giraffe, clocking in a mere 1.9 hours of sleep.

In my opinion, sleeping is the equivalent to a pause button in a movie. Except that everything else doesn’t stop. So it’s a type of personal time warp system. In other words, it’s pretty cool. I’ve got an expedition the next day? I sleep early. I’ve got an interview? I (try) to sleep early. I’ve got an exam? I spend the whole night revising. I’m in the exam? I daydream (touch wood). Sleeping reminds me of a Dilbert joke I read quite a while ago: “We’re going to release our new product, it can bring people 1 hour into the future in only 60 minutes!”

G’night folks.


You’re plain wrong.

If you’re not scared or angry at the thought of a human brain being controlled remotely, then it could be this prototype of mine is finally starting to work.

Recently coming across this quote online, I was obviously curious. If mind control actually existed, and we could harness its power, maybe we could have some fun for a while. So, naturally, I searched for it online and came up with this: http://www.phinnweb.org/neuro/brainwash/ – tips and techniques for brainwashing people. I just thought it useful (or harmful, depending on how you interpret it) and decided to share it here.

1) REPETITION – Going through the same subject over and over again until it is known by heart.

2) ACTIVITY PEDAGOGICS – The subjects are never left alone nor give any private time of their own, they are always in activity.

3) CRITICISM AND SELF-CRITICISM – The subjects are supposed to feel uncertain; under the constant threat of being humiliated and despised.

You really enjoyed reading this article, didn’t you?