Thursday, December 6, 2007

Sunday, November 25, 2007

My First Small SOP

I Ajith Kumar K graduated in May 2004 with a degree in Electronics and
Communication Engineering from Cochin Institute of Technology. Many of
my courses and research activities in the final year were in the field
of Digital signal Processing(DSP). I am presently working in Essel
Swolutions., an information technology firm that is involved in the
areas of xxx solutions and xxxx development.

To be able to speak the language of business and to gain an
understanding of the "big picture" through operations, HR, marketing,
org behavior, etc. was my dream.Strong quantitative skills,
familiarity with computer applications and experience gained while
working on various projects have helped me to develop sharp analytical
abilities and have given me the confidence to tackle advanced problems
on a macro level. However, just from simple observation, I have
discovered that an MBA provides a distinct advantage over those
without. There is an analytical nature inherent to MBA's which I
believe is duplicable only by committing two years to the academic
study of business. And, in light of my international bent, there is
no doubting that xxxx is quite appropriate for my purposes.The
outstanding faculty and research facilities, emphasis on a
collaborative learning environment, flexibility in curriculum, and a
global perspective to various key issues will give me the leading edge
to work effectively to achieve my goals.

Tuesday, November 20, 2007

Custom Mail Settings C++/CLI

MailAddress^ from = gcnew MailAddress("from mailaddress", "xxxxxfrom");
MailAddress^ to = gcnew MailAddress("to mail address", "xxxxxto");
MailMessage^ message = gcnew MailMessage(from, to);
// message.Subject = "Using the SmtpClient class.";
message->Subject = "Using the SmtpClient class."; message->Body = "Using this feature, you can send an e-mail message from an application very easily.";
String^ sSource = "C:\\realtek.log";
Attachment^ attachmentfile = gcnew Attachment(sSource); message->Attachments->Add(attachmentfile); SmtpClient^ client = gcnew SmtpClient("hostname"); client->SendCompleted += gcnew SendCompletedEventHandler(SendCompletedCallback); String^ userState = "test message1";
// Include credentials if the server requires them.
client->Credentials = CredentialCache::DefaultNetworkCredentials;
try
{
client->Send(message);
}
catch(Exception^ ex)
{
MessageBox::Show(ex->InnerException->InnerException->Message);

}

For any queries just mail me.

Regards
Ajith

Configure Outlook for your application

Outlook.Application oApp = new Outlook.Application();

Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
oMsg.ExpiryTime = DateTime.Today;
//Add a recipient.
Outlook.Recipient oRecip = (Outlook.Recipient)oMsg.Recipients.Add("emailaddress");
oRecip.Resolve();

////Set the basic properties.
oMsg.Subject = "This is the subject of the test message for Using Outlook";
oMsg.Body = "Hi";

////Add an attachment.
//// TODO: change file path where appropriate
String sSource = "C:\\realtek.log";
String sDisplayName = "Just testing";
int iPosition = (int)oMsg.Body.Length + 1;
int iAttachType = (int)Outlook.OlAttachmentType.olByValue;
Outlook.Attachment oAttach = oMsg.Attachments.Add(sSource, iAttachType, iPosition, sDisplayName);
oMsg.Display(oApp);

For the above code in C++/CLI just mail me.

Regards
Ajith

Thursday, November 15, 2007

Paint.NET

Hi,

My present line of work is to develop an administration client(web) for a product our company is going to release.This line stumbled me onto a great application developed in .NET which is called Paint.NET.Its so good that it has about 85% capabalities of Adobe photoshop.I will persuade all to use it for one time.Last but not the least it is open source as well.

Link where the download is provided in my linked list page element or please mail to me at the address provided in the profile.s
Regards
Ajith

Thursday, November 1, 2007

Upload File Using Webdav PUT methos

Hi,

