<?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: Prashant Pandey</title>
    <description>The latest articles on DEV Community by Prashant Pandey (@prashantpandey9).</description>
    <link>https://dev.to/prashantpandey9</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%2F297532%2F430441f5-ce0b-40d5-8f19-eaeea358bf08.jpeg</url>
      <title>DEV Community: Prashant Pandey</title>
      <link>https://dev.to/prashantpandey9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prashantpandey9"/>
    <language>en</language>
    <item>
      <title>How to create a SSH key for your github?</title>
      <dc:creator>Prashant Pandey</dc:creator>
      <pubDate>Sun, 24 Jan 2021 03:04:57 +0000</pubDate>
      <link>https://dev.to/prashantpandey9/how-to-create-a-ssh-key-for-your-github-4fjl</link>
      <guid>https://dev.to/prashantpandey9/how-to-create-a-ssh-key-for-your-github-4fjl</guid>
      <description>&lt;p&gt;I created a video to help people to understand about the github ssh key, so here is the video I am attaching with it. Please share it if you found it helpful.&lt;/p&gt;

&lt;p&gt;YouTube: &lt;iframe width="710" height="399" src="https://www.youtube.com/embed/4E50Q-hRc9c"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>github</category>
      <category>pprogramming</category>
      <category>python</category>
    </item>
    <item>
      <title>Theme Toggler</title>
      <dc:creator>Prashant Pandey</dc:creator>
      <pubDate>Sat, 02 Jan 2021 17:02:33 +0000</pubDate>
      <link>https://dev.to/prashantpandey9/theme-toggler-5bj7</link>
      <guid>https://dev.to/prashantpandey9/theme-toggler-5bj7</guid>
      <description>&lt;h2&gt;
  
  
  A theme change toggler.
&lt;/h2&gt;

&lt;p&gt;So I was just doing some work yesturday and I think let's make a theme toggler button using a checkbox, and I found that it was pretty simple to create one.&lt;br&gt;
Here I am sharing it to you.&lt;br&gt;
We just need some small steps to create it, &lt;/p&gt;

&lt;p&gt;Step1: Create a wire frame for checkbox in HTML&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;input type='checkbox' id='check' /&amp;gt;
&amp;lt;label for='check'&amp;gt;&amp;lt;/label&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step2: Create css for it just use some css selector properties to tackle the checked and unchecked checkbox.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;body{
  top: 50%;
  left: 50%;
  position: absolute;
  background-color: #000;
}
input[type=checkbox]{
  display:none;
}
label{
  cursor: pointer;
  width: 100px;
  height: 50px;
  background: linear-gradient(to right, hsl(210, 78%, 56%), hsl(146, 68%, 55%));;
  display: block;
  border-radius: 100px;
  position: relative;

}
label::after{
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  top: 5px;
  left: 5px;
  background-color: #fff;
  border-radius: 50%; 
  transition: all 0.5s;
  transform: translateX(0px);
}


input[type=checkbox]:checked + label::after{
    transition: all 0.5s;
    transform: translateX(50px);
    background-color: #000;
}


