199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for AboJaD

i have two web servers, one that hold the site files and database, the other have a folder named images which will hold the member photos. on the site server i have a php file, which should contain a script that grab the photo the member chose to upload and …

Member Avatar for MindSter
0
196
Member Avatar for lewashby

[CODE]background_image_filename = "sushiplate.jpg" sprite_image_filename = 'fugu.png' import pygame from pygame.locals import * from sys import exit pygame.init() screen = pygame.display.set_mode((640, 480), 0, 32) background = pygame.image.load(background_image_filename).convert() sprite = pygame.image.load(sprite_image_filename) # The x coordinate of our sprite x = 0. while True: for event in pygame.event.get(): if event.type == QUIT: exit() …

Member Avatar for lewashby
0
837
Member Avatar for Krstevski

Hello friends, I want to found some algorithms for text processing. I have a lots of entries in the database and now I want to split by category (news, history, sport, business etc...) but I don't know none algorithm(s) for text processing. So, my question is, what is the most …

Member Avatar for Krstevski
0
114
Member Avatar for carlogl

I have problems with this part of my code, I try to make a dynamic email and send it, I already can send a plain email with this but now I need to make an email with personalized info. I hope you guys can take a quick look. [CODE=php] $smtp …

Member Avatar for carlogl
0
156
Member Avatar for tennis

