64,152 Solved Topics
Remove Filter ![]() | |
Hi all, I have a question about moving through the elements in a web browser via C#. I currently am trying to get a checkbox to become unchecked using the HtmlElementsCollection... I have so far been able to implement putting text into a message box that is on a webpage, … | |
I have the name of a php file stored in the database and i need to call that name and display that file on the current page. The code below tries to display a page called "$lay" [code=php] <? $q = "select layout from HomeUser where username = '$username'"; $lay … | |
Hi all, I am very much a beginner and I'm struggling just to pass this class..so go easy on me. I keep getting this 1 error and I cannot figure out why. I'm sure it's something simple but I'm at a dead-end here. This is the error I get, it … | |
Hello everyone, I am having some trouble getting replaceAll(); to work. I am trying to apply it to a String array that has 4 rows and writing the portion of the code as follows [CODE] for(int i = 0; i < 4; i++){ lines[i].replaceAll("this", "that"); } [/CODE] For one reason … | |
Hello people I have a small doubt in operator overloading I am trying to overload the assignment operator. Here is my code for that [CODE] class rational { int x; int y; public: //All the constructos rational operator= (rational num) { // Why do we need to return a reference … | |
I have been working on a number of card games. Important, of course, is shuffling the deck. I have come up with a few different ways to do this. Currently I do not shuffle, but to deal a card, I lay out the deck in order, selecting a random number … | |
Hi Everyone :-) I'm writing a small Python script that invokes the Linux shell and runs some BASH commands in it. My problem is, I can't seem to use the output and store it in a Python variable. Here's what i'm trying: [CODE] import subprocess value = subprocess.call("ls -la", shell=True) … | |
I am totally a newbie.. here is the code i have it working on another site or two but now it won't work here.. what am I doing wrong? <?php //we need to set a var to find what page we are on $pageOn = basename($_SERVER['PHP_SELF']); //this is used for … | |
I have 100 records in My DB. I want to show 10 and then add another field in the record as UPDATE and then show these 10 as printer friendly. ![]() | |
Hi all, How to access the value of WER from the following: [code] valuesfor1 = [('WER', 100)] valuesfor2= [('WER', 700)] [/code] My requirement is I need to compare WER from valuesfor1 with WER from valuesfor2. ie something like [code] if [('WER', 100)] < [('WER', 700)] : print "values for 2 … | |
Hello. I would very much appreciate if someone would aid me with a hint. My problem is as follows : read two arrays of chars and merge them into a third array like so : ARR1 :123abc ARR2: rt678iogl ARR3:1r2t36a7b8ciogl The problem must be solved without pointers and string.h Basically … | |
Everytime btnSendClick is execute, 2 messages will be added to the rich edit. The first needs to be of fixed values (BOLD, size 8 etc) The second needs to be changable by the user using a FontDialog box. This is my below code, but it doesnt quite work, it pretty … | |
Hi I'm just trying to input two string variables into 2 fields of a database that are VarChars. [CODE] $name = "jear"; $pass = "jartt2"; $query = 'INSERT INTO `user` (`id`, `name`, `password`, `char_name`) VALUES (NULL, '$name', '$pass', 'test')'; $result = mysql_query($query); [/CODE] This is the snippet of code that … | |
Hello everyone, I am trying to make a simple web browser for my own benefit (not a school project). I have been looking through multiple videos on how to do so, and could only find 'simple' web browsers on almost every video for visual c++. Anyway, the videos work, but … | |
Hi everyone, Ok, what I want to do is display a url that's stored in my database within an iframe when the specific record is selected. The code I had to display the record correctly is: [code] <?php $conn = mysql_connect(HOST,USER,PASS); $db = mysql_select_db("***") or die( "Unable to select database"); … | |
I keep getting these two errors. Timing.java:45: <identifier> expected Public void double squared(double n) ^ Timing.java:54: <identifier> expected Public void double exponential(double n) I can't for the life of me figure out what I am missing. I've been away from Java for about 2 years and I was never really … | |
Anyone have any good links to tutorials for printing with C#? I need to mimic a form that we have. It's a rather complex form, so if you know of a tutorial that is better than just printing rows and columns of data would be greatly appreciative! | |
This code takes in a scrambled input word and gives out the unscrambled list of words. Eg... Input = time Output = mite, item, emit etc. I had posted an unscrambler in java sometime ago. This one is the improvement over the previous one. In the sense, the java unscrambler … | |
Hi All, First of all Here is the question and what I have done so far. A) The helper method boolean isVowel (char c) should return true if the character it recieves is an uppercase or lowercase English vowel. For Our purposes, Vowels are the letters a, e, i, o, … | |
I have a 2D array whose cells represent each character in a terminal window that can either be ON or OFF (boolean). [CODE] bool grid[24][80];[/CODE] Then, using the ncurses API, I grab a key press: [CODE]key = getch();[/CODE] where key is an int type. The 'q' key is what I … | |
[CODE]$uploaddir = $_SERVER['DOCUMENT_ROOT'].'/bla/bla/uploads/'; $file = $uploaddir . basename($_FILES['uploadfile']['name']); $data = file_get_contents($uploaddir . $_FILES["uploadfile"]["name"]); $data=split("[;\r]",$data); include_once("processes.php"); $ldapconn=connectToDB(); $info["cn"] = $data[$c]; echo "|onoma-->"; echo $info["cn"] ; $c++; $info["sn"] = $data[$c]; echo "|epwnimo-->"; echo $info["sn"] ; $info["objectclass"][0] = "top"; $info["objectclass"][1] = "organizationalPerson"; $r = ldap_add($ldapconn, "cn=".$info['cn'].",cn=............,ou=.......,ou=......,ou=.....,dc=...,dc=gr", $info); [/CODE] so i get the attributes … | |
My program is created to output permutations. Depending on the input that I put in, I sometimes get the correct result, but it is not accurate. However, when I do "abc", I get the correct result. When I input peoples names, I get a random result. After trying to figure … | |
Hi, I have a text file that contains bunch of phone numbers. Some contain invalid characters and some are too long. How do i read this file into a list using regex. I only want valid phone numbers to populate the list, and skip the invalid ones. this is what … | |
hoow to inset into database default image in byte formate when not selecting image from fileupload. protected void subbtn_Click(object sender, EventArgs e) { if (fp.FileContent == null) { Byte[] imgByte = new Byte["image/1.jpg".Length]; } else { FileUpload img = (FileUpload)fp; Byte[] imgByte = null; if (img.HasFile && img.PostedFile != null) … | |
[CODE] here is java script code function ShowMsg() { if(document.getElementById("txtVerifierName").value=="") { alert("PLEASE ENTER VERIFIER NAME.."); return false; } <asp:Button ID="btnAdd" runat="server" Text="ADD" OnClientClick="ShowMsg()" onclick="btnAdd_Click" /> [/CODE] NOW THE PROBLEM IS THAT WHEN I CLICK THE BUTTON, IT SHOWS THE MESSAGE THAT PLEASE ENTER VERIFIER NAME BUT EXECUTION DOESN'T STOP THERE, … | |
Hi there, I was wondering if anyone could help me find a procedure in python that takes in an unsorted list, and returns the difference between the largest and smallest values in the list, without using the built in max/min/sort procedures. Thank you! | |
hi guyz,how will I find an item that's in the combobox that everytime I pressed the keyboard it will be automatically displayed in the combobox?for example I have Items like cats,pigs,dogs in the textbox then when I press d or do the Items dogs will be displayed..please help me here! | |
Warning: array_sum() [function.array-sum]: The argument should be an array in pdf.php on line 112 i am getting this error and i dont see what the problem is. it calls values and adds them [CODE]$result = mysql_query("SELECT * FROM sold_produce WHERE invoice_id='$invoice_id' "); while($myrow = mysql_fetch_assoc($result)) { $total2[] = $myrow['total']; } … ![]() | |
Hi How can i check if some value exists in the data reader How can i do that ? any ideas please . | |
please anyone inform me step by step to build a signed jar form a jar.. ie signing a jar file which contains applet | |
Hey guys, I'm trying to run this code [code=c++] // Copyright (C) 2001-2003 // William E. Kempf // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <boost/thread/thread.hpp> #include <iostream> void helloworld() { std::cout << "Hello World!" << std::endl; } … | |
Please help to come to from this problem: i had written a sample code to display Hello and imported as jar files then created new dynamic web project and using a hello.jsp page i am calling the applet class but its not display the applect please give me the solutions: … | |
I am trying to write an if statement to test whether two conditions are both true. However, my code does not work when I combine the both tests into one if statement like: [CODE] if((last_smallest < samples[i]) && (samples[i] < current_smallest)) current_smallest = samples[i]; [/CODE] I know it is possible … | |
hello need help for this how can i trap if my mch_rs!qtyh is zero example H1010 the quantity on hand is 10 then if i input quantity 10 then click the add button so now my H1010 is zero.then if i input again the H1010 it should prompt that the … | |
I need some help with classes and methods. Here is what i need to do: 1. Create a concrete class, Robin, which inherits from Bird. Robin has a single instance variable, name, of type String with private access. Robin implements the remaining required methods. Here is the code for each … | |
> Specification: Display a menu > Find Errors in this program #include "stdafx.h" #include <iostream> //change io to iostream #include <string> using namespace std; // added I get the `Error 1 error C2065: 'choice' : undeclared identifier line 17 which is 'choice'` What am i missing? int main ()// added … | |
I have a question, well more of a verification. In the program below, I'm packing a character array with some values. The first two are unsigned integers the next is a function pointer and the final is a string of characters...Now my question, is the casting correct for the function … | |
Hi, I would like to know how to free a memory after I am using a imagelist or picturebox/ image file. I have a program who loads picturebox into a imagelist, only 2 pictures at the time. My problem is, after running my program several times (by using "start" command … | |
Can anyone tell me why my recursive find function for a binary search tree isn't working? It keeps returning false when searching for items that are in the tree. Thanks. [CODE=cpp] template<class T> bool BST<T>::find(const T& sitem) const{ //Precondition: // A binary search tree exists // //Postcondition: // If item … | |
I need to iterate through a JSON object in JavaScript or jQuery that is returned from a PHP file with the a json_encode function call: echo json_encode ($varDump); The beginning of the JSON objects looks like the following: ["date","Rescription",{"date":"1715-05-03","description":"Edmund Halley observes total eclipse phenomenon \"Baily's Beads\""},{"date":"1765-05-03","description":"1st US Medical school opened"},{"date":"1797-05-03","description":"Jamaica … | |
im currently trying to create a button widget using Tkiner and would like to know how to get a number from that button when i click on it. I have tried lots of methods and ideas from different people and i still haven't got the right bit of code. any … | |
I need to pass a 2D array of int's into a function, which is normally fine, but the issue is that I don't know the last depth of the array. I know how to do it if I knew the length of the last dimension, but it is user defined. … | |
When making a GUI, does it matter whether you use 'content' or 'this'? For Example: [CODE]content.add(b1);[/CODE] OR [CODE]this.add(b1);[/CODE] | |
I have been working with c# for about a year and with Visual Studio for a couple months. I was debugging a web browser that I made and I found out that when I go to a web site other than google, the url on the search bar remains the … | |
Hey everybody, I was wondering if somebody could help me. I'm having trouble with this assignment, tried to email my teacher a few days ago and he has not returned my email, it's for an online class. The whole chapter is talking about abstract classes and Inheritance and it's very … | |
In my program below, I am having problems running my program. The error I receive is "could not convert `nextPermutation(((char*)(&elements)), n)' to `bool'" I just want to print out the permutation of ABC. Will someone please check my nextPermutation function to see if everything is correct. I know there a … | |
Hey all, I have a problem with this particular piece of coding I have for my payroll system in Visual Basic 6. I am basically trying to calculate the wages of employee's by entering in the number of hours they have worked. The criteria of how much pay they receive … | |
[CODE] /* ** showip.c -- show IP addresses for a host given on the command line */ #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <arpa/inet.h> int main(int argc, char *argv[]) { struct addrinfo hints, *res, *p; int status; char ipstr[INET6_ADDRSTRLEN]; if (argc != 2) { fprintf(stderr,"usage: … | |
Hello Every one ! This program is producing some strange output as it is only generating x = 6 :(,can some through some light that why is it behaving like this ? [code] #include <iostream> #include <stdlib.h> using namespace std ; main () { // Random Number Program int num,x … | |
I have a text I want to search for all it's upper case letters, then present these letters unique and sorted. I welcome any suggestions. |
The End.