I can hold alt then click and drag in a line to create a line of cursors. However, I'd rather do this with a keyboard shortcut (e.g. alt + up creates a new cursor on the line above the current one). I don't see anything about cursor duplication in the Keyboard Shortcuts file or the command palette - does this mean there is no way to set up a shortcut for this? If not, what command do I need to bind to do it?
Basicly what I'm trying to achieve is when moving my mouse I want to have second cursor duplicating everything I'm doing with my mouse ideally on second monitor or at least in second window or maybe even on second pc.
Think about it like having two paints open and drawing the same thing on both of them with one mouse. I'm also looking to achieve the same thing with keyboard. I checked some multiboxing software but they seem to be outdated and working poorly. Is there a software to make it work?
I'm trying to use Python to duplicate points in a file geodatabase feature class using an insert cursor in combination with a search cursor. The points represent wells, and I want to create a duplicate point for each geologic reservoir with which the well is associated. A where clause in the search cursor is used to identify the points to be duplicated, and then the insert cursor replicates the rows in the search cursor, with some minor modifications. This appears to work fine when I run the code with the first reservoir. So I copy and past that bit the code, make some minor modifications to reflect the next reservoir for which I want to create duplicates, and run it again. The problem is that each time I run the block of code, I get additional records inserted into the feature class. In other words, there are 63 wells that meet the criteria for duplication. When I duplicate these with the cursors for ATOKA, 63 rows is what I get. However, I get 68 CLFKL records and 78 CLFKU records. I want to do this for a total of 10 reservoirs. By time I get to the 8th or 9th one, the code appears to hang but is actually creating rows. I let it run overnight and had a feature class with almost a GB of points the next morning.
Here's my take on what I think you're trying to accomplish. It looks like your whereClause and field names are the same for both ATOKA and CLFKL so I condensed the cursors together. I also reformatted your whereClause because it looked strange. However, I'm not sure your allPoints variable is correctly pointing to a feature class.
in the where clause, since this field is blank for all of the original rows. When I added this text to the where clause it did cut down on the number of rows that were being inserted, but I was still getting some extras.
I thought this might be because of the where clause, since that's basically the only tuple that isn't holding cursor parameters. I tried using my original where clause, but got the same error. So, I inserted a few print statements and found that the code executes until line 27 in @Blake Terhune's code, where the field values for the insert cursor are defined, before giving the error. When I comment out lines 27-29 and 33-35 in @Blake Terhune's code, the insert cursor adds the correct number of rows to the feature class, but with null values in the RESERVOIR2, VOOIPratio, and fcEUR fields.
It seems the after operator is allowing this value to appear as the first row in the next set. I would think after means > and not >=. It's strange, the value of the cursor when used on other things neatly steps me through and never duplicates. With this query it is duplicating this one set. I can see no reason for its duplication in the data. I guess this can possibly be an artifact in the data itself but I would expect that when I use after (like with products) the values is truly after the cursor and not including the value of the cursor itself. The sample on this page for products works as expected: but mine glitches on this one order.
JB Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Duplicating a cursorOnce a cursor has been initialized (for example, by a call toDBcursor->c_get), it can be thought of as identifying a particularlocation in a database. The DBcursor->c_dup method permits an application tocreate a new cursor that has the same locking and transactionalinformation as the cursor from which it is copied, and which optionallyrefers to the same position in the database.
In order to maintain a cursor position when an application is usinglocking, locks are maintained on behalf of the cursor until the cursor isclosed. In cases when an application is using locking withouttransactions, cursor duplication is often required to avoidself-deadlocks. For further details, refer toAccess method locking conventions.
Windows 8 disables standard Windows 2000 Display Driver Model (XDDM) mirror drivers and offers the desktop duplication API instead. The desktop duplication API provides remote access to a desktop image for collaboration scenarios. Apps can use the desktop duplication API to access frame-by-frame updates to the desktop. Because apps receive updates to the desktop image in a DXGI surface, the apps can use the full power of the GPU to process the image updates.
DXGI provides a surface that contains a current desktop image through the new IDXGIOutputDuplication::AcquireNextFrame method. The format of the desktop image is always DXGI_FORMAT_B8G8R8A8_UNORM no matter what the current display mode is. Along with this surface, these IDXGIOutputDuplication methods return the indicated types of info that help you determine which pixels within the surface you need to process:
Suppose the desktop image was transmitted over a slow connection to your remote client app. The amount of data that is sent over the connection is reduced by receiving only data about how your client app must move regions of pixels rather than actual pixel data. To process the moves, your client app must have stored the complete last image.
To reconstruct the correct desktop image, your client app must first process all the move regions and then process all the dirty regions. Either of these lists of dirty and move regions can be completely empty. The example code from the Desktop Duplication Sample shows how to process both the dirty and move regions in a single frame:
You must add explicit code to your desktop duplication client app to support rotated modes. In a rotated mode, the surface that you receive from IDXGIOutputDuplication::AcquireNextFrame is always in the un-rotated orientation, and the desktop image is rotated within the surface. For example, if the desktop is set to 768x1024 at 90 degrees rotation, AcquireNextFrame returns a 1024x768 surface with the desktop image rotated within it. Here are some rotation examples.
Together with the pointer shape image, GetFramePointerShape provides the size of the hot spot location. The hot spot is given for informational purposes only. The location of where to draw the pointer image is independent to the hotspot.
Today by coincidence I was by able to reproduce and I even was able to start a screen recording of it:
BUG-Backspace2.mp4 - Up1 (xwikisas.com)
First I was using backspace which will duplicate stuff, then I was pressing the Delete-Key which behaves normally.
When you have an list (no matter if bullet or numbered list!) in CKE4 (demo as well as XWIKI) and click way behind a line that has an sub-list element, normally in every program the cursor lands at the end of that line. In CKE4 however it lands in the front of that list entry - which is strange.
This might be an very important aspect, as the duplication bug also duplicates the text from the beginning of the list element if im observing correctly!
Wild theory:
To me it feels like CKE4 in XWIKI Editor is deleting the text of the list element every time you press backspace and inserting the same text that was before the cursor with one less character instantly after. And some times that mechanism is behaving wrongly.
I can tell with certainty that its only occurring in lists (and not normal paragraphs) and also that the duplication of the text is like milliseconds AFTER the last character gets deleted (that can be observed in the screen-recording when playing close attention.)
My multiple installations on fresh servers that all had the issue (like the current one) are all with the DEB package, I did not modify any CKE editor files, also I have no clue where these are on the DEB package installations.
The issue is also occurring when using the delete key (trying to delete characters that were after the Cursor), I had a few occasions of the bug inside of bullet lists with the delete key, but as I use that less frequently I did not initially found that issue with it too.
Ok that is actually How Mikey does it I see after checking. He then grabs them and places them roughly in the right place. This works and perhaps he though it too early to introduce the proper way I illustrate below.
Create your brick.
Go top view which is proper orthographic.
Move the first brick up a suitable distance away from the centre of the 3D world.
Set the pivot point to the 3D cursor. Red marked top of window on the first image.
If the 3D cursor is not in the world centre for some reason, Shift S, and choose cursor to World Origin.
Shift D duplicate it, R rotate it to the next brick location.
Now you can duplicate the pair and repeat the rotating.
Repeat as often as needed or select the 4 and repeat, as Mikey does.
In the video you are inputting the number in the panel manually instead of using the shortcut to rotate your objects. To rotate all of the objects together, you can press these buttons on your keyboard individually, G to grab, R to rotate, and Z for Z-axis, then you can move your mouse to rotate.
c80f0f1006