How to enable showing queries in Code Igniter profiling?

Its been now a while using CodeIgniter (PHP Framework), but i have been keep finding new stuff when face some dramatic problem. I have to enable a profiling in one my work and come accross a problem that profiling not showing any queries even database is selected.

To solve this problem goto system/database/DB_driver.php look for :

var $save_queries    = FALSE;

Set save_queries variable from FLASE -> TRUE so your new settings will be:

var $save_queries    = TRUE;

It will now show a queries into profiling. 🙂

How to kill process running on some port?

I have been facing a problem of how to kill a process running on some port. After some digging out on net i found out.

Here is a command line code (sort of shell script)

lsof | grep IPv | grep 3001 | awk '{print $2}' | xargs -l -i kill -9 {}

It did work for me :).

Are you experencing session problem with codeigniter 1.7.1?

It’s been a while i have been posted any thing on blog. I have been quite busy with my works, as i am using codeigniter for my current PHP project. We know that session.php comes with the codigniter is not good enough to handle session properly. If you already using it you may be experienced a problem of session still continue even if you close browser and reopen it again. Also remember me check box wont work.

After looking into forums i got a solution regarding it. I have added $sess_persistent_cookie variable into session.php and also write up a function to set it. This persistent cookie var will be responsible to work with remember me option. We have to just execute $this->session->sess_persistent_cookie(true) to enable remember me option. Also do not forgot to add this line to config.php of yours.

$config[‘sess_persistant_cookie’]     = TRUE;

You can download Session.php with this post. Anyone can use it with their own risk (nothing much to worry about it).  It will work like a charm :).

If any query just comment here.

Adobe asks Ajaxians to beta test Apollo

Adobe wants to make Apollo a great environment for Ajax developers.

They were looking to find a bunch of smart JavaScript hackers in the know to get involved in a private Beta of Adobe Apollo, and realised that the Ajaxian community was a great place for them to reach out.

Therefore, if you have an interest in trying out Apollo, and giving honest feedback to the team at Adobe simply send an email to apollobeta@adobe.com with the following information:

  • Your name
  • Email address
  • Why you are interesting in Apollo

Windows Vista: Slower Downloading or TCP/IP Auto Tuning Problem

I have install the windows vista RTM build version. I am really amazed the looks and performance of windows vista. It has detected almost all my hardware devices except sound blaster card.

After setting up network on my pc. I tried to download stuff by a means of any download manager and i noticed that download manager does not able to download fast when you generally spilt up download file into number of threads. This is beceuase of windows vista having TCP/IP Auto Tuning to ON, which is future stack implementation of TCP/IP, but sound like not working properly. To resolve this issue just open up the command prompt as administrator or type this in run window:

netsh int tcp set global autotuninglevel=disabled

After you get the OKÂ text on command prompt exit from it and reboot your computer.

Check your throughput with MySpeed (try before and after to see the difference).

Sooner or later when microsoft will resolve this issue i am sure i love my vista to be work with auto tuning on. 🙂

NOTE: this only fixes the SPI issue. It will not help gain performance under other circumstances.Â

Â

Â

Â