Monday, November 23, 2009

Examples of Flash Charts and Graphs soon

I will try to upload some examples and screen-shots of some graphs and charts generated through Flash which gets in the data from databases or XML files.

Check in soon!

Monday, October 12, 2009

Implementation of PHP-Flash-XML - Realtime Graphs!

Hi all,

One great implementation I have of PHP-Flash-XML project is for generating real time graphs. I already have this working for Pie Charts, Bar Graphs and Line Graphs. Now I am working on Line Graphs with 2 or more variables and scatter plots.

For more details about this project, see my website,

More updates soon...

Wednesday, August 26, 2009

PHP - XML - Flash Integration

Since the past few months, I have been working on projects involving a great deal of PHP, XML and Flash integration.

Some common example of such integration are dynamic Flash websites, XML-based Flash applications, components for PHP-based websites, the list is endless.

Examples and sample of this work can be seen on my website: Over the next few days, I will be putting some samples of the ActionScript involved on this blog as well.

Friday, June 12, 2009

Updates & Examples of Python coming soon

Hi all,

I haven't been able to update this blog all that often but I will do so very soon.

Just a few quick updates:

1. Along with this blog, do visit my website too, it has a comprehensive list and details of many projects I have been working on - including the Unicode to Preeti converter. The address of my website is

2. I will be putting a number of great example code for those of you starting to learn Python as well as some higher end examples for the more experienced programmers, do check back in soon.

All for now - Please send in your comments - I would love to hear from you!

Thursday, April 9, 2009

C / C++ Compilers for Mac OS X

A new post after a long time...

Getting straight to the point, there are loads of C/C++ compilers around.

I used to use one back in the old days of System 9.1... I am forgetting what it was called but it was a pretty good one, a few functions were quirky and sometimes the debug mode didn't work all that well.

Now we have MacOS X, and there are also quite a few compilers around. I will soon put a list of them as well as installing them on the Mac...

Till next time...

Tuesday, February 24, 2009

Installing Python on Mac OS X (10.3, 10.4 or 10.5) from scratch

Installing Python on a Macintosh running Mac OS X 10.3 "Panther", 10.4 "Tiger" or 10.5 "Leopard" is quite simple and straight forward, the steps are very similar to the ones for
  1. Download the installer from (approximately 18MB)
  2. Mount the disk image.
  3. Backup your .bash_profile before you install.
  4. Double click MacPython.mpkg to start the install process. This would install the Python Frameworks along with the extras including IDLE. They would be installed in the Applications/MacPython 2.5 folder.
Once installed, you may try the installation with the simple "hello world" trial.
  1. Open TextEdit or your favourite text editor, in a blank text only file, type
    print "hello world"
  2. Save the file with the extension .py and close the text editor.
  3. Open this file with IDLE and from the Run menu, select Run Module.
  4. You should see hello world in the Python Shell.
All done, Python is now installed! Have fun!

If you have any questions or problems, just post back!

Thursday, February 12, 2009

Installing Python on Mac OS X (Leopard)

