Monday, 14 March 2016
Oracle Forms Debugging: Using the “DEBUG_MESSAGES=YES” runtime option - Handling "Please Acknowledge" message
Sunday, 13 March 2016
Arabic Email Addresses
Letʼs take a fictitious Arabic email address — خالد@الدوحة.قطر
- خالد is the username Khalid
- الدوحة is the 2nd level domain name Doha
- قطر is the Top Level Domain (TLD) Qatar. This part is not fictitious as قطر is a valid ccTLD.
When text has mixed L➡︎R and L⬅︎R characters it is referred to as Bidirectional (bidi) text. There is a complex Unicode algorithm specifically to determine display order of bidi text unicode.org/reports/tr9/ If you read this report you will see something called Directional Isolates.
In the html world there are tags and attributes specific to bidi. One such tag is <bdi> which is bidi isolate. Using such html bidi isolation one can incorporate Arabic email addresses that are natural to read for both L➡︎R and L⬅︎R readers. These addresses can be written such that their overall text direction adheres to the text direction of the context. This context may be the direction of the whole html document or some subpart such as a paragraph.
First we will setup our html with a L➡︎R context for L➡︎R readers. The below paragraph (p) is setup with dir (direction) to ltr (left to right). The email address has 3 components: username, 2nd level domain name and TLD. Each component is direction isolated. This gives an email address whose overall direction is L➡︎R. The text of each component is, as it should be, L⬅︎R. I posit that this is much easier for a L➡︎R reader to comprehend. It is now obvious, for instance, to determine which is the username and which is the TLD.
<p dir="ltr"><bdi>خالد</bdi>@<bdi>الدوحة</bdi>.<bdi>قطر</bdi></p>
displays the address as
<p dir="rtl"><bdi>خالد</bdi>@<bdi>الدوحة</bdi>.<bdi>قطر</bdi></p>
displays the address as
Just in case your browser cannot, as yet, handle bidi isolates here are the 2 contexts in image format.
Monday, 29 February 2016
Oracle Forms Exception Handling: NO_DATA_FOUND, TOO_MANY_ROWS and OTHERS
DECLARE
DEPARTMENT_NAME VARCHAR(60);
BEGIN
SELECT DEPTNAME INTO DEPARTMENT_NAME FROM DEPT WHERE DEPTNO = 20;
EXCEPTION
WHEN NO_DATA_FOUND THEN
MESSAGE('No data found');
WHEN TOO_MANY_ROWS THEN
MESSAGE('More than one row found');
WHEN OTHERS THEN
NULL; -- don't do anything and just return from the procedure
END;
Difference between WHEN-VALIDATE-ITEM and KEY-NEXT-ITEM triggers
Sunday, 28 February 2016
Oracle Forms Tutorials: WHEN-VALIDATE-ITEM trigger
5 Things you should never discuss your manager
An employee should be fair and transparent with his manager, but few revelations can spoil your bonding with your manager. Try never ever talking about these things to your manager:
1. Your doubt on manager' decisions - At times, you may want to raise questions on his judgement. Do yourself a favour - give it a pass. You may not know what business pressures he/she is living through.
2. Snooping on manager's life - Every employee wants to check what his or her manager is doing in social life. Don't blow your cover by admitting to doing it unashamed.
3. Office gossip - Never share office hearsay with your manager without checking its truthfulness. Sharing something random that you heard in the cafeteria and reacting to it may get him or her thinking that you are not mature or trustworthy.
4. Your personal secrets - Your life and its constant struggles are for you to handle. Pouring it all out in front of your manager will put you in a vulnerable position.
5. Your expectations from the manager - The manager is mandated to put forward his/her expectations from you. But it does not mean you to go and tell the manager how you evaluate his/her skill sets!
Friday, 1 January 2016
Emoji by Name
Here is a method for typing Emoji by name but not by English name. This method is for writing Emoji by Chinese name. OSX provides a Pinyin Input Method for writing Chinese. Pinyin is a romanization of Chinese. When writing in pinyin a candidate window pops up which lists all possible Chinese characters 汉字 and Emoji.
![]() |
| Candidate Window - Frequency |
![]() |
| Candidate Window — Emoji |
Here is a small sample of the Emoji which can be typed using this Pinyin Input Method. Each line below starts with the pinyin followed by the Emoji. The pinyin can have multiple meanings, multiple candidate Chinese characters and hence multiple Emoji. Hopefully for the examples I have given below you will be able to work out the meanings from the Emoji. Some of the below pinyin represent objects and some represent emotions.
- ai — ❤️ 😘 💗 💓 😍
- bei shang — 😢 😭
- che — 🚗 🚘
- hou — 🐒 🐵
- hua — 🌹 🌼 💐 🌷 🌸 🌺
- ka fei — ☕️
- kai xin — 😄 😺 😃 😆 ☺️
- mao — 🐱 🐈 ⚓️
- niu — 🐂 🐃 🐄 🐮
- pi jiu — 🍺 🍻
- sheng qi — 😠 😡 💢 😾
- shu — 🌲 🌳 🌴 🐭
- shui guo — 🍉 🍊 🍇 🍈 🍌 🍍 🍎 🍑 🍒 🍓 🍅 🍆 🍋 🍏 🍐
- tuo la ji — 🚜
- xiang — 🐘
- xiao — 😊 😄
- xie — 👟 👠
- xue ren — ⛄️ ☃️
- yin yue — 🎵 🎷 🎶 🎸 🎹 🎺 🎻 🎼 🎤 🎧 📯
- yu — 🐟 🐠
Environment: OSX El Capitan v10.11.2


