Latest Updates

Documenting code, one commit at a time.

CSS PHP 10 posts
×
PHP

Pint and Polish: Keeping Your PHP Code Sparkling

Let's face it: constructor formatting can be a real eyesore. In the trenches of a large PHP project, keeping code style consistent across every file feels like a never-ending battle. But what if a simple tool could handle the grunt work, letting you focus on the logic that actually matters?

The Problem: Manual Formatting Is a Time Sink

Spending hours manually adjusting whitespace, aligning

Read more

Enhancing Content Generation with Tenant-Specific AI Models in Breniapp

Introduction

Tired of generic AI outputs? Breniapp introduces a streamlined way to tailor AI content generation using tenant-specific defaults. This post dives into how moving AI model selections to the page header improves usability and allows for more personalized content.

The Problem with Cramped Chat Headers

Previously, Breniapp placed AI model selection within the chat header.

Read more
PHP

Fixing Redundant Storage Paths in Breniapp

The Case of the Double storage/ Prefix

Have you ever encountered a situation where your application generates URLs with a duplicated path segment, leading to broken links and frustrated users? This was precisely the issue faced in the Breniapp project, where image URLs were being generated with a redundant storage/ prefix. Let's dive into how this was resolved.

The Problem: Redundant

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

Dynamic Image Generation with Fal.ai in Breniapp

Introduction

Breniapp utilizes fal.ai for image generation. A recent update improves the way Breniapp interacts with the fal.ai service, specifically addressing how image aspect ratios are handled to ensure a more dynamic and user-friendly experience.

The Problem: Hardcoded Aspect Ratios

Previously, the generateImageViaFal() method in Breniapp was hardcoded to request 'square_hd'

Read more
PHP AI

Enhancing Content Chat with AI Model Overrides in Breniapp

Introduction

The Breniapp project is enhancing its content chat feature, providing superadmins with more control over AI model selection during content generation. This feature aims to offer greater flexibility and customization in AI-driven content creation.

The Feature: AI Model Overrides

The core of this update lies in the introduction of AI model overrides within the content chat

Read more

Improving Image Downloads in Breniapp

Introduction

In Breniapp, we recently tackled an issue where downloaded images were not reflecting the complete visual output displayed on screen. Specifically, text and logo overlays, which were rendered using HTML and CSS, were missing from the downloaded image, resulting in users receiving only the base image.

The Problem

The original download implementation was simply fetching the

Read more

Enhancing Calendar UX in Breniapp

Introduction

This post details recent improvements to the calendar user experience in the Breniapp project. The focus was on refining text sizes, padding, modal presentation, and content titles for a more intuitive and visually appealing interface.

Height Calculation and Grid Adjustments

The calendar height calculation was adjusted to better fill the viewport, ensuring a more consistent

Read more