Re: [BangPypers] Python Bof @ Freed.in

2009-02-18 Thread Sirtaj Singh Kang
On Wednesday 18 February 2009, Ramakrishna Reddy wrote: > Hi Folks > > I'm be proposing a Python Bof @ Freed.in. I know Sentil is coming. > Anyone else coming down ? I intend to be there on both days. -Taj. ___ BangPypers mailing list BangPypers@python.

[BangPypers] Poor man's LWP with PyQt

2009-05-08 Thread Sirtaj Singh Kang
Hi all, I've been trying to find the path of least resistance to using cooperative multitasking in PyQt apps. There are a bunch of different options out there, including Twisted (The initial inqternet.py Qt support I wrote became the basis of the current Qt reactor, and it works great if

Re: [BangPypers] Any python metaclasses for UID

2009-07-27 Thread Sirtaj Singh Kang
On 27-Jul-09, at 1:50 PM, Shivaraj M S wrote: [snip] Can there be a metaclass in python which can change the behaviour of object at creation stage by extending it and nullifying friend functions? (I must confess this is the only sentence in the email that I could comprehend...) If wha

Re: [BangPypers] Wall street may embrace Python

2010-04-26 Thread Sirtaj Singh Kang
On 26-Apr-10, at 2:25 PM, Dhananjay Nene wrote: [snip] I do see one strong plus here for Python. That is a very natural language for expression (as in being one of the most readable programming languages for non programmers) without resorting to any specific DSLs etc. On the contrary, I th

Re: [BangPypers] Wall street may embrace Python

2010-04-26 Thread Sirtaj Singh Kang
On 26-Apr-10, at 3:46 PM, Dhananjay Nene wrote: [snip] I think a DSL based contract (or more precisely waterfall specification) may be more concise and self descriptive. But that would require a definition of a new language grammar. However reasoning about the contracts is not in the sco

Re: [BangPypers] Wall street may embrace Python

2010-04-26 Thread Sirtaj Singh Kang
On 26-Apr-10, at 4:47 PM, Rajeev J Sebastian wrote: [snip] With all due respect, I disagree that a DSL is useful for this purpose. In fact, I would disagree with DSLs in most cases, especially if its supposed to be used for programming. The reason for this is that creating a good language is muc

Re: [BangPypers] Wall street may embrace Python

2010-04-26 Thread Sirtaj Singh Kang
On 26-Apr-10, at 5:30 PM, Dhananjay Nene wrote: [snip] Taj, the main issue isn't whether standardisation necessary for DSLs is feasible - but the sheer amount of effort, time, political bickerings, and heat that accompanies it. If one uses python we save that entire diversion which if carri

Re: [BangPypers] refactoring

