The least common multiple (LCM) of two integers a, b is the smallest positive integer that is a multiple of both a and b. Despite of the fact, there exist several formulas to calculate the LCM of two integers, most popular formula, especially to the programmers, is by using GCD of the two: LCM(a, b) … Continue reading Prolog program to find GCDs and LCMs
We know the formula for calculating n! (factorial of n) is: n! = n * (n-1)! We can interpret this simple mathematical equation into a Prolog program. To do so, we must determine the basis of the recursion, 0! = 1 We will use two predicates here, factorial predicate with one argument N, that will … Continue reading Prolog program to Calculate factorial of N
We have already set up GLUT and OpenGL [↗]. Now we can start writing codes from the ground up. Create an Empty C++ Win32 Console application and add a C++ source file. Add necessary library headers as follow: #include <stdlib.h> #include <GL/glut.h> ‾ Note» alteration of order will cause generation of error message. Now let … Continue reading Beginning Device-independent Graphics Programming with OpenGL (using GL, GLU & GLUT)
World Wide Web is a rapidly evolving technology and arguably the greatest technological success in the history. From the start, dated back in the 1990, when web was just a collection of html documents it gathered a lot of attention from wide variety of people and continually introduced new and newer features. Gradually most of … Continue reading Our Approach to Semantic Web
Guys and girls, I have posted a blog on my blogspot long before I had an wordpress blog. I wrote that blog tutorial keeping in mind some difficulties I and my fellows faced in learning Java. I used the same material to coach some younger guys also. Please check "Sadh’s Intro to Java" and I … Continue reading Just another intro to Java for newbies
OpenGL support come with many IDEs, programming environments and compilers. Likewise MSVS9 comes with built in support for OpenGL so that you can use all features of gl and glu libraries simply. To use glut support we need to download and add the glut support. Let us do both one by one. OpenGL (gl and … Continue reading OpenGL and glut in C++ with MS Visual Studio 2008 (MSVS9)
It is much said that, most of the applications developed are database applications. Sometimes, this information confuses a newbie. Actually in modern context, database is such a part of most applications that you cannot detach it. From web application to customized application, most has a database behind it. In modern days, database applications are not … Continue reading Rethink database application (for newbie)
We know that web has changed from what it was to what it is! And can you imagine what it will be? Web is going to be your future personal assistant; it will be the primary resource of mankind's knowledge. Web is already a great way of your communication and social acting. Web will be … Continue reading Web 3.0 and the Semantic Era!