vinay's blog

Exploring the Mandelbrot Set

The Mandelbrot or M set is considered to be the most complex object in mathematics and probably the most complex object ever seen. The Mandelbrot Set is an infinite object that always looks similar but never repeats!
But at the same time, it is generated by an amazingly simple formula,

Z(n+1) = Z(n) * Z(n) + C
where C is a complex number which acts as a viewpoint in the XY plane
and Z(0) = 0

Complex numbers basically consist of a real and imaginary part. The imaginary part is suffixed with a "i" whose value is sqareroot of -1. It is interesting to note that

Experiments with NFS mounted rootfs

This is a piece of my voilas with nfs mounted root directories.

Some History

At our office we started with around 15 people. We mainly deal in work involving processing of claims
which from the application perspective boils down to the browser and a word processor. Luckily, I was
given freedom to handle the technical aspect of the whole setup.

I immediately decided on network booting as the best solution. No hard disks!. No installation chores!.
Instant updates! So I set up a linux box with dhcp,tftp and XDMCP forwarding. All machines had more or
less the same motherboard/configuration, so i compiled all the drivers into (no modules) the latest 2.6

Where are my fonts?

To find out fonts that the X server supports run the following command

xlsfonts -u -fn '-*' | less

The above should give you an unsorted list of XLFD (X Logical Font Description Conventions) names.

To find out the font path one simple way that should work on all distributions

find / -name fonts.dir

To find out all fonts that are aliases to other fonts

find / -name fonts.alias -exec cat {} \; | less

I am writing this for my reference as i tend to forget them :)

Steganography

Steganography is the art of writing in cipher, or in characters which are not intelligible except to persons who have the key.

This is an usable steganography application for concealing information in jpeg files by replacing the least significant bit of the RGB triplet with the provided text on a bit by bit basis. Since only the least significant bit is changed the resulting R, G, B bytes will be less than or more than unity resulting in a almost negligent amount of change in the color value.

Image Manipulation

An example of manipulating images in delphi
What it does ?

  • Fade in
  • Fade out
  • Grayscale
  • Negative
  • Alpha blending
  • RGB->BRG->GRB
  • Dithering
  • Brightness/Contrast

Pretty simple code!
Gives a nice intro to people wanting to understand image manipulation basics......
Just shows how easy thingys are with DELPHI :)!

Image2html

Have you ever thought of converting an image to HTML format ? This example shows you how to do it
The code provided also gives a basic understanding of IMAGE MANIPULATION. Graphics in DELPHI is so damn easy ..... and this proggy just shows that!

The basic idea is to load any image into a Timage and then check the type of image (jpeg, bmp, etc) and then convert the image to a Tbitmap for getting out the data. The data is then dumped into a file with some HTML tags so that it gives out color... and voila... you have converted your image to HTML
format....
Lot of improvisation is possible which i would be submitting in future versions (if i ever ;))

LCD Interfacing

This proggy shows how to interface ur parallel port with a LCD display.
What does it do?

  • You can see what you type from the keyboard on the LCD
  • Clear the LCD
  • Turn Off LCD display
  • Turn On LCD display
  • Cursor On
  • Cursor Off
  • Cursor Blink
  • Define your own font

This example basically shows how you can interface real world devices to the
computer by using the parallel port..

Finally my website

Finally, i have decided on drupal for my website. And here it is. No problems whatsoever! Armed with some drupal module writing knowledge, I am convinced that drupal is the best i can use for my purposes.

What can u find here ?
Well, though i haven't decided yet most probably it would be bits and pieces of my work in delphi, C, PHP, assembly and some embedded projects. Also, you can expect some crappy documents, theories etc.

Syndicate content