Most Recent Posts

NextJS 13 Authentication With NextAuth.js And Prisma

Hi guys, in today's post, we will be focusing on authentication with the new App Router in Next.js 13. Since version 13.4, App Router is no longer an experimental feature, that's why I think we should gradually adopt it into our daily workflow. As for authentication, we will use NextAuth.js (although at the time you're reading this post, its name would probably be changed to Auth.js) and Prisma Client to talk to PostgreSQL database.

Read more

How To Install Windows Server 2022 On VMware Fusion

Hi guys, in today's post, I will show you how to install Windows Server 2022 on MacOS using VMware Fusion. Let's get started!

Read more

Vanilla GraphQL With NodeJS And PostgreSQL - Session & Authorization

In the previous post, we have gone through a long long journey to rewrite our app to use PostgreSQL. Today, we will get introduced to session management and also have some fun with authorization.

Read more

Vanilla GraphQL With NodeJS And PostgreSQL - Adding Database

In today's post, we will replace the in-memory database with a real one that is used a lot in production: PostgreSQL. We will learn how to utilize Docker's power to set up the database in an extremely easy and enjoyable way. Then, we will rework the DB class to interact with the database by building SQL queries. That sounds like a lot of work but believe me, there's gonna be a lot of fun!

Read more

Vanilla GraphQL With NodeJS And PostgreSQL - Refactoring

In the previous post, we already set up the application with a GraphQL server. I told you guys that in this post, we will continue to introduce PostgreSQL to replace the in-memory database. However, I had a change of thoughts since it would involve refactoring the source code and then the actual work of introducing PostgreSQL itself. That's why I decided to split it into two separate posts like above. Believe me, in the next post, you will see how easy it gets to start off with an already refactored codebase.

Read more

Vanilla GraphQL With NodeJS And PostgreSQL - Setting Up Application

In this post and the next coming one, I would like to walk you through a journey to fire up GraphQL without its fancy friends but just vanilla graphql package. In fact, in the next post when we introduce using PostgreSQL, we won't be using any ORM or SQL builder either. The whole point of doing this is not about giving up using third parties entirely, but to actually see that it's not so difficult to live without them, and most importantly, we will be able to gain a deeper understanding of how things work and appreciate how much third parties make life easier by abstracting away the heavy works.

Read more

Extracting Text From Image With OpenCV And Tesseract

Lately, I've been working on some OCR projects in which I got to write C++ for most of the time. Speaking of C++, a language that can blow your whole leg off, though the high performance is intriguing, the whole process of environment setting – configuring – compiling might be unnecessarily daunting, especially to those who have no experience with compiled languages like C or C++.

Read more

Scrape historical weather data with requests, BeautifulSoup, pandas and SQLAlchemy

As you may know, many highest-temperature-ever records have been broken in this summer. Another iceberg is floating and melting away. And yet Amazon is red. Climate change is definitely not a goddamn joke. It breathes fire! I have been thinking seriously about climate change for a while now (yeah, just thinking!). And in order to actually do something to bring about changes, it's necessary to understand what is happening out there.

Read more

Create The Transformer With Tensorflow 2.0

Today, we are going to create the Transformer entirely from scratch. That seems impossible at first, I know it. But as you will see in a moment, with the help of Tensorflow 2.0 (and Keras at its core), building such a complicated model is no different from stacking up Lego pieces.

Read more

Neural Machine Translation With Attention Mechanism

Hello guys, spring has come and I guess you’re all feeling good. Today, let’s join me in the journey of creating a neural machine translation model with attention mechanism by using the hottest-on-the-news Tensorflow 2.0.

Read more

Categories

Most Popular Posts