How to alter the number of items shown in carousel, knowing the results number in a view

I’m relatively a rookie in the Drupal Environment, but I already managed to build a site using Drupal 8. I have a view displayed as a carousel; the default settings are to show 3 elements, but I would like to set some kind of function that modify those settings in order to show less elements for certain number of results given by the view.

Split Windows search index per volume and selectively re-use it alter clean OS install

Windows 7+ (probably, Vista too) can create an entire index for the chosen directories and store it in one place (C:\ProgramData\Microsoft by default). Assume I have a system drive (C:\, programs and Windows itself), internal data drive (D:\, large collection of text files, office documents and PDFs) and an external storage (E:\, large media files and backups) and I added all the files stored on them to the index, which took for the Windows indexing 3 or 4 days to finish working 24/7 (fulltext indexing enabled).

When I decided to do a clean Windows (re)install, I moved index files from the drive C:\ to D:\ thinking that I can change location in the indexing options of the freshly installed Windows 10 so that the former index will be picked up and it only is going to check the altered volume (C:\, in this case). However, it had the reverse effect: Windows 10 indexing never finished adjusting after clean install, fulltext search didn’t work at all and I had to recreate the index again (took the laptop another 3 days working 24/7).

At this point I’m wondering whether it is possible to store indices discretely on each volume only with the search data for the files stored there. If not, what’s the best strategy for preserving previously created index across multiple drives, including the system one, for the clean install of the Windows so that it’ll be able to pick it up and use again without fully recreating?

How to alter inline entity form fields on node edit drupal

I want to hide some fields of product reference on node edit. My purpose is to unset or set access to false for colors or price field of line item included in node as inline entity from in a content type. I am using hook as

$  form_state){ dsm($  entity_form); unset($  entity_form['field_product_colors']); // remove "colors" field from inline entity form  } 

but hook is not called at this screen when user edit a product on node edit i have shared a node edit screen where product is edited by click on edit link and then update some thing but dont want colors and price to be shown thereenter image description here

Can the Alter Self spell simulate bioluminescence?

I had an idea that my Draconic Bloodline sorcerer would use the Dragon Wings feature before casting alter self to basically look like an angel. But I thought the look wouldn’t be complete without a halo or some sort of “radiance”, so I was wondering if alter self could also add a bioluminescent ring on the scalp that would glow like a halo, casting superficial light, or dim light at best.

Does anyone know if this would work?

hook to alter custom blocks?

I am having a problem with my custom blocks rendering, and I want to programmatically manipulate the blocks to troubleshoot the issue.

I used this question to add this hook to my module:

function mymodule_block_view_alter(array &$  build, Drupal\Core\Block\BlockPluginInterface $  block) {   drupal_set_message($  block->getBaseId()); } 

However, when I navigate to my site, I see only the base ids of system blocks:

- page_title_block - system_main_block - help_block - local_tasks_block 

My site’s header and footer are made of custom blocks, so I should be seeing their ids.

How can I programmatically access my custom blocks?

ALTER TABLE command with no default value taking forever?

I’m attempting to add a NOT NULL constraint to a table I have (so I can use it as part of a primary key, so I can create a spatial index…) but it is taking a really long time – 1 hour 31 minutes and counting.

I had read this post where the answer seemed to be that it was taking so long because the person was adding a default value but i’m not doing that:

ALTER TABLE unacastVisitRaw ALTER COLUMN timestamp varchar(64) NOT NULL 

The table is rather large (290 million records) but it still seems like a long time for just adding a constraint and not changing any values.

Is there anything I can do to speed up this operation? Why would it be taking so long if I’m not updating the existing records?