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

As told in TPM CHURCH, ROYAPETTA 17-MAY-2009 SUNDAY SERVICE

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)

Else
' 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" )
Wend

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.

http://www-01.ibm.com/support/docview.wss?uid=swg21089151
http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg21087073

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.

http://www-10.lotus.com/ldd/bpmpblog.nsf/dx/attaching-LS

Thanks a lot to Andre Guirard for providing this valuable information

Thursday, May 14, 2009

He hath promised us, even eternal life

As told in TPM CHURCH, ROYAPETTA 10-MAY-2009 SUNDAY SERVICE

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:

As told in TPM CHURCH, ROYAPETTA 03-MAY-2009 SUNDAY SERVICE

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

As told in TPM CHURCH, ROYAPETTA 26-APR-2009 SUNDAY SERVICE

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.