Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
34% Quality Score
Upvotes Received
15
Posts with Upvotes
11
Upvoting Members
12
Downvotes Received
38
Posts with Downvotes
28
Downvoting Members
14
14 Commented Posts
~20.3K People Reached
Favorite Tags
c x 83
php x 12
oop x 3

65 Posted Topics

Member Avatar for lionaneesh

**Introduction** Hi guyz today I am going to writing a tutorial on dictionaries in Python....As per as getting comments from my readers I'll try to make this tutorial short.... **Layout** 1.What are dictionaries? 2.Why dictionaries? 3.How to declare/make dictionaries in Python? 4.What all you can do with a dictionary? 5.Interesting …

Member Avatar for vegaseat
0
667
Member Avatar for lionaneesh

[B][I][U]Introduction [/U][/I][/B] [COLOR="Red"]Hey everybody welcome to a tutorials on classes in PYTHON. The purpose I made this tutorial for is that when I was learning classes in python I dint found any good tutorials on Classes. Maybe I was wrong. But here's my tutorial.[/COLOR] [B][I][U]Layout[/U][/I][/B] In this tutorial i'll be …

Member Avatar for mail2sanjay
1
875
Member Avatar for lionaneesh

[B][I][I][U]Introduction:-[/U][/I][/I][/B] [COLOR="Red"] Hi guyz today I am going to writing a tutorial on dictionaries in Python....As per as getting comments from my readers I'll try to make this tutorial Short....[/COLOR] [B][I][U] Layout:-[/U][/I][/B] [COLOR="Green"] 1.What are dictionaries? 2.Why dictionaries? 3.How to declare/make dictionaries in Python? 4.What all you can do with …

Member Avatar for colstonewall
0
413
Member Avatar for lionaneesh

[B][I][U]Hey Guyz I am currently using :-[/U][/I][/B] 1. WINDOWS 7 32bit x86 intel 2. WINDOWS XP SP2 2002 32bit x86 intel [B][U][I] MODEM :-[/I][/U][/B] ZTE ADSL Modem Model : 531B Splitter : 4KHz [B][I][U]The Problem :-[/U][/I][/B] 1. There was no problem till today morning...I faced some problems after 12am today.. …

Member Avatar for dbrookins
0
160
Member Avatar for lionaneesh

[CODE] #include<stdio.h> int main() { FILE *point; char others[35]; int indexer,count; strcpy(others,"Additional lines."); point = fopen("tenlines.txt","a"); /* open for appending */ for (count = 1;count <= 10;count++) { for (indexer = 0;others[indexer];indexer++) { putc(others[indexer],point); /* output a single character */ putc('\n',point); /* output a linefeed */ } } fclose(point); getchar(); …

Member Avatar for Ajinkya Naik
0
167
Member Avatar for rahul_galgali

1. You can use [url]http://www.dyndns.com/[/url] if you want to host it from your computer for free... 2. or you can use [url]http://www.zymic.com/free-web-hosting/[/url] for hosting your site from their server ...[I recommend this] First one will cause bugs , worms , etc etc...and you have to tackle them yourself ...And this …

Member Avatar for sidneyharris
0
219
Member Avatar for lionaneesh

[B][I][U]Introduction[/U][/I][/B] Hey guys today I am writing a tutorial on Lists and tuples in Python.... So lets get started... [B][I][U] Layout:- [/U][/I][/B] 1.What are data sturctures? 2.What are tuples? 3.What are lists? 4.inbuilt functions on lists and tupples [B][I][I][U] What are Data structure?[/U][/I][/I][/B] Anybody familiar with programming or Actually Computers. …

Member Avatar for redyugi
1
3K
Member Avatar for lionaneesh

This is a simple-web-server made in C.. [COLOR="Red"]Supported OS :[/COLOR] I have made it on Ubuntu 9.10 ... and i think it will run on all linux system .... [B]Windows is not supported[/B] [U][B][I][COLOR="Red"]Compiler Instructions : As this is a web server so it will host on port 80 to …

Member Avatar for challarao
0
2K
Member Avatar for lionaneesh

[U]Hey Guyz ....This is Aneesh I am new to javascript... and I needed a Sliding Javascript Dropdown Box ....[/U][B] I got many links on the web but with no explanation...[/B] [B][I][U]What I need:-[/U][/I][/B] I need some links with Sliding Javascript Dropdown Box source and explanation... Thanking You... Aneesh Dogra

