image post

Test Driven Development (TDD) in a nutshell

Jul 24, 2020
Every project has somewhere in the src folder a file called utils.js, Utils.java, utils.py, etc....


image post

Load dynamic data into a table using Lightning Web Component

Create a custom tab to display a Lightning Web Component
Nov 04, 2021

image post

Compress a file in Node.js

Jul 27, 2020
Zip a file in Node.js it's easy using zlib

image post

Hash text in Node.js

Hash a text using native crypto module in Node JS. No extra dependencies.
Aug 02, 2020
Hash a string in Node.js without extra dependencies

image post

How to connect to a PostgreSQL database in Node.js

Connect to Postgres database in Node js using pg and parse-database-url packages
Jul 28, 2020
A simple example about how to connect to a PostgreSQL database using Node.js

image post

How to build a sitemap

A sitemap is very important if you want to search engines discover and index your site properly.
Aug 08, 2020
A sitemap is very important if you want to search engines discover and index your site properly.

image post

How to use a GitHub repository as a dependency in Node.js

Aug 30, 2020
Sometimes you need a dependency that is not published as a regular package at npmjs.com

image post

Template of Java web and Heroku

Jul 31, 2020
I’ve worked in several projects with Java, specially Java web using Tomcat as a web container and then Glassfish as application server.

image post

How to configure and use testcontainer in Node.js

testcontainer as a Node.js module to create dynamic containers
Oct 13, 2021

image post

Migrate $User, $Profile, $Label and $Api to Lightning Components

Rollout to Lightning by migrating non-supported JavaScript buttons
Jun 18, 2020
We can’t use $User, $Profile, $Label and $Api in Lightning. We need to implement a server-side solution.

image post

Detect record changes in a Lightning Component

Listen to events when a record changes outside your Lightning component
Apr 16, 2021
Listening to changes in a Lightning Component from record changes

image post

Do you really need a mobile app?

Aug 30, 2020
I see lots of brands advertising "Hey, download our mobile app and…"

image post

Mock AWS SDK with Jest in TypeScript

An example mocking some SQS methods
Jul 31, 2021
It's a fact: you will spend some time writing mocks and slow down the development process but in the other hand unit test will run faster with less configuration.

image post

Delete all keys by a prefix in Redis cluster

Reset a cache implemented in Redis for some specific keys with a prefix
Aug 04, 2020
Delete all the keys by a given prefix in a Redis cluster.


image post

Detect if a string is a number with regex

Aug 28, 2020
How to know if a string is a number in JavaScript using a regular expression

image post

How to trigger a Lambda with a SQS message

AWS SAM template to execute a Lambda Function by writing a message in a SQS queue. Cloudformation world
May 12, 2021
Let's create a SAM template to declare a Lambda function to be triggered from an SQS message

image post

Node.js and typescript project template

Oct 08, 2021
A project template with typescript, jest and linter among others configurations

image post

Install and run Redis locally

How to configure Redis to run it in your local machine.
Aug 18, 2020
How to install and run Redis in your local machine

image post

Mock Axios with Jest

Mock request made by Axios using Jest in Node.js. Unit tests more unit
Jan 31, 2021
Mock Axios with Jest using successful and error response

image post

Sitemap xml creation

A sitemap is very important if you want to search engines discover and index your site properly.
Sep 09, 2021
No matter the language you are using in your site, this is the right way to create a sitemap.

image post

How to setup Github Actions workflow lint

Configure a workflow to execute your linter when pushing code
Apr 25, 2021
How to setup Github Actions workflow lint

image post

Improve pg-promise stack traces

Aug 27, 2020
When you execute a query with error, we get a pg-promise internal module-specific stack trace.


image post

jsonplaceholder: a free fake API for testing and prototyping

JSONPlaceholder is a free online REST API that you can use whenever you need some fake data.
Sep 13, 2021

image post

How to download a file from Salesforce using Java Rest API

A Java snippet to download a Salesforce file through the Rest API
Apr 20, 2021
Let say we want to download a file stored in Salesforce. We'll have to deal with ContentVersion

image post

How to make Load and Smoke testing with Artillery

Artillery is a CLI tool installed easily through npm
May 20, 2021
Artillery is a modern load testing and smoke testing solution designed for cross-functional teams that run microservice-based systems on AWS and rely on CI/CD to ship at high velocity

