199,124 Archived Topics
Remove Filter ![]() | |
I have this code: [CODE] import pygame from pygame.locals import * from sys import exit from random import randint from sys import argv from gameobjects.vector2 import Vector2 def Intersect(s1_x, s1_y, s2_x, s2_y, image): if (s1_x > s2_x - image.get_width()): if(s1_x < s2_x + image.get_width()): if(s1_y > s2_y - image.get_height()): if(s1_y … | |
I realize this code has been seen a million times already. I am trying to 'start' on part 3 of this. I do not wish for it to be done for me just a starting point for this subclass. These are the directions: Modify the Inventory Program so the application … | |
Hi, I got the following question: We have an AVL tree with n nodes (numbered from 1 to n). Each node i contains a weight - wi which is an integer. Pi is the set of the ancestors of the node i, and w(Pi) is the set of weights of … | |
I need help with commenting this code. I bet it is easy but I am a newbie and i am really bad in it. Can anyone help me ? The code that should be commented : [url]http://www.opengl.org/resources/code/samples/glut_examples/examples/scube.c[/url] | |
I want to use ASP.NET to do video stream. But I didn't know how to start. Any sugestions? Thanks | |
I am trying to create a program that will store user input into nodes of a linked list. I want the user to only have to input the data they wish to be stored, so I am trying to figure out a way to automate the naming of the new … | |
Dear All, I have a problem, i need to align all components(JLabel,JTextField,etc) to right in the JPanel. Is there any layout method which can set the layout of the jpanel and then adding any jcomponent is aligned as the JPanel. thanx in advance | |
update.php [code] <?php include 'recipe2db.php'; // get value of id that sent from address bar $id=$_GET['id']; // Retrieve data from database $sql="SELECT * FROM recipe WHERE id='$id'"; $result=mysql_query($sql); $rows=mysql_fetch_array ($result); ?> <form name="form1" method="post" action="update_ac.php"> <table border="1" cellspacing="0" cellpadding="3"> <thead> <th>name</th> <th>ingredient</th> <th>how to cook</th> <th>category</th> </thead> <tr> <td> <input … | |
hiii everyone, I'm novice to this technology. I'm facing a problem in project development, in which I'v to collect the data temporarily during a form fill up which need to contain different details about a person which will be classified as personal details, academics details, project and internship details, achievements … | |
my form window sate (property) is maximized. this is run maximized before. but today it run normally. but when I manually maximized it then it would maximized. what problem with it. | |
Please check my code, it has no error but there is something wrong.. I am trying to generate unique ten numbers from 0-99. then insert/store the generated number in an array(check[]) because later, after filling the array (check[]) with ten numbers, I am going to use it to another fuction … | |
Hey All! I have searched around on Google and have found nothing! I want to know how to make custom controls in C#. But customly designed. For example I don't want to use the custom c# 'Button', but design my own in Photoshop, and bring it in giving it all … | |
Hello everyone! I'm having a bad time trying to find a solution to my problem: I'm developping a client-server application. On the server side, I am calling a method, Recoit (receive), that calls internally msgrcv(), a UNIX system call for message-passing purposes. The problem is that I always receive a … | |
Hi, In [B]search_results.php[/B] I have a variable named [B]$path[/B] which display something like: [I]C:/documents/personal/home.doc[/I] I would like to create a [B]button[/B] that link to a new window which is going to display: [I]C:/documents/personal/home.doc[/I] Right now is being displayed in search_results.php like this: [CODE=php] echo "<td align=left bgcolor=$bgcolor id='title'> <font face='Verdana' size='2'>$path</font></td>"; … | |
Hey all, Working on a medium sized Tkinter app. I have it working fine, but I feel like the app isn't as clean as I would like it to be, namely because I have a million labels and different widgets and I can't figure out what to call them... For … | |
I can't figure out why this snippet of code isn't working :facewall: any ideas? [code] $productref = $order_detail[$i][2]; //#2 is the product ID $orderqty = $order_detail[$i][3]; //#3 is the SKU #[/code] The Array: [code] $order_detail array 0 array id_order_detail string = 1 product_id string = 7 product_qtantity string = 1 … | |
I have a table with entries for ItemID and Amount ... I am querying this table and displaying the contents from the previous date by itemID and amount. I have the array grouping the items by Item ID what would like to be able to do is to get a … | |
Hi i can not seem to find out how to put the output of mxmlc file into an output this is wat i have [code=python] os.system("mxmlc.exe swick.swc -output location/swiff.swf")[/code] | |
The problem ask to enter numb of students up to 100. but the user enter let's say 10. how do i manage to do that in arrays. Sorry if is a bother but i'm a newbie lol. | |
First I thought it had something to do with that new "automatic properties" feature of C#, but when I used the normal scheme for properties I got the same error message : [COLOR="Red"]Cannot modify the return value of 'AxisTest.Form1.Axis.XOrg' because it is not a variable [/COLOR] Wonder what is wrong … | |
I wonder what the way is to Login to my FTP server with encrypted UserName and Password ? Normally when you login to a FTP Server, the UserName and Password travels as plain "text" wich could be "Hijacked" on the way. I wonder if there is a way to send … | |
hi i need a list of command line arguments for flash cs4 | |
I have a program that you can see below. [URL="http://www.summeylabs.com/images/prog.jpg"]http://www.summeylabs.com/images/prog.jpg[/URL] It has a textbox, button, menu, and listview. What the application does is you type in a machine name into the text box hit search it will connect to the machine delete a file i have coded with in the … | |
Hi, I have made a DLL coded in C#, and and executable in C#. I've already have the DLL referenced in my Exe project, so i cannot reference the DLL back to the Exe because it won't let me. Now what I need to do is, call a function within … | |
I am currently writing a weapon class and a projectile class, to use in a top-down game. However, I can't seem to be able to load images in a class. It works in the main function, where I do it like this: [CODE]Image bulletImage =getImage(getCodeBase(),"bullet_machinegun.png");[/CODE] However, this doesn't work inside … | |
how can i don't allow that the picture load again i mean when i refresh my page it loads picture again how can i solve this problem that the upper part of the page will refresh the down part not. I wrote this but it doesn't work on chrome and … | |
hello all, Is there some way that i could create a menu just as we all use in various applications that pops up on mouse right click event with loads of options.......it would surely help me save a lot of buttons... | |
i make that program but this program is giving an error please debug the error #include <conio.h> #include <stdio.h> int main() { int i; printf("This is the first line.\n"); gotoxy(10,4); printf("This is the second line.\n"); gotoxy(20,8); printf("And this is line 3.\n"); return 0; } Thanks,,.... | |
Hi, i am doing an application like a Form builder.. I am having a design page where i am generating the Fields using JQuery and displaying them each in a Div in the Preview panel of the same page. In my code i am saving all the Fields in the … | |
I am working on vb.net Windows Application with an Access database. The program that i am trying to develop is for stock/inventory control. The update works when i update the first time, but then when I want to update another record it just wont update. I have to stop running … | |
Hi How I Can Get To Last Records in DataBase tthat User Enter? | |
So my program is taking input from the user, so it's storing it in a string known as x. But I don't want x to take the input after a hard return, it should keep reading until it hits a certain string, let's say "END", so until the user types … | |
Is there any good 2d game making library for kinda noobs? I've tried alegro but it doesn't work good somehow. If you know any tell please! Thanks | |
Can anyone please tell me what does the this Function do? I understand everything till the "(n * GetPower(n, power - 1))" part. I just can't understand it. I do realise what the "n * " does, it multiplies N to the other side, and I also get what "GetPower" … | |
hi i just installed windows 7 version and i am getting this error while running my vb project [code] The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. [/code] | |
I'm working on a script that lists the number of additional records associated with a record id and returns the number as well as a link to each additional record. It works fine for the first record ... it tells me "4 additional records: and lists the links 1, 2, … | |
Hi, I want to round of the salary amount to the nearest 0.05. eg. if my salary is 1000.23, it should be rounded to 1000.25 and if the salary is 1000.26 it should be rounded off to 1000.30. The Math.round function is not helpful in the above sceneario. Suggestions pls … | |
Hi All I've seen this topic discussed in various forums, but that was awhile ago and they didn't really answer my questions. I'm looking for a version of py2exe that works with python 3.0.1. As far as I know, there isn't one that has been developed yet. Has one come … | |
Hi all, I know a little bit of thread but the problem is that I did not know how to implement it to my code. I have this code that send sms but when the sms is send, it sent successfully but the message that is sent is only half … | |
Hi, I really hope that someone can give me a little advice. I am working on a program that reads a text file formatted as follows: Bike, Schwinn, 45.00 Car, Mercedes, 98,000 ... I am writing a program that will read this text file and write each item in a … | |
Hi, Having troubles with the conversion of date in a textbox i think.... currently txtDate.text has the date format of dd/mm/yyyy and im trying to grab data from the database that is equal to that date and put it in a listview. Problem Im haivng is the conversion from MM/dd/yyyy … | |
Hi, I am new to this Forum and I hope my question is not out of scope. The following 4 lines of C# code allow me output specific fields from my XML to an HTML file (result.html). The code works fine when I have an XML file (sample1.xml) and an … | |
Hi All i m reading Xml file attchment in email using pop3. but i m getting extra char in xml after xml read. [code=xml]<FinalDraft DocumentType=3D=22Script=22 Template=3D=22No=22 Version=3D=221=22> <Content> <Paragraph Type=3D=22Shot=22> <Text>=E2=80=9Clighting is everything=E2=80=9D</T= ext> </Paragraph> </Content> </FinalDraft >[/code] like -- =22 and 3D <T=ext> pls help me and give me … | |
hello experts, i am developing a site which includes playing video.. In the index page one default video should be played. i bound all the categories in the dropdown control.. when i change the category in dropdown it lists all the videos in that category. it works fine.. But the … | |
When i try to build a visual studio solution it does not want to build so far this is what i have [code]os.system("devenv.exe filename.sln /Build")[/code] | |
Is there any libraries that can connect two or more computers that are on a lan together and send data to eachother? | |
how do i add a jComboBox into jTable as one cell in the row Thanks Greg | |
i am a real noob in php i have a php url say [url]http://xxxxxx.php?chat=[/url] if i give zzz at the end of the url like this [url]http://xxxxxx.php?chat=zzz[/url] the output is yyy i want a script to get the zzz from another script using $_REQUEST['msg'] and the final output of the … | |
hi everyone, I'm to some extent beginner in java. first of all let me explain a bit about our project and then I will explain the problem. In our project there are Agent programs sending their Data via UDP connections to the Server program, Server performs some math on data, … | |
Hi, A user go to search.php and input the term. If the user want to search for an exact prhase it add to the search term " " just like Google do. Example: "apple" But when the variable is passed to search_results.php it look like this: [CODE=php] //search_results.php $var = … |
The End.