199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for HatGuy

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 …

Member Avatar for HatGuy
0
145
Member Avatar for Eager_Beever

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

Member Avatar for almostbob
0
106
Member Avatar for lucatoni

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 …

Member Avatar for mohamedfoad
0
155
Member Avatar for jhonny_86

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 …

Member Avatar for jhonny_86
0
126
Member Avatar for madristaa

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 …

Member Avatar for madristaa
0
111
Member Avatar for doraemon

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

Member Avatar for doraemon
0
200
Member Avatar for hell_tej

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 …

Member Avatar for hell_tej
0
203
Member Avatar for lukechris

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

Member Avatar for iamthwee
0
219
Member Avatar for Gadgeteer99

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 …

Member Avatar for orinbai
0
206
Member Avatar for redZERO

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?

Member Avatar for redZERO
0
102
Member Avatar for winrawr

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 …

Member Avatar for winrawr
0
90
Member Avatar for peacerosetx

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 …

Member Avatar for peacerosetx
0
536
Member Avatar for ward.605

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

Member Avatar for vmanes
0
90
Member Avatar for wrxhokie

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 …

Member Avatar for Ancient Dragon
0
202
Member Avatar for crumpet

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 …

Member Avatar for sneekula
0
220
Member Avatar for jesse_johnson2

[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) { …

Member Avatar for jesse_johnson2
0
93
Member Avatar for arshad115

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

Member Avatar for tux4life
0
2K
Member Avatar for ctrl-alt-del

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 …

Member Avatar for hieuuk
0
168
Member Avatar for Derice

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.

Member Avatar for sonia sardana
0
107
Member Avatar for DemonGal711

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 …

Member Avatar for ArkM
0
1K
Member Avatar for Monalisaparker

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.

Member Avatar for peter_budo
0
99
Member Avatar for mnvsriram

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 …

Member Avatar for masijade
0
94
Member Avatar for oldSoftDev

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 …

Member Avatar for oldSoftDev
0
113
Member Avatar for EdTheUniqueGeek

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

Member Avatar for EdTheUniqueGeek
0
113
Member Avatar for Dewey1040

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

Member Avatar for Ancient Dragon
0
104
Member Avatar for cppStudent

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

Member Avatar for jencas
0
107
Member Avatar for shihab-alain

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 …

Member Avatar for dickersonka
0
107
Member Avatar for Fouly

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 …

Member Avatar for Fouly
0
259
Member Avatar for abby2589

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

Member Avatar for Ancient Dragon
0
90
Member Avatar for sayeediqbal

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

Member Avatar for Narue
0
80
Member Avatar for NRaf

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 …

Member Avatar for Narue
0
109
Member Avatar for vimotaru

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 …

Member Avatar for vimotaru
0
153
Member Avatar for Bob Arctor

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 …

Member Avatar for Bob Arctor
0
110
Member Avatar for ScienceNerd

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

Member Avatar for charleen
0
116
Member Avatar for emilio

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 ?

Member Avatar for greeny_1984
0
113
Member Avatar for _::suhanna::_

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

Member Avatar for msuhyd1
0
102
Member Avatar for firoz.raj

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

Member Avatar for vb5prgrmr
0
102
Member Avatar for hansel13

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 …

Member Avatar for DemonGal711
0
145
Member Avatar for adhi.adithyan

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 …

Member Avatar for greeny_1984
0
102
Member Avatar for MJV

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 …

Member Avatar for Seemant
0
194
Member Avatar for riahc3

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++?

Member Avatar for mitrmkar
0
122
Member Avatar for ezkonekgal

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

Member Avatar for verruckt24
0
381
Member Avatar for breatheasier

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]

Member Avatar for breatheasier
0
93
Member Avatar for manjusaharan
Member Avatar for manjusaharan
0
82
Member Avatar for 3pid

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?

Member Avatar for LizR
0
124
Member Avatar for Digvijaysinh

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 …

Member Avatar for LizR
0
114
Member Avatar for Dumpen1337

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 …

Member Avatar for viper1891
0
231
Member Avatar for sreya.n

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... :-)

Member Avatar for sreya.n
0
92
Member Avatar for tksrules

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 …

Member Avatar for John A
0
103
Member Avatar for baby_1

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)

Member Avatar for cguan_77
0
70

The End.