Thursday, September 4, 2008
Usefull Code Links
You provide the class a native thread id or just Dim it within the thread you want to watch. The CPUtimer.CPUusage variable is a short representing the percentage of CPU used by this thread. . . . . . . . .
2. IE Button using VB.Net
Create a button in IE........
Monday, August 4, 2008
Lotus Notes Development> Lotus Script >LS2J
For using the java class in LotusScript LS2J is the way to use it. For this purpose developer is needed to add a string in the start of the lostus script code of the module.
i.e.
1. Add line : - Uselsx "*javacon"
2. Create a java based script library under the 'Script Library' in the template and click on the button 'Edit Project' and browse the location containing the needed class files and then add files to current script library.
3. Add line Use "your java based script library" in the lotusscript code like (1).
4. Also create a jar file with all the classes to be used and the corresponding other jar files used in those classes and add to the directory "......\Lotus\Notes\jvm\lib\ext", where notes is the directory containing the Lotus Notes Executable. The jar files in 'ext' folder will cause all the needed classes to be loaded when lotus notes started.
Above steps are used to configure the environment to use the java based agent, now to use the java based module in lotus script, first a session to java is needed to be established then objects of type JavaClass and Java Object are needed to be created and all these objects can be for java based agent. the following are the code step examples that can be used to facilitate the call to the java agent:
Dim myJSession As JavaSession
Dim myClass As JavaClass
Dim myObject As JavaObject
Set myJSession = New JavaSession
Set myClass = myJSession.getClass("your class name")
Set myObject = myClass.CreateObject("(Ljava/lang/String;I)V", stringArgument,IntegerArgument)
'Ljava/lang/String' and 'I' are the signature of the data type of the argurment of the called constructor of the class.
returnVal = myObject.fnName(arg1, arg2, arg3)
where returnVal is the result obtained from the java agent that can be used as required.
Lotus Notes Development> Lotus Script >Eclipse Configuration
Update Site for LotusScript editor for Eclipse
This is an update site for LotusScript editor plugin for Eclipse. In order to install this plugin in Eclipse, follow these steps:- Open Eclipse
- Open Install/Update dialog from menu Help | Software Updates | Find and Install...
- Select "Search for new features to install" and click Next button
- Add new remote site
- Name: LotusScript Editor
- URL: http://lsseditor.sourceforge.net/updates/
- Select new remote site for site search and click Finish
- Select feature you want to install (LotusScript Editor Feature x.x.x) and click Next
- Accept terms of licence agreement and click Next
- Select folder to install plugin (default selection is Eclipse's root folder) and click Finish
- Accept Feature Verification for unsigned plugin and click Install or Install All
- Restart Eclipse
References:
1. Information taken from: http://lsseditor.sourceforge.net/
2. Plug-in can be downloaded from : http://sourceforge.net/projects/lsseditor
Friday, August 1, 2008
Various Developments Tools and Tutorial Links
IBM's premier technical resource for software developers, providing a wide range of tools, code, and education on AIX and UNIX®, IBM Systems®, Information Management, Lotus®, Rational®, Tivoli®, WebSphere®, and Workplace, as well as on open standards technology such as Java™ technologies, Linux®, SOA and Web services, XML, and more.
2. Accessing Open XML Document Parts with the Open XML SDK
About a month ago the Open XML SDK 1.0 (June 08 update) was released. The SDK provides strongly typed document part access to Word 2007, Excel 2007 and PowerPoint 2007 documents. The SDK has been a CTP for a while, but last month version 1.0 was finally released. So I installed this baby last week and started playing around with it and found it really easy to use after briefly looking at the documentation. The How Do I section is a great place to start......
3. Configure Eclipse 3.4 (release candidate) for Notes 8.5 public beta
Eclipse IDE configured by piecing together different pieces of information is a description on how to configure the latest build of Eclipse Ganymede (3.4 RC2) for Notes 8.5 plug-in development and debugging. Only caveat discovered so far is that it requires manually update of the classpath for SWT libraries (e.g. org.eclipse.ui.swt) every time restarting Eclipse........
4. IBM Lotus Expeditor 6.1.x Information Center
BM® Lotus® Expeditor software is a service oriented architecture (SOA)-based, server-managed client platform that helps improve responsiveness and increase productivity by extending composite applications to laptops, desktops, kiosks, and mobile devices..........
5. Regular Expression Cheat Sheet
6. Useful Stuff related to Lotus Notes Client and LotusScript
7. 30 Common String Operations in C# and VB.NET
In this article, I have compiled some common String operations that we encounter while working with the String class. In Part I, I have covered 15 common string operations. In the next article, I will continue this article and cover 15 more. ...
8. How to run only a Single Instance of the Application using Windows Forms
If you are looking out for a quick solution to prevent the user from opening up multiple instances of the application, this article is was for you. We will explore how to use Mutex to check for the running instance of the application and prevent creation of multiple instances..................
9.Introducing the Singleton : "The Single Java Object"
No, this isn't a dating guide for the romantic Java developer, but an introduction to the singleton design pattern.................................
10. Decoding the new Notes/Domino 6 agent features
Notes/Domino 6 makes many changes in agent security, programmability improvements, and other agent functionality. This article covers accessing remote servers, saving agents on the server, and specifying the person on whose behalf the agent is running.................
11. Variable and Method Scope in Microsoft .NET
In this document, you can learn different rules of scope as they apply to variables and procedures. There are many different rules that you need to keep in mind as you develop your applications. A general guideline for scoping variables is that you want to keep the scope of variables as local as possible. Avoid global variables as much as you can, as this will lead to fewer errors in your programs. As far as procedures go, you simply need to decide which scope to use based on your particular needs. . . . . . . . . . . . . . .
Introduction
This course aims to introduce ADO.NET to developers who are new to database programming. This course assumes that you have very little or no prior experience with ADO.NET but does assume that you know what a database is and how to work with the tools provided with your database of choice.During this course we will look at working with both Microsoft Access and Microsoft SQL Server databases. There are a number of reasons for this, first of all . . . . . . . . . . .
13. Band Objects: A beginners tutorial from scratch
By Mahesh Chand July 10, 2000
This tutorial explains about what is band objects.How to implement them? This is a modified version of MSJ and MSDN samples. A simple tutorial with examples and sample code attached. . . . . . . . . . . . . . . . . . . .
By Mahesh Chand July 05, 2000
This article describes how to customize internet explorer. . . . . . . . . . . . . . . . . . . . . . . .
This tutorial explains how to add a toolbar button to the Windows Internet Explorer user interface. The toolbar button can either run a Microsoft Win32 application, run a script, or open an Explorer Bar. If you also want to create a menu item for the Win32 application or script, see the Adding Menu Items tutorial. . . . . . . . . . . .
Thursday, July 31, 2008
A Good Developer
Good means desirable and distinguishable quality qualifier and if we see with the development point of view then it can be related to both technical as well as non technical qualities. Here are some the qualities that a developer should possess if he/she aims at becoming a 'good' developer.
1. Good Communication skills : A first and most important fundamental requirement of the development. As anything that is to be developed is best known by the who require the product and but it doesn't know how to develop it but the person that knows it don't have the clear requirement. But if a developer have a good quality communication skills then a product that is actually required will be produced as every requirement will be clear though good skills. So As a 'good' developer, you should be able to express yourself well, listen well, as well as manage the communication process well.
2. Positive Attitude - 'Attitudes - ways of responding to people and situations that we have learned, based on the beliefs, values and assumptions we hold.'
3. Good analysis skills - The quality of to be able to look at a issue or feature request and figure out exacly what is going on is one of the quality that can make developer to distinguishable from other.
4. Think as a Tester - A thinking like tester results a good esearch and modeling and come to realize that regardless of how disciplined his code is, there are probably situations in the world that will cause Bad Things to happen in his system. Often, he suspects that such things are possible, but doesn't have the perspective to recognize the exact problem. In fact it helps to reduce bugs/defects in the code.
5. Jack of all or Master of One? - Well that's a difficult one to answer. In today's scenario, you have to master more than one technology. Practically it is quiet difficult to do so, but the good ones do it. However the key is adaptability over here. If you are good at any one technology and confident in it, given an opportunity, it would be easier for to relate to a new technology in a short period of time. Try it out as it enables you to compare technologies and make decisions, once you have worked with them.
6. Follow nomelclature and Best Practices - The habit to follow a Code Design Guideline and always to use code analysis tools that evaluate and analyze the code is one of the requirement of the quality code of the product and that also influence the resulting product to be developed.
7. Discussion/Newsgroup - Participating in communities develops the quality of leadership and contribution, both ingredients of success. Having participated in a good technical discussion on the community leaves you with a feeling of self-satisfaction. It also increases your knowledge, as you find smart people who can validate your solutions, as you validate theirs. It also teaches you to appreciate suggestions. Do not forget to 'pat someone on the back' if he/her has made a positive contribution. Believe me it makes all the difference.
8. Technology seminars and events - Don't miss any if you get a chance to attend. Make sure you take out time to attend one. Most of them are free and provide a valuable source of information about new technologies.
9. Blog/ Write Articles - How many of us can remember everything? I cannot. So I document them. It helps me to reference stuff when I need them. Over and above, it also helps me get some good feedback from readers and shows me multiple approaches to do the same stuff. I have received a lot of feedback about my work, some good and some not so good. However, I do validate them and learn from this process. It develops the developer in you.
10. Implementation Approach - Keep Implementations/Approaches Short and Simple. Do not over complicate things by using jargon s, which people find it hard to understand. The key is to simplify your designs and avoid over-engineering things.
11. Practice, Practice and Practice - Reading lot of books and technical material is not enough to be a good but applying what you gain is the fundamental need for any type of work to be qualified as good. A lot of practice makes more effectiveness and efficiency in the work and is the only thing that can make anyone good skilled.
12. Curiosity - A good developer is interested in how things work. When they see some new technology they want to understand it and play with it. A curious developer will continue to find the best solution for you, while an incurious one will keep using what they've always used until the ship runs aground.
13. Abstract Thinking - A person who spends all day dealing with abstract data has to be good at it to be effective. A good developer needs to be able to take an instance of a problem and abstract it into a general type of problem. They need to take the solution to that problem and abstract it into a solution that will on problems like it. And they need to do it largely in their head on theoretical models. Developers who aren't good at abstract thinking will tend to solve the problem at hand, very well even, in a very rigid manner. That code gets to be a nightmare during maintenance, when one change breaks up the rigid structure of the code. Good abstraction pushes specific solutions out towards the edge of the code, making changes easier.
14. Patience - Sometimes solutions are hard to find. Sometimes users are hard to deal with. Sometimes management is hard to deal with. You need your developers to be able to be able to deal with them. An impatient developer will rush into the first idea that looks promising, a patient developer will wait until they know they've found the right path.