google docs – What is the effect of sharing with the same people when creating a copy?

When making a copy of a document in Google Docs from file > Make a copy …is there an option too Share it with the same people, What does this option do? Is the document free for the same people as the source or destination folder? If the destination folder is already shared with a number of people, will those permissions be overwritten?

rest api – Magento API programming for creating and assigning coupon codes

We have a situation where we need to dynamically create coupon codes and assign them to a ruleset. As I am new to magneto programming, I am not aware of the use of the REST API and all functions.

Could anyone suggest how to do that, there's an alternative way to access it through Python and PostgreSQL.

We also need these coupon codes to send to customers on their first order. Do you know what all the tables are about?

Waiting for your suggestions. Thanks in advance.

pnpjs – Programmatically creating folders in lists results in invisible or incorrectly named folders

So far, I've found two ways to create a folder using pnpjs-wrapped API calls. One, that is

SPList.rootFolder.folders.add ("name")

Works well for a document library, but when used in a list results in an invisible folder that you can access from a URL but does not appear in the list. The second way is

SPList.items.add ({title: "name", ContentTypeId: "0x0120"})

and it actually causes two entities to be created in the list. One is a list item (in the item collection) with the specified name that appears in the list and is used to access the folder. Second, the actual folder (in the folder collection), but its name is like #_. 000 Where # is the list item ID. And when I access the new folder, I see the #_. 000 Name in breadcrumbs and URL, instead of first name.

In this case, the article properties are as follows:

AssignedToId: null
AssignedToStringId: null
Attachments: wrong
AuthorId: 10
Body: zero
Category: zero
Comment: zero
ComplianceAssetId: null
ContentTypeId: "0x0120005B3A6725E6545840A09FDD3C367BC6FA"
Created: "2019-06-21T04: 54: 58Z"
EditorId: 10
FileSystemObjectType: 1
ForeignKeyId: null
GUID: "b4ffd422-19e3-40ae-b58d-4c56280b159b"
ID: 49
Id: 49
IssueStatus: null
Line: zero
Changed: 2019-06-21T04: 54: 58Z
OData__UIVersionString: "1.0"
Priority: zero
RelatedIssuesId: []
ServerRedirectedEmbedUri: null
ServerRedirectedEmbedUrl: ""
TaskDueDate: null
Title: "MtFolder"
V3Comments: zero
odata.editLink: "Web / Lists (guid & # 39; 783d01c4-7dca-4ab2-aa7b-ca2e4c89283d & # 39;) / Items (49)"
odata.etag: "" 1 "" "debe0338-9d3a-4770-94b0-aa54d92df311"
odata.type: "SP.Data.LookupListListItem"

The folder properties are like

Exists: true
IsWOPIEnabled: false
ItemCount: 0
Name: "49_.000"
ProgID: zero
ServerRelativeUrl: "/Lists/LookupList/49_.000"
TimeCreated: "2019-06-21T04: 54: 58Z"
TimeLastModified: "2019-06-21T04: 54: 58Z"
UniqueId: "a29e5616-a82d-475a-b649-94f926add5ab"
Start page: ""
odata.editLink: "Web / GetFolderByServerRelativePath (decodedurl = & # 39; / Lists / LookupList / 49_.000 & # 39;)" "'/Lists/LookupList/49_.000 & # 39;)"
odata.type: "SP.Folder"

Therefore, the Name property of this folder must match the title of the item. This is obviously not the case. However, I can not find properties for linking the folder to the item so I can, for example, retrieve the folder based on the element's properties and update its name. There is, however, something that looks like a link in the element entity itself. For example, if I'm processing the item.add () promise, I can try the following:

