There are two frequent errors I met when I writing javascript and flash communication codes.
1. Error calling method on NPObject!
This error usually means Flash side exception, it might be caused by Flash itself error handling logic, or caused by wrong parameters passed to Flash from Javascript.
2. Uncaught TypeError: Object #<HTMLObjectElement> has no method 'xxx'
This error usually means flash object is not available or no such a method, it might be caused by flash object is not fully loaded, or not found the correct object, or call the wrong flash method (from Flash ExternalCallInterface).
Sunday, August 28, 2011
Friday, August 26, 2011
Open source 101
Open source software is software provided on terms allowing user to use, modify, and distribute the source code. It is different from freeware or shareware. In the open source world, "free" usually means "freedom to modify and redistribute source code" rights that do not necessarily come with freeware or shareware.
An open-source license is a copyright license for computer software that makes the source code available for everyone to use. Copyleft licenses require that you share any modifications that you make to the original code. Usually, these licenses also require that you share these modifications under the exact same open source software license as the source code. Different open source licenses have different levels of copyleft, namely No Copyleft, Weak Copyleft and Strong Copyleft.
Here are a list of common licenses:
Feel free to use MIT/BSD license which has no copyleft, try to avoid GPL which has strong copyleft. MPL, Eclipse, CPL, CDDL are falling into weak copyleft category.
An open-source license is a copyright license for computer software that makes the source code available for everyone to use. Copyleft licenses require that you share any modifications that you make to the original code. Usually, these licenses also require that you share these modifications under the exact same open source software license as the source code. Different open source licenses have different levels of copyleft, namely No Copyleft, Weak Copyleft and Strong Copyleft.
Here are a list of common licenses:
- GPL v.3 - GNU General Public License, version 3
- LGPL v.3 - GNU Lesser General Public License, version 3 (sometimes referred to as the "Library" General Public License)
- GPL v.2 - GNU General Public License, version 2
- LGPL v.2.1 - GNU Lesser General Public License, version 2.1 (sometimes referred to as the "Library" General Public License)
- MPL - Mozilla Public License, version 1.1
- Eclipse - Eclipse Public License, version 1.0
- CPL - Common Public License, version 1.0
- CDDL - Common Development and Distribution License, version 1.0
- MIT - MIT License
- BSD - Berkeley Software Distribution License or "New BSD"
Feel free to use MIT/BSD license which has no copyleft, try to avoid GPL which has strong copyleft. MPL, Eclipse, CPL, CDDL are falling into weak copyleft category.
Friday, August 5, 2011
MySQL/InnoDB Replication Options
MySQL Asynchronous Replication
Master doesn't wait for slave
Slaves determines how much to pull log events from Master (Bin log) to Slave (Relay log)
Read stale data on slave
No flow control
Corruption
Master failure
Data loss
MySQL Semi-Sync Replication
Master waits for an ACK from slave
Slave logs the transaction event in relay log and ACKs
Read stale data on slave
No flow control
Corruption
Master failure
Data loss
Schooner MySQL Sync Replication
After commit, all Slaves guaranteed to receive and commit the change
Slave in lock-step with Master
Read stale data on slave
No flow control
Corruption
Master failure
Data loss
DRBD (Distributed Replicated Block Device)
Block level replication available for Linux
Suitable for a Master with Direct Attached Storage (DAS)
SAN (Storage Area Network)
Shared disk with similar pros and cons as DRBD
Available for multiple OS
Snapshot backups are a plus
Reference
http://www.schoonerinfotech.com/blog/
Master doesn't wait for slave
Slaves determines how much to pull log events from Master (Bin log) to Slave (Relay log)
Read stale data on slave
No flow control
Corruption
Master failure
Data loss
MySQL Semi-Sync Replication
Master waits for an ACK from slave
Slave logs the transaction event in relay log and ACKs
Read stale data on slave
No flow control
Corruption
Master failure
Schooner MySQL Sync Replication
After commit, all Slaves guaranteed to receive and commit the change
Slave in lock-step with Master
Corruption
DRBD (Distributed Replicated Block Device)
Block level replication available for Linux
Suitable for a Master with Direct Attached Storage (DAS)
SAN (Storage Area Network)
Shared disk with similar pros and cons as DRBD
Available for multiple OS
Snapshot backups are a plus
Reference
http://www.schoonerinfotech.com/blog/
Subscribe to:
Posts (Atom)