Friday, 30 September 2016

Pyladies in pycon-india



umbrella1.jpg
Pyladies, a chapter lost in the darkness got a spark in Pune(India) when Anwesha, Nisha, Rupali decided to open that closed chapter and lighten the Pyladies community with its light. Hats off to their courage as Anwesha and Nisha have small daughter, and it’s really difficult to manage anything with kids but still they are giving their time to Pyladies, I have to learn a lot from them as in this busy world why would anyone care of about anything so much, especially when it has lost its existence. But these ladies reopen the Pyladies-Pune Chapter and made it a success. A community which was unknown in India a few days back, is now known and people are talking about. They want to know more about it, want to be a part of it and contribute in one way or other. All this happen after our efforts in Pycon. Pycon was a great success for  Pyladies, also Pyladies was one of the reason for which I went to Pycon India.

Pyladies, I came know about it when the Pune-chapter was restarted and I attended its first meetup in July. As I was also new to Python and programming, so I became a part of it and started waiting for the date of next meetup announced on the mailing list. Till now we are meeting once in month but can also think of twice in a month if possible. After we had started meeting regularly, we wanted Pyladies in Pycon India so that the people come to know about it, so we planned to set up a booth in Pycon India, but plans doesn’t go smoothly every time, and same was a case with us when Anwesha told us that she had applied for a booth in Pycon India in August and they have  refused us to give space as there is no space available for the Pyladies booth as we were not the sponsors  and here comes the sorrow :-( . Then comes Rupali like a life saver to Pyladies, offering us a space, as Red Hat was ready to give us space in its booth, then we were like no one can stop us from being a part of Pycon India, and there our faces were like :-).

So here come the day, we were waiting for 24th September 2015, and we were at JNU convention centre venue for Pycon. After registration I directly went to Red Hat booth where we were going to set up our Pyladies table. After inspecting the space I had a cup of coffee and then went for the Keynote by Baishampayan Ghose, by that time Anwesha and Nisha were also there, it was great keynote, learnt a lot from it. After attending the talk, we all pyladies rushed to the booth to set up our table. So first thing was that how to show our presence there, as we were not having pyladies t-shirt to promote it, but that problem was solved by Trishna, as she has brought pyladies print out. So we planned to put them on our t-shirts, and then we either pinned it up or paste it so that people came to know about it. We all quickly cut those logos and put them on our T-shirts.  These logos grabbed the attention of people present there. Then comes the Pyladies Umbrella which was a point of attraction for the public, thanks to Nisha for that, as she carried it along the way from Pune to Delhi. The leds present were not glowing when we switched it on, that was a little disappointment for us. Then Praveen came to help us, and he was successful in it, leds were lightening so were our faces. It was very beautiful, and that can be seen in the pictures as how everyone is posing with it, I liked it so much that I was the first to click a pic with it :P.
pooja.jpg

Then we started telling people what actually Pyladies is and how we are organizing meetups. Anwesha was going to people to tell them about Pyladies, I and Nisha were at booth for the people who were coming there, and answering their questions as we were new, and it was just a beginning, so many question were there for us like:
  • What is Pyladies?
  • Is it only for ladies?
  • How we can join or contribute to it?
  • Is it for Pune only?
  • Can we have Pyladies in our own city?
And many more………
Every question was answered and it was good to see that people are showing their interest in Pyladies. In between I attended few talks also and keynote by Van. So the first day ended explaining what we are and what we do at Pyladies.

Then comes the second day of Pycon, attended the keynote by Andreas Mueller in morning. After seeing such a great response for Pyladies, we decided for a talk in Open Space so that we can address everyone interested and can get some ideas and insights for our group for its further growth as we all were new. Janki helped us to get a space for us in open space. Kushal and Praveen helped to setup for the discussion. Paul Everitt, Jeff Rush, Van Lindberg and Dmitry Filippov were approached for it, and they were ready to give their time to our group, that was so sweet of them.
dis.jpg

