Re: [BangPypers] [OT] Tools for writing books and publishing as pdfs

2010-03-10 Thread Amit Saha
Hello Jins Thomas: Jins Thomas wrote: Hi all, This is an off-topic. Would somebody please pass some suggestions on how we can write some e-book, technical in nature. I'm planning to write one book on telecom network domain . My main motive is to learn some more solid things while writing this

Re: [BangPypers] Contribution to Opensource

2010-01-18 Thread Amit Saha
Hi Nikunj: nikunj badjatya wrote: Hi, I recently joined this mailing list so as to improve my knowledge on Python. Its been 4 months I am using Python. So I decided to contribute to any Open source project. Can you help me on how to proceed on this, Whom to contact etc. The project you decide

Re: [BangPypers] Plzzz help me!!!!!!!!!

2010-01-17 Thread Amit Saha
Smrutilekha Swain wrote: hi...this is my code...but...it is not working...in this programme i want the pdf will be copied from source to destination after it is generated ## import os import shutil src = os.getcwd() dest = "E:\home\smruti\Python\

Re: [BangPypers] Power management/consumption control module

2010-01-13 Thread Amit Saha
Hello: Anirudh Asokan wrote: Hey ter! Is there any python module that collects the power consumption details of computer components? or bios related things like fan speed, cpu frequency, overall power consumption of computer? If not python, what are other ways to go about it? Not sure about p

Re: [BangPypers] 2-cent Tip: Load modules at Startup

2009-10-22 Thread Amit Saha
Roshan Mathews wrote: On Thu, Oct 22, 2009 at 6:43 PM, Amit Saha wrote: - Create a file: .pythonrc in my $HOME and place this line: Thanks for the tip. I don't use this myself, but I had read this in Peter Norvig's Python IAQ, which makes interesting reading. It's available

[BangPypers] 2-cent Tip: Load modules at Startup

2009-10-22 Thread Amit Saha
Hello: I have been using CPython as a calculator, while I do all those number crunching in C. SO, 'import math' is a must. This is what I did: - Create a file: .pythonrc in my $HOME and place this line: import math - Now in your BASH, .bashrc or similar: export PYTHONSTARTUP= $HOME/.

Re: [BangPypers] Suggest me a book

2009-10-15 Thread Amit Saha
Zaki Manian wrote: Where do people buy programming books in Bangalore? I've got an International Kindle coming and I have an O'reilly Safari account so those are my main work around. You could consider "Crossword" near M.G.Road or "Landmark" at Kormangla Forum mall as a repo of all kinds of bo

Re: [BangPypers] Perl or Python ?

2009-10-13 Thread Amit Saha
Noufal Ibrahim wrote: On Tue, Oct 13, 2009 at 7:56 PM, Yuvi Panda wrote: Is power in any way related to job opportunities? And do power (and job opportunities) have anything to do with choosing which one to learn?[..] With great power, comes great opportunities. Or did I get that wrong? '

Re: [BangPypers] Running multiple versions of python on Fedora

2009-10-12 Thread Amit Saha
Shivaraj M S wrote: I don't see any problems in installing 'n' number of versions on any *nix flavour . If you find any problem please paste the traceback. You can always set /usr/bin/python to direct whichever version you want, and even keep multiple easy_install scripts. IMHO, +1 for 'virt

Re: [BangPypers] web services

2009-10-01 Thread Amit Saha
sudhakar s wrote: HI, Can any one suggest me how to create a simple web service. This should help: http://www.lmgtfy.com/?q=web+services+in+python Started working with webservices but fully confused with searches i made. How about the search results? HTH, -Amit -- Journal: http://am

Re: [BangPypers] Python at Schools

2009-10-01 Thread Amit Saha
Srijayanth Sridhar wrote: Not sure how many people here were taught Logo as their first language. I was, and most people regard it as a toy language because most teachers focus exclusively on the graphical aspects of the language. However, few know that Logo was inspired by Lisp and can handle fa

Re: [BangPypers] Python at Schools

2009-09-30 Thread Amit Saha
Srijayanth Sridhar wrote: Not sure how many people here were taught Logo as their first language. I was, and most people regard it as a toy language because most teachers focus exclusively on the graphical aspects of the language. However, few know that Logo was inspired by Lisp and can handle fa

Re: [BangPypers] Python at Schools

2009-09-30 Thread Amit Saha
Yuvi Panda wrote: Anna University starts with C, then jumps to Bash (?!!?!) and then jumps back to C and C++. I've no idea where it is going (I'm in my third sem, and we're with a new curriculum), but I've seen glimpses of Flash(?!). 99% of my friends gave up on programming a month into the cours

Re: [BangPypers] Place the timer in Python script

2009-09-18 Thread Amit Saha
Vamsi wrote: How to place the timer in python code. I want calculate the python script execution time. ex : Start Timer : End Timer Execution Time : End Timer - Start Timer. How can we write the python code for this. Help would be appreciable. http://stackoverflow.com/questions/156330/

Re: [BangPypers] Implementing a fast factorial function in python

2009-09-14 Thread Amit Saha
Shashwat Anand wrote: How do we calculate last 5-digits of 10**12 ignoring trailing zeros. The code i wrote works good until 10**8 and after that take ages. The source of problem is Project Euler : http://projecteuler.net/index.php?section=problems&id=160 You might consider using the Stirling's

Re: [BangPypers] Performance benefits of Generators?

2009-07-04 Thread Amit Saha
Hello Navin, On Sat, Jul 4, 2009 at 9:40 AM, Navin Kabra wrote: >> >> No not yet. I am not building a application where every mu-sec >> matters. I appreciate the link and comments though. Will be helpful >> some day in the future. I hope I did not sound too terse. I *really* do appreciate the poi

Re: [BangPypers] Performance benefits of Generators?

