copying

How to copy powerpoint sections to a new presentation using VBA

旧时模样 提交于 2021-02-19 06:55:25
问题 We typically use powerpoint to facilitate our experiments. We use "sections" in powerpoint to keep groups of slides together for each experimental task. Moving the sections to counterbalance the task order of the experiment has been a lot of work! I thought we might be able to predefine a counterbalance order (using a string of numbers representing the order) in a CSV or array (haven't built that out yet in VBA). Then using VBA to move the sections and save the file for each order. I am

How to copy powerpoint sections to a new presentation using VBA

回眸只為那壹抹淺笑 提交于 2021-02-19 06:55:19
问题 We typically use powerpoint to facilitate our experiments. We use "sections" in powerpoint to keep groups of slides together for each experimental task. Moving the sections to counterbalance the task order of the experiment has been a lot of work! I thought we might be able to predefine a counterbalance order (using a string of numbers representing the order) in a CSV or array (haven't built that out yet in VBA). Then using VBA to move the sections and save the file for each order. I am

Copy data from rows in different column order

自古美人都是妖i 提交于 2021-02-08 10:18:10
问题 I need to copy rows of data from one worksheet to another. But i have to change the order of the columns. For example Data from A,B,C in columns E,L,J and so on. I already worked on a solution and the code below hopefully shows what i want to do. Is there a cleaner way to copy the data? My version is quite slow while executing. How can i copy the data in the target worksheet without empty rows? Sub KopieZeilenUmkehren() Dim Zeile As Long Dim ZeileMax As Long Dim n As Long With Sheets("Artikel

How does a copying garbage collector ensure objects are not accessed while copied?

痴心易碎 提交于 2021-02-07 05:25:07
问题 On collection, the garbage collector copies all live objects into another memory space, thus discarding all garbage objects in the process. A forward pointer to the copied object in new space is installed into the 'old' version of an object to ensure the collector updates all remaining references to the object correctly and doesn't erroneously copy the same object twice. This obviously works quite well for stop-the-world-collectors. However, since pause times are long with stop-the-world,

Copying array in C v/s copying structure in C

自作多情 提交于 2020-07-10 11:55:38
问题 Arrays and structures in C store data in memory which is contiguous. Then why is that C does not allow direct copying of arrays using "=" where as it is allowed for structure. Example: int a[3] = {1,2,3}; int b[3]; b = a; // why is this not allowed. struct book b1, b2; b1.page = 100; b1.price = 10.0; b2 = b1; // Why is this allowed 回答1: For the first question You cannot directly write to an array, you can write only to the individual cells to an array. You can use a for loop to initialize

check for duplicate filename when copying files in C#

那年仲夏 提交于 2020-01-24 01:46:06
问题 I want to copy files to a directory and rename to a particular format. but if the filename already exists, it should append {1}, {2} or {3} before the file extension. My code renamed and copied the file and named it to my desired format say filename.pdf, when it checked for duplicate it renamed it to filename1.pdf. but when it tried copying again, it gave an error "file already exists" but i wanted it to have named it to filename02.pdf. Pls can someone help me out. Here is the code i have

How is copy paste possible?

柔情痞子 提交于 2020-01-23 04:05:48
问题 I was wondering after using computer for a long times it feels like copy paste was fundamental feature but I know it is not. So the question is how does this really work? I thought of all ideas how this could have been implemented but I get stuck every time I come up with the different file formats like gif, jpg, txt, png, mp3, mp4, JSON, YML etc. and the further you go the complex it gets like shortcuts ,links and then there's directories. Like how it copies images that are in the search

How to copy a ksh associative array?

夙愿已清 提交于 2020-01-07 04:22:27
问题 Is there a way to copy an associative array? I realize that regular arrays can be copied easily with a one liner as such: set -A NEW_ARRAY $(echo ${OTHER_ARRAY[*]}) but doing so with associative arrays just gives you the values in that manner. I know about nameref but I'm interested in knowing if there's a way of copying the array such that the original array isn't affected. 回答1: untested: typeset -A NEW_ARRAY for key in "${!OTHER_ARRAY[@]}"; do NEW_ARRAY["$key"]="${OTHER_ARRAY[$key]}" done

jQuery copying content between DIVs

天涯浪子 提交于 2020-01-06 05:08:06
问题 I am working on a website that I want to be entirely Javascript based: you load the website, then all the pages are pulled in by Javascript. So I here's what I have: <span id="deathWormButton">Death Worm</span> <div id="pageContent"> <p>Thanks for taking the time to view my portfolio!</p> <p>Placeholder content</p> <p>Placeholder content</p> <p>Placeholder content</p> <p>Placeholder content</p> </div> <div id="DeathWormPage" class="page"> <p>Thanks for taking the time to view my portfolio!</p

C# memcpy equivalent

巧了我就是萌 提交于 2019-12-28 23:06:54
问题 I have 2 objects from the same type and i would like to shallow copy one state to the other. In C++ i have memcpy which is great. How can i do it in C#? The MemberwiseClone() is not good enough because it creates & returns a new object and i like to copy to an existing object. I thought of using reflection but i'm afraid it will be too slow for production code. I also thought of using one of the .Net serializers but i think they also create object rather than setting an existing one. My Use