Tuesday, April 29, 2008

How to enable Zend Optimizer in XAMPP?


If you just plan to install a PHP application but it keep prompt error when you run install.php, I think you either need to install Zend Optimizer or enable it.

If you are using XAMPP, you may simply uncomment some lines in a couple files to enable the Zend Optimizer.

XAMPP has 2 php.ini files, one in C:\xampp\apache\bin folder and another in C:\xampp\php folder. To enable Zend Optimizer in XAMPP, you need to locate the one in C:\xampp\apache\bin and double-click on it. This should bring up notepad with php.ini
Scroll down to the bottom of the file and you will see a [Zend] section. That will look something like this:

; [Zend]
; zend_extension_ts = "\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
; zend_extension_manager.optimizer_ts = "\xampp\php\zendOptimizer\lib\Optimizer"
;zend_optimizer.enable_loader = 0
; zend_optimizer.optimization_level=15

Uncomment each line by removing the semi-colon ; at the begining. The result should look something like this:

[Zend]
zend_extension_ts = "\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
zend_extension_manager.optimizer_ts = "\xampp\php\zendOptimizer\lib\Optimizer"
zend_optimizer.enable_loader = 0
zend_optimizer.optimization_level=15


The paths and file names may vary. But this is not a problem, just simply remove the semicolon.

NOTE: In some versions of XAMPP these lines may already be uncommented, however you must change the line:
zend_optimizer.enable_loader = 0
to
zend_optimizer.enable_loader = 1

Next you should do the same thing for the php.ini file located in C:\xampp\php folder.
Restart XAMPP’s control panel and the Zend Optimizer is now enabled!

Monday, April 28, 2008

How to get day different between two date and check consecutive date (C#)?


Recently, I am writing a code that need to check whether the user selected date is consecutive or not. Since user is using a multiple selectable calendar that consists of three different months so he/she is allow to choose whichever date they want. In order to allow me to check the consecutive date, first I need to find the maximum and minimum date value in my propertiesCollection. However, there are no indicator for propertiesCollection as what Array have, so I first loop all the value in propertiesCollection into an Array. After that, I sort the Array and write some code to get the maximum and minimum value.

After getting the max and min, I use TimeSpan object in C# and get the day different of these two date.

Due to the limitation of the editor. For full code please kindly visit link below:

http://www.ahwooi.com/2008/04/29/how-to-get-day-different-between-two-date/

Saturday, March 22, 2008

Admin Password for Billion Router Modem BIPAC 5112S

I just got myself a Billion Router Modem (BIPAC 5112S). As usual, I plug all the network cable into the Billion router modem and start to using it. However, I am not able to access the administrator page as instruct in the user manual. I enter "Admin" as the username and "admin" as the password, but I am not able to access the page.

I google on the net and finally found the password printed in the user manual should be "password " not "admin". Finally, I am able to access the page and put all my configuration to the router modem and I am now starting using it as my new broadband device.

What is Pandora Battery (Sony PSP)?

Here are some of the information about Pandora Battery I grabbed from the web. Hope it help.

The "Pandora's Battery" as they call it, is just a regular PSP battery. The battery of a PSP has flash memory on it with boot information for the system. When converting the battery for downgrade procedure, the PSP program that we use actually dumps the batteries flash and puts a bin image with official sony firmware e.g:1.50 and some developer code. When we place the converted battery into the PSP it boots and runs the developer code and downgrades the PSP. At this point, they say that the battery is useless. They have come out with an update that will convert the battery back and thats why they dump the flash first. After the PSP is downgraded, if we use the converted "pandora's battery" as ourr power source, it will only run a partial of the 1.50 firmware because of the missing battery flash files. In order to have full 1.50 we must convert the battery back into a normal one.

Beside that, I do found an explanation that Pandora Battery would also be something that could change the power levels going into the system to drop the chip into a debug mode and allowing a more direct way of programming or flashing the main firmware chip.

I hope the explanations are correct. Do give comment if some of you found it is misleading.

The most popular Sony PSP's Games.

I am planning to get myself a PSP Slim & Lite soon . Due to that I have been research on the most popular PSP game currently available in the market Below are the list I found in the net.

  • Crisis Core : FF VII
  • God of War : Olympus
  • Wild ARMs XF
  • Patagon
  • Disgaea PSP
  • Flatout : Head On
  • Lumines
  • FF Tactics : War of Lions
  • Jeanne D'Arc
  • Pro Evolution Soccer 2008
  • Ridge Force : Extreme Justice
  • Burnout Legend
  • Wipeout Pure
I wish to get all these game when I got my Sony PSP. For those who had read this post do give your comment on latest PSP's game.