On 11 Mar, 17:23, Tim Golden wrote:
> On 11/03/2011 16:05, Chris Hulan wrote:
>
>
>
>
>
>
>
>
>
> > On Mar 11, 9:56 am, Thomas W wrote:
> >> I`m thinking about creating a very simple revision system for photos
> >> in python, something l
I`m thinking about creating a very simple revision system for photos
in python, something like bazaar, mercurial or git, but for photos.
The problem is that handling large binary files compared to plain text
files are quite different. Has anybody done something like this or
have any thoughts about
I`m working on a django-project where I`m using the awsome pyftpdlib
for ftpserver-functionality. I also have a simple worker deamon
running in the background, but not listening to any port. How can I
start all of these processes on one file? Tried using subprocess and
popen but that resulted in an
On 10 Okt, 11:13, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> Thomas W wrote:
> > I've tried to install the pyxml-package, available
> > athttp://pyxml.sourceforge.net/,
> > both from source and using some hack on the win32-binary package
> > available
I've tried to install the pyxml-package, available at
http://pyxml.sourceforge.net/,
both from source and using some hack on the win32-binary package
available for python2.4, but without luck. After install the module
xml.dom.ext.reader is not available, eventhough the folder, __init__py
and every
I want to create a virtual filesystem based on a relational database.
It might run as a server on a different machine, but it has to be
available like a normal filesystem, either shared using SAMBA or
windows filesharing or thru something else like WebDav.
The idea is that I scan a local filesyst
Great !!! That works like charm.
Thanks alot.
Thomas
Leo Kislov wrote:
> Thomas W wrote:
> > Maybe a stupid subject, but this is what I want to do :
> >
> > I got some python code stored in a string:
> >
> > somecode = """
> >
>
Maybe a stupid subject, but this is what I want to do :
I got some python code stored in a string:
somecode = """
from somemodule import ISomeInterface
class Foo(ISomeInterface):
param1 = ...
param2 =
"""
and I want to compile that code so that I can use the Foo-class and
check w
ral of you also pointed out.
Anyway, thanks for all your replies. I think I can get this thing up
and running with a bit more code tinkering. And I'll read up on some
unicode-docs as well. :-) Thanks again.
Thomas
John Machin wrote:
> Thomas W wrote:
> > I'm getting really
I'm getting really annoyed with python in regards to
unicode/ascii-encoding problems.
The string below is the encoding of the norwegian word "fødselsdag".
>>> s = 'f\xc3\x83\xc2\xb8dselsdag'
I stored the string as "fødselsdag" but somewhere in my code it got
translated into the mess above and I
I'm going to give a presentation of python to my co-workers at a very
pro-microsoft workplace. Almost everything we need is currently
supported by the standard distro + the win32all package, but we also
need support for SOAP. I've tried SOAPpy ( didn't get it to compile,
needed a library from a dea
I'm might just be dumb, but I cannot get the hang of usting setuptools
based on the docs at
http://peak.telecommunity.com/DevCenter/setuptools. Is there a simple
example available showing how to pack a few modules, a few scripts,
some resources files ( images ) and list a few dependencies ?
I've s
I've created a simple script like so :
import sys
import wx
app = wx.PySimpleApp()
dlg = wx.MessageDialog(None, "%s" % sys.argv, 'A Message Box',
wx.YES_NO | wx.ICON_QUESTION)
retCode = dlg.ShowModal()
app.MainLoop()
If I run this on the command line like
python testcmd.py /somefile.ext /another
I know this is slightly off-topic, but since Python is hot at Google
and several key members from the python community works there, I was
hoping to get some help on this subject.
I want to create a small app that reads my Picasa-metadata related to a
specified image and uploads my image and metada
How can I use python to find images that looks quite similar? Thought
I'd scale the images down to 32x32 and convert it to use a standard
palette of 256 colors then compare the result pixel for pixel etc, but
it seems as if this would take a very long time to do when processing
lots of images.
Any
I'm trying to wrap my head around the docs at python.org related to the
gettext-module, but I'm having some problem getting it to work. Is
there any really simple, step-by-step on how to use this module
available?
This is my script so far :
import gettext
gettext.install('test2', '.', unicode=1)
Well, is it possible to write Win32 shell extension in python? I want
to create a virtual folder ( like gmailfs ) to serve files from a
http-server ( and no, I cannot use webdav ) so that users can access
them like normal files in Windows Explorer.
Any hints or info about this would be highly appr
I've produced a "binary" version of a python-script using Py2Exe and
when run on WinXP it shows a terminal window for a brief moment then
the window disappears. How can I avoid this? I want the script to run
without being visible at all.
Thanks in advance,
Thomas
--
http://mail.python.org/mailma
I got a stupid problem; on my WinXP-box I want to scan the filesystem
and enter a path to scan like this :
path_to_scan = 'd:\test_images'
This is used in a larger context and joined like
real_path_after_scanning = os.path.join(path_to_scan, somepart, 'foo',
'bar', filename)
Using os.path.exis
Will there be a WSGI-server like BaseHTTPServer etc in the standard
distro? I think that would increase the adoptation of the
WSGI-standard. A new web-framework for python pops up every other week
and more and more support WSGI. Why not focus on getting an optimized,
production-grade fully document
Ok, I'll post my findings here since there are allready several
questions about this topic on the net allready :
The solution was to do an explicit import in my module, like so :
from encodings import ascii
from encodings import idna
This solved the problem, at least in my case.
Regards,
Thomas
I get this error when I try to run a freezed exe on my ubuntu 5.04
running Python 2.4 :
LookupError: no codec search functions registered: can't find encoding
I've tried to use --include-modules encodings,codecs when freezing
without luck.
Any hints?
Regards,
Thomas
--
http://mail.python.org/
Well, AFAIK people are running web-sites using apache, php and mysql on
it and with ok performance. I'm not saying this would replace a real
server, but for normal home-use with not too much traffic it seems to
do the job.
It's a fact that Linksys uses a somewhat modified version of linux on
the N
I want to monitor a given USB-device, like a Memory Card-reader, and
when a memory card is inserted I want to move the data on the card to a
different location on the filesystem ( or do something else with the
files).
Does anybody know how to do this ( on Linux and/or windows ) or if it's
even do-
Has anybody done any work using Python on the Linksys NSLU2[1][2]? I'm
especially interested in stuff related to compiling additional modules,
like PIL. There are allready a bunch of stuff available in the current
replacement-firmware, but PIL seems to be missing.
If you haven't heard about the NS
I'm developing a web-application where the user sometimes has to enter
dates in plain text, allthough a format may be provided to give clues.
On the server side this piece of text has to be parsed into a datetime
python-object. Does anybody have any pointers on this?
Besides the actual parsing, my
I'm thinking of switching from my Twisted-HTTP-server-project to
CherryPy or Snakelets etc etc. The project involves alot of
database-access using SQLObject and SQLite ( perhaps MySQL and
PostgreSQL in the future ) and some heavy IO-stuff ( scanning of local
filesystem to extract meta information a
Hi,
I'm having some problems serving binary data in a simple CGI-script.
I'm setting content-type ( "application/octet-stream" ), content-length
and Content-disposition and I think these are correct, but the size of
the served file/data is different than the source. The read and write
the data I'm
I need to download all files older than 3 hours from a ftp-server.
What's the easiest way to this? I've looked into the standard ftplib,
but it seems like the only way to go is to parse the
ftp.retrlines('LIST') command and that seems to be very easy to mess
up.
any hints?
29 matches
Mail list logo