image post

How to add a pie chart in Campaign’s record page in Salesforce

Add a cool chart in a record page easily. No code.
Aug 30, 2020
What about if we add a component with a pie chart on the Campaign object’s record page?

image post

Salesforce client for an Apex RESTful web service

Expose a Rest service from an Apex class using RestResource annotation
Aug 29, 2020
An example about how to consume a Salesforce api rest

image post

How to trigger a Lambda Function from S3

Notify a Lambda Function when creating a new file in an S3 bucket
Jun 20, 2021
Using Cloudformation to declare a Lambda Function and an S3 bucket

image post

This is most likely not an error with the salesforce cli

Please ensure all information is accurate and try again. (Salesforce)
Oct 07, 2021
Error authenticating with auth code due to: grant type not supported

image post

Node.js Express Mysql stack deployed on Heroku

How to build a rest API from zero using Node.js, Express and MySQL
Oct 09, 2021
Let's build a Rest API from scratch that uses a MySQL database. We are going to use Node.js and Express as a framework to generate some scaffolding for our Rest API


image post

Call an Apex method from Process Builder

See how to configure a Flow with process builder to execute an Apex method in Salesforce
Nov 11, 2021
As a thumb of rule in Salesforce you should always try to create new business logic through point-and-click but sometimes our logic it's a bit special and we need some Apex code.

image post

Invalid request provided: AWS::AppFlow::FlowCreate - Salesforce integration

This is a common error when a field is mapped in App Flow but it doesn't exist in Salesforce
Nov 19, 2021
Resource handler returned message: "Invalid request provided: AWS::AppFlow::FlowCreate Flow

image post

Salesforce integration with AWS AppFlow, S3, Lambda and SQS

Send data out of Salesforce with AWS AppFlow service in realtime
Aug 24, 2021
There are many ways to sync up our Salesforce data with third parties. One option is a mix of Salesforce and AWS services, specifically Change Data Capture from Salesforce and AppFlow from AWS.

image post

Dark Reader: A Chrome plugin to enable dark mode

Instantly read all your web pages in dark mode
Jan 23, 2022
Dark Reader is a Chrome plugin to start seeing instantly all the web pages in dark mode. It works pretty well with most of the sites

image post

jsonplaceholder - free and unlimited json API placeholder

Mock backend data with a free and unlimited json API
Jan 05, 2022
Frandom is a JSON Placeholder fake REST API that is mainly used for prototyping and testing.

image post

How to generate a random string in Apex

A Apex method to get a random string given a length
Oct 13, 2021

image post

Salesforce rest api download ContentVersion

Download a Salesforce file (ContentVersion) through the API using Node.js with jsforce package
Sep 09, 2021

image post

How to build a sitemap xml in Node js using Express

Create a sitemap in Node and Express framework for Search Engine Optimization
Jun 17, 2020
A good sitemap.xml will help you a lot in terms of SEO. It’s a nice starting point if you want to index your site. It’s just a standard XML file that search engines understand.

image post

MIXED_DML_OPERATION error and Apex unit tests (how to fix it)

This is a common error when we start to work with testing or manipulating some particular objects: setup and non-setup objects
Feb 09, 2022
One option is to use @future method but since that's for running in background, we cannot query that data in the next line due to it could be created or not.

image post

AWS AppFlow error conflict executing request connector profile is associated with one or more flows

If we try to delete a connector from the AWS console and it is associated with one or many flows, it will display this error.
Feb 09, 2022
Let's say you have a Salesforce connector (it is valid for any other available) and the token expired. The only way so far is to delete and recreate the connection again. Would be nice to keep the same connection and run the handshake again but it is impossible nowadays.

image post

First-time shipped implementation is like going into technical debt

What is technical debt and why you should pay attention to it?
Feb 22, 2022
Technical debt is often asymptomatic, making it difficult to prioritize, but once the symptoms appear, it may be too late and the associated costs may be much higher.

image post

Redirect all requests from HTTP to HTTPS in Node.js and Express

How to redirect all non secure requests to HTTPS in Node.js and Express
Jun 15, 2020
The first step will be to create a method to guess if the HTTP request comes from HTTP or HTTPS (secure or not secure). In some context like AWS or Heroku you will have to ask by the header x-forwarded-proto instead of req.secure.