Direct Airside Transit Visa (DATV) for South African

I will be travelling from Switzerland (Geneva) via the UK (Heathrow) to South Africa with British Airways on January 7 2017.  I will be landing and departing from Terminal 5 at Heathrow airport.  I have a valid Swiss living and working permit. My husband is an EU citizen (Portugal). I have a South African passport. My air ticket shows South Africa as my final destination.  On the 29 January 2017, I will fly back to Switzerland via UK (Heathrow) using Terminal 5 for landing and departing once again. I will use my Swiss permit to enter Switzerland.   Do I need Direct Airside Transit visa (DATV)? Will I need to go through immigration/border control at Heathrow? Does landing with British Airways at Heathrow mean I'll stay on the airside and only need to go through security with hand luggage?


Restricting an input box to only numbers 0-9

How can one restrict an inputbox to just use numbers only.  So if a user were to type in anything from a-z, it will not work in the inputbox.  To some this may seem easy but to me, it sounds like rocket science.  no jQuery please.  <!DOCTYPE html>  <html>  <head>  </head>  <body>  <input type="text" id="numbersonly" />  </body>  </html>


Does Destruction Skill Increase Destruction Damage?

This seems like no brainer. Fortify smithing, increase smithing skills, that increase improvements. The same goes for fortify alchemy. Basically fortify x, increase x skills, and increase x effectiveness. Now I know that fortify destruction doesn't increase destruction spell damage. Does it increase destruction skills? And does increasing destruction skills increase destruction spell damage (without perks?) If not, is there a mod that make this intuitive. Otherwise, playing as mage will be difficult. I can oneshot my enemies with my arrows, and one hand weapon, and 2 hand weapons, but it takes too long to kill someone with flame. Any mod that "fix" this? Balanced magic. Does it do that?  I am a level 282 and I uses restoration glitch to make super-powered character. I just want to use magic somehow after maxing out skills with one hand and 2 hand and archer.


Whenever the Doppler effect is mentioned, it's typically in the context of sound waves or electromagnetic radiation. On the cosmological scale, red-shifting is also important because of the enormous speed of receding galaxies, thanks to the expansion of the universe.   Yet, red-shift is always discussed as the red-shifting of electromagnetic waves. Can gravitational waves be red-shifted? If so, could observations of them be used like red-shifted electromagnetic waves from distant sources are; that is, to figure out how fast an object is receding?


How can I stop sending my hostname via DHCP?

Ubuntu sends my computer's configured hostname to any DHCP server it tries to use. How do I stop it from sending a hostname?


How to make a variable from a subshell available in the parent shell

I've written a quick-and-dirty script to time some reports from a web service:  BASE_URL='http://example.com/json/webservice/' FIRST=1 FINAL=10000  for report_code in $(seq 1 $FINAL); do   (time -p response=$(curl --write-out %{http_code} --silent -O ${BASE_URL}/${report_code}) ) 2> ${report_code}.time    echo $response  # <------- this is out of scope!  How do I fix that?   if [[ $response = '404' ]]; then     echo "Deleting report # ${report_code}!"     rm ${report_code}   else     echo "${report_code} seems to be good!"   fi done   I need to wrap the time command in a subshell so I can redirect its output, but that makes the value of $response unavailable to the parent shell.  How do I get around this problem?


Equivalent definitions of Boolean Algebras

Assume that my definition of a Boolean algebras is the following one: I have a set $B$ with two binary operations $\vee$ and $\wedge$ which both satisfy the commutative, associative and distributive laws. Both the operations have an identity element ($0$ and $1$) and for each element $b\in B$ there exists a complement (i.e. an element $b{'}\in B$ such that $b\vee b{'}=1$ and $b\wedge b{'}=0$).  Now I found the following definition of Boolean Algebra. Let $B$ be a set on which we define a binary operation $\cap$ and an unary operation ${'}$. We also require that those operations satisfy the following rules:  1) $x\cap y=y\cap x$ for each $x,\, y\in B$  2) $(x\cap y)\cap z=x\cap (y\cap z)$  3) $x\cap y{'}=z\cap z{'}$ iff $x\cap y=x$  Are those equivalent definitions? I was trying to work the thing out in the following way.  a) First we may put $0:=z\cap z'$ by property 3).  b) We may define $x\cup y:=(x{'}\cap y{'}){'}$ and put $0{'}=:1$ and we may prove the commutative law for $\cup$.  Anyway I cannot prove the associativity of $\cup$ or either the distributivity or even the fact the $0$ and $1$ are identity elements.


Irrespective of any "singular nouns" vs "plural nouns"

Can anyone please tell me whether I should use singular or plural nouns after irrespective of any in the following context? I have searched the Internet and found that both singular and plural nouns are used though plural nouns were more in number.   Here is the context:  Terrorism is a menace. We must come together to end it. Irrespective of any compromise(s) the world should take action against those fringe elements.  I have asked this because I come from a non-native english speaking country where it is said by teachers "any" is always singular. And one more questions if I always use "any" with plural nouns with contexts like the one I cited above, will that be always grammatical? I know "any" can be used with singular nouns in a sentence like "Any man can do it." My question is different. I want to know if "any" with plural nouns is always grammatical in contexts like the one In my example. Could anyone who has good knowledge in the language please answer this?


I'm using the Auction module now. The Auction works fine, but there are no emails sent to users when they place a bid. When you insert your bid      Unable to send e-mail. Contact the site administrator if the problem persists.   When I create an account, then i get a email with instructions. Only by the Auction module the mails will not sent. I saw one topic:    But there was no good answer for me. I used this module


Can an Aasimar grow their wings in an Antimagic Field?

One of my players wants to play a  (VGtM, p. 105) but wondered if he'd be able to use his racial ability, Radiant Soul, in an antimagic field.  Would an antimagic field block the protector aasimar's Radiant Soul feature, or would he be unaffected?


What is the difference between auto hosted, provider hosted and sharepoint hosted app?

What actually happens when we create apps, and where are three types of apps hosted these apps hosted?


For example, I wanna short the environment \begin{equation} \begin{split} ... \end{split} \end{equation}  to \begin{eqt} ... \end{eqt} . But it report errors when I add the following preamble \newenvironment{eqt}{\begin{equation}\begin{split}}     {\end{split}\end{equation}}  Can anyone show me the correct code or point out the err?


I gave a questionary to 190 people to answer some questions. I want to check the correlation between the annual salary and how satisfy people are. So my two variables are annual salary and satisfaction. The data from annual salary are grouped into 6 categories: those without annual salary 0, 1-10,000 (10), 10,000-25,000 (25), 25,000-50,000 (50) , 50,000-75,000 (75), 75,000-100,000 (100) and above 100 (200). The satisfaction takes values form 0 to 10 (10 is very satisfied). My advisor suggested to do a regression but I found the $R^2$ = 0.01. I also tried to make a scatter plot but the data look strange. Could you please suggest how to find the correlation between these two variables? I attach an example of my excel spreadsheet with the data.


Recently I heard of , a trembling motion of the electrons in atoms that arises from Dirac's equation.  I know that, according to Bohr's model, light is emitted when the electron "jumps" between different energy states. With this in mind, my question is: is light emitted in this trembling motion of the electron?


How to change mouse speed permanently in Ubuntu 16.04LTS?

I can use the command xset m 1 in terminal to adjust my mouse speed,   but I have to re type it every time I restart my computer.  Is there a way to change it persistently?


How can I prove that the cadinality of a set minus a finite number of elements of it is still the same as the original set?

A is a finite subset of S, which is an infinite set.  How can I prove that $|S| = |S \setminus A|$?  I just finished proving that $|T \cup S|$ where $T$ is infinite and $S$ is countable is $|T|$. They seem related but I can't solve it because I am confused by the concepts.  Can someone help me?


So I have to Google play store accounts. One has money on it one doesn't. Whenever I try to make an in-app purchase, it defaults and tries to make me pay with the account without any money. I have an ineffective PayPal account on the account with no money if that's the problem. Please help!


I searched for the phrase "Cross Post" here in meta stack overflow. Still unclear on how it applies to my current circumstances.   I have a problem. I went to some length to document the entire procedure (with screen caps at every step) and posted a question about it  three days ago. Still no answer. Will my reputation be hurt if I post it in the regular stack overflow ?   Perhaps a better question is: Where are the experts who know what to do in this case ?   For the moment, I want to know if it's okay to post a shorter version of the question to other Stack Exchange sites, and link to the SuperUser question to provide the details.


Why doesn't water turn into liquid after boiling it?

Water's boiling point is 100 degree Celsius. So water shouldn't remain vapour under 100 degree Celsius. But water remains vapour even in the environment temperature. Why does that happen?


What happens to tailed beast if jinchuriki dies?

As the title says, what happens to the tailed beast when jinchuriki dies by any reasons whether of old age or killed by enemies. Does it come out of jinchuriki alive or get reborn? What had happened to jinchuriki of three tails that it was the only bijuu that didn't have a jinchuriki in Naruto shippuden.


Can a curve object modifier created geometry be used as boolean factor

This question is related to .  Let me use an exemple to illustrate what I mean.  We've created a text object (made of curves). It can't be used in a boolean modifier as it won't appear in the list of usable objects in the modifier because it's a curve object.  But if we add a remesh modifier on the text, geometry is created from the shape.  The object could be used as boolean if we convert it to mesh. The remesh can't be applied on curve object.  My question is : Can we dynamicaly use the remesh modifier created geometry as real geometry or make the boolean modifier consider the text modified object as a real mesh?  The idea behind this is to be able to change the text (or any curve 3D shape) without having to make it a real mesh.  (don't hesitate to edit my poor english to make it understandable :) )


I just started canning hot peppers last year. This year I am canning salsa. I boil the jars, lids, and rings just before I seal the jar. I make 3 pints at at time. I combine all my ingredients and add 1 cup of 5 percent vinegar with 3 tablespoons of lemon juice, and bring to a hard boil for about 10 minutes. Then I turn it down to a mild boil and hot pack into the jars that I took out of boiling water.  I fill the jar, place lid on top and hand tighten the ring. Is this good?


Javascript call function with “this” on event

