dnd 5e – For the purpose of the Detect Magic and Identify spells, is a magic item that is currently out of power still treated as a magic item?

On the basis that things do only what they say, a magical item remains magical unless there is a rule stating otherwise.

The rules call out several cases where magic items do lose their magic. Here’s a sampling (all citations from Dungeon Master’s Guide):

Once used, a consumable item loses its magic. (pg. 141)

Once it hits a target, the ammunition is no longer magical. (pg. 150)

Once an arrow of slaying deals its extra damage to a creature, it becomes a nonmagical arrow. (pg. 152)

Doing so ends that pellet’s magic. (pg. 166)

If a magic bead is removed from the necklace, that bead loses its magic. (pg. 182)

On a 1, the staff becomes a nonmagical quarterstaff. (pg. 201)

However, many items that can regain their abilities do not include this wording:

The bowl can’t be used this way again until the next dawn. (p.g 156)

The cube starts with 36 charges, and it regains 1d20 expended charges daily at dawn. (…) If the cube has insufficient charges remaining, nothing happens. (pg. 156–160)

On a 1, the staff retains its +2 bonus to attack and damage roll but loses all other properties. On a 20, the staff regains 1d8 + 2 charges. (pg. 202)

Many items also call out circumstances under which they are destroyed, in which case there is no longer an item to be magical.

It sounds like your mirror is a homebrew item, in which case the DM is welcome to add a rule stating that the item is nonmagical when without crystals, but this would be a specific exception, not a general rule.

recovery mode – Bricked phone Huawei P10 – adb and fastboot cannot detect (ubuntu 20.04)

I messed around with my phone (Huawei P10 VTR-L29) and unfortunately bricked it.

what happened

To give you the whole story, I tried to root it, but during the root process I found out that the device is encrypted so I had to “rollback”. That worked fine and my phone was working ok with one issue – I wasn’t able to update firmware via regular system updates. I saw the update, but wasn’t able to download and install – it always ended up with some error.

That made me decide to reinstall the firmware from scratch. I followed general steps but yeah, I messed up.

current status

The only thing I can see now is

Emui Recovery

When I click on download latest version and recovery

Downloading

But after a while it fails:

Failure

