199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rajeesh_rsn

I was amazed when see a web site loading. Visit [url]www.m4marry.com[/url] This site will load in amazing speed even if it had big size. How we can do that... Anyone had any idea ? Please reply... I am sorry if the post is in the wrong place thanks Rajeesh

Member Avatar for samarudge
0
410
Member Avatar for rizrash

Hey friends i just want some help....well got a simple task this weekend to make a rings of different colors using circles....like i want an output in which a circle appear on top left and after little delay another one appear near to the first one...and so on......and all should …

Member Avatar for rsashwinkumar
0
628
Member Avatar for shailev

hi! i want to write a ftp server. i started writing: [CODE] from socket import * server= socket(AF_INET, SOCK_STREAM) server.bind(("0.0.0.0", 21)) server.listen(5) while(1): (client_s,client_addr)=server.accept() command=client_s.recv(1000) print command client_s.close() [/CODE] i run it and wrote in the internet explorer: [url]ftp://localhost[/url] but nothing happen.. it doesnt print the recieved command. what can …

Member Avatar for Gribouillis
0
57
Member Avatar for fidelinho

is it possible to attach a combo box to an input box ( or maybe a label or textbox) ? be more precised, i would like to know how to get codes for combo box thanks for advance

Member Avatar for cguan_77
0
90
Member Avatar for joejoe55

Can I use this function to read a percent Value from an ini? For example it would be something like this if (Life drops below X percent) (cDrinkaPotion) The code I have so far only reads key values and such, I dont know how to read a number value.. [CODE]bool …

Member Avatar for mitrmkar
0
1K
Member Avatar for thacravedawg

I have an application that accepts around 20 fields of data (string/int) from the user. Then allows the user to edit a dataset in a datagrid, and sort this dataset to display the updated dataset. I now need to take the fields of user input (textboxes) and the applicable dataset …

Member Avatar for ddanbe
0
122
Member Avatar for msalman

hey, I've two classes and one class inherit the first class. I'm trying to add objects to vector (could be parent or child) and then call the overriding function (print) to display values passed in their respective constructors. But for some reasons only parent class' function (print) is invoked. I …

Member Avatar for msalman
0
166
Member Avatar for launic

I'm trying to recursively search through directories and pull out any files or subdirectories. This is the code I have: [code=cplusplus] int readDir(string directory, vector<string> &fileList) //directory is the name of a direcotry //fileList is an empty vector DIR *dir; struct dirent *ent; if((dir = opendir(director.c_str()) == NULL){ cout<<"Invalid Directory"<<endl; …

Member Avatar for zamp
0
579
Member Avatar for wzseow

Hi there. I've written a program to sort a few numbers. However, I get an error missing function header. Can you please guide me where did it go wrong? Thanks [CODE]// #include "stdio.h" int sort(double top, double middle, double bottom); int main() { double x[20]; x[1]=0; x[2]=-0.07; x[3]=0.08; x[4]=-0.01; printf("%.1d,%.1d",x[1],x[2]); …

Member Avatar for wzseow
0
116
Member Avatar for Ken JS

How do I find the Parity Check Matrix, when I’m given the generator matrix? e.g. | 1 0 0 1 1 | G = | 0 1 0 1 2 | | 0 0 1 1 3 | Can anybody teach me how to find the Parity Check Matrix or …

Member Avatar for SITI HARYANTI
0
400
Member Avatar for winrawr

