If question is closed already when I try to review Close Votes, error message is mismatched
Flagging a deleted answer results in a message saying I am flagging too quickly
Can someone give me some example code that creates a surface with a transparent background in pygame? using a class defined in a c++ dll in c# code I have a dll that was written in c++, I need to use this dll in my c# code. After searching I found that using P/Invoke would give me access to the function I need, but these functions are defined with in a class and use non-static private member variables. So I need to be able to create an instance of this class to properly use the functions. How can I gain access to this class so that I can create an instance? I have been unable to find a way to do this.   I guess I should note that the c++ dll is not my code. How can I remap Caps lock to both Escape and Control? I generally run Linux. I use Vim a lot, so the Escape key is extremely important. I also use other keyboard shortcuts a lot, so Control is "key" as well. On Linux, I've solved this by using  to map the Caps lock key to Escape if pressed by itself, or Control if pressed in combination with another key. This puts the best of both worlds within quick reach of my pinky finger. Is there any way I can do this on a Mac? I have to find the limit of this sum: $$\sum_{r=1}^{\infty}\cot ^{-1}(r^2+\frac{3}{4})$$  I tried using sandwich theorem , observing:  $$\cot ^{-1}(r^3)\leq\cot ^{-1}(r^2+\frac{3}{4})\leq\cot ^{-1}(r^2)$$  Now when I was calculating the limit of left hand expression, I convert it to $\tan^{-1}$, by using:  $$\tan^{-1}\frac{1}{x} = \cot^{-1}x$$  but couldn't sum up the terms of arctan series.     How can I proceed?   Is there any better way ? Lost credit card replaced with new card and new numbers. Credit score affected? I recently left my credit card at a bar so I reported it as lost to my bank, and my bank said I will get a replacement within a few days. For what it's worth, I picked my card up from the bar a few days later and made sure to cut it up.  The new credit card has arrived and has new numbers. Will this negatively affect my credit score?  VISA, Chase Bank, USA. How can I vertically align elements in a div? Find a bijection from $\mathbb R \to  \mathbb R-\mathbb N$. I want to set my function up such that all natural numbers get mapped to $n+.1$ and reals of the form $n+.1$ to $2n+.1$ is this correct? Query Feature and Usage based entitlements license I need to query programmatically the Feature license and usage-based license which is available in UI. Could someone please highlight if we can query the same or is it available in UI only, Thanks. I have been trying to figure out the time complexity of the conjugate gradient method.  I have to solve a system of linear equations given by  $$Ax=b$$  where $A$ is a sparse, symmetric, positive definite matrix.  What would be the time complexity of the conjugate gradient method? What is 'deictic time'? [5]     i  If she beats him he’ll claim she cheated.    [non-deictic past]     ii If you eat any more you’ll say you don’t want any tea.[non-deictic present]      The preterite and present tense inflections on cheat and do indicate that Tr is respectively anterior to and simultaneous with To, but here  To is clearly not Td. The time of the (possible) cheating is not anterior to the time of my uttering [5i], but to the time of his (possibly) making a claim of cheating.                       — The Cambridge Grammar of the English Language, p126   I can understand To (time of orientation = utterance time), yet don’t get what the ‘deictic time (Td)’ is. Would you let me know the Td? Combining jquery functions - on() hover/mouseenter/mouseleave Does the OS X log notifications from the Notification Center? If two limits don't exist, are we sure the limit of sum doesn't exist? This is a true/false question.     If the limits $$\lim_ {x\to a}\ f(x)\quad \text{ and }\quad  \lim_ {x\to a}\ g(x)$$ don't exist, limits $$\lim_ {x\to a}\ (f(x)+g(x))\quad \text{ and }\quad \lim_ {x\to a}\ (f(x)g(x))$$ don't exist also.   My idea is, that, because $$\lim_ {x\to a}\ (f(x)+g(x))=\lim_ {x\to a}\ f(x)+\lim_ {x\to a} g(x)$$ then the limits doesn't exist, correct? What would be the the mathematical equivalent of this excel formula? =PMT() I need to create a JavaScript form that does the same calculation as this =PMT() function.   mortgage = 220000 rate= 4.75% term = 30   The example formula I have is =PMT(4.75%/12,30*12,220000*-1)  What would be the equation for this function? I tried to look up this function but it doesn't explain it very well. Given a command that changes its behaviour when its output is going to a terminal (e.g. produce coloured output), how can that output be redirected in a pipeline while preserving the changed behaviour?  There must be a utility for that, which I am not aware of.  Some commands, like grep --color=always, have option flags to force the behaviour, but the question is how to work around programs that rely solely on testing their output file descriptor.  If it matters, my shell is bash on Linux. Lets say I have a  creature that says "Whenever another creature enters the battlefield under your control, you may gain 1 life." and I currently have all 4 of them in the battlefield. Then I cast another creature and : Do I get 1 or 4 life? Does that effect trigger for every priest or just once? thanks for help The following happened playing Minesweeper:   How do I figure out which square to click? I am running a fresh install of Linux Mint Nadia (14). I am following the instructions on Vagrant  but have gotten stuck on the . It seems the Vagrant box cannot connect outside and so I can't install anything using either Chef or Puppet.  In the basic Vagrant resolve.conf contains nameserver 10.0.2.3. But with that set I can't ping us.archive.ubuntu.com.  If I change it to 8.8.8.8 then I can ping us.archive.ubuntu.com but it does not stay set, and after a reboot it changes back to 10.0.2.3 - so provisioning fails again.  Ideally I would like for 10.0.2.3 to work on my setup. Failing that I would like a way to permanently change resolv.conf so that I can do provisioning. C# Mono - Low Level Keyboard Hook I'm using code that I found on the .  The only problem is it uses external DLL calls that don't work in mono.  I was wondering if anyone knew of a way to accomplish the same thing as that code, but will run in both Windows using .net, and Linux using mono?  Edit:  Clarifying what I'm trying to do: I'm making a .  The program sits in the system tray and when the user presses the hot-key, it will pop up all the gadgets.  So the program doesn't have focus, so typically it won't catch any keystrokes, so I'm using the low-level keyboard hook and I hook the two keys that the user defines as the hot-keys.  But I'm using a Windows DLL call for that, which doesn't work in Linux using mono.  So I'm wondering if there's a way to do the same thing, but will run in Linux using mono? Margin on child element moves parent element