64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for whisper_101

Hi Guys My hosting company confirmed that recently it appeared that somebody was trying to hack into my website. I was able to confirm the page used but not whether they actually got through - no data in the database was changed. I have never come across this before and …

0
53
Member Avatar for scooby36

I cannot seem to get the datagrid to update with the correct data from the combobox selection the program just crashes. Do I need to bind to the combobox some how?? Any help or advise would be apreciated [CODE] Private Sub cboBarcodeInCust_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …

Member Avatar for TomW
0
164
Member Avatar for RejectKid

ok so i need my code to be able to have the balls on the screen detect collision and remove a ball when they collide but for some reason every time i hit the add a ball button they disappear on me. and they dont detect collision in the first …

Member Avatar for quuba
0
235
Member Avatar for opatut

Hi Community! I have already searched the whole web about this Problem, and I didn't find anything. Maybe you can help... I want to show the number of all SQL queries I executed to load a web page. It is a very complex system I programmed, and I don't want …

Member Avatar for opatut
0
237
Member Avatar for bdesc100

I am trying to specify which variables a function should return. The purpose of this is to allow the function to return different sets of variables according to the requirements of another function, in order to make things more efficient (rather than always returning all the variables): [CODE] # Python …

Member Avatar for paddy3118
0
113
Member Avatar for Room101

I'm having problems using my AudioPlayer class. I have a class that calls it which simply contains the following: [CODE=java]public class Test { public void test() { AudioPlayer ap1 = new AudioPlayer(); ap1.printUsageAndExit(); ap1.main({"a.wav"}); } }[/CODE] I recieve the error on line 6, when I call [CODE=java]ap1.main({"a.wav"});[/CODE] Note: When I …

Member Avatar for Room101
0
101
Member Avatar for lrh9

I want to call another object's methods from another object, and I have no idea how. Can someone please help me? Thank you.

Member Avatar for lrh9
0
203
Member Avatar for SoulMazer

Hi, I'm looking for a little help with the function "getattr". Here's my code: [code=python]class MyClass: def __init__(self): trycmd = getattr(self, "cmd_testing") try: trycmd() except: print "Fail." def cmd_testing(self): print "Victory!" obj = MyClass()[/code] So, when I run this code, I get the output "Fail.". I'm not sure what I'm …

Member Avatar for vegaseat
1
142
Member Avatar for OldQBasicer

I want to use more than one form in my project and be able to code a button or something that will do that. I tried this on Form1 and it worked. [CODE]Public Class Form1 Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 'Goes from this …

Member Avatar for OldQBasicer
0
336
Member Avatar for simpatar

