64,152 Solved Topics

Remove Filter
Member Avatar for
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] …

Member Avatar for bumsfeld
0
175
Member Avatar for nanosani

Find a six digit number that gives its digits reversed when multiplied by an integer between 2 and 9 inclusive. For example, if the original number was 654321 and the chosen integer was 8, then 654321 x 8 should equal 123456 if it was the magic number (which of course …

Member Avatar for Daishi
0
318
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 …

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 …

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 …

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 …

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

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

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

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 …

Member Avatar for vegaseat
0
146
Member Avatar for faisyshah

please explain in detail how computer work.in term of computer processing cycle.for example when we start compuer how comper parts(ram,processor,hard disk,busses,etc )perform task or work.and how windows work. ;)

Member Avatar for tayspen
0
448
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 …

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 …

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.

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 …

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?

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:

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

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

Member Avatar for Cain
0
134
Member Avatar for johnsonlim026

I have a variable of double data type.It has only 1 decimal point or no decimal point such as 17.5 and 17.I want to have exact two decimal point for it.Does anyone know?

Member Avatar for johnsonlim026
0
145
Member Avatar for Madhusudhan

Hi all, I have data grid: In that i have to show different hyperlinks colors with type of memberships. If gold member then Hyperlink is Green If Silver member then Hyperlink is Red. otherwise the Hyperlink shoudl be Blue !!! How to achieve this is Data grid!!!.

Member Avatar for cambia
0
104
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 …

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 …

Member Avatar for vegaseat
0
178
Member Avatar for ecupirate

My default website has a state of stopped. I right click on and select start and get the message "the service did not respond to the start or control request in a timely fashion". For some reason, I cant get this started. Any ideas

Member Avatar for sypher
0
347
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 …

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 …

Member Avatar for vegaseat
0
173
Member Avatar for npasma

I am working on filling a datagrid based on results found from a user entering criteria in text boxes and clicking a search button. I have been toying around with Session() to store variables but I dont understand it too well and its giving me trouble. After the user clicks …

Member Avatar for Paladine
0
2K
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 - …

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

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 …

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 …

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 …

Member Avatar for nephish
0
177
Member Avatar for shanenin
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] …

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 …

Member Avatar for Monster17
0
242
Member Avatar for SelArom

hi! I haven't been here in a while but I like the changes! I've asked this question @ asp.net forums, but they were completely unhelpful. Maybe it's just me but they could not give me a straight answer. So maybe I'll have better luck here; I find the people in …

Member Avatar for cambia
0
172
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 …

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 …

Member Avatar for Walrus Bites
0
264
Member Avatar for wchitamb

Guys I am starting my final year project in Sept this year and I have been looking around for a project to do so there is this one that I am most likely going to chose [choosing from a list] To be honest I am not a big fan of …

Member Avatar for Letscode
0
2K
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 …

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 …

Member Avatar for vegaseat
0
284
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?

Member Avatar for vegaseat
0
240
Member Avatar for wchitamb

I do need some help I am building up an asp application that will access an SQL server [database] so what I want is for the admin access to add, update and delete in all the tables I have about 13 different tables so my questions is do I have …

Member Avatar for wchitamb
0
243
Member Avatar for server_crash
Member Avatar for Narue
0
268
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

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 …

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?

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 …

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?

Member Avatar for shanenin
0
252

The End.