Latest Updates

Documenting code, one commit at a time.

Enhancing Onboarding with AI-Powered Visual DNA Analysis

The Breniapp project focuses on streamlining brand development. A new feature enhances the onboarding process by incorporating AI-driven analysis of visual references. This allows users to define their brand's visual style through an intuitive, keyword-driven interface.

The Feature: Visual DNA Analysis

The new "Visual DNA" step in the onboarding process leverages AI to analyze uploaded

Read more

Enhancing Brenia Onboarding with Smart Behaviors and Data Persistence

Introduction

Onboarding new users effectively is crucial for user engagement and retention. In the Brenia project, we've been focusing on making the onboarding process more intelligent and user-friendly. This involves incorporating smart behaviors that adapt to user input, along with ensuring seamless data persistence for a smoother experience.

Smart Behaviors: Adapting to User Input

Read more

Database Compatibility: Adapting Queries for PostgreSQL

When developing applications across different database systems, ensuring compatibility in your queries is crucial. Minor differences in SQL syntax can lead to unexpected errors and application downtime. Let's explore a practical example of adapting queries for PostgreSQL.

The Challenge: Date Extraction

MySQL provides functions like YEAR() and MONTH() to extract year and month values from

Read more
PHP PostgreSQL

Improving Data Handling and Stability in Landing

The landing project focuses on creating engaging user experiences. Recent work has concentrated on refining data storage and ensuring application stability.

Addressing PostgreSQL DISTINCT Errors with JSONB

A recurring issue involved PostgreSQL's inability to efficiently use DISTINCT with JSON columns. This manifested as numerous daily errors, particularly within the Campaign editor's

Read more

Recovering PostgreSQL Report Functions in Laravel

Introduction

When performing database migrations, especially in multi-tenant environments, it's crucial to ensure all aspects of the schema are correctly applied to each tenant. This post explores a scenario in a Laravel application where PostgreSQL functions were unintentionally dropped during a tenant migration and how they were recovered.

The Problem: Silently Missing Functions

Read more
PHP PostgreSQL

Seeding PostgreSQL: Avoiding SQL Escaping Issues

When working with databases, especially PostgreSQL, ensuring data integrity during the seeding process is crucial. A common pitfall involves SQL escaping issues, particularly when dealing with special characters within string values.

The Problem: Escaping Hell in Seed Migrations

Initial attempts to populate a database often involve seed migrations. These migrations contain SQL statements to

Read more

Multi-Tenancy Done Right: Tenant-Specific Database Tables

When building a multi-tenant application with Laravel and PostgreSQL, handling data isolation is crucial. One effective approach is to use separate database schemas for each tenant. This provides a high level of isolation, ensuring that data from different tenants remains completely separate. Let's explore how this works in practice within the Reimpact platform.

The Problem: Shared Tables

Read more