Instantiating object of a certain type
create mesh then add vertices to it in python
A "friends list" on Stack Overflow would be nice I think it would be nice to have a "friends list" on Stack Overflow. This would allow us to be able to follow the questions and answers that are posted by users that we want to watch/monitor.  I suggest it be implemented in the same fashion as DotNetKicks.com; where you can add someone to your "friends list" without them needing to approve you the way that other social networks do it. It should be completely open for us to add anyone to our "friends list" that we like. How to revert uncommitted changes including files and folders? Literal &#39; appears in flag panel instead of being escaped Plot $|z - i| + |z + i| = 16$ on the complex plane Plot $|z - i| + |z + i| = 16$ on the complex plane   Conceptually I can see what is going on. I am going to be drawing the set of points who's combine distance between $i$ and $-i = 16$, which will form an ellipse. I was having trouble getting the equation of the ellipse algebraically.  I get to the point:  $x^2 + (y - 1) ^2 + 2\sqrt{x^2 + (y - 1)^2}\sqrt{x^2 + (y + 1)^2} + x^2 + (y+ 1)^2 = 256$  $2x^2 + 2y^2 + 2\sqrt{x^2 + (y - 1)^2}\sqrt{x^2 + (y + 1)^2} = 254$  It seems like I'm and doing something the hard way. Is "from where" grammatically equivalent to "from which"? What is another word for 'all round' capabilities? I am looking for a positive, passionate word to describe the all-round capabilities of a person.   Are there any words better than 'all-rounder'? How to publish a GML file as a Web Feature Service (WFS)? I need to compute the improper integral $$ \int_{-\infty}^{\infty}\frac{x^{2}}{\cosh\left(x\right)}\,{\rm d}x $$ using contour integration and possibly principal values.  Trying to approach this as I would normally approach evaluating an improper integral using contour integration doesn't work here, and doesn't really give me any clues as to how I should do it. This normal approach is namely evaluating the contour integral $$ \oint_{C}{\frac{z^2}{\cosh\left(z\right)}\mathrm{d}z} $$ using a semicircle in the upper-half plane centered at the origin, but the semicircular part of this contour integral does not vanish since $\cosh\left(z\right)$ has period $2\pi\mathrm{i}$ and there are infinitely-many poles of the integrand along the imaginary axis given by $-\pi\mathrm{i}/2 + 2n\pi\mathrm{i}$ and $\pi\mathrm{i}/2 + 2n\pi\mathrm{i}$ for $n \in \mathbb{Z}$. The residues of the integrand at these simple poles are $-\frac{1}{4}\mathrm{i}\pi^{2}\left(1 - 4n\right)^{2}$ and $\frac{1}{4}\mathrm{i}\left(4\pi n + \pi\right)^{2}$, so that even when we add up all of the poles, we have the sum $4\pi^{2}\mathrm{i}\sum_{n = 0}^{\infty}\,n$, which clearly diverges.  Any hints would be greatly appreciated. When selecting components, is there a way to control the "selection distance/area"? I don't want to select a component, even if I click ~20 pixels away from it.    Thanks in advance! In the Iron Man movie Tony flies the Iron Man armour from Miami to Afghanistan, roughly 7800 miles.    What is the maximum range of the Iron Man armour?   What sort of speed does the armour cruise at?  How long would the flight from Miami to Afghanistan have taken?   Could Iron Man circumnavigate the globe without stopping, and how long might this journey take him?   EDIT: Just found this (funny) image, New York to Washington in under an hour?!? :) How can I watch Amazon Prime videos using Firefox on Ubuntu 16.04? How can I watch Amazon Prime videos using Firefox on Ubuntu 16.04? Currently Firefox version is 48.0. When I attempt to watch a video, I get the following Digital Rights Error message:  Your web browser is missing a digital rights component. In your web browser’s address bar, type about:addons, press Enter, and then on the left, click Plugins. For the Widevine Content Decryption Module, select Always Activate, and then refresh the video’s page and try watching the video. If the video doesn’t play, go back to Plugins, click the gear icon at the top of the page, and then click Check for Updates. When the plugins have updated, refresh the video’s page, and then try watching the video.  I didn't find Widevine Content Decryption Module. I searched for a solution, but it didn't work... One solution I found was to sudo apt-get install flashplugin-installer and then do the following: sudo apt-add-repository ppa:flexiondotorg/hal-flash sudo apt-get update &amp;&amp; sudo apt-get install libhal1-flash  However, it didn't work and I still got the same Digital Rights Error message. I am able to watch Amazon Prime videos using Google Chrome, but not with Firefox. I want to know if it's possible on Firefox on Ubuntu 16.04. Suppose that X and Y are independent Poisson distributed values with means $\theta$ and $2\theta$, respectively. Consider the combined estimator of $\theta$ $$ \tilde{\theta} = k_1 X + k_2 Y $$ where $k_1$ and $k_2$ are arbitrary constants.   Find the condition on $k_1$ and $k_2$ such that $\tilde{\theta}$ is an unbiased estimator of $\theta$. For $\tilde{\theta}$ unbiased, show that the variance of the estimator is minimized by taking $k_1 = 1/3$ and $k_2 = 1/3$. Given observations $x$ and $y$ find the maximum likelihood estimate of $\theta$ and hence show that $\tilde{\theta}$ is also the maximum likelihood estimator.   I have gotten (1) and (2) okay, but it's (3) I am having trouble with, I'd be okay if $X$ and $Y$ had the same parameter but I'm having trouble with $X$ and $Y$ having different parameters, any help would be appreciated.   NOTE   For (1) I got $k_1 = 1 - 2k_2$.   For (2) I found the variance of $\tilde{\theta}$, then differentiated and let equal to zero to minimize - therefore we get (after subbing in $k_2 = 1 - k_1/2 $) $$3k_1-1=0,$$ which when subbing in $1/3$, we see it is minimised.   Thank you. USB composite device driver I am wondering if it possible to create a USB device (in following the device) composed from   a custom circuit (eg arduino) and  a flash storage   in such a manner that the device is recognized as a standard usb flash storage (and as such is operable with standart OS drivers), while said storage holds the utilities to operate with the custom circuit (dispalying the data colled by the circuit); and if so, how?  My first thought was to smack a cheap usb-hub and usb-pen before my circuit but that solution, is not pleasing to me.  My goal is to eliminate the need to carry an extra flash-drive just for the operating software, and use default os drivers, make it plug-and-just-work:   i plug the device in the os (windows) mounts a new flash-drive without needing a special driver is start (manually or via autorun) my custom.exe from that flash-drive i recive data measured by the circuit The 'ok' on the 'Your Answer' dialog on unregistered sites is a bit too high The 'ok' on the 'Your Answer' dialog on unregistered sites is a bit too high:     You can see the top of the k is outside the actual box, increasing the margin-top by 10px in the containing div fixes it. adding an item to filtered table My project has a table with '+add' button and filtering. The add button opens a dialog to add item, and then to 'save' which closes it too Today I noticed the following flow:  Filter table on subject with value 'dummySubject'  Add new item with subject 'somethingelse'  save and close the new item ==&gt; the new item is shown in the table   So the outcome is that an item that does not qualify the filtering appears in the table. When I asked around I got the following answer  We don't want the new item to 'disappear' on creation just because it does not qualify the filtering. So we display it If you filter again, it will disappear as it should  I can almost understand that logic, but still it sounds wrong. I would rather have like a toaster saying 'new item create' with a 'goto' link. My question is  is the current user experience considered a reasonable one? what is the best practice way to handle such scenario?      &ndash; Wireframes created with adding hours in date time format java Why doesn't "System.out.println" work in Android? How to kill The Twins In Terraria In Terraria I often try to defeat spazmatism first, but when he transformed, his flamethrower killed me. What is easiest way to kill The Twins? The classic example... $X \sim Po\left (\lambda\right ), Y \sim Po\left (\mu\right)$, X and Y are independent.  Show that the conditional distribution of X is binomially distributed. Or in other words, $P(X=k\mid X+Y = n) = P (\tilde{X} = k), \tilde{X} \sim B\left (n ,\frac{\lambda}{\lambda + \mu}\right )$.   I've so far managed to reach to this step, and have been stuck since. Just somehow gotta get a $\frac{1}{n!}$ in the denominator, that would then complete the proof..or at least I think..  $$P(X=k\mid X+Y=n) = \frac{\frac{\lambda^{k}\mu^{n-k}}{k!(n-k)!}}{P(X+Y = n)}=  \frac{\frac{\lambda^{k}\mu^{n-k}}{k!(n-k)!}}{\sum_{i=1}^{n} \frac{\lambda^{i}\mu^{n-i}}{i!(n-i)!}}$$  Thanks for the help! How do I preload a program for faster start? Is it possible to "preload"(actually not preload, but kinda emulate the startup) e.g. nautilus (or firefox) startup at login, so the first time I launch it myself it launches faster? Probably to start it on another desktop and close after some seconds?