64,152 Solved Topics
Remove Filter ![]() | |
Hi Group! I need to write the data from multiple TextBoxes (which I've moved to individual string names) into one text file (miscflds.txt). These individual strings will need to be written one on top of the other. To be clear, it will need to look like this: Item A Item … | |
why does this gives error `print "module {0}".format(key)` , i hope this is nt the python version problem... | |
Hi everyone, I have created an implementation of the game Tic Tac Toe using a board array that is 3 x 3. It reads in a turn from the user via the keyboard, and then the computer returns a move. I have written the computer AI to basically do the … | |
import java.io.*; import java.util.*; import java.util.Scanner; public class cooperativeCanteen60 { static Scanner console = new Scanner(System.in); static Scanner sc = new Scanner(System.in); public static void main(String[]args) { //throws java.io.IOException { Scanner in = new Scanner (System.in); int type; int discountRange; int discount; int customerType; int number; int rtotal; int vtotal; … | |
I have not found any answer on Daniweb neither on the web. What I need is a winform that send an e-mail using the Exchange Server on the local network are and authenticate with the current domain user without entering credentials. It is possible? I have this code? Can anyone … | |
Hi All, I'm trying to save an incoming email as a .txt document but I'm having some trouble with the VBA. My procedure is as follows: Sub ConvertToPlainAndSaveAs(Mymail As MailItem) Dim strID As String Dim objMail As Outlook.MailItem strID = Mymail.EntryID Set objMail = Application.Session.GetItemFromID(strID) objMail.BodyFormat = olFormatPlain objMail.SaveAs "C:\Users\Me\Documents\path\to\Test.txt", … | |
Hi! I tried creating a log-in screen that is connected to a database from the examples I've seen on the net. The thing is, I wanted to put a function where the user can only log in if the account is not yet expired. for that, I've put a datefield … | |
Hi All, Hopefully a quick one but I don't think it will be :( I have a piece of software which is a data logger and plays sounds when users have been inactive for a period of time etc... The software also plays a type of audio file upon a … | |
Group, The SQL Server (I'm using the edition that comes with Visual Studio 2010 Express) is different in every aspect form the database(s) that existed in the UNIX based program I work with over the last 15 years. There is much to learn and understand. With that said, I've connected … | |
![]() | I am trying to play an mp3 file using the JMF java library and an mp3 codec with the following code but i am getting an error and don know the source package source; import java.io.File; import javax.media.Format; import javax.media.Manager; import javax.media.MediaLocator; import javax.media.Player; import javax.media.PlugInManager; import javax.media.format.AudioFormat; import javax.media.*; … |
Good day, I want to get the latest value of the newly inserted record in my label.. The value that i want to get is not the primary key. Here is my code . //for saving _patientInformation.firstName = txtFname.Text; PatientInformationBL _patientBL = new PatientInformationBL(); if (_patientBL.addPatientInfo(_patientInformation) == true) { lblMsg.Visible … | |
Hello, I have a problem that I'm pretty sure I already got done before but I got lost since I didn't note down my changes with my code. My problem is that I need my displayed calendar to move fluidly showing the next 4 months and the previous 4 months. … ![]() | |
I have a snippet of code and for some odd reason I can not print it. int[] answer = new int[15]; for (int i = 0; i < answer.Length; i++) { answer[i] = Console.ReadLine(answer); } It says that I can not do `Console.ReadLine(answer);`. How would I get this snippet of … | |
This is the output: https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-prn1/541619_462450913826230_932486202_n.jpg This happens when I input "1" in the quantity textfield. (The quantity textfield turns null after inputing a value) But when I put "1" in the quantity textfield and click Oranges, it overwrites the Apples. https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash4/299813_462450910492897_2137805386_n.jpg WHat i wanted to happen is that it'll tally … | |
Hi, I am trying to do a hotel system where i have written up this code, however i was wondering if the there was a way to make the main program simple. So what im trying to do is the code that ‘Views All rooms’ and ‘Adds customer to room’, … | |
Hello all. I wrote a program that gives me 100 random values from the range between -100 to +100. How am I supposed to find the minimum, maximum, and average of the values that will be listed when I run the program? I appreciate the help anyone can give me. … | |
Hi, Using button, How to undo the last click event? | |
how to develop a gannt chart like this , i mean same like this, having time slices in bottom, like in the attached image.  | |
The non-profit that I am volunteering with would like me to write code that interrogates FaceBook and retrieve a list of all the individual who are their friends so they can send them an email of their next meeting. I would like to find out how to get the friend … | |
I would just like to know what is the difference between a CONSOLE APPLICATION and Windows Application in netbeans?? | |
I'm making a calculator that performs operations sequentially (from left to right, not precedence), using ASP.NET/C#, but I'm having trouble trying to get the loops going through the input box string in my code behind. Obviously to me the logic seems to make sense, but for some reason, I get … | |
When I run my makefile I get this error: ** No rule to make target `videofeatures.cpp', needed by `videofeatures.o'. Stop. Here is my makefile CC = gcc CPP = g++ CFLAGS += BIN_DIR = ../bin INC_DIR = ../include LIB_DIR = ../lib INCL = -I$(INC_DIR) `pkg-config --cflags opencv` LIBS = -L$(LIB_DIR) … | |
code for : Percolation using Weighted Quick Union Find Algorithm. this is a homework assignment. iv made the code do what its supposed to do, and it works perfectly. The only problem im facing now is to model the code structure according to the given API. when i try to … | |
If p is a pointer pointing a node to be deleted, then what's wrong in the following code: cout << "Do you want to delete this record? (y/n) "; if (getch() == 'y' || getch() == 'Y'){// Delete record. if (p == *ph){//If first node is to be deleted. *ph … | |
![]() | Hi I am learning **PDO**. I already got my **PDO-DB** ready. The query works because it does fetch data when I echo out the data but I don't know how to echo out the data from the database to the dropdown list. I try to echo out this way (it … ![]() |
I am a beginner in C++ and trying to learn it. I have a problem with this program. #include <iostream> using namespace std; int main () { int FirstNumber = 0 ; int SecondNumber = 0 ; cout << " This program will help you multiply two numbers " << … | |
I'm using this PDO query to fetch all the data I need from Value and dateid: $pdo = new PDO('mysql:host=localhost;dbname=contisec_portal', 'root', ''); $date = date("o-m-d"); $stmt = $pdo->query("SELECT stock_names.Value,stock_names.Fileid,date_header.dateid FROM stock_names,date_header WHERE SEDOL = '$stocksel' AND date_header.fileid = stock_names.FileID"); Does anybody know how I can sort the two columns into … | |
somebody know how to make the text which is in the text field on click to disapear ex: If saying "Search" when ill click on the text field the text to disapear and i can write ... Thanks ! :) | |
hi, I have doubt about virtual function behaviour in below code snippet. As per my understanding class derive2 didn't override the virtual function fun() , so it is obvious that its object can't be assigned to the Base class pointer *p and even individually we can't instanciate the object of … | |
Hi guys, I'm trying to work on a form with jquery. I have a table with 9 cells, 9 inputs and 9 delete links. I want to delete de particular cell on which i've clicked delete, but cannot figure it out how. I am able to delete the first element … | |
Hello guys, I'm working on my code vb.net to save data into access database. I'm kinda lost right now. Couldn't find the solution to the error. it highlight on dbcommand.ExecuteNonQuery() as state as the title problem. Here's my code. Appreaciate the help. ` Imports System.Data.OleDb Imports System.String Imports System.Windows.Forms Imports … | |
I want to delete the contents from cell if the content of that cell are similar to the content of the previous cell of last column. i.e If the 10th cell of column 'A' & 10th cell of column 'B' have the identical content then I need to clear that … | |
I have an xml file that I have to read in, convert all the carriage returns to \x0D and line feeds to \0xA, then call it into a function as a string. So for example my XML file is: <TEST> this is a string </Test> I would want a string … | |
We cannot use constructors if we want that whenever a pointer is declared, it should be NULL. Am I right Sir? if I declare student *head, *tail, where student is a class, can I make my pointers automatically make NULL using default constructor? | |
i need some help how can you save the item in my textbox to the access database? For example i have Firstname.Text Middlename.text Lastname.text if i click the add button it will save it to my access database and also if i want to edit it and update it, how … | |
Ok so am writing a program that simulates a computer system.The cpu and memory will be forked making memory a child process and cpu athe parent and i will be using pipes to let them exchange informatino. I am really lost tough on what to do next, i have loaded … | |
Hello guys, I'm in need of some thinking help. I want to build an auto-complete text input to find cars, but I want it to search for Car Models and Car Manufactor too. In example, if the user type 'For', the suggestions would be 'Ford - Car 1' 'Ford - … | |
I have a minelist[0,15] for a board 4 height and 4 width every elemnt in the board is a zero so it looks like [['0','0','0', '0'],['0','0','0', '0'],['0','0','0', '0'],['0','0','0','0']]now if I mines X in 0,15 it would look like [['x','0','0', '0'],['0','0','0', '0'],['0','0','0', '0'],['0','0','0','x']] now whereever the mines are touching it is … | |
Hello, So I am working on a programming assignment that plays a two player blackjack game. I have pretty much all the functionality of the game worked out. Everything was working correctly when I the cards where drawn by my paintComponent() method. However, as soon as I loaded .jpg card … | |
interviewer ask me a quetion what is peer can any body tell me in terms of php what it means to peer? ![]() | |
I am trying to do a search on a datagridview from a string the operator enters into a textbox. I am searching the datagrid view on a sorted column of last names. I do not want to filter the datagridview. I would like the operator to be able to search … | |
I am writing a program to divide my entire database (which comprises of words(A-Z) and phonemic definitions of the corresponding word on the same line) into small text files that become manageable if they are to be read by an 8-bit microcontrolling unit. The database is sorted. Right now at … | |
Hi, this code is compiling successfully, but giving "segmentation fault" when I am trying to copy data to shared memory. Please tell me where I am wrong. Thanks a lot............ #include<stdio.h> #include<sys/ipc.h> #include<sys/shm.h> #include<sys/types.h> #include<unistd.h> #include<stdlib.h> #include<errno.h> #include<string.h> int main() { int id=-1, status=-1; char *check=NULL; char *p="you"; const size_t … | |
Please can someone help me and send me in the right direction. I am making a program that reads a text file and then out puts the data into a datagrid, the text file looks like this: [HRData] 84 73 0 -124 0 50 84 73 0 -124 0 50 … | |
I am beginner at AJAX. There are two Select Menus: Month & Year. The objective is to display data in the table **AFTER selection of YEAR**. Based upon selected values data should be displayed in the table. Thanks a lot in advanced. <!DOCTYPE html> <?php $year=$_GET["year"]; $month=$_GET["month"]; $year = array( … | |
Hullo, I have been browsing through the internet on how best I can send an email from my website; and it seems like most were directing me to PHPMailer. I added the php mailer folder onto my server, and now am attempting to test whether am email can really be … | |
I've been getting problems with my formula to total the deposit and price. I'm getting and error on this line $total += $total + $deposit['deposit'] * $pamount['price_status']; Here's more but only an error with the total. $prod_refid=$_REQUEST['refid']; $productsql="select * from products where prod_refid='$prod_refid'"; $resquery = @mysql_query($productsql); $resproduct_fetch=mysql_fetch_array($resquery); $image_path="products/"; $thumb_path="products/thumb/"; $product_id=$resproduct_fetch['product_id']; $prod_refid=$resproduct_fetch['prod_refid']; $product_image=$resproduct_fetch['product_image']; $product_name=$resproduct_fetch['product_name']; $prod_country=$resproduct_fetch['prod_country']; $price_range=$resproduct_fetch['price_range']; $pamount … | |
the interviwever ask me one more question about soap in php can any budy tell me what is this i am really don't know about it? | |
How can i add expires header to images? i used the following in css file and php respectively [code] <?php -----------CSS------------------------------------------------------ ob_start ("ob_gzhandler"); header ("content-type: text/css; charset: UTF-8"); header ("cache-control: must-revalidate"); $offset = 48 * 60 * 60; $expire = "expires: " . gmdate ("D, d M Y H:i:s", time() … | |
Hi i wonder how can i delete my data using access as my database? for example i want to delete Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source='" & ConAccessDatabase & "';") Dim cmd As OleDbCommand cmd = New OleDb.OleDbCommand("delete * from [" & EBU2DB_LOB & "] where Brand ='" & … |
The End.