tag:blogger.com,1999:blog-40337762846891325422024-03-09T04:34:24.903+05:30Abeish BabuAbeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.comBlogger74125tag:blogger.com,1999:blog-4033776284689132542.post-80315505192453070112009-10-30T16:06:00.003+05:302009-10-30T16:21:25.004+05:30Chinese characters in resource bundles<div style="text-align: justify;">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.<br /><br />The following work around helped me to overcome the situation.<br /><br />Open an existing MessageBundle.properties 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.<br /></div><br />Use the tool '<span style="font-weight: bold;">native2ascii</span>' to convert the chinese charcters to unicode characters.<br /><br />The syntax is like this:<br /><br /><span style="font-weight: bold;font-family:courier new;" >C:\temp>native2ascii -encoding utf-8 MessagesBundle.properties Chinese.properties</span><br /><br /><div style="text-align: justify;">The Chinese.properties file will contain Unicode characters for your Chinese letters in MessageBundle.properties. Then copy the content in Chinese.properties file and copy it to any MessageBundle.properties file created in eclipse.<br /><br />The program will work fine displaying Chinese characters without any modification to source code.<br /></div><br />http://forums.sun.com/thread.jspa?threadID=306155<br />http://forums.sun.com/thread.jspa?threadID=212238&tstart=121351<br />http://java.sun.com/developer/technicalArticles/Intl/IntlIntro/<br />http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/native2ascii.htmlAbeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com2tag:blogger.com,1999:blog-4033776284689132542.post-71603934561625992252009-10-27T11:06:00.004+05:302009-10-27T11:21:09.493+05:30ini file which helps you to preserve comments while updating<div style="text-align: justify;">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.<br /><br />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.<br /></div><br /><a href="http://ini4j.sourceforge.net/tutorial/IniTutorial.java.html">http://ini4j.sourceforge.net/tutorial/IniTutorial.java.html</a>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com1tag:blogger.com,1999:blog-4033776284689132542.post-19965597818063458912009-10-27T10:58:00.002+05:302009-10-27T11:06:10.243+05:30Format date in Lotus scriptBelow post helped me to format date in Lotus script<br /><br /><a href="http://www.joelitton.net/A559B2/home.nsf/d6plinks/JLIN-5UU4B2">http://www.joelitton.net/A559B2/home.nsf/d6plinks/JLIN-5UU4B2</a><br /><br />I made changes to the code and below code will format the date value in a field of document.<br /><br /> <span style="font-family: courier new;"> Dim session As New NotesSession</span><br /><span style="font-family: courier new;"> Dim dateTime As NotesDateTime</span><br /><span style="font-family: courier new;"> Set dateTime = session.CreateDateTime ( deliveredDate )</span><br /><span style="font-family: courier new;"> print " : " & Cstr(dateTime.LocalTime ) & " GMT Time :" & Cstr(dateTime.GMTTime)</span><br /><span style="font-family: courier new;"> </span><br /><span style="font-family: courier new;"> Dim dtGMT As NotesDateTime</span><br /><span style="font-family: courier new;"> Dim strRSSDate As String</span><br /><br /><span style="font-family: courier new;"> Set dtGMT = New NotesDateTime( Left$(dateTime.LocalTime , 22) )</span><br /><span style="font-family: courier new;"> strRSSDate = Format$(dtGMT.LSLocalTime, "dd-mmm-yyyy hh:mm:ss AM/PM")</span>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-34741735184656031062009-10-27T10:38:00.003+05:302009-10-27T10:46:11.811+05:30ReplaceAll function in lotus script<span style="font-size:85%;"><span style="font-family: courier new;"><br />Code snippet to stimulate replaceAll function in lotus script<br /><br />Function StringReplaceAll(Byval strArg As String, Byval strSrc As String,Byval strDst As String) As String</span><br /><span style="font-family: courier new;"></span><span style="font-family: courier new;"></span><span style="font-family: courier new;"></span><br /><span style="font-family: courier new;"> </span><br /><span style="font-family: courier new;"> Dim iPos As Integer</span><br /><span style="font-family: courier new;"> iPos = Instr(strArg, strSrc)</span><br /><span style="font-family: courier new;"> </span><br /><span style="font-family: courier new;"> While iPos > 0</span><br /><span style="font-family: courier new;"> strArg = Left$(strArg, iPos - 1) + strDst + Mid$(strArg, iPos + Len(strSrc))</span><br /><span style="font-family: courier new;"> iPos = Instr(iPos + Len(strDst), strArg, strSrc)</span><br /><span style="font-family: courier new;"> Wend</span><br /><span style="font-family: courier new;"> </span><br /><span style="font-family: courier new;"> </span></span><span style="font-size:85%;"><span style="font-family: courier new;">StringReplaceAll</span></span><span style="font-size:85%;"><span style="font-family: courier new;">= strArg</span><br /><span style="font-family: courier new;"></span><span style="font-family: courier new;"></span><br /><span style="font-family: courier new;">End Function<br /><br /><br />The function call </span></span><span style="font-size:85%;"><span style="font-family: courier new;">StringReplaceAll("hello","l", "g") will give the result as 'heggo'<br /><br /></span></span>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com1tag:blogger.com,1999:blog-4033776284689132542.post-20326327711712500382009-10-27T10:35:00.002+05:302009-10-27T10:38:40.285+05:30Dynamically moving scroll bar when dragging an object over an SWT Tree.Dynamically moving scroll bar when dragging an object over an SWT Tree.<br /><br />In the dragOver() event write the following statements:<br /><br />event.feedback |= DND.FEEDBACK_SCROLL;<br /><br />For expanding a tree, when mouse hover over it during dragging an object:<br /><br />event.feedback |= DND.FEEDBACK_EXPAND;<br /><br />The more details can be found at the below link<br /><br /><a href="http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.html">http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.html</a>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-36835278524299082662009-09-09T12:10:00.002+05:302009-09-09T12:20:30.862+05:30Disabling close button in SWT shell windowBelow snippet of code can be used in a SWT dialog box to disable the close button on window.<br /><br />//disabling the close button<br /> dialogShell.addShellListener(new ShellAdapter() {<br /> public void shellClosed(ShellEvent e) {<br /> e.doit = false;<br /> }<br /> });Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com2tag:blogger.com,1999:blog-4033776284689132542.post-81032351668172827002009-09-09T12:07:00.002+05:302009-09-09T12:22:14.923+05:30Center a SWT Shell on the screenBelow snippet of code can be used to center a SWT shell on the screen<br /><br /> //center the dialog screen to the monitor<br /> Monitor primary = display.getPrimaryMonitor ();<br /> Rectangle bounds = primary.getBounds ();<br /> Rectangle rect = shell.getBounds ();<br /> int x = bounds.x + (bounds.width - rect.width) / 2;<br /> int y = bounds.y + (bounds.height - rect.height) / 2;<br /> shell.setLocation (x, y);<br /><br /> shell.open();<br /> shell.layout();<br /><br />Below link will provide a brief idea about creating a splash screen using SWT<br /><br /><a href="http://www.eclipsezone.com/eclipse/forums/t53291.html">http://www.eclipsezone.com/eclipse/forums/t53291.html</a>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com1tag:blogger.com,1999:blog-4033776284689132542.post-88037918055137964862009-08-05T21:27:00.004+05:302009-08-05T21:30:24.807+05:30Batch files and Bat to Exe converterSome of the useful links on MS-DOS basic commands and creating bat file.<br /><br /><a href="http://www.computerhope.com/starthlp.htm#04">http://www.computerhope.com/starthlp.htm#04</a><br /><br /><a href="http://www.computerhope.com/batch.htm#11">Information on Batch Files</a><br /><br />Also the following link provides a free tool for converting a bat file to exe.<br /><br /><a href="http://www.f2ko.de/English/b2e/download.php">Bat to Exe Converter</a><br /><br />It is a super tool. Congratulations to Fatih KodakAbeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com1tag:blogger.com,1999:blog-4033776284689132542.post-30583735254025888722009-08-05T21:00:00.002+05:302009-08-05T21:05:11.866+05:30scheduled agent in my local database is not runningLast 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.<br /><br />Follow the following check list when having problem with running scheduled agents in local.<br /><br />1. See you are able to successfully run the agent manually.<br />2. Go to Cleint. File->Preferences->User Preferences->Basics Tab; check 'Enable scheduled local agents'<br />3. Check whether the database is in data folder.Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-35809584632193165982009-08-05T20:56:00.002+05:302009-08-05T21:00:31.750+05:30Starting Lotus Notes Client after a crashFor those who have problem with starting Lotus Notes after a client crash, do the following step.<br /><br /><ol><li>Goto the notes program directory.</li><li>Create a shortcut icon for nsd.exe</li><li>Add the following parameter "-kill" to the target field on shortcut properties window.</li></ol><br /><span style="font-family: courier new;">eg: "C:\Program Files\lotus\notes7\nsd.exe" "-kill"</span><br /><br />The nsd will run and stop all lotus notes related process. After that you can open lotus notes client with out any problem.Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-88080616007484873672009-08-05T20:35:00.002+05:302009-08-05T20:56:05.047+05:30Creating nice charts in Lotus Notes ClientCreating nice charts in Lotus Notes Client<br /><br />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:<br /><br /><a href="http://captainoblivious.com/rob_mcdonagh/home.nsf/d6plinks/BLOT-7BR3XB"> http://captainoblivious.com/rob_mcdonagh/home.nsf/d6plinks/BLOT-7BR3XB</a><br /><br />Also there is a nice artcile on how to create a chart using lotusscript on web.<br /><br /><a href="http://www.notessidan.se/A55B53/blogg.nsf/pixel?Openagent">http://www.notessidan.se/A55B53/blogg.nsf/pixel?Openagent</a>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-12466236244487282842009-08-05T20:28:00.003+05:302009-08-05T20:34:37.577+05:30Version of Lotus script currently runningLast 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.<br /><br />Later I got a hint on the following code.<br /><br /> <span style="font-family: courier new;">retval = Getthreadinfo(LSI_THREAD_VERSION)</span><br /><span style="font-family: courier new;"> Msgbox "The Version of your Lotus script is : " + Cstr(retval) </span><br /><br />will print the version of Lotus script currently runningAbeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-25862665366074831322009-08-05T20:15:00.004+05:302009-08-06T21:09:39.298+05:30Programatically setting default printer using lotusscriptI 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.<br /><br />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.<br /><br />I searched several forums and also in IBM technical forum also they have made it very clear.<br /><h1><a href="http://www-01.ibm.com/support/docview.wss?rs=899&uid=swg21194457"><span style="font-size:85%;">Changed default printer setting not used by Notes</span></a></h1>But I found several good articles which will help to set a printer programatically using lotusscript.<br /><br /><a href="http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/b6a12c5af0975f65852571380061c261?OpenDocument">http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/b6a12c5af0975f65852571380061c261?OpenDocument</a><br /><br /><a href="http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/737998b4fb2386018525754a0052684f?OpenDocument">http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/737998b4fb2386018525754a0052684f?OpenDocument</a><br /><br /><a href="http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/bc361293e222d12e852575d800646d90?OpenDocument">http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/bc361293e222d12e852575d800646d90?OpenDocument</a><br /><br />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.<br /><br />Below is also a small snippet of code , whihc will programatically set a default printer.<br /><br /> <span style="font-family:courier new;"> Dim WshNetwork As Variant</span><br /><span style="font-family:courier new;"> Dim WshPrinters As Variant</span><br /><span style="font-family:courier new;"> Set WshNetwork = CreateObject("WScript.Network")</span><br /><span style="font-family:courier new;"> Set WshPrinters = WshNetwork.EnumPrinterConnections()</span><br /><span style="font-family:courier new;"> PrinterPath = "PDF Writer"</span><br /><span style="font-family:courier new;"> WshNetwork.SetDefaultPrinter Cstr(PrinterPath)</span>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com1tag:blogger.com,1999:blog-4033776284689132542.post-43322830401413496442009-08-05T16:59:00.001+05:302009-08-05T17:01:20.251+05:30Mercy of Lord<span style="font-weight: bold;">Isaiah 30:18</span><br />'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.'<br />Mercy of Lord. There is no limit to the mercy of Lord. When the mercy of God meets man , there are many blessings.<br /><br />Here we will meditate main 6 blessings received by the mercy of God.<br /><br /><span style="font-weight: bold;">1. </span>Sins are forgiven: Luke 18:13<br />'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.'<br /><br /><span style="font-weight: bold;">2. </span>Obtain divine healing: Mark 10:47<br />'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.'<br /><br /><span style="font-weight: bold;">3. </span>Comforted: Luke 7:13<br />'And when the Lord saw her, he had compassion on her, and said unto her, Weep not.'<br /><br /><span style="font-weight: bold;">4.</span> Protection: Psalm 57:1<br />'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.'<br /><br /><span style="font-weight: bold;">5.</span> Prayer will be answered: Psalm 4:1<br />'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.'<br /><br /><span style="font-weight: bold;">6.</span> Gather thee: Isaiah 54:7<br />'For a small moment have I forsaken thee; but with great mercies will I gather thee.'<br /><br />For receiving the mercy of God, we have to do the following things:<br /><span style="font-weight: bold;">1.</span> Confess our sins: Prov 28:13<br />'He that covereth his sins shall not prosper: but whoso confesseth and forsaketh them shall have mercy.'<br /><span style="font-weight: bold;">2.</span> Fear the Lord: Luke 1:50<br />'And his mercy is on them that fear him from generation to generation.'Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-17764361603664874912009-08-05T16:29:00.003+05:302009-08-05T16:33:55.273+05:30Experience of upper chamber of house<span style="font-weight: bold;">As told in TPM CHURCH, ROYAPETTA 19-JULY-2009 SUNDAY SERVICE</span><br /><br /><span style="font-weight: bold;">I Samuel 9:25</span><br />'After they came down from the high place to the town, Samuel talked with Saul on the roof of his house.'<br />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.<br /><br />There are five that will happen at the upper chamber of house.<br /><br /><span style="font-weight: bold;">1</span>. Experience of Pass over was conducted at the top of the house: Luke 22:12<br /><br />'And he shall shew you a large upper room furnished: there make ready.'<br />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.<br /><br /><span style="font-weight: bold;">2.</span>Experience of Praying: Daniel 6:10<br /><br />'Now when Daniel learned that the decree had been published, he went home to his upstairs room where the windows opened toward Jerusalem.'<br />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.<br /><br /><span style="font-weight: bold;">3. </span>Experience of Many Lights Acts 20:8<br /><br />'There were many lamps in the upstairs room where we were meeting.'<br />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.<br /><br /><span style="font-weight: bold;">4. </span>Experience of raising dead to Life Acts 9:36,40<br /><br />Jesus raised three types of people from dead:<br /> Mark 5:43 (dead at home) Only we know what is dead in us. Nobody knows outside.<br /> Dead in Gods love, brotherly love.<br /> Luke 7:16 (dead at street) . The death is know to the village i.e., some people.<br /> It shows some does not have testimony among others. Dead in grace<br /> 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.<br /><br /><span style="font-weight: bold;">5. </span>Experience of being in fellowship Acts 1:13, 15<br /><br />'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.Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-12774664786949733812009-08-05T15:08:00.002+05:302009-08-05T15:11:44.018+05:30Overcome Jericho<span style="font-weight: bold;">As told in TPM CHURCH, ROYAPETTA 12-JULY-2009 SUNDAY SERVICE</span><br /><span style="font-weight: bold;"><br />Joshua 6:2</span><br />'Then the LORD said to Joshua, "See, I have delivered Jericho into your hands, along with its king and its fighting men.'<br />A child of God have to overcome Jericho is two ways.<br /> 1. In personal life we have to overcome Jericho.<br /> 2. Collectively, as a church, we have to overcome Jericho.<br />Jericho is a place of cursed. We have to overcome this curse by the blood of Jesus and meditating the calvary.<br /><br />Here we will discuss three matters about Jericho.<br /><br />1. Jericho is a place where there are <span style="font-weight: bold;">many robbers</span>. Luke 10:30<br />'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.'<br />Here we can see that the robbers did three things to the man.<br /> (i) stripped him of his clothes -> shows devil taking away our salvation and praising.By the weapon of prayer we have to overcome it.<br /> (ii) wounded -> shows the devil creating wounds in mind.<br /> (iii) half dead. -> shows the devil not allowing you to rejoice in the presence of the Lord.<br /><br />2. There was a <span style="font-weight: bold;">blind beggar</span> in Jeircho. Mark : 10:46<br />'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.'<br />This shows loosing our spiritual vision.<br />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.'<br />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.<br /><br />3. There was a <span style="font-weight: bold;">short man named 'Zacchaeus'</span> in Jeriho Luke 19:1,2<br />'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.'<br />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.<br /><br />To overcome Jericho, 4 peoples are needed.Joshua 6:12,13<br />'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.'<br /> (i) priest -> shows fellowship of priest to overcome the devil.<br /> (ii) trumphet -> confirmation of coming of Lord.<br /> (iii)armed men -> shows prayer warriors.<br /> (iv) Arch of God -> shows the power of God and his presence.<br /><br />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.Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-60292890381707946742009-07-09T13:04:00.003+05:302009-07-09T13:13:14.803+05:30DQL query similar to TOP and ROWCOUNT in SQLIf you want to restrict your query result to a selected number of records as we are doing someting similar to "<span style="font-family: courier new;">select top 5 * from authors_table</span>" or similar to <span style="font-family: courier new;">ROWCOUNT</span>.<br />The same criteria can be achieved in DQL using the following parameter <span style="font-family: courier new;">ENABLE(FETCH_ALL_RESULTS <span style="font-style: italic;"><number></span>)</span><br /><br /><span style="font-family: courier new;">select r_object_id from dm_document ENABLE(FETCH_ALL_RESULTS 5)</span> will return the first five records<br /><br /><span style="font-family: courier new;">select r_object_id from dm_document ENABLE(FETCH_ALL_RESULTS 0) </span>will return the entire results collection.<br /><br />For more information can be found at : <a href="http://robineast.wordpress.com/2007/08/14/dql-hints-optimize-top/">http://robineast.wordpress.com/2007/08/14/dql-hints-optimize-top/</a>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com4tag:blogger.com,1999:blog-4033776284689132542.post-38117921144975674342009-07-06T11:56:00.001+05:302009-07-06T11:58:13.830+05:30Weapon of Fear<span style="font-weight: bold;">As told in TPM CHURCH, ROYAPETTA 04-JULY-2009 SUNDAY SERVICE</span><br /><br />Isaiah 54:17<br />"no weapon forged against you will prevail,<br /> and you will refute every tongue that accuses you.<br /> This is the heritage of the servants of the LORD,<br /> and this is their vindication from me," declares the LORD.<br /><br />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.<br /><br />Here we will discuss one of the weapons that devil uses as a weapon against the children of God.<br />The weapon is FEAR.<br /><br /><span style="font-weight: bold;">Genesis 32:11</span><br />"Save me, I pray, from the hand of my brother Esau, for I am afraid he will come and attack me ..."<br />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.<br /><br />To overcome the fear, Jacob prayed.<br /><br /><span style="font-weight: bold;">I Samuel 17:11</span><br />"On hearing the Philistine's words, Saul and all the Israelites were dismayed and terrified."<br />Eventhough Saul is the King of Israel and the he is chosen by God, right now he is afraid of Goliath.<br />The reason is he had lost his anointing to overcome Goliath. He had lost his fellowship with God.<br />The fear will come into our mind when we loss the anointing or fellowship with God.<br /><br />To overcome this fear , we need a heavenly anointing.<br /><br /><span style="font-weight: bold;">I King 19:4</span><br />"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."<br />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.<br /><br />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<br /><br />To overcome the fear we need the word of God and water shows the holy spirit<br /><br /><span style="font-weight: bold;">II Samuel 15: 13, 14</span><br />"Come! We must flee, or none of us will escape from Absalom. ...".<br />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.<br /><br /><br /><span style="font-weight: bold;">Job 3:25</span><br />"What I feared has come upon me; what I dreaded has happened to me."<br /><br />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.<br /><br /><br />Let the God helped you to overcome the weapon of fear through Prayer and Holy Spirit.Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-72229578662816472962009-07-06T10:31:00.000+05:302009-07-06T10:33:57.337+05:30Experience of Wilderness<span style="font-weight: bold;">As told in TPM CHURCH, ROYAPETTA 21-JUNE-2009 SUNDAY SERVICE</span><br /><br /><span style="font-family: verdana;">Mark 6:31</span><br /><span style="font-family: verdana;"> "Come with me by yourselves to a quiet place and get some rest."</span><br /><span style="font-family: verdana;">Here we see , Jesus took his disciples to wilderness and get some rest awhile</span><br /><span style="font-family: verdana;">In Song of Solomon 8: 5 "Who is this coming up from the desert leaning on her lover? "</span><br /><span style="font-family: verdana;">The wilderness shows leaning upon Jesus.</span><br /><br /><span style="font-family: verdana;">Here we will discuss 4 experiences of wilderness to the children of God.</span><br /><br /><span style="font-family: verdana; font-weight: bold;">Wilderness shows rest:</span><br /><span style="font-family: verdana;">Matthew 11:28 "Come to me, all you who are weary and burdened, and I will give you rest."</span><br /><span style="font-family: verdana;">Isaiah 28:12 saya about the rest thru anointing</span><br /><span style="font-family: verdana;">to whom he said,</span><br /><span style="font-family: verdana;"> "This is the resting place, let the weary rest";</span><br /><span style="font-family: verdana;"> and, "This is the place of repose"—</span><br /><span style="font-family: verdana;"> but they would not listen.</span><br /><br /><span style="font-family: verdana; font-weight: bold;">Gods word is revealing to people in wilderness:</span><br /><span style="font-family: verdana;">Luke 3:2 "the word of God came to John son of Zechariah in the desert."</span><br /><br /><span style="font-family: verdana; font-weight: bold;">Time of Temptation by devil:</span><br /><span style="font-family: verdana;">Mathew 4: 1 "Then Jesus was led by the Spirit into the desert to be tempted by the devil."</span><br /><span style="font-family: verdana;">Wilderness shows the time of temptation or time of difficulty for the children of God</span><br /><br /><span style="font-family: verdana; font-weight: bold;">Hidden Life:</span><br /><span style="font-family: verdana;">Luke 1:80 "And the child grew and became strong in spirit; and he lived in the desert until he appeared publicly to Israel."</span>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-31116426412356377712009-07-03T20:44:00.002+05:302009-07-03T20:47:02.987+05:30Blessings at the city of Shechem<span style="font-weight: bold;">As told in TPM CHURCH, ROYAPETTA 28-JUNE-2009 SUNDAY SERVICE</span><br /><br /><span style="font-family: verdana;">Genesis 33:18 </span><br /><span style="font-family: verdana;"> "After Jacob came from Paddan Aram, he arrived safely at the city of Shechem in Canaan and camped within sight of the city." </span><br /><br /><span style="font-family: verdana;">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.</span><br /><br /><span style="font-family: verdana; font-weight: bold;">Genesis 12:6 </span><br /><span style="font-family: verdana;">"Abram traveled through the land as far as the site of the great tree of Moreh at Shechem."</span><br /><span style="font-family: verdana;">The word Moreh means teacher.</span><br /><span style="font-family: verdana;">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.<span style="font-style: italic; font-weight: bold;">It shows accepting Jesus as your master.</span></span><br /><br /><span style="font-family: verdana; font-weight: bold;">Genesis 37:12 </span><br /><span style="font-family: verdana;"> "Now his brothers had gone to graze their father's flocks near Shechem,"</span><br /><span style="font-family: verdana;">In Shechem there are good pastures for sheep. In Psalms 23:1-2 "The LORD is my shepherd, I shall not be in want.</span><br /><span style="font-family: verdana;">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. <span style="font-weight: bold; font-style: italic;">It shows the doctrine of life from God.</span></span><br /><span style="font-family: verdana;">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." </span><br /><br /><span style="font-family: verdana; font-weight: bold;">Joshua 24 :1</span><br /><span style="font-family: verdana;">"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.</span><br /><span style="font-family: verdana;">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.". <span style="font-weight: bold; font-style: italic;">It shows the complete humility.</span></span><br /><br /><span style="font-family: verdana; font-weight: bold;">Joshua 24:15 </span><br /><span style="font-family: verdana;">"But as for me and my household, we will serve the LORD."</span><br /><span style="font-family: verdana; font-weight: bold; font-style: italic;">It shows serving the Lord as a family.</span><br /><br /><span style="font-family: verdana; font-weight: bold;">Joshua 20:7</span><br /><span style="font-family: verdana;">"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."</span><br /><span style="font-family: verdana;">The city of Shechem contains a refugee. you can run there and get protected. </span><br /><span style="font-family: verdana;">Proverbs 18:10 "The name of the LORD is a strong tower; the righteous run to it and are safe." </span><br /><span style="font-family: verdana; font-weight: bold; font-style: italic;">Jesus is our refugee.</span><br /><br /><span style="font-family: verdana;">Let the good God fill you with the blessings of the City of Shechem.</span>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-62986199104494420522009-06-22T16:21:00.001+05:302009-06-22T16:24:31.643+05:30Stimulating keyboard in JavaBelow is a sample java code which does the same purpose of sendKeys in vb code.<br /><br /><br /><span style="font-family: courier new;">import java.awt.*;</span><br /><span style="font-family: courier new;">import java.awt.event.*;</span><br /><span style="font-family: courier new;">import java.io.IOException;</span><br /><br /><span style="font-family: courier new;">public class RobotTest{</span><br /><span style="font-family: courier new;">//Create an array of keycode data</span><br /><span style="font-family: courier new;">static int keyInput[] = {</span><br /><span style="font-family: courier new;">KeyEvent.VK_H,</span><br /><span style="font-family: courier new;">KeyEvent.VK_E,</span><br /><span style="font-family: courier new;">KeyEvent.VK_L,</span><br /><span style="font-family: courier new;">KeyEvent.VK_L,</span><br /><span style="font-family: courier new;">KeyEvent.VK_O</span><br /><span style="font-family: courier new;">};</span><br /><br /><span style="font-family: courier new;">public static void main(String[] args)throws AWTException,IOException{</span><br /><br /><span style="font-family: courier new;">Runtime.getRuntime().exec("notepad.exe");</span><br /><br /><span style="font-family: courier new;">Robot robot = new Robot();</span><br /><span style="font-family: courier new;"></span><br /><span style="font-family: courier new;">for (int i = 0;i <><br /><span style="font-family: courier new;">robot.keyPress(keyInput[i]);</span><br /><span style="font-family: courier new;">robot.delay(500);</span><br /><span style="font-family: courier new;">}</span><br /><span style="font-family: courier new;">}</span><br /><span style="font-family: courier new;">}</span>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-86155898160450433122009-06-17T20:21:00.002+05:302009-06-17T20:44:48.690+05:30DQL Tips<span style="font-family: verdana;">To display all available cabinets/folders/documents for a particular login user</span><br /><br /><span style="font-family: courier new;">select FOR READ * from dm_document where i_cabinet_id in (select r_object_id from dm_cabinet)</span><br /><br /><span style="font-family: verdana;">Always remember this and create your queries on the basis of this only</span><br /><br /><span style="font-family: verdana;">1, for None</span><br /><span style="font-family: verdana;">2, for Browse</span><br /><span style="font-family: verdana;">3, for Read</span><br /><span style="font-family: verdana;">4, for Relate</span><br /><span style="font-family: verdana;">5, for Version</span><br /><span style="font-family: verdana;">6, for Write</span><br /><span style="font-family: verdana;">7, for Delete</span><br /><br /><span style="font-family: verdana;">So your query can be:-</span><br /><br /><span style="font-family: courier new;">SELECT * FROM dm_document</span> <span style="font-family: courier new;">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))</span><br /><br /><span style="font-family: verdana;">I got this query as a response to the question in posted in DocumentumGyan</span><br /><br /><span style="font-family: verdana;">For more DQL Tips:</span><br /><br /><a style="font-family: verdana;" href="http://documentumgyan.blogspot.com/2008/12/dql-tips.html">http://documentumgyan.blogspot.com/2008/12/dql-tips.html</a>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-25881530840018179202009-06-17T20:12:00.004+05:302009-06-17T20:48:00.012+05:30Format Recognizing in documentum for DFSRecently 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.<br /><br />The below link was a great help in getting some idea : <a href="https://community.emc.com/message/3567#3567">https://community.emc.com/message/3567#3567</a><br /><br />For getting a documentum format for dos extension like (doc, ppt, docx, ppptx..) using this query :<br /><span style="font-family:courier new;">Select name from dm_format where dos_extension = '<span style="font-style: italic;">dosExtension</span><dosextension>';</dosextension></span><br />This will give only the format name like crtext, msw8...<br /><br />For getting the description of a documentum format, you can do a query like this<br /><br /><span style="font-family:courier new;">SELECT r_object_id as rid, object_name, a_content_type from dm_sysobject WHERE CABINET('/Templates') and r_object_type ='<span style="font-style: italic;">objectType</span><objecttype>' and r_object_type <> 'dm_folder' and ( a_content_type = '<documentformatname><span style="font-style: italic;">documentumFormatName</span>')</documentformatname></objecttype></span><br /><br /><br />For doing a reverse mapping of documentum format to dos extension<br /><span style="font-family:courier new;">Select dos_extension from dm_format where name = '</span><span style="font-family:courier new;"><span style="font-style: italic;">documentumFormatName</span></span><span style="font-family:courier new;"><docuformatname>';</docuformatname></span><br /><br />DFS can do a search query using this query to get the values.Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-30274027833956525992009-06-17T20:10:00.001+05:302009-06-17T20:12:29.638+05:30Photo Reading<div style="text-align: justify;">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.<br /><br />It introduces the following concept on reading a book.<br /><ol><li>Prepare : - keep in mind what would be the desired output of reading</li><li>Preview :- Get a sense of Structure</li><li>PhotoRead: - Using our eyes, have a peripheral vision over the book.</li><li>Activate: - Exploring parts most attaracted.</li><li>Rapid Read:- moving quickly through the text page by page starting from beginning to end</li></ol>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.<br />It is a book worth while to read.<br /><br />Following are some of the links which will help for a quick start :<br /><br />http://www.photoreading.org/<br />http://www.stevepavlina.com/photoreading/<br />http://en.wikipedia.org/wiki/Photoreading<br />http://www.photoreading.com/howdoesitwork.asp<br />http://www.photoreading.com/<br /></div>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0tag:blogger.com,1999:blog-4033776284689132542.post-18496009375414701692009-06-17T20:07:00.001+05:302009-06-17T20:10:50.533+05:30Ephphatha, that is, Be opened.<span style="font-weight: bold; font-family: verdana;">As told in TPM CHURCH, ROYAPETTA 14-JUNE-2009 SUNDAY SERVICE</span><br /><br /><span style="font-family: verdana;">Mark 7:31,32</span><br /><span style="font-family: verdana;">"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."</span><br /><br /><span style="font-family: verdana;">Here we will meditate the spiritual aspects of a miracle done by Jesus.</span><br /><span style="font-family: verdana;">The main in the context was deaf, and had an impediment in his speech.</span><br /><span style="font-family: verdana;">It shows our state of mind of not able to speak to God and not able to hear what the God says.</span><br /><span style="font-family: verdana;">This will hinder our spiritual and earthly blessings.To receive blessings we have to open our ears</span><br /><br /><span style="font-family: verdana;">Jesus took him away from the multitude, this shows a separated life we have to follow in our personal life.</span><br /><span style="font-family: verdana;">Jesus told Ephphatha, that is, Be opened.</span><br /><br /><span style="font-family: verdana;">We will mediatate about the life of four persons, who got blessed by opening their ears to the word of GOd.</span><br /><br /><span style="font-weight: bold; font-family: verdana;">Listen to Word of God and got saved : Luke 19:5 (King James Version)</span><br /><span style="font-family: verdana;">"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."</span><br /><span style="font-family: verdana;">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.</span><br /><br /><span style="font-weight: bold; font-family: verdana;">Listen to Word of God and Loved by God : Luke 10:38</span><br /><span style="font-family: verdana;">"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."</span><br /><span style="font-family: verdana;">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.</span><br /><br /><span style="font-weight: bold; font-family: verdana;">Listen to Word of God and Got healed : Luke 17:11-14 (King James Version)</span><br /><span style="font-family: verdana;">"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 </span><br /><span style="font-family: verdana;">cleansed.</span><br /><span style="font-family: verdana;">In Exodus 15:26 (King James Version)</span><br /><span style="font-family: verdana;">"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." </span><br /><span style="font-family: verdana;">For getting healed we have to do four things:</span><br /><span style="font-family: verdana;">1) diligently hearken to the voice of the LORD thy God</span><br /><span style="font-family: verdana;">2) wilt do that which is right in his sight, </span><br /><span style="font-family: verdana;">3) wilt give ear to his commandments, </span><br /><span style="font-family: verdana;">4) keep all his statutes,</span><br /><br /><span style="font-weight: bold; font-family: verdana;">Listen to the word of God and received great blessings : Mathew 4:18</span><br /><span style="font-family: verdana;">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.</span><br /><span style="font-family: verdana;">They did miracles which Jesus did not done in his missionary days.</span><br /><br /><span style="font-family: verdana;">What Jesus did for the deaf man to hear? Mark 7:33 (King James Version)</span><br /><span style="font-family: verdana;"> "And he took him aside from the multitude, and put his fingers into his ears, and he spit, and touched his tongue;"</span><br /><ol style="font-family: verdana;"><li>Jesus took him away from the multitude, this shows a separated life we have to follow in our personal life.</li><li><span style="font-family: verdana;">Jesus told Ephphatha, that is, Be opened.</span></li></ol><br /><span style="font-family: verdana;">Are we not able to speak to God? Are we not able to listen to word of God?</span><br /><br /><span style="font-family: verdana;">Please examine our life and open our ears and mind to be get blessed by the Lord.</span>Abeish Babuhttp://www.blogger.com/profile/12213376389898185749noreply@blogger.com0