Member Avatar for Graphix
0
150
Member Avatar for cristi08

A simple script to do that :- [CODE]<?php if(isset($_SESSION['user'])) { $user = $_SESSION['user']; header("Location:http://www.localhost.com/$user.php"); } else { header("Location:http://www.localhost.com/login.php"); } ?>[/CODE] What this does is that it searches for a defines $_SEESION for the username if the session is defined it redirects the page to :- [CODE]http://www.localhost.com/username.php[/CODE] else it redirects the …

Member Avatar for Zagga
0
2K
Member Avatar for ManishS

if you are creating a form say login Then:- the the code will be:- [CODE] <?php echo <<<_END <form action='login.php' method='post'> Username : <input type="text" name="username"> Password : <input type="password" name="password"> <input type="Submit" value="Login"> </form> _END; ?>[/CODE] Then the following line displays a Submit button to send the data VIA …

Member Avatar for lionaneesh
0
88
Member Avatar for lionaneesh

I am trying to solve the problem Present at [url]http://www.codechef.com/problems/INTEST/[/url] I have made a small Python script to do my job :- [CODE]array = [] no_lines = 0 no = 0 j=0 div_no=0 no_lines = input() no = input() temp = no_lines while(no_lines>0) : i=0 i = input() array[j] = …

Member Avatar for TrustyTony
0
797
Member Avatar for lionaneesh

These are my 2 pages index.php:- [CODE]<?php session_start(); ?> <html> <head> <title>Enter Your Name</title> </head> <body> <form action="hello.php" method="post"> Wat's U'r name : <input type="text" name="name"/> <br/> <input type="submit" value="Next"/> </form> </body> </html>[/CODE] hello.php:- [CODE]<?php session_start() ?> <html> <head> <title>Hey <?php echo $name; ?></title> </head> <body> <?php $_SESSION['name'] = $_POST['name']; …

Member Avatar for lionaneesh
0
206
Member Avatar for chade25
Member Avatar for lionaneesh

[CODE]/* A simple server in the internet domain using TCP The port number is passed as an argument */ #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include<arpa/inet.h> #include<netdb.h> #include<string.h> int main(int argc, char *argv[]) { struct addrinfo hints,*serv,*p; int sockfd,newfd,status; struct sockaddr_storage their_addr; socklen_t addr_size; char *msg; int len; …

Member Avatar for malathi renin
-1
139
Member Avatar for Jeevitha V.K

[QUOTE=Jeevitha V.K;1258591]Hi ... i am doin my B.E in computer science amd i was asked to write a programme ... can anyone help me write a c program that can hang the system ... and can u also tel me how to set it right again...[B][COLOR="Green"]:icon_neutral:[/COLOR][/B] and can u tel …

Member Avatar for finito
-6
159
Member Avatar for Member 785459

This a basic simple program about employee paysheet..Rest is on you ....I provided you the base software... Add some features ... etc etc... [CODE]/* Employee Paysheet Program in C */ #include<stdio.h> #include<stdlib.h> #include<string.h> void remove_newline(char *buffer) { int i=strlen(buffer) - 1; buffer[i] = '\0'; } int main() { FILE *fd; …

Member Avatar for lionaneesh
-1
105
Member Avatar for Member 785459

Simply Type [CODE]fclose(file_descriptor);[/CODE] after manipulating with the file to save it... And to append some data... add "a" as mode in the fopen call eg:- [CODE]FILE *fd = fopen("file.txt","a");[/CODE]

Member Avatar for lionaneesh
-1
80
Member Avatar for Maryaa

If you have any existing code post it or :- You have to work on your Code yourself... My suggestion would be:- Try some stuff with your code...Work out..And Then post your queries or questions on that Code..

Member Avatar for Maryaa
0
73
Member Avatar for iqra123

[QUOTE=iqra123;1253814]hello i have a simple client server program in which different paramters are asked by client. i want to use cryptographic techniques like DES, AES, RSA but i do not know how and where to use.... i m doing socket programing first time even programing in linux. so i do …

Member Avatar for iqra123
0
132
Member Avatar for idontknow19
Member Avatar for vivek01anand

[CODE]#include<stdio.h> #define prn(a) printf("%d",a) #define print(a,b,c) prn(a), prn(b), prn(c) #define max(a,b) (a<b)? b:a int main() { int x=1, y=2; printf("First Print Call :"); print(max(x++,y),x,y); // here x is incremented after the max call returns then value of x becomes 2(remember we used x++ not ++x so the max call wil …