And I am stuck 🙁 I can’t get any further .. I tried to connect via ADB (but since I cannot get in the phone to enable USB Debugging (which might be the problem) I am unable to connect (nor ADB neither FASTBOOT can see the device).

I tried to create this file:

/etc/udev/rules.d/51-android.rules 

But when I run

sudo adb kill-server
sudo adb start-server
adb devices

It’s still empty … I can’t even get to the “FACTORY RESET” by pressing and holding POWER + VOL:DOWN for some time; it always brings me back to the Huawei eRecovery

Do you guys have any idea how to fix this?
Or is that phone dead for good?

I don’t care about the data inside.. I would only love to make it work again

dnd 5e – For the Purpose of Detect Magic and Identify. Would a Magic item that ran out of power for the moment be considered a magic item?

If a magic item runs on “Magic Batteries” when the Item is out of power would it be considered a magic time for the purpose of the Identify and Detect Magic spell?

For example, I have a Mirror that shows through illusions, it has crystals around it that are destroyed as you used it, you can replace the crystals for more uses when it has no crystals, would it still be considered a magic item detectable by the spells?

Would the same work for items with charges that recharge at dawn? If the item has 0 charges and is not dawn yet, would it be still be considered a magic item?

How to detect if a post has an Advanced Custom Field Relationship field set and exclude it?

I’m creating a menu bar that lists all of the posts titles and I want the ACF Relationship field to act as a subpage field on some of the posts. If a relationship field is set on a certain post, it will show up under which post it’s set (will look like a child) and it will exclude it on the main list (kind of like the parent list).

Sample expected output:

Black
- Avocado
- Beans
Blue
Green
- Broccoli
- Spinach
Yellow

Current output where the supposed sub posts is duplicated on the parent list:

Avocado
Beans
Broccoli
Black
- Avocado
- Beans
Blue
Green
- Broccoli
- Spinach
Yellow
Spinach

This is my code. I was trying to put all of the IDs that has a relationship field set so that when I test it on in_array, it will exclude it. The problem is that the $rel = get_field(“relationship”) only sets on posts that I call the parent posts and not the child posts so I can’t exclude them.

<ul class="sitelist">
    <?php 
    $q = new WP_Query( array(
    'posts_per_page'  => -1,
    'orderby'       => 'title',
    'order'         => 'ASC'
    ));
    ?>
    <?php 
        while ( $q -> have_posts() ) : $q -> the_post(); 
        $thetitle = get_the_title();
        $theID = get_the_ID();
        $rel = get_field('relationship');
        $items = array();
    ?>

    <?php if( $rel ): ?>
    <?php foreach( $rel as $p ):  ?>
    <?php $items() = get_the_title( $p->ID ); ?>
    <?php endforeach; ?>
    <?php endif; ?>

    <?php  if ( ! in_array(get_the_title(), $items)  ) : ?>

        <?php 
            if( $rel ): ?>
                <li>
                    <a href="https://wordpress.stackexchange.com/<?php the_field("page_link'); ?>" target="_blank">
                        <?php echo $thetitle; ?>
                    </a>
                </li>
            <ul>
            <?php foreach( $rel as $p ): // variable must NOT be called $post (IMPORTANT) ?>
                <li>
                    <a title="<?=$p->ID;?>" href="https://wordpress.stackexchange.com/<?php the_field("page_link', $p->ID); ?>"><?php echo get_the_title( $p->ID ); ?></a>
                </li>
            <?php endforeach; ?>
            </ul>

        <?php else : ?>
            <li>
                <a href="https://wordpress.stackexchange.com/<?php the_field("page_link'); ?>" target="_blank">
                    <?php echo $thetitle; ?>
                </a>
            </li>
        <?php endif; ?>

    <?php endif; //not in arrays ?>

</ul>

dresden files – Are lore rolls to detect magic automatic?

I know from reading the volume 1 rule book, that the presence of magic such as with trap-wards and ghosts (examples used as they are cited in the book), can be detected by a magic user rolling well on lore – however, I’m not sure on if the roll is supposed to be automatic or not? According to the rules of the system.

As in, if there is something like a magical trap set or a non-visible ghost present: by the rules, is the GM be supposed to automatically call for magic-users to roll lore to detect magic, or do the players have to decide themselves if they want to make a roll to check an area?

I’ve perhaps missed something somewhere in the book clarifying this.

bitcoin core – How to detect that full node is in sync (using jsonrpc)?

Using the getblockchaininfo RPC command :

  • if initialblockdownload is true, your node is currently syncing with the network for the first time.
  • else :
  • if the headers field number is superior to the blocks field number, your node is catching up with the current state (likely after having been restarted)
  • else (headers == blocks) : your node is synced !

Here is the current output of the command for me :

$ bitcoin-cli getblockchaininfo
{
  "chain": "main",
  "blocks": 634379,
  "headers": 634379,
  "bestblockhash": "000000000000000000136f1b78deeebc33a9b7b33d25c2e37f5446cb33b586fd",
  "difficulty": 13732352106018.34,
  "mediantime": 1591963775,
  "verificationprogress": 0.9999999385944023,
  "initialblockdownload": false,
  "chainwork": "0000000000000000000000000000000000000000104a35fae53a5b470d8e9524",
--snip--
}

graphics – Detect if any edges cross in a graph with a specified layout

I have some Graphs for which I have explicitly specified both the VertexCoordinates and the EdgeShapeFunction. I’d like to determine (just a boolean True/False is fine) whether the resulting Graph as drawn on screen contains any intersecting edges. E.g.,

Image of graph with no intersecting edges, labeled False, and graph with intersecting edges, labeled True

How might I go about detecting this?

If it is useful for testing, I produced the above graphs thusly:

symbols = Table(Unique(), 8);
v = Flatten(MapAt(Reverse, Table({a, s}, {s, symbols}, {a, {-3, 3}}), {;; ;; 2}), 1);
e = BlockMap(Apply@UndirectedEdge, v, 2, 1) ~Drop~ {Length@symbols};
curv = GraphElementData({"CurvedArc", "Curvature" -> (#〚1〛〚2〛 - #〚2〛〚2〛) / #〚2〛〚1〛})&;
g(order_) := With({rules = Thread(symbols -> order)}, Graph(e, 
  VertexCoordinates -> Thread(v -> (v /. rules)), EdgeShapeFunction -> Thread(e -> (curv /@ e /. rules))))

g1 = g({8, 3, 2, 1, 5, 4, 6, 7})
g2 = g({8, 6, 5, 1, 7, 3, 2, 4})

boot – Would this loophole for stolen MacBook Pro Retina work, or can macOS detect this and stop it?

Imagine a Late 2013 Retina MacBook Pro. It’s got FileVault 2 enabled, it’s been shut down (so the disk is encrypted) and the EFI Password is set, so they can’t boot from another disk or reinstall macOS. I’ve also locked the Mac, but we’ll imagine Find My Mac hasn’t been able to phone home yet.

They can’t Command-R or Option-Power their way past, and they can’t access the copy of Catalina installed on the drive. My question is this: could they install a copy of macOS onto another compatible SSD and then replace my Mac’s internal SSD with said other SSD, bypassing EFI Lock because it’s classified as the internal drive? Or can Apple’s EFI detect that the drive is different and refuse it, asking for a password?

As someone who carries my MacBook Pro Retina on me at all times, and plans on a somewhat pricey upgrade to a newer model sometime in the future, I’d like to ensure I can make this thing a glorious paperweight for any would-be thief.

Detect hover mouse movement on flutter

I am working with flutter app development SDK latest version .And I want to do detect hover mouse movement over a button and perform button animation like in Microsoft edge browser . How could I do this ??