43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mccarthp

I have a script that is called by a batch file. Whether or not the script completes successfully the batch file continues. I need to know the results of the script. Is there a way to open an IE session, and call a CF page that I can pass an …

Software Development python session
Member Avatar for vegaseat
0
198
Member Avatar for kokopo2

Hi pros and experts. I am experiencing some trouble in doing up a code which could evaluate the input into the different data types. What i managed to acheived is to read a file and its content. I used strtok to break the string into various 'tokens'. Now the problem …

Software Development c
Member Avatar for Dave Sinkula
0
457
Member Avatar for shanenin

I would like to write good code, it is so east to start writing crap. Is the following bad. lets say I have the following code [code] testvar = 5 def test(testvar): print testvar test(testvar)[/code] is it a bad practice to use the name of a variable or function in …

Software Development python
Member Avatar for vegaseat
0
156
Member Avatar for altheastronut

Hello, I'm almost done with my program however I'm having trouble getting what I want printed to a file. I'm familiar with the printf function and what I want is to print out to the file in scientific notation, which would be %E if I were using printf. Is there …

Software Development c file-system
Member Avatar for altheastronut
0
354
Member Avatar for BioTechNoob

I’m having trouble entering data from a file into an integer and character array. Basically, in this file, some the data I want transferred into a character array. Other parts, I want transferred into an integer array. I am able to get data into the arrays, and the char array …

Software Development c++
Member Avatar for Ancient Dragon
0
302
Member Avatar for sDJh

Hello everybody, I just signed up, 'cause I looked through the internet over days to find a solution for the BASIC function GetKey(). It simply returns the Scancode of a key pressed by the user or 0 by default (if no key was pressed). I found the well known BIOS …

Software Development assembly
Member Avatar for sDJh
0
223
Member Avatar for peaceofmind

hi I have this source [code] env = {} env['SERVER_SOFTWARE'] = ''+self.version_string() env['SERVER_NAME'] = self.server.server_name env['GATEWAY_INTERFACE'] = 'CGI/1.1' env['SERVER_PROTOCOL'] = self.protocol_version env['SERVER_PORT'] = str(self.server.server_port) env['REQUEST_METHOD'] = self.command uqrest = urllib.unquote(rest) env['PATH_INFO'] = uqrest env['PATH_TRANSLATED'] = self.translate_path(uqrest) env['SCRIPT_NAME'] = scriptname [/code] how I can print arrays in this format [code] [HTTP_GET_VARS] …

Software Development python web-server
Member Avatar for bumsfeld
0
175
Member Avatar for levk

Hi, I get a segfault when I try to instantiate a class I wrote. I don't know what the problem is here. The constructor is never entered. Details: [code] /* Connection.h: */ class Stream { private: ACE_Message_Queue<CONNECTION_SYNCH> *serverq; Provider *provider; ACE_Event_Handler *serverp; public: Stream(ACE_Message_Queue<CONNECTION_SYNCH>*, Provider*, ACE_Event_Handler*); ULONG send(char*, size_t); ULONG …

Software Development c
Member Avatar for levk
0
174
Member Avatar for winbatch

I keep getting a core dump (bus error) on my program. I suspect it has something to do with the amount of data I am storing in a map<string,string> The program crashes however when it is done processing and is actually destructing. Before I post any code, I was wondering …

Software Development c first-post
Member Avatar for winbatch
0
143
Member Avatar for peaceofmind

hi I have a problem with this source code [code] #fi, fo = os.popen2('c:/python24/python.exe C:/AppServ/webserver/www/index.pyw') #fi, fo = os.popen2('c:/Perl/bin/perl.exe C:/AppServ/webserver/www/wwwp.pl') fi, fo = os.popen2('c:/appserv/php/php.exe C:/AppServ/webserver/www/wphp.php') data = self.rfile.read(nbytes) fi.write(data) fi.close() shutil.copyfileobj(fo, self.wfile) sts = fo.close() [/code] when I try with python or perl it works but with php not. first …

Software Development apache perl python
Member Avatar for vegaseat
0
179
Member Avatar for bops

