Saturday, July 17, 2010

SMS Tutorial (P2. What Makes SMS Messaging So Successful Worldwide?)

2. What Makes SMS Messaging So Successful Worldwide?
SMS is a success all over the world. The number of SMS messages exchanged every day is enormous. SMS messaging is now one of the most important revenue sources of wireless carriers. What is so special about SMS that makes it so popular worldwide? Some of the reasons are discussed below.

2.1. SMS Messages can be Sent and Read at Any Time
Nowadays, almost every person has a mobile phone and carries it most of the time. With a mobile phone, you can send and read SMS messages at any time, no matter you are in your office, on a bus or at home.

2.2. SMS Messages can be Sent to an Offline Mobile Phone
Unlike a phone call, you can send an SMS message to your friend even when he/she has not switched on the mobile phone or when he/she is in a place where the wireless signal is temporarily unavailable. The SMS system of the mobile network operator will store the SMS message and later send it to your friend when his/her mobile phone is online.

2.3. SMS Messaging is Less Disturbing While You can Still Stay in Touch
Unlike a phone call, you do not need to read or reply an SMS message immediately. Besides, writing and reading SMS messages do not make any noise. While you have to run out of a theater or library to answer a phone call, you do not need to do so if SMS messaging is used.

2.4. SMS Messages are Supported by 100% GSM Mobile Phones and They can be Exchanged between Different Wireless Carriers
SMS messaging is a very mature technology. All GSM mobile phones support it. Not only that you can exchange SMS messages with mobile users of the same wireless carrier, but you can also exchange SMS messages with mobile users of many other wireless carriers worldwide.

2.5. SMS is a Suitable Technology for Wireless Applications to Build on
Here are some of the reasons that make SMS a suitable technology for wireless applications to build on:

* Firstly, SMS messaging is supported by 100% GSM mobile phones. Building wireless applications on top of the SMS technology can maximize the potential user base.
* Secondly, SMS messages are capable of carrying binary data besides text. They can be used to transfer ringtones, pictures, operator logos, wallpapers, animations, VCards, VCals (calendar entries), etc.
*Thirdly, SMS supports reverse billing, which enables payment to be made conveniently. For example, suppose you want to develop a commercial ringtone download application that charges a fee from the user for each ringtone downloaded. One way to accept payment is to use a reverse billing phone number obtained from a wireless carrier. To buy a ringtone, the user will write an ordinary SMS text message that contains the ID of the ringtone he/she wants to buy and send it to your SMS application's reverse billing phone number. Your SMS application will then send back one or more reverse billing SMS messages that carry the ringtone. The user will be charged a fee for the reverse billing SMS messages he/she received. The fee will be included in the user's monthly mobile phone bill or be deducted from his/her prepaid card credits. Depending on the agreement between you and the wireless carrier, all or part of the money received will be given to you.

Source: http://www.developershome.com

SMS Tutorial (P1. Introduction to SMS Messaging)

1. Introduction to SMS Messaging
1.1. What is SMS (Short Message Service)?
SMS stands for Short Message Service. It is a technology that enables the sending and receiving of messages between mobile phones. SMS first appeared in Europe in 1992. It was included in the GSM (Global System for Mobile Communications) standards right at the beginning. Later it was ported to wireless technologies like CDMA and TDMA. The GSM and SMS standards were originally developed by ETSI. ETSI is the abbreviation for European Telecommunications Standards Institute. Now the 3GPP (Third Generation Partnership Project) is responsible for the development and maintenance of the GSM and SMS standards.

As suggested by the name "Short Message Service", the data that can be held by an SMS message is very limited. One SMS message can contain at most 140 bytes (1120 bits) of data, so one SMS message can contain up to:

* 160 characters if 7-bit character encoding is used. (7-bit character encoding is suitable for encoding Latin characters like English alphabets.)
* 70 characters if 16-bit Unicode UCS2 character encoding is used. (SMS text messages containing non-Latin characters like Chinese characters should use 16-bit character encoding.)

SMS text messaging supports languages internationally. It works fine with all languages supported by Unicode, including Arabic, Chinese, Japanese and Korean.

Besides text, SMS messages can also carry binary data. It is possible to send ringtones, pictures, operator logos, wallpapers, animations, business cards (e.g. VCards) and WAP configurations to a mobile phone with SMS messages.

One major advantage of SMS is that it is supported by 100% GSM mobile phones. Almost all subscription plans provided by wireless carriers include inexpensive SMS messaging service. Unlike SMS, mobile technologies such as WAP and mobile Java are not supported on many old mobile phone models.

