199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ktsangop

Hi everybody. Could someone explain me the usage of python's modulo operator and/or the fmod function? why do i get these results? >>> 23%0.1 0.099999999999998729 >>> import math >>> math.fmod(23,0.1) 0.099999999999998729 >>> normally 23 mod 0.1 = 0 because 23 / 0.1 = 230 exactly is there anything wrong there …

Member Avatar for ktsangop
0
245
Member Avatar for sjn21682

hello there... need some help here, is it possible to get the value of a textbox from a form.cs, and use its value to a new class? if yes, how can i do it???, see, i have a textbox from a form.cs, and then i created a new class, in …

Member Avatar for jonsca
0
212
Member Avatar for Bobon

Hey lads, Just have a small query here thats really bugging me. When details are entered by user and checked in database, the program should display one of two messages as seen below. When the details are entered correctly the welcome message displays correctly. However, when incorrect details are entered, …

Member Avatar for Bobon
0
146
Member Avatar for virspy

Hello friends, I have a strange problem i require the google search in my website but the search has to display only the sponsored links and the related search items. like in [url]http://www.ebuyers.com/[/url] can any one tell me the concept of how to get those results Thank u in advance

Member Avatar for theighost
0
89
Member Avatar for RobertQQ

Hi all!! I am new to c# and am looking for a site I can go to that has problems for beginners in c#. I tried googling it but was unable to find anything. Does any one know of a site like this? Thanks for the help!!

Member Avatar for kvprajapati
0
253
Member Avatar for Lee21

guyz I need help regarding declarations of global variable.. I created a module here is the script. [CODE] Module modGlobalvar Public name As String ----------------------------------------------------------------------------------- 'here is the code in my login form Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click Try sqlcon.Close() scmd = New …

Member Avatar for Lee21
0
2K
Member Avatar for achalmehra

hi friends...i am developing a small windows application in vb.net using visual studio 2005. i want to design a form where user can enter multiple records.like we want to design a "bill" form where user can create the bill for any no of items.there are 4 colmns in it : …

Member Avatar for achalmehra
0
149
Member Avatar for Alianncox

