199,114 Archived Topics
Remove Filter ![]() | |
Well just run, the only thing is that this is created using python 3.x. no modules required. | |
Is python 3.2 stable yet, because i use portable python v1.1py3.0.1, so far I'm making improvement, but I have problems loading modules, how do I go about it. | |
Please i just downloaded the latest version of pygame, but I've been finding it difficult to install, okay when i unpacked it, everything came up, but i don't know which should go to which. Python experts in the house what do i do. | |
Hello - I am using Visual Studio .net 2008. I have a form that has a tabpage control in it with 5 pages. I need to add another page, but in position 2, not at the end. Is this possible? I do not see any settings for the position of … | |
I've found that often in my code I have a need for primitive variables protected with synchronization objects such as a boost::mutex, and I was wondering if the boost library provides a template similar to this one I'm considering, based on the C# property methods get/set: [code] template<typename var_type> class … | |
I have a program,but there is an error, please help me, thanks program to include six string data (name of city), then do the sorting of the six cities data and print data before and after sorting. but in terms of input data strings, there is an error, please help, … | |
i have the following code that isn't working correct [CODE] Dim con As New SqlConnection Dim cmd As New SqlCommand Try con.ConnectionString = "Data Source=" & ServerV & ";Initial Catalog=" & databaseV & ";Persist Security Info=True;User ID=" & usernameV & ";Password=" & passwordV & "" con.Open() cmd.Connection = con cmd.CommandText … | |
hello, I am building an application where I have two integers and I have to add them or multiply. I have to use a function to add/multiply this two numbers and call it from the main. I have done this so far. [CODE] int main() { int user_choice; int num1; … | |
[CODE]hey i am designing a Registration Page. In that i am having 3 comboboxes, one for country,one for state & last one for city. I am able to display all countries, states & cities entries from database. Here is my code. SqlDataAdapter da = new SqlDataAdapter("select * from Country","Data Source=.;Initial … | |
Hello everyone. I am having hard times in dealing with this problem which I've been given. It simply asks me to shift an array K positions without using additional memory. I cannot ask them what they mean by that. No memory, like... not even using a temporary variable for the … | |
Hi, I am in process of creating a Money class, as per requirement I am suppose to represent each denomination by a class(eg: $5Class, $10Class etc.). I want to use inheritance in this scenario. I cannot think of the class design. I was able to create a class design for … | |
Hello. I've got a homework assignment involving reading an unspecified number of numbers from a data file, storing it into a dynamically allocated array and doing various sorts and such(the output is basically a list of grades on some test that I do stuff like sort, average, give an accurate … | |
Hi... I have a problem to load a PDF file which is stored on another machine.I had loaded the PDF on the same machine using following PHP script.Here I had used a hyper link to load PDF. [CODE] <?php $file="first"; $pdfFile=$file.".pdf#page=1"; ?> <a href="<?php echo $pdfFile; ?>" target="_blank" > Click … | |
Dear All, I just found out something weird. When I create a new data, key-ing in all details and for date as well. So when I click on the button Edit, Yes I can perform the edit function, I can edit everything. Then, once I click on Save, yes it … | |
problem in importing javax.mail.internet; can any one please help | |
Hi There I just wanna find out how I can save some data to a text file or access database (doesn't matter - the one that's the quickest). What my form does is it has a list box with ID's in it. I can select them. Then I have a … | |
iam working on project in asp.net using c#.... iam getting this error when iam inserting value from form to database... Incorrect syntax near 'nvarchar'. Must declare the scalar variable "@Occupation"... how to remove this error... plz reply... | |
I need help in pulling this program apart, and reformatting it to use functions that I didn't know i needed to implement until right now. * float calculate_time (4 parameters) finds the amount of hours between two times given. It should return 0 if the amount is less than 0. … | |
on each form is the "X" at the top right of Form. how ya how to disable or remove "x" is it? | |
Hi guys, i'm doing my FYP, and facing the following problem. below is my code for the javaScript [CODE] <script language="JavaScript"> function deleteAccount(ckId){ [COLOR="Green"]alert(ckId);[/COLOR] var index = document.getElementById(ckId).value; document.getElementById('hiddenind').value = index; var conf = confirm("Are you sure you want to permanently remove this account?"); if(conf == true) { [COLOR="Red"]document.form.action = … | |
Dear friends: I wrote the following c++ codes to create a series of filenames as "iteration number.dat". [CODE]#include <iostream> #include<string> #include<sstream> using namespace std; int main() { string outbuffer; ostringstream outs(outbuffer); for (int i=0;i<5;i++) { outs<<i<<".dat"; cout<<outs.str()<<endl; } cout<<outbuffer; return 0; } [/CODE] I tried to use the ostringstream to … | |
Hi everyone, Please check php code below, when i load this page in browser it gives me following errors. "Notice: Undefined index: submit in E:\wamp\www\login\register.php on line 4" "Notice: Undefined index: fullname in E:\wamp\www\login\register.php on line 5" "Notice: Undefined index: username in E:\wamp\www\login\register.php on line 6 "Notice: Undefined index: password … | |
Hey Just thought I might post some code I've Been refining its not really useful but it shows (sort of) how to print formatted text if you have any suggestions please I've almost got the kinks out weird numbers will cause it to output weird. But if you throw 9 … | |
I have two table of same data. First table is written by the admin and the second data is written by the user. Now I want to compare these two and see if they match, if not then the correct data is displayed. So far I am retrieving the user's … | |
I have two delete function and would like to make this as one. So I can use this on my webpage. But not sure how? Anyone willing to help me :D [CODE=php] DELETE FROM test WHERE Tes_ID=$Tes_ID; DELETE FROM question WHERE Tes_ID=$Tes_ID [/CODE] | |
Hi everyone! I'm making my own forum without any bulletin board system that is already done and all you need to install, no idea why my own to make a code made ​​by me. At the time of creating a new topic in my forum, What me recommend the text … ![]() | |
What wrong with my coding? when i run..nothing appear.. The output should be: Perimeter of Rectangle 1: 22 Perimeter of Rectangle 2: 6 Perimeter of Rectangle 3: 18 Perimeter of Rectangle 4: 4 [CODE]#include<iostream> using namespace std; const int TOTAL= 4; void CalculatePerimeter(int perimeter[], int width[], int height[]); //const int … | |
Hello All, I am having one email template code as shown below. [CODE] <table width="400" border="0"> <tr> <td><strong>Id</strong></td> <td><strong>Name</strong></td> <td><strong>Address</strong></td> </tr> <tr> <td>##ID##</td> <td>##NAME##</td> <td>##ADDRESS##</td> </tr> </table> [/CODE] Site administrator manage this. Now i want php code to dynamic replace [B]##key##[/B] code. It is simple for one record but here … ![]() | |
Hello everyone, I have one container div with several <div>About</div>, <div>More Info</div> etc. in it. on the main container I applied onmouseover to execute a JAVA function. Apparently, every time I hover a <div> in the container it runs the JavaScript again. What is it, I'm doing wrong? Thanks in … | |
Hi all, I'm working on a login system for my site. But when I use mysql_num_rows I get an error [CODE]"Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/patrickm129/patthepcwizard.com/login02.php on line 25"[/CODE]. I'd really appreciate it if you would be able to solve this with me. P.S.: … | |
Hey guys, What would be the easiest way to retrieve Google Analytics Monthly Visitors & Pageviews? I just want to display them in text for my website like: Visitors this Month: 1,222 Pageviews this Month: 3,433 If you have example code or a link to a tutorial that would be … | |
Hello Everybody, I have a small confusion with regards to pointers. Here is some code [CODE] int main() { int *p1 = (int*)malloc(sizeof(int)); *p1 = 10; printf("The number is %d",*(char*)p1); }[/CODE] I run the code and the O/p is 10. My question is, is there no difference in using char … | |
I'm trying to create a vertical histogram using only built-in modules. I understand the current histogram function isn't truly a histogram (and the code is probably very ugly), but I'm totally lost on how to create a vertical histogram. [CODE]import itertools def histogram(s): print("Histogram:") print("%s %7s %12s" % ( "No.", … | |
The result of this below only print out John 90 Shawn 100 Melalin 75 Jane 80 What i want is Melalin 75 Jane 80 John 90 Shawn 100 I tried all methods but still can't think of how to make it arrange from the lowest score to the highest. Can … | |
Hi, i wants to store the key and value of an enumerator to a dictionary, but i have no idea about how to convert enumerator.value to type of double : [code] public void Display1() { listbox.Items.Clear(); Dictionary<string, double> sortList2 = new Dictionary<string, double>(); Dictionary<string, double> sortList3 = new Dictionary<string, double>(); … | |
Hello, im currently using this kind of Hotkey : [CODE] if(GetAsyncKeyState(VK_F1)) { if (this->checkBox1->Checked == false) { this->checkBox1->Checked = true; } else { this->checkBox1->Checked = false; } }[/CODE] But its not very good. I couldn't find a better way to do this :/ (im using Visual Studio 2008) Anybody knows … | |
hi guys i need to save an image that will be displayed on a vb.net form. how do i get round this: 1. how do i get the image before saving it in the database? 2. how do i save the image in the database? 3. how do i fetch … | |
i'm trying to make a hangaroo game imitation but i dont know how to make the 4 labels to individually be marked as "X" when i click the wrong letter. i made all the letter answer invisible and the "X" mark invisible [CODE]' the Answer is "PLANTS VS. ZOMBIES" Private … | |
I am trying to find out inorder successor of a node in a binary search tree. I read the algorithm from "Introduction to Algorithms,Cormen" and understood it. But the problem I face is that I can't find out the parent of the node when it is needed in the algorithm. … | |
hi, How do i check for time difference for eg: i have code like this [COLOR="Red"]If GetServerDateTime() < Format(Now, "MM/dd/yyyy hh:mm:ss tt") Then msgbox ("Invalid datetime") endif[/COLOR] i want to make it like if the time difference is within 2 min from the current time.... the application still can allowed … | |
Hi, I am create one application in asp.net. I have to use datagrid view in this application. I want to sort Gender. I am use the template field in datagrid view. [CODE] <asp:LinkButton ID="LnkBtnGender" runat="server" CommandName="Sort" CommandArgument="Gender">Gender</asp:LinkButton> [/CODE] plj help me.. | |
how to insert the values of checkbox and radiobuttons in the sql databse using vb.net??? we are getting problem in inserting and don't know what to do................ like i have one form with two text boxes named username and password and one label say gender....which has two checkboxes male and … | |
ok so for some reason its telling me my "else" has no matching "if" in line 51, i have to make it so the binary output is spaced which im pretty sure i did and has to have a separate output if the character length is more than 8 [CODE]#include<iostream> … | |
[CODE] #include<iostream> using namespace std; char* Invert(char* input,int start,int end); char* reversewords(char* current); int main(){ char inputstr[] = "London is a city"; cout << "Inverted string : " << Invert(inputstr,0,strlen(inputstr)) << endl; int start,end ,i; while(*inputstr){ if (*inputstr == ' ' || *inputstr == '\0') { Invert(inputstr,start,end); start = i+1; … | |
Create a class that represents the grade distribution for a given course. In this class you should write methods to perform the following tasks: Read the number of each of the letter grades A, B, C D and F Set the number of letter grades A, B, C, D and … | |
hi frens.. i ll simplify my requirement and explain the issue.. lets say, i have 3 textbox rate, quantity, total and a "add row" button. I must be able to add any no. of rows. There must also be a supertotal field before the "add row" button to display the … | |
Hey everyone, I'm new to the site, this site returned the most results when trying to look for relevant information so here i am. I have seen people write questions to assignments on here without trying expecting people to answer the assignment question. And ive also seen people steal code … | |
Write a Payroll class that uses the following arrays as fields: [LIST] [*]employeeId. [*]hours. [*]payRate. [*]wages. [/LIST] [U]employeeId.[/U] 5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489 I should have two classes: [LIST=1] [*]Asn07Employees [*]Assignment07 [/LIST] *I am to use arrays and not vectors Here is some skeleton code that my instructor … | |
I've download this following program source from a SVN repository.. [url]http://blanddns.no-ip.org:81/repos/public-smart/[/url] How do I compile it?? I've tried but it has c++ and java files included in it.. and some are even in separate folders. Can someone tell me how? Do I have to do command line? Do I need … | |
i'm writing a C program in unix that take a number upto 5 and creates that amount of threads..if the use doesn't enter anything the program quits after 5 secs...and this is where i'm stuck T_T ..how do i do this ? time.h ? code of wat i've done so … |
The End.