How to identify what program is stealing keyboard input shortcuts

[Win 10 Home, 64-bit, Build 20H2, fully updated + MS Office +...] I just updated NVidia GeForce experience to V3.22.0.32 and it has provided/updated the in-game overlay that uses a number of keyboard shortcuts commonly used by other applications (e.g. Alt +F8, Alt+F11 in Excel). NVidia GeForce experience steals them: I realised this when Alt+F11 etc. no longer worked in Excel and recalled that NVidia was updated just last night. By going into Settings for the ing-name overlay and hitting spacebar for each selected NVidia keyboard shortcut I was able to set them all (except Alt-Z to open the overlay!) to None and so restored the functionality of all my other apps. Apart from being absolutely appalling behaviour on NVidia's part - for which they should be loudly rebuked - it raises this important question for future reference in cases where the culprit is not so obvious: how can one identify what program is stealing/eating/consuming keyboard shortcuts? (NB the overlay can be disabled in GeForce settings, under General, but something changed without my permission - either it was enabled by the update or keyboard theft was added to an enabled overlay; either way it was NVidia's fault)


Where are the inaccuracies in the Bohr model of the atom?

The  is essentially that the nucleus is a ball and the electrons are balls orbiting the nucleus in a rigid orbit.    This  chemists to find a model of chemical bonding where the electrons in the outer orbits could be exchanged. And it works pretty well as seen in the Lewis structures:    However,  were found to be less rigid and instead be fuzzy fields which, instead of being discrete/rigid orbits, look more like:     However, in chemistry education like organic chemistry you still learn about chemical reactions using essentially diagrams that are modified lewis structures that take into account information about electron orbitals:    What I'm wondering is, if the Bohr model is used essentially throughout college education in the form of these diagrams, it seems like it must be a pretty accurate model, even though it turns out atoms are more fuzzy structures than discrete billiard balls. So I'm wondering what the inaccuracies are, and if there is a better way to understand them than the Bohr model. If you build a computer simulation of atoms with the Bohr model, I'm wondering if it would be "accurate" in the sense of modeling atomic phenomena, or is it not a good model to perform simulations on. If not, I'm wondering what an alternative model is that is better for simulation. Essentially, how good the Bohr model is as a diagram, as a tool for learning, and as a tool for simulation.


Expected value of maximum of two random variables from uniform distribution

If I have two variables $X$ and $Y$ which randomly take on values uniformly from the range $[a,b]$ (all values equally probable), what is the expected value for $\max(X,Y)$?


Creating a nested list with list comprehension in Python

Basically, I want to group items in a list. For example:   For [1, 2, 3, 4, 5, 6], I want [[1, 2, 3], [4, 5, 6]] For [1, 2, 3, 4, 5, 6, 7], I want [[1, 2, 3], [4, 5, 6], [7]]   I know how to unnest nested lists, but I have no idea how to create a nested list.


Some programs (Eclipse) show their tooltips with an unfitting black background

Here is a tooltip from Eclipse, that pops open when you press CTRL+O:    Is this intentional? White text on black background does not exactly fit in, and it would be much more readable if it used some standard theme.  Can I make it so?


Why does it seem like my floating point value is not equal to itself?

#include<iostream.h> using namespace std; int main() {       float x=1.1;       if(x==1.1)          cout<<"yes";       else          cout<<"no";       return 0; }   I assign value 1.1 to x and checked value of x is 1.1 or not?


I know everyone says you can't give cash right now but this morning (17 DEC 2013) a random player gave me $114,000,000 for no reason. I messaged him and thanked him and asked how he did it but he did not respond. so I don't know how its done but I know you can. Anyone know how to do it other than splitting job money?


Cannot communicate with server: Post http://localhost/v2/apps: dial unix /run/snapd.socket: connect: no such file or directory

I am trying to install heroku cli using sudo snap install heroku --classic  The command line says error: cannot communicate with server: Post http://localhost/v2/apps: dial unix /run/snapd.socket: connect: no such file or directory  I tried systemctl status snapd.service this is the result : snapd.service    Loaded: masked (/dev/null; bad)      Active: inactive (dead)  I tried  systemctl restart snapd.service it says: Failed to restart snapd.service: Unit snapd.service is masked.  Any help on above problem in appreciated. Thanks.


An integral domain that is not a principal ideal domain

A principal Ideal domain is an integral domain D in which every ideal in D can be generated by an element in D.  The polynomial in x of integer coefficient $\mathbb{Z}\left [ x \right ]$ is an integral domain. But why is it not a principal ideal domain?


How can S.T.A.R. Labs afford to keep the lights on?

IIRC in the first episode of The Flash TV show, Dr. Wells mentions that after the explosion he has become something of a pariah, and that S.T.A.R. Labs has lost most or all of its backers.  If this is the case how can they afford to keep the facility running?  It's possible that they can generate their own power, but that doesn't explain how they have the budget for new developments such as the superspeed treadmill.   None of the three remaining S.T.A.R. Labs scientists appear to have other jobs. So where is the money coming from?


[I edited the question since it has been closed.]


Processor upgrade on a laptop vs. Ram upgrade. Also does ram always matter?

I have a Dell Inspiron 14r (N4110) with an Intel Core i3 and 4gb of ram. It runs very smoothly, however gaming on this laptop is very limited. This is mostly because of integrated graphics but i have seen a computer with a Core i5, and very similar specs otherwise, run games that the N4110 cannot. This other computer has integrated graphics and 6gb of ram.  I am wondering whether upgrading ram or upgrading the processor make the most difference in performance. Which setup would get better performance, an i5 with 4gb of ram or an i3 with 8 gb of ram? (Both with integrated graphics)  Also, is there a certain point at which you have too much ram for the computer to ever possibly use? For instance is there really any difference in performance between 8 gb and 16 gb of ram?


Unable to update value at given char pointer in c

I was checking direct comparison between strings using == operator. When both string is character pointer that it compare correctly. Sooner I realize it happen compiler by default assign same address to both char pointer variable as they hold the same value.  #include<stdio.h>  void update(char *str2){  *(str2+2)='O'; } int main(){  char *str1="Sudhanshu"; char *str2="Sudhanshu";  printf(" %s  , %s ",str1,str2); update(str2); printf(" %s  , %s ",str1,str2);  if(str1==str2){    printf("True\n"); }else   printf("False\n");  return 0; }   The address of str1 and str2 is the same. So I want to check whether updating one pointer actually affect other.  However, I'm getting a segmentation fault. Why am I getting a seg fault?


Can I resubstitute polar coordinates after differentiation?

let's consider $f: \mathbb R^2 \to \mathbb R, \quad (x,y) \mapsto xy$  We calcualte the partial-derivatives:  $\partial_x f=y$   $\partial_y f=y$  Now let's sitch to polar-coordinates, we get:  $f: (0,\infty)\times\mathbb R \to \mathbb R, \quad (r,\varphi) \mapsto r^2\sin \varphi \cos \varphi$  We calcualte the partial-derivatives:  $\partial_r f = 2r\sin\varphi\cos\varphi$   $\partial_\varphi f = r^2(-\cos^2\varphi+\sin^2\varphi)$  Now, If I calcualted the derivation in polra-coordinates, can I somehwo go back to eucledean coordinates? Just using $x=r\cos\varphi, y=r\sin\varphi$ won't do it, since if we take the partial-derivatives in polar coordinates we would get:  $2r\sin\varphi\cos\varphi=2y\cos\varphi$  $r^2\sin\varphi - r^2\cos^2\varphi = x^2-y^2$  I first expected to get $x$ and $y$ but that's bullshit since we aren't deriving in the same directions. So how could I now switch properly to eucleadean coordinates?


I am trying to tweak colors for Termite, but instead of the expected I'm getting a total mess (colors differs from my ~/.config/termite/config. In screenshot numbers should be gray, text yellow and etc.)  Also, can I set Vim's colorscheme different from terminal?    PS. I don't think this is a duplicate, because the issue seems to be due to the terminal.  Vim is just an unrelated point.   It really seems like it's a Termite internal problem, because one can get it only through compiling sources. It seems like no one really tested it on Ubuntu.


I am a new hire at a large private company that is undergoing some rapid growth.  I hope to stay with this company for at least the next few years.  At my hire, I was offered stock options equivalent to one year's salary--fully vested after five years--and the first batch of those is now available for purchase.  Please forgive any incorrect vocabulary or lack of pertinent details, but that brings me to my question:  I am fairly financially illiterate.  I have looked up what "stock options" and "vesting" and so forth mean, and I more or less understand it, but I have no idea whether it's a good idea or not.  I understand there are no guarantees with the stock market, but I'm wondering if anyone can tell me things I should consider when making this decision.  My company is growing and I believe the stock is currently increasing in value.  Our company is very large and I believe in its business model, which seems poised to do very well.  I suppose we're technically a startup, but we have 8000 employees and locations across the world.  Not sure which of this is pertinent but:   I am married, and we have a combined income of approximately 200K. We live in the US We have the majority of our $450K mortgage outstanding (we've owned our home for just two years). We have approximately 35K in credit card debt which we are rapidly paying down. We have about 100K in student loan debt (mostly my husband's) which we know we will be paying down for quite a while.


For the first few months after I got my Dell Latitude D820, it worked perfectly fine. I noticed a small problem after a while. The mouse would randomly and suddenly whoosh to the lower left corner of my screen, and occasionally the upper right. This may have stemmed from an incident where I dropped a book on the lower left quadrant of my keyboard (so to the right of the trackpad). A slight impact there (like if you slap it) will cause the mouse to do this again. If it is moving slowly, my trackpad can still control it to a point, but if it's moving quickly, only my trackball can gain back some control.  After I got a mouse the problem seemed to stop being so weird, but has slowly returned. It rarely moves quickly, but my mouse can sometimes gain control back. Lately, however, it's been moving softly and slowly to the upper right or lower left. It's never clicked a thing and it's the only part not working properly, so I don't think it's a virus or a hacker. Please help me, as this is doing horrible things to FPS games and Minecraft.


Non-citizen traveling within the US after dropping off passport for visa

I am a Sri Lankan citizen in the United States on a student visa, living in Boston. I am traveling to China and will need to drop off my passport at the Chinese consulate in New York. The group I am working with has booked me a flight for this Wednesday. While I will be able to show my passport on the flight down, I will need to leave it temporarily at the Chinese embassy while my visa is processed. Is there any way that I could be able to board a plane back to Boston without my passport? I have Sri Lankan national ID and a copy of my passport.  Is this feasible, or should I book a train ticket?


Ubuntu 16.04 : Can't Install or Update mesa-vdpau-drivers

