43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for irobot_229

Is that possible to execute all the command available in cmd prompt by a java program? all that i know is there are .exe files corresponding to commands in windows>system32 folder, those are only executable by Runtime().exec command.what about other commands not having corresponding .exes?is it possible to pipe commands? …

Software Development java
Member Avatar for irobot_229
0
161
Member Avatar for wanted08

hey .. how are u all ?? I have c++ problem .. i tried to solve it but i couldnt get the same input .. [COLOR="Green"]here is the problem:[/COLOR] Given the following file called “input.txt” which contains the freezing and boiling points of several substances. Note: the title is not …

Software Development c c# c++
Member Avatar for Tom Gunn
1
504
Member Avatar for Nitricity

Hi i am writing a program to convert a user entered integer number into its binary representation, the aim is to repeatedly ask the user to enter a value then output the number in binary and when 9999 is entered end program, i've managed to make it work with positive …

Software Development c
Member Avatar for Nitricity
0
1K
Member Avatar for sravan953

Hey guys, I have made a small program called 'Py-mailer' which allows you to login with your Gmail credentials and send text-only messages to anyone. I uploaded it on SourceForge( [url]http://www.tinyurl.com/m4ans4[/url]). The next step I had to take was to make a GUI for it. So, I started with wxPython: …

Software Development gui python
Member Avatar for vegaseat
-1
3K
Member Avatar for wajih

Hello all, i want to save the variables present in python workspace to text file.I have used file.write() option but it converts the variables(and also arrays) to string.I want to store them as they are present in IDLE. Is it possible? Thanking all in anticipation. regards wajih

Software Development python
Member Avatar for vegaseat
0
543
Member Avatar for panagos

I finnaly got working the program with <ncurses.h> in the virtual box that i put Ubuntu. A test program for handling the screen is given to us, [U]this:[/U] [CODE]#include <ncurses.h> int main(int argc, char **argv) { int X = 10; int Y = 10; int ch; initscr(); noecho(); keypad(stdscr,TRUE); move(Y, …

Software Development c ubuntu
Member Avatar for dkalita
0
223
Member Avatar for princessotes

Hi, I have a list of positive digits in a file. All I want to do is to add the negative sign (-) to each digit. Is there a code for this. eg list of digits 1 correspond -1 2 correspond-2 3 correspond -3 etc

Software Development python
Member Avatar for vegaseat
0
28K
Member Avatar for tastybrownies

Hello everyone, I'm a frequent reader of a lot of software dev forums on the interent when I go searching for solutions for problems. But it seems like I always keep coming back to this one because it's correct. But to start off, I made a little app that has …

Software Development asp.net vb.net
Member Avatar for tastybrownies
0
134
Member Avatar for saikeraku

I want to make a program that outputs something like: Enter integer: 117 117 is lucky! Enter integer: 1003 1003 is not lucky! So, if the integer entered contains at least one 7 in it, it will output is lucky! And if it doesn't it will output the is not …

Software Development python
Member Avatar for vegaseat
0
158
Member Avatar for cmsc

I made a game for my project. it contains two levels and a welcome screen. The problem is I cant go to the other panels. I tried using cardlayout. but since my panels are in different classes, I don't know how to do it. Please help. here's part of the …

Software Development java
Member Avatar for cmsc
0
122
Member Avatar for rociel

Hello, I've spent hours but can't seem to figure out how. This is the question: modify the program so that the prompts that ask the user to enter a transaction include the number of the transaction that should be entered next. Here's what the prompts should look like: Enter quiz …

Software Development python
Member Avatar for rociel
0
129
Member Avatar for siggivara

Hi. I have this codeline: [CODE=c]fprintf(file, "The\necake\nis\na\nlie");[/CODE] When I compile and run in Linux it outputs nicely like so: The cake is a lie but when I compile and run in Windows (Vista), using cygwin, the newline doesn't work and output is like this: Thecakeisalie Anybody have an idea why?

Software Development c windows-vista
Member Avatar for Tom Gunn
0
667
Member Avatar for fferrandini

Hi guys. im new in this forum, getting used to python+turbogears and already have a doubt. i have a sql statement to do , that uses "like" . for example: sql = db.text("select name from users where name like '%Fernando%' and dt_birthday='%s'" %(dt_birthday)) and the server gives me the following …

Software Development postgresql python
Member Avatar for fferrandini
0
106
Member Avatar for dre-logics

I created a program using Visual Basic 2008 . I want to use "Setup and Deployment Project" for deploying my [COLOR="Red"]Windows Application [/COLOR] for Stand alone pc. I want to install my [COLOR="red"]windows application [/COLOR]on stand alone pc in this directory: c:\program\ My images in this directory: c:\program\images I have …

Software Development vb.net visual-basic
Member Avatar for dre-logics
0
148
Member Avatar for PyroPaul2

Can any help, please? Can anyone provide me with the basics of passing (interprocess) a bitmap? Send & Receive in C# CreateFileMapping, I belive, is still the only way to do this. I'm not sure how you deconstruct/reconstruct the bitmap. Many thanks in advance.

Software Development
Member Avatar for PyroPaul2
1
356
Member Avatar for ctrl-alt-del

Hi all! I'll keep this post a little shorter then I normally do, lack of time to post and all of that. I am making a widget-type program. You know, no borderstyle, no taskbar, opacitycontrol, stuff like that. It's going to be an RSS-aggregator by the way. Now for my …

Software Development xml
Member Avatar for Geekitygeek
0
288
Member Avatar for ttchiwandire

Hie guys, Iam developing a java web application which uses mysql as its database engine. Now I would like to use the hibernate and spring frameworks together. The problem I nam facing is in configuring the various beans and establishing a clear relationship btwn the two frame works. If any …

Software Development java
Member Avatar for ejosiah
0
166
Member Avatar for Web_Sailor

Hi.. How do I check the data type in an input file ? Suppose my text file looks like this. Tab separated :- [CODE] 123 456 ABCD 789 890 EFGH 298 764 IUHJ [/CODE] Now I read the file like char or string in my while loop using getline. So …

Software Development c++ file-system
Member Avatar for Web_Sailor
0
142
Member Avatar for jrosh

In my application an error massage comes when the required data fields are not filled. I did it as, [CODE] if(component.getSelectedItem().equals("")|description.getText().toString().equals("")){ JOptionPane.showMessageDialog(null,"Please insert required details \n ","Error",JOptionPane.ERROR_MESSAGE); } [/CODE] the problem: When I click "OK" when this massage pops up, it closes the entire window. How can I avoid it. …

Software Development java
Member Avatar for jrosh
0
153
Member Avatar for Mongz

Hi guys, i created database backup, but now i want it to backup every time when the time is 00:00. Any help will be highly appreciated.

Software Development
Member Avatar for shankarkotagiri
0
110
Member Avatar for NinjaLink

I am creating a diamond but I am having problem. Right now, my output prints out 2 triangles underneath each other (is not displaying in the post correctly). I want to flip the 2nd triangle around to create a diamond shape. However, when I try to mess up with counters …

Software Development c++
Member Avatar for VernonDozier
0
96
Member Avatar for Megabyte89

Every time I try to save data to my contacts database I get an error. The script runs fine, but when it come to clicking save I get this error. Traceback (most recent call last): File "C:\Users\Panic\Desktop\EminentGeekTechnology\Looking For Who\addnew.py", line 71, in OnSave self.database.execute('INSERT INTO contacts (fname) VALUES (null,?),' [fname]) …

Software Development python
Member Avatar for Stefano Mtangoo
0
486
Member Avatar for calypso&noname

Thanks ahead of time for reading, and any help you give. Basically I have a integer "numExs" that is initialized by user input. Then, I use a [B]for[/B] loop to output the appropriate number of X's, as dictated by the "numExs" integer. However, I get a C4700 warning that "numExs" …

Software Development c++
Member Avatar for calypso&noname
0
265
Member Avatar for SoulMazer

So, I have a rather simple question today. I'll try to explain it by using an example. Let's say there is a line of HTML in the page "www.mywebsite.com/py" that says "<tr colData0='Friday'>". However, this line of code can change to be "Sunday", "Tuesday", etc. What would be the easiest …

Software Development html-css python
Member Avatar for SoulMazer
1
165
Member Avatar for valkerye

I'm having an issue with a program that prompts a user for a date and then validates it. It requires a switch statement to validate the day and at least 2 Boolean variables. My problem is with either of those or possibly both. I'm honestly guessing both since I'm still …

Software Development c++
Member Avatar for valkerye
0
103
Member Avatar for hket89

Standard telephone keypads contain the digits 0 through 9. The numbers 2 through 9 each have three letters associated with them, as indicated by the following table: Digit Letter 2 A B C 3 D E F 4 G H I 5 J K L 6 M N O 7 …

Software Development c
Member Avatar for hket89
-2
504
Member Avatar for assembly101

I am trying to find out if the Auxiliary carry flag only turns on when the 4th bit carries out from the 3rd bit or if it will turn on for the 7th to 8th bit aswell. This is what I did already: mov ax, 0Fh ; this is the …

Software Development assembly
Member Avatar for wildgoose
0
207
Member Avatar for haven_u

iam trying to extract a individual character. for example, during run time the user enters 110111 as input. can any 1 help me with the code to extract these input and store them in an array as individual elements.

Software Development c++
Member Avatar for haven_u
0
157
Member Avatar for Artamos

First my skill levels: I was over the moon when a friend donated his Trash80 to me, complete with manuals, oh so many years ago.. I got a glimpse into the PC world and later embraced DOS programming..:) As windows came into the picture I left behind my 'boyhood' knowledge …

