199,114 Archived Topics
Remove Filter ![]() | |
Hi, I am getting a xml object from as a web response for getting data from a web page the content is as : " <bookshare>\n <version>4.1.1</version>\n <messages/>\n <book>\n <metadata>\n <author>David Flanagan</author>\n <available-to-download>0</available-to-download>\n <bookshare-id>21385</bookshare-id>\n <brief-synopsis>The 1.4 release of Java 2 Standard edition brings a load of new features - and … | |
I am making an ABACUS MODEL program which adds counters to pegs. The program compiles fine but when i use the test that was issued to me (as pictured) it appears as though my program does not work as intended. I don't know if anyone will be able to help … | |
Hello there, i know there is alot questions about this and source but i could not manage to get it working since im trying to make it using only one letter example F1 or F5 as hotkey to work on non focused form, but im also in need to get … | |
I have created a simple ajax mvc code snippet. The owl idea is to post message from a textarea box to the controller through ajax and update and element on the page with result of the ajax request. But unfortunately the update part of the code is not working. Problem … | |
Hi, I am working on a web project and using Details View to insert new records. The problem is when I click cancel and then try to refresh page it shows dialog box saying >To display this page, Firefox must send information that will repeat any action (such as a … ![]() | |
Hi, I have developed a website using Fireworks + Dreamweaver and website is for 1024X768 pixels. Now I want , it detects the browser and resolution of the user and if user resolution is 800X600 it shows a web page of 800X600 . i have developed in both resolutions. please … | |
Hello! I have a problem about creating a menu, the switch statement doesn't break. Could somebody please help? The code is: do { /* ...get input... */ switch(choice) { case 1: submenu(); break; case 2: submenu2(); break; case 3: printf("\nThe program quits.\n"); exit(0); default: printf("\nNo such menu item!\n\n"); break; } … | |
![]() | Hi, I want to add element after an element with loop. For example, I have 10 paragraph elements and I want to add div element after each paragraph element. How can I do it? ![]() |
I have the following code. The QUERY is custom and give me results based on category. After some checks I can acces items inside that category. Using the functions posted below. If there are more items inside that category I want to retrieve a random from those results. Is it … | |
AFTER a query for 1 category I receive details back. 1 category can have more items. The items have sequental id's but not in normal order. While (category_items()) { echo item_id(); // checking this give me for example id 1, 3 and 5. } I want to select one random … | |
Group, I may have messed up bad. I need help. I was having trouble loading a database I had created with data. So I downloaded SQL Server 2008 Express that included the management tools. I tried to find and open the created database and never could find it using the … | |
Hi All, I wish you a Happy new year!!!.. My requirement is to upload an excel file using PHP and to update the data in MSSQL. For which i have designed a screen so that the user can browse 2 input files and update the database. html code for the … | |
The above code computes the value of a mathematical expression supplied at command line by using the concept of converting infix to postfix,then evaluating the postfix expression. Any comments are appreciated. | |
I need to multiply 2 matrices together using threads to computer each element. Ive been working on it myself but Im stuck at this point and Im getting an error. Here is the code I have. Can someone help in explaining what is wrong here or how to correct it? … | |
Remove the last word while using left in sql query...I weant to avoid broken words while doing so... My query as follows: select top 2 tempJobTitle.id,tempJobTitle.JobRefId,tempJobTitle.JobTitle,LEFT (jobmaster.JobDescription2, 330)+'....' as JobDescription,jobmaster.PostedDate from tempJobTitle inner join jobmaster on jobmaster.JobRefId=tempJobTitle.JobRefId where tempJobTitle.Status='Approved' and jobmaster.ClosingDate >= '2013-03-01' order by tempJobTitle.DateofEntry desc | |
Hi I finally screwed up.In order to get rid of a minor problem I uninstalled Wamp Server and reinstalled it.Now when I try to start it it will not accept my old password.What can I do? Do I have to uninstall everything mySql, Workbench,Wamp server and maybe php? Another thing, … | |
a. Write a C program to open and close a file given its name. Your program must check whether or not the file exists. b. Add a function for reading an opened file into an array of characters. You may assume the array is large enough to hold an entire … | |
connection.php <?php $servername = "localhost"; $username = "*******"; $password = "*******"; $database = "rustoleum"; mysql_connect($servername, $username, $password) or die("Not connected"); mysql_select_db($database) or die("Not connected to the database"); ?> How do I find the servername for my online hosting? | |
Hi, I've the following html/javascript/css code that I'm trying to execute. But it doesn't work. What I'm trying to do is similar to this: http://jsfiddle.net/FsPSZ/16/ (i've even tried this and the problem is the same) ` <!DOCTYPE html> <html> <head> <title>test</title> <style> #preview{ position:absolute; border:1px solid #ccc; background:#333; padding:5px; display:none; … | |
Hi I have declared BYTE myKey[10]; and on executing the value stored in myKey is 0x9100 i need to do string compare this value with user defined value (9100) how can i do the comparison? i converted to int int tempkey = (int)myKey[i]; //(have put it in loop based on … | |
This time, I am trying to retrieve data: input_berita_static.php <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $news = isset($_POST['news']) ? $_POST['news'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $page = isset($_POST['page']) ? … | |
Hi People, Got some jquery issue. I'm validating a Contact form. All fields are working fine except <textarea> I mean I wanna make all fields mandatory including textarea... --------------------------------------------------------- HTML CODE --------------------------------------------------------- <div class="formbox"> <form id="contact_form" action="#" method="post"> <span class="error" id="name_error">Please Enter Name !</span> <span class="error" id="email_error">Please Enter Email address … | |
Hi guys' I'm having trouble with this code <?php $link=sqlite_open('data/3001.sqlite ',0666,$sqliteerror); $comp=sqlite_query($link,"SELECT * FROM assets WHERE asset='chest'"); while($ent=sqlite_fetch_array($comp)){ $item=$ent['content']; $asset= "array(".$item.")"; echo $asset; } $saved=array('food','knife'); $left=array_diff($asset,$saved); echo $left; ?> the echo $asset line displays "array(array(food,knife,scarf,torch,key)" but I get an error Warning: array_diff() [function.array-diff]: Argument #1 is not an array in … | |
hello i want to stop the music after pressing other song i tryed much different ways of doing it but no results please anyone help me i have this code ... package passwordsaver1; import java.awt.Dimension; import java.awt.Toolkit; import java.net.URL; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; import javax.swing.JOptionPane; /** * * … | |
Hi.. I want call data from table in mysql database using javascript How to do it? [EDIT: Moved from Java to JavaScript] | |
Hi, i would like to calculate the execution time of my program. is there any function available to enable it?? | |
I am trying to make a vb program that reads a text file and manipulated the data within. For instance, my text file contains the following information: 27 rt 3 + 5 * 2 / 4 - 2 ^ 3 This is all the information my text file contains. I … | |
![]() | I need help with the code below. I coded using the For..Next statement, now I have to place the For..Next statement with a Do..Loop statement. Can anyone help down the right path? Thank you in advance. ` Dim strGrades() As String = {"A", "B", "C", "A", "B", "A", "F", "A", … |
Hi everybody! I'm new to web development, photography being my thing and I've just created my self a website. I used photoshop cs3 to design most of the pages and a "simpleview" code for the slideshows. When doing the designs i used my native screen resolution: 1920x1080 and it works … | |
suppose i have 10 products in my database Example: iphone 2 - iphone 3g - laptop i3 - laptop i7 - nokia n96 etc when i enter iphone in my search i see all records stored in database thats my prob! what i want ? suppose if i enter laptop … | |
I have this codes: login.php <div id="loginbox"> <table> <form action="proses.php" method="POST"> <tr> <td>Login:</td> <td><input size="30px" type="text" name="username" value=""/></td> </tr> <tr> <td>Password:</td> <td><input size="30px" type="password" name="password" value=""/></td> </tr> <tr> <td></td> <td><input type="submit" value="OK"></td> </tr> </form> </table> </div> proses.php <?php $servername = "localhost"; $username = "root"; $password = ""; $database = "rustoleum"; … | |
input_berita_static.php <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $news = isset($_POST['news']) ? $_POST['news'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $page = isset($_POST['page']) ? $_POST['page'] : ''; echo $id; //Load berita if … | |
Hello, I am trying to divide my dataset(iris dataset) into training and test sets randomly. My dataset contains 150 patterns. And I need to divide 90 patterns to test set, and the rest to training set. How can I do this? Help me with the C code. Thank you | |
Hello generous java coders!I am really in a desperate situation now. I have a working gui code here: import java.awt.event.*; import java.awt.*; import javax.swing.*; public class CountdownTimer extends JFrame { JLabel promptLabel, timerLabel; int counter; JTextField tf; JButton button; Timer timer; public CountdownTimer() { setLayout(new GridLayout(2, 2, 5, 5)); promptLabel … | |
Hello again I am trying to show the errors that can occur by uploading a file (file name, size). I tried to modify this code cut-off but I could not. else format.html { render action: "new" } format.json { render json: @upload.errors, status: :unprocessable_entity } end I have following validations … ![]() | |
| |
basically i am working on a project for uni, which is to create a form of an abacus model. - peg_array[] stores the number of counters/beads present in each of the pegs(lines) of the abacus. i am trying to use 2 boolean methods: "boolean removeCounter(int thisPeg)" "boolean removeCounter(int thisPeg)" thisPeg … | |
Hi everyone, I am working on a wee small project using cURL. From the documentation, it states "The Server will HTTP POST a string in a parameter called (INCOMING)" to the given callback URL. I know the list of parameters in the string as this is given in the documentation, … | |
Hi I am trying to write a binary search function to search for a specific character in a character array sorted in ascending order. Whenever I run the code though nothing happens, there are no errors or anything, just nothing happpens until I terminate the program myself. Below is my … | |
Hi, It seems that this should be very simple, but I can't make it work. I pass a list of items to the view, edit some of the fields, and post the edited list back to the controler. They go to the view fine, but I am unable to get … ![]() | |
I am trying to get multiple variable to one URL. My problem is coming from my JavaScript code. I need to add if/then statements to the code. The user will select a date and time but I need the date/time to change to zulu time so when they click on … ![]() | |
Why do I need a static class member? What are the advantages and disadvantages of it? Is there any way that I can have non-static member fuction without doing anything outside of the class (such as passing an instance)? class Control { private: HMENU ID; HWND Handle, Parent; std::string Class, … | |
I'm trying to populate a dataset from an excel sheet but I keep getting a "could not find installable ISAM" error. (In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.) on the adapter.Fill line. Already tried changing … | |
So currently I have been working with a program that is working with 2 threads, one is used to scan a webpage, download it's data, parse it, and then update a form. The other thread is responsible for running an elapsed time, that gets the elapsed running time, and then … | |
I have to perform the encryption and decryption of the file based on des algorithm. The encryption performed well but the decryption having the error as *`Bad Data`* when perform the readtoend function. The coding is given below: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; … | |
![]() | Hello everyone, I'm making programs from quite a while now, and they don't work on most computers, people keep asking me: What are the system requements for this and that program? My answer is: I don't know ! Basically **I need a program that tells me what .NET Framework version … |
This might be (in fact I can probably say it is) a really dumb question but it's been doing my head in since I've been looking at it. First off, I've been looking at C++ for a short time and it's confusing to me more than what Java ever was. … | |
Hai all , I am trying to make a google+ siginin button for my site. I went through this link https://developers.google.com/+/web/signin/#button_attributes and tried to make it working but now my styling is all messed up. I am not able to mess around with the [class='g-sinin'] in CSS. This is my … ![]() | |
Hello, well this suddenly surprised me .. dunno why ... i was trying to solve the binary-tree implementation ... where i noticed using root.left = new node bla bla My question insert(Node root,int value) root.left = new node(null null value) Etc ... The function doesnt create a copy of the … | |
I need to modify an object in a QVector. I'm the `[]` operator to point to the object, which is overloaded with a constant and a non-constant version. The problem I'm having is that I don't know how to specify the non-const version, so I get compile errors telling me … |
The End.