I'm building a face-book style activity stream/wall. Using python/app engine. I have build the activity classes based on the current activity standard being used by face-book, yahoo and the likes. i have a Chanel/api system built that will create the various object messages that live on the wall/activity stream.
Where i can use some he...
The distutils documentation specifies that when the target directory for data_files is a relative path, the files will be installed relative to sys.prefix. On my system (Linux Mint), this is /usr; however, the data_files are instead installing to /usr/local.
How can I correct this without losing cross-platform support?
...
Hello
I am trying to do webservice calls with django views using Amara library.
However anytime I do import amara (by simply importing it!) and call a django view with it imported, I get such errors:
Environment:
Request Method: GET
Request URL: http://127.0.0.1:4444/test
Django Version: 1.2.1
Python Version: 2.6.5
Installed Applicati...
If I call win32timezone.TimeZoneInfo.local().timeZoneName, it gives me the time zone name in the current locale (for example, on a Japanese machine, it returns u"東京 (標準時)").
I would like to map this name to an Olsen database timezone name for use with pytz. CLDR windowZones.xml helps me to map English names, but can't handle the Japanes...
for python2.x py2app will do the work. But for python3 code which one is alternate to go ahead?
Or any other way to get single .app file?
...
I am on MacOSX Snow Leopard and I'm using python 2.6.5 installed with macports. I'm inside a virtualenv.
I can't run python manage.py shell after installing IPython but I can run IPython standalone.
I figured out that the following line is what causes the issue:
(status, result) = commands.getstatusoutput("otool -L %s | grep libedit" %...
how to send a post request and get the response in ruby
request is,
name=$name_val
URL is http://example.com/a/2
how do i do this in python or ruby?
...
Excuse my total newbie question but how do I convert:
[<Location: London>] or [<Location: Edinburgh>, <Location: London>] etc
into:
'London' or 'Edinburgh, london'
Some background info to put it in context:
Models.py:
class Location(models.Model):
place = models.CharField(max_length=100)
def __unicode__(self):
ret...
Is it possible to display text labels in wx.SL_Labels?
Thanks
...
When I compiled Python using PCBuild\build.bat I discovered that several Python external projects like ssl, bz2, ... were not compiled because the compiler did not find them.
I did run the Tools\Buildbot\external.bat and it did download them inside \Tools\ but it looks that the build is not looking for them in this location and the PCB...
How to know the total number of columns used in an excel sheet in the following link
http://scienceoss.com/read-excel-files-from-python/
Thanks..
...
I have a function (neural network model) which produces figures. I wish to test several parameters, methods and different inputs (meaning hundreds of runs of the function) from python using PBS on a standard cluster with Torque.
Note: I tried parallelpython, ipython and such and was never completely satisfied, since I want something sim...
Could someone tell me which is better of the two for bundling Python applications — cxFreeze or pyInstaller? I'm looking for a comparison based on factors such as:
Popularity (i.e. larger user base)
Footprint of the built binary
Cross platform compatibility
Ease of use
Thanks.
...
i am trying to enable the delete key in my treeview. This is what i have so far:
class delkeyFilter(QObject):
delkeyPressed = pyqtSignal()
def eventFilter(self, obj, event):
if event.type() == QEvent.KeyPress:
if event.key() == Qt.Key_Delete:
self.delkeyPressed.emit()
print ...
Hello, I'm trying to obtain the n-th elements from a list of tuples.
I have something like
elements = [(1,1,1),(2,3,7),(3,5,10)]
and I want to extract only the second elements of each tuple into an array:
seconds = [1, 3, 5]
I know that it could be done with a for but I wanted to know if there's another way since I have thousands o...
hi, I developped a django website on my local machine and now is the time to upload it on a server. I would like that during the time i work on it, only logged in users can see it.
I thought about a
{% if is_logged_in %}
{% else %}
{% endif %}
structure in my base.py template but not all my views return a Context so it doesn't always...
This is a continuation from this question:
wxPython: Can a wx.PyControl contain a wx.Sizer?
The main topic here is using a wx.Sizer inside a wx.PyControl. I had problems Fit()ting my CustomWidget around its child widgets. That problem was solved by calling Layout() after Fit().
However, as far as I have experienced, the solution only w...
I can't find information on how to destroy / kill a session within Pylons or Python on the interwebs. Thought it would be a good idea just to ask it here so that when I need to do it again a year from now I'll find this question :)
So I'm looking for a PHP session_destroy() equivalent for Pylons or Python.
Thanks,
Maggi
...
Hi everyone!
I want to do the following: I have a container-class Container, it has
attribute attr, which refers to another class OtherClass.
class OtherClass:
def __init__(self, value):
self._value = value
def default(self):
retirn self._value
def another(self):
return self._value ** 2
...
Hi, can somebody describe the following exception? What is the "object layout" and how it is defined? Thanks
Traceback (most recent call last):
File "test_gui.py", line 5, in <module>
suite = AlgorithmEngine('gui_suite')
File "/home/honza/Research/Voiar/algorithm.py", line 169, in __init__
self.algorithms = self._initAlgorit...