<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Zain Ahmad on Medium]]></title>
        <description><![CDATA[Stories by Zain Ahmad on Medium]]></description>
        <link>https://medium.com/@ahmadzain448?source=rss-b8746e3741cf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aabhDsJUUHkK4JkEkhefbw.jpeg</url>
            <title>Stories by Zain Ahmad on Medium</title>
            <link>https://medium.com/@ahmadzain448?source=rss-b8746e3741cf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:28:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmadzain448/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hathras Case: How we are failing again and again]]></title>
            <link>https://medium.com/awaz-e-aam/hathras-case-how-we-are-failing-again-and-again-8f591bfa4689?source=rss-b8746e3741cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f591bfa4689</guid>
            <category><![CDATA[hathras-case]]></category>
            <category><![CDATA[indian-politics]]></category>
            <category><![CDATA[social-and-politics]]></category>
            <category><![CDATA[crimes-against-women]]></category>
            <dc:creator><![CDATA[Zain Ahmad]]></dc:creator>
            <pubDate>Wed, 07 Oct 2020 12:41:17 GMT</pubDate>
            <atom:updated>2020-10-07T14:55:10.142Z</atom:updated>
            <content:encoded><![CDATA[<p>we all already have heard about the Hathras rape case, How a 19-year-old girl was assaulted on the day of 14 September and died seven days later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uwkn1lSDkDwfrdGw0JD2-g.jpeg" /></figure><p>if there is any way you don’t know about it yet. seriously you need to change your source of news. I won’t be covering the whole incident in this article as there are media houses who have already published reports describing the whole incident. I will attach the links of those at the end of the article so you can go through them before reading this article.</p><p>In this post, we will be looking at the causes that lead to these types of incidents and how are judicial keeps on failing, and How the governments are responsible in other words what is the role of politics as there according to recent NCRB data 2019 recorded 87 rapes per day so there are things that we are doing very wrong. we will look at all of them one by one</p><h3>The seed of discrimination</h3><p>This is where it all begins where it all starts to build. In most of the homes, boys are taught to fight back, girls are taught to adjust. boys are to control the whole family and girls are to control the kitchen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*4MjG_ZxswjTjMspYDoa4Ww.jpeg" /></figure><p>This is the difference, the idea that plants the seed of superiority in the minds of these boys. Although it has improved to some extent nowadays still the difference lies. people have developed their mindset enough to want an educated daughter in law but not enough to let her work. until and unless this difference is removed completely;y this seed will always be there and this is the seed that grows as time passes and once it&#39;s fully developed it turns them into monsters and thus is the root cause of these incidents.</p><p>once we start teaching our boys that a girl can also be a pilot or a soldier and not just a teacher or a banker. once we start teaching our boys there is no shame in being led by a woman. This difference will be nullified and the seed will never be sowed</p><h3>The Sapling of no education</h3><p>More precisely no sex education. The seed which was sowed in the childhood grows into a sapling because there is no guidance available when it comes to intimate matters. In our country adolescents are left to handle themselves on their own. They have to figure out the changes happening to them. In schools, Teachers try to skip the lesson on the human reproduction system, forget about counseling the students on sex.</p><p>Parents are ashamed to explain these things to their kids and because of that the kid looks to other sources to understand them and they let him do it expecting he would learn the right thing, some of them find the right one but others are exposed to porn and so many other atrocities on the internet which fuels that seed to even greater extent.</p><p>if you don’t believe me. if you have a younger sibling in your family tell him to ask dad about the condom when its add pops up while watching TV.</p><p>The kids never get to know how to handle their hormones, They never get to know how to treat a woman. and thus things get bad to really bad.</p><p>Adding sex education in the school curriculum and running awareness programs to counsel the parents on teaching their kids about these matters will cut the fuel to this seed and the sapling will never form.</p><h3>The Tree of fearlessness</h3><p>As this sapling grows it is watered by the handling of these cases by the administration. what I want to say is our judicial system is played by politics when it comes to these incidents. The conviction rate in rape cases is pretty low. There is a whole politics behind this conviction. The government of the ruling party analyses what will benefit it convicting the suspect or letting him go free where the vote bank lies. If the vote bank lies with the victim the suspects are convicted otherwise you know what happens the case goes on forever and justice is never served and sometimes even suspects are freed...</p><p>and not just this there are also other strategies that are implied by political parties with these matters like caste polarization, religious polarization, etc.. if we check the reality most of the suspects have some links to some political party that’s what makes them fearless that’s why they believe they will go untouched. that’s the reason why governments should be criticized and held responsible. They might ask not to politicize the issue but it&#39;s them who politicize it first</p><p>this political power takes all the fear away… and why is this?</p><p>well you already know the answer there were so many suspects who were protected because they belonged to the party. they know it they have seen it…present is the worst example… in the state of UP they are trying to cover it up by applying section 144 to the area, banning all protests… well complete misuse of power is going on.. most of the parties have done the same but now is worst, worst than ever and it will continue to descend if we don’t do anything about it.</p><p>so this political game turns the sapling into a fearless tree and never in a good sense I repeat never in a good sense... There are some things you should always be scared to do… well I prefer you should hate it to even think about them but in case if you are one of those saplings then you should be scared about doing it.</p><p>the solution to this is to make our judicial system more independent remove the influence of the government as more as we could… and I am not just talking about the courts, police also comes under the judicial system. I believe the story would be pretty different today if the police had acted independently</p><h3>The conclusion</h3><p>we can’t know that a person is a rapist until he has done something like that and most of them don’t even show that type of behavior normally… They hide their demons…</p><p>so we need to cure this mentality, this mindset and I have already shown you above how this mindset grows and for each stage someone is responsible…</p><ul><li><strong>for the seed</strong> — parents need to guide their children the elders need to teach younger the equality between genders and to respect each other</li><li><strong>for the sapling</strong> — people involved in the education of that sapling are the most responsible… whether its the elder brother, sister or parents along with the teacher they need to guide the kids especially the adolescents</li><li><strong>for the tree</strong> — governments and institutions are the most responsible. They need to set an example that this type of behavior will never be tolerated and forgiven in any way… to bring fear to the people who are thinking about it.</li></ul><p>Apart from these. In incidents like these if the institutions are not performing its duty if justice is not brought to the victim public participation becomes very important especially in today&#39;s time when there is so lack of real journalism… because the people can put pressure on the government which forces them to give justice to the victim and take an action.. remember the Unnao case in which than BJP MLA Kuldeep Singh Sengar was brought to justice it was all because of the public activism.</p><p>so as humans, people also hold responsibility… as humans!! you are free to close your eyes if you are not one</p><p>links of reports on the incident</p><p><a href="https://www.ndtv.com/india-news/up-hathras-rape-victim-cremated-by-cops-family-begged-to-pay-last-respects-2303004">In UP Gang-Rape Tragedy, 2.30 am Cremation By Cops, Family Kept Out</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLseFzqEqJFc%3Fstart%3D82%26feature%3Doembed%26start%3D82&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLseFzqEqJFc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLseFzqEqJFc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/093ec728c67e245ffb4a985d25266f90/href">https://medium.com/media/093ec728c67e245ffb4a985d25266f90/href</a></iframe><p><a href="https://www.thelallantop.com/oddnaari/hathras-gangrape-victim-dies-at-delhi-safdarjung-hospital-while-treatment/?ref=taboola">हाथरस: कथित गैंगरेप के बाद लड़की को इतना पीटा कि रीढ़ टूट गई, 15 दिन तड़पने के बाद मौत</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f591bfa4689" width="1" height="1" alt=""><hr><p><a href="https://medium.com/awaz-e-aam/hathras-case-how-we-are-failing-again-and-again-8f591bfa4689">Hathras Case: How we are failing again and again</a> was originally published in <a href="https://medium.com/awaz-e-aam">Awaz-E-Aam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the misled farmers of India]]></title>
            <link>https://medium.com/awaz-e-aam/understanding-the-misled-farmers-of-india-c58325f51dd5?source=rss-b8746e3741cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/c58325f51dd5</guid>
            <category><![CDATA[farmers-protest]]></category>
            <category><![CDATA[farm-bills-india]]></category>
            <category><![CDATA[agriculture-in-india]]></category>
            <category><![CDATA[save-farmers]]></category>
            <dc:creator><![CDATA[Zain Ahmad]]></dc:creator>
            <pubDate>Thu, 24 Sep 2020 14:00:00 GMT</pubDate>
            <atom:updated>2020-09-24T14:00:00.787Z</atom:updated>
            <content:encoded><![CDATA[<p>Farmers are an integral part of India with more than 60% of the population relying on them. These hard-working people are the only ones holding our economy during such bad times as agriculture remains the only sector which has shown some positive growth, all others are negative…</p><p>But during the last few days, they are on the roads protesting. there is a pretty high possibility that you might be unaware of these protests and if you know.. you might be thinking why.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*ITPq73-sM9CeIgiAHXedwg.jpeg" /><figcaption>A glimpse of the protest</figcaption></figure><p>Well during the last week the GOI passed three bills which were related to agriculture these are</p><ol><li><strong>The Farmers’ Produce Trade and Commerce (Promotion and Facilitation) Bill, 2020</strong></li><li><strong>The Farmers (Empowerment and Protection) Agreement of Price Assurance and Farm Services Bill, 2020</strong></li><li><strong>The Essential Commodities (Amendment) Bill, 2020</strong></li></ol><p>The protests were carried out in large numbers in Haryana, Punjab, western UP and there are farmers from other states joining too. In Haryana there is news of these protests being oppressed brutally by police, farmers are pelted with lathis... The BJP lead government at the center says that farmers are being misled by the opposition.</p><p>The reason for the protest is these bills to understand why these bills are being opposed we will look at them one by one</p><blockquote><strong>The Farmers’ Produce Trade and Commerce (Promotion and Facilitation) Bill, 2020</strong></blockquote><blockquote><em>The jumla of 1 nation 1 market</em></blockquote><p>It aims at opening up agricultural sales and marketing outside the notified Agricultural Produce Market Committee or APMC mandis for farmers. It removes barriers to inter-State trade and provides a framework for electronic trading of agricultural produce.</p><p>Now the reason why this is problematic is this. APMC acts as a regulatory committee but this law allows marketing and sales to operate outside APMC thus without regularisation and there will be no MSP(minimum support price) in that case. and APMC will lose its importance and will suffer from low buyers. So when they say mandi Bachao they mean APMC mandi Bachao</p><p>Also with the rising number of Farmer’s suicide &amp; in light of Pandemic, govt needs to focus more on providing each &amp; every farmer with MSP. In case they are adamant to open it, they need to fix the minimum market price; so that farmers can get enough to support their livelihood.</p><blockquote><strong>Farmers (Empowerment and Protection) Agreement of Price Assurance and Farm Services Bill, 2020</strong></blockquote><blockquote><em>The corporatization of agriculture</em></blockquote><p>This Bill relates to contract farming, providing a framework on trade agreements for the sale and purchase of farm produce.</p><p>There is apprehension that the free hand given to private corporate houses could lead to farmer exploitation.</p><p>Imagine reading the lengthy contracts prepared by these companies.. would you expect a farmer to read and understand all of it… would you expect they will never contain hideous clauses leading to exploitation.. and can you assure a farmer will ever be able to win a legal battle with these companies.</p><blockquote><strong>Essential Commodities (Amendment) Ordinance</strong></blockquote><blockquote><em>The food isn’t essential anymore</em></blockquote><p>It says stock limits can only be imposed if retail prices surge 50% above the average in the case of non-perishables and 100% in the case of perishables.</p><p>Also, this bill excludes cereals, pulses, oilseeds, edible oils, onion, and potatoes from the list of essential commodities. The amendment will deregulate the production, storage, movement, and distribution of these food commodities.</p><p>I guess you didn’t like that...</p><p>Apart from this… Agriculture &amp; Market both are State Subject. Therefore, the law on these subjects can only be made by the state themselves. Any such initiatives by the Center in lieu will simply be the violation of the legislative system of India.</p><p>You won’t be seeing this issue on TV quite often because most of the mainstream media channels aka godi media will never show it to you because it will raise questions against the government...</p><p>now you can decide who is being misled the farmers or you?</p><p>I request you.. these farmers are all alone in their battle.. and they need us right now.. they need us to stand by them...</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c58325f51dd5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/awaz-e-aam/understanding-the-misled-farmers-of-india-c58325f51dd5">Understanding the misled farmers of India</a> was originally published in <a href="https://medium.com/awaz-e-aam">Awaz-E-Aam</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[plotting multiple figures with live data using Dash and Plotly]]></title>
            <link>https://medium.com/analytics-vidhya/plotting-multiple-figures-with-live-data-using-dash-and-plotly-4f5277870cd7?source=rss-b8746e3741cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f5277870cd7</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[livedata]]></category>
            <category><![CDATA[plotly]]></category>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[dash]]></category>
            <dc:creator><![CDATA[Zain Ahmad]]></dc:creator>
            <pubDate>Sat, 11 Jul 2020 15:21:24 GMT</pubDate>
            <atom:updated>2020-07-18T16:27:28.447Z</atom:updated>
            <content:encoded><![CDATA[<h3>Plotting multiple figures with live data using Dash and Plotly</h3><p>whenever it comes to visualizations for data plotly comes out as a standout package to choose among multiple options especially when it comes to interactivity also plotly comes with Dash which is really a handy framework for creating powerful Dashboards. when there are times when you have live data and that too with multiple figures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zvsfLFDMIltbaNPq" /><figcaption>Photo by <a href="https://unsplash.com/@srd844?utm_source=medium&amp;utm_medium=referral">Stephen Dawson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>And well its sometimes easy to set an interval for each figure and make Dash update the figure in that interval but consider if the data you are using is shared between all the figures. so you have to process the data in each callback, yep!.. you have to do the same computation multiple times and you can not update the data outside the callback because than it won’t be updated also you can’t use global variables because it will break your app especially when you are having user inputs.</p><p>now the one way is to create a hidden div and process and store the data in that and then use it as an input for your callbacks you can find this example in<a href="https://dash.plotly.com/sharing-data-between-callbacks"> here</a></p><p>But what if this is the case</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*y4OTl4us9VQ3K9LFGJKpLA.png" /></figure><p>that is for each figure you have to process the data from the main live data. In this case, you have to process read the data from JSON string in each callback which is again computationally expensive and you might get bugs.</p><p>thus a better way to do is to use multiple outputs</p><p>I will show you using the example of the Live dashboard for COVID 19 that I recently created you can find the source code <a href="https://github.com/imZain448/Covid_19_Dashboard">here</a> and you can also check out the <a href="https://covid19livetracking.herokuapp.com/">app</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*H5L2Th6BPbMlhbjEfLGF5A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rbu3FMxJvcpPsy0J8yVGTA.jpeg" /></figure><p>so let&#39;s start. now since this post mainly focuses on handling live data in Dash I won’t indulge in how these plots are created. so first step after initializing the app.py file. is creating the layout for your app</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/53f1db0796348316bd3ae4e59d7de0a9/href">https://medium.com/media/53f1db0796348316bd3ae4e59d7de0a9/href</a></iframe><p>now you can see that we haven’t specified the figure attribute for <strong><em>dcc.Graph </em></strong>this is because we will be feeding it the figure using the callbacks.</p><blockquote>remember the id you gave to these figures because it will be used in the outputs for callbacks</blockquote><p>so now we will write our call back</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/27b50030425ac95f6efa3a390e23c120/href">https://medium.com/media/27b50030425ac95f6efa3a390e23c120/href</a></iframe><p>so you can see we have used fig_1 and fig_2 ids to specify the output of the callback and the function processes all the data in a single callback and creates all the figure thus instead of using different callbacks to update different figures we just used a single callback to do all the computation this reduces the computation cost. also, look at the callbacks input which is an interval component. This component controls how frequently the callback is called for eg you can see in the layout the interval attribute of <em>dcc.Interval </em>is set to 360*1000 this means it updates every 360 seconds i.e 6 minutes</p><p>but in cases, if you want to update figures at different intervals than you have to use multiple callbacks but in that case, you just have to add the hidden divs id to the main callback output which processes data. remember to convert the data into JSON format to store it in the form of a string</p><blockquote>the code above is a dummy code just made for the sake of explanation so I would advise not to copy-paste it. but you can go to the <a href="https://github.com/imZain448/Covid_19_Dashboard/blob/master/app.py">repo</a> for the whole source code</blockquote><p>So that&#39;s it, now you know how to handle live data in an efficient way for your app</p><p>And at last some articles I would recommend visiting</p><ul><li><a href="https://medium.com/@lowweihong/simple-steps-to-build-a-live-stream-dashboard-using-python-dash-23562dea9d3f">Simple steps to build a LIVE STREAM dashboard using Python Dash</a></li><li><a href="https://towardsdatascience.com/building-a-real-time-dashboard-using-python-plotly-library-and-web-service-145f50d204f0">Building A Real-time Dashboard Using Python Plotly Library And Web Service</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f5277870cd7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/plotting-multiple-figures-with-live-data-using-dash-and-plotly-4f5277870cd7">plotting multiple figures with live data using Dash and Plotly</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>