64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for acrocephalus

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 …

Member Avatar for acrocephalus
-1
2K
Member Avatar for eludic

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 …

Member Avatar for eludic
0
1K
Member Avatar for daviddoria

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

Member Avatar for daviddoria
0
88
Member Avatar for kumpul101

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 …

Member Avatar for JamesCherrill
0
111
Member Avatar for new SE

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 …

Member Avatar for samkaraja
0
83
Member Avatar for BryantFury

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 …

Member Avatar for BryantFury
0
201
Member Avatar for dbanks4271

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 …

Member Avatar for Katana24
0
140
Member Avatar for Hawkeye Python

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

Member Avatar for vegaseat
0
277
Member Avatar for notuserfriendly

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 …

Member Avatar for masijade
-1
2K
Member Avatar for samsons17

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 …

Member Avatar for samsons17
0
124
Member Avatar for koduruabhinav

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 …

Member Avatar for koduruabhinav
0
313
Member Avatar for acrocephalus

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 …

Member Avatar for acrocephalus
-1
197
Member Avatar for tariqi

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 …

Member Avatar for GeekByChoiCe
0
141
Member Avatar for NewOrder

[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 …

Member Avatar for JamesCherrill
0
201
Member Avatar for Smithy566

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 …

Member Avatar for Milton Neal
0
182
Member Avatar for PixelExchange

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 …

Member Avatar for PixelExchange
0
151
Member Avatar for abdu-

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 …

Member Avatar for abdu-
0
129
Member Avatar for dwlamb

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 …

Member Avatar for Triztian
0
2K
Member Avatar for bookmark

[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 …

Member Avatar for packetpirate
-1
112
Member Avatar for funfullson

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 …

Member Avatar for nazza
0
197
Member Avatar for TheSecOrg

[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. …

Member Avatar for TheSecOrg
0
200
Member Avatar for sphynx_25

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 …

Member Avatar for sphynx_25
0
2K
Member Avatar for ajay_p5

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 …

Member Avatar for ajay_p5
0
105
Member Avatar for jonsan32

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 …

Member Avatar for jonsan32
0
155
Member Avatar for breakid

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 ?

Member Avatar for Nyight
0
159
Member Avatar for titan_31

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() { …

Member Avatar for Narue
0
177
Member Avatar for jrw89

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 …

Member Avatar for mrnutty
0
191
Member Avatar for jjemphoung

Good day! Can I run PHP(in WAMP) scripts without internet connection? Replies are really appreciated.

Member Avatar for hielo
0
709
Member Avatar for alex1986

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 …

Member Avatar for alex1986
0
181
Member Avatar for grahf23

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 …

Member Avatar for grahf23
0
157
Member Avatar for xterradaniel

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 …

Member Avatar for xterradaniel
0
7K
Member Avatar for PixelExchange

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 …

Member Avatar for PixelExchange
0
147
Member Avatar for akshayinbox

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 …

Member Avatar for akshayinbox
0
226
Member Avatar for shivaniaroraji

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 …

Member Avatar for shivaniaroraji
0
210
Member Avatar for D33wakar

[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'?

Member Avatar for Beat_Slayer
0
144
Member Avatar for dexter1984

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]; …

Member Avatar for Maxwell175
0
141
Member Avatar for jobs

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?

Member Avatar for timogoosen
0
3K
Member Avatar for babaidebnath

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 …

Member Avatar for Momerath
0
269
Member Avatar for xshinichix

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

Member Avatar for xshinichix
0
400
Member Avatar for ms_farenheit1

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 …

Member Avatar for Ancient Dragon
0
149
Member Avatar for farooq82

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

Member Avatar for rohand
0
120
Member Avatar for JBLDW

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 …

Member Avatar for hielo
0
303
Member Avatar for Iamthecheese

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 …

Member Avatar for NormR1
0
201
Member Avatar for lucaazori

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 ('" …

Member Avatar for lucaazori
0
96
Member Avatar for cwarn23

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 …

Member Avatar for steelluv
0
95
Member Avatar for mahdi68

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

Member Avatar for peter_budo
0
89
Member Avatar for sakush100

[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 …

Member Avatar for hielo
0
109
Member Avatar for JBLDW

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'); …

Member Avatar for JBLDW
0
107
Member Avatar for Auraomega

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 …

Member Avatar for Auraomega
0
102
Member Avatar for acer5542

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- …

Member Avatar for acer5542
0
345

The End.