<?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 Saijyoti Tripathy on Medium]]></title>
        <description><![CDATA[Stories by Saijyoti Tripathy on Medium]]></description>
        <link>https://medium.com/@SaijyotiTripathy?source=rss-72d95901db4c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*F2Sbfr8r-Zbr5yFRqz040w.jpeg</url>
            <title>Stories by Saijyoti Tripathy on Medium</title>
            <link>https://medium.com/@SaijyotiTripathy?source=rss-72d95901db4c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:44:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SaijyotiTripathy/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[Python PostgreSQL with psycopg2 tutorial]]></title>
            <link>https://medium.com/@SaijyotiTripathy/python-postgresql-with-psycopg2-tutorial-ee3c31d80e08?source=rss-72d95901db4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee3c31d80e08</guid>
            <category><![CDATA[psycopg2]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[pgadmin]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Saijyoti Tripathy]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 10:51:14 GMT</pubDate>
            <atom:updated>2025-01-31T10:51:14.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*OCBCT179Whs8Qa-0yRc1HA.png" /><figcaption>psycopg2 logo</figcaption></figure><p>I was looking to integrate PostgreSQL into my application using Python, as I mostly code in Python. During my search, I came across psycopg2, a popular library for connecting PostgreSQL with Python. As I’m currently learning psycopg2, I decided to write this article for myself and anyone else who wants simpler documentation. <strong>This article will focus on how to use psycopg2 rather than on SQL itself.</strong> I’ll provide code snippets along with output screenshots from pgAdmin4 to make things clearer and easier to understand.</p><h4>1. CONNECT TO DATABASE</h4><pre>import psycopg2<br>try:<br>    conn = psycopg2.connect(<br>        host=HOST,<br>        port=PORT,<br>        user=USER,<br>        password=PASSWORD<br>    )<br>    print(&quot;Connected&quot;)<br>except:<br>    print(&quot;Unable to connect&quot;)<br><br>conn.close()</pre><ul><li><em>psycopg2.connect()</em>: This function is used to establish a connection to the database. We pass parameters such as the host, port, username, and password.</li><li><em>host=HOST</em>: The address of the PostgreSQL server (can be localhost or an IP address).</li><li><em>port=PORT</em>: The port where the PostgreSQL server is running (usually 5432 by default).</li><li><em>user=USER</em>: The username used to connect to the database.</li><li><em>password=PASSWORD</em>: The password for the given username.</li></ul><p>If everything is correct, the psycopg2.connect() function opens a connection to the default database(usually “postgres” in PostgreSQL), allowing us to send queries and commands.</p><p>If we want to connect to an existing database we can add database name inside psycopg2.connect()<em> </em>like this -</p><pre><br>conn = psycopg2.connect(<br>    database= &quot;test&quot;,<br>    host=HOST,<br>    port=PORT,<br>    user=USER,<br>    password=PASSWORD<br>)</pre><h4>2. CREATE A NEW DATABASE</h4><pre>import psycopg2<br>conn = psycopg2.connect(<br>        host=HOST,<br>        port=PORT,<br>        user=USER,<br>        password=PASSWORD<br>    )<br>conn.autocommit=True<br>cur = conn.cursor()<br><br>sql = &#39;&#39;&#39;CREATE database mydb&#39;&#39;&#39;<br>cur.execute(sql)<br>print(&quot;Database created successfully........&quot;)<br><br>cur.close()<br>conn.close()</pre><ul><li><em>conn.autocommit=True</em>: By default, psycopg2 works in manual commit mode. This means any changes we make (like inserting or updating data) won’t be saved until we explicitly use commit() to save them. However, some commands, like CREATE DATABASE or DROP DATABASE, can’t run inside a transaction, so we need to turn on autocommit mode.</li><li><em>conn.cursor()</em>: This is like getting a pen to write SQL commands. We need it to interact with the database.</li><li><em>sql = “CREATE database mydb”</em>: The SQL command to create a database. All the sql commands go into <em>cur.execute().</em></li><li><em>cur.close()</em>: Once we’re done writing, we close the cursor.</li><li><em>conn.close()</em>: Finally, we close the connection to the database, like locking up after finishing our work.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*mSSwP0BIIkKmtkJU5KntSw.png" /><figcaption>pgAdmin4</figcaption></figure><p>We can see a new database with the name “mydb” is created.</p><h4>3. CREATE A TABLE IN DATABASE</h4><pre>import psycopg2<br>conn = psycopg2.connect(<br>        database= &quot;mydb&quot;,<br>        host=HOST,<br>        port=PORT,<br>        user=USER,<br>        password=PASSWORD<br>    )<br>print(&quot;Opened database successfully&quot;)<br>cur = conn.cursor()<br><br>sql= &#39;&#39;&#39;CREATE TABLE COMPANY<br>        (ID INT PRIMARY KEY     NOT NULL,<br>        NAME           TEXT    NOT NULL,<br>        AGE            INT     NOT NULL,<br>        ADDRESS        CHAR(50),<br>        SALARY         REAL)<br>        &#39;&#39;&#39;<br>cur.execute(sql)<br>print(&quot;Table created successfully&quot;)<br><br>cur.close()<br>conn.commit()<br>conn.close()</pre><p>Here we are opening the previously created database and creating a table inside that.</p><ul><li><em>conn.commit()</em>: is called to makes sure the changes (creating the table) are saved in the database.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*Fq0lR70gkk5yf9_h_qsGHQ.png" /><figcaption>pgAdmin4</figcaption></figure><p>Here an empty table is created with the name company.</p><h4>4. INSERTING DATA INTO TABLE</h4><pre>import psycopg2<br>conn = psycopg2.connect(<br>        database= &quot;mydb&quot;,<br>        host=HOST,<br>        port=PORT,<br>        user=USER,<br>        password=PASSWORD<br>    )<br>cur = conn.cursor()<br><br>print(&quot;Inserting data -- method 1&quot;)<br>sql_s1= &#39;&#39;&#39;INSERT INTO COMPANY (ID, NAME, AGE, SALARY, ADDRESS) VALUES (1, &#39;A&#39;, 20, 20000, &#39;xyz&#39;)&#39;&#39;&#39;;<br>sql_s2= &#39;&#39;&#39;INSERT INTO COMPANY (ID, NAME, AGE, SALARY, ADDRESS) VALUES (2, &#39;B&#39;, 21, 30000, &#39;xyz&#39;)&#39;&#39;&#39;;<br>sql_s3= &#39;&#39;&#39;INSERT INTO COMPANY (ID, NAME, AGE, SALARY, ADDRESS) VALUES (3, &#39;C&#39;, 19, 25000, &#39;xyz&#39;)&#39;&#39;&#39;;<br>cur.execute(sql_s1)<br>cur.execute(sql_s2)<br>cur.execute(sql_s3)<br>print(&quot;Data inserted successfully&quot;)<br><br>print(&quot;Inserting data -- method 2&quot;)<br>sql= &#39;&#39;&#39;INSERT INTO COMPANY (ID, NAME, AGE, SALARY, ADDRESS) VALUES (%s, %s, %s, %s, %s)&#39;&#39;&#39;<br>company_list= [(4, &#39;D&#39;, 27, 50000, &#39;abc&#39;), (5, &#39;E&#39;, 24, 30000, &#39;xyz&#39;), (6, &#39;F&#39;, 19, 25000, &#39;dag&#39;)]<br>for tuple in company_list:<br>    cur.execute(sql,tuple)<br>    print(&quot;Data inserted successfully&quot;)<br><br>print(&quot;Inserting data -- method 3&quot;)<br>sql= &#39;&#39;&#39;INSERT INTO COMPANY (ID, NAME, AGE, SALARY, ADDRESS) VALUES (%s, %s, %s, %s, %s)&#39;&#39;&#39;<br>company_list= [(7, &#39;G&#39;, 26, 55000, &#39;abc&#39;), (8, &#39;H&#39;, 25, 37000, &#39;dgv&#39;), (9, &#39;I&#39;, 34, 75000, &#39;faa&#39;)]<br>cur.executemany(sql,company_list)<br>print(&quot;Data inserted successfully&quot;)<br><br>conn.commit()<br>cur.close()<br>conn.close()</pre><p>We have different methods of inserting data into the table COMPANY:</p><ul><li><strong>Inserting data one by one</strong></li></ul><p><em>cur.execute(sql)</em>: We manually insert each row of data using individual INSERT commands.</p><ul><li><strong>Using a loop</strong></li></ul><p><em>cur.execute(sql, tuple)</em>: Here, we insert multiple rows using a loop and placeholders (%s) for the values. Each tuple in the company_list is inserted into the table.</p><ul><li><strong>Using executemany() for batch insert</strong></li></ul><p><em>cur.executemany(sql, company_list)</em>: This method inserts all the rows in company_list at once, improving efficiency. It’s the most efficient way to insert multiple records at once!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*H2Dlevuzjsc1ridtciyELw.png" /><figcaption>pgAdmin4</figcaption></figure><p>We can see the data inserted by running the SQL select query in pgAdmin4.</p><h4>5. SELECTING DATA FROM TABLE</h4><pre>import psycopg2<br>conn = psycopg2.connect(<br>        database= &quot;mydb&quot;,<br>        host=HOST,<br>        port=PORT,<br>        user=USER,<br>        password=PASSWORD<br>    )<br>cur = conn.cursor()<br><br>print(&quot;Printing all values ---&quot;)<br>sql= &#39;&#39;&#39;SELECT id,name,age,salary,address from COMPANY&#39;&#39;&#39;<br>cur.execute(sql)<br>rows= cur.fetchall()<br>for i in rows:<br>    print(f&quot;ID : {i[0]} Name : {i[1]} Age : {i[2]} Salary : {i[3]} Address : {i[4]}&quot;)<br><br>print(&quot;Printing one value ---&quot;)<br>sql= &#39;&#39;&#39;SELECT id,name,age,salary,address from COMPANY&#39;&#39;&#39;<br>cur.execute(sql)<br>row= cur.fetchone()<br>print(f&quot;ID : {row[0]} Name : {row[1]} Age : {row[2]} Salary : {row[3]} Address : {row[4]}&quot;)<br><br>print(&quot;Printing some value ---&quot;)<br>sql= &#39;&#39;&#39;SELECT id,name,age,salary,address from COMPANY&#39;&#39;&#39;<br>cur.execute(sql)<br>rows= cur.fetchmany(size=4)<br>for row in rows:<br>    print(f&quot;ID: {row[0]} Name: {row[1]} Age: {row[2]} Salary: {row[3]} Address: {row[4]}&quot;)<br><br>conn.commit()<br>cur.close()<br>conn.close()</pre><p>Like different ways to insert data into table, there are also different ways to fetch and print data from the table:</p><ul><li>Printing all values</li></ul><p><em>cur.fetchall()</em>: This fetches all rows from the query result at once.</p><ul><li>Printing one value</li></ul><p><em>cur.fetchone()</em>: This fetches just one row at a time from the result.</p><ul><li>Printing some values</li></ul><p><em>cur.fetchmany(size=4)</em>: This fetches a specific number of rows (in this case, 4) from the query result.</p><h4>6. UPDATING DATA IN TABLE</h4><pre>import psycopg2<br>conn = psycopg2.connect(<br>        database= &quot;mydb&quot;,<br>        host=HOST,<br>        port=PORT,<br>        user=USER,<br>        password=PASSWORD<br>    )<br>cur = conn.cursor()<br><br>sql= &#39;&#39;&#39;UPDATE COMPANY set salary = 40000 WHERE age=19 &#39;&#39;&#39;<br>cur.execute(sql)<br>print(&quot;Data updated successfully&quot;)<br>print(&quot;Total rows affected - &quot;+str(cur.rowcount))<br><br>sql= &#39;&#39;&#39;UPDATE COMPANY set salary = 39000 WHERE age IN (%s, %s, %s) &#39;&#39;&#39;<br>cur.execute(sql, (21,24,26))<br>print(&quot;Data updated successfully&quot;)<br>print(&quot;Total rows affected - &quot;+str(cur.rowcount))<br><br>conn.commit()<br>cur.close()<br>conn.close()</pre><p>Updating data in table can also be done one by one or mutiple. After each update, <em>cur.rowcount</em> is used to print how many rows were affected by the update.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*6f-R9QKn1jXzB1i9fPpulA.png" /></figure><h4>7. DELETING DATA FROM TABLE</h4><pre>import psycopg2<br>conn = psycopg2.connect(<br>        database= &quot;mydb&quot;,<br>        host=HOST,<br>        port=PORT,<br>        user=USER,<br>        password=PASSWORD<br>    )<br>cur = conn.cursor()<br><br>sql= &#39;&#39;&#39;DELETE FROM COMPANY WHERE age=20 &#39;&#39;&#39;<br>cur.execute(sql)<br>print(&quot;Data deleted successfully&quot;)<br>print(&quot;Total rows affected - &quot;+str(cur.rowcount))<br><br>sql= &#39;&#39;&#39;DELETE FROM COMPANY WHERE age IN (%s, %s, %s)&#39;&#39;&#39;<br>cur.execute(sql,(21,24,26))<br>print(&quot;Data deleted successfully&quot;)<br>print(&quot;Total rows affected - &quot;+str(cur.rowcount))<br><br>sql= &#39;&#39;&#39;SELECT id,name,age,salary,address from COMPANY&#39;&#39;&#39;<br>cur.execute(sql)<br>rows= cur.fetchall()<br>for i in rows:<br>    print(f&quot;ID : {i[0]} Name : {i[1]} Age : {i[2]} Salary : {i[3]} Address : {i[4]}&quot;)<br><br>conn.commit()<br>cur.close()<br>conn.close()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*nUMspeqJvTwVeeH8IvCqrQ.png" /><figcaption>pgAdmin4</figcaption></figure><h4>8. DELETE TABLE</h4><pre>import psycopg2<br>conn = psycopg2.connect(<br>        database= &quot;mydb&quot;,<br>        host=HOST,<br>        port=PORT,<br>        user=USER,<br>        password=PASSWORD<br>    )<br>conn.autocommit=True<br>cur = conn.cursor()<br><br>sql = &#39;&#39;&#39;DROP TABLE COMPANY&#39;&#39;&#39;<br>cur.execute(sql)<br>print(&quot;Table dropped successfully........&quot;)<br><br>cur.close()<br>conn.close()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*6V_cXXWlJeRoVkkAloPmiQ.png" /><figcaption>pgAdmin4</figcaption></figure><p>No table is found after deletion.</p><blockquote>Note that here conn.autocommit() is used instead of conn.commit().</blockquote><p>In this article, we’ve covered the basics of using psycopg2 to connect to and interact with PostgreSQL from Python. I hope the examples and explanations have helped simplify the process for anyone starting with database integration. For those looking to dive deeper into psycopg2 or need more detailed information, feel free to refer to the official <a href="https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor.html">documentation</a>. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee3c31d80e08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ramer-Douglas-Peucker (RDP) Algorithm in Computer Vision]]></title>
            <link>https://medium.com/@SaijyotiTripathy/ramer-douglas-peucker-rdp-algorithm-in-computer-vision-15c228f277f0?source=rss-72d95901db4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/15c228f277f0</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[opencv]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Saijyoti Tripathy]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 12:44:12 GMT</pubDate>
            <atom:updated>2024-10-21T05:36:58.771Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*XoA_whuUTj5x3syIqWgAaQ.png" /></figure><p>In this article, we’ll explore how to simplify line curves in an image using the Ramer-Douglas-Peucker (RDP) algorithm. This algorithm is great for reducing the number of points in a curve while preserving its shape, making it a useful tool for many computer vision tasks.</p><h4><strong>Ramer-Douglas-Peucker (RDP) algorithm</strong></h4><p>The <strong>Ramer-Douglas-Peucker (RDP) algorithm</strong> is a well-known and widely used line simplification technique. Its main goal is to reduce the number of points in a curve by removing points that contribute the least to the overall shape, while preserving the structure of the curve. This is achieved by recursively eliminating points that lie within a given threshold (called epsilon) of the straight line connecting two endpoints.</p><p>The RDP algorithm works by:</p><ol><li>Selecting the first and last points of the curve.</li><li>Calculating the perpendicular distance of every other point to the line connecting these two points.</li><li>Identifying the point with the greatest distance from the line. If this distance is greater than a predefined threshold (epsilon), the point is kept, and the curve is split at that point.</li><li>Recursively applying the algorithm to both halves of the curve until no points have a distance greater than the threshold.</li><li>Once this process is complete, the remaining points form the simplified version of the curve.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*d4nk28m3WtcAwih-lJF60Q.gif" /></figure><p><strong>Problem Statement</strong></p><p>Imagine you have an image like the one given below.</p><figure><img alt="White curve drawn on a black background" src="https://cdn-images-1.medium.com/max/1024/1*H72Vc_tl1X-GhkpanUBpjQ.png" /></figure><p>The curve in the image consists of several points, and you’d like to simplify it by reducing the number of points and also preserving the shape of the curve. This is where the RDP algorithm comes into play.</p><p>I’ll walk you through some code you can run in Google Colab to see this in action.</p><h4>Step 1: Setting Up the Image</h4><p>To begin, we’ll use OpenCV to load a skeletonized image. You can think of this as a simplified version of a line drawing, where the line consists of pixels having a value of 255 (white), and the background pixels have a value of 0 (black).</p><pre>from google.colab.patches import cv2_imshow<br>import cv2<br>import numpy<br><br>skel_image_path = &quot;/content/skeleton_35.png&quot;<br>skel_image = cv2.imread(skel_image_path, cv2.IMREAD_GRAYSCALE)<br>cv2_imshow(skel_image_path)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H72Vc_tl1X-GhkpanUBpjQ.png" /></figure><p>Considering the curve is connected but we don’t have specific points on it, we need to collect points in the correct order to use the Ramer-Douglas-Peucker (RDP) algorithm. We can do this by using techniques like depth-first search (DFS) to explore the curve and get the path. Once we have these ordered points, we can apply the RDP algorithm to simplify the curve while keeping its shape intact.</p><h4>Step 2: Finding endpoints in the curve</h4><p>To identify the endpoints of the curve in an image, we use a custom function called get_endpoints(). Here’s a breakdown of how it works:</p><p>1. get_endpoints() Function:</p><p>This function scans through the image, looking for points in the skeleton that are part of the curve. The skeleton is typically a thin, white line (255 intensity) on a black background (0 intensity). For each point in the skeleton, it checks its neighboring pixels. If a point has exactly one white neighbor, it’s considered an endpoint.</p><pre>import cv2<br>import numpy as np<br><br><br>def get_neighbor_coordinates(img, i, j):<br>   neighbors = [<br>       img[i-1, j-1], img[i-1, j], img[i-1, j+1],<br>       img[i, j-1],img[i, j+1],<br>       img[i+1, j-1], img[i+1, j], img[i+1, j+1]<br>   ]<br>   return neighbors<br><br><br>def get_endpoints(skel):<br>   endpoints = []<br>   for i in range(1, skel.shape[0] - 1):<br>       for j in range(1, skel.shape[1] - 1):<br>           if skel[i, j] == 255:<br>               neighbors = get_neighbor_coordinates(skel, i, j)<br>               if np.sum(np.array(neighbors) &gt; 0) == 1:<br>                   endpoints.append((i, j))<br>   return endpoints</pre><p>This method ensures that the function identifies endpoints by finding pixels that are connected to the rest of the curve at only one point.</p><h4>Step 3: Finding the Path Between Endpoints</h4><p>To trace the path formed by a curve, we can use Depth-First Search (DFS) with backtracking. This approach allows us to explore the curve from one endpoint to the other and find the exact sequence of pixels that form the curve.</p><p><strong>DFS for Tracing the Curve Path</strong></p><p>The idea behind DFS is to start at one endpoint and explore each neighboring pixel that is part of the curve. We keep moving along the curve until we either reach the other endpoint or hit a dead end (in which case, we backtrack and try another path).</p><ol><li><strong>Start from an Endpoint</strong>: We initiate the search from one endpoint of the curve.</li><li><strong>Backtracking</strong>: DFS explores paths, and if it reaches a dead end (i.e., no valid unvisited neighbors), it backtracks to the previous pixel and tries a different path.</li><li><strong>Path</strong>: We store the path as we move from one pixel to another.</li></ol><p>Here’s the code that implements DFS to find the path:</p><pre>def get_neighbors(x, y, image):<br>   neighbors = [(-1, -1), (-1, 0), (-1, 1),<br>                (0, -1),(0, 1),<br>                (1, -1), (1, 0),  (1, 1)]<br>  <br>   valid_neighbors = []<br>   for dx, dy in neighbors:<br>       nx, ny = x + dx, y + dy<br>       if 0 &lt;= nx &lt; image.shape[0] and 0 &lt;= ny &lt; image.shape[1]:<br>           if image[nx, ny] == 255:<br>               valid_neighbors.append((nx, ny))<br>   return valid_neighbors<br><br><br>def trace_path(image, start, end):<br>   stack = [start]<br>   visited = set()<br>   visited.add(start)<br>   path = []<br><br>   while stack:<br>       current = stack.pop()<br>       path.append(current)<br><br>       if current == end:<br>           return path<br>      <br>       neighbors = get_neighbors(current[0], current[1], image)<br>       for neighbor in neighbors:<br>           if neighbor not in visited:<br>               visited.add(neighbor)<br>               stack.append(neighbor)<br>   return None</pre><h4>Step 4: Applying the RDP Algorithm</h4><p>The core part of this tutorial is applying the RDP algorithm to simplify the path traced between the two endpoints. The RDP algorithm recursively eliminates points that don’t contribute significantly to the shape of the curve.</p><pre>def perpendicular_distance(point, line_start, line_end):<br>   if line_start == line_end:<br>       return np.linalg.norm(np.array(point) - np.array(line_start))<br><br>   line_start = np.array(line_start)<br>   line_end = np.array(line_end)<br>   point = np.array(point)<br>  <br>   area = np.abs(np.cross(line_end - line_start, line_start - point))<br>   base = np.linalg.norm(line_end - line_start)<br>   return area / base<br><br>def rdp(points, epsilon):<br>   if len(points) &lt; 2:<br>       return points<br>  <br>   start = points[0]<br>   end = points[-1]<br>   max_distance = 0<br>   index_of_farthest = -1<br><br>   for i in range(1, len(points) - 1):<br>       dist = perpendicular_distance(points[i], start, end)<br>       if dist &gt; max_distance:<br>           max_distance = dist<br>           index_of_farthest = i<br><br>   if max_distance &gt; epsilon:<br>       left_segment = rdp(points[:index_of_farthest + 1], epsilon)<br>       right_segment = rdp(points[index_of_farthest:], epsilon)<br>       return left_segment[:-1] + right_segment<br>   else:<br>       return [start, end]</pre><p>The output of rdp function will be a list of key points along the simplified curve.</p><h4>Implementation on Image</h4><pre>skel_image_path = &quot;/content/skeleton_35.png&quot;<br>skel_image = cv2.imread(skel_image_path, cv2.IMREAD_GRAYSCALE)<br><br># Gets the endpoints of the curve<br>endpoints = get_endpoints(skel_image)<br>print(endpoints)<br><br>if len(endpoints) == 2:<br>    start, end = endpoints[0], endpoints[1]<br><br>    # Depth-First Search (DFS) to trace the path from the start point to the end point.<br>    path = trace_path(skel_image, start, end)<br>    <br>    if path:<br>        # Apply RDP to simplify the path<br>        simplified_path = rdp(path, epsilon=2)<br>      <br>        # Draws red circles on the points of the simplified path and green lines connecting those points<br>        skel_image_copy = cv2.imread(skel_image_path) <br>        for i in range(len(simplified_path) - 1):<br>            pt1 = (int(simplified_path[i][1]), int(simplified_path[i][0]))<br>            pt2 = (int(simplified_path[i + 1][1]), int(simplified_path[i + 1][0]))<br>            cv2.circle(skel_image_copy, (pt1[0], pt1[1]), 2, (0, 0, 255), 3) <br>            cv2.circle(skel_image_copy, (pt2[0], pt2[1]), 2, (0, 0, 255), 3) <br>            cv2.line(skel_image_copy, pt1, pt2, (0, 255, 0), 1)<br>        cv2_imshow(skel_image_copy)<br><br>    else:<br>        print(&quot;No path found between the two endpoints.&quot;)<br>else:<br>    print(&quot;There should be exactly 2 endpoints.&quot;)</pre><p>Lets see what our output image looks like using RDP algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z4ROO2AFveDhgLTEwbWO0g.png" /></figure><p>The red circles are the points of the simplified path generated by RDP and the green lines are the lines connecting them. We can see that the original curve(in white) and the simplified lines(in green) are so similar.</p><blockquote>A smaller epsilon value preserves more details, while a larger value simplifies the curve more aggressively.</blockquote><h3>Key Concepts:</h3><ul><li><strong>Skeletonization</strong>: A process where an object’s structure is reduced to a thin version (often a 1-pixel wide line) that retains the object’s topology. In this case, we are working with such a skeletonized image to find and simplify the path along the structure.</li><li><strong>Depth-First Search (DFS)</strong>: This algorithm explores all possible paths from the start point to the end point in a skeleton image. It searches depth-wise by exploring one branch fully before backtracking and exploring alternative branches.</li><li><strong>Ramer-Douglas-Peucker Algorithm</strong>: A curve simplification algorithm used to reduce the number of points in a curve while preserving the overall shape.</li></ul><h3>Application of RDP in Computer Vision</h3><p>In computer vision, the RDP algorithm is commonly applied to simplify shapes, contours, and paths. By reducing the number of points while preserving the structure, the RDP algorithm helps make data easier to process and analyze. Here are some common applications:</p><h4>1. Simplifying Contours in Images:</h4><ul><li>In object detection or shape recognition, objects are often represented by their contours, which are curves formed by boundary points. The RDP algorithm can simplify these contours by reducing the number of points, making it easier for algorithms to process and classify shapes efficiently.</li></ul><h4>2. Polyline Simplification:</h4><ul><li>When working with hand-drawn curves (e.g., in handwriting recognition or drawing analysis), the RDP algorithm simplifies complex curves into fewer points, enabling smoother recognition of patterns without losing important information about the shape.</li></ul><h4>3. GPS Data Simplification:</h4><ul><li>In tracking and navigation systems, large datasets of GPS coordinates representing movement paths can be simplified using RDP. This reduces the amount of data stored or transmitted while retaining the overall path shape.</li></ul><h4>4. Skeletonization in Image Processing:</h4><ul><li>When working with skeletonized images (thin representations of objects), the RDP algorithm can be applied to trace and simplify paths in the skeleton. This is especially useful when analyzing structures like roads, veins, or fibers in images.</li></ul><h4>5. Shape Approximation:</h4><ul><li>RDP is often used to approximate shapes in 2D images, reducing the number of vertices in a polygonal representation of the shape while maintaining its overall form. This is useful in image segmentation, shape matching, and feature extraction.</li></ul><h3>RDP in OpenCV:</h3><p>The RDP algorithm is implemented in OpenCV as part of the cv2.approxPolyDP() function, which is commonly used to approximate polygonal curves.</p><ul><li><strong>Usage</strong>: cv2.approxPolyDP(contour, epsilon, closed)</li><li><strong>contour</strong>: The contour to simplify.</li><li><strong>epsilon</strong>: The maximum allowed distance between the original curve and the simplified curve.</li><li><strong>closed</strong>: A boolean indicating whether the approximated curve should be closed.</li></ul><pre>import cv2<br><br>image = cv2.imread(&quot;/content/skeleton_35.png&quot;)<br>gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)<br>contours, _ = cv2.findContours(gray, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)<br><br># Simplify contours using RDP (approxPolyDP)<br>epsilon = 0.01 * cv2.arcLength(contours[0], True) <br>approx = cv2.approxPolyDP(contours[0], epsilon, True)<br><br>cv2.drawContours(image, [approx], 0, (0, 255, 0), 3)<br>cv2_imshow(image)</pre><blockquote>Note that here the contours of the curve will be simplified.</blockquote><p>As you experiment with the Ramer-Douglas-Peucker algorithm, remember that the choice of epsilon plays a crucial role in the simplification process. A smaller epsilon value will retain more detail, while a larger value will yield a more abstract representation. Feel free to play around with different epsilon values to discover what works best for your specific data and application. By fine-tuning this parameter, you can achieve the perfect balance between detail and simplicity, enhancing your computer vision projects. Happy coding!</p><p>Feel free to connect with me on</p><p><a href="https://www.linkedin.com/in/saijyoti-tripathy/"><em>LinkedIn</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15c228f277f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interview Experience — Junior Data Engineering Intern at Haber Technology]]></title>
            <link>https://medium.com/@SaijyotiTripathy/interview-experience-junior-data-engineering-intern-at-haber-technology-6866cff5ed02?source=rss-72d95901db4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6866cff5ed02</guid>
            <category><![CDATA[haber]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[interview-experience]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <dc:creator><![CDATA[Saijyoti Tripathy]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 14:27:46 GMT</pubDate>
            <atom:updated>2023-07-01T14:27:46.720Z</atom:updated>
            <content:encoded><![CDATA[<h3>Interview Experience — Junior Data Engineering Intern at Haber Technology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*gnnmRkdN8BX755aLSCJwWg.png" /></figure><h3><strong>Round 1: Aptitude and Technical Round</strong></h3><p>The first round of the online assessment consisted of a combination of aptitude questions, Python code snippets, and multiple-choice questions related to data science concepts. The time limit was 30 minutes for 30 questions.</p><h3>Round 2: Coding Round</h3><p>The second round consisted of two coding questions, one easy and the other medium (the lazy bartender problem). The time limit was 1 hour for 2 questions, and I successfully solved both well within the given time.</p><h3>Round 3: Technical Interview 1</h3><p>The third round focused on technical aspects of data engineering and analysis. The interviewer asked me my previous projects and detailed explanations about the technologies and techniques I had used. I had a project in which I used CNN, so he inquired about the architecture of CNN and asked some questions regarding RNN and transfer learning. He also questioned why I chose a specific evaluation metric and cross-examined me on the same.<br>We then moved on to DBMS, and he asked conceptual questions about normalization, indexing, and different types of keys.<br>Finally, I was given two easy coding questions to solve and explain, which I did using Python.</p><h3>Round 4: Technical Interview 2</h3><p>The fourth round was an intense technical interview covering a wide range of topics. Three senior employees at Haber conducted the interview. It began with introductions, and when asked about the subjects I had studied, I mentioned Statistics as one of them.<br>He began asking me questions related to probability theory and different distributions. I was given probability questions to solve, and he provided hints whenever I felt stuck or nervous.<br>Later, I was given questions related to random distributions, which I had to plot using pandas, numpy, and matplotlib.</p><p>We also discussed concepts related to DSA like time complexity, sorting algorithms, stacks and queues, trees and graphs. The interviewer presented me with a graph coloring problem and asked me to explain how I would approach it and its practical applications.<br>He also asked me to perform a Pandas dataframe manipulation and some data preprocessing, which I successfully completed.<br>After 2 hours, I received a call from HR for the next round.</p><h3>Round 5: HR Interview</h3><p>In the final round, I faced an HR interview where the focus shifted from technical skills to personal qualities and experiences. The interviewer asked me about failures in my life and how I overcame them. We discussed about my definition of success and what it meant to me.</p><p>After 1–2 days, I received the offer for the Junior Data Engineering intern position.</p><p>Feel free to connect with me on</p><p><a href="https://www.linkedin.com/in/saijyoti-tripathy/"><em>LinkedIn</em></a></p><p><a href="https://twitter.com/TSaijyoti"><em>Twitter</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6866cff5ed02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PRODUCT ANALYST ROLE INTERVIEW EXPERIENCE — FAMPAY]]></title>
            <link>https://medium.com/@SaijyotiTripathy/product-analyst-role-interview-experience-fampay-4e250a68095b?source=rss-72d95901db4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e250a68095b</guid>
            <category><![CDATA[product-analyst]]></category>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[software-engineer]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Saijyoti Tripathy]]></dc:creator>
            <pubDate>Tue, 13 Jun 2023 11:45:58 GMT</pubDate>
            <atom:updated>2023-06-14T08:06:09.845Z</atom:updated>
            <content:encoded><![CDATA[<h3>PRODUCT ANALYST ROLE INTERVIEW EXPERIENCE — FAMPAY</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*TdRysInWzjKud0eOQaFXkA.png" /></figure><h3><strong>APPLICATION</strong></h3><p>After coming across an opening for the Product Analyst Intern role at FamPay’s career page, I cold mailed the recruiter and also messaged some of the founding team members on LinkedIn. Within just 2–3 days, I received a response from the HR, which included an assignment that needed to be completed within 24 hours.</p><h3>ASSIGNMENT</h3><p>The assignment had some SQL questions related to joins and other functions. Additionally, there were questions related to KPIs, as well as a case study to analyze a feature within their product.</p><h3>FIRST INTERVIEW</h3><p>The first interview, lasting about 20 minutes, was conducted by the person who would be my direct manager. This interview was primarily focused on assessing my understanding of the assignment. The interviewer was friendly and approachable, making the conversation comfortable. I confidently explained the SQL part of the assignment, but admitted that I struggled to express my thoughts regarding the product aspect, as it was a new domain for me. At last, I asked him some questions about FamApp’s product features, and the interviewer patiently provided the answers.</p><p>A few days later, I received a call from the recruiter, confirming my selection for the 2nd interview.</p><h3>SECOND INTERVIEW</h3><p>The second interview was with one of the founding members of the company. The interview started with a brief introduction, followed by a question about how I managed my time while pursuing a dual degree from two colleges. We then discussed the role of a Product Analyst and why I was interested in pursuing this path.</p><p>He gave me a case study and asked me to analyze that step-by-step and explain my thought process. (What data I will collect for a specific problem and why)</p><p>We also discussed some of my previous projects related to data science. The interviewer asked me about my career goals and how they aligned with FamPay’s objectives. Additionally, I was asked about what excited me the most about joining FamPay and how it would contribute to my long-term aspirations. We discussed how this internship would mutually benefit both. The interview concluded with a conversation about my hobbies and interests.</p><p>A few days after the second interview, I received a call from the HR at Fam, extending an intership offer for the role of a Product Analyst.</p><p>Feel free to connect with me on</p><p><a href="https://www.linkedin.com/in/saijyoti-tripathy/"><em>LinkedIn</em></a></p><p><a href="https://twitter.com/TSaijyoti"><em>Twitter</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e250a68095b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intuit Interview Experience — Software Engineering Summer Intern 2023]]></title>
            <link>https://medium.com/@SaijyotiTripathy/intuit-interview-experience-software-engineering-summer-intern-2023-2310b2e66911?source=rss-72d95901db4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2310b2e66911</guid>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[intuit]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[interview-experience]]></category>
            <dc:creator><![CDATA[Saijyoti Tripathy]]></dc:creator>
            <pubDate>Sat, 25 Feb 2023 15:26:04 GMT</pubDate>
            <atom:updated>2023-02-25T15:26:04.041Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intuit Interview Experience — Software Engineering Summer Intern 2023</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kYvnZn463HY3Tc1OrgFD7w.png" /></figure><h3><strong>Application</strong></h3><p>I was approached by a recruiter from Intuit on LinkedIn for the Software Engineering Summer Internship Program asking for my resume. I sent her my resume and after about 2 days, I received an email with the link to the OA(Online Assessment).</p><h3><strong>Technical Assessment</strong></h3><p>I had given my technical assessment on Feb 8, 2023. The assessment consisted of 4 DSA questions that needed to be solved within 90 minutes. The questions were based on strings, arrays, trees, and graphs and had different levels of difficulty ranging from 1 Easy to 2 Medium to 1 Hard level.</p><p>After 90 minutes, I was able to solve 2 questions completely.</p><p>On Feb 9, I received an email from the recruiter saying that my profile had been shortlisted for the interview round. I was thrilled to hear the news and began preparing for the interview round.</p><h3><strong>Technical Interview 1</strong></h3><p>I had my first technical interview on Feb 16, and I was a little nervous. I had prepared myself well for the interview, and I was hoping to perform my best. The interview started with brief introductions from both sides, and I got to know that my interviewer was an SDE-2 at Intuit.</p><p>He started off by asking me to briefly explain one of my projects. I explained to him my NLP-based Sentiment Analysis project, which he seemed quite interested in. He then asked me about the accuracy of the model and how I could improve it. I was able to answer his questions satisfactorily.</p><p>After successfully answering the questions on projects, we moved on to the next part. He asked me questions from CS Core subjects like DBMS, OOPS, OS, CN. I was quite confident about these topics, and I was able to answer most of the questions satisfactorily. Some of the questions were about Overriding vs Overloading, Polymorphism and its types, Normalization, Types of Normalization, Definition of 1st Normal Form and 2nd Normal Form, ACID properties, Definition of protocol, TCP vs UDP, Layers of OSI model and their functions, Caching, and Virtual memory.</p><p>Now comes the second half of the interview, which was problem-solving. He explained to me the question using 2 test cases, and I was asked to solve the problem. The problem was about <a href="https://leetcode.com/problems/product-of-array-except-self/">finding the product of the array except self</a>. I started off by explaining the logic and gave the optimized solution first instead of the brute force solution. He then asked me to solve the question without using a division operator. I took some time and described the logic by doing a dry run on test cases. He questioned me about the time and space complexities of each approach, and I answered them clearly.</p><p>The interview lasted for around 50 mins, and I felt quite confident about my performance. On Feb 17, I got a call from the recruiter informing me about my selection for the 2nd round of interview, which will be held next week.</p><h3><strong>Technical Interview 2</strong></h3><p>I had my second technical interview on Feb 22, and it was a bit nerve-wracking since there were two interviewers this time. The interview was for 75 minutes, and the first part started with in-depth questions based on my projects. Since my projects are based on Machine Learning, they asked me about the motivation behind doing those projects and basic questions from ML.</p><p>The interviewers asked me to solve a DSA problem, specifically about <a href="https://leetcode.com/problems/find-the-duplicate-number/">finding duplicate numbers in an array</a> and the time and space complexities of the code. I discussed a few approaches and coded the optimized solution. I was able to explain the logic behind my code and the time and space complexities with ease. They then asked me to discuss any approach to find multiple duplicates in an array. I explained the logic and did a dry run on the testcases.</p><p>Then, they asked me questions on OOPS and the difference between runtime and compile-time polymorphism with written examples. I was also asked more questions on method overriding, which I was able to answer with examples.</p><p>Moving on to DBMS, they asked me about the file system vs DBMS, followed by questions on normalization and its forms. I had studied DBMS quite well, and I was able to answer their questions accurately.</p><p>In OS, they also asked me about the types of memory, and how the OS would run my previous DSA code. I got confused while answering this question and messed up.</p><p>Finally, they asked me about Python, the difference between C and Python, which one is faster and why. I was also asked about the internal working of the interpreter when it runs a Python code.</p><p>Overall, the interview was quite challenging, but I felt confident in my abilities and was able to give my best.</p><p>Feel free to connect with me on</p><p><a href="https://www.linkedin.com/in/saijyoti-tripathy/"><em>LinkedIn</em></a></p><p><a href="https://twitter.com/TSaijyoti"><em>Twitter</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2310b2e66911" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Springworks Interview Experience]]></title>
            <link>https://medium.com/@SaijyotiTripathy/springworks-interview-experience-77b3d4a35fc7?source=rss-72d95901db4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/77b3d4a35fc7</guid>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[interview-experience]]></category>
            <category><![CDATA[springworks]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Saijyoti Tripathy]]></dc:creator>
            <pubDate>Tue, 17 Jan 2023 15:23:16 GMT</pubDate>
            <atom:updated>2023-01-17T15:26:24.481Z</atom:updated>
            <content:encoded><![CDATA[<h3>Springworks Interview Experience — <strong>Software Engineering Intern</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*wiSZT857FFaVItlyp7mWdg.png" /></figure><p><strong>How did I apply ?</strong></p><p>I did not apply through any careers page, or registration link. Instead, on January 11 2023, I approached an employee from Springworks on LinkedIn(sent a brief introduction about me and my skills and attached my resume) for the <strong>Software Engineering Intern (AI- NLP/ML)</strong> position.</p><p>After about 1 day, I received a reply and an email with the link to the OA(Online Assessment).</p><p><strong>Online Assessment</strong></p><p>On January 11, 2023, I had the first round. It was a 120 minute long test with 14 questions(10 MCQ questions based on Machine Learning and 4 DSA questions). The difficulty of the coding problems was Leetcode Easy-Medium Level .</p><p>The ML questions were purely conceptual. Some of the questions were new to me so I just guessed the answers. Out of the 4 coding problems, I was able to code 2 problems, passing all the test cases — including boundary cases and complex test cases as well and 1 problem passing 90% test cases. I completed the test before time(took less than 1 hour).</p><p>I was not so confident with my performance and was not really expecting anything after the first round.</p><h3>Interview Round</h3><p>On 17th January 2023, I got an email from the Hiring team at Springworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ogk99TjIxnfETMTL" /></figure><p>The Interview Round lasted for around 20 minutes. The round started with a quick introduction about myself. I was first asked to explain the ML projects mentioned in my resume and then he cross questioned on the working of the algorithms I used. After that he asked some questions on basic ML concepts and Statistics concepts. Since I was so nervous, I fumbled a lot while answering those questions. I wasn’t aware of the answers to some questions<em>,</em> and instead of giving vague answers, I told him that I didn’t know the answer.</p><p>Now comes the second half of the interview, which was problem-solving. His main aim was to test how I think and what my approach to a new problem is. So he gave me a problem and asked me to describe the problem statement. I started with it and explained what logic I can use to solve the problem. After I coded the solution but got TLE and Memory Limit Exceeded in 2 test cases. He asked the difference between them and told me to point out the part of the code due to which they arise. I optimised the code using the hint provided by him and explained the logic clearly.</p><p><strong><em>Feedback:</em></strong></p><ul><li>My coding skill was good. I wrote good code and got the solution right and clearly communicated my logic beforehand.</li><li>I wasn’t strong enough in ML. I fumbled a lot and couldn’t recollect some of the basic things.</li></ul><h3>Conclusion</h3><p>In the end, I would say it was my first interview experience. I went to the interview hoping to get an experience that would help me prepare well for next time. I knew I wasn’t completely prepared and I had so much more to learn.</p><p>Feel free to connect with me on</p><p><a href="https://www.linkedin.com/in/saijyoti-tripathy/"><em>LinkedIn</em></a></p><p><a href="https://twitter.com/TSaijyoti"><em>Twitter</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77b3d4a35fc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Resume building and technical interview session — my Twitter DevelopHER journey]]></title>
            <link>https://medium.com/@SaijyotiTripathy/resume-building-and-technical-interview-session-my-twitter-developher-journey-168e0b143d2c?source=rss-72d95901db4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/168e0b143d2c</guid>
            <category><![CDATA[developher]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[twitter]]></category>
            <dc:creator><![CDATA[Saijyoti Tripathy]]></dc:creator>
            <pubDate>Mon, 27 Sep 2021 04:39:58 GMT</pubDate>
            <atom:updated>2021-09-27T04:39:58.809Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Resume building and technical interview session — my Twitter DevelopHER journey</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*d9LbCMHggh1zSbITFjn_cQ.jpeg" /></figure><p>This blog is the second blog in a series of my Twitter DevelopHER journey. Feel free to check out my first blog post about Twitter DevelopHER 2021 India: <a href="https://medium.com/@SaijyotiTripathy/twitter-developher2021-india-36e49323f3a0">https://medium.com/@SaijyotiTripathy/twitter-developher2021-india-36e49323f3a0</a></p><p>“I never hear back whenever I send my resume to any company , My resume never gets shortlisted ” Does this line seem familiar to you ?</p><p>I attended the Twitter DevelopHER program a few days ago where I learnt a lot about resume building and how to present oneself at a technical interview. So, I am sharing what I learnt in this blog.</p><p>The amount of hours people have spent trying to best present themselves on a piece of paper for that chance to interview shows how important a resume is.</p><h3>The effort put in making a good resume is totally worth it.</h3><p>The first thing that comes in our mind while building a resume is what should I include on my resume and where do I start?</p><p>Lets list out some important points to remember :</p><ul><li>Think about your message that you want to display</li><li>List your jobs, relevant coursework, and/or extra-curricular activities</li><li>Directly relate your experience to the job (Quantify)</li><li>Demonstrate your well roundedness</li><li>Keep bullet points short and simple (Action + Result)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IEEiE4Rx0lCfhFryzzyJoQ.png" /></figure><h4><strong>What the reader expects to see?</strong></h4><p><strong>1.Commitment</strong></p><p>Cover letters to express your interest in the role.</p><p><strong>2. Passion</strong></p><p>Planning, organizing, executing, supervising, leading, getting results, problem solving</p><p><strong>3. Intellectual Curiosity</strong></p><p>Willingness to work, open to feedback and suggestions</p><p><strong>4. Work Ethics</strong></p><p>Accountable, self-motivated, disciplined, responsible</p><p><strong>5. Technical Aptitude</strong></p><p><strong>6. Teamwork</strong></p><p>Action and result</p><p>As we know nowadays the ATS (Applicant Tracking Software) is also scanning the resumes , so to make our resume ATS friendly we need a proper format and most importantly with no spelling errors and a lot of relevant keywords for the job we are applying for. Here is a concise content.</p><p><strong>Content</strong></p><ul><li>Full name</li><li>Current contact information</li><li>Academic history</li><li>School and graduation date</li><li>Major/minor/concentration</li><li>GPA Scale</li><li>Technical skills</li><li>Experience (Work/Volunteer)</li><li>Honors/Awards</li><li>Extracurricular activities</li><li>Personal interest</li></ul><p><strong>Formatting</strong></p><ul><li>One page</li><li>Easy to read font</li><li>Clear and simple descriptions</li><li>2–5 Bullet points</li><li>Action and impact</li><li>Proper spelling and grammar</li><li>Have someone else read over your resume</li><li>Reverse chronological order</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*co646oCkVl14jceeDzH4QA.jpeg" /></figure><p><strong>Resume Do’s</strong></p><ul><li>Tailor your resume</li><li>Demonstrate your well roundedness</li><li>Use action verbs to describe activities</li><li>Quantify your achievements</li><li>Keep bullet points short and simple (Action + Result)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*79dvciQf3q8CXp4uwPGxzw.jpeg" /></figure><p><strong>Resume Don’ts</strong></p><ul><li>Try to fit entire autobiography</li><li>Typos and spelling/grammatical errors</li><li>Exaggerating your role and responsibilities</li><li>Using passive verbs</li><li>Lack of description of position/title</li><li>Lack of formatting/Over Formatting</li></ul><p>So, now our resume is ready to face both the ATS and the human recruiter. And I am sure this time it will stand out.</p><p>Once our resume gets shortlisted then we need to prepare for tech interviews. Let’s see what we need to do to ace the technical interviews.</p><h3><strong>TECH INTERVIEW</strong></h3><p><strong>What the interviewer is looking for ?</strong></p><ol><li>Problem solving</li><li>Collaboration</li><li>Communication</li><li>Iteration</li><li>Adaptability</li><li>Listening skills</li></ol><p>Some steps to remember while solving a problem during an interview</p><ul><li>Take a moment to think. Ask the interviewer for some time to reflect on the problem.</li><li>Restate the problem. Discuss the problem in your own words.</li><li>Focus on the problem you are trying to solve.</li><li>What does success look like?</li><li>What key features will help make this solution successful?</li><li>Draw and talk as you work. Ask the interviewer for help if you get stuck somewhere.</li><li>Explain your final solution to your interviewer.</li><li>Offer to answer questions.</li><li>Code Optimization.</li></ul><p><strong>Key Takeaways</strong></p><ol><li>Clearly understand the problem</li></ol><p>Ask for clarification as needed in areas including edge cases and constraints.</p><p>2. Make sure code includes coverage for edge cases</p><p>Input validation, unexpected use cases</p><p>3. Reusability</p><p>Refactor code into common functions/classes</p><p>4. Testing</p><p>Test codes with various inputs</p><p>Lastly , treat the interview process more like a learning experience. Be professional and neutral throughout the interview.</p><p>Reach out to me anytime if you want to discuss anything related to this program. Thank you for your patience to read till the end. Feedbacks and suggestions are most welcome.</p><p>Feel free to connect with me on</p><p><a href="https://www.linkedin.com/in/saijyoti-tripathy/">LinkedIn</a></p><p><a href="https://github.com/SaijyotiTripathy">GitHub</a></p><p><a href="https://saijyotitripathy.github.io/">Portfolio</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=168e0b143d2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Twitter DevelopHER2021 India]]></title>
            <link>https://medium.com/@SaijyotiTripathy/twitter-developher2021-india-36e49323f3a0?source=rss-72d95901db4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/36e49323f3a0</guid>
            <category><![CDATA[womenintechindia]]></category>
            <category><![CDATA[developher]]></category>
            <category><![CDATA[twitter]]></category>
            <dc:creator><![CDATA[Saijyoti Tripathy]]></dc:creator>
            <pubDate>Fri, 17 Sep 2021 16:34:38 GMT</pubDate>
            <atom:updated>2021-09-27T04:42:35.667Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*d9LbCMHggh1zSbITFjn_cQ.jpeg" /></figure><p>Twitter DevelopHER program is a two-day interactive program for second and third-year computer science/engineering majors focused on professional and technical development including networking, personal branding, resume writing and coding challenges.</p><p>This is the second time this program has happened in India. It is basically a diversity program for 2023 and 2024 batch girl students for the year 2021.</p><p>About 30 girls among 9000+ applicants were selected this year for this program which was held virtually.</p><p>I got to know about the program through LinkedIn and applied for this in August 2021. This is an article describing my experience.</p><p>It is an off-campus opportunity and the registrations open around August. They asked simple questions like basic info, our Twitter and LinkedIn handle and resume in the application form.</p><p>After around 2–3 weeks we got an email confirming our selection and further procedures. Succeeding the selection letter they sent us the program agenda and added us to their slack channel two days before the program. We got to interact with the amazing girls selected. Moreover, we interacted with twitter’s full-time employees, HR and others who volunteered for this program.</p><p>The sessions were for nearly 5–6 hours per day. There were welcome notes from senior leaders and talks about Twitter’s culture and what work they do on a day-to-day basis. The sessions were very engaging and interactive. The team was welcoming and conducted fun activities to keep us entertained.</p><p>The resume building and guide to technical interviewing session gave us great insights as budding women in tech. There was a team coding challenge in which 30 students were divided into 6 teams each assisted by a mentor who is an engineer at Twitter.</p><p>According to me, the most exciting part was the networking session at the end where we interacted with the engineering and recruiting team of Twitter India. We were given time to talk with any person one-to-one to gain insights about their work and experience.</p><p><strong><em>Benefits</em></strong></p><p>-&gt;Networking with the Twitter India team and the amazing girls</p><p>-&gt;The understanding of how things work on Twitter</p><p>-&gt;Unquestionably this program adds value to your resume</p><p><strong><em>Tips</em></strong></p><p>-&gt;From my experience, I saw that the girls selected were highly active in STEM. Some of them were WTEF scholars, some had a great experience in open source contributions, some were Google step interns and each one of them undeniably deserved to be there.</p><p>-&gt;Updated Resume and LinkedIn profile act as a cherry on the cake while applying.</p><p>Feel free to checkout my next blog — “<a href="https://medium.com/@SaijyotiTripathy/resume-building-and-technical-interview-session-my-twitter-developher-journey-168e0b143d2c">Resume building and technical interview session- my Twitter DevelopHER journey</a> ”</p><p>For any further questions, <a href="https://www.linkedin.com/in/saijyoti-tripathy/">connect</a> to me at <a href="https://www.linkedin.com/in/saijyoti-tripathy/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36e49323f3a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>