199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hno

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

Member Avatar for Ezzaral
0
119
Member Avatar for i are smart

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 …

Member Avatar for vegaseat
0
689
Member Avatar for needhelpe

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: …

0
88
Member Avatar for Tamaki

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 …

Member Avatar for Tamaki
0
172
Member Avatar for cwarren13

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, …

Member Avatar for venomxxl
0
2K
Member Avatar for rokape

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 …

Member Avatar for Will Gresham
0
169
Member Avatar for Byrne86

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 …

Member Avatar for ddanbe
0
585
Member Avatar for hhh0505

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 …

Member Avatar for hhh0505
0
2K
Member Avatar for ilikerps

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 …

Member Avatar for davido82
0
451
Member Avatar for lukeser

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 …

Member Avatar for lukeser
0
6K
Member Avatar for tkud

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... …

Member Avatar for pecet
0
112
Member Avatar for Ponomous

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 …

Member Avatar for Ponomous
0
127
Member Avatar for nick30266

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 …

Member Avatar for thines01
0
215
Member Avatar for PDB1982

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> …

Member Avatar for jonsca
0
82
Member Avatar for Mitja Bonca

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. …

Member Avatar for Mitja Bonca
0
159
Member Avatar for jrosh

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); …

Member Avatar for JamesCherrill
0
123
Member Avatar for u8sand

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 …

Member Avatar for lashatt2
0
116
Member Avatar for dotnabox

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 …

Member Avatar for VernonDozier
0
316
Member Avatar for himabindu

sir, we want complete c programme for huffman encoding & decoding.im doing my b.tech project .please send me the code

Member Avatar for ck.ckravi
0
259
Member Avatar for thebluestar

[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(" …

Member Avatar for Ancient Dragon
0
161
Member Avatar for ninreznorgirl2

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= …

Member Avatar for Ancient Dragon
0
114
Member Avatar for mcrawford3911

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 …

Member Avatar for mcrawford3911
0
105
Member Avatar for Stefano Mtangoo

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. …

Member Avatar for Ancient Dragon
0
274
Member Avatar for rciprogrammer

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 …

Member Avatar for rciprogrammer
0
119
Member Avatar for jaison2

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 …

Member Avatar for vegaseat
0
98
Member Avatar for Yee

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

Member Avatar for gerard4143
0
102
Member Avatar for violet101

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, …

Member Avatar for violet101
0
188
Member Avatar for skiplatte

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 …

Member Avatar for skiplatte
0
158
Member Avatar for SALMANSOHAIL

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 …

Member Avatar for SALMANSOHAIL
0
2K
Member Avatar for StarZ

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 …

Member Avatar for Alfredtwo
0
148
Member Avatar for jchaturv

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 …

Member Avatar for Geekitygeek
0
269
Member Avatar for mahdi68

Hi i want to show a wap website on Java ME application but i dont know how !!! please help me to do it thanks

Member Avatar for peter_budo
0
111
Member Avatar for deftones

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 …

Member Avatar for deftones
0
90
Member Avatar for sayakyi

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

Member Avatar for sayakyi
0
150
Member Avatar for itsrahulk

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

Member Avatar for venkat0904
0
118
Member Avatar for deftones

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 …

Member Avatar for deftones
0
100
Member Avatar for brokenbentou

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?

Member Avatar for JamesCherrill
0
167
Member Avatar for scarpacci

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 …

Member Avatar for Geekitygeek
0
137
Member Avatar for nirvaan

I need to write a query for the given crystal report. The database tables and the report is attached.Please see to it.

Member Avatar for kishore_kke
0
69
Member Avatar for benkyma

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, …

Member Avatar for benkyma
0
409
Member Avatar for themigrant

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 …

Member Avatar for Geekitygeek
0
155
Member Avatar for xuexue

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 ^^

Member Avatar for kvprajapati
0
105
Member Avatar for venkat0904

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 …

Member Avatar for venkat0904
0
88
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
0
105
Member Avatar for thebluestar

I'm not sure about the difference between *p[5] and (*p)[5]? Please help me clarify them? Thanks a lot!

Member Avatar for Iam3R
0
178
Member Avatar for s.p.i.

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; …

Member Avatar for dkalita
0
96
Member Avatar for Iam3R

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 …

Member Avatar for dkalita
0
121
Member Avatar for python.noob

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 …

Member Avatar for python.noob
0
382
Member Avatar for Dekken

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 …

Member Avatar for Dekken
0
240
Member Avatar for halem2

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 …

Member Avatar for vba_dev
0
143

The End.