Skip to content

Commit

Permalink
fix: text wrappings
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravkhunger committed Jun 8, 2023
1 parent 2caa9fa commit 21ceac2
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ If you click on the user profile, it will show you a popup. You can click on man

When you clicked on manage account, you might have noticed that the URL was completely different and was not looking good. So let's see how to keep users on our site itself!

Create the sign in, sign up, and the user page
Inside the ```pages``` folder we will create 3 folders named
Create the sign in, sign up, and the user page. Inside the ```pages``` folder we will create 3 folders named:

- sign-in
- sign-up
- user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ excerpt: "In this article, I share what I have discovered about open-source and
image: "https://cdn.hashnode.com/res/hashnode/image/upload/v1634905825976/pjc7Kwv_F.png"
notice: "Image by [Stories](https://www.freepik.com/stories) and [Alzea Arafat](https://dribbble.com/alzea)."
audioId: 3996039
disableAudioPFP: true
category: open-source
tags: ["beginners", "open-source", "tips"]
author: benny
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ Awesome!!
Now, let’s get to the main part, which is building out our CRUD functionality. Let’s start with the easiest, which is to fetch all the posts:

BUT WAIT A MINUTE!

Remember that `Task` entity we made? Like a hundred years back? Yep, that one.

That is a database **Entity**, but when we get all tasks we have to return a `Task` and we can’t return an **Entity** cause that’s dumb. So what we’re gonna have to do is, to make `Task` a GraphQL type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ Hello, in this post I will go over authentication, various methods to implement

## What is Authentication?

Authentication or auth for short is the process where a server recognizes **the identity of a user**. Authorization is then done, to allocate a role to the
authenticated user and allocate the required services to that particular user.
Authentication or auth for short is the process where a server recognizes **the identity of a user**. Authorization is then done, to allocate a role to the authenticated user and allocate the required services to that particular user.

There are 2 ways you can implement auth:
- Sessions
Expand All @@ -35,18 +34,17 @@ The process begins with the client:
- And sending the e-mail and the hashed password to the server

Hashing is the process of **scrambling** a value using a key that is sent to an algorithm. **Hashed values can't be decrypted!**