2009-07-03 Thread Amit Saha
On Sat, Jul 4, 2009 at 9:24 AM, Navin Kabra wrote: >> OTOH, Decorators , lambdas ('syntactic sugars') et al reduce the number of >> lines of code, >> depending on the scenario, for a given piece of complex logic, but these are >> 'slow'. But, I dont think >> the factor is huge enough to cause a per

Re: [BangPypers] Performance benefits of Generators?

2009-07-03 Thread Amit Saha
On Tue, Jun 30, 2009 at 3:47 PM, Shekhar wrote: > Amit Saha wrote: >> >> Hello, >> >> Theoretically and/or practically, is it possible to reason about the >> performance gain/loss of using generators?  The PEP 255 >> (http://www.python.org/dev/pep

Re: [BangPypers] Performance benefits of Generators?

2009-07-03 Thread Amit Saha
On Wed, Jul 1, 2009 at 8:48 PM, Roshan Mathews wrote: > On Tue, Jun 30, 2009 at 3:47 PM, Shekhar wrote: >> The pdf at http://www.dabeaz.com/generators-uk/GeneratorsUK.pdf was a great >> deal of help for me. >> It has good examples about performance (some numbers too) gains in different >> situation

Re: [BangPypers] Performance benefits of Generators?

2009-06-30 Thread Amit Saha
On Tue, Jun 30, 2009 at 3:36 PM, Amit Saha wrote: > Hello, > > Theoretically and/or practically, is it possible to reason about the > performance gain/loss of using generators?  The PEP 255 > (http://www.python.org/dev/peps/pep-0255/) doesn't seem to hint at it. > > Anyt

[BangPypers] Performance benefits of Generators?

2009-06-30 Thread Amit Saha
Hello, Theoretically and/or practically, is it possible to reason about the performance gain/loss of using generators? The PEP 255 (http://www.python.org/dev/peps/pep-0255/) doesn't seem to hint at it. Anything that any of you would like to share on this ? Best, Amit -- Journal: http://amitks

Re: [BangPypers] CPython's 'bignum' Implementation

2009-05-18 Thread Amit Saha
On Mon, May 18, 2009 at 5:53 PM, Senthil Kumaran wrote: > > On Mon, May 18, 2009 at 12:20:44PM +0530, Amit Saha wrote: > > On Mon, May 18, 2009 at 11:56 AM, Baishampayan Ghose > > wrote: > > > Thanks :) Since you are the one who asked the question, you can also &g

Re: [BangPypers] CPython's 'bignum' Implementation

2009-05-17 Thread Amit Saha
ion was already answered before you by a couple of other folks!, So, you will have to be content with my "Up" vote for now :) Best, Amit > > Regards, > BG > > On 5/18/09, Amit Saha wrote: >> Hello Baishampayan, >> >> On Sat, May 16, 2009 at 1:13 AM

Re: [BangPypers] CPython's 'bignum' Implementation

2009-05-17 Thread Amit Saha
Hello Baishampayan, On Sat, May 16, 2009 at 1:13 AM, Baishampayan Ghose wrote: >> Now, how does CPython implement bignum? From what I gather, there is >> more than way of doing it- using a different radix (base),  an array >> of numbers. One hint is given by >> http://www.python.org/dev/peps/pep-

Re: [BangPypers] CPython's 'bignum' Implementation

2009-05-15 Thread Amit Saha
On Fri, May 15, 2009 at 7:00 PM, Roshan Mathews wrote: > On Fri, May 15, 2009 at 5:12 PM, Venkatraman S wrote: >> On Fri, May 15, 2009 at 5:09 PM, Amit Saha wrote: >>> http://www.python.org/dev/peps/pep-0237/. However, if any of you folks >>> know something conc

[BangPypers] CPython's 'bignum' Implementation

2009-05-15 Thread Amit Saha
Hello all, So, from my SO question: http://stackoverflow.com/questions/867393/how-do-languages-such-as-python-overcome-cs-integral-data-limits , I learn that Python has 'bignum' for supporting Arbitrary Precision arithmetic. Now, how does CPython implement bignum? From what I gather, there is mor

Re: [BangPypers] looking for an opportunity to take up Volunteer work in Python

2009-04-19 Thread Amit Saha
On Sun, Apr 19, 2009 at 9:54 PM, bijoy wrote: > > Hi, > > I am a Ameature python Programmer, with knowledge in postgresql(RDBMS), CGI > Scripting, HTML > I would like to take up a volunteer work in python. > > Pls let me know if there is any opportunity. How about the N number of Open Source pro

Re: [BangPypers] Command line goodies

2009-03-25 Thread Amit Saha
On Wed, Mar 25, 2009 at 5:19 PM, Noufal Ibrahim wrote: > I found this via. hacker news. > http://commandlinefu.com/ > > It's a repository of command line tricks. > > I found a python one > python -m SimpleHTTPServer > > which serves the current directory on port 8000 AH. I found it to be a life s

Re: [BangPypers] A question for us...

2009-03-13 Thread Amit Saha
On Fri, Mar 13, 2009 at 2:30 PM, Anand Balachandran Pillai wrote: > On Fri, Mar 13, 2009 at 12:02 PM, Ramdas S wrote: >> >> Answer is $$$ is required for funding conferences. The organizers did not >> find anyone with $$$ who has some vested interest in Python. If they had >> you'd see Python the

Re: [BangPypers] UML <=> Python...and other things...

2009-03-07 Thread Amit Saha
Hi Vishal! On Sun, Mar 8, 2009 at 3:25 AM, Vishal wrote: > Hi, > Does anyone know of a tool that can produce Python code from UML diagrams? > Is something of this sort being added to NetBeans? Its under consideration and we don't yet have anyone to work on it :-( You can see more about the futur