Tag: Programming.

  • Integer overflow


  • Erlang Tinkering

    ABOUT ERLANG Erlang (/ˈɜːrlæŋ/ UR-lang) is a general-purpose, concurrent, functional programming language, as well as a garbage-collected runtime system. The term Erlang is used interchangeably with Erlang/OTP, or OTP, which consists of the Erlang runtime system, a number of ready-to-use components mainly written in Erlang, and a set of design principles for Erlang programs.[3] The […]

  • struct keyword and getopt_long

    The getopt() function parses the command-line arguments. Its arguments argc and argv are the argument count and array as passed to the main() function on program invocation. An element of argv that starts with ‘-‘ (and is not exactly “-” or “–“) is an option element. The characters of this element (aside from the initial […]

  • programming tip 1.

    In CAIRO + GTK programming.The GTK part will be in the main() function. and cairo API will be in the functions that GTK calls. Ofcourse GTK API can be in the functions too, but CAIRO will not be inside main() normally.

  • square root = %f

    /* Jeffrin Jose <jeffrin@rocketmail.com> Licensed GPL v3 Copyright 2010 GPL –> http://www.gnu.org/copyleft/gpl.html */ #include<stdio.h> main() { float x,y; printf(“\n Input an Integer :” ); scanf(“%f”,&x); y=sqrt (x); printf(” square root = %f”,y); getch(); }

  • remainder 100/?

    /* Jeffrin Jose <jeffrin@rocketmail.com> Licensed GPL v3 Copyright 2010 GPL –> http://www.gnu.org/copyleft/gpl.html */ #include<stdio.h> main () { int number,b; printf (“Enter a Number \n”); scanf(“%d”,&number); b=100%number; printf(“\n The Remainder with 100 = %d “,b); getch(); }

  • APC alternate PHP cache ( apc_add )

    The alternate PHP cache is free and open opcode cache for PHP. http://en.wikipedia.org/wiki/Opcode $variable= ‘Iam ok’; apc_add(‘foo’,$variable); var_dump(apc_fetch(‘foo’)); the above code is not working as desired. the output we get is “bool(false)” http://www.techterms.com/definition/parse -r code Run PHP code without using script tags ‘ Armstrong, Neil: The Eagle Has Landed [audio:http://www.freeinfosociety.com/media/sounds/18.mp3%5D

  • getenv programming

    getenv(“POSIXLY_CORRECT”) = NULL The getenv() function searches the environment list to find the environment variable name, and returns a pointer to the corresponding value string. if the output is NULL then it means that POSIXLY_CORRECT environment variable is not set to true. so the current program may not try to run in strict POSIX mode. […]