Re: IPC with multiprocessing.connection

2011-12-23 Thread bobicanprogram
On Dec 22, 3:27 pm, Andrew Berg wrote: > I'm trying to set up a system where my main program launches external > programs and then establishes connections to them via named pipes or > Unix domain sockets (depending on platform) with > multiprocessing.connection.Listener. The issue I'm having is wi

Ann: Python-SIMPL online tutorial updated to include examples of cloud interfacing

2011-12-15 Thread bobicanprogram
The Python-SIMPL tutorial is at: http://www.icanprogram.com/06py/lesson1/lesson1.html Several lessons (3,4, 6 &7) have been enhanced to include examples of Python apps interfacing to the cloud housed on a Linode. The open source SIMPL toolkit provides a very lean Send/Receive/Reply (QNX style) me

Re: Need some IPC pointers

2011-12-02 Thread bobicanprogram
On Nov 30, 4:03 pm, Andrew Berg wrote: > I've done some research, but I'm not sure what's most appropriate for my > situation. What I want to do is have a long running process that spawns > processes (that aren't necessarily written in Python) and communicates > with them. The children can be spaw

Re: python logging multiple processes to one file (via socket server)

2011-10-27 Thread bobicanprogram
On Oct 27, 6:09 am, Gelonida N wrote: > Hi, > > I have a rather 'simple' problem. > Logging from multiple processes to the same file AND be sure, that no > log message is lost, > > 1.) Log multiple processes to one file: > -- > > I have a python program, whi

help porting an open source toolkit to Mac and Windows/Cygwin