First off I was trying to update my system. I got the error that some packages couldn't be updated/installed. The package was mesa-vdpau-drivers and corresponding i386 of the same.  I tried installing the driver manually using the command: sudo apt install mesa-vdpau-drivers  It gives me following on my terminal: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  mesa-vdpau-drivers : Depends: libomxil-bellagio0 but it is not going to be installed E: Unable to correct problems, you have held broken packages.  Now I have tried installing the dependency manually, it installs smoothly but when I try the command to install mesa-vdpau, it again shows the same error. I purged everything of mesa and installed everything from scratch it is still on the same situation.  So, how do I solve this? mesa-vdpau-drivers are needed for a hard kick to my system.  My APU+GPU: AMD A8 with R5 graphics M230  Any help to solve or pointing me in right direction is appreciated.


It's true that the irrationals do not form a group under addition or multiplication, but I want to find a binary operation "∗" such that ($\mathbb R \setminus \mathbb Q,∗$) is a group. It is possible by transpose of operation from $\mathbb R$, but I want a explicit example.


I have to either find a nonabelian group of order $95$, or show none exists. $95 = 19 \times 5$. I am trying to use the class equation to show that $\vert G\vert = \vert Z(G)\vert$, but I am not sure how to show that there is no subgroup which is not in the center. Can someone gear me in the right direction?


How can I get my correct current local time?

I need to get the current time but to be in type DateTime. I use:  DateTime now = System.now();   but it returns wrong time. I execute the code in 2017-08-04 00:38:46 AM but it returns     00:38:46:023 USER_DEBUG [138]|DEBUG|now 2017-08-03 21:38:46   How can I get my correct current local time 2017-08-04 00:38:46?  I had even tried with:  DateTime now = DateTime.parse(System.Now().format());   but I still get wrong time.     01:10:09:021 USER_DEBUG [139]|DEBUG|now 2017-08-03 22:10:00   How can I get the correct current local time?


Adding new variables makes regression coefficients individually insignificant

I have a multiple regression where all my coefficients are significant. When I add new variables my initial variables become insignificant. Furthermore, my new variables (that in a simple regression are significant) turn out to be also insignificant.  My questions are:   What are the possible reasons for this change of significance? What are the methods and possible solutions to solve this issue?


Let $f(x) = x^\top Q \, x$, where $Q \in \mathbb R^{n×n}$ is NOT symmetric. Show that the Hessian is $H_f (x) = Q + Q^\top$

Let $$f(x) = x^\top Q \, x$$ be a quadratic form, where $Q \in \mathbb R^{n×n}$ is NOT symmetric. Show that the Hessian matrix is $$H_f (x) = Q + Q^\top$$ Hint: $x^\top Q \, x = x^\top Q^\top x.$   If $Q$ is symmetric I know that $\nabla f(x) = 2 Q x$ and $H_f(x) = 2 Q$. However, I am not sure as to what I should do when Q is not symmetric. Also, the hint is somewhat misleading to me as it makes it appear that $Q$ is symmetric. Help would be really appreciated!


There's a proverb in my native language (Norwegian) which is used as a reply to a person who complains about a poor answer given to his/her poor question. It says that the quality of the answer is relative to the quality of the question.   You asked me a poor question, so I'll respond with a poor answer.  Roughly translated:  As asked, so answered   Is there a similar proverb in the English language?


I am trying to write an equation using this LaTeX code  \begin{equation} \frac{n_d}{m_d}.\psi\left(x+1,y\right)+\frac{n_d}{m_d}.\psi\left(x-1,y\right)-2.\left(\frac{n_d}{m_d}+\frac{m_d}{n_d}\right).\psi\left(x,y\right)+\frac{m_d}{n_d}.\psi\left(x,y+1\right)+\frac{m_d}{n_d}.\psi\left(x,y-1\right)=m_d*n_d*\frac{q}{\epsilon}\left(n-p-C\right) \end{equation}   but when I compile it I can only see a part of the equation in the generated pdf.


Background color is not working in some badges  Please see this image:    All badge background colors are black. But the profile-page and specific-question  badge background color was white? Is it a bug?


How to find the voltage rating of a capacitor after knowing the capacitance value.  Example, For a power supply, If the input voltage is 60V and output is 5V. The input capacitor(C1) value is 100uf and output capacitor value is 1000uf.  What is the voltage rating for both the capacitors and how to find them.


Sharepoint 2013 Distributed Cache cacheHostInfo null

I have setup a development environment for SharePoint 2013 so we can begin testing our 2010 content, however I am running into trouble starting the Distributed Cache service. Note that this is currently a clean install, there is no 2010 content or installation. We are using Server 2012, SQL Server 2012 (v11.0.2100) and SharePoint 2013. AppFabric 1.1 was installed as a prerequisite for Sharepoint 2013.  Looking at the Windows Server Services, I can see that the AppFabric Caching Service is Running.  I have ensured that AppFabric is installed and configured correctly, and have setup a network share, however, when I go to start the Distributed Cache service, I get the error:      cacheHostInfo is null   When digging into the logs using the correlation id, I end up with this line here:     A failure occurred in SPDistributedCacheServiceInstance::Provision. cacheHostInfo is null for host 'my_server_name'.   where my_server_name is the name of the dev server.  I looked at the AppFabric Config wizard, and it states "This machine is a part of an AppFabric Caching cluster." So according to AppFabric, it is all setup, and the network share is linked correctly.  The service is linked to a user account which I have created for this purpose and have given it the permissions required through Local Security Policy (Bypass traverse checking, Generate security audits, Log on as a service). This user has been granted access to the network share.  Is there anything else I need to check or try to get this running? Or has anyone seen this error before?


How do you go about breaking a Quagmire III Cipher?

For example, take K1, from the Kryptos sculpture, which has been long solved. It's text is as follows:  EMUFPHZLRFAXYUSDJKZLDKRNSHGNFIVJ
YQTQUXQBQVYUVLLTREVJYQTMKYRDMFD  Now, I already know they keywords used (because the solutions are online) and they are PALIMPSEST and KRYPTOS. However, I do not understand how you would go about finding these keywords if you do not already know them.   Any help would be appreciated!


How long will beet stock be good in the fridge and is it obvious (odor or otherwise) if it's bad.  I've had this beet stock for a while and I want to drink it but I'm a little nervous. It smells fine and looks fine.


Search for tag doesn't work in mobile web. I.e. entering tag  name and then Enter on on-screen keyboard does nothing:


I'm looking for the finite groups (for example n elements) that have subgroups with every divisor of n elements. Say a simple example is cyclic groups. Please help me to find more and more groups with this condition.


BASH script to set environment variables not working

I've written the following script to set some environment variables when needed.  #!/bin/sh export BASE=/home/develop/trees echo $BASE export PATH=$PATH:$BASE echo $PATH   Below the command and the results I can see on my terminal: the script runs, but the variables are not set at the end.  ~$: ./script.sh /home/develop/trees /bin:......:/home/develop/trees ~$: echo $BASE  ~$:    What's wrong? Thanks in advance. Mirko


Weird beamer and xelatex math interaction

I'm trying to use xelatex with beamer (I know, bad idea!) so that I can use a particular style file that I like. I'm running into some weird math display problems. Here's my MWE:  \documentclass{beamer} \usepackage{unicode-math} \usepackage{xltxtra} \setmathfont{Asana-Math.otf}  \begin{document} \begin{frame} $ a < b \log n $ \end{frame} \end{document}   which yields the following:    So I think that I'll get rid of Asana-Math because maybe it has some font problems. The resulting image I get looks like this:    So either way I'm in a bind. Either basic characters are not recognized or I can't use operators (and this happens with \exp as well).   Is there something obvious that I'm missing ?


questions asks how to write 0 in unary and the answer given was (literally) as nothing (with no symbol). I'm wondering how you would write a decimal (0.1 for example) in unary. Since 1^(-n) = 1, I presume it's impossible, $$.x = x,$$ $$.xx = xx$$ and so on. Is there a way to write numbers with decimal places in unary?


Let $C,D$ be categories and $F:C\to D$ and $G:D\to C$ be adjoint functors. Then $F$ is fully faithful iff the unit is an isomorphism?

