199,114 Archived Topics
Remove Filter ![]() | |
Hi.. do you think you can make an shortcut of this? I have combobox like 40 combobox i have to put it like combobox1.additem("sample") combobox1.additem("sample2") combobox1.additem("sample3") combobox1.additem("sample4") combobox2.additem("sample") combobox2.additem("sample2") combobox2.additem("sample3") combobox2.additem("sample4") combobox3.additem("sample") combobox3.additem("sample2") combobox3.additem("sample3") combobox3.additem("sample4") until combobox40 i put it like that is there a way to make it easier? | |
Hi all, I am reading about non-copyable objects from this source: [Link](http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Non-copyable_Mixin) I am not able to understand how making the "=" operator for the base class as private is preventing the derived class to make copies. We could just have a public "operator =" in the derived class that … | |
I need help figuring out how to fix my code. Every time I run the code its traceback is to this part of it. My code is Unbound Local Error for 'result'. Please see code below: def Level1(self): sql = "SELECT easyhint, gps, qrcode FROM gamedb WHERE quad = 1 … | |
Hello, I am just playing around with PHP and I have a silly little little login page, with the username and password hard coded in (not secure, I know). They are: username and password, respectively. Once logged in, there is a message saying I am logged in and a form … | |
Hi there I have the following code. <script language="text/javascript"> banner1 = new Banner('banner1'); <?php $con = mysql_connect("localhost:3306","User","Pass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("barndata", $con); $today = date("Y-m-d"); $result = mysql_query("SELECT * FROM event where Date >= '$today' ORDER BY Date ASC LIMIT 0, 7") ; … | |
This is a sample code i have <script type="text/javascript"><!-- google_ad_client = "ca-pub-1234567778889"; /* Firest add */ google_ad_slot = "4634587934"; google_ad_width = 574; google_ad_height = 50; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> When I paste this code in ad section it is being changed as given below <!-- google_ad_client = "ca-pub-1234567778889"; … | |
Hi, I am having trouble getting a video player to work using Javascript. I copied this from a page a developer at my company did, but he is away right now so I can't ask him for help. Here is the HTML: <div class="feature" style="width:485px; height:273px"> <div class="video-placeholder"> <img src="../../assets/images/figures/tro-video-placeholder.jpg" … | |
Pls help me with this code.. <?php include "dbConfig.php"; if ($_GET["op"]=="login") { if (!$_POST["FullName"] || !$_POST["StudentID"]) { die("You need to provide a username and password."); } $q = "SELECT * FROM `register` WHERE `FullName`='".$_POST["FullName"]."' AND `StudentID`='".$_POST["StudentID"]."' LIMIT 1"; $r = mysql_query($q); if ($obj = @mysql_fetch_object($r)) { $_SESSION["FullName"] = $_POST["FullName"]; $_SESSION["StudentID"] … ![]() | |
[import java.util.Scanner; import java.util.Random; public class HangmanMy { public static void main (String[] args){ System.out.println("Welcome to the game Hangman :)/>"); Scanner input = new Scanner(System.in); boolean done = false; String guess; String guesses = ""; char letter; int wrongGuess = 0; StringBuffer dashes; System.out.println("Choose a category -> places / games … | |
![]() | Hi I want to create a simple calendar on Smarty. I attached an image on how it looks so far. Here is my code **calendar.php** file: <?php require("libs/Smarty.class.php"); $smarty = new Smarty(); $date = "1/01/2013"; //January 01, 2013 $week_days = array("Sun"=>1, "Mon"=>2, "Tue"=>3, "Wed"=>4, "Thu"=>5, "Fri"=>6, "Sat"=>7); $total_day_of_month = get_total_day($date); … ![]() |
Traceback (most recent call last): File "C:/python files/USACO/crazy/crazy.py", line 87, in <module> grid.plot(x,y,"F") File "C:/python files/USACO/crazy\grid.py", line 63, in plot self.g[(x,y)] = replace TypeError: unhashable type: 'list' You see, I'm hashing a string with the key bing a tuple. This is using my own 2d grid data structure. | |
Hello, I have been working on a code to simulate wind turbines. However, I can't seem to rotate the wind turbine. Here is the code. import pygame ############################################# # Written by P****** ******* and V***** *** # # Copyright 2012 # ############################################# pygame.init() # Gets Information humidity = float(raw_input("Enter Humidity … | |
I have 2 datagridview (dgvFrom and dgvTo) and 2 buttons with right and left arrows. dgvfrom is populated from dataset. Now when I select rows in dgvFrom and click right arrow button, selected rows should move to dgvTo grid and those selected rows should get deleted from dgvFrom grid.and vice … | |
Hi! I am learning C, and am at very introductory level, using this book called C Programming: A Modern Approach. I have just studied about arrays, and while tackling the programming exercises,i got stuck in Que 9 in Chapter 8. This is what the question says [INDENT]Write a program that … | |
Perhaps this question has been asked or even has a thread written about it so I apologize if it's been asked before however I can't seem to find a solid answer online. I read the article: [Written by Narue](http://www.daniweb.com/software-development/cpp/threads/90228/flushing-the-input-stream) about using getline instead of cin when obtaining input from the … | |
I would like to validate columns in an asp:Gridview but am unsure how to do so as all the tutorials I have found show a previous version on Microsoft Visual Studio (I am using 2010). How do I validate each column of the Gridview? Thanks This is the code of … | |
Any one can help me out i want to display a spiral of n*n size with out using arrays? out put when n=2 should be 3 2 0 1 when n=3 should be 8 7 6 1 0 5 2 3 4 when n=4 should be 15 14 13 12 … | |
Do you have a sample code suggestion to predict illness to a blood type? Blood type is an input from the user and when the user inputs the blood type it would give you all possible illness for that blood type. Is that possible? Am using netbeans and not sure … | |
Hello, How can I go about hiding a form from another thread. I have two forms and a module, from the module I have started a new thread and at some point during this thread I want to hide the second form. How would I go about this as everything … | |
I am getting this error while installing ADT plugin in eclipse: Cannot complete the install because of a conflicting dependency. Software being installed: Android DDMS 21.0.0.v201210310015-519525 (com.android.ide.eclipse.ddms.feature.group 21.0.0.v201210310015-519525) Software currently installed: Eclipse IDE for Java EE Developers 1.3.0.20100617-0521 (epp.package.jee 1.3.0.20100617-0521) Only one of the following can be installed at once: … | |
Hi everyone I wish a happy new year for all. This is the code that i wrote so far. TITLE MASM Template (main.asm) ; Description: ; ; Revision date: INCLUDE Irvine32.inc INCLUDE macros.inc Employee STRUCT idnum BYTE "0000",0 lastname BYTE 30 DUP(0) years WORD 0 Employee ENDS .data workers Employee … | |
Hi, I'm trying to get the printer name selected by the user with the PrintDlg() dialog. I made a sample Win32 project with VS 2008, (with "Use Multi-Byte Character Set") and inserted the following code in the "About" callback part: PRINTDLG pd; BOOL rc; DEVMODE *dev; DEVNAMES *dvn; char *name; … | |
Inside General.h #ifndef GENERAL #define GENERAL namespace counternamespace{ int upperbound; int lowerbound; } #endif Inside Analyzer.h #ifndef ANALYZER #define ANALYZER #include"General.h" class Analyzer { public : int var ; int func(); }; #endif Inside Test.h #ifndef TEST #define TEST #include"Analyzer.h" //Error class Test2 { public: Test2(void); public: ~Test2(void); }; #endif … | |
Hey guys, I've managed to successfully create a little basic installer for installing all of the files. HOWEVER. I have multiple Access database files which cant also be installed to the Program Files directory because then they become read-only. So, I was going to install them to the Application Data … | |
Wow.. I guess I must have been living with my head in the sand for a few years. I write everything using PHP/MySql, and now it seems that eveything I am reading is referencing MySqli... So I started researching that and found that it has been around for years and … | |
Hi I have started learning C and my first problem is very simple. I can't get output from a program! What am i doing wrong? #include <stdio.h> #include <stdlib.h> int main() { int a; int c; c = 0; int i; a = 0; for (i = 0;c = 0;i++) … | |
How to add vlc media player in vb.net.i am adding vlc player but it not work pls give suggestion how to play vlc player in dot net windows application. | |
Hello friends, I am evaluating Database connectivity from C++. I have found OTL(Oracle, Odbc and DB2-CLI Template Library ) from googling, which seems good for that purpose. Can you please provide me some inputs / feedback about OTL (or other suitable DB handling libraries). Also please inform, from where I … | |
Hello, I'm Mirza and I'm in the first semester of an IT university. I like to experiment with Java, and occasionally I run into problems. Now, I've been visiting daniweb for quite a while now, and I've always found solutions to my problem, but this particular problem I just can't … | |
Hello masters It is possible to connect two different database system like(sql server and mysql) at the same time in the same script? If yes can you give me some tips of what procedure I'm going to use. If no then thanks for reading my threads. ///////////////////////////////////////////////////////////////////////////////////// Because i have … ![]() | |
#include<iostream> #include<algorithm> using namespace std; #define MAX 10000000 #include<stdlib.h> #include<string.h> char s[MAX]; int p[MAX]; int bucket[MAX],nbucket[MAX]; struct suffix { int idx; }pos[MAX]; int H=0; bool cmp(struct suffix i,struct suffix j) { if(H==0) { return s[i.idx]<s[j.idx]; } else { if(bucket[i.idx]==bucket[j.idx]) { return bucket[i.idx+H]<bucket[j.idx+H]; } else { return bucket[i.idx]<bucket[j.idx]; } } } … | |
I have my `$arr` of key value pairs like this: array(7) { ["No"]=> string(6) "101" ["Paper_id"]=> string(6) "WE3P-1" ["Title"]=> string(80) ""An Electrically-Small, 3-D Cube Antenna Fabricated with Additive Manufacturing"" ["Author"]=> string(13) "NassarIbrahim" ["Auth_order"]=> string(9) "WE3P-1-01" ["Aff_list"]=> string(51) ""University of South Florida, Tampa, United States"" ["Abstracts"]=> string(723) ""This paper presents the … ![]() | |
Hello, I'm new to C# development. I've been working on a C# project (management system). Depending on the requirements i may have to build further versions of software. I want to know how to build the database such that even when i install next version of software, it would load … | |
Hey all, I am having trouble with a query and nonquery in C# while accessing an Access database. The query I am having problems with is using the LIKE statement in the query. sqlString = "SELECT * " + "FROM Convocations " + "WHERE Name LIKE \"*" + txtFilterParameter.Text + … | |
I have a small file that compares the time and runs a routine based on the result. DateTime now = DateTime.Now; //get the current time //The DateTime constructor goes (YYYY, MM, DD, HH, MM, SS) DateTime start = new DateTime(now.Year, now.Month, now.Day, 00, 00, 00); DateTime end = new DateTime(now.Year, … | |
I am learning re module for practice I have taken an export of my phone addressbook which is a comma seperated text file, containing "First Name","Mobile Phone","Home Phone","Company","E-mail Address","Company Main Phone","Business Fax","Birthday" as of now I am more interested in First name , mobile phone number and email address. in … | |
build link error 1>------ Build started: Project: Circular_Link_List, Configuration: Debug x64 ------ 1>Build started 12/30/2012 11:36:28 AM. 1>PrepareForBuild: 1> Creating directory "C:\Users\RIJIN\documents\visual studio 2010\Projects\Circular_Link_List\x64\Debug\". 1>InitializeBuildStatus: 1> Creating "x64\Debug\Circular_Link_List.unsuccessfulbuild" because "AlwaysCreate" was specified. 1>ClCompile: 1> main.cpp 1> ListNode.cpp 1> Circular_Linklist.cpp 1> Generating Code... 1>main.obj : error LNK2019: unresolved external symbol "public: … | |
i wanna add date in my form.. so i do with my code like this $sql_updTenant = "UPDATE md_tenant SET modifieddt = '".date('Y-m-d H:i:s')."'"; and in my php.ini, i already change this: ; Defines the default timezone used by the date functions ;date.timezone = to this: ; Defines the default … | |
Hi everyone,plz i need help from anyone to check if this program is writthen correctly { A program to read two values A and B and print the highets value } Val A : integer ; Val B:integer ; Begin A : =10 ; B:=12 ; if A > B … | |
I am using LIstView control in virtual mode with the property listView.VirtualMode=True and I have subscribed the event listView1_RetrieveVirtualItem(). But this event is being called many times for each item. What is the reason or How can I prevent RetrieveVirtualItem() from executing many times? Please check the below code. public … | |
Develop a solution to validate the given username and the password in Csharp program | |
Hey everyone, I was randomly trying to develop a web browser that works in php. I know this is a really small program if you look into it but I dont seem to get it to work. though I have worked it out, but I cant get it to display … | |
Hi guys, I need some help with a particular part of a C++ DirectX game. My course has tasked me with creating a game similar in look and function to the old missile command arcade game (something like [this](http://www.youtube.com/watch?v=t-cD0XdyQ7s)), however I have hit a bit of a wall in terms … | |
Dear All, I have one php based application now i want to make interactive application of the same . i started work on flex for php . but now the problem is menu . in current application i have javascript file for menu with few php code i want add … | |
link to old post shows code: http://www.daniweb.com/software-development/java/threads/440001/output-incomplete-text-file program to: A. Develop an application that reads your listings.txt file, analyzes the property listed per agent, and outputs a report to an agentreport.txt file. Your application should do the following: 1. Prompt the user for the name of the input file (listings.txt). … | |
I am finding it difficult to update the `JTable` when I enter a person's name in search button. The program compiles correctly without any errors, but in `SearchActionPerformed` event when the search button is pressed an empty table comes up. Where without search, the table is full of values from … | |
<?PHP $time = $_POST['Time'];//The things in the [] can be anything you want, but remember these for later $xp = $_POST['X']; if($time <= 0) $time = 0; if($xp <= 0) $xp = 0; $db_handle = mysql_connect($server, $user_name, $pass_word); $db_found = mysql_select_db($database, $db_handle); if ($db_found) { $SQL = "SELECT * FROM … | |
I've got this exception after running my project Really don't know what to do! SQLException: No suitable driver found for jdbc:derby://localhost:1527 I've add derbyclient.jar to Library.but I didn't get any different result.I also don't want to create a new database. I wasn't able to attach it here but here are … | |
Hi, I have an API script provided to people fetching data from my website. Other than stats information, how can I get to know that which websites are connecting my website's API? Any php function that I can include in my API script to get their domain names then insert … | |
Hi, I have a listbox on my form that is bound to my SQL table. I have various functions to that table from my from (add rows, delete rows, edit rows). However, after I do one of these functions, the data in the SQL table updates correctly, but the listbox … |
The End.