199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 //////////////////////////////////////////////////////////////////////////////////////// // … | |
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! | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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........... | |
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 … | |
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 … | |
Greetings; Please, is there a 'python tool' of sorts (ide or whatever) that will convert [U]Python code to 'C' code[/U] . Thanks! | |
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 … | |
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 … | |
[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', … | |
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 … | |
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 … | |
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 … | |
<?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 | |
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", … | |
: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 … | |
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++ … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
| |
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" … | |
| |
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 … | |
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 … | |
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 … | |
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 … | |
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, | |
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??? | |
![]() | 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 |
The End.