64,152 Solved Topics
Remove Filter ![]() | |
Hi, I wish to run a vb app which queries the registry and returns a result. I then want to use that result to set a variable value which I can use in DOS. A batch file runs the vb app, when the vb app has finished a variable has … | |
Hi everybody, I am currently working on an assignment on linked lists. I am stuck with parts of the project, and I would be very pleased if anyone could help me. I am supposed to create a linked list of patient records. Each record is identified by a patient ID … | |
Hi, Is there a faster means by which I can get data from an edit box and assign them to an array. lets say I got this intergers m_1....m_100, and I want to put the values to an int val[10][10] whaat I did was to hard code each interger to … | |
Hi, i have a program where i use a while loop to create buttons dynamically. Each button is created with, for a label, the name of one the drives on the machine(using the result of the fsutils command). Up to this point everything works fine, if i have drive C: … | |
Hi all, I have a listbox that displays a list records from a file. The records contain details about a film - title, certificate, genre, whether or not its rented out or in. At the moment, when a film is set to - rented out, that individual film is put … | |
# tpm.py Computes the cost per square inch of pizza given cost of the pizza, # and diameter. from math import * def main(): cost_per_square_inch(area_of_pizza()) def area_of_pizza(): diameter = input("Enter the diameter of the pizza: ") radius = 1.0/2.0 * diameter a = pi * radius * radius return a … | |
Does anyone know how to remove a window's border and title bar in wxPython? I want the client area to fill the entire screen. I have a wxPanel defined as follows: class FlashPanel(wxPanel): *def __init__(self, parent, flashFile): **wxPanel.__init__(self, parent, -1) **sizer = wxBoxSizer(wxVERTICAL) **ActiveXWrapper = MakeActiveXClass(flashControl.ShockwaveFlash) **self.Flash = ActiveXWrapper( self, … | |
I have a script that I want to write, but I'm not sure how to start, so I'm hoping for someone to point me in the right direction. I'm dealing with a very large form full of very large <select> boxes. (Some select boxes have as many as 30,000 options.) … | |
I am trying to create what should be a very simple script, though I'm having a very difficult time getting it to work. All I want to do is create a new copy of a master file once per week and do my work on the copy. I plan to … | |
Hi I'm new to C++ and to here. I have an assignment. Make a HOLLOW rectangle using Functions. Have the user imput the amount of rows and columns....and border width . It should look something like this (It's supposed to be a HOLLOW rectangle) : Enter number of rows and … | |
Hi I'm new to C++ and to here. I have an assignment. > Make a rectangle using Functions. > > > Have the user imput the row size and column width. It should look something like this (It's supposed to be a rectangle...hollow) : ********** * * * * * … | |
Hai group, im a newbie in HTML,CSS,JAVASCRIPT.. I was involved in dev of a prototype using the above 3... everything went fine...but the pending requirement is .. when we right click on a row in table in a prototype, we have coded such that a context menu appears..its working fine..but … | |
Hello everyone. I am in desperate need of help. I have this question: [I]You have been developing a Fraction class for Teacher's Pet Software. The class contains two public data fields: one numerator and one for denominator. In keeping with the object-oriented concept of encapsulation, you make the Fraction's data … | |
Python uses the directories listed in PYTHONPATH to find a module. How can I assure that the module I am importing is on this list of paths? | |
I keep hearing that the eval() function is unsafe. It is a nice function, because you can use it like print eval("2.5*49.7/(23+3.14)") and it will solve the math. Is there any way to protect against some nasty minded person to enter a "os.system(command)" where the command will erase a file … | |
Hello people of Python community, I'm back with (so far) strong will to learn Python, just like you. I remember once, Narue told me that good way to learn different prog. languages is to concetrate on algorithms and data structures and their implementation in language of choice. That way, she … | |
I have been looking over Vegaseat's Word Count program. I have two thoughts about what I want to configure it to do, but I'm not sure how to go about it. Idea 1; This is most important. I want users to be able to put a text file in the … | |
:idea: :idea: hey, guys & experts :D i'm havin' a big pro now~~i can't past the test 3 now... i know i may hav a bug but seems too hard for me to find it out can anyone help me???seg fault... i hav asked many ppl but....plzzzz ====the file==== dict.cc … | |
Hi, I'm creating a palindrome program. So far, I got that part. Now, I need to find out if the length of the integer (string) is less than 5 digits. If the length is less than 5, then don't proceed with the program. Please give your suggestions. Thanks! | |
Hi! Thanks for your help in advance..... Heres my case I have a dictionary "d" with keys as string and a dictionary as integer "1" as keys to a list [1,2,3] [code] d{"test.tif": {1: [1,2,3]}} [/code] Now when I try looping through it........it gives me an error [code] for i … | |
I'm trying to write a program that uses a DIMACS Graph input, and do several diffent things with it. I've got most of the methods working except one: An all-pairs shortest path that uses Floyd's Algorithm. I've written it a couple times, and it works sometimes, throws and exception sometimes, … | |
simple problem....but I have no clue why its not working..... [code] if (w[0] > m[1]): temp = ((w[0]-m[1])/w[0])*100 print temp [/code] For some reason temp is always 0.........I want a double percentage difference between the two values.... Please guys..help me out here......after 500 lines of code ...I am stuck here......my … | |
Hey all, I’ve created a register form that includes some Dreamweaver generated code and code of my own. What I did was within the main query that handles the insert of the userID I added another query within the <cfif> to see if the userID already exists. The problem is … | |
C:\Documents and Settings\Andy M. Moore\My Documents\Visual Studio Projects\caller\trunk\OfflineRegistry\OfflineRegistry.cs(203,15): warning CS1591: Missing XML comment for publicly visible type or member 'SecondSec.SERC.Common.ContainerObjectModel.RegKeyContainer' What does this mean? | |
Hi, I've encountered a problem iwhile writing a find and replace prg in python. this is my code: [CODE]import re f = file('testfile') while True: line = f.readline() if len(line) == 0: break print line p = re.compile(line) m = p.match('METASERV_HOME') print m f.close()[/CODE] as per the logic : if … | |
Hi everyone, I am new to python and programming in general and I could use some help on converting an integer to a decimal (e.g. 80% to .8). Here is what I have so far but as I'm sure you can tell, it doesn't work: [CODE]elif menu_choice == 2: print … | |
I receive the following 2 error messages when I attempt to Build my application, and I cannot resolve them. C:\Documents and Settings\Robert W. Lipscomb\My Documents\Visual Studio Projects\caller\trunk\Installer\Installer.vdproj Unable to find source file 'C:\Documents and Settings\Robert W. Lipscomb\My Documents\Visual Studio Projects\caller\trunk\bin\install\data.enc' for file 'data.enc', located in '[TARGETDIR]', the file may be … | |
Hi Python Experts [B]I need to convert a code written on JAVA/JSP (Java Tags are also there inside JSP) to PYTHON. [/B] I have OK kind of knowledge in PYTHON, but dont have a muck knowledge in JAVA/JSP. Any idea how to approach? I am having tough time to achieve … | |
i 'm getting the date in [B]dateField[/B] variable after entering the code for converting the date into Simple Date Format java.util.Date datefield2 = new java.util.Date(request.getParameter("dateField")); java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("EEEE,dd MMMM yyyy"); GregorianCalendar startDate = new GregorianCalendar(datefield2.getYear()+1900,datefield2.getMonth(),datefield2.getDay()) String reqdt=sdf.format(startDate.getTime()) i 'm not getting the exact date which i entered in … | |
I am using automation desk to run python scripts. This in tern executes scripts using v2.2 interpreter every time i m trying to use raw_input("Enter name ") it fires EOF Error. If i run it in interpreter separately it works fine.Its really basic functionality. FYI: Automation desk dont support script … | |
I have the worst time deciding on VAR statements. I am trying to write a program to establish a "bounciness" index equal to the original height divided by the bounce height of a ball. I get the basics of the FOR looping, but my VAR statements just don't make sense, … | |
i don't understand the use of the os.popen function, i've used it to read things, for example: [CODE] >>> a = os.popen("netstat") >>> for line in a.readlines(): print line Active Connections >>> [/CODE] i understand that, but there is also a buffersize and a write ability, but i've played about … | |
This small program is neat: [CODE]import calendar calendar.prmonth(2006, 3) """ March 2006 Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 … | |
I am writing a program that takes user input, converts euros or yen to u.s. dollars and should output the total dollars collected when the user chooses to exit the program. My program is converting everything okay. However, when I choose to exit the program and get the total it … | |
Hello, I have this for loop here, and everything is great except I can't figure out how to display 3 numbers per line instead of all number on one line. Can anyone help? Thanx! #include <iostream> using namespace std; [INLINECODE]int main( ) { int x; cout << "Numbers between 5 … | |
Hi, I'm new to this C++ stuff. So if anyone can help that would be nice. I have this program to generate a random number and a the user inputs a number from the keyboard to correctly guess the number that the computer randomly chooses. but the numbers are always … | |
He friends, I would like to have some guidance over projects to take up in C++? I would like to take up a challenging project . Also I have changed my compiler from turbo C++ to Dev C++ but i cannot figure out how the output can be seen ie … | |
Hi, As far as encryption goes, I am a newbie. Right now when I login, it will compare the user and password stored in my database. If both match, I will be able to login, otherwise I will be refused. The user and password are now stored in plaintext. How … | |
:lol: hello i want to show the time in a certain program in part of seconds but i don't know,can you help me in solve this problem? thanks | |
Does anyone know about LISP Programming I am trying to make this program where I have 3 types of cars, which are ford bmw merc ford has focus and fiesta BMW has 1series and 2series and the merc has SK100 and SK200 well basically i am trying to put them … | |
Hi, I am trying to develop a ingame chat window that will work across games developed in directx and openGL. So i need to place a windows form above the game window. since i need this to work across all versions of directx and opengl I cannot use a hook. … | |
:confused: Hello i am a newbie in programming in c++ and in linux. I hav knoppix in cdrom and i want to start programming in c++ with the help of knoppix. But I does not know anything about how to start. I don't know create a new c++ file in … | |
Hi!I have a problem and i think you can help me!(Sorry my english.I learn just one year) Thats part of my program... [code] okno=Tk() text=Text() text.pack() def find(): print "I need help here" menubar = Menu(okno) editmenu = Menu(menubar, tearoff=0,bd=4) editmenu.add_command(label="Find", command=find) menubar.add_cascade(label="Edit", menu=editmenu) okno.config(menu=menubar) [/code] i need add to … | |
I have been fiddling with these damn loops for hours. I am new to c++ but not too programming. My teacher is absolutely worthless. she refuses to help me and explains things very poorly. I have a 100 % on the assignments in the class and do not wish to … | |
I'm working on a MS-SQL-Server-DB with MS-Access. There are some dozens of forms. I'd like to translate the forms by button-click into another language. I've made a procedure (sub) called by button-click which walks over the complete "Controls" and changes the captions. So far, so good. But this procedure (in … | |
There follows a fragment of a program in Borland C++: void __fastcall TForm1::FormCreate(TObject *Sender) { Memo1->Clear(); ListBox1->Clear(); Memo1->Lines->LoadFromFile("c:\\blitz\\history.txt"); a=Memo1->Lines->Count; x=0; while (x<a) { str1=Memo1->Lines->Strings[x]; if (str1 != "") { DATA MANIPULATION HERE, THEN if (ListBox1->Items->Count==0) ListBox1->Items->Strings[0]=str3; else ListBox1->Items->Add(str3); } } ListBox1->Items->SaveToFile("C:\\blitz\\history.txt"); Close(); } The form does not close, but "history.txt" … | |
my question here is :how do we write sql connections to database that's using windows nt authentication?How's the syntax looks like?tq :confused: | |
I have the following code, for example: [CODE]price = 50.00 tax = price * 0.08 print "Tax = $",tax # Tax = $ 4.0[/CODE] As you can see there is a space between $ and 4.0. Is there a way to avoid this? I haven't done much Python coding. | |
I am using MySQL 4 and trying to cache my queries per this tutorial: [url="http://dev.mysql.com/doc/refman/4.1/en/query-cache-configuration.html"]http://dev.mysql.com/doc/refman/4.1/en/query-cache-configuration.html[/url] Right now, my query_cache_size is set to 0. I would like to set both the query_cache_size and query_cache_limit parameters. However, I'm receiving the following error message: [code]mysql > ERROR 1227: Access denied. You need the … | |
hi, i am very new in python. can anyone tell me that how to create dynamic dropdown box in python scripting.(triple dropdown box) |
The End.