Monday, November 23, 2009
Examples of Flash Charts and Graphs soon
Check in soon!
Monday, October 12, 2009
Implementation of PHP-Flash-XML - Realtime Graphs!
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, http://www.vibhumishra.com/index.php?php-flash-xml.
More updates soon...
Wednesday, August 26, 2009
PHP - XML - 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: www.vibhumishra.com. 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
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 http://www.vibhumishra.com
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
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
- Download the installer from http://pythonmac.org/packages/py25-fat/dmg/python-2.5-macosx.dmg (approximately 18MB)
- Mount the disk image.
- Backup your .bash_profile before you install.
- 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.
- Open TextEdit or your favourite text editor, in a blank text only file, type
print "hello world" - Save the file with the extension .py and close the text editor.
- Open this file with IDLE and from the Run menu, select Run Module.
- You should see hello world in the Python Shell.
If you have any questions or problems, just post back!
Thursday, February 12, 2009
Installing Python on Mac OS X (Leopard)
To install IDLE.app and other Python 2.5 extras,
- Download the installer from http://pythonmac.org/packages/py25-fat/dmg/python-2.5-macosx.dmg (approximately 18MB)
- Mount the disk image.
- Do a "Show Package Contents" on the MacPython.mpkg (context-click / control-click the package)
- Backup your .bash_profile before you install.
- Navigate to Contents > Packages > PythonApplications-2.5.pkg, double click to install. This would install the extras including IDLE.app. They would be installed in the Applications/MacPython 2.5 folder.
- Using Terminal, create a symbolic link for the system's Python.framework in the location expected by the pythonmac.org tools:
cd /Library/Frameworks
sudo ln -s /System/Library/Frameworks/Python.framework/ Python.framework
If you have installed Apple's developer tools (Xcode et al), it is recommended that you delete the newly installed Build Applet.app, because it is already present in /Developer/Applications/Utilities/MacPython 2.5.
For more information:
• http://wiki.python.org/moin/MacPython/Leopard
• http://python.org/download/mac/
Tuesday, February 10, 2009
Unicode to Preeti Converter...
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, www.vibhumishra.com.
Tuesday, February 3, 2009
Setting up Tomcat on Mac OS X
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,
Steps:
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.[http://macchampion.com/arbysoft/]
- 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:
./bin/startup.sh
- 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 http://127.0.0.1:8080/
- 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 127.0.0.1,8080 tcp from any to any 80 inThis 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: http://127.0.0.1/ [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.