132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hailsontherocks

Just trying to change the formatting of various bits of my print code. Is there a simple way to do it?

Software Development python
Member Avatar for hailsontherocks
0
134
Member Avatar for Dongalor

Hello, I've a script that is launched with a soft link. Inside the script, I need to know where is the script, and I'm using the following : [CODE]SH_DIR = $(cd $(dirname "$0"); pwd)[/CODE] But SH_DIR contains the path of the soft link i.e, I've the soft link like this …

Software Development shell-scripting
Member Avatar for griswolf
0
239
Member Avatar for Crutoy

Hi , i'm trying to do an exercise where the computer has to guess the random number from the range of 1-1000. Currently this is the way i have it set up as. I divide that range in half and store it in guess and then check it against the …

Software Development c++
Member Avatar for Crutoy
0
801
Member Avatar for Mkmd13

Hey, I have completed my code for Java and I have to put it in GUI, problem is I dont know a thing about GUI or if my program works correctly with it or not. Here is my code and what the code does is you type in random numbers …

Software Development gui java java-swing
Member Avatar for Mkmd13
0
505
Member Avatar for jmace

I'm working on a program in visual c++ that I need some help on. I'm new to c++ and I can't seem to figure out how to do a http POST. The program gets a username and password from a form, and then it's supposed to send the username and …

Software Development c++ first-post http-protocol
Member Avatar for jmace
0
231
Member Avatar for sdr001

I am trying to run html code inside of a cgi script. Everything works expect for the line of code below. It says I have a syntax error and I do not know why this is. [CODE] << "<input class = 'btn' name = 'calculate' type = 'button' VALUE='Shortest Path' …

Software Development c++ html-css
Member Avatar for Fbody
0
169
Member Avatar for black_berry

Hello I am trying to connect to an access database, i have tried using the[CODE]Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")[/CODE] but this does not work. I am using Eclipse IDE and running windows 7 64bit. Does anyone know how to make it work? Thanks

Software Development ide java
Member Avatar for mKorbel
0
95
Member Avatar for jockfaire

Hi, I have a form with a ComboBox, two labels named "Price" and 'Dealer Cost" respectively a NumericUpDown control and two buttons named "calculate Commission" and "Enter Another product" respectively. I want to be able to retrieve the corresponding Price and Dealer Cost from the local database and display them …

Software Development open-source vb.net
Member Avatar for lolafuertes
0
309
Member Avatar for Bayareaboy

Hello everyone- I'm currently working on a GUI solution for a school assignment which creates a tabbed window with only the 'Pool' tab actually populated. I have successfully created all of the labels, textfields and buttons for the 'pool' pane, but I am really struggling with setting up the listener …

Software Development gui java java-swing
Member Avatar for mKorbel
0
173
Member Avatar for SourabhT

Hi, I am trying to implement abstract factory in c++, but i encountered one problem that compiler doesn't allows me to this: class Temp { virtual void dr=0; //error is in this line }; it says illegal use of type void !! i can use other return types but i …

Software Development c++
Member Avatar for Agni
0
142
Member Avatar for newack

