43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for KAY111

Hi guys, I am writing this perl script. Basically, what I want to do with this is that I have a text file vec.txt which looks something like this: <T> chemical- and bio-terrorism </T> <T> <C> nerve agents </C> </T> , <T> toxic proteins </T> <T> toxic protein </T> <T> …

Software Development perl
Member Avatar for mitchems
0
172
Member Avatar for elizabeth mwash

I was wondering, once you have created a system and now ready for use, how do you intergrate it with existing database

Software Development c#
Member Avatar for finito
0
444
Member Avatar for bojomojo

Hello, I have a file with each line consisting of certain fields. Lets say I want to detect which lines have the second field equal.. For example here is the file: [CODE]XM2 N$2 N$2 GROUND GROUND nch_mac1 l=50n w=150n multi=1 nf=1 sd=140n XM1 N$12 N$2 GROUND GROUND nch_mac2 l=50n w=150n …

Software Development shell-scripting
0
78
Member Avatar for grux12

Hey everyone=) my name is grux and I've got something of a problem.... First off, let me say that this is NOT for a class, I am simply trying to follow some online tutorials so I can be prepared for college this fall. I'm new to C++ (having only worked …

Software Development c++ ide
Member Avatar for nbaztec
0
161
Member Avatar for shankbond

Hi, I am new to regular expressions, I am having a problem regarding matching a specific keyword in certain condition. [CODE]string regexstring="\\bhtml\\b|[.]net\\b"; Regex rgx = new Regex(regexstring, RegexOptions.IgnoreCase); MatchCollection matcol = null; string st_data = "I am a .net developer, but also know about asp.net, vb.net ; I work on …

Software Development asp.net regex xml
Member Avatar for shankbond
0
167
Member Avatar for Madawar

Hi, Am a self teaching Newbie Assembly programmer :) Still in the theoretical Stages. My question is.... [B]According to the book am reading When you convert 254(decimal) to hexadecimal you get 0FEh. And when you convert -2(decimal) to hexadecimal using two's complement you get OFEh.[/B] When i do it manually …

Software Development assembly
Member Avatar for Madawar
0
4K
Member Avatar for xxpokerxx

[CODE=c]#include <stdlib.h> #include <stdio.h> #include <string.h> /* a structure that defines a string buffer */ typedef struct strbuf { char *contents; /* pointer to dynamically allocated buffer contents */ size_t length; /* number of characters in buffer (excluding '\0') */ } StringBuffer; /* function prototypes */ StringBuffer *strbuf_new(const char *cstr); …

Software Development c
Member Avatar for xxpokerxx
0
215
Member Avatar for Duki

