Re: [BangPypers] Imaging Library: Pillow vs PIL, any insights?

2014-04-16 Thread Vivek Puri
>> We need to create images >> dynamically from text & images, not looking for command line apps/features. Is there any particular reason you are not considering opencv. If not, check out opencv. opencv is opverkill for his use case. rgds vivek http://www.machint.com ___

Re: [BangPypers] Imaging Library: Pillow vs PIL, any insights?

2014-04-16 Thread Vivek Puri
Hi, Any notable differences between Pillow vs PIL? We need to create images dynamically from text & images, not looking for command line apps/features. Pillow is API compatible with PIL. Pillow is being actively developed while PIL is not seen active development for long. Pillow is comparati

Re: [BangPypers] Internationalization in Python 2.6

2013-11-27 Thread Vivek Puri
Hi, Actually in the earlier part when we write to xml we got which was correct when we look into the ISO-8859-1 (Latin-1) international character set and hexadecimal. But here we got the hexa instead. Again for another character which can not be decoded using utf-8 it is giving the same valu

Re: [BangPypers] Internationalization in Python 2.6

2013-11-27 Thread Vivek Puri
Hi, How the internationalization works in Python 2.6. Internationalization is different topic. Here you are dealing with character encoding. You are actually on right track except this line: write_to_xml(input_string_unicode, encoding) change it to write_to_xml(input_string_u

Re: [BangPypers] Django with MSSQL Server 2008

2013-09-26 Thread Vivek Puri
Hi, I am a new to Django and i am trying to do some intial bit of learning myself. I am having difficulty with SQLServer drivers with ADO and pyodbc. Can any body suggest me exactly the approach. Please find the code in my settings.py file. If you could also provide me pointers to downloading th

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-15 Thread Vivek Puri
This largely depends on the development model (read, the what and where) - Agile works well for the service model but for larger and more complex systems (think BigData, multiple types of databases), stability matters a lot more. I find that agile works best for both service and products as long

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-15 Thread Vivek Puri
I only have more experience with long term maintenance of code. I am quite positive that people who are in favour of pinning have experience in equally long term maintenance of code. Pinned requirements == complacency == future breakage, when maintenance is much more expensive than it is toda

Re: [BangPypers] Do you pin your requirements.txt ?

2013-09-15 Thread Vivek Puri
I was perhaps misunderstood. If you test (even with say travis) but without a pinned requirements.txt, and then create a dist and later deploy the dist onto the server using a pip install (w/o a requirements.txt) then you no longer have a repeatability in terms of transient dependencies. Because

Re: [BangPypers] confused about behaviour of None in python

2013-09-14 Thread Vivek Puri
Hi, I tried In [55]: None < 10 Out[55]: True It gives me output True . it suppose to give me error . Please explain me None < 10 is True . In python2 None is always considered "lowest" value so, None will always be < any other value. Which explains the result you are getting. In Python3

Re: [BangPypers] regarding python

2013-06-19 Thread Vivek Puri
Hi, Please let me know best IDE for python development.. as beginner i am writing as Shell scripts. Best IDE is matter of familiarity and personal preference. If you are familiar with Eclipse then you will find pydev to be useful. As a beginner even if you are not used to Eclipse, p