XMPP Installation Steps and Problems

Just a brief experience of my XMPP journey.

Problem / Error

configure: error: No curses library functions found

Solution

apt-get install libncurses5-dev

How to install Ejabberd

http://sysmonblog.co.uk/2008/06/ot-installing-ejabberd-on-debian-ubuntu.html
https://wiki.basho.com/display/RIAK/Installing+Erlang#InstallingErlang-MacPorts 

Compiling Ejabberd on Ubuntu

http://ciarang.com/posts/compiling-ejabberd-on-ubuntu

How to install Erlang on Snow Leopard

http://sysmonblog.co.uk/2008/06/ot-installing-ejabberd-on-debian-ubuntu.html
http://jboxer.com/2010/01/installing-erlang-on-snow-leopard/
http://ndpar.blogspot.com/2010/02/installing-ejabberd-on-ubuntu.html

A Small fix for “Waiting for Header” in Ubuntu

As I’m a Mac, Parallels and Ubuntu user, I have a parallel partition with Ubuntu inside. In parallels, we can specify “Share” or “Bridged” Networking. If you choose “Bridged”, you IP will be appear like a dedicated computer so other users inside your network can access with different IP. However, the problem is when you upgrade or update sources in ubuntu, you’ll get “Waiting for header” which will make you prevent from accessing to sources. That problem can be solved if you switch your networking setting from “Bridged” to “Share” in Parallel.

How to setup a Hostname for local network?

Well, it’s not that difficult if you know what to do :)

How to setup Hostname for local network?
You gonna need to edit your “host” file.
Mac / Linux

sudo nano /etc/hosts/

Windows

Notepad C:\WINDOWS\System32\drivers\etc\hosts

You can match IP and Hostname whatever you like and then can be call with Hostname in future.

192.168.1.36 call.me

Ejabberd How to – in Ubuntu Server

How to install Ejabberd in Ubuntu Server?

Way 1 : Use debian packages but I found myself start-up problems. If you still want to try, follow the steps..

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ejabberd

Click here to learn more

Way 2 : Compile source code yourself. It won’t really difficult if you follow this post.

How to uninstall Ejabberd?

sudo apt-get remove --purge ejabberd

How to log-in as root or how to switch to root user in Terminal?

sudo bash

Don’t forget that you must be a sudo user to do that command.

How to share sessions between PHP and eJabberd

I thought I’ll be useful for me in future by knowing how to share sessions between PHP and eJabberd. So here is what I found out.

Extra Resources

SQLstream

SQLstream kind of technique that enhances traditional query to support real-time very dynamic data such as chat logs from Database.

In a traditional RDBMS, all data must be stored first, and then queried. RDBMS queries are reactive and finite – in the example query above, a traditional database would return all of the New York orders currently stored and then terminate. A RAM query is a standing query – it executes continuously, processing data before it is stored in an RDBMS, publishing analysis and results immediately. Read More for Details

COMET – Mini Resource

Following links are very useful if you want to familiar with the umbrella term called COMET.

How to implement COMET with PHP

http://www.zeitoun.net/articles/comet_and_php/start

Comet story (part 1+2+3)

http://www.demo.codesetter.com/comet-whiteboard-0

http://www.demo.codesetter.com/comet-whiteboard-1

http://www.demo.codesetter.com/comet-whiteboard-2

Starting Out With Comet (Orbited) Part 1+2+3 – The Client

http://thingsilearned.com/2009/06/09/starting-out-with-comet-orbited-part-1/

http://thingsilearned.com/2009/06/25/starting-out-with-comet-orbited-part-2-installation-and-stomp/

http://thingsilearned.com/2009/08/03/starting-out-with-comet-orbited-part-3-%E2%80%93-the-client/

Apache Name Based Virtual Host

Here is the useful tutorial.

http://redivide.com/blog/setting-up-a-name-based-virtual-host-vhost/

How to check Ubuntu Server Version in Terminal

Here is what I found out how to check the version of Ubuntu Server.

cat /etc/issue

Failure of RPS Game Project

RPS Game

Let me introduce my game first. What is RPS? RPS stands for Rock-Paper-Scissors. Yes RPS game but with social networking concept. In short, two players has 16 pieces including 4 rocks, 4 papers, 4 scissors, 3 bombs and 1 flag. Whoever got opponent’s flag will be the winner. During game play, rock beats scissors, scissors beats paper and paper beats rock. However, bomb will kill any item it encounters. That’s the brief of how RPS Game is evolved. In future dev, social activity will be included but I’m not going to cover it right now. So let’s forward to my title.

The project I’m expecting to be one of the most successful games in Facebook is started and developed. But after continuous development in 15 days, I found out it was a failure. Why?

(more…)