1.2. Concatenated SMS Messages / Long SMS Messages

One drawback of the SMS technology is that one SMS message can only carry a very limited amount of data. To overcome this drawback, an extension called concatenated SMS (also known as long SMS) was developed. A concatenated SMS text message can contain more than 160 English characters. Concatenated SMS works like this: The sender's mobile phone breaks down a long message into smaller parts and sends each of them as a single SMS message. When these SMS messages reach the destination, the recipient mobile phone will combine them back to one long message.

The drawback of concatenated SMS is that it is less widely supported than SMS on wireless devices.

1.3. EMS (Enhanced Messaging Service)

Besides the data size limitation, SMS has another major drawback -- an SMS message cannot include rich-media content such as pictures, animations and melodies. EMS (Enhanced Messaging Service) was developed in response to this. It is an application-level extension of SMS. An EMS message can include pictures, animations and melodies. Also, the formatting of the text inside an EMS message is changeable. For example, the message sender can specify whether the text in an EMS message should be displayed in bold or italic, with a large font or a small font.

The drawback of EMS is that it is less widely supported than SMS on wireless devices. Also, many EMS-enabled wireless devices only support a subset of the features defined in the EMS specification. A certain EMS feature may be supported on one wireless device but not on the other.

Source: http://www.developershome.com

Đạo code (Phần 6: Quản đốc)

Phần 6: Quản đốc

Lập trình sư nói:
“Lập trình phu nhiều và các quản đốc ít thì môn phái sẽ hưng thịnh”

6.1
Các quản đốc chỉ biết họp bàn, lập trình phu ngồi chỉ biết ngồi chơi. Thì khi tổng quản báo cáo về tình hình thu chi, ngân quĩ sẽ bị sụt giảm. Khi quản đốc chỉ biết nói trăng sao, chung chung, tất cả sẽ bị mây mù bao phủ.
Đấy không phải là đạo lập trình.
Các quản đốc theo sát tình hình lập trình phu không thể ngồi chơi. Thì tổng quản lên kế hoạch, cân đối và mọi thứ đi vào trật tự. Khi mà các quản đốc nắm rõ vấn đề, thì vấn đề sẽ sớm được giải quyết.
Đấy chính là đạo lập trình

6.2
Tại sao lập trình phu kém năng động?
Bởi vì hầu hết thời gian họ dành cho hội họp.
Tại sao lập trình phu nổi loạn.
Bởi vì các quản đốc cản trở họ quá nhiều
Tại sao lập trình phu lần lượt ra đi?
Bởi vì đã đến lúc để họ ra đi.
Đừng việc cho những quản đốc ít quyền lực, họ không có giá trị trong bang.

6.3
Khi quản đốc gặp khó khăn, lập trình phu làm việc cho ông ta có sáng kiến mới để tạo ra chương trình ưa chuộng và bán chạy. Kết quả, ông ta giữ vững thế lực của mình.
Quản đốc tặng thưởng nhưng lập trình phu từ chối nó. Anh ta nói : “Tôi viết chương trình bởi vì tôi đam mê, tôi không trông chờ một phần thưởng”.
Quản đốc đưa ra lập luận: “Đây là lập trình phu, anh ta giữ một vị trí khá quan trọng, anh ta hoàn thành tốt mọi việc. Cần phải thăng cấp cho anh ta thành cố vấn của quản đốc”.
Khi nói về vấn đề này, lập trình phu phủ nhận ý kiến này, anh ta nói: “Tôi tồn tại khi tôi lập trình. Nếu tôi được thăng chức tôi sẽ không biết làm gì. Tôi có thể đi đâu? Tôi có một chương trình và tôi làm việc trên nó.”

6.4
Quản đốc đi đến chỗ các lập trình phu và nói với họ: “Các bạn thân mến,giờ làm việc của các bạn đang bắt đầu làm việc từ 9 giờ sáng và kết thúc lúc 5 giờ chiều”. Việc này, gây ra một chút bực bội và gò bó cho các bạn.
Quản đốc lại nói: “Thật ra, trong một vài trường hợp các bạn có thể quyết định giờ làm của mình. Dài hay ngắn ko quan trọng, miễn là các bạn có thể kết thúc dự án đúng như lịch định.”Lập trình phu cảm thấy hài lòng, anh ta bắt đầu công việc vào buổi trưa và kết thúc lúc gần sáng.