199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ffs82defxp

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 …

Member Avatar for woooee
0
107
Member Avatar for kangekraam

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 …

Member Avatar for kangekraam
0
99
Member Avatar for VIPER5646

[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 …

Member Avatar for VIPER5646
0
7K
Member Avatar for fallopiano

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 …

Member Avatar for fallopiano
0
214
Member Avatar for bigmaq

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 …

0
76
Member Avatar for all4peace

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 …

Member Avatar for all4peace
0
137
Member Avatar for alreem

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: + …

Member Avatar for VernonDozier
0
129
Member Avatar for chromatinpt

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 …

Member Avatar for DdoubleD
0
591
Member Avatar for dchunt

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..

Member Avatar for kolosick.m188
0
108
Member Avatar for scriptkiddy

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 …

Member Avatar for scriptkiddy
0
218
Member Avatar for zephy2

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? …

Member Avatar for twomers
0
486
Member Avatar for pizte

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 …

Member Avatar for pizte
0
149
Member Avatar for findyaseek

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 …

Member Avatar for digital-ether
0
329
Member Avatar for royael

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 …

Member Avatar for royael
0
64
Member Avatar for venkat0904

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 …

Member Avatar for Gilette
0
858
Member Avatar for Acquiring

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 …

Member Avatar for Acquiring
0
80
Member Avatar for Jalwes

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 …

Member Avatar for Tales
0
142
Member Avatar for KidBuddha

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 …

Member Avatar for woooee
0
113
Member Avatar for kenji

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 …

Member Avatar for JamesCherrill
0
98
Member Avatar for ab00120

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 …

Member Avatar for jonsca
0
96
Member Avatar for saikeraku

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', …

Member Avatar for saikeraku
0
92
Member Avatar for sneek

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

Member Avatar for sneek
0
418
Member Avatar for snakay

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

Member Avatar for snakay
0
123
Member Avatar for ankit_the_hawk

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 …

Member Avatar for aqtel003
0
220
Member Avatar for SDPRIYA

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 …

Member Avatar for Ancient Dragon
0
336
Member Avatar for Iam3R

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 …

Member Avatar for Iam3R
0
89
Member Avatar for TheManual

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?

Member Avatar for TheManual
0
235
Member Avatar for FanatiK

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 …

Member Avatar for FanatiK
0
99
Member Avatar for pkuchaliya

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 …

Member Avatar for pkuchaliya
0
184
Member Avatar for pymatio

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 ); } …

0
151
Member Avatar for sathya8819

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 …

Member Avatar for Geekitygeek
0
473
Member Avatar for shankbond

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 …

Member Avatar for vasanth19
0
112
Member Avatar for cute.sridhar

There is any java Language Translation API. If so means, please indicate that API.

Member Avatar for cute.sridhar
0
90
Member Avatar for adonweb

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

Member Avatar for adonweb
0
86
Member Avatar for pspwxp fan

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 …

Member Avatar for pspwxp fan
0
113
Member Avatar for Mattpd

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 …

Member Avatar for kvprajapati
0
115
Member Avatar for drake2212

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. …

Member Avatar for rahul8590
0
90
Member Avatar for nukabolhi

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 …

Member Avatar for peter_budo
0
148
Member Avatar for tomtetlaw

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?

Member Avatar for tomtetlaw
0
183
Member Avatar for LizzyJo

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 …

Member Avatar for LizzyJo
0
87
Member Avatar for mahela007

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.

Member Avatar for Gribouillis
0
158
Member Avatar for AirGear

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 …

Member Avatar for network18
0
166
Member Avatar for cmrhema

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 …

Member Avatar for jagadeeshwaran
0
279
Member Avatar for love_dude1984

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 …

0
100
Member Avatar for bestnone

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 …

Member Avatar for jonsca
0
141
Member Avatar for ms_farenheit1

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) { …

Member Avatar for Fajer91
0
110
Member Avatar for bamcclur

[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; …

Member Avatar for bamcclur
0
451
Member Avatar for johndoe444

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; …

Member Avatar for bamcclur
0
168
Member Avatar for crazyboy

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 …

Member Avatar for crazyboy
0
103
Member Avatar for coolbuddy059

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).

Member Avatar for coolbuddy059
0
93

The End.