132,726 Archived Topics
Remove Filter ![]() | |
I have a text file in this format: AUGC U[B]1212[/B] A[B]2121[/B] G[B]3434[/B] C[B]4343[/B] I need to extract the number that I need depending on which variables (letters) I'm comparing. For example, I need the value for A and U, so the value I need to look up for or extract … Software Development java | |
Hi I am tryibg to check for presance of a string in a big string. I tried as follows: [CODE]IS_VECTOR_TEST_CASE=`grep AIV "$PWD"` if [ "$IS_VECTOR_TEST_CASES" = "" ] then #do something else #do something fi[/CODE] This always giving me as if [ "$IS_VECTOR_TEST_CASES" = "" ] is true with following … Software Development shell-scripting | |
Can some body help in writing the shell script to copy the nightly file from windows server to unix server. Thanks in advance Software Development shell-scripting unix windows-server | |
Hi, I have an access databse, but the data is link to excel, so i cant changes the data inside access database. However, i just want to retrieve the data inside the access database using VB datagridview, but the system pop out an error said 'cannot find the input table … Software Development microsoft-access open-source vb.net | |
I'm calling a GUID with a system function and trying to insert it into a database as a primary key. i'm using vb 2010 .net framework with sqlce server making my datatables. the column is AutoNumber which i set up to be a uniqueidentifier. the length is not adjustable and … Software Development dataset open-source vb.net | |
I am having trouble getting my program to run. I can't figure out where this error is...prob. something easy and i'm just to tired to find it. Anyways here is the project details and the c++ code that I have wrote is attached below since I haven't messed with the … Software Development c++ | |
Hello ladies and gents, Had to make the following exercise in Accelerated C++ Write a program to calculate the average of the numbers stored in a vector<double>. THis was my solution: [code] #include <iostream> #include <iomanip> #include <vector> using std::cin; using std::istream; using std::cout; using std::setprecision; using std::endl; using std::vector; … Software Development c++ | |
I am have to create a program for my class. The instructions are to allow a user to input an integer and display the month and day that corresponds to the entered number. For example, user enters 32 and it will display February 1. I must create a DayOfYear class … Software Development c++ | |
hello can you help me how can i count the element in array heres my code [CODE] int [] num = new int [10]; int i; System.out.print("Please input 10 numbers"); for(i=1;i<=10;i++) { num[i]= console.nextInt(); System.out.print(" " + num[i]); } System.out.print("\n"); System.out.print("The elements are"); for(i=1;i<=10;i++) { System.out.print("The elements are: " + … Software Development java | |
hello can you help me please what is the string method to be use when searching a keyword that can be found in first, middle, end of the word... example "CH" this will search all names having this "CH"...can you help me what is the string method to use this...hoping … Software Development java | |
#I have to revise this code below to allow the teacher to perform these calculations for any number of students. The teacher will be asked if she wants to calculate the average of another student. If she does, the program will allow her to input his / her test grades … Software Development python | |
Hey, i want to display live x and y values on a C++ form in vs2008 and want to control windows mouse pointer through the x and y values my program is generating. Need help. Thanks Software Development c++ | |
start Server first start Client by passing the ipaddress of the server eg; java Client 10.0.1.15 if an error pops up change the port in both Client and Server programs Software Development client-server java socket-programming | |
I was creating a chat application in Java Swing/Socket Programming. The same when I created in non GUI app. it worked [url]http://www.daniweb.com/code/snippet448.html [/url]. But in GUI, they can't connect now. I have tried it thru many ways but still m getting errors for connection. Can anyone can help me...... /********************* … Software Development client-server gui java java-swing socket-programming | |
[code] #reg.py #Choose username and password def regis(): userpass = open("userpass.txt","w") userpass1 = userpass.write(raw_input("Please select a username: ") + "\n") password1 = userpass.write(raw_input("Select a password: ")) userpass.close() #end of reg.py #login.py # Should i import reg before this function or is it ok to do it in the function? # … Software Development python | |
abstract class A { abstract void callme(); void callmetoo() { System.out.println("this is concrete method"); } } class B extends A { void callme() { System.out.println("implementation of callme"); } } public class abstractdemo { public static void main(String []args) { B b=new B(); b.callme(); b.callmetoo(); } } Software Development java | |
How to convert following dos batch code to unix shell:- echo Database username and password will be taken from liquibase.properties file.... setlocal ENABLEEXTENSIONS for /f "tokens=1* delims==" %%a in (liquibase.properties) do ( if "%%a"=="username" set dbuser=%%b if "%%a"=="password" set dbpwd=%%b if "%%a"=="url" set dburl=%%b ) echo. echo UserName is:=%dbuser% echo … Software Development shell-scripting unix | |
I'll start off by saying that not only am I new to Python but programming in general. But the problem is that whenever I have the user put in a number, then have the user put in another number, I can't get the two x,y variables to add up. the … Software Development python | |
In my sample code for writing to update a value, say employeeId, i saw it said to use the properties method and follow two paths. If it exists allready: [code=c#] If(child.Properties.Contains("employeeId")) [\code] then you would simply do: [code=c#] child.Properties["EmployeeID"][0] = Id; // by the way it seems this has two … Software Development | |
Hi, I am trying to interface between Java and Python in a program called Eclipse. Specifically, I need to call a program I wrote in python while in java. Any insight on how to do this would be helpful. Thanks! Elise Software Development ide java python user-interface | |
Hello, I need help concerning <curses.h> and <conio.h> libraries issues. There's a conflit between both libraries when I compile my software in Dev-C++ (XP OS). 1. In <curses.h> there's this code line: . . . extern int COLORS,COLOR_PAIRS; . . . 2. In <conio.h> there's this code line: . . … Software Development c | |
I've read this on some other questions here at DaniWeb so I've been trying to use the suggestions posted. They don't seem to be working correctly for what I need or I'm seriously confused (probably the latter). Anyways, I'd like to establish good programming practices early to avoid developing bad … Software Development c++ | |
I don't understand why my labels are not coming up when i run the code are the JComboBox to big or what? [CODE]import javax.swing.*; //import javax.swing.AbstractButton; import java.awt.*; //import java.awt.event.ActionEvent; //import java.awt.event.ActionListener; public class floralOrderGUI { JButton submitButton = new JButton("Submit"); public static void main(String[] args) { new floralOrderGUI(); //system.exit(Q); … Software Development gui java java-swing | |
Hi, I new to C# but been working with PHP for years and decided to try proper programming :) I want to create a simple proxy to add or remove certain http headers. My plan was to use HttpListener to catch the request by the browser then edit headers I … Software Development web-browser | |
i am trying to extend a splashscreen window ti 15 minutes can anyone help. [CODE]import java.awt.*; import javax.swing.*; public class flowerOrder extends JWindow { private JProgressBar bar; private JLabel ImageHolder; private ImageIcon myImage; private int i; public flowerOrder(){ setBounds(60,60,600,600); //set location and size of the window getContentPane().setBackground(Color.BLUE); //set the background … Software Development java java-swing | |
Hello! I'm trying to make a simple calculator in Visual C++ and while coding the decimal button, I encountered the error C2228. Basically, I'm checking if the textBox1 (its name!) already contains a '.'; if yes, then it should return; else, it'll add a '.'. To check for that, I … Software Development c++ | |
hi all, i was trying to write to a pre existent binary file but every time it would change the size of file and remove all of its contents so what i should i do????? here is an example to what i'am trying to say(it is not exactly the same … Software Development c++ file-system ios | |
Hey everyone again, so I am having a lot of problems with function in wxPython, this time, I need to know how, or if it is possible, to add new widgets to the main frame from a function, so here is my code: [CODE]import wx class Example(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,'Example', … Software Development python | |
I can't believe I'm even having to ask this rather simple question but I wouldn't normally use C++ for this, and I'm caught on a snag. I have some files filled with many entries like this (from unix time command): [code] real 0m0.475s user 0m0.091s sys 0m0.028s [/code] For each … | |
Some background I have about 1000 objects of the same class that are created from parsing a text file. The class holds 4 short (~20 characters) Strings and 2 ints. I plan to make an application that uses these objects (a sort of map if it matters). I would prefer … Software Development java | |
Hello! So I have a program where I need to open a file, pass the reader into a method, and then within the method read from the file. Then when control shifts out of the method, I need the file reader to be able to pick up where the method … Software Development file-system | |
hello! i need to make this program that lets the user input like for example 99 then the program will output 'c'. i don't know how to start. but i thought about getting the first 9 first, then subtract 30h, the multiply it by 10. afterwards, add the other 9, … Software Development assembly | |
Alright. In Outlook, if I want to arrange my tasks by categories, I can go View->Arrange By->Categories. My question is, is there anyway to do this programatically? Thanks a bundle :D Software Development | |
Hi. I am working on a program in which the user enters a series of integers, and the program displays the highest and lowest integers after the user inputs -99. My problem is initializing the variables; I have no clue how to make my loop work in all cases, just … Software Development java | |
Hi there, I see a sample code that an object is instantiated within the class definition block. But when I test the folllowing, I got error "Process is terminated due to StackOverflowException."? [code] Imports System Module xx Sub Main() Dim a As New c() End Sub End Module Public Class … Software Development vb.net | |
[CODE]import time import subprocess from PyQt4 import QtGui, QtCore[/CODE] ............. This function is not working! [CODE]@button.clicked.connect def connectClicked(): button.setEnabled(False) process = subprocess.Popen("command", shell=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE) time.sleep(5) # 5 sek (?) button.setEnabled(True) [/CODE] ................ Software Development python | |
Hi again, I'm back, with another question about my calculator program (which I got to work, yay!) Why does the following program not work (when the one after it does): [CODE] #include <iostream> using namespace std; float x; float y; char z; int add() { cout << x << " … Software Development c++ | |
Hi everyone, I have a "This should be simple!" kind of problem. I need to do a little socket programming on a SunOS machine. I went back to an old school assignment I did years ago, cut-n-pasted that code, intending to basically cannibalize it for the program I need to … Software Development algorithm c++ queue socket-programming | |
Visual C++ is an absolutely big environment. Currently, I'm working on windows forms applications. I tried to search for tutorials but the only thing I found was scattered information in MSDN Microsoft website. How is it possible to learn windows forms separately?Is there a book out there? Anyway, I'm going … Software Development c++ | |
We get files from a unix system that are delimited with linefeed only, this is not a problem. The problem is that within some of the fields themselves, there are carraige controls ("\r\n"). Reading the file using OS will see a row like this and stop reading at the crlf. … | |
I have a small test program made, and it actually fully works. It connects, and you can send messages back and forth.....but for some reason, when I call connect(), It returns SOCKET_ERROR, but connects, and works fine anyways. Does anyone know why? here is the code: see lines 160, 161 … Software Development c++ | |
I have a problem where I need to be able to create an array using the data from the text file. The first line of the file is the array size and the following values need to be put into structs. There may be more than one array per txt … Software Development c++ file-system | |
how to read txt file binary data and store it in array for further use. this use the concept of data file handling. plzzz bhelp me the way out as soon as possible. Software Development c++ | |
When I read a text file as the code below the first line returns as nothing. I checked the text file and it contains 3 lines before the read. After the read the first line is blank the following 2 lines have values. I don't write back to the file, … Software Development vb.net | |
Hiya, I have a int x = 28492374 and need to add every other digit together and then later do other stuff with the digits like take every other digit and multiple by two then add each digit together. Anways i dont know the method call out a single digit … Software Development java | |
I' working on an array where the user inputs characters(up to 80). I then need to output the characters, one per line, until the string is null. My problem is in the while loop i think, im just not sure what to do from here. Any ideas? [CODE]#include <stdio.h> void … Software Development c | |
I have a web app that creates an employee.txt file, how do I go about printing the contents of the file from a form? [CODE]<%-- confirmation.jsp --%> <%@ page session="false" import="java.util.*" %> <%@page import="java.io.InputStreamReader"%> <%@page import="java.io.BufferedReader"%> <%@page import="java.io.DataInputStream"%> <%@page import="java.io.FileInputStream"%> <%--Retrieve the Employee and Hiring beans from the Request scope--%> … | |
hi, i have been having problems with my data grid...i cant find the right website or any material to help me understand the business around data grid views. It has 3columns.Name,City and Country.Name is a text column, City is a combo box column and Country is as a result of … Software Development | |
Suppose I have an Outlook account that is logged in at the computer. How can I send an email from this account to a given contact (if this can be a group, that would be really nice) via a C# program? Thank you very much! |
The End.