Hey, I need a simple example for the following task:
Send a query to YQL and receive a response
I am accessing public data from python backend of my Django app.
If I just copy/paste an example from YQL, it says "Please provide valid credentials".
I guess, I need OAuth authorization to do it.
So I got an API key and a shared secret.
N...
I am developing a wiki using django which i plan to deploy later in google appengine. Is it possible to deploy textdiff like system in appengine?
...
Hi,
We made a simple application and using GoogleAppEngineLauncher (GAEL) ran that locally. Then we deployed, using GAEL again, to our appid. It works fine.
Now, we made a web service. We ran that locally using GAEL and a very thin local python client. It works fine.
We deployed that, and we get this message when we try to visit our ...
I am making a community for web-comic artist who will be able to sync their existing website to this site.
However, I am in debate for what CMS I should use: Drupal or Wordpress.
I have heard great things about Drupal, where it is really aimed for Social Networking. I actually got to play a little bit in the back end of Drupal and it s...
Is there some built-in function that tells me if a path is absolute or not? I'd like something that is platform independent.
...
Hello, according to this page one can't use code like
if variable = something():
#do something with variable, whose value is the result of something() and is true
So in case I want to have the following code structure:
if a = something():
#do something with a
elif a = somethingelse():
#...
#5 more elifs
where something() functions ...
I can't seem to fetch the verifiedEmail field when trying to login to AOLs OpenID on my site. Every other provider that I know of provides this property, but not AOL.
I realize that AOL somehow uses an old OpenID version, although is it feasible to just assume that their e-mail ends in @aol.com? I'm using the RPXNow library with Python....
I'd like to parse a big XML file "on the fly". I'd like to use a python generator to perform this. I've tried "iterparse" of "xml.etree.cElementTree" (which is really nice) but still not a generator.
Other suggestions?
...
Tackling a few puzzle problems on a quiet Saturday night (wooohoo... not) and am struggling with sort(). The results aren't quite what I expect. The program iterates through every combination from 100 - 999 and checks if the product is a palindome. If it is, append to the list. I need the list sorted :D Here's my program:
list = [] #lis...
Hello. There is a Python mechanize object with a form with almost all values set, but not yet submitted. Now I want to fetch another page using cookies from mechanize instance, but without resetting the page, forms and so on, e.g. so that the values remain set (I just need to get body string of another page, nothing else). So is there a ...
I need an Object Pool, and rather than implement it myself, I thought I would look around for a ready-made and tested Python library.
What I found was plenty of other people looking, but not getting many straight answers, so I have brought it over here to Stack Overflow.
In my case, I have a large number of threads (using the threading...
This is what I've done for a project. I have a few data structures that are bascially dictionaries with some methods that operate on the data. When I save them to disk, I write them out to .py files as code that when imported as a module will load the same data into such a data structure.
Is this reasonable? Are there any big disadvanta...
I googled and also checked amazon but have not found any book on this subject, so is there any book out there on Pyobjc? If not then from where i should start?
...
I'm new to python and is trying to install the pyimage module.
http://code.google.com/p/pyimage/
I'm on Windows, and have downloaded and installed 2.6 and 3.1.
I downloaded pyimage, and used cmd and cd to get to its dir.
I then got this:
C:\Users\Jourkey\Desktop\pyimage-0.8.13\pyimage-0.8.13>python setup.py install
'python' is not re...
Hi all,
I don't know how to make a GqlQuery that order by a property of the ReferenceProperty.
In this case, I want to get all the Seat but order by the id of the Room
The GqlQuery reference does not allow a join, so how do you approach in this case?
class Room(db.Model):
id = db.IntegerProperty()
dimension = db.StringPropert...
Trying to translate some methods written in Python over into C#. The line looks like this:
d[p] = d.setdefault(p, 0) + 1
What exactly does setdefault do? And is there anything similar I can use in a C# dictionary? Or rather, how can I translate that line into C#?
...
I am trying to fit a step function using scipy.optimize.leastsq. Consider the following example:
import numpy as np
from scipy.optimize import leastsq
def fitfunc(p, x):
y = np.zeros(x.shape)
y[x < p[0]] = p[1]
y[p[0] < x] = p[2]
return y
errfunc = lambda p, x, y: fitfunc(p, x) - y # Distance to the target function
x ...
I'm really new to python and I'm wondering how to declare an array in this language? I can't find any reference to arrays in the docs.
...
I wonder if anyone has some example code of a Neural network in python. If someone know of some sort of tutorial with a complete walkthrough that would be awesome, but just example source would be great as well!
Thanks
...
It looks like PyObjC is not ported to Python 3 yet.
Meanwhile is there a way to write Cocoa applications using Python 3?
I am intending to start a new MacOSX GUI application project and though5 would want to use Python 3.x instead of Python 2.x.
...