199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rotten69

Hello everyone, I have a book called "Java Genesis" and it has some files such as packages, projects and hints to enhance learning. So, I have set up a file structure in Eclipse and it shows that there are errors and warnings. When I tried running a Java Application using …

Member Avatar for rotten69
0
10K
Member Avatar for AngelicOne

I'm using javascript for my client validation and I would like this to work the way I wanted to. I have three textboxes for last name, middle name and firstname. All the fields are mandatory and if the form is submitted there would be an error to display below the …

Member Avatar for AngelicOne
0
249
Member Avatar for nji2rhyme

Hi, I'm trying to convert random numbers between 0.1 and 1. Here is what I have done. Dim piped As Double Randomize() piped = CDbl(CDbl((1.0 * Rnd()) + 0.0)) If (piped < 1) Then pipediameter.Text = "0" & Str(piped) Else pipediameter.Text = Str(piped) End If But I want the program …

Member Avatar for nji2rhyme
0
338
Member Avatar for jonsan32

I've got this scrolling marquee code to work on this page: [url]http://www.jamball.com/2011/07/club-teams.html[/url] [B]but it goes crazy in IE[/B]. [COLOR="Red"]I know IE sucks[/COLOR], but over 40% of our customers use it. Is there a way to fix the script, or must I scrap the entire idea? There is a table in …

0
106
Member Avatar for newprogramer