Member Avatar for lionaneesh
0
129
Member Avatar for gamer42001

Firstly:- I suggest you to read something about ARRAYS and POINTERS in C .... Secondly:- We declare array of pointers in C by : [code] char *array[num]; [/code] Above "array" is the name of your array , "num" is the number of pointers to create... I'll give you the code …

Member Avatar for lionaneesh
0
119
Member Avatar for Madawar

[QUOTE=Madawar;1259474]Hi, I recently started using Linux and have come to find that it suits me better than Windows. I am a newbie in C/C++ programming and my questions are [LIST=1] [*]How suitable is Linux for learning C/C++ programming as most of the books i have come across are based on …

Member Avatar for lionaneesh
0
125
Member Avatar for riyasahamed

[QUOTE=riyasahamed;1259016]please any one give me simple code snippet to perform insert , delete, update, search & display operation using linked list. please help me[/QUOTE] If you are looking for a this kind of program with explanation Refer to :- [url]http://www.codeproject.com/KB/cpp/linked_list.aspx[/url] When I was struggling understanding linked list I found this... …

Member Avatar for lionaneesh
-1
127
Member Avatar for akand
Member Avatar for tesuji
0
545
Member Avatar for dhondie87

[QUOTE=nbaztec;1251856]Then my bad. I thought it was one of those warnings my borland compiler suppressed. :P[/QUOTE] Yeah!! you are right .. Some compilers show warning on not providing the return statement while using int main() use void main(void) instead!!!

Member Avatar for nbaztec
-3
133
Member Avatar for bala1486

Yeah sure there's a ton of tutorials on web:- but the best i found is :- [url]http://beej.us/guide/bgnet/[/url]

Member Avatar for lionaneesh
0
62
Member Avatar for lionaneesh

[code]// Dumps raw memory in hex byte and printable split format void dump(const unsigned char *data_buffer, const unsigned int length) { unsigned char byte; unsigned int i, j; for(i=0; i < length; i++) { byte = data_buffer[i]; printf("%02x ", data_buffer[i]); // Display byte in hex. if(((i%16)==15) || (i==length-1)) { for(j=0; …

Member Avatar for WaltP
0
213
Member Avatar for lionaneesh

[CODE] #include<stdio.h> #include<string.h> #include<arpa/inet.h> #include<netdb.h> #include<sys/types.h> #include<sys/socket.h> #include<fcntl.h> #include<sys/stat.h> #include<stdlib.h> #include<time.h> int main() { FILE *logs; logs = fopen("/home/aniroot/logs/log.txt","a"); if(logs = NULL) { printf("fopen failed ... There would be no log for this session!!!"); } int sockfd,newfd; int err; struct addrinfo *res,*p,hints; struct sockaddr_storage their_addr; socklen_t addr_size; int yes=1; char …

Member Avatar for abhimanipal
0
138
Member Avatar for lionaneesh

[CODE]/* This function accepts a socket FD and a ptr to a destination * buffer. It will receive from the socket until the EOL byte * sequence in seen. The EOL bytes are read from the socket, but * the destination buffer is terminated before these bytes. * Returns the …

Member Avatar for abhimanipal
0
194
Member Avatar for krap_nek

[QUOTE=krap_nek;1232879]Hey guys, What I'm trying to do is a function that gets a certain array of structures and print some of the information on the screen, like the name and id_number. The thing is that some fields in the structure are repeated and my goal is to show only one …

Member Avatar for Tellalca
0
117
Member Avatar for MrDiaz

[QUOTE=abhimanipal;1230834]You have to make the parent wait for the child to die before killing itself. A simple solution will be to use wait(NULL) in the parent Now the parent waits for the child to die before terminating [CODE] int main() { int pid; pid = fork(); if (pid) { printf("I'm …

Member Avatar for MrDiaz
0
107
Member Avatar for speedy94519
Member Avatar for speedy94519
0
294
Member Avatar for lionaneesh

Sir/Maam, please suggest me some very simple tutorials explaning right from the basics of such functions . I am doing C since 6 months and was looking at a tutorial of BEEJ's guide to network programming.. there at looking at a source code i found these functions and am really …

Member Avatar for UncleLeroy
0
110
Member Avatar for lionaneesh

[B]Introduction[/B] Hey! Guyz.. Welcome to my very short tutorial explaining basic uses of "malloc" function in C language. [NOTE : You need simple understanding about pointers to understand this tutorial] Hey guyz see by reading this tutorial you'll not be a malloc expert .. This tutorial is only for the …

Member Avatar for lionaneesh
-1
400
Member Avatar for rahulr
Member Avatar for twampdawg

See I started programing 1 year ago and my suggestions would be :- 1. C programming language (If you are interested in Kerenal programming and want to develop your own UNIX or Linux) You need to know C for several reasons: Most programs are written using it (or C++), nearly …

Member Avatar for jephthah
0
140
Member Avatar for ahmedga

REFER to this [url]http://www.codeproject.com/KB/cpp/linked_list.aspx[/url] really best tutorial on singly linked list

Member Avatar for jephthah
-5
79
Member Avatar for free_eagle
Member Avatar for lionaneesh

[CODE] /* ** showip.c -- show IP addresses for a host given on the command line */ #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <arpa/inet.h> int main(int argc, char *argv[]) { struct addrinfo hints, *res, *p; int status; char ipstr[INET6_ADDRSTRLEN]; if (argc != 2) { fprintf(stderr,"usage: …

