15,181 Topics

Member Avatar for
Member Avatar for oystercatcher

Let me begin by saying that I am a lousy programmer and I am hacking away at something that interests me. I havent used these forums before so I hope the code I post doesnt get corrupted. I am working on a logarithm solver using a method explained by napier …

Member Avatar for oystercatcher
0
185
Member Avatar for bhanu1225

Hello All. See,for example... in this community site, we can view 10 to 15 threads in a single page and it goes to the second page. It means, a single page can set few threads. I need like that in python. Any suggestions plz.

0
45
Member Avatar for bhanu1225

Hello All. I am having doubt that, is MS SQL works on Apple Mac Os X AND ".NET" too ??

0
62
Member Avatar for bobthebobish

Long time hobbyist programmer suddenly in charge of writing software for a small/medium non profit here. I'm not totally new to python but I wouldn't call myself a genius by any stretch. Anyways I have a rather specific question and want to know if it is actually possible to do …

Member Avatar for bobthebobish
0
103
Member Avatar for mindfad

Hi Ive recently tried to move a python code from a mac version to a version of Psychopy IDE. Now the code wont work on the pc it tells me there a syntax error. Is there something different that mac uses in the python code then the pc? if not …

Member Avatar for mindfad
0
158
Member Avatar for drjay1627

I'm trying to code a Trie in Python. Any suggestions as to where I should begin? drjay

Member Avatar for jlm699
0
109
Member Avatar for brashli

I am trying to do calculations onto a file that I created in python. But I can't seem to make a string with the data without loosing my quotations or going word by word... i have attached my code... This then produces... ['Corn', 'For', 'Grain', 'Irrigated', '1970', 'Colorado', 'Chaffee', '8', …

Member Avatar for jlm699
0
150
Member Avatar for hughesadam_87

Hey all, I have a class with various methods and I want to pass the output of one method into the next method. For example: [CODE]class RockPaperScissors: '''Rock paper scissors game, best of 3''' tries = 3 def __init__(self, name): 'Reads in users call' self.name = name print 'You picked …

Member Avatar for jlm699
0
175
Member Avatar for jaseerabubakar

I am trying to write a scipt which will take a movie name, search it in google with 'I am Feeling lucky' and return the redirected page. [CODE]import urllib.request import urllib.response import urllib.parse proxy=urllib.request.ProxyHandler({"http":"http://www-proxy.us.oracle.com:80"}) auth=urllib.request.HTTPBasicAuthHandler() opener=urllib.request.build_opener(proxy,auth,urllib.request.HTTPHandler) urllib.request.install_opener(opener) url= 'http://www.google.co.in/search' values = {'hl' : 'en', 'q' : 'Departed imdb', 'btnI' : …

Member Avatar for jlm699
0
206
Member Avatar for sravan953

Hey guys... I created a uber-basic brute force program(not exactly 'brute force'), where in the program opens a 'log.txt' file and reads the contents. I created a list of alphabets A-Z and numbers 0-9....what I wanted the program to do was, try out different combinations with the given set of …

Member Avatar for vegaseat
0
125
Member Avatar for ia2196

I have a list which is of type class people. def class people: name="" age=0 class poeple has two data members name, age I have a list of all person stating in the city as a list of objects of this class.list is called population now i get an query …

Member Avatar for jlm699
0
79
Member Avatar for Horia.Muntean

this is the code of a "dice roller" I made the output(result of print commands) shows in the terminal/cmd is there a way to make a textbox that will show the results directly in tk? eg. "You rolled 10 on the 1d12 dice!" #shown in a tk messagebox and something …

0
65
Member Avatar for SoulMazer

So, I have this script that I am using to study some Biology vocab words for my final tomorrow. All I did was put the list of words/definitions in my existing script, and everything seems to go wrong. I have a total of 50 definitions, yet it says there are …

Member Avatar for SoulMazer
0
132
Member Avatar for mahela007

Occasionally I need to make files in certain folder using python. To minimize the clutter which such files might cause I would like to make them hidden. It's pretty easy to do this using windows explorer but I have to do it manually for every file which my script creates. …

Member Avatar for mahela007
0
12K
Member Avatar for Stefano Mtangoo

I was out of programming for long and now I'm just trying back to regain my knowledge on the language. I have forgotten how the ListCtrl get populated. Here is the tutorial but I cant explain the mechanism. Please help me to understand the whole process. Cheers :) [url]http://zetcode.com/wxpython/advanced/[/url]

Member Avatar for Stefano Mtangoo
0
98
Member Avatar for hughesadam_87

I am trying to learn object oriented programming and am still shaky on the ins and outs of classes. I understand their purpose, but can't seem to grasp many simple operations when using them. The dive into python section on classes is not very helpful either, so if you know …

Member Avatar for vegaseat
0
409
Member Avatar for DayOldPorridge

I've been searching for an easy-to-understand tutorial on fetching web pages using sockets in Python, but haven't been able to find a really newbie-friendly guide. Could someone point me in the right direction?

Member Avatar for siddhant3s
0
97
Member Avatar for Horia.Muntean

Hello.I'm working on a d20 based game system and I'm pretty new to python.What I've done so far is: create 6 random rolls with values 3-18 rollOne rollTwo rollThree etc. There are 6 stats that need theese rolls assigned statOne statTwo etc. I've done the part on how to assign …

Member Avatar for Horia.Muntean
0
125
Member Avatar for knish

Hi, 1) I need to copy images from local to central thru a 3d appl. In doing so i m using threads to ensure that maya does not freeze. Now the case is for each image that is copied there is multiple sizes of this image that has to be …

