132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Stubaan

Hi folks I am struggling to pass the value of a variable, to be used as an argument for a number of sequentially called python scripts, themselves called from a bash script. Apologies for the pathname chaos. Phase 1: reads the case names from a text file, line by line, …

Software Development python shell-scripting
Member Avatar for Stubaan
0
4K
Member Avatar for calccrypto

i cannot find the mistake i made with this code. i have tried many different ways to create ripemd160, but they either don't work or give me wrong outputs. what did i do wrong? [CODE] # makehex() = change the value into a 8 hex char string # ROL i …

Software Development python
Member Avatar for calccrypto
0
194
Member Avatar for rgpii

I believe this is the appropriate forum, but if it is not please let me know and I will move it to the OSX forum. I have an assignment that requires me to play with a specific jar file. I am currently running OSX 10.6 and I have Java 6 …

Software Development ide java
Member Avatar for rgpii
0
215
Member Avatar for Christoph928

I need help with decrypting a 12 character message located in a file named encrypted.txt then printing the decrypted message to the screen and a new file named decrypted.txt. This is what i have so far... and don't understand how to print the char to the screen as a letter …

Software Development c++
Member Avatar for Christoph928
0
149
Member Avatar for dude1

i have a numeric updown that goes from 0-99 and it works but i want to make it continuous so if i hit the down when its at 0 it goes to 99 and when its on 99 and i hit up it goes to zero anyone know the code …

Software Development c++
Member Avatar for jonsca
0
160
Member Avatar for manikandan_dani

Hi, I am developing xml editor using jsp and servlet. In this case i am using DOM parser. using that i getting all the element, text, xpath form xml file with help of DTD. Upto this it will be working, and it save back into xml file. While save into …

Software Development java xml
Member Avatar for manikandan_dani
0
130
Member Avatar for kenth21v

please help me, give me a step by step procedure how to connect VB 6.0 and sql anywhere9..

Software Development sql visual-basic
Member Avatar for vb5prgrmr
0
271
Member Avatar for ROTC89

ok so i am new to c# and i am trying to write a program that asked the user for input on what item they want to buy, the price for the item and to show the input of the price after sales tax.i am having trouble getting the price …

Software Development
Member Avatar for apegram
0
252
Member Avatar for DdoubleD

Hello friends! I've been playing around with the MS Chart class type (System.Windows.Forms.DataVisualization.Charting) and have a situation where I would like to know how to code a query of my data using LINQ. The data I'm playing with is the PowerBall drawings data that is updated each drawing: [URL="http://www.powerball.com/powerball/winnums-text.txt"]http://www.powerball.com/powerball/winnums-text.txt[/URL] I'm …

Software Development data-structure dataset
Member Avatar for apegram
0
185
Member Avatar for bryangarcia

hi there, it's been a long time since i posted a thread here. By the way, i'm having a hard time dealing with this code. Actually it's a menu driven and function-oriented program and when i compiled it, the error message is [U][B]expression syntax in function main [/B][/U] Here's my …

Software Development c
Member Avatar for WaltP
0
124
Member Avatar for isralruval

im having a difficult time figuring out my last two functions. first one which is the int divelement(int a[], int size); this function is suppose to find and print the elements of my array that are only divisible by 5, so the answer will be like 10,15,90, and 95. i …

Software Development algorithm c++
Member Avatar for mrnutty
0
103
Member Avatar for ravikiran32

How can i retrieve data information displayed on the hyperterminal or is there any way to redirect the information being displayed on hyperterminal to a file?

Software Development vb.net
Member Avatar for ravikiran32
0
111
Member Avatar for mseck