How to call function with "this" from event? If remove "this", it will work.    function Parent() {  this.child = function()  {   alert("called child");  };     $("#btn1").click  (   function()    {    this.child(); // doesn't work   }  ); } var objp = new Parent(); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <button type="submit" id="btn1">Submit</button>


Is there a local ring but not Noetherian?

I was looking for an example of a non-Noetherian local commutative ring with $1$.    I would appreciate if anyone can point to a reference.


Is the Cartesian product of two uncountable sets uncountable?

Is Cartesian product of two uncountable sets uncountable? Suppose we have a set of real numbers $R$, Can't it be shown that $R$ is uncountable by Cantor's diagonalization method, so it follows that the Cartesian product of two sets of real numbers in uncountable?


What is the term for the grandson of my aunt?

How should I call the grandson of my aunt? Should I call him cousin or something else? What is the generally accepted term?


Do I need to pay a fee or a tax at the airport when I leave Malaysia to go to Australia?

Do I need to pay a fee or tax at the airport when leaving Malaysia to Australia?


Casting nines and elevens in other bases (radix) and doing check sums for binary

I was showing my son how to cast out nines the other day.  He noted that based on the way it worked, we should be able to cast out 7s when we work with octal.  We tested this in several bases and it seems to work.  I am assuming the chance for false positives increases with the decrease in radix (but I don't actually understand the theory well enough to be sure).  But then we got to binary where everything seemed to be a false positive (my son got a huge kick out of the false positive when I showed it to him).  First question:  Are there any articles on check sums (like casting out nines) for other radix and their false positives.  And other methods that avoid the false positives?    Second question:  Is there any check sum for binary that doesn't take longer than the actual calculation (right now we convert to another base and check it, but that takes longer than actually doing the operation)?  Third question: Also, I have seen one book that talked about casting 11s (alternate subtracting and adding the number up starting from the right, and adding 11 if it is negative).  Has anyone seen a detailed explanation of it?  We could not make it work in other bases--any suggestions?


What happens to unresolved flags raised by a recently deleted user?

Let's say a user who we'll call "Jim" has raised X number of flags on various posts around a particular Stack Exchange. Those flags haven't been resolved yet by a moderator, i.e., they haven't been marked as helpful / declined / disputed.  Jim then asks for his account to be deleted, and it's deleted. What happens to the unresolved flags that Jim has raised? Are they automatically removed from the moderators' flag review queue before they've been marked as resolved, or do they remain in the queue until they've been resolved (like normally)?


Why does fontspec interact with the footnote marks of the \thanks command?

I have discovered a behavior that I cannot explain. When compiling the MWE  \listfiles \documentclass{article} %\usepackage{fontspec} \title{foo\thanks{bar}} \author{baz\thanks{qux}} \setlength{\textheight}{2.25in} % just for the example  \begin{document} \maketitle \end{document}   with XeLaTeX or LuaLaTeX, the result is as expected:    Corresponding file list:   *File List*  article.cls    2014/09/29 v1.4h Standard LaTeX document class   size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)  ***********   However, uncommenting \usepackage{fontspec} and compiling with either XeLaTeX or LuaLaTeX results in    Corresponding file list:   *File List*  article.cls    2014/09/29 v1.4h Standard LaTeX document class   size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option) fontspec.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX    expl3.sty    2015/02/13 v5524 L3 programming layer (loader)  expl3-code.tex    2015/02/13 v5524 L3 programming layer      etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB) l3unicode-data.def    2015/02/12 v5523 L3 Unicode data l3xdvipdfmx.def       xparse.sty    2014/11/25 v5471 L3 Experimental document command parser fontspec-patches.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTe X fontspec-xetex.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX  fontenc.sty   eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings   eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many oth er characters in Unicode lower plane  eu1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern graphicx.sty    2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)   keyval.sty    2014/10/28 v1.15 key=value parser (DPC) graphics.sty    2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)     trig.sty    1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live    xetex.def    2014/07/25 v4.03 LaTeX color/graphics driver for XeTeX (RRM/JK)  fontspec.cfg    t3cmr.fd    2001/12/31 TIPA font definitions  ***********   As you can see, only one distinct footnote mark is used when fontspec is loaded. This happens even if I load a system font using \setmainfont and/or friends. I use vanilla TeX Live 2014 (updated today) on Windows 7.  Is there a reason for this behavior or a problem with my setup? Or is this a bug that should be reported?


Can I travel from LA to NY with my foreign Passport? (it does not have a visa)

So I came to the US with a visa but overstayed so I became (illegal?). Im currently in the process of becoming a resident (my mom is a citizen) but am still waiting on my papers. I am traveling to NY in a week but I want to make sure that I can travel with my passport from a different country.  My old passport (which expired) had my visa but since I renewed my passport it doesn't have a visa. Can I travel with my new passport even though it has no visa or anything besides my name and picture?   Am I taking a BIG risk here? Btw im 19.


Show that $k[x,y,z]/(xz-y^2)$ is not a UFD.

I am trying to show that $k[x,y,z]/(xz-y^2)\not\cong k[x,y]$.    The latter is a UFD, so I am trying to show the former is not. Clearly $x$ is not prime, since $x\mid xz$ which implies $x\mid y^2$, but $x\mid y$.      So if I can show that $x$ is irreducible then $k[x,y,z]/(xz-y^2)$ is a not a UFD, because irreducible implies prime in UFDs.    Attempt: Assume $x$ is reduced into $ab$ in $k[x,y,z]/(xz-y^2)$, then we know there exists $c\in k[x,y,z]$ such that $x=ab+c(xz-y^2)$ in $k[x,y,z]$, or more usefully as $x-ab=(xz-y^2)c$. Someone suggested that I write $a,b$ such they are degree at most 1 in $y$, that is, replace every $y^n$ using $xz$. This means the LHS is degree at most 2 in $y$ and the RHS is degree at least two in $y$ in  $x-ab=(xz-y^2)c$. I am not sure where to go from here just by knowing that $c$ has no $y$ terms though. Ultimately I want to show that this forces $x=ab$ in $k[x,y,z]$ which, since $x$ is irreducible there, shows that either $a,b$ is a unit, which means $x$ is irreducible in $k[x,y,z]/(xz-y^2)$.