hi all, im trying to find out how i can move a file to another location in c++. Is there any kind of function or way i could do this. Ive seen before someone using the system() function to use command prompt style commands like system("cmd,command"); or something like that …

Software Development c++
Member Avatar for bops
0
291
Member Avatar for peaceofmind

hi :) i have problem with opening ".py" files in my web server this is the source code: [code] import string,cgi,time from os import curdir, sep from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer class MyHandler(BaseHTTPRequestHandler): def do_GET(self): try: if self.path.endswith(".html"): f = open(curdir + sep + self.path) #self.path /index.html self.send_response(200) self.send_header('Content-type', 'text/html') …

Software Development first-post open-source python web-server
Member Avatar for peaceofmind
0
519
Member Avatar for Micko

Hello, I've just read thread why I should lear python and I must admit that I'm very interestwed to learn oppython myself. i have experience with C and C++ programming language. If I understood corectly Python is an interpreted language. What is advantage of interepreted languages (if there are any)? …

Software Development gui python
Member Avatar for vegaseat
0
311
Member Avatar for lucia

Hi, I am struggling with c++ linking problem in Linux... The C++ code has MATLAB engine inside, and it has no problem when compiling under Windows(same MATLAB version, MATLAB 6.5R13), but it can not be compiled with Linux, I always get the following error: [code]/usr/bin/ld: warning: libstdc++-libc6.1-2.so.3, needed by /s2bin/matlabR13/bin/glnx86/libmx.so, …

Software Development c c# c++
Member Avatar for lucia
0
522
Member Avatar for luxnova

[FONT=Fixedsys]Hi it's me again, I want to know how to make a new directory containing my python script. Also, how do I make the new directory containing my python script into the current directory? Just for you to know, I installed the newest version of Python which is Python 2.4.1 …

Software Development python windows-xp
Member Avatar for vegaseat
0
146
Member Avatar for luxnova

Hey I'm a new member here. I just need some help. I need help with setting the path for python. I must set a path in Windows to the directory where the Python.exe is located so that I can execute Python script. I need to get the directory containing the …

Software Development python
Member Avatar for vegaseat
0
294
Member Avatar for konacious

Hi, I got a program and I am finished except for the last portion of the program. It is where I print the final seating chart. Can you help? Here is my code: [code]#include <iostream> using namespace std; const int NUMROWS = 7; const int NUMSEATS = 4; void initPlane(char …

Software Development c++
Member Avatar for konacious
0
214
Member Avatar for DotNetUser

When I mix managed with unmanaged code I get the compiler error: "'IDataObject' : ambiguous symbol". How do I resolve this? Thanks.

Software Development c
Member Avatar for Dave Sinkula
0
1K
Member Avatar for altheastronut

Hello I'm trying to test out a random number generator to see how the distribution is and I want to write the values I get from the number generator to a file. Can someone show me in a simple code how to do that, or a good website where I …

Software Development c
Member Avatar for zyruz
0
102
Member Avatar for tayspen

i cant belive that you have to have a .net framework on the computer to run the C# apps. because of this no my friends cant use them. there should be away around this does ne body know if there is?

Software Development
Member Avatar for tayspen
0
175
Member Avatar for bsdpowa

