Geshan's Blog
1,424 FOLLOWERS
Geshan Manandhar is a software engineer with more than 15 years of experience. His blog features Articles on technology, programming, DevOps, API, PHP, and much more. He also writes about software engineering, and web development covering topics like PHP, javascript, docker, microservices, etc.
Geshan's Blog
4d ago
Docker has revolutionized the way we build, ship, and run applications. By packaging software into standardized units called containers, Docker offers numerous benefits, including portability, efficiency, and scalability. In this tutorial, you will delve into the fundamentals of Docker, guiding you from the basic concepts of Docker for beginners, and empowering you to utilize this powerful technology in your projects. Let’s get started!
Table of contents #
What are Containers?
What is Docker?
Why Use Containers and Docker?
Containers vs. Virtual Machines
Docker Concepts
Dockerfile
Docker Ima ..read more
Geshan's Blog
1M ago
Nginx, a free, open-source, high-performance web server and reverse proxy, has become a cornerstone of modern web applications. Its versatility, efficiency, and ability to handle high-traffic loads make it a popular choice among developers and organizations alike. In this post, you are going to learn how to use Niginx with Docker and Docker Compose with a simple example and another example that is closer to a real-life scenario, let’s get started!
Table of contents #
Nginx and Docker compose
Prerequisites
Nginx Docker Compose a simple example
Multi-container example with Nginx and Docker comp ..read more
Geshan's Blog
2M ago
Docker Compose is a powerful tool that allows you to define and run multi-container Docker applications. It simplifies the process of managing and orchestrating multiple containers, making it a popular choice for development and testing environments. One of the key features of Docker Compose is the depends_on option, which allows you to specify dependencies between services. In this beginner's guide, you will explore how to use depends_on effectively, ensuring your services start up in the correct order and function seamlessly. Let’s get started!!
Table of contents #
Docker compose depends on ..read more
Geshan's Blog
2M ago
Gemini by Google is a powerful LLM and in this tutorial, you will use the Gemini Pro 1.0 version to summarize text from a URL. In the previous part you learned how to set up a GCP project, try out the prompt on Vertex AI studio and then try to code on the CLI. In this part, you will refactor and converter that code to take in a URL, scrape its content, and use it to create the summary, let's get going!
Table of contents #
Where we left in the last part
Build the Node.js API
Create gemini.js file
Add scraper.js file
New cli.js
Build the Express.js API
Conclusion
Where we left in the last p ..read more
Geshan's Blog
2M ago
Gemini by Google is a powerful multimodal Large Language Model (LLM) capable of taking images, videos, and text as input and generating text and images. Gemini has 3 versions Nano, Pro, and Ultra. For this post, you will use Gemini Pro 1.0 via Vertex AI to create summarizer then run it on the CLI using Node.js, let’s get started!
Table of contents #
Prerequisites
Summarizer with Gemini API on Vertex AI
Run the summarizer in the CLI with Node.js
Next steps
Conclusion
Prerequisites #
Before getting your hands dirty with the code, below are some prerequisites you should have:
You should have a ..read more
Geshan's Blog
3M ago
Google Cloud Shell Editor is like having a VS code editor inside of your browser that can be used to get most things done. In this post, you will use the Google Cloud Shell editor to pull in code from an open-source repository and deploy it to Cloud Run without leaving your browser. Let’s get started!
Table of contents #
Google Cloud Shell Terminal
Cloud Shell Editor
Example code to pull in from GitHub
Make a small change
Deploy code to Cloud Run
Check the working app
Conclusion
Google Cloud Shell Terminal #
Google Cloud Shell is your online command center for Google Cloud. It's a pre-config ..read more
Geshan's Blog
4M ago
TypeScript has emerged as a powerful tool that brings static typing to JavaScript, enhancing code maintainability and reducing bugs. One of TypeScript's features that significantly contributes to code clarity and organization is Enum, short for enumeration. In this blog post, you will learn more about Enums in TypeScript, why and how to use them, let’s get going!
Table of contents #
What are Enums
Why Use TypeScript Enums
Readability and Intention
Code Maintainability
Autocompletion Support
Avoiding Magic Values
How to Use Enums in TypeScript
Example - Order Status
Order Status with Numer ..read more
Geshan's Blog
4M ago
Like previous years, I would like to write a quick recap of the things I have done in 2023. Taking some time to reflect on the things achieved this year from a professional standpoint would be a great look back, let’s get started!
Table of contents #
Highlights
Interviews for 2 podcasts
Harka’s podcast
Careersy podcast
Blogging and writing in 2023
Geshan.com.np
Most viewed blog posts of 2023
Traffic is down (thanks to LLMs, especially ChatGPT)
Community building
GDG Cloud Sydney
Other GDG communities
GDG Darwin
GDG Canberra
More coming soon
Mentor at GDG Devfest Kathmandu
Talks an ..read more
Geshan's Blog
4M ago
In the ever-evolving landscape of technology, the importance of good software engineering cannot be overstated. It's the core of efficient, scalable, and maintainable software solutions. While there are various methodologies and practices, a key aspect often overlooked is the art of finding the right solution at the correct layer and level of abstraction. On top of that, reliable software systems are best built with boring technology. You will learn more about these topics in this post, let’s get started!
Table of contents #
Select the Right Layer for Your Solution
Database vs. Code
Code Lay ..read more
Geshan's Blog
4M ago
As developers, we constantly dance between writing code, managing infrastructure, and keeping tabs on deployment and logs. Wouldn't having an AI teammate that simplifies these tasks be amazing? Duet AI is a Google AI tool that acts as your coding buddy and streamlines the development process, for most applications including Node.js. In this post, you will learn how to use Duet AI to write a simple Node.js API application and deploy it on Google Cloud Run.
Install Duet AI on VS Code #
You can install the Google Cloud Code (Duet AI) extension to VS Code or IntelliJ/JetBrains IDE. For this blog p ..read more