I recently added a reverse proxy to my website to make websockets connections over SSL, however, I am experiencing a 502 Bad Gateway issue. Whenever I open the website, css files, js and images are not loaded, and when opening the Google console, there are 502 bad Gateway errors, so this seems to be a problem in my reverse proxy configuration, how can I resolve this? Console:  net::ERR_ABORTED 502 (Bad Gateway): it appears because the page can't open js or css files Failed to load resource: the server responded with a status of 502 (Bad Gateway): it appears because the website doesn't shows the images, it is a loop in the Google Console  Nginx Configuration: upstream websocketserver {         server localhost:8080; }   server {     root /var/www/example.com/html;     index index.html index.php index.htm index.nginx-debian.html;      server_name example.com;       location ~ \.php$ {                 include snippets/fastcgi-php.conf;                 fastcgi_pass unix:/run/php/php7.4-fpm.sock;     }      listen 443;     ssl on;     ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;     ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot      access_log /var/log/wss-access-ssl.log;     error_log /var/log/wss-error-ssl.log;     location / {                 proxy_pass http://websocketserver;                 proxy_http_version 1.1;                 proxy_set_header Upgrade $http_upgrade;                 proxy_set_header Connection "upgrade";                 proxy_set_header Host $host;                  proxy_set_header X-Real-IP $remote_addr;                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;                 proxy_set_header X-Forwarded-Proto https;                 proxy_read_timeout 86400; # neccessary to avoid websocket timeout disconnect                 proxy_redirect off;         }  }  server {     if ($host = www.example.com) {         return 301 https://$host$request_uri;     } # managed by Certbot       if ($host = example.com) {         return 301 https://$host$request_uri;     } # managed by Certbot          listen 80;         listen [::]:80;          server_name example.com www.example.com;    return 404;  # managed by Certbot    }  What can I do to solve it? Is something wrong in my Nginx Configuration? Nginx Logs  2020/09/25 15:57:44 [error] 86297#86297: *16 connect() failed (111: Connection refused) while connecting to upstream, client: 131.118.124.30, server: mysite.com, request: "GET /duck-image.jpg HTTP/1.1", upstream: "http://127.0.0.1:8080/duck-image.jpg", host: "mysite.com", referrer: "https://example.com/index.php". What can I do? Do I need to change the upstream directive? I mean change localhost:8080 to the domain as mysite:8080? Or the ip, as an example 9.9.9.9:8080?


Does using multiple filters reduce the image quality more than just one filter?

Context  With regards to filters, I notice that Neutral Density Filters can go from 1-10 stops and sometimes even more. For larger square/rectangle filters, some of the holders can hold three while others others can hold one, for wider angle lens.  I will get a Neutral Density Filter soon but I'm curious if some people, rather than buy a Variable Neutral Density, buy all Neutral Density Filters from 1-10 stops and select the one they want to use, or just stack them to get the correct value they desire.  Question  Assuming I had to put on a filter and don't get vignetting for it, if I put multiple filters on a camera, does that degrade image quality a lot more than just one filter? Is it effected by the filter type (UV, Neutral Density or Circular Polarizer) mounted? Are there combinations of filters that degrade image quality a lot more than others (ignoring cheap ones of course)? Is image quality effected by the filter mount type (e.g. screw-in v square/rectangle ones) or is it simply down to the price?   Reference


minecraft button 1 takes me to menu every time

Every time I hold button 1 to break a block it sends me to the menu screen.  I can't figure it out so its impossible to play classic.  I've tried re installing Java 7 but that didn't change a thing, and changing game quality didn't do anything either.  I want to play minecraft but can't unless this is fixed.


I cant see any pokemons in the nearby box

I have seen pictures of people having pokemon everywhere and having their nearby box full of pokemon and footprints but I have never had a single one no matter how far I walk.  I walked around 3,5 kilometers yesterday without getting anything in my nearby box and I never see the grass that sometimes should fly up from the ground.  I think that this is a bug or something because the ring that indicates when a new pokemon is added to the list pops up for me but for some reason I cant see the pokemon and the footprints so I can like only find pokemons when I use an incense.  I play on a samsung galaxy s6


Unable to Open Software center nor Update Manager on 12.04

When I try to install software I get this:  E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   I keep being told to enter apt-get -f install but when I do I get this message:  owner@owner-1005HA:~$ apt-get -f install E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   So, I need help with what it means and how to fix this.


Can anybody can tell Me what is wrong with this process? I don't believe this is true but I couldn't find any mistakes in the flow of equations.  LET  $A=B$  THEN  :     Equation 1.  $A=B$  Multiply both sides by “$A$” :                       $A(A)=A(B)$  $A^2 =AB$  Subtract both sides by  “$B^2$“  $A^2-B^2=AB-B^2$  Factor both sides  $(A-B)(A+B) = (B)(A-B)$  Eliminate “$(A-B)$”  $ (A-B)(A+B) = (B)(A-B)$  Equation 2.                                                $A+B = B$  From Equation 1 .  $A=B$  Substitute Equation 2 by 1  $B+B=B$  THEN   $2B=B$      Divide both sides by $B$:   $2=1$


Difference between ! vs !! vs * in /etc/shadow

The second field in the Linux /etc/shadow file represents a password. However, what we have seen is that:   Some of the password fields may have a single exclamation   <account>:!:.....  Some of the password fields may have a double exclamation   <account>:!!:.....  Some of the password fields may have an asterisk sign  <account>:*:.....    By some research on internet and through , I can understand that * means password never established, ! means locked.  Can someone explain what does double exclamation (!!) mean? and how is it different from (!)?


Allow side-by-side comparison of edited question titles

On a question's revision page, you can select between 3 diff modes:        This generally works fine for edits to the question body, but does not work for the question title. E.g. in the side-by-side markdown mode, the title comparison appeared similar to inline mode:        Moreover, if only the title was changed, the selectable diff-mode buttons are not even visible. E.g. (no buttons on the top):        I found  for the old question: , but I don't agree with it. I don't think that such buttons only take up space, they can be really useful.  So, my request is to have title changes display properly in side-by-side markdown diff-mode, and to have the side-by-side option be available if only the question's title has been changed.


I know the definite article is frequently used before word Internet in most of cases like     Free use of the Internet.   However, I found when it is used with other nouns, lets just say Wifi, it will drop off the definite article.     Free use of Internet and Wifi


How to resize root partition (/) without LVM

I am using Ubuntu 19.04 right now, and I have a / and /home partition created on my laptop. I didn't set up LVM during installation. Now my / partition is running low on space, and I'd like to transfer some of space from /home to it.   Both have Ext4 format, and / (/dev/nvme0n1p10) is located right before /home(/dev/nvme0n1p11). I have a Windows 10 installed too, /dev/nvme0n1p3 for C and /dev/nvme0n1p4 for D I also have a /boot partition (/dev/nvme0n1p8) and a swap partition (/dev/nvme0n1p9)   So how can I do that? Many thanks.


Username turned into hash, avatar changing random

I've got an issue with my username, only on the Software Quality Assurance and Testing website. I believe that is the reason my avatar is not working, eighter.  On every exchange, my username is randy. Until recently my username was working fine on the Software Quality Assurance & Testing site as well. Today I've visited the site again because I clicked my rep change, and noticed my username was something like a hash value.  My reputation is working fine, I just wonder why this happened and if there is a way I can fix this.    SQA&T:   Stack overflow:


Follow up question to "How can I install Intel Dual Band Wireless-AC 3165 drivers?"

This is a followup question to .  I followed the steps written in the answer, but still the wifi won't work.   I had the two files iwlwifi-7265D-13.ucode and iwlwifi-7265-13.ucode, so I renamed them as indicated, but after the reboot the wifi doesn't work.  This is the output of dmesg | grep iwl:  [   24.302073] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7265D-26.ucode failed with error -2 [   24.333982] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7265D-25.ucode failed with error -2 [   24.333992] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7265D-24.ucode failed with error -2 [   24.333996] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7265D-23.ucode failed with error -2 [   24.497409] iwlwifi 0000:03:00.0: loaded firmware version 22.391740.0 op_mode iwlmvm [   24.508114] iwlwifi 0000:03:00.0: Detected Intel(R) Dual Band Wireless AC 3165, REV=0x210 [   24.510423] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled [   24.510817] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled [   24.577697] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs' [   25.075855] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0   I am using ubuntu 16.04 LTS  EDIT as required this is the output of rfkill list all:  0: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no 1: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: yes 2: ideapad_bluetooth: Bluetooth     Soft blocked: yes     Hard blocked: yes 3: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no


Simple, cheap "Nano-UPS" for 5V/<2A/<10W load (e.g. IP camera), based on 4xAAA batteries (or similar)

There are many inexpensive IP cameras available these days, most of which run on 5VDC supplied via a USB2 cable. Problem: a power interruption of even a tenth of a second is plenty enough to force the device to restart when power returns, and risks loss of data both through a discontinuity of recording and possible corruption of a local microSD card being used as a recording medium. Suppose we want to enable such a cam (or a similar small, low-power device) to shrug off a transient power interruption of from 0.1 to 10 seconds at least, and optionally up to 100 or 1,000 seconds, through the use of a minimalist battery backup, or "nano-UPS", which uses a quartet of ordinary AAA cells wired in series as its power reserve. Assume that the device will continue operating as long as it receives a voltage of between 4 and 6 volts. Suppose a power-loss failover starts with a fresh set of AAA batteries producing 1.5 V each, and continues operating until the four cells have each drained down to close to 1.0 V. At a steady combined load of between 2 and 10 watts (0.5 to 2.5 watts per cell), that should take several hours — much more than the few seconds (or less) that will be needed in most instances. Suppose we wish to construct a bare-bones connection that simply keeps the 4xAAA batteries ready to supply the necessary current instantly (for practical purposes) if and when the primary voltage supply drops below a minimum level (say, 4.2 V). For simplicity, there's no need to accommodate trickle-charging the batteries from the primary supply; let's just assume that the batteries will be replaced manually when they're run down. Let's also assume that there's no need for a DC transformer to regulate the voltage supplied by the batteries; we'll just count on them being in the appropriate range. The objective here is to be simple, reliable, and compact, so as to be easy to install behind an IP cam, and easy to protect from environmental threats (mostly moisture) when placed outdoors. What are the minimal components needed to implement such a failover circuit as this, and how should they be assembled with a minimum of fuss (preferably without soldering)? [For brownie points, please leave a comment if you're aware of an off-the-shelf product already available that provides this functionality, either as described here, or by a different method of similarly low cost and complexity (e.g. small LiPo). Thanks.]


How do I assign an SELinux label to a symlink with semanage so it persists after a relabel?

My apache DocumentRoot /var/www is a symbolic link to another path. The target has the appropriate file context label (httpd_sys_content_t) so that apache can read it with SELinux enabled. However, the symbolic link itself is labeled with var_t.  [root@localhost var]# ls -lZ lrwxrwxrwx. root root unconfined_u:object_r:var_t:s0 www -> /srv/www   I need to relabel the symbolic link with httpd_sys_content_t.  Running chcon with the -h option initially seems to work:  [root@localhost var]# chcon -h -t httpd_sys_content_t /var/www [root@localhost var]# ls -lZ lrwxrwxrwx. root root unconfined_u:object_r:httpd_sys_content_t:s0 www -> /srv/www   However this does not survive a relabel:  [root@localhost var]# restorecon -Rv . restorecon reset /var/www context system_u:object_r:httpd_sys_content_t:s0->syst em_u:object_r:var_t:s0   Using semanage does not relabel the link itself; just the target:  [root@localhost var]# semanage fcontext -a -t httpd_sys_content_t /var/www [root@localhost var]# restorecon -Rv . [root@localhost var]# ls -lZ lrwxrwxrwx. root root unconfined_u:object_r:var_t:s0 www -> /srv/www   semanage does not have the -h option.  How can I get semanage to set the label of the link itself so it remains as httpd_sys_content_t after a relabel?


How to redirect a newly registered user to a custom URL after signing up?

By default after a new user signs up, a redirect to the home page happens.  But in such case I want to redirect such user to another page like node/35.  In this node/35 I then want to display some content.


Integrating $\int_0^\infty \frac{\ln t}{t^2+a^2}\,dt$ with residue theorem.

I want to calculate $$\int_0^\infty \frac{\ln t}{t^2+a^2}\,dt$$ using the Residue Theorem. The contour I want to use is almost the upper half circle of radius $R$, but going around $0$ following a half-circle of radius $\epsilon$, and using the branch cut at $7\pi/8$. The picture is below.


Replace "This PC" with actual - full - filesystem path

When accessing my libraries via This PC, the This PC keeps staying in the address bar. This is very inconvenient to me. I need to know where I am. I realize it is under C:\Users\Name\, but I need the address to just be there (for easy copy-pasting of addresses, as well as being coordinated as to where I actually am.). I have tried folder options to no avail.  So my question is: how do I get full paths at ALL time?


VSE Audio and Video Sync is off by 2 Frames Every Time

I'm using Blender 2.77.  When I import footage into the VSE with the correct frame rate (23.98fps) every single audio strip is 2 frames longer than the corresponding video clip.  I think the problem is that my recordings are actually 23.97fps.  The issue with that is that when using the custom fps setting there are not enough decimal places to input a value that will result in a frame rate of 23.97 (i.e. 1.0015).  I'm not positive this will fix it but I think it should.  Does anyone else have any ideas or experience with this issue?


I kind of would expect tables to be able to "fill to margin", instead of choosing a number and iteratively rebuilding the document until it is the right size.  For example, I want this 2-column table to have the first column as wide as it needs to be, and the 2nd column to "fill to margin":  \begin{tabular}{ l p{5cm} }   Of course, that's not gonna do it (2nd column will be 5cm), is there anyway to "fill to margin"?


I'm trying to use a select statement to get all of the columns from a certain MySQL table except one. Is there a simple way to do this?  EDIT: There are 53 columns in this table (NOT MY DESIGN)


double-click does not open the default program

I installed Ubuntu 12.04, with texlive-full and texworks. When I double-click a .tex file in Nautilus, it pops up a  Do you want to run "xxxxxxxx.tex", or display it contents?  "xxxxxxxx.tex" is an executable text file.  Run in Terminal     Display       Cancel        Run   If I choose Display, it opens texworks. How can I make it open without seeing the above conversation window?  By the way, is .tex file indeed an executable file?    ADDED Just for the case, my ~/.local/share/applications/mimeapps.list file looks like the following:  [Default Applications] text/html=google-chrome.desktop x-scheme-handler/http=google-chrome.desktop x-scheme-handler/https=google-chrome.desktop x-scheme-handler/about=google-chrome.desktop x-scheme-handler/unknown=google-chrome.desktop text/x-tex=texworks.desktop x-scheme-handler/mailto=google-chrome.desktop  [Added Associations] text/x-tex=texworks.desktop; text/x-bibtex=jabref.desktop;gedit.desktop;   I observe texworks are both up and down. Should I remove one?    ADDED  This does not happen with all .tex files. In fact, I am currently using Ubuntu 12.04 under Virtual Box with Windows 7 host. I have my Dropbox account synced with the Windows 7 host, and I access files in Dropbox in Ubuntu through Virtual Box's shared folder functionality. (I didn't install Dropbox client in Ubuntu.)  Files in Dropbox are owned by root with group vboxsf. My personal account is in the group vboxsf.  It seems that I have to uncheck the option for "executable", but I have all my .tex files in the Dropbox shared folder. Would there be any workaround?


In the film The Deathly Hallows Pt. 2, right before The Battle of Hogwarts starts, Draco Apparates to the dungeons to get Goyle and Blaise Zabini.  Since it's impossible to apparate or disapparate within the walls of Hogwarts (aside from Dumbledore, of course) how was Draco able to do so?


Can I uninstall Windows 10 and go back to Windows 7? I am locked out of 10 at the login password screen. Even when I was in there, I could not download pictures from my camera to the laptop. I was crazy for installing it.


Searching a MySQL database for values within radius (lat/long)

I don't have all that much SQL experience and honestly don't have a clue where to go from here, most people that ask a question like this are using MS Server or something, and can use a bunch of parameters/values that I can't. I'm using MySQL.  Here's the code in Java I use to create a random location within X miles.   public static GeoPosition randomLocation(GeoPosition location, double radius) {         Random random = new Random();          // Convert radius from miles to meters         double meters = radius * 1609.34;          // Convert radius from meters to degrees         double radiusInDegrees = meters / 111300f;          double u = random.nextDouble();         double v = random.nextDouble();         double w = radiusInDegrees * Math.sqrt(u);         double t = 2 * Math.PI * v;         double x = w * Math.cos(t);         double y = w * Math.sin(t);          // Adjust the x-coordinate for the shrinking of the east-west distances         double new_x = x / Math.cos(location.latitude());          double foundLongitude = new_x + location.longitude();         double foundLatitude = y + location.latitude();         return new GeoPosition(foundLongitude, foundLatitude);     }   These GeoPositions (Groups of longitude/latitude) are stored in the database. However now I need to figure out how to get all of the rows in the database within a radius of X miles.  When writing this out in Java, the distanceBetween method looked like this:  public static double distanceBetween(GeoPosition a, GeoPosition b) {         double longDif = a.longitude() - b.longitude();          double distance =                  Math.sin(deg2rad(a.latitude()))                 *                 Math.sin(deg2rad(b.latitude()))                 +                 Math.cos(deg2rad(a.latitude()))                 *                 Math.cos(deg2rad(b.latitude()))                 *                 Math.cos(deg2rad(longDif));         distance = Math.acos(distance);         distance = rad2deg(distance);         distance = distance * 60 * 1.1515; // Convert to meters         distance = distance * 0.8684; // Convert to miles.         return distance;     }  private static double rad2deg(double rad) {     return (rad * 180.0 / Math.PI); }  private static double deg2rad(double deg) {     return (deg * Math.PI / 180.0); }   and I just had to loop through a collection to find all of the positions, where distanceBetween was true. However this seems like more work on the client that needs to be done.  Is there a proper way to handle returning all results within X miles of a latitude/longitude from the database? because returning every result from the server is going to become a bandwidth killer really fast.   Question marked as PHP as well, because that's what I'm going to be using to poll the database.


Is there a way to use text-to-speech without a third party program?

I like using my Macintosh to read things, but Ubuntu is really growing on me. I want to be able to have my computer read aloud to me without booting up my Mac.  Is there a way to do this without installing any third party programs?  If not, could you reccomend something as light weight as possible? Some of the answers I found involved running the program at start-up. I'd prefer not to have the program running until I want to use it.


Does $\sum\limits_{i=1}^{\infty}|a_i||x_i| < \infty$ whenever $\sum\limits_{i=1}^{\infty} |x_i| < \infty $ imply $(a_i)$ is bounded?

Written with .        Suppose $(a_i)$ is a sequence in $\Bbb R$ such that $\sum\limits_{i=1}^{ \infty} |a_i||x_i| < \infty$ whenever $\sum\limits_{i=1}^{\infty} |x_i| < \infty$. Then  is $(a_i)$ a bounded sequence?   Look at the end of the question for the right answer.    If the statement '$(a_i)$ is a properly divergent sequence implies that there exists some $k \in \Bbb N$ such that $\sum\limits_{i=1}^{\infty} {1/{a_i}}^k$ is convergent' was true, we could have easily proven $(a_i)$ is bounded by using sub-sequences but since that is dis-proven by $ln(n)$, can we use something around it? Like can all the functions which do not satisfy the 'statement' I mentioned be considered as a special case of functions?    Correct Answer - Yes, $(a_i)$ is bounded.  Source - Tata Institute of Fundamental Research Graduate Studies 2013


I am writing my thesis and came to a problem that I have no idea how to solve it. The problem is explained as following:   My thesis has a TOC and LOF and LOT. As some of the figures are referenced to sources their citation were appeared in the LOF. I used \caption[text in LOF]{text in caption \cite{author:20xx}} and the numbers are disappeared from the LOF. However, in the chapter one of my diss., the first reference is numbered to [14], which is totally not desired.   My question: Is there any way to reset the number of citation from chapter one? I also tried \bibliographystyle{unsrt} in my config file.  regards AM


Off-diagonal elements of the inertia tensor and its eigenvalues

Given a certain rigid object, its inertia tensor $\tilde I$ is given by $$\begin{pmatrix} I_{xx} & I_{xy} & I_{xz}\\ I_{yx}& I_{yy}& I_{yz}\\ I_{zx}& I_{zy}& I_{zz} \end{pmatrix}$$  I understand that the entries in the main diagonal of the inertia tensor are the  around the $x$, $y$ and $z$ axis. However, what is the physical meaning of the off-diagonal entries in the matrix. Additionaly, and more importantly, what is the physical meaning of the eigenvectors of the inertia tensor?


How to replay a League of Legends match?

I have seen some videos (on YouTube) of LoL games where the commentator analyze the match and he's able to move freely through the map.   Are these video made from a streaming live game or are they made by replaying something saved locally on PC?  How to save and replay a match?


How to use Launchctl for schedule application

I try to work with Launchctl and have a question:  How can I set up an application to run in a few minutes using Launchctl? (for example, open the program MyApp.app with arguments "hello" "world" Every 10 minutes)  I know that it can easily be done by creating Launch Agent, I looking for a way to do it using Launchctl directly to programmatically.


Reporting sign-on bonus in case I need to return

Is there a special way to report sign-on bonus (a.k.a. joining bonus)?  Background: I joined a company in 2012 and accepted a sign-on bonus. If I leave the company within one year of joining, then I have to return the joining bonus in entirety as in pre-tax amount. But while receiving, I received only the after-tax amount, about 30% less than pre-tax. In the case I leave within one year, I do not want to lose that 30% money. Needless to say, the W2 contains the aggregate of regular salary and the sign-on bonus.


What happens if I increase the magnitude of the centripetal force?

Suppose that a particle is in uniform circular motion and the magnitude of the centripetal component of the net force increases. Does this increase the tangential speed or decrease the radius of the circular path? One case that comes to mind is moving a ball attached to a string, moving in a circle. In that case, the radius cannot decrease as centripetal force would disappear. But what if the source is the gravitational or electrostatic force?


$$\frac{dy}{dx} = \sin^{-1} (y)$$ The above equation is a form of $\frac{dy}{dx} = f(y)$, so degree should be $1$.  But if I write it as $$y = \sin\left(\frac{dy}{dx}\right)$$ then degree is not defined as it is not a polynomial in $\frac{dy}{dx}$. Please explain?


how to aggregate results in a mysql query

With the following sample data, requestedDate         Status 2020-04-21            APPROVED 2020-04-23            APPROVED 2020-04-27            PENDING 2020-05-21            PENDING 2020-06-01            APPROVED  I have the following query to aggregate count by status,year, month etc select      status,     count(*) status_count,     date_format(requestedDate, '%b') requested_month,     sum(count(*)) over(partition by year(requestedDate), month(requestedDate)) month_count,     sum(count(*)) over() total_count from Reports where requestedDate between current_date - interval 120 day and current_date group by status, year(requestedDate), month(requestedDate), date_format(requestedDate, '%b') ;  Output for the query is as follows, status     status_count requested_month month_count total_count APPROVED     1             Apr             2           4 PENDING      1             Apr             2           4 PENDING      1             May             1           4 APPROVED     1             Jun             1           4  Can i instead get an output that looks like the following which is status,month,count for each status for that month and total count for all records for the period stated, Status     Month  COUNT TOTAL_COUNT APPROVED    APR    2      5 APPROVED    MAY    0      5 APPROVED    JUN    1      5 PENDING     APR    1      5 PENDING     MAY    1      5 PENDING     JUN    0      5  My db is mysql 8.0.17


Where are keyboard shortcuts stored (for backup and sync purposes)?

Where can I access OS X keyboard shortcuts, say for Dropbox sync?


80's cartoon/anime with an alien that looks like a sunny side up egg

I vaguely remember watching this as a child in the mid nineties. It might be possible that this was not an anime, but something non-Japanese.  I remember there were at least two characters in a space ship stranded in space. A regular looking human guy and a robot or cyborg looking woman. I'm pretty sure the woman had a human looking head with hair but the rest of her body was mechanical. The characters both had pale skin, the robot woman had blonde hair.   At some point the robot woman goes outside to fix the space ship by herself. While she's working a creature that looks like a sunny side up egg attacks her (probably the reason I remember this because I was extremely confused as to why an egg was attacking a robot). The egg crawls inside the robot woman and she faints/stops working.  Thinking about this some more I'm starting to recall a few more details. The alien egg creature doesn't outright attack the robot woman. It's sneaky and attaches itself to her head first without her noticing. Kind of absorbing into her skull after that. I have a feeling this means that there's some sort of possession plot.  The next scene I remember is just the regular looking guy standing over the robot woman looking confused. I guess she made it back inside the space ship before she broke down/fainted. He attempts to revive her by attaching wires to her chest.  I'm not sure if this is useful, but here's some added context. I lived in Russia when I saw this. My father loved anything sci-fi and would watch any movies he could get his hands on. My best guess is that I would have watched this in 1995-96. I'm certain that this wasn't a Russian made cartoon.  The original language or country this cartoon would have been from is hard for me to identify for a few reasons. First, most VHS tapes wouldn't have been originals. It was common for people to sell pirated copies converted into a format that local VHS players could play. Second, these tapes rarely had box art or accurate/correctly translated titles. Unfortunately I don't remember what the title was, and there was no artwork on the VHS tape's box.


Exercise 2.2.5 Analysis 1 Terence Tao Mat. Induc.

I was solving this problem in Terence Tao's book about analysis and i got stuck trying to prove this by mathematical induction.   2.2.5 -> Prove the following proposition:  (Strong principle of induction) Let $m_0$ be a natural number, and let $P(m)$ be a property pertaining to an arbitrary natural number $m$. Suppose that for each $m \geq m_0$, we have the following implication : if $P(m')$ is true for all natural numbers $m_0 \leq m' \leq m$, then $P(m)$ is also true. Then we can conclude that $P(m)$ is true for all natural numbers $m \geq m_0$.  He gives the hint to define $Q(n)$  to be the property that $P(m)$ is true for all $m_0 \leq m \leq n$  I begun doing a induction on $n$ with $m_0$ as a base case, but when i got to prove that given that $Q(k)$ implies $P(k)$ then to prove that $ Q(k+\!\!+)$ implies $P(k+\!\!+)$ i got stuck. The $+\!\!+$ is the increment operator that is basicaly a succesor function.


I was just wondering what is the best way to structure my URL and if my URLs are holding me back from an SEO point of view.  Currently we have our categories URL displaying key words form that category but the contain numbers at the end of the URL for example   http://www.example.co.uk/nike-shoes-c-31.html   Would it be better or have an affect on our rankings if we just had   http://www.example.co.uk/nike-shoes.html   Then the subcategory to this would be   http://www.example.co.uk/nike-shoes-c-31_110.html   Would it be better if we explain our on page content a bit better in the sub category URL for example   http://www.example.co.uk/nike-shoes-latest-designs.html


How to set HUD elements position and size depending of resolution

How can I set HUD elements' position and size when changing resolution and maintain the desired layout? All HUD elements (including menu items such as play button, setting button etc) need to get some scaling.


How do you delete all the cookies for the current domain using JavaScript?


For any value of $y$,  is $7|y^2 + 1?$ and $3|y^2 +1$?  as well as   $19|y^2 +1$?  If there is no such $y$, how do you prove it.  Also, I want to know about free software to check these type of divisions in online. Please let me know, if exists such softwares.


Why is everything in minecraft opaque red and blue?

I have updated my drivers, updated java, restarted my computer and downloaded the game several times. When I try to play the game everything is duplicated in opaque red and blue. Does anyone else have this problem?


RSA Encryption: What happens if n is a factor of the message M?

From what I have learned about RSA encryption, the message M and the modulo n must be coprime because Euler's theorem only holds for coprime numbers? for example, what happens if I choose p = 3, q = 11, n = p*q = 33, ϕ(n) = 20, e = 7, d = 3, and I choose the message M to be 66? when I try to encrypt the message : m^e mod n, i get 66^7 mod 33 which equals 0? Am i doing something wrong here, or does RSA not work when M happens to be a multiple of n?


roman numbers too wide in table of contents

Consider the Code below:  \documentclass[%     paper=A4,     twoside=true,     fontsize=12pt,     titlepage=true,     listof=totoc,     bibliography=totoc,     listof=flat,     open=right,     cleardoublepage=empty,     headsepline=true,     footsepline=false,     captions=tableheading,     numbers=noendperiod,     parskip=half-,     headings=normal]{scrbook} \usepackage[a4paper]{geometry} \geometry{     includehead=true,     hmarginratio=1:2,     vmarginratio=3:5,     textwidth=170mm,     textheight=230mm,     headheight=20pt,     footskip=15mm,     bindingoffset=6mm} \usepackage{showframe} \usepackage{blindtext} \usepackage[tocindentauto]{tocstyle} \usetocstyle{KOMAlike} \begin{document} \frontmatter \tableofcontents \cleardoublepage \mainmatter \blinddocument\blindtext \pagenumbering{Roman} \setcounter{page}{20} \appendix \blinddocument \end{document}   The roman pagenumbers in the table of contents are too wide. How to fix this?


Summing Odd Values In A Data Range: Excel

I have a data set (I10:I18) containing the numbers 1-9 sequentially and I am trying to sum only the odd values within the set. The following formula seems like it should work but I keep getting a value of "0".  =SUMIF(I10:I18,IF(MOD(I10:I18,2)=1,I10:I18,0)  I realize adding the odd numbers in this example could easily be done without the formula. I am just practicing my excel skills. If someone could help me find the error I would greatly appreciate it. Thanks.


Looking for collaborative webmapping projects

I´m looking for open source collaborative web mapping projects which allow vector editing, wms display and other features like comments, photo-uploads etc.  I´ve only found Ushahidi and Sahana so far, but I´m sure there must be others out there.  If anyone has heard of anything, please let us know.


What happens to games and programs if you reinstall windows to a different location?

I recently bought a new SSD for my computer and installed a windows 7 on with a help from my friend. We plugged it in, and set the computer to boot from that version of windows. I'm wondering about what exactly happened to all the programs and games of my "previous" windows? We left it untouched at the original C, which is now F-drive. They don't show up on programs, but their files can be found.  Steam, where most of my games are, works after a little trickery, but for example L.A.Noire, a non-steam-game, fails to launch because it "Could not locate game executable on local machine". Because it doesn't show up on removable programs and there's no uninstall file, there is no way for me to remove it, only the files.   What happens if I do so to it, or other programs with same situation? Are they really gone? What should I do here?


R : Calculate a P-value of a random distribution

I want to get the P-value of two randomly distributed observations x and y, for example :  > set.seed(0) > x <- rnorm(1000, 3, 2) > y <- rnorm(2000, 4, 3)   or:  > set.seed(0) > x <- rexp(50, 10) > y <- rexp(100, 11)   let's say that T is my test-statistic defined as mean(x) - mean(y) = 0 (this is H0), the P-value is then defined as : p-value = P[T>T_observed | H0 holds]. I tried doing this :  > z <- c(x,y) # if H0 holds then x and y are distributed with the same distribution > f <- function(x) ecdf(z) # this will get the distribution of z (x and y)   then to calculate the p-value i tried this:  > T <- replicate(10000, mean(sample(z,1000,TRUE))-mean(sample(z,2000,TRUE)))  # this is  supposed to get the null distribution of mean(x) - mean(y) > f(quantile(T,0.05)) # calculating the p-value for a significance of 5%   obviously this doesn't seem to work, what am i missing ?


Given $A\in M_{n \times n}(\mathbb{F})$ and $p_{A}(x)=\det(xI-A)$ why saying that $\det(AI-A)=0$ is not valid?


What symmetry operation mixes states with different $\ell$ in hydrogen atom?

We can mix states with different $m$ in hydrogen atom by rotating it around some axis (not coinciding with $z$). Thus rotation is the symmetry operation which mixes states with different $m$.  As hydrogen has hidden symmetry, which leads to degeneracy in $\ell$, there must be some symmetry operation, which would mix different $\ell$'s. What is this operation? I understand that this symmetry is related to Laplace-Runge-Lenz vector conservation, but I don't quite see what symmetry operation corresponds to it.


Can I call a windows DLL from a linux client?

I found this command line in a tutorial: gcc -o Client1 Client1.o CodeSample1.dll -lgdi32 -lm  and made me wonder when is possible to call a windows DLL from a linux client, or well, a Linux .so file from a windows client. Are there any constraints such as language, name decoration, etc?


Impossible to boot Ubuntu - normal.mod missing

I am trying to reinstall Ubuntu (tried 12.04 to 17.10) but I always get the error error: file /boot/grub/i386-pc/normal.mod not found then drops me into grub rescue.   I have installed using USB (unetbootin) and CD but get the same result. If I boot from the live CD and browse the HDD the files are actually there.   I have tried boot rescue and it mentions the files are quite far from the start of the disk and the BIOS might not be able to see them? Boot repair supplied a report here    I thought it might have been a dodgy HDD but I have tried another one with the same result. I usually never have an issue installing Ubuntu but this PC just refuses.


utf8_unicode_ci still doesn't work. What is missing?

I have a mysql table with hungarian words, so accents are expected. This column full of words must be a UNIQUE one, so I need a charset which treats e.g.: "a" and "á" different.  I read on forums, that my best choise for character collision is utf8_unicode_ci. So my create database command looks like this:   CREATE DATABASE db_name CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci;   After testing is with "mar" - "már" and (with a german word, more popular language) "straße" - "strasse", it still doesn't work. INSERTing gives unique warning, and SELECT with accent results without accent (and vise versa).  Everywhere I looked says it should work. What am I missing then?  Update  Somehow I managed to make this, but work only with command prompt. Php still thinks SELECT "a" = "á" is TRUE.


Tex: longtable page break at specific rows only

My table is logically divided by 2 rows in a group. I want the page break occurs only after the last row in the group. How I can do that with longtable? In the example below page break happens on "bit 6"   \documentclass[]{article} \usepackage{longtable,booktabs} \usepackage{geometry}  \geometry{  a4paper,  total={160mm,257mm},  left=10mm,  top=20mm,  }  \date{}  \begin{document}   \subsubsection{SOME\_REGISTER, 0x100}\label{some_register-0x100}  Some register for XXX  \begin{longtable}[c]{|p{0.15\textwidth}|p{0.4\textwidth}|p{0.15\textwidth}|p{0.15\textwidth}|p{0.2\textwidth}|} \caption{A sample long table.} \label{tab:long} \\ \hline {\bf Bit Position} & {\bf Field Name} & {\bf Permissions} & {\bf Reset Value} & {\bf Field Attributes} \\\hline  \endfirsthead \multicolumn{5}{c}% {{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\ \hline {\bf Bit Position} & {\bf Field Name} & {\bf Permissions} & {\bf Reset Value} & {\bf Field Attributes} \\ \hline  \endhead \hline \multicolumn{5}{|r|}{{Continued on next page}} \\ \hline \endfoot  \hline \hline \endlastfoot 0        & Reserved   & --          & --          & \\\hline  1         & FIELD1\_NAME & RW & 0x0 & \\*\hline               & \multicolumn{4}{|p{.85\textwidth}|}{ Line1  Line1  Line1  Line1  Line1 Line1  Line1 Line1  Line1 Line1  } \\\hline 2         & FIELD1\_NAME & RW & 0x0 & \\*\hline               & \multicolumn{4}{|p{.85\textwidth}|}{ Line1  Line1  Line1  Line1  Line1 Line1  Line1 Line1  Line1 Line1  } \\\hline 3         & FIELD1\_NAME & RW & 0x0 & \\*\hline               & \multicolumn{4}{|p{.85\textwidth}|}{ Line1  Line1  Line1  Line1  Line1 Line1  Line1 Line1  Line1 Line1  } \\\hline 4         & FIELD1\_NAME & RW & 0x0 & \\*\hline               & \multicolumn{4}{|p{.85\textwidth}|}{ Line1  Line1  Line1  Line1  Line1 Line1  Line1 Line1  Line1 Line1  } \\\hline 5         & FIELD1\_NAME & RW & 0x0 & \\*\hline               & \multicolumn{4}{|p{.85\textwidth}|}{ Line1  Line1  Line1  Line1  Line1 Line1  Line1 Line1  Line1 Line1  } \\\hline 6         & FIELD1\_NAME & RW & 0x0 & \\*\hline               & \multicolumn{4}{|p{.85\textwidth}|}{ Line1  Line1  Line1  Line1  Line1 Line1  Line1 Line1  Line1 Line1  } \\\hline  \bottomrule \end{longtable}  \end{document}


How to prove $\sin x+\frac{\sin 2x}{2}+\frac{\sin 3x}{3}+\cdots$ is positive?

Let $0<x<\pi$. $n$ be a natural number.  How to prove  $$\sin x+\frac{\sin 2x}{2}+\frac{\sin 3x}{3}+\cdots+ \frac{\sin nx}{n}>0$$


I've been typing up a document, and I realized I didn't know how to type up this sideways parenthesis thing here:  Could someone tell me how to type that up? This is in math mode.


Maclaurin Series of $\frac{2x}{e^{2x}-1}$

Calculate the Maclaurin series of $$\frac{2x}{e^{2x}-1} $$ I've tried to calculate it but the series $\frac{1}{e^{2x}-1}$ divides by 0 when x is equal to 0


Terminal error messages are not in English

I have Ubuntu 15.04 installed on my machine. Currently terminal error messages are not in English (actually they are in Russian).  For example,  $ mmmm mmmm: команда не найдена   I want to see   $ mmmm mmmmm: command was not found   Solution provided for  does not work for me.


Connected an 8 pin CPU cable to an 8 pin GPU

I have a modular PSU with the labels:  SATA and peripherals: 2 6pin, 2 8pin PCI-E and 4+4: 2  I connected an 8pin cable, labeled CPU, to the 8pin in the PSU with the second label, and to the 8pin GPU. My entire computer didn't boot up, except for one time the led turned on for half a second and shot down. I replaced the cable with an 6+2pin labeled PCI-E and connected to the same pins and my pc is now running for what it seems normally. I made also some benchmarks and it seems to work fine.  What exactly happened that my entire PC didn't boot? Is there the possibility of anything being damage and how could I see if it is?


How to normalize data to let each feature lie between [-1,1]?

I have samples with each sample has n features, how to normalize these features to let feature values lie between interval [-1,1], please give a formula.


Is space and time consecutive in physics, like frames in cameras?

Is time consecutive in physics? Here is my deeper explanation of what I mean. Are frames for example in a camera a good metaphor with the concept that time also has "frames" in the space of our universe. I am posting here for the first time, hopefully I am not asking the same question.


Why $x^2+y^2=3z^2$ (which $z$ is not zero) has only $(0,0,0)=(x,y,z)$ as an answer?

I'm reading a book and it says $x^2+y^2=3$ doesn't have a rational answer beacuse : $x^2+y^2=3z^2$ (which $z$ is not zero) has only $(0,0,0)=(x,y,z)$ as an answer. Can someone explane the second part? Why are we using the second statement to prove the first part? Cause the book I'm reading just said it as a statement and I dont get it. Thank you.


Is it possible to use 2011 iMac as display for Windows 7 PC with DVI?

I've seen this question asked before but the answers either didn't quite seem to address the question, or were very old so I'd like to see if there's any way to do this today.  I have a mid-2011 iMac that does support Target Display Mode, but since I want to connect it to a Windows (7 Home) PC I understand TDM to be irrelevant and it won't work.  So, is there in fact any way at all to physically connect my iMac and use it as the display for my Windows PC?  A software solution won't do since this PC is almost exclusively for gaming and decent performance is required.  My video card is a GeForce 1050ti and has DVI and HDMI options on it.  I know this is a long shot but... is it possible at all?


What is the easiest way to run a script automatically at startup in Ubuntu 20.04?

I'm using a touchscreen in vertical position as a monitor and I need to run a script at startup, otherwise Ubuntu does not flip the touch interface to fit the vertical position of the monitor and the touchscreen is unusable as a result. As the idea is not to need either a mouse or a keyboard, I need to be able to run the script automatically at startup without any user interaction.  I tried all the ways I could find through Google to do it but none worked, probably because some of them referred to older Ubuntu versions. The last one I tried was this one:     which looked promising. I did exactly what was shown, replacing the script with my script, but nothing happens at startup and I still have to run the .sh file from terminal manually to get proper touch screen calibration after startup.  Only the result matters, the method can be ugly, but I desperately need a way to make it work. I never thought it would be so complex and would require so much work to run a script at startup, and I'm way past my level of competence here.


Not sure why its not letting me unwrap I have a seam and everything selected.  This also pops when I try to UV unwrap


How to create the distortion of Gas Fumes?

I want to know how to simulate gas that doesn't look like pure smoke. Like the gas one might see coming out the side of a pipe or on a really hot day in the desert. I don't know how to explain it: gas without the smoke.


how do i upgrade from ubuntu 12.10 to 13.04?

How do I upgrade from Ubuntu 12.10 to Ubuntu 13.04? I have tried nothing yet,however this is trying my patients, I have been here for over an hour trying to ask a simple question and this  is my LAST ATTEMPT!!!


I am using Chrome in Windows 10 and disabled dark mode with appending --disable-features=DarkMode to the shortcut.  This workaround is working (as it is described here: ).  But it is still running in a dark mode when I'm opening link http or https, for example, from email: when I'm clicking a link Chrome is launching (as it is default browser) in a dark mode. It happens when Chrome launching in a new window. In a case when Chrome was opened: a new tab from external link runs in a light mode.  How to force light mode when Chrome opening links from 3rd parties applications?


Is gravitational potential energy proportional or inversely proportional to distance?

We know that if an object has been lifted a distance $h$ from the ground then it has a potential energy change:  $$\Delta U = mgh $$  so $h$ is proportional to $\Delta U$.  However, we have also the gravitational potential energy law:  $$ U= -\frac{G M m}{r} $$  where the distance is inversely proportional to the potential energy.  What did I miss? Is the distance of the object proportional or inversely proportional to the potential energy?


WordPress or PHP are cutting off the text after saving a post. This happens when there is a special character like ’ or ™.  For example if I enter the following text:  This isn’t working   and then I save the post, the post will be:  This isn   I assume is not MySQL because I entered the same text and it worked. The wp-config.php contains the following:  define('DB_CHARSET', 'utf8'); define('DB_COLLATE', '');   And I have tested it with  define('DB_CHARSET', 'utf8'); define('DB_COLLATE', 'latin1_swedish_ci');   The mysql database has latin1_swedish_ci collation and the tables has utf8_general_ci collation.  I've also tried to change the tables collation but it didn't work. I'm using the latest WordPress version. I don't have experience with collations or encoding. So, my question is: Is there a method to make WordPress save the entirely post without cutting off the content when appears a special character?


If $X_1, \ldots, X_n$ are iid $\sim N(\mu,\sigma^2)$,  $\frac 1 {\sigma^2} \Big((X_1-\bar X)^2 + \cdots + (X_n - \bar X)^2 \Big) \sim \chi^2_{n-1}$.  This has been , and is the starting point to derive the  distribution.  I would really like to get a proof without the advanced math in linear algebra projections (if possible), or with a detailed explanation of the steps followed in the derivation (if the use of projections is essential). Thanks!


Soldering iron tip turns black after first use, and won't melt solder

I am a beginner in the field of soldering.  Two weeks ago a bought a brand new soldering iron for around $15.  The iron had a shiny tip, but after I plugged it in it turned black pretty quickly.  After doing some research, I found out that this type of soldering iron is made of a copper core with a thin iron coating.  The iron coating is needed because, to my understanding, copper corrodes quickly when in contact with hot solder.  However, at high temperatures, iron reactas with oxygen and forms a super thin oxide layer on the tip of the soldering iron, which makes soldering really difficult.    Essentially, the solder melts only at the top of the tip, and starts rolling into a ball.  It will barely melt at the absolute tip.  I have tried using a wet sponge to clean it off, as suggested by the internet, but that doesn't do anything (the sponge is apparently supposed to be used to clean solder rests from the tip and not oxidation anyway).  Another internet tip was to gently scrape that layer off with a knife until the iron covering is revealed, turn the soldering iron on, and once it heats up immediately cover it with solder to prevent oxidation.  Well, I tried that too, but as soon as the iron heats up, it turns black and repels the solder.    I have heard about using flux (soldering paste) but my solder already has a flux core.      In the two pictures you can see the iron before/after being turned on, (after I had scraped it with a knife).  You can clearly see how it loses its shine.  How do I remove this oxide layer without a knife (which risks damaging the iron coating) and prevent it from reoccurring?  (To reiterate, I am a beginner, and I don't want to spend $100 on a fancy, temperature controlled iron.  I just want to solder some components to a thru-hole board without buying a new tip every time in need one.).   Thank you very much for your time!


Show $$\ln(2)=\sum_{i=1}^{\infty}\frac{(-1)^{n+1}}{n}$$  We know que if $|z|<1$.    $$\ln(1-z)=-\sum_{i=1}^{\infty}\frac{(z)^{n}}{n}$$  But $z=-1$ for our case and I wouldn't meet the condition $|z|<1$.


Why do we use 3.3 V in circuits? Why not 3 V? Is there a specific standard? Or do we use it because it was 3.3 V from the beginning? I am just curious to know.


How to copy one object to another variable without passing refrence in javascript

I have one object   var a = {b:{c:{d:{e:1}}}}   I want to copy that object to another variable b, without passing a reference, so I try spread operator  var b = {...a}   It is not removing reference at a deep level, as I change the value in the object "a" it also changes the value in the object "b"      a.b.c.d.e = 2     console.log(b.b.c.d.e)    it give output 2 instead of 1    var a = {b:{c:{d:{e:1}}}}; var b = {...a}; a.b.c.d.e = 2; console.log(b.b.c.d.e) document.write(b.b.c.d.e)     How can I handle this issue


GCD expressed with irreducible elements in a unique factorization domain

Let $R$ be a unique factorization domain (UFD). Given $a,b \in R$ not simultaneously equal to zero, an element $d \in R$ is by definition a greatest common divisor (GCD) of $a$ and $b$ provided:   $d \mid a$ and $d \mid b$. For all $d' \in R$ such that $d' \mid a$ and $d' \mid b$, we have that $d' \mid d$.   Let $U(R) := \{\,\text{units in $R$}\,\}$ and assume $a,b \neq 0$, $a,b \notin U(R)$. Since $R$ is a UFD, there exist $u,v \in U(R)$, irreducible elements $p_1,\dots,p_s \in R$ which are mutually non associate, $d_1,\dots,d_s,e_1,\dots,e_s \in \mathbb{N}$ such that: \begin{equation}  a = u \cdot p_1^{d_1} \cdots p_s^{d_s} \, , \quad b = v \cdot p_1^{e_1} \cdots p_s^{e_s} \end{equation} For all $1 \leq i \leq s$, let $f_i := \min\{d_i,e_i\}$. We want to prove that a GCD of $a$ and $b$ is: \begin{equation}  c := p_1^{f_1} \cdots p_s^{f_s} \end{equation}


I am trying to get a regexp to validate that an input field "Full Name" doesn't have any numbers or special characters. only alphabets. The issue is I want it to validate the input in several languages not only English. Any thoughts?  Thanks,


Why not just Disapparate when the Snatchers arrive?

I'm currently reading Deathly Hallows.  Once Voldemort's name has been Tabboo'd, it summons the Death Eaters, as well as breaking protective charms on an area (case and point, Harry's Tent).  When it is uttered, Death Eaters appear outside the tent in which Hermione, Harry and Ron are hiding.    Since the only requirement for Apparition appears to be a wand (no verbal cue to alert the Death Eaters) and Disapparating can be done extremely quickly (for example: Mundungus Fletcher  in Hogsmeade, Dobby's death) - why don't the group just get gone and escape before they are taken to Malfoy Manor?


I want to refresh the CSS in my browser when I save a change to the CSS file with BBEdit.   There is a browser plugin called live reload which does this, but it crashes when chrome inspector is open. There are js codes you can save as bookmarks that are supposed to work when you click them, but none of these work for me locally.   Can BBEdit fresh a page or just refresh a pages's CSS when a CSS file is saved? Ideally id work with Chrome, but if BBEdit provides its own browser (as Espresso does) this would also work ok.


How do I start MySQL server in an Amazon AWS Elastic Beanstalk instance?

I am relatively new LAMP dev who is trying to learn Linux primarily through AWS. I have a live Elastic Beanstalk instance up and running. I did a yum install of the following packages:  mysql55.x86_64 mysql55-bench.x86_64 mysql55-common.x86_64 mysql55-devel.x86_64 mysql55-libs.x86_64 mysql55-server.x86_64 mysql55-test.x86_64    Which all seemed to install fine ... then typed ...  mysql -V    which gets me   mysql Ver 14.14 Distrib 5.5.20, for Linux (x86_64) using readline 5.1    ... which confirms mysql is installed ... but then when I type ...  mysql -u ec2-user -p Enter password: /*leaving blank*/   I get ...  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)   Now the thing is I am ssh-ing into this server with a Security Group key pair I created in AWS Console. So the key is authenticating me (from the .ppk file) when I log into the box as ec2-user. That IS my "root" user as far as I know, there is no password, but I may be mistaken.  So, basically I don't understand the basics of how to begin using MySQL in a linux environment. I've only really used PHPMyAdmin and the MySQL command line from WAMP until now.  Can somebody help me with where I'm getting my wires crossed here?


Why do (seemingly) unrelated DOM lookups cause transition to be respected?

setTimeout(() => {   var x = element.getBoundingClientRect().x;   var y = element.getBoundingClientRect().y;   element.style.left = x + 'px';   element.style.top = y + 'px';   element.style.position = 'fixed';   window.scrollX; // (comment out this line to break the code!)   element.style.left = parseFloat(element.style.left) + 30 + 'px'; }, 1000); #element {   background-color: #fa4;   width: 100px;   height: 100px;   position: static;   transition: 1s; }

         I want to take  a static positioned element and changed to fixed in the same place, then change the left value to move it around. The element's style.transition property is set to 1s.  The following does not work in chrome/safari/firefox (the element jumps to its new position instead of smoothly transitioning):  let x = element.getBoundingClientRect().x; let y = element.getBoundingClientRect().y; element.style.left = x + 'px'; element.style.top = y + 'px'; element.style.position = 'fixed'; element.style.left = parseFloat(element.style.left) - 500 + 'px';   On the other hand, the following slightly different code does work:  element.style.left = element.getBoundingClientRect().x + 'px'; element.style.top = element.getBoundingClientRect().y + 'px'; element.style.position = 'fixed'; element.style.left = parseFloat(element.style.left) - 500 + 'px';   In fact, even this works:  let x = element.getBoundingClientRect().x; element.style.left = x + 'px'; element.style.top = element.getBoundingClientRect().y + 'px'; element.style.position = 'fixed'; element.style.left = parseFloat(element.style.left) - 500 + 'px';   Or this (!!):  let x = element.getBoundingClientRect().x; let y = element.getBoundingClientRect().y; element.style.left = x + 'px'; element.style.top = y + 'px'; element.style.position = 'fixed'; window.scrollX; element.style.left = parseFloat(element.style.left) - 500 + 'px';   I am trying to deepen my understanding of javascript. Can someone explain to me what causes the last 3 examples to work?  Obviously, I can guess this is something to do with the browser being forced to "recognize" the new left and top values before the left value is changed again in the last line, but I would like to know exactly why and how this is happening, and also if this phenonemon is known by some name.


Phase difference of driving frequency and oscillating frequency

Suppose a mass is attached to a spring and is oscillating (SHM). If a driving force is applied, it must be at the same frequency as the mass' oscillation frequency. However I'm told that the phase difference between the driving frequency and the mass's frequency must be $\frac{\pi}{2}$.  Why is that? I would have thought they should have to be in phase to be in resonance?


Why do native speaker tend to use passive voice?

I found native people prefer to use passive voice in a sentence. For example:  Tonight's moon can be seen from anywhere worldwide. We have reason to believe that progress can be made.  Be honest, it's difficult for an English learner to understand. Why not phrase it this way:  We can see the moon from anywhere worldwide.  In which cases do people prefer to use passive voice rather than active voice?


How did the word "important" come to mean "significant"

I understand the word "import" meaning "to bring or carry in" from the Latin.  I have also read sources which say that the word "important" comes from "importare" meaning "being of consequence"  But how and why did the root word for "bring in" lead to a word meaning significant or being of consequence?


How FluentWait is different from WebDriverWait?

How is the FluentWait is different from WebDriverWait? I am using WebDriverWait having the polling interval set to : 500 miliseconds. Still, WebDriverWait returns after some delay (i.e. 2 - 3 seconds after the element load is completed)? Any opinion here?


Word for liking and not liking something at the same time?

What's a word for the feeling of liking something, but not liking it at the same time? I love the way the Spanish speak, but it bothers me at the same time. I've looked through and dictionaries asked teachers, but i can't seem to find the right word. I would really appreciate the help, thank you.


How to calculate the signal-to-noise ratio for an image?

I've started with a “perfect” image 'without noise'.  Then I added some noise to it. I've used gaussian white noise for this purpose.  In = In+0.5*randn(size(Io))   The combined image (my “noisy image”) has a signal to noise ratio with some meaning because I can compare it to the perfect image.  My question is how can I calculate the 'SNR Value'.


I stumbled upon these SyncTeX files in my directories and wanted to know what they are for. I searched this site and the internet and I think I have some vague understanding of what it is but I'm still not very satisfied with my actual knowledge. I've found many questions about configuring SyncTeX but none about what it is and what it does.  So, could someone explain what is SyncTeX and what does it do exactly and/or point to some general purpose documentation?


how to split string on word and punctuation

I am relatively new to Python, is there a way I can split the string "James kicked Bob's ball, laughed and ran away." into the following, so I have the words and punctuation in list items ["James", "kicked", "Bob's", "ball", ",", "laughed", "and", "ran", "away", "."]. is there a way to do this in python?


I am doing some explorative work on two large datasets. One from 2001 and one from 2018. The dataset consists of measured soil-parameters and it contains lots of zero's.   From the transformations done in 2002 on the 2001 dataset, I have some notes written on the sideline of a LOGtransform graph: 'dataset contains '0'-values, 2 is highest number in column, so LOG(data+0.1)'.  The result of this transformation:    My Question: Where does this 0.1 come from in relation to the 2 (highest number in column, dataset)? What is this transformation called and what is the idea behind this kind of log transform?  I have the same skewness in my 2018 dataset, but the LOG(data+0,1) does't work as well. Also, can I compare the two with Repeated Measures ANOVA when the two log transformations have different numbers added to the data?


Can i use params keyword in an anonymous object? ASP.NET MVC doesn't allow it. Is there any solution?   //It gives an error for "params" keyword.  var rv = new { params= "test it" };


I get white pixels all over the rendered image

So I'm new and I'm using Cycles rendering. The problem is that when I render I get white particles all over the image. I learned that MIS helps out with that, but I don't know how to apply it as I am using Emission on material.(I am not using any lamps and I know that they have this option) currently using 2.79 as I find it easier to navigate. Is it possible to fix it with nodes? or at least someway else.


I am running Wireshark on my linux machine and i have simple python web server running on localhost:8080  I am capturing only local port 8080. When i open browser on localhost:8080 wireshark captures huge amount of tcp communication (as page loads with all resources) but there`s no HTTP only TCP...   Why i cannot capture HTTP on custom port ?


Can't solve $\int_{0}^{+\infty}\frac{x-\sin{x}}{x^3}dx$. Try to use $\sin{x}=\frac{e^{ix}-e^{-ix}}{2i}$ and $\sin{x}=\Im{e^{ix}}$ but also can't solve this integral. Any suggestions how to solve it? Thanks in advance.  Edit:  If i use: $\sin{x}=\Im{e^{ix}}$:  $\int_{0}^{+\infty}\frac{x-\sin{x}}{x^3}dx$ = $\int_{0}^{+\infty}\frac{x-\Im{e^{ix}}}{x^3}dx$ = $\Im{\int_{0}^{+\infty}\frac{x-e^{ix}}{x^3}dx}=\Im{I}$  Then calculate $I$ using residue theorem: $I=2\pi i (res_{z=0}{f(z)})=2\pi i \frac{1}{2}=\pi i \Rightarrow$  $\Im{I}=0$ and that isn't correct answer, because correct answer is $\pi/4$.


Assuming the rest of your application is solid, is a gre score of 160Q and 155V good enough for a math phd?

I plan on applying to graduate school school soon and I'm confident the rest of my application will be pretty solid. However, I'm worried that a quant score of 160-163 will put me below the other applicants. Most have quant scores of 165+. I could break this, but I have a huge problem of making silly mistakes when under pressure and trying to keep a good pace.


Justifying the notation $\langle x\ |\ \psi\rangle$

I came across this expression:  $$\langle x\ |\ \psi\rangle=\psi(x)$$  How can it be justified? I understand the LHS as an inner product, and the RHS just as a function of the parameter $x$.


How to type all Dutch letters (e.g. "ó") on using ibus + standard English keyboard?

How can one be able to type all contemporary letters in Dutch language on ubuntu or debian using ibus and a standard English qwerty keyboard? E.g., the letter "ó" in the word "vóór" (means "before"). Solutions meeting the following conditions are strongly preferred:  A Dutch input module (not German or something else). Installable via a .deb package or Ubuntu package manager. No mouse action is required to input these letters.  I am using a standard English qwerty keyboard with ibus input framework. Ibus Preferences -> Input Method -> Add has only a Dutch; Flemish - Belgian module available for Dutch that appears to be unable to achieve what I am asking for (although ö, ô and è can be typed).


I am trying this code:  b = [[None]*3]*3 b[0][2] = 1 print(b)   and getting output as: [[None, None, 1], [None, None, 1], [None, None, 1]]  But what I am expecting is: [[None, None, 1], [None, None, None], [None, None, None]]  What am I missing here?


Is there a way to convert a mesh's UV's into a second mesh using a script?

So what I've been doing to bake Cycles depth maps is based on the following thread found on the BA.org forum and I've mentioned this here already but I'd like to take this a step further using a script but I'm not sure how to do this myself.  If you have a look at the following  thread, there is a method for creating Cycles Depth maps using an Orthographic camera but it's limited to planer objects.    I've expanded this technique slightly by baking an objects' color as white and with no Margin overdraw so that I have a guide for using the above mentioned technique but in a more 3D way since the resulting texture will match up with the 3D Objects UV coordinates.  Basically, this is how I modeled the pillars on the following model.    and the setup looks like this.      The problem is that we have to be very careful around the UV Island boundaries because if the depth map does not match up perfectly with the UV's then the Displace modifier will make a big mess at all the seams.    So this brings me to the question.  How can we convert a UV coordinate set into an actual flat 3D mesh that would still match up perfectly with the UV's of the model they were created from.  Here is an image to help illustrate this.    So does anyone have some thoughts on how to make a script that can make this conversion from UV's to a new mesh that looks exactly like the UV's of the first model so that the Cycles Camera Depth map technique can be used to make perfectly aligned displacement UV maps?  X and Y should translate directly into the new meshs' X and Y positions and z would be set to be all 0's. This worked when I did it with GLSL so it should work here as well.  So I guess my question is how can we write a script using Blender Python that does this?


Evalute the $\lim\limits_{n\to\infty} \frac{1}{n}\sum\limits_{k=0}^{\left \lfloor n/2\right \rfloor}\cos(\frac{k\pi}{n})$

[NBHM_2007_PhD Screening Test_Analysis]     Evalute the $\lim_{n\to\infty} \frac{1}{n}\sum_{k=0}^{\left  \lfloor{\frac{n}{2}}\right \rfloor}\cos(\frac{k\pi}{n}).$   If the upper limit of the sum is $n$ insted of ${\left  \lfloor{\frac{n}{2}}\right \rfloor}$. I could use the formula $\int_{0}^{1}cos(\pi x)dx$. Here, how do I evalute the given limit? Please help me.


How to handle a question that is being edited to make a new question?

The question  has been edited many times and the original poster is continuing to use the same question to ask new questions.  I have voted to close and flagged for moderator attention.  What is the proper procedure to handle this type of activity?


Quotation marks from database being echo'd out as diamond question marks in chrome

I am having a strange problem in that when anything from my mysql database is retrieved and echo'd out in a php script the quotation marks in the record are being replaced by diamond shaped question marks in Google Chrome.  My mysql database is set to collation : utf8_general_ci   The part of script that is pulling down the records is as follows :      <?php     echo '
';     // Retrieve Page Content //      $testimonialssql = <<<SQL         SELECT *         FROM `testimonials`         ORDER BY id DESC         LIMIT 5     SQL;      if(!$resulttestimonials = $db->query($testimonialssql)){         die('There was an error running the query [' . $db->error . ']');     }     while($rowT = $resulttestimonials->fetch_assoc()){         if ($rowT['company'] == ''){$name = $rowT['name'];}else{$name = $rowT['name'].' - '.$rowT['company'];}         $from = $rowT['from'];         $message = $rowT['message'];         echo '
'.$name.'
';         echo '
'.$from.'
';         echo '
'.$message.'
';             }             echo '
';     ?>   This is included in my index.php which has the following settings :  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   I have tried using htmlenteties and stripslashes and various other things, but still have the same problem.


What does this logic/circuit symbol mean

While browsing through the  of an ATMega324p description of a pin I noticed this symbol which looks like four diodes/triangles pointing at each other.    So my question is what is it actually?


I have a scenario. (Windows Forms, C#, .NET)   There is a main form which hosts some user control. The user control does some heavy data operation, such that if I directly call the UserControl_Load method the UI become nonresponsive for the duration for load method execution. To overcome this I load data on different thread (trying to change existing code as little as I can)   I used a background worker thread which will be loading the data and when done will notify the application that it has done its work.   Now came a real problem. All the UI (main form and its child usercontrols) was created on the primary main thread. In the LOAD method of the usercontrol I'm fetching data based on the values of some control (like textbox) on userControl.    The pseudocode would look like this:  CODE 1  UserContrl1_LoadDataMethod() {     if (textbox1.text == "MyName") // This gives exception     {         //Load data corresponding to "MyName".         //Populate a globale variable List<string> which will be binded to grid at some later stage.     } }   The Exception it gave was     Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on.   To know more about this I did some googling and a suggestion came up like using the following code  CODE 2  UserContrl1_LoadDataMethod() {     if (InvokeRequired) // Line #1     {         this.Invoke(new MethodInvoker(UserContrl1_LoadDataMethod));         return;     }      if (textbox1.text == "MyName") // Now it wont give an exception     {     //Load data correspondin to "MyName"         //Populate a globale variable List<string> which will be binded to grid at some later stage     } }   BUT BUT BUT... it seems I'm back to square one. The Application again  become nonresponsive. It seems to be due to the execution of line #1 if condition. The loading task is again done by the parent thread and not the third that I spawned.  I don't know whether I perceived this right or wrong. I'm new to threading.  How do I resolve this and also what is the effect of execution of Line#1 if block?  The situation is this: I want to load data into a global variable based on the value of a control. I don't want to change the value of a control from the child thread. I'm not going to do it ever from a child thread.   So only accessing the value so that the corresponding data can be fetched from the database.


I am using Windows Spotlight on the lock screen of my Windows 10 laptop, and I have accidently liked some photos, and the keep coming up. is there a way to 'change your mind' about a photo, or just reset the whole thing?


How would you show that the series $\sum_{n=1}^\infty \frac{(2n)!}{4^n (n!)^2}$ diverges?

How would you show that the series $$\sum_{n=1}^\infty \frac{(2n)!}{4^n (n!)^2}$$ diverges? Wolfram Alpha says it diverges "by comparison", but I'd like to know to what you would compare it? I've tried some basic things to no avail: The ratio test is inconclusive, comparing with something "smaller" which I know diverges is proving difficult. If possible, I'd like to show this without using anything fancy (such as Stirling's approximation).  Can you do this with a "basic" comparison?


I have a text file, the following shows a sample of file contents:     1234  A novel homeodomain-encoding gene is associated with a large CpG   island interrupted by the <category="Modifier">myotonic   dystrophy</category> unstable (CTG)n   repeat.   <category="SpecificDisease">Myotonic   dystrophy</category> (   <category="SpecificDisease">DM</category> ) is associated   with a ( CTG ) n trinucleotide repeat expansion in the 3-untranslated   region of a protein kinase-encoding gene , DMPK , which maps to   chromosome 19q13 . 3 . Characterisation of the expression of this gene   in patient tissues has thus far generated conflicting data on   alterations in the steady state levels of DMPK mRNA , and on the final   DMPK protein levels in the presence of the expansion . The   <category="Modifier">DM</category> region of chromosome 19   is gene rich , and it is possible that the repeat expansion may lead   to dysfunction of a number of transcription units in the vicinity ,   perhaps as a consequence of chromatin disruption . We have searched   for genes associated with a CpG island at the 3 end of DMPK .   Sequencing of this region shows that the island extends over 3 . 5 kb   and is interrupted by the ( CTG ) n repeat . Comparison of genomic   sequences downstream ( centromeric ) of the repeat in human and mouse   identified regions of significant homology . These correspond to exons   of a gene predicted to encode a homeodomain protein . RT-PCR analysis   shows that this gene , which we have called   <category="Modifier">DM</category> locus-associated   homeodomain protein ( DMAHP ) , is expressed in a number of human   tissues , including skeletal muscle , heart and brain .   I need to extract what in between tags: for example,  <category="SpecificDisease">Myotonic dystrophy</category>   I need to extract "Myotonic dystrophy" and write to a new text file.


Do you use a or an before acronyms / initialisms

Whether to use ‘a’ or ‘an’ before acronyms/initialisms  I think I understand the issues and principles as expressed by various contributors on this question.  But here’s an interesting one: is it equally correct to write ‘an SSSI’ and ‘a SSSI’?  The former would be articulated as ‘an es es es I’ and the latter ‘a triple S I’. If the latter is equally acceptable are there any similar cases? Thank you.


I'm trying to print some building plans. I would like for the plans on paper to be scaled so that 1 inch equals 1 foot. I have an orthographic camera set up but I don't know what to set the orthographic scale to so that I get the result that I want.


The function $f$ is differentiable twice at x. Prove that:   $$\lim_{h\to0}\frac{f(x+h)-2f(x)+f(x-h)}{h^2}=f''(x)$$   Hint: use Peano's remainder (if $f:I\to\mathbb R$ is differentiable $n$ times on $a\in I$ then $R_k(x)=o(|x-a|^k), \ x\to a$).   I just don't see the connection here between the second derivative and the Taylor series which has to do with Peano's remainder...  The remainder is defined to be the difference between the function and polynomial but what does it has to do in this case ?


Can a well-timed Twisted Image kill a player using Tree of Redemption?

What happens if my opponent activates  and I cast  with the life-exchange ability on the stack?  Looking at the comp rules, these seem most relevant:     701.8a A spell or ability may instruct players to exchange something (for example, life totals or    control of two permanents) as part of   its resolution. When such a spell or ability resolves, if the   entire exchange can’t be completed, no part of the exchange occurs.      Example: If a spell attempts to exchange control of two target creatures but one of those              creatures is destroyed before the spell resolves, the spell does nothing to the other              creature.      112.7a Once activated or triggered, an ability exists on the stack independently of its source.    Destruction or removal of the source   after that time won’t affect the ability. Note that some    abilities   cause a source to do something (for example, “Prodigal Sorcerer deals   1 damage to    target creature or player”) rather than the ability   doing anything directly. In these cases, any    activated or triggered   ability that references information about the source because the   effect    needs to be divided checks that information when the ability   is put onto the stack. Otherwise, it    will check that information   when it resolves. In both instances, if the source is no longer in the   zone it’s expected to be in at that time, its last known information   is used. The source can still    perform the action even though it no   longer exists.   Is the entire exchange ability countered because the Tree is dead by the time it resolves? Or do we use the "last known state" (toughness 0), thereby killing its controller?


Sorry, Ubuntu 16.04 has experienced an internal error cannot fixed it with already mentioned methods

I can not understand what is the problem for my Ubuntu 16.04 LTS and how to fix it . Also while trying to upgrade to Ubuntu 18.04 , it shows no enough space . Why this happens to me ? Please help.


NTFS long path policy doesn't work on new windows update

This morning I updated my windows 10 with   • Feature update to Windows 10 Enterprise, version 1703.  After that my policy that enables long paths stopped working ( I guess? ). I see it as enabled but when I try to compile some stuff that have long path tree my compile fails.   When I pull the files out from the long tree closer to the root it works.  I reverted my windows update to the previous version and now everything works as usual.


Need help with what non-op players can do in an MC server im making

Is there a way that a non-op player can click a clickEvent command in the book he is given but not be able to do any other commands?