Let $C,D$ be categories and $F:C\to D,G:D\to C$ be such that $F$ is a left adjoint of $G$. Prove that $F$ is fully faithful iff the unit is an isomorphism.   (This is an exercise from the book by T. Leinster)   I think I can do one direction:  $\impliedby$: If we let $\eta$,$e$ be unit/counit then as $\eta:\text{id}_C \implies GF$ is an isomorphism, it follows that the composite  $$ \text{Hom}(x,y)\to\text{Hom}(F(x),F(y))\to\text{Hom}(GF(x),GF(y)) $$  for all $x,y\in C$ is an isomorphism, which implies that $F$ is faithful. But $F$ must be full since the composite  $$ G=G\circ \text{id}_D \implies GFG \implies G $$  is an identity transformation (I'm rather skeptical about this).  But I don't have any idea regarding reverse direction, in which I have to show that the arrow $x\to GF(x)$ has an inverse for all $x\in C$.


Does Luck improve the success rate of a Radio Station?

I know that the size of your radio room improves the chance of attracting a new dweller, and Charisma shortens the interval between checks, but does Luck have an effect? Since it helps with caps and rushing production in other rooms, it doesn't sound completely unlikely.


How to find the reduced density matrix of a four-qubit system?

I have the state vector $|p\rangle$ made up of 4 qubits. Say system A is made up of the first and second qubits while system B is made up of qubits 3 and 4. I want to find the reduced density matrix of system A.   I know I could separately extract qubits 1,2 and 3,4 into their own state vectors then find their density matrices and compute the reduced density matrix for system A.  I want to figure out how to do this without having to extract and separate the systems. First I would find the density matrix of $|p\rangle$ and then do a partial trace with respect to system B. I am not sure how to do the partial trace of system B since the system contains 2 qubits.  Can anyone help me figure this out? I am using Python and NumPy for reference.


I am running into an issues with locating index  In SSMS, if I expand Users>Indexes, I do not see an index named "_dta_index_Users_5_1466188719_88410000_K1_K6_K2_7_10_11"  But I can see a statistics created for it.  Also when I search for indexes on "Users" by running this query   SELECT index_id, name FROM sys.indexes WHERE object_id = OBJECT_ID('Users')  It appears in the result "_dta_index_Users_5_1466188719_88410000_K1_K6_K2_7_10_11"  So the question is why I cannot see this index in SSMS? The index is not disabled and not user created since all our indexes start with IX_USERS_XXX  Any suggestions.  Thanks!


Compute the Jacobi fields for the geodesic variations

This is one of my exercise on my notes. I am still stuck and hope someone can help.  We have $p \in M$ and $V,W\in ˇT_p M$.  Compute the Jacobi fields of the following geodesic variations at $s=0$.  $γ_s(t) = exp_{η(s)}(tV_{η(s)})$, where $η(s) = exp_p (sW)$ and $V_{η(s)} ∈ T_{η(s)}M$ is the parallel transported version of V along η.


Okay anyone know how to get GIMP working on a Ubuntu Raspberry Pi 4

I wish to get GIMP as well as Krita working on my new RaspPi4. How do I go about doing this?


Are despite and in spite of interchangeable? I prefer despite but the alternative sometimes scans better.


Can I Install Ubuntu first before installing Windows for dual boot

Am i able to install ubuntu first and then install windows? I allocated ubuntu 15gb and im going to load the rest (900gb) for windows but will grub loader work? Or do i have to install windows first and then ubuntu? Thanks


Malicious files generating in CentOS 7 directory /usr/bin

I installed a CentOS 7 at my Virtual Machine, As i have installed the antivirus on the machine i found some files in /usr/bin which coming as Malicious content, i backup them and again they generated with another names, and names are randoms. Can someone guide me what kind of files are, is it really any Malicious Script which generating files. below are the files for the reference. rwxr-xr-x. 1 root root    625889 Jun 14 17:58 zqoppdtajj_bkp_ali  #i marked them backup -rwxr-xr-x. 1 root root       156 Jun 14 17:58 saxquzl.sh_bkp_ali #i marked them backup -rwxr-xr-x. 1 root root       158 Jun 14 20:19 nntbxqpwp.sh_blk_script #i marked them backup -rwxr-xr-x. 1 root root    625878 Jun 14 20:19 rpsdbuuyef_bkp_ali #i marked them backup -rwxr-xr-x. 1 root root       161 Jun 20 13:46 plhurveidhxc.sh_bkp_ali #i marked them backup -rwxr-xr-x. 1 root root       160 Jun 20 13:47 ezkxscupeqn.sh_bk_ali #i marked them backup  -rwxr-xr-x. 1 root root    562340 Jun 20 13:49 uhrxms -rwxr-xr-x. 1 root root       155 Jun 20 13:49 smxrhu.sh -rwxr-xr-x. 1 root root    562340 Jun 20 13:49 smxrhu -rwxr-xr-x. 1 root root    559794 Jun 20 13:50 zkjqbal -rwxr-xr-x. 1 root root    559794 Jun 20 13:50 labqjkz -rwxr-xr-x. 1 root root       156 Jun 20 13:50 labqjkz.sh  inside the smxrhu.sh #!/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin cp "/usr/bin/smxrhu" "/usr/bin/mrpjpymvkc" "/usr/bin/mrpjpymvkc"  Inside the labqjkz.sh #!/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin cp "/usr/bin/labqjkz" "/usr/bin/ivsuvtlkzx" "/usr/bin/ivsuvtlkzx"  Thanks in advance.


I want to have an index entry typeset as $a_\text{T}$, so I issue the command \index{at@$a_\text{T}$}. Each use of this index command creates a separate line in the index. How can I get \makeindex to recognize they all reference the same topic?  My index entries look like this:


Chrome - how to get new tab and startup to show blank pages?

How can I set new tab pages and browser startup pages to be blank in Chrome? The default page takes a while (5 - 10 seconds) to become usable. Not really a big deal, but annoying when browsing rapidly.  A couple more points:   I tried setting the startup webpage in Chrome settings, but this only affects the page displayed on browser startup, not pages displayed on new tab. I would rather not use extensions that merely clean the UI DOM after the page is initialized. The issue here is not visual display of the new tab page, but the delay in setting it up.   Many thanks in advance!


Regex results in SyntaxError: unterminated parenthetical

I want to use regex on the jsf (.xhtml) page. When i want to use regex i keep getting this error    SyntaxError: unterminated parenthetical   and my code is   var data2 = ($("#data").val()).replace(/User(/g,"{");   I use regex earlier in php pages but never get such error.


uint color;  bool parsedhex = uint.TryParse(TextBox1.Text, out color);  //where Text is of the form 0xFF0000 if(parsedhex)    //...   doesn't work. What am i doing wrong?


What are the Fair Usage Policy (FUP) limits for free EU roaming after June 15th 2017?

On June 15th, the EU will abolish roaming charges across all member states. However it's not entirely clear what FUP limits have been eventually negotiated:    How much data can you use on your plan before the operator can start charging you extra? Exactly how much is the operator allowed to charge for data once you exceed your FUP limit? What are the equivalent limits and charges for calls and text messages? The  mentions that "Roaming charges will no longer apply, as long as you are using your phone abroad temporarily". How long is temporarily and how much will you be charged if you stay for longer? Are there EU countries with special rules? E.g. I've read that Lithuanian operators are allowed to apply higher roaming charges to protect their market - is there a centralized page where I can learn about all the exemptions?   Links to official EU resources are highly appreciated. Kindly avoid referencing vague or unprecise statements - I assume that exact rules are already available somewhere, since the free roaming begins in 2 weeks.


Equivalence test for one proportions test

I want to apply an equivalence test on my sample to infer whether they are equivalent or not. Since my data are binominal [0,1] I don’t know whether the TOST procedure (tost() in R) can handle my problem or not. My data consists of one group (G) which are not equal in numbers of samples. E.g., G= 264 people. The outcome variable is binominal, such that G includes the number of Yes and NO. I want to know if I can run an equivalence test for one-portion test.  Hypothesis: H0:p1=0.5; H1: p1>0.5


TikZ - curly braces end at the same node, but there is a gap

I created a timeline with TikZ. The problem is, that there is a little gap between the ends of the braces that end at the same node.    And here is my code:   \begin{tikzpicture}[y=1cm, x=1cm, thick, font=\footnotesize]      % axis   \draw[line width=1.2pt, ->, >=latex'](0,0) -- coordinate (x axis) (10,0);         % time points \draw (3,-4pt) node(t_k){} --      (3,4pt) node[anchor=south] {$t_{k}$}; \draw (5,-4pt) node(t_k_opt) {} --      (5,4pt) node[anchor=south] {};       \draw (7,-4pt) node(t_k_opt_impl) {} --      (7,4pt) node[anchor=south] {$t_{k}+\triangle^{\text{opt}}+\triangle^{\text{impl}}$};   % curly braces \draw[decorate,decoration={brace,amplitude=3pt,mirror}]      (3,-2.5) node(t_k_unten){} --      (5,-2.5) node(t_k_opt_unten){};  \node at (4,-3){$\triangle^{\text{opt}}$}; \draw[decorate,decoration={brace,amplitude=3pt,mirror}]      (t_k_opt_unten) --      (7,-2.5) node(t_k_opt_impl_unten){};  \node at (6,-3){$\triangle^{\text{impl}}$};  % vertical dotted lines \draw[dotted] (t_k)--(t_k_unten); \draw[dotted] (t_k_opt)--(t_k_opt_unten); \draw[dotted] (t_k_opt_impl)--(t_k_opt_impl_unten);  \end{tikzpicture}   I'd be glad, if someone could help!


this below example print only 10 for ten times. could you please tell me whats going in background.   public delegate void DoSomething();  static void Main(string[] args) {     List<DoSomething> lstOfDelegate = new List<DoSomething>();     int iCnt = 0;     while (iCnt < 10)     {         lstOfDelegate.Add(delegate { Console.WriteLine(iCnt); });         iCnt++;     }      foreach (var item in lstOfDelegate)     {         item.Invoke();     }     Console.ReadLine(); }   accroding to me it should print 0 To 9, but it print 10,10,10,10,10,10,10,10,10,10


I'm trying to build my first generic list and have run into some problems. I understand the declaration looks like " List<T> ", and I have using System.Collections.Generic; at the top of my page. However, Visual Studio doesn't recognize the T variable.   What am I missing?


I am looking for some JavaScript simple samples to compute elapsed time. My scenario is, for a specific point of execution in JavaScript code, I want to record a start time. And at another specific point of execution in JavaScript code, I want to record an end time.  Then, I want to calculate the elapsed time in the form of: how many Days, Hours, Minutes and Seconds are elapsed between end time and start time, for example: 0 Days, 2 Hours, 3 Minutes and 10 Seconds are elapsed.  Any reference simple samples? :-)  Thanks in advance,  George


What is the sum of Fibonacci reciprocals?

How can I calculate $\sum\limits_{n=1}^{\infty}\frac{1}{F_n}$, where $F_0=0$, $F_1=1$ and $F_n=F_{n-1}+F_{n-2}$?  Empirically, the result is around $3.35988566$.  Is there a "more mathematical way" to express this?


One book defines the shear stress $\tau$ of a (Newtonian) fluid as  $$\tau = \eta \frac{\partial v}{\partial r} $$  where $\eta$ is the viscosity. There is not much context, so I've made some guesses. Are my following assumptions correct?   $v$ is the velocity of the flow line, parallel to the wall. $r$ is the distance of the flow line from the wall. the flow must be laminar for the above to hold. (Otherwise, what would $v$ mean?) the "wall" must be a tube for the above to hold. (Otherwise, what would $r$ mean?)


SQLite : multiple inserts in a single query

I have two sqlite tables:  user:  ID  city --  ---- 1   ankara 2   istanbul 3   ankara   action  userID  isFree ------  ------   and a query like this:  INSERT INTO action (userID, isFree)  VALUES ( (SELECT ID FROM user WHERE city = 'ankara'), true);    This query inserts just the first user to the action table, but I want to insert first and third users into the action table.  Are there any way to do this in a single query?


How play a YouTube video in the background on an iPad?

Is there any way to play a YouTube video in the background on iOS 8 so I can have music playing from a video while doing other things with the iPad?


Apache: access denied because search permissions are missing

I know this question is asked a lot, but the solutions I saw didn't work for me.  I only have one virtual host enabled, and I'm trying to enable access to a folder that's not under the document root  ServerAdmin webmaster@localhost DocumentRoot /var/www/html  Alias /movies /home/username/Videos/Movies  <Directory /home/username/Videos/Movies/>     Options Indexes FollowSymLinks     AllowOverride None     Require all granted </Directory>   I set /etc/apache2/envvars as follows  export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=public   I made sure that /home/username/Videos/ and its sub folders are owned by username:public, set the permissions to 777 (after 775 didn't work) and made sure that user www-data belongs to group public.  Now, when I browse to http://localhost/movies I get  [Mon Apr 21 11:28:14.971844 2014] [core:error] [pid 1385:tid 140067725104896] (13)Permission denied: [client 127.0.0.1:46603] AH00035: access to /movies/ denied (filesystem path '/home/username/Videos') because search permissions are missing on a component of the path   But when I set /etc/apache2/envvars to run Apache under username (my own username) everything works fine. The problem is permission related, but I don't see how in my case; especially when I set the permissions to 777. Any ideas?  P.S. Ubuntu version is 14.04, Apache is 2.4.7 and I didn't edit other configuration files.


When and why would somebody do the following:  doSomething( (MyClass) null );   Have you ever done this? Could you please share your experience?


Getting error with "sudo make" command while installing aircrack-ng (Ubuntu 14.04)

XXXXX@XXXXX:~/aircrack-ng-1.2-rc2/src$ sudo make gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3   -fstack-protector -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude  wpaclean.o osdep/radiotap/radiotap.o -o wpaclean -Losdep -losdep -lnl-genl-3 -lnl-3   /usr/bin/ld: cannot find -lnl-genl-3 collect2: error: ld returned 1 exit status make: *** [wpaclean] Error 1


Is 31 the only number that can be represented by two distinct sums of consecutive powers of primes?

I'm trying to prove that a number with two distinct prime factors can't be friends with another number with the same prime factors.  One way I could prove this is that there'd be only one example where $$\sum_{i=0}^np^i=\sum_{j=0}^mq^j$$  That example, preferrably, would be $2^0+2^1+2^2+2^3+2^4=5^0+5^1+5^2=31$, which fails to fit other conditions necessary to construct that pair of friends.  Through a little bit of computing power, I was unable to find examples for $p<300,n<10$, which leads me to believe it may be the only example. However, I'm completely lost on a continuation, if there is one, and whether this is just a case of the XY problem, and I should drop this line of reasoning and move elsewhere.


We say that Luna is Earth's moon. That's like looking at it from the Earth's perspective, or from a wider perspective. What is Earth to Luna from Luna's perspective?  In an application I've been coding, I create an object for each planet and in each object, there are two properties moon and master. For example,  earth : {     radius : 60,     moons : [ luna ],     master : null, }, luna : {     radius : 15,     moons : [],     master : earth, },   I chose master but I'm curious if there's a better or more technical term for that.    I wasn't sure if I should ask this in  or in here. So, advise if I was wrong.


Moving a two-month old post across sites denied

I asked  two month back. It got answer which does not quite  work for me. A while after I came back to the problem at hand and decided to flag my post to have it moved to  or . Yet, I have been denied that due to question being asked more than 60 days ago:  What shall I do to ask this question again and avoid duplicates across the sites? Would closing work, or is there something else that should be done? Besides, why do we want to deny old posts being moved in the first place?


According to , I have 1003 total score in the regex tag, but  says I only have 999 (I only noticed this because I expected to see a gold badge to appear sooner or later). Given that the data the query is using is from a migration that happened many hours ago, shouldn't my user profile be updated by now? Has an update process failed to run?


How come Earth has two Stargates, and why does one of them get "priority"?


Time and again, I've been told that the change in the velocity of light makes it bend at the interface between two different media. But is there any explanation as to why that change occurs? Or is it one of those things that you just have to accept, like positive charge attracting a negative charge, or something like that?


How do you search "sam.as.sam@example.com" in Google?

How do you search an email address with dot inside, such as "sam.as.sam@example.com", in Google? When I search it with double quotation marks surrounded, the dots "." are always omitted. Any way out?


Removing background not getting fully transparent image in Illustrator

As a beginner I am having hard time and sorry for this basic question. I have bought some vector from ShutterStock and while removing the background layer, I get some black gradient in the edges of the sparkles!  For easier understanding, please see the image below.  How do I get a fully transparent image of the shining frame. [I have the layered vector file of the image]


How to set default positioning of figure/table document wide

I'm writing my thesis and I find myself adding [hb]s and [ht]s to all figures and tables.  Is there a way to make this global for the whole document? Preferably with the option to override it for certain figure/table instances.


How do I stripslashes from something I include in PHP?

I am working on a website and I have a php editor that automatically adds \ to certain things. I was aware of the stripslashes() function and I know it can be used in a way such as: stripslashes($test) but I am including something and I do not know how to strip the slashes from the Page I am including. Here is my include code that I am using:  <?php include $_SERVER['DOCUMENT_ROOT']."/newseditor/BlogTitle.php"; ?>   So how would I stripslashes from this? Thanks for reading and I appreciate all help I recieve.


Let $A$ $\in M_3(\mathbb R)$ which is not a diagonal matrix. Pick out the cases when $A$ is diagonalizable over $\mathbb R$:  a. when $A^2 = A$;  b. when $(A - 3I)^2 = 0$;  c. when $A^2 + I = 0$.  I could eliminate c. by using the equation $\lambda^2+1$ and showing if a matrix has to satisfy this then it has to be diagonal.  I am also in doubt whether all the eigen values of $A$ satisfy this or not.


How to always insert single and double quotes?

Whenever I try to insert " or ' I have to validate it by space, otherwise strange things happen as with ' followed by an a becomes áinstead of just 'a, similar behaviour with double quotes. I find this annoying and want to disable it. How do I do that?


App to check if two numbers are equal in java using Android studio

As a beginner just wanted an app to check if two numbers are equal in java using Android studio. app crashes when run.pls let help spot the problem. here are the UI and the back end. logcat:NullPointerException: Attempt to invoke virtual method  emphasized text public class MainActivity extends AppCompatActivity {     EditText ednum1,ednum2;     Button btn1;     TextView tv1;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          final EditText  firstnumber = (EditText) findViewById(R.id.ednum1);         final EditText secondnumber = (EditText) findViewById(R.id.ednum2);         final TextView result = (TextView) findViewById(R.id.tv1);        final Button checknumbers  = (Button) findViewById(R.id.btn1);         btn1.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 double ednum1 = Double.parseDouble(firstnumber.getText().toString());                 double ednum2 = Double.parseDouble(secondnumber.getText().toString());                  if (firstnumber == secondnumber) {                     result.setText("numbers equal");                 } else {                     result.setText("numbers are not equal");                 }              };          });     } }