Software Development java
Member Avatar for Artamos
0
114
Member Avatar for marshall31415

Hi, There is a lot of code - so I have attached the entire thing as a zip file. This is for a function plotter. Basically, I need to track the changes in the root window size so I can resize the canvas and redraw all the plots. I'm very …

Software Development engineering python tkinter
Member Avatar for marshall31415
0
3K
Member Avatar for Tvirusx1

Hello I am new to DaniWeb and this is my first Thread. I am currently trying to develop a bot for the Game DarkOrbit. I used WPE Pro and I found out that I could controll the Spaceship by sending specific Packets (I have some Packet codes already). Well heres …

Software Development c c# c++ client-server socket-programming
Member Avatar for Tvirusx1
0
171
Member Avatar for realchamp

Hello! I was wondering if it were possible for me to have a PHP script which would send a line of charactors to my C++ program. The C++ program needs to run all the time to recieve the inputs from PHP. Both the C++ program and my webserver is on …

Software Development c++ php
Member Avatar for realchamp
0
224
Member Avatar for DeadJustice

I'm having a small problem. I've created a binary tree that represents an n-ary tree using the left-child and right sibling syntax. I know that preorder on the binary tree gives you the same result as if the tree weren't binary. But, how do you change postorder and levelorder so …

Software Development c++
Member Avatar for DeadJustice
0
184
Member Avatar for countrygirl1970

