Summing Bernoulli distributions with noise
Success of Bernoulli trials with different probabilities
Does $\{f_ng_n\}\to fg$ uniformly? dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/' I want to install a package in Ubuntu 14.04, but every time I run the ./configure command it gives me this error:  E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 35%E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 70%E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 100% dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory E: Sub-process /usr/bin/dpkg returned an error code (2) Evaluating the sum $\Sigma \, \frac{1}{k(k+p)}$ I have the following prompt in bash which shows the current git branch:  PS1+="$(git_prompt)" #git_prompt is a function in my .bashrc   which works when I source the .bashrc, but not when I change the branch, so the PS1 var gets only evaluated when I source the .bashrc, but it should be evaluated every time a new prompt is displayed. How can this be accomplished with bash 4.3 ? Changing Custom Post Type Name Order Which way should arrows point in a collapsible accordion? Left/down … down/up? Getting polygon shapefile node coordinates and point order How are Contacts in Marketing Cloud counted? Salesforce bills Marketing Cloud on total number of Contacts within the system. I'd like to know what exactly is used to count these? Is this the Email Studio > All Subscribers list or the Contact Builder > All Contacts list?  When we have Marketing Cloud connector and synchronise the Contacts object, is this counted towards that number? (or only when they have been inserted into the All Subscribers / All Contacts list, as they are not done so automatically) Evaluate the integral $$\int^{\frac{\pi}{2}}_0 \frac{\sin^3x}{\sin^3x+\cos^3x}\, \mathrm dx.$$  How can i evaluate this one? Didn't find any clever substitute and integration by parts doesn't lead anywhere (I think).  Any guidelines please? My wifi connection doesnt work properly; it stays connected only for around 5 minutes after I turn on the PC. I'm using Ubuntu 16.04.  I've tried   sudo service network-manager restart   which makes no difference  Same with   killall nm-applet &amp;&amp; nm-applet &amp;   After that I tried   sudo gedit /etc/pm/config.d/config   where I insert this string  SUSPEND_MODULES = "drivername logicalchipname"   But since I don't have permission to modify that file I tried to use chmod on it, which led to  but left me still in the same situation.  $ lspci -knn | grep Net -A3; rfkill list 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821] Subsystem: XAVi Technologies Corp. RTL8821AE 802.11ac PCIe Wireless Network Adapter [1b9a:2482]  Kernel driver in use: rtl8821ae  Kernel modules: rtl8821ae  0: hci0: Bluetooth  Soft blocked: yes   Hard blocked: no 1: phy0: Wireless LAN   Soft blocked: no    Hard blocked: no   What do you suggest I do? A friend recently got her ID stolen while she was in the Netherlands. She will soon need to fly to her home country Italy, but she doesn't know what to do.  What can one do in such a situation? As far as I know, since it's Schengen, you don't need an ID card to go through borders. On the other hand, this is air travel, so they always require it for security reasons.   Can she show another document that proves her nationality? A copy of the ID card? Anything? I added a user to a group, but group permissions on files still have no effect I changed permissions of a file (chmod g+w testfile) and running ls -l testfile gives:  -rwxrwxr-x 1 user1 user1 0 2011-01-24 20:36 testfile   I then added a user to that group ("/etc/group" has user1:x:1000:user2 line), but am failing to edit that file as user2. Why is this so? On finding polynomials that approximate a function and its derivative (extensions of Stone-Weierstrass?) The Stone-Weierstrass Theorem tells us that we can approximate any continuous $f:\mathbb{R}^n\to\mathbb{R}$ arbitrary well on a compact subset of $\mathbb{R}^n$ by some polynomial. Suppose that $f$ is continuously differentiable, under what conditions can we guarantee we can find a polynomial $p$ such that $p$ approximates arbitrarily well $f$ and the partial derivatives approximate of $p$ arbitrarily well those of $f$ (on a compact subset of $\mathbb{R}^n$)? References are welcome. See below for my (probably naive) approach to the question.    It is straightforward to find conditions if $n=1$: Let $K:=[a,b]\subseteq\mathbb{R}$ and let $K_+$ denote some open cover of $K$. Suppose that $f:K_+\to\mathbb{R}$ is continuously differentiable and let $f'$ denote its derivative. Then, by Weierstrass's approximation Theorem we have that there exists a polynomial $q$ such that   $$||f'(x)-q(x)||\leq \varepsilon$$  for all $x\in K$. Choose some $y\in K$. For any $x\in K$ define  $$p(x):=f(y)+\int_y^xq(t)dt.\quad\quad(*)$$  By the Fundamental Theorem of calculus we have that $p'=q$. So for any $x\in K$  $$||f(x)-p(x)||=\left|\left|\int_y^x (f'(t)-q(t))dt\right|\right|\leq \int_y^x ||f'(t)-q(t)||dt\leq \varepsilon||x-y||\leq \varepsilon (a-b).$$  However, the above argument doesn't work in higher dimensions because the analogue of $(*)$ does not imply that $\nabla p = q$ (since not every vector of polynomials spans a gradient field). Can anyone suggest a way around this? That is, a way to to show that for continuously differentiable $f:\mathbb{R}^n\to\mathbb{R}$ and for any $\varepsilon&gt;0$, we can always find a polynomial $p$ such that   $$||f(x)-p(x)||+||\nabla f(x)-\nabla p(x)||\leq \varepsilon$$  for all $x$ in some compact set $K$? Feel free to add extra conditions on $K$, if it makes life easier. bash: syntax error near unexpected token `}' How can I completely remove a objects (e.g. particle system or groups used in particle systems) in blender using python?  The problem is this: I have a script, with which I create a scene (e.g. adding some normal objects and some group of objects with a particle system). For a research study I would like to repeat that that several times, without restarting blender. So I can create a scene, delete everything, e.g. with a script like this:  import bpy scn = bpy.context.scene for obj in scn.objects:     obj.select = True bpy.ops.object.delete()   If I rerun the script to recreate the scene with objects using particle system, the latter is not shown in the scene anymore (only the placeholders of the particle system). Now I'm not sure where exactly the problem lies, but I guess not everything is immediately deleted, running the script above. Only the startup of blender helps (but that's not what I want) or pushing the purge button. The purge button seems to start the command:  bpy.ops.outliner.orphans_purge()   But I can't get this piece of code to run in the console. It says that "the context is incorrect". Is there a way to purge the unused data by python script? Thanks a lot for any help. Does $\sum_{m=1}^{\infty}\sum_{n=1}^{\infty}a_{mn}^3=\sum_{n=1}^{\infty}\sum_{m=1}^{\infty}a_{mn}^3$ occur here? Let $\{a_{mn}\},~m,n \in \Bbb{N}$, be an arbitrary double sequence of real numbers then does the following equality occur always?   $$\sum_{m=1}^{\infty}\sum_{n=1}^{\infty}a_{mn}^3=\sum_{n=1}^{\infty}\sum_{m=1}^{\infty}a_{mn}^3$$   I think there is no reason for the equality of this iterated series in general but I cannot figure out how to construct a counter example. Can anyone please help me how to create a example of $\{a_{mn}\}$ such that the given equality does not hold...!! How to set the default value of an exposed filter rather than -Any-? I have a view with exposed filters in Drupal 7 and I need to set the default value of a filter to current year. I also need to unset/remove the - Any - option from the select list. Get rows with most recent date for each different item Adding space around section title for in-register in KOMA-script context How to optimize images to improve pagespeeds / webpage loading times? This is almost a StackOverflow question, however it's completely related to Photoshop and other tools. With every Pagespeed test I do for all my website I get the comment "Optimize images by lossless compressing image X" which often increases my page rank a lot.  I already save EVERY image with 'save for web' with Photoshop, but I was wondering how I could "Optimize images by compressing lossless" even more. As far as I know I'm already doing everything I can.   How can I optimise images to improve my webpage loading speeds?