64,152 Solved Topics
Remove Filter ![]() | |
Hello all I am writing a solicitor allocation application that will be used by multiple users at one time. Because of this, the database needs to be updated with every change. This is my code when a solicitor is chosen for allocation: private void FindSolicitor(int type, bool stype) { table … | |
Hi, I want to store today value in a string in VBA Word, e.g. today is Oct 04 2012, the string will be = "04102012". Any simple code can achieve that? Thanks! | |
Hey i would like to know how i can use a combobox to show alternatives which i will choose from but with more information when i choose like if a combobox has theese options Klas Maria Mat i choose Mat and the selected index is Mat now i want it … | |
hello. how i put a real time clock in my form ? thank you | |
IronPython (Python running on .NET) Jython (Python running on the Java Virtual Machine) PyPy (A fast python implementation with a JIT compiler) Stackless Python (Branch of CPython supporting microthreads) Do we have to write different codes for those different python implementations (aka compilers ,right?) http://python.org/download/ << If I download windows … | |
....is it a windows only command console.write("anything"); | |
Ok so for extra credit in my software/hardware design class I have to locate duplicate entries in a defined string matrix. I am really close but having trouble. Case 3 is where I am trying to acomplish the goal. Any tips? My problem is that while it will print duplicates, … | |
Write a program in C++ to print a student grade based on; 0 to 40 = E 50 to 59 = D 60 to 69 = C 70 to 79 = B 80 to 100 = A | |
Hi all - this is the code: package sodukupackage; import java.util.Scanner; import java.io.File; import java.io.FileNotFoundException; public class ReadSudokuValuesIntoArray { public static void main(String[] args){ int[][] sudoku = new int[9][9]; Scanner sc = null; try{ int i = 0, j = 0, count = 1; sc = new Scanner(new File("validsudoku.txt")); while … | |
Hi, newbie to python here, I just wanted to ask how I can compute the after tax price and displaying only up to 2 decimal places. Like 4.1895030939393 will display only 4.18 without it rounding. Here's what I've done so far Original_Price = float(input('Please input the before-tax price : ')) … | |
Hi!!!! I'm currently doing BCS. I'm in last year... I dont know what to do after my graduation. I have so much interest in programming.. But I want to practice more programs before i go to find a job. I was thinkin of takin a break for a year. Mybe … | |
Problem: Write a program that prompts the user to enter some number of 1, 2, 5, 10, 20, 50 and 100 dollar bills. Query the user separately for the number of each size dollar. I think I've completed the code pretty well but the last part of the question states: … | |
how can i upload an image with the same size of the picturebox? can someone help me ? :) | |
hello guys how are you i wrote this code but i have an proplem i can not verify if there is no file uploaded when anyone hit submit and i can not specific the allowed extinsion for example "jpg" how can i do this in "foreach", i can do this … | |
I have the exact function with image resize on my site, but I would like to add the watermark to the same function, I tried with many options, but nothing worked. Can someone help me to add watermark function please code as follow function do_resize_image($file, $width = 0, $height = … | |
I want to draw a chart similar to area chart in asp.net. possible to use js / jquery. I tried out java script libraries that are available to draw charts, But those has no chart per my requirement. But I couln't find any pure code examples to draw a chart. … | |
<html> <head> <script language="JavaScript"> function validator() { if (text_form.name.value == "") { alert("Please enter your name"); text_form.name.focus(); return false; } return true; } </script> </head> <body> <form name="text_form" method="get" action="success.html" onsubmit="validator()"> <label for="name"> Name </label> <input type="text" name="name"/> <br /> <input type="submit" value="submit" /> <input type="reset" value="reset" /> </form> </body> … | |
As a student of computing you have been talking to the owner of your local corner shop. Having found out you are a student of computing, the owner of the shop has been talking to you about how she manages the stock / inventory control in the shop. She believes … | |
I decided that before I would actually write the code for my planned inventory system in a game I am writing I would test it out in a small project first to make sure I know what needs to be done and if I needed to change anything. So I … | |
Hello, am working with the date function in a php file, however the text "at" is not being rendered properly: Initial code: "Online reservation form submitted on " . date ("d/m/y \at\ H:i") . "\n\n" . Rendered value: Online reservation form submitted on 29/09/12 a30 11:52 Where instead of "at" … | |
I am currently in an introductory c++ class and am working assignment that sorts data. We recently covered structs and I decided to use structs to approach the problem rather than create 3 arrays to hold the information from our data file. The trouble i'm having is when i'm trying … | |
Given 3 arrays,one accepting Strings the rest integers,lets say:A1[ ],A2[ ],A3[ ]. We get the difference of each element of A2[ ] and A3[ ] to a previously define values. take for example this code: //preference.c #include<stdio.h> #include<string.h> typedef char * string; //for STRINGS char name; int test; // number … | |
Hi! Sorry if this is the wrong forum to post this on but... I had a Leopard computer with all developer tools installed. Then I upgraded to Snow Leopard (erase and install), and restored from time machine. I tried the gcc command only to get "gcc: command not found". The … | |
What is the running time for the following recursive function: pubic static int Sum(int [] a, int start, int end) { if ((end – start) = =0) return a[end]; else { int mid = (end + start) / 2; return (Sum(a, start,mid) + Sum(a,mid+1,end)); } } Can someone please explain … | |
I mean,let's say we write a console (windows) application to display a text. it woruld be console.write("whatever"); 1. do we have to use different compilers for both windows and linux?what are the names of them 2.is console.write a windows only code? even if we compiled for Linux, will it run … | |
I am taking an intro level java programming class and i am a little stuck at the moment. I'm trying to use a the replace method. My objecti with this program is to gather a phrase from the user and then have it print the same phrase with some characters … | |
![]() | Hi I'm still having trouble understand arrays since I join Daniweb a few months ago. I thought I got a handle it but it seems I need to practice more and write more arrays correctly. This the issue I'm having I can't `echo` the words <?php $printer_machine = array("Copier", "Inkjet", … ![]() |
Hey guys, I'm working with `strchr` and, for some reason, am getting a segfault. My program takes a string, iterates through the characters of that string, and adds a score to the "game" based on what letter the current character is. That sounds complicated, but my code will explain it: … | |
Hey daniweb, I stumbled upon an issue I can't solve myself. Here is the code : #include <sstream> #include <iostream> template <class T> inline T htot(std::string str) { T x; std::stringstream ss; ss << std::hex << str; ss >> x; return x; } int main() { int x = htot("0x0F"); … | |
I am working in sql2000 database as backend and Vb6 as frontend. Its for bank scenario I am trying to display the balance corresponding to particular account number. Do try to help. Following is my code. ************************************* Private Sub Command1_Click() Dim con1 As New ADODB.Connection Dim cmd1 As New ADODB.Command … | |
Hello! I'm currently working with my monitoring system now, is there a code to append records from table 1 to table 2? Please help me guys! Thanks. | |
Hi so I'm making a site for sneakers. A person can sign up and say they like Nikes, Vans, Reeboks, etc. I then have it where you can make a group for people who like certain sneakers as well. So the group can say they like Nikes, Vans, Reeboks, etc. … | |
I am using wampsever and it allows me to use php function to check if I am logged in but it is ignoring the tags inside of the html which calls a function, here is my code. <?PHP require_once("./include/membersite_config.php"); require_once("./include/fg_membersite.php"); if(!$fgmembersite->CheckLogin()) { $fgmembersite->RedirectToURL("login.php"); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD … ![]() | |
![]() | Hi I recently create a `Simple JQuery` code with captions with some help from other Daniweb members: http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/434987/havent-issue-with-seeing-alt-with-image-in-jquery I got a better understanding how it works. So I decide to add a `image count` with this code. The past few hours I been trying to modify this code, kinda play … ![]() |
Dim bill As integer=textbox14.text Module1.billno = bill Form18.txtbillno = Module1.billno Value of Type 'Integer' cannot be converted to System.Windows.Forms.Textbox | |
I have a html code as below through which I give image file as input <input name="photo_file" type="file" /> then anather php file to insert record into database code is as below <?php define('GW_UPLOADPATH', 'images/'); $picture=$_FILES['photo_file']; $target= GW_UPLOADPATH . $picture ; $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: … | |
i'm using php 5.4.3, I'm wondering if it's possible to use function session_start(). my idea is to have a login page, then use the username in all pages of the site, the problem is that the $username is not visible in the second page... index.php <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta … | |
Hi,i have a program and i created into a jar file,but the problem is when i am going to remove the jar file into the directory where my java classes and pictures resides,when i click the jar file the picture of my buttons are gone.can you help me please how … | |
I'm working with some old code and the users tell me that the original program's output was a single binary file containing multiple stuct data. The output I get is a binary file containing a single structure. The comment also indicates that this what is happening but I need to … | |
The GUIFlowLayout is giving me some trouble, the GUIFrame works fine. I have copied this from the Java programming book which I am using (Introduction to JAVA, eight edition, by Y. Daniel Liang). I get red error lines under 'setLayout', all of the 'add' words, and all the 'setTitle, setSize' … | |
I've a DataGrid Control in my application and a button. When i click a button it should display the contents of the Logins table in the DataGrid. For this I've coded the following, but its giving me an error "Rowset is not bookmarkable.". I've searched a lot, many suggestions include … | |
Hi Guys, I'm quickl writing a little application which sends an email via SMTP and has the option to add a attachment. This is working fine however, When I went to send a email without attaching a file the Error Message I get is the following **"The Parameter 'fileName' cannot … | |
Hi frnds!!! Am new to ubuntu .. Am using netbeans7.1 .. I need to connect my java application with mysql server... I dont know how to configure netbeans for that.. I tried to configure mysql server in netbeans itself through (Right Click Databases-> select Register MYSQL Server-> select Admin Properties) … | |
When I run the application my labels are al spaced out, however in the design they are fine. Do you have any ideas why? Also when I preview the jframe everything looks fine. Thank you | |
I have to write a program that takes a word from the user and replaces it if it is in the text file with another word given by the user. Then takes that input and writes it to a new file. The only problem is, I have to do it … | |
I'm retarded and can't find this on the net. How do I pass data that i've stored in a variable via a textbox into a MessageBox? [CODE] MessageBox.Show("Name:", BName, MessageBoxButtons.OK, MessageBoxIcon.Information) [/CODE] When I run this, BName does not show the name. BName is a name from a textBox BName. | |
dear all, I am working on hashmap and treemap. At the starting of my program i have declared two map,m1 and temp,both are hashmap. At starting point both map contains same kay value pair. At some instance of program, i want to change the value in temp, remove some key … | |
Everybody! First, i have a file iframe_page.php using file_get_contents to display content from another page. <?php $URL = "http://www.funnywow.com/index.php"; $domain = file_get_contents($URL); $domain = preg_replace('/<head>/i', "<head>\n<base href='$URL'>\n", $domain); echo $domain; ?> Next, i have a file index.php containing: <!DOCTYPE html> <html xmlns:fb="http://ogp.me/ns/fb#" lang="en"> <head> <script> function HideDiv() { var x=document.getElementById("myframe"); … | |
I need to write code that looks for files ending in .jpg in an uploads directory, and adds them as images to the page. I'm not too sure how to go about doing this. I've done the form that allows someone to choose a file to upload: <form method="post" action="image.php" … | |
SOLENN AND HER SUITORS Solenn has many suitors. To pick a partner, she has the following criteria: her partner's height and weight must be close to hers. Her suitors also want to know how many suitors ranked ahead of them (maybe they want to "get rid" of the other suitors?). … |
The End.