199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
[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() … | |
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 … | |
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 … | |
[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; } … | |
[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 … | |
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. … | |
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... | |
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 … | |
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 … | |
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? | |
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 … | |
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 | |
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 … ![]() | |
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 … | |
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 … | |
![]() | 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); … ![]() |
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, … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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% … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) | |
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 … | |
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. | |
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). … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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) { … | |
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 … |
The End.