how to use PDO prepared statements in PHP with SQL LIKE operator

I have an SQL query as below : update tableShared SET shareWith = case when shareWith like 'alex@gmail.com,%'   then replace(shareWith,'alex@gmail.com,','') when shareWith like '%,alex@gmail.com,%' then replace(shareWith,',alex@gmail.com,',',') when shareWith like '%,alex@gmail.com'   then replace(shareWith,',alex@gmail.com','') when shareWith = 'alex@gmail.com' then '' else shareWith end where createdBy = 'marc@gmail.com' AND reportName = 'sales Report 2020'  I want to use this query dynamically in PHP PDO prepared statements. Here is my code :     $stmt = $conn->prepare("update tableShared         SET shareWith = case           when shareWith like '?,%'   then replace(shareWith,'?,','')           when shareWith like '%,?,%' then replace(shareWith,',?,',',')           when shareWith like '%,?'   then replace(shareWith,',?','')           when shareWith = '?' then ''           else shareWith           end        where createdBy = ? AND reportName = ?");      $stmt->execute([ $_POST['username'], $_POST['username'], $_POST['username'], $_POST['username'],        $_POST['username'], $_POST['username'], $_POST['username'], $_POST['createdBy'], $_POST['reportName'] ]);  I believe my code is not working because the parameters ?  aren't recognized between the quotes when I execute the query. my first solution was this way but wasn't working as well although it seems more correct to me. $stmt = $conn->prepare("update tableShared SET shareWith = case     when shareWith like ?   then replace(shareWith,?,'')     when shareWith like ? then replace(shareWith,?,',')     when shareWith like ?   then replace(shareWith,?,'')     when shareWith = ? then ''     else shareWith     end   where createdBy = ? AND reportName = ?");   $stmt->execute([ $_POST['username'] .',%',          $_POST['username'] .',',          '%,'. $_POST['username'] .',%',          ','. $_POST['username'] .',' ,          '%,'. $_POST['username'],          ','. $_POST['username'],          $_POST['username'],          $_POST['createdBy'],          $_POST['reportName'] ]);  Any suggestions please how can I use PDO prepared statements inside multiple SQL LIKE operator if this is possible ? Thank you very much.


How to have the intallation file actually work

I've never even been able to get Ubuntu to work . . . and I've tried multiple times. Current iteration: won't run as its own program (always wants to copy to a disc), won't copy to a disc (speaking of Ubuntu glitches, the file is TOO BIG FOR A DISC), and if I zip file it, it fits on a disc but won't run. Yes, the Windows tax is  a necessary evil.


i have this blender file and i am trying to make a chain with is stucked in the ceiling so the first chain link is passive, all others are active. Unfortunately the second chain is "breaking" out the passive one and i have no idea why it happens and how to fix it. Can anybody give me an advise? Before:  After:


Automatically suggest asking on another site

Possible Duplicate:          We all know how common it is for someone to ask a question better suited to one of the other SE sites. Some are more obvious than others and can be automatically detected. For example, any question with the  tag is very likely better suited on . When a user hits submit, he could be offered to post this on the other site instead. Very often users just aren't aware of these other sites, so a suggestion could do the trick.


i don't want the input field to show already entered data when we double click in the input field..what should i do?

<html> <head> <title> Web Page </title> </head> <body> <form action="" method="POST"> <input type="text" name="name" /> <input type="submit" value="Submit" /> </form> </body> </html>   actually what i wanted once you fill the name and click submit and when you again open the page to enter the data, then if you double click in the input field then it display the previously enters data. i don't want that what should i do.


Where is the Keychain lock icon located?

By using Google and Co. and the built-in terminal command locate, I already found the following icons:   /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/UnlockedIcon.icns /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/LockedIcon.icns  But their resolution is not very high.   I am looking for the icon that is displayed every time one has to authenticate (f.ex. when unlocking the keychain):     I think it exists without the little keys. I cannot find it under /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/.   Do you know where this icon is hidden? Thanks a lot!  Related to this post:


Three normals of a hyperbola passing through the same point on the curve

The normals at three points $P$, $Q$, $R$ on a rectangular hyperbola $xy = c^2$ intersect at a point on the curve. Prove that the centre of the hyperbola is the centroid of the triangle $PQR$.  I copied the the question word by word. Let assume that the points are (c$ t_1$,$\frac{c}{ t_1}$) , (c$ t_2$,$\frac{c}{ t_2}$) & (c$ t_3$,$\frac{c}{t_3}$), even if I draw the normal, at all the three point how do I intersect three lines at one point.


It seems that I have been affected by power regression bug. I am using Ubuntu 11.10. I want to know is there any harm in downgrading to a kernel that does not have this bug. How to downgrade the Kernel? Is  kernel suitable for this purpose.


Does CSS formatting of ,  tags have effect on search ranking?

I have a web page where I made some style into <h1>, <h2> tags, will it make some effect on my SEO ranking?


Can't upgrade ubuntu 12.04 to 14.04 (Package dependencies cannot be resolved)

This is what I get each time I try to upgrade:   "The following packages have unmet dependencies:  libgl1-mesa-glx-lts-trusty: Depends: libglapi-mesa-lts-trusty (= 10.1.3-0ubuntu0.1~precise1) but 10.1.3-0ubuntu0.1~precise1 is to be installed                             Depends: libx11-6 (>= 2:1.4.99.1) but 2:1.4.99.1-0ubuntu2.2 is to be installed                             Depends: libxdamage1 (>= 1:1.1) but 1:1.1.3-2build1 is to be installed xserver-xorg-lts-trusty: Depends: xserver-xorg-core-lts-trusty (>= 2:1.11) but 2:1.15.1-0ubuntu2~precise1 is to be installed"   How can I workaround this problem?


My iPhone 7 is in recovery mode and the home button is broken. There is a prompt that says “Press home to recover” and it’s not popping up when I connect with iTunes.


Convert outlined stroke to single stroke

Recently I've been messing with Illustrator/Inkscape and trying to convert something like this:    to a single-stroked path like this:    I've searched a lot and I haven't found a solution.


how to get the last modified time of a particular table mysql

I want to know the time when my table is last modified ,whether it may insertion,deletion,update or structure change.


I've been having an argument with a colleague about this sentence, could you please let me know which one of us is correct:     There are no shortage of applications for our product in this   space.   She is convinced that are should be replaced by is, and I think it should stand as it is. Thanks for your help!


Can I easily make a host "mirror" that caches downloaded Debian packages?

We've got a Squid web cache set up that is used for caching package downloads, so that all the machines here don't have to independently redownload everything. The installer prompts for a mirror and proxy. As long as every machine uses the exact same mirror (here, http.us.debian.org) and the proxy then it works.  That's somewhat annoying, as it involves going to 'enter information manually' and typing it in each time (as the installer would do ftp.us.debian.org, which Squid doesn't realize is identical).  The installer defaults to just mirror, is there a way to make that work? So I can be lazy and just hit enter a bunch?


ArcMap "clip to shape" analogue for basemaps in QGIS?

Is there any function in QGIS like ArcMap's Clip to shape?   I want to clip base map like in ArcMap (below)    In QGIS with the same shape (below)


Let G be a group of order 80  a) Show that G has a normal Sylow 5-subgroup or a normal Sylow 2-subgroup b) Show that G is solvable  Approach: $80=5*2^4$  $Syl_5(G) \equiv  1mod \text{ } 5$ and $Syl_5(G) | 16$, so the only possibilities are 1 and 16    $Syl_2(G) \equiv 1 mod \text{ }2$ and $Syl_2(G)|5$, so the only possibilities are 1 and 5  How do we discard one of the possibilities to imply there exists a normal sylow p subgroup in G?


$$ \sum_{i=0}^n {n \choose i} i = n2^{n-1} $$   I am having trouble formulating a combinatorial proof.   An algebraic proof is quite simple, where one expands $(1 + x)^{n}$ and then takes the derivative. Any help with the combinatorial proof would be greatly appreciated.


what am I doing wrong in nginx / docker to get connect() failed (111: Connection refused) while connecting to upstream ? (SSL)