.then (result => {
return result.item.folder.update ({
Name: Folder name

However, this only returns 204 no content result, as if the folder had not yet been saved. However, it can only be opened a moment later with the same URL that the folder.update () method used to try to publish the update information. I could probably wait a moment later and call item.folder.update (), but which moment exactly? The moment the folder is saved, there is no way to connect to the chain.

So that's my previous investigation.

Is there a way to hook into result processing not for the new item but for the attached folder?
Or is there another method or set of arguments for folders.add () or items.add () Methods to create both the "folder item" and the actual corresponding folder with the correct name?

Software – Apps for creating long horizontal (scanner) images

** not panorama! **

Are there cameras or camera apps for creating long horizontal images using techniques similar to those of a scanner?

Such an app would either record a video or use a live camera and use Motion Detection to extract a center column of each frame to create an infinitely long image.

The difference with Panorama is that Panorama works by rotating the camera. This works by moving the camera in one direction. Imagine pointing the camera out at a car or a train and taking a long, flat projection photo of an entire city block.

I know that I might be able to do this in Photoshop, but it would be extremely tedious, as only a small column can be used from the center of the image, otherwise there will be problems with perspective distortion and I wonder if cameras already support this. Many cameras now support apps and programmable devices have cameras

Panorama software will not achieve what I'm trying to get.

Trying to clarify the result of the technique I was looking for would create a picture without a horizontal perspective. Imagine trying to take a photo of a bookshelf with 2 images, one for the left 60%, one for the right 60%. They overlap in the middle. In both pictures you get perspective. You will see that the pages of the bookshelves point to the center and that the panorama software can not solve this problem.

On the other hand, if you've taken 1000 pictures and recorded only 1% of each in the middle, you'll get a flat picture, at least in the vertical plane. Since assembling so many (or many more) images is far too costly, ideally you want software that uses only a single vertical pixel column of each image to save on storage and processing costs.

So smartphone cameras take panoramas (at least iphone). When rotating the camera, only one pixel column is needed. Unfortunately, the compass sensor is used to detect that you are spinning. There is no position sensor that is accurate enough to know that you are moving the camera from left to right, so you will need to use the image motion detection technology instead.

python – Creating a Consume Function for Iterators

So I've been thinking carefully how to use an iterator on this question, and I find that there's no real proper function for that, which is clearly explained.


collections.deque (maxlen = 0) .extend (iterable)

is not exactly descriptive and although it is good to develop a properly named method that uses only the Deque approach, I wanted to do my own research and learn something. c (which I have rarely really dealt with),

So .. Using the approach used in _collectionsmodule.c, I found the following:

#include "Python.h"

static PyObject *
consume (PyObject * self, PyObject * iterable)
PyObject * (* iternext) (PyObject *);
PyObject * item;

if (PyObject_GetIter (iterable) == NULL)
return NULL;

iternext = * Py_TYPE (iterable) -> tp_iternext;
while ((item = iternext (iterable))! = NULL)
Py_DECREF (item);

if (PyErr_Occurred ()) {
if (PyErr_ExceptionMatches (PyExc_StopIteration))
PyErr_Clear ();
return NULL;

static PyMethodDef consumeMethods[] = {
{"consume", (PyCFunction) consume, METH_O,
"Perform an iterator until exhausted."},

static structure PyModuleDef _consumemodule = {
"Consume module",

PyInit__consumemodule (void)
return PyModule_Create (& _ consumemodule);

It works slightly better than the Deque approach that is expected, as it uses almost the same approach, though I wondered if any of the C-gurus could see if I lacked anything or if something could be done better than all it does is exhaustion of the iterator. I tried with METH_FASTCALL but that does not work as well as METH_O and in the while I tried loop withwhile ((Py_XDECREF (iternext (iterable))) = NULL) the only way I could find to eliminate the need for the variable items was through a macro like this:

static inline int _Ret_DECREF (PyObject * op)
if (op == NULL)
return 0;
Py_DECREF (op);
return 1;

#define Ret_DECREF (op) _Ret_DECREF (op)

Then just go through it like this:

during (1) {
if (Ret_DECREF (iternext (iterable)))

But something just does not feel that way.

Finder window is not updated when creating files

I run a code that creates files in a directory. I opened a Finder window for this directory, and when the file is created, the directory does not show it. It does not seem to update properly.

I can find the file with spotlight and it will display its path in the right place. Even opening a new Finder window does not fix this error. When I open the file from Spotlight in the preview and click on the file name and then on the enclosing directory, the Finder window displays the file. The added date timestamp indicates the correct time the code reported that the execution was complete and the file was created.

Is there a way to fix this?

Google Sheets: Script for creating new sheets from template + rename and auto-populate with data from rows?

I have a sheet with many form template entries, each template with its own line.

I have another sheet that is a template for displaying the data of each submission.

I want a script to duplicate the template, rename the sheet based on the name of the submitting person, and import the data from the submission into different cells of the duplicate template to make it more understandable.

Are there any differences in creating teams when I add the user from a Sharepoint site or an Office 365 group, or from MS Teams?

In our Office 365 tenant, I've created the following new MS teams:
Enter image description here

which also created new Office 365 Group + Sharepoint modern team website.
To add members or owners to the MS teams I found these 5 possibilities:

  1. With the MS Team Desktop App I can add members and owners.
  2. I sign in to the Office 365 Admin Center >> Office 365 groups >> I can add members and owners.
  3. Log in to the Sharepoint site >> Click "Site Permission" >> "Invite people" >> "Add members to the group" >> I can add members and owners.
  4. In the Office 365 Admin Center >> MS Teams >>, I can add members and owners.
  5. If I went to the Office 365 Admin Center >> Active Users >> Click a user >> Edit the user >> Edit "Group Memberships" >> I can add the user to the Office 365 group.

All the above steps add the user either as an owner or as a member to Office 365, and give the user access to teams and the Sharepoint site. But my question, if adding users with the above 5 approaches is exactly the same? or some approaches will not be the same as others?

lvm – lvconvert creating cached LV – results in device mapping: Loading ioctl failed (254: 0): Invalid argument

After I successfully created the meta and cache LVs on Sles15 and combined them with lvconvert, I go to link the cache pool to the slow LV and get the following error.

lvconvert –type cache –cachepool vgVMs9 / VMs9Cache vgVMs9 / VMs9
Do you want to delete existing metadata of cache pool vgVMs9 / VMs9Cache? [y/n]: y

I've successfully done this on another identical SLES15 system in exactly the same way, using

On the faulty system, a series of LVs and VGs were removed and added. I suspect there is a problem with the LV metadata, but I can not figure out where.
Everything looks fine when I look at the following before I create the vg or lv from scratch.
I even destroyed the physical array and recreated it to a different SD.

When I try to cache for the other two LVs, I also get the same error.

dmsetup info -C
Name Maj Min Statistics Open Targ Event UUID
vgVMs3-VMs3 254 1 L – w 1 1 0 LVM-bmq45j6cfWdP3dg9gwCz4FJt4jAXtNDexLno3mVLGvFJ7K0LYcu29iVMvAW6ABGb
vgVMs4-VMs4 254 2 L – w 1 1 0 LVM-ww7pv8WQFd1nhlrdcX1Jl6qOgK63laFn3VBwCUFQM5D0laxzGx7DbzRQ6devdQG9

# pvs -a
PV VG Fmt Attr PSize PFree
/ dev / sda1 — 0 0
/ dev / sda2 — 0 0
/ dev / sda3 — 0 0
/ dev / sda4 — 0 0
/ dev / sdb vgVMs9 lvm2 a– 475.93 g 475.93 g
/ dev / sdc vgVMs3 lvm2 a– 1.82t 0
/ dev / sdd vgVMs4 lvm2 a– 1.82t 0
/ dev / sde vgVMs9 lvm2 a– 1.82t 1.82t
/ dev / vgVMs3 / VMs3 — 0 0
/ dev / vgVMs4 / VMs4 — 0 0

sdb is the SSD for caching
sde is the SATA Raid10 array

Any help with the next step would be appreciated.