<?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 Subramanian V V on Medium]]></title>
        <description><![CDATA[Stories by Subramanian V V on Medium]]></description>
        <link>https://medium.com/@koyilnet?source=rss-1acf515ed122------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lmq8na6mhmMZ_T69XCFWyA.jpeg</url>
            <title>Stories by Subramanian V V on Medium</title>
            <link>https://medium.com/@koyilnet?source=rss-1acf515ed122------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 04:30:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@koyilnet/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[My Writer's Manifesto]]></title>
            <link>https://medium.com/@koyilnet/my-writers-manifesto-f0b7ae701ddf?source=rss-1acf515ed122------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0b7ae701ddf</guid>
            <category><![CDATA[manifesto]]></category>
            <category><![CDATA[creativity]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Subramanian V V]]></dc:creator>
            <pubDate>Sun, 20 Nov 2022 23:06:21 GMT</pubDate>
            <atom:updated>2022-11-20T23:06:21.669Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QGvJCxF41wqBXInN" /><figcaption>Source: <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>&quot;We write to taste life twice, in the moment and in retrospect.&quot; ~ Anaïs Nin</blockquote><p>Writing, for me, is a medium to relive the best experiences of my life and to plan my future encounters. It is a safe space where I can travel to my past, enjoy my present and sculpt my future whenever I want. It is a vehicle in which I take my readers on a ride around my world. The experience of enjoyment should be mutual for both the writer as well as the reader.</p><p>Writing is a responsibility. It is as essential to connect with the readers as it is to enjoy oneself in the writing process. It gives me a sense of power, knowing that I get to decide what must be written while writing a piece of text. I aim to reflect loads of positivity and optimism through my work, as the world is not fair towards everyone in real life.</p><p>Anything in life is incomplete without good old humour. A reader can get easily bored if the piece is not engaging or connecting with them. I love to lace my writings with a tinge of humour to keep the atmosphere light for my readers. At the same time, I do not wish to be one-dimensional in writing. I believe variety is the spice of life and change is the only constant in life. I strive to expand beyond a particular genre of writing. In any genre, my main motto is to paint a picture of my thoughts with words.</p><p>I love to travel to different parts of the world, embrace various cultures, and converse with new people. Naturally, a lot of different locations can be seen in my writings. I wish to bring the beauty and the peculiarity of a place in front of the eyes of my readers and kindle their interest in travelling to that place.</p><p>In a nutshell, I am a writer who writes relatable content from my day-to-day life experiences. I experiment with my writing, too, to break the monotony for myself as well as my readers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0b7ae701ddf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Desktop Applications using Electron JS]]></title>
            <link>https://medium.com/spidernitt/getting-started-with-desktop-applications-using-electron-js-52b55088aacc?source=rss-1acf515ed122------2</link>
            <guid isPermaLink="false">https://medium.com/p/52b55088aacc</guid>
            <category><![CDATA[desktop-application]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[electronjs]]></category>
            <category><![CDATA[spiders]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Subramanian V V]]></dc:creator>
            <pubDate>Wed, 30 Dec 2020 12:22:13 GMT</pubDate>
            <atom:updated>2020-12-30T12:22:13.266Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I9YY4Hpf3V_isIcA" /><figcaption><a href="https://www.facebook.com/electronjs.org">Source:</a> Electron JS</figcaption></figure><h3>Introduction</h3><p>In this fast-paced world, the evolution of technology has never ceased to amaze people. In the initial days of development, it was considered a luxury to have a multi-page website. However, in modern days, we have countless incredible websites to blow our minds away. Apart from them, in recent times, we have been using various desktop applications that make our lives simpler.</p><p>Ranging from the text editors such as Visual Studio Code, Atom or Sublime to the online conferencing platforms like Zoom, Microsoft Teams or Skype to the communication platforms like Discord or Whatsapp, we have shortcuts to many such applications on our desktop. In this article, we will look to develop <em>desktop applications</em> using a JavaScript framework called <strong><em>Electron</em></strong>. Let’s jump in!</p><h3>What is Electron JS?</h3><p>Electron JS is an open-source runtime framework for creating desktop applications with HTML, CSS, and Javascript. It is developed and maintained by GitHub. It combines the Chromium rendering engine with the Node JS runtime environment. The apps built using Electron are <em>cross-platform</em>, or in other words, compatible with Mac, Windows, and Linux. Most of the popular desktop applications are developed using Electron JS.</p><h3><strong>Working</strong></h3><p>Electron applications have two processes, namely the <strong>main process</strong> and the <strong>renderer process</strong>. The main process creates instances of a browser window and is responsible for sending requests to the window or transferring data between different windows. The renderer process renders the window as an interface for the user. Each process takes advantage of Chromium’s multi-process architecture. In short, the main process manages the whole application and its individual renderer processes. Electron also supports various APIs for both the processes, making it easier to interact with the desktop operating system and its resources.</p><h3>Getting started with Electron JS</h3><p>Before getting started with Electron, <a href="https://nodejs.org/en/download/">Node JS must be installed</a>. With that, we are good to go. Go to the command line, cd to a folder, and then give</p><pre>npm init -y </pre><p>to create a <strong><em>package.json</em></strong> file. Now to install Electron, which is an npm package, give</p><pre>npm install electron --save-dev</pre><p>Now open the folder in a preferred code editor and edit the <strong><em>package.json</em></strong> file to give a start script.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee9ca1bbd3f93e8b5aff4362eb776a27/href">https://medium.com/media/ee9ca1bbd3f93e8b5aff4362eb776a27/href</a></iframe><p>As always, we will start exploring Electron by making a “Hello World” app. To run the main process, we must create a <strong><em>main.js</em></strong> file with the contents as follows.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/023c28f7c815d4912e409e7593bbb230/href">https://medium.com/media/023c28f7c815d4912e409e7593bbb230/href</a></iframe><p>The function <strong><em>createWindow()</em></strong> creates a new browser window of specified dimensions and loads the <em>index.html</em> file. Apart from that, we add listeners to stop the application when the window is closed and prevent multiple launches simultaneously.</p><p>Now for rendering the application, we give the renderer process, which is a simple <strong><em>index.html</em></strong> file to display “Hello World!” in a new window.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/36c115e7728470c8f3e045a1e494e569/href">https://medium.com/media/36c115e7728470c8f3e045a1e494e569/href</a></iframe><p>With that said, we are ready to fire up our first Electron application. Go back to the command line and inside the created folder, run</p><pre>npm start</pre><p>which opens the new Electron window, which looks as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*TqRjtafkscR5M0RAV7Xlng.png" /><figcaption>“Hello World!” Electron application</figcaption></figure><p>If we observe the application window, we have a default menu bar, which is populated when the application is run. With the “Hello World!” application created successfully, we move to another simple application to explore some other features of Electron JS.</p><h3>Inter-Process Communication</h3><p>Building our knowledge further, we will look at developing multi-window applications and ensuring interactions between them. This feature is called <strong>inter-process communication (IPC)</strong>. Note that a single main process can have multiple renderer processes. However, these renderer processes cannot communicate with each other directly. They have to use the main process as an intermediary. Electron provides us with two IPC modules, namely <strong>ipcMain </strong>and <strong>ipcRenderer</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0IUvS41zGPu79Vur" /><figcaption><a href="https://github.com/OKStateACM/ElectronCodelab/blob/master/04%20-%20Interprocess%20Communication.md">Source:</a> OKStateACM</figcaption></figure><p>The <strong>ipcMain</strong> module is used to communicate from the main process to the renderer processes. This module handles asynchronous and synchronous messages sent from the renderer process when used in the main process.</p><p>The <strong>ipcRenderer</strong> module is used to communicate from a renderer process to the main process. This module handles sending synchronous and asynchronous messages from the renderer process to the main process, as well as receiving replies from the main process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/0*FcLdLwtnvlhjMYrj.png" /><figcaption>Flow of ipcMain and ipcRenderer modules</figcaption></figure><p>Equipped with that knowledge, we will now develop an application that inputs a city from the user in one window and displays the city’s current weather details in another window. The weather details are being fetched from the <a href="https://openweathermap.org/api">OpenWeatherMap API</a>. As an additional feature, we will also create our own customized menu for the application. The <strong><em>main.js</em></strong> file will now look like this,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a9fef5f0a39e29a34c628f7526fe70b2/href">https://medium.com/media/a9fef5f0a39e29a34c628f7526fe70b2/href</a></iframe><p>Since the application involves two windows, we have two functions: <strong>createMainWindow()</strong>, which creates a new browser window and loads <em>index.html</em>, and <strong>createAddWindow()</strong>, which creates a new window and loads <em>add.html. </em>The ipcMain event handler (present in the main process) receives data from the additional window (one renderer process) and sends it to the main window (another renderer process). Apart from that, we build a new menu with keyboard shortcuts by creating a new menu template.</p><p>Now the main window is generated by the <strong><em>index.html</em></strong> file, with the following piece of code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1697945e06a77962a21148a67c03fa3d/href">https://medium.com/media/1697945e06a77962a21148a67c03fa3d/href</a></iframe><p>The above code is used for displaying the weather conditions of a particular city with the help of the OpenWeatherMap API. But, where exactly is the input feature that was promised earlier?</p><p>We use another window containing a form to receive input from the user. The contents of the <strong><em>add.html</em></strong> file will achieve that purpose.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/581c184ef0d4ee79a6532b360f32db09/href">https://medium.com/media/581c184ef0d4ee79a6532b360f32db09/href</a></iframe><p>This window inputs a city from the user and sends the data to the main process through the ipcRenderer module, which in turn transfers the data to the main window to fetch data for that particular city. Now that we have the code ready, we will look at how the application turns out. As we did before, to start the application, give</p><pre>npm start</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*b_GmQPoDC8CMsZvZvPrKNw.png" /><figcaption>Input handling in a new window</figcaption></figure><p>On clicking the “Get Weather” button, the additional window closes, and the weather details are displayed in the main window, similar to the below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*4N-3KlvOyWDx6ifTvylQNw.png" /><figcaption>Weather details of Chennai in the main window</figcaption></figure><p>Voila! We have successfully implemented inter-process communication between two windows using ipcMain and ipcRenderer modules.</p><h3>Packaging the app</h3><p>We have seen how to run the application locally, but it would be cumbersome if one must use commands to fire it up every time. Think about how we used to install desktop apps in our local system. We would get the executable file from some source and execute that file to install the app in our systems. This feature of making the application available in a user-friendly manner is called <em>packaging</em>.</p><p>Electron provides us with the electron packager that bundles the whole codebase into the respective packages and makes the application production-ready. To install the electron packager, type the following command in the terminal,</p><pre>npm install electron-packager --save-dev</pre><p>Then add the following line under scripts in the <em>package.json</em> file.</p><pre>&quot;package&quot;: &quot;electron-packager .&quot;</pre><p>Now the application is ready to be packaged. Execute the packager by typing the following in the terminal,</p><pre>npm run package</pre><p>A new folder would be created in your project directory, and inside that folder, you will find an executable file. Double-clicking on that will open our created application. We did not use any commands to run the app, did we? That’s how amazing and powerful Electron JS is!</p><h3>Features of Electron JS</h3><p>Electron JS is simple enough to get started, and it is incredibly customizable. It does not require a separate interface or procedure to develop the application. Like how the webpages are designed, we used basic HTML, CSS, and Javascript to design the desktop application. We also decided on the window size, the menu options, and the keyboard shortcuts to perform desirable actions as well. As the icing on the cake, the Electron JS apps are as compatible with Linux and macOS as it is with Microsoft Windows.</p><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QvhNe9aPSr2SaXlP.jpg" /><figcaption>Source: Google images</figcaption></figure><p>That brings us to the end of the article. Hopefully, this has given you an insight into the world of desktop applications and the process of developing them. However, this is just the beginning. The quest for knowledge must never cease to exist.</p><p><strong><em>Happy learning!</em></strong></p><h3>References</h3><ul><li><a href="https://www.electronjs.org/">The Official Electron JS website</a></li><li>The <a href="https://github.com/electron/electron">Official GitHub repository</a> of Electron</li></ul><p><em>This article is published as a part of ‘</em><strong><em>JavaScripted’</em></strong><em> under </em><a href="https://medium.com/spidernitt"><em>Spider Research and Development Club, NIT Trichy</em></a><em> on a Web Wednesday!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52b55088aacc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/spidernitt/getting-started-with-desktop-applications-using-electron-js-52b55088aacc">Getting Started with Desktop Applications using Electron JS</a> was originally published in <a href="https://medium.com/spidernitt">Spider R&amp;D</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FALLBALL FINALS — ONE HELLUVA MATCH]]></title>
            <link>https://medium.com/@koyilnet/fallball-finals-one-helluva-match-5537922d6889?source=rss-1acf515ed122------2</link>
            <guid isPermaLink="false">https://medium.com/p/5537922d6889</guid>
            <category><![CDATA[sports]]></category>
            <category><![CDATA[match-report]]></category>
            <category><![CDATA[sportsfete19]]></category>
            <category><![CDATA[imagination]]></category>
            <category><![CDATA[first-post]]></category>
            <dc:creator><![CDATA[Subramanian V V]]></dc:creator>
            <pubDate>Sat, 07 Sep 2019 06:25:29 GMT</pubDate>
            <atom:updated>2019-09-07T06:25:29.329Z</atom:updated>
            <content:encoded><![CDATA[<h3>FALLBALL FINALS — ONE HELLUVA MATCH</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*gCITQwmFilpND5w_" /></figure><p><strong>NIT Trichy:</strong> The much awaited fallball tournament finals were held at the NSO Ground yesterday evening. There was much enthusiasm and excitement surrounding the fallball tournament, since it was introduced in Sportsfete history for the first time this year. This new sport suggested by one of the students of NIT-T had garnered widespread attention among his peers. After the initial rounds, the semifinals were played on Saturday between CSE — ECE and Mech — ICE. CSE and Mech won 1–0 and 3–1 respectively. The finale between CSE and Mech attracted huge crowd as it was the last event of Sportsfete’19. Mech were the favourites, yet CSE were no pushovers. The atmosphere was electric and the stadium reverberated with cheers for the two finalists.</p><p>The match kicked off at 6:30 pm. Mech started on the offensive mode with a 4–3–2–1 formation and their captain Mithun made rapid strides into the opposition half. Some smart defending by the CSE centre back Ajay kept the score goalless at the end of 10 minutes. On a quick counterattack after the Mech forward Vinod missed a long diagonal ball, the CSE midfielders pierced the Mech defence with their passes and released their forward Sumit with only the outfield goalie to beat. He controlled the ball with his feet and smashed a rocket left-footer past the goalie. The goal sent the CSE supporters into frenzy. The match restarted and quickly Mech players started to have more possession in search of an equalizer. Two minutes were added at the end of 25 minutes. The CSE players tightened up their defence and they went into the half-time leading 1–0.</p><p>After 20 minutes of break, the players entered the field to huge cheers from the crowd. Mech team which lacked that cutting edge in the first half, manoeuvred the field expertly and picked out gaps. The continuous pressure cracked the CSE defence and they ended up conceding a free kick just outside the D for manhandling. Their captain Mithun took the free-kick and guided the ball towards the goal where their centre back Rohan calmly slotted in the header sending the crowd into raptures. With 15 minutes remaining, both teams pushed for a winner and in pursuit of that elusive goal, both team players committed mistakes and fouls. Amidst all these, a passing shower stopped the game for a few minutes.</p><p>In the meantime, the players slipped in fluids and resumed the match. With 10 minutes remaining, there was a visible sign of palpitations among both camps. It looked like the team which blinks first will end up finishing second best in this amazing game of fallball. At the end of the 25 minutes of the second half, three minutes of stoppage time was provided. The CSE players motored on for one last time. With 90 seconds left on the clock, an inch perfect pass by the CSE midfielder Raghav was well received by Sumit and he unleashed a fierce kick towards the goal. The ball brushed the goalie’s legs and trickled into the goal. The final whistle was blown and CSE department ended up as the winners of the inaugural fallball fest at NIT Trichy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5537922d6889" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>