I tryed to compress my file but got two errors: Can someone see that could be wrong? [CODE]import java.util.Scanner; public class Lab1 { public static void main(String[] args) { // create a Scanner object Scanner sc = new Scanner(System.in); // read a string System.out.print("enter product code: "); String productCode = …

Software Development java
Member Avatar for javaAddict
0
147
Member Avatar for PinoyDev

good day guys.! I just want to know on how to save to a .rtf(rich text format) file the content of the rich text box created in vb6 with pictures & text. I also want to retrieve the content of the .rtf file being created and display it again in …

Software Development visual-basic
Member Avatar for PinoyDev
0
220
Member Avatar for Skeen

So I've got this program I made, and I wanted to speed it up, using multithreading, to make use of my quad core. The program itself fully supports multithreading. The problem is, that when I'm running the program, using just one; CreateThread() it finishes in 6seconds, if I run 2 …

Software Development api c++ multithreading windows-api
Member Avatar for ireshagun
0
107
Member Avatar for cin.fail

Hello everyone, I am quite new to C++ and I am currently trying to complete a project in creating a program that solves a maze of a given dimension.The text has to be read in and the first element of the file defines the size of the array,its an integer …

Software Development c++
Member Avatar for jonsca
0
210
Member Avatar for Jpalka2010

So I'm trying to enter all the information for this program and it's giving me a hard time. The ones with (need help) are the tough steps. The text file and functions are found in the attachments. U-WATCH-UR-WEIGHT "At the beginning and end of each month, members of the club …

Software Development c++
Member Avatar for jonsca
0
166
Member Avatar for Violet_82

Hello there, can anybody help me with this? I have a simple program like the attached. What I would like to do is to come up with an executable file that I can email to myself and execute on another machine. What happens at the moment is this: I wrote …

Software Development c++
Member Avatar for Violet_82
0
324
Member Avatar for markfisher

Hi I'm really sorry if my questions are stupid. Can someone please explain why we create wrapper function for standard library function? (Example: glib made wrapper function for malloc()) Why do we hook our program to standard library? (malloc, free, ...) Thanks Mark

Software Development c
Member Avatar for WaltP
0
77
Member Avatar for jmstickney

Hi Everyone, I am BRAND NEW to C and I am trying to make a program that takes 3 inputs. The first is a number, the second represents what base the first argument is, and the third argument represents what base this number should be outputted as. For example: convert …

Software Development c
Member Avatar for Dave Sinkula
0
86
Member Avatar for beforetheyknew

Hi guys just wanting some help with exceptions. I understand the try and catch concept but I struggle more with the throw and throws concept, it is my understanding (that may be incorrect), that you a method can be like [CODE]public class thisMethod throws whateverException[/CODE] Am I right in thinking …

Software Development java
Member Avatar for BestJewSinceJC
0
105
Member Avatar for bharatk

Hello I have a .py file. I am creating a .bat file which when clicked runs the python script & saves the output as a text file in the same directory. I gave this inside the batch file [CODE]%CD%\App1.py > %CD%\op.txt [/CODE] but I am not able to see the …

Software Development file-system shell-scripting
Member Avatar for bharatk
0
245
Member Avatar for cktbrd

I need help with this. It has been awhile since I coded in c. [CODE] unsigned char test=0x00; char tmp[20]; //reserve 20 bytes for string switch(test) { case 0x00: tmp="Hello String 0"; break; case 0x01: tmp="Hello String 0"; break; case 0x0F: tmp="Hello String 0"; } [/CODE] All I want to …

Software Development c
Member Avatar for cktbrd
0
95
Member Avatar for Aprentchacker

Basically I'm trying to adapt the quicksort algo for array based lists for linked list as shown on a text book. This is only for learning the principles than practically effective sorting. I have struggled to get this code to work, but stil seems to break on a few test …

Software Development algorithm c++ file-stream linked-list
Member Avatar for Aprentchacker
0
930
Member Avatar for Stefano Mtangoo

I already Know Ancient Dragon is fan of MSVS due to its debugging features and I use C::B because it is the only I have come to love after failing to love both VS Express and Codelite. So what do you love to use when it come to C/C++? Just …

Software Development c++ ide
Member Avatar for VilePlecenta
0
232
Member Avatar for Gaiety

[CODE]/* Function to find prime number if so return 1 else return 0 */ #include<stdio.h> #include<math.h> int isprime( int num ) { int i ; int sq = ( int ) sqrt ( num ); /* here check should be done for num = 0 and 1 other wise 0 …

Software Development c
Member Avatar for Gaiety
0
2K
Member Avatar for Bagleys

Hi I have made a program that i would like to be able to move from PC to PC; at the moment i would have to change the string directories within the program for each PC i would like top run it on. By having the user select their drive …

Software Development vb.net
Member Avatar for Bagleys
0
137
Member Avatar for betty_vaness

Given a 2 dim array write a VB PROGRAM that will add all odd numbers greater than 3. This is my solution but am not that sure so assist me. if( number % 2 == 1) ____number is odd else ____number is even so checking if it's odd and greater …

Software Development visual-basic
Member Avatar for bojofien
0
85
Member Avatar for pablo989

Hi, I would like to use nested tokens, a similar question was asked in this thread [url]http://www.daniweb.com/forums/thread110255.html[/url] While this did address how to do it with a single instance, I was wondering how to do it with multiple instances in a string. ie. input to textbox1 "I {love|like} {blue|red|orange|pink} its …

Software Development vb.net
Member Avatar for pablo989
0
86
Member Avatar for txwooley

I wrote a script (kind of a learning thing) to open .rar archived files using unrar (non-free) in Linux. Now I want to add a section where my script will check to see if unrar is installed. To complicate matters, Linux also has a package 'unrar-free', and both use the …

Software Development python
Member Avatar for txwooley
0
128
Member Avatar for Sri Vidhya

I tried executing this program, it says, C:\Program Files\Java\jdk1.6.0_18\bin>java ClassWithManyStaticMethods Exception in thread "main" java.lang.NoClassDefFoundError: ClassWithManyStaticMe thods Caused by: java.lang.ClassNotFoundException: ClassWithManyStaticMethods at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: ClassWithManyStaticMethods. Program will exit. What is the problem? I clearly …

Software Development java
Member Avatar for AndreiDMS
0
117
Member Avatar for vinoli

My java program is not executed.I saved it in mydocuments.It is in MS-Dos batch file.What should i do to execute it?

Software Development java
Member Avatar for javaAddict
0
89
Member Avatar for moe121

Change a Color Image into a Grayscale(Black & White) Image. I'm using borland c++ Thanks Just like this code, but in C++ instead of C#: [url]http://www.daniweb.com/code/snippet217154.html[/url]

Software Development c++ image
Member Avatar for Salem
0
789
Member Avatar for anevins

My program will not output the right answer if minus/negative doubles are inputted however the program will output the correct positive double. I think this is because I haven't used the Math.abs correctly but I don't know how to fix this. My code is as follows: [code] public static void …

Software Development java
Member Avatar for Zaad
0
157
Member Avatar for low1988

[CODE] import java.net.*; import java.io.*; import java.security.*; import javax.crypto.*; public class messagedigestsend { public static void main( String [ ] args) throws Exception{ byte ttl= (byte) 0; try { MulticastSocket mSocket = new MulticastSocket(); MulticastSocket mSocket2 = new MulticastSocket(); InetAddress mAddr = InetAddress.getByName("224.0.0.1"); String sendString = "M"; byte[] plainText = …

Software Development algorithm java
Member Avatar for thekashyap
0
116
Member Avatar for anevins

I need to use the valueOf method to return a string representation of a boolean arguement but I don't know how to use this method. Here is my code at the moment, if the inputted file name ends with .txt then 'true' is returned, if not then 'false' is returned. …

Software Development java
Member Avatar for thekashyap
0
160
Member Avatar for jemz

hello please help me how to print my data that sends to the printer hoping for your positive responds....

Software Development printer visual-basic
Member Avatar for QVeen72
0
223
Member Avatar for chrisname

Hi :) I'm writing a basic 2 stage bootloader (I actually do plan for it to work, it's not just a hello world loader) and I've migrated to nasm. I find it much easier to use, etc. etc. Anyway; I'm using the times directive to get the program to 512 …

Software Development assembly
Member Avatar for chrisname
0
2K
Member Avatar for ryanshady

Hi guys, i'm new here and this is my first post. This is my problem: i got an assignment like this: create a set contain of UNIQUE uppercase character, then do some operation on it, like, add element, check if element are in the set or not? how many elements …

Software Development c++
Member Avatar for ryanshady
0
113
Member Avatar for JAM1011

Hi, I really need line with this I can't figure this out . I am looping through items in a list view box, I am then adding them to a string. I need each new line in the listview box to be a new line in the string. I will …

Software Development listview vb.net
Member Avatar for JAM1011
0
109
Member Avatar for deorcar

ok i have to make a matrix class for a math library and im now Very lost with what im ment to do or how to do it the code i have so far is: [CODE] #include <iostream> #include <math.h> #include "Vector2.h" class Matrix { private: float data[3][3]; public: Matrix() …

Software Development c++
Member Avatar for smarty_t2
0
98
Member Avatar for green_leav

Hello everyone....this time a have a competition program that I want ur help but this time i just want from u answers to some problems that i faced when i was working on it : this is the program: Mail merge is a software function describing the production of multiple …

Software Development c++
Member Avatar for green_leav
0
154
Member Avatar for abhimanipal

Hello All, I am unable to understand this piece of code [code= c] main() { int i, j; scanf("%d %d"+scanf("%d %d", &i, &j)); printf("%d %d", i, j); } [/code] I got this question from a C problem set. I run this code and I have to give the i/p 3 …

Software Development c
Member Avatar for xavier666
0
142
Member Avatar for Kombat

The user types bits 110, or 6, and the program returns the 6th input. How do I get the program to scan in a binary and decimal value?

Software Development c
Member Avatar for Salem
0
117
Member Avatar for hwlibra083

This is probably a really easy question, and I know it's starring at me right in the face, but I can't put my finger on it. I'm doing this semi-simple program for school and I think my only problem here is passing my array of structs to a function that …

Software Development c++ ios
Member Avatar for hwlibra083
0
296
Member Avatar for abhimanipal

Hello, I have a conceptual code related to the C memory allocation model if I have some code of this form, I will get a seg fault [code=c] int main() { char* p; *(p+5)='A'; printf("%c\n",*(p+5)); } [/code] But when I have some code of this form I do not get …

Software Development c
Member Avatar for WaltP
0
282
Member Avatar for kazmi_salman

Hi there! Need help wid this. i need to change all the uppercase characters to lowecase and vice versa. when i compile it shows cannot find symbol on line 13 and 18. Kindly help. Also tell me how to make the first letter of each word in uppercase. thnx in …

Software Development java
Member Avatar for kazmi_salman
0
110
Member Avatar for Kombat

[code]Write a C function that implements a 3-bit mux, following the pattern I showed in class. Remember: &&, || and ! are used to represent the logic gates. For testing, your program should behave as follows: three control bits: 1 1 0 eight inputs: 0 0 0 0 0 0 …

Software Development c
Member Avatar for abhimanipal
0
268
Member Avatar for SeanBlack0000

I am trying to check the customers request against the volume remaining in the tank. If the request is greater, I need to instruct the customer to move to the next tank. But I am having problems. The tank is set to store 100 gallons. On the 1st request, I …

Software Development c++
Member Avatar for SeanBlack0000
0
111
Member Avatar for VilePlecenta

Backstory: I took up learning C/C++ a couple months ago when I was in a game hacking forum. Since then I have changed my interests and no longer desire to make exploits for games for personal reasons. At the moment I am studying Programming Windows 5th Edition by: Charles Petzold …

Software Development c++ visual-studio
Member Avatar for VilePlecenta
0
330

The End.