I am trying to solve why I am getting on docker / nginx container error 502 with connect() failed (111: Connection refused) when I setup properly the ssl , but I got this issue . I dont see clerly where it comes from . how can I fix this? upstream web_server {     server web:8000; }  server {      listen 80;     server_name demo.io www.demo.io;      access_log /var/log/nginx/demo.io.log;     error_log /var/log/nginx/demo.io.log;      location / {         rewrite ^ https://$host$request_uri? permanent;         proxy_pass http://web_server;         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;         proxy_set_header Host $host;         proxy_redirect off;     }      location /static/ {         alias /home/app/web/static/;     } } #https://demo.io server {     listen 443 ssl http2;     listen [::]:443 ssl http2;     server_name demo.io;      server_tokens off;      ssl_certificate /etc/letsencrypt/live/demo.io/fullchain.pem;     ssl_certificate_key /etc/letsencrypt/live/demo.io/privkey.pem;      ssl_buffer_size 8k;      ssl_dhparam /etc/ssl/certs/ssl-dhparams.pem;      ssl_protocols TLSv1.2 TLSv1.1 TLSv1;     ssl_prefer_server_ciphers on;      ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5;      ssl_ecdh_curve secp384r1;     ssl_session_tickets off;      # OCSP stapling     ssl_stapling on;     ssl_stapling_verify on;     resolver 8.8.8.8;      location / {         proxy_pass https://web;         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;         proxy_set_header Host $host;         proxy_redirect off;     } }


There is a title for a chapter in a book I'm reading, that reads "SHOULD I DO IT WHILE I'M SICK?". I was wondering, how would this be capitalized using the formatting suggested by the Chicago Manual of Style? I'm mostly just confused about the 'do' and the 'it'.  Thank you very much!


In simple terms, why this code returns False and not true:  a = 10 print(id(a) is id(a)) # why false?   id() returns integer, and same integer vars point to the same integer object. Why it returns false then? What is the difference with:  a = 10 b = 10 print(a is b) # it returns True   Thanks for explanation.


Brothers as authors - Biblatex does not format correctly

so for my academic paper I have one book to cite from which is written by brothers (P. Hüwe & S. Hüwe). The citation style my university wants is for to authors to be diveded by a slash: (Hüwe/Hüwe 2019).  This citation stlye works, but unfortunatly not in this particular case where both authors share the same last name, because it also prints out their first names.  Here is my code:  \documentclass{article} \usepackage[style=authoryear,maxcitenames=2,maxbibnames=99]{biblatex} \DefineBibliographyStrings{ngerman}{     andothers = {{et\,al\adddot}},              }  \DeclareNameAlias{sortname}{last-first}  \addbibresource{biblatex-examples.bib}    \begin{document} \begingroup \renewcommand*{\finalnamedelim}{/} \renewcommand*{\multinamedelim}{/}  normal document text  \cite{Hüwe.2019} \\Doenst work \cite{Yerpude.2019} \\works   \endgroup \printbibliography \end{document}     Anyone knows why this is?


How many 3 digits numbers are equal to the sum of their first digit plus their second digit squared plus the third cubed?

$$100a + 10b + c = a + b^2 + c^3$$  I've tried restricting the range of the values but I couldn't get  a unique solution. I am looking for a formula if there is one. I wonder which is the best way to solve this problem.


Installing Ubuntu in Google Nexus 7 Tablet

i would like to install Ubuntu in my new Nexus-7 Tab, can you please help me with complete installation procedure?


Finding $x$ from inequality: $\left | \frac{3^n + 2}{3^n + 1} - 1 \right | \le \frac{1}{28}$

Find $x$ in $\mathbb{Z}$ satisfying this inequality: $$\left | \frac{3^n + 2}{3^n + 1} - 1 \right | \le \frac{1}{28}.$$  I tried something, but I don't think it's correct. $$-\frac{1}{28} \le \frac{3^n + 2}{3^n + 1} - 1 \le \frac{1}{28}$$ I arrived at: $$-3^n - 1 \le 28 \le 3^n + 1.$$ I don't know if it's ok or not.


Can I miss a connecting flight on purpose?

I have a one way ticket from BKK-TXL with stopover in CGN. I would rather get off in CGN and start my land travel in Cologne going to Amsterdam and other parts of Europe, instead of landing in Berlin. So I would like to miss my CGN-TXL leg on purpose. Is this okay?  Addendum: I will have no check-in baggage and do not have  a return flight. The CGN-TXL is my last leg. Looking at the answers below, seems it is okay for me to purposefully miss the CGN-TXL leg. So thank you everyone.


This is a study question. Let $q(x)=\sum_{i<j}(x_i-x_j)^2$ be a quadratic form over $R^n$. Find the inertia of $q(x)$. I have tried to expand the sum and represent $q(x)$ as a matrix, however I am left then with trying to calculate the determinant of a matrix of size $n\times n$. What is the correct way to begin solving this problem? A hint would be great!


Difference between (in/on/at) "on court", "at school", "in all countries"

Using the three prepositions (in/on/at) when their use is related to the word after them is very confusing to learners.  E.g. in these examples all the prepositions refer to a location:     The players were on court for three hours   Do you feel sleepy at school or at work?   Originally found in all countries   Also, the three prepositions are used to refer to a time like on the weekend, at 7 AM and in the morning.  Is there an easy way to tell which one is correct to use? If not, can someone please lead me to where (a website) I can learn to use them correctly?


I would like to know how to get last generated Id from INSERT using C, ODBC APIs and Sql Server, i already allocated a connection and statement and had it prepared with the insert statement. I would appreciate any example provided.  Thanks in advance.


What is the meaning of "having one's kitten in one's pocket"?

This is an extract from 'The Man Who Knew Too Much' by Alexander Baron:     Corporal Turnbull was a young man, but he was not a man to be trifled with. He had come back from Dunkirk with all his equipment correct and accounted for and his kitten in his pocket.    What does the highlighted phrase mean? The only meaning I could find online was (and I'm not even sure of its validity) that it means 'hiding your anger'. That doesn't seem to be relevant in the stated context.


Click handling function is not initiated

JS fiddle:   let album_images_slider = new Swiper("#album_images_slider", {     direction: "horizontal",     slidesPerView: 1,     loop: true,     allowTouchMove: false,     speed: 600,     autoplay: {         delay: 3000     },      navigation: {         nextEl: ".swiper-button-next",         prevEl: ".swiper-button-prev"     } });  $(function() {     console.log("hello");       $("#album_images_slider").click(function(e) {         console.log("hello, mate!");         console.log(e.target.className);         if (e.target.classList.contains("swiper-slide")) {             console.log("hello!");             $("body *").hide();             $("body").before(`<div class="layer">Hey!</div>`);         }              });          $(".layer").on("click", function() {         console.log("Hi");         $(".layer").remove();     }); });  Block .layer is succesfully displayed on the screen, but for some reason when I click on .layer, .layer click handling isn't invoked. What is the problem? And how can I solve that? Any help would be highly appreciated!


how to order by a dynamic column name in EntityFramework?

I am trying to get following code working , This was working fine for MSSQL , but since i changed to use mySql it is not working    records.Content = db.areas                          .Where(x =>   x.Name.Contains(filter)))                          .OrderBy("dated desc")                           .ToList();   I get the error " Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."   string colName = "datedD" ;    how to order by depneding on colName variable ? `


To check code execution flow of C program in ubuntu

Is there any software available in UBUNTU 13.10 to check line by line code execution of C programs.


Consider the ArrayList below:   static ArrayList<String> credit_num = new ArrayList<String>();   What does it mean to have static before the ArrayList?


Difference in usage of 'such' in 2 sentences that probably mean the same

What is the difference between these 2 sentences?  1. Audi has grown to compete with such cars as Lamborghini. 2. Audi has grown to compete with cars such as Lamborghini.    To me, both sentences seem to mean the same. Is there any unapparent difference?


Is there still no way to uninstall Microsoft Legacy Edge?

Since Microsoft has started rolling out Chromium Edge for everyone having the versions v1803 and above via software updates, so, is there any way to uninstall the Legacy Edge in the lower versions of Windows 10. I am running on v1709 and have installed the new Edge by running the setup file. But the Legacy Edge remained as it has been. Now I have two Edge(s) in my PC and hence trying to figure out to uninstall the Legacy Edge. The last time I tried doing it some months ago didn't  go through well and had to keep the old one. So far, I haven't been able to figure out how this is to be done. Can anyone tell me if this is even possible at all?


Can the focal length be changed while animating?

I would like for the focal length of the camera to shift from 20 to 200 as the animation progresses.  Is this possible ?  Thank you!


Have a look at the MWE example below. I want the text to appear at the bottom of the page rather than on top. I tried the \vfill option, but this does not seem to do the job. Any ideas?  \documentclass{report} \begin{document} \vfill © Copyright by KU Leuven\\  Without written permission of the promotors and the authors it is forbidden  to reproduce or adapt in any form or by any means any part of this  publication.    Requests for obtaining the right to reproduce or utilize parts of this publication  should be addressed to KU Leuven, Faculteit Wetenschappen, Geel Huis,  Kasteelpark Arenberg 11 bus 2100, 3001 Leuven (Heverlee), Telephone +32 16 32 14 01.\\ \end{document}


The function $G: x \mapsto 2^{x^2}$ maps $\mathbb{R}$ onto $\{ x \in \mathbb{R} : x \geq 1 \}$

Let $X = \mathbb{R}$ and $Y = \{x \in \mathbb{R} :x ≥ 1\}$, and define $G : X → Y$ by $$G(x) = e^{x^2}.$$ Prove that $G$ is onto.  Is this going along the right path and if so how do get the function to equal $y$?  $G: \mathbb{R} \to\mathbb{N}_1$. Let $y$$\in $$\mathbb{N_1}$. claim: $\sqrt{\ln y}$ maps to $y$. Does $\sqrt{\ln y}$ belong to $\mathbb{N_1}$? Yes because $y \in \mathbb{N_1}$, $G( \sqrt{\ln y})=e^{(\sqrt{\ln y})^2}$.


How to convert a random number to its corresponding letter?

I have looked up this and not found anything usefule So I want to take a unknown number (1-26) and convert it to its corrosponding letter.  Example:  import random rand_let = random.randint(1,26) print(rand_let) #Insert the numb letter converter here print(rand_let) # This is the changed version output:  3 C


Restricting movement of vertices in blender

So, when I move (lets use a cube as an example,) I move two of the bottom vertices in said cube, it pushes the two vertices above it, causing the entire model to deform. My question, can I lock the two top vertices in place so there is no "pushing" when I move the bottom two?


Prove the set of reals $\textbf{R}$ is not a finite-dimensional vector space over the set of rationals $\textbf{Q}$

Let $V$ be the set of real numbers. Regard $V$ as a vector space over the field of rational numbers, with the usual operations. Prove that this vector space is not finite-dimensional.  MY ATTEMPT  Suppose $V$ is finite dimensional. Thus it is spanned by some set $S = \{r_{1},r_{2},\ldots,r_{n}\}$ of linearly independent real numbers. Therefore any real number $R$ can be written as \begin{align*} R = q_{1}r_{1} + q_{2}r_{2} + \ldots q_{n}r_{n} \end{align*}  where $q_{i}$ are rationals. From there, we conclude that $V$ is countable, once $|V| = |\textbf{Q}^{n}| = |\textbf{Q}|$, which is a contradiction.  Am I on the right track? If so, is there another approach to this problem? Thanks in advance!


Where does the expression "carrot and stick" come from?

I thought it was a Tantalus-like metaphor, suggesting a donkey will walk toward a carrot dangling from a stick forever, given the stick is tied to the donkey. It seems to be used as reward versus punishment metaphor. Why would the average Joe find a carrot a reward?


Evaluating the integral $\int_0^\infty \frac{x \sin rx }{a^2+x^2} dx$ using only real analysis

Calculate the integral$$ \int_0^\infty \frac{x \sin rx }{a^2+x^2} dx=\frac{1}{2}\int_{-\infty}^\infty \frac{x \sin rx }{a^2+x^2} dx,\quad a,r \in \mathbb{R}. $$  Edit: I was able to solve the integral using complex analysis, and now I want to try and solve it using only real analysis techniques.


Replacing a line in an already opened file python

Im trying to rewrite a file while its being used. I'm changing a line in a file which im reading ('students.txt') to a line which is similar the change would look like  Raymond_Red 0000000000000 0   to  Raymond_Red 0000000000000 1   The issue is is that i'm getting this error beacuse im opening a file which is already open using 'fileinput'      PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'students.txt' -> 'students.txt.bak'   I have no idea how to get around this issue. Thanks in advance for your help!   #Code by Byron Dalberg     import time     import fileinput     lunch = str('inout {0}.txt'.format(time.strftime("%Y-%m-%d")))     while True:         variable = input()         with open ('students.txt') as f:             for eachline in f:                 name,inout,rfid = eachline.rsplit(None,2)                 if variable == rfid:                     print("yay")                     if(inout == 0):                         f.close()                         linein = str('{0} {1} {2}'.format(name,inout,rfid))                         lineout = str('{0} 1 {1}'.format(name, rfid))                         for line in fileinput.input('students.txt', inplace=1):                             line.replace(linein, lineout),                         with open('inout.txt','a+') as fp:                             log = str('{0} loggged out at {1}(ID: {2})\n'.format(name,time.strftime("%H:%M"),rfid))                             fp.write(log)                     else:                         linein = str('{0} {1} {2}'.format(name,inout,rfid))                         lineout = str('{0} 0 {1}'.format(name, rfid))                         for line in fileinput.input('students.txt', inplace=1):                             line.replace(linein, lineout),                         with open('inout.txt','a+') as fp:                             log = str('{0} loggged in at {1}(ID: {2})\n'.format(name,time.strftime("%H:%M"),rfid))                             fp.write(log)                 else:                     print("nope")   Thanks in advance!


Does there exists a non-decreasing function which is also nowhere continuous?

Let $g(x) :\mathbb{R}\to\mathbb{R}$ be a non-decreasing function in the sense that $g(y)\geq g(x) \; \forall y \geq x$. Can $g(x)$ be nowhere continuous? My guess is that any such function that is non-decreasing must have at most countably infinite number of discontinuities. Otherwise, it will cease to be discontinuous due to non-decreasing nature. However, I couldn't come up with a rigorous proof of this. Am I right in my guess?   My attempt was to assume that for each $x_0 \in \mathbb{R}$ there exists a fixed $\varepsilon_{x_0}>0$ such that for all $x \in (x_0,\infty)$ we have the relation that $f(x)>f(x_0)+\varepsilon_{x_0}$ by non-decreasing nature because for each arbitrary $\delta$ neighborhood of $x_0$ there is at least one $x'$ in it that satisfies the relation (hence all $x>x'$[non-decreasing] works but $x'$ can be made arbitrarily close to $x_0$). My intuition is that such a strictly increasing relation can only be forced for countable number of points. Is there a nice way to show it? Or I am on the wrong track?  Nvm: This proof strategy is wrong. Take the Floor function.


Can one still deal Non-Lethal Damage if they trigger the Automatic Kill feature?

Related to, but not answered-by,  (the answerer assumes, because many DMs rule that a monster is dead when it hits 0 HP, that Monsters don't get saving throws at all, which is not RAW, but a recognition/recommendation of a common convention). The Nonlethal Rules text reads:  Sometimes an attacker wants to incapacitate a foe, rather than deal a killing blow. When an attacker reduces a creature to 0 hit points with a melee attack, the attacker can knock the creature out. The attacker can make this choice the instant the damage is dealt. The creature falls unconscious and is stable.  However, the Instant Death feature reads:  Massive damage can kill you instantly. When damage reduces you to 0 hit points and there is damage remaining, you die if the remaining damage equals or exceeds your hit point maximum.  Note that it doesn't specify what kind of damage, it just says, "if there's damage remaining." This is usually not an issue in most parties, because, according to the PHB:  Most DMs have a monster die the instant it drops to 0 hit points, rather than having it fall unconscious and make death saving throws.  (Emphasis Mine) However, that is not a hard-and-fast rule, as some DMs roll saving throws for villains, especially if a character or player has qualms about killing, or for a recurring villain, important NPC, et cetera.  Mighty villains and special nonplayer characters are common exceptions; the DM might have them fall unconscious and follow the same rules as player characters.  (Emphasis again Mine) In these cases, the issue still exists. Let's say the Party is tasked with capturing a criminal alive to face justice. Throughout the fight, the Party manages to bring the fugitive down to 1 Hitpoint from his 20 HP maximum, and then the Party's Fighter goes to knock him out once and for all with his Great Sword... and crits. He rolls damage and ends-up dealing a staggering 22 points of damage. Now, can the Fighter only knock-out the wanted criminal, or does the Party now have to figure-out how to convince the council that the convict is not, in-fact, dead, and simply "really, really knocked out," Arkham Asylum-style.


Affine open for arbitrarily chosen 2 points on a scheme

Let $X$ be a reduced scheme. If there are arbitrarily chosen two points $p_1, p_2 \in X$, does the following always hold?  Q. There exists some affine open neighbourhood $U$ such that $U \ni p_1, p_2$.  I know this holds when ${\mathrm{dim}}. X = 1$, and when $p_i$ are generic points of divisors, or irreducible components, still holds.   However, I have difficulty to prove this when $p_i$ are maximal ideals, i.e., points.


Can we un-install non critical applications and add our own?

Can we un-install non critical applications and add our own application in Ubuntu 14.01 and then redistribute and sell it to people over the web without any legal issues?


I want to enter text in search text box and click search icon or enter

I am facing the issue . Kindly assist. The HTML Code snippet is attached I am getting the error as  Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@id='search']"} The code //click login button     driver.findElement(By.id("save_sla")).click();     driver.manage().timeouts().pageLoadTimeout(120, TimeUnit.SECONDS);     WebElement wb=driver.findElement(By.xpath("//input[@id='search']"));              WebDriverWait wait=new WebDriverWait(driver,30);      wait.until(ExpectedConditions.elementToBeClickable(wb)).sendKeys("xyz");     driver.findElement(By.xpath("//i[@id='search001a']")).click();


Allowing values to bypass tabular column alignment

I have 8 columns in my table and everything fits perfectly except the very last value, which is about 5 columns long/wide (it's a very long binary string) and it's on the last row all by itself, I want it to be aligned like all the other values in the first column and just trail off, but tabular is pushing the second column all the way to the end of this one long string. It's understandable, it's just doing what it's programmed to do, but can I tell tabular to ignore how long this last value is so it can pass freely through all the columns without disrupting them?  \documentclass[10pt]{article} \usepackage{verbatim}  \begin{document}  \begin{table}[] \begin{tabular}{l|llllllll} \hline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \emph{utf-8}     & \verb s        & \verb          & \verb |        & \verb =        & \verb ~        & \verb w        & \verb          & \verb Ù        \\ \hline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \emph{hexadec}   & \verb 73       & \verb 89       & \verb 7C       & \verb 3D       & \verb 7E       & \verb 77       & \verb 87       & \verb D9       \\ \emph{decimal}   & \verb 115      & \verb 137      & \verb 124      & \verb 061      & \verb 126      & \verb 119      & \verb 135      & \verb 217      \\ \emph{binary}    & \verb 01110011 & \verb 10001001 & \verb 01111100 & \verb 00111101 & \verb 01111110 & \verb 01110111 & \verb 10000111 & \verb 11011001 \\                  & \verb 0111001110001001011111000011110101111110011101111000011111011001 &                                                              \\ \end{tabular} \end{table} \end{document}


Show that $\lim\limits_{x \to \infty} \frac{\lfloor x \rfloor}{x} = 1$

I know that $x-1 < \lfloor x \rfloor \leq x$ hence  $1-\dfrac{1}{x}<\dfrac{\lfloor x \rfloor}{x} \leq 1$ for $x>0$. I think it is easy to see from this that the limit should be 1 but I don't know how to formally prove this.


why do my led lights stay on, even when the switch is off, and what does that cost to my bill

I'd like to know what the cost implication there is in continual use of my led fitting that remains partially on even when the switch in off


Installing okular via apt-get on bionic gives me

On Ubuntu 18:04 Bionic (installed as a Singularity container) I issue   apt-get install okular   and I get the message "E: Unable to locate package okular".  Why? Is okular not in the apt repositories any more? How do I install it then?


Python: Calling the __init__() method of a base class using super() when it requires arguments

I am trying to call the __init__() method in a superclass, where said method takes arguments, but it doesn't seem to be working. Please see the code below:  >>> class A:         def __init__(self, param1, param2):             self._var1 = param1             self._var2 = param2  >>> class B(A):         def __init__(self, param1, param2, param3):             super(B, self).__init__(param1, param2)             self._var3 = param3   >>> a = A("Hi", "Bob") >>> a._var1 'Hi' >>> a._var2 'Bob' >>>  >>> b = B("Hello", "There", "Bob")  Traceback (most recent call last):   File "<pyshell#74>", line 1, in <module>     b = B("Hello", "There", "Bob")   File "<pyshell#69>", line 3, in __init__     super(B, self).__init__(param1, param2) TypeError: must be type, not classobj >>>   I have never been able to get this to work. What am I doing wrong? I would ideally like to use super() over A.__init__(self, <parameters>), if this is a possibility (which it must be).


Help me repair my USB pendrive! i am on ubuntu 18.04

I am on Ubuntu 18.04. I was trying to transfer files using my pendrive , which I previously used to install Ubuntu on my laptop. But later formatted using Android phone.   When I was trying to transfer files (some videos) it got stuck, so I removed the pendrive from USB slot. And then tried to format it using Android phone.   But now the phone could not format it. And when inserted in Ubuntu it showed :  Unable to access "device" error mounting /dev/sdb2 at media/pc_name/pendrive_name : wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or helper program , or other error.    How can I repair my USB?


How to prove $n^2$ is bigger than $ n\log n $?  Do I have to use L'Hôpital's Rule?  Can you give me an idea?


Over how much time should I dollar-cost-average my bonus from cash into mutual funds?

I just cleared about $65k from my bonus.  I don't want this sitting in cash, but at the same time prefer to move into stocks/bonds over time (e.g. I don't want to invest all $65k at one price, and risk doing it when the market is at a short-term high.  I'd rather spread the risk out over time - i.e. typical reasons for dollar cost averaging).  I already invest $120/day in an S&P 500 fund, and $150/week in an emerging markets fund (this is factored out of my normal take home pay).  If it's relevant, I have a net worth of about $725k so the bonus amount is considerable.  How long is reasonable to spread out the investment of the $65k bonus?  And is there any intermediate place I should put the money rather than a savings account?  Some additional information:   Yes, I expect yearly bonuses like this for the foreseeable future (as long as I stay at my current job).  I'd roughly expect the bonus amount to increase at a rate of 10-15% per year.  I'm currently 33.  So retirement is a ways off, obviously.


If U1, U2, U3 are iid Uniform[0,1], then what is the probability of U1+U2>U3?

This is what I have so far.The distribution function of U1+U2=Z is  $$ f_Z(z) = z_{I[0,1]}+(2-z)_{I(1,2]} $$  I also have $$P[U_1+U_2>U_3] = E[I(U_1+U_2>U_3)]=E[E[I(U_1+U_2>U_3)|U_3]]=E[P[U_1+U_2>U_3|U_3]]$$  But I'm not sure how to calculate this expectation, or the probability inside the brackets. Help would be much appreciated!


Some text lines are italicized with no spaces between words

Some lines in my document are italicized, with no spaces between words, and continue after the edge of the document. The rest of the document is fine. Here is the beginning:  \documentclass[runningheads]{llncs} \usepackage{graphicx} \usepackage{float} \usepackage{tikz} \usetikzlibrary{arrows} \usepackage[explicit]{titlesec} \usepackage{amsmath,amssymb} % define this before the line numbering. \usepackage[width=122mm,left=12mm,paperwidth=146mm,height=193mm,top=12mm,paperheight=217mm]{geometry} \begin{document} \pagestyle{headings}   And then, for example:   \subsection{b)}\\  \\  Given that h(n) is admissible, the algorithm will be optimal for:\\  f(n)=(2-w)[g(n) + w/(2-w)h(n)]  \\  when w/(2-w) \leq 1, that is when w \leq 1 the algorithm is optimal.\\ It        behaves like an A* algorithm following the heuristic:  f(n) = g(n) + w/(2-w) h(n)   And below is the result:    Any help is appreciated!


I am trying to solve the following problem: Suppose A is a set, and for every family of sets F, if ∪F = A then A ∈ F. Prove that A has exactly one element.  However, i can come up with a counterexample. Suppose A = {1,2} and A ∈ F. Then ∪F = {1,2} = A. Do you think the author made a mistake or am i the wrong one here ?


Why the new hard drive has to be partitioned if I don't need any logical partitions?

Sorry if this question seems to be a silly one. But I want to clear my doubt regarding the relationship between partitioning and the file system.  These days almost all the hard disks come with a single partition by default. But why at least one partitioning is needed if I intend to use the whole hard disk and if I don't need any logical partitions?   To store files on the hard disk, isn't it installing the file system is enough by formatting it with a particular file system?. To install a file system why the partitioning has to be done? Somehow I didn't understand the logic between the file system and the partition. I think the partition is required only if you need the hard drive to be divided logically.   Could you please provide me any technical explanation on why the partition is required?  //Karteek


I really want ubuntu 12.04 for the LTS but am I able to dual boot it on windows 8? I have already tried 12.04 and a few others.


If $a, b, c$ are integers, $\gcd(a,b) = 1$ then $\gcd (a,bc)=\gcd(a,c)$

If $a, b, c$ and $k$ be integers, $\gcd(a,b) = 1$ and $\gcd(a, c)=k$, then $\gcd (bc, a)=k$.


Understanding the significance of very small p-values

I have calculated p-values of two independent groups (each group contains 17 samples and each sample is 100 points). I used scipy's . Further, I combined the p-values using  as suggested by one of my colleagues. However, the p-values are just too small to make any sense to me. Here is a sample output:  import scipy.stats as stats p_value_list = [3.3629559156133476e-56, 1.966307600030748e-254, 6.3484089727582271e-103,                  3.1221165197874102e-92, 5.8797795864262639e-128, 4.0807369798923832e-130,                  1.205918004734663e-187, 8.9953478731039129e-19, 2.1492251770664035e-127,                  0.11623743456915718, 6.182421882338173e-13, 3.7920992534448722e-112, 3.5888837913096105e-97,                  7.5565994692959197e-134, 0.0026669650138866794, 4.0844220972198632e-16, 4.583685848455044e-95] results= stats.combine_pvalues(p_value_list) print (results)   Which gives the following output (p is zero!)  (7172.864625387464, 0.0)   Now, my questions are:   What is the meaning of small p-values (something like 1.2e-187)? How to interpret a p-value that is zero? Since I am writing a paper based on this calculation, how can one report this in a peer-reviewed journal?


Card example:   There are a lot of cards that use counter as a noun. I did some Googling but I'm just not clear on what I need to use for counters.  Are they physical things I can buy and if so, what is a good online resource?  Can I just make do with coins or something?


The "Apply Modifiers" button not appearing

I am in Object Mode and still unable to apply modifiers. the buttons are gone... what am I missing?


How do i create the legs and the circle circle thing below the cushion?

[![enter image description here][1]][1] help me model this! [1]:


I'm very new to this topic Operational Amplifiers. Just started studying for my 4th semester. Can someone please explain to me why there is a virtual ground at  the node after Rin. What is the reason for that?


Real Roots of Complex Variable Equations

Prove that the equation tanz=z has only real roots....I am stuck on this so any help would be nice... Many things do not work  for example one cannot just graph like in calculus and look at the intersection points.....


Export and reuse overloaded functions of a js file in another js file

I am trying export all the overloaded functions of a js file. So that I can reuse them in other js files. But, whenever I am trying to call any function.then the highest parameterized function is getting called every time.  reusefun.js  exports.getMessage = function(val1) {    return val1; } exports.getMessage = function(val1,val2) {    return val1+ " " +val2; } exports.getMessage = function(val1,val2,val3) {    return val1+ " " +val2+ " " +val3; }   Suppose I am using this file like below  myfile.js  const re = require('./reusefun); console.log(re.getMessage("a"));   Then getMessage(val1,val2,val3) is getting called instead of getMessage(val1) .


How can I model a helical helix, helicity on several levels, with a script?

The shape I wish to model is something like a     That is helicity on (at least) two levels. I would prefer an algorithmic way, since the parameters of the model will be changed.


javax.servlet.ServletException: bean [name] not found within scope

I'm getting this error:  javax.servlet.ServletException: bean not found within scope   on a page with this at the top.  <jsp:useBean id="bean" type="com.example.Bean" scope="request" />   The class exists in the classpath, it worked this morning, and I don't get what not found within scope means.  How is this caused and how can I solve it?


Electrical current leaking from light fixture when off

I recently migrated from Incandescent to LED light bulbs. I changed my old dimmer switches to LED compatible dimmer switches (all 3-ways). When on, the lights work fine, but when turned off, I noticed a very faint and permanent glow being emitted by the light bulbs. I tried changing the light bulbs and/or the dimmer switches but with no luck. I'm thinking that the green light present on the switch and activated when the switch is turned off is causing this leakage. Does anyone have a clue on how to fix this issue?  thanks!


Showing that the intersection of all subgroups of order $n$ is normal

I have been thinking about this problem:  "Suppose that a group $G$ has a subgroup of order $n$.  Prove that the intersection of all subgroups of $G$ of order $n$ is a normal subgroup of $G$."  Unfortunately, I don't have much of a start.  I know that the intersection will be a subgroup of each of the subgroups of order $n$, and thus will have order dividing $n$.  I also know that conjugation preserves the order of elements, which suggests that $xNx^{-1}$ could be a subset of $N$ ($N$ being the intersection of all subgroups of order $n$), but I don't see why conjugation necessarily takes elements of $N$ to other elements of $N$.  I'd really appreciate a hint on how to go about showing this.  Thanks.


Angular2 , How to prevent from HTTP redirection

I am trying to simulating user login by angular2 Http. let describe situation as bellow. i have a php application that users can login throw http://sample.com/login.php url (a form exist with username and password input, user should fill inputs and press submit button)  and if login is success, they redirect to http://sample.com/dashboard.php.  so i create a Http post with a form data that has "username" and "password" within. and set Http header content-type as application/x-www-form-urlencoded. login works fine and request automatically redirect to http://sample.com/dashboard.php . problem is that  i need to access first request response header(), but the Http response me the second request response header  (). is that any way to prevent Http from redirecting? or throw error on status 302 ?  var headers = new Headers({'Content-Type':'application/x-www-form-urlencoded'}); var options = new RequestOptions({ headers: headers }); Http.post("http://sample.com/login.php",'username=admin&password=123' , options)     .subscribe(success => {         // success and return redirected response         // response of http://sample.com/dashboard.php     }, error => {         // error handler     } );


How to parallelize the for loop while scp the files?

I am running my below shell script from machineA which is copying the files machineB and machineC into machineA. If the files are not there in machineB, then it should be there in machineC.  The below shell script will copy the files into TEST1 and TEST2 directory in machineA..  #!/bin/bash set -e  readonly TEST1=/data01/test1 readonly TEST2=/data02/test2 readonly SERVER_LOCATION=(machineB machineC) readonly FILE_LOCATION=/data/snapshot  dir1=$(ssh -o "StrictHostKeyChecking no" david@${SERVER_LOCATION[0]} ls -dt1 "$FILE_LOCATION"/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] | head -n1) dir2=$(ssh -o "StrictHostKeyChecking no" david@${SERVER_LOCATION[1]} ls -dt1 "$FILE_LOCATION"/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] | head -n1)  echo $dir1 echo $dir2  if [ "$dir1" = "$dir2" ] then     rm -rf $TEST1/*     rm -rf $TEST2/*     for el in $test1_partition     do         scp david@${SERVER_LOCATION[0]}:$dir1/pp_monthly_9800_"$el"_200003_5.data $TEST1/. || scp david@${SERVER_LOCATION[1]}:$dir2/pp_monthly_9800_"$el"_200003_5.data $TEST1/.     done     for sl in $test2_partition     do             scp david@${SERVER_LOCATION[0]}:$dir1/pp_monthly_9800_"$sl"_200003_5.data $TEST2/. || scp david@${SERVER_LOCATION[1]}:$dir2/pp_monthly_9800_"$sl"_200003_5.data $TEST2/.     done fi     Currently it copies the file from machineB and machineC into machineA TEST1 directory first, and if it is done, then only it will go and copy the files from machineB and machineC into machineA TEST2 directory.. Is there any way I transfer the files both in TEST1 and TEST2 directory simultaneously?  I am running Ubuntu 12.04


Is it possible to turn off auto-start for some (but not all) app servers deployed on Tomcat?

I want to deploy multiple versions of an app server on my local machine for development purposes (testing for compatibility, etc). I've got about 5 that I'll want to have installed at any given time, but really only need 1 or 2 of them on a day to day basis. I'd rather turn on/off the others on demand.  Originally I had problems deploying them all when I ran into memory issues, but setting -XX:MaxPermSize=256m took care of that. Now I've realized I don't need them all at once.  Is there a way to specify that certain applications should not auto-start?


Remap [Function] key on a Gateway laptop

Since the motherboard on my HP laptop died, I'm temporarily using my wife's Gateway laptop.  It's a nice little computer, except the [Function] key is at the bottom left of the keyboard, where the CTRL key should be, and the CTRL key is next to it.  I know that the [Function] key is not interpreted by the OS, only at the hardware level, so is there any way to switch these keys?  Having the [Function] key there is SO unnatural.  OS: Windows 7 Ultimate RTM  Thanks for any help!!


Give Non Root user access to start mysqld service

I have a Non Root User abc and want to give the user sudo rights only to restart, start or stop - mysqld service. i.e sudo service mysqld restart. How can I do it so?     I would like to do the same to usergroup too!!


Have notification bars gone wonky after recent failover tests?

Since yesterday's downtime, my notification bar indicates one unread message, always. Opening the dropdown shows that all messages are read. The indicator resets when the dropdown closes then, but reappears when the next page is loaded.  Notifications about reputation changes are apparently not visible on the bar anymore.  Logging out and back in has not had any effect, nor did a switch to a different browser.  Have you guys faced similar issues?


Are there any alternate compiler implementations for the Tex language? I know that there are variants (Luatex for instance), but do they all share the same codebase with Tex/Pdftex? What about Xetex, is that a completely separated implementation in terms of code base? Does it target the exact same language, or are there differences in what they support?  Edits to clarify:   with "alternate implementation", I mean a program that shares little or no code with the standard pdftex. Something rewritten from scratch (possibly in another language). I mean something that I can use to compile a real-world document in. If I understand correctly, Latex is a macro system based on Tex, so an alternate compatible implementation of Tex should be able to run these macros with little or no changes. I don't know what you mean with "any Tex format". Do you mean output formats? The example I have in mind is multiple compilers for the same language (e.g., Cpython or Pypy). For instance, there are many C compilers around; the two main ones are GCC and Clang. You can literally take the same C program and compile it with either of them (with very few exceptions regarding nonstandard features). Clang is a relatively new implementation, that provided in some cases greater speed and better error messages.  is certainly relevant, but I don't find any mention to the similarities/differences between these engines. Are they all minor improvements to the same codebase, or five completely separate implementations? Can I take the same file (a simple Latex document, for instance) and compile it with either of them without changes?


Example of LaTeX code that does not compile

In the excellent  to the question  he said that     [t]his is not completely foolproof and there are examples around of cleverly written documents that never stabilize: each new run of LaTeX will change the page number associated to a label so it never remains the same. However, the chances that this happens in a real document are pretty small.   Does anyone happen to have such an example of source code?  I see how this works and I thought about this several times, but I was not able to simply create a document where this happens.


I've gone through all possible ways for having the regular expression for the url validation, but I didn't get any.. what I need is the url can be like  google.com http://google.com https://google.com http://www.google.com https://www.google.com   but it should not allow if it is just google  finally the thing is the .extensions are mandatory  I've tried this /^[a-z0-9-]+(.[a-z0-9-]*)(.[a-z0-9-]*)$/  can anyone help me in this case..


Many recent maps I have seen have these neat two-way color gradients that can be used to color correlations between continuous estimates.  Here is an example is taken from a recent publication.  Christian Levers, Pieter J. Verkerk, Daniel Müller, Peter H. Verburg, Van Butsic, Pedro J. Leitão, Marcus Lindner, Tobias Kuemmerle - Drivers of forest harvesting intensity patterns in Europe. Elsevier. 1 March 2014 (access: ).    I believe those gradients have been generated with ArcGIS 10.x and I was wondering how I could reproduce such color gradients with freely available GIS tools (or at least those available on Linux)?  Happy to hear suggestions or code snippets.


How do I deploy PIR sensors to track people's entrance and exits of a room?

I want to deploy sensors to the door to a private room in order to track people's presence in the room. These are the requirements:   sensors must be outside of the door; it should detect both entrance and exit or whatever it takes to know there are someone in the room; due to the nature of the room, it can be assured that at most one person will be in the room at one time; the sensor should be able to communicate with a computer using either wifi or other wireless medium.   It has been pointed out by this post () that PIR sensors can be the solution. However, I know very little of electrical engineering. I'd really appreciate it if you could explain this in details, e.g. what components to buy, where I can buy them, how do I collect the sensor data from a laptop using wireless media, etc.  I have a background in computer science, so the actual coding should be less of a problem.


Why didn't Harry show Cornelius his memory of what happened at the Graveyard?

After coming back from his duel with Voldemort, Harry was scorned at by Cornelius Fudge. There are 2 questions here:    I'm talking about Barty Crouch Jr.'s confession in point 1   Why didn't Harry, Snape, McGonagall or Dumbledore extract their memory of the event? I know memories can be tampered with, so that Fudge might have used that as an excuse if one of the 4 mentioned extracted it, but 4 separate, identical memories would be much harder to tamper with and keep identical, wouldn't they? Especially as Harry probably has no idea on how to tamper with memories. Why didn't Harry extract the memory of what happened at the Graveyard with Voldemort? It would give Dumbledore much more insight and knowledge into what happened, instead of going off of Harry's account of it? I don't think the magic to extract a memory would have been hard either, seeing all the difficult magic Harry has done previously.


Problem with OneDrive. Recently I've installed OneDrive in my PC (Ubuntu 17.04) but I'm not able to configure or not able to sign in OneDrive through the terminal. Actually I've strucked here. Please look on to this  jujube@jujube:~$ onedrive Authorize this app visiting:  https://login.live.com/oauth20_authorize.srf?client_id=000000004C15842F&scope=onedrive.readwrite%20offline_access&response_type=code&redirect_uri=https://login.live.com/oauth20_desktop.srf  Enter the response uri: https://login.microsoftonline.com/189de737-c93a-4f5a-8b68-6f4ca9941912/oauth2/authorize?client_id=00000003-0000-0ff1-ce00-000000000000&response_mode=form_post&response_type=code%20id_token&resource=00000003-0000-0ff1-ce00-000000000000&scope=openid&nonce=1263013103B7E6782803F03D5629B7D0FB1A68D46E17D09C-4B1B73911F92DE22FA330783ACEDE04C7C9991BB38BA7FCD9E3A9A900E0DB6AC&redirect_uri=https:%2F%2Fhclo365-my.sharepoint.com%2F_forms%2Fdefault.aspx&state=0&client-request-id=3fc31b9e-70d1-4000-78af-c23eabf4934b Invalid uri Could not initialize the OneDrive API jujube@jujube:~$


Make the android questions widget handle my imprecise fingers

Love the new questions widget, but it looks like I have to be very precise when tapping to refresh the question. I have to hit the icon dead on; tapping above, below or to the right behaves as if i'd tapped the question.  Please give me a bit of leeway when tapping to refresh.


How long do I have left to save Bottle & Cappy?

With the last update of Fallout Shelter, Bethesda has added these "limited time" quests.  Question is, how limited is that time exactly? What happens when the quests "end", will it still be possible to get the benefits?


Can I purchase a domain separately from hosting and put them together later?

I want to create a blog with my own domain.  I will need to purchase both the domain name and hosting for the blog.    What is the difference between the purchasing a domain only and the purchasing both a the domain and a hosting service together?  Could I purchase the domain only to lock it and add the hosting service later?


I have two Tables TABLE 1 ID       Name 1001     XYZ 1002     ABC  TABLE 2 ID    GAME   1001   A      1001   B        1002   A       I want the outcome of two tables join as ID   NAME   GAME1    GAME2    1001 XYZ     A        B        1002 ABC     A          I tried with a simple join and it gives me multiple rows for 1001 and 1002 Query SELECT t1.ID, t1.Name, t2.Game FROM t1, t2 WHERE t1.ID = t2.ID  1001  A 1001  B 1002  A  NA  Actual O/P 1001  A 1001  B 1002  A  Expected O/P ID   NAME   GAME1    GAME2    1001 XYZ     A        B        1002 ABC     A


Steps (with screen shots) to merge MyOpenID account into social network accounts/email providers accounts

If you have taken the time to merge your MyOpenID StackOverflow (and StackExchange) account into a social network account such as Google or Facebook, can you describe the workflow (maybe with screen shots)?  Many will be confused on February 1, 2014, so I thought having a question and some answers with a solution will be nice to have.  I will take the time soon and do it myself.  I'm sure there will be answers for the following account types, unless someone takes the time to answer for all of them.  Facebook, Google, Twitter, LinkedIn, Yahoo  Note, this question doesn't show you the steps to merge, so it's not entirely helpful to save hundreds of millions of users time.    See this for reference:    Quote from site above:  We have made the decision to end of life myOpenID, and the service will be turned off on February 1, 2014.  In 2006 Janrain created myOpenID to fulfill our vision to make registration and login easier on the web for people. Since that time, social networks and email providers such as Facebook, Google, Twitter, LinkedIn and Yahoo! have embraced open identity standards. And now, billions of people who have created accounts with these services can use their identities to easily register and login to sites across the web in the way myOpenID was intended.  By 2009 it had become obvious that the vast majority of consumers would prefer to utilize an existing identity from a recognized provider rather than create their own myOpenID account. As a result, our business focus changed to address this desire, and we introduced social login technology. While the technology is slightly different from where we were in 2006, we are confident that we are still delivering on our initial promise - that people should take control of their online identity and are empowered to carry those identities with them as they navigate the web.  For those of you who still actively use myOpenID, we can understand your disappointment to hear this news and apologize if this causes you any inconvenience. To reduce this inconvenience, we are delaying the end of life of the service until February 1, 2014 to give you time to begin using other identities on those sites where you use myOpenID today.


Clone hard drive to another, smaller hard drive

Is there a good tool/program that allows me to clone a system drive to another, smaller hard drive?  I've bought a new 64GB SSD drive and would like to move my current Windows 7 Professional 64-bit installation to that new drive. My current drive is a 200GB SATA drive with one partition only. Of course there's enough free space to shrink my current partition to less than 64GB.


How to recover data after memory module errors

My linux PC has suffered the occasional application crash, desktop crash, and kernal panic over the last few months. I also started noticing error dialogs on login, and some parts of the desktop do not look the same. Over the last week, this crash rate has increased to more than 3 per day, so I investigated with logs and diagnostics.  The MemTest86 program indicated a memory module fault. I removed the faulty module and my system is now stable.  My problem is there are many inital errors and small failures (eg: cups printing, an icon missing from the toolbar, the purple bacground disappeared from the Ununtu boot screen, etc), that suggest bit errors during configuration writes or apt-get upgrade binary updates.  Is there a apt-get checksum all-packages type command that can check my binaries with a global repository (and perhaps re-install corrupted files)?  Debian installs have the debsums utility (as mention here: ). Is there a similar utility in the Ubuntu world (using "apt")?  I would like to avoid a complete re-install of OS and all applications.  OS: Ubuntu 14.04.2 LTS (14.04) 64 bit


I noticed in the revision history of one of my questions that it said     Tweeted twitter.com/StackMovies/status/etc.   I also noticed that the question was on the Hot Network Questions and was wondering if the fact that it was tweeted meant that it is one of the HNQ's. Does anyone know?


I've tried lots of things, but it just wouldn't work.  I'm going to properties and then to permissions but the executable check box isn't there. All there is in the permissions tab is:  general emblems permissions owner: name access: ethier (none,read only,write only,read and write) group: name access: ethier (none,read only,write only,read and write) others: etheir (none,read only,write only,read and write)   How to install Minecraft?


Identify SciFi story where Genetic Engineering created Fantasy monster like dragons

Once again I am trying to find about a story I read decades ago in translation (I do not remember the title in Italian, either). The main topic was a world where genetic engineering had starter producing "Fantasy" creatures (including satyrs, dragons) until for some reason tech-based civilization collapsed and the survivors were living in something that superficially resembles a Fantasy world.  If memory serves the book opens with a short scene where three "creatures" (including, but I am not sure anymore, a sort of werewolf) kill the family of the protagonist.   --- Some extra info as per requests in comments  a) It was probably a novel, definitely not a short story: it is difficult to say because it was published as part of a series that churned out lots of (translated) American and British works... but unfortunately in order to keep the throughput costant and make the page number more or less uniform, the editors often made extensive cuts to the original content (e.g. a couple of chapters completely removed from "The Shrinking Man"). For fellow Italians: Yes,  I am talking of .  b) As per point (a): it is difficult to know the publishing date of the originals - Urania started publishing in 1952 but they often reprinted their content so in 80s you could still get an "Issue" with a story that had been originally published 10 years before, and whose American first edition was maybe even older. I think that the original was maybe from the 70s (I doubt that Genetic Engineering was really a common trope in the 60s), but I really have no idea.


What is the best way to partially copy a JS object?

I'm working on a NodeJS project (using @babel/preset-env) and need to figure something out: If I have two objects, one of them identical to the other but possibly minus some fields (depends on input object), how do I edit the "larger" one such that its fields are changed to the values of the matching ones from the smaller object? That's probably worded badly, so here's an example...say I have these two objects: const obj1 = {     a: 1,     b: 2,     c: 3,     d: 4 }  const obj2 {     b: 'hello',     d: 'world' }  What I'm wanting to do is modify obj1 in this instance such that the values of obj1.b and obj1.d get updated with the values from obj2. Is there a way to edit the values directly, or should I just create a copy of obj1 and set values depending on whether or not they exist in obj2?


This question is inspired by my use of LaTeX, where you usually share the generated PDF, not the source file. I want my .docx documents to be source files, with PDFs being the files to share. Thus I would like to have MS Word making a PDF with the same document name every time I save the .docx file. Is there a way to obtain such a behaviour? I'm on a mac, but it'd be nice to be able to do this on a Windows based computer as well.  Example: If I make a new document which I name mydocument.docx, then MS Word makes a copy in the same location named mydocument.pdf. The PDF will be saved and overwritten for each time I change and save mydocument.docx. A somewhat make-like action?


Are enemies with immunity to the Poisoned condition unaffected by Contagion?

After the , the spell  now inflicts the  condition upon a successful melee spell attack. The relevant spell text is below, with updated portions highlighted in bold:  Your touch inflicts disease. Make a melee spell attack against a creature within your reach. On a hit, the target is poisoned. At the end of each of the poisoned target's turns, the target must make a Constitution saving throw. If the target succeeds on three of these saves, it is no longer poisoned, and the spell ends. If the target fails three of these saves, the target is no longer poisoned, but choose one of the diseases below. The target is subjected to the chosen disease for the spell's duration. Since this spell induces a natural disease in its target, any effect that removes a disease or otherwise ameliorates a disease's effects apply to it.  The wording of the spell leads me to conclude that this spell still inflicts a disease, which has the immediate effect of poisoning the target. Therefore, even if a target has poison immunity, they will still make Constitution saves as designated to see if the disease takes effect. However, the line, "At the end of each of the poisoned target's turns..." also leads me to think that an enemy with poison-immunity cannot be the Poisoned target, therefore disallowing the remaining sequence of events. Are targets with immunity to the Poisoned condition therefore immune to contagion?


We need to interface to 3rd party app, but company behind the app doesn't disclose message protocol and provides only Windows DLL to interface to. Our application is Linux-based so I cannot directly communicate with DLL. I couldn't find any existing solution so I'm considering writing socket-based bridge between Linux and Windows, however I'm sure it is not such a unique problem and somebody should have done it before. Are you aware of any solution that allows to call Windows DDL functions from C app on Linux? It can use Wine or separate Windows PC - doesn't matter. Many thanks in advance.


Why does my generic avatar keep changing?

I am using a generic avatar, and it changes daily. Is this a feature or a bug?


If $f$ takes Cauchy sequence to Cauchy sequence then $f$ is continuous

If $f:X\to Y$ takes Cauchy sequence to Cauchy sequence then prove that $f$  is a continuous function.  Let $x_n$ be a  sequence in $X$ such that $x_n\to x\implies x_n$ is Cauchy $\implies f(x_n)$ is Cauchy but that does not guarantee that $f(x_n) \to f(x)$ .  So how is the above result true. Please help.


How can I see that $${2^k-1\choose a}\equiv 1\mod 2$$ for $0<a<2^k$?  I tried playing around with ${2^k-1\choose a}=\frac{(2^k-1)!}{a!(2^k-1-a)!}$ but it didn't get me very far.


Command Block conditionals - doesn't work with quotation marks

I need help with this command:  /setblock 262 73 -253 command_block[facing=east,conditional=false]{Command:"/execute if block 258 73 -254 chest{Items:[{id:"minecraft:tripwire_hook"}]}"} replace  Could someone fix this for me? I have tried for hours and can't get it to work. It's supposed to place a command block with the command /execute if block 258 73 -254 chest{Items:[{id:"minecraft:tripwire_hook"}]}, but it just won't work. It needs to be facing east, with its conditional set to false. I did that, but it still won't work.    Note: my Minecraft version is 1.14.2


MLE when the density is $f(x;\theta )=\theta x^{\theta−1}$

Working through this given problem on maximum likelihood estimation (MLE). The density is given as  $$f(x;\theta) = \theta x^{\theta -1} $$ transforming the above equation to MLE, we have  $$L(x;\theta) = \prod_{i=1}^{n} \theta x_i^{\theta - 1} = {\theta}^n \prod_{i=1}^{n} x_i^{\theta - 1}. $$ Taking $\ln$ $$ \begin{align} \ln L(x;\theta) &= \ln{\theta}^n +\ (\theta - 1) \sum_{i=1}^{n} \ln(x_i)\\ \end{align}$$ then we have $$L'(x;\theta) = {n \over \theta} - \sum_{i=1}^{n} \ln(x_i). $$ $$\theta = {n \over \sum_{i=1}^{n} \ln(x_i)}. $$  Is it correct? How can I apply the law of the strong numbers in this case :? Thanks for any help


Fibonacci numbers written as sums of binomial coefficients

So I came across this formula of Fibonacci numbers as a binomial sum [1] [2]   $$ F_n = \sum_{k \mathop = 0}^{\lfloor {\frac {n - 1} 2} \rfloor} \dbinom {n - k - 1} k $$  I'm not really sure that this formula actually valid, I've computed some of the first terms and they don't look very much like Fibonacci numbers to me.  Maybe the identity is wrong, but several places have it stated in the same way. Does anyone know more about this identity? Thanks    #!/usr/bin/python3 from math import factorial, floor  def c(n,k):     return factorial(n)/(factorial(k)*factorial(n-k))  def f(n):     s=0     for k in range(floor((n-1)/2)):         s += int(c(n-k-1,k))     return s  for n in range(1,6):     # computing F(n)     print(f(n))   And the output is  0 0 1 1 4   [1]   [2]


I have submitted a paper to a very reputed publication of electrical engineering via ScholarOne.The status of my paper changed from "Awaiting AE assignment" to "Under Review" directly. Does it mean that is under the review of editorial office? Could it change from Awaiting AE assignment to Under Review directly without AE being assigned ?


How do I install Idle on ubuntu the ide that comes with python?

I'm new to ubuntu and I don't know how to install .tar.gz files + I already have python installed from pycharm I guess.  I read that you can't install python twice it will mess up everything ...  Also why I'm I restricted to posting question every 40 minutes?


How do I move my family to Lakeview Manor?

I have my first house in Whiterun, and I built a children's room there. I also have Lakeview Manor and built the children's beds and chests there too. Now I'm attempting to adopt, and the only home I can put a child in is the house in Whiterun. I would prefer to use my other home though. Is there a way to change which house they go in?


Javascript array length in click-function

I'm having a hard time understanding this code. Could someone try to explain why an array can have elements and 0 length?  var myArray = []; myArray["hello"] = 4; myArray["world"] = 65; $('#btn').on('click',function() {     console.log(myArray.length); // Prints 0     console.log(myArray); // Prints [hello: 4, world: 65]     console.log(myArray.length); // Prints 0  }


Alternative quicker workflows to the standard Buffer tool in ArcGIS for Desktop 10.3

I have a point layer representing oil and gas exploration wells containing 500,000 features and have created a 50km dissolved buffer polygon to use in another workflow:   The completion time for the buffer was 16 hours, of which is unacceptable as the process would form part of a script.   Are there any quicker more efficient alternative workaround workflows that can be applied to reduce the processing time yet create the same end product?


Good keyboard layouts for typing (La)TeX

When typing (La)TeX some keys are used a lot more often then in plain text, especially \, {, }, [, ], $, ^ and _. On most keyboard layouts these keys are rather cumbersome to type. The English QWERTY keyboard is a lot better than the German QWERTZ, but is still far from optimal.  Given that I mostly type mathematical texts in English, what keyboard layout would you recommend?  Bonus points for the following:   Ability to type non-English Latin characters, especially German umlauts. Some similarity to QWERTZ or QWERTY as I'm most used to these layouts (I currently use the US-International layout from Linux) Ability to type math symbols directly (Greek letters, \times, etc.)


How can I add semi-maximize right/left in Gnome Flashback Metacity? (14.04 LTS)

I use semi-maximize a lot but unfortunately this feature doesn't seem to be enabled in gnome metacity, at least not with the usual Ctrl+Super+Left/Right keybinds. It does work in Compiz, but Compiz gives me system errors on my laptop for some reason.  Is there a way to add this feature in metacity?


I want to match a file name as "abc (1).xyz" or "abc (2).xyz" or "abc (3).xyz" and so on, in which abc and xyz (extension) is fixed. Besides, the space+(number)  part is optional, i.e. the abc.xyz is also valid.  I have tried the below code, but it didn't returns the success response:  String regex = "abc\\s([0-9])\\.xyz";         Pattern mather = Pattern.compile(regex);          if (mather.matcher(fileName).matches()) {             return true;         } else {             return false;         }   Please suggest any solution for the same. Thanks in advance.


How Do I insert a image in LaTex from my computer

How do I create a file in windows from where LaTex can extract the pdf or Jpg file I want to insert in my document? In other words I need an example of inserting either images or pdf files in my document Here's the image I want to insert    The Image will be placed center to the page just beneath this codes  \[ \overline \rho = \overline P + 0.645 \Big (\frac { \overline P}{K}\Big) ^{\frac {3}{4}} \tag { Tazkera} \]


Input string & array to function. Output index within array where a matching string occurs

I have an array of strings, and I'm trying to define a function where imputing string "xyz" will search the array and return the index. "xyz" will be different each time the function is called.  I have tried this (JavaScript):  var data = ["abc","def","ghi","jkl","mno"]; \\ this array is actually much longer  look = function(a){return a = this;} \\ at first I was trying data.findIndex("xyz") \\ but Chrome Dev. tools said "xyz" is not a function  Params = function(x="abc"){   y = data.findIndex(look,x);   return y; }  \\ Params("abc") should return 0 \\ Params("def") should return 1 \\ Params("ghi") should return 2 \\ etc.   I know I could do this with a for-loop, and cycle through all of the values in "data" but this seems inefficient. Is there a better way? Am I misunderstanding the "findIndex" method?


Prove the inequality $a^2bc+b^2cd+c^2da+d^2ab \leq 4$ with $a+b+c+d=4$

Let $a,b,c$ and $d$ be positive real numbers such that $a+b+c+d=4.$   Prove the inequality      $$a^2bc+b^2cd+c^2da+d^2ab \leq 4 .$$    Thanks :)


Why doesn't ZIP Compression compress anything?

A 398MB directory was only compressed to 393MB using 7Z and Normal ZIP compression. Is this normal? If so, why do people continue to use ZIP on Windows?


Variable-name \newcommand with parameters within another \newcommand

In  we learned how to use \newcommand within a command definition with another \newcommand, when the name of the inner command needs to contain a parameter of the outer command. Now, suppose I want to do the same, but for the inner \newcommand to also have parameters, i.e. I want the following code to work:  \newcommand{\defsilly}[1]{%   % define a command named silly#1 , taking a single parameter } \defsilly{willy} \sillywilly{theparameter}   Motivation: I'm writing a thesis document class, which has a bunch of the following kind of command pairs:  \newcommand{\iitthesis@authorEnglish}{Name of Author} \newcommand{\authorEnglish}[1]{\renewcommand{\iitthesis@authorEnglish}{#1}}   I want to replace each of these pairs with something like:  \iitthesis@thesisdatafield{authorEnglish}{Name of Author}   This defines both the above commands.


C# CoreFTP - SFTP Connection Failing - connection timeout

I'm using this library with C# to connect and upload files to a server:   I'm able to connect to FTP sites, but attempts made with SFTP respond with a connection timeout.  Anyone have an example of what to do when establishing a connection with SFTP?  Here's an example of what I'm doing:  using (var ftpClient = new FtpClient(new FtpClientConfiguration                 {                     Host = FTPUrl,                     Username = FTPUser,                     Password = FTPPassword,                     Port = FTPPort, // using port 21 for ftp, and port 22 for sftp                     EncryptionType = FtpEncryption.Implicit,                     IgnoreCertificateErrors = true                 }))                 {                     await ftpClient.LoginAsync();                      // do something with ftp client                 }


How do I calculate $\lim_{x\to+\infty}\sqrt{x+a}-\sqrt{x}$?

I've seen a handful of exercises like this:  $$\lim_{x\to+\infty}(\sqrt{x+a}-\sqrt{x})$$  I've never worked with limits to infinity when there is some arbitrary number $a$. I am not given any details about it.  Apparently the answer is $0$. How was that conclusion reached?    My guess is that since $x = +\infty$, the result of $x + a$ will still be $+\infty$ so we would have $\sqrt{x}-\sqrt{x} = 0$.  But that doesn't convince me. For starters,  we don't know what $a$ is: it could be $-\infty$ or something, so $\infty - \infty$ would be indeterminate...


What's the state of the art for time series forecasting in 2019?

Following this almost 3 years old question    What is the state of the art for forecasting time series in 2019 or 2018?  What's the best and simplest method that is easy to learn and has great performance in term of accuracy? And also what's the best framework to work with?


How to pass F# a string and get the result back in c#

I am SQL developer and am really new to both F# and C#. I need help on how to pass a string to f# function below and to return the result from F# to C#.  Description of project: I am using stanford postagger to tag a sentence with the parts of speech.  Reference link from where i copied this code. ()  module File1   open java.io open java.util open edu.stanford.nlp.ling open edu.stanford.nlp.tagger.maxent  // Path to the folder with models  let modelsDirectry =  __SOURCE_DIRECTORY__  + @'..\stanford-postagger-2013-06-20\models\'  // Loading POS Tagger  let tagger = MaxentTagger(modelsDirectry + 'wsj-0-18-bidirectional-nodistsim.tagger')  let tagTexrFromReader (reader:Reader) =  let sentances = MaxentTagger.tokenizeText(reader).toArray()  sentances |> Seq.iter (fun sentence ->     let taggedSentence = tagger.tagSentence(sentence :?> ArrayList)     printfn "%O" (Sentence.listToString(taggedSentence, false)) )   // Text for tagging  let text = System.Console.ReadLine();  tagTexrFromReader <| new StringReader(text)


Is there a way to obtain the output of a linux command(like ifconfig) on a .txt file using a C program?

I actually wish to obtain all the network parameters like IP address, DNS server etc. on a .txt file using a C program on Linux.


How do I check if the return variable is a function?     var testController = function() {   alert('123'); }  $(function() {   $('[mfour]').each(function(e, t) {     var a = $(t).attr('mfour');     console.log($.isFunction(testController));     console.log($.isFunction(a));   }) });
asd
     Notice that on first console.log returns TRUE when the function name is hard-coded while on the second console.log if the variable is being evaluated returns FALSE.  It is kind of weird because var a returns testController.  Here's the .  My goal here is to run certain functions base on the mfour attribute. So in the example above, testController will run testController function.


Professional jQuery based Combobox control?

Are there any professional Combobox controls (dropdown list with autosuggestion) based on the jQuery library?  It should be able to handle large datasets and have some skinning options. A multi-column result list would be great too. I'm working with ASP.NET, but it's a not a problem if I had to write a wrapper for it.    I'm already using a third-party control, but I ran into some compatibilty issues between two vendor's controls. Well, I want to get rid of this kind of dependencies.


In recursion function, I dont know what is diffent of using '=' and '==='

I made this cord using max and min values with function, to create integer array.(min~max value) -----------------------------------------------------------         function rangeOfNumbers(startNum, endNum) {               if(endNum===startNum) {                    return [startNum];                     } else {                            const countArray=rangeOfNumbers(startNum, endNum-1);                            countArray.push(endNum);                            return countArray;                     }              }              console.log(rangeOfNumbers(1,5)); ----------------------------------------  result is [1,2,3,4,5]. it`s okey, but when I type if statements like this, 'if(endNum=startNum)', it only return [1]. I don`t know what is diffrent between '=' and '===' exactly. any case of these cords must to encount  'endNum===startNum' or 'endNum=startNum' statements, and return [startNum], right? but why letter one only return '[1]', former one didn`t? In If statements,  '===' must be used in order to express else~ part?


How to change Google chrome windows order in the Windows task panel

Usually I need much pages to be open at one time. So there is a Windows task panel. When I open multiple Google Chrome windows by Ctrl+N they appear in some order at the Windows task panel. Also in each windows I can create multiple tabs with pages (Ctrl+T).  I would like to create certain order of Google chrome Windows in the task panel. Say first is window with multiple tabs of my email accounts (gmail, yahoo mail etc). Second is window with tabs of google drive pages (different spreadsheets and docs files pages).  But sometime (I don't know why and how) the order changes itsef. Say window with emails tabs goes down... And then to create initial order I need to close all the windows and reopen them.  Could you please help with following: 1. Why order changes? 2. How can I change the order without closing and reopening all the windows? 3. If I create set of startup pages in the Google Chrome settings all of them open in the separate tabs but within one window. May I create a setting to open them in certain order of windows on each startup of Google Chrome?


optional backshifting criterion in non reported speech

In an indirect speech back shifting of tense is optional if what is said is still true. For example -- Kate said that she is not well. ( Here non change in tense because Kate is still not well at the time of reporting.)  My question is -- Is back shifting optional in non reported speech as well ? Such as "Kate found that the shop is closed." (Is this sentence correct if the shop is still closed at the time of reporting. ?)


My iPhone died but it hasn't turned on for hours. Its stuck on the low battery screen and I've been charging it all day and it still hasn't turned on. What am I supposed to do?


I have an Edirol UA-101 and have recently upgraded to Mojave. I was running of High Sierra which supported the audio interface, however I am struggling to make it compatible with Mojave. Is there a driver that exists or a workaround?


OK to tin soldering tip prior to shutdown?

I usually clean my soldering iron's tip before turning it off. Yesterday I read an article where someone suggested to tin the tip before turning off the iron. Is this a good idea? And how would it help? My station is a Weller WSM-1 if it makes any difference.


My website got defaced, how to find possible vulnerability?

Recently my internal company site got defaced, is it self hosted site on a VPS, I suspect it has something to do with outdated program we use (e. g. php-5.5.9 and apache 2.4), and also it ran off Ubuntu 14.04.  Weirdly it doesn't occur on the main page, rather the deface page shows up when I tried to submit form. I have check fail2ban and ufw and it doesn't seem there was any strange activity.  What the best way to proceed the problem ? Is there any website vulnerability scanner I can use ?


I have two class like this  public class excel: document{  }  public class pdf: document{  }   and a base class document.  I have an enum  public enum DocumentType{     excel = 1,     pdf = 2 }   I have a core class with a generic method implemented method  public class manager{      LoadFile<T> (Stream stream) where T: document{     ...     }  }   Can i call the loadfile method with a command like this  Type GetType(DocumentType documentType){     ... }  LoadFile<GetType(DocumentType.excel)>(myStream){     ... }   I want have a generic parameter created by the enum.  the error is      < generic cannot be applied to operands of type 'method group'


How can a capacitor discharge if there is no field outside?

On RC circuit, capacitor discharges when the voltage supply is removed.  But I've learned that the net electric field outside a charged capacitor is zero by gaussian surface and gauss law.  I don't understand the mechanism. Shouldn't be there an electric field in order to make charge flow when discharging happens?  Is there an another mechanism?


I am a US Citizen born in the US. I am american. I am traveling to Philippines

I want to know if I travel to the Philippines and I have a layover in Seoul Korea,  do I need a visa to transit through to my next flight to philippines?


Why does an ice cube not twirl along when twirling a drink glass?

When you have a drink with an ice cube and twirl the glass, the liquid itself seems to twirl but the ice cube stays roughly in the same place. Why is this?


How to Make Multi User Objects Single User?

I duplicated a few objects with Alt+D and now I want to apply some modifiers to them, however I can't, because they are multi-user objects.  I tried U > Objects but I still can't apply the modifier.  How to make multi user objects single user?


Using the expression "the same" for a previously mentioned item

I frequently use "the same" as in the following sentence.  I need the details of XYZ project. Could you please send me the same as soon as possible?  Is this grammatically correct? I have not been corrected till now, but I have not seen the usage from native speakers very much either. Update: Seems like my example sentence was ambiguous. Hope the following sentence is better.  I need the documents for the meeting. Could you please send me the same as soon as possible?


I have a laptop with a full keyboard (it has numpad), but the laptop is not that big, and because of that the keys are relatively small, which means I am constantly finding myself pressing keys accidentally on the numpad part.  Is there a way to disable specific keys that I simply don't want?


How long would it take a human to reach Tau Ceti (11.89 LY) safely?

Safely meaning they wouldn't have to feel a G force over 2Gs. Assuming we had technology to reach any feasible speed under light speed. Also, how long would it be relative to Earth?


When Free shipping is available hide other shipping methods except Local pickup in WooCommerce

I currently have WooCommerce setup to allow free shipping on orders over a certain amount. However, I also have local pickup available and would like to allow BOTH if over a certain amount. I have the following code to remove the other rates, however it also doesn't keep the local pickup option. function fd_shipping_rates( $rates, $package ) {           $all_free_rates = array();          foreach ( $rates as $rate_id => $rate ) {         if ( 'free_shipping' === $rate->method_id ) {              $all_free_rates[ $rate_id ] = $rate;             break;         }     }          if ( empty( $all_free_rates )) {         return $rates;     } else {         return $all_free_rates;     }  } add_filter( 'woocommerce_package_rates', 'fd_shipping_rates', 10, 2 );  Any help regarding this is much appreciated! I am looking for a code solution only as I am looking to minimise unneeded plugins. EDIT: I recently found this article on  website regarding this exact issue.


What are safe or average component temperatures for my MacBook?

My MacBook has been overheating for over a year now. More recently it has begun to perform alarms and automatic shutdowns.  Also on startup there is (a moment) where I see a black screen with source code of some sort before the screen resumes with the grey bootup screen.  Today I have installed Mac Fan Control, and realize that the fan still works on my computer, hopefully I can prevent anymore burning (smell) from the laptop. Previously I had smcFanControl but it stopped pushing the fan above 2000 so I just thought that my fan didnt work for a long time  I also had my laptop/fan cleaned with air so I dont believe there is any blockage recently.  I have a screenshot showing the current temperatures, I would like to know what temperatures are ideal, safe or average and I will do my best to prolong the life of my laptop by keeping my fans spinning above 2000+ and being more mindful and keeping Activity Monitor open!    macOS Sierra 10.12.5 (16F73) MacBook Pro (13-inch, Late 2011) Processor 2.4 GHz Intel Core i5 Memory 4 GB 1333 MHz DDR3 Graphics Intel HD Graphics 3000 384 MB


Print result of command by turn in terminal

I have installed Ubuntu Server 17.10 and my problem is concluded that I cannot see full list of results of perfomed operations in terminal, because a scrolling is absent in server's terminal .   For example: I want to read whole list of results of command netstat in terminal but results of netstat command have a big list and they aren't placed in termial. To see first lines I should store the result in file and then open throught an editor.   How to output results of command step by step?


Can I receive the newsletter under a different email address?

I want to subscribe to the newsletter on my work email address but still have everything else go to my normal SO email account. I don't have a way to set up a forwarding filter from my normal email account.  Any way I can do this?


Why does default auto.arima stop at (5,2,5)?

The function auto.arima in the forecast package of R is a powerful tool to identify the best ARIMA(p,d,q) model for a given data series. In the   of the function, they report the following:  auto.arima(y, d=NA, max.p=5, max.q=5, max.order=5, max.d=2, start.p=2, start.q=2, ...)   According to the above function it seems that, by default, auto.arima tries to find the best model among all the combination having:   p equal or lower than 5 q equal or lower than 5 d equal or lower than 2 order equal or lower to 5, i.e. p + q + d  ≤ 5.   However, why does the default code stops at these conditions? Is there any particular reason why p, q and d should be equal or lower than 5, 5 and 2 and their sum lower than 5?


Travel within Schengen area with just passport

My question is can you travel withing the Schengen area with only your passport if you are not a European citizen? Is a passport sufficient to show your ID or do you need to provide the residence permit of the country you are currently staying in at all times?  The nationality of the person travelling is Iranian and they are travelling from Sweden to Germany. They reside in Sweden and have applied for an extension to their visa but still no word has come from the Swedish migration board yet and they need to travel to Germany for a work event. So, can they go to Germany and come back without being required to show the residence permit for Sweden at the gate check or somewhere else?


Tab autocomplete with environmental variables do not work

Since I updated from Ubuntu 18.04 to 20.04, autocomplete with environmental variables do not work. If I type: ls $HOME<tab>  I get what I want, but if I add a /: ls $HOME/<tab>  it autocomplete it to: ls \$HOME/  Where it stops showing what it's on the folder. What can I do to stop this behavior?


I have Linux PC, for which monitor is not working. But I am able to log in through SSH. I want to take a backup of all the directories from this PC. Instead of changing directories one by one and getting the files using FTP, is there any direct method to get all the files in the system at one time?


What is the term for someone who doesn't want to know?

I am looking for a term for someone who is purposefully not learning information - usually bad information. Goes hand in hand with people who want to "hide their head in the sand" or have the "wool pulled over their eyes"


How did the Witch-king defeat Arnor so easily?

Considering Arnor was made up of men descended from Númenoreans, one would think they would be a match for the forces of Angmar, or did Arnor not simply have enough numbers?


How do you get a block from a block in creative?

I'm new to minecraft and watched many videos in youtube and the thing that most fascinated me is that players / trollers got the same block that they were looking at in creative !! But How ?????


Is there a way to change the user permissions of a content type? As I would not like the anonymous user to access a specific content type.


Scriptable Eclipse run/debug configuration

Is it possible to script Eclipse IDE (from say BASH, python, Java), to execute a Run or Debug Configuration for a given project in my workspace?   These are saved in .launch files at project root, but how can I execute one such launch configuration automatically?  Given a working project, I'd like to automatically achieve what is done in GUI by Run -> Run Configurations -> (pick a named config) -> Run button.  A named run configuration could be "C/C++ Application" or "GDB segger J-link Debugging"->"stm32f4", or any other run configuration imaginable.  Specifically I'm using gnuarmeclipse and like to automatically flash and run tests on my embedded target (stm32f4, but my question is generic). It would be great if I didn't have to make two project setups for running the same code on same target -- one for automatic test, and one for Eclipse IDE.


Kinetic energy of spacecraft appears to violate conservation of energy

We have a rocket in Space that accelerates with 10m/s². Our engine requires one Unit of Energy each second, while expelling neglible amounts of mass¹. Well assume the rocket has a mass of 100kg aswell as an inital speed of 0. Scenario A: After 1 second the rocket has achieved a speed of 10 m/s while using 1 Unit of Energy. Scenario B: After 10 seconds the rocket has achieved a speed of 100 m/s while using 10 Units of Energy. Now introducing the formula for kinetic energy: kinetic energy is 0.5 * mass * velocity squared $$ KE = \frac{1}{2}m\cdot v^2 $$ Applying this to our Scenarios: Scenario A: $$ 0.5 \cdot 100\mathrm{kg}\cdot (10\frac{\mathrm{m}}{\mathrm{s}})^2 = 50\mathrm{kg}\cdot 100\frac{\mathrm{m}^2}{\mathrm{s}^2} = 5000\frac{\mathrm{kg}\cdot\mathrm{m}^2}{\mathrm{s}^2} $$ Our rocket now has 5 000 Joules of kinetic Energy, which was achieved using one Unit of Energy. Thats 5000 Joules per Unit of Energy! Scenario B: $$ 0.5 \cdot 100\mathrm{kg}\cdot (100\frac{\mathrm{m}}{\mathrm{s}})^2 = 50\mathrm{kg}\cdot 10.000\mathrm{m}\frac{\mathrm{m}^2}{\mathrm{s}^2} = 500.000\frac{\mathrm{kg}\cdot\mathrm{m}^2}{\mathrm{s}^2} $$ Our rocket now has 500 000 Joules of kinetic Energy, which was achieved using one Unit of Energy. Thats 50 000 Joules per Unit of Energy! My Problem is the discrepancy in how many Joules one Unit yields between the two Scenarios. After (unsuccessfully) trying to research the topic, I think that my mistake must lie within the first part describing my understanding of how a rocket works. Though if i try to transfer the kinetic energy formula onto my understanding of the rocket, i have to assume an exponential increase in the energy required to double the speed of an object. The problem is that this would be at odds with how real world rockets appear to work. It is not that their TWR drops while they easily go Hypersonic. Trying to explain this with the use of reaction mass is also not helpful because the fuel consumption is linear. Thus i found myself here, asking the question of what i could be missing. [1] e.g. an ion drive.


Should I do anything when I see several references that are not used in the text?

In a linguistics paper I read, I noticed that several references in the bibliography are not actually used in the text. This is for about 10-15% of the references the case. Should I do anything with this? I always thought that all references must be used in the text, because even if they are just suggestions for further reading you would want some explanation why it is relevant and what you can find where.   I only know the author through their work and do not know the editors. The paper is from 2011. The references are rather general. They are relevant to the paper, but you would want page numbers with them unless you are familiar with them. They are all from different authors and different institutes. It is likely that the references were used in previous versions of the text.


How can I stop our duct work "pinging" at night?

I'm in Canada, and our home is a bit older, ~20 years, and the duct work seems to be making a rather loud "pinging" noise at night. I assume this is due to colder weather in general, and the hot air from the furnace heating the duct work up.  The noise, however, does bother my wife, and I'm looking for some advice on how to resolve this. (Currently earplugs are an option we use at times :) ) As I'm a heavier sleeper, it doesn't really bother me though I have heard it. It's not audible during day; there is too much other noise masking it, so I hope that helps understand how "loud" it is.  I never really noticed this in previous houses, so I'm curious as to how "normal" this is, and if there are any "simple" methods for fixing the issue? (I don't really want to call in somebody to replace all the ductwork.)  Is there something simple I can do to reduce this pinging? Is there some simpler task I can hire somebody to do to identify the "problem area" and fix/repair it?


Use the theory of residue to evaluate $\int_0^{2\pi} \frac{\cos(3\theta)d\theta}{5-4\cos(\theta)}$

My attempt:  $$\int_0^{2\pi} \frac{\cos(3\theta)d\theta}{5-4\cos(\theta)}$$  I know I can substitute $\cos (\theta)$=$\frac{e^{i\theta}+e^{-i\theta}}{2}=\frac{1}{2}(z+\frac{1}{z})$, but I'm stuck on figuring out how to do the same thing to $\cos(3\theta)$.


How can I tell the address of the remote server an app communicates to?

I have installed an iPhone app from the AppStore that takes a phone number and searches an online database then returns a name that belongs to the entered phone number (and vice versa).  Is there a way for me to know what is the back-end server this app is talking to? (a hostname, or an IP address)?


How to hide recent files in iPad OS and iOS

I have images/files that I look at time to time inside the native Files app that I would prefer not to show up in the “Recents” area.  How do I hide files from showing up in the “Recents” area inside the files app?


How do mathematicians think about arbitrary elements?

When mathematicians state:  "let $x$ be an arbitrary integer" "let $x$ be any integer" "let $x$ be an integer"  what do they actually mean? I asked a very similar question here:  however, here I am not asking whether my interpretation is correct, but instead how most mathematicians actually think about these statements. Thank you for your time.


proof that if $AB=BA$ matrix $A$ must be $\lambda E$

Let $A \in Mat(2\times 2, \mathbb{Q})$ be a matrix with $AB = BA$ for all matrices $B \in Mat(2\times 2, \mathbb{Q})$.  Show that there exists a $\lambda \in \mathbb{Q}$ so that $A = \lambda E_2$.    Let $E_{ij}$ be the matrix with all entries $0$ except $e_{ij} = 1$.  $$ \begin{align} AE_{11} &= E_{11}A \\ \left( \begin{array}{cc} a_{11} & a_{12} \\ a_{21} & a_{22} \\ \end{array} \right) \left( \begin{array}{cc} 1 & 0 \\ 0 & 0 \\ \end{array} \right) &= \left( \begin{array}{cc} 1 & 0 \\ 0 & 0 \\ \end{array} \right) \left( \begin{array}{cc} a_{11} & a_{12} \\ a_{21} & a_{22} \\ \end{array} \right) \\ \left( \begin{array}{cc} a_{11} & 0 \\ a_{21} & 0 \\ \end{array} \right) &= \left( \begin{array}{cc} a_{11} & a_{12} \\ 0 & 0 \\ \end{array} \right) \\ \end{align} $$  $\implies a_{12} = a_{21} = 0$  And then the same for the other three matrices $E_{12}, E_{21}, E_{22}$ …  I guess it's not the most efficient way of argueing or writing it down … ? Where's the trick to simplify this thingy?