Archive for October, 2005

Three things for sure in this world

Thursday, October 27th, 2005

Three things are for sure: death, taxes, and people want to take your money for nothing. My sites are hosted on a dedicated server with GoDaddy. This is a general warning: GoDaddy (and I’m sure most hosting companies) suck. All they want to do is take your money. No matter what they tell you, service is terrible.

My websites this past week started crashing – not any normal crash – only the databases failed to connect. So I email GoDaddy support, and they replied:

…it appears the amount of traffic you are receiving … exceeding the configuration settings of your web server. There is a “Max Clients” setting within Apache, and the traffic to your website is exceeding this. … We can raise this setting …. fee of $100 to your account. If you wish …. respond to this message with the last 4 digits of a credit card…

First of all — $100 to change something so simple? Anyone have problems with this, send me an email and I’ll do it for a quarter… literally… 25 cents. Secondly, MaxClients default is 10?? Whats wrong with these people? They set settings so ridiculously low, so when you have a problem they’ll charge you serious money to change it. (All the settings below were set low)

If anyone has these problems, go to your /etc/httpd/conf/httpd.conf file and change the following settings to the numbers below:

Code:
Timeout 300
KeepAlive On
MaxKeepAliveRequests 150
KeepAliveTimeout 5
MinSpareServers 20
MaxSpareServers 40
StartServers 15
MaxClients 100
MaxRequestsPerChild 75

This will give your servers some descent performance – play with these values, see what works best. Google the definition of each.

Mozilla to attack when Vista launches?

Saturday, October 22nd, 2005

FireFox recently passed the 100M download mark, only 6 months after they reached 50M. I guess the real question is how many people actually use the browser regularly? On average, say each person has 2 computers (work and home), format twice a year… that 100M could be lower.

…(FireFox) may see a big fall after the leader in the browser market Microsoft’s launches its Windows Vista operating system … alongside the newer version of the Internet Explorer. A Gartner analyst even suggested, “Much will depend on how Microsoft ties Internet Explorer to its big releases next year”.

I wouldn’t be surprised if whenever Vista launches, Mozilla initiates their largest marketing effort to date. Over the summer, the ‘for profit’ arm of Mozilla was formed — see Mozilla re-Structure — and I’m sure one of their goals is to make sure FireFox grows post Vista. Furthermore, large companies in the past have pledged large amount of money to Mozilla, including AOL back in 2003. What I want to see is IBM and Google publicly inject a huge amount of money for a total Mozilla marketing effort.

Below is the 2 year Alexa traffic chart of mozilla.org — growth is obvious. Below that (un-fair) comparison with microsoft.com

Mozilla Alexa

Mozilla compare MS Alexa

PR: Top student wins stock market challenge

Tuesday, October 18th, 2005

The Disnat DeGroote Stock Challenge recently ended, and McMaster Daily News did an article about it. The article is below — for the original click here: McMaster Daily News

————————————————————————————————

Top student wins stock market challenge

October 17, 2005

Ninety participants from the DeGroote community took part in the 2005 Disnat DeGroote School of Business Stock Market Challenge that saw more than 8,000 stock trades placed over the last few months.

On Tuesday, Oct. 11 in the Gould Trading Floor, a representative from Disnat/Desjardins awarded prizes to the winners of the challenge.

The grand prize winner was third-year commerce student Niroshan Arumugam, who received $500 for achieving the largest portfolio value and cash gain using imaginary cash. Niroshan took an initial ‘pot’ of $50,000 and by the end of the contest grew this to more than $200,000. That rate of return greatly impressed the Disnat officials who sponsored the contest. Arumugam was the winner of the month for July, August and September, receiving $150 each month. The June winner was Kate Morrissey.

During the challenge, which began in May, students tested their investment prowess against that of their professors, DeGroote staff and alumni. Special guest investor, Felix the Cat, challenged the students by making random stock investments.