I am new to Java I wrote a code to find largest number [CODE] import java.util.Scanner; public class LargestNumber { public static void main( String args[] ) { int number,largestNumber; Scanner input = new Scanner( System.in ); System.out.print( "Enter 10 numbers to compare" ); for( int counter = 1 ; …

Software Development java
Member Avatar for newack
0
107
Member Avatar for paramaster

Hello daniweb community, i'm new to all this and i'm pretty happy that found this. Anyway i'm having sevral issues. Frist one is: my Python GUI (IDLE) won't open program. [CODE]def num(n): count=0 while count <= abs(n): count = count + 1 n= abs(n)/10 print count num(-23) [/CODE] This code …

Software Development gui python
Member Avatar for paramaster
0
190
Member Avatar for revjim44

I have data consisting of two arrays, string item [], and string location [], How do you create a DataGridView ( or is that even the right component to use) to display the data in a windows form, like in a listbox? Basically I need to write a method to …

Software Development
Member Avatar for Momerath
0
131
Member Avatar for sdr001

Hello, I am trying to save elements into a file and it is not working. If the file is there, the new elements need to override everything in the file, pretty much clear it out and write to the file. If the file is not there, it just writes the …

Software Development c++ file-system
Member Avatar for sdr001
0
219
Member Avatar for klegrand

I want to change to setting 'Deny access to this computer from the network'. This is under Local Security Settings. I need to remove the guest account from the list. Is this setting stored in the registry and can it be modified with VB script ? Thx, kurt

Software Development shell-scripting
Member Avatar for klegrand
0
57
Member Avatar for FriXionX

Hi guys, first post here. I decided to come here because it looks really friendly. Ive looked around on the internet, but I dont really understand how to do this. Take note that I am just beginning in c++. (Few days practice), so i decided to try to make a …

Software Development c++
Member Avatar for Kanoisa
0
247
Member Avatar for sdr001

Hello, I am having a problem with reading input from my web app. The data is being sent by JavaScript and I am using getline() to get the data. My problem is when I run it, I get an infinite loop. I do not know why this is happening. A …

Software Development c++
Member Avatar for sdr001
0
112
Member Avatar for lexusdominus

Im trying to learn how to use the winapi - ive read tutorials about message handling and the windows procedure ect, but am a bit lost as to where to start. I know what i want to do - my program launches as a console and starts a new thread …

Software Development c++
Member Avatar for Ancient Dragon
0
160
Member Avatar for ShadowScripter

I think the title says most of it. How do I, in MS Access using VBA, get information from a workbook which I can then put in as a recordset in a table? I know that excel has an easy workaround for other excel workbooks, and I've read somewhere how …

Member Avatar for ShadowScripter
0
366
Member Avatar for zarifin99ska

Hi I've design a datagridview with 6 columns. But i got a code somewhere in internet,the code make my datagridview added with 8 more columns from database. i dont know how to put the data from database into specific columns in the designed datagridview. on database, i have 8 columns, …

Software Development database-design dataset vb.net
Member Avatar for zarifin99ska
0
105
Member Avatar for Java_90

I have to input a directory in DT, then have Directory recursively return a list of files and folders in that directory. My problem is that at the moment my program is only returning the first file in the directory and then ending. I know that I'm doing my recursion …

Software Development java
Member Avatar for Java_90
0
180
Member Avatar for dougancil

I am trying to update a database table that's attached to a table adapter and can't quite seem to be able to get the code to work. It was suggested that I use an update statement, but the person I was working with had no idea how to update a …

Software Development vb.net
Member Avatar for dougancil
0
85
Member Avatar for tukky

Hey :) Im working on a project and ive come across a small problem. I have a listview that contains the details of a person(s) such as their name,address,e-mail address etc. I have a button that opens up another form where the user can edit the details of the customer, …

Software Development listview vb.net
Member Avatar for codeorder
0
124
Member Avatar for dolly_olaide

Hi. I am trying to implement adding then subtracting images but I can't seem to get it right. My thoughts are to load the image. add the pixel values. Firstly, I can get the pixel location but I DON'T KNOW HOW TO DISPLAY THE PIXEL VALUES from the pixel location. …

Software Development c++ image
0
106
Member Avatar for zetologos

This program keeps adds the sum of numbers you put in. You can also quit by typing in quit, its not case sensitive since I have code which converts all uppercase letters into lowercase. This in fact is the problem. For some reason when I insert a number it works …

Software Development c
Member Avatar for zetologos
0
261
Member Avatar for zetologos

This bug is killing me. I have no idea what I did wrong. My friend has it the exact same way. This program reads a txt file and reads each line which has a request in it EX: Matt Smith;Event 1;2009;March;29;11;120;40; We take the request cut it up according to …

Software Development java
Member Avatar for zetologos
0
157
Member Avatar for chintan_1671

I am creating new thread everytime in the for loop .. but many times the loop takes the same filename and creates new thread. Doesn't Work: [code] foreach (string s in fileEntries) { t = new Thread(() => Shrink(s)); t.Start(); } [/code] I have tried individually for each file creating …

Software Development c# multithreading
Member Avatar for chintan_1671
0
205
Member Avatar for GrimJack

I am playing a PBeM game called Olympia-game 3, it seems many of the players use Perl scripts to automate some tasks. They happily share the code but I am hesitant to press for programming help in the gaming forum so I come here. I downloaded Strawberry Perl and am …

Software Development gaming perl
Member Avatar for d5e5
0
350
Member Avatar for sj5536

hi i want to do a facedetection project for attendance on which platform i do that and can u give some resource that from where i get direction that what i have to do

Software Development java
Member Avatar for mess110
0
153
Member Avatar for Ricky65

Hi I'm attempting to code a proxy in C++ using Winsock2. At the moment it only works on simple HTML pages and locks up a lot when downloading certain pages. After a lot of fiddling, I'm not sure what the problem is. A big thank you to anybody who can …

Software Development c c# c++ client-server web-browser web-server
Member Avatar for Ricky65
0
1K
Member Avatar for arjunpk

hi.... i have a small problem using the DOM parser for XML in c# [CODE] XmlDocument doc = new XmlDocument(); XmlNodeList _list = null; doc.Load(location.Text); _list = doc.GetElementsByTagName("DataSource"); foreach (XmlNode node in _list) { //some processing } [/CODE] over here i am able to get specific nodes using the getElementByTagName …

Software Development c# xml
Member Avatar for arjunpk
0
298
Member Avatar for sjn21682

hi everyone, could anyone tell me how can i change my menustrip from menustrip1 to menustrip2. Well i have 2 forms, Form1 and Form2, in Form1 i have 2 menustrips menu1 & menu2. Once i click menu1, my form2 will show with a listview, so my form1 and form2 now …

Software Development listview
Member Avatar for mcriscolo
0
255
Member Avatar for weirdo71

Hi and good day, I have a piece of code im working on and is stuck on Select Sum statement which keeps returning a Conversion from type DBNull to type Decimal is invalid. Below is the code and Im working with a Access Database. Everything works good if the Batch …

Software Development session vb.net
Member Avatar for weirdo71
0
630
Member Avatar for Neversleepin

Hello, i'm beginner in eclipse and i try the helloWorld.java with Eclipse After creating the JAR file, if i click it, i have an error message: [CODE]Failed to load Main.Class manifest attribute from D:\Ecipse\workspace\HelloWorld\[/CODE] I don't understand why i can't launch my HelloWorld.jar My java version is 6.1.7.600 and i …

Software Development java
Member Avatar for mKorbel
0
2K
Member Avatar for ComicStix

Hey! I'm working on this program that generates 100 random numbers and stores them in an array. This is the unsorted array. Then I use those same random numbers and try to make a sorted array. And it's supposed to be is ascending order like 2,4,6. Only 5 numbers per …

Software Development java
Member Avatar for ComicStix
0
162
Member Avatar for kukuruku

Here I am creating the objects and try to print them,I have differnt classes for date and Employee.The objects EmplObj and EmplObj2 ,are created but I have problem when I tried to print them ,it is printing only the first one [CODE] public class tester { public static void main(String …

Software Development java
Member Avatar for mKorbel
0
117
Member Avatar for Kontained

I'm in the process of writing a knights tour algorithm for a homework. I believe my algorithm is a good one and don't see anything wrong with it, but for some reason my program keeps throwing a stack overflow error. I don't see any reason why it would be throwing …

Software Development algorithm c++
Member Avatar for Kontained
0
634
Member Avatar for Inope

Please I'm trying to help myself know vb.net very well so that i can use it in my final year project. what i want is to search for a field in the database (Access) in case you want to search for all the male records, female records, same name i.e. …

Software Development vb.net
Member Avatar for Inope
0
76
Member Avatar for ontherocks

The concerned question is: If there are a bunch of unique items, which one (vector or set) wold be more efficient to search for a particular item by value and why? As I understand vector is more efficient (because of contiguous memory) to search by position index. But in this …

Software Development c++
Member Avatar for Narue
0
175
Member Avatar for yoge911

hi everyone, i dont no much about vb.net ....i am php developer i have just developed a mini application in vb.net i wanted to know how to hide our application from appearing in task manager....help me guys with some code

Software Development vb.net
Member Avatar for yoge911
0
208
Member Avatar for njmm

I need used one button to change the state of the light, and the light should have green, amber, and red lights and cycle through green -> amber -> red -> green each time the button is pressed. My code [CODE]import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.ActionEvent; …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
147
Member Avatar for Magekiller

I need to create a program that prompts for the lengths of a triangle and computes it. I have the equations figured out (bottom of code). What I am stuck on though is, well, getting it to work. Any help here would be FAN-FREAKING-TASTIC! PS. I won't lie, this is …

Software Development java
Member Avatar for Akill10
0
147
Member Avatar for Niine

Hey guys, i hope you can help me, i have a problem. I found in the net a code for taking a screenshot. the code works well, but the quality of the outputet bmp file is not good. I have not enough skill to find the place where i can …

Software Development c++
Member Avatar for Niine
0
225
Member Avatar for whizkidash

Team, Could you let me know what the below function does which is part of my actual script.. Yeah as per my understanding it checks whether the TAR file has been completed or not.. but what is the 1; does below is it end of line or something other.. CheckRetStat …

Software Development shell-scripting
Member Avatar for thekashyap
0
128
Member Avatar for cbreeze

Hello, I am working on a program for my operating systems class dealing with catching signals and exit status's. The long and short of the assignment is to have a parent create a child and then wait for the child to die. When the child dies the parent should capture …

Software Development c++ operating-system
Member Avatar for L7Sqr
0
244
Member Avatar for whizkidash

Team, I have a shell script which will b run in cron job. On an adhoc basis. The script needs to be run such that the moment it goes to the particular directory. It should adapt to its ownership. But the script which i had shared below is run by …

Software Development file-system shell-scripting
Member Avatar for thekashyap
0
180
Member Avatar for jainpratik2

Hi Folks, I need help to generate keystrokes in my existing application in LINUX environment. I am fully aware that there are libraries in Dev C++ which do exactly what I want but in Windows and I need something like that in Linux. I have googled a lot, but could …

Software Development c++
Member Avatar for L7Sqr
0
4K
Member Avatar for yoshitsugu

Can anyone fix my problem? I'm sure my getDate function algorithm was right, but it still wrong.. here is the code: [code=c] #include<stdio.h> #include<string.h> #include<stdlib.h> typedef struct{int day,month,year;}Date; typedef struct{ char name[31],gender; Date dob; }Student; void getString(FILE* x,char* y); Date getDate(FILE* x); char readChar(FILE *x); int main(){ Student pupil[100]; int …

Software Development algorithm c file-system
Member Avatar for L7Sqr
0
188
Member Avatar for bettybarnes

hi just wondering how do i transfer table's records to another table?? i'm wondering where do i put the queries, or am i gonna put it in my stored proc? any help will help thanks

Software Development vb.net
Member Avatar for Pgmer
0
88
Member Avatar for writerervin

i'm doing a rpg for fun but this one function is giving me problems. it compiles without problems, but when i test it, the hp stats done change. this is the code for the function. [CODE=c]void attack(dragon *d1, dragon *d2) { if(d1->getdef() < d2->getatk()) { d1->changehp(- ( d2->getatk() - d1->getdef() …

Software Development c++ cybersecurity
Member Avatar for writerervin
0
468

The End.