Hello everyone, I am having a slight problem in my function "startGame". My code works on Bloodshed and the code does compile. I am trying to refine the part on making sure that only a number gets input and not a letter or any other key gets input. I have …

Software Development c++
Member Avatar for countrygirl1970
0
188
Member Avatar for EGutierrez91

[code] import java.util.Scanner; public class LazyDays { public static void main (String[] args) { Scanner scan = new Scanner(); int temp; System.out.println ("What is the current temperature?"); temp = scan.nextInt(); if (temp < 20) { if (temp > 95) { System.out.println("Go visit our shops!"); } } if (temp >= 80) …

Software Development java
Member Avatar for Grn Xtrm
0
136
Member Avatar for VernonDozier

I've googled this and it looks to me like what I am trying to do is impossible. I'm trying to write a [ICODE]Display[/ICODE]function that can take different parameters and call the appropriate function based on those parameters (i.e. function overloading). I've read that C doesn't allow this, but I figured …

Software Development c
Member Avatar for VernonDozier
0
111
Member Avatar for Nitricity

Hi ive been experimenting with basic calculations and using scanf to be able to enter an integer, if i give numb_1 a value it will divide and calculate the remainder fine but i cant get it to work by being able to enter a number, it just sits on the …

Software Development c++
Member Avatar for Nitricity
2
151
Member Avatar for gmauger

Hi All, I'd like to declare a static array in a header file. Is this possible? I assume there is a fairly simple solution to this, but I have not been able to find documentation on the correct syntax for this. Just to be abundantly clear, I'd like to do …

Software Development c c# c++
Member Avatar for gmauger
0
15K
Member Avatar for 4ukh

dear experts, I just want to wave the last digit of each cell's value like 20001 should like 2000 using ms excel 2007. please consider this table: 20001 2000 20011 2001 20021 2002 20041 2004 20042 ???? 20043 20044 20045 20046 20051 20052 20053 20061 20062 20063 20071 any help …

Software Development visual-basic
Member Avatar for 4ukh
0
98
Member Avatar for qadsia

Hi, I have a problem. I basically have this python code, that generates a file. I'm trying to get it to output a html file with a chosen name (chosencategory) but the problem is the chosencategory variables are already defined so it attempts to name the html file the contents …

Software Development python
Member Avatar for qadsia
0
266
Member Avatar for Clawsy

Hello, I would like to be able to add 'n' columns programmatically and SET THEIR TITLE as I add them. I have 2 questions: 1. How can I change the title? (not by seting a model to my table but just 'changing a property' - if possible)? 2. Is there …

Software Development java listview
Member Avatar for Clawsy
0
254
Member Avatar for atch

Hi everyone, I'm trying to compare list iterators: [code=c++] list<int> l; list<int>::iterator lb = l.begin(); list<int>::iterator le = l.end(); if (lb < le) //here I'm getting error - no operator match these operands: { //do something } [/code] And when I change this that instead of list I have vector …

Software Development c++
Member Avatar for atch
0
114
Member Avatar for andy999

hello all, I hope someone is there to help me out this. I am spliting a text file. and after splitting I want to concate the string 1 and string2 and string three and thereafter the normal string 4 ,5,6,7,8,9,10 etc. But when I debug the total string I got …

Software Development visual-basic
Member Avatar for andy999
0
157
Member Avatar for shahab.burki

Hi, I am doing network programming in C. I want to send Hexadecimal data between client and server. But stuck how C handles Hexadecimal values? I would like to put and example. I am having a variable ACK_CODE 0*81. Now want to send it. Since the send call can only …

Software Development c client-server
Member Avatar for gerard4143
0
140
Member Avatar for JRabbit2307

just trying to create a person(or two) using name, age and nationality but its giving me illegal start of expression error // **************************************************************** // Person.java // // Person class with two constructors // *************************************************************** public class Person { private String name; private int age; private String nationality; // ------------------------------------------------------------ // …

Software Development java
Member Avatar for Grn Xtrm
0
627
Member Avatar for Web_Sailor

Hi I have written a program in c++ and I feel that it is a bit slow for very large datasets like > 1GB. Well I am not that confident in char* since I have just started coding in c++. So can anybody help me to make it more efficient …

Software Development c++
Member Avatar for dkalita
0
146
Member Avatar for mahela007

Why does this raise an error? I'm trying to add a value to the [0] index for the list [CODE]mylist=[] mylist[0]='hello'[/CODE]

Software Development python
Member Avatar for mahela007
0
78
Member Avatar for tryongliph

hello everyone, i'm wroking with a List<string> and i want to copy it's values into a variable string each but i keep getting an index error. i declared a class library which looks like this: [CODE] public class SalesData { public List<string> GetSales( string Clientname, string Empname, string Breadtype) { …

Software Development
Member Avatar for Geekitygeek
0
195
Member Avatar for freddyfly

Hello all, I'm writing a program to keep track of my swim team's test set times. I would like to display the information in a table like form to edit all of the swimmers and times at once. I'm using this object: [code=c#] public class TestSetDisplay : INotifyPropertyChanged { string …

Software Development display vb.net
Member Avatar for sknake
0
1K
Member Avatar for EntangledDesi

When running this code --> [CODE]Private Sub cmdSquare_Click() Dim i i = InputBox("Please enter a number.", "Input Box") MsgBox "The square of " & i & " is " & (i ^ 2), vbOKOnly, "Result" MsgBox "The square root of " & i & " is " & Sqr(i), vbOKOnly, …

Software Development visual-basic
Member Avatar for makybe
0
297

The End.