regex: regular expression to capitalize the first letter of each word, including special characters

I am developing an application in Portuguese, so my regular expression should contain the following characters (áàâãéèêíïóôõöúçñ) so far. / ( b (a-z)) / g but treat those special characters as the beginning of a new word.


Entrance: rua são luiz
Current departure: Rua SãO Luiz
Desired departure: Rua São Luiz

dnd 5e: How many times can an Astral Monk Self Niv. 17, including the bonus action?

I thought this was easy, but I had a discussion with one of my players who didn't see it the same way as me.

According to the characteristics of the subclass, at the 3rd level:

(…) immediately after you use the attack action with your astral arms on your turn you can do an extra attack with your astral arms as an additional action. The number of additional attacks increases when you reach certain levels in this class, increasing to two at level 11 Y three at level 17.

Pretty straightforward: At level 3, you can make a total of two attacks (1A and 1BA), at level 11 three attacks (1A and 2BA), and at level 17 four attacks (1A and 3BA)

Then at level 5, in each martial class you get an additional attack:

Starting at the fifth level, you can attack twice, instead of once, each time you take the Attack action on your turn.

In addition, at level 17 you get the "Complete Astral Being" function, which provides the following benefit, among others:

Astral prey. As long as you use the Extra Attack feature to attack twice, you can attack three times using your astral arms.

The difference of opinion lies in whether the Extra Attack function means that you are taking the attack action. As such, my player suggests that the astral monk himself scales as follows:

  • at 3rd level can make 2 attacks (1A and 1BA)
  • at 5th level it can make 4 attacks (1A + 1BA + 1 additional attack + 1 astral self-attacks (1 per attack action carried out) as BA)
  • At level 11 he can make 8 attacks (1A + 1 additional attack + 4 astral self-attacks (2 per attack action performed) as BA)
  • At 17th level he can make 12 attacks (1A + 2 additional attacks + 9 astral self-attacks (3 per attack action taken) as BA)

First of all, that seems absurd, even if it satisfies my Jojo fantasy.
The way I interpret is:

  • at level 17 he could make 6 attacks (1A + 2 Extra Attack + 3 astral self-attacks as a bonus action).

All the previous instances take into account the BA that the monk would have needed to summon the astral self.

What are your thoughts? I feel like writing this, it solidified that the answer should be 6 attacks, but I'd like to hear other people's opinions on the matter.

magento2: what is the correct way to empty the cache using TAG programmatically? (including varnish)

I have been looking for a correct way to flush the cache using tags programmatically and have found 2 different solutions when it comes to CMS pages:

  • Using CacheInterface as described here, it actually proposes something as easy as the following code. Properly clear the page cache at the Magento cache level, but it doesn't clean the cache on the varnish side:
  • A second approach using Magento PageCache Model Cache Type, which seems to be specific to the cms page (although I'm not 100% sure). It proposes something like the code below. Clear the Magento and Varnish cache. But it seems to empty the cache for ALL pages, even though we passed a specific tag array.
    $this->pageCache->clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG, (cache_TAGS_array));
  • Note: the label array is of type (cms_p_2)

My question then is:

  • How can I empty the cache of the home page (only the home page) for Magento and Varnish? None of the above solutions provides a 100% good result.

Facing the loading problem of the website?

Hi everyone,

Since Google made page speed an important ranking factor, it means that not only keywords but also web page speed play an important role in SERP ranking. Given that many eCommerce websites use WooCommerce, what is the best cloud hosting solution for an online store?

I also researched on different platforms and came across this ecommerce hosting provider that offers managed hosting to support multiple ecommerce platforms including WooCommerce, Magento, OpenCart and PHP based apps.

Would it be greatly appreciated if any of you can share your experience with these managed cloud hosting providers?


c #: Unit that tests an existing project by creating interfaces for all public classes (including GUI forms)

This is an existing C # .NET WinForms project. I guess it wasn't developed with unit testing in mind from the start. It uses a Model-View-Controller architecture, and the backend is a content repository (a kind of hierarchical database) that I'm not too familiar with, as I've only touched the front end.

I have been asked to create interfaces for each public class, including forms. These will be used for unit testing with NUnit. This is complete. What is the best approach now? The only thing that comes to mind at the moment is to create concrete classes from these interfaces, which is just to redeploy the existing classes in the application. Other than the fact that this will make unit tests "take care of their own business," I don't see what the purpose of rewriting classes is.

If this is the correct approach, it doesn't seem difficult to test things like the Model, which contains an OOP representation of the database. How should forms be tested?

$ 150 / month Voxility Dedi Coresite-2 LA including 1 TBps DDoS. E-2136/64 GB RAM / 5 x SSD / 2 GBps.

Hi everyone,

We can offer you a dedicated premium server at a very competitive price. Delivery time less than 24 hours (specify the operating system in the comments). You will not find it anywhere cheaper than this.

