Re: Get IP address of WIFI interface

2011-05-13 Thread Ishwor Gurung
commands. 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

hello all

2004-12-03 Thread Ishwor Gurung
Hello all, I am just starting out on learning Python and joined this list. I have grabbed the Learning Perl book by Mark & David. This book really seems good so far.. the concepts are explained pretty nicely. :) I have a background a bit in Java but Python seems so cooler. The concept of Dynamica

Re: window size in IDLE

2004-12-03 Thread Ishwor Gurung
hi kosina although i am new to this list as well, please CC to the python list as well. That way not only 'we' but everyone benefits. :) On Fri, 03 Dec 2004 11:30:06 +0100, gen2n <[EMAIL PROTECTED]> wrote: > Thanks a lot. Could you help me once more with beginners question? > In IDLE, when saving

Re: Multiple python installations on opensuse?

2009-12-17 Thread Ishwor Gurung
lease). $ mkdir $HOME/my2.4build/ $ ./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
ubject: Re: Multiple python installations on opensuse? To: Ishwor Gurung 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

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: Prepend to logging message

2010-01-09 Thread Ishwor Gurung
apter(logging.getLogger('foo'), ExtraLog()) > -- Yep. Just subclass 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

Re: How to schedule system calls with Python

2009-10-15 Thread Ishwor Gurung
multiprocessing module[1] (my platform does 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.h

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/lis

Re: How to schedule system calls with Python

2009-10-15 Thread Ishwor Gurung
cessing module(all 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
coding-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
y chance of getting your NDK team to look 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 : > 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 groupb

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: how to knock a page out of file cache

2009-10-21 Thread Ishwor Gurung
l that will 'knock' the file out 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? [...]

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: multiprocessing deadlock

2009-10-24 Thread Ishwor Gurung
for j in range(3): q.put(i*30+j); while not q.empty(): p = Process(target=_process_worker, args=(q,)); p.start(); p.join(); if __name__ == "__main__": _make_some_processes(); ''' Removed 0 from the queue Remo

Re: transpose array

2009-10-27 Thread Ishwor Gurung
replace(']', ' ') >> >> which dumps them like >> >>  a1,a2,a3,a4,a5 >>  b1.b2.b3.b4.b5 >>  c1,c2,c3,c4,c5 > >>>> xVec=[a1,a2,a3,a4,a5] >>>> yVec=[b1,b2,b3,b4,b5] >>>> zVec=[c1,c2,c3,c4,c5] >>>> import sys, csv >>>> from itertools import izip >>>> csv.writer(sys.stdout).writerows(izip(xVec, yVec, 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: Migrating from R to Python

2009-11-02 Thread Ishwor Gurung
), I can still have it in Python via the Rpy/Rpy2 bridge. On the other hand with pytseries Python library, I'd be limited to only run time-series analysis wouldn't I? In the end though, it all depends on your project requirements, resources and so forth.. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: problem in installing wxwidgets for python..

2009-11-04 Thread Ishwor Gurung
t showed the same > error. What should i do to install wxwidgets? Plz. reply as soon as > possible.. Coz. i've to finish my proj. quickly.. Thanks and regards... See above. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: When will Python go mainstream like Java?

2010-02-23 Thread Ishwor Gurung
core implementation. 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 A

Re: importing with .m instead of .py

2009-09-25 Thread Ishwor Gurung
#x27;i', 'matlab_files', 'os', 'root', 'x', 'y', 'z'] >>> x 'b.m' >>> y [1, 2, 3] >>> z [3, 2, 1] $ cat foo.m y=[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/listinfo/python-list

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

2009-09-25 Thread Ishwor Gurung
when I 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
27;d want to do purely in Python. Aren't you curious? :-) It's late and TGIF! Need sleep. Goodluck. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list