Mac OS X 10.5.x (Leopard) comes with Python 2.5.1 pre-installed. However this installation is without the, the need for comes in if you are interested in a light-weight Python development (Leopard's Xcode 3.0 allows working with Python though...)

To install and other Python 2.5 extras,
  1. Download the installer from (approximately 18MB)
  2. Mount the disk image.
  3. Do a "Show Package Contents" on the MacPython.mpkg (context-click / control-click the package)
  4. Backup your .bash_profile before you install.
  5. Navigate to Contents > Packages > PythonApplications-2.5.pkg, double click to install. This would install the extras including They would be installed in the Applications/MacPython 2.5 folder.
  6. Using Terminal, create a symbolic link for the system's Python.framework in the location expected by the tools:
    cd /Library/Frameworks

    sudo ln -s /System/Library/Frameworks/Python.framework/ Python.framework
It is recommended that you delete the newly installed Python, because it is already present inside the system Python.framework.
If you have installed Apple's developer tools (Xcode et al), it is recommended that you delete the newly installed Build, because it is already present in /Developer/Applications/Utilities/MacPython 2.5.

For more information:

Tuesday, February 10, 2009

Unicode to Preeti Converter...

Over the past few months, I have been working on a robust Unicode to Preeti and Preeti to Unicode Conversion Software, the "Unicode to Preeti Converter Project", there are three versions of the software - (a) Web Based, (b) Windows Based and (c) Macintosh Based. Currently, the supported fonts include Preeti and Kantipur. Support for the fonts will be added in due course of time.

The prototype for the Macintosh (OS X) and the Web-based versions are ready and currently in the Beta Testing phase. Once the Macintosh version has finished this phase, work would commence on the Windows version.

This software can be used to convert text in legacy fonts like Preeti, Kantipur or other Nepali or Hindi (Devanagari Script) Fonts into UTF-8 encoded (unicode) text.

For more details and updates or to know more about other projects visit my website,

Tuesday, February 3, 2009

Setting up Tomcat on Mac OS X

from - many thanks!

Found this link after a long search for trying to setup Apache Tomcat on my Mac OS X:

Many thanks again to Basil Bourque and Michael Valentiner - for the 2008 update,


1. Upgrade to Mac OS X 10.4.6

- I do not know if 10.4.6 is required, but it sure made an easy Tomcat install.
- Apply all of Apple's Software Updates, especially the Java 5 update.

2. Download apache-tomcat-5.5.16

- Unzip.
- Move it to your home folder.

3. Fix the Unix file permissions

- Download the freeware BatChmod, a GUI wrapper around the Unix "chmod" command.[]
- Drag and drop the entire Tomcat folder onto the BatChmod icon.
- Check *all* the checkboxes.
- Click "Apply" and give your Administrator password.

4. Start Tomcat

- Launch /Applications/Utilities/Terminal.
- Navigate to the Tomcat folder (apache-tomcat-5.5.16):

  cd ~/apache-tomcat-5.5.16

- Run the startup script:


- You should see something like this:

  Using CATALINA_BASE:   /Users/basilbourque/apache-tomcat-5.5.16
Using CATALINA_HOME: /Users/basilbourque/apache-tomcat-5.5.16
Using CATALINA_TMPDIR: /Users/basilbourque/apache-tomcat-5.5.16/temp
Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home

- Notice that somehow the startup script(s) have used Java 5 on Mac OS X even though it is not the default Java runtime at the command line. I hope to parse that script later to discover how they did this.

5. Test Tomcat

- Launch a web browser such as Safari.
- Goto
- You should see the cute Tomcat logo on the welcome page.

You are technically done at this point. But as a good pratice, I also did the following additional steps.

6. Start the Firewall

- System Preferences > Sharing > Firewall > Start
- Also, click the Advanced button on that panel, to (a) block UDP, and (b) start logging. It is fascinating to see how quickly a computer directly on the Internet starts to get queried/tested/attacked. Open /Applications/Utilities/Console to see the log.

7. Enable Port-Forwarding

- Add a rule to do port-forwarding from port 80 to Tomcat's default port 8080. Type this in the Terminal:

  sudo ipfw add 100 fwd,8080 tcp from any to any 80 in
This would not be necessary if you are already using another server for example Apache (web server) which uses port 80 by default.

8. Test Tomcat

- Launch a web browser such as Safari.
- Goto: [note: no port 8080 at the end]
- You should see the cute Tomcat logo on the welcome page.
- To be sure it is working, and not cached by the browser:
• Try another browser.
• Click the Reload button in the toolbar of the browser.
• Choose the Reload command, such as View > Reload Page in Safari.

Updated for 2008 (by Michael Valentiner)

Verified running Tomcat 6.0.14 on Mac OS X 10.5.1.
Did not need to set up JAVA_HOME and did need to fix Unix file permissions.
The System Preferences > Sharing > Firewall has moved to System Preferences > Security > Firewall. Able to enable logging, but haven't figured out how to block UDP.

You might want to look at: