Irimia'S Blog

NOT just another blog.

Limehost & IntoVPS February Pingdom Report

leave a comment

IntoVPS 01 Feb – 28 Feb 2009

Uptime 99.25%, Downtime 4h 58m, Response time 153.85 ms, Outages 4

Intovps February 2010

LimeHost 01 Feb – 28 Feb 2009

Uptime 99.44%, Downtime 3h 44m, Response time 127.35 ms, Outages 20

Limehost February 2010

Written by Irimia

March 2nd, 2010 at 9:52 pm

Posted in General

Tagged with , , , , ,

Codeigniter: Debugging with FirePHP

leave a comment

FirePHP “enables you to log to your Firebug Console using a simple PHP method call. All data is sent via response headers and will not interfere with the content on your page. FirePHP is ideally suited for AJAX development where clean JSON and XML responses are required.”

Using it with Codeigniter is very simple. First download FirePHP core library. Look inside newly downloaded zip file and extract from there FirePHP.class.php (you can find it inside FirePHPCore/lib/FirePHPCore/).

Rename FirePHP.class.php to firephp.php and move it or upload it to your Codeigniter system/application/libraries/ folder.

Using it is very simple. Just load it in your controller and start using it.

	class Welcome extends Controller {

		function __construct() {
			parent::Controller();

			$this->load->library('firephp')
		}

		function index() {

			$this->firephp->log("Log");
			$this->firephp->info("Info");
			$this->firephp->error("Error");
		}

 	}

Now take a look on FireBug console and you should see something like that

This is a basic example usage. A more advanced usage is available inside MY_Controller (enable it for certain ip or group log messages together).

Download MY_Controller (71)

Written by Irimia

March 1st, 2010 at 12:02 am

Posted in CodeIgniter,PHP

Tagged with , ,

Install Python 2.6 on Ubuntu 8.04 LTS

leave a comment

Add to /etc/apt/sources.list

deb http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main

Import the pub key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D81367B9

Install python2.6

sudo apt-get install python2.6

Written by Irimia

February 21st, 2010 at 3:20 pm

Posted in Python,Ubuntu

Tagged with ,

Codeigniter: MY_Controller (One controller to rule them all)

leave a comment

Download MY_Controller (71)

February 28, 2010

  1. Debugging with FirePHP (url)

February 05, 2010

  1. Constants in MySQL Database (url)

Written by Irimia

February 5th, 2010 at 5:56 am

Limehost & IntoVPS January Pingdom Report

4 comments

IntoVPS 01 Jan – 31 Jan 2009

Uptime 99.90%,  Downtime 0h 45m 01s, Response time 172 ms, Outages 8

LimeHost 01 Jan – 31 Jan 2009

Uptime 98.91%,  Downtime 8h 05m 00s, Response time 128 ms, Outages 10

Written by Irimia

February 3rd, 2010 at 5:18 pm

Posted in General

Tagged with , , , , ,