# little

Published articles for little.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Searching Craft CMS Matrix Blocks

DevFeed: [Searching Craft CMS Matrix Blocks](<https://devfeed.tech/articles/searching-craft-cms-matrix-blocks-31293.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/searching-craft-cms-matrix-blocks>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2021-11-26T05:00:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Query (disambiguation)](<https://devfeed.tech/topics/query.md>), [Content Management System](<https://devfeed.tech/topics/cms.md>)

Tags: [based](<https://devfeed.tech/tags/based.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [blocks](<https://devfeed.tech/tags/blocks.md>), [cms](<https://devfeed.tech/tags/cms.md>), [contain](<https://devfeed.tech/tags/contain.md>), [contents](<https://devfeed.tech/tags/contents.md>), [craft](<https://devfeed.tech/tags/craft.md>), [custom](<https://devfeed.tech/tags/custom.md>), [easily](<https://devfeed.tech/tags/easily.md>), [elements](<https://devfeed.tech/tags/elements.md>), [entries](<https://devfeed.tech/tags/entries.md>), [insights](<https://devfeed.tech/tags/insights.md>), [little](<https://devfeed.tech/tags/little.md>), [matrix](<https://devfeed.tech/tags/matrix.md>), [php](<https://devfeed.tech/tags/php.md>), [query](<https://devfeed.tech/tags/query.md>), [twig](<https://devfeed.tech/tags/twig.md>)

### AI overview

A tutorial on querying Craft CMS Entries by the content of their Matrix blocks. It explains how to find matching Matrix blocks, collect their owner IDs, and use those IDs to filter an Element query, including a generalized approach usable in Twig.

### Source excerpt

With a little custom Behavior, we can easily query for Elements such as Entries in Craft CMS based on the contents of the Matrix Blocks they contain

## Creating a custom field in Craft CMS

DevFeed: [Creating a custom field in Craft CMS](<https://devfeed.tech/articles/creating-a-custom-field-in-craft-cms-31251.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/creating-a-custom-field-in-craft-cms>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2020-08-27T04:00:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Content Management System](<https://devfeed.tech/topics/cms.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [cms](<https://devfeed.tech/tags/cms.md>), [code](<https://devfeed.tech/tags/code.md>), [craft](<https://devfeed.tech/tags/craft.md>), [create](<https://devfeed.tech/tags/create.md>), [custom](<https://devfeed.tech/tags/custom.md>), [field](<https://devfeed.tech/tags/field.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [insights](<https://devfeed.tech/tags/insights.md>), [learn](<https://devfeed.tech/tags/learn.md>), [leveraging](<https://devfeed.tech/tags/leveraging.md>), [little](<https://devfeed.tech/tags/little.md>), [platform](<https://devfeed.tech/tags/platform.md>), [possible](<https://devfeed.tech/tags/possible.md>), [writing](<https://devfeed.tech/tags/writing.md>)

### AI overview

A tutorial on creating a custom field in Craft CMS whose dropdown options come from Craft Commerce country data. It recommends subclassing the built-in Craft Dropdown field and changing only the required behavior to reduce code and maintenance.

### Source excerpt

Learn how to create a custom field in Craft CMS, writing as little code as possible by leveraging the platform.

## GraphQL Schema Auto-Completion with PhpStorm

DevFeed: [GraphQL Schema Auto-Completion with PhpStorm](<https://devfeed.tech/articles/graphql-schema-auto-completion-with-phpstorm-31267.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/graphql-schema-auto-completion-with-phpstorm>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2019-09-18T20:26:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [phpstorm](<https://devfeed.tech/topics/phpstorm.md>), [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [Sublime Text](<https://devfeed.tech/topics/sublime-text.md>)

Tags: [auto-completion](<https://devfeed.tech/tags/auto-completion.md>), [combined](<https://devfeed.tech/tags/combined.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [highlighting](<https://devfeed.tech/tags/highlighting.md>), [insights](<https://devfeed.tech/tags/insights.md>), [little](<https://devfeed.tech/tags/little.md>), [magic](<https://devfeed.tech/tags/magic.md>), [phpstorm](<https://devfeed.tech/tags/phpstorm.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [schema](<https://devfeed.tech/tags/schema.md>), [schemas](<https://devfeed.tech/tags/schemas.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>)

### AI overview

A tutorial on configuring the JS GraphQL plugin in PhpStorm to provide GraphQL schema auto-completion and syntax highlighting. It explains how to install the plugin, configure a .graphqlconfig file, and generate a schema dump by introspecting a GraphQL endpoint.

### Source excerpt

The JS GraphQL plugin combined with a little magic will give you full auto-completion and syntax highlighting of GraphQL schemas in PhpStorm

## Auto-Complete Craft CMS 3 APIs in Twig with PhpStorm

DevFeed: [Auto-Complete Craft CMS 3 APIs in Twig with PhpStorm](<https://devfeed.tech/articles/auto-complete-craft-cms-3-apis-in-twig-with-phpstorm-31243.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/auto-complete-craft-cms-3-apis-in-twig-with-phpstorm>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2019-03-17T22:55:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [phpstorm](<https://devfeed.tech/topics/phpstorm.md>), [Content Management System](<https://devfeed.tech/topics/cms.md>), [PHP](<https://devfeed.tech/topics/php.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [auto-complete](<https://devfeed.tech/tags/auto-complete.md>), [auto-completion](<https://devfeed.tech/tags/auto-completion.md>), [cms](<https://devfeed.tech/tags/cms.md>), [combined](<https://devfeed.tech/tags/combined.md>), [craft](<https://devfeed.tech/tags/craft.md>), [deprecated](<https://devfeed.tech/tags/deprecated.md>), [insights](<https://devfeed.tech/tags/insights.md>), [little](<https://devfeed.tech/tags/little.md>), [magic](<https://devfeed.tech/tags/magic.md>), [phpstorm](<https://devfeed.tech/tags/phpstorm.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [symfony](<https://devfeed.tech/tags/symfony.md>), [templates](<https://devfeed.tech/tags/templates.md>), [twig](<https://devfeed.tech/tags/twig.md>)

### AI overview

A deprecated tutorial explains how to configure PhpStorm's Symfony plugin and a faux Twig extension to enable Craft CMS API autocomplete in Twig templates. It recommends using the Craft Autocomplete package instead.

### Source excerpt

The Symfony plugin combined with a little magic will give you full auto-complete of all Craft CMS APIs in your Twig templates with PhpStorm!

## Optimizing Integer-to-IP Conversion in Common Lisp

DevFeed: [Optimizing Integer-to-IP Conversion in Common Lisp](<https://devfeed.tech/articles/a-worthwile-micro-optimisation-34521.md>)

Original publisher: [Read original article](<https://tapoueh.org/blog/2013/10/a-worthwile-micro-optimisation/>)

Author: Dimitri Fontaine PostgreSQL Major Contributor; Author

Published: 2013-10-03T20:10:00Z

Content type: article

Language: en

Sources: [Dimitri Fontaine](<https://devfeed.tech/sources/dimitri-fontaine.md>)

Topics: [Common Lisp](<https://devfeed.tech/topics/common-lisp.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [implementation](<https://devfeed.tech/topics/implementation.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [code](<https://devfeed.tech/tags/code.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [lisp](<https://devfeed.tech/tags/lisp.md>), [little](<https://devfeed.tech/tags/little.md>), [optimisation](<https://devfeed.tech/tags/optimisation.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>)

### AI overview

This article describes a Common Lisp micro-optimization for converting integer values to IP representations while loading geolocation data into PostgreSQL. It precomputes dotted-byte representations at load time, substantially reducing the transformation's added cost.

### Source excerpt

In our previous article about Loading Geolocation Data, we did load some data into PostgreSQL and saw the quite noticable impact of a user transformation. As it happens, the function that did the integer to IP representation was so naive as to scratch the micro optimisation itch of some Common Lisp hackers: thanks a lot guys, in particular stassats who came up with the solution we're seeing now.