The talk was started with a brief introduction of Pyladies and its current state by Rupali. Then the discussion started which was really the best part of Pyladies in Pycon as we got a lot new ideas for our community and we were able to communicate our thoughts to the people present there about Pyladies. Paul, Jeff, Dmitry and Van shared their personal experience  and gave us the useful tips to make Pyladies a Success, they were also impressed by seeing us doing such a great job for our group. Then we distributed the slips where we have written the email-ids for joining Pyladies and the mailing list. So it was good session and thanks all for joining it and providing their insights.

pyladies.jpg


In the end there was a feedback session, where Anwesha asked for a space for Pyladies in next Pycon, hope we will get our space the next year for Pyladies. Thanks to all the Pyladies for making the event a success, and we all will take Pyladies to a great height. It was a great experience attending Pycon, looking forward for next year…...

Friday, 16 September 2016

PyLadies Meetup Event Report


We had our pyladies meetup this Saturday, last week we were not able to do as in Maharashtra, there is a festival Ganesh Chaturthi, honouring the birth of Lord Ganesha it is celebrated for ten days so we planned to do meet this week instead of last week. Again it was great meetup, started with Nisha Menon’s talk “The practical usage of Python", but unfortunately I missed it this time : ( , when I reached she was about to finish. I was late as that morning I decided to try something new in breakfast ie radish parathas that took a lot of time to prepare, but that was a good experiment as they were mouth-watering. So after having a delicious parathas with curd and pickle I reached there, and took my seat, everyone was already ready with their laptop, this time there were lot of new faces, many new student had come to attend the meetup, without delaying anymore I also get started as by that time Nisha talk was ended and she invited Trishna for her session. 


She was going to take a session on “Using WEB API in Python3 “. So before starting she just confirmed how many of us were familiar with Python basics, as it was discussed in previous meetup. But still for the new members and to brush up our knowledge she revised all the basics to keep us all on a same platform. Although it was a revision session but she explained each and everything and gave time to all of us to try the different commands on our terminal and solved everyone queries. Thanks to her for that, then she discussed about the things which we were going to do in our workshop that day. She has chosen a great topic and problem for the workshop. We were going to use the API of Zomato website. It seems very interesting as it was about food, and everyone love that. So we generated an API_KEY for that, by that time it was the time for lunch, so we all went for lunch. 


Kushal and Praveen ordered lunch for us, thanks to them to fill our hungry tummy. During lunch we all had discussion on different topics related to python and other stuffs.  Also Kushal took the students for a small walk in redhat. After lunch we all gathered in the same room named Harishchandgarh which reminds me of King HARISHCHANDRA who never lied and always kept his promise. We all were set, one of us was facing problem with her laptop, as she was having a window laptop, so it was suggested by Kushal to switch to linux as it is far easy to handle problems on it and its best if we want to contribute to development side or  to any project. So for that time a laptop was arranged for her with linux. Then we all were set to start. 

Trishna made us familiar with “requests” module in python3 which is the only Non-GMO HTTP library for Python. We all installed the requests module as it was required for the session from the below commands.
  • dnf install python3-requests
So the task was we have to list out the nearby restaurants to our current location, for that we used the longitude and latitude to provide our current location. We wrote a python3  program for searching the restaurants, added to it also the url for menu and we were able to list the nearby restaurants with menu url near Magarpatta, the list was as below for restaurants names if someone want to visit any:
  • Deccan Harvest
  • Cuba Libre
  • Wah Marathi Dine N Wine
  • TGI Fridays
  • Rajdhani Thali Restaurant
  • Eagle Boys Pizza
  • Charcoal Grill
  • The Waffles Hut
  • Barbeque Nation

Then we played with the code , Trishna assigned us to find the restaurants which have chinese cuisine and we all tried that ourself and found out one restaurants from above restaurants which have chinese cuisine => Deccan Harvest
After completing it we started playing with the code to find out the various other things like finding User rating, currency accepted, photo url for different restaurants. With this the event ended, with a discussion to meet next month.

Monday, 15 August 2016

Pyladies 2nd Meetup(Pune)

