How to Write a Number in YAML
In YAML, a number is written as it is, without quotes: 3 or 12.5. In quotes, the same digits are text.
Read more about How to Write a Number in YAMLHome To ChatBots
In YAML, a number is written as it is, without quotes: 3 or 12.5. In quotes, the same digits are text.
Read more about How to Write a Number in YAMLIn YAML, # starts a comment: everything after it on that line is a note that programs skip.
Read more about How to Write a Comment in YAMLA comment is a note in your code that JavaScript skips. Write // for the rest of a line, or /* and */ around several lines.
Read more about How to Write a Comment in JavaScript
In YAML, a number is written as it is, without quotes: 3 or 12.5. In quotes, the same digits are text.
In YAML, # starts a comment: everything after it on that line is a note that programs skip.
A comment is a note in your code that JavaScript skips. Write // for the rest of a line, or /* and */ around several lines.
Bracket notation, object['name'], reads a property by its name as a string. Use it when the name has a space or is held in a variable.
Optional chaining, ?., reads a property only when the value before it exists. When that value is null or undefined, you get undefined instead of an error.
parseInt() reads the whole number at the start of a text and gives it back as a number you can calculate with.
trim() removes the spaces, tabs and line breaks at the start and end of a string, and keeps the spaces between words.
An n8n Edit Fields node stopped with ‘stars’ expects a number but we got ‘4 stars’. Here is why a Number field refuses text with a word in it, and the fix: parseInt() in the field’s expression.
Take the Failed Execution Log for n8n from the zip to a published workflow that saves every failed run, with its error and a link, to a data table every hour.
Label each n8n run with a value such as an order number, using $execution.customData.set() in a Code node, then find the run by that value in the Executions list.
A failed n8n run keeps the data it received. Find it in the Executions list, fix whatever made it fail, and retry it from the node that failed.
Pin a node’s output in n8n so every test run reuses it: pin a form answer, edit the pinned data to try another case, and unpin it when the testing is done.
Set a PostgreSQL setting for one database with ALTER DATABASE SET, so every new session there starts with it.
Use SHOW in PostgreSQL to read the current value of a setting, such as the server’s time zone.
Tell PostgreSQL which schemas to search for a table’s short name, for one session or for every new session in a database.
source runs a file’s commands in your current shell, so the variables it sets are still there afterwards.
YAML reads true and false, written without quotes, as booleans: values that are either on or off.
Put a YAML value in double quotes when it contains characters such as a colon and a space, so YAML reads it as plain text.
Write > after a key to spread a long string over several lines. YAML folds the lines into one, joined by spaces.
In a YAML list of objects, a dash starts each object, and its other keys line up under its first key.
Write a YAML list as a key followed by one item per line, each after a dash and a space.
Indent keys under a parent key to nest them in YAML. Use spaces, and give every child of the same parent the same indent.
A YAML key-value pair is a key, a colon, a space and the value. One pair per line builds a whole YAML file.
Create a schema in PostgreSQL, a folder for tables inside a database, and create and query a table in it.
Create a PostgreSQL table in pgAdmin 4’s Create Table dialog, with a screenshot of every step.
Delete a PostgreSQL table with DROP TABLE, and see what IF EXISTS and CASCADE do.
Give a PostgreSQL table a new name with ALTER TABLE RENAME TO, keeping all of its rows.
Change a PostgreSQL column’s type with ALTER TABLE, and add USING when PostgreSQL can’t convert the values by itself.
Remove a column and all its values from a PostgreSQL table with ALTER TABLE DROP COLUMN.
Rename a column in a PostgreSQL table with ALTER TABLE, keeping its type and every value in it.
Find out why an n8n workflow failed and fix it: read the Executions list, load the failed run with Debug in editor, retry it, and test with pinned data.
Add a column to an existing PostgreSQL table with ALTER TABLE, with or without a default for the rows already there.
See every column of a PostgreSQL table, with its type, whether it can be empty and its default, using psql’s describe command.
List the tables in a PostgreSQL database with one psql command, see their sizes, and use a SQL query in tools without it.
Create the bookstore database’s first three tables with CREATE TABLE and identity IDs, then list them, describe one and see them in pgAdmin.
Turn a rule Claude follows into a guarantee Rasa enforces: move it into a tool’s requires condition, then watch the Rasa Inspector hide the tool.