unity – Angle between start and current rotation

I’m facing problem of the operations on rotations. I have a wheel with a start rotation of (0, 0, 0). The player has to rotate wheel 270 degrees in Y axis either left or right.

During the rotation slider should indicate progress of the rotation. For example if player rotated 135 degrees in right direction, slider is 50% filled to the right.

The thing is that I’m not sure how to get the value of which the player rotate the object.
For example when I start rotating right my angle changes from (0, 0, 0) to (0, 359, 0). How can I resolve this issue so it knows that change from (0, 0, 0) to (0, 359, 0) means player rotated only +1 degree?

Problem illustration

magento2 – How can I get current order’s payment method and application_no in order view in Admin?

I want to display application_no if payment method is FN in order details page.

I have created a block.

class Custom extends MagentoFrameworkViewElementTemplate
{
    public function __construct(
        MagentoFrameworkViewElementTemplateContext $context,
         array $data = ()
    ) {
        parent::__construct($context, $data);
    }

    // public function getOrderId(){
    //     return $orderId = $this->getRequest()->getParam('order_id');
    // }

    public function getPaymentMethod(){
        // $orderId = $this->getRequest()->getParam('order_id');
        // $objectManager = MagentoFrameworkAppObjectManager::getInstance();
        // $order = $objectManager->create('MagentoSalesModelOrder')->loadByIncrementId($orderId);
        // $payment = $order->getPayment();
        // // $method = $payment->getMethodInstance();
        // // $methodTitle = $method->getTitle();
        // return $order;
    }
}

Also, I have created a sales_order_view.xml to display my application_no (Tested it with static value and working fine).

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="left">
           <referenceContainer name="payment_additional_info">
                <block class="LimesharpFinanceNowBlockAdminhtmlOrderViewCustom" name="sales_order_view_custom" template="order/view/custom.phtml" />
             </referenceContainer>
        </referenceContainer>
    </body>
</page>

Here is my view file –

FN: <?php var_dump($block->getPaymentMethod()); ?>

Now I wanna pass application_no(custom column already in sales_order table) and payment_method. How can I pass this information from block to view of current order and display it conditionally?

Photographs taken at an art exhibition 19 years ago to be displayed as promo for a current exhibition

I took a set of photographs at a famous artists exhibition 19 years ago and have an interested gallery who’d like to buy the rights to exhibit the images. After scanning them though I can see there are several of the audiences faces visible. Would I risk IP infringement and also breach of Data protection laws as their image is Personal Data ? Even if it was 19 years ago and a public space?

linear algebra – River current problem (How fast can a boat travel upstream and downstream)

In still water a tugboat can travel 16 mi/hr. It travels 49 mi
upstream and 49 mi downstream in a total time of 6.29 hr. What is the
speed of the current?

In every example I can find of this type of problem, the respective times traveled upstream and downstream are given, but not the distance. Here we have the distance traveled upstream and the distance traveled downstream, and the cumulative time traveled overall, but not the times traveled upstream and downstream.

How do I go about finding the speed of the river current given these data points?

wording – Changing password – ‘Old password’ vs ‘Current password’

A two-step approach to changing passwords eliminates the need to use either term (see below). However, if you’re going to use a single-form approach, I’d recommend “current” as it’s more accurate.

Google uses a two-step approach to changing password. First, they ask for “your password”:

enter image description here

Then, after verifying your password, they ask for your new password (with a confirmation):

enter image description here

If you’re going to stay with a one-screen approach, I would recommend using “Current password” since at the time the user enters this password it’s their current password, not their old password. This is the approach and terminology used by both Facebook and Twitter (among others).

Confirmation and/or a “Show password” toggle

Google, Facebook, and Twitter all make you confirm/retype your new password when completing a password change. Only Google has a toggle to show the password you’ve just typed. The more I read and think about password fields, the more I’m convinced that including a “Show password” link or checkbox should be included in password fields.

plugin development – Print Current User Display Name

I am trying to print the current user display name with the following. Any help how to make it work?

add_filter('cf7_2_post_filter-product-pwb-brand','filter_product_pwb_brand',10,3);
function filter_product_pwb_brand($value, $post_id, $form_data){
//$value is the post field value to return, by default it is empty. If you are filtering a taxonomy you can return either slug/id/array. in case of ids make sure to cast them integers.(see https://codex.wordpress.org/Function_Reference/wp_set_object_terms for more information.)
//$post_id is the ID of the post to which the form values are being mapped to
// $form_data is the submitted form data as an array of field-name=>value pairs
return $value;
}

dnd 5e – What is the current status of the UA Revised Ranger?

Rules designer Jeremy Crawford originally indicated in an August 2017 tweet that the UA revised ranger would require revisions before being published:

Before the revised ranger becomes official, it needs further refinement. After that, we’ll get it into your hands!

Crawford later clarified in an unofficial Twitter exchange in October 2017:

In the end, there will be 1 ranger: the PH ranger. It will get alternative features. The official game won’t have 2 versions of a class

Twitter user: So a published version of the UA Ranger will be published as an ‘alternate rule’ for the Ranger?

You’ll be able to take feature X in place of feature Y. It won’t be a whole different class.

