64,152 Solved Topics
Remove Filter ![]() | |
Implement the following improvement to the quick sort and find out the percentage of key comparisons that can be saved in each case. Using randomly generated 1000 integers as input for sorting. Repeat the experiment 1000 times for each case to get the average percentage reduction in key comparisons. Case … | |
if db.open = true then db.close End if I want some code like this where it will check in the form load and if the connection is open , and if it is open it will close it.. | |
hi, Im running debian/ubuntu linux and am trying to get a script/module that runs each time python is called from terminal. I am trying to write scripts that use Scipy,numPy,pyLab, etc and am trying to have all those packages import automatically each time python starts. I am not new to … | |
Hi, I am downloading url using urllib2, the problem I am facing is some times server goes down and then read will take indefinite time. I dont want that, I want to raise a exception after 20 secs in this case. There is solution using signal.alarm but it works only … | |
can anyone suggest any tutorials for the vc++ resource editor? or can anyone tell me how to use it? i know how to design the forms but i dont know how to use it in my code any help would be appreciated :) | |
Hello there. I have successfully read my emails from outlook into access. The problem is that I am trying to get the sent date field but I can not figure out the command for it. Below you will find the commands I used to find the subject, body and sender. … | |
please can anyone give me more information on how to solve this problem i have. im writing a php code to create a form for a ms access database, i want customers to be able to select or tick various things they want in our services either from a dropdown … | |
I found this while googling for something [url]http://msdn.microsoft.com/en-us/library/ms177203(VS.80).aspx[/url] I tried it (with g++) and it seems to be a syntax error - is this like something specific to Visual Studio or something? Dave | |
Hi everybody Thanks again for your helps in my last thread. Now, I have some more problems. :( 50 Errors for this program. Certainly, a basic problem within the structure of class "Block". This assignment is all about "Class and objects". We can use functions, but no arrays. [code=cplusplus] #include … | |
[code=csharp] public struct MY_TYPE1 { public int A; public int B; } public class MY_TYPE2 { public int X; public int Y; public MY_TYPE1[] array2 = new MY_TYPE1[80]; } MY_TYPE2[] array1= new MY_TYPE2[800]; public void MtMethod() { [B] array1[0].array2[0].A=0;[/B] } [/code] When i try to use this code ,a null … | |
i have problem passing double pointer to my funciton first i declare: [icode]int m, n;[/icode] i read m and n from user just fine (i've checked that) then i declere: [icode]int farm[m][n];[/icode] and i have a function... [icode]void harvest(int **farm,...);[/icode] and when i call it with: [icode]harvest (farm,...);[/icode] it says … | |
guys i have come to conclusion that basically pocket internet explorer for windows mobile 5.0 and pocket pc 2003 basically dont support javascript. It is better to do everything based on simplest html tags. | |
i need documentation for internet explorer 4 javascript support. thanks | |
Hi Guys! I am trying to get a scroll bar to go to the lowest position possible. I am using a chat program and it bothers me that I have to scroll down to see new messages! I googled around and found lots of answers for flash, and other languages … | |
Here is my code: [CODE] override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } private void InitializeComponent() { this.cmdUpload.Click += new System.EventHandler(this.cmdUpload_Click); this.Load += new System.EventHandler(this.Page_Load); } private string strConn; OdbcConnection cnn; private void cmdUpload_Click(object sender, System.EventArgs e) { OpenDatabase(); if ((File1.PostedFile != null) && (File1.PostedFile.ContentLength > 0)) { // … | |
Hi, everyone! At work, I'm having problems to run a XPath using the selectNodeList() method from Xalan. The XPath I want to execute is: //pam:message//prism:coverDate The error message I have is: The prefix 'pam' is not declared. expression = '//pam:message//prism:startingPage' Remaining tokens are: ('/' '/'). I have searched on the … | |
OleDbConnection thisConnection = new OleDbConnection( @"Provider = Microsoft.Jet.OLEDB.4.0;Data Source=e:\DataMoney.mdb"); OleDbDataAdapter thisAdapter = new OleDbDataAdapter( "SELECT * FROM SchoolMoney", thisConnection); DataSet thisDataSet = new DataSet(); thisAdapter.Fill(thisDataSet, "SchoolMoney"); OleDbCommandBuilder thisBuilder = new OleDbCommandBuilder(thisAdapter); thisBuilder.QuotePrefix = "["; thisBuilder.QuoteSuffix = "]"; //set up keys object for defining primary key DataColumn[] keys = new DataColumn[1]; … | |
i have built a page which loads content into a div tag from a php page using javascript. the problem i am having is that the title for eachg page is not inside the div so i keep being left with the same title on each page. i have tried … | |
Hi there, i'm new to this community, but need URGENT help with two questions. i'm doing a subject on computer science, and regretfully my book is to know help in assisting me to answer the following two questions...if any one can help, it would be greatly appreciated QUESTION 1 write … | |
Hi, I have a file of approximately 4.19GB. I want to get the totall size of file using code in VC++, Here is my code [code] FILE *fptrSampleVideo = fopen(filename,"rb+"); if(fptrSampleVideo) { fseek(fptrSampleVideo,0,SEEK_END); uncompressedVideoSize = ftell(fptrSampleVideo); } [/code] If the file is of small size, ftell() return position correctly and … | |
Please can anyone tell me how to calculate time complexity of following algorithm in terms of big theta l=0 for i=1 to n do for j=1 to (n*n) do for k=1 to (n*n*n) do l=l+1 thanks in advance | |
hi, i want the name of the image selected by a user when uploading an image to be changed to his username. wrote this code but the image stored gets corrupt every time.. [code] protected void Button1_Click(object sender, EventArgs e) { String imagefolder="images"; String path; String savepath; if (FileUpload1.HasFile) { … | |
Hi, I am using copy_n from GNU C++ Library under Ubuntu 8.10. My code is like this: [code] #include <ext/algorithm> using namespace std; void myfun(char * flags ) { char * flags_new = new char[3]; copy_n(flags, 3, flags_new);// both copy_n and copy would give not in this scope error. delete … | |
This is not a complete program, I have comments to omit the incomplete portions. After "Player One" enters a row (see lines 54-5), the program ends. It outputs the "Enter a column" and the board and ends. I don't see why. Any help would be greatly appreciated! (Output after runtime … | |
Hi, learning swing at the moment and was following a tutorial off the sun website, made mine with eclipse instead of netbeans. but all I get when I try to run it is the following in the Console window: gap= 4 gap= 0 Not sure what is going on here. … | |
I have this assignment to write my own malloc program and I am having some trouble. I am using a doubly linked list to manage free space and used space, and using next fit to allocate the memory. the problem that i am writing about is when i return the … | |
I'm not sure what forum this fits into, if any, but the program itself is going to be written in Java (not that it matters much). My question is, what is the easiest software to use that I can create a drawing of a GUI with? The GUI I want … | |
Hi all, I'm just asking for help for my linked list sort function, I'm not including my entire program, as I'm sure my problem lies in my sort. I need to sort the linked list by rearranging the pointers, I was fairly sure I got the function correct. When I … | |
i want to add a control to a windows form using a method in some class file, then i want to access that control to register to its events. it must be done with one line of code, i know it from asp.net but i dont know how to do … | |
Hello! I'm trying to create some files in the folder where my exe is located. This works just fine in VS 2008 C# express, but when I publish the file, (e.g.: D:\Program), it refers to quite an other place (somewhere in my documents and settings' applications folder) I've tried several … | |
Consider the following script [code=python] #!/usr/bin/env python # foo.py import sys print sys.argv [/code] When I run this in a terminal with arguments, here is the output [code] $ ./foo.py -h hello -m "this is a string" ['./foo.py', '-h', 'hello', '-m', 'this is a string'] [/code] My question is: is … | |
greetings everyone, i seem to be having an issue with a function that has a reference n a value to do a loop. the nature of the prog, is to roll a dice (n) times n then count the number of time srand rolls an even num. for the most … | |
Compiler errors: (In main) Line 9:cannot convert char (*)[3] to char* for argument 1 to void showboard(char*, int, int) (in showBoard) Lines 16, 17, 21, 22, 26, 27:invalid types char[int] for array subscript I don't understand these errors. I am trying to make a tic tac toe game, I have … | |
hi i am using asp.net (VS 2005), the password recovery control gives me the foll error.. The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. b4sm1464356tic.36 i have a gmail account, the details of which … | |
For the last 3 days I have been trying to compile m assingment on visual studio 2008. Its giving me error: [QUOTE]Error 2 error C2143: syntax error : missing ';' before 'using' screen.cpp 27 Assignment_2[/QUOTE] This is the same error its giving me in my main: [QUOTE]Error 1 error C2143: … | |
I made a datareport simple. just connect. but I want to make it with condition. I have 2 dtpicker for date. I want 1 day report or weekly or monthly report by dtpicker. example I want 03/11/08 report or 01/11/08 to 03/11/08 report. But I dont know how make it. … | |
Does anyone here have a wxPython code that converts a folder of images to a .wmv file just by clicking a button? What I did in my program was I load an Image-to-Video Converter Software by clicking a button but I feel that it would be better if I can … | |
Having a big project and having to compile it in order to run it each time, takes long time. I want to run it without build stage if possible(provided that i didnt make any change to source codes). Any ideas? Thanks. | |
hi,pls wat does this symbol mean(%)?i know it means remainder,but can not seem to understand in what context . for example if you say hours = hours%24; minutes = mins%60;................. | |
Hi, How to get the value from a hashtable irrespective of its case... plz reply ASAP. Thanks in advance, Shilpa | |
I tried a code like this [CODE] #include <stdio.h> int main() { enum a { b, c, d, e,}f; printf("The stack top is near %p\n", &(f = e) ); return f; }[/CODE] and got message : error: lvalue required as unary ‘&’ operand I use gcc4.3.2. and I had tried … | |
How to convert ISingleResult<..> to List? in WCF? please give detail information... | |
Whats the difference between loading an XML into a string or from a file stream? | |
Hello! I am a newbie to scripting and I'm trying to start an application via a bash script after checking to make sure that two condititions do (or do not) exist first. I've attempted to write down what I'd like to do and was hoping someone could point me in … | |
what's wrong with the code, it doesn's display the data based on the SQL query: Private Sub cmdSearch_Click() On Error GoTo Notfound squery = "": squery = "Select * from tblStation where Station like " & txtStation.Text & "" Call ExecuteCommand With Me .txtStation = rs!Station .cboCluster = rs!Cluster .txtArea … | |
hi all, I have one problem with resizing forms. I am developing our application in vb and i gave code for resizing forms in resize event of form. First i save the sizes of all controls in forms in form load event and then in resize event i resizes all … | |
Where should I get the declaration ADODB.Stream Object? as far as i know, ADODB library has only 4 objects: Command, Connection, Recordset & Parameter. I need this object for the Image DB. thanks | |
Hi I have a command that produces the following: [code] /usr/ucb/ps -auxxx|awk '{print $3,$4,$2,$1,$11}'|grep -v 0.0 %CPU %MEM PID USER COMMAND 0.2 5.217405286920 1910 noaccess 0.1 0.1 180 root 0:43 0.1 0.1 686 root 0:41 0.1 0.1 26198 chris /usr/lib/ssh/sshd 0.1 0.1 26767 root /usr/ucb/ps 0.1 0.1 26215 root bash … | |
hi I have designed a php script an was wondering about a way that I do not allow the customer who buys to install it on more than one domain. I am concerned about the logic of it more than the scripting, but if there is a script available to … | |
how do i find methods in a .exe so i can create a dll injection that uses those methods? |
The End.