132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nagarajan_1

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
Member Avatar for xml_looser
0
239
Member Avatar for rhada79

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
Member Avatar for rhada79
0
3K
Member Avatar for Steven_10

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

Software Development java oracle
Member Avatar for JamesCherrill
0
278
Member Avatar for bchinfosieeuw

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++
Member Avatar for bchinfosieeuw
0
176
Member Avatar for jalpesh_007

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 …

Software Development algorithm java video
Member Avatar for rubberman
0
157
Member Avatar for somayyah

convert degree to radian in a table form

Software Development c++
Member Avatar for rubberman
0
138
Member Avatar for yaya1234

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++
Member Avatar for rubberman
0
189
Member Avatar for divinity02

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
Member Avatar for rubberman
0
169
Member Avatar for Benniit

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

Software Development sql vb.net
Member Avatar for Reverend Jim
0
6K
Member Avatar for divinity02

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
Member Avatar for JamesCherrill
0
278
Member Avatar for OMER AHMED

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
Member Avatar for OMER AHMED
0
116
Member Avatar for jonardy

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
Member Avatar for JamesCherrill
0
216
Member Avatar for varshaholla

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 ![0376d295e822f9bd4db190cdd215e996](/attachments/large/4/0376d295e822f9bd4db190cdd215e996.png "0376d295e822f9bd4db190cdd215e996") 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 …

Software Development python xml
Member Avatar for Gribouillis
0
345
Member Avatar for saly.alsayed.7

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
Member Avatar for saly.alsayed.7
0
275
Member Avatar for jalpesh_007

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
0
147
Member Avatar for dhimanbiswas4u

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
Member Avatar for dhimanbiswas4u
0
376
Member Avatar for Beta_1

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
Member Avatar for Beta_1
0
211
Member Avatar for divinity02

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
Member Avatar for divinity02
0
246
Member Avatar for hfuehf

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
Member Avatar for SteveDotNet
0
108
Member Avatar for Nova6112

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
Member Avatar for SteveDotNet
0
148
Member Avatar for Echo89

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++
Member Avatar for rubberman
0
2K
Member Avatar for overwraith

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
Member Avatar for SteveDotNet
0
157
Member Avatar for Zaprzap

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++
Member Avatar for Zaprzap
0
231
Member Avatar for Papa_Don

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
Member Avatar for Papa_Don
0
671
Member Avatar for Fil_1

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 …

Software Development c c# c++ ios
Member Avatar for NathanOliver
0
936
Member Avatar for ankit1122

i want to populate jtable from database upon clicking on jbutton...how could i do this??

Software Development java
Member Avatar for JamesCherrill
0
151
Member Avatar for sallubhai

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
Member Avatar for JamesCherrill
0
305
Member Avatar for Faisalmunawar15

How to make a random data generator in c++?

Software Development c++
Member Avatar for Maritimo
0
211
Member Avatar for anurag_pareek

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
Member Avatar for Indra_1
0
236
Member Avatar for chahinez.abdelo.9

Hello, please help segmentation of a picture in color using Builder C++ -Level set or - Growing region or - Watershead.

Software Development c++ image
Member Avatar for rubberman
0
136
Member Avatar for EdJones

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
Member Avatar for EdJones
0
158
Member Avatar for 4evrmrepylrning

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
Member Avatar for Nisar222
0
13K
Member Avatar for Ola Loay

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++
Member Avatar for Rafiii
0
387
Member Avatar for maenzaid

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
Member Avatar for Labdabeta
0
336
Member Avatar for humorousone

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
Member Avatar for humorousone
0
261
Member Avatar for deepeshmathuria

#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++
Member Avatar for Moschops
0
204
Member Avatar for Echo89

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 …

Software Development algorithm c++
Member Avatar for Moschops
0
177
Member Avatar for stan3688

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
Member Avatar for Gribouillis
0
239
Member Avatar for chahinez.abdelo.9

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
Member Avatar for chahinez.abdelo.9
0
194
Member Avatar for Taufique111

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#
Member Avatar for Taufique111
0
311
Member Avatar for rahulzephyr

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
Member Avatar for ddanbe
0
147
Member Avatar for mark103

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
Member Avatar for Gribouillis
0
246
Member Avatar for Hawk123

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
Member Avatar for imti321
0
553
Member Avatar for murali2489

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

Software Development c unix
Member Avatar for murali2489
0
271
Member Avatar for dc1993

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
Member Avatar for JorgeM
0
237
Member Avatar for Mr._1

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
Member Avatar for SteveDotNet
0
311
Member Avatar for burhanahmed92

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 …

Software Development c# listview
Member Avatar for SteveDotNet
0
2K
Member Avatar for Chrislynn_1

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
Member Avatar for Chrislynn_1
0
240
Member Avatar for TheAustinG

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++
Member Avatar for TheAustinG
0
495
Member Avatar for FruitPunch

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
Member Avatar for Freaky_Chris
0
264

The End.