I'm completely new to coding in Phython. Especially blender scripting. I was googling all the possible ways to copy a selected mesh. But none of the code seems to work as it was for 2.7 or 2.8 blender version. As well as I like to add the new copy of the mesh to selected place. Wether it's underneath the selected mesh, or above. I'd like to as well scale the copy down.
I know how to successfully duplicate an object by using  bpy.ops.object.add_named(name = 'TemplateObjectName')   If the template object named 'TemplateObjectName' has animations, particle systems and modifiers attached to it, the previous call will create a duplicate object that also has those components. However, if I duplicate an object using   template_object = bpy.data.objects['TemplateObjectName'] new_object = bpy.data.objects.new('NewObjectName', template_object.data) collection.objects.link(new_object)   how do I attach the template object's animation, modifiers, particle systems...?
Multiple TikZ keys with foreach "In" vs. "after" for future talk The class will be over in 10 minutes. The class will be over after 10 minutes.  I know the first is correct but why? Suppose I have a program named any_program.exe and my operating system drive is C:. The location of the program is D:\Any_Folder\any_program.exe  How do I start/execute that program via command prompt in Windows 8?  I have tried the command line START any_program.exe, but it shows me an error that      Windows cannot find 'any_program.exe'. Make sure you typed the name correctly, and then try again.   By the way, it worked perfectly in Windows 7. And, if I type START notepad.exe or START firefox.exe (Firefox is not installed in C: drive), it works in Windows 8. Invalid SSL certificate when pushing to Git server In the , the key $k = (a, b)$ should have the following property, i.e. GCD of $a$ and the modulus should be 1:     $\gcd (a, m) = 1$, where $m$ is the set of possible moduli   My question is, why it is required that $a$ should have the above property? What is the significance of this? And why is $b$ excluded from this condition? What is the value of $\sum\limits_{i=1}^\infty\dfrac{1}{p_{p_i}}$ where $p_n$ is the nth prime (and so $p_{p_n}$ is the $k$th prime, where $k$ is the $n$th prime) ?  Thus $\frac{1}{3}+\frac{1}{5}+\frac{1}{11}+...=$ ??  How do I efficiently decide if $\sum_{i=1}^\infty\dfrac{1}{p_{p_i}}\gt1$ is true without using a computer ?  I assume this infinite sum is an irrational number. Has this already been proven ? Everywhere I get to read statements like EM radiations and EM fields carry "energy as well as momentum " . I wonder if energy and momentum are inalienable . Is it possible for a field to carry only energy without having any momentum term ? I mean isn't it sufficient to say that fields or EM waves carry energy or Doesn't the ability to transfer energy, of the fields, automatically imply that they can change the momentum of another particle while transferring energy to them? How do wizards cast spells which appear on their spell list when it has a divine focus component? What does a wizard do to cast a spell which contains a DF component? Take  for example,  Components V, S, DF    A divine focus component is an item of spiritual significance. The divine focus for a cleric or a paladin is a holy symbol appropriate to the character's faith. The divine focus for a druid or a ranger is a sprig of holly, or some other sacred plant. If the Components line includes F/DF or M/DF, the arcane version of the spell has a focus component or a material component (the abbreviation before the slash) and the divine version has a divine focus component (the abbreviation after the slash).  So do wizards have holy/unholy symbols in their spell components pouch or what? How can we prove that     $$\sum_{k=0}^{n}\binom{R}{k}\binom{M}{n-k}=\binom{R+M}{n}?$$   (Presumptive) Source: Theoretical Exercise 8, Ch 1, A First Course in Probability, 8th ed by Sheldon Ross. I have 4GB RAM. When I open Firefox, IntelliJ IDEA or VS Code and some other application my memory is about used up thus my machine hangs and I can't do anything. I can't even close any applications.    Date and time are shown in the top bar so that I can view it any time without any thing typing.   If I would view memory status in this way without typing anything then I can make a decision whether to open an application or whether this application may put my machine in hanging state or not.    Is it possible in Ubuntu 18.04 LTS? How do I work with Root objects? I use a dual monitor.  The colors appear entirely different on the new monitor than they do on my laptop.  When you are selecting colors etc, to be included in a website design, it totally freaks me out.  Is there no software solution that finds how the settings of one of the monitor is and puts that to the second one?  Otherwise what all settings do I need to change manually on the second monitor to make it appear as it does on the laptop?  Thanks in advance. A formula for the power sums: $1^n+2^n+\dotsc +k^n=\,$? Is there explicit formula for the expression $1^n + 2^n + \dotsc + k^n\,$?  I know that for $n=1$ the explicit formula becomes $S=k(k+1)/2$ and for $n=3$ the formula becomes $S^2$. But what about general $n$?  I know there is a way using the Taylor expansion of $f(x)=1/(1-x)=1+x+x^2+\dotsc\;$, by differentiating it and then multiplying by $x$ and then differentiating again. Repeating this $n$ times, we get  $$\frac{d}{dx}(x\frac{d}{dx}(\dots x\frac{d}{dx}f(x))\dots )=1+2^nx^n+3^nx^n\dots.$$  Now do the same process but with the function $g(x)=x^{k+1}f(x)$. Then subtract them and we get $1+2^nx^n+\dots k^nx^n$. Because we have the explicit formulas $f(x)$ and $g(x)$ we can find the explicit formula by this process for arbitrary $n$. A big problem is that as $n$ grows, it is going take a lot of time finding the explicit formula. My question is therefore: are there other ways? What is / how can I get a student-safe power supply for electronics projects?  I'm looking for a student-safe power supply for solder less breadboard.  I'm developing a course to teach electrical engineering to grade school students as an after-school program.  I'm wrapping up the first course and I've learned a lot, including that I need to find a safer power supply.  We're mostly using 9V batteries and connecting them to the breadboard via alligator clips.  After lots of searching, I'm realizing that I need to turn towards the expert community for guidance.  I hope that with the rise of the Makers  this question will become increasingingly relevant with time as more kids get into electronics.  Inextricably linked to this question is what is the minimum power source to use.  I've liked using 9V batteries since we can connect to them using alligator clips; but I worry that they are just a little too powerful.  I can imagine them somehow starting a fire with them.  My #1 priority is to keep the students safe.  Kids just have no concept that they can cause damage to themselves and property.  When I ask "where is that smoke coming from?" I'll get a gleeful response from the student that is seeing how many batteries he could hook together and short out.   I really need to limit the damage they can do.  I mainly don't want anyone electrocuted or anything to catch fire.  Kids will routinely attach LEDs backwards, leave them like that and then act surprised when they explode.   After safety, I want to protect the equipment.  Kids will hook up a LED backwards all the time.  After protection, I want to give the kids feedback as to what is going on.  A light that indicates power is on would be awesome.  A light or siren or circuit break that indicated a short would be awesome too.  Battery powered supplies are slightly preferred, just to keep upfront costs low and to avoid having to run outlets to each table.  Boundaries:   We are only using simple LEDs, BJT transistors, resistors and maybe a timer IC.    Similiar Questions:       References:  Course details are here:   We currently sometimes use  from the Squishy Circuits Store and/or a 9V battery with alligator clips.  Epilogue  I found it tougher than expected to find a suitable wall wart, so I'm listing what I finally found for future reference.  I'm about to test the following combination:         Epilogue 2  A year-plus in, I've decided to drop the in-line power switch since it wasn't obvious when it was 'on' vs. 'off'.  I'm instead relying upon the students to unplug the rat-tail from the supply, which is quick and easy.  Also, since I'm primarily using this for a squishy-dough project, I'm experimenting with with using two button batteries instead of a wall power. In other words, what is the Drupal 8 equivalent of ?  Drupal 8 still uses hook_menu(), but for what I can see, the information returned by the hook is different from what the hook returned in Drupal 7. For example, the definition given in user_menu() for user is the following.    $items['user'] = array(     'title' =&gt; 'User account',     'title callback' =&gt; 'user_menu_title',     'weight' =&gt; -10,     'route_name' =&gt; 'user_page',     'menu_name' =&gt; 'account',   );   The route_name property links to an entry in the  file.  user_page:   pattern: '/user'   defaults:     _content: '\Drupal\user\Controller\UserController::userPage'   requirements:     _access: 'TRUE'   This is different from what done with Symphony, and it confuses me about how a module can alter the route defined from another user.  The only function that is still invoking hook_menu_alter() is menu_router_build(), but that function still contains code that needs to be updated, since it is still using the now deprecated drupal_alter().    // Alter the menu as defined in modules, keys are like user/%user.   drupal_alter('menu', $callbacks);   foreach ($callbacks as $path =&gt; $router_item) {     // If the menu item is a default local task and incorrectly references a     // route, remove it.     // @todo This may be removed later depending on the outcome of     // http://drupal.org/node/1889790     if (isset($router_item['type']) &amp;&amp; $router_item['type'] == MENU_DEFAULT_LOCAL_TASK) {       unset($callbacks[$path]['route_name']);     }     // If the menu item references a route, normalize the route information     // into the old structure. Note that routes are keyed by name, not path,     // so the path of the route takes precedence.     if (isset($router_item['route_name'])) {       $router_item['page callback'] = 'USES_ROUTE';       $router_item['access callback'] = TRUE;       $new_path = _menu_router_translate_route($router_item['route_name']);        unset($callbacks[$path]);       $callbacks[$new_path] = $router_item;     }   } I have downloaded Python 3.3 from the official site but no idea how to install it.   I'm using Ubuntu 12.04 Can I still use logistic regression if some variables are not applied to all the observational units? Some of the variables are questions that are not being asked to every single person in the questionaire depending on how they answered previous question(s). So would I still be able to use a logistic regression if some of the questions (the independent variables) are only measuring the responses of SOME of the respondents? What is the difference between single-quoted and double-quoted strings in PHP? How to handle relative urls correctly with a nginx reverse proxy Sure I'm not the first one that tried to serve a domain example.com from a example.net/bbb, but I haven't found a solution yet.  My NGINX configuration follows the  and looks something like this:  server {     listen 80;     server_name example.net;     root /path/to/aaa;      location /bbb/ {         proxy_pass http://example.com/;         proxy_set_header Host $host;         proxy_set_header X-Real-IP $remote_addr;     }      location / {         try_files $uri $uri/ /index.html;     }     location ~ \.(svg|ttf|js|css|svgz|eot|otf|woff|jpg|jpeg|gif|png|ico)$ {         access_log off;         log_not_found off;         expires max;     } }   I can manage to render the root of example.com in example.net/bbb but:  ISSUE 1  example.net/bbb/some/path doesn't work as expected and the index.html of example.net is rendered.  ISSUE 2  Any asset in example.com/assets gives 404 because the browser look for example.net/assets. Be great if I could solve this without placing absolute paths everywhere. I was speaking to an English learner and said, “All you have to do is read a lot.” And they thought that sentence wasn’t grammatically correct because I dropped the word to between is and read.  They thought it should be “All you have to do is to read a lot.” That sounds weird to me.   How do I explain to them the reason you drop the to? Or am I incorrect and it really should have a to?