Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
73% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~5K People Reached
Favorite Tags
Member Avatar for shahab.burki

Hi, I am trying to develop an efficient algorithm for maximum subsequence sum. But I am stuck. I want to return the start and the end of the subsequence producing the maximum sum. Example Array Contains... -2,11,-4,13,-5,-2 Now my algorithm works as follow. [CODE] MSS(Array[],N)//Where N is the number of …

Member Avatar for apines
0
172
Member Avatar for shahab.burki

Hi, I am new to web development. I am xampp package for development. First I was able to access MYSQL through CLI and PhpMyAdmin. But when I set the root password for the MYSQL, I am unable to access it. Any clue? Thanks

Member Avatar for Surreal_one
0
184
Member Avatar for shahab.burki

Hi, I am stuck in file reading problem. I have tried various solutions but nothing worked. Actually I can't develop a logic to do so. I want to read some lines from file and pass them to structure. When reading a file you must use WHILE loop. I am posting …

Member Avatar for jephthah
0
90
Member Avatar for shahab.burki

Hi, When I assign the value of one structure variable to the other I got the error "incompatible types in assignment". The Code is the following. The Problem line is 91. [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct file_data{ char src_ip[18]; char dst_ip[18]; char src_port[8]; char dst_port[8]; char p2p_proto[18]; struct …

Member Avatar for WaltP
0
144
Member Avatar for shahab.burki

Hi, I am working on structures. One of the structure member is char array i.e string. When I assign another string to this then it throws the incompatible error. The code is the follwing. The problem line is commented. Code: [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct file_data{ char src_ip[18]; …

Member Avatar for shahab.burki
0
172
Member Avatar for shahab.burki

I have created a linked list which stores data from file. However I got stuck when I try to print the contents of Linked List. The code is below 1.Text File [CODE]102.15.12.10 15.14.106.6 1591 1592 bit_torrent 102.15.12.10 15.14.106.6 1591 1592 bit_torrent 102.15.12.10 15.14.106.6 1591 1592 bit_torrent 102.15.12.10 15.14.106.6 1591 1592 …

Member Avatar for JuhaW
0
79
Member Avatar for shahab.burki

Hi, My code reads a string from a file. But it misses the lastone. can you help me? 1..Text File [CODE]102.15.12.10 15.14.106.6 1591 1592 bit_torrent[/CODE] 2.. Code [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct list_node{ char src_ip[15]; char dst_ip[15]; char src_port[4]; char dst_port[4]; char protocol[15]; }; typedef struct list_node node; …

Member Avatar for shahab.burki
0
96
Member Avatar for shahab.burki

Hi, I am developing a client and server in C. Client encrypts some data and sends it to the server. The server receives the data and prints it out. I am using AES 128 bit encryption in CBC mode. But at the server side I am unable to receive any …

Member Avatar for shahab.burki
0
199
Member Avatar for shahab.burki

Hi, I am stuck in building 2D Array from StringBuffer. I am reading data from a file and store it in a StringBuffer object by appending "\n" at the end. My read method is in the following. [CODE]public void tmFileReader() throws IOException { Work wrk=new Work(); StringBuffer buffer=new StringBuffer(); FileInputStream …

Member Avatar for BestJewSinceJC
0
161
Member Avatar for shahab.burki

Hi, I am developing a TM simulation program. But got stuck in execution as it goes wrong. The Code is the follwing. 1. Java Code [CODE]import java.io.IOException; public class TMSimulation{ public static void main(String args[]) throws IOException{ InputReader reader=new InputReader(); reader.tmFileNamereader(); reader.tmFileReader(); //fileReader.display(anArray) } }[/CODE] [CODE]import java.io.*; public class InputReader{ …

Member Avatar for BestJewSinceJC
0
141
Member Avatar for shahab.burki

I have problems in decrypting the text using AES in C. the code is belwo. [CODE]#include <stdlib.h> #include <openssl/evp.h> #include <string.h> int main(){ //declaring the variables char source[6]="Shahab"; char target[6]; char output[6]; char mykey[EVP_MAX_KEY_LENGTH]="hardtobreak"; char iv[EVP_MAX_IV_LENGTH] = "an_iv"; int in_len, out_len=0; int check; EVP_CIPHER_CTX ctx; in_len=strlen(source); printf("This is the text …

Member Avatar for jephthah
0
114
Member Avatar for shahab.burki

I am doing some AES encryption using C. But the errors ocurred. The code is following by the error displayed. 1 Code [CODE]#include <stdlib.h> #include <openssl/evp.h> #include <string.h> int main(){ //declaring the variables char source[6]="Shahab"; char target[6]; char mykey[EVP_MAX_KEY_LENGTH]="hardtobreak"; char iv[EVP_MAX_IV_LENGTH] = "an_iv"; int in_len, out_len=0; int check; EVP_CIPHER_CTX ctx; …

Member Avatar for shahab.burki
0
254
Member Avatar for shahab.burki

Hi, I am trying to develop a small IPv6 application in C. I am stuck at server side. GCC issues the error while call to ACCEPT function "socket function on non-socket". Can anyone help me? 1. Client Code [CODE]#include "shahab.h" int main(int argc, char **argv){ int connectSocket; int numberOfBytes; char …

Member Avatar for gerard4143
0
241
Member Avatar for shahab.burki

Hi, Some tough days for me doing a project in network project in C. Now I have seen various sites but found no solution. My question is that how to produce random numbers between 50 to 250 using rand() or srand in C? I am using gcc4. Thanks Shahab

Member Avatar for twomers
0
63
Member Avatar for shahab.burki

Hi, I am doing network programming in C. I want to send Hexadecimal data between client and server. But stuck how C handles Hexadecimal values? I would like to put and example. I am having a variable ACK_CODE 0*81. Now want to send it. Since the send call can only …

Member Avatar for gerard4143
0
136
Member Avatar for shahab.burki

Hi, I am newbie to network programming in C. I want to implement a file transfer program in C on a Linux environment . I am sending the file name to the server and tries to print it on the server. But the server doesn't print it. I think I …

Member Avatar for Dave Sinkula
0
108
Member Avatar for shahab.burki

Hi, I am doing network programming in C on Ubuntu using gcc. I am facing the problem how to convert an Integer Type to ASCII Type. I have used itoa() and sprintf(), but wasn't that fritful. Can any one suggest a suitable solution to it?

Member Avatar for manutm
0
573
Member Avatar for shahab.burki

Hi, I want to read an integer value from console, but my input returns the ASCII value of integer, Please Help me. [CODE]import java.io.*; class Test{ public static void main(String args[])throws IOException{ BufferedInputStream br=new BufferedInputStream(System.in); System.out.println("Enter an Integer"); int i=br.read(); //int j=(int)i; System.out.print(i); } }[/CODE] Thanks

Member Avatar for ejosiah
0
109
Member Avatar for shahab.burki

Hi, I make a try again on Link List in Visual C++ but got an error. The code is looking right but when I debugged the source, then I realize that when the LINKLIST constructor is called then the two Node type pointers *start and *last creates trouble. Please do …

Member Avatar for computercobra
0
204
Member Avatar for shahab.burki

Hi, I am implementing Linked List in Java. I am using three classes for this i.e Data Class, Node Class and Linked List Class. Now the problem is that a searchNode method in my linked List class doesn't work properly. I have tried to debug it it, but can't understand. …

Member Avatar for darkagn
0
90
Member Avatar for shahab.burki

Hi, I am stuck in implementing the linked list in Java. I am using three classes to construct Liked List. One is Data Class (for holding Node's Data), Node Class (which encapsulates the Node properties) and a Linked List Class. Though it creates a successful linked list, but when I …

Member Avatar for BestJewSinceJC
0
149
Member Avatar for shahab.burki

Hi, I am using Visula C++ and building LinkedList. But I am studk. Please look at this if goes something wrong. Please mention it. Their are are two classes I am using for it. The first it Data Class and other one is Node class. Note that both classes are …

Member Avatar for death_oclock
0
172
Member Avatar for shahab.burki
Member Avatar for sknake
0
83
Member Avatar for shahab.burki

Hi, We no that their no support for Pointer in Java as in C and C++. So how can we print the exact location of a varaiable in java? Shahab

Member Avatar for stephen84s
1
494
Member Avatar for shahab.burki

What this error means in PHP? Call to a member function getStrippedName() on a non-object

Member Avatar for cwarn23
0
59
Member Avatar for shahab.burki

Hi, Can we declare Char Array in Java instead of String Arrays? So we can manipulate them? or we have to use Strings and then use charAt() method for it? Thanks

Member Avatar for stultuske
0
140
Member Avatar for shahab.burki

Hi, Can we use structures within classes as data type? if yes then please give some examples? Thanks

Member Avatar for Comatose
0
76