199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Valiantangel

In my Class IntegerSet i hav declared the below method but its not printing when i ran the test public static IntegerSet union(IntegerSet setA, IntegerSet setB){ IntegerSet u = new IntegerSet(); for (int i=0;i <= CAPACITY; i++) if (a[i]==true || setB.a[i]==true) u.a[i]=true; return u; In Testing in main, `System.out.println("The union …

Member Avatar for JamesCherrill
0
134
Member Avatar for jwings

I have problems with my GUI part... I have put all components on the JFrame but I would like to add some backgrounds and decoration. However, when I add background using JLabel. Everything loses its position and they are all ruined... Is there anyway to resolve this?

Member Avatar for JamesCherrill
0
644
Member Avatar for memomk

hey i have this error The debugged program raised the exception unhandled RuntimeError "underlying C/C++ object has been deleted" the code is: class qthread(QtCore.QThread): def __init__(self, x, y, z): self.x=x self.y=y self.z=z self.name="" self.m=hashlib.md5() def changeresultsig(self, text): self.emit(QtCore.SIGNAL("changeresult(text)"),text) def conssig(self, text): self.emit(QtCore.SIGNAL("cons(text)"), text) def enablesig(self): self.emit(QtCore.SIGNAL("enable(")) def disablesig(self): self.emit(QtCOre.SIGNAL("disable()")) def …

Member Avatar for memomk
0
963
Member Avatar for salii

hello, I have a problem with database. there is a syntax error unexpected T_variable. could you please tell me what is the error in this script? thank you

Member Avatar for salii
0
1K
Member Avatar for MadJako

Hi super cool experts! Big Java noobie here and first time poster, so sorry in advance if this forum isn't for people like me. I'm trying to write a silly math program as my first user input test, but I seem to be getting error with the variables from the …

Member Avatar for MadJako
0
616
Member Avatar for Bisquick

The following script adds my affiliate extension to every url on my page. For example, if http://www.Google.com/ is on my page somewhere... Adding this script to the page will automatically change the url to- http://adf.ly/xxxxxx/http://www.Google.com/ - this goes for every url on the page... This script works great if the …

Member Avatar for pritaeas
0
341
Member Avatar for JayOne

Ok, I'm developing a chat bot for a client. But I'm having a hard time figuring out the best way to do this. Because the bot isn't that big, I thought use a table with the phrase and the response. Then use LIKE. Not as easy as I thought though. …

Member Avatar for pritaeas
0
174
Member Avatar for paranoidSandra

hi there!here's the problem in a nutshell: there are 2 files.the program creates 2 processes: the parent process outputs text lines from the 1st file and for each one of these lines the child process outputs relative info from the 2nd file. e.g. <1st line from file1> <relative info from …

Member Avatar for paranoidSandra
0
121
Member Avatar for dgibbons82

I am currently working on a simple survey system for educational purposes. I know it is subject to SQL Injection, but I am new to PHP/MySQL and wanted to learn something basic so I have something to build upon later. Basically, I have an HTML form that processes the PHP …

Member Avatar for broj1
0
5K
Member Avatar for 47pirates

I need to update the items of JCombobox from the database during runtime. I had made the JCombobox editable and what i need to do is type something in the editable combobox and search the database and only display the items matching the text. For example there are if i …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Valiantangel

I am getting the following error,"The static field IntegerSet.a should be accessed in a static way" `public static IntegerSet union(IntegerSet setA, IntegerSet setB){ IntegerSet u = new IntegerSet(); for (int i=0;i <= CAPACITY; i++) if (a[i]==true || setB.a[i]==true)// u.a[i]=true; return u; My Class is as followed: public class IntegerSet { …

Member Avatar for JamesCherrill
0
370
Member Avatar for joe_ojah

hi everyone, i am new to netbeans. i am creating a system that can allocate rooms to students. My main problem is how to find out which rooms are full and which ones are available. I am using Mysql and Java Netbeans. I have read some of the tutorials but …

Member Avatar for ali.nazia999
0
2K
Member Avatar for Sendy Hipo

i have this problem to write and read data, here's what im trying to make : Write a program that uses a structure to store the following inventory data in a file: -Item Description -Quantity on Hand -Wholesale Cost -Retail Cost -Date Added to Inventory The program should have a …

Member Avatar for Sendy Hipo
0
614
Member Avatar for teedoff

I have two inputs for users to enter, what should always be a nueric string. This string gets processed and some mathmatical cals done to them, then the results are returned to the same page via cf div and bind attribute. Everything works if only numbers are entered. I have …

Member Avatar for arrgh
0
490
Member Avatar for jacob21

Hi, hindi kruti 13 font is not working in form. I also installed again but getting same result. Need advice

Member Avatar for |-|x
0
1K
Member Avatar for 2teez

One of the finest initiative was the full documentation bundled with every version of Perl Programming language. Using the plain old documentation (*pod*) utility called *perldoc* one can literally read or learn the programming language without another book. E.g perldoc perl gives you the Name of the perl language Interpreter, …

0
145
Member Avatar for BestJewSinceJC

Since I keep seeing people asking how to read the Integers from a File, I figured this simple snippet might be useful. What it does is it creates a new Scanner Object based on the File Object "test.txt" then it reads all of the Integers from that file, skipping over …

Member Avatar for Ezzaral
0
5K
Member Avatar for PF2G

Hi, i'm working on a website where i select some text from DB according to the language selected: Here's where i define the language (where default = 'pt'): <?php //array $lang = array('pt', 'en'); //iniciar sessao -> array session_start(); //verificar var lang no url -> pagina.php?lang=pt if(isset($_GET['lang']) && in_array($_GET['lang'], $lang)) …

Member Avatar for diafol
0
144
Member Avatar for azareth

i have this code where it computes for the time entered by the user. it doesn't have yet the limitations or the conditions regarding the time to be entered . it successfully computes for the time and the hour increases based on the minutes, but the problem is when you …

Member Avatar for TrustyTony
0
280
Member Avatar for IDC_Sharp
Member Avatar for Cameronsmith63

Hi All, Is there there a way for me to add a portable database to an application? In other words, i want to install my application on a other pc, then during install, the database must be stored or installed somewhere on that pc. Im just thinking of sorting this …

Member Avatar for skatamatic
0
112
Member Avatar for Jdan2388

Hi, Im really new to java and i'm trying to write a simple rock paper scissors game, and i'm having a problem. I have to incorporate a JOptionPane three button box where the user selects either rock, paper or scissors. The problem is that i don't think im retrieving the …

Member Avatar for Jaggs
0
882
Member Avatar for HTMLperson5

Hi, I am trying to install PHP and have had no sucsess; the steps I have taken are shown below. 1. Download .msi PHP installer 2. Run Installer 3. Download .msi APACHE installer 4. I don't have a webserver! 5. Open PHP 6. Console comes up. 7. Try following code: …

Member Avatar for broj1
0
199
Member Avatar for ktsangop

Hello everyone! I want to monitor my network using wireshark 's tshark command line tool. What i want to accomplish is to redirect tshark's output to a c++ application, so i can examine data and output a more comprehensive analysis without keeping a huge amount of data. I am working …

Member Avatar for ktsangop
0
974
Member Avatar for treyb

I have been running a script that will will delete archive folders that are older than 14 days. I have been doing created. However there are times when the script will not run and my boses want the folders deleted but the name of the folder. The folders names are …

Member Avatar for treyb
0
234
Member Avatar for VB 2012

How can i get my key's value using a stream reader [SettingsMB] Remember Me=1 Auto Log In=1 [DataMB] Password="Mypassword" Username="MyEmail"

Member Avatar for VB 2012
0
225
Member Avatar for Akill10

Hi, I am wondering if there is a way to store and search quickly a group of numbers. What I want to do is store a group of Vector3D positions, and then later on, I want to search some sort of array/hashmap based on a current group of Vector3D positions. …

Member Avatar for skatamatic
0
116
Member Avatar for jeff winger

I have to write a program to find the hypotenuse of a right triangle in 8086. and I'm suck. Please please help.

Member Avatar for skaa
0
102
Member Avatar for LateNightCoder

Hi guys I am currently learning WP7 and have a basic app built, the problem is i left it a few weeks back with everything fine. However I have just re-opened it and the forms will not load in Visual Studio 2010. Does anyone know what could possibly be wrong?? …

Member Avatar for LateNightCoder
0
80
Member Avatar for GeekTool

In the book i use, a craps game is the project. Here is the code: import java.util.Random; public class Craps { private static final Random randomNumbers = new Random(); private enum Status { COUNTINUE, WIN, LOST }; private static final int SNAKE_EYES = 2; private static final int TREY = …

Member Avatar for ~s.o.s~
0
3K
Member Avatar for omoayan

I have tried to use this code but I can get it to work well in my server. When I run the mysql query in mysql it gives me the result that I want but within the code it does not output anything. It just gives a blank page. What …

Member Avatar for omoayan
0
141
Member Avatar for Th3_M4TriX

Dont know, if chosen a good forum (--assembly), but i need help guys. Just started to look at disassembling and havent found any good tutorials or guides or helps. So I run a program and get eg. this: (only some line, the whole file is bigger) .text:00401000 push ebp .text:00401001 …

Member Avatar for Schol-R-LEA
0
328
Member Avatar for phoenix_2000

Hello, For my current project, i'm supposed to write a statistics page that shows data about the presence of persons (or lack thereof) per profitcenter. (To put it roughlu, a profitcenter is a group of persons within this company, a bit like a department) in order to generate the statistics, …

Member Avatar for phoenix_2000
0
129
Member Avatar for belenos46

So, I'm currently trying to open a .xls/.xlsx file, tell it to run a macro to refresh the workbooks, and then save the file as a different file name, thus leaving the original untouched. Now, technically, it is working, because the last person who held my position wrote a dll …

Member Avatar for belenos46
0
321
Member Avatar for frivolous

i want to find mfcc of each frame of a song. can you tell me how to find mfcc. i found this code but unable to understand what is it doing. this code is printing an array and duration and period. But i heard that mfcc gives you some co-eficient …

Member Avatar for frivolous
0
270
Member Avatar for salman_hundekar
Member Avatar for Simone Z.

Hi! In my program I have to calculate the Adler32 checksum of a file, but I've a problem in using this algorithm. The function prototype is: unsigned long adler32(unsigned long adler, const char *buf, unsigned int len); I know how to calculate the Adler32 checksum of a string, but in …

Member Avatar for Simone Z.
0
2K
Member Avatar for baseballer

Hi, I need some help coming up with an algorithm that will return class 1, 2, or 3 based on the year that is entered. I have an example that works but I need something a little more simple. `function senateclass (cycle) { return 3 - ((cycle % 6) % …

Member Avatar for baseballer
0
119
Member Avatar for ryudo1987

Guys hi i need some help here though i fixed the connection with the sql server i tries to see if its correct and look first at the code and i explain m prob: private void lgnBtn_Click(object sender, EventArgs e) { SqlConnection lgnConnection = new SqlConnection(); lgnConnection.ConnectionString="Data Source=.\\SQLEXPRESS;"+"AttachDbFilename=C:\\Users\\ryudo\\Desktop\\workspace\\sql_goldshop_project\\Project1\\Goldshop_Tax\\Goldshop_Tax\\gold_tax.mdf;"+"Integrated Security=True;"+"User Instance=True"; …

Member Avatar for prathamesh3090
0
1K
Member Avatar for rb1234567

How can this be implemented on a web page? using c# and clicking a calander which will go to a booking form from each day and how to add database to this? using visuals tudios 2008, using For example a doctors practice.

Member Avatar for LiDmX
0
219
Member Avatar for choudhuryshouvi

Hello all, we have a vb.net windows appliacation that uses sql server as backend. we have created all reports for this application using crystal report that is embedded in visual studio 2005. everything is working fine except the reports specially which needs to be displayed is custome mode. we have …

Member Avatar for maildummyabc
0
2K
Member Avatar for mwansari

Hi, I want to know how to replace variables of RTF file using PHP language. Please help me....

Member Avatar for diafol
0
2K
Member Avatar for omoayan

I need someone to assist in finding out the error in this or correct the codes. I want the codes to give me years in the publicationdate from my DB. However, though I am getting the years, I am getting a particular year repeated. If I put journals in for …

Member Avatar for diafol
0
170
Member Avatar for c#_fem

I want to enable choosing which image to display after a button click. Could you please give me an example? Thanks This is what I have so far : protected void Button10_Click(object sender, EventArgs e) { Image1.ImageUrl = @"C:\img\Desert.jpg"; Image1.ImageAlign = ImageAlign.Left; } It won't display anything after I run …

Member Avatar for c#_fem
0
186
Member Avatar for garrettchap1

I consider myself a very patient guy with a whole lot of determination to get things working within say, a program i'm working on. However, I feel that I am only wasting precious time that I could be using to actually gain knowledge in something rather than hitting my head …

Member Avatar for poojavb
0
778
Member Avatar for xGiraffe

I have trouble trying to create a clock java program that asks for user's input for hours and minutes. When it asks the user for their input, the clock program is suppose to set it to that time using the hour hand and the minute hand, but for some reason …

Member Avatar for JamesCherrill
0
434
Member Avatar for megha_ct

Hi I am new to XSLT and I need help on following XML conversion. I have following xml input and need to convert to another XML structure using XSLT . Please can somebody provide me the XSLT for this conversion. <?xml version = "1.0" encoding = "UTF-8"?> <Inputs xmlns = …

Member Avatar for syd919
0
353
Member Avatar for renzlo

Hi, All, Sample Table Job_ID Job_Name Status 1 TEST00001 FOR KE 2 TEST00002 FOR KE 3 TEST00003 FOR KE 4 TEST00004 FOR KE 5 TEST00005 FOR KE I have sql query that will get a jobname where status is equal to 'FOR KE' and I have multiple users that will …

Member Avatar for renzlo
0
349
Member Avatar for JayVNL

Hi All ! After a few hours of googling around i found this community. I am not sure if i am in the right place, sorry if i am not. I want to build a form with a drop down menu and a few text fields. On load, they are …

Member Avatar for diafol
0
802
Member Avatar for poojavb

Hello Friends....One more doubt... I have a connection module in which I have written the open and close database connection.... if database connection is an error it will return false else if success it will return true the function of the modules will be called from the form code.... what …

Member Avatar for poojavb
0
255

The End.