Re: Get IP address of WIFI interface

2011-05-13 Thread Ishwor Gurung
. 1/ posix - (Linux in your case) will use ifconfig 2/ nt - (windows in your ase) will use ipconfig. HTH. -- Regards Ishwor Gurung Key id:0xa98db35e Key fingerprint:FBEF 0D69 6DE1 C72B A5A8  35FE 5A9B F3BB 4E5E 17B5 -- http://mail.python.org/mailman/listinfo/python-list

Re: When will Python go mainstream like Java?

2010-02-23 Thread Ishwor Gurung
. Perhaps I see a light, perhaps I see nothing.. but I feel the day is coming nearer when Python would run as fast as Java/C. Only time can tell - I hope the time is right about this. -- Regards Ishwor Gurung Key id:0xa98db35e Key fingerprint:FBEF 0D69 6DE1 C72B A5A8 35FE 5A9B F3BB 4E5E 17B5

Re: Prepend to logging message

2010-01-09 Thread Ishwor Gurung
LoggerAdapter and override process(..) Read this: http://docs.python.org/library/logging.html#adding-contextual-information-to-your-logging-output -- Regards Ishwor Gurung Key id:0xa98db35e Key fingerprint:FBEF 0D69 6DE1 C72B A5A8 35FE 5A9B F3BB 4E5E 17B5 -- http://mail.python.org/mailman/listinfo/python

Re: Multiple python installations on opensuse?

2009-12-17 Thread Ishwor Gurung
/ $ ./configure --prefix=$HOME/my2.4build make make install; To run- $ cd $HOME/my2.4build/bin $ ./python I am assuming you've got the C/C++ libraries installed. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Fwd: Multiple python installations on opensuse?

2009-12-17 Thread Ishwor Gurung
installations on opensuse? To: Ishwor Gurung ishwor.gur...@gmail.com Thanks guys, I installed it as root without the --prefix option using make altinstall instead of make install. It worked and I can now execute python2.4.6 with python2.4 while python2.6 is still executed with python. I also

Re: Multiple python installations on opensuse?

2009-12-17 Thread Ishwor Gurung
/lib, how can I do this? As root, tell linker to look for libraries in /usr/lib64: $ echo /usr/lib64 /etc/ld.so.conf $ ldconfig $ ./configure Please send email to the mailing list. I am subscribed to it : [...] -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: problem in installing wxwidgets for python..

2009-11-04 Thread Ishwor Gurung
, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: transpose array

2009-10-27 Thread Ishwor Gurung
, zVec)) a1,b1,c1 a2,b2,c2 a3,b3,c3 a4,b4,c4 a5,b5,c5 Or, http://docs.scipy.org/doc/numpy/reference/generated/numpy.transpose.html :-) -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing deadlock

2009-10-24 Thread Ishwor Gurung
the queue Removed 2 from the queue Removed 30 from the queue Removed 31 from the queue Removed 32 from the queue Removed 60 from the queue Removed 61 from the queue Removed 62 from the queue ''' -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python

Re: how to knock a page out of file cache

2009-10-21 Thread Ishwor Gurung
of file cache?  Can madvise or fadvise do this? Does this help http://www.westnet.com/~gsmith/content/linux-pdflush.htm ? (Getting hold of procfs and doing it in Python?) Also, are you looking for sync(2) http://linux.die.net/man/2/sync? [...] -- Regards, Ishwor Gurung -- http

Re: how to knock a page out of file cache

2009-10-21 Thread Ishwor Gurung
of dirty pages and their frequency of writebacks. So if you want the shortest path, you can choose to go the /proc path. [...] -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: How to schedule system calls with Python

2009-10-15 Thread Ishwor Gurung
not have sem_open() syscall). Others suggestions are as good as it can be but yeah you could get a lot of work done using multiprocessing module(all the relevant bits are explained in the module doc). [1] http://docs.python.org/library/multiprocessing.html -- Regards, Ishwor Gurung -- http

Re: How to schedule system calls with Python

2009-10-15 Thread Ishwor Gurung
How can I use Python to schedule these commands? If I were as lucky as you, I would have used multiprocessing module[1] (my platform does not have sem_open() syscall). Others suggestions are s/have/implement/g -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: How to schedule system calls with Python

2009-10-15 Thread Ishwor Gurung
the relevant bits are explained in the module doc). My bad, I assumed Win32. Make sure _your_ platform also supports sem_open syscall before you used the core feature of multiprocessing module. . -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: a splitting headache

2009-10-15 Thread Ishwor Gurung
-length-encoding-in-Python/0,264084,339280649,00.htm [...] -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: a splitting headache

2009-10-15 Thread Ishwor Gurung
into getting some small subset of STL, Boost into Android? :-P That'd be awesome thing you know. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: a splitting headache

2009-10-15 Thread Ishwor Gurung
2009/10/16 Ishwor Gurung ishwor.gur...@gmail.com: 2009/10/16 Paul Rubin http://phr...@nospam.invalid: [...] You might also like:    from itertools import groupby    c = '001110'    print list(list(xs) for k,xs in groupby(c)) Too bad groupby is only available in Python2.6+ OK. I stand

Re: a splitting headache

2009-10-15 Thread Ishwor Gurung
I think I am getting old :-( Should have Googled already. My what who where?  You are confusing me with someone else. Andy Rubin- http://en.wikipedia.org/wiki/Andy_Rubin Sorry to bother you. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: importing with .m instead of .py

2009-09-25 Thread Ishwor Gurung
=[1,2,3] $ cat bar.m z=[3,2,1] These sort of task are pretty trivial to do. You should take some time to read through the documentation.. and oh don't be such a wanderer loosing sight of such good resource such as http://docs.python.org :-) -- Regards, Ishwor Gurung -- http://mail.python.org/mailman

Re: New books: Learning Python, Python Pocket Reference 4th Eds

2009-09-25 Thread Ishwor Gurung
hurriedly used to look up materials through it finding novel and cool ways of doing things (I still do find it very helpful) :-) Thanks for such a wonderful resource. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: Pipelining tar create and tar extract the Python way...

2009-09-25 Thread Ishwor Gurung
? :-) It's late and TGIF! Need sleep. Goodluck. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list