199,114 Archived Topics
Remove Filter ![]() | |
Hi I want to make a online game web site . i want to klnow , what do i need for now ? should i install any script ? please give me some information about it thanks | |
So I did some research and learn that you use the sys module to set the path for 2.5: import sys sys.path.append('usr/local/lib/python2.5/site-packages/') And that would set the path for 2.5 permanently, but if i do the samething for 2.6 or 3.0, it will not work the next time I open … | |
I made a program that inputs the radius of a circle, and then should output a circle of asterisks. however, I am just getting the fourth-quadrant part of the circle, and I need the whole circle to be printout. what do I need in my code? this is my code: … | |
Hi, I'm new here and I just need a little help with pointers and 2D arrays. I'm kind of new to programming so this might be redundant. I'm trying to make a 2D array of pointers (already have done) that points to another 2D array of double values... I have … | |
So, I have a server process that forks for every client that connects. I keep a list of connected clients that I want each fork process to have. Of course, when the process forks the child only has what it had when the fork occurred. For the solution to this, … | |
Hi, I have a piece of code below: [code=php] // Check our data if (preg_match('/[^a-zA-Z0-9]/', $new_pagealias)) $error = "Invalid page alias. Use only normal characters."; if (preg_match('/[^a-zA-Z0-9]/', $new_pagekeywords)) $error = "Invalid page keywords. Use only normal characters."; if (!$new_pagealias) $error = "Page alias is missing"; if (!$new_pagename) $error = "Page … | |
Hi, Iv had to convert a program from Java to C#, I thought I had done it, but it doesnt work, and Im at a loose end because I cant figure out why it isnt working. Anyway, what it is is a Mandelbrot Set that Im trying to display in … | |
i'm new to visual basic and I managed to make somewhat of an assignment I need. now it's not perfect but, I am terrible when it comes to calculations... what am I doing wrong? ;-; ' This procedure calculates and displays each floors ' occupancy rate. Dim intCount As Integer … | |
Hello, I was just wondering if it is possible in Java to get the host's IP address, as seen on the Internet, not network or by the computer itself. I mean, getting something like [B]87.253.145.35[/B] instead of something like 192.168.1.100 or 127.0.0.1. Or, if not, is there any popular/known server … | |
My C# program is able to work with existing MySQL and Access databases. Additionally, it will also create a new Access database if none exists. I am not able to get it to create a new mySQL database though. When the program attempts to run the ExecuteNonQuery command for CREATE … | |
While I was browsing through the forum threads long ago, i saw a thread about one assignment given toits poster. Since i am learning myself(1 month left to enter university), I decided to try writing d program . Please, you are free to correct me if I am wrong anywhere... … | |
Hey How do you go about debugging? like tips and tricks? I have been looking at my code (below) for like an hour and cant figure out what i have done wrong..... [CODE] #include <fstream> // Header File for File Reading #include <iostream> // Header File for General I/O-put #include … | |
can somebody help me with this program?? i have to program a matrix with n column and n row and it should be able to find a path moving like a horse in chess game(L) that touch every point of the matrix once. the program consist in enter the location … | |
How can I call a value that was created in 1 function into another function so that it can be used as a variable? (i.e how do I implement the values that I found in my distance function, and use them in my radius function...) [code] #include <iostream> #include <cmath> … | |
I did like: [CODE]FileStream fs = new FileStream(System.IO.Path.GetTempPath() + @"\MyTempDir" + listBox1.SelectedItem", FileMode.Create);[/CODE] And you know what happens? It partly works. It opens the files (if its a pdf file, it opens in a acrobat reader, if doc it opens in word,...) but there is no file in that directory. … | |
I want to create a data file(.txt) with the data in a mysql table. (of course i did that) [CODE] try { // Create the statement //Export the data String filename = "test.xls"; String tablename = "test"; c.getData("SELECT * INTO OUTFILE '"+ filename + "' FROM " + tablename); System.out.println(filename); … | |
Hello everyone. Im sure this is a simple winsock question but maybe im wrong... I searched everywhere and keep hitting dead ends. Im just learning how to use winsock and still have yet to find a good tutorial. But i found a class which i will start with. Only problem … | |
So my program is coming along, but now I am writing in the range checking to ensure that the inputs are actually what they should be. My code works fine for time, except for the fact that white space gets ignored. I need to ensure that a user cannot input … | |
sir, we want complete c programme for huffman encoding & decoding.im doing my b.tech project .please send me the code | |
[CODE] #include<stdio.h> #include<conio.h> #include<string.h> int n; char (*p)[40],*temp; void Input(); void ABCsorting(); void Input() { printf("How many persons u want to input: "); scanf("%d",&n); p=(char*)malloc(n*40*sizeof(char)); temp=(char*)malloc(n*sizeof(char)); int i; for(i=0; i<n ; i++) { printf("String %d: ",i+1); fflush(stdin); gets(p[i]); } printf("All strings before sorting: \n"); /*for(i=0; i<n ; i++) { printf(" … | |
here is the overloaded function i have. I have to enter a float, for example, .123 or 0.123. if there is many zeros in front, then it will skip them over, and test for a decimal, then count the numbers in the end. and then print them out. [CODE]MyFloat& MyFloat::operator= … | |
Below is my code, I have two problems. 1. I would like to remove the E with the box from the webscreen. Is there a way to do this without messing up the calculations? 2. Would like question 2 and the answer to have a , . Example want 100,000 … | |
Hi all, this is just curious question on C++ and winapi. I have heard that win32api is written in C and at the same time I have heard people saying that "light weight" applications can be written using API. This boggles my mind on how C++ works with C-based API. … | |
I have a form that is called w/ ShowDialog. Inside that form, I want to pop a message box to ask the user a question, but it doesn't show. Form: [CODE] Dim someFrame as myFrame = new myFrame someFrame.ShowDialog() [/CODE] Then, inside that form: [CODE] Dim ans As MsgBoxResult ans … | |
I need to write a function which has 2 parameters height and width and outputs a rectangle of "#" ssmbol of the appropriate dimensions. so for 93, 4) should result in the output #### #### #### but i dnt unserstand how to use the loop in this. I have only … | |
Hi! I have had to change from Python to C because of university instructions. My problem is that, when I want to make a menu for my program or whatever, I always want to define classes:P My question is simple --> are structures the best way to "replace" classes? TY | |
Help!!! I'm trying to eliminate the highest and lowest number out of 5 inputs then get the average of the remaining 3 inputs... In some instances, it gives me incorrect average.. (We are not suppose to use arrays yet) Here's my code: #include <iostream> using namespace std; void getData(double& input1, … | |
I'm trying to split an input string into an array of substrings and currently trying something like this... [CODE] public static void tryp(String inputString){ int index = 0; String[] rArray = new String[1000]; String[] kArray = new String[1000]; int startPos = 0; int x; int newRPos = 0; int newKPos … | |
Hi, I got a text file ('testdetails2.txt') and my text file looks something like this: abc123, 234 pqr,xyz "type" bc123, 234 pqr,xyz "type" c123, 234 pqr,xyz "type" n23, 234 pqr,xyz "type" aj23, 234 pqr,xyz "type" As you notice, it has got "," aswell a blank space and "". all i … | |
This program is suppose to merge the two files by taking one element at a time from each, and the third file should contain the numbers from both file from lowest to highest. Data1: 11 25 36 45 56 78 90 Data2: 1 3 5 7 54 32 78 99 … | |
All, I have a customized DataGridView where I have implemented extra functionality and bounded datasource in the same custom DataGridView (Using C# and .NET). Now, I could able to use it properly by placing it on a panel control. I have added label as button on panel control to display … | |
Hi i want to show a wap website on Java ME application but i dont know how !!! please help me to do it thanks | |
Hi again, I have a huge code written, but I'm not even halfway there. Had to split couple of procedures to make everything work smoothly etc. I was wondering, would it be reasonable to put some of my code into modules, in order to avoid compiling or similar errors in … | |
Dear All, Since in Our Country is blocking the FTP port 21 and others port, we only use Web2FTP service. But unfortunately Web2FTP service is also down. Do you know a good PHP based WebFTP script. many thanks in advance, regards, saya | |
Hi folks, my url querystring is [CODE]querytring.php?checkin=10/11/2009&checkout=10/01/2009&minprice=100&maxprice=200&page=1[/CODE] i want to remove [CODE]&page=1[/CODE] from this url. Please help Thanks | |
Hey, How not let the user to close a form with a close button? Basically, I need a form to be hidden most of the time, but sometimes it is shown by the code (intentionally). And when you hit close button, user not only closes the form, but unloads it … | |
im a astudent @ LTHS, in my forst year of Java, how do i make a default, and non-default contructor, and how to they work? | |
Hi Gurus, A colleague and I have a process where we want to look at a file we receive from a vendor (XML) and data that is in our db. In order to bypass loading the xml and comparing it once loaded we are loading the db data and xml … | |
I need to write a query for the given crystal report. The database tables and the report is attached.Please see to it. | |
I've spent a bit of time porting my database connection over to MySQL. It's taken a bit of time, but generally been fairly easy. However, one of my insert queries is currently failing due to an auto increment ID field. I have this insert query: [CODE]INSERT INTO entries(text, name, screen_name, … | |
Hi C# friends,... My code goes like this for creating a library..... [code=c#]using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; namespace ClientLibrary { public class ClientLibrary { private bool connectionStatus; private Socket oClientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); private Thread Receiving_Thread = new Thread(receiveFromServer); public String … | |
hi guys, just wanna ask, could you give me some code about session time out? i have a different page for login and index. any help would be very much appreciated. thanks in advance ^^ | |
PHP mailer class is a pretty famous 1 so i believe many of u have used or atleast heard abt it.. The problem i m facing is when i try using it with my application on my local system it works fine but as soon as i upload it on … | |
Hello all, I have basics for JavaScript (syntax, controls, loops, object etc) and also basics of XML. What else should I know to learn AJAX? What does Ajax 'animal' look like? Thanks guys | |
I'm not sure about the difference between *p[5] and (*p)[5]? Please help me clarify them? Thanks a lot! | |
Hi there, I was trying to code a simple program that bubble sorts an array into a list of numbers arranged in a descending order: Here is the code I used: [CODE=c] #define size1 5 #define size2 5 #include <stdio.h> int main() { int a[size1]={8,4,5,2,3};//array 1 int i=0; int n=0; … | |
Dont know these types of questions are asked here or not but if any one has idea please help me. i just started started learning system programming and want to pursue a career in the sys prog area. below is the program that use a fork() call. i read in … | |
Hai guys, A very good morning to you.Currently i'm using python3 in linux. In windows tkinter is working fine but in mandriva linux spring 2009 it fails to import. Can you please tell me step-by-step on how to fix this issue? In python3.1 home page the description is not clear … | |
Hi I'm creating a multiple form GUI app using a scene-manager to set the current visible form. There isn't an issue regarding it working, that's fine. What I am noticing is that when each form is set to be active/visible, it takes a few seconds to load each component, and … | |
Hi: I have a workbook that has several sheets. One sheet called FORM is password protected (by me). I have a macro that clears all sheets but when it gets to FORM it prompts for the password (which I don't wan't to give to my users). Is there a way … |
The End.