Alright, this is how my newest program looks like: [CODE]import math def main(): print('This program finds the real solutions to a quadratic') print s = float(input('Please enter the coefficients (a,b,c): ')) a, b, c = s.split(',') discRoot = float(math.sqrt(b * b - 4 * a * c)) root1 = (-b …

Member Avatar for vegaseat
0
82
Member Avatar for jeffreyjs

Hi, I am currently developing a cafe ordering and payment system which i encounter some calculation issue... i need a formula which is able to calculate the total price in this scenario, If Customer A order 5 items of different prices and Customer B order 9 items of different price, …

Member Avatar for Jaiam
0
182
Member Avatar for ddanbe

Hi, Why do I only see appearing a red rectangle after 1 sec with the following code, and not a blue one and after a sec a red. Just used a new forms app with a panel control added and the following code: [CODE=c#]using System.Drawing; using System.Threading; using System.Windows.Forms; namespace …

Member Avatar for Diamonddrake
0
291
Member Avatar for number87

ok so I am trying to read in a file. Do some string checking. And output the counters. But somehow I think something is wrong with my strcmp. And I do not know where is the problem. Everything compiles fine too. [code] #include <iostream> #include <fstream> #include <cstring> #include <iomanip> …

Member Avatar for Ancient Dragon
0
133
Member Avatar for SKANK!!!!!

[CODE]<?php $documentroot = $_SERVER['DOCUMENT_ROOT']; $username = "Administrator"; $dir = $documentroot . '/' . $username; function rmdir_r ( $dir, $DeleteMe = TRUE ) { if ( ! $dh = @opendir ( $dir ) ) return; while ( false !== ( $obj = readdir ( $dh ) ) ) { if ( …

Member Avatar for SKANK!!!!!
0
134
Member Avatar for snakay

Hi, I'm having problem when I read more then one datareaders in row. The second one always get exception. I know this is one of the favourite topics of ADO.NET, but could not solve my problem no matter what I do. I use a class to prepare my datareader. If …

Member Avatar for snakay
0
114
Member Avatar for peck3277

Hey guys, Hopefully someone out there can help me. I've written a script that displays the contents of a directory. It also links to the file so when I click on it it displays the file contents. What I want to do is when I click on that file it …

Member Avatar for peck3277
0
153
Member Avatar for network18

I have an API parsing script, which inserts into the db more than 40,000 rows.and maybe due large numbers of queries getting fired continuously, after some specific time the script throws "MySQL server has gone away" error. I know the reason behind this error can be closed connection or any …

Member Avatar for network18
0
705
Member Avatar for freelancelote

I'd appreciate if somebody could have a look at this code and tell me where the problem is. The program is meant to take a .txt file and split it in three different files: one with words of 1 to 4 letters, one with words of 5 to 7 and …

Member Avatar for Agni
0
2K
Member Avatar for phobia1

Hi Guys I'm rusty and sticking after being ill for months. Could anyone help me to get this to work please. I've got it close but not close enough. Thanks in advance for the time given. Best FJW [code=php]echo $pricelow; echo $pricehigh; output_arrayBETW(); //$pricelow and $pricehigh correct BUT... Function output_arrayBETW(){ …

Member Avatar for phobia1
0
71
Member Avatar for isuruj

I need to copy a file to my machine from a remote machine. Are there any ant targets to do that?

Member Avatar for isuruj
-1
115
Member Avatar for Israelsimba

i have been using adodc for searching for a client's details using the client number, but it would give me inexpected errors and bomb out of my programme. i have then resorted to searching using sql. the following code gives me this error::: [I][U]no value given for one or more …

Member Avatar for AndreRet
0
147
Member Avatar for UKmason

***************************************************** Write a program that will get some input from the user about a visit to an oil change service. The program will calculate the bill for the services requested. Prompt the user to input whether or not they want each of the services. You can assume the input will …

Member Avatar for alg
0
121
Member Avatar for catcoffee

Hi, all! It's me again. And i'm idiot. I have in my table many-many articles. Their titles and anonses showed on page article.php [CODE] <?php mysql_connect($host, $username, $password) or die(mysql_error()); mysql_select_db($database) or die(mysql_error()); mysql_query("SET NAMES utf8"); $sql = "SELECT*FROM advicer ORDER BY id DESC LIMIT 4"; $result= mysql_query($sql) or die(mysql_error()); …

Member Avatar for Stefano Mtangoo
0
338
Member Avatar for geg13

I would like help with making a program 'type' out the text as the program is running i.e. not having the entire line appear at once but letter by letter.

Member Avatar for geg13
0
117
Member Avatar for Namibnat

Please could someone just clear up, or point me to the right thing to read regarding mysql and php. Once you have made a query and saved it to results, I understand that the query accessed with a number of functions to extract that, such as mysql_fetch_array() and so on. …

Member Avatar for somedude3488
0
137
Member Avatar for gsingh2011

This is my python script: [url]http://gsingh.pastebin.com/mc602006[/url] This is my setup.py file for py2exe: [url]http://gsingh.pastebin.com/m70a19449[/url] When I go to command prompt and run the .py file with the command, email.py message It works fine, it sends me an email with the message, which is what it's supposed to do. When I …

Member Avatar for snippsat
0
664
Member Avatar for luskbo

I have a program that creates a struct. It also has a class that creates a pointer to an array of structs that is created. I'm having trouble accessing the elements of the structs in the array, with the pointer. Below is a sample of the code. Struct definition in …

Member Avatar for luskbo
0
127
Member Avatar for alexcarrero

Please, I need some help with my hw. I have to create a program that stores the scores for a football team. I need to record the score by quarter for each of the 20 games. I have to initialize all games to 0. Then, the user is asked to …

Member Avatar for alexcarrero
0
83
Member Avatar for Epi23

Ok, so I am trying to write a program that will solve simple math and physics problems, and am trying to use strings and words more, so my question is: is it possible to use a char in an if statement? I'm new to this so yeah. Here is what …

Member Avatar for Epi23
0
6K
Member Avatar for Shinedevil

Ok, I know I'm probably programing in some kind of archaic way for C++ but my knowledge base is rather limited. I'm having problems with my input not being identified correctly (or however you would say it, rusty is me) [code]cin>>StatsChange; if (StatsChange == "Strength" or "strength" or "str" or …

Member Avatar for Shinedevil
0
140
Member Avatar for thebluestar

here is my code [CODE=C] #include<stdio.h> #include<conio.h> #include<string.h> int main() { char A1[100], A2[100],c[100]; int n1,n2,i,j; printf("Enter string A1:\n"); gets(A1); printf("Enter string A2:\n"); gets(A2); n1=strlen(A1); printf("%d ",n1); n2=strlen(A2); printf("%d ",n2); char *p1=A1, *p2=A2, *p; p=(char*)malloc((n1+n2)*sizeof(char)); for(i=0;i<n1; i++) { *(p+i) = *(p1+i); } for(i=0; i<n2; i++) { *(p+n1+i)=*(p2+i); } int k2=strlen(p); …

Member Avatar for thebluestar
0
204
Member Avatar for geg13

How would i go about making a program wait before printing the next line? Keep in mind that i would like the next line to print automatically after a few seconds. Also if at all possible i would like to know how to make the text act like it is …

Member Avatar for Clinton Portis
0
97
Member Avatar for kathmartir

I have a problem with the dispose method. . .I got 3 java files with a class name: MainProgram.java MainPanel.java PageOne.java The MainProgram java extends JFrame. The MainPanel.java extends JPanel. The PageOne.java extends JFrame. The MainPanel.java is where all the actions and etc. are being set. The MainProgram.java calls the …

Member Avatar for FriQenstein
0
5K
Member Avatar for ki72

For example I ask the user to enter a 4 digits integer number. For example the user enter 4875. I want to display odd digits (7 5) and even digits (4 8). By Extract each digit of the number using integer division and store the results in separate variables. for …

Member Avatar for Grn Xtrm
0
116
Member Avatar for kayblack

Hello guys, I'm trying to make my PHP mailing script mail an html webpage. I've pasted the page code but I've been getting alot of error pages complaining about the tags in the html code (style, table width, etc) How do I get around this?

Member Avatar for Atli
0
184
Member Avatar for darkRoom

My website I'm building has various image Arrays, I have JS code passing data so an image in 1st page exp:[image5] loads into 2nd pages Array as [image5], it works in all browsers except Firefox where 1st page reloads to [image1] in 1st page Array. Being a newbie I can't …

Member Avatar for Airshow
0
184
Member Avatar for VIPER5646

Hi I have a Datagrid with column(1) showing the date. The dates are being Displayed as 01-13-2009 (mm-dd-yy). That's how it is saved in the DB. I wouls like it to be displayed in the Datagrid in the following format Jan-13-2009. Can anyone help? Thank you

Member Avatar for VIPER5646
0
107
Member Avatar for raigs

N00B. I cannot seem to get this right. [CODE]#include <iostream> #include <cstdlib> using namespace std; int main(void) { system(("sendmail -options" + EMAIL_TEXT)); return 0; }[/CODE]

Member Avatar for mikiurban
0
211
Member Avatar for dans@dis.wa.gov

Hi everyone, I'm a javascript/actionscript/java/ruby developer who's been given a project that must be done in Sharepoint. One of the tasks of the project is I have to write a console application that replicates data from the secure sharepoint site and pushes it out to a public site in a …

Member Avatar for sknake
0
202
Member Avatar for kustrle

I have composed a Windows Forms Application with few Check Boxes and Install button on it as well. Now I just made a code for Install button's Event Handler which run application when button is clicked. Code is following, and was just made for test if everything works as supposed …

Member Avatar for kustrle
0
119
Member Avatar for ki72

Java Code I don't know how to show odd or even digits from an integer number. For example I ask the user to enter a 4 digits integer number. For example the user enter 4875. I want to display odd digits (7 5) and even digits (4 8). By Extract …

Member Avatar for peter_budo
0
155
Member Avatar for ashwini jadhav

hi, i am new in programming. i know that c++ used in development of games.so,i want to also some simple games to develop.please give some question for developing game? thank's

Member Avatar for ashwini jadhav
0
93
Member Avatar for ddanbe

Hello everyone! I know how to use a Timer class: [CODE=C#]static void Main(string[] args) { System.Timers.Timer MyTimer = new System.Timers.Timer(); MyTimer.Elapsed += new System.Timers.ElapsedEventHandler(MyTimer_Elapsed); MyTimer.Interval = 2000; MyTimer.Enabled = true; //etc. } static void MyTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { //do something every 2 seconds }[/CODE] What I like to do …

Member Avatar for ddanbe
0
2K
Member Avatar for blsnls

I am having problems figuring out what I did wrong to my highest, lowest and average for grades entered by a user. I searched for help but have not found any. Any hint in what I did wrong would be greatly appreciated. [code] #include <iostream> #include <iomanip> using namespace std; …

Member Avatar for blsnls
0
116
Member Avatar for tlj333

I read the guidelines on posting homework questions and I think this one is within the rules. A little background, currently taking my first computer program class, its an online class (big mistake), it's very hard to get feedback or assistance. I have been ripping my hair out trying to …

Member Avatar for tlj333
0
194
Member Avatar for necrolin

If I have 2 classes a) class Business b) class Customer I want the Business class to be able to store a dynamic list of it's customers. So I thought the easiest way to do this would be to use a vector. [code] class Business { vector<Customer> customers; public: Business(); …

Member Avatar for necrolin
0
203
Member Avatar for rmsagar

In my file, I have lines similar to this <Log LogID="633198520" LogLevel="Normal" Date="10/01/09 19:18" Type="Error" Source="Mentor" Text="Failed to process the request." /> When the line is read, if it is converted as field value pair I thought it will be easy to take required field. Please advise how this can …

Member Avatar for rmsagar
0
119
Member Avatar for xonxon

[code] import java.util.*; public class course { static Scanner sc=new Scanner(System.in); public static void main(String[]args) { String name,students,addStudent; int numberOfStudents; String courseName,getName,getStudents; int getnumberOfStudents; Course course1=new Course("C++"); Course course2=new Course("Java"); course1.addStudent("Peter"); course1.addStudent("Brian"); course1.addStudent("Anne"); course2.addStudent("Peter"); course1.addStudent("Steve"); System.out.println("Num of student in course1:"+course1.getnumberOfStudents()); String[]students=course1.getStudents(); for (int i = 0; i < course1.getNumberOfStudents(); i++) …

Member Avatar for Grn Xtrm
0
108
Member Avatar for soffie

Need to make a random size (x = rows, y = columns) matrix which is filled with random numbers (only 0 or 1). So, if I don't know the size of the matrix, I use dynamic array. So far I have made this far, but obviously it isn't quite correct... …

Member Avatar for soffie
0
2K
Member Avatar for kat12

Hey, I'm brand new to Python and I'm sorry if my code/question is sloppy and ridiculous. I had to make a snowman for homework, but now I have to make the entire snowman move 6 times wherever the user clicks. I used this at first, but it obviously only moves …

Member Avatar for vegaseat
0
1K

The End.