Hi, I get this error: `Exception in thread "Thread-4" java.lang.NullPointerException` When I try to send the vector to my form. Does someone knows where I made a mistake? Here is a part of my code: (this part is from my clientapplication (where I make a connection with the server) if …

Member Avatar for Alianncox
0
83
Member Avatar for Darshana369

I am looking for receive mail code in visual basic language. Please reply me as soon as possible..........[code][/code]

Member Avatar for kvprajapati
0
198
Member Avatar for pritesh2010

hello every one i had created one application front end as vb.net and back end is Access 2003. after this i had created a setup of that application. it perfectly work on my computer but when i am installing setup on my friends computer it install and run time it …

Member Avatar for kvprajapati
0
112
Member Avatar for kumiyare

Hi, Every body. I am writing a PHP thumbnail script, My goal is to upload images to the server and save the original images inside images directory and save the thumbnail to thumb directory which is inside images directory. Now every thing working fine, except the BMP type images, when …

Member Avatar for phpuser
0
401
Member Avatar for acdougla17

I am trying to basically use the methods as functions and then call them in main but I cant figure it out. I thought it could be done like this but maybe I am just confusing my php&mysql class with Java. At the bottom of my code, there is a …

Member Avatar for stephen84s
0
169
Member Avatar for eswaramoorthy

I am new one of jsp .i have developed simple webapplication using jsp... Step 1 : I have one login page : (contains username ,password and sumbit button) Step2 : I have one logout page : it has one link (Go to login page), just u click this link go …

Member Avatar for jwenting
0
140
Member Avatar for johndoe444

[CODE]// this is overkill Date now = new Date(System.currentTimeMillis()); [/CODE] Why is this overkill?

Member Avatar for jwenting
0
145
Member Avatar for kjock002

the random function gives you a number between 0.0 and 1.0 . im trying to get a random number between -0.5 and 0.5. i asked someone for help and they told me to go off of this: [0, 1) + .1 this changes the range to [1, 2) and i …

Member Avatar for Gribouillis
0
101
Member Avatar for k2k

I had done a program with JFrame a year ago and I am trying to convert it to with JApplet so I can put it on the web. So far so good and I am able to see the applet and seems every functions are still working... there is one …

Member Avatar for k2k
0
198
Member Avatar for star_lavender

hi...I have three different ph files that received value from those files... class_survey.php [CODE] <?php class surveyForm { function selectForm() { //query to display form } function insert_survey_result($rating, $form) { if($form=="survey1") { echo "form: $form"; //check whether the form passing at here is correct for($j=1;$j<=count($rating);$j++) { echo $sql1 = "INSERT …

Member Avatar for star_lavender
0
177
Member Avatar for bandit711

Having problem set code up for five rows and 4 column. Any ideas have too do it the code, i am currently using: [CODE] cout << setfill(' ') <<setiosflags(ios::left) << setw(11) << "Student" << setw(10) << "Quiz1" << setw(8) << "Quiz2" << setw(8) << "Quiz3" << setw(8) << "Quiz4" << …

Member Avatar for bandit711
0
172
Member Avatar for tr6699

I have dynamically created a 2d bool array and was wondering if i could create a pointer that points to the second column of the array.

Member Avatar for Ancient Dragon
0
99
Member Avatar for matt_stutts

I have an update page with a cfselect populated from a query. I need the selected value to be = to a value from a different query. I can only seem to get the first item in the cfselect to display when the page loads, making me think something is …

Member Avatar for arrgh
0
116
Member Avatar for laudaisoi

Hello everybody ! I'm a novice , and already started learn C++ . I try sorting string alphabetically from a text file . This is my code [CODE]#include <iostream> #include <fstream> using namespace std; // Quick Sort function void quickSort(char A[][15], int lower, int upper){ if (lower>=upper) return ; // …

Member Avatar for laudaisoi
0
948
Member Avatar for mbrinkley

Hello. I am in a beginning C++ programming course in which we have just finished loops. I have been asked to plan, code, and execute a program to do the following things: Ask the user for the file name, then calculate an average of the numbers and display two lists …

Member Avatar for Ancient Dragon
0
119
Member Avatar for didijc

What is the best way to implement a rubber band /focus rectangle on a web page? In other words, I want to be able to navigate to a web page like people.com and use the rubber band / focus rectangle to some html content (images and/or text)... ...and I do …

Member Avatar for jeffreyk16
0
171
Member Avatar for leviaeon

i have an error with this sample code i got from the net... the error says: TypeError: unsupported operand types for +: 'int' and 'str' here is the code: from time import ctime [COLOR="Red"]import[/COLOR] codecs [COLOR="red"]import[/COLOR] inbox, appuifw box = inbox.Inbox() msg = box.sms_messages() f = [COLOR="red"]codecs.[/COLOR][COLOR="Green"]open[/COLOR]('E:/Others/listSMS.txt', 'w', 'utf8') # …

Member Avatar for leviaeon
0
93
Member Avatar for hlmjohnson1981

Create a scholarship program that will choose a recipient based on the highest GPA using the following features. Create a class of type student . - Members will include: name, GPA, Rank (year) - Make sure all data is private and a ll functions are public. - Write member functions …

Member Avatar for hlmjohnson1981
0
103
Member Avatar for tomkaczocha

Hi guys, I hope you can help me with a bug. I have an update form to update data in a mysql database. Whenever a user wants to update the picture they uploaded it through the html form. For some reason my mysql querie on line 67 is not updating …

Member Avatar for tomkaczocha
0
145
Member Avatar for danjoe15

The Catch section is always executed even if the Try section has been executed. I am trying to send the user to one page if the delete worked properly and a different page if the delete did not work because of relationships between tables: [CODE] Protected Sub btnDeleteBuilding_Click(ByVal sender As …

Member Avatar for danjoe15
0
105
Member Avatar for lishannx

ive a drag and drop program and i want to allow drag and drop mulitple times and not one time. after being drag and drop, the created picturebox will also be created multiple times. is it correct to use for loop? pls guide.thank u. rgds.

Member Avatar for lishannx
0
153
Member Avatar for mikeyboy02

Hi I'm new to java and working on a program where I want to show the number of rentals for one person in one box and the total rentals in another box. I am having trouble storing the variable or it is not recognizing that I want to keep adding …

Member Avatar for mikeyboy02
0
109
Member Avatar for chipbu

Hi guys, I need some help to create an array with character indexing like this: A B C D E .... A 0 0 0 0 0 B 0 0 0 0 0 C 0 0 0 0 0 D 0 0 0 0 0 E 0 0 0 0 …

Member Avatar for kplcjl
0
1K
Member Avatar for pateldeep454

I am having error in the following code. What should I do to fix it? Also, how should I call it in main method to test the code? please HELP :( [CODE] package sortingelements; public class Main { public static void main(String[] args) { } public int indexOfMaxInRange (int[] myArray, …

Member Avatar for Danny_501
0
124
Member Avatar for tbelczak

I have way too many hours into this and I feel as though it is due to a configuration difference somewhere between the two servers. Here is code for two simple scripts: [B]TEST1.PHP[/B] [code=php] <?php session_start(); $cart[0] = array('item_number' => '12345', 'qty' => '5'); $_SESSION['cart'] = serialize($cart); header('Location: test2.php'); exit(); …

Member Avatar for tbelczak
0
222
Member Avatar for K0ns3rv

Hey guys. So i've created a static library project and written the code ( one header file and one cpp file ). I have built it and it resulted in (.a) file. I told the compiler where to look for the header file and the library file but my example …

Member Avatar for kay25
0
163
Member Avatar for J.Killa

In my program, I have to input a word and then a character. The program will tell me how many times does the character appear in the word...my problem is that I have to find this character with the find(str,ind)...I know the ind is the index and can be manipulated …

Member Avatar for J.Killa
0
305
Member Avatar for LostGurl

Hello.. Im doing some simple text processing using Python which include indexing, splitting and tokenizing text from folder. i want to improve the stemming and tagging process using MontyLingua by importing the Monty library for tokenizing and tagging. I dont know how to edit and call them in my coding. …

Member Avatar for PassBy
0
484
Member Avatar for cgyrob

I have an app where I keep getting this error. This is a c# .net 3.5 app running on a windows 2003 server with IIS 6.0 connecting to an Oracle 10g db. This app had no problems during testing where it was connecting to an Oracle 9i DB but once …

Member Avatar for cgyrob
0
202
Member Avatar for bandit711

Every time i compile this code i come up with a additional set of numbers, but i don't know why. [CODE] #include <iostream> #include <stdlib.h> #include <iomanip> #include <string> #include <fstream> using namespace std; void calculateAverage(double quiz1, double quiz2, double quiz3, double test4, double& SAverage); int calculateGrade(double grade); int main() …

Member Avatar for bandit711
0
165
Member Avatar for VernonDozier

Hopefully this is fairly basic. I've never used enumerated types in Java. I'm sort of trying to take my C concept of them and make it work in Java. Basically use them as constant integer values. That might be putting the square C block into the round Java hole. I'm …

Member Avatar for VernonDozier
0
145
Member Avatar for scrchrds

I am really new to php and am attempting to create a news reader on my site. I have gotten it running just fine in a page of its own, BUT, I need it to be inside a php include. How do I link different scripts and stylesheets in the …

Member Avatar for Tekkno
0
167
Member Avatar for MoZo1

Hi! I have a windows mobile 5 device, and I would like to make some programs for it. I need a free development environment (compiler and librarys) that runs on winxp. It would be a very big help if I could use my NetBeans which I have experience with. It …

Member Avatar for MoZo1
0
102
Member Avatar for EvilOrange

i have this code: [CODE] var current; startOff = $('#all').offset(), offString = "{top :"+ startOff.top +", left :"+ startOff.left + "}"; current.css(offString); [/CODE] When "offString" is alerted its fine - eg {top: 123, left: 342} BUT it doesn't seem to like it, but when the alerted output is added into …

Member Avatar for EvilOrange
0
99
Member Avatar for seacase

I seem to have hit a wall with implementing my own version of merge sort. I can sort the list fine in ascending order, but once I try to reverse the ordering (passing in a boolean), I get an ArrayIndexOutOfBounds error. I'm guessing that what I'm experiencing is some sort …

0
46
Member Avatar for Tekkno

[code=php] $results = mysql_query("SELECT column1, column2, date, time FROM table ORDER BY RAND() LIMIT 1"); $row_table = mysql_fetch_assoc($results); [/code] For some odd reason this does not return data, however if I change it to: [code=php] $results = mysql_query("SELECT column1, column2, date, time FROM table ORDER BY RAND() LIMIT 2"); $row_table …

Member Avatar for diafol
0
202
Member Avatar for vbx_wx

[CODE] void open_key(HKEY* Key , HKEY key , LPCTSTR subkey) { cout << Key[1] << endl; RegOpenKeyEx(Key[1] , subkey , 0 , KEY_ENUMERATE_SUB_KEYS | KEY_QUERY_VALUE , &key); } int main() { HKEY keys[] = {HKEY_CLASSES_ROOT , HKEY_CURRENT_USER , HKEY_LOCAL_MACHINE , HKEY_USERS , HKEY_CURRENT_CONFIG}; open_key(&keys[1] , hkey , "Software"); } [/CODE] …

Member Avatar for vbx_wx
0
72
Member Avatar for eggmatters

I posted this on Oracle Forums to the sound of crickets chirping. This question entails more Oracle specific tasks then java but since my code is in java, here goes" Hello, I have a java package where I am attempting to implement a database Change notification registration and listener. I …

0
156
Member Avatar for kjock002

the program below simulates a game of craps and its pretty much done except for a way to get the while loop to stop. i was trying to get an input from the user when they wanted to stop rolling and to enter "n" for no but im not sure …

Member Avatar for jcao219
0
116
Member Avatar for kjock002

so im trying to simulate a walk where the user will randomly take either a step forward or backwards, hence using the probability of a coin flip. i think the program is pretty much self explanatory. i just need help debugging it because it doesn't seem to work properly yet. …

Member Avatar for jcao219
0
182
Member Avatar for rkp728

If there is a pointer member in a class. Eg.: [CODE]Class XYZ { Int *x; Char *c; }[/CODE] Then in such a case what all precautations do we need to take while handling such a member and the class?

Member Avatar for jonsca
0
100
Member Avatar for jaredleo999

public class Welcome extends JFrame { private Toolkit toolkit; private static String passy = "123456"; public Welcome() { setSize(300,550); setTitle("Welcome"); setDefaultCloseOperation(EXIT_ON_CLOSE); JPanel panel = new JPanel(); getContentPane().add(panel); panel.setLayout(null); JLabel label = new JLabel("Enter Password"); JPasswordField password = new JPasswordField(6); password.setEchoChar('*'); password.addActionListener(new AL()); label.setBounds(0,0,300,25); password.setBounds(100,0,200,25); JButton b1 = new JButton("1"); b1.setBounds(0,100,100,100); …

Member Avatar for jaredleo999
0
648
Member Avatar for Etherwind

I'm getting a compiler error in one of my .c's that I don't understand. I'm getting [icode] Tree.c: In function 'newTree': Tree.c:301: error: expected declaration or statement at end of input [/icode] What I don't understand is that newTree and line 301 are completely separate functions. I can get the …

Member Avatar for Etherwind
0
174

The End.