0
54
Member Avatar for tehbrozor

Hello, The situation here is I have a file and each line has a 8 digit number in it (aorkey) the file is called target.lst In another file (file.lst) there are tons of paths in each path there is an aorkey (somewhere its not always in the same place and …

Member Avatar for tehbrozor
0
113
Member Avatar for SoulMazer

For my script, I am trying to open a text file and print out the information in the console window. However, I am having trouble finding the right way to load it. To start, I need to figure out how to load something in the same directory as the script, …

Member Avatar for SoulMazer
0
149
Member Avatar for ararik

Hi, I am very new to Python and computer programming language. I have been working on a text file where I want to find the average length of words in a text file. Well, to start with: Let's say I have only one sentence in my text file (we can …

Member Avatar for ararik
0
3K
Member Avatar for TerabyteST

Hi, in my program, I need at one moment to set a window on the top of the others created by my program but not of all the windows (so that it does not popup randomly when I'm doing something else) how can I do it?

Member Avatar for TerabyteST
0
67
Member Avatar for RDCooter

Just started working on a project that is using Python to drive C API's. When the C API's take an unhandled event they terminate using a C exit(3). How can I monitor for these exit conditions with in my Python code and handle and process the error code used in …

Member Avatar for woooee
0
116
Member Avatar for aot

So far the move to wxPython has been going fairly smoothly. However, it's crucial that I be able to display items in the center of the screen (images, buttons, and radioboxes). I read about wx.ALIGN_CENTER_VERTICAL and wx.ALIGN_CENTER_HORIZONTAL, but the vertical option just doesn't seem to be working for me. Below …

Member Avatar for sneekula
0
1K
Member Avatar for SAFC

Hi. I know that Python comes bundled with Cygwin, but can Cygwin work without Python? I believe it can but I'm just checking as there's some non-developers that we wouldn't want to get access to Python when using Cygwin and Xfree86.

Member Avatar for SAFC
0
22
Member Avatar for tombatista

[CODE]Test = ''' SELECT /*+ INDEX (s_evt_act acc_temp_teste) */ todo_cd tipoemail, name subject, email_sndr_addr remetente, evt_stat_cd status, to_char(trunc(created), 'yyyy-mm-dd') data, COUNT(1) quantidade FROM sblprod.s_evt_act WHERE created >= TO_DATE(:DATAI, 'yyyy-mm-dd hh24:mi:ss') AND created <= TO_DATE(:DATAF, 'yyyy-mm-dd hh24:mi:ss') AND todo_cd IN ('Email - Entrada','Redução de Preço','Fax - Entrada','Email - Saída') GROUP BY …

Member Avatar for slate
0
153
Member Avatar for syris

This is my first time programming anything and i'm reading the learning python book. I'm stuck at step one and very annoyed. I'm trying to run just a simple print saved program i wrote in notebook. For some reason i can't open it, ive gotten to the point where i …

Member Avatar for Stefano Mtangoo
0
109
Member Avatar for poeticinsanity

When the .request method is called, an error is happening. The page does exist, but for some reason the request is failing. Any idea as to why? [CODE]''' Created on May 29, 2009 @author: snorris4 This program will spider the repo.or.cz site for information on their open source projects, gathering …

0
52
Member Avatar for harrykokil

how do i set the input value to 150 as default? n if i enter non-integer value how can i validate it?? thanks [icode] from Tkinter import * root = Tk() lbl = Label(root, text = "Enter Number of vehicles", bg = 'blue', fg= 'white') lbl.pack() textbox = Entry(root, width="20", …

Member Avatar for vegaseat
0
87

The End.