Opera Widgets: Scientific Calculator

Although there's several calculator widgets existing, I still feels that my widgets has some advantages:

1. standard and scientific mode

scientificcalculator_screenshot

Opera Widgets: Whois Domain and IP Query

Another opera widgets: Whois, here's some screenshot

Using Console_Getopt to parse command line parameters in PHP

1st, make sure you have the Console_Getopt installed:

C:\php>pear list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.3 stable
DB 1.7.12 stable
HTML_BBCodeParser 1.2.2 stable
Log 1.9.11 stable
Net_DNS 1.0.0 stable
PEAR 1.7.2 stable
Structures_Graph 1.0.2 stable

Here’s the sample code:

<?php

Using Apache Ant to develop Opera Widgets

Feeling tedious of creating zip files for opera widgets everytime, I decided to use Apache Ant to create the zip file for publishing opera widgets. Here's my build.xml: 

Strip html to text using Javascript

Short version: var result="<p>some text</p>"; result=result.replace(/<\S[^><]*>/g, ""); Long version:

My 1st Opera Widgets

During the holiday, I found opera widges is fun, and I developed and published my 1st widgets Chinese English Dictionary at http://widgets.opera.com/widget/11611/ It's using stardict.cn as the backend for searches. Here's some screenshot.

cedict_screenshot1

Home by Michael Buble