After a long one month, it was the day (7 Aug) for Pyladies meetup and again we were going to meet at Redhat Pune office. As it was the day I was waiting for after the first meetup, though it was sunday when we usually plan to relax or hang out but I was excited for the meetup. So in morning I went for running in Magarpatta city(Aditi Garden) as it has a nice track for running. Then after having South-Indian breakfast at UpSouth, I came back to my home as it was time to get ready for the meetup as I was running out of time but still I managed to reach on time. When I entered the room there were many people already sat, some familiar to me as have met them in first meetup, few were new to the meetup. After saying hello to the people I also took my seat, then we shifted to the cafeteria due to some maintenance work in that room.



After we all were set, Nisha started with her talk on " Basic Communication skill", as communication is very necessary in open source world or in any community. So it was a great topic chosen by her, as it was a help to all of us in knowing the better way to communicate with the people in various communities so that we are listened and answered by others. As the way in which you communicate is very much important, she discussed about various things, as how to ask questions in a smart way. Do and don't while communicating and many more things.



After this there was a video of Keynote( Talk to talk' session) by Jacob Kaplan-Moss from Pycon 2015. Jacob Kaplan-Moss known for his work on Django and the director of security at Heroku. He begin with this intro, talked about his background and what people think about him.He  stated that "People believe that I am successful because of my programming skill. But that simply isn't true: "I am, at best, an average programmer", he said (with a slide that read "Hi, I'm Jacob, and I'm a mediocre programmer."). Then he introduced ultra-marathon runner Ann Trason, who is the most accomplished competitor in the history of that sport. He talked about Trason runs and records, he included that in his talk because he also recently finished his first 50km race, so we can say he was a runner too and I too am a runner who have just started running a month back : ). So I liked this part . Then he talked about programming abilities and how people measure that. He talked about a U shaped curve on which people distribute the programming skill and most of them are on one end or the other but  for going from absolutely terrible to wonderful we have to traverse the middle ground. After this he talked about myth about the U curve that sets up a world where you can only program if you are a rock star or a ninja. This myth is preventing "most of the growth and the improvement we'd like to see". And this motivated all of us sitting there and then he said" The truth is that programming isn't a passion or a talent, it is just a bunch of skills that can be learned". Also he added 10x programmers to his talks adding the famous picture of Linus Torvalds flipping off NVIDIA under the "brilliant asshole" label in his slide. He then asked what a 10x programmer look like and put up a series of pictures of "Mark Zuckerberg". When we see someone who does not look like one of those three men, we assume they are not a real programmer, he said. Almost all of the women he knows in the industry have a story about someone assuming they aren't a programmer. He talked to multiple women attending PyCon 2015 who were asked which guy they are there with—the only reason they would come is because their partner, the man, is the programmer. "If you're a dude, has anyone ever asked you that?" And this was a great motivation for the ladies present in pyladies meetup. He also talked about Lynn Root a founder of the San Francisco chapter of PyLadies, a Python Software Foundation board member. In the of the keynode he took several questions. It was great keynode selected for this meetup. 



After this it was the time for lunch, and during lunch time we had quite interesting conversation with each other, we all  talked about Pycon 2016( Delhi) which I am also attending and Pyladies and many more things. 

After lunch it was the time to learn some python skills. So there was a session  'Hands on Python' by Chandan Kumar. He started from where we left in the last meetup. He covered several topics like functions, different python module and file handling. So we practiced all these , ending up with an assignment given by Chandan. There was a one more session on Object Oriented Programming but as it was already 5 in evening, that why we decided to have that session in the next meetup.So we end up with a short conversation that in future what else we can do for pyladies meetup so that we have more pyladies member and we all left with a plan to meet next month again : ).

Saturday, 16 July 2016

Fedora Women's Day



Gone are those days, when women have only some selected fields to work on or they restrict themselves to some fields. In this new era our boundaries are widening, we are extending our thoughts and are coming out in the world of technology.  None of the field I guess is untouched by women, it’s difficult to name a field where we can’t see a woman. So no one is unaware about women’s caliber and so are some communities which are helping women to grow in the field of technology and computing  like Fedora women, Grace Hopper etc.

