field of view – Apparent size of subject in two different cameras with the same resolution and focal length (or FOV)

Consider two cameras with the same resolution (let’s say 640×480) and focal length (or FOV) looking at the same subject. Let’s assume that the subject is in focus in both cameras.

Will the image of the subject be the same size across both cameras? That is, if one camera shows the subject as occupying a grid of 10×10 pixels, will the other camera give the same result?

Are there other properties that will affect this?

dnd 5e – How do I use this Ammo/Potion/Torch Field on one of the official alternate character sheets?

Exactly how to use any one piece of a character sheet isn’t prescribed by the rules. Different players and different characters will prefer and require different information noted, tracked and structured. There’s multiple official version to accommodate this, you’ll find countless different online, and some of us make custom sheets to fit our specific needs.

That said, specific elements are useful for specific types of counting. Textboxes are good at tracking text or big numbers and chains of circles good at counting (low numbers). So, for instance you could put your total number of arrows in the textbox by the arrows and as you spend arrows (by firing them presumably) you tick of circles. In a similar fashion you might note down a type of (healing) potion in one of the potion boxes and use the associated chain of marks to note how many you have, and erase the marks (or use an override mark) when it is used.

The key for using any part of a character sheet (or any character sheet) is to find what works best for you, so that you don’t have to spend time searching or interpreting your character sheet and can spend more time actually playing. Try things out, do what feels natural, and don’t be afraid to change things if they don’t work. And don’t worry about others being able to read it, they wont need to read it often and its hard to make it guessable (unless you actually try for that, for some reason.

†: Personally I’m fond of using one line to mark something and using a second, crossing line to un-mark it. Saves using a rubber to turn the sheet crumpled and grey Use what works best for you.

8 – How can I add classes to the rendered “body” field on a content type?

Preface: I don’t often work with Drupal, so I may not be using the correct terminology or fully understand the stack. Please bear with me, I’ll do my best to be as clear as possible.

I want to filter the rendered output of the primary “Body” field on a “Basic Page” (or “Article,” any content type really) to add some classes to various elements. This would be the field labeled “Body” at /node/add/page. I’d like to achieve this using DOMDocument in my .theme file, but I’m having trouble figuring out what the correct “hook” is to tie in to.

So ultimately the goal would be a function something like the following (which is partially psuedo code):

function my_theme_body_alter(&$content) {
    $DOM = new DOMDocument();

    $DOM->loadHTML(mb_convert_encoding($content, "HTML-ENTITIES", "UTF-8"), LIBXML_HTML_NODEFDTD);

    $anchors = $DOM->getElementsByTagName("a");

    foreach ($anchors as $anchor) {
        $existing_classes = $anchor->getAttribute("class") ? $anchor->getAttribute("class") : "";

        $anchor->setAttribute("class", "button {$existing_classes}");

    $content = $DOM->saveHTML($content);

    return $content;

To be absolutely clear, I want to modify the output (on the front end) of this field:


What is the name of the hook I’m looking for, or how can I locate it myself?

ag.algebraic geometry – Brauer groups of a local ring and of its residue field

What’s an example of a local ring $A$ with residue field $k$ such that the restriction map on Brauer groups $varphi : operatorname{Br}(A) to operatorname{Br}(k)$ is not surjective?


  1. If $A$ is henselian (e.g. complete), then $varphi$ is an isomorphism (see (1), IV, Corollary 2.13).
  2. If $A$ contains $k$, then $varphi$ is a split surjection.
  3. If $k$ is a finite field, then $operatorname{Br}(k) = 0$.

(1) Milne, Etale Cohomology, Princeton University Press, 1980

entities – Display taxonomy field in view on content page

Using Drupal 8.8.1, I am trying to display taxonomy fields in views on content pages tagged with that taxonomy. Essentially the content page would have an image header from the taxonomy image field, as well text in the sidebar from the description and contact info fields. I have tried several different iterations of view configuration but still can’t get it to work.

I have a taxonomy vocabulary called Tags that looks like:

- Programs
- - Medicaid (51)
- - Medicare (56)
- - Community Living (61)
- Topics
- - COVID19 (91)
- - Enrollment (121)
- - Eligibility (116)

On my Basic page content type, I have added a reference to the Tags taxonomy as follows. Each node that is created will have a taxonomy tag assigned to it to classify the content.

Machine name: field_tag
Field type: Entity reference
Reference method: Default
Vocabulary: Tags

So then I have a Basic page called Medicaid Overview (node/31) which has a reference to Medicaid taxonomy tag (51). There will then be multiple Medicaid related basic pages that will be flagged with the Medicaid taxonomy term.

I have tried creating several different Views to access the fields on the taxonomy term assigned to the content node that is being displayed. I have tried several different combinations on Contextual Filters and Relationships to no avail. And I have tried several different combinations of creating the view for Basic page and for Taxonomy.

I referenced the following articles (and many others) to try to get it sorted out:

At this point I’m a little confused and need to get reset.

  1. When I create the view, do I set View Settings to Content or Taxonomy Terms? I have tried both and got closest with Taxonomy Terms. In addition, since I want to display fields from Taxonomy, it feels like I should be using Taxonomy Terms.
  2. When I use Taxonomy Term as my View Setting and use Taxonomy term: Term ID as my Contextual Filter, I can get the preview to display only the taxonomy term and field that I want. But when I go to the Medicaid Overview page, it has multiple taxonomy terms displayed. Why won’t it filter to just the page (and taxonomy term) that I am viewing?

Any help is appreciated. I have three views that are dependent on getting to the taxonomy ID that is assigned to the content node that is being displayed. Happy to provide more detail or screenshots.

theming – Naming convention for field type templates?

The naming convention for fields is documented here, Twig Template naming conventions

  • field–node–(field-name)–(content-type).html.twig
  • field–node–(field-name).html.twig
  • field–node–(content-type).html.twig field–(field-name).html.twig
  • field–(field-type).html.twig field.html.twig

But field--text-with-summary.html.twig is one of those that is harder to figure out from just looking at the Field Type.

enter image description here

To make Drupal life easy for this, you can enable Twig Debug. See Locating Template Files with Debugging

Now when you inspect element with browser, you can see which template file is being used (the one with the “x”) and what other available template file names (the ones with “*”) you could use.

enter image description here

views – How do I apply HTML IDs to field output result?

I’m trying to build a block for tb_megamenu of a view of items of a certain content type. I want to use some JavaScript so that when the end user hovers over a title then associated content appears on the right hand side.

I’ve got the JavaScript/jQuery functionality working by attaching a library to the views display twig template and it works with a simple global text field using the correct IDs. However, it won’t work with tokens because all ids will apply to all instances of the field content, so that hovering will show all related content.

Is there a way to separate the fields out like a delta field? I can build this in HTML ultimately but it wont be manageable buy the end user ultimately.

magento2 – I have to disable the MSI and enable the usual qty field only in the magento 2.3.5 version

I have to disable the MSI and enable the usual qty field only in the Magento 2.3.5 version

I tried to use the modules listed on this blog, via the composer. It removes the modules but I am still not getting the usual qty and advance inventory fields in the product form.

I also tried some limited modules which were installed during the magento installation, and not required.
but it still didn’t worked.
the list of those modules is below, in the post.
so I just wanted to know, what is that which I am missing here, and if there is any solution which someone has tried ??





































like – Mysql, Getting all rows in which field ends in a specific character, and another field exists that is the same but doesn’t end in that character

I need to get all rows which end in a specific character, P for example, but in which a similar key sans the P exists. I have no idea how to approach this one in MySQL.

This is very small example, my actual data is huge with other columns also.

|    key     |
| value_100  |
| value_100P |
| value_101  |
| value_101  |
| value_102  |
| value_102P |
| value_103P |
| value_104P |

The query would output,

|    key     |
| value_100P |
| value_102P |

ACF Gallery field – Auto load all posts featured images

Is there a way to load all featured images from one post type from one post category into an ACF Gallery field which updates the load query for example on each field request or other auto triggers?

If yes what will be the script for it and in which document would I need to write that script?