[BangPypers] Python freshers.

2020-12-10 Thread Noufal Ibrahim KV
Hello everyone, The list seems to be inactive these days. However, I'm sure some of the old timers are still here so I'll post away! I've been running The Lycaeum program for a while now and I've managed to train a decent number of people who found good jobs mostly in the startup eco

Re: [BangPypers] [Commercial] Python companies hiring freshers

2020-08-29 Thread Noufal Ibrahim KV
On Sat, Aug 29 2020, Aakanksha Jain wrote: > Hi Noufal, > > Is this program career fair open to freshers who haven't been part of the > training programs mentioned by you? [...] Oh yes. Definitely. My original email was originally looking for companies who might be interested in this so that I c

[BangPypers] [Commercial] Python companies hiring freshers

2020-08-29 Thread Noufal Ibrahim KV
Hello everyone, We're a startup headquartered in Kozhikode, Kerala and have been operating for a while. Our mission is to bridge the skill gap in engineering in India and we've been working towards that with a combination of online and offline training programs. We used to run a low volume h

Re: [BangPypers] Teaching yourself machine learning

2018-08-09 Thread Noufal Ibrahim KV
On Thu, Aug 09 2018, Rohit Chormale wrote: > Thanks everyone for kind replies. [...] Much of ML is applied statistics. I recently refreshed some of my high school statistics using http://greenteapress.com/thinkstats/ and https://greenteapress.com/wp/think-bayes/ and found it fun. These might hel

Re: [BangPypers] Teaching yourself machine learning

2018-08-08 Thread Noufal Ibrahim
On 2018-08-09 08:48, Rohit Chormale wrote: [..] Currently I am trying to teach myself machine learning. But I am facing difficulty to connect it in real life. I would really love to know the real life scenarios for machine-learning applications affecting individuals. How did you guy start apart

Re: [BangPypers] Tentative Sunday meetup with Wesley Chun

2017-11-29 Thread Noufal Ibrahim
On 2017-11-29 14:37, kracekumar ramaraju wrote: [..] If you're interested, please ping me offline with your phone number. Once there are volunteers, the next steps will come out. Thank you Noufal for connecting, and we may need your help once again for an introduction to Wesley Chun. You're

Re: [BangPypers] Capture and save running process on Python 3.6

2017-11-03 Thread Noufal Ibrahim KV
On Thu, Nov 02 2017, Ajinkya Bobade wrote: [...] > However, I want to write this code for "*.bag" extension files that is > sys.stdout = open("/Volumes/aj/hello world.bag", 'w') . This file is > defined as Binary(application/octect-stream). The above code doesn't > work in this scenario. How do

Re: [BangPypers] Capture and save running process on Python 3.6

2017-11-02 Thread Noufal Ibrahim KV
On Thu, Nov 02 2017, Ajinkya Bobade wrote: > Hello, > > Hope someone can help me on this. In the following code, I want to capture > print('Recording GPS Position...') on sd card, for now, this is printing > on terminal directly I want to capture this runtime process (p_1) from > terminal and sto

Re: [BangPypers] [Discussion] Monthly Webinar

2017-05-16 Thread Noufal Ibrahim KV
On Tue, May 16 2017, kracekumar ramaraju wrote: [...] > To engage the large crowd, how about conducting a monthly webinar for one > hour? Along with the physical meetup, experiment with webinar and have one > talk per session. This sounds like an excellent idea. +1 As an aside, here's an arti

Re: [BangPypers] [Bangpypers][Commercial][Job] We are hiring a Software Engineer, Data Scientist at AdStock

2017-03-22 Thread Noufal Ibrahim KV
On Wed, Mar 22 2017, Bhavin Patel via BangPypers wrote: > What about genuine queries about python with attachments ? Let's not > have a knee jerk reaction to a one off issue. Like what? I've been on mailing lists for quite a while and the general way is to upload it somewhere and send a link rat

Re: [BangPypers] Improving meetup attendance

2017-03-20 Thread Noufal Ibrahim
On 2017-03-21 03:35, Sivasubramaniam Arunachalam wrote: [..] IMHO, being fair to the participants by asking money(to prove their seriousness in participation) doesn't look good for a 12 years old, matured and self-sustained community like Bangpyers. It is simply an additional headache to the ev

Re: [BangPypers] Meetup: Learn Algorithm with Python 1

2017-03-20 Thread Noufal Ibrahim
Excellent work everyone. Bangpypers is becoming really enviable. I'm almost regretting leaving Bangalore. :) On 2017-03-20 17:21, kracekumar ramaraju wrote: Hi BangPypers is hosting learn algorithm with Python on 25th, March from 2:30 to 5:30 in Thought Factory, Domlur. The workshop will c

