rooting – How to get Android Pie style recent apps on Android 5?

I’m back with another question. Let’s make it simple. I want to have the horizontal style recent apps view ie Android 9+ style recent apps view in my rooted Android 5.1 phone. I have searched both on Google and YouTube but no solutions found. Any answers to this?

I am looking forward to the community’s answers.

After a comment from William, I am adding the picture of what I mean.

Recent apps preview:
How I have it now:
Android 5 Recent Apps View

How I want to have it:
Android 9 Recent Apps View

I hope this helps to further understand my question.

dnd 5e – With Blind Fighting style from Tasha’s Cauldron Of Everything, can you cast spells that require a target you can see?

Blind Fighting, as phrased in Tasha’s Cauldron Of Everything, contains additional wording beyond the description of mere Blindsight. The entry for Blind Fighting reads:

You have blindsight with a range of 10 feet. Within that range, you
can effectively see anything that isn’t behind total cover, even if
you’re blinded or in darkness. Moreover, you can see an invisible
creature within that range, unless the creature successfully hides
from you.

Using the optional Class Features for the Fighter class which are presented in TCoE, this Blind Fighting fighting style offers not only 10ft of Blindsight, but the wording above, which by my reading at least heavily implies that you should be able to cast spells which target a space, object, or creature “you can see”, within the 10ft range of this ability.

You can explicitly “see an invisible creature”, but does “you can effectively see anything that isn’t behind total cover” mean that you can cast sighted spells on targets within that 10ft range?

Can I customize SharePoint Modern Teams site global menu style?

Don’t use that nav. Instead set your Team site as a Hub site so you get the modern nav.

Alternatively if you don’t want to Hubify the Team site, you can use a Comm site which has the same modern nav without being a hub.

Manipulating the DOM via CSS/JS in modern sites is unsupported and customizations will likely break over time as Microsoft makes changes to the DOM.

css – How to sync the style in the visual editor with the style of a child theme?

I have a wordpress site with twenty-twenty theme sightly modified with a child theme.
The site’s publically accessible surface is displayed correctly according to the modifications declared in the child theme. ( For example, the background is set to blue instead of the default pink-ish twenty-twenty color. )

My problem is that the visual editor still displays the content with the original template’s style, like there was no child theme at all. ) For example the main background in the visual editor is still that default pink-ish color, not blue.

I wonder if there is a clean and easy solution to copy, mirror, sync the style from the child theme into the visual editor… without messing with the css of the visual editor itself.

dnd 5e – Which damage dice exactly does the Great Weapon Fighting fighting style allow you to reroll?

I called Wizards of the Coast for an official answer, which I’ll summarize.

How Great Weapon Fighting works is that it lets the player who has the GWF fighting style and is using a melee weapon two-handed can reroll all of the damage associated with that weapon.

For example, some weapons that fall under this category are a greatsword or maul, flame tongue, frost brand, vorpal sword, and the sentient weapon Hazirawn from the Hoard of the Dragon Queen adventure. Even the extra damage coming from those weapons can be rerolled as per the Great Weapon Fighting fighting style.

The spells that also allow for this effect are elemental weapon and holy weapon. Specifically because they turn the weapon into a magical weapon that does additional weapon damage.

However, while all of these weapons and spells allow rerolls, what doesn’t allow rerolls are literally whatever isn’t coming from the weapon. Divine Smite, the half orc’s Brutal Critical trait (boo, I know, but I don’t think anyone really cares about that one), the rogue’s Sneak Attack feature, the hex spell, and the hunter’s mark spell are all features that have been under debate, and all of them don’t allow rerolls by the rules.

However, having said all of that, I stress that while at a table, the DM has the ultimate authority to allow or not allow this or that rule into the game. Hope I helped clarify how the rules worked to a degree.

coding style – Variable name re-use: can it be a good thing?

Famously, from how to write unmaintainable code, it is said unmaintainable code reuses variable names:

Wherever the rules of the language permit, give classes, constructors, methods, member variables, parameters and local variables the same names. For extra points, reuse local variable names inside {} blocks. The goal is to force the maintenance programmer to carefully examine the scope of every instance. In particular, in Java, make ordinary methods masquerade as constructors.

I understand how this can be abused, but I’ve seen very readable code make good use of this technique. Generally that code has small method bodies, and the name is consistent, in that it always represents the same effective object (although it may be normalized or transformed in each step, or maybe a default value that was overridden). Often there is also only one object that matters in the method (so the code follows single-responsibility principles well).

However, I can’t remember any concrete examples of this from well-regarded open source, although I have seen them. Anyone have some examples that demonstrate how to use this technique well, and how it may be clearer than alternatives? Pull requests that refactor in this direction with notes as to why would be especially good answers.

