132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TyroneDavis

Can anyone recommend any software that can be used to combat software piracy?

Software Development piracy
Member Avatar for Techjunkie1900
0
113
Member Avatar for ParadoxNiner

When I plug in the USB joystick, I'll have to go to the control panel and select game controllers. I click on the properties and a pop-up is displayed. On the top left hand corner of it, there's this small square 'picture' with a plus sign at the middle indicating …

Software Development display vb.net
Member Avatar for ParadoxNiner
0
263
Member Avatar for kRod

Hello all. I have a question on searching a List(Of CLass). I am not sure how it is labeled List<OF T> or List(Of Class) However you label it here is the Class EXT Public Class EXT Implements IComparable Private m_extension As String Private m_exe As String Private m_description As String …

Software Development asp.net seo vb.net
Member Avatar for kRod
0
480
Member Avatar for poloblue

Good Afternoon, I'm reviewing structs, but don't get the concept very well. Assume the following structure declaration is given struct Rectangle { int length; int width; }; write a function that returns a Rectangle structure. The function should store the user's input in the members of the structure before returning. …

Software Development c++
Member Avatar for poloblue
0
202
Member Avatar for jameswj83

I am having trouble with this assignment, especially the input file and how to get the data into an array: You will design a set of classes for storing student information, along with a main program that will read student information from a file, store the data, compute final grades, …

Software Development c++ file-system oop storage
0
261
Member Avatar for 4344

.386 .model flat,stdcall option casemap:none WinMain proto :DWORD,:DWORD,:DWORD,:DWORD include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc include \masm32\include\gdi32.inc include \masm32\include\winmm.inc includelib \masm32\lib\user32.lib includelib \masm32\lib\kernel32.lib includelib \masm32\lib\gdi32.lib includelib \masm32\lib\winmm.lib .data ClassName db "SimpleWinClass",0 AppName db "SimpleVirtualPiano",0 szText db 'This is a Simple VirtualPiano----------->made bu liuwei 2003.11.19',0h .data? hInstance HINSTANCE ? hdc HDC ? …

Software Development assembly
Member Avatar for GunnerInc
0
127
Member Avatar for on93

need help !!!! anyone know how to draw a christmas tree in c program with 3 for loop ????????????

Software Development c data-structure
Member Avatar for Lucaci Andrew
0
293
Member Avatar for ryan461

I've got an XML file that looks like this: <routingTable> <router> <id>1</id> <ip>1.1.1.1</ip> <nexthop>1.1.1.2</nexthop> </router> <router> <id>2</id> <ip>2.2.2.1</ip> <nexthop>2.2.2.2</nexthop> </router> </routingTable> With possibly more than two router entries as time goes on. What I would like to do, is take each router instance and throw it into a dictionary. This …

Software Development python xml
Member Avatar for ryan461
0
213
Member Avatar for kris222

Why do you think there are soo many programming languages?

Software Development c++
Member Avatar for iamthwee
0
127
Member Avatar for Nirvin M

Why does the following snippet produces different result than expected? #include <stdio.h> int main() { int i = 5; printf("%d %d %d", i++, i++, ++i); getchar(); } I compiled and run this code with Visual C++ 2010 and it produces the output 7 6 8 instead of 7 6 6 …

Software Development c
Member Avatar for TrustyTony
0
185
Member Avatar for Danja

