binary file within a shell script

2008-05-08 Thread Mathieu Prevot
Hi there, I would like to use one exec file from a shellscript but I would like it to be incorporated in the same file, like Nvidia do for its FreeBSD drivers. How can I do this in a convenient way ? Mathieu ___ freebsd-hackers@freebsd.org mailing list

Re: python modules

2007-07-13 Thread Mathieu Prevot
2007/7/13, Mike Meyer <[EMAIL PROTECTED]>: On Fri, 13 Jul 2007 21:12:33 +0200 "Mathieu Prevot" <[EMAIL PROTECTED]> wrote: This apparently got redirected without sufficient context, so I'm guessing. I forgot to cc to hackers. > 2007/7/13, Mathieu Prevot <[EM

Re: python modules

2007-07-13 Thread Mathieu Prevot
2007/7/13, Mathieu Prevot <[EMAIL PROTECTED]>: I learn that modules loaded with import fall into 4 general categories: - code written in Python (.py) - C or C++ extensions that have been compiled into shared libraries (or DLLs) - Packages containing collection of modules - Built-in

get active processes in python

2007-07-12 Thread Mathieu Prevot
Hello, do you recommend a method to get active processes in a python script, as with "ps" or "top" in order to put the result into a list ? (python package, shell call...) Mathieu ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mail

Re: get active processes in python

2007-07-12 Thread Mathieu Prevot
2007/7/12, Mathieu Prevot <[EMAIL PROTECTED]>: Hello, do you recommend a method to get active processes in a python script, as with "ps" or "top" in order to put the result into a list ? (python package, shell call...) Mathieu PS: I would like to fire this

SoC / PMC

2007-05-30 Thread Mathieu Prevot
2007/5/25, Joseph Koshy <[EMAIL PROTECTED]>: Do you intend to run FreeBSD under Parallels? If so you may need to check if Parallels emulates PMC hardware correctly. The other emulators do not. You may need a regular i386 or amd64 PC to run FreeBSD on 'bare metal'. I compiled a SMP (seems not

automatic KSE for multithreaded programs

2006-07-17 Thread Mathieu Prevot
Hello, the KSE system is complicated. Are there projects or possibilities to split automatically threads into groups given a SMP system in a clever manner ? Mathieu ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/f

sysctl(3) and sysctl(8) discrepancies

2006-04-19 Thread Mathieu Prevot
Hello, I have FreeBSD 6.1-RC #27: Wed Apr 19 02:08:00 CEST 2006 amd64 and I have 3 different outputs about hw.ncpu: `sysctl hw.ncpu` gives me: 'hw.ncpu: 2' and I have: hw.ncpu = 6 hw.ncpu = 3 with: #include #include #include main() { int ncpu[1]; size_t len; len=size

Re: Creating real bool type for simulation in physics

2006-03-14 Thread Mathieu Prevot
On Mon, Mar 13, 2006 at 11:13:41AM -0600, Dan Nelson wrote: > In the last episode (Mar 13), Mathieu Prevot said: > > I use freebsd/amd64 (RELENG_6) for simulation in physics. I am > > working on the Ising model: an assembly of spins (micromagnets) which > > interact and wh

Creating real bool type for simulation in physics

2006-03-13 Thread Mathieu Prevot
Hello, I use freebsd/amd64 (RELENG_6) for simulation in physics. I am working on the Ising model: an assembly of spins (micromagnets) which interact and which are in one of two states (up or down). Until now I use char to define the state of each spin (-1 or 1), however, I remarked that most time