Hello all, I'd like, very much, to understand linked-lists.I've read many texts on the subject and tried many source codes but none of them seemed to fit my needs (one from daniweb is pretty close but it's in C) so I, as desperate as I can be, beg you for …

Member Avatar for bsdpowa
0
531
Member Avatar for danizzil14

As I said before im new to python and stink at math(great combination huh?) Well I've looked at Thinking in Tkinter but I still don't fully understand the concept of classes. Could you provide any help\tutorials on this subject? Help Appreciated :cheesy:

Software Development python tkinter
Member Avatar for vegaseat
0
157
Member Avatar for mccarthp

Python Version: 2.1 Platform: HP Windows XP I am using Python scripts generated by ArcGIS/ModelBuilder in order to automate geoprocesses. Currently I am calling a series of scripts from a batch file that is called by the task scheduler. My problem is if there is an error the process stops, …

Software Development file-system python windows-xp
Member Avatar for mccarthp
0
233
Member Avatar for jindalarpan

hey friends i m facing one problem that on sever their is fedora core 4 and when ever temp(/tmp) is filled server go show. can any one provide me with the script that can automatically cleans up /tmp after some days or when temp is going to fill thanks

Software Development shell-scripting
Member Avatar for Cain
0
134
Member Avatar for shanenin

I wrote simple python program that rips, encodes, and gets song data from the cddb. I would like to give the user the option of customizing it to there taste. So I want to make a config file that I can store in /etc(linux fiel location). for example it would …

Software Development file-system python
Member Avatar for shanenin
0
265
Member Avatar for danizzil14

Ok new problem, I want to build off of a program I saw in a tutorial that has a "menu" and can calculate two different shapes. The two shapes are circle and rectangle. I've built it into a working order.(event bindings, buttons, area calculation programs) The program works all the …

Software Development python
Member Avatar for vegaseat
0
178
Member Avatar for cjones5499

I am ahving a problem with the do/while loop. When the YesNo function returns a yes, main() repeats;however, it prints out what is stored in the string from before. How do you clear the string in order to run the program over and over. Also, when the piglatin result is …

Software Development c
Member Avatar for Dave Sinkula
0
582
Member Avatar for danizzil14

Ok I've gotten py2exe because I have friends that want to test my programs, but they don't want to download the python program. Well I have tried to run the compiler out of MS-DOS and the Python version of MS-DOS. But every time I wind up with an error. I …

Software Development python
Member Avatar for vegaseat
0
173
Member Avatar for altheastronut

I've been working on this code which generates random numbers, however I need it to generate random numbers between [B]5.15053396E-5[/B] and [B]0.013365[/B]. Is there a way to define rand() to only generate random numbers within this range? What I tried to do was to generate a number between 110607 - …

Software Development c++
Member Avatar for Narue
0
83
Member Avatar for G-Do

Hi all, Here's one that has me stumped. I'm trying to build a system shell with a Tkinter GUI in Python, and I can't figure out what to do with one of the widgets. Here's the program concept: I have two major widgets: a ScrolledText widget and an Entry widget. …

Software Development display gui os-x python tkinter
Member Avatar for G-Do
0
2K
Member Avatar for joshSCH

ok.. now that I know about the JOptionPane, I have one more question. How can you create a real executable program from the java code that u write. IT can be executed through JCreator or another java creator, but how can you make it so that its an actual java …

Software Development java
Member Avatar for stevenr
0
170
Member Avatar for nephish

Hey there, i have been writing python scripts for about 4 months now so i am still very new at programming. that said, i need to build a gui app to handle some data manipulation from a database, set points, etc... what i would like is the easiest to learn …

Software Development gui python tkinter
Member Avatar for nephish
0
210
Member Avatar for nephish

Hey there, i have some python scripts that run with the cgi-module. all named whatever.py the thing is, firefox will open one that has a form on it, but not load the next one in line. it pops up a window that says what do you want me to do …

Software Development python
Member Avatar for nephish
0
177
Member Avatar for shanenin

Is their a python module that can get the dimensions of a video file?

Software Development python video
Member Avatar for vegaseat
0
262
Member Avatar for shanenin

I have been trying to make a class based on Tk(). My code is such a mess, I would be embaressed to show you what I came up with. Here is what I am trying to do [code] class Window(Tk): fill in the code here win = Window() win.mainloop() [/code] …

Software Development python
Member Avatar for vegaseat
0
349
Member Avatar for Toulinwoek

As basic as this may be for you experienced programmers, this leaves me baffled. I have a copy of VB6 I obtained as an employee of a Microsoft Certified Solutions Provider, but it didn't come with the MSDN Library so I don';t have access to any online help (BTW, if …

Software Development microsoft microsoft-access visual-basic
Member Avatar for Monster17
0
242
Member Avatar for shanenin

I have been messing around with some scripts, and would soon like to start making a few gui apps. I plan on using either tkinter, or possibly pygame, or pygtk. Are there modules already built that will allow you to browse graphically? for instance, choosing a file, or directory, using …

Software Development file-system gui python tkinter
Member Avatar for vegaseat
0
165
Member Avatar for shanenin

I am having a tough time understanding what is going on in this following code [code=python] class Player(object): """ A player in a shooter game. """ def blast(self, enemy): print "The player blasts an enemy.\n" enemy.die() class Alien(object): """ An alien in a shooter game. """ def die(self): print "The …

Software Development python
Member Avatar for Walrus Bites
0
264
Member Avatar for sam1

hi every one i am doing this coursework where i have to design two class one is: Point2D, that models a two-dimensional point. The second class implement a class Oblong(rectangle) from a given specification and will require the use of the Point2D class. 1. A Oblong specifies an area in …

Software Development java
Member Avatar for S.T
0
181
Member Avatar for zeek

hello guys, i would like to ask again about this: i am trying to divide two large-digit numbers (up to say 100 digits) using C. I thought of one approach but trying to code it, it seems so complicated... can anyone help me give an algorithm or a code to …

Software Development algorithm c++
Member Avatar for vegaseat
0
286
Member Avatar for bumsfeld

Is there a way to get the day of the week when supplied with a date? Like November 11, 1911 may be a Monday?

Software Development python
Member Avatar for vegaseat
0
240
Member Avatar for kartik911

Hi, can anybody help me? i am relatively new to C Programming. My question is : How do you create a program which will take a filename as an argument, check whether the file is present and open it (if the file is not present create that file). Thanks -Kartik

Software Development c file-system
Member Avatar for Narue
0
276
Member Avatar for zauber

Hello, I started coding a little app for exploring the mandelbrot fractal. Hopefully someone here is familiar with it, and perhaps tried coding it in python. My problem is, as you will see if you try running my code, is that the generated image is NOT the mandelbrot (although it …

Software Development algorithm display image python
Member Avatar for vegaseat
0
151
Member Avatar for Mike182

Im adding a specialised formula to a calculator, and it uses the Ln/ln function which is often on scientific calculators, how do i get this function to work in c++? The formula is as follows: 'formula: pl * (10*diff + 10*creat +2*lines) ------------------------------------------ 150 * (Ln(pl/1.5))' Can anyone help?

Software Development c++
Member Avatar for Mike182
0
322
Member Avatar for angel22

I am taking a C++ class, but I am having a real trouble understanding arrays which confuse me completely. This is the first time I take a programming class, so I really need help. I do not really understand how arrays are read and filled or how to use for …

Software Development c++
Member Avatar for angel22
0
395
Member Avatar for reezin14

I was wondering if anyone knows if any Python books that are availible,and where I might be able to purchase them?

Software Development python
Member Avatar for shanenin
0
252
Member Avatar for Walrus Bites

I have looked through the forums for this and found several hits but none of them truly answered my question. How can I make a Python program an executable file that does not require my friends to have Python installed on their computers?

Software Development python
Member Avatar for shanenin
0
276
Member Avatar for vip.Knight

Hi every one, I need your help in this issue. Before I start maybe I can’t explain what I need very well because I don’t speak English. I need function in visual basic to switch the number of point in decimal. Basically how many points can I control it? “Routing

Software Development visual-basic
Member Avatar for vip.Knight
0
116
Member Avatar for altheastronut

Hello all, I haven't used c++ for years and now I need it for school. I am running a fortran 77 code and I wanted to know if it is possible to write a program in c++ (That's the only language I know) that generates random numbers with decimals and …

Software Development c c# c++
Member Avatar for Rashakil Fol
0
228
Member Avatar for Goldfish691

Hello, this is my first posting to this site and i was just wondering if anyone out there could help me figure out some code for an assignment that i have to do. I've just started learning Assembler and this assignment has stumped me. I have attached a copy of …

Software Development assembly display first-post storage
Member Avatar for mikemark
0
217

The End.