199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Is there a way to read Adobe PDF files with Python? | |
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 … | |
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? … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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". … | |
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"); … ![]() | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Is there a software that can convert [B].max[/B] files to [B].ojb[/B] files? Where can I find one? | |
I am interested in learning java online. I am looking someone who is willing to teach online. | |
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, … | |
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, | |
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 … | |
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. … ![]() | |
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 … | |
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” … | |
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 … | |
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, … | |
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 … | |
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 … | |
what main features of C are to be learnt well before starting with C++? Plz reply as soon an possible... | |
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 … | |
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; … | |
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. | |
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 … | |
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 | |
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 … | |
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 … | |
Hello to all, I have installed SQL Server 2005 on windows xp . Please tell me how can i create new SQL database ? | |
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...... | |
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 … | |
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 … | |
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 … |
The End.