Pass a method as a parameter
Pass Method as Parameter using C#
AutoFixture with AutoMoq and concrete object injection Auto-run scripts security options We have a preferences option to enable auto-run of python scripts when opening blend files. We can also add paths that are excluded from auto-running scripts. Then we have a cli options to enable or disable auto-running scripts and to bypass the startup.blend with --factory-startup.  In regard to auto-running scripts which of these options overrides all others?  If my startup.blend disables auto-run, can a python script be run from the cli to enable auto-run for the blend being opened?  Does --factory-startup bypass my auto-run settings? I tried to find an answer to this a few years ago, but it seemed it wasn't possible then (I suspect it isn't now either! - but what the hell!)   I have a three monitor system, that I mostly use for remote desktop. However occasionally it would be useful to have remote desktop on two monitors and use the other monitor for the local machine.   I know it is possible to have a single monitor full screen, or to stretch an RDP session across monitors, but this loses things like snapping etc.   P.S. this is a duplicate of  thread, but that was a couple of years ago, I'm hoping things have changed. I have been playing with Ubuntu for a few weeks now, and I'd like to revert my computer back to it's original - factory - defaults.   On the computer I have a recovery partition (it's a netbook). I went through the process of recovery and everything seemed fine. However, when I restart the computer I'm presented with   grub rescue &gt;   Now, my understanding is that when I installed Ubuntu "side by side" it replaced the MBR or something like it, with GRUB.   I've read on a slew of forums, that I need to use a Windows Recovery Disk.   Here are my issues:   a) I don't have a recovery disk, I have a recovery partition - it's a netbook. b) I don't have an external cd drive.   What I do have is a USB key that has about 1gb of space on it.   Thanks in advance. I'm reposting  I asked on the  SE, bacause I have been redirected to Super User.  I have successfully set up two Linksys routers running DD-WRTv24 to do WDS. They have the same SSID, but different static local IP addresses. There is no security: it's just for testing; no Internet connection.   When I open my notebook, I see the SSID shared by the routers in the list of WiFi access points, and I can connect to it. Once connected, I can ping both routers' local IP addresses, so I know that the WDS is working. But I can't find a way to find out which of them I have actually connected to.  I wouldn't like to have different SSIDs, because I plan to have the access points hand-off users to one another, and I want it to be transparent for the users. I configured one AP to distribute DHCP IP addresses in one range, and the other in another range, so I can discover which AP I connected to at first, but I want a way to discover which AP I'm connected to now, so that I can find out whether the hand-off actually occurred. What happens when Wild Shape/Polymorph runs out in a space that's too small? When looking at my objects in 3d view I'm seeing a gray cone that seems to be hiding other objects.   Can anyone help me turn this off and explain what it is please.  Screenshots attached. UK Train - Can I board at a different station The determinant of block triangular matrix as product of determinants of diagonal blocks I am given the following partitioned, upper-triangular matrix:  $$ \begin{bmatrix}   A_1 &amp;*  &amp;*  &amp;*  &amp;*  &amp;*  \\    0&amp; A_2 &amp;*  &amp;*  &amp;*  &amp;*  \\    .&amp;  0&amp; A_3 &amp;*  &amp;*  &amp;*  \\    .&amp;  0&amp;  0 &amp;...  &amp;*  &amp;. \\    .&amp;  0&amp;  0&amp;  0&amp; ... &amp;.  \\    0&amp;  .&amp;  ...&amp;  0&amp;0 &amp; A_m \end{bmatrix} $$  where each of the $A_i$ are block-matrices.  I have to prove that the determinant of this general matrix is: $$ \prod_{n=1}^m \det A_i. $$  We already proved in class that it is true for $ m=2 $ and we can use it in our proof.  Thanks for your answers! Can "what kind" be plural? Is it correct to say, "What kind of patents are being issued in these sophisticated times?" It seems like it should be What kind of patents is being issued..., but that sounds wrong.  What kind of patent is being issued... is correct and sounds right, but loses a little bit of the original meaning.  Is there something magic about what kind that allows it to be plural, or do people just misuse it a lot? According to , if there is a potential difference, $V$, across a resistor then there is a current, $I$, flowing through it.   Since we assume that points along the connecting wire are at the same potential, how can current, $I$ flow between points at the same potential, $V$? Labelled spanning trees of $K_n-e$ Let $e$ be an edge of $K_n$- the complete graph on $n$ vertices. Prove that the number of labelled spanning trees of $K_n-e$ is $(n-2)n^{n-3}$.  I think the answer lies in using some modified form of Prüfer's sequence but I can't quite nail it. Whatsapp, Keeping the number on the new phone but without the old sim card Whatsapp, Keeping the number on the new phone but without the old sim card. Ok the situation is I love my old number and to be honest don't want to ask everybody to change my number again and again. But I do not have the old sim card, and that bums me out. If there is any way to achieve this? I'm new to blender and have this issue: I'm using the "Industry Compatible" keymap. In "Edit Mode" the keys 1, 2 and 3 swap between vertex, edge and face select - Great!  Now i want to customize it, so i'm adding a new preset "My keymap". As far as i understand this now is based on the "Industry Compatible" keympap and everything works accordingly. But if i close and start blender again, the 1, 2 and 3-key aren't working anymore. I need to go back to the preferences, set the "Industry Compatible" keymap and then set back to "My keymap". Then the 1, 2 and 3-key work again as expected.  This is reproduceable on the last Blender 2.8 version on several different machines. Am i doing something wrong? Is this a bug? I saw a code change at work, where the mode values were changed from 777 to 0777 to make nfs setattr work. What is the difference in the 2 values? Process Builder - Breaking Production Deployments? I have a Process Builder flow set up and I am running some tests around the InvocableMethod Apex code. The tests pass fine in my staging and production environments. Yet, when I try to deploy to production, I get a strange error.  CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow.  Thankfully I received a somewhat more informative error email.  UPSERT FAILED ---  ERRORS :  (CANNOT_EXECUTE_FLOW_TRIGGER) The record couldn’t be saved because it failed to trigger a flow. common.exception.AssertionException: ORA-20070: Cannot read from apex_class and apex_trigger while running tests ---  for SFDC record with ID : null,  Unfortunately, the deployment has nothing to do with the flow and it is unclear why it is failing. What is the root cause of this error and how can I fix it? EDIT: I found out this is a . The other claimed workaround is to deploy via the Metadata API. UPDATE: Because I was subscribed to the Known Issue, I received the following confirmation this issue is resolved.  We are pleased to notify you that the following Known Issue has been resolved: Executing an InvocableMethod during an apex test run from a change set can cause Errors. Thank you for being patient while we worked to address this issue. Please feel free to reach out to Customer Support if you have further questions. Sincerely, Salesforce Success Team In Obi-Wan's Order 66 warning transmission why didn't he tell the surviving Jedi about the Sith, including Palpatine's true identity? If you've seen the premiere episode of Rebels, you will have seen Obi-Wan's warning message that he broadcast to Jedi throughout the galaxy in RotS. In this message he speaks cryptically &amp; warns of a "dark shadow" falling &amp; to avoid the temple &amp; await a "new hope".   Wouldn't it have been useful to inform the Jedi that their mortal enemy the Sith had returned? And specifically that Palpatine himself was a Sith? You'd assume that the majority of the Jedi who were not in the loop of the Council would be unaware of the existence of the Sith. Yoda mentions a few times that they should keep it under wraps. I think now would've been the time to reveal the truth. The more info the surviving Jedi have the better. Who knows if the likes of Kanan knows anything about the Sith's return! I find Obi-Wan's omission of this information bizarre. Proving that an ideal in a PID is maximal if and only if it is generated by an irreducible I was reading a bit of Landau and Lifshitz's Mechanics the other day and ran into the following part, where the authors are about to derive the kinetic energy of a free particle. They use the fact that the Lagrangian of this particle must be the same (or at most, differ by the total time derivative of a function of co-ordinates and time) in different inertial frames.     We have $L'=L(v'^2)=L(v^2+2\mathbf{v}\cdot\boldsymbol{\epsilon}+\boldsymbol{\epsilon}^2)$. Expanding this expression in powers of $\boldsymbol{\epsilon}$ and neglecting terms above the first order, we obtain    $$L(v'^2)=L(v^2)+\frac{\partial L(v^2)}{\partial (v^2)}2\mathbf{v}\cdot\boldsymbol{\epsilon}.$$   I think I'm ok with all the physics in this section. What I don't get is just the part I quoted above (so maybe this post is better suited for the math site, but since this is book is so physics-y I thought I'd post it here). My math is pretty rusty, so I'm not really sure- how do the authors expand the function to arrive at the above expression? It reminds me a bit of a Taylor expansion, but not very much. What's the process used to arrive at it? How to create a sequence with leading zeroes using brace expansion When I use the following, I get a result as expected:  $ echo {8..10} 8 9 10   How can I use this brace expansion in an easy way, to get the following output?   $ echo {8..10} 08 09 10   I now that this may be obtained using seq (didn't try), but that is not what I am looking for.  Useful info may be that I am restricted to this bash version. (If you have a zsh solution, but no bash solution, please share as well)  $ bash -version GNU bash, version 3.2.51(1)-release (x86_64-suse-linux-gnu)