RE: Class Dependancy Injection

2007-04-13 Thread Robert Rawlins - Think Blue
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

Signal Handlers

2007-04-16 Thread Robert Rawlins - Think Blue
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

Import From SubFolder

2007-04-16 Thread Robert Rawlins - Think Blue
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

Writing Log CSV (Efficiently)

2007-04-16 Thread Robert Rawlins - Think Blue
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/

RE: Writing Log CSV (Efficiently)

2007-04-16 Thread Robert Rawlins - Think Blue
'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

RE: Writing Log CSV (Efficiently)

2007-04-16 Thread Robert Rawlins - Think Blue
[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

RE: file resume

2007-04-16 Thread Robert Rawlins - Think Blue
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

Deleting or Empty a File

2007-04-17 Thread Robert Rawlins - Think Blue
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

Signals

2007-04-18 Thread Robert Rawlins - Think Blue
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

array{uint32}

2007-04-18 Thread Robert Rawlins - Think Blue
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

RE: Signals

2007-04-18 Thread Robert Rawlins - Think Blue
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: &

Wait For Application Start

2007-09-18 Thread Robert Rawlins - Think Blue
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

Killing A Process By PID

2007-09-20 Thread Robert Rawlins - Think Blue
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

Almost There - os.kill()

2007-09-24 Thread Robert Rawlins - Think Blue
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()

RE: Almost There - os.kill()

2007-09-24 Thread Robert Rawlins - Think Blue
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

Subprocess Running Slowly

2007-10-12 Thread Robert Rawlins - Think Blue
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

Control Log File Size

2007-10-19 Thread Robert Rawlins - Think Blue
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

Check File Change Every 10 Seconds

2007-10-22 Thread Robert Rawlins - Think Blue
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

RE: Check File Change Every 10 Seconds

2007-10-22 Thread Robert Rawlins - Think Blue
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

RE: Check File Change Every 10 Seconds

2007-10-22 Thread Robert Rawlins - Think Blue
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

Eclipse Plugins

2007-10-26 Thread Robert Rawlins - Think Blue
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

Logging Help

2008-01-02 Thread Robert Rawlins - Think Blue
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

RE: Get Available Functions

2008-01-28 Thread Robert Rawlins - Think Blue
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

Get Available Functions

2008-01-28 Thread Robert Rawlins - Think Blue
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

IoC and MVC Frameworks

2008-02-01 Thread Robert Rawlins - Think Blue
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

Memory Issue

2008-02-17 Thread Robert Rawlins - Think Blue
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

Last 4 Letters of String

2008-02-21 Thread Robert Rawlins - Think Blue
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

Logging to HTTP or File

2008-02-27 Thread Robert Rawlins - Think Blue
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

Re: xkcd.com/353 ( Flying with Python )

2024-04-01 Thread Blue-Maned_Hawk via Python-list
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 “

<    1   2