The prizes were sponsored by Disnat, a division of Desjardins Securities, the brokerage arm of the Desjardins Group. George Papayiannis, a McMaster software engineering and management student, developed the simulation. The web platform is now available free online and is being used in stock challenges across North America.

————————————————————————————————

PR: Can DeGroote investors beat Felix the Cat?

Tuesday, October 11th, 2005

This PR was from May 30 2005, but since a few more are coming, I thought I’d post this one first. To read the original, see McMaster Daily News

————————————————————————————————

Can DeGroote investors beat Felix the Cat?

Investment challenge pits profs, students and others against feline competitor

May 30, 2005

Students can test their investment prowess against that of their professors in the Disnat DeGroote School of Business Stock Market Challenge. DeGroote staff and alumni are also participating. They will be challenged by special guest investor, Felix the Cat, who will make random stock investments.

The challenge begins May 31 and runs until September 30. Although participants compete with imaginary cash, monthly prizes are awarded for the largest portfolio value and cash gain. A final $500 prize is awarded to the participant making the most over the four months.

The prizes for this challenge are sponsored by Disnat, a division of Desjardins Securities, the brokerage arm of the Desjardins Group. Desjardins investment professionals are offering a complementary investment seminar to all stock market challenge participants in the fall 2005. The simulation was developed by George Papayiannis who is a McMaster software engineering and management student.

The simulation game will be hosted by Stock Boulevard and will be open to all DeGroote students, professors, staff and alumni (DeGroote family members are also welcome also). The simulation will last for four months.

Desjardins investment professionals will be offering a complementary investment seminar to all participants of the stock market challenge in the fall 2005.

To join the stock market simulation visit http://ddsc.stockboulevard.com to register.

————————————————————————————————

How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP

Sunday, October 9th, 2005

I’ve had lots of people ask my in the past, how to install PHP, MySQL and Apache for Windows XP. I recently formated my computer, and since I was going to do it, I thought I’d write out how to do this, for anyone who wants to know. My computer has SP2 installed.

Apache Web Server

Download Apache HTTP Server. I downloaded the current stable release, in this case: Apache 2.0.54. So download the Win32 Binary (MSI Installer), double click it, let it install.

PHP Run-time

Download PHP. I downloaded PHP 4.4.0. I could have downloaded PHP 5.0, but as long as PHP < 5.0 gives me what I need, I won’t change. PHP 5 is the way to go. The tutorial below is pretty much the same, see the comments if you have problems. Unzip the contents, and put it all in the folder C:\php.
Copy the following files into your Apache2 installation directory. In my case it was C:\Program Files\Apache Group\Apache2.

Code:
php4ts.dll
php4apache2.dll
php.ini-recommended

Rename php.ini-recommened to php.ini. Open the php.ini in your favorite editor. Mine is EditPlus.

Search for ‘doc_root’ until you find the line:

Code:
doc_root =

Change this line to (in my case):

Code:
doc_root = C:\\Program Files\\Apache Group\\Apache2\\htdocs

Go to the directory: C:\Program Files\Apache Group\Apache2\conf\;
Add the following lines to the end of the file httpd.conf:

Code:
LoadModule php4_module php4apache2.dll
AddType application/x-httpd-php .php

In the same file, add index.php to DirectoryIndex — this will make sure index.php will be picked up by the server automatically:

Code:
DirectoryIndex index.html index.html.var index.php

PEAR Extension

PEAR is an extension for PHP. These days PEAR is included with PHP, but you need to install it yourself. I use PEAR on all my PHP developments.

Ok.. Installing PEAR isn’t bad, here is what you do:

Open a command line window (i.e. Start->Run->cmd)
Go to the PHP directory, in my case C:\php. Type go-pear.bat. Follow the instructions.
The PEAR extension get installed in C:\php\PEAR directory.
Once PEAR is installed, go to the php.ini file in your Apache2 directory. Find the

Code:
;include_path = ".;c:\\php\\includes"

Remove the semi-colon (to un-comment it), and then add C:\php\PEAR to it

