199,114 Archived Topics
Remove Filter ![]() | |
Trying to make a file that tests how many seconds it takes for python to use a while loop to count how many seconds 1000 loops takes. Not working, I don't know why. Every time I run this it outputs "('It took 0,0')"...The while loop didn't start. [CODE]import time import … | |
I am trying to print the corresponding Unicode character for alt+2 to the Windows console window. (the console doesn't display the character, but should display ^B instead) The following doesn't seem to work. Just prints "2". keybd_event(VK_MENU,0 ,0 , 0); //Alt Press Sleep(10); keybd_event(VK_NUMPAD2,0, 0 , 0); // 2 Press … | |
[QUOTE]Hi I need help to center a label with a form. I have tried with the following code but was unsuccessful. [/QUOTE] [CODE]Me.Width = 135 Me.Height = 38 Dim w As Integer = Me.Width / 2 Dim h As Integer = Me.Height / 2 Dim lblw As Integer = Me.lblnumber.Width … | |
hi everyone. Say I have my project directorys set up like so: /glider /libs classes.py /graphics /rooms room images go here I'm trying to access a image from graphics/rooms, but from classes.py. I'm using pygame, and I know to go back a folder in a dir; you use: [CODE=python]# go … | |
So I am programming a heap sort and i am gettin pretty close to where i need to be, but I am having trouble in one of my functions when it heapifies my array. here is the code. [code] #include<iostream> using namespace std; class Heapsort { private: int *array; int … | |
Hi All, I have 6 fields (3 on the top) and (3 on the bottom). The 3 on the top are: Current email: New email: Confirm email: <Submit> <Cancel> Current password: New password: Confirm password: <Submit> <Cancel> Also each one has a required field validations. Now if someone fills the … | |
hello Can u help me ? write an java program that outputs the following pattern. The program shuold prompt the user an odd number of lines (limit 1 to 11) . For example, if the user prompt the number of the lines is 9, then the output should be: + … | |
Hello! I have one main form (parent) which contains others child forms. The first child form is a login form, that after correct autentication opens another child form. Depending on the user (operator or supervisor) some items of menustrip in form Parent should be available or not. The supervisor will … | |
Is there any language or way to write a program that is about 10000 lines in such a way that it can't be re-engineered by decompiling it ? What options are available to pursue ? Thank you for your time.. | |
I am having trouble with the following script: [code] .386 .model flat, stdcall option casemap:none include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include\user32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\user32.lib ;adding all my libs .data nsv db "APPDATA", 0 ;i want to use this in getenv(); fnsv db 260 dUP(0) ; char fnsv[260]; ffn db … | |
Hello everyone, I have used the Vector2 Class which is implemented by my asst. , and I encountered a problem with initializing it. VS2008 kept saying I violate 0xC0000005 Error, and I counldn't find any reason for this. Is there anyone who can tell me what mistakes I have made? … | |
![]() | Hello, I'm having trouble making a little parser for the eix program (a gentoo portage search tool) I need to delete (or not write) the last lines of the output (overlays and total packages), they will start always like '[n]' where n is the number of the overlay and the … ![]() |
xml POST method using http protocol i got a link from a travel hotel booking people like bellow link Each request needs to be posted (through POST method) using http protocol to [url]http://xmldev.dotwconnect.com/request.dotw[/url] and it receives a response irrespectively the request is successfully processed or not informing about the success … | |
I am a beginner in C#. I want to develop a software which will work through Ethernet. I know something about "Serial Port". But I know little about Networking. So I want some software[free] which will create Virtual serial port to both end of the Network and will redirect the … | |
Hi all, 1) Users can belong to a specific group wherein when the group moderator publishes an event, its visible to all the members of group. 2) A normal user can publish event in his own calendar, to make that event visible to all users in group, the group moderator … | |
Hello Friends! As the topic name is clearing, I need help regarding how this "Fibonacci Search" works? [B]The basic concept behind introducing this Fibonacci Search?[/B] [U]I neither want replies telling it's based on Fibonacci Series nor the code but the actual logic behind it.[/U] As of now I've clearly understood … | |
Hi all, I'm having a heck of a time with our latest assignment. I've tried everything I can possibly think if to make this work, but with no luck. We need to Load an inventory text file, sort it, search it(haven't even got to that portion of the code). I … | |
okay the point of the program is to have the user select two points which would be the points that make up the base of the house, then they select a point inside the house that will serve as the center of a door, however if they click outside of … | |
Hi, I'm having a rather strange problem with the Java compiler. I'm trying to compile a simple hello world program and I can compile it perfectly within NetBean but when I try to use the commandline javac command I get a error. The error says the there is something wrong … | |
Hi there, I am trying to make a program, as shown below. I have used a snippet with hello and bye as the program is really very big. Unfortunately I am unable to edit these functions as they are all part of a complex linked list. I am trying to … | |
for example if i wanted to add a list to another list, like: a = [a,b,c] b = [1,2,3] my code: [code] def add(a, b): a = a.append(b) [/code] it would output ['a', 'b', 'c', [1, 2, 3]] what do i have to change to make it output ['a', 'b', … | |
Hi, I read that e.g. PyTupe_SetItem() steals a reference to the given object but I didn't get what that mean to me and why doesn't PyDict_SetItem() do it either? Jonny | |
Hi, I'm having exception on this line, when some of the textboxes do not have value in [code] if (Convert.ToInt32(LeaveDay.Text) + Convert.ToInt32(SickDay.Text) + Convert.ToInt32(WorkDay.Text) > limitDay) [/code] appreciate any help thanks snky | |
Hello every1 I was making this program of a phone directory to store contacts and all their information in C. I made use of structure and then copied the data of the structure to a file. the structure is [code] struct phdata { char name[20],add[20]; int phno; }ph[20]; [/code] the … | |
i have downloaded mhah library and i tried to include it in turbo c++ i copied the folder to the turbo c++ when i tried to run the c files in the library i found 5 errors cant able to include mutils/mincludes.h... mutils/mtypes.h... mutils/global.h... mutils/mhash.h... libdefs.h mutils folder is found … | |
Hi , this one is with respect to C. (i) when we use array an array index always starts from zero . is it a standard one? or compilers are implemented that way? if compilers are implented that way they must have followed some standard. (ii) the array name cannot … | |
My connect4 game works fine, but after a user wins the program exits and prints a few tracebacks. Is it possible to not print any tracebacks and just exit a program smoothly? | |
Hi, my name is Jonathan. I am 20 years old and I have just started getting into programming in the C++ language (you must get this alot). I do know a couple of programming languages already. Now before I waste your time let me just say that there is no … | |
hi to all, I have design a Application that takes input from the Web cam or other video devices. and have to add some frames in the Live video and then display. i have study out the direct sdk , which provide the flexible enviornment. but i dont get the … | |
I'm creating a media player with Qt & the phonon module: [CODE] #include "mainwindow.h" #include "ui_mainwindow.h" #include <fstream> #include <string.h> #include <stdlib.h> #include <QtGui> void MainWindow::slotFinished(){ int index = sources.indexOf(mediaObject->currentSource()) + 1; mediaObject->enqueue(sources.at(index)); setLabelNowPlaying(); } std::string ExtractFilename( const std::string& path ) { return path.substr( path.find_last_of( '/' ) +1 ); } … | |
I am trying to implement the Kuwahara Filter in C#. I think my code is right, but I am not getting an exact output. Can someone help me with where I am going wrong? [CODE] unsafe { try { Bitmap b1 = (Bitmap)pictureBox1.Image.Clone(); Bitmap b2 = new Bitmap(b1.Width, b1.Height); BitmapData … | |
Hi, I am sending emails through webservices, I am calling the webservice from my website and passing all the arguments to it ,until now no problem. But now I want the webservice to inform the user if an error or exception occurs is there a way by which I can … | |
There is any java Language Translation API. If so means, please indicate that API. | |
Where should i store MS Access database after publishing my VB.NET Application. Database in bin folder before deployment. I am using connection string. Thanks | |
According the exercise, which makes us practice with vectors, i am supposed to write a program that allows the user to enter his/her favorite games, view them and remove any he likes. Obviously, to remove a piece of text, it has to be of the same case as the one … | |
If I run the program, and select q, it will quit correctly. If I select e it goes to the edit menu [B]but prints it twice[/B]. If I then select q it goes to the main menu [B]and prints the default case, "please select from menu", then prints the main … | |
I am having an issue. I need to check whether the user enters a digit greater than 0. If so the user needs to be reprompted. If 23409932 is entered then the 0 entered should be caught and the proper messaage displayed. Here is my code and please somebody help. … | |
I am trying to create file using RMS. I couldn't use List Command to create a file using RMS. Can you suggest easier way to create a file using List. [code=java] import javax.microedition.midlet.*; import javax.microedition.rms.*; import javax.microedition.lcdui.*; public class RmsNormal extends MIDlet implements CommandListener { private Display disp; private Command … | |
How do I load 3D meshes from a .x file, and extract the material data from it? Also, how do I apply a texture to the loaded mesh? | |
Hi. I am new to this site so I hope you will all be able to help me with my problem. I am just starting to learn JavaScript so any help/feedback would be greatly appreciated. I have to make a form that if you put a temperature in a textbox … | |
I have some pretty basic questions about the different types of numbers in python (and other languages). What is the difference between an integer and a floating point number? I'd appreciate a detailed answer explaining some of the fundamentals. | |
i'm still a newbie in javascript. i know this question may be silly for some experts in javascript. and i'm sorry for that :( i want to create a dynamic form using javascript, where i can click a button to add some new fields. i tried to search it in … | |
Hi, We have an asynchronous server socket program, which works fine BUT, when due to some circumstances, I receive null data or blank data, the server goes to infinite loop Here is the code [CODE]namespace SocketServer { public class StateObject //class created to clear the duplicate records { // Client … | |
hi.. im having an issue with a table's border..im dev. an asp.net website,in which im retriving some images from the database & showing them into a datalist. i hv used 18 datalists in a table for the proper alignment of the datalists & images. now, my problem is, when i … | |
i keeps getting error i going to break my head to solve this problem =.= what i am doing is using the a[3][3] to minus 128 but seem i get the problem in minus [CODE]#include <iostream> #include <iomanip> #include <cmath> #include <cstdlib> using namespace std; double shifted_block(double array[3][3]); int main … | |
I am working on writing a class to define an NxM matrix. A matrix should be printed in the form: [0 1 2] [3 4 5] [6 7 8] [CODE]private: //matrix class member variables unsigned int rows; unsigned int cols; float * data; // constructor matrix::matrix(int r, int c) { … | |
[CODE] //////////////////////// /////counter.h file///// //////////////////////// #ifndef _COUNTER_H #define _COUNTER_H class Counter{ private: int counter; int limit; static int nCounters; public: Counter(int arg, int arg); void increment(); void decrement(); int getValue(); static int getNCounters(); }; #include "counter.cpp" #endif ////////////////////////// /////counter.cpp file///// ////////////////////////// #include <string> #include "counter.h" Counter::Counter(int a, int b){ counter=a; … | |
Hi, The problem I am facing is that I don't understand the code mentioned in the following: [CODE]25: /******** this is the main thread's code */ 26: int main(int argc, char *argv[]) 27: { 28: int i; 29: int retvals[NTHREADS]; 30: 31: /* init retvals */ 32: for (i=0; i<NTHREADS; … | |
hi again every one ... in my computer , tools -> folder option ... we can select check box like show full path in address bar or show full path in titlebar. that same thing i want to do it through code or thorugh API?? how can i achieve this … | |
hi friends, I've come across a word LAMP while searching for some php codes.Can someone kindly tell what does this mean and what type of application can be developed from it. And how to begin learning it(sources which provide complete information). |
The End.