Planning to stay in South Korea for two weeks. Would be nice to have GSM prepay card for data transfer.   Found two providers:  EG sim http://www.egsimcard.co.kr/eng/buy-eg-sim-card/online/buy-egsimcard.asp Cost 5GB = 60000 KRW  KT http://roaming.kt.com/rental/eng/product/sim.asp Cost unlimited data 10 days - 38,500 won    Which one has better coverage and more reliable. What are hidden costs? Where to buy?   There are more providers?


how to use variable as a field value in mongodb query?

how to use search_key variable as field value instead of static value BRO  if(search_key!=''){    dbo.collection("assets").aggregate([     {        "$match": {  $and: [ { status: 1 }, { $or: [ { maker_name : /^.*BRO.*$/i }, { serial_number : /^.*BRO.*$/i  } ] } ] }     },       {       $lookup:        {          from: 'asset_type',          localField: 'asset_type',          foreignField: 'asset_type_id',          as: 'asset_type_details'        }      }     ]).sort({_id:-1}).toArray(function(err, result) {     if (err) throw err;     res.status(200).json({'return_data': result });     db.close();   });  }


I have an old desktop (2007) which is running Ubuntu 12.04LTS. I have not used it for some time and have forgotten the password. Is there a way of rebooting the computer using a 12.04 reboot disc. I appreciate all the information will be lost but I would like the use of the computer. I have tried pressing F2 and F12 but it goes start to Enter password.


Pgfplots center plot horizontally, disregarding legend

I tried a lot around with setting anchors in the plot, but I couldn't manage to center the plot correctly.  In this example the bounding box of plot and legend gets centered, but I want the plot centered, ignoring the legend.  \documentclass{article} \usepackage{pgfplots}  \begin{document}   \centering     \begin{tikzpicture}       \begin{axis}[legend pos=outer north east]       \addplot [domain=0:pi] {sin(deg(x))};       \addplot [domain=0:pi] {sin(deg(x))};       \legend{longlonglongplotname, plotname}     \end{axis}   \end{tikzpicture} \end{document}


Is it possible to render a mesh without faces?

I have a question about rendering an animation.   For a research project I am trying to animate displacements on a steel frame. This steel frame has vertices and edges.   In my script I just updated the vertices' x coordinates and then keyframe it. The animation I get in object mode is really what I wanted to have but if I try to render this animation it doesn't work.  I think it is because of the non defined faces but is there a way to render a mesh which only has vertices and edges? (In object mode I can see the animation.)  (Note that this is not the whole script because the creation of the keyframes and the animation in object mode works.)


I am developing a niche social networking iPhone app of my own.   I was wondering if it would be best to allow the user to connect to social networks such as Facebook and Twitter to login to my app (and of course an eMail/Password fallback) or just go with regular eMail and Password login.  Any thoughts would be appreciated! :)


Setting Up A Minimal Sculpting Environment With An Image Area

I want to sculpt in a minimal set up with a reference image loaded in another area. I will toggle views to change settings when needed. But, I'm having trouble with the steps to set this up.  I understand how to split areas in Blender. I also know how to hide areas with: 't', 'n' and 'shift+space'. I understand that F11 will give me full screen, getting rid of the window chrome. But, I'm having trouble combining these steps in a way that will create the minimal sculpting set up I have provided below. I don't want the areas with the red x's. I only want the areas with the orange check marks.    What steps will achieve this set-up?


/testfor item in item frame help with code