.dark{
  postion: absolute;
  margin-top: 34px
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it , here is the result from this little code.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/prashantpandey9/embed/YzGaGXq?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
      <category>css</category>
    </item>
    <item>
      <title>Redux Concept</title>
      <dc:creator>Prashant Pandey</dc:creator>
      <pubDate>Mon, 28 Dec 2020 06:37:27 +0000</pubDate>
      <link>https://dev.to/prashantpandey9/redux-concept-e53</link>
      <guid>https://dev.to/prashantpandey9/redux-concept-e53</guid>
      <description>&lt;p&gt;These days I am revising some concept which I learned while doing some projects. These concepts are useful if you are creating any website using react or some other technology. So we know that react uses props and states to manage the design and flow of data on any website. When working on small projects with a simple tree structure, it is easier to maintain the states of the components and pass the data between the components. For this, the data needs to reside in a single component so that it can be passed on to the sibling components. The method needed to update the state also needs to reside in the parent component and be passed to the sibling components as props.  So state management gets messy when the app gets complex. &lt;/p&gt;

&lt;p&gt;Here comes the concept called redux. Redux is an open-source JavaScript library for managing application state. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M8Ga0YeT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/1086/1%2Aa15Fjk16s4CVlfHaTkO73w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M8Ga0YeT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://miro.medium.com/max/1086/1%2Aa15Fjk16s4CVlfHaTkO73w.png" alt="Image From https://miro.medium.com/max/1086/1*a15Fjk16s4CVlfHaTkO73w.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are some terminology for the Redux.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Types&lt;/li&gt;
&lt;li&gt;Reducers&lt;/li&gt;
&lt;li&gt;Actions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;First of all, we need to create a store where our states will store. To change something in the state, we need to dispatch an action. Actions get the data (or something accordingly) and according to the data, it will call the reducers to change or update the state. Lets understand with an example.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { createStore } from 'redux';
const USER_LOADING = 'USER_LOADING';

const initialState = {
  isLoading: false,
};

function rootReducer(state = initialState, action) {
  switch (action.type) {
    case USER_LOADING:
      return {
        ...state,
        isLoading: true,
        error: null,
      };

    default:
      return state;
  }
}

const loading = () =&amp;gt; (dispatch, getState) =&amp;gt; {    //This is action.
  dispatch({
    type: USER_LOADING,
  });
};

const store = createStore(
  rootReducer,
);


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So here in this example if we need to change the state of isLoading state to true we just need to call the action loading() in the component and it will automatically update the state for all.&lt;br&gt;
This is it for now, if you have any question you can dm me.&lt;br&gt;
Contact shared in my &lt;a href="https://prashantpandey.ml/"&gt;portfolio&lt;/a&gt;.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to get production access to AWS Simple E-mail Service</title>
      <dc:creator>Prashant Pandey</dc:creator>
      <pubDate>Mon, 23 Nov 2020 16:42:28 +0000</pubDate>
      <link>https://dev.to/prashantpandey9/how-to-get-production-access-to-aws-simple-e-mail-service-71b</link>
      <guid>https://dev.to/prashantpandey9/how-to-get-production-access-to-aws-simple-e-mail-service-71b</guid>
      <description>&lt;p&gt;Here I will tell you about how you can get production access for the AWS SES. If you have any website and you want to send emails to your users and want to get so many subscribers to your blog or for your website then it's a good choice to send them emails and remind them about your website. So there are so many websites that will provide you this type of service for email marketing. But some of them are very expensive and some of them are cheaper. Here we are choosing AWS Simple E-mail service because its pricing is not much as compare to other services.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing for  AWS SES
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.prashantpandey.ml%2Fstatic%2F2ffe1784f057460d92e12633c5be7227%2F8d68c%2Fpricing.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.prashantpandey.ml%2Fstatic%2F2ffe1784f057460d92e12633c5be7227%2F8d68c%2Fpricing.png" alt="AWS Pricing"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For sending emails from AWS SES you need an AWS account and in this free account you don't have any production access to your SES service but its the sandbox access, means that you can only send emails to the verified emails from your SES dashboard, so for production access you have to request higher sending quotas for email.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.prashantpandey.ml%2Fstatic%2F1839933f96e1801d42f74fcc730a58d9%2Ff73a1%2Fsanbox.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.prashantpandey.ml%2Fstatic%2F1839933f96e1801d42f74fcc730a58d9%2Ff73a1%2Fsanbox.png" alt="Sandbox"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Requesting a quota increase
&lt;/h2&gt;

&lt;p&gt;So requesting a higher sending quota for Amazon SES, open a case in AWS Support Center, here is the link to the instructions &lt;br&gt;
&lt;a href="https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-limits.html#channels-email-manage-limits-increase-case" rel="noopener noreferrer"&gt;Amazon docs&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;You have to describe your use case effectively because if you do not describe it correctly they will not accept your request. So you have to convince them that you are not misusing their service. I also applied it for and here is my use case description.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.prashantpandey.ml%2Fstatic%2F8ba77dc1f993102ef05c943ecec921ca%2Fce206%2Fsesrequest.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.prashantpandey.ml%2Fstatic%2F8ba77dc1f993102ef05c943ecec921ca%2Fce206%2Fsesrequest.webp" alt="Use Case"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I added my official website and described how I am managing the bounce emails, complaints &lt;br&gt;
and unsubscription and they give me the production access to the service.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.prashantpandey.ml%2Fstatic%2F30924e86047e5fdcebb598f14e40aaa7%2F6d63c%2Fawsreply.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fblog.prashantpandey.ml%2Fstatic%2F30924e86047e5fdcebb598f14e40aaa7%2F6d63c%2Fawsreply.webp" alt="AWS Reply"&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thanks for reading !!!!!&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>discuss</category>
      <category>help</category>
    </item>
  </channel>
</rss>
