Simple counter

Top site counter is small and simple appengine hosted counter.

Top Site Counter

Top Site Counter


The source code can be found here.
Demo is available here.

Great waterfall

I created a test page full of badges and counters and that's what came out as waterfall diagram:
Waterfall
The whole report is here.

Mini php based one page RPG game (rp16g)

This is my submission for PHASE 2 of the Micro Game Coding Challenge.

rp16g
http://posterfans.com/game/rp16g.php
Size:5.1 KB
Planning and development time ~ 7 hours

rp16g is a small text based rougelike game based on Dragon Slayer. The player (@) must find and kill the dragon (+). The dragon is very strong for the player's initial fitness so some monster killing is needed to strengthen the player first.

Game features:
- Game map;
- Fog of war;
- Simple battle system;
- Character stats;
- Romantic end Grin

The source code of the game is available here: http://posterfans.com/game/rp16g.php.txt

Small Bulls and cows in PHP

There is competition going on in bbGameZone. I decided to participate with small Bulls and cows game:

Here is my submission "CowsNBulls".

It's a game I loved playing when I was younger.

Demo: http://posterfans.com/game/
Source code: http://posterfans.com/game/index.php.txt (2013 bytes)

The code can be further optimized, but let's leave something for Phase 2 Smiley
Total planning + development + bug fixing time about 1 hour.

Resize column in postgres without recreating

A nice hack for postgres field size: http://sniptools.com/databases/resize-a-column-in-a-postgresql-table-without-changing-data

75% discount on HostGator only today

Today HostGator is offering 75% discount for hosting with code: 75OFF

Move table in postgres to different schema

To move table to different schema in PostgreSQL use:

ALTER TABLE table_name SET SCHEMA schema_name;

Playing with big files

If you're looking for a big text file to play with, why don't you try http://www.dotnetdotcom.org/.

We invite you to help us share the content of internet by downloading the first part of our index. It has roughly 600,000 pages and is shared in an easy to parse text file. We are making this available as a bit torrent to help conserve bandwidth. Enjoy!

Rating for Blogger (Blogspot)

If you want to add rating system for your posts in Blogger, check Outbrain (http://www.outbrain.com/). They have fully automated script for that.
I'm using it form my animated gifs blog.

Get parameters in Code Igniter

If you want to use GET parameters in Code igniter just for specific controller do use the following line in your Controller's constructor:

 
    parse_str($_SERVER['QUERY_STRING'],$_GET);
 

Also make sure to call your script like this (even if you use mod_rewrite to get rid of index.php):

www.example.com/index.php/controller/method/?par1=1&par2=2