<?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 Preetam Rane on Medium]]></title>
        <description><![CDATA[Stories by Preetam Rane on Medium]]></description>
        <link>https://medium.com/@preetamrane?source=rss-8217a4186f87------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Wbh63KWyG3RRpd7j1dOW9Q.jpeg</url>
            <title>Stories by Preetam Rane on Medium</title>
            <link>https://medium.com/@preetamrane?source=rss-8217a4186f87------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 04:11:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@preetamrane/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[Are we under surveillance ?]]></title>
            <link>https://medium.com/@preetamrane/are-we-under-surveillance-949fb77b5bf6?source=rss-8217a4186f87------2</link>
            <guid isPermaLink="false">https://medium.com/p/949fb77b5bf6</guid>
            <category><![CDATA[protection]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[pandemic]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Preetam Rane]]></dc:creator>
            <pubDate>Thu, 21 May 2020 02:50:42 GMT</pubDate>
            <atom:updated>2020-05-21T18:05:17.609Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Are we under surveillance </strong>?</h3><p><em>Contact tracing apps will save the world, </em><strong><em>Just kidding….</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*sYwtLGatXHPYiGewBYfjig.jpeg" /><figcaption>Pandemic in World — 3D Rendering GETTY</figcaption></figure><p><strong><em>After reading the entire blog, it’s your choice whether to continue with such an app or ask for a better alternative.</em></strong></p><h4><strong>Let’s start the timeline from April 11 2020.</strong></h4><blockquote>INDIAN ARMY cautions personnel on use of Aarogya Setu app</blockquote><figure><a href="https://twitter.com/adgpi/status/1248861386664337408"><img alt="" src="https://cdn-images-1.medium.com/max/506/1*RtmAcTJtrx2hI3YhtxtU5w.png" /></a></figure><blockquote>The news was covered on various news site you can check one by clicking <a href="https://www.thehindu.com/news/national/coronavirus-army-asks-personnel-to-use-aarogya-setu-app/article31350938.ece">here</a>.</blockquote><p>The Army had advised its personnel, their families, and veterans to download the government’s healthcare mobile app Aarogya Setu to use during the Covid-19 pandemic, but cautioned that cybersecurity protocols be followed to ensure no breach in security.</p><h4>On May 5 2020, a tweet from twitter handle <a href="https://twitter.com/fs0c131y?s=20">Elliot Alderson</a> caught everybody’s attention.</h4><figure><a href="https://twitter.com/fs0c131y/status/1257689150729392135"><img alt="" src="https://cdn-images-1.medium.com/max/503/1*fKxe0XxXB7ORfxoDqBOq2w.png" /></a></figure><p><strong>Elliot Alderson </strong>raised various privacy concerns regarding the apps and we know the rest.</p><p>Seeing silent fixes to flaws like <a href="https://www.businessinsider.in/tech/apps/news/these-are-the-privacy-issues-in-aarogya-setu-indias-covid-19-tracker-app-alleged-by-french-hacker-elliot-alderson/articleshow/75592800.cms">accessing private folders</a> and unnecessary opaque attitude by the government raises few questions towards its actions, so let’s get brief answers to those questions.</p><h4><strong>Q1. Who helped develop the app, what relationship do they have with the government and the app now ?</strong></h4><p>Since Aarogya Setu was released, its creation has been unnecessarily opaque and could have disclosed more details. A <a href="https://pib.gov.in/PressReleasePage.aspx?PRID=1610301">Press Information Bureau (PIB)</a> release on April 2 described the app as a public-private partnership, It’s clear that this was not a typical government contract, with reports indicating that this partnership <a href="https://scroll.in/article/960566/interview-is-aarogya-setu-a-tool-for-covid-19-contact-tracing-or-mass-surveillance">has extended to managing the app</a>.</p><h4><strong>Q2. Why not open-source the app as soon as possible ?( The process is been delayed since April 30 </strong><a href="https://www.thequint.com/tech-and-auto/aarogya-setu-app-source-code-to-be-open-soon-niti-aayog-says-comiited-to-open-source"><strong>news source</strong></a><strong> )</strong></h4><p>Most privacy rights organizations agree that if the government makes the app’s source code publicly available to all, it will increase transparency and potentially improves security as it would be open to scrutiny from third-party experts. It not only enhances transparency but also improves security as the code is open to community audit.</p><h4>Q3. How Reliable and Effective Are the Mobile Apps Being Used to Fight COVID-19?</h4><p>Since the app is completely data-driven to be effective for the fight against COVID-19 nearly 50+% of the population must use the app seriously and provide the right amount of information, As the app is completely based on self-assessment and the majority of COVID-19 cases are asymptomatic so even after covering a large amount of population the chances of the app to fail are high. Also, the app might help to know there are COVID-19 positive persons in the vicinity but can’t pinpoint the person.</p><h4>Q5. How long will the app stay?</h4><h3>ANI on Twitter</h3><p>WATCH Worldwide this app is being preferred. It curbs false information and you also know if there is a #COVID19 positive person in your vicinity. The app will continue for next 1-2 years: Union Min Prakash Javadekar on Asaduddin Owaisi raising privacy issue on Aarogya Setu app https://t.co/d2bNJmGeEx</p><p>According to a statement by Union minister Prakash Javadekar in his interview with ANI, He stated the app will stay for the next 1–2 years till we win the war against Pandemic.</p><h4>Q6. Is the app really safe ?</h4><p>Well, the question has various viewpoints, and jumping to a direct conclusion is difficult. Since just like COVID-19 the app has many unknows.</p><p>Here are a few points that will help you out,</p><ol><li>India doesn&#39;t have a digital framework for <a href="https://privacyinternational.org/state-privacy/1002/state-privacy-india">Data privacy nor any digital protection agency</a>.</li><li>Aarogya Setu <a href="https://www.indiatoday.in/technology/features/story/how-aarogya-setu-works-and-how-it-compares-to-contact-tracing-apps-in-other-countries-1674966-2020-05-06">works on a centralised architecture</a> which has been rejected by a <a href="https://www.bbc.com/news/technology-52355028">number of countries</a> due to privacy concerns.</li><li>The <a href="https://www.thehindu.com/sci-tech/technology/coronavirus-what-are-the-concerns-around-the-aarogyasetu-app/article31434768.ece">unique digital id is static for Aarogya Setu app</a> which increase probability of identity breaches.</li><li>French ethical hacker Elliot Alderson stated by using <a href="https://www.radial.com/insights/understanding-triangulation-fraud">triangulation </a>an attacker can get with metered precision the health status of the person. you can check out <a href="https://medium.com/u/7a6251fbba9d">Elliot Alderson</a>’s detailed blog <a href="https://medium.com/@fs0c131y/aarogya-setu-the-story-of-a-failure-3a190a18e34">here</a>.</li></ol><h3>#opinion</h3><blockquote>“Privacy is one of the biggest problems in the new electronic age” — Andy Grove</blockquote><p>In the era where social media companies like Facebook, WhatsApp, Instagram, Twitter suck your private data, the only difference is on such platforms we choose to share our data.</p><p>There are countries like South Korea, New Zealand, who won the battle against controlling the spread of COVID-19 without forcing such apps can help the government to focus those measures instead of focusing on contact tracing apps.</p><p>So that been said I would like to end the blog by saying,</p><blockquote>“History is witness, blind faith leads to slavery”</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=949fb77b5bf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Workshop The Backend]]></title>
            <link>https://medium.com/@preetamrane/python-workshop-the-backend-c42e98481928?source=rss-8217a4186f87------2</link>
            <guid isPermaLink="false">https://medium.com/p/c42e98481928</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Preetam Rane]]></dc:creator>
            <pubDate>Sun, 20 Jan 2019 08:33:48 GMT</pubDate>
            <atom:updated>2019-01-20T08:33:48.101Z</atom:updated>
            <content:encoded><![CDATA[<p>Being tech-savvy people often ask me and my team for help whether it’s regarding project or some usual programming stuff and most of the time we notice is that most of the people seeking help miss out basics about the language they are working with.</p><p>Keeping this in mind <a href="https://www.instagram.com/ieeevit/">IEEE-VIT</a> always held a wide range of workshops based on trending technical advancement with some added implementation.</p><p>Keeping the trend alive it was decided to have a workshop based of basics of python along with introduction to OpenCV.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*p4tUgZB0hJp7zw74eS5uNQ.png" /></figure><p>Python being a very versatile language it was not possible for a single person to get through all of the Python stuff so I was assisted by two of my tech mates Nishant and Kunal.</p><h3><strong>Deciding the final implementation</strong></h3><p>Well it’s kind of awkward but true as said people are always interested in code and not what’s going behind it, So it was necessary to have a sleek and highly attractive code .</p><p>So before we get down to further more details let’s test your 👀,So do me a favour of finding the book from the scratch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/35/1*9Q-tNsV5WpSbv1V49ObULQ.png" /><figcaption><strong>book</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x96Iokj3m4EPqhQJ3hD6dQ.jpeg" /><figcaption><strong>Scratch</strong></figcaption></figure><p>Seems <a href="https://www.merriam-webster.com/thesaurus/evasive">Evasive</a> right So what if I say same task can be done with just 13 lines of code seems a bit surprising right.So the remedy for problem was <a href="http://scikit-image.org/docs/dev/auto_examples/features_detection/plot_template.html">template Matching</a> <br><strong>Where’s the book???</strong> <br>fork this <a href="https://github.com/ieee-vidyalankar/Python_OpenCV">Github</a> repository for answer.</p><h3>Few weeks of buffering</h3><p>Before actually implementing the stuff it was necessary for people to get through basics about python and after reading this statement most of the people will be like,It’s gonna be easy but teaching same stuff will end you saying,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*6Cx07kxOnnQAK_BNdGUMLg.jpeg" /></figure><p>Funny right ?? not really , So it was decide to have the first half session for basics of python to be taken by Nishant and Kunal.</p><p>Well every OpenCV workshop encounters a common issue and it always has to be <strong><em>installing OpenCV </em>😩 </strong>Well to tackle this issue we had 3 backup plans as it was really necessary to avoid the installation issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*-8oK1woMcF5BAhLBqcRYTw.jpeg" /></figure><h3>How was the Workshop Day??</h3><p>Well it was really nice to see a huge amount of crowd (OpenCV installation still running in head) and being my first teaching experience I am not gonna lie <strong>it really takes all your mental resources</strong> to fix bugs which are not created by you and more likely to avoid this it’s better to try your code on variety of pc to insure it won’t end-up throwing an error. Secondly, the miracle did occur and OpenCV was successfully installed on all the laptops.</p><p>Well organising an event in college is indeed a <a href="https://dictionary.cambridge.org/dictionary/english/daunting">daunting</a> task, Especially when you deal with people who don’t have an idea what they are dealing with or act highly uninterested,Also no matter how well you plan there are always gonna be some flaws.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*gntfo6ojOLnLZRXr1ipQWw.jpeg" /></figure><p>Well over all it was a great experience teaching to a wide range of audience across all the branches, going through all the protocol of taking a event in college from proposal till organising the event ,Summing up the no sleep before event and few cups of coffee it well said,</p><blockquote>“If you want to learn a thing, read that. If you want to know a thing, write that; if you want to master a thing, teach that.”</blockquote><p>And surely teaching the stuff won’t just hit you with great amount of doubts but will help you to overcome flaws in yourself . Finally Thanks to all the respective teams for their support and Good luck for all the future events.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c42e98481928" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Auto-mail with Python ]]></title>
            <link>https://medium.com/@preetamrane/lets-auto-mail-with-python-3b8174e21632?source=rss-8217a4186f87------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b8174e21632</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Preetam Rane]]></dc:creator>
            <pubDate>Sat, 03 Nov 2018 20:26:26 GMT</pubDate>
            <atom:updated>2018-11-03T20:34:59.035Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Really needed Why not?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXKtVfCiNdjwpjy3uvsUTg.jpeg" /></figure><p>Sending emails to great amount of people is really a time consuming task specifically when the content is user specific.</p><p>So it turns out it’s highly necessary to have a program to handle this boring Stuff so without any further delay let’s code</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F11M1k4fIwVqPF6%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fjim-carrey-writers-11M1k4fIwVqPF6&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F11M1k4fIwVqPF6%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="261" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba10acafca4d979a15bca8c2f81db14a/href">https://medium.com/media/ba10acafca4d979a15bca8c2f81db14a/href</a></iframe><h4><strong>STEP 1: Getting the Necessary Components</strong></h4><p>When it come to mailing <a href="https://docs.python.org/2/library/smtplib.html"><strong>smtplib</strong></a>is one of the best python module available for sending mails, The <a href="https://docs.python.org/2/library/email.html#module-email"><strong>email</strong></a> package is a library for managing email messages, including MIME and other <a href="https://tools.ietf.org/html/rfc2822.html"><strong>RFC 2822</strong></a>-based message documents. <br>When it comes to making a file for all the user entries .csv (Comma Separated values) works really well adding need for next python module named <a href="https://docs.python.org/3/library/csv.html?highlight=csv#module-csv"><strong>csv</strong></a> .All modules are already part of standard library so no need to worry about the installation</p><p>Just in case if you want to add certain processed images <a href="https://pillow.readthedocs.io/en/5.3.x/"><strong>PIL</strong></a>is probably the best option and can be added running following command in your terminal</p><pre>pip install pillow</pre><h4><strong>STEP 2: Importing the modules</strong></h4><p>Open your favourite text editor and type the first few magical lines</p><pre>import csv <br>import smtplib<br>from email.mime.multipart import MIMEMultipart<br>from email.mime.text import MIMEText<br>from email.mime.image import MIMEImage</pre><h4>STEP 3: Defining the sending_mail Function</h4><p>So the function will basically involve stuff like adding email sender ,receiver ,names ,password.</p><p>So let’s get started by defining sending_mail,</p><pre>def sending_mail(email_sender, email_receiver, names, password):   <br>    subject=&#39;E-Mail Example&#39;<br>    msg=MIMEMultipart()<br>    msg[&#39;From&#39;]= email_sender<br>    msg[&#39;to&#39;]= email_receiver<br>    msg[&#39;subject&#39;]= subject<br>    body =&quot;&quot;&quot;Hello %s <br>             Please download the attached file&quot;&quot;&quot;%names<br>    msg.attach(MIMEText(body,&#39;plain&#39;))</pre><p>the above set of code deals with adding the Subject and body to the email along with the message in the body.Now let’s attach an image the code for the same is given below,</p><pre>    img_data = open(&#39;{}.png&#39;.format(names), &#39;rb&#39;).read()<br>    img = MIMEImage(img_data, &#39;png&#39;)<br>    img.add_header(&#39;Content-Id&#39;, &#39;&lt;myimage&gt;&#39;)<br>    img.add_header(&quot;Content-Disposition&quot;,&quot;inline&quot;,filename=&quot;{}.png&quot;.format(names))<br>    msg.attach(img)</pre><p>As most of the task is done above here comes the most important task that is to add the smtp server and credentials so lets type the final part of the sending_mail function.</p><pre>    text = msg.as_string()<br>    session = smtplib.SMTP(&#39;smtp.gmail.com&#39;, 587)#for gmail       <br>    session.starttls()         <br>    session.login(email_sender, password)        <br>    session.sendmail(email_sender, email_receiver, text)         <br>    session.quit()</pre><blockquote><strong>NOTE: Don’t modify the the above set of code</strong></blockquote><h4>STEP 4: Defining the process function</h4><p>Basically this function will handle all the processing of the image and csv file to extract the name and the emails present in it</p><pre>def process(file,img,textfont):<br>    with open(file,&#39;r&#39;) as csv_file:<br>        x=csv.reader(csv_file)<br>        x=csv.DictReader(csv_file)</pre><p>the above set of code deals with reading the csv file now we require a loop to extract the names and email along with make user specific image with their name.</p><pre>for row in x:<br>            image1=Image.open(img).convert(&#39;RGBA&#39;)<br>            names=row[&#39;NAME&#39;]<br>            email_receiver=row[&#39;E-mail&#39;]<br>            txt = Image.new(&#39;RGBA&#39;, image1.size, (255,255,255,0))<br>            font_type = ImageFont.truetype(textfont,45)<br>            d=ImageDraw.Draw(txt)<br>            x,y = image1.size<br>            a,b = font_type.getsize(names)<br>            d.text(xy=(440-a/2,240),text=names,font=font_type,fill=(33,140,141,255))<br>            out = Image.alpha_composite(image1, txt)<br>            out.save(&quot;{}.png&quot;.format(names))<br>            out.show()#comment if output is not required</pre><blockquote><strong>Note: </strong>Make sure the row names are as per the CSV file <br>All the numeric values can be changes as per requirement</blockquote><p>Finally it’s time to call sending_mail function <strong><em>within the for loop</em></strong> add your email id in place of xyz and replace the ****** with your password.</p><pre>sending_mail(&#39;xyz<a href="http://twitter.com/gmail">@gmail</a>.com&#39;,email_receiver,names,&#39;********&#39;)</pre><p>Here we are done with the process function<br>Lastly call the process function and enjoy your work time.</p><pre>process(&#39;.csv&#39;,&#39;.png&#39;,&#39;.otf&#39;)#files as per format</pre><blockquote><strong>Note: </strong>Add the files as per the given format</blockquote><p><strong>DONE</strong>! 🙂</p><p>All though there are few more things that can be add like embedding an entire webpage in to email but i guess its enough of coding for now.</p><p>Liked it? Leave some Claps,Tried it ? Leave some comments, see you guys in the next blog.<br>Till that stay connect with me on <a href="https://www.instagram.com/mr_codeaholic/">instagram</a>,<a href="https://www.linkedin.com/in/preetam-rane-4b0524165/">LinkedIn</a> or fork me on <a href="https://github.com/Preetam2114">GitHub</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b8174e21632" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>