Dennis Snell
@dmsnell23
Followers
340
Following
483
Media
124
Statuses
460
Joined December 2013
Can you persuade an LLM to generate tokens until it fails? #llm
https://t.co/SIpUVXUnBG
fluffyandflakey.blog
Today I hit a surprising obstacle: I want to infer the maximum output token count for a given model without having any parameters known in advance. The challenge is to generate a prompt which will …
0
0
1
Inspired by Dennis Snell's talk on #WordPress Playground at #WCUS2024, I put together a #VSCode extension to edit ReadMe files in the block editor.
9
9
64
🌊 "We're so used to WordPress development being a drop in a massive ocean, but with Playground, *we are* the ocean. We get to choose everything that goes out to our customers," said @dmsnell23, sharing unique opportunities with Playground at #WCUS. 💻✨ #WordPress #PlayGround
0
2
2
0
0
1
Even spec-compliant #html parsers can "break." HTML cannot represent all possible (even invalid) DOM trees. #wordpress' #htmlapi speaks HTML and ensures full encapsulation and isolation when manipulating a document so this doesn't happen.
0
0
2
0
0
0
SGML lets me write post tags the way I think about them, and with a proper ENTITY and SHORTREF+USEMAP, it parses them structurally. #sgml
0
0
0
Did you know that HTML API is built from 0, specially for #WordPress, and there's no other framework or CMS that has anything similar? They all still use regex 🥲 There's also an interesting effect on performance 👯 I'll show you its magic in two weeks at @PHPSrbija #PHPSRB 🥰
1
1
5
@fabiankaegy @nickmdiego 11/ In this hook, we'll create a custom class using the `wp_unique_id` function and apply it to our block using #WordPress relatively new `WP_HTML_Tag_Processor`. We'll then compose the style selector and add the icon markup using a regex.
2
1
2
When learning about new features in code, I found that reading tests is, by far, the fastest route to understanding the usage and learning about available methods. Here are some utterly educational tests for WP_HTML_Tag_Processor by @dmsnell23 🤩 https://t.co/bPoGYCiDhV
github.com
WordPress Develop, Git-ified. Synced from git://develop.git.wordpress.org/, including branches and tags! This repository is just a mirror of the WordPress subversion repository. Please include a li...
1
5
27
なお、ブランド名など翻訳させたくないテキストには、translate="no"をつけようネ💪 https://t.co/TKgFW9uyrc WPのブロックエディタでは、WP_HTML_Tag_Processor を使うと良きです😇 .notranslate クラスを付けたブロックには一律 translate=noを付ける処理が書けます💪 https://t.co/tdcUFl9ta6
developer.mozilla.org
translate グローバル属性 は列挙型属性で、要素の翻訳可能な属性の値や Text 子ノードを、ページをローカライズする際に翻訳するべきか、あるいは変更せずにおくかを指定します。
1
1
2
Not many people realize the revolution that the HTML API represents for WordPress. @dmsnell23 is doing an amazing job explaining how this API works in his workshop right now at #WCEU. If you are not in this room now, make a note to see it later online 📝📺
3
7
36
If you want your own TOC block that dynamically creates a list of anchor links based on H2s, you can use the WP HTML Tag Processor in a custom block. Here's a basic example that skips any H2s that don't have an id (and it works inside templates, too 🤫)
2
1
5
When tests, linting, and CI reject work that fixes defects, it may be a good time to revaluate that system. Something is not right when defects are automatically enforced and preferred over fixes. #testsfailed
0
0
1
In WP 6.5, the HTML API will be able to scan every token in an HTML document. This API is especially important for any programmatic modification of the content in the block era, and it's getting better and better with each version. Read more in the following post 👇
2
1
5