Monday, November 26, 2012

Writing a file using CreateJavaObject in peoplesoft peoplecode


I was trying to create a peoplesoft program which would use java objects to create an output file, as Java objects can be used to create binary files in peoplesoft. So here is the code:

Local JavaObject &jFile;
Local JavaObject &msg;
&msg = CreateJavaObject("java.lang.String", "Hello World!");

Local JavaObject &buf = &msg.getBytes();
Local number &byteCount = &buf.length;
&jFile = CreateJavaObject("java.io.FileOutputStream", "C:\Temp\java.txt", True);
&jFile.write(&buf, 0, &byteCount);
&jFile.close();

The key here is to keep in mind that we are dealing with java objects in peoplesoft, Hence we must use java functions and java classes. 

Saturday, July 21, 2012

Exactly what is the problem with Engineering education in India?

Now that I have started to learn some seroius PROGRAMMING with PYTHON langauge and recently I saw another programming language R, a language for STATISTICAL AND GRAPHICAL processing of data, I thought to write a blog regarding the frailities of INDIAN ENGINEERING EDUCATION SYSTEM.

This blog does not cover IIT/IIIT/BITS/IISC, the premier institutions of india, as their GRADUATES are world best. Also, the focus is mainly on COMPUTER SCIENCE/INFORMATION SCIENCE

During the first semester of our ENGINEERING, the university had kept a course on PROGRAMMING LANGUAGES, and they had asked the affiliated colleges to teach 'C', a  language meant to do serious programming which virtually runs all the machines on this earth. Now i was a beginner in the field of Computers as my school did not have the option to take computer science where C++ was the language being taught in schools. Hell, to make matters worst, our school had only two option, choose biology/hindi for PHYSICS, CHEMISTRY, MATHEMATICS and those who did not want to study MATHEMATICS, they will study BIOLOGY with HINDI, a combination which would make everyone to get a JOVIAL laugh, and people do get laughter when I tell them that i have studied HINDI along with SCIENCE subjects.

Now coming back to the point, I believe that teaching 'C' as a first langauge in an engineering course, during first semester in itself is a crime the way studying mathematics and hindi together. The reason is that PROGRAMMING is nothing but problem solving. It is nothing related with langauges. Languages are a tool  to solve problems. During the engineering courses,the focus should be kept on solving problems especially using mathematics, statistics and tools etc.

For Computer Science and Information Science, the important courses are AUTOMATA, COMPILERS, ARTIFICIAL INTELLIGENCE, DATA MINING, DATA STRUCTUCRES, DBMS,OS. The AUTOMATA is one of the most important course which teaches about CONTEXT FREE GRAMMAR, REGULAR EXPRESSIONS which are very important to construct PARSERS or to find patterns of data. Same is DATA MINING using STATISTICS.

When a subject like 'C' is taught, which takes many years of pracitce to learn, that too the one who teaches virtually has no idea about writing programs, that too, for the people who have tryst with the computers for the first time in their life, people are bound to lose their interest as it is really a moral crusher when we cannot write programs.

And then, we had 'C++', JAVA', VC++, also in our courses during the subsequent years. And the end result is same, - we had only bookish knowledge not the real one.

Now when i think on the course curriculum of my university, I tried to figure out that what our university was trying to do at the first place? Were they really interested in making ENGINEERS or they just wanted people to get degrees, who would be hired by infosys etc just by solving some crap puzzles, which would give them a space in TOI. This type of course is usually set for DIPLOMA colleges, which churns out technicians. Yes, you have read it right- TECHNICIANS,. ITI was an institute or rather, it is still there which produces technicians who do VOCATION jobs like plumbing, electiricians etc. Same are the SOFTWARE ENGINEERS produced by such universities of india. We are all, SOFTWARE PLUMBERS, TECHNICIANS who work in a TOP DOWN hirearchy with a proper system set up in place who is managed by a CLERK, who is hailed as MANAGER as these titles are EAR PLEASING and SOOTHING for the GROOM'S FATHER IN LAW, who is just happy that his SON IN LAW has travelled to US of A on a PROJECT, which is nothing but working as a labor and killing your own interests and life. But then, india is a changed place now and people really don't want to live their own life the way they want.

I really get laughter and  I DO LAUGH, when I look back into my GRADUATION DAYS. I mean, is it really possible to learn langauges like 'C', 'C++', 'JAVA' into 4 months? And that too, in the industry, even a basic technique of PROGRAMMING is not even used, then why did our UNIVERSITY set up or design such curiculum? If you would say that by learning these things, you would get a job in MNC, then let me tell you that those MNCs of india never look for TECHNICAL SKILLS first of all, rather they want people who are UNDERCOOKED and INCOMPETENT technically, as these people are best choices to work as SLAVES for their life and they are pretty much happy also.

And this is precisely the reason that why all engineers in india want to do MBA, want to become MANAGERS, as they really have not got the GLIMPSE of ENGINEERING. What it takes to be an ENGINEER, no one has idea on this in india, not even me, because I am yet to do a WORK which an ENGINEER does. Until and unless, mathematics, statistics, algorithms, etc are not used to solve a problem, whatever I will do, it will not be ENGINEERING.

