<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hermione2408</title>
    <description>The latest articles on DEV Community by Hermione2408 (@hermione2408).</description>
    <link>https://dev.to/hermione2408</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1066774%2Fc59218f5-63e3-4524-addb-66895e162458.png</url>
      <title>DEV Community: Hermione2408</title>
      <link>https://dev.to/hermione2408</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hermione2408"/>
    <language>en</language>
    <item>
      <title>Final Report GSoC'23</title>
      <dc:creator>Hermione2408</dc:creator>
      <pubDate>Fri, 25 Aug 2023 17:15:48 +0000</pubDate>
      <link>https://dev.to/hermione2408/final-report-gsoc23-360d</link>
      <guid>https://dev.to/hermione2408/final-report-gsoc23-360d</guid>
      <description>&lt;p&gt;Author: &lt;a href="https://github.com/Hermione2408"&gt;Hermione Dadheech&lt;/a&gt;&lt;br&gt;
Organisation: &lt;a href="https://www.keploy.io/"&gt;Keploy&lt;/a&gt;&lt;br&gt;
Project: &lt;a href="https://github.com/keploy/gsoc/tree/main/2023#projects-list"&gt;Keploy Typescript/Javascript SDK&lt;/a&gt;&lt;br&gt;
Mentors:Ritik Jain,Gourav kumar&lt;/p&gt;

&lt;h2&gt;
  
  
  Abstract
&lt;/h2&gt;

&lt;p&gt;Keploy is an end-to-end (E2E) testing tool that harnesses real traffic to produce tests and mocks. This streamlines the testing process by generating mocks and stubs, making the testing process both simpler and more efficient.Initially I was privileged to contribute to the Javascript/Typescript SDK of Keploy. However, to broaden the platform's compatibility and make it language-agnostic, we initiated the development of Keploy's V2. This newer version aims to capture messages at the network layer. &lt;/p&gt;

&lt;h2&gt;
  
  
  My Contribution to Keploy
&lt;/h2&gt;

&lt;p&gt;I undertook the challenge of developing a MySQL parser using Golang. This parser is designed to capture interactions between destination and client servers. It operates in two distinct modes:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Record Mode&lt;/strong&gt;: This mode captures and generates mocks for the communications between the client and the server. Leveraging our functions, we intercept these network calls, decode them based on the binary protocol, and produce YAML files.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test Mode&lt;/strong&gt;: Utilizing the mocks generated in record mode, this mode facilitates communication with the client-server based on the client's requests.&lt;/p&gt;

&lt;p&gt;I have kept a single PR for this entire project&lt;br&gt;
PR- &lt;/p&gt;

&lt;p&gt;Additionally, for testing purposes, I crafted a MySQL application in Go, supporting all CRUD operations.- &lt;a href="https://github.com/keploy/samples-go/pull/66/files"&gt;https://github.com/keploy/samples-go/pull/66/files&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Challenges Overcome
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Shift from JavaScript to Golang&lt;/strong&gt;: My foundational experience lay in Javascript-based projects. Transitioning to Golang for this project was an immense learning curve.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MySQL's Binary Protocol&lt;/strong&gt;: This format is not intuitively readable, and the limited documentation available further accentuated the complexity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Engaging with the Community&lt;/strong&gt;: I'm not used to talking a lot in large groups. So, getting involved with the community felt challenging. I tried to improve this by writing a blog about my project.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Blogs
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://hashnode.com/preview/64ba4fc2a9165f000ffd5211"&gt;https://hashnode.com/preview/64ba4fc2a9165f000ffd5211&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Building on the foundation of my current work, I have crafted a standalone Redis parser. My immediate objective is to refine and integrate it alongside other parsers within Keploy's suite.I'll continue working on these projects, as I find the codebase very interesting. Moreover, they've given me a solid start in the open source community.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Note
&lt;/h2&gt;

&lt;p&gt;I’ve had a wonderful and productive summer during these 14 weeks journey and have learned plenty of things about golang, git,even Keploy through this project. My heartfelt gratitude goes out to my mentors, Ritik Jain and Gourav Kumar. They mentored me really well and were always ready to help me out. Finally, I would like to thank this amazing Keploy community!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Set env variables in Windows at one go</title>
      <dc:creator>Hermione2408</dc:creator>
      <pubDate>Wed, 19 Apr 2023 17:58:51 +0000</pubDate>
      <link>https://dev.to/hermione2408/set-env-variables-in-windows-at-one-go-57mk</link>
      <guid>https://dev.to/hermione2408/set-env-variables-in-windows-at-one-go-57mk</guid>
      <description>&lt;h2&gt;
  
  
  What is Environment Variable and Why do we need it?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bdJxQ-4o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/17guawiaxojpqezqlihg.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bdJxQ-4o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/17guawiaxojpqezqlihg.jpg" alt="Environment Variables in Windows" width="800" height="534"&gt;&lt;/a&gt;&lt;br&gt;
Environment Variables contain a value that can change, depending on conditions or on information passed to the program. They are information containers for all applications running on the operating system which helps to set up the software environment.&lt;/p&gt;

&lt;p&gt;It provides ease in searching.Instead of going through the entire system, the environment variable contains valuable information about system processes, configuration data, file path, and more.&lt;/p&gt;
&lt;h2&gt;
  
  
  In Windows to set all the env variable at one go
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Create a Bash file using the &lt;code&gt;.bat&lt;/code&gt; extension eg &lt;code&gt;setenv.bat&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the bash file use the following syntax for setting the env variable.&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;setx [variable_name] “[variable_value]”
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Here:&lt;br&gt;
[variable_name] - name of the variable you want to enter. &lt;br&gt;
[variable_value] -  value for the created variable.&lt;/p&gt;

&lt;p&gt;For example, let’s add a APP_NAME with a value “ABC” in bash file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;setx APP_NAME "ABC"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;After creating the bash file To set the env variable in one go We can use the following command in the command prompt
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;setenv.bat 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  To set env variable individually
&lt;/h2&gt;

&lt;p&gt;You can set each env by using the following command in command prompt&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;setx APP_NAME "ABC"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Verify its existence
&lt;/h2&gt;

&lt;p&gt;To verify its existence using Command Prompt. We can use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Set APP_NAME 
// ABC 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or you can see the set env variables through the following path in windows:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Control Panel -&amp;gt; System and Security -&amp;gt; System -&amp;gt; Advance System Setting-&amp;gt; Environment variables&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0PJSfCTF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yjxisoqa5uqrnf3se7n8.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0PJSfCTF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yjxisoqa5uqrnf3se7n8.gif" alt="Verify set env variable" width="800" height="419"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>windows</category>
      <category>env</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
