132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Onion13

I've been learning python and I'm almost finished and I'm learning about oop. I have a question, is it possible to make a looping menu using oop on python (Not using Tkinter, WX) without having to key in the object. I learn better through playing around with what I've learned …

Software Development oop python tkinter
Member Avatar for Onion13
0
8K
Member Avatar for Violet_82

Hi, is any of you guys aware of any online java project I could join in and help? The thing is, even if I still have a very long way to go before I can code pretty decently, I'm a bit tired of learning with exercises, and I thought perhaps …

Software Development java
Member Avatar for ~s.o.s~
0
238
Member Avatar for SasseMan

Hi! I'm sitting with a gui bug that I have been stuck with for a while. When a "view" is changed from one "view" to another, the new "view" doesn't get painted properly. The previous view is visibile randomly in the background. I can't reproduce this in the dev environment …

Software Development gui java
Member Avatar for Ali_55
0
1K
Member Avatar for pavankumar77

how to add numbers with out using any arthematic operators in c

Software Development c
Member Avatar for pritaeas
0
644
Member Avatar for Popc0rn

If you develop for Android, what do you use to do so? Do you write your apps in a MS Windows environment and then drop it into the Android environment? Or, do you do all of your coding on the Android tablet itself? What do you do, how do you …

Software Development android android-development python tablet
Member Avatar for gtel
0
217
Member Avatar for steven.rose.94

Fair warning - I'm still learning so this might be a very newb like question: What I'm trying to do: I'm trying to import a python file into a Tkinter window and run it when I press a button. Eventually I'd like to display the output of the imported script …

Software Development python tkinter
Member Avatar for steven.rose.94
0
588
Member Avatar for Darth Vader

Hello, I wonder how it would be possible to get text from a datagridview in another form application? The datagridview has 5 rows and 5 columns with text in each cell. I know that this could be achieved with windows API but googling around I have not understand how to …

Software Development api windows-api
Member Avatar for Darth Vader
0
1K
Member Avatar for anirbanengg

I am trying to return a pointer from a function and use the return in a different function . But I am getting memory leak. Please help. The test code which I wrote and detected with memory leak by CPPCheck. ######################################################################## # include < stdio.h > # include < malloc.h …

Software Development c
Member Avatar for anirbanengg
0
152
Member Avatar for Violet_82

Hi guys, Today I had a look at files and therefore I’d like to create a GUI application that allows me to type a sentence or a word and store it to a text file. The reason for this is that, when I come across an interesting word or sentence …

Software Development file-system gui java
Member Avatar for Violet_82
0
712
Member Avatar for Suzie999

I have a windows form application, which uses some user settings (Settings.settings) One of those settings if of type bool and set to default of False. In my form_load event I check that value, if it is true then a new form is started where user enters a password, and …

Software Development visual-studio
Member Avatar for Teme64
0
179
Member Avatar for kgz

Hi i really want to set the window position of my console applicaton I've managed to find Console:: SetWindowPosition bu using google but cant find how to use it... [URL]http://msdn2.microsoft.com/en-us/library/system.console.setwindowposition.aspx[/URL] This link shows an example. But it wont compile I'm guessing its missing header files, what are they? I dont …

Software Development c++
Member Avatar for Faisal_11
0
3K
Member Avatar for necrovore

I have a main application (web application) that consumes various other project (directly and chain). One of the projects happens to be Project named Parser. Parser project contains a dll, which is not refered as it is native dll. Properties of the dll file says Build Action: Content and Copy …

Software Development
Member Avatar for LaxLoafer
0
221
Member Avatar for John_97

Hello guys. I have a school assignment and Im having a trouble doing it. I will ask for help. I have a class Product and I need to make 2 subclasses Chocolate and Whine. Each product has a name, barcode, price and tax. Each product has a method for calculating …

Software Development java oop
Member Avatar for JamesCherrill
0
211
Member Avatar for javi2015

I have a program that will connect to mysql server , now how to do for this work? What settings should I do on a mysql server?

Software Development mysql
Member Avatar for necrovore
0
179
Member Avatar for Abdulkabir_1

