Friday, October 30, 2009

Chinese characters in resource bundles

I had a difficult time to implement Chinese characters for my SWT application. I was using resource bundle for internationalizing the application. While creating resource bundles for Chinese characters I noticed that resource bundles will accept only ASCII and Java is not able to read UTF-8 resource bundles.I was using eclipse as my development IDE.

The following work around helped me to overcome the situation.

Open an existing file outside eclipse using notepad. Enter Chinese characters for the translation you want and save the file in UTF-8 format. You can use google translation for getting the chinese characters.

Use the tool 'native2ascii' to convert the chinese charcters to unicode characters.

The syntax is like this:

C:\temp>native2ascii -encoding utf-8

The file will contain Unicode characters for your Chinese letters in Then copy the content in file and copy it to any file created in eclipse.

The program will work fine displaying Chinese characters without any modification to source code.

Tuesday, October 27, 2009

ini file which helps you to preserve comments while updating

I have faced a difficult situation where one of the scenario require to write and preserve comments in configuration file. I tried using properties file and ini file concept using java. But when we write back to the file for storing configuration information, the entire comments in the proprieties or ini file get lost.

At last after a frantic search, I got the following free library which will help you to store configuration in an ini file where you can read and write and it will preserve any comments wrtitten at the top of the file.

Format date in Lotus script

Below post helped me to format date in Lotus script

I made changes to the code and below code will format the date value in a field of document.

Dim session As New NotesSession
Dim dateTime As NotesDateTime
Set dateTime = session.CreateDateTime ( deliveredDate )
print " : " & Cstr(dateTime.LocalTime ) & " GMT Time :" & Cstr(dateTime.GMTTime)

Dim dtGMT As NotesDateTime
Dim strRSSDate As String

Set dtGMT = New NotesDateTime( Left$(dateTime.LocalTime , 22) )
strRSSDate = Format$(dtGMT.LSLocalTime, "dd-mmm-yyyy hh:mm:ss AM/PM")

ReplaceAll function in lotus script

Code snippet to stimulate replaceAll function in lotus script

Function StringReplaceAll(Byval strArg As String, Byval strSrc As String,Byval strDst As String) As String

Dim iPos As Integer
iPos = Instr(strArg, strSrc)

While iPos > 0
strArg = Left$(strArg, iPos - 1) + strDst + Mid$(strArg, iPos + Len(strSrc))
iPos = Instr(iPos + Len(strDst), strArg, strSrc)

StringReplaceAll= strArg

End Function

The function call
StringReplaceAll("hello","l", "g") will give the result as 'heggo'

Dynamically moving scroll bar when dragging an object over an SWT Tree.

Dynamically moving scroll bar when dragging an object over an SWT Tree.

In the dragOver() event write the following statements: |= DND.FEEDBACK_SCROLL;

For expanding a tree, when mouse hover over it during dragging an object: |= DND.FEEDBACK_EXPAND;

The more details can be found at the below link

Wednesday, September 9, 2009

Disabling close button in SWT shell window

Below snippet of code can be used in a SWT dialog box to disable the close button on window.