coding style – Are there published guidelines, standards, or references that propose unlimited chars per line?

In general, you want to make your code readable. This means that the amount of characters on one line is up to you, your organization that you work for, or your professor if you are in school.

If you have an ultra wide monitor and you are developing your own code for your own project, then it is completely up to you.

Here is a link that talks about line widths that can be too wide making it difficult for the person reading the code/text to understand:

There is no concrete answer to this question. Use your best judgement.

c – Remapping of arrays on structs (code style)

I’m working on a piece of code that remaps a set of signals (1-D integer arrays) onto a set of multi channel samples. I hope the typedefs and the remapping clearifies what I mean. If not, please let me know.

#include <stdint.h>

#define SIGNAL_LENGTH 1024

* Multiple linear input signals as read by a previous input stage 
typedef struct {
    // Mics inside
    int32_t micInside0(SIGNAL_LENGTH);
    int32_t micInside1(SIGNAL_LENGTH);
    int32_t micInside2(SIGNAL_LENGTH);
    int32_t micInside3(SIGNAL_LENGTH);
    // Mics aux
    int32_t micAux0(SIGNAL_LENGTH);
    int32_t micAux1(SIGNAL_LENGTH);
    int32_t micAux2(SIGNAL_LENGTH);
    int32_t micAux3(SIGNAL_LENGTH);
} InputSignals_t;

* Single input struct to be passed to the following filtering stage 
typedef struct {
    // Mic inside 0
    int32_t micInside0a;
    int32_t micInside0b;
    int32_t micInside0Select;
    // Mic inside 1
    int32_t micInside1a;
    int32_t micInside1b;
    int32_t micInside1Select;
    // Mic inside 2
    int32_t micInside2a;
    int32_t micInside2b;
    int32_t micInside2Select;
    // Mic inside 3
    int32_t micInside3a;
    int32_t micInside3b;
    int32_t micInside3Select;
} FilterSample_t;

* Map the linear input signals to interleved multi-channel filter input signals. 
void mapMicFilters(InputSignals_t *inputSignals, FilterSample_t filterSamples(SIGNAL_LENGTH)) {
    for(int i = 0; i < SIGNAL_LENGTH; i++) {
        FilterSample_t *filterSample = &filterSamples(i);
        // I am rather unhappy with the look of the following 
        // code section where the mapping is done.
        // Mic inside 0
        filterSample->micInside0a = inputSignals->micInside0(i);
        filterSample->micInside0b = 0;
        filterSample->micInside0Select = 1;

        // Mic inside 1
        filterSample->micInside1a = inputSignals->micInside0(i);
        filterSample->micInside1b = 0;
        filterSample->micInside1Select = 1;

        // Mic inside 2
        filterSample->micInside2a = inputSignals->micInside0(i);
        filterSample->micInside2b = 0;
        filterSample->micInside2Select = 1;

        // Mic inside 3
        filterSample->micInside3a = inputSignals->micInside0(i);
        filterSample->micInside3b = 0;
        filterSample->micInside3Select = 1;

I am rather unhappy with the look of the code section where the mapping is done.The reason for this is that the lines become very long when the signal names become more specific (therefore longer). But a line break within the statements would really mess up the readability:

filterSample->micInside0a = 
filterSample->micInside0b = 
filterSample->micInside0Select = 

Do you have any suggestions on how to format the code? In dynamic languages I would just take a hashmap with the variable names and loop through it. But I have (and want) to use C.

Thank you!

Word: How to (user-friendly) revert Footnote References style to default?

During re-formatting a large document major part of footsteps notes had their style changed (mostly to Normal). The original (inline) style Footsteps reference is still there, but is not assigned to most of references.

I’m able to create a macro for it.
Simple macro for applying Style “Footnote Reference” to every Footnote Reference in an active document:

Sub main()
    Dim item As Variant
    For Each item In ActiveDocument.Footnotes
        item.Reference.Style = wdStyleFootnoteReference
    Next item
End Sub

wdStyleFootnoteReference = -39

But for my collaborators macros are no-way.

Is there some user-friendly way how to select all these references and set appropriate style for them?

Thanks for suggestions.

Are there any programming style guides that advocate for NO line width restriction?

There are many programming style guides that restrict the line width (aka column count) on their code. This is a hotly debated topic, with no one true correct answer.

I’m trying to find out if there is a respectable style guide that entirely omit this restriction. Does this kind of thing exist, or is the general consensus that some limit should be used?

Note that some people are advocating for the no-limit option in the linked slashdot thread.