Hello all, I have a long list of coordinates which are supposed to trace the outline of a city. They are supposed to go into a program which plots the trajectory from one coordinate to the next, thereby plotting the outline. For some reason (I'm not sure why; I'm trying …

Software Development algorithm c++
Member Avatar for hkwhitten
0
1K
Member Avatar for brunoccs

I've writen the following MIPS assembly code to test for arithmetic overflow .text add $s0, $zero, 0x80000000 add $s1, $zero, 0xD0000000 add $t0, $s0, $s1 MARS is translates the code above into this: lui $1, 0xffff8000 ori $1, $1, 0x00000000 add $16, $0, $1 lui $1, 0xffffd000 ori $1, $1, …

Software Development assembly
Member Avatar for Schol-R-LEA
0
502
Member Avatar for gahhon

First i introduce what is my assignment doing. I'm doing a Ordering System of Donuts which getting customer order product and quantities, and the System will calculate the FINAL PAYMENT after discount. Problem: Now i have a customer order and added into shoppingCart (ListBox), and inside the listbox will display …

Software Development vb.net
Member Avatar for gahhon
0
106
Member Avatar for Venks

Hai Friends, How to access multiple result sets in java? iam using getMoreResults, but iam able to access only half of data from second table... is there any way to access. please help me for this problem

Software Development java
Member Avatar for jeremfg
0
151
Member Avatar for 47pirates

I've a bill which looks like ![untitled31](/attachments/large/2/untitled31.JPG "untitled31") this is the paper which i use in printer and i want to print the appropriate value in the correct position of that paper. As in the place of date i want to print date and in the place of Rate, Amount …

Software Development java java-swing printer
Member Avatar for JamesCherrill
0
138
Member Avatar for rahul.ch

I have a question in SCJP text book by Kathy Sierra and Bert Bates in Development chapter. Q. Given the default classpath: /foo And the directory structure: foo | test | xcom |--A.class |--B.java And these two files as mentioned in the code snippet section. Amongst the choice, 1. javac …

Software Development file-system java
Member Avatar for stephen84s
0
320
Member Avatar for lulug76

I am wrote a program that generates 20 random numbers from 1-99 and put them into an array. I am trying to sort them with a bucket sort, but I can't figure out how to do it. I have searched google and yahoo for information but everything I find just …

Software Development c google
Member Avatar for deceptikon
0
195
Member Avatar for shean1488

Hi everybody, Explain me please what I'm doing wrong. So I'm trying to create a database and store data, that I get from django forms. Everything looks fine, and when I manually check database it shows that it recieved a new row, however my browser gives me this message and …

Software Development python python-django
Member Avatar for TrustyTony
0
4K
Member Avatar for monmondiesel

I am using the CUDD package for BDDs manipulation. I want to make a copy for a big data structure in it that is called the DdManager. The problem is : this data structure has so many pointers inside it , so when I make a direct copy it is …

Software Development c++ data-structure
Member Avatar for deceptikon
0
4K
Member Avatar for iamnot

I am generating the sequence 1,3,8,22,60,.... upto 10^9 the term mod of 10^9+7; However my code is giving inaccurate answers for large value of n. The formula I am using is ((1+Q)^(n+1)-(1-Q)^(n+1))/(4*Q) Here Q is sqrt (3) Here is my code.Can someone point out the error in the code or …

Software Development c++
Member Avatar for Ancient Dragon
0
254
Member Avatar for tikoti

Hi all, I am currently trying to remove the zeros from a string the code I have tried is as follows but it does not seem to work propperly Dim code code=request("code") 'here there is a string like 0000045 ' I want to remove the zeros Dim c1 c1 = …

Software Development visual-basic
Member Avatar for SudoWin
0
280
Member Avatar for rahul.ch

General rules is that: 1) A private method cannot be overridden. 2) Subclass method should be a lower access modifier than a overridden superclass method. But the output of the program is "I am Son". Why? Is it because of the rule 2 the output comes? If that's the case …

Software Development java microsoft-access
Member Avatar for JamesCherrill
0
207
Member Avatar for rahul.ch

Hey guys, I'm a starter so I had a doubt related to placement of a static variable. On line 5, for "static int d=5" compiler issues "illegal start of expression". But when I place it outside main() as Instance variable it works and prints "Hello 5". Why this thing? public …

Software Development java
Member Avatar for rahul.ch
0
204
Member Avatar for Viped

