Skip to main content

Tokens in AI

Submitted by mferanda on

When jumping into the AI world, there's a lot of talk about tokens and costs based on tokens. For someone new, it seemed like a good place to start. So... What exactly are tokens? Think of them like the individual pieces of text the model uses to process language.

What is a Token in one sentence? Tokens are the pieces of words or symbols that make up the content we give AI models, helping them understand and generate responses.

Tokens come in different styles:

Odd Drush error: [preflight] Drush::$container is not initialized...

Submitted by mferanda on

So... an odd issue after a separate team installed software on a few servers.

[preflight] Drush::$container is not initialized yet. \Drush::setContainer() must be called with a real container.

Drush worked perfectly fine before their work... what happened? After checking a few things, something messed up the /tmp permissions.

Proper permissions for /tmp?

chmod a+trwx /tmp

If you're not familiar, the +t is called a sticky bit:

Custom Module - Add to existing config with necessary defaults and update existing installs

Submitted by mferanda on

One of the modules I've been working on for over a year now is called aggrid http://www.drupal.org/project/aggrid. This module uses the ag-Grid library https://www.ag-grid.com/. The community portion is full open source, but they have a paid enterprise version with some great features.

Drupal Theme: How do you apply a form element label only to specific element types?

Submitted by mferanda on

So, since my last blog post, my obsession has switched gears a bit from GPS to creating a new Drupal theme. Part of this is due to working with the USWDS Theme and the fact that a new version 2 will be coming out soon.

Distance between Latitude and Longitude points

Submitted by mferanda on

Due to arduino hobby, a project led me to messing with a GPS module. So, I got a little interested in lat/long distance calculations and had to even refresh myself a bit on it.

First off… let’s look at lat and long itself.

What is Latitude and Longitude in one sentence? Latitude and Longitude are two separate sets of numbers providing a location on our planet.

Latitude and Longitude can come in two forms:
•    Degrees, Minutes, and Seconds
•    Radian Unit / Decimal Notation

Degrees, Minutes, and Seconds

Subscribe to