How do you move a row in a Google Docs Document table?

[The question is somewhat obsolete; the new behavior does something reasonable on a paste when you’ve copied an entire row. As far as I can tell, there’s still no way to move a row directly. The workflow now is copy a row, insert a new blank row where you want one, paste (the paste now inserts the row correctly), and delete the original row.]

How do you move rows in a Document table? The obvious thing – selecting the entire row, cut, paste – does something very strange (inserts the row as a single cell with a nested table containing the cut row).

compiler defined move constructor with destructor

As per the link [Move-ctor][1], compiler does not generate a default move constructor if we have a user defined destructor.

Code snippet:

 class General { public:     ~General();     General();     void testInitList(); };  int main(int argc, char **argv) {     General b(std::move(General()));     General g = std::move(b);     g.testInitList();     return 0; } 

The code compiles implying that the compiler generated a default move constructor. The code was compiled using gcc version 5.4.0.

Could someone explain why the compiler generated a move constructor and move assignment operator in this case despite have a destructor?

Best, Rahul

Move the onscreen circle when camera moves

I have a script that accesses my webcam and displays the captured video on the screen. I can also very easily draw a circle (a rectangle, it doesn’t matter) over the video.

When I move the camera physically, the video also “moves”. My webcam is armed on the top left corner of my monitor. So when I slide the camera across the monitor to the right, the video itself, and so all obejcts in it move left. But, it’s obvious, that the drawn circle stays unmoved.

Now I want the circle be moved when the camera moves.

G1. When the circle contains an object (as in pic1), the goal can be reached using the object tracking algorithms. (I am working with python and using openCV lib, and there are several builtin algorithms (Boosting, MedianFlow, MIL), also the meanshift algorithm, etc.)

G2. There can be cases, when the circle doesn’t contain an object (doesn’t have any underlying object, as in pic2). In these cases the object tracking algorithms don’t work.

I hope I managed to explain the problem. Now I have 2 questions:

Q1. Is there a better way to achieve the Goal1?

Q2. How can I achieve the Goal2? (Maybe there is a way to determine that the video and objects (the wall watch in pic2) moved left, and move the circle proportionally.)

Any help would be appreciated.

P. S. I’m new to Stack Exchange platform, so if the current topic isn’t the right place for my question (problem), please tell me where should I post it.

Pic1 Pic2

Move Customer Extension Attribute to new tab

I’ve successfully created several customer extension attributes that display on the customer form and save and load data.
enter image description here

When I try to move these fields to a new custom tab on the customer admin page, they break. The source models still load, but the data isn’t populated or saved. I can see when I inspect that the form name changes from customer['my_attribute'] to my_tab[my_attribute].
enter image description here

I suspect I need to change my UpgradeData.php script to use a custom form, but I’m having trouble finding resources on how to go about this.

Relevant snippet from UpgradeData.php:

        $  exemptionTypeCode = 'my_exemption_type';         $  eavSetup->addAttribute(             CustomerMetadataInterface::ENTITY_TYPE_CUSTOMER,             $  exemptionTypeCode,             [                 'group' => 'General',                 'type' => 'varchar',                 'label' => 'Exemption Type',                 'input' => 'select',                  'required' => false,                 'visible' => true,                 'user_defined' => true,                 'position' => 501,                 'system' => 0,                 'sort_order' => 50,                 'default' => 'non_exempt',                  'source' => 'Custom\Module\Model\Attribute\Source\CustomerExemptionType',                 'backend' => 'Custom\Module\Model\Attribute\Backend\CustomerExemptionType',                 'frontend' => 'Custom\Module\Model\Attribute\Frontend\CustomerExemptionType',                 'global' => 'Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_GLOBAL',                  'is_used_in_grid' => false,                 'is_visible_in_grid' => false,                 'is_filterable_in_grid' => false,                 'is_html_allowed_on_front' => true,                 'visible_on_front' => true             ]         );         $  eavSetup->addAttributeToSet(             CustomerMetadataInterface::ENTITY_TYPE_CUSTOMER,             CustomerMetadataInterface::ATTRIBUTE_SET_ID_CUSTOMER,             null,             $  exemptionTypeCode);         $  exemptionType = $  this->eavConfig->getAttribute(             CustomerMetadataInterface::ENTITY_TYPE_CUSTOMER,             $  exemptionTypeCode);         $  exemptionType->setData('used_in_forms', ['adminhtml_customer']);         $  exemptionType->getResource()->save($  exemptionType); 

Snippet from customer_form.xml, changing fieldset name from ‘customer’ to ‘my_tab’ breaks the extension attributes.

<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <fieldset name="customer">     <field name="my_exemption_type" formElement="select">         <argument name="data" xsi:type="array">             <item name="config" xsi:type="array">                 <item name="label" xsi:type="string" translate="true">Exemption Type</item>                 <item name="source" xsi:type="string">customer</item>             </item>         </argument>         <settings>             <visible>true</visible>         </settings>     </field> </fieldset> 

Any help with either moving attributes to different tabs, creating a new admin form, or a different approach I haven’t considered are appreciated!

With gravity enabled, how do you move a RigidBody forwards at a specific speed?

I have a perfectly smooth cube on top of a perfectly smooth plane. I am applying a forward-force of 1 unit per second, using rigidBody.AddForce(new Vector3(0, 0, 1), ForceMode.VelocityChange). I apply this force every FixedFrame(), taking into account Time.fixedDeltaTime, of course.

When the “Use Gravity” checkbox on the RigidBody is not checked, the object behaves as expected; after exactly 3 seconds, it has a speed of exactly 3 units per second.

However, when I enable the “Use Gravity” checkbox, the object barely moves. Both the object and the surface are using Physic Materials with zero friction, and the moving object’s RigidBody has zero drag and zero angular drag.

Why does this happen? And more importantly, how would I apply a force to this object so that it moves forward at, say, exactly 3 units per second, with gravity enabled?

Thank you.