Yesterday I attended the Fedora Women’s day Celebration which I came to know was there in our office and a large number of women joined that, and that shows how we all are interested in something like this. Fedora is an open source project where anyone can contribute, it has open community. We can join Fedora and start contributing it, it’s nothing like that anyone have to be a hard core programmer with all the IT skills, anyone can contribute to it whoever have interest. Amita was the organizer of the event, the event started at 3PM, we all were there for it. The started with the talk of MarĂ­a “tatica” Leandro, who mainly take care of develop art, translations, marketing stuff, promoting the use of Fedora and recruit new talent to the community. And it was 5.30 in morning for her due to different timezone, still was there for us to help us and answer our question. This shows her dedication and how active she is towards the community . She shared his experience how she started her journey as a translator and talked about diversity as she is the Diversity adviser for Fedora. Being a woman she wanted a large number of women contributor for Fedora, so she was there so early and was ready to available even more early like 1 or 2 am for us for another meetups. She gave a lot of information how women can contribute to Fedora as being a women she knows we have so much other responsibilities other than our own interest and growth, and we have to balance everything in our life. She shared a lot of information about Fedora and Women in Fedora, although we have a less percentage of Women contributor in Fedora but that’s increasing and the community itself is helping women to come out with their interest and contribute in that field. Fedora has also a project named Fedora Women designed to connect and assist women who are interested in using and contributing to Fedora.  After talk with Tatica, there was a session from Pravin Satpute, he too is an active contributor to Fedora. He gave an introduction to Fedora and how anyone can start contributing Fedora. He shares the slides for different fields in which anyone can contribute depending on their interest like:
  • Content Writer
  • Designer
  • People Person
  • OS Developer
  • Translator
  • Web Developer or Administrator
  • QA

He gave lot of information on how we can start contributing to Fedora and also can learn from them as there are meetups and other session from which we can learn things of our own interest. He answered the questions which were raised to him and it was interesting as the whole event was motivating us to do something which will be beneficial for our growth and for the community also. After this there was a talk from Anisha Narang about Fedora, women contribution and we can be active in these types of events. She shared her experience which was a help for women present there. There was another guy who had wake up early in the morning just to address us and help us with our queries Matthew Miller, he was also surprised to see a large audience. He started with his  introduction  and shared  information about Fedora.  And also we came to know he has two cute and loving daughters also whom he take care so it was a inspirations for mothers present there who want to contribute to Fedora, he also answered the questions from audience. After he ended its was 5.30 pm I guess, and we planned to end for today with a discussion for next meetups. We also had a big cake which was looking very tasty as it was Fedora Women’s Day Celebration which would be incomplete without this. So without wasting  time we cut the cake and had it. There were few other people who helped this event to be a success. First is Satya who clicked pictures for us and our cake and another Huzaifa who answered a lot of questions and shared a lot of information. So we ended this with a plan to meet every Friday so that we can be active in this and meetups every two months or every month.

Wednesday, 13 July 2016

My First Pyladies Meetup

This Sunday, I attended the Pune chapter of Pyladies, About them in their own words “Pune chapter of PyLadies, an international mentorship group focussed on helping more women become active participants and leaders in the Python open-source community.  We aim to provide a friendly support network for women and a bridge to the larger Python world. Anyone with an interest in Python is encouraged to participate!”   
This was my first Pyladies meetup so I was exicited about it. Though it was raining still I managed to reach on time. This time it was in RedHat, after reaching there Kushal told me we are starting a little late due to the weather outside, then soon we get started. All of us were gathered in a room and we all were very curious about that, as most of us were there for that meetup the first time.  Meetup started with the intoduction to Pyladies by Anwesha, organiser of Pyladies Meetup, followed by Kushal talk on Python Community. He talked about many people showing their pictures who are contributing to python community and pyladies. He shared the pictures of Pycon-2015 introducing people from different companies and supporting several communities like Pyladies, Django etc. This continued for an hour, after that there was a keynode from  previous Pycon Meetup to be played “Two beards”. That was one was the most interesting part of the Meetup liked by everyone. In that keynode the man shared his experience like a story with the music, he himself played the music which was simply whaaaoooo. He shared his first bike experience and the different turns. He related it with dimensions and much more things, which was amazing. After this it was the time for lunch which Kushal had already arranged for all of us, then we enjoyed with pizzas. After an hour we started again with Python as we all were there to learn or discuss about the aspects of Python. Then Kushal started with Python, after a brief introduction on features of Python, he make us get started with the basics concept of Python. He started with the very basic so that it would be easy for newbees to Python. For me it was a revision as I have the basic knowledge of Python and can write programmes in Python. But to bring us all on a same level it was the need to start from the basics. He was giving time in between to us to try the same thing which he was teaching us, so that we are comfortable with that and if have any doubt can clear at that time only. After the basics were covered, he gave a programme to write a function to all so that we can implement what we have learned in that meetup. And the meetup ended with the problem solved by everyone. Then in the end it was a feedback session in which we discussed several things like how was the today’s meetup, what can be done to improve it , plans for the next meetup and many more things.
In the end, all of us left with something new in our mind and with more enthusiasm for the next meetup.