//disabling the close button
dialogShell.addShellListener(new ShellAdapter() {
public void shellClosed(ShellEvent e) {
e.doit = false;

Center a SWT Shell on the screen

Below snippet of code can be used to center a SWT shell on the screen

//center the dialog screen to the monitor
Monitor primary = display.getPrimaryMonitor ();
Rectangle bounds = primary.getBounds ();
Rectangle rect = shell.getBounds ();
int x = bounds.x + (bounds.width - rect.width) / 2;
int y = bounds.y + (bounds.height - rect.height) / 2;
shell.setLocation (x, y);;

Below link will provide a brief idea about creating a splash screen using SWT

Wednesday, August 5, 2009

Batch files and Bat to Exe converter

Some of the useful links on MS-DOS basic commands and creating bat file.

Information on Batch Files

Also the following link provides a free tool for converting a bat file to exe.

Bat to Exe Converter

It is a super tool. Congratulations to Fatih Kodak

scheduled agent in my local database is not running

Last time I had a problem that 'scheduled agent in my local database is not running eventhoug I am able to run manually'. Later I found that the database should be in data folder for running the scheduled agents in local.

Follow the following check list when having problem with running scheduled agents in local.

1. See you are able to successfully run the agent manually.
2. Go to Cleint. File->Preferences->User Preferences->Basics Tab; check 'Enable scheduled local agents'
3. Check whether the database is in data folder.

Starting Lotus Notes Client after a crash

For those who have problem with starting Lotus Notes after a client crash, do the following step.

  1. Goto the notes program directory.
  2. Create a shortcut icon for nsd.exe
  3. Add the following parameter "-kill" to the target field on shortcut properties window.

eg: "C:\Program Files\lotus\notes7\nsd.exe" "-kill"

The nsd will run and stop all lotus notes related process. After that you can open lotus notes client with out any problem.

Creating nice charts in Lotus Notes Client

Creating nice charts in Lotus Notes Client

This is the database used by Rob McDonagh and Julian Robichaux in their ILUG 2008 session on Reports, Charts, and Graphs in Lotus Notes. They used this as a demo database to show the various techniques discussed in that session. You can download the database from the following link:

Also there is a nice artcile on how to create a chart using lotusscript on web.

Version of Lotus script currently running

Last week, I faced a strange question of what version of Lotusscript you are using. I frantically searched help document, web ; but I was not able to get a proper answer on what version of Lotusscript is currently running on my Lotus Notes.

Later I got a hint on the following code.

retval = Getthreadinfo(LSI_THREAD_VERSION)
Msgbox "The Version of your Lotus script is : " + Cstr(retval)

will print the version of Lotus script currently running

Programatically setting default printer using lotusscript

I had a particular issue of printing problem on Lotus Notes client version below 7.0.2. I want to set a pdfCreator printer driver as default printer for print operation as the uidoc.print() will not accept a printer name as parameter.

I tried setting the pdfcreator as default printer using lotusscript code and tried printing. But what i noticed is whatever we do, Lotus Notes client will not recognize the default printer settings made programaticallyuntil you have restarted the Lotus Notes Client.

I searched several forums and also in IBM technical forum also they have made it very clear.

Changed default printer setting not used by Notes

But I found several good articles which will help to set a printer programatically using lotusscript.

From my own experience what ever the case to get the progrmatically printer settings to get effect on Lotus Notes Client below 7.0.2 , you have to close and open notes client again.

Below is also a small snippet of code , whihc will programatically set a default printer.

Dim WshNetwork As Variant
Dim WshPrinters As Variant
Set WshNetwork = CreateObject("WScript.Network")
Set WshPrinters = WshNetwork.EnumPrinterConnections()
PrinterPath = "PDF Writer"
WshNetwork.SetDefaultPrinter Cstr(PrinterPath)

Mercy of Lord

Isaiah 30:18
'And therefore will the LORD wait, that he may be gracious unto you, and therefore will he be exalted, that he may have mercy upon you: for the LORD is a God of judgment: blessed are all they that wait for him.'
Mercy of Lord. There is no limit to the mercy of Lord. When the mercy of God meets man , there are many blessings.

Here we will meditate main 6 blessings received by the mercy of God.

1. Sins are forgiven: Luke 18:13
'And the publican, standing afar off, would not lift up so much as his eyes unto heaven, but smote upon his breast, saying, God be merciful to me a sinner.'

2. Obtain divine healing: Mark 10:47
'And when he heard that it was Jesus of Nazareth, he began to cry out, and say, Jesus, thou son of David, have mercy on me.'

3. Comforted: Luke 7:13
'And when the Lord saw her, he had compassion on her, and said unto her, Weep not.'

4. Protection: Psalm 57:1
'Be merciful unto me, O God, be merciful unto me: for my soul trusteth in thee: yea, in the shadow of thy wings will I make my refuge, until these calamities be overpast.'

5. Prayer will be answered: Psalm 4:1
'Hear me when I call, O God of my righteousness: thou hast enlarged me when I was in distress; have mercy upon me, and hear my prayer.'

6. Gather thee: Isaiah 54:7
'For a small moment have I forsaken thee; but with great mercies will I gather thee.'

For receiving the mercy of God, we have to do the following things:
1. Confess our sins: Prov 28:13
'He that covereth his sins shall not prosper: but whoso confesseth and forsaketh them shall have mercy.'
2. Fear the Lord: Luke 1:50
'And his mercy is on them that fear him from generation to generation.'

Experience of upper chamber of house


I Samuel 9:25
'After they came down from the high place to the town, Samuel talked with Saul on the roof of his house.'
Samuel took saul to the upper part of the house. Only afetr that saul got anointed.without the experience of upper house there is no anointing.Only those having the experience of upper house can be counted for blessings of God.

There are five that will happen at the upper chamber of house.

1. Experience of Pass over was conducted at the top of the house: Luke 22:12

'And he shall shew you a large upper room furnished: there make ready.'
It shows the experience of sanctification. Sanctification opens the window of heaven and bless. All blessings starts with santification. To what extend we are santified, that extend personal blessings will come. Without santification we should not expect blessings of God.

2.Experience of Praying: Daniel 6:10

'Now when Daniel learned that the decree had been published, he went home to his upstairs room where the windows opened toward Jerusalem.'
Only those who pray and praise can receive blessings. Prayer is the experience of speaking to God. Gods children shouls always have the experience of praying and parising to God.

3. Experience of Many Lights Acts 20:8

'There were many lamps in the upstairs room where we were meeting.'
Reveals the light of testimony. Otherwise you will be like Eutychus.If we preserve the life of testimony God will bless us. Elijah had a testimony from gentiles that he is the man of God.

4. Experience of raising dead to Life Acts 9:36,40

Jesus raised three types of people from dead:
Mark 5:43 (dead at home) Only we know what is dead in us. Nobody knows outside.
Dead in Gods love, brotherly love.
Luke 7:16 (dead at street) . The death is know to the village i.e., some people.
It shows some does not have testimony among others. Dead in grace
John 11:35 (dead at tomb). Dead in ceppal. It is stinging. His own sister is saying 'by this time there is a bad odor, for he has been there four days'. Dead state known to everybody. It shows backsliding,not able to pray, attend meeting, read bible. Jesus said Lazars come out.

5. Experience of being in fellowship Acts 1:13, 15

'When they arrived, they went upstairs to the room where they were staying'. Around 120 disciples gathered at the upper chamber of rrom for receiving holy spirit. It shows fellowship, we all are one.

Overcome Jericho


Joshua 6:2

'Then the LORD said to Joshua, "See, I have delivered Jericho into your hands, along with its king and its fighting men.'
A child of God have to overcome Jericho is two ways.
1. In personal life we have to overcome Jericho.
2. Collectively, as a church, we have to overcome Jericho.
Jericho is a place of cursed. We have to overcome this curse by the blood of Jesus and meditating the calvary.

Here we will discuss three matters about Jericho.

1. Jericho is a place where there are many robbers. Luke 10:30
'In reply Jesus said: "A man was going down from Jerusalem to Jericho, when he fell into the hands of robbers. They stripped him of his clothes, beat him and went away, leaving him half dead.'
Here we can see that the robbers did three things to the man.
(i) stripped him of his clothes -> shows devil taking away our salvation and praising.By the weapon of prayer we have to overcome it.
(ii) wounded -> shows the devil creating wounds in mind.
(iii) half dead. -> shows the devil not allowing you to rejoice in the presence of the Lord.

2. There was a blind beggar in Jeircho. Mark : 10:46
'Then they came to Jericho. As Jesus and his disciples, together with a large crowd, were leaving the city, a blind man, Bartimaeus (that is, the Son of Timaeus), was sitting by the roadside begging.'
This shows loosing our spiritual vision.
2 Peter 1:9 'But if anyone does not have them, he is nearsighted and blind, and has forgotten that he has been cleansed from his past sins.' This shows loosing ' godliness, brotherly kindness; and to brotherly kindness, love.'
The root word of Love is Agape, which means 'Unconditional Love'. This is the love Jesus showed to us. we have to show the same to our brothers.

3. There was a short man named 'Zacchaeus' in Jeriho Luke 19:1,2
'Jesus entered Jericho and was passing through.A man was there by the name of Zacchaeus; he was a chief tax collector and was wealthy.'
It shows we are not growing in spiritual life. we are spiritually dwarf.For a child of God, the sacel is Jesus.A child of God should live like how Jesus live, speak.

To overcome Jericho, 4 peoples are needed.Joshua 6:12,13
'Joshua got up early the next morning and the priests took up the ark of the LORD.The seven priests carrying the seven trumpets went forward, marching before the ark of the LORD and blowing the trumpets. The armed men went ahead of them and the rear guard followed the ark of the LORD, while the trumpets kept sounding.'
(i) priest -> shows fellowship of priest to overcome the devil.
(ii) trumphet -> confirmation of coming of Lord.
(iii)armed men -> shows prayer warriors.
(iv) Arch of God -> shows the power of God and his presence.

In Josua 5:15 , 'The commander of the LORD's army replied, "Take off your sandals, for the place where you are standing is holy."'. Shoe is a hindrance to the conatct with the holy land & life. Removing the shoe shows entire santification. We need an entire santification to overcome the Jericho.

Thursday, July 9, 2009

DQL query similar to TOP and ROWCOUNT in SQL

If you want to restrict your query result to a selected number of records as we are doing someting similar to "select top 5 * from authors_table" or similar to ROWCOUNT.
The same criteria can be achieved in DQL using the following parameter ENABLE(FETCH_ALL_RESULTS )

select r_object_id from dm_document ENABLE(FETCH_ALL_RESULTS 5) will return the first five records

select r_object_id from dm_document ENABLE(FETCH_ALL_RESULTS 0) will return the entire results collection.

For more information can be found at :

Monday, July 6, 2009

Weapon of Fear


Isaiah 54:17
"no weapon forged against you will prevail,
and you will refute every tongue that accuses you.
This is the heritage of the servants of the LORD,
and this is their vindication from me," declares the LORD.

Against the children of God, the devil uses diffrent types of weapons. In old testment, they used literal weapons but in new testmenat the weapons are not literal. Satan uses this weapon to distract the mind of Gods child away from God and mke him a backslider.

Here we will discuss one of the weapons that devil uses as a weapon against the children of God.
The weapon is FEAR.

Genesis 32:11
"Save me, I pray, from the hand of my brother Esau, for I am afraid he will come and attack me ..."
Here Jacob prayed because of fear. Eventhough he had said that the God is with me, he had heavenly dreams, he saw angels of God climbing up and dwon through the ladder , still he is afraid of his brother.

To overcome the fear, Jacob prayed.

I Samuel 17:11
"On hearing the Philistine's words, Saul and all the Israelites were dismayed and terrified."
Eventhough Saul is the King of Israel and the he is chosen by God, right now he is afraid of Goliath.
The reason is he had lost his anointing to overcome Goliath. He had lost his fellowship with God.
The fear will come into our mind when we loss the anointing or fellowship with God.

To overcome this fear , we need a heavenly anointing.

I King 19:4
"while he himself went a day's journey into the desert. He came to a broom tree, sat down under it and prayed that he might die. "I have had enough, LORD," he said. "Take my life; I am no better than my ancestors."
Eventhough he is a great prophet , when he prayed the there was no rain for three years, when he prayed the doors of sky opened, when he prayed fire descended from sky, but right now he is afraid of a woman with name Jezebel.

He also prayed, the Lord sent his angel to encourage him. I Kings 19: 7, 8 "All at once an angel touched him and said, 'Get up and eat.' He looked around, and there by his head was a cake of bread baked over hot coals, and a jar of water". Here the cake shows the word of God and water shows the holy spirit

To overcome the fear we need the word of God and water shows the holy spirit

II Samuel 15: 13, 14
"Come! We must flee, or none of us will escape from Absalom. ...".
Here the King David is fearing his son Absalom and he is flleeing from the city of Jerusalem. Jerussalem shows the Church of God and Absalom shows the word or the spirit of taking revenge. Absalom is looking for taking revenge against the king. This fear shows backsliding from the God. Even thoug David was a great king he alone killed the gigantic Goliath, now he is afraid of his son.

Job 3:25
"What I feared has come upon me; what I dreaded has happened to me."

Here Job curses his birthday. In Bible we find that two people curses their birthady and two people celebrated their birthday. The people who curses their birthady are Job (3:25) and Jeremiah (20:14). The people who celebrated their birthday are Pharaoh (Genesis 40: 20, 22) and Herod (Mathew 14: 5, 10). Then what happens on their birthady , there were two deaths. So neither celebrate birthday nor curse birthday. Pray to Lord to reveal the will of God.

Let the God helped you to overcome the weapon of fear through Prayer and Holy Spirit.

Experience of Wilderness


Mark 6:31
"Come with me by yourselves to a quiet place and get some rest."
Here we see , Jesus took his disciples to wilderness and get some rest awhile
In Song of Solomon 8: 5 "Who is this coming up from the desert leaning on her lover? "
The wilderness shows leaning upon Jesus.

Here we will discuss 4 experiences of wilderness to the children of God.

Wilderness shows rest:
Matthew 11:28 "Come to me, all you who are weary and burdened, and I will give you rest."
Isaiah 28:12 saya about the rest thru anointing
to whom he said,
"This is the resting place, let the weary rest";
and, "This is the place of repose"—
but they would not listen.

Gods word is revealing to people in wilderness:
Luke 3:2 "the word of God came to John son of Zechariah in the desert."

Time of Temptation by devil:
Mathew 4: 1 "Then Jesus was led by the Spirit into the desert to be tempted by the devil."
Wilderness shows the time of temptation or time of difficulty for the children of God

Hidden Life:
Luke 1:80 "And the child grew and became strong in spirit; and he lived in the desert until he appeared publicly to Israel."

Friday, July 3, 2009

Blessings at the city of Shechem


Genesis 33:18
"After Jacob came from Paddan Aram, he arrived safely at the city of Shechem in Canaan and camped within sight of the city."

Here we find that Jacob moved from Paddan Aram to Shechem . These two places have significant meaning in Bible. The city of Paddan Aram shows an ordinary life where as the city of Shechem shows a spiritual life. Here we will meditate five speciality about the city of Shechem.

Genesis 12:6
"Abram traveled through the land as far as the site of the great tree of Moreh at Shechem."
The word Moreh means teacher.
Mark 10:17 As Jesus started on his way, a man ran up to him and fell on his knees before him. "Good teacher," he asked, "what must I do to inherit eternal life?". Here the rich man called Jesus, Good teacher. Jesus is our good teacher. In new testament God gracefully given his saints to correct us and teach us. In the city of Shechem, there is good teacher to correct you and guide you in proper path.It shows accepting Jesus as your master.

Genesis 37:12
"Now his brothers had gone to graze their father's flocks near Shechem,"
In Shechem there are good pastures for sheep. In Psalms 23:1-2 "The LORD is my shepherd, I shall not be in want.
He makes me lie down in green pastures,". The Lord is our shepherd and we are his sheeps. If you are in the city of Shechem, there are green pastures for you. It shows the doctrine of life from God.
1 Corinthians 1:5-7 "For in him you have been enriched in every way—in all your speaking and in all your knowledge—because our testimony about Christ was confirmed in you. Therefore you do not lack any spiritual gift as you eagerly wait for our Lord Jesus Christ to be revealed."

Joshua 24 :1
"Then Joshua assembled all the tribes of Israel at Shechem. He summoned the elders, leaders, judges and officials of Israel, and they presented themselves before God.". Here all people irrespective of their status came together at Joshua. It shows a humility and fellowhsip with the saints of God. In the city of Shechem , there is fellowship with God, Saints and each other.
The Lord gave entire power to Jesus. But as in John 13:3-5 "Jesus knew that the Father had put all things under his power, and that he had come from God and was returning to God; so he got up from the meal, took off his outer clothing, and wrapped a towel around his waist. After that, he poured water into a basin and began to wash his disciples' feet, drying them with the towel that was wrapped around him.". It shows the complete humility.

Joshua 24:15
"But as for me and my household, we will serve the LORD."
It shows serving the Lord as a family.

Joshua 20:7
"So they set apart Kedesh in Galilee in the hill country of Naphtali, Shechem in the hill country of Ephraim, and Kiriath Arba (that is, Hebron) in the hill country of Judah."
The city of Shechem contains a refugee. you can run there and get protected.
Proverbs 18:10 "The name of the LORD is a strong tower; the righteous run to it and are safe."
Jesus is our refugee.

Let the good God fill you with the blessings of the City of Shechem.

Monday, June 22, 2009

Stimulating keyboard in Java

Below is a sample java code which does the same purpose of sendKeys in vb code.

import java.awt.*;
import java.awt.event.*;

public class RobotTest{
//Create an array of keycode data
static int keyInput[] = {

public static void main(String[] args)throws AWTException,IOException{


Robot robot = new Robot();

for (int i = 0;i <>

Wednesday, June 17, 2009

DQL Tips

To display all available cabinets/folders/documents for a particular login user

select FOR READ * from dm_document where i_cabinet_id in (select r_object_id from dm_cabinet)

Always remember this and create your queries on the basis of this only

1, for None
2, for Browse
3, for Read
4, for Relate
5, for Version
6, for Write
7, for Delete

So your query can be:-

SELECT * FROM dm_document WHERE acl_name IN (SELECT object_name FROM dm_acl WHERE ANY r_accessor_permit > 3) AND ANY i_folder_id in (SELECT DISTINCT r_object_id FROM dm_folder WHERE acl_name IN (SELECT object_name FROM dm_acl WHERE ANY r_accessor_permit > 1))

I got this query as a response to the question in posted in DocumentumGyan

For more DQL Tips:

Format Recognizing in documentum for DFS

Recently I got stumbled over the way in which I can get the documentum format for my files and the vice verse. For DFC, there is a function called getFormatRecognizer(), since I am using DFS for the operation I was searching the corresponding for DFS.

The below link was a great help in getting some idea :

For getting a documentum format for dos extension like (doc, ppt, docx, ppptx..) using this query :
Select name from dm_format where dos_extension = 'dosExtension';
This will give only the format name like crtext, msw8...

For getting the description of a documentum format, you can do a query like this

SELECT r_object_id as rid, object_name, a_content_type from dm_sysobject WHERE CABINET('/Templates') and r_object_type ='objectType' and r_object_type <> 'dm_folder' and ( a_content_type = 'documentumFormatName')

For doing a reverse mapping of documentum format to dos extension
Select dos_extension from dm_format where name = 'documentumFormatName';

DFS can do a search query using this query to get the values.

Photo Reading

Recently I had a chance to read the book PhotoReading by Paul R Scheele , also we had a nice discussion on our weekly team meeting in company. This books talks about some speed method for reading a book as quickly as possible. According to me this method is very good for executives who want to have a quick overview about a subject/topic. It is not advisable for students or others who want to have a thorough knowledge on the subject.

It introduces the following concept on reading a book.
  1. Prepare : - keep in mind what would be the desired output of reading
  2. Preview :- Get a sense of Structure
  3. PhotoRead: - Using our eyes, have a peripheral vision over the book.
  4. Activate: - Exploring parts most attaracted.
  5. Rapid Read:- moving quickly through the text page by page starting from beginning to end
Surely I know this will help people who no reading habit or got stumbled on the middle way; to have an effective way for reading a book.
It is a book worth while to read.

Following are some of the links which will help for a quick start :

Ephphatha, that is, Be opened.


Mark 7:31,32
"And again, departing from the coasts of Tyre and Sidon, he came unto the sea of Galilee, through the midst of the coasts of Decapolis.And they bring unto him one that was deaf, and had an impediment in his speech; and they beseech him to put his hand upon him."

Here we will meditate the spiritual aspects of a miracle done by Jesus.
The main in the context was deaf, and had an impediment in his speech.
It shows our state of mind of not able to speak to God and not able to hear what the God says.
This will hinder our spiritual and earthly blessings.To receive blessings we have to open our ears

Jesus took him away from the multitude, this shows a separated life we have to follow in our personal life.
Jesus told Ephphatha, that is, Be opened.

We will mediatate about the life of four persons, who got blessed by opening their ears to the word of GOd.

Listen to Word of God and got saved : Luke 19:5 (King James Version)
"And when Jesus came to the place, he looked up, and saw him, and said unto him, Zacchaeus, make haste, and come down; for to day I must abide at thy house."
Here Jesus asked Zacchaeus to come down. Since he opened his ears to listen to the word of Jesus, he and the entire family were saved.

Listen to Word of God and Loved by God : Luke 10:38
"Now it came to pass, as they went, that he entered into a certain village: and a certain woman named Martha received him into her house.And she had a sister called Mary, which also sat at Jesus' feet, and heard his word."
Here there is the family of Martha, Mary and Lazarus. Since they listened to the word of God, In John 11:5, "Now Jesus loved Martha, and her sister, and Lazarus". They were loved by Jesus.

Listen to Word of God and Got healed : Luke 17:11-14 (King James Version)
"And when he saw them, he said unto them, Go shew yourselves unto the priests. And it came to pass, that, as they went, they were cleansed.". When they listened to waht Jeusu told, they were
In Exodus 15:26 (King James Version)
"And said, If thou wilt diligently hearken to the voice of the LORD thy God, and wilt do that which is right in his sight, and wilt give ear to his commandments, and keep all his statutes, I will put none of these diseases upon thee, which I have brought upon the Egyptians: for I am the LORD that healeth thee."
For getting healed we have to do four things:
1) diligently hearken to the voice of the LORD thy God
2) wilt do that which is right in his sight,
3) wilt give ear to his commandments,
4) keep all his statutes,

Listen to the word of God and received great blessings : Mathew 4:18
Disciples listened to the word of God and they were turned from mere fishermen to those who catch men. They were know all over the world and were able to shake the world by their words and deeds in the name of Jesus.
They did miracles which Jesus did not done in his missionary days.

What Jesus did for the deaf man to hear? Mark 7:33 (King James Version)
"And he took him aside from the multitude, and put his fingers into his ears, and he spit, and touched his tongue;"
  1. Jesus took him away from the multitude, this shows a separated life we have to follow in our personal life.
  2. Jesus told Ephphatha, that is, Be opened.

Are we not able to speak to God? Are we not able to listen to word of God?

Please examine our life and open our ears and mind to be get blessed by the Lord.

Friday, June 12, 2009

I am with thee, and will keep thee


Genesis 28:15 (King James Version)
"And, behold, I am with thee, and will keep thee in all places whither thou goest, and will bring thee again into this land; for I will not leave thee, until I have done that which I have spoken to thee of."

This is what God told to James on the way to the home of Laban, when he ran waya from his brother.This is a promise verse which all christian should know.
This verse contains 4 promises.

For the Lord to give us this promises, what we have to do?

Complete Obedience:
Genesis 27:43 (King James Version)
"Now therefore, my son, obey my voice; arise, flee thou to Laban my brother to Haran;"
James obeyed the word and fled to Haran. It shows complete obedience to what servants of Lord told you to do.

Life of separation:
The Lord appeared to him when he was alone at the forest. This shows a life of separation.When we lead a life of separation, the Lord will start to speak to us.
God was with Joseph.
Gen 39:2, 37:2 Genesis 39:2 (King James Version)
"And the LORD was with Joseph, and he was a prosperous man; and he was in the house of his master the Egyptian"

Parying and Mediatating before God:Joshua 1:5 (King James Version)
"There shall not any man be able to stand before thee all the days of thy life: as I was with Moses, so I will be with thee: I will not fail thee, nor forsake thee."

Meek and Faithful:Number 12:3,7
"Now the man Moses was very meek, above all the men which were upon the face of the earth."
"My servant Moses is not so, who is faithful in all mine house."

Spirit of Ministry, Meditating the law of God
Joshua 1:1
"Now after the death of Moses the servant of the LORD it came to pass, that the LORD spake unto Joshua the son of Nun, Moses' minister, saying,"

For those people who do the above four things , the promises will belong to them.
2 Chronicles 15:2 (King James Version)
"And he went out to meet Asa, and said unto him, Hear ye me, Asa, and all Judah and Benjamin; The LORD is with you, while ye be with him; and if ye seek him, he will be found of you; but if ye forsake him, he will forsake you."

May God bless you with these words



Exodus 17:8-9 (King James Version)

"Then came Amalek, and fought with Israel in Rephidim.And Moses said unto Joshua, Choose us out men, and go out, fight with Amalek: tomorrow I will stand on the top of the hill with the rod of God in mine hand."
Here the verse speak about the fight between Amalek and how Israel overcome them.

The word Rephidim means 'Rest'. But the spirit of Amalake will try to take away the rest from you.In our todays life Amaleks' are some kind of spirit which will hinder us in the progress of our spiritual life.They will not allow us to reach canan and they will also kill those people who were left behind because of tiredness.Until we have oversome this spirit, we cannot reach our spiritual canan.

Today we will meditate 5 things about Amalek.

The spirit of sin: 1 Samuel 15:18 (King James Version)
"And the LORD sent thee on a journey, and said, Go and utterly destroy the sinners the Amalekites, and fight against them until they be consumed."
In the life of a saved child of God there will be struggle against sins in life and against faith in life. This is the work of Amalek spirit and as said in Hebrews 12:4 "Ye have not yet resisted unto blood, striving against sin."
We have to fought against it.

The spirit of blocking the way: 1 Samuel 15:2 (King James Version)
"Thus saith the LORD of hosts, I remember that which Amalek did to Israel, how he laid wait for him in the way, when he came up from Egypt.
This shows these spirit will be blocking on the way of child of God to heaven.

The spirit with No Fear of God:Deuteronomy 25:18 (King James Version)
"How he met thee by the way, and smote the hindmost of thee, even all that were feeble behind thee, when thou wast faint and weary; and he feared not God." In Psalm 36:1"The transgression of the wicked saith within my heart, that there is no fear of God before his eyes."

The spirit of Killing the weary people :Deuteronomy 25:18 (King James Version)
"How he met thee by the way, and smote the hindmost of thee, even all that were feeble behind thee, when thou wast faint and weary; and he feared not God."
It shows the power of backsliding

The spirit of taking the Crown:2 Samuel 1:10 (King James Version)
"So I stood upon him, and slew him, because I was sure that he could not live after that he was fallen: and I took the crown that was upon his head, and the bracelet that was on his arm, and have brought them hither unto my lord."
The crown reveals overcoming life. The spirit of Amalake are looking to take away your crown.

How can we overcome Amalake?
4 people have to be there to overcome the spirit of Amalake
Joshua, Moses, Aron and Hur
They are the 4 symblolic of prayer life.
1 Timothy 2:1 "I exhort therefore, that, first of all, supplications, prayers, intercessions, and giving of thanks, be made for all men;"

Moses shows prayer
Aron, the High priest shows intercessions
Hur belongs to the tribe of Juda and shows praising, thanks giving to God
Joshua who is in the battle field shows supplications

May Lord God help you to have Rephidim, Rest in your life

Friday, June 5, 2009

Listing available printers using lotus script

Listing available printers using lotus script

Dim WshNetwork As Variant
Dim WshPrinters As Variant
Dim pArray() As String
Dim iRetValue As Long
Dim DefaultPrinter As String
Dim pCount As Integer
Dim printerAvailable As Boolean
Dim n As Integer

Set WshNetwork = CreateObject("WScript.Network")
Set WshPrinters = WshNetwork.EnumPrinterConnections()

'count the connected printers
pCount% = 0
For n = 1 To WshPrinters.Count() Step 2
If wshPrinters(n) <> "" Then pCount%=pCount%+1

'collect the names of the connected printers
Redim pArray(pCount%-1) As String
pCount% = 0
For n = 1 To WshPrinters.Count() Step 2
If wshPrinters(n) <> "" Then
pArray(pCount%) = wshPrinters(n)
End If

Listing available printers in system using java

The below code will list the default printer device and also list the available printers in the system

import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;

import javax.print.*;
import javax.print.attribute.*;
import javax.print.attribute.standard.*;
import javax.print.event.PrintJobEvent;

public class ListPrinters {
public static void main(String[] args) throws PrinterException{

PrintService defServ = PrintServiceLookup.lookupDefaultPrintService();
System.out.println("Default PrintService: "+defServ);

PrintService[] serv = PrintServiceLookup.lookupPrintServices(null, null);
if (serv.length==0) {
System.out.println("no PrintService found");
} else {
System.out.println("number of Services "+serv.length);

for (int i = 0; i
PrintServiceAttributeSet psa = serv[i].getAttributes();
System.out.println("printer name "+(i+1)+" "+psa.get(PrinterName.class));
System.out.println("accepting "+psa.get(PrinterIsAcceptingJobs.class));


Printing .txt file directly to printer using java

The below code will sent a .txt file directly to printer.


import javax.print.Doc;
import javax.print.DocFlavor;
import javax.print.DocPrintJob;
import javax.print.PrintService;
import javax.print.PrintServiceLookup;
import javax.print.SimpleDoc;
import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
import javax.print.event.PrintJobAdapter;
import javax.print.event.PrintJobEvent;

public class Class3 {

public static void main(String[] args) {

DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;

PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();

/* locate a print service that can handle it */

PrintService[] pservices = PrintServiceLookup.lookupPrintServices(flavor, aset);

/* create a print job for the chosen service */

int printnbr = 0;
DocPrintJob pj = pservices[printnbr].createPrintJob();

try {
FileInputStream fis = new FileInputStream("C:\\tmp\\test.txt");
Doc doc = new SimpleDoc(fis, flavor, null);
PrintJobWatcher pjDone = new PrintJobWatcher(pj);

/* print the doc as specified */
pj.print(doc, aset);

catch (Exception ex){


Some useful links which will discuss deeply about the problem with printing in java and printing jasper reports

Printing an Open office document

Printing a Jasper Report

Windows script dealing with printer devices

Read/Write windows registry entries using Java

In one of my application , where I had to read/write entries on windows registry using Java. These are the two jar files which I found extermely useful.

Windows Registry Wrapper

This help us to read/write REG_DWORD and REG_BINARY also.

Below is a sample code I used with the jar file

import at.*;
import at.jta.*;

public static void main(String[] args) throws RegistryErrorException

Regor obj = new Regor();
Key key = obj.openKey(Regor.HKEY_CURRENT_USER, "Software\\Custom Writer");
int count = 0;
count = Integer.parseInt(obj.readDword(key, "StartAt"));


Java Registry Wrapper

The source code and .jar files are available in the google code store. (

This will help us to read/write the REG_SZ (registry string characters)

Some other helpful links:

Running multiple instance of notes client on desktop

Running multiple instance of notes client on desktop

Please read this blog entry

Detecting a Laptop in Lotusscript

While searching, I came across two interesting article from panagenda's Blog

Detecting a Laptop in LotusScript (on Windows)

Creating your own desktop / virtual workspace skin for Lotus Notes

Its a very good blog providing out of box thinking

Windows Short Cut Keys

I was doing a search for the windows shortcut keys for minimizing an open screen. I searched a lot in several forums but i do get list of windows short cut keys , but was unable to find one for minimizing an active window.

Accidentally from one blog post I got the answer.

ALT+Space Bar + N

Some helping links the windows short cut keys

Computer Short Cut Keys

Wednesday, May 27, 2009

Gadgets vs Normal Life

Last time I attended a small session on how you can be organized. The presenter give a nice lecturing on organizing using calendars, todo's, reminders everything. I just had a flash back on how people organized their things effectively at old times. They organized stuff very effectively usinh just papers and their own filing mechanism. They used their common sense for organizign things.

As technology is growing to have a great impact on our life, we are fully got controlled by gadgets. But dont know how we will organize when the gadget goes lost or out of order. Remember technology can defeat you at any time and you will be made a simple on looker at that time.

Tuesday, May 26, 2009

Practical Wisdom

This incident happened around one year ago. It was a rainy day.I was on my usual way to office from LIC to Saidapet. The bus was too crowded. But the seats were empty because all the seats were wet because of the rain. Every one was desperate to sit, all will come near to the seat, check the seat and on seeing it is wet , will prefer to stand on board.

At one point one old man boarded the bus, he took his ticket and same like everybody; on seeing some empty seats came near to the seat, on seeing it is wet he stopped a moment, immediately he took out his shawl(which he had his shoulder) wrapped it , made a small cushion and sit above on it.
We all stabd there like fools.

I was by the practical wisdom , that old man showed at that time. Yes, practical wisdom will accumulate only thru ages and experiences.

Rich vs Real Rich

Last week , I was on my usual way to office from LIC to Saidapet. From some bus stop an old man also boarded the bus. While taking ticket he was on shortage of some one or two rupees. he had only some 100 rupees with him and the conductor is not ready to give a change. The conductor start shouting and asked him to get down at the next stop. The old man was really looking worried. He stared at others and got ready to get down at the next bus stop. One old man, from his dress it seems he is a poor guy, wearing a cotton shirt and a dhoti(kayli), came forward and offered to give the change to complete the ticket cost.

I don't know how others felt, I felt too ashamed of the situation. Almost 98%of the commuters in the bus (including me) were office-goers wearing brand look and feel, have purse full with money in the form of fifty and hundred rupees. But what is the use? They are not enough rich to help a poor guy with two rupees.

There is no point in saying that I am earning this much and that much, but really you have to earn something good thing in your heart.

The city of Capernaum


John 6:16-17

"And when even was now come, his disciples went down unto the sea,
And entered into a ship, and went over the sea toward Capernaum. And it was now dark, and Jesus was not come to them."

In Bible, the city of Capernaum, have very important significance. It was the place where Jesus used to stay and pray. In this section we will think mainly about two things
  1. Specialty of the Capernaum
  2. What are the hindrances we have to overcome to reach Capernaum.
From scriptures we can find 4 specialties of Capernaum.

Dwelling place of Jesus

Mathew 4:13 "And leaving Nazareth, he came and dwelt in Capernaum". Capernaum is the place where Jesus chosen for rest. Whether our life is the place where Jesus can be rested?This shows preserving a peace and rest in Jesus.

Place of Prayer House

Luke 7:5 "For he loveth our nation, and he hath built us a synagogue."
It was a place where the Jews had their temple , synagouge built there.It shows a prayer life. It shows preserving the life of prayer in us.Capernaum is the place where Jesus did many miracles.
When u pray for others, Lord will raise many others to pray for u. In Bible we can see that Jesus wept for three people.
  1. Jesus Wept for Lazer -> a single person
  2. Jesus wept for Jerusalem - > a group
  3. Jesus wept at Gathsemana -> entire world.
In the life of the family of Abraham, he was following the life of living in Tent. That means he is leading a life of prayer.

Place where u experience Healing -divine miracle
Mark 1:31 , "And he came and took her by the hand, and lifted her up; and immediately the fever left her, and she ministered unto them."
Sometimes sickness will not be healed immediately by prayer, but God will give his grace to sustain thru the sickness. As told to St. Paul, "My grace is sufficient for theee"

Place where Miracles happened
Mathew 17:27 "Notwithstanding, lest we should offend them, go thou to the sea, and cast an hook, and take up the fish that first cometh up; and when thou hast opened his mouth, thou shalt find a piece of money: that take, and give unto them for me and thee."
For a miracle to happen , faith is necessary. Jesus told these words to Peter and Peter went with faith.

For to reach Capernaum, the Satan will come with 4 hindrances.

John 6: 17, It was dark.
Romans 1:21 "Because that, when they knew God, they glorified him not as God, neither were thankful; but became vain in their imaginations, and their foolish heart was darkened." When u started praising God, all the darkness will be removed.
John 6:17, Jesus was not with them.
It shows a life without Jesus.
John 6: 17, Great Wind
It shows the trials, problems and re-approaches, blowing against spiritual life.But do not look at the wind. You have to overcome this wind with the Mighty wind of HolySpirit.
John 6: 17,Sea arose:
It shows trouble in the family life. There is only one solution for u to reach Capernaum: as in John 6:21, "they mind to accept Jesus and immediately they reached shore".
With these troubles you can go to a max of 30 miles, further you cannot go. You will be drowned and caught by in the clutches of Devil. But make your mind to accept Jesus. You boat will reach safely at the shore.

Friday, May 15, 2009

Bring a SWT window on back to the front of the screen

Recently I was searching for some help on SWT , how to change to bring a SWT screen in back to the front view. Lastly I found that in shell there is a method called shell.setForceActive(); which will force the back screen to come to the front.

Handling attachment with same name in Lotus Script

I have a problem of extracting attachments in a lotus notes document. If the document contains multiple files with same name, in the document it is displaying multiple documents with same name ; but while extracting the attachments one of the file is extracting properly and the other files with same name as extracting like 'ATT..' , 'ATW.." etc.

What happens is if a document contains multiple files with same name, domino internally will allocate a unique name to other files. Each file in notes document have two parts one is source and the other is name property. The source property will hold the atcual file name (that is u are seeing in document) , but the name property will hold a unique value supplied by domino for internal purposes.

Use a combination of name and source property to identify multiple files with same name and do some tricks while extracting.

Below is a small snippet I used while extracting...

Dim rtitem As NotesRichTextItem
Dim attname as String

Set rtitem = doc.GetFirstItem( "Body" )
While Not rtitem Is Nothing
Forall eo In rtitem.EmbeddedObjects
If (eo.Type = EMBED_ATTACHMENT) Then
' If Name and Source are different,
' Name is a random name assigned by Domino...

If eo.Name <> eo.Source Then
' take advantage of the random Name &
' add extension of the Source...

attname = eo.Name & "." & GetExtension(eo.Source)

' No random name was assigned,
' so it is safe to use Source...

attname = eo.Source

End If
Call eo.ExtractFile(attname)
End If
End Forall
' If multiple items in a document have the same name,
' programmatic access is limited to the first item.

' The remaining items yield invalid data.
' A work-around is to get the first item,
' process it, remove it,

' again get the first item (which was the second item),
' and so on until you process all the items
' with the same name.

' If you do not save the document,
' the items are not
' actually removed.

' However, the recommendation is that you avoid creating
' multiple items with the same name.

Call rtitem.Remove
Set rtitem = doc.GetFirstItem( "Body" )

DXL for documents in Trash folder of Lotus Notes Mail

I had a tough time with handling dxl of Lotus Notes document. The problem is I want to get dxl of documents in the Trash folder of Louts Notes mail database. I was using notes document UNID to get the document and passing the document to dxl exporter. But I when I make a db.getDocumentByUNID() ; it is showing invalid universal id.

How I solved the issue is, i got the noteID of the document and used db.getDocumentByID() for getting handling of the document and passing it to DXL exporter. It worked fine.

I am working on LN 7.0.3.

I don't know whether this is happening with LN 8. i have to check......: :)

Using Send Keys in Lotus Script

Recently I came across an article in IBM developer works that talks about send keys and how to apply it practically for some work-arounds.

Icon not dispalying properly when attaching using Lotus Script- a work around

For one of my application, I was having a difficult time today. I want to do an attachment to notes document thru back-end. But problem is the attachment icons are not displaying properly.
All attachments that made thru back-end in Lotus Notes document will always result in displaying the attachment with a grayed generic icon, not usual custom icon for application like .doc,.zip..pdf etc..

I just made a search in the IBM developer works and found that they have no plan to fix this issue soon.

While going thru one of the form, where I found a work-around and it helped me to solve the issue.

Thanks a lot to Andre Guirard for providing this valuable information

Thursday, May 14, 2009

He hath promised us, even eternal life


1 John 2:25; "And this is the promise that he hath promised us, even eternal life."
This is the most important promise among promises; which is given to the Child of God.

To receive eternal life, lets see what all things we have to do:

Faith on Jesus
John 3:15 ;"That whosoever believeth in him should not perish, but have eternal life."

Know Jesus:
"And this is life eternal, that they might know thee the only true God, and Jesus Christ, whom thou hast sent."

Those who pass through strait gate:
Mathew 7:14; "Because strait is the gate, and narrow is the way, which leadeth unto life, and few there be that find it".Acts 14:22; "Confirming the souls of the disciples, and exhorting them to continue in the faith, and that we must through much tribulation enter into the kingdom of God."

Those without bitterness and hatred:
1 John 3:15 ; "Whosoever hateth his brother is a murderer: and ye know that no murderer hath eternal life abiding in him."

Part of his flest and blood:
John 6:54 "Whoso eateth my flesh, and drinketh my blood, hath eternal life; and I will raise him up at the last day."

Read Bible for Transformation; not just for Information

Delight in the Presence of Lord:


Isaiah 58:14
"Then shalt thou delight thyself in the LORD; and I will cause thee to ride upon the high places of the earth, and feed thee with the heritage of Jacob thy father: for the mouth of the LORD hath spoken it."

Here we can see who else can be delight in the presence of Lord:

For those who Seeks the Lord
1 Chronicles 16:10 :"Glory ye in his holy name: let the heart of them rejoice that seek the LORD"
As the psalmist says in 63:1 ; "God, thou art my God; early will I seek thee: my soul thirsteth for thee, my flesh longeth for thee in a dry and thirsty land, where no water is"

For those who Redeem from Captivity
Psalms 14:7 ; "Oh that the salvation of Israel were come out of Zion! when the LORD bringeth back the captivity of his people, Jacob shall rejoice, and Israel shall be glad."

For those who Meditate
Psalms 104:34 ;" My meditation of him shall be sweet: I will be glad in the LORD."
Psalms 34 :8 ;" O taste and see that the LORD is good: blessed is the man that trusteth in him."
Joshua 1:8 ; "his book of the law shall not depart out of thy mouth; but thou shalt meditate therein day and night, that thou mayest observe to do according to all that is written therein: for then thou shalt make thy way prosperous, and then thou shalt have good success."

For those who Offer Sacrifice
Nehemiah 12:43;" Also that day they offered great sacrifices, and rejoiced: for God had made them rejoice with great joy: the wives also and the children rejoiced: so that the joy of Jerusalem was heard even afar off.
Psalms 51:17; "The sacrifices of God are a broken spirit: a broken and a contrite heart, O God, thou wilt not despise".
For truth we have to sacrifice lot of stuff.

For those who Observe sabath:
Isaiah 58:13; "If thou turn away thy foot from the sabbath, from doing thy pleasure on my holy day; and call the sabbath a delight, the holy of the LORD, honourable; and shalt honour him, not doing thine own ways, nor finding thine own pleasure, nor speaking thine own words:"

Monday, May 4, 2009

The McKinsey Way

Recently I had a chance to read through this book. The book is a very nice one which you read through like reading a story. But if you are reading this book, take some time , read one chapetr and think about how you can implement this in your current way of doing work. I always be admired by the way how big organizations are growing from bigger to bigger and how they are maintaining their standard and quality of work. This book give you an insight on what is the essential glue that is binding the organization and its work force with standards.
It gives you an insight on how elite people are working, they way and standard of working and the ethics they are using in their work culture. I liked the chapters on team bonding, how team leaders are keeping the moral and motivation of the team members as high, what are the simple tools they are using, how they are analyzing a problem and structuring, their way of doing work , how they are grooming their juniors,what mentors are doing, how to build a team.

Its a worth to read and think.

Regular expression to match valid Windows XP file names

Last week I had some time trying to figure out the way I have to find a regular expression for matching invalid windows file name with an underscore charaacter. You may find it helpful at some times.

//to match valid Windows XP file names. Such a file name consists
//of any sequence of characters other than
// / \ : * ? " < > |

String regexp = "[/\\:*?\"<>|]";
return fileName.replaceAll(regexp, "_");

Gather all Israel to Mizpeh


I Samuel 7:5-6

"And Samuel said, Gather all Israel to Mizpeh, and I will pray for you unto the LORD.
And they gathered together to Mizpeh, and drew water, and poured it out before the LORD, and fasted on that day, and said there, We have sinned against the LORD. "

Here we can see that, for the Lord to do some work , there are two things to complete. There are some works to be done by Israel and some part to be done by Samuel, then GOD will do his part for Israel

Philistines- They are the devil spirit which will always try to turn children of GOD away from the blessings of GOD. These are the forces which will always be an obstacle to the spiritual life and spiritual blessings of people.In Gen 26:15 "For all the wells which his father's servants had digged in the days of Abraham his father, the Philistines had stopped them, and filled them with earth" , we can find that Philistines will always try to stop the joy of salvation and joy of anointing of the children of God. Here the well represents the joy of salvation and joy of anointing of the children of God. To overcome Philistines in your life you need to have the experience of Mizpeh.

Here for the Lord to work for us, we can find four things we have to do from our part

Gather all Israel to Mizpeh (I Samuel 7:5)
It shows fellowship. In Acts 2:42 it is written , "and they continued stedfastly in the apostles' doctrine and fellowship, and in breaking of bread, and in prayers". The children of God whosul always have the fellowship with church, saints and God thru prayers. Otherswise the Philistines will enter and take away your peace.It also shows Fellowship through prayer:"Where two or more are gathered in my name, there will I (God) be also".

Drew water, and poured it out before the LORD (I Samuel 7:6)
It shows pouring our heart in the presence of the Lord. Hannah poured her heart in the presence of Lord, I Samuel 1:15. A God's child should always learn that he has to tell his suffering to no one in the world, but only to the Lord. See Elijah, the prophet told his suffering to the Lord and He appointed crow for feasting Elijah. Our God is Mighty God and he will always be able to deliver you. if you go to human with your suffering , they cannot help and you will be them.It also shows a faithful life.

Fasted on that day (I Samuel 7:6)
If you want to enter heaven, a God's child should atleat fast 2 days in a week according to scriptures . In Mathew 5:20 , "For I say unto you, That except your righteousness shall exceed the righteousness of the scribes and Pharisees, ye shall in no case enter into the kingdom of heaven.". Our righteousness should exceed that of the scribes and Pharisees, who will fast one day in a week. In Luke 18:12, "I fast twice in the week, I give tithes of all that I possess." In the scriptures we see that Esther fasted 3 days , Jonah fasted 3 days and so on...

We have sinned against the LORD.(I Samuel 7:6)
It shows the expression of confession before the God.In Romans 10:10,"For with the heart man believed unto righteousness; and with the mouth confession is made unto salvation".

For those who ever did the above four things, Samuel ( workers of God) will have to do offer prayers and sacrifices before the God.

I Samuel 7:5, "Gather all Israel to Mizpeh, and I will pray for you unto the LORD". Then the workres of Lord will pary for you and offer sacrifices. The sacrifices are praise offerings before the Lord.I Samuel 7:9, "And Samuel took a sucking lamb, and offered it for a burnt offering wholly unto the LORD: and Samuel cried unto the LORD for Israel"

When we complete these parts, the Lord will do his part for us.
I Samuel 7:9,10, "The LORD heard him .And as Samuel was offering up the burnt offering, the Philistines drew near to battle against Israel: but the LORD thundered with a great thunder on that day upon the Philistines, and discomfited them; and they were smitten before Israel".

Our Lord will do mighty things for us.

Wednesday, April 22, 2009

Inheritances of child of God


I Kings 21: 1-3
"And Ahab spake unto Naboth, saying, Give me thy vineyard, that I may have it for a garden of herbs, because it is near unto my house: and I will give thee for it a better vineyard than it; or, if it seem good to thee, I will give thee the worth of it in money.
And Naboth said to Ahab, The LORD forbid it me, that I should give the inheritance of my fathers unto thee"

Here we can see that Ahab is asking for an inheritance that belongs to Naboth and he is reluctant to sell it to him.In this passage we can compare Ahab to worldly pleasures and Naboth to spiritual life. For a child of God,whenever he is away from the presence of God, the worldly pleasures will ask to turn our inheritance to a garden of Herbs.

If you are a true child of God, you should not allow to convert your Fathers inheritance to a garden of hers. You should be ready to put your head for keeping it safe.

Here we can see the five inheritance possessed by a child of GOD

Anointing of Holy Spirit

Eph 1:14 : "ye were sealed with that holy Spirit of promise,Which is the earnest of our inheritance until the redemption of the purchased possession, unto the praise of his glory".

The gift of holy spirit is an inheritance of a child of God. You should preserve it till your end.In Eph 4:31, we will find the things which will devil bring to our life to destroy our inheritance of HolySpirit "Let all bitterness, and wrath, and anger, and clamour, and evil speaking, be put away from you, with all malice"
We aware of all the loop holes which devil brings in our life and preserve our inheritnace of Holyspirit.


Psalms 16:6 "The lines are fallen unto me in pleasant places; yea, I have a goodly heritage". What is this pleasant place? The Holy consecration which the Lord brings us by his mercy is one of our inheritances. In our consecration
we have 5 officers, 9 gifts and 8 ministers. The Lord has given us saints who will teach us the path to Zion and Jerusalem and also we have a wonderful fellowship with the children of God.

As the brothers of Joseph told to him as in Gen 42:10, we are the children of one father. Jesus is our father and we are his children.
Preserve this inheritance of Concegration till the end.

Fellowship with saints

Colossians 1:12 "Giving thanks unto the Father, which hath made us meet to be partakers of the inheritance of the saints in light", Yes, the wonderful fellowship God has given to us with the saints of god is an inheritance.

Lord is my inheritance

Psalms 14:5 "There were they in great fear: for God is in the generation of the righteous". Jesus is our father and we are his children. All that belonging to Jesus is our inheritance. Zion is our inheritance, Jerusalem is our inheritance.

The Devil will try to separate us from our God. But we should be ready to say that "Who will separate me from my Lord, God?"

If you are able to preserve all the above 4 inheritance then

Eternal inheritance

Heb 9:15 "And for this cause he is the mediator of the new testament, that by means of death, for the redemption of the transgressions that were under the first testament, they which are called might receive the promise of
eternal inheritance." .

The lord is preparing an eternal inheritance for us. There will not be any sorrow or tears we
Will live with our God for years and years.
Are u prepared for the eternal inheritance?
We should be like the merchant as in Mathew 13:46 "Who, when he had found one pearl of great price, went and sold all that he had, and bought it.". We have found one pearl of great price. That pearl is Jesus Christ , who gave his young blood for saving the mankind from sin.

Be ready to meet Our Lord in Mid-air?

Tuesday, April 21, 2009

Programmatically sending Lotus Notes UI Memo thorugh back-end code

I have faced a small problem while trying to send a mail thru back-end which is currently opened in the workspace. I have to sent the mail and have to close the ui window as if it were sending thru clicking the normal 'Send' button. The problem is when I am using uidoc.close(), the client will give the send dialog at the front end, which is very awkward.

I used the following workaround for avoiding this problem and silently closing the memo after sending it thru back-end.

Call uidoc.Send()
'during closing to avoid asking for confirmation
'do a backend save and close it.
Set doc = uiMemodoc.Document 'get the back-end handle
Call doc.Save(True,False) 'save it
Call doc.ReplaceItemValue("SaveOptions",0)
Call uiMemodoc.Close() 'now it wil close without any dialog box