Member Avatar for jephthah
0
171
Member Avatar for lionaneesh

Please suggest me some tutorials on Windows programming in C with detailed review on windows registry and header files like #include<windows.h> #include<functions.h> #include<fstream> #include<dos.h> etc...

Member Avatar for limodetroit
0
111
Member Avatar for lionaneesh

Sir/Maam, I am a newbie programmer in C and learning C since 6 months and am looking forward to learn Socket programming in C . I have some knowledge about TCP/IP and OSI model. Please suggest me some simple links and ebooks . Thanks.

Member Avatar for jephthah
0
146
Member Avatar for lionaneesh

[CODE]#include<stdio.h> #include<string.h> #define count 2000000 void add(char word[],char meaning[]) { FILE *fp; fp = fopen("words.txt","a"); fprintf(fp,"%s = %s\n",word,meaning); } void processing(void) { int i = 0,delay; printf("Processing....\n\n"); for(delay=0;delay<count;delay++) ; printf("\n"); } void getwords(void) { FILE *fp; fp = fopen("words.txt","r"); if(fp!=NULL) { printf("\n/**************************** DICITIONARY **********************************/\n\n\n"); char words; while((words = fgetc(fp)) != …

Member Avatar for nezachem
0
157
Member Avatar for lionaneesh

I want to know what is const type in C and what is its uses etc. i dont know anything about this term used in C so please give detailed description...

Member Avatar for jephthah
0
119
Member Avatar for lionaneesh

[CODE]#include<stdio.h> #define SQR(x) x * x int main() { printf("%d", 225/SQR(15)); }[/CODE] why this program outputs 225 instead of 1 (according to calculation).

Member Avatar for aman rathi
-1
213
Member Avatar for lionaneesh

The books i have already read :- 1. C ANSII Edition ( Cant understand their language ) 2. C tutor 3. Pointers and memory ( Stanford )

Member Avatar for Narue
-1
250
Member Avatar for lionaneesh

[CODE]#include<stdio.h> void squeez(char s[],char z[]); int main() { char s[100] = "Hey wassup !!!!!!"; char z[100] = "Wow cool!!!!!"; squeez(s,z); return(0); } void squeez(char s[] , char z[]) { int j,dummy = 0,i=0; char x[100]; for(j = 0 ; s[j] != '\0';j++)/* the starting loop */ { while(z[i] != '\0') …

Member Avatar for urbangeek
1
269
Member Avatar for lionaneesh

[CODE]#include<stdio.h> int lcm(int a,int b); int main() { int a; int b; printf("Enter two numbers to find lcm of ? :-\n1. "); scanf("%d",&a); printf("2. "); scanf("%d",&b); printf("%d is the lcm of %d and %d\n\n",lcm(a,b),a,b); getchar(); return(0); } /******************* FUNCTION *****************************/ int lcm(int a,int b) { int i,g,pr,z,q,dummy,lc = 0; /************************************************************************/ …

Member Avatar for Ancient Dragon
0
118
Member Avatar for lionaneesh

[CODE] scanf("%[^\n]",line); [/CODE] tell me the logic of this scanf statement and why " [^\n] " is used instead of %s ... and how this statement works... i know that this statement inputs lines till enter is pressed.. but what is the format of the scanf statements please tell..

Member Avatar for jephthah
1
331

The End.