Monday, July 2, 2012

ESSENCE of ENGINEERING

What exactly is ESSENCE of ENGINEERING? or to be frank, what is the PHILOSOPHY of ENGINEERING?

I am yet to receive or do a work which is related with ENGINEERING. No SOFTWARE ENGINEERING is not ENGINEERING, it is a CRAFT WORK. SKILLED WORKERS do all these craft/mason works.

Since i have a little bit knowledge of ancient BHARTIYA SCRIPTURES, i can tell that engineering works is connected with the knowledge work. and software engineering is related with shudra/workers/labors work.

Then who exactly is an ENGINEER.

Engineer is someone who builds a pracitical system using the scientific system which are reliable and fault tolerant. This includes bridges, aeroplanes, or all military systems. Even we have plant engineers who designs plant for manufacturing unit. Same for nuclear enginners, electircal engineer. Engineers always use scientific technique to model/simulate the real world event. And above all, the quality/reliability is not compromised.

This then brings us to the important question- In modern times, are ENGINEERS doing ENGINEERING works?

It appears that CAPITALISM have nearly killed ENGINEERS. we only see the jobs which the CORPORATIONS want, not what engineers are supposed to do. Those who are in position of power are controlling the dynamics of market. If tomorrow a vocation arises that they need people who are only good in dancing, it appears that we will soon have dancing schools flourishing. This is the beauty of market economics.

And then in a country like india, where education means only to get a job, it is even more tougher or people don't want to sit back for a moment and ponder that what exactly is wrong. No, if you say that we have not cleared IIT-JEE (BTW, i had cleared IIIT-Bangalore written examination, it is a different story) and you are not a capable engineer, then i will tell you to read EDISON or TESLA who never completed their engineering degree, yet it is they who changed the world. Neither is IIT any source of engineering nor is it bigger than india.

One of the most important point regarding with an ENGINEER is that he builds the NATION. In vedic era, VISHWKARMA were the ENGINEERS who used to build maginificent forts, palaces and other things. So for indian, engineering is nothing, only if true thinking emerges.

"ENGINEERS PRACTICE THEIR ENGINEERING"

PS: This is not to belittle others who are not ENGINEERS. For me, even a GENUINE ART work is important or great, as it allows people to express themselves.

Learning PYTHON Progarmming

It has been two weeks that I started my journey with this beatiful programming language PYTHON. PYTHON is an object oriented scripting language which is an open source language. The thing about PYTHON is its simplicity. The syntaxes are clean and also.It is high level language.

I also would post about good books related with PYTHON PROGRAMMING LANGUAGE. As of now, i am taking help from stackoverflow website.

Sunday, June 3, 2012

Combined Engineering Exam- Mixed Responses

Recently, it has been decided by the GOI ministry of india that there would be a combined engineering entrance examinations for IIT/NIT/IIIT where 50% weightage would be given to this engineering entrance exam while the rest of 50% weightage would be given to the pre universitites schools or class X11th exam..as per CBSE..now this is a good move on the part of government considering that many talented people lose their chance to get admission into these coveted school of engineering of nations, considering that engineering is in absymal state in the entire nation itself...but the rest 50% is not normazlied..here are some issues:

1) All states in india have three boards of examinations, CBSE, ICSE and state syllabus..the syllabus, degree of marking, and also, the paper level have lot of gaps..hence, state candidates always get higher marks...compared to CBSE and ICSE....this also explains that why BITS-PILANI always used to be dominated by MAHARASHTRA and AP, as there state syllabus was too easy to achieve 99.99%.


2) what sort of examination would be good to judge engineering candidates? engineering education in india means only to get IT industry jobs..the good candidates would get job offers with GOOGLE,FACEBOOK,MICROSOFT etc and rest of the crown goes into INFOSYS,TCS etc....there is no scope for advanced research in the space of aeronautics,nanotechnology etc..and there is this passion with MBA also..


3) the thing is that candidate neglect their class X11 examinations to prepare for IIT-JEE etc, hence this move is being taken..but these exam are also book based...now if there is emphasis on more of pracitcal knowledge and less on theory, then 50% weightage is justified..at the basic level only, kids must get exposure to tinker with machines etc..only then we would be able to proudce engineers..


let us hope that move is first step ahead to build a strong nation

Saturday, May 22, 2010

List of my favorite movies

This one people will find interesting..compiling the lists of my favorite movies

1) No Smoking: As usual, i know people will ask me why do you like this..so i will answer them by stating that this movie is a reflection of my own charachter..the arrogance of k, the frankness..the attachment which he has to his family, his parents, his brother,his friends i liked it..though the point is that everyone hates him but he does not hate anyone..

2) El Jaguar : A french comedy movie, starring jean reno and patrick bruel..misadventure of these two people where a guy wanted to run away from a difficulty just to fall in another difficulty..

3) Swindled: A spanish comedy based on con men..only liked the hero though

