64,152 Solved Topics
Remove Filter ![]() | |
Hello there. I am trying to create a loop, which will move an objects position to a certain spot, based on a random number generator. Here is the code I have so far; [CODE]public void left() { if (this.getColour().equals(OUColour.WHITE)){ while(this.getPosition() !== this.setPosition(this.getPosition() - getRandomGenerator().nextInt(5) + 1)){ super.left(); } } }[/CODE] … | |
Hiya: I have tried to reproduce this equation to simple reflect a ball after colliding with a paddle (or screen bounds) R = V – (2 * V[dot]N) N I don't want to take the easy rout of just negating the velocity but is my first time trying to implement … | |
i got 3 users to be registered in the registration form through radio button admin,manager and employee... after registration of a admin the other 2 raadio buttons shud only enable in the registration form... admin shud be disable............ how to implement this in php........... ![]() | |
i have search page to search by title, author, isbn from the dropdown list. But when they display the result for my search, it unable to retrieve my other data from my table (product4) like the price. it shows this error below Notice: Undefined variable: price in D:\xampp\htdocs\book\search.php on line … | |
Hi, I'm having a problem with taking the user input from a richtextbox in Unicode and writing it to a Unicode text file. I'm able to read a different Unicode file and write it to the new file, but when it comes to writing the contents of the richtextbox to … | |
Hey, following Problem: I have two classes Measurement and its subclass DC_Measurement. Measurement has a method called: [CODE]public virtual SetPoint[,] createSetPointArray()[/CODE] DC_Measurement: [CODE]public override DCSetPoint[,] createSetPointArray()[/CODE] DCSetPoint is also a subclass of SetPoint. I read that this is possible. Now I use in my mainWindow following code which contains an … | |
[B]Hello guys i have a problem with PHP code and i dont know what is wrong i want to get the content of a website then search for specific tags then take the value of tags , lets say i want to search for example for these tags [/B] <div … | |
Hi, Do anyone know a memory leak profiling tool compatible for java 1.4.2. Your help is much appreciated. | |
Hi, My question is about: How select a "Window" that exist ? Because I don't know how select. What I know is create a new window, but don't select a that already exists. What I have done this is it: (throw how "sub-process" already minimized) [CODE] import subprocess if subprocess.mswindows: … | |
Hi all, I am looking to have a long process running in the background to my main form with a timer ticking on the main form animating the elipsis on the end of some text. Was looking for some insight into the best way to go about this and any … | |
![]() | Has anybody here had any experience of using OpenID (or FB, Twitter, Yahoo etc) to login into your site. I've been wondering whether I should adopt this approach for a new project. However, as a password will not be stored in my DB, how will the user remember which service … |
I'm trying to write a blog and this comes up : Parse error: syntax error, unexpected '<' in C:\wamp\www\Blog\index.php on line 65 the code: [CODE] $query = "SELECT id, header, body, views FROM information"; $result = mysql_query($query); while($row = mysql_fetch_row($result)) { print "<div class=section odd>"; print "<a href=images/riverside.jpg><img src=images/riverside.jpg /></a>"; … | |
How do I represent a use case that has no actor? I'm doing the preliminary work for an IT system. I'm trying to list up all the actors so that I can create all the use cases that I need; however, there are things like background processes that must run … | |
Hey guys, I am trying to figure out how to write out this java Program, I am using JCreater, and I am teaching JAVA to my self if you guys can help and show me a couple of the programs that I am doing I think i will be all … | |
Hi, I want to add a button (ButtonCalculate) to make the user select this button to generate the loop for calculating the sum. [CODE] Private Sub TextBox1Integer_TextChanged(sender As System.Object, e As System.EventArgs) Handles TextBox1Integer.TextChanged Dim OddSum As Integer = 0 Try Dim CountTo As Integer = TextBox1Integer.Text For Index As … | |
I am making a networking application using sockets for a local area network. How can i make the client side of the application search the network for the server socket? Right now i am getting the input from the user itself about the IP address and Port of the server. | |
How can I forward declare a struct/custom type in my include? I'm trying to write an include but it keeps telling me incomplete type or type not declared.. I do not have a .CPP to go with it.. I wrote everything in here as I have never written an include … | |
Hi a have 4 tables Table A ID | Data 1 --------------- 1 | A Table B ID | Data 2 ----------------- 1 | B 1 | C Table C ID | Data 3 ---------------- 1 | D 1 | E 1 | F Table D ID | Data 4 … | |
i am having trouble linking 2 listboxes together... What i woud like to happen is a selecting from listbox1 to populate listbox2. Any ideas on what to do? thanks in advance | |
Let me describe my problem as well as I can. I have a C# application program, let's call it App.exe. It references a DLL named A.dll which in turn references another DLL, namely, B.dll. However the way in which they are referenced is a bit different. In the code of … | |
hay all, I currently develop a website using php but I very newbie in php programming I have login issues here, I create a login sytem I success to make that, in my web after login page it will go to admin page but when I click browser's back button … | |
Im stuck with the following: Define a function isPrime(number) that takes in a number as argument and return True if the number is a prime number. Hint: A number, x is a prime number if it is only divisible by 1 and x itself. By definition, 1 is not a … | |
Guys, Need your help. i need to obtain the nearest date from 3 tables. attached my scripst. th problem with this scripts it creates double entry in receipt date with the same transaction specially for this ESN "268435459407885398". [CODE] SELECT p.ESN, p.ReturnDate, s.Receiptdate, e.Shipdate FROM #Product p with (nolock) CROSS … | |
Hi. I am developing a website in visual studio 2010 ultimate edition. I selected dot net framework 3.5 when I started this new website. Now I want to change this existing website into framework 4. I can not find "project" menu or "project designer" or "applications" tab in properties. Please … | |
I'm writing a program to convert Decimal numbers to binary, hexadecimal, and BCD as a refresher before i start getting code assignments in school. I'm almost done, but i have a seg_fault (compiler says decToHex function) in 1 function and i am hoping for some feedback on the others. I'll … | |
I've just installed the newest version of wamp server and I cannot access phpmyadmin. I keep on receiving this message. You don't have permission to access /phpmyadmin/ on this server. I just don't know what to do with it | |
pButtonarray [x] [row].putClientProperty ("x", new Integer (x)); I'm using a version of java that doesn't have method overloading for putClentProperty so i have to type new Integer as seen above, and this all works perfectly now I'm trying to assign a boolean to the array like so pButtonarray [x] [row].putClientProperty … | |
I have two tables that I'm using in this query. We'll call the first one "userGroups" and the second "links". I've included their structure below. I have one system that is running an older version of MySQL, and I also have a system running a newer version. Older Version: 5.0.91-community-log … | |
Hi guys - I need to write a program that reads in a user-input integer and tells if the number is prime or not. I've written up this code so far: [CODE]class primenumber { public static void main(String[] args){ int num = 10; int i; for (i=2; i < num … | |
(This has to be a Java question as it simply works in a txt with a HTML extension....) I have this code: [code] <html><head><title></title></head><body> <form id='formulario' action='index.html' method='post'> <label>Ancho </label><input type='text' name='ancho' id='ancho'><br > <label>Alto </label><input type='text' name='alto' id='alto'><br > <label>Izquierda </label><input type='text' name='izquierda' id='izquierda'><br > <label>Horizontales </label><input type='text' name='horizontal' … | |
Hi Everyone, I am currently Working on a School Project which has the form of a stock update System. I am using an access 2007 DB and building my code in Visual Studio 2010. I am trying to get an Update Query to work and I am completely unsure on … | |
How can I cause the Paint event to fire from a Form_Click() event? This is what I'm trying to do... [CODE] Public Class StrTests01 Private Sub StrTests01_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click Dim ps As Graphics = Me.CreateGraphics() 'RaiseEvent StrTests01_Paint(sender, ps) End Sub Private Sub StrTests01_Paint(ByVal … | |
hello there, im very new to this php malarky and have been asked if i would take a look at repairing a site that was recently messed with by the old coder. i didnt make nor code this site and my skills are limited ive managed to plod my way … | |
Hello [CODE] class Product { private string Produuct; private decimal Price; private decimal Vat; private bool Food; private int Count; private const decimal foodVATRate = 0.12m, otherVATRate = 0.25m; private decimal Finalprice; private decimal Rate; public void Start() { Readinput(); CalculateValues(); Printrecept(); } private void Printrecept() { throw new System.NotImplementedException(); … | |
Hey Putting this code: [code] System.out.println("Hello"); BufferedImage bufferedImage = new BufferedImage(620, 420, BufferedImage.TYPE_INT_RGB); System.out.println("Bye"); Graphics2D g2d = bufferedImage.createGraphics(); g2d.setColor(Color.black); g2d.fillRect(0, 0, 620,420); g2d.setColor(Color.yellow); [/code] It throws a java.lang.OutOfMemoryError: Java heap space error not displaying the bye. I dont understand as my BufferedImage is nothing at all (simple 620 by 420). … | |
Can someone tell me what is wrong with this code: [CODE]<?PHP include 'topo.php'; include 'db_connect.php'; $sql = "SELECT * FROM cursos"; $query = mysql_query ($sql, $connect); ?> <table> <?PHP while ($row = mysql_fetch_array ($query)) { ?> <tr> <td> <div id="navigation-block"> <ul id="sliding-navigation"> <li class="sliding-element"><a href="prog_curso.php?cod= <?PHP $row ['cod_curso']; ?> "> … | |
hey guys im really stuck, when i run y program if finds fields fill's them in and submits, but sometimes the page does not have them fields and i just want it to skip them if not found so it continues otherwise it crashes. my e.g field: WebBrowser1.Document.GetElementById("subject").SetAttribute("value", TextBox3.Text) please … | |
hi could someone help me in giving a tutorial in learning how to write testcases in java. would preffer in netbeans if eclipse dosen't matter, thanks in advance | |
Hello! :) i am starting a new winforms project and i need help in some issue. i added a panel with radio-buttons and i want to make a several panels with buttons and other components for each radio-button, for when i choose certain radio-button a certain panel will be visible … | |
I wonder why they use private constructors.when I was navigating java documentation I found alot of classes with private constructor.Would you tell me what are the benefits of writting them. | |
Hi! I'm looking for a way to only run a few tests instead of all existings JUnit test cases in our automated build, which uses ant. I can't add @ignore annotations in the code since it would take to much time. Is there a way to define which test cases/classes … | |
Hi guys, Can anybody help to figure out the problem. In my C# application project with access database when fetching the records from db it will give me error "Unspecified error". Thanks in advance... | |
Hi, I am trying to delete multiple rows with select buttons. But my code does not work. Could you help me ? [CODE] $user_query= "SELECT * FROM user"; $user_result = mysql_query($user_query); $count=mysql_num_rows($user_result); echo "<form name='form1' method='post' action=''>"; echo "<table>"; echo "<tr>"; echo "<th scope='col'>#</th>"; echo "<th scope='col'>username</th>"; echo "<th scope='col'>Email</th>"; … | |
Hiya, recently came across these two grid methods; but am confused about the distinction between them. wonder if anyone could give a simple example to tell the diff? Thanks a million! | |
Good morning, Here i am again, asking help to all of you that are able to help me, my problem is the following, i translated some code from C# to VB, mas the code in C3, what it does is change the wallpaper and it's style for Windows Starter, but … | |
Hi all i am having a small problem with my dynamic output code to produce a signature in php the signature comes out fine with text but when i add another .png image to add ontop of the main signature i get a black background when i would like it … | |
Hello all, I just want to know if we can pass textfield as alert in J2ME. for e.g. I have a field UserName and Password and when i click 'OK' there should be an alert which would show a texfield for PhoneNo. and we can enter the phone number in … | |
Hi, I would like to have a php script or javascript to calculate the array textboxes where values fetched from the database. My array textboxes code below: [CODE] $sql="SELECT * FROM records WHERE is_active = 'Yes'"; $result=mysql_query($sql,$connection) or die(mysql_error()); while ($row=mysql_fetch_array($result)) { $default_salary = $row["default_salary"]; echo "<input onkeyup=\"AddInputs()\" type=\"text\" class=\"validate[required,custom[onlyNumberSp],maxSize[5],minSize[3]] … | |
uhm. im coding a simple log in program in vb 6 and im using access as the database. i already coded the username and password verification part successfully. but our instructor requires us to include a "Privilege" whereas, all registered usernames in the database have corresponding privilege or rights to … | |
So, I am fairly new to C++ programming, so if you can help me, please try to keep it simple...I'm still learning. What I'm trying to do is assign a score to a grade letter (A,B,C,D,F) and then display it. This is what I'm have: [CODE]string lettergrade1; string lettergrade2; if … |
The End.