199,114 Archived Topics
Remove Filter ![]() | |
Hey guys, I need some help with a combobox. basically I have items in my combobox and when the user types in a letter everything starting with that letter shoudl appear and keep going until the user has typed in the item text and that's the only item remaining. Here's … | |
def main(): print ('Welcome to the mpg calculator program') print() #get the miles driven using the input function miles_driven = input ("Please enter miles driven: ") miles_driven = float (miles_driven) #get the gallons used using the input function gallons_used = input ("Please enter gallons used: ") galons_used = float (gallons_used) … | |
hi, how can i get the system admin password and user id into my asp using vb.net program.i need the code for it... can u give me the idea.... | |
Hi can andbody help me? Below is my code. I get this message: Run-time error '-2147217900(80040e14)': Table 'PreampAutoDetect' already exists. The error points to the line below with the stars around it. stringSQL4 = ... Please help me ... Private Sub Command4_Click() ' Copy Tables from List1 to Database(s) in … | |
Hi... I'm a new user here. I've stumbled across this place on a couple occasions in the past, and it worked out to my advantage when I needed a little help with some coding assignments. i need to include "parenthesis" in the equation in my program but i dont know … | |
develop a program which asks for a name and a password,and prints an acceptance message if the name is "aladdin" and the password is "sesane".the program should print a reject message in all other cases.this should be achived by combining the two tests into one using the "and"key word | |
This error frustrates me when I want to iterate over the elements of a set, for example when trying to convert the set to a list. How do I get around it? | |
Hi guys, I need some help with lists or dicts. I have a list with 2 columns like this "123.04 241.30","232.00" [and so on for about 400 lines] and another list which is more complex: "val1","val2","val3","nnn.nn nnn.nn","232.00" (where "n" is a number) [some thousands lines] Now I want to compare … | |
Hello to all. I have a problem I can not solve. I have a table where there is a date field (datatime) where it goes automatically inserted the date and time of insertion. So 2013-09-02 12:00:00 AM. For me, this field is essential. Now I wanted to make a search … | |
I playing around with this new software Visual Studio Express 2010 using C# and I have the source code files but what I am wanting to do is on this Greeting Card Maker. I would like to have some check boxes so the user can Select a Prefined Message to … | |
since three days I try to insert many record in DB , I m using struts 2 and hibernate 3.I have 3 tables: 1 Evaluationglobale (id_eval ,label) 2 SousEval(id_eval ,SousItem_ID), 3 SousItems(SousItem_ID,label) my issue is how to insert many record in table SousEval when using the last insert id_eval in … | |
Hi, I have been trying to create a little jquery plugin for myself so that I can reuse some helpful multiple button submit code. This plugin will allow me to have a class as a selector for every button I want to use on a webpage, a class for everything … | |
Hello, I am making a wordpress theme by myself. I register the menus in my theme's function.php and show the menu using wp_nav_menu(). But problem is that the registered menu is not showing on wordpress dashboard>appearance>. In appearance tab there are themes and editor tab but no menu tab. **my … | |
I already have a php file that catches data from an uploaded CSV file to MySQL but the problem is, every time I upload the csv file, it duplicates the data into the MySQL What i really want is, if I uploaded the first csv file, and edit some data … | |
Hey guys, I am new here and have found many answers to my problems from this website so I figured it was time to join. Here's the deal: I have just started trying to learn Python through MIT's OpenCourseWare. I am currently on PS1a (Problem set 1a) and am having … | |
I'm getting this -> [Tue Sep 10 10:42:46 2013] [error] [client 127.0.0.1] PHP Warning: SQLite3::exec(): unable to open database file in /var/www/ET/insert.php on line 21, referer: http://localhost/ET/ I changed the owner of the DB file (et.sqlite3) to www-data and now this is what I'm getting. Before I changed the owner … | |
Hi, there. I have a 2D array with 208. I must concatenate the strings by twos up to index 199. So that I have 108 strings. Then I must shuffling these 108 strings. The problem is that it isn't working right. After I concatenate the strings, then shuffle, several strings … | |
I'm trying to write this code and having trouble compiling the code I've tried everthing but doesn't seem to want to work right, can you find any thing wrong in my code? {// Overtime Pay Structures.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> … | |
Can help? My casino code always fail to build. #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { char PlayerName[40]; // Player name int b_amount; // Current balance amount. int amount_BET; // Amount to be betted. int number; // Number bet by a player. int r_number; // … | |
As I've learned more about basic console Python script writing, I've had a look at both Tkinter and GTK+...and, at first glance, I like GTK+ better. Which do you guys prefer, and why? | |
Actually this is a common problem for all who work with php mail function. Before I start this new thread, search for 2 days a proper/correct solution for my probem. But i couldn't find of any. When I send email through my web site, It is sent as spam to … | |
I am trying to refactor some code that selects a category from a database and then displays the listing on a website. Basicly it looks like this: if($_GET['category'] == 'All') { $results = mysql_query("SELECT * FROM members ORDER BY company ASC"); } elseif($_GET['category'] == 'Alterations') { $results = mysql_query('SELECT * … | |
![]() | Hi, I have a quick, and what seems like very stupid question. I have a list of files in a directory with various extensions. I want to open only the ones with the extension '.txt'. I have got as far as finding them (and can print their filenames to a … |
protected Boolean loginMember() { SqlConnection conLogin = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdLogin; conLogin.Open(); cmdLogin = new SqlCommand("SELECT Username, Password FROM Member WHERE (UserName=@ID AND Password=@Pass)", conLogin); cmdLogin.Parameters.AddWithValue("@ID", txtID.Text); cmdLogin.Parameters.AddWithValue("@Pass", txtPassword.Text); SqlDataReader myReader = cmdLogin.ExecuteReader(); if (myReader.Read()) return true; else return false; } When i execute the login button will fire this … | |
hi im trying to create an php email script that will also submit the session data from a multi part form but somehow its not working the session data is not getting submited.take a look at my code hope someone can help out <?php //let's start the session session_start(); //now, … | |
import java.util.Scanner; import java.text.DecimalFormat; public class Main { public static void main(String[] args) { double radius; double circ; double area; radius = getRadius(); circ = calcCirc(); area = calcArea(); DecimalFormat fmt = new DecimalFormat ("0.##"); System.out.println("run \n " + "The circumference of the circle is \n" + circ + "The … | |
Hello everyone, I am trying to retrieve some info from a remote site using PHP DOMDocument and I cannot figure out why the code returns NULL, although the provided ID exists on the page. Please help. $dom = new DOMDocument("1.0", "utf-8"); @$dom->loadHTMLFile('http://sports.yahoo.com/news/messis-tax-hearing-put-back-122033643--sow.html'); $content = $dom->getElementById('yog-content'); var_dump($content); | |
![]() | hi i have problem , i want to modify a file without copy to another file so any one can give how to do it ? I tried following method to modify a given location or pointer in file but did not work . ofstream outfile; outfile.open ("test.txt"); outfile.seekp (3,ios::beg); … |
Basically im practising java and came up on a challenge that i have yet to overcome. I have added an ActionListener but i want each button to have there own Action. Also what i wanted is to hide the contents in the button. Would be much appreciated to see how … | |
PFA...!! **Please look at the table data carefully.** I need to delete the rows. I need urgent help..!! Table: CREATE TABLE IF NOT EXISTS `version` ( `nidt` varchar(11) NOT NULL, `noeud` tinyint(3) NOT NULL, `VERSION` float NOT NULL, `ETAT_FONCT` varchar(20) default NULL, `idnap` varchar(25) NOT NULL, `nidtint` bigint(20) NOT NULL … | |
I want to work with the json below in andoroid, but I am getting an error in my app.I will be working extensively with the yummly api but the data i need resides in the matches array, but I am not sure what is the problem. I have also attahed … | |
I have been playing around with C++ for awhile now and was wondering: what's the differnce between the [instance].[function] and [instance]->[function]? Does the dot notation just run the value and the arrow notation store value inside the instance? | |
Alright ill apreciate some help, so here is the exercise and also what i have done so far. im a little bit lost on how to keep going. Problem Description: 1. Create Minimal Account Class for containment in the Bank container. 2. Define a Bank Class to hold Account Objects … | |
Hello i implemented this FIFO queue: #include <stdio.h> void enqueue(int *, int); int dequeue(int *); int qempty(void); int head = 0; int tail = 0; int qerror(void); #define N 4 int main(void) { int i = 0; int v[N]; while (i < 10) { enqueue(v, i); i++; } while (!qempty()) … | |
Hi friends, i am using older version of hibernate jar files. I have little bit confusion between the older version and new version of jar files can you provide me the list of latest version of hibernate jar files thanks for your time | |
| |
Hi, Any Help, I need guide/way on how to get Image from JLabel and set it to JTextArea in netbeans when a button is clicked. I have 3 Object: (1) Jlabel(with an imported picture in it) (2) JTextArea(to store the picture when Button is clicked) (3)A button I tried using … | |
i have no idea why validate has this error. public bool Validate () { ItemPutUp = 0; List<string> errors = new List<string> (); foreach (ulong id in Trade.OtherOfferedItems) { var item = Trade.OtherInventory.GetItem(id); if (item.Defindex == 647) ItemPutUp += 72; else if (item.Defindex == 347) ItemPutUp += 180; else if … | |
protected void RegistrationMember(object sender, WizardNavigationEventArgs e) { TextBox txtID = (TextBox)cuwRegistration.FindControl("UserName"); TextBox txtPass = (TextBox)cuwRegistration.FindControl("Password"); TextBox txtEmail = (TextBox)cuwRegistration.FindControl("Email"); TextBox txtQuestion = (TextBox)cuwRegistration.FindControl("Question"); TextBox txtAnswer = (TextBox)cuwRegistration.FindControl("Answer"); SqlConnection conRegister = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); SqlCommand cmdRegister; conRegister.Open(); cmdRegister = new SqlCommand("INSERT INTO [Member](UserName, Password, Email, Question, Answer) VALUES (@ID, @Pass, @Email, @Ques, … | |
If I am right, your web browser sends a request to the server, the server in turn loads the page and send it to you. But the server can also request other information of your computer without you knowing it, like the type of browser you are running, your time, … | |
I would like to take an image file on disk and display it to fit the size of a jlabel (preserve aspect ratio) the image can vary in size from 100x100 to 1600x1200 and the size of the jlabel is 256x192 (can change it only slightly if need be.) I … | |
# Server Error in '/' Application. # # The resource cannot be found. # # Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that … | |
protected void SetDestinationURL(object sender, EventArgs e) { if (loginMember()) Response.Redirect("~/Member/Home.aspx"); else if (loginManager()) Response.Redirect("~/Manager/Home.aspx"); else Response.Write("<script language=javascript>alert('Unauthorized User Access')</script>"); } protected Boolean loginMember() { TextBox txtID = lgLogin.FindControl("UserName") as TextBox; TextBox txtPass = lgLogin.FindControl("Password") as TextBox; SqlConnection conLogin = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); SqlCommand cmdLogin; cmdLogin = new SqlCommand("SELECT UserName, Password FROM … | |
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Data.Sql; using Microsoft.Win32; //using Microsoft.SqlServer.Management.Smo; namespace DataSearchinginDB { public partial class frmDataSearching : Form { public frmDataSearching() { InitializeComponent(); } private void frmDataSearching_Load(object sender, EventArgs e) { SqlDataSourceEnumerator instance = SqlDataSourceEnumerator.Instance; … | |
hi guys !!! i want to make an web browser in python , as my college project . what i'm looking for is guidance , on how to make it and which module's shall i use . currently i'm planning to use webkit and gtk+ to obtain my goal. secondly … | |
I have an input file with integers, I am obviously doing something wrong here, When I try to print the elements from the array, the integers are printing as 0's, and not even for the same amount. In the file there are 20 integers. mport java.io.*; import java.util.Scanner; import java.util.Arrays; … | |
Hey guys, I've been working on this program and basically I've debugged everything and it all works fine on my computer BUT! I tried to take it to another computer to run it and it says "Program has stopped working". I don't get it. I've got all the fiels in … | |
I Need some help.i just have some tables in data base, that is school ---Name(primary key),phonenumber,street,town,state,country college---Name(primary key),phonenumber,street,town,state,country Railwaystation---Name(primary key),phonenumber,street,town,state,country Hotel---Name(primary key),phonenumber,street,town,state,country In the front end, i will put two combobox and a submit button. All i need is first combo box will have to select the table.Second combobox shows … | |
Hello everyone. I am trying to work through a programming challenge in my c++ book. I have gotten it to work, but i kind of cheated by looking at the file. I am going to past the entire code so i can be compiled, but the main problem i am … | |
Basically i have the search script working well, but i need to replace the $input with $inputused if word is found. I have tried str_replace() with no luck any ideas? Thank you <html> <body> <form name="form" method="post"> <br><input type="text" id="search" name="search_box" style="background:#000006; color: #FF0000" /> <br><input type="submit" name="submit" value="Search for … |
The End.