15,175 Topics

Member Avatar for
Member Avatar for swaroopk85

Hi all, I need to open a https site ,I have http proxy for that site..I want write a program in python which can open an https site via http proxy using certificates which I exported from browser to my local system. Can anyone help me in this regard??

0
46
Member Avatar for lllllIllIlllI

Hi My question is: i made a program that counts up and up continuously in the background but i want it to print what number it is up to when you press a certain button such as ENTER. I have tried using raw_inputs() but all that happens is it keeps …

Member Avatar for a1eio
0
8K
Member Avatar for Mackjan

I have a list for exemple: a = [ 9,6,5,4,1,0,0,7,6] . By this function I want to delete all element which content zero and delete all element which content duplicate. But it doesn’t do exact what I want. [CODE]def rensa(a,b): j=0 for i in a: if a[j]<= 0: del a[j] …

Member Avatar for Mackjan
0
110
Member Avatar for FreezeBlink

Python's system of deciding for you what type to give all your variables is nice and all, but is there a way to force it to give a variable a certain data type? For instance, if you give it the following: [code=Python]n = 2 m = 3 print n/m[/code] It'll …

Member Avatar for vegaseat
0
100
Member Avatar for NAB888

Hi everyone, Would someone please tell me how to hide the command prompt window while my Tk/Tkinter program runs, I'm kinda new to windows programming, but i'm doing all right. (except the command prompt window keeps sticking its tung at me) Thanks for any help, I appreciate it.

Member Avatar for eibwen
0
70
Member Avatar for shigehiro

Hi all, I would need your expertise/advice on the problem I encounter right now when I tried to parse in the contents of .csv file. Here is the scenario: 1) I have csv file with the possible entries as follow: ProjCat,RefNum,ProjTitle,MemberName,ProjDeadline,ProjGrade --> Header I,0001,"Medical Research in XXX Field,2007","Gary,Susan",20.05.07,80 R,0023,Grid Computing …

Member Avatar for a1eio
0
255
Member Avatar for vegaseat

