Sunday, December 27, 2009
Can a blog spread virus ?
Wednesday, December 16, 2009
SEX - a computing word
/seks/ [Sun Users' Group & elsewhere] 1. Software EXchange. A technique invented by the blue-green algae hundreds of millions of years ago to speed up their evolution, which had been terribly slow up until then. Today, SEX parties are popular among hackers and others (of course, these are no longer limited to exchanges of genetic software). In general, SEX parties are a Good Thing, but unprotected SEX can propagate a virus. See also pubic directory.
2. The mnemonic often used for Sign EXtend, a machine instruction found in the PDP-11 and many other architectures. The RCA 1802 chip used in the early Elf and SuperElf personal computers had a "SEt X register" SEX instruction, but this seems to have had little folkloric impact.
DEC's engineers nearly got a PDP-11 assembler that used the "SEX" mnemonic out the door at one time, but (for once) marketing wasn't asleep and forced a change. That wasn't the last time this happened, either. The author of "The Intel 8086 Primer", who was one of the original designers of the Intel 8086, noted that there was originally a "SEX" instruction on that processor, too. He says that Intel management got cold feet and decreed that it be changed, and thus the instruction was renamed "CBW" and "CWD" (depending on what was being extended). The Intel 8048 (the microcontroller used in IBM PC keyboards) is also missing straight "SEX" but has logical-or and logical-and instructions "ORL" and "ANL".
The Motorola 6809, used in the UK's "Dragon 32" personal computer, actually had an official "SEX" instruction; the 6502 in the Apple II with which it competed did not. British hackers thought this made perfect mythic sense; after all, it was commonly observed, you could (on some theoretical level) have sex with a dragon, but you can't have sex with an apple.
Monday, November 16, 2009
I earn money by using P1 Wimax ?
Friday, November 6, 2009
PingTest vs SpeedTest
traditional connection like GPRS or even dial up becomes useful again where once connected reliability is assured ( relatively ).
In order to test your interenet line quality, try pingtest.net. Below is a sample result of Streamyx 512kbps line
Thursday, November 5, 2009
snake oil IT businesses
- AI - is FAKE intelligence really smart or just plain stupid ?
- CASE - I am a supporter on this but Program for the Program ? I have to admit, not everyone gets it!
- Thin Client - when a thick client is cheap, its a THIN client, period !
- ERP - All in ONE ! All in ONE ! But what is ALL ?
- B2B - One of the most stupid Internet terms of all time and yet still being bought by many investors.
- Social Webs - Let's have a serious meeting over a not-so-serious coffee table
- know more about ourselves, how we think, why we act etc.
- eventually come up with something that is more 'natural' than today's machines
Tuesday, November 3, 2009
1Mbps P1 Wimax vs 512kbps Streamyx
P1 Wimax
Friday, October 23, 2009
Most comprehensive study in Malaysia Broadband service providers
- unlimited usage : if you will surely use more than 10-20GB a month
- typical business use : on the run, 10-20GB a month is enough for email etc.
- cheapest : student, no money, just want to browse net sometimes
- fastest : speed is everything, price and bandwidth are not problems
Friday, October 9, 2009
Online Voice Modeling
Friday, September 25, 2009
Garnet OS Developement
Thursday, September 24, 2009
Developing solutions for old Palm OS
GCC ( cygnus B20 )SDK ( now grouped into access dev net )
Software Development for the Palm OS
Jan Schaumann <jschauma@netmeister.org>
[netmeister.org] [netmeister's PalmStuff]
A brief overview of Software Development for the Palm OS, Webclipping, Conduits, compiled from various websites.
Note: This document was written in 2000 and has not been updated since then. I simply don't have the time to keep it up to date. If you wish to maintain the document, please let me know and I'll add a link to your website from here. Other questions and problems regarding this document I will most likely no longer be able to answer -- not out of malice, but actually sheer ignorance; I have not kept up to date on the Palm topic.
Table of contents
1. Why Programming for the Palm OS is different1.1 Screen Size2. Palm OS Programming Concepts
1.2 Quick Turnaround Expected
1.3 PC Connectivity
1.4 Input Methods
1.5 Power
1.6 Memory
1.7 File System
1.8 backward compatibility
2.1 PilotMain3. Tools
2.2 Event Loop
2.3 User Interface
2.4 Memory
2.5 Function calls
3.1 Coding Tools4. Hardware using the Palm OS
3.2 Emulators3.2.1 Obtaining ROM Image Files3.3 Conduit Development Kits (CDKs)
3.2.2 The Palm OS Emulator
3.2.3 Other Palm OS Emulators
3.4 Web Clipping Development (WCA)3.4.1 Two components to WCA
3.4.2 WCA Builder Tools
3.4.3 A WCA Example
3.4.4 Palm Query Applications (PQA)
3.4.5 A PQA Example
5. Wishlist
6. Main Resources
1. Why Programming for the Palm OS is different
Developing applications for the Palm OS is a bit different than developing applications for desktop computers such as the PC or a Mac. First off, the Palm computing platform is designed differntly than a desktop computer. Also, users simply interact with the device differently than they do desktop computers.
1.1 Screen SizeThe Palm OS device's screen is only 160x160 pixels, so the amount of information you can display at one time is limited. For this reason, the user interface must be designed carefully with different priorities and goals than are used for large screens. Note that screen sizes of future Palm OS devices may vary.
On a PC, users don't mind waiting a few seconds while an application loads because they plan to use the application for an extended amount of time. By contrast, the average Palm user uses a Palm application 15 to 20 times per day for much briefer periods of time, usually just a few seconds. Speed is therefore a critical design objective for hand-held organizers and is not limited to execution speed of the code. The total time needed to navigate, select, and execute commands can have a big impact on overall efficiency. (Also consider that the Palm OS does not provide a wait cursor.)
To maximize performance, the user interface should minimize navigation between windows, opening of dialog boxes, and so on. The layout of application screens needs to be simple so that the user can pick up the product and use it effectively after a short time. It's especially helpful if the user interface of your application is consistent with other applications on the device so users work with familiar patterns.
PC connectivity is an integral component of the Palm Computing platform device. The device comes with a cradle that connects to a desktop PC and with software for the PC that provides "one-button" backup and synchronization of all data on the device with the user's PC.
Many Palm OS applications have a corresponding application on the desktop. To share data between the device's application and the desktop's application, you must write a conduit. A conduit is a plug-in to the HotSync® technology that runs when you press the HotSync button. A conduit synchronizes data between the application on the desktop and the application on the hand-held device. To write a conduit, you use the Conduit SDK, which provides its own documentation.
Handheld users don't have a keyboard or mouse. Users enter data into the device using a pen. They can either write Graffiti® strokes or use the keyboard dialog provided on the device.
While Graffiti strokes and the keyboard dialog are not as convenient as using the full-sized desktop computer with its keyboard and mouse. Therefore, you should not require users to enter a lot of data on the device itself.
The Palm Computing platform device runs on batteries and thus does not have the same processing power as a desktop PC. You should keep this i mind when developing applications for the Palm OS and avoid using heavy calculation.
The Palm OS device has limited heap space and storage space. Different versions of the device have between 512K and 8MB total of dynamic memory and storage available. The device does not have a disk drive or PCMCIA support. Because of the limited space and power, optimization is critical. To make your application as fast and efficient as possible, optimize for heap space first, speed second, code size third.
Because of the limited storage space, and to make synchronization with the desktop computer more efficient, Palm OS does not use a traditional file system. You store data in memory chunks called records, which are grouped into databases. A database is analogous to a file. The difference is that data is broken down into multiple records instead of being stored in one contiguous chunk. To save space, you edit a database in place in memory instead of creating it in RAM and then writing it out to storage.
Different versions of the Palm Computing platform device are available, and each runs a different version of the Palm OS. Users are not expected to upgrade their versions of the Palm OS as rapidly as they would an operating system on a desktop computer. Updates to the OS are designed in such a way that you can easily maintain backward compatibility with previous versions of the OS, and thus, your application is available to more users.
2 Palm OS Programming Concepts
Palm OS applications are generally single-threaded, event-driven programs. Only one program runs at a time. To successfully build a Palm OS application, you have to understand how the system itself is structured and how to structure your application.
2.1 PilotMainEach application has a PilotMain function that is equivalent to main in C programs. To launch an application, the system calls PilotMain and sends it a launch code. The launch code may specify that the application is to become active and display its user interface (called a normal launch), or it may specify that the application should simply perform a small task and exit without displaying its user interface. The sole purpose of the PilotMain function is to receive launch codes and respond to them.
Palm OS is an event-based operating system, so Palm OS applications contain an event loop; however, this event loop is only started in response to the normal launch. Your application may perform work outside the event loop in response to other launch codes.
Most Palm OS applications contain a user interface made up of forms, which are analogous to windows in a desktop application. The user interface may contain both predefined UI elements (sometimes referred to as UI objects), and custom UI elements.
All applications should use the memory and data management facilities provided by the system.
You implement an application's features by calling Palm OS functions. Palm OS consists of several managers, which are groups of functions that work together to implement a feature. As a rule, all functions that belong to one manager use the same prefix and work together to implement a certain aspect of functionality.
3. Tools
3.1 Coding ToolsDevelopment (commercial) tools for the Windows platform are:
Since Applications for the Palm OS are written in C/C++, you write the code in any environment and then compile it. You do need the Palm OS SDK, which includes the headers, libraries, and tools for Palm Computing platform development on Windows, Mac OS, or Unix/Linux platforms. In order to compile the sourcecode, you need a couple of tools, which are (for Unix/Linux and Windows at least) freely available.
- CASL (Compact Application Solution Language): Compact Application Solution Language Tools from Feras Information Technologies is a Windows-based integrated development environment for creating high-level interpreted applications integrated with conduits to Windows desktop applications. Includes a development environment, a conduit, and sample code.
- Satellite Forms: Satellite Forms from Puma Technology is a visual, rapid development environment for applications and conduits. Design applications via drag-and-drop. Develop event-driven scripts in a language similar to Visual Basic using custom controls, plug-ins, and Satellite Forms APIs.
- Pendragon Forms: Pendragon Forms from Pendragon Software is a fast and simple way to create data collection applications and conduits.
The Palm OS® Emulator is software that emulates the hardware of the various models of Palm OS® platform devices. It is extremely valuable for writing, testing and debugging applications. Create "virtual" handhelds by running the Emulator on Windows, Mac OS, or Unix/Linux computers.
Emulated devices can be loaded with new ROMs, so you can test your application with virtual devices, including different devices than you own, foreign language ROMs, and debug-enabled ROMs for extra error checking and debugging features.
The Emulator software does not include ROM images. It is like a computer without an operating system. There are two sources of ROM images: ROM images file or upload a ROM from an actual device. As a developer, there are advantages to using ROM image files because you can use "debug-enabled" ROMs that contain extra debugging code not found in shipping hardware ROMs.
3.2.1 Obtaining ROM Image FilesFor legal reasons, you must sign an agreement with Palm Inc. to download ROM images. To obtain the Prototype License and Confidentiality Agreement, you must be a member of the Palm[tm] Solution Provider Program. After joining the Solution Provider Program, we recommend that you join the Developer Seeding Program, which requires that you return a signed agreement to us. This allows you to access ROM images and other valuable prerelease information. If you are based in the USA, you may also obtain images using a "clickwrap" agreement that does not require a signed agreement.
You can also download a ROM using the Emulator from a handheld device that has been placed into the cradle connected to your desktop computer.
The Palm OS Emulator (or POSE, former "copilot") displays an on-screen image that looks exactly like a Palm connected Organzier. You can select which kind of Palm handheld device you want to emulate, and you can also specify that you want POSE to display the screen in double size, which continues to provide an accurate presentation and makes the Palm screen easier to view.
You can use your mouse on your desktop computer just as you use a stylus on a Palm Device. You can even use the Graffiti Power Writing Software with POSE and your mouse. You can use POSE to perform some debugging of your applications and you can use the Emulator with Palm Debugger to debug in exactly the same manner as with your application running in the actual hardware handheld device.
The Palm OS® Emulator was based on "Copilot", written by several different developers, and is available on the following platforms:
- The original Copilot for Windows - http://www.hewgill.com/pilot/copilot/index.html
- Copilot for Mac OS (PowerPC) - http://members.aol.com/illumesoft/copilot.html
- "Zilot" for Mac OS} - http://www.pollet.net
- "xcopilot" for Unix/Linux - http://www.isaac.cs.berkeley.edu/pilot/
- "Copilot/2" - URL currently unavailable
- "PilotCE" for WindowsCE - http://www.geocities.com/SiliconValley/Monitor/8604/Beta/PilotCE/
3.3 Conduit Development Kits (CDKs)
Conduit Development Kits (CDKs) are tools to develop conduits. Conduits are software plug-ins for the HotSync® Manager application. They exchange and synchronize data between a desktop computer and a Palm OS® platform handheld computer.
Most conduits synchronize data such that data on the handheld mirrors the data on desktop. Conduits also transfer, import/export data, or cause Palm OS® applications to be installed. Generic conduits are Palm Inc.'s future direction for conduits. The idea is to provide an API for conduit development to be compiled for Windows and/or Mac OS. The details for making it work on each platform will be hidden within the API.
The CDKs are available for the following platforms:
All these CDK's are available to download for free from http://www.palmos.com/dev/tech/conduits/
- Conduit Development Kit - Windows C/C++ Edition (uses Microsoft Visual C++ 6.0)
- Conduit Development Kit - Windows Java Edition (for developing Palm OS Applications in Java - uses Symantec Visual Café Pro for Java)
- Conduit Development Kit - Mac OS Edition (uses Metrowerks CodeWarrior Pro for Mac OS)
3.4 Web Clipping Development (WCA)
The web clipping architecture includes client-side applications that run on a Palm OS® device, proxy servers for handling translation between the web clipping application format and HTML, and content servers. The client-side application is called a web clipping application. It is constructed in HTML and translated into the web clipping application format. Once this applcation is installed on a Palm OS® platform device, content is delivered from the content provider's own web site as a subset of the HTML 3.2 standard.
If you do not have access to hardware that supports web clipping, you can use software to emulate the hardware with the POSE. When emulating a web clipping enabled device, you use your desktop computer network to emulate wireless access free of charge. Web clipping applications use a special proxy to get web pages and do not connect directly to web sites.
Web clipping applications are written in a subset of the HTML 3.2 specification. Many of the usual tags for things like tables, forms, checkboxes, radio buttons, select lists, and font sizes are supported. However, in order to work well even though constrained by the limited bandwidth available on the wireless connection, web clipping applications do not support more resource intensive features such as JavaScript, nested tables, frames, cookies, or Java.
Web clipping applications are designed to be small and to give users the information they need with minimum effort and maximum speed. Likewise, results coming from your server to a handheld device are designed to be small and to the point. Remember, this is not web browsing, but web clipping. Web clipping appplications should be written to provide users with only the information that they need without any extraneous items. Try to limit the size of your result pages to about 400 bytes.
3.4.1 Two components to WCAThere are two main components to writing successful web clipping applications: the web clipping application that you install on the device, and the backend server that returns results pages to the device.
- Web clipping application - This is an application that you build using HTML, which is installed by the end user onto their handheld organizer. A web clipping application is like a mini-web site that is stored locally, so access to it is instant and free. The index page of the web clipping application usually contains either a form or a list of links, which are the gateways to the live data provided by your server. Static information, such as graphics, help, and "about" pages should also be placed within a web clipping application.
- Results pages (clippings) - These pages are returned by your backend server after they receive a request from your web clipping application. They are written in HTML and will often link to images and HTML documents that are stored in the web clipping applicaiton so that this static information doesn't need to be transmitted over the air.
The WCA Builder Tools needed to build WCA'a (ie translate the HTML-like code into "Palmspeak") are available to download for free fromhttp://www.palmos.com/dev/tech/webclipping/
The Code:
Used Mac Prices
Search for the most up-to-date prices on Macintosh computers:
We see that WCA's consist almost entirely of (very simple) HTML. The only thing that differs from pure HTML is the meta-tag
} . Images, if used, are stored locally on the device, since it is not recommended to transfer images over the wireless connection (bandwidth!) - the WCA Builder will enter them into the appropriate database on the device.
After passing this code through the WCA Builder, the application would look something like this:
3.4.4 Palm Query Applications (PQA)
Web clipping applications are Palm record databases that are read by the Web Clipping application (Web Clipper) on the Palm VII[tm] handheld (or other device that supports web clippings). Pages and images are stored as separate records in the database, and the number of records listed in the Records view of the Applications Launcher Info screen correspond to the total number of pages and images that comprise the web clipping application.
With a couple of functioncalls you can enhance your WCA's easily with your C++-Programs, and vice versa (ie enhance your C++-Application with WCA's). You can:
- create "pseudo-cgi's" on your Palm Device (e.g. parsing input from a URL)
- process data from web clipping pages (e.g. graphing, updating databases etc.)
- store data on the handheld for WCA's (e.g. preferences)
The Code:
Special Function Palm Tester
After passing this code through the PQA Builder, the application would look something like this:
Please note that the above screenshots are all from the Palm OS Emulator (POSE)!
4. Hardware using the Palm OS
There are several types of hardware projects for the Palm OS® Platform:
- Palm Inc. - http://www.palmos.com/dev/tech/hardware/
- Handspring - http://www.handspring.com/products/vindex.asp
- Symbol Technology Development - http://www.symbol.com/products/mobile_computers/mobile_computers.html
- TRG - http://www.trgnet.com/
- Qualcomm (Smartphone) - http://www.palmos.com/dev/tech/qualcomm/
- IBM Workpad series - http://commerce.www.ibm.com/cgi-bin/ncommerce/CategoryDisplay?cgrfnbr=2035814&cntrfnbr=1&cgmenbr=1&;cntry=840&lang=en_US
5. Wishlist
To guarantee maximum efficiency every person involved in the actual coding process should be able to work in an environment (s)he is most comfortable with. While some people may preferr coding, compiling and debugging "by hand", others may preferr a complete Integrated Development Environment (IDE). The most widely used tool in Palm OS Software Development is the CodeWarrior Interactive Development Environment (IDE) from 3Com Corporation. Documentation for the CodeWarrior IDE is provided with CodeWarrior. Code Warrior is available for Windows, Macintosh, Solaris, Linux and Java. CodeWarrior is proprietairy software, currently priced approx. $90.
Even though almost all information and documentation one might need to develop applications for the Palm OS is available on the internet, many people preferr having a decent book (yes, paper!) as desktop reference handy. The one book most suitable for this purpose seems to be O'Reillys "Palm Programming: The Developers Guide" (http://www.oreilly.com/catalog/palmprog/).
Needless to say that everybody involved should have a PalmPilot or other Palm OS based handheld device to familiarize themselves with the environment we develop for.
6. Main Resources
- Programming Palm OS in a Nutshell - http://www.palmos.com/dev/tech/docs/palmos/Nutshell.html
- Developer Tools - http://www.palmos.com/dev/tech/tools/
Mythical Thin Client solution
Saturday, September 19, 2009
ROM upgrades for Dopod P800W and/or HTC P3300
Friday, August 28, 2009
Delete Facebook for good ...
Thursday, August 20, 2009
Choose which windows 7 to install
extending Windows 7 Trial periods
Thursday, August 13, 2009
Simple to use windows ISO burner
Saturday, August 1, 2009
Windows 7 - improved user experience ?
Likewise, configuring windows manager in AIX wasn't exactly intuitive neither. But we had NeXT so who cared about Apple anyway?
Yesterday a company called "MiniSoftener" pours a whole lots of shits in front of my office, rang the entrance bell and asked, "Sir, do you need cleaning sir ? Its just $999." Then they cleaned the mess. When my office girl passed over the payment, the girl said, "Thank you!"
Friday, July 31, 2009
behind Microsoft, there is an Apple
Do you know that there is NO washroom in Microsoft ?