I'm trying to test for a specific item in an item frame and I'm sure I have the correct code.   /testfor @e[type=Item_Frame,x=-1285,y=72,z=788}] {Item:{id:minecraft:leather}}   However I get this error:  [02:46:44] Data tag parsing failed: Expected '}' but got ':' at: {Item:{id:minecraft:<--[HERE]   This is a fairly simple code. I follow the 'mold' everyone else is using for this specific testfor command, but I get an error. There may be a different way to write it 1.12?   Thanks in advance for the help!


Do I understand the off state (0/0) of an SR latch correctly?

Can someone please confirm if I understand this correctly: When neither R nor S are on (both are 0) it seems to me that at first both outputs are 1, then it feeds back through, and both go to 0, and then back to 1, infinitely?  But this assumes that all the signals travel precisely exactly as fast. As I understand it, in the real world there are teensy variations in the response times of the electronic components, which will lead to one of the outputs being stably on and the other being stably off. However, the collapse of the oscillating circuit is NOT due to the logic of the circuit, but the imperfections of the real world.  Again, as I understand it, if we had perfect components with no variations that could perfectly replicate the circuit in the image, then both outputs would oscillate between being on together and off together forever - or at least until R or S is set.  Now for the big question: is this 100% correct, or have I made a significant mistake? Because trying to understand the off-state of this circuit has been breaking my brain. (Just a regular fellow with no electronics experience here and a bit of understanding of logic.)


Remove/hide the long connecting line in plotting GeoJSON linestring using Leaflet

I encounter this long connecting line when plotting a GeoJSON linestring. How do I hide/remove this connecting line?  When I plot it in linestring:    When I plot it manually (slower than using linestring):    <Map   style={{ height: "400px", width: "100%" }}   zoom={1.5}   center={[     this.state.passes.coordinates[0][1],     this.state.passes.coordinates[0][0]   ]}   scrollWheelZoom={false}   maxBoundsViscosity={1.0}   maxBounds={bounds} >   <TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />   <GeoJSON     color="red"     data={this.state.passes}     onEachFeature={function(feature, layer) {       layer.on("click", onLineClick);       layer.bindPopup(createPopupContent(feature));     }}   />   <Marker position={this.state.marker} icon={iconSatellite} /> </Map>


I am smarter than Jake, but he's richer than (me or I).  What should come as the object?


Prove $(\cos \alpha + i \sin \alpha)^n = \cos ( n \alpha ) + i \sin (n \alpha)$ by induction

$(\cosα + i\sinα)^n = \cos(nα) + i\sin(nα)$ for $n$ , $(\cosα + i\sinα)^{n+1} = \cos(nα+n) + i\sin(nα+n)$ for $n+1$, $(\cosα + i\sinα)^{n+1} = \cos(nα)\cos n - \sin(nα).\sinα + i.\sin nα.\cos n +i \cos nα\sin n$ $(\cosα + i\sinα)^{n+1} =\cos nα(\cos(n)+i\sin(n))+\sin(nα)(i\cos n-\sin(n)$    And then I opened $(\cosα + i\sinα)^{n+1}$ like $(\cosα + i\sinα)^n ×  (\cosα + i\sinα)$ , but I still continue this question but I didn't find exactly. How I can continue this question or new way


As for Quinn, there is little that need detain us. Who he was,  where   he came from, and what he did are of no great importance.   I was just reading 's  and came across the sentence above. I can grasp neither the structure of this sentence nor the meaning quite well, so I have two questions:    Is this a valid structure?    Whether my following understanding of the sentence is correct: We can easily describe Queen and get on with the story.   Any help and references would be highly appreciated.


Number Theory Example of a UFD that is not a PID

I am looking for an illuminating example of a UFD that is not a PID. The standard one is $\mathbb{Z}[x]$, but since I am studying algebraic number theory, I am wondering if there is any subring of $\overline{\mathbb{Q}}$ (field of algebraic numbers) that is a UFD but not a PID.   I know that algebraic number rings are Dedekind domains and for those PID and UFD are equivalent, so naturally the example can not be a number ring. My first guess would therefore be $\mathbb{Z}[\sqrt{ m}]$ for $m \equiv 1$ $(\mod 4)$. But are any of those even UFDs?


Explain why ($\mathbb{Z}_6$, +, · ) is not a field, where + is addition modulo 6 and · is multiplication modulo 6.  When I was trying to explain why this is not a field, I came into a bit of trouble. I understand that for it to be a field the following must be true: Closure, Associative law, Identity and inverses. I wasn't sure how to disprove this. So far, Ive drawn a caylee table, but I havent been able to figure out what section disproves it. Any help would be much appreciated. Thanks in advance (:


How can I find the “friendly name” of the operating system from the shell / Terminal / bash?

I know that I can use sw_ver to find this information:  ProductName:    Mac OS X ProductVersion: 10.14 BuildVersion:   18A353d   …and I know I can find other things like uname can give me some types of information about the OS, and system_profiler SPSoftwareDataType can give me additional information, but I want to find the “friendly” name, such as “Mojave” in the image shown above.  How can I find the “friendly” name, using the shell / Terminal / bash / etc ?  So far my Google fu has failed to turn up any solutions. All the results seem to come back to those commands I mentioned above, but none of those give me the right information.  It has to be in there somewhere… how can I find it?


I was trying to come up with the reason for why light refracts upon entering a new medium and after consulting with the internet I believe my theory is known as the marching soldiers analogy. This analogy describes how when light hits a boundary at an angle, the near side of the light beam will slow down first whereas the far side will take longer to get to the boundary and slow down. Obviously, this causes a change in direction dependent on the time it takes for the far side to get to the boundary, which directly correlates with the angle at which the beam of light is incident upon the boundary.  My question is, does this work with just a single photon? If one particle/wave of light crosses a boundary between media, will it refract? The only way I could imagine this happening is if you took the photon to be a wave and thus have a little width (the distance between opposite peaks). Is this right or would a single photon just pass through with only a change in speed, not direction?  Edit:  After reading more about Fermat's Principle I have a lot more questions but I'll read more so I can narrow them down.


Is it possible to use C++ binaries from php

Is it possible to write some C or C++ code and compile to binaries, then use those binaries with php? Is it also possible to write a php library using C and C++ ?  If so, please tell how can I do so?


Does new target need to be chosen after the original has become invalid?

Hypothetical situation:  Player A has one creature and player B has also one creature. Now the player A casts a black spell to destroy the creature  and targeting player's B creature. If creature B gets protections from black does the player A need to target the only possible target left in the game and that is his creature? What if the creature B would be returned to hand instead? Is it the same?


Windows 7 clean install taking up 71.6gb on my SSD

I installed windows on my SSD as the C:\ drive and it is 71.6gb used out of 111gb.  I should note that when I select all the folders in C:\ and right click and view properties of all the folders in the drive, they total 15gb.  What gives?  What is taking up a fake ~50gb?


Can you please tell me how to remake it for Blender 2.8x version?  def register():     bpy.utils.register_module(__name__)     bpy.types.INFO_MT_file_export.append(menu_func_export) def unregister():     bpy.utils.unregister_module(__name__)     bpy.types.INFO_MT_file_export.remove(menu_func_export) if __name__ == "__main__":     register()


Check if player has item, if so remove it

I'm messing around with command blocks, and I'm wanting to try and make an XP vending machine. My idea is if you click a button with a Diamond in your hand, 1 diamond gets removed and you get x amount of XP.  Is this possible using command blocks? If so, what commands would I need to look at? I already know /xp myAmount @p, it's just the checking/removing of items I can't seem to get.


I have read that finally block is always called after the try catch block.  I have a situation(please don't go syntactically)  SITUATION 1:-  try {       return 1; } catch() {   return 2; } finally() {   Console.WriteLine("ABCD"); }   And another situation as:-  SITUATION 2:-  try {   System.Environment.Exit(1); } catch() {    return 2; } finally() {   Console.WriteLine("ABCD"); }   My question is that in both the situations will the finally block be executed if my code is entering in the try block? If not please explain the reason.  My understanding is that exit is a system call and return is a function call.


prove that : $\cos x \cdot \cos(x-60^{\circ}) \cdot \cos(x+60^{\circ})= \frac14 \cos3x$

I should prove this trigonometric identity. I think I should get to this point : $\cos(3x) = 4\cos^3 x - 3\cos x $ But I don't have any idea how to do it (I tried solving $\cos(x+60^{\circ})\cos(x-60^{\circ})$ but I got nothing)


Why can my statically compiled ARM binary of BusyBox run on my x86_64 PC?

Bit of a strange situation there. I compiled a static executable of BusyBox 1.32.1 for the ARM platform (32-bit) and strangely it runs without problems on both platforms. Look by yourself: root@smallbuntu /m/n/b/i/n/rootfs# readelf -h bin/busybox-initrd ELF Header:   Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00    Class:                             ELF32   Data:                              2's complement, little endian   Version:                           1 (current)   OS/ABI:                            UNIX - System V   ABI Version:                       0   Type:                              EXEC (Executable file)   Machine:                           ARM   Version:                           0x1   Entry point address:               0x1f419   Start of program headers:          52 (bytes into file)   Start of section headers:          1482800 (bytes into file)   Flags:                             0x5000002, Version5 EABI, <unknown>   Size of this header:               52 (bytes)   Size of program headers:           32 (bytes)   Number of program headers:         6   Size of section headers:           40 (bytes)   Number of section headers:         27   Section header string table index: 26 root@smallbuntu /m/n/b/i/n/rootfs#   then: root@smallbuntu /m/n/b/i/n/rootfs# bin/busybox-initrd ls bin         home        media       proc        srv         var boot        kobo        mnt         root        sys dev         lib         modules     run         tmp etc         lost+found  opt         sbin        usr root@smallbuntu /m/n/b/i/n/rootfs# bin/busybox-initrd uname -a Linux smallbuntu 5.8.0-50-generic #56-Ubuntu SMP Mon Apr 12 17:18:36 UTC 2021 armv7l GNU/Linux root@smallbuntu /m/n/b/i/n/rootfs#   uname -a seems to return armv7l by the busybox binary. Here's the normal output: Linux smallbuntu 5.8.0-50-generic #56-Ubuntu SMP Mon Apr 12 17:18:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux  Any idea of what's going on?Thanks!


Is there a rule in British English about how to pronounce "either"?

There are two common pronunciations of "either": British /ˈaɪðər/ and American /ˈiːðər/. If Americans are more or less consistent in this regard, then the Brits seem to be freely using both. In fact, from what I can tell, "either this or that" is more often in the first form, whereas "me either" is in the second. But I may be wrong. Is there any kind of an informal rule in the modern British English with regard to this?


Is there a way I can import a game from the Blender Game engine to both an iPhone or Android, whether it's using a different program or not? If not possible, is there a way I can import everything in that specific Blender file over to Unity without changing any of the textures (all image textures, since they were baked), locations of the objects, and settings for the lamps/cameras/etc.? Help is greatly appreciated. (Not a VR game)


I am using a two column article and I want to have a background color for only the columns instead of the entire page. How can I do that ? I am using the following template. I would also like to have a separate background color for the abstract part as well.   Code:   \documentclass[twoside]{article} \usepackage[sc]{mathpazo} \usepackage[T1]{fontenc} \linespread{1.05} % Palatino needs more space between lines \usepackage{microtype} \usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} \usepackage[font=it]{caption} \usepackage{paralist} \usepackage{multicol} \usepackage{lettrine} \usepackage{lipsum}   \usepackage{abstract}     \renewcommand{\abstractnamefont}{\normalfont\bfseries} \renewcommand{\abstracttextfont}{\normalfont\small\itshape}  \usepackage{titlesec}     \renewcommand\thesection{\Roman{section}}     \titleformat{\section}[block]{\large\scshape\centering}{\thesection.}{1em}{}  \usepackage{fancyhdr}     \pagestyle{fancy} \fancyhead{} \fancyfoot{} \fancyhead[C]{Journal paper template $\bullet$ April 2012 $\bullet$ Vol. XXI, No. 1} \fancyfoot[RO,LE]{\thepage}  \usepackage{hyperref} \title{\vspace{-15mm}%     \fontsize{24pt}{10pt}\selectfont \textbf{Long Titles Look More Impressive Than Short Ones} }     \author{% \large \textsc{Jonathan S. Doe}\thanks{Template by \href{http://www.howtotex.com}{howtoTeX.com}} \\[2mm] \normalsize University of Technology, Delft \\ \normalsize \href{mailto:frits@howtoTeX.com}{frits@howtoTeX.com} \vspace{-5mm} } \date{}  \begin{document} \maketitle \thispagestyle{fancy}  \begin{abstract} \noindent \lipsum[1] \end{abstract}   \begin{multicols}{2}  \lipsum[1]  \section{Section title example} \lipsum[1-2]  \section{One more section} \lipsum[3-5]  \end{multicols}  \end{document}


How many R2 droid units were there according to canon?

We know that most Star Wars droids were designated using 4 letters of  (which is basically Latin so base 36 including numbers).  Then, the upper bounds on named  would seem to be be 36^2=1296 even assuming random 2 letters at the end, and 26*10=260 assuming the typical naming scheme of Letter+Digit.  Is there any notion in canon of just how many R2- units were ever produced?  Wikia (unsourced) says:     he R2-series astromech droid was a model of astromech droid produced by Industrial Automaton, boasting a level of success that was never equaled in Industrial Automaton's long history. A combination of excellent design, high-quality marketing, and good timing made this astromech droid one of the most sought after droids in history, and one of the few vintage astromech series still in active production decades after it was first designed, including the prototype R2-0. The line was so successful that the Galactic Empire took credit for the design.   Given the size of the Galaxy (millions? of inhabited planets, gazillions of beings), a production run of 260 - or even 1296 - seems to square very poorly with "one of the most popular astromeh droids in history with multi-decade production run".  Is there ever a canon explanation (ANY canon) for this?   Were there tons of non-designated R2 units?  Were later models designated differently, perhaps not limited to R2-$L$D scheme?  Were there really only 260 or 1296 R2 units in the entire galaxy? Some other explanation? Was the assumption that  - implied by the use of ArtooDeetoo as a proper name in the movie as well as similar references to all other droids - wrong and such designations were in fact reused for multiple droid units?


Is it acceptable to edit (correct) grammar or spelling?

Some individuals may be sensitive to edits of their posts on the basis of spelling or grammar. Some editors may be concerned about what to put in as a reason/explanation for the edit. New editors, in general, are likely uncertain of what the accepted "etiquette" is, on these sites, for such corrections.


Why is the loop cut tool stopping at one face?

I'm having an issue with a loop cut in the image below. The face I'm having the issue is the following:    For other hand my intention is to have the part in blue in the below image totally straight and not curved:    This is the reason I want to loop cut the entire perimeter and move in the Z axis all the edges to make it straight.  I already cleaned up duplicated vertex and the normals are alright but I don't know why is not loop cutting all.


How can I evaluate a C# expression dynamically?

I would like to do the equivalent of:  object result = Eval("1 + 3"); string now    = Eval("System.DateTime.Now().ToString()") as string   Following Biri s , I got this snippet (modified to remove obsolete method ICodeCompiler.CreateCompiler():  private object Eval(string sExpression) {     CSharpCodeProvider c = new CSharpCodeProvider();     CompilerParameters cp = new CompilerParameters();      cp.ReferencedAssemblies.Add("system.dll");      cp.CompilerOptions = "/t:library";     cp.GenerateInMemory = true;      StringBuilder sb = new StringBuilder("");     sb.Append("using System;\n");      sb.Append("namespace CSCodeEvaler{ \n");     sb.Append("public class CSCodeEvaler{ \n");     sb.Append("public object EvalCode(){\n");     sb.Append("return " + sExpression + "; \n");     sb.Append("} \n");     sb.Append("} \n");     sb.Append("}\n");      CompilerResults cr = c.CompileAssemblyFromSource(cp, sb.ToString());     if (cr.Errors.Count > 0)     {         throw new InvalidExpressionException(             string.Format("Error ({0}) evaluating: {1}",              cr.Errors[0].ErrorText, sExpression));     }      System.Reflection.Assembly a = cr.CompiledAssembly;     object o = a.CreateInstance("CSCodeEvaler.CSCodeEvaler");      Type t = o.GetType();     MethodInfo mi = t.GetMethod("EvalCode");      object s = mi.Invoke(o, null);     return s;  }


What's the difference between cards, panels, and tiles?

It seems as if with some of the modern front-end development frameworks there is a blur between the different types of 'container' elements. Whether this is an attempt to abstract the design from implementation or if this is due to there not being any standardization of terminologies I am not sure, but it leads to the fact that in some design frameworks I see the term panels being used but not cards (e.g. Bootstrap 3) while in others the term cards exists but not panels (e.g. Iconic), and perhaps both exist in others?  From a design perspective, it seems that both cards and panels are just containers, and since there's nothing that defines how big a card can get and how small a panel can be, I am wondering whether there's really any difference. From an implementation perspective, it seems that cards should be used for smaller size design elements and are preferred on mobile specific applications, whereas panels are used for a wider range of design elements and are preferred on desktop specific applications.  Is there any evidence/reference/examples that will help to illustrate or highlight the (lack of) differences? For some reason I think cards and tiles are more closely related to each other, and that panels seem to be in a slightly different class/family?  If we take the argument that there are no differences, then it is hard to understand why people associate 'tiles' with Microsoft 'Metro' style home pages, while on Google and Android apps it is 'cards' and for Java and Gnome applications it is 'panels'. Perhaps there are some contextual or implementation differences?  UPDATE: with the release of Bootstrap 4, it seems like cards are basically equivalent to panels (since one component has replaced the other), but with this comes the cost of having to maintain a more flexible container that will make it difficult to implement consistently. According to Bootstrap:      A flexible and extensible content container. It includes options for   headers and footers, a wide variety of content, contextual background   colors, and powerful display options.   FURTHER UPDATE: It seems as if Bootstrap 5 and Material.io have adopted the card UI component in the new world of responsive and mobile first/multi-device ecosystem design systems while "tiles" have a very specific meaning in the Microsoft Fluent Design System:      A tile is an app's representation on the Start menu. Every app has a tile. When you create a new Universal Windows Platform (UWP) app project in Microsoft Visual Studio, it includes a default tile that displays your app's name and logo   Panels don't seem to be part of the vocabulary anymore, as least in terms of a UI component, but in the Microsoft and Java world it still represents an abstract concept of organisation layouts of UI components.


What would be the best approach to get the recordtype id

I know of two approaches to get the recordtype id of a particular record type   Use SOQL   RecordType RecType = [Select Id From RecordType  Where SobjectType = 'Account' and DeveloperName = 'Business'];    Benifit here is if the admin changes the name of the record type, the code still works as we can use developer name   Using Describe  Map<String,Schema.RecordTypeInfo> rtMapByName = d.getRecordTypeInfosByName(); Schema.RecordTypeInfo rtByName =  rtMapByName.get('Business');    Saves on SOQL limits but uses a describe call.  What would be your choice and why   EDIT : Usage is for setting up recordtype while inserting records in apex or trigger


Using the Argument Principle, evaluate $\int_{|z|=4}\frac{2z\sin(z)+z^2\cos(z)}{z^2\sin(z)}dz$.

Using the Argument Principle, evaluate $$\int_{|z|=4}\frac{2z\sin(z)+z^2\cos(z)}{z^2\sin(z)}dz$$ The argument principle is the idea that $$\int_\Gamma \frac{f'(z)}{f(z)}dz=2\pi i(N-P)$$ where N is the number of zeros where N is the number of zeros of $f$ on $\Gamma$ and P is the number of poles of $f$ on $\Gamma$. I was hoping someone could double check my work. I think that $N=3$ and $P=0$, so $2\pi i(3-0)=6\pi i$. Is this correct? A classmate of mine got $10\pi i$, so I'm trying to get some thoughts on my solution.


I am looking to calculate time difference between the two below  Value1=2016-10-13 14:19:23 Value2=2016-10-13 18:19:23    I want to get difference in the form of hours/minutes. Any quick solution available?.


Is there a way to identify the busy (CPU-consuming) tab in Firefox?

Sometimes there's a nasty, guilty, CPU-hogging tab in Firefox that's maxing one of my CPU cores and making the whole browser sluggish. I'd like to find it and close it.   Sometimes I get lucky, but not often enough. So even the slightest hint of which tabs are most active would be a great help. (That is, even without a Chrome-like process-per-tab model or 'Task Manager', any idea that a particular tab is over-active would be appreciated. Is it using a lot of JS timers? Triggering a lot of events/invalidations? Etc.)  Already have removed Flash. Already run with NoScript (which usually helps but occasionally, its partial blocking of a page seems to trigger the busy-loops). Fingering the top memory-users via the "about:memory" report is slow, awkward, and doesn't quickly find the real culprit.   So: is there any other developer feature that could help? Or an add-in? Or a third-party tool (perhaps based on attaching to FF like a debugger) that can 'blame' a tab for whatever pointless spinning is happening?   (Looking for a way to finger the tab or tabs most likely to be responsible. Not interested in solutions that require a Firefox restart each time the problem recurs: that already works but loses too much loaded data.)  (APPEAL FOR REOPEN: By being more specific about things tried and non-responsive answers, this highly-findable question can draw more directly-responsive answers, like the about:performance answer hidden in @Thomee's comment and also at @fmt's  on another question. Then as a true answer here, I could then 'accept' it for added findability. As it stands, the duplicate notice just points to yet another locked-as-duplicate question that also can't get the best current answer added/accepted.)


Dual-boot Ubuntu on an Asus X551CA laptop (windows 8.1)

I bought an Asus X551CA laptop for my son which came with Win8 installed (now updated to Win8.1). I want him to be able to dual-boot to Ubuntu as we use 12.04 on our desktop and he likes apps like OpenShot & RoseGarden, but he needs Windows for some of the school work he does.   I initially had a similar issue to  - managed to get the Ubuntu live CD (12.04.3 64-bit) to boot from USB after disabling secure boot etc, but for some reason after selecting the language when I try to install Ubuntu it reboots, taking me back to the beginning. Same happens if I select the option to try Ubuntu without installing.  The laptop came with 3 partitions on the single HDD: rescue, OS (windows), and Data. I shrank Data to allow me to create a 4th (50Gb) partition for Ubuntu...but does Ubuntu need more than 1 partition (eg for Grub?), and is this causing the reboot issue? My plan was to mount the Data partition in Ubuntu so he could access the files from both Windows or Ubuntu.  I'm conscious there may be an issue with Ubuntu 13.04 on this laptop - see  - but I am not replacing Windows with Ubuntu, I want to run them both side by side, and am using the LTS release, so am hoping the Asus synaptics/elantech touchpad bug will not apply...  Any ideas greatly appreciated on how to get around this reboot issue when trying to install, and also if I can expect any issues running 12.04.3 on this hardware?  Update: this is not an duplicate of  (which is a great guide), as I am able to boot from the LiveUSB - the issue is that the Ubuntu installation reboots as soon as I select the Install option from the installation menu. I have managed to sort out the BIOS/EUFI/SecureBoot and Legacy Support issues, the issue now seems to be one of the installation itself.


Where did the Transformers ammunition come from?

The question says it all. In the cartoon and comic canon, all of their weapons are strictly energy based with an occasional missile. In all of the movies, 99% of the weapons fire ammunition that uses what appears to be a chemical propellant similar to that which is found on earth.   My question is, is this just for visual flair? Is there any sort of back story to this? Admittedly, it's quite visually stimulating to watch Optimus Prime clearing a spent round.    The  from above  Also, the scene from the first movie where they expose a cell phone to the Allspark energy and it turns into a nasty little Decepticon. It is able to create a mini RPG and ammunition for its micro mini-gun seemingly from thin air.


When do static bonuses go away relative to damage dealt?

I use  in a deck full of flying creatures. It is a 3/3 flyer with +1/+1 for each other flying creature in play. During a game, I had seven other flying creatures, making it a 10/10. My opponent cast a spell (and I'm sorry I don't recall the spell) that did 6 damage to all my creatures.  He contends that this kills Radiant Archangel as well because the static bonus of +1/+1 for all the flying creatures in play goes away once they are dead and the damage sticks around until the end of turn. Thus, after the spell resolves, the other flying creatures are gone so Radiant Archangel is only a 3/3, and it has 6 damage so it's dead.  I contend that when the damage was dealt, it was a 10/10 and survived the attack, and that the 6 damage can come out of the +1/+1 bonuses that the other flying creatures provided and that it lost once they were gone.  Does anybody have any official rulings on this?


The Subdivision Modifier Keeps Causing My Models To Warp Inside Of Itself

So I am having a problem where the subdivision modifier will constantly distort my models in a very odd way. The subdivision modifier causes the model to warp inside itself at the middle of my model. I will include a before and after picture of the application of the subdivision modifier. I am getting fairly annoyed with this problem so I would very much appreciate if some one could clarify why this is happening.  Thanks, Nova


Change input language separately in different applications like in windows

Lets say I have Firefox and my IDE opened. Input language is set to English. Then I open chat in Firefox and change language to Russian.    Then I alt-tab to my IDE and have language set to Russian too. So language is changed system-wide. What I want is to not change language in my IDE and keep it English.  Is it possible to have windows-like behavior: different languages for different applications?  Ubuntu version: 16.04.3 LTS


Recurrence relation for number of ternary strings that contain two consecutive zeros

The question is: Find a recurrence relation for number of ternary strings of length n that contain two consecutive zeros.    I know for ternary strings with length one, there are 0. For a length of 2, there is just 1 (00), and for a length of 3, there are 5 (000,001,002,100,200).    I did a similar problem, finding a relation for the number of bit strings of length n with two consecutive zeros: $$a_n = a_{n-1} + a_{n-2} + 2^{n-2}$$    Since you can add "1" to the end of all the $a_{n-1}$ strings, "10" to all the $a_{n-2}$ strings, and "00" any string of size $n-2$.    For the ternary string problem, I'm pretty sure you would replace the $2^{n-2}$ with $3^{n-2}$, but confused about the other terms of the relation. My guess is that it would have the coefficient $2$ in front of the other terms, since you can add either $1$ or $2$ to the end of $a_{n-1}$ and either $01$ or $02$ at the end of $a_{n-1}$.    So I believe the answer for the relation is: $$a_n = 2a_{n-1} + 2a_{n-2} + 3^{n-2}$$    How does that look?


If the integral of f is 0 on every subinterval, show that the integral of |f| is 0

I'm trying to prove the following result: If $f : [0,1] \to \mathbb{R}$ is integrable and the integral of $f$ is $0$ on every subinterval $I$ of $[0,1]$, then the integral of $\int_0^1|f|$ is $0$.  I have no idea how to proceed. Can you please suggest a method of attack or provide a proof?  Thank you.


Give an example of a relation R on $A^2$ which is reflexive, symmetric, and not transitive

I am just looking for some clarification on this exercise:  Let $A = \{a,b,c,d\}$. Give an example of a relation $R$ on $A^2$ which is reflexive, symmetric, and not transitive.  I understand that if I was only dealing with $A$ and and not $A^2$ I could give an answer similar to:  $R = \{(a,a),(a,b),(a,d),(b,a),(b,b),(c,c),(d,a),(d,d)\}$  Here $R$ is reflexive, symmetric, and not transitive.  What is confusing me is the fact that we have $A^2$. I am not sure what I am missing here. I am looking through my book to see if I can figure this out, but if someone could help shed some light on this it would be appreciated.  Thanks,  Tony


For what values of $n$ does every element of the group of units of $\mathbb{Z}_n$ have order dividing 2?

I am working through "Galois Theory: Second Edition", by Ian Stewart and I came across the question in the title above. The solution that he provides is as follows: "2, 3, 4, 6, 8, 12, 24, and only these." I am really not quite sure how he got this. Any advice would be greatly appreciated.


I have this code  \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[margin=2.5cm]{geometry} % showframe \usepackage{multirow} \usepackage{multicol} \usepackage{tabularx} \usepackage{caption} \usepackage{booktabs} \usepackage{amsmath} \usepackage{mathtools} \usepackage{siunitx} \usepackage[skip=0.33\baselineskip]{caption}  \captionsetup[table]{     font=bf,     size=normalsize,     justification=centerlast,     labelsep=newline     } \renewcommand\thetable{\Roman{table}}  \begin{document} \def\arraystretch{1.5} \begin{table}[h] \centering \setlength\tabcolsep{0pt} \sisetup{table-format=2.2, group-separator={,}, group-minimum-digits=4} \caption{\large{Header}} \label{table:fundsummary} \parbox{\linewidth}{\small{This table presents some very interesting and very fancy data, which I expect will provide me with at least two Nobel prizes.}\vspace{2ex}} \medskip\small\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}                 l                 S[table-format=-2.2]            *{7}{S}                 } \toprule \multicolumn{1}{c}{\multirow{2}{*}{Description}}& \multicolumn{1}{c}{\multirow{2}{*}{Variable}}& \multicolumn{5}{c}{Averages}\\\cmidrule{3-7} \multicolumn{2}{c}{}&{p-value}&{Factor 1}&{Factor 2}&{Factor 3}&{Factor 4}\\\midrule Section 1.1     &11.11 &22.22{***} &33.33   &44.44   &55.55  &66.66\\\midrule Section 1.2     &11.11 &(22.22){***} &33.33   &44.44   &55.55  &66.66\\ Section 1.3     &11.11 &22.22{***} &33.33   &44.44   &55.55  &66.66\\ Section 1.4     &11.11 &(22.22){***} &33.33   &44.44   &55.55  &66.66\\ \bottomrule \end{tabular*} \end{table} \end{document}   which produces this output    I have a table, where I have placed t-statistics in parentheses along with a set of stars to denote significance levels. It works perfectly fine when the t-statistic is not in parentheses, but it returns an error otherwise. Is it possible to have both the parentheses and the stars for the same value with the siunitx package? Thanks in advance!


decibelChart.postDelayed(new Runnable() {                         @Override                         public void run() {                             int chartValue;                             decibelChart.setNoDataText("Drawing Decibel Chart Error !");                             decibelChart.setDragEnabled(false);                             decibelChart.setScaleEnabled(false);                             decibelChart.setDrawGridBackground(false);                             decibelChart.setPinchZoom(false);                             decibelChart.setBackgroundColor(Color.TRANSPARENT);                             decibelChart.setData(lineData);                              if (mediaRecorderForDB != null) {                                 chartValue = mediaRecorderForDB.getMaxAmplitude();                             } else if (mediaRecorder != null) {                                 chartValue = mediaRecorder.getMaxAmplitude();                             } else                                 chartValue = 0;                              LineData myData = decibelChart.getData();                              if (myData != null) {                                 ILineDataSet set = myData.getDataSetByIndex(0);                                  if (set == null){                                     LineDataSet dataSet = new LineDataSet(null,"Dynamic");                                     dataSet.setAxisDependency(YAxis.AxisDependency.LEFT);                                     dataSet.setLineWidth(3f);                                     dataSet.setColor(Color.WHITE);                                     dataSet.setMode(LineDataSet.Mode.CUBIC_BEZIER);                                     dataSet.setCubicIntensity(1f);                                     myData.addDataSet(dataSet);                                 }                                  myData.addEntry(new Entry(set.getEntryCount(), chartValue + 5), 0);                                 myData.notifyDataChanged();                                 decibelChart.setMaxVisibleValueCount(150);                                 decibelChart.moveViewToX(myData.getEntryCount());                             }                              Log.e("[CHART_ERROR]", "CHART DRAWING");                          }                     },250);  set.getEntryCount() returns null and throws exception. How can i get over it ? I tried a lot things but cannot achived. The values are coming from the microphone they are decibel values. I want to draw a line chart for these values.


How to set text (in label) from the textfield

I'm making a cash register.  I would like to set the text of the label (cost) when the text in the textfield (receipt) is "chocolate".  private void dodaj_produktActionPerformed(java.awt.event.ActionEvent evt)   {                                                  product_name.getText();    String str = product_name.getText();    receipt.setText(str);    String chocolate="chocolate";     if(str == chocolate){        Double cena=3.50;        String cena_tabliczka = Double.toString(cena);        cost.setText(cena_tabliczka);    }   }


Ideals and exactness of projective tensor product of Banach spaces / algebras

Thanks for suggesting this question:  I read the reference and realize that for a short exact sequence of Banach algebra: $0 \to J \to A \to A/J \to 0$ only makes sense if $J \to A$ has closed image. So in general $D \otimes_\pi$ will not preserve that.  So my new question is: It seems to me that it is hard enough to be a closed subspace. Is there any reference on the ideals of projective tensor product of Banach algebras? Better if examples of computation is available. Thanks!


I have a views which filters films by genre and year, however the client would like urls in the following format:  /films/comedy/2009   however views is outputing the url like:  /films?genre=3&year=22   Any way to get round this?


Ubuntu can't read my USB: "device descriptor read/64, error -110"

I have a 16GB flash drive. I'm running Ubuntu 14.04. I can't open my flash drive and I can't see it in GParted.  After running tail -f /var/log/syslog . After inserting my flash:  USB disconnect, device number 10 Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.712166] usb 2-3: new high-speed USB device number 11 using ehci-pci Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.846591] usb 2-3: New USB device found, idVendor=090c, idProduct=1000 Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.846601] usb 2-3:   New USB device strings: Mfr=1, Product=2, SerialNumber=3     Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.846609] usb 2-3: Product: Silicon-Power     Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.846615] usb 2-3: Manufacturer: UFD 2.0     Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.846622] usb 2-3: SerialNumber: 1401208423400131     Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.847176] usb-storage 2-3:1.0: USB Mass Storage device detected     Jul  3 16:39:55 rihanna-VGN-Z56GG-B kernel: [ 3309.847309] scsi12 : usb-storage 2-3:1.0     Jul  3 16:39:55 rihanna-VGN-Z56GG-B mtp-probe: checking bus 2, device 11: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3"     Jul  3 16:39:55 rihanna-VGN-Z56GG-B mtp-probe: bus: 2, device: 11 was not an MTP device     Jul  3 16:40:17 rihanna-VGN-Z56GG-B kernel: [ 3332.176107] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:40:33 rihanna-VGN-Z56GG-B kernel: [ 3347.288080] usb 2-3: device descriptor read/64, error -110     Jul  3 16:40:48 rihanna-VGN-Z56GG-B kernel: [ 3362.504081] usb 2-3: device descriptor read/64, error -110     Jul  3 16:40:48 rihanna-VGN-Z56GG-B kernel: [ 3362.720076] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:40:52 rihanna-VGN-Z56GG-B kernel: [ 3366.812110] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:41:07 rihanna-VGN-Z56GG-B kernel: [ 3381.924082] usb 2-3: device descriptor read/64, error -110     Jul  3 16:41:23 rihanna-VGN-Z56GG-B kernel: [ 3397.356093] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:41:38 rihanna-VGN-Z56GG-B kernel: [ 3412.468057] usb 2-3: device descriptor read/64, error -110     Jul  3 16:41:54 rihanna-VGN-Z56GG-B kernel: [ 3428.664065] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:42:09 rihanna-VGN-Z56GG-B kernel: [ 3443.776100] usb 2-3: device descriptor read/64, error -110     Jul  3 16:42:24 rihanna-VGN-Z56GG-B kernel: [ 3458.992085] usb 2-3: device descriptor read/64, error -110     Jul  3 16:42:25 rihanna-VGN-Z56GG-B kernel: [ 3459.208063] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:42:40 rihanna-VGN-Z56GG-B kernel: [ 3474.320039] usb 2-3: device descriptor read/64, error -110     Jul  3 16:42:50 rihanna-VGN-Z56GG-B kernel: [ 3484.516109] usb 2-3: reset high-speed USB device number 11 using ehci-pci     Jul  3 16:42:50 rihanna-VGN-Z56GG-B kernel: [ 3484.768108] usb 2-3: reset high-speed USB device number 11 using ehci-pci Jul  3 16:43:05 rihanna-VGN-Z56GG-B kernel: [ 3499.880081] usb 2-3: device descriptor read/64, error -110 Jul  3 16:43:20 rihanna-VGN-Z56GG-B kernel: [ 3515.096081] usb 2-3: device descriptor read/64, error -110 Jul  3 16:43:21 rihanna-VGN-Z56GG-B kernel: [ 3515.312048] usb 2-3: reset high-speed USB device number 11 using ehci-pci Jul  3 16:43:36 rihanna-VGN-Z56GG-B kernel: [ 3530.424032] usb 2-3: device descriptor read/64, error -110 Jul  3 16:43:46 rihanna-VGN-Z56GG-B kernel: [ 3540.505230] scsi 12:0:0:0: Device offlined - not ready after error recovery


I don't know what to do! I have a great understanding of C basics. Structures, file IO, strings, etc. Everything but CLA. For some reason I cant grasp the concept. Any suggestions, help, or advice. PS I am a linux user


After upgrade to 16.04 - alternative link error setting up mysql-common

My OS was updated to 16.04  During the upgrade there was a problem with mysql. This is the error message:  Setting up mysql-common (5.7.19-0ubuntu0.16.04.1) ... update-alternatives: error: alternative link /etc/mysql/my.cnf is already managed by my.cnf.bak dpkg: error processing package mysql-common (--configure):  subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing:  mysql-common E: Sub-process /usr/bin/dpkg returned an error code (1)   I tried the solutions that were proposed in the following questions and none of them worked for me. The solutions that were tried:         Is there any suggestion for another solution? Thanks  The output of ls -l /etc/mysql is:   drwxr-xr-x 2 root root 4096 Sep 22 17:29 conf.d -rw-r--r-- 1 root root  839 Sep 19 13:52 my.cnf.bak -rw-r--r-- 1 root root  839 Jan 21  2017 my.cnf.fallback -rw-r--r-- 1 root root  839 Sep 19 13:51 mysql.cnf


Does from June to November include full November?

how many months is it when somebody says:     Expats should take note that the hurricane season runs from June to   November, and extreme weather can be a safety issue.   Does it mean that the season runs for 6 or 5 months?  E.g. does it mean that the Hurricane season ends in November or after november - meaning it ends in December?  If I said:     Expats should take note that the hurricane season last from June until   November, and extreme weather can be a safety issue.   Does it now mean that it lats only 5 months? That starting November the season is over?  Thank you for explaining!


Why aren't conventional mercury thermometers allowed onboard?

Why do airlines prohibit carrying conventional mercury thermometers onboard? What potential this small device has to prohibit it?  PS: I prefer conventional thermometers in my personal first aid kit over electric ones because they do not need batteries and they are accurate.


I have a table with 3 columns Item, City and VisitNumber.  In this table there are a lot of records and I need to select top 20 items of each city (according to their visit numbers).  For example if there are 100 items in Washington and 250 items in New York and 500 items in Los Angeles, I need to select 60 most-visited rows for each city (20 for Washington, 20 for New York, 20 for Los Angeles)  How is it possible in TSQL?


Electricity flows from a point of higher level of potential toward a point of lower potential. Liquids flow from a point of higher level toward a point of lower level. I want to know, in the same manner, how do we explain the flow of photons in a beam of light from its source of origin, say, from a candle or from the sun?


What's the difference between find . -name *gz and find . -name "*gz" I sometimes get the same result, other times I don't


How should we deal with questions that fit on more than one Stack Exchange site?

First, this is about beta sites that might not even exist later, but imagine they will for the sake of this question. Taking the latest 10 questions on , I see 3 questions related to Mac OS X:    From my point of view, all 3 could also fit on , the 1st one could also be on SO, the 2nd and 3rd could also be on SU. How we will deal with this type of situation? When should we close a question as "Belongs on [...]"? I already see identical questions asked on 2 or 3 different sites (by the same or different users). Is there anything planned to link these questions or something like that? I mean something else than the already existing "Linked" feature. Something to include answers from site X in site Y or something like this.


I've noticed that apps (such as Google Contacts Sync) that have been disabled using the stock Android (KitKat) app manager still show up as running when using process observer tools.  This is true even after the device has been rebooted.  Why are disabled apps still running?  Is there an effective (and safe) way to actually disable them?  Solutions requiring root privileges are acceptable.   (Note that for the specific example above, you can tell Android not to sync your contacts, but it still runs the Google Contacts Sync process.  But let's not dwell on that example... it's just an example.)


How can I help combat be more diverse? I'm a player, but I'm open to suggesting things to my DM.  We are a party of 5th-level PCs. What we run into is the classic tactical situation every time: the barbarian and cleric tank, and the ranger (me) and wizard sit back and plink away or get in melee and are, well, making death saves. Another thing that happens is the wizard spell-shaping and just fireballing everything, unless he's in melee combat and trying to just kite and run.  Do I just try and get the DM to throw in more opposing mages and such? I wanna use my ranger kit but still have threats/challenges.  Another way to phrase my problem would be: how to engage more classes in combat?


Find all real solutions to the equation $4x^2 - 40[x] + 51 = 0$, where $[x]$ is the greatest integer less than or equal to $x$.

I got this problem from an exercise in the Greatest Integer Function ,  Find all real solutions to the equation $4x^2 - 40[x] + 51 = 0$, where $[x]$ is the greatest integer function of $x$.   I am thinking that the solution of it will be pretty straightforward (note that I still do not know an actual solution of this) , since i can see that the LHS (Left - Hand Side) is congruent to 3 (mod 4) , whereas the RHS (Right - Hand Side) is congruent to 0 (mod 4) . Since that is not possible , I conclude there are no solutions .  Am i doing some errors or am i missing something ? Or is my answer and my proof correct ?


Calculating area under normal curve to the right of an extremely high z-score

This might be a little unusual, but please bear with me. I'm working on a theoretical exercise in chromatography (chemistry), a method that is used to separate different molecules. It is assumed that after performing the chromatography procedure, two different molecules separate from each other along a one-dimensional "tube" in zones that have Gaussian (normally distributed) shapes, with the y-axis representing the concentrations of the molecules along a one-dimensional space. The maxima of the peaks that represent the two molecules are separated from each other by a large number of standard deviations (10 in the following example):     I want to calculate the theoretical amount (cumulative probability) of molecule A in the space that corresponds to the maximum of molecule B's peak. Thus, I am trying to calculate the cumulative density of a standardized normal distribution to the right of an extremely high (>10) z-score. I have tried using R (and Matlab) to calculate this:  1-pnorm(x)   where x is the large z-score. I can increase x=8, which returns the cumulative density of 6.661338e-16. Anything above x=8 that returns 0. I know that it is probably related to memory limitations and rounding off. My question, is there a way (configuration of R or Matlab, specialized software, an existing table) that will allow me to calculate the cumulative density of a standardized normal distribution to the right of z-scores approaching 40, without rounding the answer to 0?


I've been playing Terraria for exactly one week now.  I've beaten: Eye of Cthulhu, Eater of Worlds, King Slime, and Skeletron. I use a full set of , , , and an . I use the , , , , and .    I need help on killing the .  I've tried building a hell bridge but every time he spawns backwards, so I have to fly over lava which usually kills me. I play on Xbox 360.


Generalizing the case $p=2$ we would like to know if the statement below is true.  Let $p$ the smallest prime dividing the order of $G$. If $H$ is a subgroup of $G$ with index $p$ then $H$ is normal.


Probability : Venn diagrams; independent

Are both the Venn diagram's (i and ii) showing dependent properties (showing that A and B are dependent on one another), I am told that the quartered one is independent (Venn diagram i), however I do not see any difference between the 2 diagram's. Surely P(A|B) (probability of B given A), will come out to be the same in both diagrams. This is because we are constrained to A and AB (highlighted red in Venn diagrams) as we know the outcome will be either AA or AB. Further, the ratio of N(AB) to N(A) will give us our probability P(A|B), which can be seen to lie in both diagrams to be in the region A and AB.  I know that if P(A|B) = P(B) , we have independent events, however how can we deduce if the Venn diagrams are showing independent events or not. Thanks


What can I expect from a Skype interview for PhD admissions?

I contacted a lecturer from my alma mater. He replied me a few days later that he had funding, explained me his project and application process and even attached a detailed research proposal. He asked me to skype with him.  In such case, please advise me what kinds of questions during interview can be asked.


Both these joins will give me the same results:  SELECT * FROM table JOIN otherTable ON table.ID = otherTable.FK   vs  SELECT * FROM table INNER JOIN otherTable ON table.ID = otherTable.FK   Is there any difference between the statements in performance or otherwise?   Does it differ between different SQL implementations?


I am using the full pager in views module. I am displaying 40 items per page. The full pager display links like this  1 2 3 4 5 next last   I want to change it to this  1-40 41-80 81-120 next   How will I do this? Any idea about this?


Which one is correct? "has been taken already" or "has already been taken"

I'm creating a registration form. I want to display a message if a particular username already exists.  So which sentence is correct?     This username has already been taken by another user. Please pick   another username.   or     This username has been taken already by another user. Please pick   another username.


It's she who had to leave her family. It's hers who had to leave her family.   What's difference in between? Are they grammatically correct? I'm not sure about the use possesive pronouns in the second sentence.


I am using ubuntu 13.10 on evaluation board and my internet is not working. Also i need to install softwares and apt-get install is also not working.  Terminal says :  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?  source :


Is there a program for LaTeX code akin to  that "standardizes" or "canonically" formats (automatically indents, spaces, etc.) LaTeX code?  AucTex formats code, but it doesn't appear to create a unique output for syntactically equivalent input.  thanks


Data types of dynamic allocation pointer and pointer variable

Can anyone clearly explain (with examples) why do we have to change the data type of a dynamic allocation pointer from the default void type into the same data type of its corresponding pointer variable?   ex:  int *ptr = (int *)malloc(sizeof(int));