199,114 Archived Topics
Remove Filter ![]() | |
I'm using Python 2.5.2 on a Ubuntu box for a research project based on data from the Fatality Analysis Reporting System (FARS) database (1975-), available at [url]http://www-fars.nhtsa.dot.gov/Main/index.aspx[/url]. I found 115 characters of the form "\xzz" -- possibly hex? -- in 4+ card-image records on about 300k incidents from 1975-1981 so … | |
I am developing ASP.net 2.0 website with SQL Server as database and C# 2005 as the programming language. In one of my tables, I have a filed named RTime of char datatype to store times. The values of this particular field are like 09:00 AM, 09:15 AM, 09:30 AM, ------ … | |
Hello, i'm designing a demographic database in which i have to register information about cities, counties and population. In details: - each city has its name, county in which it is, a unique ID, TotalMen, TotalWomen, TotalPopulation and the details about population organized in the following way: + for each … | |
Hey! My problem is that I can't modify the "File name" label / text field programatically where you write the file name of your file in the JFileChooser. If I want to have "Write your file" written in the file name (by default) field how would I manage to do … | |
Hello friends, I am displaying the comments suggested by 4 faculty members for each student. I want displaying three columns. Let me start with the second column first, which displays the Faculty 1, faculty 2, faculty 3, faculty 4. The third row display respectively comments given by faculty. Ok. Now … | |
hi, I need some help to store each textbox value into each variables. This is my class assignment. Q.Create an applicaiton that allows the user to enter each month's amount of rainfall and calculates the total and average rainfall for a year. (user doesn't have to input all the data, … | |
I need some help about how to connect MS Access database in NetBeans.I visited [url]www.netbeans.org[/url] but didnt got much help related to MS Access. What I did is I start from Net Beans Desktop Application ....But when i select the option of database in it ....It asks Database URL....I have … | |
Hi, I currently have a string, ie [ICODE] <TEXT default_lang="en" str="Button text"/> [/ICODE] and I want to be able to remove [ICODE]<TEXT default_lang="en" str="[/ICODE] and [ICODE]"/>[/ICODE] so I am left with Button Text If you could help me in any way I would be greatful thank you Luke ![]() | |
Hey, I just started learning Python yesterday and I got to the end of a chapter on Branching and While Loops...which lead me to a "challenge"...basically it gives me the description of a program and I have to write it. This program flips a coin 100 times and then gives … | |
I was wondering do all programs have a unnamed thread by default? For example, if i have a very basic program, can i put Thread.sleep(int) anywhere in it and it will make the program sleep for a set amount of time? | |
Well, I don't know if this is what you would call an anonymous function, or "Lambda" function I guess, I haven't really gotten that far into languages that use them yet... but, I am writing a function that is rather long. And I want to just get through it, and … | |
Greeting all, Peace. I had this error [QUOTE] error C2059: syntax error : ')' [/QUOTE] in VS with c++ code, and searched the web and forums for a solution but could not find one. Finally I simply typed in the bracket ")" in the "find key" to search for all … | |
I am trying to sort an array and eventually get the 'n' closest numbers to the position the user chooses but i can't get the sort function to work first. Here's the code: #include <iostream> //for standard I/O #include <iomanip> //for setw(), etc. #include <cstdlib> //for rand(), srand() #include <ctime> … | |
I have a name mangling issue with a C++ static library that was created using VS 6.0. I'm trying to write a wrapper DLL using this static library, but i'm having trouble accessing the functions of this library due to name mangling. My compiler (VS 2005) shows this for a … | |
Hi folks, Just hoping someone can show me where I'm going wrong here. I've been given a tutorial question to count the number of times a particular character (char) appears in a string. The only catch is that you need to use a for loop, as the online checker won't … | |
[CODE]//Tic-Tac-Toe #include <iostream> #include <iomanip> using namespace std; const char COL = 3, ROW = 3; typedef int tttb[ROW][COL]; //tttb tic-tac-toe board bool winner(tttb, int,bool); //funtion name winner bool move(bool); int main() { bool isWinner; isWinner = false; cout<<"isWinner= "<<isWinner<<endl; isWinner = move(isWinner); cout<<"isWinner= "<<isWinner<<endl; if (isWinner = true) { … | |
i m making a hotel database management system and i have to add records, update and delete them.i m having problem in getting the input,how will i use double pointers?? and i have to get a certain number of records from the user. here is my code: [CODE] void addcustomer() … | |
Hi all! I've been learning C# on my own for a couple of months now and am getting to a point where I can start actually creating a program. A few days ago I fired up brain trainer 2 and one of the games was a Mastermind kind of game … | |
How can i display the selected item's text in the dropdownlist? Assumed i have a dropdownlist with 3 items which are: "one" "two" "three" When i selected "three" then the word "three" will appear in the textbox. | |
Ok, apparently my destructor isn't done yet and I'm not sure how to handle this. I have an n-ary tree that contains nodes that are built of data and a vector of pointers. Each pointer was initialized with new, so I need to delete them obviously. One friend said I … | |
hello friends I want to gain some knowledge on java. could you help me in reffering some good e-books. Also let me know what is the best IDE to be used for java? thanks in advance. | |
If my application server(weblogic) is running in windows and If I try to view one of the JSP file which prints a lot of html data generated in the server side, I am not facng any delay. i.e in the JSP I have the following lines of code. <% String … | |
I am trying to figure out how to read a multi line txt file with a data like ranking, athlete name and Athletic sports name with two different year records like 2007 and 2008 like 1. JOHN CARTER in Sprint Race 19. JOHN CARTER in Sprint Race I am trying … | |
Hello. I am completely new to web development but want to learn PHP. I am currently a Sys Admin working in a Windows environment but I am very familiar with Linux OS server platforms also having built and run both a Windows and Linux web, MS SQL, and MySQL servers. … | |
i half understand this code, just wondering if anybody could give me helpful tips/hints about understanding the difference between these two functions [code=C] extern status traverse( list L, status ( *p_func_f )() ){ if( empty_list ( L ) ) return ( OK ) ; if( ( *p_func_f ) ( DATA( … | |
I'm trying to write a stack implementation that makes use of a single link list. The new Stack implementation can inherit from stackADT which I previously used with an array opposed to the link list I want to make use of now. Here is the stackADT [CODE]#include "StackADT.h" StackADT::StackADT() : … ![]() | |
Hello, I'm in the process of designing an app which basically functions as a multi-part application(multiple forms) incorporating a basic cms and payment tracking. I'm having trouble coming up with the db structure for the multi-part application. The site needs to be flexible enough to: -Have multiple forms -Store/track form … | |
Hi, I'm trying to count files in a desired directory using MFC... I tried the following code: [code] int CountFiles(const std::string &refcstrRootDirectory, const std::string &refcstrExtension, bool bSubdirectories = true) { int iCount = 0; std::string strFilePath; // Filepath std::string strPattern; // Pattern //std::string strExtension; // Extension HANDLE hFile; // Handle … | |
can someone tell me whats wrong with this codes, because there's some error in printing.. [CODE]#include<stdio.h> #include<iostream.h> struct bday{ char month[2]; char date[2]; char year[4]; }; struct contacts{ char surname[10]; char phoneno[12]; }; void main(void) { struct contacts con[2]; struct bday bd[2]; int i; for(i=0;i<=2;i++) { cout<<"\nSurname : "; cin>>con[i].surname; … | |
Dear All please read below my test C code. The ins_inv() picks Value of :cds but did not pick :xyz value though it is populated in find_sp_inv() function. [code] varchar cds 11; varchar xyz 30; varchar fxo 11 main(argc, argv) int argc; char **argv; { find_sp_inv (); ins_inv(); } find_sp_inv() … | |
I was wondering if the following fuction is a safe way to get input from a user (with a specified length). [CODE=c]char *input(int inputSize) { char str[inputSize + 2]; /*DO STUFF HERE (i.e. GET INPUT, CHECK IF CODE IS CORRECT, ETC*/ return &str[0]; }[/CODE] Is there anything that can go … | |
Hello everybody My problem is that I'm quite new in oracle admin/dev so I need some help pointing me how to limit the number of days of data stored in a table. I have some datasources that come in files periodically. I'd like to limit the days stored for each … | |
Hello, I have this snippet of code to echo out the "mailer_id" with the largest value - [CODE]<?php $result = mysql_query('SELECT MAX(mailer_id) FROM mailer_directory')or exit(mysql_error()); echo 'the max mailer_id is ' . mysql_result($result, 0); ?>[/CODE] My question is how do I echo out the corresponding email value for that field … | |
I just started studying structured programming and I was trying to do a If Else then function but the compiler won't let me compile it? #include <iostream> using namespace std; int main (void) { int age; cout << "Enter your age" << end1; cin >> age; if(age > 21) { … | |
hi i use a gridview control with a template column which contains textbox as itemtemplate. i'm trying to change the textbox's border color in runtime like this: [CODE=asp]((TextBox)MyGrid.Rows[i].FindControl("txtEnter")).BorderColor = Color.Red;[/CODE] but it doest change anything. what am i duing wrong ? | |
hello...hi im using VB.NET...can u guys teach me how to convert an Access database to a SQL server database? i really hope u all can help me.. thank you... | |
Can anyone tell me .why i am getting error item cannot be found in the collection corresponding to the requested name or ordinal.error is generating on bold line.Here is the code what i have written. [code=vb] Private Sub Command1_Click() y = MsgBox("do you add this record", vbYesNo + vbQuestion, "message") … | |
I need to create a search function that search for a product type. If it's found, I return true, otherwise i return false. My client program will output the data that was found (if true), otherwise it'll output an error message saying that product type does not exist in the … | |
hello experts, I have created filter grid in asp.net & C#. My form design has contains 3 dropdown controls and Filter grid(User control). Its working fine(filter), but one problem arise. the form controls are clear when i filter a grid(post back). I tried to reterive values using view state, hidden … | |
I have a stored procedure which returns a parameter @quotenum when run in sql but I'm having trouble getting a return value in my C# form. I'm trying to get the message box to show the @quoteno parameter but im failing misserably. The connection is working an the parameter @estnum … | |
Hey In VS, you can in a struct do: [code] struct test{ int tes; }tt; [/code] then when I put tt., it would display the all fields in a tooltip which in this case would display tes. Is "IntelliSense" (I know it is not called that) in wxDev-C++? | |
I have a problem: 1.) How do you insert a sequence of integers into a binary tree? does anybody have an algorithm for it? like input : 1, 5, 3, 4 ,2 binary tree: 1 5 3 4 2 | |
Hi. I've read the documentation but I can't quite work out how i create an object and give it attributes. I'm trying to create a disk object that has attributes disk.x and disk.y which i can then identify with a line, [code=python] disk.id = (x,y) [/code] | |
I need an xml and HTML based search engine that I can use in my .net application(offline). Help Me ????? | |
hey guys, I built an array of objects but I don`t know how to access it`s methods or fields.It keeps sending me errors How should I access them? | |
Hiii I am developing one window application in c# and .net with sql server 2005 as database. now, i have Four questions: 1] I have one dropdownlist in form and i want to fetch the content/data of table category in to this dropdownlist and when I run this form on … | |
Hey I got some quetions [b]Question 1:[/b] I have a image that is in a picturebox which is called pictureBox1 I want to read monstersetbase.txt and add small ellipses to my image. The position of the ellipse comes from my monstersetbase.txt. The image is 256x256 and the coordinates is example … | |
Hi all, I want to store some values in an array with the elements id and parent like array(id,parent).And i want to display the values in a tree structure. How will i do this using php? Any body knows this?If so please do reply. Thanx in advance... :-) | |
Hi, I am comfortable in c.But i find errors here in my code.I know its related to that structures cant be accessed outside main().Need s use of pointer.How to do?.Help me soon. A revised code will be of help. [code=c] #include <stdio.h> #include <string.h> struct phonebook { char name[100]; long … | |
it means the new exe file is a copy of old file ( but its neccessory to see content of old exe file and save the texbox not use filecopy in vb6) |
The End.