Langsung ke konten utama

Postingan populer dari blog ini

TypeScript CRUD Rest API, using: Nest.js, TypeORM, Postgres, Docker and Docker Compose

 Let's create a CRUD Rest API in Typescript using: NestJS (NodeJS framework) TypeORM (ORM: Object Relational Mapper) Postgres (relational database) Docker (for containerization) Docker Compose If you prefer a video version: All the code is available in the GitHub repository (link in the video description): youtube.com/live/gqFauCpPSlw Here is a schema of the architecture of the application we are going to create: crud, read, update, delete, to a NestJS app and Postgres service, connected with Docker compose. Postman and Tableplus to test it We will create 5 endpoints for basic CRUD operations: Create Read all Read one Update Delete Here are the steps we are going through: Create a new NestJS application Create a new module for the users, with a controller, a service and an entity Dockerize the application Create docker-compose.yml to run the application and the database Test the application with Postman and Tableplus We will go with a step-by-step guide, so you can follow along. Re...

March Madness: Relationships and Basketball have a lot in Common

 Co-authored with  Robin Stern, PhD ’Tis the season for March Madness, and we don’t mean just basketball. A lesser-known use of the phrase popularized in the early 1900s is in reference to “a form of madness or uncharacteristic behavior said to affect people in March”. For anyone on the East coast familiar with — and, not a fan of — the inclement shifts in weather and lingering dark days of winter, this makes sense. And there is no shortage of research indicating that simply surviving the bleakest time of year is a feat of mind, body, and spirit. But when this madness bleeds into our relationships, as it inevitably can, it is important to know how you can regulate the burgeoning restlessness of early Spring and cultivate healthier connections. And for those of you who just can’t think about March Madness without basketball — take this opportunity to think about what basketball and relationships have in common: practicing necessary skills and good form to move both forward; rem...

My kids and I just played D&D with ChatGPT4 as the DM

 My kids and I just played D&D with ChatGPT4 as the DM My two oldest kids Taylor Anne and Liam, are 26 and 23 (respectively). My youngest son Tenzin is 15 years old. All of us are together at my house in Mexico City this week, and the discussion topic generating the most heat is OpenAI and GPT4. Since Tenzin has been playing tabletop RPG games like D&D for years and has a lot of experience as a DM, we discussed playing a campaign together. But then Tenzin had the bright idea of letting ChatGPT be the DM. What follows in this blog post is the transcript of the game that we played. Where we tell ChatGPT that we rolled dice, we are using Google’s die roll mechanism. I feel like the transcript speaks for itself, but before reproducing it I will state for the historical record that my mind is still exploding from from all the inevitable innovation and legal controversies this kind of usage of LLM (Large Language Model) technologies will provoke in the coming months and years. So...