199,114 Archived Topics
Remove Filter ![]() | |
I have downloaded vpython and try to run one of the examples included with the program. [CODE]from visual import * floor = box(length=4, height=0.5, width=4, color=color.blue) ball = sphere(pos=(0,4,0), color=color.red) ball.velocity = vector(0,-1,0) dt = 0.01 while 1: rate(100) ball.pos = ball.pos + ball.velocity*dt if ball.y < 1: ball.velocity.y = … | |
Hi, I am using tcpdf library to create pdf files and they are password protected.Now I have a condition where I want to merge different pdf files and create a single pdf file and dipslay the multiple pdf files to the user in a single pdf file.I am having problem … ![]() | |
I want like a ranking system that works something like this. User clicks on something there is a percentage chance that they will suceed. And if they do they get xp. but if they fail they only get like 1 xp. Anyone a mmporg Coder. Because I will Pay up … ![]() | |
Hi i have a pages on my cms and I made a category system now i dont now how to add the category to the pages i want to have an option on the new add of page by the category that i made someone now how to ? | |
Hi everyone, I was wondering if anyone could help - I'm trying to split up a char* that contains a string, something like "*Stephen*10:11:00*02/07/2012*Hi there" I'm trying to split it up so it gets the position of the first * then the second, and stores whats between them in name … | |
![]() | How to write a program that will find the smallest, the largest, and sum of squares values in a collection of N numbers? (using loops) |
Hy I want to install ubuntu on android netbook using a usb data link and my pc I have seen on the web a video where is used and eeepad from asus Can I do this with my goclever i102 netbook? Thank you in advance | |
I was wondering if there is a way to open an SQL file and execute it from a c# application without prior connection to a database and also get the name of the default server that is used when SSMS is opened. at the moment i can open SSMS but … | |
Hi People, Got some issue with radio buttons... I want to pass the form details WITHOUT PAGE REFRESH.... I have a textbox and 2 radio buttons with values Subscribe and Unsubscribe and a submit button. The user has to enter his E-mail id in the given textbox and select either … | |
Hi all Is VB6 a good tool for developning database apps for the XP and beyond OS ? I am especially intrested in sma; datyabases like coin collectors databases . Thanks Elico | |
**alue** I have a Customer class and a Repair class I have a TreeMap(customerDetails) of type <String, Customer>. Each Customer object holds a HashMap(repairs) of type<String, Repair>, the String represents the ref number of the repair. The user of my system types in a ref number, the program searches to … | |
How di I use I/O redirection to load the input into an array ? % a.out < inputfile That's what I found. I don't know if that's all you need or if there's more.. | |
Hi, I have a table with a timedate collumn. I want to get the text of the article and its creation date, than to output them on my page. How can I just get only the date value from a query or php script manupulation? | |
I have to write an application in python for image processing.I have made scripts of all the image editing options. Now I want to add GUI in it. I want a window where I can give the path of an image on which I want to perform the editing! At … | |
Struggling to get the following code to work. The code works if I just put an individual table in SELECT FROM, but I can't get anything when I try and do INSERT INTO table and then substitute it in. I am a complete noob at this and I know in … | |
Warning: mysql_query() [function.mysql-query]: MySQL server has gone away in C:\xampp\htdocs\a_upload\upload.php on line 71 Warning: mysql_query() [function.mysql-query]: Error reading result set's header in C:\xampp\htdocs\a_upload\upload.php on line 71 GalleryUploadMessageProfileStatistticsChange PasswordDelete Account if(!$sql=mysql_query("INSERT INTO image VALUES(NULL, '$user_id_db', '$image', '$image_keyword_p' , '$image_full_name', '$image_short_name_p', '$image_des_p','$file_size' ,'$image_resolution', 0)")) Warning: mysql_fetch_assoc() expects parameter 1 to be resource, … | |
here are the files guys all I need is to connect my C# app to my sql in server management studio, please help and if possible, please include the step by step on how to do it. Thank you very very much! | |
I've looked everywhere and haven't found a clear step by step tutorial on how to secure sessions/cookies. Here are snippets of my code, i'd like to know how i can improve on session security to prevent fixation/hijacking and cookie safety. This is snippets of code for the user login system. … | |
As the title says, I need to stop a user's browser from caching the form they've submitted. Is there any way of doing this? | |
Hi, Anyone suggest/Explain code optimization, time complexity of program. I came across Big O(n), Big O(...). can anyone explain what these means and how to find these for programs. -- Thanks in advance | |
Hi, People... I have a question about reading xls files in python then parsing it to sqlDatabase. The thing is, that the xls file(pricelist) we as a company use are ordered and it's pretty easy to sort that out. The problem comes with xls files from other companies. (We are … | |
I created an instance and did some fault while moving the files from one location to other and now the server doesnt start and i need to execute a query in SQL SERVER Management studio in order to open a new query feature it again ask to start the server..the … | |
Hi, all this is my file expire_show.php it shows expiry of those agreements which will expire with in 90 days from current date. Users have to login to their accounts for viewing these expiry alerts. but they require these alerts on their email. [B]1. how i can format these for … | |
Hi everyone I am trying to plot the data within the class XYDataset regress, vertically, right now they plot horizontally. Any help appreciated: package brainwavesanalyser; import java.awt.Color; import java.awt.Paint; import java.io.IOException; import java.util.ArrayList; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.DrawingSupplier; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.StandardXYItemRenderer; import org.jfree.chart.renderer.xy.XYItemRenderer; import … | |
Hello guys, I am trying to insert watermark as text in word 2007 using c# but getting error can u pls help me out. here is my code... //THE LOGO IS ASSIGNED TO A SHAPE OBJECT SO THAT WE CAN USE ALL THE //SHAPE FORMATTING OPTIONS PRESENT FOR THE SHAPE … | |
im having a problem on my sql command. here is my command select ProductCode, ProductName, qtyinstock, critical from product where qtyinstock <= critical but it keeps on showing record that qtyinstock is not less than or equal to critical see this image http://a4.sphotos.ak.fbcdn.net/hphotos-ak-snc7/482956_437601922940311_1148836844_n.jpg | |
Guys can you please tell me that which is best (XML or HTML) actually i want to create a sitemap of my website so that's why i asking to you this confusion. please share your thoughts here... Thank You. | |
Hello all, I have this C# code where in I am writing some datato an excel sheet and then saving it using saveas. But when I run the program again for the next time it is asking me prompt whether or not replace the exisiting file. I want it to … | |
Hi, I am writing a game. Three card brag. The rules of the game are 1.Each player is dealt three cards. 2.The hand is then assigned a rank based on the cards recieved 3. The hand Ranks are 0,1,2,3 4. the hand ranks are then compared and the highest hand … | |
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\a_upload\index.php on line 114 line 144: while($row = mysql_fetch_assoc($R)) $count = 0; $Q = "SELECT (SELECT image_short_name FROM user) as `image_short_name`" .",`image_id`,`user_id`,`image_short_name`,`image`" ." FROM `image`" ." ORDER BY RAND()" ." LIMIT 5"; $R = mysql_query($Q); echo " <!DOCTYPE html> … | |
I'm really confused with this! I have 2 classes, Club and Membership. In Membership I have the method, getMonth(), and in Club I have joinedMonth() which takes the parameter, 'month' - so a user enters a month and then I want it to return the Membership's which joined in that … | |
Good day to everyone.. First Here is my code so far.. import java.io.*; public class Inventory { public static void main (String[]args)throws IOException{ BufferedReader bv = new BufferedReader (new InputStreamReader(System.in)); String x, z; boolean y = true; int a, b, c, d = 0; do { System.out.println("--------------------------------------------------------------"); System.out.println(" M I … | |
Hello, I am attempting to write the merge sort algorithm which will generate a vector of 20 random integers and then sort them. The problem is, it does not output the sorted list, it merely outputs a series of zero's and one's. My code is as follows, any help is … | |
I got the IndexOutOfBoundException in the following code. but I cannot find where went wrong. import java.util.ArrayList; public class sumArrayList { public static int calculateSumArrayList(ArrayList<Integer> Integers) { ArrayList<Integer> duplicate=new ArrayList<Integer>(); for (int i=1;i<=Integers.size();i++) { duplicate.set(i,Integers.get(i-1)); } return calculateSumArrayListHelper(Integers); } private static int calculateSumArrayListHelper(ArrayList<Integer> Integers) { //first: arrayList size 0 if … | |
Hi, I have some images which I update like below: count++; if(count >= sizeOfArray) { count = 0; } for(u32 i=0; i<sizeOfArray; i++) { s_image[i].image->setVisible(false); s_image[i].reverse->setVisible(false); } I want to know, how do I reverse it. I mean, it is increasing the count and I want to decrease it. The … | |
I'm out of practice on my C++ and have kind of picked up a new hobby; it turns out that I like creating electronic devices. Particularly amplifiers and sound to light kits. Stuff like that; the problem is that determining the amount of resistance a resistor on an old creation … | |
So awhile back I came here asking for help trying to read in data from a webpage, more specifically the HTML. I was running into an issue where the data wasn't actually being read (as if it hadn't loaded in). I had to put the program aside for awhile as … | |
i have a form in one page thet leads me to another page . exemple: when i want to delete a page in my cms , i am click on the icon that is leads me to page called delete.php. i want that when i click the icon the option … ![]() | |
If a heap is like a binary search tree shouldn't it search in O(log n)? | |
I've been working through an excersise in a introduction to Java book by Deitel and I have a solution to a problem. The program will compile, but I get a message that says, "Exception in thread "main" java.lang.IllegalArgumentException: adding container's parent to itself" Can Someone please help me? Here is … | |
![]() | This is a program using the `urllib` module to find the (html/any client-side script) source code of any website which exists. Have fun! |
hello, I am a beginner in ASP.NET and I really need your help. I have a simple database, I want to show list of names (customers) in a dropdown list and, according to what I click on the dropdown list, to get the table updated below... with data corresponding to … | |
can anybody tell me how i can upload a file without user interaction.the file full path is known and can be hardcoded.there will be a button on page when user press it the file should be uploaded. Active-x i sone solution but for that the user have to low down … | |
currently I'm rewriting old euler solutions into classes so i can store them in a library. I wrote a program that digitizes a number so it can check to see if it a pallindrome, The base class digitize dynamically allocates memory for the size of a number and stores each … | |
I have a problem to update my sql <?php $host="localhost"; // Host name $username="matanc_cmd"; // Mysql username $password="123123"; // Mysql password $db_name="matanc_cms"; // Database name $tbl_name="content"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id … | |
Hi Guys First of all i would like to state that i am new in php so my question might appear stupid for the geeks here. I want to create an image downloader in php , that is i need a textbox and a submit button. The user enter each … | |
![]() | Hi guys, I am having a problem with the following code: #Health set here def win(): import time print "You win!" print "Thanks for playing" time.sleep(10) quit() def lose(): import time print "You lose!" print "Thanks for playing" time.sleep(10) quit() from random import randint pos_damage = randint(15,472) en_health = 1000 … ![]() |
How can I create a Modifiable Const vector but make it unable to be resized? Either that OR I want to return a pointer from a function but not allow the user to delete it. This is my example so far: class MemberRawArrayVector { private: vector<unsigned char> MemberRawArray; public: MemberRawArrayVector(int … | |
my code gives undefine index error .. and i don't know how to solve it... i m making online testing program but every eror in every step is undefine index error... ok my html file is <html> <form action = "http://localhost/onlineexam/home.php" method = 'get'> <center><h1>WELCOME TO ONLINE EXAMINATION</h1> <br> <br> … | |
Hi, I am trying to learn some basic game programming and already made simple pong game so I thought next step could be simple breakout. I already got ball and bat made by Rectangle. How about bricks, also Rectangle? If so it would be easy to break them just by … |
The End.