A small Webdav UploadFile method which returns string..............
public string UploadFile(string address, string method, string fileName)
{
//file stream object
FileStream filestreamDAV = null;

try
{
fileName = Path.GetFullPath(fileName);
if (m_headers == null)
{
m_headers = new WebHeaderCollection();
}

string contentType = m_headers[HttpKnownHeaderNames.ContentType];

if (contentType != null)
{
if (contentType.ToLower(CultureInfo.InvariantCulture).StartsWith("multipart/"))
{
throw new WebException("");
}
}
else
{
contentType = DefaultUploadFileContentType;
}
m_responseHeaders = null;

filestreamDAV = new FileStream(fileName, FileMode.Open, FileAccess.Read);
WebRequest request = WebRequest.Create(GetUri(address));

request.Credentials = Credentials;
CopyHeadersTo(request);
request.Method = method;

long length = Int64.MaxValue;

try
{
length = filestreamDAV.Length;
}
catch
{
// ignore - can't get content-length from file stream
}

byte[] buffer = new byte[Math.Min(DefaultCopyBufferLength,(int)length)];

using (Stream s = request.GetRequestStream())
{

int nread;
do
{
nread = filestreamDAV.Read(buffer, 0, (int)buffer.Length);
if (nread != 0)
{
s.Write(buffer, 0, nread);
}
} while (nread != 0);
}
filestreamDAV.Close();
filestreamDAV = null;
//Getting the response
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
//Getting the status description from the responseStream to the output string
Stream recieveStream = response.GetResponseStream();
//Embedding the Stream to the StreamReader and Reading it to End
StreamReader readStream = new StreamReader(recieveStream,Encoding.ASCII);
responseString = readStream.ReadToEnd();
//closes the Response
response.Close();
//Closes the StreamReader
readStream.Close();
}

return responseString;

}

Tuesday, October 30, 2007

Bhagat Singh

A man of great potential.....misinterpretated by lot of people for his ideas and action........just spend some time going through his memoirs

a quote:
Aim of life:
"The aim of life is no more to control mind, but to develop it harmoniously, not to achieve salvation here after, but to make the best use of it here below, and not to realise truth, beauty and good only in contemplation, but also in-the actual experience of daily life; social progress depends not upon the ennoblement of the few but on the enrichment democracy or universal brotherhod can be achieved only when there is an equality of opportunity of opportunity in the social, political and individual life."

Look for more here:http://shahidbhagatsingh.org

Saturday, October 27, 2007

Friday, October 26, 2007

Must Read Till the End............

Following is a note written by Lakshmi Mittal after his visit to TISCO recently.
Lakshmi Mittal:
- Undisputed King of World Steel
- 5th Richest Man, per the Forbes List of Billionaires (2006)
- Richest Indian in the World, with an estimated fortune of $27.7 billion
- Richest in UK according to the Sunday Times Rich List 2006, with a net worth of £14.8
billion.
- 2006 Person of the Year, per The Financial Times
"........I visited Jamshedpur over the weekend to see for myself an India that is fast
disappearing despite all the wolf-cries of people like Narayanamurthy and his ilk. It is one
thing to talk and quite another to do and I am delighted to tell you that Ratan Tata has kept
alive the legacy of perhaps India's finest industrialist J.N. Tata. Something that some people
doubted when Ratan took over the House of the Tata's but in hindsight, the best thing to
have happened to the Tata's is unquestionably Ratan. I was amazed to see the extent of
corporate philanthropy and this is no exaggeration.
For the breed that talks about corporate social responsibility and talks about the role
of corporate India, a visit to Jamshedpur is a must. Go there and see the amount of money
they pump into keeping the town going; see the smiling faces of workers in a region known
for industrial unrest; see the standard of living in a city that is almost isolated from the mess
in the rest of the country.
This is not meant to be a puff piece. I have nothing to do with Tata Steel, but I
strongly believe the message of hope and the message of goodness that they are spreading
is worth sharing. The fact that you do have companies in India which look at workers as
human beings and who do not blow their software trumpet of having changed lives. In fact, I
asked Mr. Muthuraman, the managing director, as to why he was so quiet about all they had
done and all he could offer in return was a smile wrapped in humility, which said it all. They
have done so much more since I last visited Jamshedpur, which was in 1992. The town has
obviously got busier but the values thankfully haven't changed.
The food is still as amazing as it always was and I gorged, as I would normally do. I
visited the plant and the last time I did that was with Russi Mody. But the plant this time was
gleaming and far from what it used to be.
Greener and cleaner and a tribute to environment management. You could have been
in the mountains. Such was the quality of air I inhaled! There was no belching smoke; no
tired faces and so many more women workers, even on the shop floor. This is true gender
equality and not the kind that is often espoused at seminars organised by angry activists. I
met so many old friends. Most of them have aged but not grown old. There was a spring in
the air which came from a certain calmness which has always been the hallmark of
Jamshedpur and something I savoured for a full two days in between receiving messages of
how boring and decrepit the lack lustre Fashion Week was.


