Category: Programming

Creating Simple 3D Objects Using GLUT

There are several GLUT utility functions for creating both wire frame and solid objects. To create a sphere, use either of the following: void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks); void glutWireSphere(GLdouble radius, GLint slices, GLint stacks); Here, radius is the radius of the sphere. The slices argument is the number of flat bands created […]

Read More

An Example Program for Receiving UDP Data

This example program (receive.c in the UDP directory) is similar to the server.c example program in the SOCKETS directory, except that we use SOCK_DGRAM instead of SOCK_STREAM for the second argument when calling socket. For both TCP and UDP, we use gethostbyname to resolve either a computer name or absolute IP address into a hostent […]

Read More

How manage memory on C programming

The C programming language supports dynamic memory allocation in the malloc(3), calloc(3), realloc(3), and free(3) functions. These functions enable you to obtain, manipulate, and return memory from the operating system on an as-needed basis. Dynamic memory management is essential to efficient programming. Besides more efficient use of memory, a critical system resource, dynamic memory management […]

Read More

Using Multiple Threads with Java

The Java language makes it particularly easy to do both multi-threaded programming andsocket programming. We will see in the next section that using threads is a basic technique for writing robust socket programs in Java. In this section, we will look at a shortexample program that creates a new thread class MyThread and creates 10 […]

Read More

Distribute Smarty

One of Smartys primary design goals is to facilitate the separation of application code from presentation. Typically, the application code contains the business logic of your application, written and maintained in PHP code. This code is maintained by programmers. The presentation is the way your content is presented to the end user, which is written […]

Read More

An Introduction to Struts

Struts is the premier framework for building Java-based Web applications. Using the Model-View-Controller (MVC) design pattern, Struts solves many of the problems associated with developing high-performance, business-oriented Web applications that use Java servlets and JavaServer Pages. At the outset, it is important to understand that Struts is more than just a programming convenience. Struts has […]

Read More

IP Board Greek language file

IP.Board gives users the tools and features they need to participate easily and you the tools to manage focus and drive growth.Successful communities have discussion at their core, which is why our IP.Board forum software is the foundation of our community platform. Whatever kind of community you run, IP.Board can help you achieve your business […]

Read More

How to compile Toad with Oracle support

This article will explain how to compile Toad with Oracle 10g XE on Debian Linux. With limited changes you will be able to sort out the same installation on any Oracle release along with various Linux distributions like Ubuntu, CentOS, Redhat, Fedora, Mandrake etc.First of all install a 32bit Debian and not 64bit as on the […]

Read More

Extending objects with JQuery.extend

You have developed a plugin and need to provide default options allowing end users to overwrite them. The solution is simple  (function($) {   $.fn.myPlugin = function(options) {        options = $.extend({            message: ‘Hello world’,            css: {                color: ‘red’            }        }, options);        return this.each(function() {            $(this).css(options.css).html(options.message);        });    };})(jQuery); In this recipe, we use the $.extend() method provided […]

Read More
Back to top