I'm unsure of how declaring **x (a pointer to a pointer of x) is the same as declaring x[][] (a two-dimensional array of x's)... The theory I have is this: int *x = {whatever}; (x is a pointer to the first int value) *x (first array item, value pointed to …

Member Avatar for NicAx64
0
175
Member Avatar for claritydigital

I dont understand wat has happened... the code was working fine yesterday when testing, and now i try to use it today, and it doesnt work. setcookie() isnt setting the cookie... Maybe i have missed something, so hopefully someone here can see where ive gone wrong. Just to confirm though, …

Member Avatar for claritydigital
0
195
Member Avatar for qinazaza
Member Avatar for mjzammit

Hi The scenario is this: 1. I have a multiline TextBox in my Web application 2. i search a string from the text found in the TextBox 3. After i find the string in the TextBox i must give the line number of where it is in the Textbox or …

Member Avatar for aj_ling
0
102
Member Avatar for daniwebnewbie

Hi. I just started python programming tonight and am trying to use good practices such as list comprehensions etc. However, I'm trying to get a list of all files in a directory (and subdirectories) and only add the filename to my list if its extension matches one of the extensions …

Member Avatar for daniwebnewbie
0
151
Member Avatar for Takafoo

So having some trouble with the error checking in the below function. Currently if you enter something wrong like r it returns "Pleae Enter next move" which is correct. My problem is that if I enter rrr it will repeat "Please enter..." 3 times instead of just once. I hope …

Member Avatar for Takafoo
0
104
Member Avatar for death_oclock

Is there any way to force fwrite() to write in big-endian format no matter what? I am trying to write a MIDI file and they are always big-endian. Converting every value I write to big endian beforehand would be extremely tedious. Ideas?

Member Avatar for mcldev
0
853
Member Avatar for JameB

I am trying to write a program that given two integers in two strings, substracts the second integer from the first integer and outputs it. 1. I read in two strings. 2. I reverse them (I am also adding them, I found it easier to add if they are reversed) …

Member Avatar for JameB
0
188
Member Avatar for crumpet

Hi folks, Just hoping someone can point me in the right direction with this one. Say I have these key:value pairs in a dictionary, d1: [CODE="Python"] d1 = {fruit:['apples', 'bananas','oranges','tomatoes'], vegetables:['carrots','lettuces']} [/CODE] And I wanted to remove a list (containing tomatoes, oranges) from the value of the key fruit and …

Member Avatar for daniwebnewbie
0
140
Member Avatar for Moe

Hello! I am writing a program to overload ~ operator to reverse the given string. Here is my program. The problem message is that"Could not find a match for string::string(char). I am writing my program on linux. I can not use strrev function. [code] #include<iostream.h> #include<string.h> class String { char …

Member Avatar for Lerner
0
341
Member Avatar for hurbano

I have an assingment in which i have to right an algorithim to get through a maze. I dont know where to really start with it. I know in the instructions it said to write it as though we used our right hand as a guide. in other words we …

Member Avatar for hurbano
0
112
Member Avatar for emiller7

The following program accepts five student names and 4 test scores for each. Then calculates and displays the average and letter grade for each students. Well, that is what it is supposed to do. Judging by the long list of errors I get, it looks like none of my arguments …

Member Avatar for VernonDozier
0
6K
Member Avatar for slimjimmer

I am trying to make a proxy server for my house to connect to the internet through. I am trying to use phpproxy, but I have no background in php or anything like this other than a little html. Can anyone show me how to do this please?

Member Avatar for digital-ether
0
229
Member Avatar for blackbyron

Hello, I am writing a program about gas pump. Here is my code [ICODE]class GasPump{ public: GasPump();// loads all pumps w/ 50 gallons, price is 2.00, 2.25, 2.50 GasPump(int l, int m = 100, int h = 100); //price is 2.00, 2.25, 2.50 GasPump(double pl, double pm, double ph); // …

Member Avatar for blackbyron
0
106
Member Avatar for erin0201

Here is my code including header files. My program is supposed to be a fraction calculator that handles exceptions such as division by zero, division by non-integer values, allows user to re-enter any values the program threw an exception for, and allows the user to continue to use the program …

Member Avatar for erin0201
0
133
Member Avatar for Alibeg

[code]int **p; p = malloc (x * sizeof *p);[/code] sizeof *p - (i am not quite sure, and i was thinking) does it calculate the size of *p as size of double pointer, size of pointer or as size of variable pointed by pointer another exmaple with same [icode]int **p;[/icode] …

Member Avatar for nucleon
0
102
Member Avatar for perumar

The type Point is a fairly simple data type that represents a point in the two-dimensional plane. Write a definition of a class named Point that might be used to store and manipulate the location of a point in the plane. You will need to declare and implement the following …

Member Avatar for tux4life
0
262
Member Avatar for mastermosley

I have a small, probably poorly coded telnet server. You connect, it shows some ansci art and then you just type to chat and it displays your ip address following your message. The problem I'm having is implementing a backspace. When you use backspace in command prompt it simply just …

Member Avatar for mastermosley
0
164
Member Avatar for killhha

im making a program and when you select exit in the menu i want it to be like: Are you sure you want to exit? Yes No Enter Esc so when you press enter it will exit and when u press esc it will go back to the menu. everything …

Member Avatar for killhha
0
285
Member Avatar for jackiejoe

So I have been messing around with Swing and am starting to grasp general functions with buttons and text boxes etc.. But what I want to do is have a main page (JFrame Form) with 3 buttons and when I click whichever button I want it to open another JFrame …

Member Avatar for weblover
0
120
Member Avatar for devstudio.2007

Dear All, Everytime i want to logg off or restart to set python path so how to avoid this logg off or restart options. Actually iam using two Softwares using this different Pythonpath if iam using second software means again i want to restart Pc how to avoid this Situation. …

Member Avatar for sneekula
0
105
Member Avatar for erdomester

Hi all! I have several tables in an MsAccess db and I would like to read all data of a certain column to a Hashmap. With 3 tables and using static array, it' working but i have about 300 tables. With the static array, I used sg like this: [code=java] …

Member Avatar for erdomester
0
1K
Member Avatar for dragon@dragon64

i am trying to mutiply and add 2 dnamic texts on a php form, but i do not seem to get the reply, but i get the following results "sum (4 + 1)" This is the code that i typed in [ICODE](<?php echo $row_standings['w']; ?>+<?php echo $row_standings['d']; ?>[/ICODE] The 4 …

Member Avatar for dragon@dragon64
0
99
Member Avatar for danibarry

The Problem: Aircraft fly from one point to another. At the same time, birds fly around. The objective is to determine whether the aircraft will encounter birds or be able to reach its destination safely. The airspace is divided into 100 squares (10 x 10 squares). For simplicity, we shall …

Member Avatar for quuba
0
146
Member Avatar for claritydigital

Hi Daniweb JS guru's, Ive seen this everywhere, but have been unable to find a tutorial, or anything on how to implement it into my php pages. The best example for me to explain with, are live at facebook and youtube. Facebooks newest user status feature the "like this" link …

Member Avatar for peter_budo
0
226
Member Avatar for badbloodyeyez

Hi, I would like to know how can I make the system beep louder I know you can change the frequency of the beep but its not loud enough as I am using it in a noisy environment. How can I sound the loudest system beep or make the system …

Member Avatar for vb5prgrmr
0
468
Member Avatar for daviddoria

I'm just trying to figure out how this stuff works. I wrote this function: [code] #include <algorithm> #include <vector> double VectorMax(const vector<double> &a) { vector<double>::iterator pos; pos = max_element (a.begin(), a.end()); return *pos; } [/code] and call it with: [code] vector<double> Numbers; Numbers.push_back(3.4); Numbers.push_back(4.5); Numbers.push_back(1.2); cout << VectorMax(Numbers) << endl; …

Member Avatar for nucleon
0
193
Member Avatar for bondgirl21

Hi, I want to write a for..next loop...for a "For next " button... when clicked, the loop will execute for a short period (This time should be kept track of by the counter) and stop..... When the button is clicked "For next"...the speed of the object should increase and then …

Member Avatar for bondgirl21
0
107
Member Avatar for Mr.MJ

I am new in Asemply language and the little man so I would be thankful if someone shed me a light how to write a program and multiply 2 numbers together.

Member Avatar for Mr.MJ
0
131
Member Avatar for cppStudent

I'm reading Data structures and algorith analysis by Weiss lately. There's just one part that doesn't make sense to me at all. [CODE=java]public class QuadraticProbingHashTable<AnyType> { public QuadraticProbingHashTable() { this(DEFAULT_TABLE_SIZE); } public QuadraticProbingHashTable(int size) { allocateArray(size); makeEmpty(); } public void makeEmpty() { currentSize = 0; for (int i = 0; …

Member Avatar for cppStudent
0
908
Member Avatar for daviddoria

I am trying to use the for_each from stl algorithm. [url]http://www.cplusplus.com/reference/algorithm/for_each.html[/url] [code] #include <algorithm> #include <vector> #include <iostream> template <typename T> void OutputObject(const T &obj) { cout << obj << endl; } template <typename T> void OutputVector(const vector<T> &V) { for_each (V.begin(), V.end(), OutputObject); cout << endl; } [/code] I …

Member Avatar for daviddoria
0
576
Member Avatar for nor_d83

Hello everybody.. I have tried to use these codes that I got from a book. I'm using MSFlexGrid, with the Grd name. It was set to be invisible (false visible). And when i enter the year (tahun) needed in the "txttahun" textbox, it will only show the data that related …

Member Avatar for nor_d83
0
126
Member Avatar for usman2k4u

Implement the following improvement to the quick sort and find out the percentage of key comparisons that can be saved in each case. Using randomly generated 1000 integers as input for sorting. Repeat the experiment 1000 times for each case to get the average percentage reduction in key comparisons. Case …

Member Avatar for Narue
0
5K
Member Avatar for blondie2007

Hi, I'm new to C# and trying to develop this program that allows the user to draw freeform with the mouse on a panel. There are 2 groupboxes. One is called Color and it has 4 radio buttons: red, blue, green and black. The second is Size and has 3 …

Member Avatar for hkdobrev
0
1K
Member Avatar for finesse

Hi everyone, Can I please get somehelp, I have locked myself out, I know the user/password but can not sure which ini file to edit to input the pass? I am new to this, please help thanks [QUOTE] Welcome to phpMyAdmin Error MySQL said: Documentation #1130 - Host 'localhost' is …

Member Avatar for cwarn23
0
104
Member Avatar for Aamit

Hi, I want to add cricket game in my site... when user finish the game..he submit the score result.. i want to save that result in database... And display top scorer.... How to do this?? any link or sample example plz...

Member Avatar for Aamit
0
79
Member Avatar for harcaype

hi. my thread title seems strange but its really about comparing unlike values as an output. I want all values that are not LIKE the other values. To make things clearer. Here's my query: [ICODE]SELECT Records.[Officer ID], Records.[Plate Number], Records.[Violation Commited], Violations.[Violation Code], Records.[Street Name], Records.[City of Apprehension], Records.[Vehicle Category], …

Member Avatar for edgarlip
0
160
Member Avatar for swappy

I have two tables in my database, one customer and other cddetails.. n i`m trying to search both tables for letter entered by user.. The code for Customer table works fine...but the code for cddetails is giving me some problem... I would appreciate if some could help me out... Here …

Member Avatar for swappy
0
392
Member Avatar for swappy

if db.open = true then db.close End if I want some code like this where it will check in the form load and if the connection is open , and if it is open it will close it..

Member Avatar for swappy
0
405
Member Avatar for georgeajcka2009
Member Avatar for georgeajcka2009
0
528

The End.