Dedicated Server Voxility Los Angeles

– HPE ProLiant DL20 Gen10
– Xeon E-2136 (6 cores / 12 threads). 3.30 GHz up to 4.5 GHz.
– Coresite LA2 Los Angeles DC
– 64 GB ECC DDR 2666 MHz RAM
– 2 x 250 GB SATA3 SSD
– 3 x 480 GB Intel DC S3520 (65.5k / 16k IOPS, 450/380 MB / s), SATA3, 16nm 3D NAND
– Connection: 2 x 1 GBps LCAP.
– Voxility 1 TBps DDoS protection.
– Premium clean traffic of 20 TB.
– $ 5 for any additional TB (incoming / outgoing).

$ 150 / month, without installation costs!

Direct order link:

Stock very limited!

Any questions? Answer here or visit our website, email us or use our Telegram support! (see below for phone number).

We accept Paypal, credit card, iDEAL, Bancontact, Sofort, Paysafecard, Bitcoin and Giropay. For other payment options, contact us at

Information of our company:

NOVOS BV. We are a company located in Belgium
You can find the information of our company here:…mmer=728513847
Our information and contact information page:


Address: Prosper van Langendocnkstraat 25, 2050 Antwerp, Belgium
Telephone: +32 476 50 52 59 (Telegram support!)

Our privacy policy:
Terms of service: https: //

Our whois information is public!

Including custom posts on other pages

Battery exchange network

The Stack Exchange network consists of 175 question and answer communities, including Stack Overflow, the largest and most reliable online community for developers to learn, share their knowledge and develop their careers.

Visit Stack Exchange

What happens if I don't pay an invoice for including my property on

I opened an account on and listed a property for testing purposes. The room is canceled and I no longer use its services. I received a final reminder to pay my unpaid bill or else they would transfer my account to a third-party collection agency and I may be charged additional legal costs. That's what the email said. Is this something to worry about? Has anyone been in serious trouble for this? Or is it a fear policy?

8 – How to correctly restrict access to nodes (including update / delete) depending on the value of the field?

I have the following requirements:

  • Users have (among others) "tier1", "tier2" or "tier3" roles. A higher value means more permissions and anonymous users are considered "tier0".
  • Users of tier2 and tier3 can create a certain type of node: MyNode. And only these users can update and delete them.
  • The node type MyNode contains the field (my custom) to restrict access: it is a simple integer. 0 means that all users can access it, 1 means that users of level 1-3 can access it, etc.

What is the correct way to implement the node restriction?

What I tried and a longer description of the problem

After searching Google and reading the documentation, I found hook_entity_access. I will simply read all the fields and if I found my type of access field, I read the value and managed it. It worked quite well to view, edit and delete. But not for opinions, they completely ignored that.

After searching a little more on Google, I discovered that hook_entity_access / hook_node_access is ignored in the views as explained in the node access rights. This page also explains that this problem must be resolved using hook_query_TAG_alter, however, I cannot understand how it should be used. I think I'm missing a bigger image and I couldn't google it. But I found another solution: use hook_node_access_records with hook_node_grants. I implemented this solution (with a tutorial help).

Therefore, each instance of MyNode provides a grant based on the value of the field, e.g. gid 2 means that level 2-3 can access the node. Each user receives subsidies based on their level function, p. the user with level 1 receives subsidies with gid 1, 2 and 3. This fixed view problem, but caused another: if I set the access of a node to 3, users of level 0-2 cannot see it (that's right) , but the user of level 2 can Edit that is a problem)

After some tests, it seems that permissions are handled differently to view and update / delete. Permission view permissions are AND-ed with a basic permission system (/ admin / people / permissions), but update / delete permissions are OR-ed. I used the basic permission system to determine which roles can generally create, update and delete MyNode nodes.

So, my current solution is the fusion of both approaches: granting system for views and hook_node_access to work with nodes directly. However, it seems a rather dirty and hacky solution: I practically implemented the same thing twice in different systems, because each system can only handle a subset of all operations. So, my question is: what is the proper implementation? What is correct Drupal-way?

Note: of course, I looked at the modules to solve this. I rejected most of them, because they are still in alpha / beta / rc phase, while the life of D8 is ending. How long would I have to wait for D9 implementation? Others were too bloated to "simple" "compare the numerical value with the role and accept / reject."

My system

shopping cart pricing rules: apply gift vouchers to the total bill amount (including taxes and shipping)

I am looking for a way to offer and process gift cards in Magento 2.3.4.

Coupons must be able to be used to cover the entire shopping cart, including all taxes and shipping costs. Is this possible without additional extensions in Magento 2.3.4?

I discovered that it is possible to set up Gift Vouchers using the Magentos shopping cart rules, but Gift Vouchers with a fixed discount value cannot be applied to the entire shopping cart (products including taxes and shipping) without further improvements.