Generating static verison of CodeIgniter website

I love CodeIgniter and I love how easy it is to generate static version of your website. You just have to overwrite the _write_cache function in the Output.php class and turn the caching on. Here's my version:

Creating ebook with Markdown, pandoc and GNU Make

Writing bok with markdown is pure joy. I started a short practical SQL tutorial yesterday and it started do get traction today. I used shell script at first to generate the static HTML page for the book but make looked like a better idea. Here is the Makefile I use:

BUILDDIR = ./build

.PHONY: clean spell

all: html epub

html: *.markdown style.css Makefile
pandoc -s --css=style.css --toc -o $(BUILDDIR)/index.html *.markdown
cp style.css $(BUILDDIR)

epub: *.markdown style.css Makefile
pandoc -t epub --epub-metadata=metadata.xml -s --epub-stylesheet=style.css --toc -o $(BUILDDIR)/book.epub *.markdown

clean:
rm -f $(BUILDDIR)/*.html
rm -f $(BUILDDIR)/*.css
rm -f $(BUILDDIR)/*.epub
rm -f *.bak

spell:
for i in *.markdown; do aspell --lang=bg_BG check $$i; done

Important note: make requires TAB for indentation.

Hranoprovod – command line personal life tracker in google go (golang)

Hranoprovod is my ledger inspired calorie/weight tracker written in go. The first prototype version was implemented in PHP, and it also worked well, but I decided to take a look at golang.

Malko ERP basic database

Let's start with the product management. I'll try to keep it simple for the time being. My weapon of choice, when designing the database schema is the almost great WWW SQL Designer.

Right now the schema looks like this:

ERP Database Schema

And the XML file is located here.

malko-erp

Just started a new project in github today called "malko-erp". The "malko" part stands for "tiny" in Bulgarian. The idea is to lay the grounds for basic ERP system with e-commerce frontend.

Stay tuned for the updates...

Kohana Tutorial

I started to learn Kohana 3 by writing a tutorial for it. Take a look at it here if you are interested.

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.