Code:
include_path = ".;c:\\php\\includes;C:\\php\\PEAR"

MySQL DataBase

Download MySQL (runtime) and MySQL Administrator (Admin program). I used MySQL 4.1 Generally Available (GA) release. Download, unzip, and install both.

Testing it all – you really don’t need to, but before testing, restart your computer.

Test Apache Web Server

Once Apache is installed, you should be able to go to your favorite browser, type the following URL: http://localhost/ and have a test page load.

Test PHP

Go to the htdocs folder in Apache2 folder
Create a file called index.php, inside of that file put (be sure to remove the space between the < and the ?php):

Code:
<?php
echo "php installed ok";
?>

Go to your browser, type the following URL: http://localhost/index.php
If everything worked OK, “php installed ok” will appear on the screen.

Test MySQL and PHP using phpMyAdmin

Download phpMyAdmin.
This is the best web based MySQL Administration Tool (vital, trust me).
Unzip the contents into a folder phpMyAdmin in your htdocs folder.
Were going to use phpMyAdmin to control MySQL instead of the command line.
In the phpMyAdmin folder open the config.inc.php and type in the your root password for MySQL:

Code:
$cfg['Servers'][$i]['password'] = 'xxxxx';

Try and run phpMyAdmin in your browser: http://localhost/phpMyAdmin/
You’ll most likely get the error:

Client does not support authentication protocol requested by server; consider upgrading MySQL client

To fix this, do the following:

  1. Start the MySql Administrator, select “Startup Variables” from the menu, select the “Security” Tab. Check ‘Use old passwords’.
  2. Select “User Administration” from the menu, select the root user account and change the password for root user (other than null)
  3. Select “Service Control” from the menu, press “Stop Service” button and then press “Restart Service”.

Go back to config.inc.php and type in the your new root password for MySQL:

Code:
$cfg['Servers'][$i]['password'] = 'yyyyyy';

Try and run phpMyAdmin: http://localhost/phpMyAdmin/ — this should work now.

Test PEAR

Using phpMyAdmin to create a database
In your htdocs folder create a file called testpear.php, in the file put the following (be sure to remove the space between the < and the ?php):

Code:
<?php

require_once 'DB.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);

$db_host = 'localhost';
$db_user = 'root';
$db_pass = 'password';
$db_name = 'dataBase_name';
$dsn = "mysql://$db_user:$db_pass@unix+$db_host/$db_name";

$db = DB::connect($dsn);
$db->setFetchMode(DB_FETCHMODE_OBJECT);

?>

This will use the PEAR DB Extension to create a connection to your database. Before running this file make sure your database details are correct (i.e. name, user, password). Run this file in your browser, if no errors are listed, then your good to go.

————————

Sources

http://forums.mysql.com/read.php?11,6400,38314#msg-38314

http://www.devarticles.com/c/a/Apache/Installing-PHP-under-Windows/

“Google Finally Goofs Up” – Motley Fool -> Google + Sun

Tuesday, October 4th, 2005

When I read the PR that Sun was going to team up with Google to push StarOffice, I felt the same way Tim Beyers felt. In a well crafted article for Motley Fool, Tim bashes the move by saying:

Go ahead, type your hate mail. I can take it. Just remember that when you read that I think Google (Nasdaq: GOOG – News) may be the most brilliant of all the copycats out there. But teaming with Sun Microsystems (Nasdaq: SUNW – News) to push StarOffice? Why, Google? Why?
You don’t really see StarOffice as the white-knight alternative to Microsoft’s (Nasdaq: MSFT – News) Office, do you?

and…

Again, the problem isn’t with the software. It’s with Microsoft’s utter dominance of the market. Numerous published reports suggest that there are anywhere between 400 and 600 million global users of Microsoft Office. Last year, Sun told U.K. trade journal Computer Weekly that there were 40 million Star Office users worldwide. Really? OK, but I wonder if this is only counting downloads…

Who knows.. with Google pumping in some new technology, a few patents here and there… you never know

Your Ad Here