…in fieri…

Development

Quick intro to ncurses

by on Feb.03, 2010, under C Programming, Development, Unix

Curses is a pun on the name “cursor optimization”, it is a library that forms a wrapper for working with raw terminal codes. It’s flexible and efficient API provides functions to move the cursor, create windows, produce colors, play with mouse, and more. By using curses we do not need to bother worrying about the capabilities of the terminal we are running on.

For this demonstration we will build a simple ‘Keycode Scanner’. To show off a bit, we will add a realtime clock display as well. (continue reading…)

Leave a Comment :, , , , , , , , , more...

IPC Message Queues on *nix

by on Feb.01, 2010, under C Programming, Development, Unix

Message queues are handy. A process can create a new queue or connect to an existing one. This allows multiple processes to share the same queue. By default messages are taken off the queue in the same order as they are put on, but there are ways to retrieve messages before they reach the front of the queue. (continue reading…)

Leave a Comment :, , , , , , , , , more...

Simple Port Scanner

by on Jan.06, 2010, under Perl

This is a simple port scanner that uses the IO::Socket module. The host to scan and the port range are passed as arguments to the script. The only error checking done is to ensure that the start/end ports given are non-floating point numbers, so one enhancement that could be made is to check that the hostname/ip is valid. (continue reading…)

2 Comments :, , , , , , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...