Hi again. I am trying to make code that set all black pixels to white. But my code does nothing. Why is that? package net.viped; import java.awt.image.BufferedImage; public class ImageManipulation { public ImageManipulation() { } public BufferedImage setTransparent(BufferedImage image) { for (int x = 0; x < image.getWidth(); x++) { …

Software Development java
Member Avatar for Viped
0
330
Member Avatar for tirumal

i came up with a quite annoying problem in inserting data into the database in vb.net using the textfields. i tried out with many different ways,but could not sort out this problem. i used datatables,dataadapters,datasets.Plz if anyone can help me out. [B]The condition is :[/B] i am using four tables. …

Software Development vb.net
Member Avatar for raficomps
0
2K
Member Avatar for aabj1989

import java.util.Scanner; public class waterbill8 { public static void main(String[] args) { Scanner reader = new Scanner(System.in); double value1 = 5.00; double value2 = 0.82; double value3 = 0.65; double value4 = 0.42; double value5 = 15.00; double value6 = 1.47; String read1 = null; char I, R; int num1, …

Software Development java
Member Avatar for hszforu
0
151
Member Avatar for learner_new

#include<iostream> #include<fstream> #include<string.h> using namespace std; int main() { //system("clear"); cout<<"\npls input the file where you want to read the data from\n"; string loc; getline(cin,loc); ifstream g; g.open (loc.c_str(),ios::in); string data; g>>data; cout<<"\n\n\n\n"; cout<<"\nthe data read from the file is\n"; cout<<endl<<data; return 0; } > even if fiole being read …

Software Development c++ ios
Member Avatar for learner_new
0
235
Member Avatar for VIeditorlover

Hi, I have a this code which works OK: class c <T> { public T method (T p) { // ... } } but I would need this: class C <T, U> { public U method (T p) { // ... } } How could I write it, compiler reports …

Software Development c#
Member Avatar for VatooVatoo
0
227
Member Avatar for Bladtman242

Hi, for a school project (exam actually), we've written a ternary trie for text-completion. We fill it with about 400.000 lines of text (13 MB in total, as UTF-8). Now, java represents characters in UTF-16 i believe. So thats 26 MB, + another 26 for saving the complete strings in …

Software Development java queue
Member Avatar for Bladtman242
0
217
Member Avatar for poloblue

Good Afternoon, I'm having problems with my program that deals with fractions. The problems are with the functions multiply and divide that are not working correctly. So far I have this code. CPP FILE: #include <iostream> #include <cmath> #include "hw4_head.h" using namespace std; int main () { int a, b, …

Software Development c++
Member Avatar for poloblue
0
147
Member Avatar for smile1

I have the following code where I have several small problems. I have included some comments as I can't seem to get my 'pop up menu' button to work in order to retrieve the number of columns requested by the user. I then need to be able to get the …

Software Development gui python tkinter
Member Avatar for woooee
0
2K
Member Avatar for elyos

Hi guys! I start using Python few days ago, for a game server ( it'a an online game ). I made a server for that game, I start it on my pc, and for do this I need to start Server.py too, or, it wouldn't connect to the server. I …

Software Development python
Member Avatar for elyos
0
297
Member Avatar for eves007

So I wrote this code for generating a maze, when I run it i get ArratOutOfBoundException. sometimes it gives me the error after generating the maze once but sometimes I generate couple time then it crashes. I feel like my error is in the while loop but can't find it. …

Software Development algorithm java
Member Avatar for stultuske
0
130
Member Avatar for skiabox

I am trying to overlay a moving average over a OHLC chart but I get no results. Any ideas on what am I doing wrong ? private static OHLCDataset createPriceDataset(String filename) { //the following data is taken from http://finance.yahoo.com/ //for demo purposes... OHLCSeries s1 = new OHLCSeries(filename); try { BufferedReader …

Software Development dataset finance java
Member Avatar for skiabox
0
264
Member Avatar for mimobe

Hello everybody, I'm trying to improve an application i found at this link [Click Here](http://www.alcrypto.co.uk/satmap/tkinter-video.py) which can load and play a video file .avi or .ogg. My problem is as follows: I'm unable to load another video file though i have access to the dialog box. In addition to that, …

Software Development gui python tkinter
0
195
Member Avatar for B204

Following are the server-client programs,,,, in this client can send files and server have to save it,,,,,i want to add progressbar.....plz help me out!!! client:- import java.net.*; import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; class ftpclient extends JFrame implements ActionListener { JButton b1,b2; JTextField t1; ftpclient() { b1 =new …

Software Development client-server java java-swing
Member Avatar for JamesCherrill
0
398
Member Avatar for Remy the cook

I wanted to write the brute force algorithm for string matching by multithreading. I have made the program by using a single thread. In multithreading sample code, I have initialised the no. of threads to be strlen(text)-strlen(pattern). I do the matching in the ThreadFunc. Do I have to divide the …

Software Development algorithm c++ multithreading
Member Avatar for Lucaci Andrew
0
224
Member Avatar for antipala21

Do you know how to make a program for Taxi Meter?

Software Development java
Member Avatar for stultuske
0
136
Member Avatar for B204

i have created a chat program and i want to add smiley to it......i know how to add smiley in a program,but my logic works for single smiley in a message.......want logic for multiple smiley in prgm,,,, int zi=msg.indexOf(':'); if(zi!=-1) { try{ st1=msg.substring(msg.indexOf(':'),msg.indexOf(':')+2); String msg_start=msg.substring(1,msg.indexOf(':')); int msg_end_index=msg.indexOf(':')+3; if(msg_end_index>msg.length()) msg_end=""; else …

Software Development java
Member Avatar for stultuske
0
216
Member Avatar for skiabox

I have a group of files (A.txt, AA.txt etc) in the form A.txt : A,45,56,78,98,11,23 A,98,90,33,76,30,40 AA.txt : AA,65,76,34,76,98,12 AA,12,76,33,76,33,89 How can I quickly remove the symbol column (A,AA) from all these files using Python? (I want to use python because the number of txt files is 3200) Thank you.

Software Development python
Member Avatar for Gribouillis
0
177
Member Avatar for pythonstudent11

I am in course that uses Gaddis' Starting Out With Pyton 2nd Edition. There is a problem in the course that asks use to write a program that would capitalize sentences that a user inputs. I have come up with a reasonable solution, but I have two major problems. The …

Software Development python
Member Avatar for alexgwhiz69
0
5K
Member Avatar for toomutch

Following on from my post yesterday (how to anchor buttons/controls to various sides of the current form when the form is resized) I have run into another problem. I am setting the width of my datagrid to be 80% of the form width on a 'form resize' event with 10% …

Software Development vb.net
Member Avatar for TnTinMN
0
2K
Member Avatar for aldm

Hi, I'm working on one project in .NET 4 and I use LINQ for database access. I have a problem. Consider a following code: Guid userId = new Guid(Membership.GetUser().ProviderUserKey.ToString()); IEnumerable<ViewCount> views = from vc in dbContext.ViewCounts where vc.Time >= dateFrom && vc.Time <= dateTo group vc by new { catalogueId …

Software Development asp.net
Member Avatar for aldm
0
155
Member Avatar for yazz110

Hi Everyone, Starting to write **3D images** using** JOGL **and I can't seem to find any **recent information** and help about **JOGL** and creation. I noticed that most of the terms have changed and it doesn't work. Any **recommendations** on what I could read to help update me and keep …

Software Development java
Member Avatar for yazz110
0
252
Member Avatar for kase20

Hi everyone. I wrote the following code: if the number entered is even ie if n=6 , the column of # should be at the 3rd column (ie 6/2) if the number is odd ie if the number is 9, then the column of # should be at the 5th …

Software Development c
Member Avatar for kase20
0
155
Member Avatar for Dadkhah

HI guys I am need to connect my pc with the PLC on the Ethernet Connection and I don't know about socket programing, I have very search for this work and find any code in this site and usage then. but have a some problem. this is my usage code: …

Software Development c# ipad
Member Avatar for Dadkhah
0
216
Member Avatar for trishtren

Hello, Iv been trying to work through some issues on binary output recently. But im having problems understanding the conversion process in java when using two's complement. I dont understand why System.out.println(Integer.toBinaryString(-11700)); Prints out 11111111111111111101001001001100. Shoudlnt -11700 only be 15 bits long? When i calculate it by hand and invert …

Software Development java
Member Avatar for JamesCherrill
0
166
Member Avatar for 47pirates

I'm trying to print the necessary values in the predefined document for an example, in a Bill name in the left side and date on top right. I already had that documents with empty name and dates . how can i print the name and date to corresponding location in …

Software Development java java-swing
Member Avatar for 47pirates
0
145
Member Avatar for bettybarnes

Hello guys, I'm trying to make a list of students grade using array. My question is, how am I going to do this? **OUTPUT:** Lea 94 Morgan 85 Jenny 92 Harold 75 I've tried a bit to program, please do check my code. public class StudentScoreArray { public static void …

Software Development java
Member Avatar for Vs5193
0
99
Member Avatar for Viped

Hi, could some one look over my code I by myself dont get where the flaw is. It should paint 1 cube at a time but now it runs all the code through and paints all at once. package net.viped; import java.awt.Color; import java.awt.Graphics; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import javax.swing.JFrame; …

Software Development java java-swing
Member Avatar for JamesCherrill
0
966

The End.