What am I missing here: [code=c#]if (textBox_End_Miles.Text != "" && Convert.ToInt32(textBox_End_Miles.Text) > Convert.ToInt32(label_Start_Miles1.Text))[/code] I keep getting a runtime error any time I modify the textbox.

Software Development
Member Avatar for nick.crane
0
159
Member Avatar for bchaney

is there a way i can get my datatable to have multiple constraints that are attached to a unique id? an example of what i'm talking about is if i have a unique machine but it's on many lines, can i show that somehow in a datatable? the reason i'm …

Software Development dataset vb.net
Member Avatar for bchaney
0
221
Member Avatar for hotness

I have to do this : Task 2 (23%): Write a function that prompts the user to input data for a new employee; the function should return an employeeType struct to the caller. Declare employeeType variables him and her in the main function. Call your function with actual parameter him …

Software Development c++
Member Avatar for hotness
0
78
Member Avatar for DaveTran

I've got a helper class to convert an enum into a list. [CODE] class EnumHelper { public static List<T> EnumToList<T>() { Type enumType = typeof(T); // Can't use type constraints on value types, so have to do check like this if (enumType.BaseType != typeof(Enum)) { throw new ArgumentException("T must be …

Software Development gui
Member Avatar for DaveTran
0
103
Member Avatar for sitajaf

Hello, am new to the real programming but i have very much interest. As a first real java project am trying to develop a P2P network application which can be used for chatting, but the problem is: Should it load as a server.and if so how do i get it …

Software Development client-server gui java socket-programming
Member Avatar for Stefano Mtangoo
0
180
Member Avatar for maria99

Hello, I have writen a C++ program to read 37 text files. The content of the text file is interger numbers. The program was working fine in VC++ 6.0. Now i could not find the free version of VC++ 6.0. I downloaded the free version of VC++ 2008 expression edition …

Software Development c++ file-system
Member Avatar for maria99
0
176
Member Avatar for lewashby

I am reading the book "Python Programming 2nd Ed. for the absolute beginner" and I am having some trouble with a very simple program. I was instructed to download and install pygame and the livewires package as I have done. This program is meant to display a grahical window, that's …

Software Development python
Member Avatar for albo1125
0
293
Member Avatar for jt86442

[B] Hi guys, [CODE] if(IsColor.equals("Y")) cell.setBackgroundColor(new Color(240,240,255)); table.addCell(cell); [/CODE] This [U]cell.setBackgroundColor(new Color(240,240,255));[/U] is for set back ground color as a blue. I need Green color. So, is there any values for green. Please contribute your advice... [/B]

Software Development java
Member Avatar for freesoft_2000
0
96
Member Avatar for chancewty

Hi, I need help. I've been looking all around and i have not found a appropriate solution for my question. Here it is. I've a database table which has the field "username" and "password" and within the "username" field, there would be users like "admin","cashiers" etc. I would like to …

Software Development flash vb.net
Member Avatar for chancewty
0
100
Member Avatar for hermann87

Hi, I have been wondering about how implementation/extension works : Let me give you an example and then ask you my question : [CODE] public abstract interface A_int {} public abstract interface B_int {} public class A implements A_int, B_int {} public class B extends A implements A_int [/CODE] okay …

Software Development java
Member Avatar for hermann87
0
90
Member Avatar for adams161

I can use vb.net or c# on this part of the project and i was hoping someone could tell me a little about updating an active directory field. i found in searching system.directoryServices in google this bit of vb code. user.Properties("title")(0) = employeeTitle.SelectedItem.Text which i think is this in c# …

Software Development
Member Avatar for adams161
0
4K
Member Avatar for louiscos77

Hy everybody, I want to use Directx 10 to create 3d things in c++. I download it but it doesn't have this files d3dx10.h d3dx10async.h d3dx10core.h d3dx10math.h d3dx10mesh.h d3dx10tex.h I don't want to download it again. So who can send me those files Thanks

Software Development c++
Member Avatar for Ketsuekiame
0
125
Member Avatar for elizabeth mwash

[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace DataClerk { public partial class Form3 : Form { public Form3() { InitializeComponent(); } private void btnClear_Click(object sender, EventArgs e) { txtPNo.Clear(); txtPName.Clear(); txtSiteName.Clear(); txtJCNo.Clear(); txtRequired.Clear(); } private void btnSave_Click(object sender, EventArgs e) …

Software Development open-source
Member Avatar for elizabeth mwash
0
161
Member Avatar for seanvitalaim

Hello everyone hope all is well. So I'm learning java and been at it all night and this is my last hope. I can't figure out why a certain part of my code is not being executed after the conditions of my if statement is true. [CODE] /** * @(#)mathsoftware.java …

Software Development java
Member Avatar for nikelin
0
115
Member Avatar for gameon

I want to make a c++ program which scan all drives and generate list of all files and folder. how can i do it in c++? Plz help me......

Software Development c c# c++
Member Avatar for gameon
0
1K
Member Avatar for shashimgowda8

i need an audio player to embedd in my c# windows apllication which can play mp3,wma files and it should have all the controls like play,stop,pause,fast forward, fast rewind... right now i have used windows media player but in this fast rewind button has been disabled... but i need all …

Software Development audio python
Member Avatar for shashimgowda8
-1
238
Member Avatar for ubi_ct83

[CODE] public static void main(String[] args) { int[] out; for (i=0;i<args.length;i++) { String number_string=new String(); if(args[i].equals("-i")) { if(i+1<args.length) { i++; number_string=args[i]; } StringTokenizer number=new String Tokenizer (number_string,','); int chip_number=number_string.replaceAll("[^,]","").length(); chip_number++; int k=0; while (number.hasMoretokens()) { number_int[k]=Integer.parseInt(number.nextToken()); k++; } } } for(i=chip_number-1;i>=0;i--) { for(j=0;j<number_int[i];j++) { out[j]=j; } //should be a double …

Software Development java
Member Avatar for ubi_ct83
0
103
Member Avatar for zaphytaffy

I am a newb, do not go to college and am learning Java on my own time. This little project is a learning exercise so I ask that any help just points me toward a right direction. It is a character generator for a table top game, that may or …

Software Development java linked-list
Member Avatar for zaphytaffy
0
280
Member Avatar for packer01fan

I have an assignment where I have to have seven different lottery numbers ranging from 1 to 35. A separate powerball number should also be generated. The powerball number should be within the range of 1-10. I have to write a java program that gives eight sets of seven numbers …

Software Development java
Member Avatar for packer01fan
0
722
Member Avatar for kunkunlol

Hi, I'm doing some stuff about stacks (classes). I've done a function, wich will invert the string, however, the VC++ gives a dumb error and I don't know why. I have alot of libs so, i think it's not because of that. Anyway heres the error: 'CPilhaInteiros::Inverte' : cannot convert …

Software Development c++
Member Avatar for kunkunlol
0
93
Member Avatar for Chaos3737

I need code to generate a random number between -95 and 95. The code I'm currently using is seeded with the time, so when I call it over and over again rapidly, my cube (part of a game I'm working on) goes left to right, then starts over. Could someone …

Software Development c++
Member Avatar for arkoenig
0
152
Member Avatar for kosco

Hi, I am simulating wireless networks and the simulator keeps putting runtime data to the output and eventually to my results file. to give you an idea .... 1 8724593564 2 153 465 1 8725120550 14 900 259 Node 0 sends packet to 1 1 8725375953 22 654 339 1 …

Software Development python
Member Avatar for vukman
0
286
Member Avatar for ihatehippies

In order for my code to be efficient, loops need to be terminated prematurely to prevent unnecessary iterations. I know that list comprehension is fast that the 'for' statement, but I'm having trouble finding a suitable way to break them. Here's what I've come up with [CODE=python]try: [x if x …

Software Development python
Member Avatar for snippsat
0
11K
Member Avatar for Chaos3737

Please help with my C++ OpenGL code! I am trying to make a simple game in OpenGL with C++ (my first). The issue I'm having is that the WSAD keys move the sphere AND the cube. Since the goal of the game is going to be to get points by …

Software Development c++ image opengl
Member Avatar for VBNick
0
462
Member Avatar for Duki

Hey Everyone, I'm trying to have a form autosize when a user clicks on a Link Label. When the Link Label is clicked, I want the form to expand slightly, and show a tab control that I've created. I can't figure out how to use the this.autosize feature correctly for …

Software Development
Member Avatar for Duki
0
2K
Member Avatar for sofia24

Hi I'm creating a parser using Visual C++ and I'm having a problem reading the contents of a file per line. I tried using fread but you have to specify that size of the record you need to store in the buffer. Length of each line record is variable so …

Software Development c++
Member Avatar for Taywin
0
421
Member Avatar for echellwig

Hi, I'm trying to replace an item in a list I made with 0. [CODE]popdata[0][5].replace(0.02,0)[/CODE] when I run this it gives me the error TypeError: expected a character buffer object. I was wondering what this error meant and how I would go about fixing it. Thanks! Elise

Software Development python
Member Avatar for echellwig
0
576
Member Avatar for Zinderin

I am still learning C#. I come from a Delphi and C past. I am used to being to create flat data files of of records. Example: [CODE] // Sample Delphi code... type SectorRecord = Record iIdx : integer; iCoordX : integer; iCoordY : integer; sName : String[60]; end; ..... …

Software Development c# delphi
Member Avatar for Zinderin
0
277
Member Avatar for YasaminKh

Hi, I'm new to programming and especially to Python. I have this xml file that has parts like this: <VECTOR_AVERAGE name="Density Correlations" nvalues="15625"> <SCALAR_AVERAGE indexvalue="( 1,2,0 ) -- ( 3,4,5)"> <COUNT>204160</COUNT> <MEAN method="jackknife">6.368e-05</MEAN> <ERROR converged="yes" method="jackknife">2.89e-05</ERROR> <VARIANCE method="simple">6.37e-05</VARIANCE> <AUTOCORR method="jackknife">0.843</AUTOCORR> I need to save MEAN and ERROR. I wrote the …

Software Development data-structure python xml
Member Avatar for TrustyTony
0
332
Member Avatar for YasaminKh

Hi, I'm working with an xml file in python.here is the coed that i have: [CODE] import sys from xml.dom.minidom import parse # Load XML into tree structure tree = parse(sys.stdin) #Find all VECTOR_AVERAGE nodes va_list = tree.getElementsByTagName('SIMULATION')[0].getElementsByTagName('AVERAGES')[0].getElementsByTagName('VECTOR_AVERAGE') #Find the 'Density Correlations' node in the list of VECTOR_AVERAGEs for va …

Software Development data-structure python xml
Member Avatar for YasaminKh
0
187
Member Avatar for fresidue

Hello all, I am new here and fairly new to java and programming in general. I decided to make a little color chooser hoojie for fun (jar file attached), but it is tremendously slow. Partly it is my fault (code def not perfect..) but when I checked what was taking …

Software Development java
Member Avatar for NormR1
0
280
Member Avatar for cableguy31

I'm using re.search to search for the pattern of anything that might look like a credit card number in a file. What I would like to do, is have the script then pull out the potential cc number and pass it to the Luhn algorithm for verification. If I'm not …

Software Development algorithm python
Member Avatar for cableguy31
0
84
Member Avatar for gedas

hey guys, i just started working on one of the projects well its has been already finished all im doing is making a few changes and it contains two .dll files (in the root of the project) if they are removed project does not compile and stops functioning otherwise (if …

Software Development java
Member Avatar for gedas
0
135
Member Avatar for Anigmalee

I have a simple application, a form with two datepicker( Datepicker1 is for startsearchdate, while datepicker2 is endsearchdate) to filter out any record that not in the range. The source of the record is readed from a rtf file.The record is in format as showm below. [dd/MM/yyyy] time result So …

Software Development vb.net
Member Avatar for finito
0
155
Member Avatar for daudiam

Ordinary Maps use the following test for equality (k1==null ? k2==null : k1.equals(k2)).) IdentityHashMap uses k1==k2. My question is that even Object's equals() method returns k1==k2. Only when the Object's equals method is overridden inside a class, does it perform content based equality comparison. So, IdentityHashMap could have used Object's …

Software Development java
Member Avatar for daudiam
0
130
Member Avatar for SoulMazer

Hi, I'm writing a program that goes through all of the music in a user-specified directory and I am having some trouble with Unicode characters. More specifically, [icode]'ascii' codec can't encode character u'\\xe7'[/icode]. The song names need to both be printed to a HTML page as well as be passed …

Software Development python
Member Avatar for SoulMazer
0
111
Member Avatar for fenerista

I want a list that include matrixes (not implementing matrix as a list) . and I will add matrixes when I want. Is it the best way to take a dymamic memory with matrix size(row*column) and add the pointer that reference matrix to the list. But in this way, if …

Software Development c++ linked-list
Member Avatar for fenerista
0
130
Member Avatar for urchinsub

Hi, I want to make an array of strings like this: [code=c]string s[4]={"a", "ab", "abc", "abcd"}; [/code] Then I want to write a class with a pointer to a string (and not an array of string pointers). [code=c] class someclass{ public: // constructors and other member functions here private: string …

Software Development c++
Member Avatar for urchinsub
0
277
Member Avatar for hotness

Question 1 In C++, no name is associated with the pointer data type. True False Question 2 The statement int **table; declares table to be a pointer to a pointer. True False Question 3 Which of the following arithmetic operations is allowed on pointer variables? a. Modulus b. Multiplication c. …

Software Development c++
Member Avatar for mrnutty
0
2K
Member Avatar for RobBrown

Hi guys I need some help with an idea i have. I work for a company that does monthly audits of items in a grocery chain. I have all my field reps setup to use excel files to complete their audits and then they send them to me. At the …

Software Development c++
Member Avatar for RobBrown
0
156
Member Avatar for Isabelle

Hello guys, This class creates aDie object by using aRandomNumberGenerator and the concept of composition. The program works if the member object aRandomNumberGenerator is not declared static. Otherwise I receive the error "undefined reference to aDie::gen." I do not understand why this happens, isn't gen within the class scope? Even …

Software Development c++
Member Avatar for Isabelle
0
153
Member Avatar for SacredFootball

I can't figure it out. [CODE] #include <iostream> #include "GameMenu.h" #include "PlayerInfo.h" using namespace std; GameMenu::GameMenu() { } void GameMenu::display() { cout << "-----------------------------------------------------------------" << endl; cout << "Welcome to \"Hot or Cold\"" << endl; cout << "-----------------------------------------------------------------" << endl; cout << "OBJECTIVE:\t\tGuess the number in fewest number of guesses." …

Software Development c++ objective-c
Member Avatar for jonsca
0
123
Member Avatar for mloC

I was wondering how one would go about creating a structure that cannot be used by itself, i.e. only through a wrapper class. My question is what would be the syntax for this construct? I'm currently on a personal project to make simple tests from old tests, all the questions …

Software Development c++ oop
Member Avatar for mloC
0
114

The End.