Jamshedji Nusserwanji Tata had created an edifice that is today a robust company
and it is not about profits and about valuation. It is not about who becomes a millionaire and
who doesn't'. It is about getting the job done with dignity and respect keeping the age-old
values intact and this is what I learnt.
I jokingly asked someone as to whether they ever thought of joining an Infosys or a
Wipro and pat came the reply: "We are not interested in becoming crorepatis [millionaires]
but in making others crorepatis [millionaires]."
Which is exactly what the Tata's have done for years in and around Jamshedpur.
Very few people know that Jamshedpur has been selected as a UN Global Compact City,
edging out the other nominee from India, Bangalore. Selected because of the quality of life,
because of the conditions of sanitation and roads and welfare. If this is not a tribute to
industrial India, then what is? Today, India needs several Jamshedpurs but it also needs this
Jamshedpur to be given its fair due, its recognition. I am tired of campus visits being
publicised to the Infosys and the Wipro's of the world.
Modern India is being built in Jamshedpur as we speak. An India built on the strength
of core convictions and nothing was more apparent about that than the experiment with truth
and reality that Tata Steel is conducting at Pipla.
Forty-eight tribal girls (yes, tribal girls who these corrupt and evil politicians only talk
about but do nothing for) are being educated through a residential program over nine
months. I went to visit them and I spoke to them in a language that they have just learnt:
Bengali. Eight weeks ago, they could only speak in Sainthali, their local dialect. But today,
they are brimming with a confidence that will bring tears to your eyes. It did to mine.
One of them has just been selected to represent Jharkand in the state archery
competition. They have their own women's football team and what's more they are now fond
of education. It is a passion and not a burden.
This was possible because I guess people like Ratan Tata and Muthurman haven't
sold their souls to some business management drivel, which tells us that we must only do
business and nothing else. The fact that not one Tata executive has been touched by the
Naxalites in that area talks about the social respect that the Tata's have earned.
The Tata's do not need this piece to be praised and lauded. My intent is to share the
larger picture that we so often miss in the haze of the slime and sleaze that politics imparts.
My submissions to those who use phrases such as "feel-good" and "India Shining" is first
visit Jamshedpur to understand what it all means. See Tata Steel in action to know what
companies can do if they wish to. And what corporate India needs to do.
Murli Manohar Joshi would be better off seeing what Tata Steel has done by creating
the Xavier Institute of Tribal Education rather than by proffering excuses for the imbroglio in
the IIMs. This is where the Advanis and Vajpayees need to pay homage. Not to all the Sai
Babas and the Hugging saints that they are so busy with. India is changing inspite of them
and they need to realise that.
I couldn't have spent a more humane and wonderful weekend. Jamshedpur is an eyeopener
and a role model, which should be made mandatory for replication. I saw corporate
India actually participate in basic nation-building, for when these tribal girls go back to their
villages, they will return with knowledge that will truly be life-altering. Corporate India can do
it but most of the time is willing to shy away.


For those corporate leaders who are happier winning awards and being interviewed
on their choice of clothes, my advise is visit Tata Steel, spend some days at Jamshedpur and
see a nation's transformation. That is true service and true nationalism.
Tata Steel will celebrate 100 years of existence in 2007. It won't be just a milestone in
this company's history. It will be a milestone, to my mind of corporate transparency and
generosity in this country. It is indeed fitting that Ratan Tata today heads a group which has
people who are committed to nation-building than just building influence and power.
JRD must be smiling wherever he is. And so must Jamshedji Nusserwanji. These
people today have literally climbed every last blue mountain. And continue to do so with
vigour and passion. Thank god for the Tata's !"

