199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dthatsme33

I currently have Coldfusion running on IIS on our webserver. I need to install Apache for a website I am working on. I've been doing research on how to handle Coldfusion for both servers but I'm not sure what the best way is. 1. I could install Apache on Port …

Member Avatar for dthatsme33
0
162
Member Avatar for di mo

You have a necklace of N red, white, or blue beads (3<=N<=350) some of which are red, others blue, and others white, arranged at random. Here are two examples for n=29: 1 2 1 2 r b b r b r r b r b b b r r b …

Member Avatar for Lerner
0
207
Member Avatar for toolmanx

I have a simple program that I am having trouble debugging. It contains two different problems. 1. If I run a MessageBox in this program after the program is up and running, the program crashes. I have to call the Task Manager to shut down the program. 2. SetTimer will …

Member Avatar for MrSpigot
0
1K
Member Avatar for sumithar

I created a little script using the datetime functions in python and am trying to convert this to a .exe using py2exe. When I try running this from someone else's machine I get an error message about calendare module not found This is the python [code]import datetime import calendar no_of_days …

Member Avatar for vegaseat
0
639
Member Avatar for m-hrt

i have some script java script which is working but i want to do it some thing else [CODE]<script type="text/JavaScript"> function validate_required(field,alerttxt) { with (field) { if (value==null||value=="") { alert(alerttxt);return false; } else { return true; } } } function validate_form(thisform) { with (thisform) { if (validate_required(email,"Email must be filled …

Member Avatar for essential
0
146
Member Avatar for nschessnerd

Hey Im writing a program that needs to send data over http, sometimes 45 minutes between packets, sometimes 10 seconds. I noticed that when i shut the server down it sends a lot of fin packets... so i guess my socket logic is off... i dont have a lot of …

Member Avatar for nschessnerd
0
95
Member Avatar for asweetroxxi

i finished the program but the input of 0 and one is too much i want to know how to have it read from a file i understand i have to use inFile. open but where do i put it i put my whole program in the thread: #include <iostream> …

Member Avatar for tux4life
0
105
Member Avatar for coolmind259

Hi Guys, I have a problem in uploading images on the server. I have tried on my localhost and its works fine, but when I upload on the server then file uploading doesn't work fine,file is not saving in the sarabase as well. Please help me in this , thank …

Member Avatar for eriksank
0
121
Member Avatar for Zibo

Hello. I've got such example statement: [code=Java]for( int i=0; i <= 10000; i++ ) myTextArea.setText( myTextArea.getText()+ i + "\n");[/code] What is the problem? I can't figure it out, why in every iteration of loop the text area isn't refreshing with new String added. When this loop is iterating, app freezes …

Member Avatar for Zibo
0
131
Member Avatar for xmaddness

I am trying to do a simple MySQL query using my db class, but for some reason I am having issues with getting the query through using my db class. If I hard code the db call bypassing the class, it works fine. Here is the class: [CODE=php]<?php //////////////////////////////////////////////////////////////////////////////////////// // …

Member Avatar for xmaddness
0
151
Member Avatar for JDCyrus

Hi everyone. I need some help with a subprocess. My Python script uses the os.popen2 function to spawn a non-Python subprocess. Now it needs a way to send a Ctrl-C interrupt or something equivalent to the subprocess. Does anyone know how to do this? Thanks in advance!

Member Avatar for woooee
0
5K
Member Avatar for evilsage4

hey all, I'm trying to integrate sqlalchemy into my project build rather than install it separate. so in my project i have "<project_dir>/lib/sqlalchemy/*" i put a the __init__.py in "lib" but when i try to do [icode] from lib.sqlalchemy import * [/icode] i get: [quote] --------------------------------------------------------------------------- ImportError Traceback (most recent …

Member Avatar for woooee
0
92
Member Avatar for RizzLinux1388

Hi, I'm doing a project where we make our own string class and I'm having trouble with the substring function. This is what I have so far. [CODE]string string::substr(size_type idx, int length) { // can use the += char somewhere string *someString; char *ch = _data; for(idx = 0; idx …

Member Avatar for RizzLinux1388
0
148
Member Avatar for Sam-J

hello everyone i am a fresh man in this site ... and i'm really pleased joining this lovely 'n useful one well .. i made a program in c++ which is all about natural merge sort on files , since i want to sort my file which contains a randomly …

Member Avatar for WaltP
0
407
Member Avatar for johnvisual

Context: I have a a framed page which have two frames. First frame have two iframes and second frame also have two iframes. Each iframe have a form to add record. Each forms have some fields to enter data. To show the layout of the page, I have created a …

Member Avatar for essential
0
1K
Member Avatar for kailisr

I hope this doesn't come across as confusing. I am doing something wrong, with a "error C2059: syntax error: ';' - line 45; error C2059: syntax error : '/' - line 47. I'm not sure, but maybe it has something to do with the %, and that I didn't use …

Member Avatar for WaltP
0
146
Member Avatar for naheesa

hi, [COLOR="Red"]I need the answer as soon as you can[/COLOR] Write a c++ program that prompts the user to enter an integer number greater than Zero (0) and prints a multiplication table up to that number. The program should display an error message an and loop until an accepted value …

Member Avatar for siddhant3s
0
150
Member Avatar for mathueie

Hi How to get cpu utilization of particular process without using top command. I want programmatically C or C++.Top command source is large.I can't analyze where %cpu usage got. Anyone help me...........

Member Avatar for Ancient Dragon
0
100
Member Avatar for Whelk

First of all, forgive my naivete - I'm new to programming and trying to teach myself Python with the aid of the Internet and a book or two. My current problem that I can't find a solution to is hard for me to explain. First, I'll give the code I …

Member Avatar for Whelk
0
1K
Member Avatar for DJ-KhaosTheory

Greetings fellow coders, I am using the Playsound() function for playing music or sounds in my console based C++ application. I have a few brief questions that I need answered before I can continue. 1. When using the Playsound() function, how do you set the volume level? 2. How do …

Member Avatar for Martin Skibye
0
2K
Member Avatar for vmars

Greetings; Please, is there a 'python tool' of sorts (ide or whatever) that will convert [U]Python code to 'C' code[/U] . Thanks!

Member Avatar for Nine Tails
0
12K
Member Avatar for gretty

Hi, can you help me just write an algorithm (not coding) to solve to this task. I have to write a program that takes in 3 points on a graph & determines if they form a [B]right-angled triangle[/B]. More detail below. [B]Can you give me some advice on how to …

Member Avatar for siddhant3s
0
1K
Member Avatar for laconstantine

I started with masm32 and i have some questions I read this [QUOTE] Under Win16, there are two types of calling convention, C and PASCAL C calling convention passes parameters from right to left, that is , the rightmost parameter is pushed first. The caller is responsible for balancing the …

Member Avatar for laconstantine
0
234
Member Avatar for redburn

[B]I am trying to insert a new record into a mysql database and get the following error:[/B] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '30, 60, 90, DayCreated) VALUES ( 'Rush Shirt', …

Member Avatar for nav33n
0
79
Member Avatar for LangTuHaoHoa

For Example .I have a function that code in C++ : [CODE] void MyFunc(int s) { struct itemRec { int code; int index; } bItem; bItem.code = 0x0000000B; bItem.index = s; __asm { push eax push edx mov ecx,0x00625388 push 00000000h lea edx,bItem push edx push 00000016h mov eax,0x00487273 call …

Member Avatar for LangTuHaoHoa
0
388
Member Avatar for DisembodiedLoaf

I'm having trouble with my programs for class. Program 1 Write a function that receives a list as its parameter and returns a list with the length of each element. In the main function print the returned list. [CODE]def elementLength(list): list = raw_input("enter list") return len(list) print elementLength(list)[/CODE] What it …

Member Avatar for sneekula
0
77
Member Avatar for vuyiswamb

Good Morning All I have a table named “Final” with Values like this [code] ID || DESCR || CYCLE ====================================== 1 || Earl G || 20 2 || Earl G || 21 3 || Earl G || 22 4 || Davidson I Dr || 20 5 || Davidson I Dr …

Member Avatar for vuyiswamb
0
481
Member Avatar for Abhilash Cheruk

<?php include 'dbconnect.php'; $query="select * from pnmsg;"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $msgs=$row[0]; } echo $msg; include 'dbclose.php'; ?> THis is my code and am working in my local machine it give the same error Anybody help . I could not find any mistake in my code

Member Avatar for nav33n
0
108
Member Avatar for Tank50

Hi Nowdays Iam developing application that use for read excel .So Once I run and close the application there are more than 5 excel.exe process are running.How to stop these process.Below I mention code which I used. [CODE] xlApp = new Excel.ApplicationClass(); DataSet ds = new DataSet("DataSet"); xlWorkBook = xlApp.Workbooks.Open("C:\\Test.xls", …

Member Avatar for Ramy Mahrous
0
128
Member Avatar for sajithkahawatta

:sad: :sad: my web page C#.net is work properly in my iis .but when i publish in another server it give errers.i used vs2005 and ms word 2003. but in the server there is no vs2005 or word installed. it has only .net frame work installed.folowing the error, Parser Error …

Member Avatar for hermsen
0
765
Member Avatar for hypernova

I am doing B.Tech in computer science and I am in the 1st year (I have almost completed 1st year) I want to learn a language in the forthcoming summer break (2 months) between the first year and second year, and am quite confused if I should go for [U]C++ …

Member Avatar for Narue
0
146
Member Avatar for delifion

Hi, I got homework about tree data structure professor wrote his own tree stuff which are: binnode.h and bintree.h the actual file is tree.cpp binnode.h [code=c++] #ifndef BINNODE_H #define BINNODE_H #include <math.h> #include <iostream> /*******************************************************\ template node class for binary tree \********************************************************/ template <typename dataType> class binNode { private: dataType …

Member Avatar for delifion
0
140
Member Avatar for K?!

Hi all Is it possible to use only the classes you need in a panel or something? I'm finding it hard to explain my question, i'll give an example: We need to make a program to organise swimming competitions. When you want to (as a user) edit or create a …

Member Avatar for peter_budo
0
119
Member Avatar for deepas

hi, i'm beginner in c#.net & currently working for a windows application.i have problem to customize the report in the crystal report and also everytime i run the code it asks for connection info which i had assigned during design time.Any help in this regard is appreciable. thanks

Member Avatar for jerry32uk
0
263
Member Avatar for willrose84

Hi im very new to all this programing lark but was wondering if some one could tell me what im doing wrong, I am tring to creat a login box so you have to enter the corect details to use my form but it keeps filling in the textboxes with …

Member Avatar for willrose84
0
154
Member Avatar for Bhoot

I am developing a form application (UI) through which I need to connect a client to multiple servers. For that, i would require an array of either Socket objects or TcpClient objects. My dilemma is where i should put this array. I cannot put the array in the static class …

Member Avatar for Bhoot
0
134
Member Avatar for whex

Working on a current project with these parameters and am not sure where to start. I am new to all of this and could use some input. Use JAVA to build a sales commission application. In this application, the user enters a number in the SALES JoptionPane textbox. When the …

Member Avatar for masijade
0
105
Member Avatar for marco01

I'm working on a code to calculate a final score. Here below is my code: [code] public void calcFinalOCAS() { int calcFinalOCAS; int sum = 0; List<Integer> tmaMarks = new ArrayList<Integer>(); Collections.sort(tmaMarks); int minMarks = Collections.min(tmaMarks); if(minMarks < substitutionScore) { minMarks = substitutionScore; } for (int i = 0; i …

Member Avatar for marco01
0
87
Member Avatar for justted

Hiya, I am still developing my website and just wanted to ask whether I am on the right track to ensuring my website coding, database connection, etc is safe. My public directory obviously has the main pages in which the members will visit. For example .... log_in.php is located in …

Member Avatar for justted
0
155
Member Avatar for BimanD
Member Avatar for ProgrammerX

Hi i have been working on a project for my younger brother. A simple VB6 and MS Access/SQL server based client-server database. For that i recently started working on VB6 as i previously had only worked on Java and C++. I have been consulting the book "Using Visual Basic 6" …

Member Avatar for QVeen72
0
371
Member Avatar for Xamas
Member Avatar for kn2790

so im trying 2 add data to my table in the database, done all the connection (OLEDB one) so this code adds to my database: [code] SQL = "Insert into Bookings(StaffID) values('" & stafid.Text & "')" DC1 = New OleDbCommand(SQL, cN) DC1.ExecuteNonQuery() MsgBox("Record Saved, Thank you!", MsgBoxStyle.OkOnly, "") [/code] this …

Member Avatar for QVeen72
0
109
Member Avatar for Peter_APIIT

Hello to all, i try to code the binary exponentiation algorithm but unfortunately it is not working as desire. I decided to switch back to You could try using std::numeric_limits<int>::digits to determine the values and sizes or using CHAR_BIT. My logic is define at below. Look at most significant set …

Member Avatar for Peter_APIIT
0
901
Member Avatar for moro2009

hi everybody i just wanna ask why is this windows application code read the file once ? when i click the button it displays the text once.. why isn't be repeated? private void button1_Click(object sender, EventArgs e) { string filename = "c:\\flights.txt"; FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read); StreamReader …

Member Avatar for margani
0
127
Member Avatar for MaxVK

Hi. I have an xml file like this: [CODE=xml]<tree> <category title="Item 1">item 1 text <subitem title="subitem1">subitem1 text</fileitem> <subitem title="subitem2">subitem2 text</fileitem> </category> <category title="Item 2">item 2 text <subitem title="subitem21">subitem21 text</fileitem> <subitem title="subitem22">subitem22 text</fileitem> </category> </tree>[/CODE] I use ElementTree to parse this file and this works okay, however, I now need to …

Member Avatar for MaxVK
0
9K
Member Avatar for turbomen

Dear Sir, Could you mind tell me what about the difference between While..loop, for..loop and repeat.. until?? Can you give me some example?? Cheers,

Member Avatar for FlamingClaw
0
162
Member Avatar for luvsom

I've been struggling with this for days now...... Say the number entered is 12345 If the user wants to find the value of the 4th digit, which would be the 2....how can I do this???

Member Avatar for WaltP
0
129
Member Avatar for iamthwee

What's the easiest way to create graphs? (free if poss) P.s I have a look at ZedGraph and NPlot and they ain't for me. Cheers

Member Avatar for rifkhi
0
170
Member Avatar for sivak

when we for trigger in c# .net ..can anyone expalin me with simple example

Member Avatar for Ramy Mahrous
0
91

The End.