2010-12-05 Thread Sirtaj Singh Kang
[snip] [dubious aside: remember this one? Please note that there is no deeper meaning to be read into the fact that I mistakenly pasted the quote twice. -Taj. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo

Re: [BangPypers] refactoring

2010-12-05 Thread Sirtaj Singh Kang
On 12/4/2010 5:36 PM, Santosh Rajan wrote [snip] Let us look at software product development, and let us look at all the top open source software development projects like linux, apache, mozilla etc etc. I have not seen refactoring as described by the book used by any of the open source software

Re: [BangPypers] refactoring

2010-12-06 Thread Sirtaj Singh Kang
On 12/6/2010 11:25 AM, Sriram Narayanan wrote: I sure hope that we don't dismiss the reading of such books just because "every experienced programmer knows about refactoring". I apologize if I gave that impression. I think books like these provide programmers with a head start on techniques an

Re: [BangPypers] refactoring

2010-12-06 Thread Sirtaj Singh Kang
On 12/6/2010 11:44 AM, Gora Mohanty wrote: Man, and here was I thinking that you were killing two birds with one stone: "To understand recursion, one must first understand recursion". That's exactly the one I thought about, and figured I'd better clarify before someone accused me of being arro

Re: [BangPypers] MetaClass in python

2011-01-12 Thread Sirtaj Singh Kang
On 11-Jan-11, at 8:47 PM, Nitin Kumar wrote: [snip] So i do know who to create a class and its function dynamically at runtime??? You can dynamically create a class like this: NewClass = type('NewClass', (object,), {}) where 'NewClass' is the name of your class, (object,) is any tuple of s

Re: [BangPypers] MetaClass in python

2011-01-12 Thread Sirtaj Singh Kang
On 12-Jan-11, at 7:43 AM, Nitin Kumar wrote: [snip] So {} can contain function also for the new class, if then can you give example for the same. As i need function to class being generated. Yes, you can replace the {} with something like { 'my_method': some_function } but the 'some_fun

Re: [BangPypers] The myth of free software

2011-05-16 Thread Sirtaj Singh Kang
On 16-May-11, at 11:51 PM, Santosh Rajan wrote: [snip] As long as people like you don't see the problem, India will always remain a second class power in the software world. Do you know that the entire software exports of India today is only 5% of the total software exports of the world? T

Re: [BangPypers] The myth of free software

2011-05-16 Thread Sirtaj Singh Kang
On 17-May-11, at 12:59 AM, Santosh Rajan wrote: [snip] I think you must read this thread very carefully again. Where did I say anything against FOSS? Where did I say software must be charged? Don't put words into my mouth just for your arguments sake. I could certainly quote bits of your o

Re: [BangPypers] The myth of free software

2011-05-16 Thread Sirtaj Singh Kang
On 17-May-11, at 1:32 AM, Santosh Rajan wrote: In that case why don't you explain your point in a very "coherent" manner, so that we lesser mortals get it. What are you saying with respect to the subject of this thread? When you write something like this: > So my question is, what shit a

Re: [BangPypers] The myth of free software

2011-05-17 Thread Sirtaj Singh Kang
On 17-May-11, at 6:22 AM, Santosh Rajan wrote: Ok let me tell you the whole story scientifically. "The chances of anyone succeeding with an Open Source Project or Startup Company is inversely proportional to the square of the distance between San Fransisco and the location of this OpenSou

Re: [BangPypers] The myth of free software

2011-05-17 Thread Sirtaj Singh Kang
On 17-May-11, at 5:35 PM, Santosh Rajan wrote: [snip] First of all, let us get one thing out of the way. Success in software/hardware, no matter where you are, entirely depends on on how passionate you are about it. We can't quantify a person's passion for some thing. Apple's success, is St

Re: [BangPypers] The myth of free software

2011-05-17 Thread Sirtaj Singh Kang
On 17-May-11, at 8:12 PM, Santosh Rajan wrote: great! so let us assume for arguments sake, that whatever you say or pose is right! What answers do you have have for the questions posed below? Huh? You started this thread, with the intention of modifying the behaviour of "young immature id

Re: [BangPypers] The myth of free software

2011-05-17 Thread Sirtaj Singh Kang
On 17-May-11, at 8:32 PM, Santosh Rajan wrote: You still haven't seen the case I am making? In which case I shall admit defeat and rest my case! Same. And I apologize to all for my part in this trainwreck. -Taj. ___ BangPypers mailing list BangPy

[BangPypers] Practical experiences with uWSGI?

2011-05-18 Thread Sirtaj Singh Kang
Hi all, I've recently discovered the uWSGI project - http://projects.unbit.it/uwsgi/ and am hoping to hear from any of you who have had the chance to use it in production. Specifically: 1. Is nginx+uwsgi easier to use and manage than apache and mod_wsgi? 2. Is there a measurable difference

Re: [BangPypers] Practical experiences with uWSGI?

2011-05-18 Thread Sirtaj Singh Kang
Thanks for the reply, Sree. If I might pick your brain further - On 18-May-11, at 6:13 PM, Sreekanth S Rameshaiah wrote: [snip] We have used it in one large scale project which is due to go live in next few days. What was the reasoning behind choosing it over apache+mod_wsgi? What are the

Re: [BangPypers] The myth of free software

2011-05-18 Thread Sirtaj Singh Kang
On 18-May-11, at 6:27 PM, Santosh Rajan wrote: (FUNCTION TROLL ((FUNCTION PRINT) "Hello World"))) Please just stop. -Taj. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Practical experiences with uWSGI?

2011-05-18 Thread Sirtaj Singh Kang
On 18-May-11, at 6:32 PM, Sreekanth S Rameshaiah wrote: [snip] We just follow the client's directive as both almost had similar performance. :) Thanks again. I hope you can give us a quick post mortem when you've had some time to observe it in production. -Taj. ___

[BangPypers] WSGI app instrumentation - middleware or other

2011-06-07 Thread Sirtaj Singh Kang
Hi all, I'd like to hear from python web devs on strategies for instrumenting production wsgi apps for perfomance and availability monitoring. Are there existing tools that you use? What sort of things do you monitor (db connection state, response time stats etc) and how intrusive are the

Re: [BangPypers] WSGI app instrumentation - middleware or other

2011-06-08 Thread Sirtaj Singh Kang
On 08-Jun-11, at 11:38 AM, Anand Chitipothu wrote: [snip] Graphite + statsd/pystatsd is pretty good for performance tracking. Thanks, I hadn't heard of Graphite before, I've been struggling with Cacti. I'll give this a try. We use nagios for availability monitoring. There are many alterna

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Sirtaj Singh Kang
On 10/21/2013 11:53 AM, Saager Mhatre wrote: [snip] That's pretty much what always foiled my attempts at understanding Python MetaClasses, I was looking for power where there was none to find. The best comparison I could find was to Groovy's Compile time AST transforms, but even those are even m

Re: [BangPypers] Object Oriented Programming in python

2013-10-22 Thread Sirtaj Singh Kang
On 10/22/2013 1:10 PM, Saager Mhatre wrote: [snip] I guess we're going to have to agree to disagree on that last point. I don't find the MOP implementation in Ruby or Groovy less per for many or leading to obscure code. On the contrary, I find Python's 'rough-and-ready tools' make for more confus

Re: [BangPypers] "The Python I would like to see" - Armin Ronacher

2014-08-24 Thread Sirtaj Singh Kang
On Tuesday 19 August 2014 10:29 PM, Gora Mohanty wrote: [snip] To revive an ancient meme about whom to credit memorable quotes to: Do not write code. Write code that writes code I move that this list be renamed to banglispers posthaste. -Taj. ___