Re: [BangPypers] Need help using web python app.

2017-01-24 Thread Noufal Ibrahim
On 2017-01-25 04:03, Blake Merriam wrote: Hello. I'm trying to figure out how to use this python app: http://wfuzz.org/ There is the following domain: games.skillz.com/games/ that has many numbered sub directories. Example: http://games.skillz.com/game/2314 http://games.skillz.com/game/942 I w

Re: [BangPypers] Registration for PyCon Pune 2017 is Open Now!

2016-11-18 Thread Noufal Ibrahim KV
On Fri, Nov 18 2016, Shanki Singh Gandhi wrote: > Really astonished after visiting CFP site of pune pycon, wondering why > Junction is not being used for it. If we are not using the product > developed by use, then why other will use it. [...] Let's not go there. Junction is one option for man

Re: [BangPypers] Query on correct use of threading

2016-11-08 Thread Noufal Ibrahim KV
On Tue, Nov 08 2016, Rajesh Deo wrote: > Dear All, > > I was exploring the threading module and came up with following, after > going through @raymondh's talk (https://www.youtube.com/watch?v=Bv25Dwe84g0) > > http://pastebin.com/usKE6nME Can you put it on another pastebin service? My ISP is block

Re: [BangPypers] lists and tuples

2016-10-04 Thread Noufal Ibrahim
On , Siva Ranganath wrote: Hi All, please let me know few cases when we will go with Lists and tuples in pyhton. Lists are like vectors (since you're from a C++ background). They can expand/contract depending on data and are also heterogeneous meaning that all the elements needn't be of the

Re: [BangPypers] [Fund Raiser] Please donate generously for my efforts

2016-09-15 Thread Noufal Ibrahim
Hello Annapoornima, Good work with the videos. I used to make tutorial videos of Emacs but stopped due to lack of time. I have a few suggestions that might help you get more mileage out of low cost equipment. 1. If you make the whole thing into a screencast rather than a video (via a w

Re: [BangPypers] [Inpycon] Pycon India 2016 Keynote Speaker: Van Lindberg

2016-08-30 Thread Noufal Ibrahim KV
On Tue, Aug 30 2016, chandan kumar wrote: > Hello, > > We are delighted to announce our third keynote speaker for PyCon India > 2016: Van Lindberg [...] Wonderful! -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@pyt

Re: [BangPypers] Python 2.x Vs 3 & Books - Frequently Asked Question but on latest context

2016-08-04 Thread Noufal Ibrahim KV
I think Python 3 has arrived. There are a few libraries that are not ported and there's legacy code which you might have to work on but apart from that, 3 is the way to go. Learn Python the Hard way is a good book to start with and the HTML version is available online. -- Cordially, Noufal htt

Re: [BangPypers] framework to write functional test cases

2016-06-01 Thread Noufal Ibrahim KV
On Wed, Jun 01 2016, anu sree wrote: > Hi, > > I am looking for a framework which helps to write functional test > cases. Right now i am using unittest framework to do that, but that > is ugly. I consider py.test as one of Python's "killer applications". I've used it since 2010 or so for almost

Re: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale

2016-05-09 Thread Noufal Ibrahim KV
On Mon, May 09 2016, Santosh Chiniwar wrote: > I have sent a mail but its held until approval. For that I have attached > code. Now again I got same email. > I don't have to attach plots? [...] Attachments are either scrubbed or blocked. You should write a "minimal, complete and verifiable" exam

Re: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale

2016-05-09 Thread Noufal Ibrahim KV
On Mon, May 09 2016, Santosh Chiniwar wrote: > Please find correct Python code for above mail. Thank you > [...] This doesn't help either. You need to be a little more specific and detailed about the problem that you're facing. I've found http://www.catb.org/esr/faqs/smart-questions.html to be a

Re: [BangPypers] Looking for corporate Python Trainers

2016-05-04 Thread Noufal Ibrahim KV
On Thu, May 05 2016, Manjushree Hegde wrote: > Hello, > > > I am looking for Python trainers for corporate training. Please let me > know if anyone is interested in this. [...] We do corporate trainings on Python and other technologies via pipal.in. If you're interested, please email us at he...

Re: [BangPypers] Looking for corporate Python Trainers

2016-05-04 Thread Noufal Ibrahim KV
On Thu, May 05 2016, Suman Debnath via BangPypers wrote: > I would highly recommend Mr. Chandrashekhar Babu > (https://www.linkedin.com/in/chandrashekarbabu?authType=name&authToken=WHf > d&trk=wonton-desktop). > He is the best training I have ever come across. [...] +1. I know him personally and

Re: [BangPypers] Tools/libraries to determine the call graph(call flow) of an python program (module/package)

2016-01-12 Thread Noufal Ibrahim KV
On Tue, Jan 12 2016, ashish makani wrote: > thanks & true Noufal, but 2 points : > > 1. i imagine this is a fairly common usecase > you are given some source python codebase , X which is moderately complex > > i just want to give X & some typical args which X takes, to a > tool/library, so i get a

Re: [BangPypers] Tools/libraries to determine the call graph(call flow) of an python program (module/package)

2016-01-12 Thread Noufal Ibrahim KV
On Tue, Jan 12 2016, ashish makani wrote: [...] > Is there a python library/tool/module , to which i give input the start > point of X, x.py > and the input arguments, arg1, arg2, ..., argn I once needed something like this but went about it statically using this http://code.activestate.com/reci

Re: [BangPypers] Call for proposals PyDelhi Conference

2016-01-11 Thread Noufal Ibrahim KV
On Mon, Jan 11 2016, yogesh gupta wrote: > Does the event happens in mumbai anytime of the year ? [...] If you know sufficient Pythonistas in Mumbai, you should try to conduct a small scale conference by yourself. Lots of regional events is a good thing. :) -- Cordially, Noufal http://nibrahim.

Re: [BangPypers] Python comparisons

2015-12-05 Thread Noufal Ibrahim KV
On Sat, Dec 05 2015, Gora Mohanty wrote: [...] > Maybe because that was the historical way that C did it? I agree that > the Python 3 exception makes more sense. [...] We can only guess but you'll have to explicitly code this in and I can't think of any situation where it would make sense. -

Re: [BangPypers] Python comparisons

2015-12-05 Thread Noufal Ibrahim KV
On Sat, Dec 05 2015, Anand Chitipothu wrote: [...] > Thats why you should use Python 3. Here is what you get with Python 3. [...] Yet another reason to move. I'm still curious why they did it the other way in 2.x though. -- Cordially, Noufal http://nibrahim.net.in __

[BangPypers] Python comparisons

2015-12-05 Thread Noufal Ibrahim KV
So I came across this today.. >>> class Number(object): ...def __init__(self, n): ... self.n = n ... >>> m = Number(10) >>> n = Number(5) >>> >>> m < n True This is documented like so > If no __cmp__(), __eq__() or __ne__() operation is defined, class > instances are compared by obj

Re: [BangPypers] Zendesk

2015-11-25 Thread Noufal Ibrahim KV
On Wed, Nov 25 2015, ashish makani wrote: > Weird. > I don't see such an error. > > Maybe some side effect of your mail program ? [...] Yup. Looks like it's just me. -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers

[BangPypers] Zendesk

2015-11-24 Thread Noufal Ibrahim KV
Is "in...@surendran.zendesk.com" subscribed to the list? I get an automated reply for each and every email that comes on this list from that address. If others see something similar, please remove the address from the list roster. -- Cordially, Noufal http://nibrahim.net.in _

Re: [BangPypers] Funding FOSS through CSR

2015-11-20 Thread Noufal Ibrahim KV
On Sat, Nov 21 2015, Harsh Gupta wrote: [...] > So, what do you think about it? [...] I'm sceptical of organisations and much prefer that companies directly hire people to work on free software rather than first make x, then donate a small fraction of x to some organisation who then donate a f

Re: [BangPypers] Life lessons shared by Jesse Noller

2015-10-29 Thread Noufal Ibrahim KV
On Fri, Oct 30 2015, Gora Mohanty wrote: [...] > OK, we will have to agree to disagree, Incidentally, this was posted > to the bangpypers list which is explicitly devoted to Python, and not > to the Pycon list. Yeah. I meant to say python but mistyped it. [...] -- Cordially, Noufal http://n

Re: [BangPypers] Life lessons shared by Jesse Noller

2015-10-29 Thread Noufal Ibrahim KV
On Thu, Oct 29 2015, Gora Mohanty wrote: [...] > With all due respect to Mr. Noller, the article is not germane to this > list. Please refrain from off-topic posts. [...] Perhaps not completely relevant to PyCon but it is, I think, useful to many people who are putting in time and energy to ke

Re: [BangPypers] Online communication channel

2015-08-15 Thread Noufal Ibrahim KV
On Sun, Aug 16 2015, kracekumar ramaraju wrote: >> >> [...] >> "Surely people who "want to participate and contribute" ..." Let's not >> limit these conversations to only those who want to code. >> >> > +1. This will make huge difference. > > Significant amount of users are on windows and lot pref

Re: [BangPypers] Online communication channel

2015-08-15 Thread Noufal Ibrahim KV
On Sun, Aug 16 2015, kracekumar ramaraju wrote: [...] > AFAIK having apps in all platforms helps users to stick to the > conversation and get notification. How awesome will it be if someone > asks a question and gets an answer after 5 hours and notified for it. [...] Kind of like a mailing lis

Re: [BangPypers] Online communication channel

2015-08-15 Thread Noufal Ibrahim KV
On Sun, Aug 16 2015, sankarshan wrote: [...] > An anecdote_of_one: a reason Slack or, Scrollback like services are > often preferred over IRC/email is because of the asynchronous nature > of request-response. For example, you seek some answer and unless you > are logged in, the responses will not

Re: [BangPypers] Online communication channel

2015-08-15 Thread Noufal Ibrahim KV
On Sat, Aug 15 2015, kracekumar ramaraju wrote: [...] > Biggest problem with IRC is to on board new comers. The learning curve is > steep for normal tech users. > It only makes life for already acquainted users easier not for new comers. > It hardly takes 5-15 minutes get new person to get used

Re: [BangPypers] Python script to open hyper terminal and send password text file

2015-08-14 Thread Noufal Ibrahim KV
On Fri, Aug 14 2015, Python Consultant wrote: > Hi Guys, > > I am writing a script to open hyper terminal and send password file for > serial port reprocessing. > > using subprocess.Popen i am able to open hyper terminal > > >>> subprocess.Popen(["Hyperterminal path", "saved session pa

Re: [BangPypers] Connecting developers and companies

2015-07-20 Thread Noufal Ibrahim KV
I still think it's a worthwhile experiment and should be tried. If things go awry, it can be cancelled. -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Connecting developers and companies

2015-07-19 Thread Noufal Ibrahim KV
On Mon, Jul 20 2015, vijay kumar wrote: [...] > Am one among them hence i want to see it continue to be what it is > today. [...] That's great and I'm sure it'll get better. My comments were just my own thoughts. -- Cordially, Noufal http://nibrahim.net.in ___

Re: [BangPypers] Connecting developers and companies

2015-07-19 Thread Noufal Ibrahim KV
On Mon, Jul 20 2015, vijay kumar wrote: [...] > We expect companies to be alteast be active in community in share knowledge > rather than just coming for job posting announcement. Companies are not interested in "sharing knowledge". They're interested in hiring and making money as it should be.

Re: [BangPypers] Connecting developers and companies

2015-07-19 Thread Noufal Ibrahim KV
On Sun, Jul 19 2015, Deep Sukhwani wrote: > One major concern of all is that people showing up on meetups ONLY > with an agenda of getting a chance to speak with employers. True but I think this distinction between "community" and "companies" is not as clear cut as it's made out to be. Companies

Re: [BangPypers] Connecting developers and companies

2015-07-19 Thread Noufal Ibrahim KV
On Sun, Jul 19 2015, kracekumar ramaraju wrote: [...] > There was a suggestion of having 10 minutes slot at the end of the meetup > where companies can speak about them and openings for 2 minutes. +1 atleast as an experiment. Companies are part of the "community". [...] -- Cordially, Noufal h

Re: [BangPypers] real use case of gevent context switch gevent.sleep(0)

2015-06-21 Thread Noufal Ibrahim
On 2015-06-21 19:48, anu sree wrote: Thanks noufal, I got it. After gevent.spawn, we have to do join or gevent.joinall or gevent.sleep or patched library call to start the greenlets, right ? join (and joinall) will pause the current greenlet till the ones you've joined terminate (similar t

Re: [BangPypers] real use case of gevent context switch gevent.sleep(0)

2015-06-21 Thread Noufal Ibrahim KV
On Sun, Jun 21 2015, anu sree wrote: [...] > This code has two pause (gevent.sleep(0)), in Consumer.start and > Worker.run. Here control goes to Worker.run when Consumer.start > pauses and Consumer.start gets control back when Worker.run > pauses. There may be benefit from this switching, but I

Re: [BangPypers] real use case of gevent context switch gevent.sleep(0)

2015-06-20 Thread Noufal Ibrahim KV
On Sat, Jun 20 2015, anu sree wrote: > Hi, > > I have seen an example of gevent context switch > http://sdiehl.github.io/gevent-tutorial/#synchronous-asynchronous-execution > > Could you please give some real use case with example. > It would be fine If you can share link of github project which u

Re: [BangPypers] Anyone who has worked on Lamson?

2015-05-27 Thread Noufal Ibrahim KV
On Wed, May 27 2015, Ramdas S wrote: > Noufal, > > I want to use this for setting up an interim SMTP server which based > on certain rules should decide whether the mails need to go through > the normal corporate server, or should go through an alternate SMTP > server. This is primarily to reduce

Re: [BangPypers] Anyone who has worked on Lamson?

2015-05-27 Thread Noufal Ibrahim KV
On Wed, May 27 2015, Ramdas S wrote: > Need to have an offline call, if they have time and if available, to > take a quick decision to take a call on to shelve or use this tool or > build somethig from scratch... [...] I wrote an email interface to a ticketing system using lamson once. It's ve

Re: [BangPypers] fresher jobs help

2015-04-20 Thread Noufal Ibrahim KV
On Mon, Apr 20 2015, Abishek wrote: > Myself Abishek ,2015 B.E passout (computer science and engineering ) > fresher, looking for python based jobs in bangalore.If anyone know job > opportunities pls let me know. I am so much interested in python > programming,networks and security... [...] Try

Re: [BangPypers] April Meetup

2015-04-12 Thread Noufal Ibrahim KV
On Sun, Apr 12 2015, kracekumar ramaraju wrote: [...] > No, it is third saturday day of the month, following same tradition. > Unfortunately, this time we had hiccup with venue host. [...] Cool. -- Cordially, Noufal http://nibrahim.net.in ___ BangPy

Re: [BangPypers] April Meetup

2015-04-11 Thread Noufal Ibrahim KV
On Sun, Apr 12 2015, kracekumar ramaraju wrote: > Hi > > We're hosting April meetup on 25 in IBM Accelerator, Domlur. RSVP is open > http://www.meetup.com/BangPypers/events/178049472/. [...] Krace, Is it always on the last Saturday of the month? Thanks. -- Cordially, Noufal http://nib

Re: [BangPypers] [JOBS] pythonistas with Django + JS + HTML5 + WS experience

2015-03-07 Thread Noufal Ibrahim KV
On Sat, Mar 07 2015, HHB wrote: > Hi Guys, > > Here’s more info: based on what people asked: > > 1. It’s an established product company, so competitive pay. (I am no > HR though) [...] Surely it's simpler just mention the name of the company? Why all this cloak and dagger secrecy? :) -- Cord

Re: [BangPypers] 3rd party module, pure python or C dependent

2015-01-30 Thread Noufal Ibrahim KV
On Fri, Jan 30 2015, Nitin Kumar wrote: > Is there a way (command/tool) to find if a third party which i want to use > is a pure python or it got c code which need to be compiled while > installing. > > ex: numpy requires C code compilation. Can we know it before hand. I think looking into the s

Re: [BangPypers] Python training material

2015-01-19 Thread Noufal Ibrahim KV
> wrote: >> http://anandology.com/python-practice-book/ > > On Tue, Jan 20, 2015 at 10:59 AM, kracekumar ramaraju > wrote: >> https://github.com/kracekumar/pythonbyexamplestutorial >> https://github.com/kracekumar/learnpythoninminutes/blob/master/learn_python_in_minutes

Re: [BangPypers] Python training material

2015-01-19 Thread Noufal Ibrahim KV
On Tue, Jan 20 2015, Suyash Bhatt wrote: > Hi Friends, > > I am looking for any Basic training material for Python which can be shared > across (with due credit). > Please let me know if anyone can help me with that. I wrote this for an early training I conducted. It's out of date though and need

Re: [BangPypers] Terrible choices: MySQL. What is the way ahead?

2014-12-30 Thread Noufal Ibrahim KV
On Tue, Dec 30 2014, Gora Mohanty wrote: > On 30 December 2014 at 19:32, Noufal Ibrahim KV > wrote: > [...] >> I can't offer anything normative but in my experience (and it's a little >> dated since I don't use mySQL for anything these days), mySQL

Re: [BangPypers] Terrible choices: MySQL. What is the way ahead?

2014-12-30 Thread Noufal Ibrahim KV
On Tue, Dec 30 2014, Okan bhan wrote: [...] > My major reason to continue will be no exposure to PostgreSQL. And > after struggling so much with MySQL, if I use Postgre I will be in a > domain of unknown again. Can anyone please point to articles comparing > latest version of both or share their

[BangPypers] Python books online (was: BangPypers Digest, Vol 88, Issue 21)

2014-12-29 Thread Noufal Ibrahim KV
On Mon, Dec 29 2014, piyush singhai wrote: > Hello, > > You can download from here. > > python essential reference 3rd edition > > https://microembedded.googlecode.com/files/Python_Essential_Reference_3rd_Edition.pdf [...] This looks like it's being hosted in violation of copyright. Please don't

Re: [BangPypers] mysqlclient not getting installed in python3 env

2014-12-28 Thread Noufal Ibrahim KV
On Sun, Dec 28 2014, Mukesh Yadav wrote: [...] > I have installed all the prerequisite i.e, python-dev. You probably need python3-dev for Python3. -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers mailing list BangPypers@python.org https://

Re: [BangPypers] Python certifications in India

2014-12-23 Thread Noufal Ibrahim KV
On Wed, Dec 24 2014, Saager Mhatre wrote: [...] > > We... I wouldn't put quite as much stock in the CCNA given the > people we interviewed at TW for a sysad position. CCNA's are the lowest rung as far as I know. They're fairly easy to get too. CCIEs are very hard to get and the ones I k

Re: [BangPypers] Python certifications in India

2014-12-21 Thread Noufal Ibrahim KV
On Mon, Dec 22 2014, Bibhas Ch Debnath wrote: > Is there anyone or any company here that actually values a certificate > for Python? In my experience, certification courses mean nothing, at > least for Python developers. None of the people I know or have worked > with, cares about a certificate. >

Re: [BangPypers] List of n but same objects

2014-12-11 Thread Noufal Ibrahim KV
On Thu, Dec 11 2014, Rajiv Subramanian M wrote: [...] > Question: > 1. How in the first case i.e [iter(x)] * 3 creates a list of 3 but the > same objects? The * operator when applied to a list (or any sequence type) is a repetition. You can see the code for list_repeat here [1]. The line I'v

Re: [BangPypers] [Inpycon] [X-Post] Diversity

2014-11-18 Thread Noufal Ibrahim KV
On Tue, Nov 18 2014, Vanitha Shanmugam wrote: [...] > We have the mailing list ( > http://lists.pssi.org.in/mailman/listinfo/diversity) created. This > mailing list only for female pythonistas and the archives are not > public so the discussions are kept private. [...] There is a Python diversi

Re: [BangPypers] about python code

2014-11-17 Thread Noufal Ibrahim KV
On Mon, Nov 17 2014, narayan naik wrote: > hi, >when I am running face detection code ,I am getting this error. > [...] This is a very basic question. You should go probably go through a python tutorial before attempting this. I'm presuming that you actually want to do something with opencv.

Re: [BangPypers] Does Python have lexical scoping?

2014-11-09 Thread Noufal Ibrahim KV
On Sun, Nov 09 2014, Abhishek L wrote: [...] > Here x was a mutable variable, doing a similiar ML construct, ie > > val x = ref 2 > fun f y = !x + 2 > > f 10 ; evals to 12 > x := 10 > f 10 ; evals to 20 > > So this becomes a problem of closures over mutable variables? ie

[BangPypers] Does Python have lexical scoping?

2014-11-08 Thread Noufal Ibrahim KV
Okay, I've been struggling through the proglang course on coursera and this thing came up val x = 2; fun f y = x + y; The second line creates a function that adds `x` to it's argument. Since ML is statically scoped, this is really a function that adds 2 to its argument. Even if I later cr

[BangPypers] eval (was: BangPypers Digest, Vol 86, Issue 16)

2014-10-27 Thread Noufal Ibrahim KV
Please ignore my earlier reply to your email. I hit send by accident. Please edit the subject line when you're replying to a digest. On Mon, Oct 27 2014, Okan bhan wrote: [...] >> 2. A mapping object is similar to a dictionary. It should >>return the actual object if you try to access it.

Re: [BangPypers] BangPypers Digest, Vol 86, Issue 16

2014-10-27 Thread Noufal Ibrahim KV
On Mon, Oct 27 2014, Okan bhan wrote: > Hi Noufal, > > Thanks for responding and helping me explaining these. I see lots of my > doubts are clear, except last (c). My explanations are inline. > >> A simple implementation of this is: >> > >> > class SimpleMapping: >> > def __init__(self, items

Re: [BangPypers] Evaluating a string against mapping in python.

2014-10-26 Thread Noufal Ibrahim KV
On Sun, Oct 26 2014, Okan bhan wrote: [...] > A simple implementation of this is: > > class SimpleMapping: > def __init__(self, items): > self._items = items > > def __getitems__(self, subitem): > print('*' * 20) > for item in self._items: > if subitem in item: > re

Re: [BangPypers] Return values

2014-10-03 Thread Noufal Ibrahim KV
On Thu, Sep 25 2014, Saager Mhatre wrote: [...] > Alternatively, would it be possible to model Stats/StatsList as a composite > hierarchy (potentially with Courtesy Implementations > )? [...] I didn't know about Courtesy implementation

Re: [BangPypers] Return values

2014-10-03 Thread Noufal Ibrahim KV
On Thu, Sep 25 2014, Saager Mhatre wrote: [...] > Alternatively, would it be possible to model Stats/StatsList as a composite > hierarchy (potentially with Courtesy Implementations > )? [...] I didn't know about Courtesy implementation

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Sriram Karra wrote: [...] > Anand's solution is good. But with the added context you have given - why > are you not creating classes for CPU and Machine, with get_stats() and > set_stats() methods for them? Something like: This is a higher level abstraction and something I m

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Sriram Karra wrote: [...] > But your problem can be addressed by naming the functions after what they > do - after all your consolidate function does something tangible other than > just return a different type of data. [...] Let me give you a specific example. The psuti

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Sriram Karra wrote: [...] > Having a method do two different things based on a flag is not > a clean answer to anything. [...] That's a useful rule of thumb. Thank you. -- Cordially, Noufal http://nibrahim.net.in ___ BangPyper

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Sriram Karra wrote: [...] > I think the comparison is not strictly apples to apples. In case of sort > ascending / descending flag parameterises the same sort algorithm. In your > case, you do some additional things (loop through and add up stuff, > perhaps) based on the val

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Vivek Ramakrishna wrote: > Hi Noufal > > Why not create two methods, get_stats() and get_stats_list(). Both can > share logic in a common function which takes the consolidate flag - meaning > your logic is localised to one point only. It makes for more readable code > when cal

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Anand Chitipothu wrote: [...] > Oh, that feels like PHP. That style seems to be popular in that side of the > world. > > It might be a good idea to add consolidate method on the return value. > Something like: > > class StatsList(list): > def consolidate(self): >

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Senthil Kumaran wrote: [...] > One option to me looks like, don't have consolidate as parameter for > this function, but do the operation outside. Like providing a > function called get_consolidated_stats, which will call get_stats and > provide the consolidated result. > >

Re: [BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
On Sat, Sep 20 2014, Harish Vishwanath wrote: > Couple of approaches: > > - Break the api into two. get_stats and get_stats_consolidated. This way, > the caller who doesn't know what is your default value of "consolidated" > argument is will not be confused. This explodes the API. It's similar to

[BangPypers] Return values

2014-09-20 Thread Noufal Ibrahim KV
I've recently come across something that I'd like some comments on. It's a stylistic issue so not something that there's an objective answer for. Nevertheless. I have a function that gets some statistics from some source and returns it to the user as a Stats object. Let's call it get_stats. This

Re: [BangPypers] Python is still greek to india's top IT firms

2014-09-13 Thread Noufal Ibrahim KV
On Sun, Sep 14 2014, sayantan bhattacharya wrote: > Hello all, > > I work at TCS and they didn't know about Python either. Now that I > have written a script that does the log monitoring easy for the > Application support guys, they have accepted the language. But there > seems to be a resistance

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

2014-08-19 Thread Noufal Ibrahim
On 2014-08-19 14:05, Saager Mhatre wrote: [..] I realized this myself a long time ago, around the time I joined TW and started putting Ruby in production. However, all the dynlang love in the air at the time seemed to be blinding people to it. Since then I've sensed this sentiment among those

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

2014-08-19 Thread Noufal Ibrahim
On 2014-08-19 12:31, Saager Mhatre wrote: That's just a question of testing strategy. If you're writing 'elaborate' tests at every layer, you're probably validating too much or exercising too much of the system at each layer of testing. The cartesian product of tests required to validate ever

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

2014-08-18 Thread Noufal Ibrahim
On 2014-08-19 11:23, Balachandran Sivakumar wrote: Is it because bugs are becoming harder to find, or maintenance is becoming difficult ? Both really. It's easy to take shortcuts and results in tech. debt that you have to pay back later. As someone said, if it talks like duck and wa

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

2014-08-18 Thread Noufal Ibrahim
On 2014-08-19 11:11, Sriram Narayanan wrote: Hi Noufal, could you elaborate on this? I have enjoyed the freedom of non-static typing that Python and Ruby offer, but also sometimes miss the static type checking that C# and Java offer. Yes. I like the freedom and they're great for prototyping.

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

2014-08-18 Thread Noufal Ibrahim
On 2014-08-18 21:45, chandrakant kumar wrote: Python 3 has been a disappointment. I haven't used it enough to judge (and this has, in my experience, been the case with most critics). However, as the projects I deal with grow larger, I'm becoming increasingly frustrated with Python (and dyna

Re: [BangPypers] Mailing list etiquette

2014-08-08 Thread Noufal Ibrahim
On 2014-08-08 11:40, Saager Mhatre wrote: [..] Didn't we already have this discussion on this list? Besides, doesn't mailman let us set a limit on the attachment size? One configuration to rule them all! Not that I recall. Even so, it's not just the size of the attachment but that multiplied b

Re: [BangPypers] Mailing list etiquette

2014-08-07 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Jeffrey Jose wrote: [...] > ​I'm curious how do you read your mails? Noufal, if my memory serves me > right you're an emacs person. So emacs perhaps? > > I'm in the vim camp, so I use my browser for email.​ I download my email when I'm online and read them using either mutt

Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Nitin Kumar wrote: > thats a typo error. > > in simple term my question would be: How to override sys.stdin. [...] The StringIO module gives you file like objects into which you can put data. They might work as substitues for sys.std* -- Cordially, Noufal http://nibrahim.n

Re: [BangPypers] how to override sys.stdin

2014-08-04 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Nitin Kumar wrote: > Hi All, > > is there a way i can override raw_input or input function. Create a function like def my_input(prompt): # Your code here and then assign it to raw_input raw_input = my_input. [...] -- Cordially, Noufal http://nibrahim.net.in _

Re: [BangPypers] Mailing list etiquette

2014-08-04 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Jeffrey Jose wrote: > I agree with almost all of it, except for these 2. > > 1. No HTML emails I don't like HTML emails because usual textual matter doesn't need it. It simply bloats things and if the renderer your client is using doesn't have some feature that the sender use

Re: [BangPypers] How to Distribute Commercial Python Applications

2014-08-03 Thread Noufal Ibrahim KV
On Mon, Aug 04 2014, Deepak Tripathi wrote: > Hi, > How to distribute commercial python application without giving source code > to the customer, dev platform in Unix (FreeBSD), Python2.x. [...] This is what I did. http://stackoverflow.com/questions/5661385/packaging-and-shipping-a-python-libr

[BangPypers] [Commercial] Mentoring course using Python

2014-06-11 Thread Noufal Ibrahim KV
Hello everyone, One of the reasons I moved out of Calicut was to try to start a hacker school like setup in North Kerala. There's plenty of colleges and talented students there but many of them lack direction and motivation. I've found myself a little place and am offerring a 3 month

Re: [BangPypers] Restart when python script hangs

2014-06-02 Thread Noufal Ibrahim KV
On Mon, Jun 02 2014, Rahul Gopan wrote: > Hello, > > When I run a python script it hangs at random places. Is there any way to > identify when the script hangs and to resume it automatically. When I see > that it is not responding i do ^Z (Ctrl -Z) to stop and then use fg command > to start it aga

[BangPypers] Replying to digests (was: BangPypers Digest, Vol 82, Issue 1)

2014-06-02 Thread Noufal Ibrahim KV
On Mon, Jun 02 2014, JERIN JACOB wrote: > Dear friends > > thanks for all your supports [...] Please reply to individual threads rather than to a digest. It's hard to follow the conversations. -- Cordially, Noufal http://nibrahim.net.in ___ BangPypers

Re: [BangPypers] introduction

2014-06-01 Thread Noufal Ibrahim KV
On Sun, Jun 01 2014, JERIN JACOB wrote: > Dear friends > > I am new to the user group and also python,my main aim to study the > phyton will the help of these group [...] You're very welcome. This is what I recommend to most people who want to learn python from scratch http://learnpythonthe

Re: [BangPypers] Redefine concepts, Rewrite Books

2014-05-27 Thread Noufal Ibrahim KV
On Tue, May 27 2014, Venkatraman S wrote: > https://github.com/django/django/pull/2692 [...] There should be a button to "not allow comments" on a github pull request. That whole "thread" is a waste of time. -- Cordially, Noufal http://nibrahim.net.in __

Re: [BangPypers] Fwd: Python script hangs after using logging module

2014-05-27 Thread Noufal Ibrahim KV
On Tue, May 27 2014, Rahul Gopan wrote: > -- Forwarded message -- > From: Rahul Gopan > Date: Tue, May 27, 2014 at 12:06 PM > Subject: Re: [BangPypers] Python script hangs after using logging module > To: Noufal Ibrahim KV > > > 1. Used subprocess.che

  1   2   3   4   5   6   7   8   9   10   >