Wednesday, October 24, 2007

So What Is Continuous Integration?


In brief, it's the process of integrating the various components of a software project on a regular and frequent basis to enable early detection of problems along component boundaries.

Continuous integration is especially well suited for development teams. Most of us have had the unfortunate experience of working for several days on a key feature until it works perfectly, only to find out that it no longer works with fresh builds of the other components. If we are lucky, the failure will be obvious such as a compiler error. If we're not so lucky, it will appear to work only to fail later during release testing.

Basic Setup of Cruise Control .NET

In the typical configuration you'll get a stand-alone version and a service-based version, along with a Web application that can be used to monitor the build processes.

The stand-alone version, ccnet.exe, is most useful for debugging your configuration script (be sure to stop the CruiseControl.NET service first). You should use the stand-alone version while you are creating or modifying the config file since any errors will be output to the console, and because debugging is very easy and fast. Once the project is building cleanly you can move to using the service binary.

Once installed, the next step is to edit the ccnet.config file. This XML file defines the projects and their options and normally resides in the server directory inside the CCNet installation directory.

Each project that you want to control should be defined using a element.

CCNet has many features and options, but each project boils down to three basic actions:

->get code

->act on code

->report on the results of those actions.

As you can see from the following example, each of these actions maps to an element in the config file.





..list of tasks here..


..list of publishers here..

Starting an Integration

CCNet supports several different methods of determining when to start an integration cycle. This is done using a triggers block. Three different triggers types can be specified.

->An interval trigger element causes an integration to begin a specified number of seconds after the last one finishes.

->A schedule trigger starts integration at a specified time each day.

->A filter trigger specifies a set of times when integration should not start, perhaps due to backup or maintenance.

Here is an example of a trigger block that launches integration five minutes after the last one ends.



The buildCondition attribute value "IfModificationExists" indicates that the integration should only happen if CCNet has detected that source code changes have occurred. A value of "ForceBuild" will build on the given interval in any case.

Getting the Latest Bits


Therefore if CCNet has to check the source code for changes, then we need to tell it what type of source control system we are using and how to access our repository.

To specify the source control settings, use the sourcecontrol element. Consider the following:



svn://svn.myhost.com/example1/trunk
c:\dev\example1
myusername
mypass
false

This fragment specifies that we are using Subversion (type = "svn") and gives the repository URL using the trunkUrl element. The code found at that repository will be checked out and placed in the directory specified with the workingDirectory element. You can use the username and password elements to specify your authentication credentials for the repository. The tagOnSuccess element is used to tag the Subversion repository after a successful integration.

Successful Example with CruiseControl.NET with MSBuild and NUnit testing:

The CCNet.config details:

<cruisecontrol>

<project>

<name>RobotFrameworkname>

<triggers>

<intervalTrigger seconds="100" buildCondition="ForceBuild" />

triggers>

<sourcecontrol type="vss">

<project>$/RobotFrameworkproject>

<workingDirectory>G:\devworkingDirectory>

<username>ajithusername>

<password>ajithpassword>

<ssdir>\\servername\Databse\Workssdir>

sourcecontrol>

<tasks>

<msbuild>

<executable>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exeexecutable>

<workingDirectory>G:\devworkingDirectory>

<projectFile>RobotFramework.slnprojectFile>

<targets>Buildtargets>

<timeout>15timeout>

<logger>D:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dlllogger>

msbuild>

<nunit>

<path>D:\Program Files\NUnit 2.4.1\bin\nunit-console.exepath>

<assemblies> <assembly>G:\dev\RobotFrameworkTests\bin\RobotFrameworkTests.dllassembly>

assemblies>

nunit>

tasks>

project>

cruisecontrol>

Wednesday, July 18, 2007

Meditation in Action

For 2 weeks I have been reading abt meditation.I think I am now more attracted towards Buddhism.

Wednesday, May 2, 2007

hi to all