Saturday, December 22, 2007

How to access R engine with Borland Delphi

R is powerful but it is not good looking (console interface high risk for your eyes :p ). Contrary, Delphi as a Rapid Application Development has a large number of extraordinary GUI library. The point here is.... it s very exciting for us if we can combine the good looking face of Delphi and the powerful of R in order to build our own the statistical application.
Can you imagine if you make a software calculating invers of a matrix with Delphi???? If the dimension of matrix is lower than 3x3 its okey, but it s very terrible if you have a huge matrix dimension.Fortunately, R libraries are open. We can access it with our Delphi. So it s not terrible anymore to built mathematical software with Delphi bcause we only access the R library from delphi, sending value to the R library parameters, gain the R result, and we show it on the beautiful GUI of Delphi...It was successful tricks on my final projects...and helped me gaining then bachelor degree of statistics..hehe).
Lets start!
First u must have Delphi is installed on your PC.
Second u must have R is installed on you PC. So many R version but here i used R 2.5.1. U can get it here.
Third, u have to installed RSrv250. It is server to make a communication between R and your application. It s also called (D) COM Server. (D)COM Server provides a COM-Interface to R as well as various COM objects and Active X controls for your applications.
Fourth...Restart your i mean computer...sorry :D.
Fifth...u need statconnector client and server. These are unit in pascal language available here.
That zip file contain files like this.

we must acces STATCONNECTORSRVLib_TLB.pas and STATCONNECTORCLNTLib_TLB.pas to make a connection between R and Delphi.
(Please search how to install component in Delphi if you dont know.
If you didnt found it, u can contact me at Yahoo!Messenger :

You can register your component with your own name, for example i register as RClient and RServer like the picture below (u must write down your own name at

procedure register

Look...i have Delphi VCL like that my Delphi UI like picture below

Here is the screen captured of my sources

I tried making a 3D plot by Delphi using R engine named scatterplot3d. Here is the screen captured of the result

Look! we can get the result of R engine execution on a delphi form. You can make another better GUI then mine depends on your demand.
My purpose has been explained now, that we can build statistical application easily with R's powerful engine and Delphi's beautiful GUI. U can implement it not only on library scatterplot3d but also all of R libraries.

Full sources code of this sample application can be downloaded at

Have a nice statistical soft programming..
mahendra statistika ITS 2002

Coming Soon :
How to Access STATISTICA engine with Delphi......

Read More......

Friday, December 21, 2007

eBook - Statistics for Six Sigma Made Easy

This book gives you a step-by-step guides that explain how to understand and implement statistical tools on six sigma methodology. This book contain implementation of statistics tools such as DOE, sampling techniques, Multivariate in six sigma. As a statistician i have to share it.
Sorry, i dont have any picture related to this book.

Statistics for Six Sigma Made Easy
by Warren Brussee ISBN:0071433856
McGraw-Hill © 2004

You can download this book at this link:

Have a nice reading...

Read More......

Thursday, December 20, 2007

Delphi SMS Programming

Helllo, this post is bout programming especially delphi (the only one programming that i know:D-silly) in sms. I use Borland Delphi 7 and the open source component for accessing port ComPort.

You can find this component here Some of the script i took from
I just make a simple modification of the delphi example. I also use gsm_sms.pas file.

Do not insult my GUI cause of it s only the example. The point here is IT WORKS and GUI later. Here is some screen capture of this software:

I use Siemens C 55 and it works. U can find it at folder ..ComPort\examples\delphi.

Sources, component, and unit regarding to this software can be downloaded at

Read More......

Wednesday, December 19, 2007

The Story of Pencil

It`s not my own story. I take it from this site. For me it s a good story, u have to read it in order to know its good 4 u or not. Thanks to Rudy Cayadi for giving me this story.

A boy was watching his grandmother write a letter. At one point , he asked : Are you writing a story about what we have done? Is the story about me?”
His grandmother stopped writing her letter and said to her grandson:I am writing about you, actually, but more important than the words is the pencil I m using. I hope you will be like this pencil when you grow up.”
Intrigued, the boy looked at the pencil, “It didn’t seem very special. But it’s just like any other pencil I’ve ever seen!”
That depends on how you look at things. It has five qualities which , if you manage to hang on to them, will make you a person who is always at peace with the world.
First Quality : you are capable of great things, but you must never forget that there is a hand guiding your step. We call that hand God, and He always guides us according to his will.
Second Quality : now and then, I have to stop writing and use sharpener. That makes the pencil suffer a little, but afterwards, he is much sharper . So you, must learn to bear certain pains and sorrows, because they will make you a better person .
Third Quality : the pencil always allow us to use an eraser to rub out any mistakes. This means that correcting something we did not necessarily a bad things, it helps to keep us on road to justice.
Fourth Quality: what really matters in a pencil is not its wooden exterior, but the graphite inside. So always pay attention to what is happening inside you.
Finally, the pencil’s fifth quality: it always leaves a mark. In just the same way, you should know that every thing you do in life leave a mark, so try to be conscious of that in your every action.

By Paulo Coelho - The book of Like the Flowing River

Read More......