15,181 Topics

Member Avatar for
Member Avatar for Ron12345

I have a web app in python but I'd like to protect it with site minder authentication. Thanks.

0
112
Member Avatar for woooee

Hi Guys, Please be gentle with me as im a complete n00b. My favorite language is actually Java which im learning at Uni at the moment. However to throw a spanner in the works they have switched us over to Python, as well as learning Java. My mind has been …

Member Avatar for Lardmeister
1
171
Member Avatar for ronbarak

When I try to save a pylab plot (either from the GUI or with `pylab.savefig`), I get the error at the bottom. A minimal script that demonstrates the problem is: import pylab pylab.savefig("foo.png") A Google search for `IndexError: Unexpected SeqBase<T> length` did produce some results, none of them hinting how …

0
146
Member Avatar for GGreek

I've created this script that logs in to Windows Live (http://login.live.com/) but I can't tell if it works, can anyone elaborate? import requests import sys EMAIL = 'email goes here' PASSWORD = 'pass goes here' URL = 'https://login.live.com/' def main(): # Start a session so we can have persistant cookies …

0
113
Member Avatar for GGreek

import requests import sys EMAIL = 'YOUR EMAIL GOES HERE' PASSWORD = 'YOUR PASSWORD GOES HERE' URL = 'https://login.live.com/' def main(): # Start a session so we can have persistant cookies session = requests.Session() # This is the form data that the page sends when logging in login_data = { …

0
49
Member Avatar for nnekymoe

![Spatial_Recall_2](/attachments/large/4/Spatial_Recall_2.png "Spatial_Recall_2") I'm new to pygame and currently I'm working on creating a memory game where the computer displays boxes at random positions for like a second and then the user has to click on where he/she thinks those boxes are. It's kind of like this: [Click Here](http://www.lumosity.com/brain-games/memory-games/memory-matrix) However right …

0
165
Member Avatar for neely615

I am in the process of learning python, but I have a problem some one gave me last week that I wouldn't mind solving before I get to where I actually learn about it. I think python is the best choice. I need to generate a txt file by inserting …

Member Avatar for neely615
0
172
Member Avatar for LinaClark

I have finished the code, but I can not for the life of me figure out why I am not getting any output. Any help would most appreciated. #!/usr/bin/python import apsw import random class NonRepeatingRandom(object): def __init__(self, maxvalue): self.maxvalue = maxvalue self.used = set() def next(self): if len(self.used) >= self.maxvalue: …

Member Avatar for Gribouillis
0
230
Member Avatar for TrustyTony

This example program of using the multiprocessing is crashing my i7 4 core windows7 64 bit computer (32 bit enthought Python 2.7), but is running fine in virtual machine Ubuntu with 4 cores assigned. Can anyone run it in their commputer in Windows7. My system memory (8 GB) is totally …

Member Avatar for vegaseat
0
255
Member Avatar for dilbert_here00

Hello All, I am trying to access files which are on a shared network file system, but not sure which python API I should be using. Description: For example the IP address of the file system is 10.10.10.1 1. From windows if i want to access this server i simply …

Member Avatar for Gribouillis
0
467
Member Avatar for ZZucker

Santa just brought me a fancy notebook computer and I want to know if anyone has some experiemce with accessing that little camera with Python code?

Member Avatar for ZZucker
0
215
Member Avatar for jimmyshote

anytime i add a directory in a .pth file of my c:\python30\Lib\site-packages folder on windows and i try to import from the listed directory in my .pth files, i get an import error that the module does not exist and after importing sys on the windows command line interface and …

Member Avatar for ZZucker
0
539
Member Avatar for Jacklittle01

Hi guys, I am working on a text based adventure game in Python and I am constantly getting this error: **There's an error in your program: return outside function(g.py, line 179** Here is the code http://www.mediafire.com/?4ga0weu4ifc6s1u

Member Avatar for james.lu.75491856
0
182
Member Avatar for wwielen

Hi, I'm trying to make a slider, but for some reason all the numbers of the slider get in left corner of the frame, all at the same position(instead of the 1;left,the position of the slider;middle and 100; right). Also see added File Here is my code: import wx class …

Member Avatar for wwielen
0
139
Member Avatar for Arizona33

Hello, I am a new to python. I need to solve 5 exercises. Any help would be very much appreciated!! thank you! 1.Write a program dotplot.py That takes as input a fasta file with two sequences A scoring matrix and sliding window, such as: dotplot.py fasta.in score.mat 11 and prints …

Member Avatar for vegaseat
-1
135
Member Avatar for giancan

