ECTED]
Subject: Re: Class Dependancy Injection
Robert Rawlins - Think Blue wrote:
> Hey again guys,
>
>
>
> I'm looking to get an answer about dependency injection in python
> classes, what is the best way to deal with this?
>
>
>
> For instance, in my a
Hello Guys,
Thanks again for all the help you've given me this past week, things are
moving briskly and my class library is building nicely and seems to be
working well :-D
Now, I'm working with an API for another piece of software today, and the
API documentation details the signals that a
Chaps,
Is it possible to import a module from a subdirectory in my application? I
can only seem to get it to import from a single directory, but keeping all
my files and classes in the same directory becomes a little sloppy.
Thanks,
Rob
--
http://mail.python.org/mailman/listinfo/pyth
Hello Guys,
I'm looking to write a Log file which will be CSV based, and there is a good
possibility that it'll get quite busy once its up and running, so I'm
looking for the most efficient way to achieve it. Whilst I'm sure i could do
something like this.
myfile = open("Logs/
't likely to be a steady flow of traffic, they'll come in big fat lumps
every now and then.
Thanks,
Rob
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 April 2007 15:12
To: Dave Borne
Cc: Robert Rawlins - Think Blue; python-list@python.org
Subject: Re
[mailto:[EMAIL PROTECTED]
On Behalf Of Tim Golden
Sent: 16 April 2007 15:28
Cc: python-list@python.org
Subject: Re: Writing Log CSV (Efficiently)
Robert Rawlins - Think Blue wrote:
> The log at its highest rate of write may be looking at an operation a
> second
I think I can probably type
Do the same again, but change that 'wb' to 'a' for append :-D should sort
you out.
Rob
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of luca72
Sent: 16 April 2007 16:57
To: python-list@python.org
Subject: file resume
Hello at all:
if i have one file writt
I'm looking to clear those log files we were discussing earlier chaps,
What the best method to do this? Delete the file completely? Or just empty
its content?
Thanks,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
Hello Chaps,
I posted about this the other day but I'm still struggling to get any form
of result from it. Basically I have the following piece of code, and
according to its API is produces singals when particular events occur, but i
have no idea how to list for events, I've tried all sorts of
Guys,
I have a function that returns a array{uint32}, is there any way to output
that to screen in a more user friendly format? At the moment when I print it
by itself it appears as [65541L], which isn't much used to anyone.
I know this is probably a REALLY dumb question but I'm a little lo
lp you can offer, its greatly appreciated.
Rob
-Original Message-
From: Carsten Haese [mailto:[EMAIL PROTECTED]
Sent: 18 April 2007 13:43
To: Robert Rawlins - Think Blue
Cc: python-list@python.org
Subject: Re: Signals
On Wed, 2007-04-18 at 08:39 +0100, Robert Rawlins - Think Blue wrote:
&
Hello Guys,
I'm kick starting my application using the inittab to ensure its re-spawned
if it dies. However I need to ensure several other applications and service
are up and running before my application is started, things such as dbus and
a couple of other hardware stacks.
A concept I've
Hello Guys,
I've got some code here which I'm using to kill a process if it freezes.
However I have no real way of testing it as I can't force a freeze on my
application. So thought I would run the code past you lot to see if anything
jumps out as not being quite right.
Now, my main applica
Hello Guys,
Finally got around to sitting down to tidy up this script this morning but
I'm having a small syntax problem with os.kill() to kill a process on my
system. Here is the code:
def killApplication():
pid = file('/var/lock/MyApplication.lock').read().strip()
Woops,
Spoke too soon, just wrapped them in int() and it works a charm :-D
Rob
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of Robert Rawlins - Think Blue
Sent: 24 September 2007 12:23
To: python-list@python.org
Subject: Almost There - os.kill()
Hello Guys
Hello Guys,
I'm looking for a little advice on spawning a sub process to run a command
line application for transferring a file over Bluetooth. Now the spawned
process runs from start to finish exactly as I would expect it too, however
its very slow.
Now the main reason this is so odd, is
Hello Chaps,
I've got an application running on linux which writes log files using the
python logging module. I'm looking for some help and advice to cap the size
which the file will grow too, something reasonably like 2Mb would be great.
What is the best way to handle this kind of thing? C
Hello Chaps,
I've got a requirement to check a file for a change every 10 seconds or so,
and if the file has been modified since the last time I parsed its content
into the application then I need to parse it in again. However, I need this
process to not interrupt the rest of my application flo
Rob
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabriel Genellina
Sent: 22 October 2007 15:29
To: python-list@python.org
Subject: Re: Check File Change Every 10 Seconds
En Mon, 22 Oct 2007 06:56:52 -0300, Robert Rawlins - Think Blue
<[EM
Check File Change Every 10 Seconds
Gabriel Genellina wrote:
> En Mon, 22 Oct 2007 06:56:52 -0300, Robert Rawlins - Think Blue
> <[EMAIL PROTECTED]> escribi�:
>
>> I've got a requirement to check a file for a change every 10 seconds or
>> so,
>> and if the fil
Hello Chaps,
I'm not sure what you IDE you all generally use for your python development.
I've been somewhat lazy and always used a plain text editor, however this
technique is starting to take its toll, and it's purely been out of laziness
not finding myself a decent IDE to develop in. So this
Hello Guys,
I'm having a little trouble modifying my logging so that the log files are
rotated. I'm using the standard python logging module and can find some
decent documentation on how to create and add a rotatingFileHandler to my
logger but I've been unable to find out how to disable the sta
To: Robert Rawlins - Think Blue
Cc: python-list@python.org
Subject: Re: Get Available Functions
> I'm working with a python module which isn't part of the core
> Python API and it also isn't very documented or supported, is
> there any way that I can easily dump/view t
Hello Guys,
I'm working with a python module which isn't part of the core Python API and
it also isn't very documented or supported, is there any way that I can
easily dump/view the available classes and methods within the package from
within python?
Thanks guys,
Rob
--
http://mail.py
Hello Guys,
I've been working on a little pet project for a while now, using it as a
learning exercise for Python and its starting to grow nicely, I'm now
looking into refactoring it a little in a more OO fashion and I've always
been a real fan of design patterns and all those fun kind of thing
Afternoon Guys,
I've got what I would consider to be a strange memory leak within an
application I've been working on. When the application is running the
consumed system memory creeps up slowly, getting higher and higher.
However, when looking at 'top' to display the memory allocation for
Hello Guys,
I'm looking for a function which will give me the last 4 characters of a
given string. I'm sure it's a very simple task but I couldn't find anything
of it.
Any ideas?
Rob
--
http://mail.python.org/mailman/listinfo/python-list
Hello Chaps,
I'm after some advice on the best way to handle a logging job. Essentially I
have data which I'm looking to log to a webservice, it would make good sense
I think to use something like the HTTP handler for the python logging API.
The problem comes when the application isn't 'onl
HenHanna wrote:
> https://xkcd.com/1306/
> what does SIGIL mean?
I'd define a sigil as a mandatory symbol used to indicate the properties
of a name.
--
Blue-Maned_Hawk│shortens to Hawk│/blu.mɛin.dʰak/│he/him/his/himself/Mr.
blue-maned_hawk.srht.site
“
101 - 129 of 129 matches
Mail list logo