3.2.09

Now: Java

Hi,

It's been a while since I posted here and a lot of things happened already. Tonight, I will be posting of a different thing as I have been re-learning JAVA. Yes, the old programming paradigm that I once rubbed off my shoulder was once again at the doorsteps, knocking at ME to learn about it.

Now that JAVA is OpenSource, I am still a bit skeptic about what can be done with it.

There must be a reason why I am now shifting most of my time to JAVA and not with Python,PHP and C++ which is what I commonly use.

Just to keep you hanging and of course, not to spoil the company's plan, I would not discuss the details of what I have been doing the last 2 months. I have a month more of development for this so I'm going to keep my fingers shut until it is the time to divulge the great secret.

After which, I will be blogging about the pain, the hardships and all the fuzz that happened before, during and after development.

Thanks for reading.

14.1.09

Installing APACHE 2.2, PHP 5.2 and MySQL on Windows XP that works

1.) Get apache 2.2 from http://httpd.apache.org I prefer that you download the one with ssl
2.) Next, get PHP from http://ph.php.net/get/php-5.2.8-Win32.zip/from/a/mirror. I am downloading PHP 5.2.8.8 windows binaries in ZIP file not the installer
3.) Next get mysql from http://dev.mysql.com/downloads I got mysql 5.1 community edition essentials
4.) wait for them to finish
5.) Install apache normally first. I installed mine on C:\apache you can use the default
6.) Next install MySQL you would want to configure the root password
7.) extract PHP somewhere, I did mine in C:\PHP
8.) add this to httpd.conf that is in C:\apache\conf:

LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php

PHPIniDir "C:/php"

9.) restart apache
10.) create this as index.php in your C:\apache\htdocs folder:

phpinfo();
?>

11.) open a browser and point to: http://localhost/index.php
12.) in the line: Loaded Configuration File you will find that there is none loaded so in your c:\php directory rename php.ini-recommended to php.ini. open the file and uncomment the line extension=php_mysql.dll it's around line 681. also, don't forget to change the extension_dir around line 542 to read :

extension_dir="C:/php/ext"

13.) restart apache again
14.) check again http://localhost/index.php as you can see, mysql is not included in there.
15.) to enable mysql in php:
I. copy the file libmysql.dll from the directory where you install mysql usually in C:\Program Files\MySQL
to C:\php
II. you need to put mysql's bin path to the PATH environment variable the same with C:\php
III. at this point you need to restart
IV. check again at http://localhost/index.php and you should see mysql already there
16.) Edit again c:\apache\conf\httpd.conf the line:
DirectoryIndex index.html
should now read:
DirectoryIndex index.php index.html

17.) Restart apache and now you are done!

10.11.08

Science Centrum is back!

It's nice to hear that our beloved Philippine Science Centrum can once again be experienced by everyone! Yes. The Science Centrum that we grew up with, enjoyed and the one that sparked our CURIOSITIES is relived, albeit in another place. You can check the link ( http://www.science-centrum.ph/ ) and it would be much better if you can experience it for yourself!

The Philippine Science Centrum, now in Marikina Riverside, will be opened to public on November 22, 2008. I will be there, my wife will be there, hopefully, I can see all of you there also!

We really are winners of cosmic lottery...

6.11.08

Recovering lost network connection on VMWARE Image

I found this really helpful! Thanks to the author. VMWare is cool! (http://www.vmware.com). Qemu is cool too! (http://www.qemu.com)

14.10.08

A good "basic" security site, albeit old

This is a good, albeit old, security site for those who want to learn more about how to create security policies in their workplace. I am putting it here just in case ;)

5.10.08

Trying out GNUDialer

Ok

It's my first time to try and make GnuDialer work. So far, I have been unsuccessful. But I'm not losing hope. I know that it may be easier for me to try using Vicidial but we are planning to create a contact center solution that will be based on open source software. The software will be free but the cost will be setting it up and configuring all the workstations and the servers.

I will try again today and will paste here the steps that I have done to make it work.

See you...

17.9.08

Patching / Editing Symfony 1.0.10 for PostgreSQL's Multiple Schema

I will just post here what had been posted at a different forum, I can't remember where. But this patch had been useful to me to add functionality of PostgreSQL's Schema to be seen and used inside symfony.

symfonyMultipleSchemasPatch-1.0.10.patch

8.9.08

Automated psql from the command line

So I will not forget how to do this.

To run my script in postgres without logging in:

I set the environment variables $PGHOST $PGUSER $PGPASSWORD $PGDATABASE

then run the postgresql script : psql $PGDATABASE -f sql_script.