Dear Friends, I have a sequence of two values as the following: 00001.doc d:\pathtofile\image50.jpg 00002.doc d:\pathtofile\image38.jpg 00003.doc d:\pathtofile\image40.jpg ... I would like to add the values to a list, sort the list by second value and rename the first value accordingly. For example, the following steps: Step 1 '00002.doc', 'd:\pathtofile\image38.jpg' …

Member Avatar for vegaseat
0
184
Member Avatar for felix001

What is the best way to use a dictionary within a class. Do I have to assign the dict within the class ? Thanks

Member Avatar for vegaseat
0
120
Member Avatar for mgunia

Hello Everyone! I am a beginner user of Python without IT background (I am interested in IT developing my knowledge step by step). So far I did simple scripts in Python and I encountered a problem. I was looking on Google, however I didn't find the satisfactory answers which would …

Member Avatar for vegaseat
0
9K
Member Avatar for Niner710

I have a question on how to slice a dataframe. Below is a row in my dataframe. I just want to get the list under column C. I saw that I could use df.get_value(), but I'm not sure what to put for index. Is this the right way to return …

0
54
Member Avatar for LinaClark

I need help figuring out how to fix my code. Every time I run the code its traceback is to this part of it. My code is Unbound Local Error for 'result'. Please see code below: def Level1(self): sql = "SELECT easyhint, gps, qrcode FROM gamedb WHERE quad = 1 …

Member Avatar for scaba
0
170
Member Avatar for james.lu.75491856

Traceback (most recent call last): File "C:/python files/USACO/crazy/crazy.py", line 87, in <module> grid.plot(x,y,"F") File "C:/python files/USACO/crazy\grid.py", line 63, in plot self.g[(x,y)] = replace TypeError: unhashable type: 'list' You see, I'm hashing a string with the key bing a tuple. This is using my own 2d grid data structure.

Member Avatar for james.lu.75491856
0
584
Member Avatar for vickim360

Hello, I have been working on a code to simulate wind turbines. However, I can't seem to rotate the wind turbine. Here is the code. import pygame ############################################# # Written by P****** ******* and V***** *** # # Copyright 2012 # ############################################# pygame.init() # Gets Information humidity = float(raw_input("Enter Humidity …

Member Avatar for Jacklittle01
0
321
Member Avatar for krystosan

I am learning re module for practice I have taken an export of my phone addressbook which is a comma seperated text file, containing "First Name","Mobile Phone","Home Phone","Company","E-mail Address","Company Main Phone","Business Fax","Birthday" as of now I am more interested in First name , mobile phone number and email address. in …

Member Avatar for snippsat
0
405
Member Avatar for pbnoj

Hi guys, So I have a list of objects, each which belong to a particular subclass. I am trying to calculate a running standard deviation as follows: Label = [] Resistance = [] m = 0 i = 0 j = 0 for row in Reader: if len(row) == 0 …

Member Avatar for woooee
0
209
Member Avatar for SumTingWong59

Hey I am having trouble with a tic tac toe game and I could really use some help. My if statement(line 51) is underlined, says its invalid syntax, and I cant fix it no matter what I do. Here's my code: http://pastebin.com/UtVTz4gg

Member Avatar for woooee
0
87
Member Avatar for Cravver

While I know some Python language I just can seem to make thi work: So I have this script that when you post a command: -ytb [search terms], it would look up the video in an atom feed from yuotube, could you tell me what I have wroong here? Because …

Member Avatar for Cravver
0
276
Member Avatar for Gribouillis

This small python script invokes the [Treeline](http://treeline.bellz.org/index.html) tree visualizer to display xml files in a pleasant way. ![viewxml](/attachments/large/1/viewxml.png "viewxml")

0
2K
Member Avatar for PhilEaton

I am new to python web frameworks. I am using web.py because I like how raw it is. I am wondering though, how one can produce pages and scripts efficiently when being restricted to sending output through the return keyword? It seems like for any python module you can only …

Member Avatar for Gribouillis
0
240
Member Avatar for nytman

Dear list, i am new to python as well as new to programming with no previous programming experience, i have to design GUI in python and implement multithreading in it, and also perform multithreading at servers in query handling. I checked so many web pages and tried to learn basics …

Member Avatar for vegaseat
0
250
Member Avatar for happymadman

Hey, Guys and Gals. For some reason the variable text_list seems to be modified after the variable final has been modified. text_list is a list of text :) Full code is below. Any other hints and tips would be great Thanks a bunch. decode_list = [] key = 0 final …

Member Avatar for woooee
0
132

The End.