It works for the first time but when it loop nothing is stored wondering whats wrong could someone help me out please? [CODE]void main () { char buffer[256] = {0}; char password[] = "test"; char c,i=0; int pos = 0; do { buffer[0]='\0'; printf("%s", "Enter password: "); do { c …

Member Avatar for WaltP
0
157
Member Avatar for fsefsef23

I have set of lines which I read from a file that gets stored as an array stack of characters. A function called procssline gets called with the stored stack as a parameter. One of the lines reads as follows: Nn<-<-<-<-No <-w iz<-sthe<-<-<- the time. Where the top of the …

Member Avatar for WaltP
0
690
Member Avatar for radiata

Hello, I'm having problems with one of my codes that I need to finish for class. I'm supposed to write a function that has a partially filled array of characters and it deletes all repeated letters from the array. The program requires input for the size of the array, and …

Member Avatar for NathanOliver
0
854
Member Avatar for sneekula
Member Avatar for blah32

I'm trying to convert a bitstring to a signed 32 bit integer value. The bitstring is in big-endian. I can get this to work for unsigned values, I use: [CODE] sub bin2dec { return unpack("N", pack("B32", substr("0" x 32 . shift, -32))); } [/CODE] But I can't get it to …

Member Avatar for d5e5
0
618
Member Avatar for ppetree

Hi All! I'm apparently doing something very wrong here... I can't get my soap client to send the security certificate which a valid .pem file and because of that the subsequent calls are failing. What do I have to do to get the soap client to send the pem file? …

Member Avatar for ppetree
0
3K
Member Avatar for iamjess147

How would I increment Date with a value from a database. Example: Date + Database Field value (random values) (08/01/2011 + 5 = 08/06/2011) Thanks in advance.

Member Avatar for Mitja Bonca
0
146
Member Avatar for fingerpainting

Say I have a list of lists as follows (which I do): [CODE][['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3']][/CODE] What I want to accomplish is if in any list Value1 & Value2 equal the Value1 & Value2 of any other list, I want to merge …

Member Avatar for TrustyTony
0
654
Member Avatar for sirlink99

I am creating a program that will simulate a fish tank (got it off of google) and when I try to get the image using [CODE]mClownImage = getToolkit().getImage("Fishes/mClown.gif");[/CODE] the getToolkit() part gives me an error. it suggests that I make a method called that. I have imported java.awt.Container; which contains …

Member Avatar for NormR1
0
73
Member Avatar for sadsdw

Hi friends, I'm having a problem to write a file and read the same file in sequence. The file size is 4 GB. I tried fstream for both and as second option ofstream and ifstream. I'm reading just the first 2 lines of the file. If I read those in …

Member Avatar for sadsdw
0
258
Member Avatar for ErangaD

I am a VB.net programer and I am very new to PHP HTML and Java Scripts I am doing a project for my company using PHP HTML and Java Scripts and I want to Know how to make readonly a text box after it gets the input This text box …

Member Avatar for Airshow
0
177
Member Avatar for jobs

I have a file pointer which was assigned in main. In the main, I just open a file to write stuff to it. I want to pass the file pointer to several functions so that they can write to the file. In the fucntion declaration I just add: somefunc(FILE *file) …

Member Avatar for Narue
0
1K
Member Avatar for galhajaj

Hello! :) i need to make something that change the image inside a picturebox every 1000 milisec for a 6 pictures (for example), so i search about a function that can hold the code for this time and i found Thread.Sleep(1000) (after use the "using.Threading" ofcourse) so i put that …

Member Avatar for galhajaj
0
217
Member Avatar for KnifeDarky

Hi everyone, I trying to figure out how to execute commands stored in string, let's say i have string called "command" and a textbox, so i want vb to run command that i typed in textbox, e.g. i type in textbox "label1.text = "bla bla"", and then type like "msgbox.show". …

Member Avatar for KnifeDarky
0
1K
Member Avatar for RazorRamon

Can you all tell me the difference in these 2 codes? I'm trying to learn JQuery and ive seen this code below in the tutorials. [CODE] $DB->Query("Select * FROM time"); [/CODE] I'm use to coding queries like this. [CODE] $res = mysql_query("SELECT timestamp, name FROM time ORDER BY timestamp DESC"); …

Member Avatar for P0lT10n
0
155
Member Avatar for adanaz

Hello I've made a program using JCreator. It was working fine and all of a sudden it won't run anymore. I get this message: [CODE] --------------------Configuration: <Default>-------------------- Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: …

Member Avatar for adanaz
0
2K
Member Avatar for dwinn

Hello, I am currently trying to sort on a GridView after it has been populated with records from a SQL Server Express database. I click on a column to sort it and I get the following error: "DataTable must be set prior to using DataView." The entirety of my code …

Member Avatar for adam_k
0
147
Member Avatar for MareoRaft

This code compiles but refuses to run. NONE of the cout statements appear, as if the program is in an infinite loop except that its not. [CODE]#include "matrixOpsLibrary.h" #include <iostream> using namespace MattsMatrixSpace; using std::cout; using std::endl; Mat pattern( unsigned K ){ cout<<"5"; Mat alpha; //this becomes our A variable …

Member Avatar for MareoRaft
0
187
Member Avatar for MichaelFL

Hi, I'm new to PHP, but not to computer programming. I'm trying to connect to ny MySQL database and thought I followed what the tutorial said exactly. Obviously not. I realize that this is an error indicating a missing control character, but I have no clue as to what it …

Member Avatar for MichaelFL
0
145
Member Avatar for petrakid

I am trying to write a script that will update my database(s) without the user having to click any buttons. I also want the update to occur whenever a field is modified in the form. So here is an example form [CODE] <form> <input type="text" name="fieldone" value="currentvalfromdb" onChange="updateDB()" /> <select …

Member Avatar for petrakid
0
1K
Member Avatar for cjohnweb

Let's say this is an unknown error, possibly a syntax error, possibly an HTML error - I can't be sure. Hey there, I'm a PHP expert, but not so well with JQuery - I'm just starting out with JS in general. I have a PHP based site I am working …

Member Avatar for Airshow
0
219
Member Avatar for faroukmuhammad

Is there a software that can convert [B].max[/B] files to [B].ojb[/B] files? Where can I find one?

Member Avatar for Sodabread
0
591
Member Avatar for learn_java

I am interested in learning java online. I am looking someone who is willing to teach online.

Member Avatar for stultuske
0
120
Member Avatar for iamthesgt

I am making a video recording program that takes input from a v4l2 webcam and outputs to an avi file. Using gstreamer in c, I have got most of the program to work, and the file is created. I can get the pipeline to display the video to the screen, …

0
169
Member Avatar for alenD

Hi, When a SELECT query is executed does MySQL store the resultset in some table? If it does, is there a way to find out that table and access it later before the session is closed? thanks,

Member Avatar for b89smith
0
105
Member Avatar for ohhmygod

Hi guys, I've been trying for over 3 hours just to know how to compare a char to a letter in a string. This is sure confusing, consider that I am a mechanical eng. student >.< Lets get straight to the point Problem 1: passing string and char to a …

Member Avatar for WaltP
0
3K
Member Avatar for devindamenuka

hi all, IN my web site Users can put comments, Administrartor can view them and give permistion to print or not. problem is when user put comments with out braking the lines. then comment will be printed in a single line and it wil jumble the format of the site. …

Member Avatar for diafol
0
2K
Member Avatar for wackytechie

Hello people..!!:) I'm a beginner in c++.. I made a program today which worked well when I ran it 2-3 times.. But now when I try to run it,nothing happens... All I see is a black screen which disappears in a second.. What to do..??:?: Please help me asap as …

Member Avatar for NIPHZ
0
4K
Member Avatar for skiabox

I am reading a book and I am in a chapter where it shows how you can create web forms using php. The problem is that I am getting confused by this switching of the code. I give you an example : [CODE] <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” …

Member Avatar for ddymacek
0
270
Member Avatar for xenhancd

I want to have the ability to rerun the following from the very beginning, however, I have only been able to get it to rerun from the middle of the program where it asks for sales tax. I've tried moving my do/while tags around to everywhere but nothing seems to …

Member Avatar for Ketsuekiame
0
276
Member Avatar for jackmaverick1

Hi! I've written function that writes to one of eight files. It writes one of the strings, which is associated with a file to that file. There is also a similar one, it just reads from that file and returns it. When I run the program, it does everything correctly, …

Member Avatar for sirlink99
0
326
Member Avatar for e060185

Hello, I need to create a code for formatting a file that I receive from Bloomberg, and has a line break at the end of each line. See below. (I have hundreds of paragraphs like this) [I] Italy’s debt is forecast to rise to 120 percent of gross domestic product …

Member Avatar for Ezzaral
0
151
Member Avatar for hatebin

Hello Im trying to code something like this [CODE] public class Decoding{ Decoding(InputStream in) //constructor Object obj = new XMLDecoder(in) } } [/CODE] [CODE] public class Test{ public static main(String[] args0){ JButton button = new JButton(); decoder = new Decoding(new FileInputStream("somtheing.xml")); button= decoder } } [/CODE] So as you see …

Member Avatar for hatebin
0
116
Member Avatar for agogte20

what main features of C are to be learnt well before starting with C++? Plz reply as soon an possible...

Member Avatar for mike_2000_17
0
132
Member Avatar for navybofus

Hello everyone! I have a problem trying to get a user to be able to query the database with only the fields and specifics they want. Basically... User logs in, browses through record entries and then wants to see how many of the entries are under the age of 21 …

Member Avatar for navybofus
0
273
Member Avatar for AngelicOne

I know I am doing this right but it just doesn't work. The condition for radiobutton that if it's not checked then an alert should display. But it won't work! [CODE]<script> function valid() { var element = document.forms["form"]["gender"]; var check = false; for(i=0;i<=element.length;i++) { if(element[i].checked) { check = true; break; …

Member Avatar for AngelicOne
0
123
Member Avatar for jgat2011

Hi, I am developing a system for a business and would like the server to be one of the computers of the organisation. My problem is that i don't know how to make the database accessible by the other machines. Thanks in advance.

Member Avatar for Netcode
0
141
Member Avatar for ctsmith84

Hello, I'm hoping that someone with experience with programming against DB2 can help a new programmer down the correct path. I've been given a project that requires me to pull data from tables in the companies DB2 database, and when all said and done have that data placed into an …

Member Avatar for ctsmith84
0
204
Member Avatar for bluehangook629

Hey guys I am trying to use Microsoft.VisualStudio.Data.Services namespace in my project, and I look everywhere to find this namespace but no luck. I was wondering if anyone can tell me where I can go to include Microsoft.VisualStudio.Data.Services in my project. Thanks

Member Avatar for bluehangook629
0
122
Member Avatar for bhagawatshinde

Hi, I have blank in this type of question. Suppose i have an 100 records in my sql database. i am creating 100 files for each records (100 records) in 10 min. Now I want to create 200 files in same 10 minutes. Means double files in same time. how …

Member Avatar for Ketsuekiame
0
100
Member Avatar for nimirraj99

Okay so I've searched just about everywhere but can't seem to find what I'm looking for. I'm learning as I go with PHP and I'm having a problem figuring out what is wrong. I've got two different queries calling a group of information. Within each query is a field that …

Member Avatar for nimirraj99
0
363
Member Avatar for zebnoon

Hello to all, I have installed SQL Server 2005 on windows xp . Please tell me how can i create new SQL database ?

Member Avatar for ChrisHunter
0
154
Member Avatar for Jessurider

can anyone tell me how to bring jbutton within a jtable.........and how do do the actionperform of the button can i do this in jframe......

Member Avatar for JamesCherrill
0
135
Member Avatar for dashure

hello, i need help to solve this little problem. i have an error here.."cant access privet members declared in class CWorker..with is another class [CODE]void main() { CManager *Sasson = new CManager("Sasson Sassoni"); assert(Sasson); // adds workers Sasson->addWorker("Jojo"); Sasson->addWorker("Shilgiya", 1000); }[/CODE] i also have CManager.h... in CManager.cpp, its only part …

Member Avatar for laosland
0
222
Member Avatar for nsyncpilu

Hy , I have a example tooken from the internet , and compiler gives me this error : The type CommPortIdentifier is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\comm.jar The code is: [CODE]import java.awt.*; import java.io.*; import javax.comm.*; import java.util.*; /** * Open a serial port using …

Member Avatar for jackmaverick1
0
140
Member Avatar for dcparham

hi All - total noob[java] here; i have an app on the android written, but i believe the question here is totally java related. after my app adds field1 + field2 + field3 and displays the value in field4, how do i *start over*? thing is, if ea field is …

Member Avatar for jackmaverick1
0
173

The End.