penguins

Program, Process and Threads

  • by

PROGRAM

The definition of program is linked to the definition of algorithm. An algorithm is a sequence of finite steps which can be executed mechanically to solve a problem. The key points are that algorithms are self-contained; the steps given are sufficient to solve the problem at hand.… Read more

Starting a network server after communication interface is up

  • by

If you have a program that communicates over the network interface, say, eth0 and you wish to start the program automatically after the system startup, you need to ensure that the program starts after the interface eth0 is up. For Linux systems using the Upstart process management daemon, this can be done by starting the program after the event net-device-up occurs for the interface eth0.… Read more

Remote display with X server

Remote Display With the X – Window System

  • by

X - Window system is a network-transparent window system. X11 server is the display server that manages the output on the bit-mapped display hardware. An application (or client) does the work and sends requests to the X11 server, or simply, the X server for display.… Read more

Error

JRobin: Not able to save graph as a PNG file

  • by

Error:

Not able to save graph as a PNG file.  
Compilation error: cannot find symbol  
[javac] symbol  : method saveAsPNG(java.lang.String,int,int)  

Solution:

saveAsPNG does not seem to be there in JRobin anymore. Use the RrdGraph.render (java.awt.Graphics g) method. For example,


// Create a buffered image in which the graph would be drawn    
BufferedImage bImage = new BufferedImage(imageWidth, imageHeight, BufferedImage.TYPE_INT_RGB);
Read more
Red dahlia

Watermarking images using GIMP

  • by

After having created images with hard work, you wish to protect your copyright on the images. Watermarking the images is an excellent method prevent any commercial misuse of images. And it can be done easily using the wonderful open source image editing software, Gimp.… Read more

Error

kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

  • by

A new Linux kernel was built using the commands, make gconfig, make, sudo make install and sudo make modules_install. After building a new Linux kernel and booting from it, the boot process halts with the following message:

kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


A lot many drivers are configured as loadable modules.… Read more

Error

Gtk-WARNING **: cannot open display:

  • by

While running a GTK+ based C program under Cygwin, the following runtime error is observed,

Gtk-WARNING **: cannot open display:

SOLUTION

  1. Make sure that Cygwin/XServer is installed and is running. If it is not installed, download the relevant packages from Cygwin.
Read more
Error

cygwin1.dll not found

  • by

A C program was compiled under Cygwin and run directly under Windows. The following runtime error was observed,

cygwin1.dll not found

SOLUTION

Make sure that the environment variable, PATH, has the directory C:\gygwin\bin which contains the dll, cygwin1.dll.

On Windows Vista, this can be done as follows:

  1. From Start menu, click Control Panel.
Read more