self reproducing program in C

main(){char*p=”main(){char*p=%c%s%c;
(void)printf(p,34,p,34,10);}%c”
(void)printf(p,34,p,34,10);}

First and second line contains a ‘\’ at the end for continuing the line. There is some problem. It does not get displayed properly.

security on Linux ?

Downloading the Linux kernel 0.0.1 was a wonderful learning for me as I could see the basic code structure of ‘now’ a highly advanced and huge code base. A very basic scheduler, very small code for init routine and infact for every module and yes (very) basic code for panic – see [...]

Linux kernel 0.0.1

Visited kernel newbies this morning and as advised there, few minutes back, I downloaded linux kernel 0.0.1 to see a basic linux kernel. Its around 10K LOC of C and Assembler code.
[root@localhost kernels]# tar -xvzf linux-0.01.tar.gz
linux/ linux/Makefile
linux/boot/
linux/boot/boot.s


[root@localhost kernels]# cd linux
While I am going to have my date with this historic version of linux, [...]

zero sized allocation using malloc on AIX !

what happens when we try to allocate 0 bytes memory using malloc() ? My assumption was that memory will not be allocated but see what happened ! I tried it on two operating system environments – Linux and AIX (whose behaviour I heard is different from ‘default’) following is the linux [...]

DB programming in Perl

In the need of creation of a database and a way to add an interface for interaction with that, today I learned how to work on MySQL.
Also got to work at Perl DBI for interaction with MySQL. Database access steps are similar to those in other languages:
for using MySQl, go here.
once your [...]

quiet technical day !

completed the book on Perl that I started yesterday (Picking up Perl – ebook). Learnt about Arrays (lists), hashes, regular expressions (seem powerful) and some functions. Also learnt the way to write subroutines in Perl (Never used subroutines although I have done a ‘lot’ of programming on Perl including an open source project coocle v1.0 [...]

first day – bloggin at wordpress !

I today switched from http://awmanoj.blogspot.com (not exactly ..) because I found wordpress better in several aspects -

categorization support
use of validated HTML
simple and elegant looks
anti-incumbancy factor

I should start right away the topic I started the blog for. I learnt few things today:

started with Perl. I have done programming in this language but did not get systematically into [...]

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!