[Argon2](https://argon2.online) is an extremely secure hashing algorithm that can be used to hash passwords.

While validating the credentials, the server hashes the given password, and the hash stored in the database (during register) and compares both of them. If the hashes
match, the server then sends a request to the **session store** for the session ID.

A session store is a medium where data related to the logged-in user is stored. It could be in memory or a database. [Redis](https://redis.com) is commonly used
as a session store because of its speed.
A session store is a medium where data related to the logged-in user is stored. It could be in memory or a database. [Redis](https://redis.com) is commonly used as a session store because of its speed.

The session data contains anything linked to the user who is logged in. It could be the `userId` or any field that is unique to the user.

This session ID is then sent back to the server, which in turn, sends the ID of the session to the client in the form of a **cookie**. Data on the user can then be accessed
using this session ID which the store can query.
This session ID is then sent back to the server, which in turn, sends the ID of the session to the client in the form of a **cookie**. Data on the user can then be accessed using this session ID which the store can query.

To log the user out, you can destroy the cookie and delete the key-value pair associated with the session ID in the store.

Expand All @@ -55,8 +53,8 @@ Now let's take a look at JSON Web Tokens.
## JSON Web Tokens (JWTs)

JWTs take a completely different approach to solving the problem. Authentication is done on the **client-side** here, rather than in the **server** like in sessions.
The process can be illustrated in this way:

The process can be illustrated in this way:

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1652256338392/ET6Zrh480.png)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ This means we will take each point on a city’s boundary and then use it to for

## How to get the co-ordinates?

Websites needed
Here’s a list of websites you need to get the working JSON file containing the coordinates of the boundary.

- [OpenStreetMap Nominatim](http://nominatim.openstreetmap.org/)
Expand Down
4 changes: 1 addition & 3 deletions _posts/gouravkhunger/2021-02-13-toasty-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,4 @@ private CharSequence getFormattedMessage() {

This was a tutorial on the [Toasty](https://github.com/GrenderG/Toasty) library, I hope you got well insights on it.

If you wish me to post a tutorial on a specific library, comment it down!

Thanks for reading! Happy Coding :)
If you wish me to post a tutorial on a specific library, do comment it down. Thanks for reading!
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ The biggest challenge I faced during development was building the proxy API, whi

I had to look through a lot of articles to understand how Node.js works and how would I get my API to work.

With considerable theoretical help from @[SamJakob](@SamJakob), I got clarity and could proceed to start developing the API.
With considerable theoretical help from @[SamJakob](https://hashnode.com/@SamJakob), I got clarity and could proceed to start developing the API.

To get user profiles from Auth0 Management API, we first get an access token that can be used to retrieve the profile.

Expand Down
8 changes: 7 additions & 1 deletion _posts/gouravkhunger/2021-09-14-3-years-of-blogging.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ Here in this article, I am going to share my background in technical writing - f

I was in 8th grade back then, and I was trying to learn android app development from an amazing book by J. F. Dimarzio titled "[Beginning Android Programming with Android Studio](https://amzn.to/3A93YMM)".

[![Beginning Android Development with Android Studio Book](https://cdn.hashnode.com/res/hashnode/image/upload/v1631599770243/LwI6JWpNE.jpeg)](https://amzn.to/3A93YMM)
<p data-marker="none">
<a href="https://amzn.to/3A93YMM">
<img
alt="Beginning Android Development with Android Studio Book"
src="https://cdn.hashnode.com/res/hashnode/image/upload/v1631599770243/LwI6JWpNE.jpeg" />
</a>
</p>

I had also learned basic web dev skills like HTML and CSS. Javascript, or broadly, web dev didn't appeal to me that much so I went to learn native app development. I didn't know about frameworks like Vue or React back then, so that was it.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: "How to Add Swipe Animations to a CardView in an Android App"
excerpt: "Learn how to add swipe animation to a card view. In this tutorial, we will add a sliding animation to a card view to simulate slide to refresh behaviour."
image: "https://cdn.hashnode.com/res/hashnode/image/upload/v1636707430801/EOfL2jKCy.gif"
original: "https://freecodecamp.org/news/add-swipe-animations-to-a-card-view-in-android-app"
audioId: 3467660
category: android
tags: ["animation", "app-development"]
author: gouravkhunger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ Here we are asking git to `push` our changes to the branch `learning-about-prs`

> ### Additional Note:
> Here, `origin` is linked to your fork. You can verify it by running this command in your terminal:
> <br/><br/>
>
>
> ```shell
> git remote -v
> ```
> This should show the `push` and `fetch` links which point to your fork.
> <br/><br/>
>
>
> If you change these links by using `git remote rm origin` and `git remote add origin <new-link>`, the commits will be sent to new remote then!
## 7. Make the PR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ So you have built an amazing e-store application and you wanted other developers
## What's a REST API? 🤔

Now as you have let's talk something about "REST APIs". REST stands for **Representational State Transfer**, it's one of the most popularly known type of API architecture. These types of APIs follow the client-server model, where one program sends a request and the other response with some data.

The requests are HTTP methods such as POST, GET, PUT, DELETE...

![](https://user-images.githubusercontent.com/26124625/104204412-431e2580-5453-11eb-9827-29a65aa6ff82.png)
Expand Down Expand Up @@ -744,6 +745,7 @@ Create an account on [Heroku](https://herokuapp.com/) and click on `Create new a
Head over to the settings tab and click `Reveal Config Vars`
These are the environment variables
![](https://imgur.com/aj7mHCD.png)
Add a new config var with the key as `MONGODB_URL` and the value as your MongoDB connection URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ export default function BlogIndex() {
```

This is how our main page looks 🚀

![](https://imgur.com/pmTnI47.png)

## 🚀 Deploying to Vercel
Expand Down
4 changes: 1 addition & 3 deletions _posts/usman/2022-01-09-whatsapp-api-node-js-express.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,7 @@ If the message is sent successfully, the number you entered will receive it and

## Conclusion

You can read more about the library here:

[https://wwebjs.dev](https://wwebjs.dev)
You can read more about the library [here](https://wwebjs.dev).

I hope you enjoyed building out the WhatsApp API using Node.js, Express, and `whatsapp-web.js`.

Expand Down

1 comment on commit 21ceac2

@vercel
Copy link

@vercel vercel bot commented on 21ceac2 Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

genicsblog – ./

genicsblog-git-main-genics.vercel.app
genicsblog-genics.vercel.app
genicsblog.vercel.app

Please sign in to comment.