ID Arrival Departure ArrivalDate DepatureDate 1001 New York Holland 2009-09-23 2012-07-23 1301 Florida Germany 2010-10-23 2012-10-11 1401 New York Holland 2009-09-23 2009-09-25 1301 New York Beijing 2009-09-23 2010-09-21 1201 New York Holland 2008-01-01 2009-09-23 1001 Virginia New York 2008-01-01 2009-09-22 1021 New York Holland 2009-09-23 2009-09-25 1001 New York Holland …

Software Development json python
Member Avatar for rproffitt
0
353
Member Avatar for AgentOxegen

I basically am working on a final project for JAVA and I cant figure out how to move the strings into the paint class. Here are my 2 codes. import java.util.Scanner; public class FinalProjectQuestions { public static void main(String []args) { Scanner in = new Scanner(System.in); System.out.println("We will design the …

Software Development java java-swing
Member Avatar for JamesCherrill
0
250
Member Avatar for Belfina

I need to make a class that records some information for a book. I need to make 2 constractors, the 1st one receives 6 "elements" and 2nd one only the first 5, as you can see in the code below. I also need to make a simple main program to …

Software Development java
Member Avatar for Belfina
0
274
Member Avatar for Aeonix

If I wrote a program which would `Console.WriteLine()` a base64 code, like an easter egg ("a hidden secret" in gaming jargon) or something, for example string EasterEgg = "dGhlYmlnc2VjcmV0"; Console.WriteLine(b64d(EasterEgg)); And I would let a good obfuscator run through it. Now I know that crackers with enough time and knowledge …

Software Development c++ cybersecurity java python
Member Avatar for Aeonix
0
450
Member Avatar for coder91

Hi I have a method that accepts a List<String> param as a parameter. I'm writing a JUnit test which needs to be able to accept the parameters as a String and then it needs converted to a List<String> The JUnit code is: public void testMethodName(String params, String expectedResult){ final String …

Software Development java
Member Avatar for coder91
0
330
Member Avatar for zelrick

Hello DaniWeb Community, I have a question about changing the symbol of my tracker. I am using google.maps.SymbolPath.CIRCLE Can I change this to a image of mine? jpeg / png file If yes, How I can do it? Thank you and God Bless -Tap

Software Development html-css java javascript
Member Avatar for JamesCherrill
0
575
Member Avatar for jaai

i need help in adding a new record to the database using adodc in vb6.. i've a command button named add in my form...

Software Development visual-basic
Member Avatar for md riyaz
0
14K
Member Avatar for krunal1986

Hello, There is a post request coming to my portal and I am fetching IP address from the post request on my portal landing page(INDEX view in MVC) and saving in DB table. below is the code to fetch IP address. string Device_IP = ""; if (!string.IsNullOrEmpty(Request.ServerVariables["HTTP_VIA"])) { // ' …

Software Development asp.net first-post lan-wan
0
373
Member Avatar for hallianonline

I am facing a problem that I have to show database results from 3 different tables on a single report these three tables have are used for different purposes and want to show their headings details separately. I am using VB6 and designing this report in **DataReport** a common feature …

Software Development microsoft-access visual-basic
Member Avatar for hallianonline
0
273
Member Avatar for imagetvr

I am developing a sample project in Visual basic 6 and MS Access 2003. 1. I wish to print Invoice in Continuous statonery (Roll Paper ) width of paper 5.5 inches I am using printer.print Code using (x,y) co-ordinates My problem , after printing one bill printer skips and giving …

Software Development printer visual-basic
Member Avatar for jwenting
0
1K
Member Avatar for coder91

Hi just wanting to see how you can iterate over a hashmaps entry set checking both the key and values, if either matches the string passed it will return the other (if it matches the key it will return the value, if it matches the value it will return the …

Software Development java
Member Avatar for JamesCherrill
0
134
Member Avatar for computer_man

i made a form with datagridview which get its values from excel file and make some changes on its columns to prepare it to be saved in sql database so i need your help to compare one datagridview column with listbox items and get the result in another column for …

Software Development vb.net
Member Avatar for computer_man
0
495
Member Avatar for lewashby

I hot the following program from the book 'C++ For Dummies' but have two questions about it. First I compiled the program but I'm afraid to run because the memery created from the heap does not appear to me to get de-allocated. Am I correct in not wanting to run …

Software Development c c# c++
Member Avatar for rubberman
0
407
Member Avatar for papuccino1

Hello, I'm 100% new to C++ and someone recommend Code::Blocks as the best IDE for coding in this language. However when I try to run my code: [CODE=c++]#include <iostream> using namespace std; int main() { cout << "Hello world!" << endl; cin.get(); return 0; } [/CODE] I get the following …

Software Development c++ ide
Member Avatar for corey_2
0
2K
Member Avatar for zelrick

Hello DaniWeb Users/Programmers, I don't know if I post this on the right thread but I already post in Linux and Unix Thread but the cause I try ask in here is because it is programming related. I am a window user but trying to use linux for some purpose. …

Member Avatar for Stuugie
0
412
Member Avatar for coder91

Hi, I wrote a method that accepted a parameter and used a hashmap to return the value for that key. However I have been asked to change the way it is written so that code isn't duplicated. The hashmap used has key value pairs such as 'X', 'Y' in one …

Software Development java
Member Avatar for JamesCherrill
0
325
Member Avatar for Saboor880

Hello! There is another problem which I am facing in JDBC, is Insert statement. I am giving code of my program and explaining my problem . I am using ms access and netbeans 8.1 package database2; import java.sql.*; public class Database2 { public static void main(String[] args) { try { …

Software Development java java-netbeans microsoft-access
Member Avatar for JamesCherrill
0
262
Member Avatar for Anton_6

I have the following code: lista_cosas=[] class cosa(): global lista_cosas def __init__(self,color): self.color=color def operacion(self): if self.color=="verde": lista_cosas.append(cosa("azul")) else: lista_cosas.append(cosa("verde")) c=cosa("verde") lista_cosas.append(c) n=0 while n<10: n+=1 for cosa in lista_cosas: cosa.operacion() and it gives me the following error: Traceback (most recent call last): File "C:/Users/elster/Desktop/Cancer modelling with python/recursive_test.py", line 21, …

Software Development python
Member Avatar for chriswelborn
0
575
Member Avatar for noobjavacoder

Binary search tree not working, when it should. Any idea what am i doing wrong. any help would be much appreciated. this is the error: Exception in thread "main" java.lang.Error: Unresolved compilation problems: The method iprint(Node1) in the type BST is not applicable for the arguments () The method preprint(Node1) …

Software Development java
Member Avatar for Oxiegen
0
422
Member Avatar for hudahamid

i am new to queue..can somebody help me on this.im stuck at selction 2,3 and 4 #include <iostream> #include <queue> // Queue STL #include <time.h> using namespace std; int displayMenu() { int menu; cout <<"\t\tQueue Numbering System"<< endl; cout <<"`````````````````````````````````"<< endl; cout <<"1. Generate queue number"<< endl; cout <<"2. Get …

Software Development queue
Member Avatar for David W
0
229
Member Avatar for Curious Gorge

I'm pretty good with Java but I would like to learn to create interesting things with C++ or C. At the moment I have to ask: Why do all of these IDE's and libraries make it so damn difficult to set up an environment for programming? Personally I believe programming …

Software Development c++ gui ide
Member Avatar for triumphost
0
392
Member Avatar for COKEDUDE

After you have the appropriate infix to postfix expression how would you do the math with the expression? I'm having difficulty programming it. // Operator supported: +,-,*,/,%,^,(,) // Operands supported: all single character operands #include<stdio.h> #include<conio.h> #include<ctype.h> #define MAX 50 typedef struct stack { int data[MAX]; int top; }stack; int …

Software Development c
Member Avatar for Anu_5
0
245
Member Avatar for appsdata

Hello and how are you? I am trying to fix the nested loop called the clock to go from 0:0:0 to 12:59:59 but I am keep getting infinite loops of 0:0:0 on mars/mips Here is what I have: .data str2: .asciiz ":" space: .asciiz "\n" .text main: li $t0, 0 …

Software Development assembly
Member Avatar for rubberman
0
1K
Member Avatar for .millz.

I am making a multiple choice quiz in vb with the questions and answers stored in an access database. When trying to display the question and answers on my labels, they don't change. Here is my code: Imports System.Data.OleDb Public Class Football_Questions Dim con As New OleDbConnection Private Sub Football_Questions_Load(sender …

Member Avatar for rproffitt
0
571
Member Avatar for sireiz

I am trying to iterate through a string and save the characters in a character array. It iterates perfectly and prints the characters but when I try to save the characters in the Array or in a List, it gives me NullPointerException. Can anyone point out the mistake I am …

Software Development java
Member Avatar for JamesCherrill
0
214
Member Avatar for Ayoub_1

so i am working on this table that have buttons combobox and checkbox... i did all of that and i am left whit one this i button that can add a icon in IMAGE column in the same row her is my main private JTable tb; private String[] comboData = …

Software Development image java java-swing
Member Avatar for JamesCherrill
0
306
Member Avatar for dukleatish

Hi I m currently working on windows application that is loading electoral roll pdf file. What I m trying to do is to get the data as per Sr. No., Epic No., Name, Father's / Husbands Name, Age, Sex, House No. and pincode. Data is available in 3 columns and …

Software Development pdf vb.net
Member Avatar for rproffitt
0
163
Member Avatar for MandrewP

Hello, I'm trying to create a data area within an .exe file. Then I will open the .exe file and scan it for the data area. When the data area is found, I will write some data to this data area and write the .exe file back to disk. I …

Software Development c++ open-source visual-studio
Member Avatar for rubberman
0
121
Member Avatar for Ghost0s

Hi today i noticed that this program [below] wont print the correct value and it always print 0.00000 #include <stdio.h> #include <stdlib.h> int main() { float S; int n; scanf("%d" , &n); S=1/n; printf ("%f", S); return 0; but when i asked my teacher he said you should make it …

Software Development c
Member Avatar for ddanbe
0
151
Member Avatar for necrovore

Hi, I am working of a PDF to image converstion. I found ghostscriptsharp which is a c# wrapper written for ghostscript. I used it and developed my application. Most thing if not all worked fine when i was testing with my console application. After I integrated it into the webapp …

Software Development pdf software-architecture
Member Avatar for necrovore
0
278
Member Avatar for chrisschristou

hello world i would like to know to print on terminal a message with color and backround without external library i find this on internet and it works pretty fine but i would like to coloriza backround too!! #include <stdio.h> #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_GREEN "\x1b[32m" #define ANSI_COLOR_YELLOW "\x1b[33m" #define …

Software Development c unix
Member Avatar for rubberman
0
424
Member Avatar for Skidoddity

I want to make a button when you click it one time it will say "Stop" and when you click it a second time it will say "Start" and I'm new to visual studio and C# so it's taking time to research. So if anyone could help I would be …

Software Development visual-studio
Member Avatar for tinstaafl
0
192
Member Avatar for themaj

Just a quick question here for VB.NET developing with Visual Studio. I have an existing project (Project A) and I want to use portions of it as a foundation for another related project (Project B). How can I safely copy Project A to another location, rip out unnecessary forms, code, …

Software Development vb.net visual-studio
Member Avatar for Santanu.Das
0
314
Member Avatar for Mr.M

Hi Dw. Firstly I would like to ask if there is anyone know a good download link to download VB6.0 I'm in need of this IDE. Now coming to my actual question of how to detect USB insertion and removal and get a drive letter for it in VB5.0? Thank …

Software Development ide pc-peripheral visual-basic
Member Avatar for Ketsuekiame
0
396
Member Avatar for Callum_2

Task Your task is to write a program that will draw graphs and output them as a full colour image in the .ppm file format and display them using a suitable external image viewer (IrfanView). The program will use code generated sine waves, and harmonics of these, to calculate and …

Software Development c++ mathematics user-interface
Member Avatar for rubberman
0
1K
Member Avatar for Damien_3

I have need to find a particular string from a text file. The user inputs the string they're looking for and the program searches through the opened text file to find that string. Is that possible? void exam() { char name[50], rollno[50]; FILE *search; printf("\t\t________________________________"); printf("\n\n\t\t\tPortal Examination"); printf("\n\t\t_______________________________"); printf("\n\tEnter Name …

Software Development c
Member Avatar for tinstaafl
0
214

The End.