RSSAmplifier

Blog

Kevin Sylvestre

A Ruby and iOS developer and designer.

ksylvest.comRSS feed ↗40 posts

Latest posts

Exploring Common AI Patterns with Ruby

Three examples of integrating LLMs in Ruby using OmniAI.

OmniAI 2.0

Announcing OmniAI 2.0 - An LLM-Agnostic Ruby Library for Seamless AI Integration

Using GraphQL with LLMs in Ruby

Open up your app to LLMs with GraphQL.

Using OmniAI to Convert PDFs to Markdown with LLMs

A guide to converting a PDF into Markdown using OmniAI with OpenAI and MuPDF.

Using OmniAI to Leverage Tools with LLMs

OmniAI now supports tools in LLM integrations using Anthropic, Google, Mistral, and OpenAI.

Using OmniAI to Search LLM Embeddings with Ruby on Rails and Postgres

OmniAI now supports the generation of embeddings for both Mistral and OpenAI. In conjunction with pgvector, this is an excellent option for indexing and searching data to pass through an LLM prompt within a Ruby on Rails application.

Building Prompts with OmniAI

OmniAI introduces the ability to generate complex prompts in Ruby with a prompt builder.

OmniAI CLI

OmniAI now ships with a built-in CLI, making it easier than ever to use OpenAI’s ChatGPT, Google’s Gemini, Anthropic’s Claude, or Mistral’s LeChat.

Introducing OmniAI

An LLM Agnostic Ruby Library for OpenAI’s ChatGPT, Google’s Gemini, Anthropic’s Claude Mistral’s LeChat, and More!

Searching Files with ChatGPT Assistants

Using a ChatGPT Assistant to Search Files (PDFs, DOCX, HTML and more) with Python

Using ChatGPT with Ruby

A guide to using OpenAI’s ChatGPT with Ruby

Prompting ChatGPT to Generate JSON from HTML

Using ChatGPT to Convert HTML to JSON

Building a Testing Framework Similar to RSpec in Ruby

A guide to building and understanding a testing frameworks like RSpec

Transactions in Ruby on Rails and Atomic Bugs

A few examples of when using a transaction in Ruby on Rails doesn't work as expected.

Eager Loading Polymorphic Associations with Ruby on Rails

A tutorial on eager loading polymorphic associations with Ruby on Rails avoiding "n-plus-one" queries.

Fabrication vs FactoryGirl

A deep dive into the performance of Fabrication and FactoryGirl.

Automating Favicon Generation in Rails using Sketch

How to use rake, rails, convert and sketch to generate a favicon.

Building a Rack Web Server in Ruby

Managing sockets, handling HTTP parsing and generation, and integrating with Rack to build a simple web server from scratch.

Augmenting a Ruby on Rails App with Vue.js

A lightweight approach to integrating Vue.js into a Ruby on Rails application.

The Enigma Machine using Ruby

The Enigma machine explained in Ruby

Advanced Eager Loading in Rails

How to load 'N' records per parent record efficiently in Ruby on Rails

Mixins With Backbone Using CoffeeScript and JavaScript When Integrating With Rails

A quick introduction to using mixins with Backbone to extract out common code

Setup a Clean Backbone JS App With Rails

A basic introduction on how to setup a new Rails project with Backbone JS

Rails Concerns for URL and Path Helpers

Concerns offer a reusable way of sharing common code. This can be used to extract URL helpers.

Using Timestamps for Caching on iOS or Mac

A simple example of using timestamps to ensure users always see the latest data in an iOS or Mac app.

Setup Free(ish) SSL/TLS on Heroku for Ruby on Rails (or Any Other Framework)

Configure SSL/TLS On Heroku Using a CDN

Deploying Wordpress to Heroku

A guide on how to use Heroku to host Wordpress

Setting Up Mac OS X Mavericks for Development

A short guide on how to configure Mac OS X Mavericks with Rails, Node and More.

Packaging a jQuery Plugin with Bower

Bower is a great package manager for JavaScript or CSS Files. It can be easily used to package a jQuery plugin.

A Rubyist Guide to Creating jQuery Plugins

Learn how to create a jQuery plugin using Haml, Sass, and CoffeeScript. Then deploy the plugin to the jQuery plugin repository.

Progress in Developing iOS and Cocoa

Blocks, Literals, ARC and more have been added to Cocoa helping to ease many of the pains developers experienced in the past. It is an awesome time to be an iOS or Mac developer.

Deploying Rails with JRuby to Heroku

Deploying JRuby on Heroku used to require custom build packs. Not any more. This guide will get any JRuby app up and running in no time.

Setting Up Mac OS X For Development

Configuring a new Mac for development can be tricky. These steps will get any machine setup with Ruby, Node, Postgres and lots more.

Faster Testing in Rails with Guard for Zeus, RSpec, and Cucumber

Two awesome tools for speeding up testing are Zeus and Guard. Setting them up allows for automatic execution of tests while coding.

NSError is NSAwful

Cocoa appears to be missing a key component to programming: exceptions. In place of the standard try / catch / raise style of programming error objects are used.

Must Have Services for Rails

Rails is amazing and can be even better when paired with great web services. Heroku, Amazon, Zencoder, Twilio, Tropo and New Relic all fit the bill.

Non-Blocking Long Running Tasks on iOS

Avoiding delays on the UI thread in iOS is key to ensure a snappy interface. Long running should be queued in operation queues to make sure they don't impact perceived performance.

Copy Paste Menus in iOS

Copy and Paste Menus in iOS can be tricky to setup. This code example should help with the basic syntax for getting one up.

Extending Objects in Cocoa with Categories‎

Adding in functionality to an existing class in Cocoa is easy using categories. This can be useful for methods that should be transient or when access to the original code is restricted.

A Few Reasons Cocoa Is Not That Hot

Over the past year Apple has released an amazing set of phones and tablets. While the devices are incredible the framework and language have a few shortcomings that Apple will have to address.