In Cursor AI, Rules are customizable instructions provided to the AI (Agent) model to guide how it handles your requests. Simply put, Rules act as fixed prompts that are always attached to the context whenever the AI executes, helping it remember your principles and preferences consistently. By setting up Rules, you can personalize the AI’s behavior to match your programming style, coding standards, and workflow.
SOLID is an acronym for five design principles, coined by the American computer scientist and instructor Robert C. Martin. The goal of these principles is to assist developers in creating a understandable, flexible, and maintainable software or system. So let’s dive in to see what kind of advantage these principles can offer.
Progressive Web App: A native app experience wrapped in a website
Have you ever thought that a website could behave like a native app on mobile devices—such as Swift for iOS or Java/Kotlin for Android? Or the possibility of using an application offline while still supporting basic display and interaction features?
Let me introduce you to a solution for this: it's called a Progressive Web App (PWA).
Getting Started with GitLab Runner: A Comprehensive Guide to GitLab Runner
GitLab Runner is an open-source application designed to execute jobs defined in GitLab CI/CD pipelines. Whether you’re building, testing, or deploying code, GitLab Runner acts as the engine driving automation in your development lifecycle.
1. Key Features of GitLab Runner:
Multi-Platform Support: Works across Linux, macOS, Windows, and even Docker containers, providing unmatched versatility.
Executor Options: Includes Shell, Docker, and Kubernetes executors to cater to various infrastructure setups.
Concurrent Jobs: Allows multiple jobs to run simultaneously, improving pipeline efficiency.
Open Source: Being open-source, GitLab Runner offers flexibility for custom configurations.
2. Installing GitLab Runner on Window:
For Windows users, download the GitLab Runner binary from the official GitLab website and execute the following commands:
cd install-folder
.\gitlab-runner.exe install
.\gitlab-runner.exe start
install-folder is the directory without the gitlab-runner.exe file.
3. Registering GitLab Runner:
Once installed, GitLab Runner must be registered with a GitLab instance. The registration process links the runner to a GitLab project or instance and specifies how jobs should be executed. Run the following command to start registration:
gitlab-runner register
During registration, you will be prompted to enter:
GitLab instance URL
Registration token (found in GitLab under Settings > CI/CD > Runners)
Enter a description for the runner.
the job tags, separated by commas
an optional maintenance note for the runner.
Executor type (Shell, Docker, Kubernetes, etc.)
Get GitLab instance URL and token
After successful registration, the runner is ready to execute CI/CD jobs.
How Does GitLab Runner Work?
The process revolves around configuring .gitlab-ci.yml, the pipeline definition file, which outlines the stages and jobs to be executed. GitLab Runner fetches jobs from the CI/CD pipeline and performs them within the specified environment (such as a Docker container).
Example
stages:
- build
- test
- deploy
build_job:
stage: build
script:
- echo "Building the application..."
test_job:
stage: test
script:
- echo "Running tests..."
deploy_job:
stage: deploy
script:
- echo "Deploying the application..."
4. Conclusion
GitLab Runner is a powerful tool that enhances GitLab CI/CD by executing jobs efficiently across different environments. By properly installing, configuring, and optimizing GitLab Runner, teams can significantly improve their development workflows and CI/CD performance.
If you’re looking to automate your builds, tests, and deployments with GitLab, setting up GitLab Runner is a crucial step
Implementing Two-Factor Authentication (2FA) with TOTP in Flask
Two-factor authentication (2FA) is a crucial security feature that adds an extra layer of protection to your web applications. In this tutorial, we'll learn how to implement Time-based One-Time Password (TOTP) authentication in a Flask application, similar to what you see in Google Authenticator.
The best apps to learn Japanese: a comprehensive guide for beginners and beyond
Japanese isn’t the easiest language to learn, but with supportive tools, it can quickly become a rewarding part of your daily routine. In this guide, I will explore some of the best apps available to help you master Japanese, from beginner-friendly options to advanced resources. Whether you're just starting out or aiming for fluency, these apps cater to various learning needs and levels.
How Effective Are Translation Tools? A Look at Their Pros and Cons
In today's globalized world, translation tools and machine translation have become indispensable for businesses, individuals, and organizations. However, while machine translation offers significant advantages, it also comes with limitations that can impact accuracy and context.
Continuing the series on web development, this article shares my experience with MinIO, which allows users to build an S3 Storage locally. This is a case study that I usually encounter in my work. Today, cloud storage is commonly used in many projects, including AWS S3.
Nowaday, AI can do many tasks in the development process. It helps us to speed up the many phases, example: Coding, reviewing, testing...
In this post, I will introduce how to use AI to support the coding phase (Frontend)
How to handle difficult situations when interpreting between Japanese clients and Vietnamese developers
Being a comtor is not just about translating—it’s about resolving tricky situations between Japanese clients and Vietnamese developers. Here are some real-life scenarios and smart ways to handle them!
At ISB Vietnam, we are always open to exploring new partnership opportunities.
If you're seeking a reliable, long-term partner who values collaboration and shared growth, we'd be happy to connect and discuss how we can work together.