eGeeLabs
Monday, September 19, 2011
A gilmpse of HTML5
Saturday, September 10, 2011
3D - Thinking in a new dimension
Lot to come. Keep looking in 3D :)
Saturday, September 3, 2011
CUI vs GUI
From the very beginning when one gets used to the programming aspects he is in a hurry to make something interesting like a game or puzzle. I remember my initial days when i used to program in C/C++, i was very keen to make a game. But then i was having knowledge of basic C, where i was bound to play with just some ASCII characters to make some animations. Just a black window with some white characters floating on it. That world was known as CUI(Character User Interface) where user can interact with the system only by typing something on screen. Then i used to think that probably windows OS and the games what i used to play those days (Tekken 3, IGI etc) were written in some other languages. The 3D button, the moving mouse and the swaying windows everything that windows offered was simply great and provided easy navigation too. This was probably a new world – a GUI(Graphical User Interface) world. When i got some hands on C graphics i thought now i have got that power. It was now easy for me to build some rectangles,circles etc. simple 2D graphics. But still the windows world was quite far ahead. To build a better interface every time it was needed to check which functions get called, like moving windows,maximizing windows, clicking an icon etc. This seemed nearly impossible with the traditional C graphics and the ways by which we used to program. The problem becomes even worse when we find that with so many loops polling to check system events were eating away a lot of memory. Then i realized that maybe the windows world(i.e. GUI) is quite different from traditional CUI world.
In previous DOS based programs it was the programmer’s responsibility to call necessary functions but with the advent of Windows the whole paradigm got changed. Now it was the OS which calls necessary functions as and when needed keeping the memory requirements intact. OS was responsible to call necessary functions whenever some event occurs like user presses some button or moves some window. Now user was free from polling for events and he just have to define what will happen when some events occur. And thus our whole programming paradigm shifted to event based programming. With the GDI library in windows now it was really easy to create windows, fonts, scrolls etc.. But the story doesn’t ends here.
With the need of visualizing things in real, 3D GUI was necessary and there comes the 3D Graphics which in windows is taken care by the DirectX library. With help of it programmer find himself on the top of world. It was easy to produce 3d effects and now the Gaming World was not too far. With Open Gl and DirectX the computer screen(a 2D screen) got a new Dimension i.e. 3D
Next post:: 3D – Thinking in a new dimension
Sunday, October 11, 2009
The science word means a lot
Wikipedia says::>>
Information technology (IT), as defined by the Information Technology Association of America (ITAA), is "the study, design, development, implementation, support or management of computer-based information systems, particularly software applications and computer hardware." IT deals with the use of electronic computers and computer software to convert, store, protect, process, transmit, and securely retrieve information.
Computer science (or computing science) is the study of the theoretical foundations of information and computation, and of practical techniques for their implementation and application in computer systems. It is frequently described as the systematic study of algorithmic processes that describe and transform information; the fundamental question underlying computer science is, "What can be (efficiently) automated?" Computer science has many sub-fields; some, such as computer graphics, emphasize the computation of specific results, while others, such as computational complexity theory, study the properties of computational problems.
Now coming back, well we can say IT is an engineering(or applied) aspect of Computer science just like Engg. Mechanics(or Mechanical Engg.) is to Physics. In physics we study the basic laws governing the universe and the person who deals with that we term him as a physicist(or scientist). One who is making that physics to be used in building some automobiles, we say that he is an automobile engg.(or Mechanical Engg.) Similarly computer science builds the theoretical foundations which are then employed in IT (in some language) as an application further which can be then used for the betterment of our society. Computer science ensures that we can provide the best from those dumb machines like developing best compilers/assemblers for languages used in IT, algorithms to do a particular task, analyzing complexities of algorithms and choosing best one and many more. When we have the Jinn in our hand then just what is required is to rub it and ask for a wish. That is like when we have powerful machines at our service with intelligent interfaces then we have to give our requirements and the rest is taken care by IT.
What is happening today is that we are going by the word IT and have wrongly mistook it for computer science. Everyone believes that computer science and IT are the same.
That's where we are lacking in research. The situation is that we are not in a mood to study the basics of computer science and by just looking at the ever changing IT field we got confused and switch to newer technologies without looking back what has changed and to what extent.
Sunday, April 26, 2009
Vulnerability in LINUX
WARNING::: Do not try this on your computer.
Here i am going to tell you about the vulnerabilities of linux and here is the first one:
1. FORK BOMB :::
Just type on your shell this command
$ :(){:|:&};:
Let me explain step by step what this command does::
1. In the starting you can see a beginning of a function named :
2. Now in the body part you will see that :|: it tells that : function has created one child process which itself calls :.
3. Well the '&' sign in linux shell tells the process to run in background(now no can terminate it).
4. ';' as a delimiter.
5. Finally we call that function :.
Now you must have a pretty good idea about what this function will do. It calls itself recursively and after some time your system will get crashed!!!