Skip to main content

JD Bots

Home To ChatBots

Highlights

Latest posts

0 comments 0 reactions

How to Send a Header with curl

Jagdish Kumawat

curl -H "Name: value" adds a header to the request curl sends.

Programming
0 comments 0 reactions

How to Unzip a File in the Terminal

Jagdish Kumawat

Type unzip and the zip file’s name to take its files out into the folder you’re in.

Programming
0 comments 0 reactions

How to Write a String in JavaScript

Jagdish Kumawat

Put text between single quotes or double quotes to make a string in JavaScript. Both kinds give the same text.

Programming
0 comments 0 reactions

How to Write null in JSON

Jagdish Kumawat

In JSON, null marks a value that is empty on purpose. Write it in lowercase, without quotes.

Programming
0 comments 0 reactions

How to Set Up and Run the Workflow Backup for n8n

Jagdish Kumawat

Take the Workflow Backup for n8n from its zip to a published nightly backup that saves every n8n workflow as a JSON file on your computer, ready to restore.

Automation
0 comments 0 reactions

How to Create an n8n API Key

Jagdish Kumawat

Create an n8n API key with only the scopes it needs, set it to expire, and test it from Terminal with one curl command.

Automation
0 comments 0 reactions

How to Change a Setting with SET in PostgreSQL

Jagdish Kumawat

SET changes a PostgreSQL setting for your own session only, and RESET puts it back, shown with the DateStyle setting.

Database
0 comments 0 reactions

How to Filter Rows with WHERE in PostgreSQL

Jagdish Kumawat

WHERE keeps only the rows that match a condition. A small table of cities shows how to filter, and the mistake to avoid.

Database
0 comments 0 reactions

How to Insert a Row in PostgreSQL

Jagdish Kumawat

Add a row to a PostgreSQL table with INSERT INTO, its columns and VALUES, with a small address book.

Database
0 comments 0 reactions

How to Create a Table in PostgreSQL

Jagdish Kumawat

Create a table in PostgreSQL with CREATE TABLE, and use IF NOT EXISTS when it may already be there.

Database
0 comments 0 reactions

How to Write a Date in PostgreSQL

Jagdish Kumawat

Write dates in PostgreSQL year first, as YYYY-MM-DD after the DATE key word, so every server reads them the same way.

Database
0 comments 0 reactions

How to Write a String in PostgreSQL

Jagdish Kumawat

Write text in PostgreSQL between single quotes, and type a single quote twice to put one inside the text.

Database
0 comments 0 reactions

smallint vs integer vs bigint in PostgreSQL

Jagdish Kumawat

PostgreSQL’s three whole-number types differ only in size and range. Each limit is tried live, with advice on which one to use.

Database
0 comments 0 reactions

How to Generate a UUID in PostgreSQL

Jagdish Kumawat

Generate random and time-ordered UUIDs in PostgreSQL with gen_random_uuid() and uuidv7(), and use one as a table’s ID.

Database
0 comments 0 reactions

Identity vs Serial in PostgreSQL: Which to Use for IDs

Jagdish Kumawat

Identity columns and serial both give rows numbers that count up by themselves. Here’s why an identity column is the better choice for IDs, tried side by side.

Database
0 comments 0 reactions

timestamp vs timestamptz in PostgreSQL

Jagdish Kumawat

timestamptz stores a moment and shows it in your time zone; timestamp keeps only the clock reading. One table, viewed from two time zones, shows the difference.

Database
0 comments 0 reactions

How to Store Money in PostgreSQL: numeric vs money

Jagdish Kumawat

Store prices in PostgreSQL with numeric and two decimals, and see why the money and real types are worse choices, with real psql output.

Database
0 comments 0 reactions

text vs varchar in PostgreSQL

Jagdish Kumawat

text and varchar store text the same way in PostgreSQL; varchar(n) only adds a length limit. A small example shows a value that’s too long being refused.

Database