4) Khosla ka Ghosla: A funny movie showing the travail of a middle class person..

Will add some more later

Thursday, February 7, 2008

ENGINEERING EDUCATION IN INDIA

Ah,my favourity subject: ENGINEERING. Now come on dont ask me WHAT IS IT?

"Engineering is the discipline of acquiring and applying scientific and technical knowledge to the design, analysis, and/or construction of works for practical purposes"

The above is one of the basic definition of engineering. It is a methodology where an engineer applies all the laws of the nature in a practical manner to invent something.

But in india, the scenario is different. Here, people study engineering not to create something,but to earn a mediocre living job. The very basic motivation to become an engineer in india is that after getting the degree,join a firm and do a menial work. So basically,an engineer in india is somewhat a kind of technician.

Now,if you are saying that i am a bit cynic or pessimist here,then hello, i will counter argue that not a single invention has come from post colonial india,forget that,not a single invention was there in indian when britishes acquired us wherein britons invented all the heavy machineries which was the basic impetus for industrial engineering. All those big machines,crankshafts,pistons happened in EUROPE.

Now, the current job market in india is IT. So obviously people will study IT. IT practically involved the discplines related to the flow of information processing in such a manner that virtually it should appear that people are passin information as if they are talking. but in india,people choose IT industry to earn. it is hot field in india. And hello,no one is a hard core programmer here,indians have a habit to brag their achivement a bit higher. Here,they are coders,a dumb thing to do. Awards are given for appeasement and mediocrity. The only thing is just say yes to everything. Dont act smart. No wonder that we still are in pursuit of original engineers in india.

Wednesday, December 19, 2007

E=mc^2: Reservations XVI: Why elite lower castes do not support

E=mc^2: Reservations XVI: Why elite lower castes do not support

As fas as i have seen, indians are obsessed with money..whatever they do they have to earn money..that is why skills does not matter..knowledge does not matter..what matters most to indians is that what salary companies offer..thats it..this the main reason that people say now days that being an engineer is very easy in india..

Thursday, August 2, 2007

WHAT IS LIFE

As for everybody,this question is also a PARADOX for me-"WHAT IS LIFE"

If you are a living being, then LIFE is breathing-taking O2 in and CO2 out..that is what life is all about- living the moments as they are coming without thinking what happened in the past and not scurrying for the future.

But now we have moved the concept of LIFE from enjoying the present moment. Now, the LIFE has become carrying dashing cell phones in your pocket, having a biiiiiiiiiiiig car,having a lavish house,partying on friday nights,that too in a costly hotels etc etc.....

Well first of all we should understand that why we are chose as human being. Why we have been provided the brains.

Life is not about driving cars and living in a luxurious house. What separates each and every individual is their act of thinking and recognizing a purpose.

So i guess i have come to point

Q) What is Life?

A) "LIFE is PURPOSE"

Wednesday, August 1, 2007

"A THIRD WORLD CALLED INDIA"

When ramu was a boy people used to say:

INDIA IS A GREAT NATION.

I guess we are too catchy with this notion. 'INDIA- A GREAT NATION". The fact is that we all are self proclaiming this phrase.

No doubt that we have got a very good culture which lay emphasis on family values. Family, Moral, and Traditional values are needed on any given day in any society, mere having those does not make you great. History in itself is evident that we were always invaded by the foreigners. And finally we become slaves of britishers for more than 100 years. Does this means greatness.

Well, even though we might have got independnece, we still have the qualities left in us which we had got when we were slaves. At that time, we were taught that you should not follow ur desires, still we are taught u shouldn't follow ur desires. We are always reluctant to chose our own career. The only thing here people like is to get fat check. If you seem to struggle in our nation, we are fools. An opportunity lost means you are out of battle. People have got their own methods to be successful though it may not be true that they deserve it or not. A perception becomes an ISI standard anywhere you go - schools,college or corporate. Once people have a certain notion about you, that will not leave you till you die. This in itself will make you devoided of various opportunities to go ahead.

Well, the biggest thing, we are still known as a THIRD WORLD. Now what does a THIRD WORLD means:

"A THIRD WORLD IS THAT WORLD WHICH ARE ACTUALLY TRYING TO BECOME A DEVELOPED NATION. IN A THIRD WORLD COUNTRY, POVERTY PRECEDES MORE THAN ANYTHING, HAS A HIGH ILLITRACY RATE AND ARE DEPENDENT ON DEVELOPED NATIONS".

To be honest, we are a THIRD WORLD. The fact that we do not own any technology which are made by the developed nations proves this. A country's progress is determined by how much their eco system is balanced. Eco system will only generate if we have our own markets. And markets will only come if we have our own products. And products are only made if we have TECHNOLOGY. Also, not to mention the trade which markets must choose in the other nation to dictate the world.

All the MNC's in india are serving for the markets of USA. All the honchos more rely on the fact that how well the markets of USA and other developed nation is doing.

They say that we have capitalised on the IT boom. The fact is we are nothing but just a cheap labour. Media hypothises us as a great nation. But the fact is we are called great, have done nothing great.