However, Jeremy Crawford did eventually make it clear in this July 2018 Twitter exchange that any work on the UA revised ranger as a wholesale revision of the class was no longer occurring, and that at best it was a “possibility” that some alternative class features for the ranger would be released:

Regarding the revised ranger, I mentioned back in 2017 that we have no plans to release an alternative version of a class. That plan hasn’t changed. There is one ranger: the one in the Player’s Handbook.

Twitter user: Are you still considering alternate versions of some of the class and Beast Master features, like you mentioned in the 11/27/2017 Dragon Talk episode?

Alternate features for multiple classes are still a possibility, but we want to do more research before we invest time in them. We don’t want our design to chase phantoms but real desires held by a large number of players.

In short: the revised ranger won’t be published as a whole separate class. At most, it’ll be a set of alternate class features, allowing players to swap out a particular PHB ranger feature for an alternate one – but the designers plan to do more research before they actually decide to do that.


On November 4, 2019, Wizards of the Coast released Unearthed Arcana: Class Feature Variants for playtesting. This UA includes variant class features for every class – including the ranger – that replace or enhance existing features.

As summarized on page 2 of the document, the ranger gains replacements or enhancements for nearly all of its base class features from 1st to 3rd level, as well as a replacement for its 10th-level feature, and an enhancement of one of the Beast Master ranger archetype’s features:

  • The 1st-level Natural Explorer feature (gives benefits from
    chosen favored terrain), as well as its 6th- and 10th-level
    improvements (choose additional favored terrains), are replaced with
    the Deft Explorer feature, a series of 3 benefits that you can choose
    one of at each of those same 3 levels, in any order:

    • Canny: gain proficiency and expertise in a skill, and 2 language
      proficiencies
    • Roving: gain 5 feet to walking speed, and gain climbing and swimming
      speeds equal to walking speed
    • Tireless: give yourself (1d10 + Wis mod) temp HP a number of times
      equal to Wis mod, and reduce exhaustion by 1 on short rest
  • The 1st-level Favored Enemy feature, as well as its 6th- and
    14th-level improvements (choose additional favored enemy types), are
    all replaced with the Favored Foe feature (learn hunter’s mark
    without counting against your number of known spells, and cast it
    without expending a spell slot or requiring concentration, a number
    of times equal to Wis mod).

  • Rangers alone gain the 2nd-level Fighting Style option Druidic
    Warrior (learn 2 druid cantrips that count as ranger spells for you,
    and you can swap them on level-up), in addition to the new Fighting
    Style options
    added by the UA for all classes with the feature.

  • The UA adds a few spells to the ranger spell list (a few, like
    entangle and dominate beast, seem like they should already have
    been on it).

  • The 2nd-level Spellcasting feature gains 2 other enhancements.
    Spell Versatility (which several other “known” spellcasters get in
    the same UA) lets them swap one known spell for a new one of the same
    level on a long rest. Spellcasting Focus, obviously, lets them use a
    druidic focus in place of material components.

  • The 3rd-level Primeval Awareness feature (waste a spell slot to
    find out that an unknown number of a known type of creature is at an
    unknown location within 1 mile, or 6 miles in favored terrain) is
    replaced by Primal Awareness (learn 1-2 specified spells at 3rd, 5th,
    9th, 14th, and 17th ranger level, and cast each of them once per long
    rest without expending a spell slot).

  • The 10th-level Hide in Plain Sight feature (spend a minute to
    camouflage yourself and then press yourself against a surface to get
    a +10 to Stealth checks until you move/take an action) is replaced by
    the much simpler Fade Away feature (use a bonus action to turn
    invisible until the start of your next turn, once per short or long
    rest).

  • Finally, the Beast Master ranger gains 2 additional options for
    their 3rd-level Ranger’s Companion feature: “a primal beast
    known as a Beast of the Air or a Beast of the Earth”. Their
    statblocks are too long to summarize here.

Feedback surveys have already gone out for this UA. It remains to be seen whether some or all of this content will end up being published (and how it will be changed if it is published), but this does seem to reflect what Crawford meant in earlier statements by “alternate class features”.

google sheets – Counting rows based on the date it has and the current end of the week

Problem to solve:
Given 2 rows, containing the author’s name and a date, you have to count how many rows that author has.
The tricky part here is that I have to use the date row and check how many entries does that author have within the week of that date he entered.

What my data looks like:

enter image description here

Expected output:

enter image description here

Let’s hypothetically say that today is the 19th of February and it’s a Friday.
I need to count each row that has a date between 15th of February (Monday) and 21st of February (Sunday).

Next week, from 22nd of February, I need to start it over and check it again for that week and so on.

So, I’m trying to better understand how to approach a simple / stupid problem that I can’t find a solution to it.
I’ve been messing around with the QUERY() function but with no luck since I have literally no idea what lead to follow.

Thanks in advance if someone can solve it or at least point me into the right direction.

QUALITY OF CURRENT LIST PROVIDERS

Hi,

Anyone having LOW LPM with their bought in lists at the moment. I am using 3 different lists from reputable providers and all are giving poor LPM.

Thanks.

Mike 

Having some issues with older Joomla 2.5 site and current host.

Hi we have a old Joomla 2.5 website that requires php 5.4 or 5.6. It is quite large with over 25,000 articles and growing daily. It is a s… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1838248&goto=newpost