This was a comment from ee_programmer in reference to one of the Python code snippets. [code=python]""" I was expecting the first class instance to only have one dictionary entry {'person0': 0} rather than two dictionary entries. Similar expectation with second class instance. How do I create and assign value to …

Member Avatar for a1eio
0
208
Member Avatar for s_jmp

what are the differences between these two type of commands: 1- >>> import socket 2- >>> from socket import * i mean when you get the object list from the first command it gives different object from when you get objects from the second command. so does it mean these …

Member Avatar for sneekula
0
154
Member Avatar for angelxu

Hi, I'm a starter of python programming and i've stuck on a problem. i imported a csv library into the consule and i tried to print out a particular column. but i don't want to print out the heading (which is the first row) of the column. this is what …

Member Avatar for kdoiron
0
133
Member Avatar for Shakis
Member Avatar for pythonuser
0
82
Member Avatar for rheg21

Hi! how can i run a python script in a link such as([url]http://192.168.8.111).what[/url] do i nid?i have ubuntu7.10 and installed apache2.pls help.tnx!!

0
47
Member Avatar for rheg21

hi guys!! im having a hard time editing the main configuration file httpd.conf.im planning to use it for a project with api using python and im trying to run it in our office ip address.([url]http://192.168.8.111)can[/url] you pls help me.what are the right codes for it?im really having a hard time …

0
59
Member Avatar for wsn

Hi everyone, I'm trying to find the points that satisfy the equation y^2=(x^3)+ (4*x) + 4 (mod 5) from the book i know im suppose to get x=0 y=2 x=0 y=3 x=2 y=0 x=4 y=2 x=4 y=3 so far i haven't been luck in getting anything any help is appericated …

Member Avatar for Lardmeister
0
106
Member Avatar for heshan

Hi, Assume that I have a target directory, which I am using as a location to store my python scripts.What I need to do is to listen to that directory and when a python script is placed in that directory, I need to execute it at that time.Can anyone give …

Member Avatar for heshan
0
89
Member Avatar for tondeuse34

Hey guys again, well i got another question. When ever i have an if statement asking for input and i try to use an elif statement and run the code, it say's 'elif' is an syntax error. Is it an indention problem or something else? Thanks [CODE]print "1) Play" if …

Member Avatar for tondeuse34
0
168
Member Avatar for wandie

Could someone please help. I would like to sort a multidimensional array. But to sort it out by one key which appears in all array for example. [code] total=[[serial,'john'],[[serial,'james']] [/code] all the records i have all in arrays they contain a "serial" i would like sort by serial. I have …

Member Avatar for PlagTag
0
256
Member Avatar for FreezeBlink

Recently I downloaded Ubuntu v8.04 (Hardy Heron), and was delighted to find Python pre-installed. However, that pleasant surprise was soon dampened by the fact that IDLE would not run, and so I am left without a decent program for coding in Python. gedit works, but lacks pretty much everything except …

Member Avatar for bumsfeld
0
179
Member Avatar for musturd

My script works perfectly now!!! :) This is my first script too!! The problem is that this code sucks. I hate to bash my own code, but it is really inefficient and I am sure that there is a better way to perform the brute force. Here is the code, …

Member Avatar for musturd
0
242
Member Avatar for tondeuse34

Hey guys....I've been doing Python for probably more than 4 months and i have gotten to the point saying to myself "What should i make?" and "How would i do that?" i just don't know where to go know and what to do. I am capable in many things in …

Member Avatar for tondeuse34
0
94
Member Avatar for wizard wusa
Member Avatar for happimani

Dear All, Iam Using python 2.3,i have pythonpath in environment variables,is it possible to rename Pythonpath because i have to use two path alternatively first is pythonpath and second is PythonPath1 any idea????????? regards Narain

Member Avatar for vegaseat
0
121
Member Avatar for bhagyaR

Hey, Can anyone please point me to a place where I can find all the modules so far developed for python. I am mainly looking for modules that can be used to update excel files. ping machines and send automatic mails though local mail client. Appreciate your help here! Thanks, …

Member Avatar for vegaseat
0
85
Member Avatar for micam
Member Avatar for Miyuki

SysFileTree() in REXX offers an easy way to work with all files (or subset) in a directory tree. For a summary of the function, see [URL="http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.ibm.etools.iseries.orxw.doc/orxw_ref614.htm"]http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.ibm.etools.iseries.orxw.doc/orxw_ref614.htm[/URL]. Which Python module offers similar function?

Member Avatar for jrcagle
0
71
Member Avatar for saskvach

for home work I have to write a small class that deals with something mathematical it has to have some loops... anyway if u could give me some ideas (not codes) for the theme of my classs anything that would have some loops and is not very complicated i did …

Member Avatar for saskvach
0
59
Member Avatar for sbrown2594

The code below is part of a simple craps game that I am writing for practice. I have the dice rolling down, but I can't get this betting command to work out. The only module that I am really interrested here is the bet1(x) module but I copied the entire …

Member Avatar for woooee
0
114
Member Avatar for enigmaenigma

Hello all. I have a txt file which has a number of links and i need to save this file as a .html page in my webserver.How do i append <html><body><title></title>'Content of the file'</body> </html> tags to the start and end of a file so that it is saved as …

Member Avatar for sneekula
0
82
Member Avatar for tondeuse34

Hey guys i'm new here, but i got the basics of python down and i'm having some problems with my code. All i want to do is be able to type in something and have it saved as a txt file, i have tryed numerous things and when i ran …

Member Avatar for tondeuse34
0
112
Member Avatar for bf2loser

Hi guys, I'm learning python right now, and I'm having a little trouble with one of my assignments. I have to write a program that will take a word and "encrypt" it. an example, if the letter is 'a' then it should get converted to 'b'. I have the code …

Member Avatar for bf2loser
0
106
Member Avatar for ChrisP_Buffalo

I'm trying to modify a find/replace script that I previously got help with here on Daniweb. The script below iterates through a file A and makes replacements defined in a csv file B. My original goal was to change any line in file A containing a search string (in whole …

Member Avatar for ChrisP_Buffalo
0
1K

The End.