Tuesday, 17 May 2016

Unit Testing -Debugging the code

Testing is very much important to ensure the quality of product in any field. In Software development it is essential to point out the defects and errors in any program. Its a good practice to test your code . So I started with Unit Testing after I have learned Python programming language. In unit testing we use a module called unittest using which we can test our code. It is a testing framework . It comes pre-installed with python from 2.1.

The standard workflow is:
 1. Firstly we define our own class derived from unittest.TestCase.
 2. Then we fill it with functions that start with ‘test_’.
 3. After that we run the tests by placing unittest.main() in your file,        usually at the bottom.


 Before writing unit testcase, we should have few things in our mind that our
 testcase should be able to:
  • Run completely by itself, without any human input. Unit testing is about automation.
  • Determine by itself whether the function it is testing has passed or failed, without a human interpreting the results.
  • Run in isolation, separate from any other test cases (even if they test the same functions).

In unit test we also have setUp() and tearDown() function which are optional.  The setUp() function is used to set up the test environment and tearDown()  is used to clean up after a test. Setup method will run prior to each test case and teardown method will run after each test case.
We use assert functions to check whether the result is correct or not. There are a lot of assert functions in unittest.
Some of them are listed below:
assertEqual()
assertTrue()
assertFalse()
assertNotEqual()
assertIs()

To run a unittest, at the bottom of the test file,we have to give this code:

 if __name__ = "__main__":
     unittest.main()

This allows us to run all of the test code just by running the file.
Running it with no options is the most terse, and running with a ‘-v’ is more
verbose, showing which tests ran.   

Monday, 25 April 2016

My First Fedora Meetup

Yesterday I attended a Fedora meetup where we discussed about how to write Test Cases in Python. This was my first meetup after I have started learning Python. When I reached the place there were around 12 people sitting with their laptops, then I also joined them. Few people were knowing each other, few were new like me. So, Kushal who was organising the meetup decided to have an quick intro so that we may know about each other. After intro I came to know some were college students, some were working and all of them were keen to contribute something and were passionate for leaning new things for which we were gathered there. Then he gave an introduction on Unittest module which was our topic of discussion for that day. After this Kushal told what we are actually going to do today and its benefits and how we can relate and impliment that in our work. Then he gave an example of unit test in which "cat" command was tested and we all tried it in our own laptops and it was a success to run that unit test. In between we have some snacks like cold drink and samosa . All of us enjoyed this refreshment. Then Kushal decided to give different Test cases to everyone rather than all working on the same problem so that it will be more beneficial as we all will learn more by this, as a new challange will be there for everyone. Although it was not easy to think a new problem for each of us but still Kushal ended up by assigning a problem  to everyone who were present there. Chandan and Praveen were helping him in this, all three of them were there to help us with our queries.

After we got the problem, we started writing unittest for the assigned query. I was assigned a problem in which I have to test can we create a loopback device and perform file system operation without losing the file. In between doubts and questions were coming from the participants which were answered by either of the three. The environment was like that we are working on a crucial project as everyone was writing their test cases and running them to get the desired output. I was also so indulged in my Unit test case  that I don't how the three hours went, I came to know its 9 when Kushal told lets finish it here, we will continue in next meetup. Then he told us to some basics things and asked us to give feedback about the meetup. Then all of us winded up and it was decided we will do the remaining part at our own place and the will push the code on github, if there will be some issue we can contact Kushal by droping a mail or on IRC.

(pics by @anweshasrk)