2011-03-22 Thread bobicanprogram
I am the facilitator for the SIMPL open source project (http:// www.icanprogram.com/simpl). The SIMPL toolkit project started over 10 years ago as a way to bring Send/Receive/Reply (QNX style) messaging to Linux. A SIMPL application consists of two or more interacting SIMPL modules. Those modul

Re: attach to process by pid?

2011-03-10 Thread bobicanprogram
On Mar 9, 1:28 pm, Danny Shevitz wrote: > > Have a look at the SIMPL toolkit. > > http://www.icanprogram.com/06py/lesson1/lesson1.html > > > > > This should be able to do exactly what you want. > > > bob > > Does this work on Mac OS X? > > thanks, > Danny I'm not aware of any ports of the SIMPL

Re: attach to process by pid?

2011-03-09 Thread bobicanprogram
On Mar 8, 7:49 pm, James Mills wrote: > On Wed, Mar 9, 2011 at 9:20 AM, Danny Shevitz wrote: > > Is there any way to attach to an already running process by pid? I want to > > send > > commands from python to an application that is already running. I don't > > want to > > give the command name

Re: client server socket interaction (inetd)

2011-02-17 Thread bobicanprogram
On Feb 17, 2:41 pm, Martin Gregorie wrote: > On Thu, 17 Feb 2011 08:14:36 -0800, Tim wrote: > > Hi, I have an inetd service on freebsd that calls a program (daemon.py) > > with which I want the remote user to communicate. I can call daemon.py > > from the command line on the host machine and it w

Re: Hosting a Python based TCP server

2010-12-23 Thread bobicanprogram
On Dec 23, 7:01 am, Oltmans wrote: > Hi all, > > I'm writing a very small TCP server(written in Python) and now I want > to host it on some ISP so that it can be accessed anywhere from the > Internet. I've never done that before so I thought I should ask for > some advice. Do you guys know any goo

Re: Round Trip: C to Python to C Module

2010-11-22 Thread bobicanprogram
On Nov 19, 11:05 am, Eric Frederich wrote: > I have a proprietary software PropSoft that I need to extend. > They support extensions written in C that can link against PropLib to > interact with the system. > > I have a Python C module that wraps a couple PropLib functions that I > call PyProp.>Fr

Re: Cross compiling (i386 from amd64) with distutils

2010-11-09 Thread bobicanprogram
On Nov 7, 7:19 pm, Jason wrote: > My situation is this: I have a Diamond Systems single-board computer > with a > matching GPIO board. DS have a library for controlling the GPIO > board... but > it's a static library (libdscud-6.02.a) with an accompanying header > (dscud.h). > I'd like to create a

Re: basic 2 player wordgame

2010-09-21 Thread bobicanprogram
On Sep 21, 6:25 am, Baba wrote: > Hi > > I am working on a simple wordgame exercise: 2 players form a word by > alternating turns saying a letter, which is added on to the end of the > word fragment. > > I am familiar with loops, iterations etc but i need a hint as to how > to approach alternating

Re: xmlrpc and processes

2010-08-09 Thread bobicanprogram
On Aug 9, 2:50 am, iu2 wrote: > Hi, > > I have a SimpleXMLRPCServer running on one PC. > I need several ServerProxy-s talking to it, each one running on a > different PC. That is, I run on each PC a client application, that > talks to the one server using xml-rpc. > > Is the xml-rpc designed to wo

Re: Python GUI for C program [was: ]

2010-07-06 Thread bobicanprogram
On Jul 6, 7:45 am, Thomas Jollans wrote: > On 07/06/2010 12:15 PM, francisco dorset wrote: > > > hey am a programmer i have good knowledge of the c language and i will > > like to now how i can use to python to provide graphical user-interface > > for my c programs and or the steps involved in doi

Re: Returning value from home made unit - how to?

2010-06-01 Thread bobicanprogram
On May 30, 6:22 pm, Mel wrote: > Martin Hvidberg wrote: > > I have a Python program, which has until now, been running in command line > > mode only. I wish to add a GUI. > > > I would like to develop (and maintain) the GUI part in a separate module, > > i.e. in its own .py file, and then ‘import’

Re: speed up a numpy code with huge array

2010-05-26 Thread bobicanprogram
On May 26, 7:43 am, Alexzive wrote: > thank you all for the tips. > I 'll try them soon. > > I also notice another bottleneck, when python tries to access some > array data stored in the odb files (---> in text below), even before > starting the algoritm: > > ### > EPS_nodes = range(len(frames)) >

Re: Python + OpenOffice Calc

2010-03-31 Thread bobicanprogram
On Mar 31, 2:47 am, Tracubik wrote: > Hi all! > i'm giving away to a friend of mine that have a garage (he repair car) my > old computer. He will use it essentialy to create estimates of the work > via an ods file (i've made a simple ods file to be filled with the cost of > materials and a descrip

Re: Python is cool!!

2010-03-25 Thread bobicanprogram
On Mar 23, 11:55 am, Jose Manuel wrote: > I have been learning Python, and it is amazing I am using the > tutorial that comes with the official distribution. > > At the end my goal is to develop applied mathematic in engineering > applications to be published on the Web, specially on app. ori

Re: Advice needed on parallel processing in python

2010-03-25 Thread bobicanprogram
On Mar 24, 1:13 pm, Jon Clements wrote: > On 24 Mar, 15:27, Glazner wrote: > > > > > Hi! > > > I need to replace an app that does number crunching over a local > > network. > > it have about 50 computers as slaves > > each computer needs to run COM that will do the "job" > > right now the system

Re: Ideas for creating processes

2010-03-11 Thread bobicanprogram
On Mar 10, 4:52 pm, J wrote: > I'm working on a project and thought I'd ask for a suggestion on how > to proceed (I've got my own ideas, but I wanted to see if I was on the > right track) > > For now, I've got this: > > def main(): > ## get our list of directories to refresh > releases=sys.arg

Re: ANN: Python-SIMPL v2.0.0 released

2010-02-22 Thread bobicanprogram
On Feb 22, 9:40 am, bobicanprogram wrote: > The SIMPL project (http://www.icanprogram.com/simpl) aims to bring the > Send/Receive/Reply messaging (first popularized by QNX) to the open > source Linux world. Since its inception more that 10 years ago, the > SIMPL toolkit has grown

ANN: Python-SIMPL v2.0.0 released

2010-02-22 Thread bobicanprogram
The SIMPL project (http://www.icanprogram.com/simpl) aims to bring the Send/Receive/Reply messaging (first popularized by QNX) to the open source Linux world. Since its inception more that 10 years ago, the SIMPL toolkit has grown steadily in functionality. Through the use of surrogates, SIMP

strange issue with C extension using Py_BuildValue

2010-02-10 Thread bobicanprogram
I'm am having "strange" problems with the code snip below. When this code is built on a 64bit Linux, it would appear to work flawlessly.When the source is rebuilt on a 32bit Linux it begins to crack in strange ways. The issue seems to be associated with the sender field in the Py_BuildValue

Re: simple and fast platform independent IPC

2010-02-03 Thread bobicanprogram
On Feb 3, 3:32 am, News123 wrote: > Hi, > > I wondered what IPC library might be best simplest for following task? > > I'm having a few python scripts all running on the same host (linux or > win), which are started manually in random order. (no common parent process) > Each process might be ident

Re: simple pub/sub

2010-01-22 Thread bobicanprogram
On Jan 21, 11:54 am, Steve Howell wrote: > Hi, I'm looking for ideas on building a simple architecture that > allows a bunch of independent Python processes to exchange data using > files and perform calculations. > > One Python program would be collecting data from boat instruments on a > serial

Re: Using jython to call python procedures/methods

2010-01-20 Thread bobicanprogram
On Jan 20, 10:32 am, KB wrote: > Hi there, > > I have an application that only publishes a Java API. I can use jython > to access java classes, but jython currently (to the best of my > knowledge) does not support numpy/scipy. > > Ideally I would like to have jython call a "native" python routine

Re: adding python engine into c++ application

2010-01-01 Thread bobicanprogram
On Dec 29 2009, 6:25 am, griwes wrote: > Hello, I am going to write an application in C++, application which > should be easy to extend by scripts. I chose python for script > language in this application. I'd like to have own API for python. And > here the question arises: how do I implement a py

Re: Python & OpenOffice Spreadsheets

2009-11-25 Thread bobicanprogram
On Nov 23, 5:49 am, Gerhard Häring wrote: > Is there a *simple* way to read OpenOffice spreadsheets? > > Bonus: write them, too? > > I mean something like: > > doc.cells[0][0] = "foo" > doc.save("xyz.ods") > > >From a quick look, pyodf offers little more than just using a XML parser > > directly.

Re: Passing handlers between bound c++ libs

2009-07-16 Thread bobicanprogram
On Jul 14, 7:07 pm, Freyr wrote: > I have a python bound physics library that uses handler to process > events. The passing of handlers between c++ and python causes a huge > overhead slowing down the process. Can I implement a handler in my > custom python bound c++ lib B and pass it to blackbox

Re: Passing parameters for a C program in Linux.

2009-07-01 Thread bobicanprogram
On Jun 30, 6:46 am, "venutaurus...@gmail.com" wrote: > Hi all, >I have to write an automted script which will test my c > program. That program when run will ask for the commands. For example: > > local-host# ./cli > Enter 1 for add > Enter 2 for sub > Enter 3 for mul > 1--

Re: Converting Python code to C/C++

2009-06-24 Thread bobicanprogram
On Jun 23, 11:49 am, Kurt Smith wrote: > On Mon, Jun 22, 2009 at 9:49 PM, Andras > > > > Pikler wrote: > > Hi! > > > Short: I need to turn a Python program that I (mostly) wrote into C code, > > and I am at a loss. > > > Long: I’m doing research/programming for a professor, and we are working > >

Re: Executing a python script while it is running

2009-06-17 Thread bobicanprogram
On Jun 17, 1:42 am, Zach Hobesh wrote: > On Tue, Jun 16, 2009 at 6:37 PM, Chris Rebert wrote: > > On Tue, Jun 16, 2009 at 6:21 PM, wrote: > >> Hey Dave, > > >> Thanks for the helpful responses. > > >>> Option 2 is what you get by default. Naturally it depends on what the > >>> application is us

Re: Seach for encrypted socket wrapper

2009-06-02 Thread bobicanprogram
On Jun 2, 5:28 am, Hans Müller wrote: > Hello experts, > > I'm looking for secure way to pass messages from a python program to a > c-library in both ways. > > This scenario is given: > > display client Calculation module in > COBOL (yes, big, old but it

Re: Web framework for embedded system

2009-04-28 Thread bobicanprogram
On Apr 28, 3:43 am, Thomas Heller wrote: > I'm looking for a lightweight web-framework for an embedded system. > The system is running a realtime linux-variant on a 200 MHz ARM > processor, Python reports a performance of around 500 pystones. > > The web application will not be too fancy, no datab

Re: Please help me grok: webserver > python

2009-04-22 Thread bobicanprogram
On Apr 21, 3:20 pm, Phillip B Oldham wrote: > I'm having trouble grok'ing how to get python talking through a > webserver. I've got a lot of experience working with nginx+php-fcgi > (via a unix socket) and I'd like to know what would be the bare > minimum to get python talking in the same way. > >

Re: Programming in Python with a view to extending in C at a later date.

2009-04-21 Thread bobicanprogram
On Apr 20, 2:57 pm, "dug.armad...@googlemail.com" wrote: > Hi, > > Say you set out to program in Python knowing that you will be > converting parts of it into C ( or maybe C++) at a later date, but you > do not know which parts. > > Can you give any general Python structure / syntax advice that if

Re: named pipe and Linux

2009-04-08 Thread bobicanprogram
On Apr 7, 1:08 pm, akineko wrote: > Hello everyone, > > I'm trying to use named pipes to fuse a Python program and a C > program. > One side creates pipes using os.mkfifo() and both sides use the same > named pipes (one side reads, another side writes). The read side uses > select.select() to wait

openNetcam open source project recruiting developers

2009-04-02 Thread bobicanprogram
A new open source project has been started with the aim of building an open Linux framework for TCP/IP enabled video camera systems. http://www.openNetcam.net The framework will be layered on the ultra lightweight SIMPL toolkit (http://www.icanprogram.com/simpl) and when the framework is complete

Re: SWIG, c++ to Python: array of pointers (double pointer) not working

2009-03-17 Thread bobicanprogram
On Mar 14, 5:22 am, Matteo wrote: > Re-posting in more simple and precise terms from a previous > threadhttp://groups.google.it/group/comp.lang.python/browse_thread/thread/6... > > Problem: > SWIG doesn't properly wrap c++ arrays of pointers, therefore when you > try to call a c++ function which

Re: Short-term python programming consultant - funds expire soon!

2009-03-13 Thread bobicanprogram
On Mar 10, 1:35 pm, Rob Clewley wrote: > Dear Pythonistas, > > Our open-source software project (PyDSTool) has money to hire an > experienced Python programmer on a short-term, per-task basis as a > technical consultant (i.e., no fringe benefits offered). The work can > be done remotely and will b

Re: c++ extension, problem passing argument

2009-03-13 Thread bobicanprogram
On Mar 13, 1:34 pm, Matteo wrote: > hmmm... looks like SWIG has a problem with double pointers. I googled > around a bit and found: > > http://osdir.com/ml/programming.swig/2003-02/msg00029.html > > anyone knows how to write a small wrapper to do the appropriate > dereferencing? If you can't sol

Re: convert the ip packet to and from RS-232 packet

2009-02-09 Thread bobicanprogram
On Feb 9, 8:13 am, Li Han wrote: > Hi, I need to use radio to connect two local ip network, each local > network has a server computer which connects to a radio with RS-232 > interface. I need to write a program to convert the local ip packet > into RS-232 packet, so the radio can send packetes t

Re: Calling Python-tk code from C/C++

2009-01-28 Thread bobicanprogram
On Jan 27, 12:29 pm, "Gabriel Genellina" wrote: > En Tue, 27 Jan 2009 07:42:01 -0200, Rajorshi Biswas > escribió: > > > Hello all, This is my first post to this mailing list. Our requirement > > is to invoke a Tkinter python panel from a C++ GUI app where both GUI > > windows would run in 2 separ

Re: Python Application Server

2009-01-28 Thread bobicanprogram
On Jan 27, 11:23 pm, Adi Eyal wrote: > Hi All > > Could anyone recommend a python application server? My application > consists mainly of long running background processes that need to > communicate with each other. Features on my wishlist include, process > pooling (each process will in general b

significant release for SIMPL project's Python extension

2009-01-27 Thread bobicanprogram
The SIMPL project (http://www.icanprogram.com/simpl) aims to bring the simplicity and power of the Send/Receive/Reply messaging (first pioneered by QNX) to the Linux world. SIMPL modules are themselves Linux executables and can be written in any number of languages now (C, C++, Tcl/Tk and Python

Re: subprocess to C program

2008-12-14 Thread bobicanprogram
On Dec 13, 10:09 pm, MRAB wrote: > Aaron Brady wrote: > > On Dec 13, 7:51 pm, Grant Edwards wrote: > >> On 2008-12-14, MRAB wrote: > > I am writing a C process and I want to read data from a file that I > write to in Python. I'm creating a pipe in Python, passing it to the > C pr

Re: problem adding custom module in cgi script

2008-12-14 Thread bobicanprogram
On Dec 11, 8:03 pm, bobicanprogram wrote: > Problem: > > Apache server serving an HTML file to a Firefox Browser containing a > form and > a CGI python CGI script. HTML works fine, meat of the CGI script works > fine > except that when a home grown and ordinarily functional m

problem adding custom module in cgi script

2008-12-11 Thread bobicanprogram
Problem: Apache server serving an HTML file to a Firefox Browser containing a form and a CGI python CGI script. HTML works fine, meat of the CGI script works fine except that when a home grown and ordinarily functional module that is to be imported is added, the interpreter cannot find it. Runnin

upgrading my SIMPL Programming with Python nofee online course need some volunteer testers

2008-12-10 Thread bobicanprogram
SIMPL is an open source project which has been around for almost 10 years. It maintains a very compact interprocesss communication library which gives Linux developers the Send/Receive/Reply messaging paradigm first popularized by QNX almost 30 years ago. (http://www.icanprogram.com/simpl). SIMP