[CODE]Class date{ protected: int year_; int month_; int day_; public: date(); date(const int& d, const int& m, const int& y); date operator++(); //prefix operator date operator++(int); //postfix operator date operator--(); //prefix operator date operator--(int); //postfix operator }; date date::operator++(int){ //postfix operator return current value date d=*this; *this=next_date(d); return d; } …

Member Avatar for webweb2
0
78
Member Avatar for zoran

[font=Courier New]Hi I am trying to communicate with EPP Server. I have java client example which use Java HttpURLConnection method to establish the connection. Example: =================================================== 1.String address = "https://someserver.serv.com:429/epp/proxy"; 2.URL url = new URL(address); 3.HttpURLConnection c = (HttpURLConnection) 4.url.openConnection(); ==================================================== How can I do something similar to communicate with …

Member Avatar for ysihaoy
0
232
Member Avatar for Bigbrain99

How to label the first input of user as 1 ,second input 2, third input 3..etc by using ofstream append? Everytime when I used terminal to run it e.g. ./addcontact.cpp name1 ./addcontact.cpp name2 so that inside dat file it will has number of sequence in front of new name? e.g. …

Member Avatar for Bigbrain99
0
109
Member Avatar for new SE

hye all.. now i'm doing an insert statement in asp.net using c#.. how i can make a validation for same data entry? anyones can help me? thanks in asdvance...

Member Avatar for new SE
0
75
Member Avatar for revsin

I'm a noob, there got that outta the way. Wrote this to serve as a very basic inventory control for our store's iPad inventory. Lets junior employees count our inventory, and then appends the count in a text file. 99% there for what I want, but having trouble getting it …

Member Avatar for revsin
0
104
Member Avatar for Kingcoder210

I got a serious problem. Though I have made my program newly it shows error. I have used 1280,1024 animation only for first form then used 1280,1024 image for every form. Today I was checking then it was showing me error message for 19th & 20th form. If I use …

Member Avatar for JRitchie777
0
124
Member Avatar for nv136

Hello, everyone. I have a small program, and i want that program to show how much RAM the whole system is using, and i want it to show how much R.A.M my program is using, any ideas on how to do that? is it hard?

Member Avatar for nv136
0
143
Member Avatar for techick

Hi...next semester I will be taking advanced programming in C++. I would like to know any good up-to-date books that I can buy and read ahead to get a head start so I can be prepared for the class

Member Avatar for khusro.iqbal
0
112
Member Avatar for jhonpeter1980

Hey Folks, I am back with CSS 3.0 background options … I hope you’ll love this one…. All the details you can find here [url]http://innovator.samsungmobile.com/cms/cnts/knowledge.detail.view.do?platformId=12&cntsId=7400[/url] Some of the details covered the above article: Background (multiple) The css3 gives the possibility to apply more background images to a single element and …

Member Avatar for Kieran Y5
0
177
Member Avatar for cpu278

Hi, quick question, more of a curiosity. Is there a PHP method that has as input an int and returns the name of the number as a string value? Say, for input 0 it returns "zero", for 7 returns "seven", and so on? Thanks

Member Avatar for cpu278
0
146
Member Avatar for daggerdvm

can you help me fix this code to make it better and more acceptable as per coding standards and such. im trying to get a good grasp of classes in c++ [code=c++] #include <iostream> using namespace std; class Calculator { private: int number1; int number2 ; public: Calculator setCalcNumbers(int input1 …

Member Avatar for embooglement
0
153
Member Avatar for kadvar

Hi, I have a huge file (over 60 GB) which has lines in the following consistent format. "entry1";;"entry2";;"entry3";;"entry4";;"entry5";;"entry6";;"entry7";;"entry8";;"entry9";;"entry10";;"entry11" The problem is that a Few lines in this file have a line break precisely after the 3rd entry like this: "entry1";;"entry2";;"entry3\n ";;"entry4";;"entry5";;"entry6";;"entry7";;"entry8";;"entry9";;"entry10";;"entry11" I need to delete that extra newline and concatenate …

Member Avatar for kadvar
0
139
Member Avatar for cpu278

Hi, I looked for any posts on this but couldn't find any, it should be pretty easy. I have a Company table with parent_id that points to a company itself. I want to get the names of the parent, if any. So if I have my table as cpy_id cpy_name …

Member Avatar for cpu278
0
204
Member Avatar for stevee1984

A win32 listview with the view style set to LV_VIEW_DETAILS will not draw onto a window with its exstyle WS_EX_COMPOSITED set? Why? Heres my code for changing my dialogbox to composite if anyone is interested: [CODE] case WM_INITDIALOG: { unsigned long styles = GetWindowLong(hwndDlg, GWL_EXSTYLE); SetWindowLong(hwndDlg, GWL_EXSTYLE, styles | WS_EX_COMPOSITED); …

Member Avatar for stevee1984
0
322
Member Avatar for focusondot

Hi Community of DANIWEB, first time here, first post below...and I'm pretty new at this as well. I'm getting this error "Column count doesn't match value count at row 1" My code is: [CODE]$insertSQL = sprintf("INSERT INTO tearSheet (". "compType, ". "compType2, ". "report_date, ". "numEmployees, ". "cliNumber, ". "execSummary, …

Member Avatar for focusondot
0
132
Member Avatar for glenak

Hi all, I want to write some cryptographic operations using RSA, but its provider, bouncy castle, does not come inbuilt in java, which is why when I put in this code: [CODE]Provider bcProv = new org.bouncycastle.jce.provider.BouncyCastleProvider();[/CODE] I went to the providers site and they said something about putting this line …

Member Avatar for glenak
0
111
Member Avatar for michdd

I'm getting this error: [CODE]error: no matching function for call to 'cp::cpImageButton::SetMouseClickCallback(TitleScreen* const, void (TitleScreen::*)())'| note: candidates are: void cp::cpImageButton::SetMouseClickCallback(DisplayObjectContainer*, void (DisplayObjectContainer::*)())|[/CODE] However, TitleScreen inherits from DisplayObjectContainer, so I'm unsure why this isn't working. I haven't really worked with inheritance in C++ much, so a push in the right direction …

Member Avatar for mike_2000_17
0
151
Member Avatar for ceal21c

Good Morning Guys, I have scoured the net for help with this problem of temporarily disabling mouse clicks on a VB Net form and have not been able to find a solution that works. I'd like to prevent users form clicking on a form when i'm doing some background processing. …

Member Avatar for PsychoCoder
0
3K
Member Avatar for Bazzaah

Hi I am writing a site that will include an audio dictionary. The dictionary will have a working search function. [B]This is what I have so far:[/B] When a search is made, one or more results is returned. The user can click on each result to get taken to a …

Member Avatar for MindSter
0
189
Member Avatar for sgweaver

I am creating a form that you don’t actually submit in order to allow people to download files. You select different options with radio buttons and drop-down menus and then use that information to “show/hide” divs with javascript. That part works, but if the user leaves the page and then …

Member Avatar for azegurb
0
272
Member Avatar for ftl25

Hi. I am currently building a small DLL (~20 functions so far) project to sit between a larger DLL and a VB project. I am now at a stage where I want some advice before proceeding (I can fairly easily make changes at this stage, but if I continue it …

Member Avatar for mike_2000_17
0
122
Member Avatar for samsons17

Hi guys.... It has been a long time since i left this forum.. Now i'm actually back studying c++ and here is the little problems that i got with the 2D array question. I need to create this pattern using the 2D array: 1 0 1 0 1 1 0 …

Member Avatar for Fbody
0
132
Member Avatar for daviddoria

I am trying to remove the need to #include stl elements in my header (a requirement for a project I work on). I wrote a "wrapper" for std::vector called "MyVector". I declare a pointer to a MyVector as a member of MyClass. Then when I try to use this in …

Member Avatar for daviddoria
0
263
Member Avatar for dflatt

i'm trying to use string stream to get data from an input file. the program works until it get's to adding the elements to the array. i'm still not completely sure how to make use of stringstream yet or if i'm using it right. [CODE] ifstream ipf; ipf.open(test.txt); char c; …

Member Avatar for dflatt
0
147
Member Avatar for Dremerend

Hi, I am trying to write a somewhat basic program to read and write to a .cfg file(text file). Inside the .cfg file are a bunch of lines like so: server 127.0.0.1 servername Test server_no 1 server_group 1 etc, etc. The first word in the line being the name and …

Member Avatar for PsychoCoder
0
138
Member Avatar for ciali

2. A student studying Information Technology at Polytechnic of Namibia is examined by coursework and written examination. Both components of assessment carry a maximum of 50 marks. The following rules are used by examiners in order to pass or fail students. a. A student must score a total of 40% …

Member Avatar for Adak
0
132
Member Avatar for belometer

Hello there, I'm in the process of learning C# and windows forms. What I'm trying to do is adapt some scripts I have already made using PHP and MySQL to work in a windows environment and GUI. I previously wrote it using PHP because I was already familiar with the …

Member Avatar for belometer
0
179
Member Avatar for andrewjrmill

Hi everyone i need some help im trying to compile a visual c++ program but theres a make file how do i us this to compile my program to exe im using windows xp thanks for your help

Member Avatar for helioptra
0
118
Member Avatar for indigo.8

Hey, I have an array of ints that are read from a file then stored in an unsigned char array. The array is declared in a static link. The pointer is then passed to main. Main then calls a DLL which will process the information that is stored in the …

Member Avatar for indigo.8
0
5K
Member Avatar for MaiHunDown

Hi I have done C# but that is not enough Please tell me what should I do for more.... Thanks

Member Avatar for euroazn
0
87
Member Avatar for pgmarco

Hello, I am trying to add variables from select options, but I am getting the $NaN error with certain items. The first item is the video under the low end build, you have to select MSI Radeon HD430. The second item is sound under the high end build, you have …

Member Avatar for pgmarco
0
135
Member Avatar for davidscr

Hi, i realized a web service with xfire library, tested with a simple client simulator and with xmlspy. Now another client try to invoke the service, but this is the error that i can read on Tomcat catalina log. Can you help me to understand where is the problem? Thanks …

0
107
Member Avatar for Auraomega

Finished writing this a little while ago but unfortunately the generated MD5 doesn't match other application's hashes. I have basically used [URL="http://en.wikipedia.org/wiki/Md5"]Wikipedia[/URL] for reference. I have a feeling my error is introduced in the padding stage but I can't be certain, hoping a fresh set of eyes could point out …

Member Avatar for Kieran Y5
0
266
Member Avatar for glenak

Hi all, Ok, so I know how to write a simple client/server app where the send a message from the client and the message displays on the server's textarea, and I send a message from a server and it displays on the client's textarea. To do this I normally use …

Member Avatar for glenak
0
149
Member Avatar for PsychoCoder

C# code snippet demonstrating how to set the status of a specified Windows service. Provide the name of the service and it's value (it's an integer value described in the comments)

0
769
Member Avatar for heshanm

Hi, I want to retrieve data from my database and display it in a particular form. The data should be displayed in text boxes. This is the coding that i have used. But it is not working. Can someone help me out...... [CODE] <?php $connect=mysql_connect("localhost","root",""); mysql_select_db("bank",$connect) or die ("could not …

Member Avatar for MindSter
0
148
Member Avatar for PsychoCoder

This is a snippet that will get either all the child controls of a form (other other control) or controls of a specified type. This is for C# 4.0 as it utilizes an optional parameter.

0
3K
Member Avatar for jonathan96

First off, sorry if this is the wrong section. Adobe Forms isnt exactly Web Development, but its the only place I could find to post about javascript. If this isnt the correct section, could someone please redirect me? Thanks. Now, onto the question (please note, I am inexperienced with javascript). …

Member Avatar for macgurl70
0
211
Member Avatar for nocookies92

I'm trying to make a program that will toggle a boolean value and paint a red rectangle on the right side of a swing panel when you press the 'a' key. Unfortunately, I'm not having much luck, because when I hit 'a' nothing happens. My mistake is probably something obvious …

Member Avatar for nocookies92
0
169
Member Avatar for srikanth2321

Hi, I have a file in the project which is called as it is. [CODE] var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("WindowsFormsApplication2.ds.cdx"); var bytes = new byte[stream.Length]; var read = stream.Read(bytes, 0, (int) stream.Length); var molecule = MolImporter.importMol(bytes);[/CODE] How can I give the path of the file. I have given the path like …

Member Avatar for srikanth2321
0
60
Member Avatar for glenak

Ok, this is very, very strange, and annoying. I declared this variable in my IDE: [CODE]long me = 2323237777777;[/CODE] And I get a compilation error saying that the literal 2323237777777 of type int is out of range. I don't understand. Isn't long supposed to be able to handle this type …

Member Avatar for glenak
0
107
Member Avatar for devHelp

I want to search a folder/directory on a client's computer when a button is pressed. Opendir seems to scan the path on the server and not the client. Can anyone confirm or deny this, and if it is possible how should I go about doing it?

Member Avatar for mschroeder
0
150
Member Avatar for lgriess

Hi all, I need some advice, I've been asked to connect an html application to a .net application. I have a login form in the html that needs to be authenticated and the user to be brought into the .net app, how can I use the same authentication functions in …

Member Avatar for lgriess
0
186
Member Avatar for countpuchi

Okay, First and foremost im new to the forum. Hi and Thx to anyone who helps :D Anyhow, i would like to ask you guys if it is possible to separate a String with tokens one by one. Then make them appear in the jTextField with only 1 word per …

Member Avatar for jon.kiparsky
0
198
Member Avatar for fire_

Hello. I have some problems. 1.With for cycle. This is my code: [CODE]#include <iostream> #include <fstream> int main () { int i; int i2; char sentence [200]; char repeat; ofstream file ("file.txt", ios::app); for (i=0; i<1;) { cout << "Enter sentence (max. 200 symbols)\n"; cin >> sentence; if (!file) { …

Member Avatar for Kanoisa
0
167
Member Avatar for searchacar

Hello everyone, I have a site [URL="http://www.searchacar.co.uk"]used cars[/URL] and I am thinking to implement search facility. I need some information to implement a searching similar to autotrader. Means when people search on my site it shows cars according to closest to postcode search. Is this easy to implement. Are there …

Member Avatar for benjaminFowl87
0
82

The End.