You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog/2024-03-15/prompt-engineering-guide.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ date: 2020-12-21 15:34:11
7
7
8
8
Prompt Engineering is a process of creating a prompt that is used to guide the user through a series of steps to achieve a specific goal. It is a powerful tool that can help users complete complex tasks with ease and efficiency. In this guide, we will walk you through the process of creating an effective prompt that will help you achieve your desired outcome.
9
9
10
+
<!-- truncate -->
11
+
10
12
## Step 1: Define the Goal
11
13
12
14
The first step in creating an effective prompt is to define the goal you want to achieve. This could be anything from completing a task, learning a new skill, or solving a problem. By clearly defining the goal, you can create a prompt that guides the user towards that goal.
Copy file name to clipboardExpand all lines: blog/debugging.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ draft: false
9
9
10
10
Debugging tests in a React application can be challenging, but fear not! We've got you covered with this step-by-step guide to help you overcome the common hurdles and make your tests shine. Let's dive in:
11
11
12
+
<!-- truncate -->
13
+
12
14
**Step 1: Install Create React App**
13
15
14
16
If you haven't already set up your Create React App project, start by installing it:
Copy file name to clipboardExpand all lines: blog/fix-bug-in-vscode-extension/index.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,3 +5,43 @@ tags: [vsix, VS Code, extension]
5
5
date: 2021-11-06 20:51:21
6
6
description: How to fix a bug in any VS Code extension (.vsix) by rebuilding that extension
7
7
---
8
+
9
+
If you are a developer who uses Visual Studio Code (VS Code) regularly, you might have encountered a bug in one of the extensions you use. While you can report the bug to the extension's maintainer, you might also want to fix the bug yourself if you are comfortable with the codebase. In this article, we will walk you through the process of fixing a bug in any VS Code extension by rebuilding that extension from the source code.
10
+
11
+
<!-- truncate -->
12
+
13
+
## Prerequisites
14
+
15
+
Before we begin, make sure you have the following prerequisites:
16
+
17
+
-[Visual Studio Code](https://code.visualstudio.com/) installed on your machine.
18
+
-[Node.js](https://nodejs.org/) installed on your machine.
19
+
-[npm](https://www.npmjs.com/) installed on your machine.
20
+
- Basic knowledge of JavaScript and TypeScript.
21
+
22
+
## Steps to Fix a Bug in a VS Code Extension
23
+
24
+
Here are the steps to fix a bug in a VS Code extension:
25
+
26
+
1.**Clone the Extension Repository**: The first step is to clone the repository of the extension you want to fix. You can find the repository link on the extension's marketplace page or GitHub repository.
27
+
2.**Install Dependencies**: Navigate to the cloned repository directory and install the dependencies using npm. You can do this by running the following command:
28
+
29
+
```bash
30
+
npm install
31
+
```
32
+
3.**Fix the Bug**: Identify the bug you want to fix and make the necessary changes to the codebase. You can use the debugging tools provided by VS Code to help you debug the issue.
33
+
4.**Build the Extension**: Once you have fixed the bug, you need to build the extension to generate the `.vsix` file. You can do this by running the following command:
34
+
35
+
```bash
36
+
npm run build
37
+
```
38
+
5.**Pack the Extension**: After building the extension, you can pack it to create the `.vsix` file. You can do this by running the following command:
39
+
40
+
```bash
41
+
npm run vsce package
42
+
```
43
+
6. **Install the Extension**: Finally, you can install the fixed extension by opening VS Code, navigating to the Extensions view, clicking on the ellipsis (`...`) icon, and selecting "Install from VSIX...". Choose the `.vsix` file you generated in the previous step to install the fixed version of the extension.
44
+
7. **Test the Extension**: Once the extension is installed, test it to ensure that the bug has been fixed successfully. You can also share the fixed version of the extension with the community or the extension maintainer.
45
+
8. **Contribute Back**: If you have fixed a bug in an open-source extension, consider contributing back to the original repository by creating a pull request. This will help the community benefit from your fix and improve the extension for everyone.
46
+
47
+
By following these steps, you can fix bugs in any VS Code extension and contribute to the improvement of the VS Code ecosystem. Happy coding! 🚀
Copy file name to clipboardExpand all lines: blog/from-ftp-client-to-github-action.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ draft: false
9
9
10
10
In the early days of web development, the most common way to deploy a website was to use an FTP client. This involved manually uploading files to a remote server, which was a time-consuming and error-prone process. As web development practices evolved, so did the tools and techniques for deploying websites. One of the most significant advancements in this area has been the introduction of continuous integration (CI) and continuous deployment (CD) pipelines, which automate the process of building and deploying web applications.
11
11
12
+
<!-- truncate -->
13
+
12
14
In this article, we'll take a look at the evolution of remote file management, from the use of FTP clients to the adoption of GitHub Actions for automated deployment.
Copy file name to clipboardExpand all lines: blog/getting-started-with-vite/index.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ import './style.css';
30
30
31
31
Vite is a modern build tool that offers faster development times and optimized builds. It aligns with modern web standards and provides out-of-the-box support for TypeScript, making it an excellent choice for React development. In this blog post, we will learn how to get started with React by creating a new app using Vite. We will follow the steps to set up our development environment and build our first React application.
32
32
33
+
<!-- truncate -->
34
+
33
35
## Quick Start
34
36
35
37
To get started with Vite, we need to have Node.js installed on our system. We can install Node.js by downloading the installer from the official website or using a package manager. Once we have Node.js installed, we can use npm to create a new Vite project with the React template.
Copy file name to clipboardExpand all lines: blog/git-best-practicies.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ hide_table_of_contents: true
9
9
10
10
Git is a powerful tool for managing the development of software projects, but it can be challenging to use effectively. In this article, we'll take a look at some best practices for using Git, including how to structure your commits, how to manage branches, and how to collaborate with others. By following these best practices, you can make your development process more efficient and less error-prone.
11
11
12
+
<!-- truncate -->
13
+
12
14
## Commit Often, Perfect Later, Publish Once
13
15
14
16
One of the most important best practices for using Git is to commit your changes often. This means that you should make small, focused commits that capture a single logical change to your code. By committing often, you can keep a detailed history of your changes, which makes it easier to understand the evolution of your codebase and to track down bugs.
Copy file name to clipboardExpand all lines: blog/install-mongodb-linux.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ draft: false
9
9
10
10
MongoDB is a popular NoSQL database that is known for its flexibility and scalability. It is widely used in modern web applications and is a great choice for storing and managing large volumes of data. In this article, we will walk you through the process of installing MongoDB on a Linux system, specifically Debian Bullseye.
11
11
12
+
<!-- truncate -->
13
+
12
14
## Step 1: Import the MongoDB GPG Key
13
15
14
16
The first step is to import the MongoDB GPG key, which is used to verify the authenticity of the MongoDB packages. You can do this by running the following command in your terminal:
Copy file name to clipboardExpand all lines: blog/install-mongodb-windows.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ draft: false
9
9
10
10
MongoDB is a popular NoSQL database that is known for its flexibility and scalability. It is widely used in modern web applications and is a great choice for storing and managing large volumes of data. In this article, we will walk you through the process of installing MongoDB on a Windows system.
11
11
12
+
<!-- truncate -->
13
+
12
14
## Step 1: Download the MongoDB Installer
13
15
14
16
The first step is to download the MongoDB installer from the official MongoDB website. You can find the installer at the following URL: [https://www.mongodb.com/try/download/community](https://www.mongodb.com/try/download/community)
Copy file name to clipboardExpand all lines: blog/nvs-one-node-version-per-terminal-in-windows.mdx
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,34 @@ decription: Install and setup nvs to Windows for PowerShell and Git-Bash
7
7
draft: false
8
8
---
9
9
10
-
`nvs` is a cross-platform Node.js version manager that allows you to install and use multiple versions of Node.js on the same machine. It is similar to `nvm` for Unix-based systems. `nvs` is a simple and easy-to-use tool that allows you to switch between different versions of Node.js with a single command.
10
+
`nvs` is a cross-platform Node.js version manager that allows you to install and use multiple versions of Node.js on the same machine. It is similar to `nvm` for Unix-based systems. `nvs` is a simple and easy-to-use tool that allows you to switch between different versions of Node.js with a single command.
Copy file name to clipboardExpand all lines: blog/sed-normalize-md-file-with-regex.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ draft: false
9
9
10
10
I have been using [web clipper](https://www.notion.so/web-clipper) to save articles and blog posts for a while now. It's a great tool to save content from the web and organize it in a clean and readable format. However, the markdown files generated by web clipper are not always consistent, and I often find myself manually editing them to make them more readable.
11
11
12
+
<!-- truncate -->
13
+
12
14
One of the common issues I encounter is inconsistent formatting of the front matter in the markdown files. The front matter is a block of metadata at the beginning of a markdown file that contains information such as the title, author, tags, date, and description of the content. Here's an example of what the front matter looks like:
0 commit comments