64,152 Solved Topics
Remove Filter ![]() | |
Hello! I have designed a dialog with a grid widget. I would like to populate it with data from a MySQL table which has 10396 rows and 5 columns, as the grid widget. How can I do it? Then, how can I select a row from the grid widget and … | |
I am absolutely newbie to Ajax and I need to have this fixed by tomorrow as I have a project to complete so anyone who could help me, I would be really greatful! This is what I have cooked up so far index.php [code=php]<html> <body> <script language="javascript" type="text/javascript"> <!-- //Browser … | |
Can anyone explain why this would fail: [code] assert(cap >= 0); [/code] But this passes? [code] if(cap < 0) { exit(-1); } [/code] That is, the assert is triggered, but if I replace it with conditional, the exit() function is never called. Thoughts? Thanks, David | |
hello guys, i am very new here. [CODE]public class quiz{ public static void main (String args[]){ for (byte i = 1; i <= 5; i++){ for (byte j = 1; j <= i; j++){ System.out.println(i); } System.out.println(); } } }[/CODE] I can't simply explain that code. and it gives me … | |
Hi all..i need some help please..i'm doing a validation using a validation expression..this is use to make a user just input the digit in 5 digit.. i'm using this now but not function [CODE]<tr> <td class="style1">Zip Code </td> <td>:</td> <td> <asp:TextBox ID="txtCmpZip" runat="server" BorderStyle="Groove" MaxLength="5"></asp:TextBox><asp:RequiredFieldValidator ID="CmpZip" runat="server" ErrorMessage="*" ControlToValidate="txtCmpZip"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator … | |
so i stumbled upon a few 'challenge questions' and decided to have a go. it should be my level. so anyways the question asked me to produce a code that makes me- input 2 numbers. the numbers get added ASWELL as the un numbers inbetween BUT excluding the numbers u … | |
im writing a Coin program that tells the user to input a integer between 1 and 99..and reads back how many quarters, dimes, nickels, and pennies back. this is what i have. import java.util.Scanner; public class Main { public static void main( String[] args ) { Scanner input = new … | |
When realising the following operation: [CODE]do = 1.0 - 2.718281828**(-(23**2)/730) print do[/CODE] Python returns 0.632120558766 When you do it on the calculator or when google it, it returns 0.515509538 :-O | |
Pretty much i can convert from infix to postfix really well and that is nto the problem i need help with the postfix evaluation also i dont think my evaluate method is correct i have two push methods, one for char and one for int. i really am stuck and … | |
Hi all.. I'm trying to do a pagination using simple php script... I set the maximum post to be displayed to be 5.. but my problem is, each post that being displayed,has skipped 1 post before it.. For example,let say that i got 5 post in total,instead of displaying post … | |
Hello, please try to help the fresher i was a beginner in perl .but gave me critical work. my task looks simple!But not.i was trying for 4days. i have two text files each contain code in modules. my task i have to take module name from the user and search … | |
Hello! I have created a control using the TimeCtrl widget using this code to insert an hour in a 24h format using the HH:MM format [CODE]self.EndingHour = masked.TimeCtrl(panel, -1, name='24 hour control', format = 'HHMM', fmt24hr = True)[/CODE] However, it keeps showing the time as a 12h clock (in the … | |
hi guys, using a for loop i want to be able to pause it, display string in text box for 60 seconds then move to the next loop,change content of the string and display it again for 60 seconds.this should go on till end of count.i am currently using a … | |
[CODE]import java.io.*; public class Test { public static void main(String[] arg){ Console console=System.console(); String chessPiece=""; int rowEnd=0; char columnEnd = ' '; System.out.println("what piece do you want to move?"); chessPiece=console.readLine(); System.out.println("where do you want to move it to?(type column letter)"); String input=console.readLine(); columnEnd=input.charAt(0); System.out.println("where do you want to move it … | |
![]() | Hi all, I'm trying to create a method in [B]managed c++[/B] which will convert an int to a string representation of binary. I have done this in C# before, but I can't work out how to do it in Managed C++ Below is the code from my C# effort that … |
Does anyone know how one would be able to replicate photoshop's resolution option? I normally do not mess around with resolution.. but recently.. I changed the resolution value accidentally and had some pretty astounding results. For those of you who have never used photoshop before.. the resolution option simply increases … | |
hi how are u am new in programing at all :confused: i have a code for a program that communecate with a DDe server this code need some modefication to complete it(need to include the System.IO namespace to use a StreamWriter and Add a using System.IO; statement to the other … | |
I'm new to Classes. For a project to improve my skills I'm stuck. This project is a registration in which: [LIST=1] [*]form data is validated [*]some variable from the form are encrypted [*]some variables from the form are hashed [/LIST] It is getting the Class for hashing to load and … | |
[CODE]// This program gives the number of boxes required for a number of figurines #include <iostream> using namespace std; int main() { unsigned boxcapacity; cout << " Enter the total amount of figurines each box can store: "; cin >> boxcapacity; unsigned figurines; cout << " Enter the total amount … | |
Hi dears. I want make relation with gsm modem. my first goal and main one is sending and receiving sms. _then I want go front.for example for mms sending and ..._ I want to do it on a linux server. please introduce me a suitable modula with it's tutorial or … | |
[CODE] import java.util.Scanner; class apples { public static void main(String args[]){ System.out.print("Hello, today I'm going to give you a quiz. \nWhat's your name?\n"); Scanner name = new Scanner(System.in); System.out.print(name.nextLine()); System.out.print(" Is a nice name.\nToday I am going to test your knowledge.\nLet's begin!\n"); int score = 0; System.out.print("Who is Bill Gates?\n1. … | |
Hey everyone, (Hopefully) a rather quick question. I'm currently trying to use regex to search a string for the location of the longest continuous match in a string where the *same* character keeps repeating. It doesn't matter which character it is, as long it is the highest number of consecutive … | |
Hi This may seem pity stupid but I am somehow stuck in this: I have got a file containing years like this : 1913 1913 1917 1917 1917 1917 1917 1955 1955 now this is just a part of a file containing almost 50000 years. What I want to do … | |
I'm trying to search for the correct code to make my form work. I have 3 select boxes - one with 2 options, one with 8 options, and the last with 2 options... All of this adds up to 32 different url paths. Can anyone tell me how to get … | |
Hi I created small application that can show images and do zoom, I want to create DLL file to import into my software with picturebox and all the property, how can I do it ? | |
I wrote this simple program in C to generate binary search tree, but i am unable to go beyond level 0. Note that I have not incorporated the printing part. [code] #include<stdio.h> #include<malloc.h> struct node { int data; struct node *lc; struct node *rc; }*start,*link,*tmp; int a[100]; int main() { … | |
I am working through Accelerated C++ and am on exercise 3-5. The question is:[QUOTE]Write a program that will keep track of grades for several students at once. The program could keep two vectors in sync: The first should hold the student's names, and the second the final grades that can … | |
Good day! Can I run PHP(in WAMP) scripts without internet connection? Replies are really appreciated. | |
Hi, My java is really bad and I haven't had to use it in a few years but I want to make it better so I've decided to try building it up slowly but at the moment I'm a little stuck and was wondering if anyone could help point me … | |
Hi, i'm supposed to write a function, countGrade that takes in the Grade and find the number of students that have this grade. This value is returned to the calling program. The function prototype is int countGrade(char). Currently all i have written is this. Seem like there's something wrong with … | |
Hello everyone, I am having trouble finishing my program. I am having the most trouble with the method, as described in my book, parseInt(char[]). I can't figure out what to do, I don't know how to properly write the method for this. I will include the entire program description for … | |
Does anyone know the event that causes the carriage return animation to play? I would like to have the carriage return animation to play after clicking in a box.. that is not a textfield. Essentially.. I am attempting to create a custom text field. (In case you do not already … | |
Hello. I don't know any code of Javascript. I programme in PHP. I grabbed this piece of code for javascript timer: [CODE] <form name="counter"><input name="d2" type="text" size="8" style="font-size:72pt; border:none; font-family:Verdana; color:#00BFFF; text-outline: 1px 1px #009ACD;"></form> <script> <!-- // var milisec=0 var seconds=<?php echo $s;?> document.counter.d2.value='0' function display(){ if (milisec<=0){ milisec=9 … | |
what is the difference between instance variable and methods and their counterparts,clas variable and methods? i understood that instance is other name for object but what i have undersood till know is that method is somewhat like function (but i could not understand the explaination given for this question in … | |
[CODE]def nod(n): c,i=0,0 while n>0: c=n%10 if c!=0: i=i+1 n=n//10 print(i)#prints the number of digits in the given integer 'n' [/CODE] how to make it able to count 'zeros'? | |
Hi guys, need some help with this. I googl'ed but found no solution. :icon_sad: [CODE=cpp] #include <iostream> #include <ctime> #include <cstdlib> using namespace std; void createRationalNo (int, int); int RationalInfo (int []); //void printArray (int [], int); const int MAX = 20; const int setArray = 5; int initialArray [setArray][MAX]; … | |
When I execute the following sql,select id from people, inside python and print the result, I get this: ((11L,), (12L,), (13L,), (14L,), (15L,), (16L,), (17L,), (18L,), (19L,), (20L,)) Why does python print L beside the numbers. Just to indicate Long type? | |
Hello guyz, Recently I am making a system monitoring tool. For that I need a class to monitor print job. Such as when a print started, is it successful or not, how many pages. I know that I can do it using winspool.drv. But dont how. I've searched extensively but … | |
TURBO C ++ HELP! INTERATIVE STATEMENT Im a beginner so please help me. USING FOR LOOP: write a program that will display the following pattern, given the value of n. example: of n=4 output: 1234 123 12 1 | |
I am working on an application and would like to be able to calculate the efficiency of various algorithms and choose the best one. The application operates on a list of records that are stored in a file. Operations include adding records, deleting records, and searching for records based on … | |
Hello Everyone, I just write a web service in which function return a dataset. Now I have load that dataset in asp:dropdownlist in a web page. Please let me know bow would I do this. Thanks Farooq | |
Can anyone help with the error shown below? - I have looked at the code of the script and realise that it is being generated by there being no valid id. So... I changed the details to provide a valid id (did not work), then matched all the details up … | |
Hello, I'm working on an assignment due next week and I'm having quite a bit of trouble. The program is to ask the user for input of a double until they desire to stop. That part, I imagine will be in the Test file. The master file is to store … | |
Hi, please i need your help, i had error while i tried to insert into my data base, here is my code: [CODE]Try 'preparer les requetes Dim sqlQRY1 As String = "INSERT INTO AUDIO Values ('" + nomAudio + "')" Dim sqlQRY2 As String = "INSERT INTO IMAGE(Nom_Img) Values ('" … | |
A week ago phpmyadmin was working fine but now whenever I try and access phpmyadmin, (in xampp localhost) it displays 2 error messages and nothing more. They are as follows: [CODE]phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username … | |
Hi i want to write an application that search and show information that saved on excel file . but i cant found any thing about how to read excel file on j2me ? now what should i do ? what do you recommend ? thanks | |
[CODE] <?php $x=$_POST[T1]; .... .... .... ?> <head> <script type="text/javascript"> function submitform() { document.comm.submit(); } </script> </head> <form method="POST" action="" name="comm"> <p><input type="text" name="T1" size="20"> <a href="javascript: submitform()"> Submit</a></p> </form>[/CODE] What i need is on clicking the submit link, the current popup or page should be closed. But it must … | |
I haven't found this in my search, but it is not something that is easily defined ...also I am not sure whether this is PHP or more Javascript, so my apologies if I have posted in the wrong place. Anyway, I have this PHP form: [code] <?php $app = $this->globals('khxc_display.app'); … | |
I'm in the process of coding my own OS and right now I'm working on a stdio lib but was just wondering about fputs and how it should write to the screen, which would be a better approach? Making stdout a file descriptor and having puts call fputs with the … | |
Question- Q9. Draw the truth table for a logic function that will subtract three bits to produce a difference and a borrow. 10. Draw the logic diagram for a circuit that implements the function in question 9. answer for Q9. Truth table for Qn 9 _____[U]B D[/U] -----B- Borrow D- … |
The End.