132,726 Archived Topics
Remove Filter ![]() | |
I have xml like this <mainProcedure> <proceduralStep> <proceduralStep> <proceduralStep> <proceduralStep> </proceduralStep> </proceduralStep> </proceduralStep> <proceduralStep> <proceduralStep> </proceduralStep> </proceduralStep> </proceduralStep> </mainProcedure> the child node name for mainProcedure node is all same and no attributes and text. i need to find out which proceduralStep node is clicked and its position. Software Development xml | |
Need Assistance Please. My code is not adding the size and the toppins: import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.event.*; import java.util.EventObject; public class PizzaCalculator extends JFrame implements ActionListener { JPanel westPanel = new JPanel(); JPanel eastPanel = new JPanel(); JPanel centerPanel = new JPanel(); JPanel northPanel = new … Software Development gui java java-swing | |
Hello I am studying for the 1Z0-803 (Oracle Certified Associate, Java SE 7 Programmer) exam and I have the hardest time with following the flow of nested loops. On practice tests I do ok on more complex concepts like polymorphism but I miss over half of question with nested loops. … | |
How can I make a textile in a FLTK executable in main(), so when opening the program, and put text in it? The standard way via ofstream does not work now. The code I want to elaborate on is on this website: http://www.fltk.org/strfiles/267/fltk_input.cpp Now when I add ofstream myfile; myfile.open … Software Development c++ | |
Hello, I am working on project of developing video stagenograhy. i have referred following link. http://www.dreamincode.net/forums/topic/269189-video-steganography/ also read a lots of material on it and found total 10 encoding and decoding algorithm. please send/suggest me good material for video steganography. Just let me know how can encode/decode my message using … | |
Hey, I allowed to use only one getter and setter per class. My variables initialization in the calss in need them is correct (I used the Debagger) But then I can not access the private variables ... Here is part of the program.. #ifndef _H_SIMULATION #define _H_SIMULATION #include <iostream> using … Software Development c++ | |
hi all just a question. if you are making a if statement in a game and the compile is not reading the condition in the if statement and it jumping out and reading the rest of the codes what is the cause of that. I am trying to build my … Software Development java | |
Good day, gurus of this well-known site. I am using vb.net 2013 Ultimate and SQL 2012 and can someone show/link me how to save and retrieve a word document from SQL database? Thanks | |
hi Iam doing a payroll system for a compny where I have to implement a program to calculate workers pay. for commission paid workers, hourly paid workers and fixed monthly paid worker. i have done the codes but something is wrong somewhere between the codes. cant tell if it is … Software Development java | |
i am making a security program which only administrator can run. now i place one checkbox in registration form that if the user is administrator then he will check that box and program will not ask for " run as administrator" now i need code for checkbox something like if … Software Development vb.net | |
This project deals with EOF-based loops, using the while construct where we do not know the exact number of times a loop will iterate (perform the associated block of code). We will continue to build on our knowledge of if/else constructs. Use the variables given below to solve the problem. … Software Development java | |
Hey,I wanted to know how to read a .txt file and the output should be in .xml format. I have the input file as input1.txt  My code: from lxml import etree import csv root = etree.Element('data') #f = open('input1.txt','rb') rdr = csv.reader(open("input1.txt",newline='\n')) header = next(rdr) for row in … | |
1) When the program is executed, it asks the user to enter a password 2) When the user enters password, its characters should not appear and * must appear for each character. 3) The program compares this password with hardcoded constant password (e.g. pass DB ‘Abc123’). 4) If the entered … Software Development assembly | |
hello, I am working on a project of Mediaplayer using C#. I have taken MediaPlayer class, for my mediaplayer to play and stop it. Now i want to create play list programmatically. how to do so? Mean how can i generate .wpl file(Multiple with different genre), load it in mediaplayer … Software Development | |
I want to make a form application that upload torrent file in bytebx.com using my username and password Could any one help me? Torrent uploading header request like : http://bytebx.com/storage POST /storage HTTP/1.1 Host: bytebx.com User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate … Software Development file-stream file-system storage vb.net | |
I'm using a WPF Textbox in Winforms using elementhost to get the SpellChecker feature. I loaded a large text file with at least 100,000 + characters and over 2,000 lines. It opens the file and adds the text to the wpf textbox normally and I can easily scroll through the … Software Development vb.net | |
it it is me again. I am know guys are probably thinking am bothersome here is my question. it is about the java game am building no I havent finish it yet, still having some trouble i have declare this syntax, I know that I have asked this question before … Software Development java | |
I have a datagrid with checkboxes that lets the user to multiple delete. How do I store the deleted records into a text file? I am using Access to store my data My code for delete is Try con.Open() For Each row As DataGridViewRow In DataGridView1.Rows If row.Cells(0).FormattedValue = True … Software Development vb.net | |
hi, i'm working with a travels project i have two tables(vehicle_entry and booking).. when i try to book on some particular date only available vehicle names should be shown in the combo box... it shold show all the names from vehicle_entry table except that vehicle is registered in booking table … Software Development vb.net | |
Hi, The sqrt function does not accept integers of type `unsigned long long int`. Is there a pre-exisiting C++/C standard function that can compute square roots of integers of that size? Thanks in advance, Caelan. Software Development c++ | |
So I am kinda new to developing client and server sockets (protocols), and am developing something just for fun on my own network. This program basically will send all files from a specific folder to a client. So I am wondering if I wanted to send multiple files over one … Software Development socket-programming | |
This is the first time I have felt a smidgen of fear when learning C++. I am doing an exercise in *Accelerated C++* and the fear is that I'm not appropriately handling memory. I'll list my code below but I figured I would give some specific questions first: 1. Is … Software Development c++ | |
Hello Group! I am in need of converting a "text" file created by a UNIX based program (it is only semi-formatted) and put it into a more-formatted text (.txt) file. Put a different way, this needs to be converted such that it can be opened in Notepad and it be … Software Development microsoft-office unix vb.net visual-basic | |
I've been having a hard time for quite a while now trying to read files. These files include English text, pictures music and so on. After hurting in the jungles of Africa or the internet I found something that worked. `string str((istreambuf_iterator<char>(fileIn)), istreambuf_iterator<char>());` This made it possible to do all … | |
i want to populate jtable from database upon clicking on jbutton...how could i do this?? Software Development java | |
Hi I wanted to draw a field like this photo which I have attached. I would appreciate your help. I have wrote so much now: for (int x = 2; x < 12; x++) { for (int y = 2; y <= 12; y++) { g.drawRect(40*x, 40*y, 40, 40); } … Software Development java | |
it is a simple program but the beuty lies in its shortness it is written in least line as possible By :- Anurag Pareek Software Development c | |
Hello, please help segmentation of a picture in color using Builder C++ -Level set or - Growing region or - Watershead. | |
Which class structure is better for what purposes. This one: class Text: def __init__(self, passage): self.s = passage def read_text(self): return self.s def grow(self, sentence): self.s = self.s + sentence.s class Sentence(Text): def __init__(self, sentence): Text.__init__(self, sentence) self.s = sentence def format(self): self.s = self.s[:1].title() + self.s[1:len(self.s)-1] + ". " … Software Development python | |
I'n trying to convert a dbf file to a csv file(or anything else really). I found this on the interwebs but I get an error import csv from dbfpy import dbf import sys dbf_fn = 'in.dbf' csv_fn = 'out.csv' in_db = dbf.Dbf(dbf_fn) out_csv = csv.writer(open(csv_fn, 'wb')) names = [] for … Software Development python | |
Create a two & three -Dimensional Shapes Mini-system that consists of 6 shapes, Square, Rectangle, Triangle, Circle, Cube and Sphere and then calculate area, perimeter, volume , or draw the shape. After that, it does the following tasks: 1. The code ask the user to enter the required values should … Software Development c++ | |
i have programe in c but i need to use function and i have no idea how do it can any one help me please and one more thing i cant use loop inside case so it must be out #include<stdio.h> #include<stdlib.h> int main() { int row ,n,c,temp,k,count=1; int input … Software Development c | |
![]() | Is there a good pratice for naming form controls which are purely cosmetic? If not, any suggestions for variable names for these controls? E.g A label (which never changes) above a text box. Software Development ![]() |
#include<iostream.h> #include<stdio.h> char A[3][3]={1,2,3, 4,5,6, 7,8,9}; void printmaze(); void makemove(int,int); void checkmove1(int,int); void checkmove(); void checkrow(); void checkcol(); void checkdiag1(); void checkdiag2(); void makealtmove(); void result(); int main() { int m11,m12,m21,m22,m31,m32,m41,m42,m51,m52; char ch; do { cout<<"Welcome to tic-tac-toe"<<endl; printmaze(); cout<<"for choosing 1--> input 0 0, 2-->0 1, 3-->0 2 \n … Software Development c++ | |
Hi, I wrote this implementation of Sieve of Eratosthenes, is there any way I could eek some more performance out of it. As in opitmising data types, calculations etc. #include <iostream> // cout #include <math.h> // sqrt #include <time.h> // clock/CLOCKS_PER_SEC #include <stdlib.h> // malloc/free using namespace std; int main(int … | |
Hello Guys, its my first few months on progamming, love the course but things are abit confusing at the moment, i have this assignment below, pls i will appreciate if anyone can help me out. Write a program to accept a number of scores from a user. Use floating point … Software Development python | |
product between 2 arrays of 2 dimensions and be the score is stored in another array using ecplise and gridsim for exemple: mat3[i][j]= mat1[i][j]* mat2[i][j] Software Development java | |
I have two datagrid's in one form,so when i click by using cellclick event it shows the selected row of first datagrid in the second datagrid,so my question is how to increment it with the previous selected row of first datagrid,as i select other row the first selected row disappears?? Software Development c# | |
I have datagridview in form1 and i can add rows in it... now on button click i want to show the same datagridview in another form with same rows which i have added already in form1 datagridview...can someone help me with this?? Software Development vb.net | |
Hi guys, I'm working on my python script to get the list of elements in the arrays. I'm using the variable `position_x = elem.getX()` to get the list of pixel size for the elements. Here is the output: 18:32:12 T:4060 NOTICE: 375 18:32:12 T:4060 NOTICE: 724 18:32:12 T:4060 NOTICE: 1073 … Software Development python | |
Hi everyone. I want to ask a question on how to show pictures (jpg files) from access database to a form I have a database called DataBase, i have some fields there. One is called picture, and the data type is attachment. and i have the following code Dim ds … Software Development display microsoft-access vb.net | |
Hi All, I am very new to C Programming. I am writing a C Program to run in an UNIX machine which is used to Archive Log files if it exceeds a particular Size. The thing is the program has to get the details of the file like file name, … | |
Hello, I am trying to page an RSS page from asp maker. I keep getting the following error: This page contains the following errors: error on line 18 at column 102: Opening and ending tag mismatch: font line 0 and description Below is a rendering of the page up to … Software Development | |
Hi..i m new here..i want to ask some little help..how can i save the listbox items into binary file? The items should write at specific location which is offset 0x2E (item1), 0x9A (item2) and 0x106 (item3)..each offset separate by 108 length.. Software Development | |
I tried to save rows in listview control in database but i am not able to loop through each row. My listview is multicolumn, it have 4 column. I tried for loop: for (int i = 0; i < listview.Items.Count; i++) { String abc = listview.Items[i].Subitem[i].Text; //other varables } But … | |
I have a requirement to update a configuration file content at a specific lines location. How to do this in python. For example, I have a configuration file which is having below 5 lines now: define host{ name kiki-server; XXXX XXXX; XXXX XXXX; } I am interested have my python … Software Development file-system python | |
Hello fellow coders, I am currently taking a C++ class and have a final project due very soon. We are recreating the game Othello/Reversi using the console. So far I haven't run into really any problems and it hasn't been too bad. I have almost all of it complete except … Software Development c++ | |
I can't figure out the code for, 1) Get an error message dialog when there's no input in the textfield. 2) Get an error message when you put alphabets or other characters except for numbers. Software Development java |
The End.