199,114 Archived Topics
Remove Filter ![]() | |
Hi all, i am trying some code examples given in a book. I am getting an error while connecting to the database.I have installed sqlexpress edition and trying to connect to system database "master". Below is the error message: "A network-related or instance-specific error occurred while establishing a connection to … | |
Hello.. can someone teach me how to do this program. This is the question. 1. An organization has aprox. $1000 available to be allocated in small amount to approved charities. Write a program that will read several amounts and ((report as soon as over $1000 has been allocated. << NOW … | |
[code] #include <iostream> using namespace std; #include "Interface.h" #include <conio.h> int main() { apple t; bool quit = false; while(! quit) { cout<<"the original value at beginning of clock is\n"<<clock()<<"\n"; t.start(); cout<<"hit enter when you want to stop timer\n"; if(cin.get()=='\n') { t.end(); int time =t.elapsed(); cout<<"the time difference is\n"<<time<<"\n"; cout<<"enter … | |
Is there a function in php to remove the duplicate string variables, for example there is "abcd,ab,cd,abc,abc", how to change it to "abcd,ab,cd,abc"?thanks. | |
Hi everybody I have coded a LINQ SiteMapProvider for my ASP.NET site. The site pages info is stored in a MSSQL database. When I make changes to the SitePAges table, the SiteMap does not reset. Here is my code[CODE]Public Overrides Function BuildSiteMap() As System.Web.SiteMapNode If RootMapNode IsNot Nothing Then Return … | |
I'm a beginner. I'm learning XPath. This is the sample structure: [code] <AAA> <BBB/> <CCC/> <DDD/> <AAA/> <BBB/> </DDD> <div class="some"> <AAA/> <BBB/> <div id="special"> <AAA/> </div> <div style="clear: both;"/> <hr/> <div> text </div> <div> text </div> <div> text </div> <hr/> <div> text </div> <div> text </div> <DDD/> <EEE/> </div> … | |
have been, for the past few weeks trying to figure out how I can compare images. From my experience in what I have been working on, I know it is almost impossible to compare two images and get a 100% match but I am not looking for a 100% match … | |
Hi everyone. Can anyone please guide me on how can I generate a random number from a group of prset numbers. For example:- There is a group of preset numbers:- 1,5,18,100,127,500,626,929. I want to generate a random number from this group....is there anyway in which we could do this? | |
I am writing a portable desktop for my flash drive as an alternative to the portable "menus" that you can download. I need to know how to drag a link from somewhere on the screen (eg desktop, start menu or windows explorer) and drop it in my program. It also … | |
Hi all. I'm trying to make a program where there is an array of 20 elements. Now, numbers from 1 to 20 will be assigned in a random order in the array. This is my code:- [code] #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<time.h> void main() { int i,j,random_integer,count=0,sno[20]; srand((unsigned)time(0)); sno[0]=(rand()%20)+1; for(i=0;i<=19;i++) { … | |
i have created an ol form and all its details are stored in a text file i want to display these records in the form of the table on another webpage any suggestions?? | |
Hi, I have hyperlinked texts and i want to remove the underline and blue color also. I removed underline but not the blue color i want the font to be in black?? Here is the code: [code=html]<html> <body> <A STYLE="text-decoration:none href=http://www.google.com>This is an example for automatic term mapping</A> </body> </html>[/code] … | |
i am building some thing that will grab part numbers and description from a data base works great when you type in part of a word or part of the part number the issue i run into is when i type in the full part number for example A11-123 this … | |
![]() | I downloaded wxGlade 0.6.3 from Source-forge.net. I extracted the .tar.gz file. But, I dont know how to install it... Can anyone please teach me how to install this in Linux Mint ? Thanks ![]() |
Hi, I have fixed some parameters to my constructor but unable to make them work. Here is my sample code:- [CODE] public MyConstructor(String filename, int value1, int value2){ this.filename = filename; this.value1 = value1; this.value2 = value2; File reading code BufferedReader fh = new BufferedReader(new FileReader(filename)); ................ } public static … | |
I want to clear the entire contents so that when a different selection is made on one of the checkboxes, only that data is displayed when the calculate button is depressed. Thanks in advance!! Here's my code: Public Class LoanCalc Private Sub butCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) … | |
Hi. i have taken my database from access and my table look like this. Example. object description words ball round, big, orange, big pencil long, blue, big, long ambulance alert, emergency, high emergency, alert emergency phone incoming message, message alert, high alert, message incoming, emergency, alert i am doing a … | |
I Answered a question and there is no answer to it so i am unsure if what i have done is correct if anyone can confirm my answers or point me in the direction of where I am going wrong I would appreciate it A digital filter has the transfer … | |
Hi, My code below :) - String parserConfigurationClassName = this.cli.getParserConfigImpl();//Gets implementation's name as a string Class parserConfigurationClass; try { parserConfigurationClass = Class.forName(parserConfigurationClassName); } catch (ClassNotFoundException e) { throw new IllegalArgumentException("Failed to load parserConfigImpl [" + parserConfigurationClassName + "]: Class not found"); } So as you can see, I am trying … | |
I need to make a crystal report, using from Date and to date. From Date is taken from the database, while the To date has to be taken as the current date. How to do this? | |
I was wondering if anyone could give me the code for email validation on a textbox named, txtEmail. I would like to inform the user that they have not entered a valid email address via a message box and not allow them to proceed until it is correct.. Regular expression … | |
![]() | Hello, I want to stick one DIV to the bottom! I've managed to do that but when I scroll down the DIV doesn't scroll smoothly! Below is my code:- [CODE] <div id="x"> <center> <div id="footer" style="width: 95%; background-color:#66CCFF; border: 1px normal black; top: 100px; position:absolute; align:center; height: 50px" align="center"><center>A</center></div> </center> … ![]() |
I'm new to c++, but I'm catching on just fine. I have a lot of experience with PHP, databases, and the like. I decided to learn a programming language that allows me to play around with things like sensors, gps devices, microphones, and anything you may plug into usb or … | |
Hello. I have come across a null pointer exception in my code. I understand this is got if there is no class/method/variable being referred to but in my case, I have a method in another class that is supposed to be called. However, the exception is thrown at the where … | |
I create a php form that lot oif image in it and it can display to my computer but when i upload to the apache it cant show the image already why this will happen?? Can anyone tell me why | |
Hi all. Anyone know of a good ajax resource out there. I have been googling all along but I don't seem to be getting the right thing. I'm still new to Ajax. Any help will be highly appreciated. Thanks | |
Hi Friends, I am using Ajax AutoCompleteExtender for my search results(autoSuggest). The Control works fine and I could get the results coming from WebService in Panel with scrollable option. But I need the results shown are formatted as columnwise for ex : Name | Address | Phone# | EmailId with … | |
The environment of my application is as mentioned below : The application is a Router/Accounter library used to identify an appropriate Route (and also the price for that) when a destination for a Mobile number is queried through the API. The Route to be used for sending an SMS message … | |
Hello every body I m new in this site, I m getting some difficulties to solve the following problem please help out me. Problem Statement: You are required to write a small Conversion web application using JSP action elements and JavaBean. This application contains one html file (index.html) one JSP … | |
Hi guys, I need to open a file and extract numbers from it. The numbers in the file are like this 12 34 23 12 00 10 02 12 22 33 10 12 09 03 03 93 etc I am able to extract the numbers in string format and store … | |
Hi there, im using a java program call Blue J and im now learning something new on java, but it quite complicated on my coding and having some problem with it or may be i have screw up with my looping and linking another new java call addIntegers with it, … | |
I have inserted a value in a textbox in the form, which goes to a particular field in a particular table in the database. I want that same value to b displayed in another field in a different table in the same database.How? | |
Hello There, Im trying to create tree control view with check box in the nods. but i dont know how to add the check box to the nods here is the code: [QUOTE] [COLOR=#0000ff]public[/COLOR][COLOR=#000000] Form1()[/COLOR] { InitializeComponent(); TreeNode tn = [COLOR=#0000ff]new[/COLOR] TreeNode("x"); tn.ForeColor = Color.Blue; TreeNode tn1 = [COLOR=#0000ff]new[/COLOR] TreeNode("Y"); … | |
I am trying to query my SQL Server database to populate a dataGridView. The user clicks on an item in a comboBox to select a 'program' to view. The where statement in the quers used the Text property from the comboBox. The code is: SELECT CAMPAIGN_ID, CREDIT_GRADE_PRE, SUB_GRADE, APR, ANNUAL_FEE, … | |
Hello, I have just a regular .html page. I want to take my PHP source code from one of my PHP scripts and display that to the viewer so they can see my code on the HTML page, as if it was just regular content on a page. When I … | |
I'm trying to get a java applet from a website. The HTML page code looks like this: <APPLET CODEBASE="../applets" CODE="fourier.Interference" WIDTH="300" HEIGHT="350"> <PARAM NAME="waves" VALUE="2"> <PARAM NAME="handle" VALUE="fourier/greyball.gif"> </APPLET> Where would the applet code be located so I can download it? | |
I'm a student and wanting to know if the syntax for C++ insert/update/delete statements for adding records to a table is the same or similar to statements in SQL? I've searched and can't really find a difinitive answer for C++. ie. insert into tableName values whatever delete from tableName values … | |
Hi I have a syntax problem which I dont know how to correct. The below line of code is meant to check whether the 1st character of a string is a vowel, if not, then the 1st character is sent to the end of the string & then the program … | |
Hi, everyone, I'm a new member here. Currently, I'm developing a web application and there's a need to make an activation for the product I developed. I want give activation on my product for a time session on local. My question is, is it possible to make that? As we … | |
Hi, I am saving the password in the database using SHA-1 encyption. On forgetting the password i have to email the user his old password. But i am not able to decrypt the password saved in the database. Can anybody help me in creating a decryption code in java for … | |
i want to create an application in friendster.. heres my code: index.php [code] <?php require_once(dirname(__FILE__). '/lib/FriendsterAPI.php'); // TO DO: Enter your secret key below define('T_SECRET', 'f0ce8960ce76e39193ef43bea42f8a97'); define('T_CSS_STYLE', ' style=" height: 120px; background-color: #111111! important; overflow: hidden; margin: 0 auto; "'); // GET parameters from callback URL $user_id = $_REQUEST['user_id']; $api_key … | |
i am making a game and i am getting a strange error heres the relevant code [code=python] items = {'sword':['sword', 3, 15], 'axe':['axe', 5, 25], 'bow and arrow':['bow and arrow', 4, 20]} for item in items: print items[item[0]] print '\tprice:' + items[item[1]] print '\tdamage:' + items[item[2]] [/code] Heres my error: … | |
I am new to Java and really lost. Can someone help me out? I am not sure what is wrong here. import java.io.*; import java.util.Scanner; //For the scanner public class practice { public static void main(String[] args) throws Exception{ } BufferedReader in= new BufferedReader(new InputStreamReader(System.in)); String str; { //Create a … | |
Good day! How to copy a file from one location to another.ex c:\ to c:\copied in silent mode.When i load the form it will copy the file automatically. Ex. name.xls - the name of the file to copy. Pls help. Thank you for giving time! | |
Hi there, I'm new to the site and new to learning C++. The program I am writing is for a C++ college class, and I'm just having a little trouble on if I am formatting the if statements I am using correctly. I'll give a breakdown of the assignment. I … | |
hello, everyone... I got an issue here, my db that bind at my applet doesn't load at the web browser but it run very well at appletviewer. here the error : [code] Java Plug-in 1.6.0_13 Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\Admin … | |
Hey guys, How would I go about sorting an Array of Strings, using either a selection sort or a insertion sort? I have written an insertion sort, but i only works for integers. How can i modify it to work with strings. [CODE]Public Sub InsertionSort(ByVal numitems As Integer) Dim currentitem, … | |
Bellow is the code for a button where i am trying to execute an email valiadator before and email is sent. The if statement works great until i enter the msgmail code in it. then i get an invalid expression error. Can someone please help me with this?? thanks [code] … | |
Hello everyone i have been looking on ebay and i went to mysql home page to trying follow their directions but for some reason I cant create a new user. I do not know how to get started, i choose the mysql file in the temp folder and that opens … | |
Hi to all, Programmers. :icon_smile: [B]i require a general syntax for checking if the [COLOR="Red"]SQL table[/COLOR] is empty or Contains records.[/B] if the table is empty i'm suppose to add initial counter (like 0001) and if table already contain records then i'm suppose to increment the counter by ONE. The … |
The End.