64,152 Solved Topics
Remove Filter ![]() | |
I have windows xp operating system at my home with python 2.5 and same operating system with python 2.4 at my computer lab. While working in python IDLE suddenly this error message --socket error:connection refused-- pops up and then python IDLE does not work at all.To make it work again … | |
So it's this program which isn't behaving as it should. these are the classes I'm haing problems with: [code]#ifndef _CMENU_H_ #define _CMENU_H_ #include "Vec2.h" #include "Background.h" #include "Sprite.h" #include "BackBuffer.h" class Button { public: enum ButtonState { NORMAL, //when cursor is not near the button ANIMATED //mouseover event }; Button(const … | |
Hello. I need to reproduce this pattern using one main for loop and one nested for loop. I cannot seem to figure out the right way to do this. I came close, but not close enough. 0 10 210 3210 43210 543210 6543210 76543210 876543210 9876543210 [code]for (int x = … | |
Hey guys, I want my form to hide instead to close by clicking on the red X button. Because when it's closed the form is deleted. I searched a lot to find a good solution, but nothing works. Many people wrote that following code: [CODE]private void Form1_OnClosing(object sender, FormClosingEventArgs e) … | |
Hi friends, I have a map containing an int as key and a struct as second value, read from file. I need to update the second column with value obtained by the last value (bigger one) + 1. A kind of sequential code ... I tried to use the max_element … | |
In my project, I have a page which having, Ajax PopupExtender,UpdatePanel,<AJX:TabContainer> . When I set control values(textboxes,labels) on that page, I am not able to refresh the page even through web browser(retype url). All values persist on the controls. Anybody can talk about problem and solution? Thanks in advance. | |
Hi! im getting this error. I dont know why. PLZ can anyone help me. this is my code [CODE] public void getLastMemID() { String concString = "Data Source=BJ-PC\\SQLEXPRESS;Initial Catalog=new;Integrated Security=SSPI"; // int ID=0; try { CN = new SqlConnection(concString); CN.Open(); SqlCommand com = new SqlCommand("SELECT MAX(ImageId) FROM ImagesStore", CN); SqlDataReader … | |
Hi I have this code of zebra stripes. [CODE] <style type="text/css"> <!-- .paint {background: #caf2fe;} --> </style> <script type="text/javascript"> $(document).ready(function(){ $("tr:odd").addClass("paint"); }); </script> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td>Text1</td> </tr> <tr> <td>Text1 details</td> </tr> <tr> <td>Text2</td> </tr> <tr> <td>Text2 details</td> </tr> <tr> <td>Text3</td> </tr> <tr> <td>Text3 details</td> </tr> </table> [/CODE] … | |
hi all) Does anybody know a good example to add a smart tag to custom component? | |
hi, i have a xml file and i would like to read and write data in XML file. thanks regards umesh chand daiya | |
Hello I'm trying to sort my gridview by a particular colum. My gridview has a column which is 'Sort Order' and they are numbered 1,2,3 etc. Now I want to be able to default sort that column in ascending order. Would anyone possibly be able to help? Here is my … | |
Hello, Could someone help me with this question that I need to complete within 4 days? I have a problem with the insert statment on the code below. This code is working fine by inserting the ststement, but the problem is that the DATE is not being inserted into the … | |
I am currently going through a c++ book trying to do the problems at the end of the chapters. They dont provide solutions so im kind of stuck. My problem is: Write a program that uses a loop to display the characters for each ASCII code 32 through 127. Display … | |
Hi is it possible to use static variables with servlet. I want to access static variable from servlet but it gives null value. Why?? | |
Getting errors stating that 'Assignment3.Converter' does not contain a definition for 'breakdown'...cannot get this to work...I know there is a problem with the breakdown and dollarAmount, but I can't seem to figure out the solution. [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Assignment3 { class Converter { … | |
Hi Can someone please direct me to a tutorial relating to downloading files from an aspx Page. Thanks ViRiPuFF | |
I'm creating a game with XNA, and having issues with Vector2 arrays. The code below will loop through each square on the grid for the game 40x40pixels. The first for loop getting the X coordinate and the second getting the Y coordinate. I'm getting the proper width and height (if … | |
Hi guys, I've recently developed a gridview with edit,delete and update panel..... All is working fine except the Update button.....the error shown is...... [CODE] [B]Object reference not set to an instance of an object.[/B] Source Error: Line 48: GridView1.EditIndex = -1; Line 49: conn.Open(); Line 50: SqlCommand cmd = new … | |
Hi everyone, I have a std::map of structures . I'm reading the data from a file named "auxIdSorted.txt" and I need to do a while() using the variable auxID. The idea is read the map many times until all values of auxID become different of zero (while(auxID == 0). I … | |
I want combo box in jtable visible from start not when i click the cell... any idea? | |
Hello everyone! Am trying to retrieve data from sql server based on two columns. Its a web application being developed using VS2010 (vb.net) but i keep getting the error: incorrect syntax near '=' Here's my code below: [CODE]Sub GetBasicMidwives() ' Set the SelectCommand properties... With objDataAdapter .SelectCommand = New SqlCommand() … | |
Hi! Can somebody help me? I want to add text, but I can't. I saw some examples, but when I wrote them in my code, it returns error. Here's the code (Win32, directX, c++): [CODE] #include <Windows.h> #include <WindowsX.h> #include <d3d9.h> #include "D:\\Program Files\\Microsoft DirectX SDK (June 2010)\\Include\\d3dx9.h" //I don't … | |
Hello, I'm attempting to write a function that accepts a vector "list" and it's "size" as arguments and using an iterator, step through the list to find the one with the highest value. For instance, here is the non-iterator function: [code] int winnerIndex(vector<int> list, int size) { int votes = … | |
Hi there, I am very, very new to programming and need to work out how to determine if a number entered by a user is a prime number. I have coded this but it does not work. :'( Any assistance would be greatly appreciated! I also get the following error … | |
Hi, I assigned the name of the file to string vector. I mean when I print the vector, it seems like cout<< files[0]; It prints file.txt and I want to open the file by using vector. I tried ifstream file ("files[0]"); and ifstream file (files[0]); but they did not work. … | |
Hello guys! How to load content into the ckeditor? Pls look [url]http://ckeditor.com/demo[/url] for example. My code is below: [CODE] <textarea class="ckeditor" name="pagecontent" cols="100" rows="20" id="pagecontent"></textarea> <?php include_once "../Misc/ckeditor/ckeditor.php"; $CKEditor = new CKEditor(); $CKEditor->basePath = '../Misc/ckeditor/'; $CKEditor->replace("pagecontent"); ?> [/CODE] I want the content automatically loaded from MySQL database to the CKEditor … | |
Hi, How would i make something like on google maps where you type in an address/location and it will show you how to get there, and give you directions. I dont need a full code butwould like to knw what something like that is call/how to start off with it. … | |
[CODE] sqlCmd = new SqlCommand(); sqlCmd.Connection = sqlCon; sqlCmd.CommandText = "update trainn set Adultno=Adultno-1 where ID=@pram1 and adult=@pram2 and Adultno>0"; sqlCmd.Parameters.AddWithValue("@pram1", textBox3.Text); sqlCmd.ExecuteNonQuery(); sqlCon.Close();[/CODE] The code is working properly when there is an update,but when it comes to more than one I don't know what to do? The following code … | |
Im reading Core Java (Cay Horstmann) V I And I came across this program......... [CODE]import javax.swing.*; import java.awt.event.*; import java.awt.*; class MyFrame extends JFrame { private ButtonPanel buttonPanel; public MyFrame() { setSize(300,200); setLocation(570,350); setTitle("Button Test"); buttonPanel=new ButtonPanel(); add(buttonPanel); } private class ButtonPanel extends JPanel { public void paintComponent(Graphics g) { … | |
So I've developed some code to pull the latest 8 images from my flickr feed; however, I'm having trouble with figuring out how to do what I'm trying to do. Essentially, I need each 4th image to have a different <div> class (this helps with margins and what not). Any … | |
I created a test.php file in the required /var/www folder but how do I edit the file ?It says it's only a read only file.Using chmod +rwx <filename> says 'no such file'...Please help . | |
[CODE] <html> <head> <style type="text/css"> .all_display { border-left:8px solid lightgray; border-top:8px solid darkgray; border-right:8px solid #505050; border-bottom:8px solid #505050; background-color:white; width:60%; margin-left:20%; } .inner_tablecell { font-size: 14px; font-weight: bold; text-align: center; width: 12px; } .fake_link { color: blue; font-weight: bold; text-decoration: underline; cursor: hand; cursor: pointer; } .img1 { background-image: … | |
[CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> [/CODE] [CODE] <html xmlns="http://www.w3.org/1999/xhtml" > [/CODE] What is the meaning of the above code snippets ?? Why are there web urls in them ?? What is the use ? Please help !!! | |
How to get the difference of the month from the date specified. Example: [code=vb] date1.value="5/1/2010" date2.vale ="5/31/2011" [/code] it should give a result of 12. thank you for helping.! | |
So I have a table containing various software and a table containing various features. Each software entry need to have a list of features. Here's where it gets tricky: In my application, I need to be able to select a software entry if it has all the features in a … | |
I have 4 checkbox. 1)name 2)phone 3)address 4)dob 5)all What i am trying to do suppose name,address,& dob is checked by user,then query is: Select name,address,dob from table; Similarly if phone,address select phone,address from table; & for all Select * from table; I am getting value of checkboxes. Need suggestions | |
Hi everybody, i am a new to C# and,it's a school application to develop a Rent a Car project, and from you guys need to give me one idea how to start, hope somebody of you dealed with such a project, just need idea please.... | |
Hi all, I am working on an application in which a call is made to a DLL. From that dll a dialog has to be displayed. While doing so I was not able to see the dialog. Dialog is not getting displayed. When i checked the code in debug that … | |
i want to show friend request without pressing submit query button. please anyone help me .change the code without form Table structure for table `friend_requests`-- CREATE TABLE IF NOT EXISTS `friend_requests` ( `id` int(11) NOT NULL auto_increment, `sender` int(11) NOT NULL, `recipient` int(11) NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT … | |
Hi, I am a new in stored procedure and I now do the following function: [CODE] ALTER PROCEDURE dbo.ViewFaultyTbl @id int AS SET NOCOUNT ON; DECLARE @indicator int SELECT @indicator=Indicator FROM FautyScanTbl if @indicator=0 BEGIN SELECT * FROM FautyScanTbl WHERE ID=@id END ELSE BEGIN END [/CODE] Indicator is a column … | |
The Program has been started but I am having issues finishing the public class in the header and finishing the functions inside the main file. [B]Header File:[/B] [CODE]#ifndef POLYNOMIAL_H #define POLYNOMIAL_H #include <iostream> /** This class implements a polynomial of the form c0 + c1 x + c2 x^2 + … | |
Hi everyone I have a question about vb.net I have a textbox textbox: 145|145 145|859 146|745 and so on .... I want to make my program do this: if I execute the button it must do this: it must take each line of the textbox apart. then split that line … | |
Hello again, So, I'm trying to work out a problem where there are 6 symbols in a string (A, B, 0, 1, [, ]). The brackets always have to face each other in the string but they can be nested. There are some rules, most of which I have down, … | |
I was reading some code that encouraged the use of vectors but my IDE is saying that it is an obsolete Collection. I need to use Vector because it can does not need to be a set size. and I would like to have a Vector of Vectors. Is there … | |
The web site is on online library where the user finds a book and sends an email to the owner of the book. My PHP creates a table of results based upon a query. One of the cells in the table includes an email link to the owner of the … ![]() | |
ok, I'm sure the answer to this is very simple.. there may even be some component in the os package to do this... I want to do what the code underneath seems like it would do.. I understand it does not, and when I try to run the code, I … | |
i got the problem of accessing variable outside iframe. [CODE] //a.php <?php $a="text"; ?> <iframe src="b.php"></iframe> //b.php <input type="text" value="<?php //i want $a to be put here ?>" /> [/CODE] Is it possible to access $a from b.php? | |
well this one is the my first post in the daniweb , and i belive that i will get solved my problem . well i trying to create a MLM project in which i m trying to creating binary tree by using this code which i have attached in this … | |
[CODE] <html> <HEAD> <style type="text/css"> body { background-color: black; color: black } a { font-weight: bold } a:link { background-color: black; color: blue } a:visited { background-color: black; color: blue } a:active { background-color: black; color: blue } a:hover { background-color: white; color: maroon} input { font-family: monospace; font-size: 24px; … | |
[CODE] <HTML> <HEAD> <TITLE>Number Blocks</TITLE> <!-------------------- Design --------------------> <STYLE> .bigcell { BORDER-RIGHT: #6699ff 5px solid; BORDER-TOP: #6699ff 5px solid; BORDER-LEFT: #6699ff 5px solid; BORDER-BOTTOM: #6699ff 5px solid; BACKGROUND-COLOR: #6699ff; TEXT-ALIGN: center } .cell { BORDER-RIGHT: #6699ff 2px solid; BORDER-TOP: #6699ff 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10pt; BORDER-LEFT: #6699ff 2px solid; … |
The End.