Is duplicated content hidden with visibility:hidden penalised by search engines?

Was not allowed to post this in the place I posted it originally as "too general" and was redirected to this Forum I have read a lot of SO and other (also google) articles talking about hiding content and when it will be penalising and not the site. In some articles I read hiding (we are talking about visibility: hidden  in this case) is penalising your site when the content hidden is "keywords" but not if it is meaningful content for the user (lets say in a tab or such). On other articles again I read that google doesn't really care wether the content is hidden and just gives it less weight. In this specific case I have to visibility: hidden  a section of the page inside a div where content (that is already present on the page for the human reader) is laid out in a different structure ready for print() with JS that content to a PDF. I cannot use the exact same content and especially layout as already used on the page for human reader, it must instead be in laid out differently, and some of the page's content will not be used in the PDF. Will the site be penalised because some content is duplicated (the title, and some tables present on the page with product attributes), or is it OK to hide the content with visibility: hidden ? I cannot use display:none because Js print() will not be able to print that. It is however able to print visibility: hidden  content. I could see only one other possible solution which is to pull with AJAX once the user press the "print" button, so the "hidden" content is initially not even present on the page, however I would like to avoid this, if possible. Will search engines consider this keyword stuffing and penalise the site? Is there some HTML tag I can use to tell the robots "do not consider this chunk of HTML?" Perhaps a "Print Only" statement, or else?


use of "as that of" as comparative and possessive case following it

which of the following usage are right ?   1) The life of the rich is as peaceful as that of the poor. 2) the life of the rich is as peaceful as that of the poor's.    3) Your bicycle is as beautiful as that of his. 4) your bicycle is as beautiful as that of him.    now if second sentence is wrong then third sentence should also be wrong.  please explain. I have seen many a time a possessive case followed by "as that of" . so when can we use a possessive case after " as that of"


i got this class where i have to define a map< Integer,Double >   public class ExpConfig {      public static final int LEVEL_MIN = 1;     public static final int LEVEL_MAX = 100;     public static final int FACTOR = 50;     public static final double BASE_EXPONENT = 1.8D;      public static int level = LEVEL_MIN;     public static double exponent = BASE_EXPONENT;      private static final Map<Integer, Double> myMap;     static {         Map<Integer, Double> aMap = new LinkedHashMap<Integer,Double>();         aMap.put(20, 0.01D);//From level 1 to 20         aMap.put(50, 0D);//From level 21 to 50         aMap.put(100, 0.01D);//From level 51 to 100         myMap = Collections.unmodifiableMap(aMap);     }      ExpConfig(){         populateExponentMap();     }      private void populateExponentMap()     {         Map<Integer, Double> exponentMap = new LinkedHashMap<Integer,Double>();          ExpConfig.myMap.forEach((k,v)-> {             for(int counter=level;counter<=k;counter++,level++){                 exponent+=v;                 exponentMap.put(level, exponent);                 System.out.println(level + " : " + exponent);             }                 });       }      //@TestMethod Run As Java Application     public static void main(String[] args) throws IOException     {         ExpConfig asd = new ExpConfig();     } }   when i run the class as java application, i the construction i got a System.out.Print that verify the map values.  but actually the values are not expected.  1 : 1.8 2 : 1.81 3 : 1.82 4 : 1.83 5 : 1.84 6 : 1.85 7 : 1.86 8 : 1.87 9 : 1.8800000000000001 10 : 1.8900000000000001 11 : 1.9000000000000001 12 : 1.9100000000000001 13 : 1.9200000000000002 14 : 1.9300000000000002 15 : 1.9400000000000002 16 : 1.9500000000000002 17 : 1.9600000000000002 18 : 1.9700000000000002 19 : 1.9800000000000002 20 : 1.9900000000000002 21 : 1.9900000000000002 22 : 1.9900000000000002 23 : 1.9900000000000002 24 : 1.9900000000000002 25 : 1.9900000000000002 26 : 1.9900000000000002 27 : 1.9900000000000002 28 : 1.9900000000000002 29 : 1.9900000000000002 30 : 1.9900000000000002 31 : 1.9900000000000002 32 : 1.9900000000000002 33 : 1.9900000000000002 34 : 1.9900000000000002 35 : 1.9900000000000002 36 : 1.9900000000000002 37 : 1.9900000000000002 38 : 1.9900000000000002 39 : 1.9900000000000002 40 : 1.9900000000000002 41 : 1.9900000000000002 42 : 1.9900000000000002 43 : 1.9900000000000002 44 : 1.9900000000000002 45 : 1.9900000000000002 46 : 1.9900000000000002 47 : 1.9900000000000002 48 : 1.9900000000000002 49 : 1.9900000000000002 50 : 1.9900000000000002 51 : 2.0 52 : 2.01 53 : 2.0199999999999996 54 : 2.0299999999999994 55 : 2.039999999999999 56 : 2.049999999999999 57 : 2.0599999999999987 58 : 2.0699999999999985 59 : 2.0799999999999983 60 : 2.089999999999998 61 : 2.099999999999998 62 : 2.1099999999999977 63 : 2.1199999999999974 64 : 2.1299999999999972 65 : 2.139999999999997 66 : 2.149999999999997 67 : 2.1599999999999966 68 : 2.1699999999999964 69 : 2.179999999999996 70 : 2.189999999999996 71 : 2.1999999999999957 72 : 2.2099999999999955 73 : 2.2199999999999953 74 : 2.229999999999995 75 : 2.239999999999995 76 : 2.2499999999999947 77 : 2.2599999999999945 78 : 2.2699999999999942 79 : 2.279999999999994 80 : 2.289999999999994 81 : 2.2999999999999936 82 : 2.3099999999999934 83 : 2.319999999999993 84 : 2.329999999999993 85 : 2.3399999999999928 86 : 2.3499999999999925 87 : 2.3599999999999923 88 : 2.369999999999992 89 : 2.379999999999992 90 : 2.3899999999999917 91 : 2.3999999999999915 92 : 2.4099999999999913 93 : 2.419999999999991 94 : 2.429999999999991 95 : 2.4399999999999906 96 : 2.4499999999999904 97 : 2.45999999999999 98 : 2.46999999999999 99 : 2.4799999999999898 100 : 2.4899999999999896   the key is correct but the value is not, the expected result would be with only 2 decimal numbers.  I know the solution is rounding the values, but why is this happening?


My MWE:  \documentclass{report}  \usepackage{amsmath}  \begin{document}  \begin{align} y &= a \\ =& -2c_1\bar{z}_1^2 + 2\bar{z}_1\bar{z}_2 + 2\bar{z}_2 \left ( -\bar{z}_1 -c_2z_2 - \frac{3\epsilon}{2}\bar{z}_2 -\sigma_{2,1}\cos(x_1)\Delta x_1 \notag \right. \\ \left. &- \sigma_{2,2}\Delta x_2 -\sigma_{2,3} \Delta u +c_2 \chi_2 \vphantom{\frac{1}{1}} \right ) - 2\gamma \sigma_{2,1}^2\cos^2(x_1) \Delta x_1^2 - \gamma \sigma_{2,2}^2 \Delta x_2^2   - 2\gamma \sigma_{2,3}^2 \Delta u^2 \end{align}  \end{document}   The error I get:  Extra }, or forgotten \right.   The expected result:


Why is an electromagnetic wave represented by two perpendicular sine waves instead of a sine and cosine?

In all representations of electromagnetic radiation that I've seen they represent the electric field and the magnetic field as two perpendicular waves, but they always have them both as sine waves: they peak and cross the origin at the same time. My understanding of electromagnetic radiation, photons for example, was that they were able to travel through space without a medium because their energy cycled from electric to magnetic, and back again: the electric field creating a magnetic field, which created an electric field, etc. In my mind this feels like it ought to be a sine and a cosine wave: when one peaks the other crosses the origin, representing the transfer and conservation of energy. Do the fields grow and collapse at the same rate? or is my understanding of electromagnetic waves askew?


Looking for an older (80s/90s) fantasy book series featuring intelligent dragons as antagonists

The dragons in question could take on "human" forms that wore armor that was really their living scales shaped around their humanoid bodies. One notable story in the series is one dragon unleashing a wave of giant, furred creatures from dormancy who absorbed all energy, including heat, leaving behind a frozen wasteland wherever they went.


How nuking the poles of Mars would create an atmosphere?

Elon Musk said one of the methods they are taking into consideration to create an atmosphere on Mars is to nuke its poles. How nuking the poles would create the atmosphere?


Why is the destructor of the inherited class not called?

Why Circle destructor is not called? #include "stdafx.h" #include <iostream>  class Shape {  public:     Shape() {          std::cout << "Shape Constructor\n";      };     ~Shape() {          std::cout << "Shape Destructor\n";      }; };  class Circle: public Shape { public:     Circle() {          std::cout << "Circle Constructor\n";      };     ~Circle() {          std::cout << "Circle Destructor\n";      }; };  int _tmain(int argc, _TCHAR* argv[]) {     Shape *object;       object = new Circle();      delete object;     return 0; }  Output: Shape Constructor Circle Constructor Shape Destructor


Correlation between a categorical and a continuous (scale) variable

How can I find the correlation between a categorical (dependent) variable and a continuous-scale (independent) variable? Is a Kruskal Wallis test appropriate? I'm a little confused as my independent variable is not nominal but scale!


Nonexistence of the limit $\lim_{(x,y)\rightarrow (0,0)} \frac{x^2y^2}{x^3+y^3}$

How can we prove that the limit $\lim_{(x,y)\rightarrow (0,0)} \dfrac{x^2y^2}{x^3+y^3}$ doesn't exist?  I have tried a lot of different paths and all of them lead to zero. I have only tried paths belonging to the domain and so I thank you for the lights that you've thrown here for me. When I've plotted the graphic of the function, it was clear that this limit doesn't exist, but could not prove it. For instance, this is an exercise of the book of Louis Leithold.


Trying to define a "rotated regular grid" coordinate system in QGIS

I have some raster data whose metadata defines its coordinate system as:  rotated regular grid, virtual North Pole at 39.25 N, 162.00 W (rotated coordinates)  Its spatial resolution is 0.044 degree.  I am trying to get this data into regular longitude, latitude coordinates and to do so I have defined a custom projection with these parameters:  +proj=longlat +datum=WGS84 +lat_0=39.25 +lon_0=-162 +no_defs.  It doesn't really seem to help though, this is the raster layer and OSM basemap layer, both visualized in WGS84:    and this is the same layers, both visualized with this defined coordinate system:   I feel like I must be missing something obvious here.  Is this not how you would define a coordinate system for a rotated regular grid?  The source data, as well as the metadata PDF is


How can I blow out the background when shooting down for clothing on the ground?

I'm looking for suggestions to blow out the background when shooting down for clothing on the ground.  I've tried putting the clothing on a plain white background that I typically use when shooting clothing on a mannequin, but I can't light the background more than the clothing when it's on the ground.  I'd like to be able to completely blow out the background and simplify any post-processing work.  Some ideas that I've thought of are:   Raising the clothing (difficult since it's irregular) and trying to light the background. Put the clothing on a translucent material and light from the back.  (But what material that I can afford?) Buy a light box, but I'm not sure if that will help.  Will a light box somehow let me illuminate the background more than the product?   What has worked for you (and not cost too much)?


If I try to steal from someone and then I get noticed. Will I always be enemy of that person?

I think I once stole from a girl. I get out of the area and come back and she's nice again.  Does an NPCs hostile status reset every time I go somewhere else?


How do I separate N DOUBLE numbers from a string without using split?

I would like to know how I can separate many numbers from a single string in the following way, or in another way but in a very short way: void separate(string product) {     std::string orbits ("365.24 29.53 234.455");     std::string::size_type sz;     // alias of size_t     double earth = std::stod (orbits,&sz);     double moon = std::stod (orbits.substr(sz));     std::cout << "The moon completes " << (earth/moon) << " orbits per Earth year.\n"; }  output: 12,3684


I'm really confused by FQDN. So there is this file on my debian machine /etc/hosts. What exactly goes in there?  Say my VPS is located at ipadress: 39.22.11.99 And i have a couple of domains all pointing to this ip adress. Let's say: domainA.com, domainB.com, domainC.com  Those 3 domains do each server another purpose and are correctly configured with Nginx to point to the correct data say: websiteA, websiteB, websiteC  I have one mail server running on my VPS working and all. Yet somehow i think my /etc/hosts file is not configured correctly as all the mail goes into my spam folder even while i have an SSL certificate for all 3 domains and subdomains.  How would one configure his /etc/hosts file? And should virtual hosts/users help me sending mails from different domains?  For now my /etc/hosts file looks like this:  127.0.0.1    localhost           SomeAlias 39.22.11.99  domainA.com         SomeAlias 39.22.11.99  mail.domainA.com    SomeAlias 39.22.11.99  domainB.com         SomeAlias 39.22.11.99  domainC.com         SomeAlias


Best way to change content type on a existing file in a document library

When you drag and drop single / multiple files into a document set / library, SharePoint just add values to the required fields and a check the file out.   I've tried to use quick edit but it does not work to change content type. The only way is to edit properties and then check it in.  Is there a quicker way to change content type on a single file?


Java ReentrantReadWriteLocks - how to safely acquire write lock?

I am using in my code at the moment a  to synchronize access over a tree-like structure.  This structure is large, and read by many threads at once with occasional modifications to small parts of it - so it seems to fit the read-write idiom well.  I understand that with this particular class, one cannot elevate a read lock to a write lock, so as per the Javadocs one must release the read lock before obtaining the write lock.  I've used this pattern successfully in non-reentrant contexts before.  What I'm finding however is that I cannot reliably acquire the write lock without blocking forever.  Since the read lock is reentrant and I am actually using it as such, the simple code  lock.getReadLock().unlock(); lock.getWriteLock().lock()  can block if I have acquired the readlock reentrantly.  Each call to unlock just reduces the hold count, and the lock is only actually released when the hold count hits zero.    EDIT to clarify this, as I don't think I explained it too well initially - I am aware that there is no built-in lock escalation in this class, and that I have to simply release the read lock and obtain the write lock.  My problem is/was that regardless of what other threads are doing, calling getReadLock().unlock() may not actually release this thread's hold on the lock if it acquired it reentrantly, in which case the call to getWriteLock().lock() will block forever as this thread still has a hold on the read lock and thus blocks itself.  For example, this code snippet will never reach the println statement, even when run singlethreaded with no other threads accessing the lock:  final ReadWriteLock lock = new ReentrantReadWriteLock(); lock.getReadLock().lock();  // In real code we would go call other methods that end up calling back and // thus locking again lock.getReadLock().lock();  // Now we do some stuff and realise we need to write so try to escalate the // lock as per the Javadocs and the above description lock.getReadLock().unlock(); // Does not actually release the lock lock.getWriteLock().lock();  // Blocks as some thread (this one!) holds read lock  System.out.println("Will never get here");   So I ask, is there a nice idiom to handle this situation?  Specifically, when a thread that holds a read lock (possibly reentrantly) discovers that it needs to do some writing, and thus wants to "suspend" its own read lock in order to pick up the write lock (blocking as required on other threads to release their holds on the read lock), and then "pick up" its hold on the read lock in the same state afterwards?  Since this ReadWriteLock implementation was specifically designed to be reentrant, surely there is some sensible way to elevate a read lock to a write lock when the locks may be acquired reentrantly?  This is the critical part that means the naive approach does not work.


Let S be a bounded non-empty subset of $\mathbb{R}$, and $\bar{m} = sup S$.

Let $S$ be a bounded non-empty subset of $\mathbb{R}$, and $\bar{m} = sup S$. Prove there is a sequence ${a_n}$ such that $a_n \in S$ for all n, and $a_n$ goes to $\bar{m}$  I want to show how to construct the sequence $a_n$ by using the properties of $sup$ characterize $\bar{m}$ as the least upper bound of $S$. Can anyone show me a formal proof of this?


A binary irrational with bits defined by primes

Define a number $q$ in binary notation whose $n$-th bit is $1$ for $n$ prime, and $0$ for $n$ composite. So its 2nd, 3rd, 5th, 7th, 11th, etc. bits are $1$, with all other bits $0$. Here is $q$ out to its $101$-st bit: $$.01101010001010001010001000001    010000010001010001000001000    001010000010001010000010001    000001000000010001$$ What is known about $q$? ($\approx 0.414683_{10}$). Has it been investigated? Does it have a name? It is irrational. But is it transcendental?


Normalization of eigenvector $\alpha$ of kernel PCA by eigenvalue $\lambda$

Could someone please help me understand why when we project a new sample in kernel PCA to an eigenvector $\alpha$, we normalize it by dividing the eigenvector $\alpha$ with its eigenvalue $\lambda$?  I understand that we need to normalize the eigenvector $V$ and hence the eigenvector $\alpha$ following the criteria described in Eq 9 of the following original paper: .  However, I couldn't figure out why we divide by $\lambda$ in the normalization (instead of e.g. $(\|\boldsymbol\alpha^{k}\|\sqrt\lambda)$  - see below for derivation)?  Eq.9 requires  $$1 = \lambda_k(\boldsymbol\alpha^{k*}\cdot\boldsymbol\alpha^{k*})$$  where $\boldsymbol\alpha^{k*}$ is the normalized $\boldsymbol\alpha^k$. Since $\boldsymbol\alpha^k\cdot\boldsymbol\alpha^k = \|\boldsymbol\alpha^k\|^2$,   $$\boldsymbol\alpha^{k*} = \frac{\boldsymbol\alpha^{k}}{\|\boldsymbol\alpha^{k}\|\sqrt{\lambda_k}}$$  Eq. 10 (projection of a test point $\boldsymbol\phi(\mathbf{x})$) becomes  $$(\mathbf{V}^{k*}\cdot\boldsymbol\phi(\mathbf{x})) = \sum_{i=1}^{l}\alpha_i^{k*} (\boldsymbol\phi(\mathbf{x}_i)\cdot\boldsymbol\phi(\mathbf{x})) = \frac{1}{\|\boldsymbol\alpha^{k}\|\sqrt{\lambda_k}}\sum_{i=1}^{l} \alpha_i^{k}(\boldsymbol\phi(\mathbf{x}_i)\cdot\boldsymbol\phi(\mathbf{x}))$$ $$= \frac{1}{\sqrt{\lambda_k}}\sum_{i=1}^{l} \alpha_i^{k}(\boldsymbol\phi(\mathbf{x}_i)\cdot\boldsymbol\phi(\mathbf{x}))$$  where $\mathbf{V}^{k*}$ is the normalized $\mathbf{V}^{k}$ and $\|\boldsymbol\alpha^k\| = 1$. But, I know that the above normalization is incorrect because instead of dividing by $\sqrt{\lambda_k}$, we should simply divide by $\lambda_k$. So, I am not sure where I am making mistakes here.  For a nice python implementation of kernel PCA and the normalization of the eigenvector, please refer to the following site:  You can go straight to  def project_x(x_new, X, gamma, alphas, lambdas):   to see that we need to normalize the $\alpha$ by dividing it with $\lambda$ in order to get the correct projection.  Update:  The above normalization is correct. The question was there because I misunderstood Sebastian's code.


How to make a loop to try all sorting possibilities of x items in Python

This is what I mean by sorting (5 items in this example, this is not code):  [1, 2, 3, 4, 5] [1, 2, 3, 5, 4] [1, 2, 4, 3, 5] etc.   It is some kind of factorial function. Without items repeating.


Custom fonts in IOS showing on simulator but not on device

I've added custom fonts to my xcode project and they show up just fine when I run the app in the simulator but when I run it on my iPhone they don't show up. This is the code in my AppDelegate.m file  [[UINavigationBar appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: [UIColor colorWithRed:23.0/255.0 green:97.0/255.0 blue:115.0/255.0 alpha:1.0], UITextAttributeTextColor, [UIFont fontWithName:@"Lily Script One" size:23.0], UITextAttributeFont, nil]];


I did  I tried to change the root@LAPTOP-2NFV79O9:~# root into the taiga. that's not working. I don't know what's going on 1.pkill -u root pid 2.pkill -u root 3.usermod -l taiga root   result usermod: user root is currently used by process 1  also, i did id uid=0(root) gid=0(taiga) groups=0(taiga) My environment  windows 10 ubuntu  my goal  change the user name


I'm currently doing some testing work with TOR and ran in to a small problem. Tor's client only supports receiving connections through a SOCKS5 protocol, but the applications I'm using only support HTTP Proxy Protocals.  Is it possible to put something in the middle? So that for example it went.  My Program (HTTP Only) > HTTP to SOCKS Converter > Tor SOCKS5 Server


Javascript class name manipulation not working

I have two css selectors linked up to an html element. Onmousedown javascript is supposed to change the class to 'closeMenuButtonActive' and onmouseup it should wait 500ms and then change the class name to 'closeMenuButtonNotActive'. For some reason this code isn't working correctly! I tried doing alert(this.className); to see what was going on, the alert said the correct closeMenuButtonNotActive. The strange part is that I looked at the element in the inspector and the class name hadn't changed! Here is my inline javascript code:  <div id="closeMenuButton" class="closeMenuButtonNotActive" onmousedown="this.className = 'closeMenuButtonActive';" onmouseup="window.setTimeout(function(){this.className = 'closeMenuButtonNotActive';},500);">


Is the formation "[s]he" overly distracting?

Does the use of "[s]he" as a gender-neutral pronoun prompt eye-rolling in the reader or is it generally accepted? I know it cannot be pronounced, but it seems to me a helpful contraction in written speech. Of course the sentence can be restructured, one can use formations such as "he or she," etc. but are such machinations necessary?


In SQL, what's the difference between count(column) and count(*)?

I have the following query:  select column_name, count(column_name) from table group by column_name having count(column_name) > 1;   What would be the difference if I replaced all calls to count(column_name) to count(*)?  This question was inspired by .    To clarify the accepted answer (and maybe my question), replacing count(column_name) with count(*) would return an extra row in the result that contains a null and the count of null values in the column.


The title is obviously the State Alchemist name of Edward Elric, but what does the word "Fullmetal" mean? I watched both series with dub in my mother language, and in that, Ed was referred as "Steel Alchemist". (translated to English)


Why is the interaction term defined by multiplying the IVs?

I am trying to get a deeper mathematical understanding of regression, beyond just applying it and interpreting the output. Can somebody provide me with the mathematical rationale for why interaction terms in a regression equation are defined by the product of the involved independent variables? I assume it has to do with calculating the model sum of squares, and the portion of variance in the IV which cannot be independently attributed to the IV alone (as a main effect), but I do not understand the underlying mathemathics.


Is it possible to collect data from SE users to understand their usage of the site?

I wonder if SE supports conducting research by allowing the collection of some data from its users. For example, I want to investigate what characteristics of users determine their behaviors in SE (e.g., type of questions they ask, their badges, etc.).  I wonder what would be a reasonable approach to conduct such research?


I am working on a C++ reference manual for myself and want good looking listing code blocks.  This stack overflow question was very helpful:   But for the life of me I can't find anywhere on the internet for information regarding how to remove the "Listing #" part of the listing captions.  Below is a screenshot of what I have:    I want to remove the front part of the listing caption but still have a caption because i want to say the filename.


Debugging in WordPress at Theme installation

I am trying to upload a Theme. But I am getting message Please select a file.  I placed below code in wp-config.php file. define( 'WP_DEBUG', true ); define( 'WP_DEBUG_DISPLAY', false ); define( 'WP_DEBUG_LOG', true );  My PHP Version is 7.4.18 My server settings are like below  My Server file & folder permission is like below  But I am not getting any Debug Log message.  I am trying to install  Theme.


Proof that limit of (lnx)/x = 0 without LHopital

It seems i'm not gonna find an answer for this question which does not use LHopital's rule. How do you prove limit of (lnx)/x approaches 0 as x moves toward infinity WITHOUT using LHopital's rule?


Why are my results with a variable neutral density filter poor?

I bought a inexpensive variable neutral density filter,  ND2-ND400 variety. I wasn't expecting a whole lot because of the very low price point, but I think I'm either using it incorrectly or my unit is defective. Do I simply need to back off the maximum filtering setting until the results are acceptable? It seemed to provide very minimal filtering when I reached and acceptable point, maybe ND8 or so. Is this cheap ND filter only usable up to something like ND8? I am shooing with a full frame camera and a 17-40mm lens.  17mm, approximately maximum ND filtering:   40mm, approximately maximum ND filtering:   17mm, less then maximum ND filtering:


As I understand it a blackbody spectrum is continuous – every possible frequency between the upper and lower bounds for that specific spectrum is there.  When we look at the sun (mainly hydrogen) or a tungsten filament (comprised of one element only) we observe a continous spectrum between the upper and lower frequency range for that object.  However, each element has its own unique discrete emission spectrum which I cannot see accounting for the continous range of frequencies seen in the black body curves.  What is happening at the atomic/subatomic level to cause generate the continuous observed spectra? The only explanation I can think of is that deexcitation of electrons is not the source of the light but rather it is the vibrations of the whole atom (which increase in frequency with temperature), and hence the oscillating electrons and protons within, that ‘generate’ the time-varying field which is the EM waves. I have already looked at all previous threads to related blackbody questions and this answer in below in quotations is the closest to what I am after but if this is correct more detail on how a collection of atoms have an increased range of energy levels would be appreciated! "In a hand waving sense, the black body radiation is also due to transitions between energy levels in the lattices of the bodies, but these are dense enough to become a continuum, as the approximation of the black body radiation shows, fitting the black body spectrum."


How to search something on across multiple sites with a single Google query?

I tried   (search term site:stackoverflow.com) OR (search term site:superuser.com) OR (search term site:stackexchange.com) search term site:stackoverflow.com,superuser.com,stackexchange.com search term site:stackoverflow.com site:superuser.com site:stackexchange.com   None of them works. What is the correct way to search?


The pigeonhole principle - how to solve questions like that?

We have two sequences , $(a_i)_{i=1}^{2n}$ and $(b_i)_{i=1}^{2n}$ such that  $1\leq a_i, b_i\leq n$ for every $i$.  Show that there are two sets of indexes $I, J \subseteq \left \{ 1,2, ... 2n \right \}$ such what $\sum_{i\in I}a_i=\sum_{j\in J}b_j$.  Well, the question didn't say anything about those sets being empty but I believe that's not what they meant. I don't know that to do with questions like these. There are obviously much more subsets that possible sums ($2^{2n}-1$ compared to $2n^2$) but it doesn't really help.  I'd be glad to hear ideas, hints or solutions.


When is $1^5 + 2^5 + \ldots + n^5$ a square? I found that this happens sometimes: $n=13$ gives $1001^2$, $n=133$ gives $9712992^2$ and $n=1321$ gives $942162299^2$.  I feel that the identity$$\displaystyle\sum_{i=1}^n i^5 = \tfrac{1}{12}[2n^6+6n^5+5n^4-n^2]$$ will be useful, since it's all square powers except one.. but I see no way to connect that.


Please clarify the difference between BitMap Index and Btree index. I am using mysql version 5.5.37-0ubuntu0.12.04.1.  I can able to create Btree index but unable to create the same,  Please find the below query for Btree index which has been created.  **mysql> CREATE INDEX emp_id_index ON employee_details (emp_id) USING BTREE;     Query OK, 0 rows affected (0.18 sec)    Records: 0  Duplicates: 0  Warnings: 0**  Please find the below query for Bitmap Index which is showing error   **mysql> CREATE BITMAP INDEX index_name ON employee_details (emp_name);     ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BITMAP INDEX index_name ON employee_details (emp_name)' at line 1**  Please guide me what i had done wrong in the Bitmap query.   Also let me know whats the difference between these two index. I had gone through the below link but not able to find the apt one.


We put him to bed at 9pm and he stays up til 1am or later. When I go to check on him he is always playing with his hands and sometimes talking. I ask him why he is awake and not trying to sleep and he says it's because he just wants to play. He never comes to tell us that he is having a hard time sleeping or that there is anything wrong. The weird thing is that he used to be the first one to fall asleep out of 3 boys and the staying up started a few months ago. He does this every night and on top of keeping us awake, he is now waking up his brothers.   About a month or so ago, we decided to punish him by grounding him from video games. He doesn't want to be grounded, but he still keeps doing it. Nothing we do seems to be helping and it seems to be getting worse. I have talked to him about why it is so important to get enough sleep and why it's even more important for kids. He also gets plenty of exercise and time to play during the day.   I'm really starting to wonder if he is doing it just to be defiant. If anyone has any suggestions I would greatly appreciate it.  The problem is that he is being disruptive to everyone in the house and it has been EVERY night for the last 3 months.   He is tired and emotional during the day, and it is causing his brothers to be tired during the day while they are at school.   Because he is tired during the day he doesn't really want to be as active as he used to be. However, I do still encourage him to be active. We have always had a bedtime routine. We have asked him many different times if he is just having trouble sleeping, if he is uncomfortable, and if there is something wrong. He always tells us that he just wants to play.   At the beginning of all this he told me that he wants to be the one to decide when he goes to sleep and when he wakes up. Which is why I would even ask if it was out of defiance.   We really didn't want to get to the point of punishing him, but nothing else seemed to help and it was only after he started keeping his brothers awake.   It's not like we haven't asked him what he thinks would help or what would help him sleep better. He ALWAYS says that he just WANTS to stay up and play because it is fun. We know it is important for him to get enough sleep, and I'm worried because I don't think he is (and he's preventing the rest of us from getting enough, too).


I currently am on Ubuntu 17.10 and I am trying to install Windows. (Later I will dual boot with ubuntu 16.04 LTS (it's more stable)). I have burnt the Windows iso to a USB but my computer will not boot from it. The boot order is correct.  Is this because I have Ubuntu or GRUB installed? How do I do this? I have an Ubuntu live CD if that helps.


It should . What I have tried so far:  \documentclass[a4paper, twocolumns]{article} \usepackage[utf8]{inputenc} \usepackage{titlesec} \titleformat{\section}   {\large\scshape}{\thesection}{1em}{\\ \hfill}  \begin{document} \section{Education}  \section{Something}  \end{document}   I will give it some more tries later on. Could be nice with some help.


Is there a way to prevent automatic newline on python command line?

I am making a command line game engine in python. However, when I attempt to print a command, it newlines and creates a jittery frame.  Adding the end attribute bogs down my computer and nearly crashes the shell. The dupe uses sys.stdout.write('') newline sys.stdout.flush or print'', or print('',end=''). all bog down shell and crash it. print('') doesn't bog down though which is weird.  #this is enough code to demonstrate the problem while true:     print('                                                                                =                                                                              ===                                                                            =====                                                                          =======                                                                        =========                                                                      ===========                                                                    =============    YYYYYYYYYYY                                                 ================================================================================') #crash issue import sys while True:     sys.stdout.write('mooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo')     sys.stdout.flush()    I expect the screen to fill, instead it wobbles up and down.


Find the Foreign Keys Associated with a Given Primary Key

I want a way to establish which columns in a given database are joined via PK/FK relationships. I can return the PK/FK information for a given table via   SELECT *   FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE AS cu  WHERE EXISTS (     SELECT tc.*      FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS AS tc      WHERE tc.CONSTRAINT_CATALOG = 'MyDatabase'           AND tc.TABLE_NAME = 'MyTable'           /*AND tc.CONSTRAINT_TYPE = 'PRIMARY KEY'*/         AND tc.CONSTRAINT_NAME = cu.CONSTRAINT_NAME); GO   but for a PK returned from such a query how do I establish the associated FK (assuming there is one)?  I know you can also get the referenced tables via:  SELECT CONSTRAINT_NAME = name,         FOREIGN_SCHEMA = OBJECT_SCHEMA_NAME(parent_object_id),         FOREIGN_TABLE = OBJECT_NAME(parent_object_id),         REFERENCED_SCHEMA = OBJECT_SCHEMA_NAME(referenced_object_id),         REFERENCED_TABLE = OBJECT_NAME(referenced_object_id)  FROM sys.foreign_keys WHERE OBJECT_NAME(referenced_object_id) = 'MyTable'; GO   but I am struggling now to get the explicit column references.  I am creating a script generator for QlikView. To generate the script I need the constraints and the associated links. I need all of the constraint information for any given column (if any).  I want to construct a database class that holds all the information for a given database. This class structure database.table.column.constraints will then be used to get the matches between different columns on PK/FKs.  Clearly some columns will have FKs only and in this case I also want to retrieve the PK information of the corresponding key; some will have only PKs and then I want the reverse. Some of course can have both.


How to get output of variable with line breaks?

I want to get onre output of top to variable for future processing. I tried: top=$(top -n1) top=$(top -n1 -w80) top=$(top -n1 -b -w80) top=$(COLUMNS=100 top -b-n1)  When I run echo $top then I see something like on the screenshot  that is top output completely without line breaks. What am I doing wrong?


Creating Centrelines from Road Polygons using QGIS?

I want to create center lines from road polygons.  Are there any automated tools in QGIS to do this?  I am including a Screenshot of my vector file below.


Getting the new questions in the ios StackExchange app

Once the tag has been selected for a particular site in the ios app, looks the questions are sorted by popularity. How can the questions be sorted by date to see all the unanswered questions at the top?


Tools to measure the nonrandomness of database

I was working on historical data looking for anomalous patterns that we would not expect to occur at random. I'd like to create a scheme to analyze data and markets to test for statistical significance and consistency over time.  Question : Are there some tools we could use to evaluate the nonrandomness of a database? What do we use usually to say that something is random or not (statistically)? Figure we work with change in some value over time.


First, I built a Nether Core Reactor (using the core, gold blocks, and cobblestone) and that worked. Instantly, it turned into obsidian. It used to occasionally light up and it would shoot out items. I dug up the obsidian with a diamond pic axe (all of it). I then went into a grassland and created the 4x5 nether portal using the obsidian, but whenever I went to light the inner on fire using flint and steel it light the obsidian on actual fire instead of making the portal. I don't know what I'm doing wrong.


What could cause my washing machine to stop before the rinse cycle?

My washing machine will get stuck right before the rinse cycle. The washing machine will be full of water. The way to "fix it" is to twist the knob right after the "rinse" line, find the sweet spot, and pull the knob out. It can take 10+ tries to find this sweet spot and seems to have no rhyme or reason.  I've read online that this might be a drainage problem, but I'm not sure that is the case here. I'm basing that off of the fact that allowing time to pass doesn't increase the likelihood of hitting the sweet spot.  Anything I can check? As the pictures show this is a Whirlpool Ultimate Care II


Find the range of possible values of $\sqrt{a^2+a+1}-\sqrt{a^2-a+1}$

Let $x=\sqrt{a^2+a+1}-\sqrt{a^2-a+1},x\in \mathbb R$. Find range of possible values of $x$.  I tried drawing the graph and obtained this: Through which the answer came out to be $(-1,1)$. What should be the procedure through algebra?


So the rules, to my knowledge, say that a melee attack can be non-lethal. Does this mean that a spell like Inflict Wounds or Primal Savagery can be non-lethal? As for ranged spells, I imagine a volatile spell like Fireball or Lightning Bolt that can hit multiple enemies couldn't be restrained to non-lethal, but what about a single target spell like Chromatic Orb or Eldritch Blast?


How to switch between editors with shortcuts

I'm tired of pulling out windows to get the UV editor or pull down a menu in the screen sets. Is there a shortcut, with one key, to get my 3D view to UV editor/node editor?  I have not found a way to edit shortcuts that way.


I need a way to fix this mesh. It has way too many faces and when I import the .stl file to other programs it gives me a broken polygon message. I want to 3D print this object in matter control once I fix the problem.


Are there better tires for heavy riders?

I have upgraded the backwheel on my hybrid bike to one suitable for a 285 pound rider. Are there tires suited for 285 pound (130 kg) riders?


I have the newest Adobe flash player, but it still wont work!

I have the newest flash player, but I cant get it to work on the website pogo.com. it says: Your Adobe Flash Player is out of date  No need to panic, you just need the latest version of Adobe Flash Player to play this game. Please visit Adobe.com to update your version now.  Update Adobe Flash Player  Still experiencing issues? Check out Adobe's Flash Troubleshooting Guide  I am very new to linux, so this is probably an easy fix, but still need help! So please help! :)


Netflix desktop install trouble "some packages could not be installed"

I'm having a massive issue with trying to install the Netflix desktop app.  I have added the repository (roughly four times, with updates) and everytime I get the following message    azazel@azazel-Aspire-5733Z:~/Downloads$ sudo apt-get install netflix-desktop  Reading package lists... Done  Building dependency tree         Reading state information... Done  Some packages could not be installed. This may mean that you have  requested an impossible situation or if you are using the unstable  distribution that some required packages have not yet been created  or been moved out of Incoming.  The following information may help to resolve the situation:   The following packages have unmet dependencies:  netflix-desktop : Depends: wine-browser-installer (= 0.8.1~saucy) but it is not         going to be installed                Depends: wine-silverlight4-installer but it is not going to be installed  E: Unable to correct problems, you have held broken packages.   I would really like to be able to watch Netflix, as my virtual machine isn't working.  Any ideas on how to fix this?


java - why is the hashcode() returning the same integer?

I am not exactly sure why the hashCode() method is returning the same value. Can someone provide more detailed explanation of this?  Source code (Java):  public class Equality {  public static void main(String [] args) {     String str = "String";     String strOne = new String("String");        System.out.println(str == strOne);     System.out.println(str.equals(strOne));      System.out.println(str.hashCode());     System.out.println(strOne.hashCode());  }   }


Since Earth spins, would an aircraft travelling opposite to direction of Earth spin take less time?

Suppose we want to reach the point on earth which in relative terms is exactly on the opposite end of the sphere we call earth (I know it is not an exact sphere).  We either dig vertically downwards, pass through the center of the earth and come out on the other end as it happens in the cartoon. But taking a more pragmatic approach means using air travel.  If we face North, we could either go East or West to get to the directly opposite point on earth which means traveling a distance of half the circumference of earth.  Now here is my question, since the earth is spinning, does it mean that if we fly in direction opposite to which the earth spins, we shall reach the other end quicker? why or why not?  If this is the case, the the opposite is true also i.e it will take longer for us to reach the other end if we travel in the direction of earth spin. Is this taken into consideration in actual flight routes?


Why should I prefer the standard deviation over other measures of variance?

The most common kind of deviation is the standard deviation.  $$ \text{Sd}(x) = \sqrt{\text{Mean}((x - \text{Mean}(x))^2)}$$  The standard deviation is very similar to the mean absolute deviance or  $$ \text{MAD}(x) = \text{Mean}(|x - \text{Mean}(x)|)$$  but is often simpler to calculate or obeys nice algebraic properties.  But there are a lot of other measures of variance. For example, there is the most common absolute deviance from the mean value:  $ \text{Mode}(|x - \text{Mean}(x)|)$.  It is not clear to me why I should prefer the standard deviation over other kinds of measures of dispersion. I suppose the simplest answer is that this measure of dispersion is the most highly studied and well known and using other methods of dispersion will confuse people you try to communicate with.  I guess I would have to use these kind of alternative measures for pathological distributions like the Cauchy distribution though.


Windows 8 doesn't boot after installing Ubuntu (UEFI)

I installed Ubuntu with my UEFI installation of Windows 8 (with windows 7 boot-loader because I don't know how to recover it), and after grub installed, I was no longer able to boot Windows 8. I tried with several different tutorials, which resulted in the two menu entries called 'Windows 7' that you'll see in the pastebin output.   I also disabled fastBoot.  It's my first time with Linux so this is a bit difficult for me to solve, and the existing answers seem incomplete.  Output from boot-repair:


Ubuntu 16.04 LTS cannot connect to 5Ghz wifi with broadcom bcm43228

Nothing happens after I connect to the 5GHz Wifi network. Please show me how I can connect. This question is a follow up to a previous question which was posted on SO as well.   Looks like there is no support for my wifi card on 16.04 .  Should I just ditch 16.04 and take 14.04 instead ?   Thanks.


How to insert code in Google Drive documents

I use Google Drive Docs as my note taking tool and it is awesome since I can use it when I am offline, but I have a problem: I can't add source code in documents there. I know this question is answered , but Google documents have changed a lot and the solution given there is not working properly.  Can anybody suggest a suitable way for it?


I have a confusing regarding the assumption test for the data, in some theory were said that there are three assumption of data as we called as "good" data:   Independent  Normally distributed Homogeneity    my question are: Referring to point (2) and (3),    We said the data is normally distributed, based on the raw data or residual? I have a case when i was conducting the ANOVA analysis, the assumption for ANOVA is normal and homogeneity, what i did until now is to check this through the residual (after i got the model ANOVA), is it true? if those assumption come from raw data not residual, how I can check the homogeneity? bartlett is using residual that I know to check the homogeneity..   thanks..for your input.!


I am practicing review problems to practice from what what we last learnt in lecture, and I admit I am very lost.   I have no idea how to start these sort of problems  Prove for any $n \geq 1: F_1 + F_3 + F_5 + \cdots + F_{2n-1} = F_{2n}$ where $F_n$ is the $n$th term Fibonacci number.   I would greatly appreciate this answered so I can use it as a base to continue and answer the other problems myself. Or, if you would prefer instead of giving a full answer, please feel to give hints/advice to point me in the right direction.  Thank you.


From Enderton's book Elements of set theory.  Example 2, first chapter $\phi$ is the empty subset:  $\lbrace \phi\rbrace\in\lbrace\lbrace\phi\rbrace\rbrace$, but  $\lbrace \phi\rbrace\nsubseteq\lbrace\lbrace\phi\rbrace\rbrace$.   Why the second statement is not true? We know that  $\phi\subseteq A$, where $A$ is any subset, but why $\phi\in A$ is false?  What is the intuitive answer?


I've had something that's been bugging me, and I tried research and asked my math teacher. None had sufficient answers.  The concept of $0$ is that when $0$ goes to any exponent except for $0$, it becomes $0$. For example,  $0^3 = 0$, but $0^0 =$ undefined  However, the proof that $0^0$ is undefined is shown thus: $0^x$ ... (divided by) = $0^{(x-x)} = 0^0$ = undefined $0^x$  You can apply this to any exponent though, such as: $0^6$ ... = $0^6 = 0$ and $0^3 = 0$, so this expression is equal to $0/0$, which should be  $0^3$ undefined, right?  Am I doing something wrong here? Please help! Gil


After suspend on HP laptop with Ubuntu 16.04 wifi adapter is not detected

When my HP laptop wakes up from suspend I can't connect to the wi-fi. The adapter is lost.  ifconfig -a doesn't show it  lshw -C network returns an empty list  Only reboot helps.  Ubuntu 16.04, 4.18.5-041805-generic (I've tried on different kernels and the problem is the same).  None of the answers to  help me.  wireless info before suspend (wifi work)   wireless info after suspend


Why & how disabled Google app(s) still keeps running something?

So, for whatever reasons, I like disabling Google services which I do not use. Since Android does not allow me to fully uninstall Google apps, I try to reply on the "Disable".  However, what I am noticing is that the Google app still shows a Force Stop button (see screenshot below). This suggests that the app is still running something. This does not happen with other (non-Google) system apps which I have disabled.  So, why do the stock Google App(s) continue to run? What do they do in the background? What is the whol point of disabling if they can still run? And is there a way to fully disable the app and stop it from running?  I am using an unrooted OnePlus 5. I have tried on a OnePlus 3T and a Nokia 7 plus with the same result. I do not intend to root my device.


How can I change cursor color in Ubuntu?

How can I set my mouse cursor to be black on Ubuntu 14.04?


How prove this $(p-1)!\left(1+\frac{1}{2}+\frac{1}{3}+\cdots+\frac{1}{p-1}\right)\equiv 0\pmod{p^2}$

Show that   $$(p-1)!\left(1+\dfrac{1}{2}+\dfrac{1}{3}+\cdots+\dfrac{1}{p-1}\right)\equiv 0\pmod{p^2}.$$   Maybe use this $$\dfrac{1}{k}+\dfrac{1}{p-k}=\dfrac{p}{k(p-k)}$$ and then I can't. Can you help me to prove it?   Thank you.


Where is Grub boot loader installed on the computer?  As after removing the ubuntu partition from a dual boot system, Grub is still launched by default. So it couldn't be installed in the partition where Ubuntu is stored.


Want to apply events to the tags coming to the js widgets through database using javascript

Here     $('#example-widget-container').html("This data comes from another server: " + data);    render the HTML data from a rest API.   I want to apply events on the html tags store in db using JQueries.   Please provide the help.     (function() {      // Localize jQuery variable     var jQuery;      /******** Load jQuery if not present *********/     if (window.jQuery === undefined || window.jQuery.fn.jquery !== '1.4.2') {         var script_tag = document.createElement('script');         script_tag.setAttribute("type","text/javascript");         script_tag.setAttribute("src",             "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js");         if (script_tag.readyState) {           script_tag.onreadystatechange = function () { // For old versions of IE               if (this.readyState == 'complete' || this.readyState == 'loaded') {                   scriptLoadHandler();               }           };         } else {           script_tag.onload = scriptLoadHandler;         }         // Try to find the head, otherwise default to the documentElement         (document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag);     } else {         // The jQuery version on the window is the one we want to use         jQuery = window.jQuery;         main();     }      /******** Called once jQuery has loaded ******/     function scriptLoadHandler() {         // Restore $ and window.jQuery to their previous values and store the         // new jQuery in our local jQuery variable         jQuery = window.jQuery.noConflict(true);         // Call our main function         main();      }      /******** Our main function ********/     function main() {          jQuery(document).ready(function($) {              /******* Load CSS *******/             var css_link = $("<link>", {                  rel: "stylesheet",                  type: "text/css",                  href: "style.css"              });             css_link.appendTo('head');                        /******* Load HTML *******/             var jsonp_url = "http://xyz123/api/atmSearch";             $.getJSON(jsonp_url, function(data) {    console.log(data);               $('#example-widget-container').html("This data comes from another server: " + data);             });         });     }      })(); // We call our anonymous function immediately
Web Widget Tutorial

Example 4 - Putting things together


Exception occuring before the code starts

I have some code which is generating exceptions, apparently before the code itself starts.  I have no idea how to deal with this. Here's the output:  Exception in_ sendUnsentNaggregation java.lang.NullPointerException unsent: 0  unsent: unsent:1     // -------------------------------------------------------------------- private void sendUnsentNaggregation() {     System.err.println("unsent: 0\n");     try {         log("unsent:");         DateTime today=new DateTime();         String nagID=String.format("Naggregation for %4d/%02d/%02d",today.getYear(),today.getMonthOfYear(),today.getDayOfMonth());         log("unsent:1");         Database.UniqueString uniqueNagID=db.new UniqueString(nagID,MAX_URL_SIZE);         boolean alreadyThere=db.scannedURLs.indexOf(uniqueNagID)>=0;         log("nagID "+nagID+" unique "+uniqueNagID+" today "+today);         // wait until the naps site has stabilised         boolean okayToSend=(today.getHourOfDay()>=5) && (today.getMinuteOfHour()>=55);  // send at 5:55         if(nagNeedsSending.isSelected() || (!alreadyThere && okayToSend)){               String status=String.format("\nSending %s %s at %02d:%02d\n",(sendTestOnly.isSelected() ? "test " : "actual "),nagID,today.getHourOfDay(),today.getMinuteOfHour());             browserPanel.append(status);             scanner.updateNapsters(napsterROIThreshold.getText(),napsterSampleSize.getText(),napsterType.getSelectedIndex());             if(sentNaggregation(sendTestOnly.isSelected())){                 if(!alreadyThere) db.scannedURLs.add(uniqueNagID);             } else {                 browserPanel.append("Naggregation not sent\n");              }         }     } catch (IllegalSearch ex) {         log("Illegal search in sendUnsentNaggregation");     } catch (FileException ex) {         log("FileException in sendUnsentNaggregation");     } catch(Exception e) {         log("Exception in_ sendUnsentNaggregation "+e);                 } } // --------------------------------------------------------------------


RSA private / public key, two valid private keys?

This might be really stupid but... if P = 11 and q = 13 N = 143 and r = 120 Say we choose e = 7 where gcd(r, e) = 1 and e < r. And therefore our public key is (7, 143) can there be multiple valid private keys? In that... Where: e*d mod r = 1 d could be 103 or 223, since 103 * 7 = 721 and 223 * 7 = 1561. They both feel like valid numbers to me... Does this mean that if I lock the message with e and N. They can be unlocked with both possible Ds?


Why can't electrostatic field lines form closed loops?

My physics textbook says "Electrostatic field lines do not form closed loops. This is a consequence of the conservative nature of electric field." But I can't quite understand this. Can anyone elaborate?


I'm working on some lyrics here, and I'm not sure what would be correct/best:     After the sun has shined its shine        After the sun has shone its shine   Google returns more results for the latter, but still I'm not completely sure. Seems like both are in fact correct?


Haproxy: how to configure backend to talk with a https server?

We have in our LAN a nginx server configured in https.  In front, we have Haproxy with SSL and we need to establish a connection SSL from backend to nginx server. Is it possible to do this?  Client -> Haproxy:SSL -> SSL:Nginx  backend pkiservices     mode http     option httplog     option forwardfor     server pki pkiservices.example.com:443   With this configuration, Nginx return an erreur 400 (The plain HTTP request was sent to https port).  Thanks in advance


siunitx: how to get bold, aligned and separated in a table?

I have the following siunitxtable:  \sisetup{separate-uncertainty=true} \begin{tabular}{ l S[table-format=6.0, table-figures-uncertainty=5] S[table-format=6.0, table-figures-uncertainty=5, detect-weight] S[table-format=2.0] S[table-format=1.2, detect-weight] } \toprule {algorithm} & {$1$-ply} & {$3$-ply} & {\# $n$-tuples} & {time [days]}\\ \midrule 42-33 (baseline) & 265435\pm8511  & 393289\pm26496 & 5  & 2.35 \\ 42-33, CS        & 258616\pm5784  & 432701\pm13005 & 5  & 2.78 \\ 42-33-4-22, CS   & 263156\pm27722 & 464836\pm15941 & 10 & \bfseries 4.63 \\ 42-33-4-22-3     & 319433\pm2708  & 469779\pm10920 & 12 & 5.06 \\ 42-33-4-22-3, CS & 314013\pm7587  & 491398\pm19458 & 12 & 5.47 \\ \bottomrule \end{tabular}   I was able to make 4.63 bold and aligned, but I would like to make some cells of the second or third column bold and aligned as well. \bfseries does not work for them. How to do it?


How can I make a villager have an... "accident"?

I have a populous village now but I am not interested in the villagers' trading options. I'd like to make sure some of them have an unfortunate "accident" so they can be replaced.  Obviously CSI: Minecraft can't draw anything back to me lest I feel the wrath of an Iron Golem or two.  How can I pull this off selectively (i.e., as specific to a villager of my choice as possible)?


Unknown symbol - how to create it with Latex

I'm searching for a way to create the attached character in LaTeX. It's not the one that is created with \mathbb{R}as this creates double strokes for each line and not just the leading one.  The image is taken from a pdf-file, which was created with MiKTeX, but I do not have access to the source. When I copy it to Word I can only get a capital R, without double strokes.  Thank you very much.


Quotation marks don't display properly in notification inbox for bounties

I realize that this is something of an edge case, and not really a huge problem, but it's a bug, nonetheless.  When a notification about a bounty shows up in the notifications inbox, and the title of the  has single quotation marks, the quotation marks break ( example below )    .....I don't recall seeing this on other notifications for this bounty (the three day and one day warning), but here it is at bounty's end.


Can i create image of my current installed ubuntu so that i can install it on other machine?

I am running Ubuntu 12.04 TLS. Is there a way to produce an ISO installable image of my current system so as I could burn the image on a flash drive and be able to install it on an other PC ? Please provide details. thanks


Can we do something about people adding C# in their titles?

Commonly, you see questions that state the problem (in very bad, lowercase Engrish) followed (or proceeded) by (lowercase) "c#". Can we do something about this?  Maybe ban C# from titles?  is sufficient to indicate you're working with C#.  It's worth noting that this problem isn't specific to C#. It's just the most common one (from my perspective) at this time. Maybe ban programming languages from being in the title? We don't need "reading xml file php" with a question that screams encoding error. What we need is titles like "Possible encoding error while reading XML file". The tag of  is sufficient to indicate it's for PHP.


Are "violation points" applied to EU licences outside of their home country?

Assuming I have a Czech license and break a minor law in Germany which incurs me a certain number of "violation points" (e.g. speeding), would those points be eventually transferred to my Czech license? I would obviously have to pay the fine (either on the spot or by mail), but it's not clear if EU countries exchange data on traffic points.  I would limit the scope to EU/EEA license holders driving within the EU/EEA, to avoid an overly broad question. Also assume that the person in question is resident in his home country and is only visiting other EU/EEA countries as a tourist.


How to eval string expression in salesforce

Boolean b1 = true; Boolean b2 = true; String b3 = 'b1 && b2'; Boolean b4 = Boolean.valueOf(b3); system.debug('test Bool '+ b4);   Given a string how can you convert into expression without breaking the sting.


I need a set-builder notation for $\{1 , 3 , 5 , -7 , -9 , -11 , 13 , 15 , 17 , \ldots\}$. It is an infinite set of odd positive integers, which are multiplied by $-1$ three by three. One of the terms of this question is not to use floor function.


NullPointerException should be called NullReferenceException?

We don't talk about pointers in Java, so why do we use the term NullPointerException in Java? I think the exception name NullReferenceException makes more sense.


I already read other questions like this but nothing seems to work. I just had my ASUS UX31A recovered from factory with Windows 7. Everything is fine there, so I tried to reinstall Ubuntu 12.04 LTS (the first time installation worked fine, so I was confident it would have worked this time as well). I shrik volume from my second Windows partition to make it unallocated, boot the Ubuntu live USB and when I try to install it tells me that there's no other operating sistem to install Ubuntu alongside. If I proceed with the manual operation to create the swap area and the OS partition, it doesn't make me choose whether it should be logical or principal, so I don't dare to go on. If I look at GParted it doesn't show the label OS on C:, while on the disk manager in Windows everything seems ok. What should I do? I DO NOT want to reinstall Windows, any other clue? Thanks  EDIT 1 I tried to launch os-prober in my Terminal and the only option I get is   /dev/sda5:Windows Recovery Environment (loader):Windows1:chain   while Windows 7 (mounted on dev/sda3) is not showed.  This is what I see in my Disk Manager inside Windows 7:   Click for a full-resolution image.  (Sorry for the Italian Language, C: basically is the partition with Windows system's file, while the D: one is for data), while this is what I see when I launch GParted:   Click for a full-resolution image.


Random process not so random after all (deterministic)

I would like to show (demonstrate by simulation) a random process that turns out after $i$ interactions to be deterministic, i.e. ends at predefined value (roughly) known at time $t=1$.  Conditions for the solution:  1) The random process should display randomness visible (graph) = interactive  2) The "convergence" to the end result should be gradual and therefore the end result surprising to the observer.     3) Solution in R (hopefully).  The meaning of surprising in this case: I mean, during the generating process, the observer expectation is not (rational?) .... (Surprise in sense of conviction that random is not random after all).   Sub-question (setup):  Does it matter whether the terminal (final) value is revealed to observer a priori (at the beginning of the generating process series) or after the process ends (to confirm the values match)?  Summary:  1) If solution is not provided, how to approach it? (any hint helps)  2) Which tool (statistical/modeling) should be used? How to set up the process?  EDIT: improved version (of what I'm asking)     Simulate a (large) number of identically distributed but dependent random variables, such that their sum is ideally equal to a prespecified value, or failing that (for continuous RVs, we will hit a single number with probability 0), which is in a given range with a given probability. (with @Stephan kind help.)


Broadcom BCM43142 not working on Ubuntu 18.04

I have a Lenovo e10 30, the WiFi is not working.  When I go to Software and Updates under the Additional Drivers tab; this device is using an alternative driver, and the driver that it is using is the Broadcom propriety driver.  Ubuntu 18.04 does not show the wireless card, only the ethernet network is working.  Can this problem be fixed? I have included the output for  sudo lshw -c network  *-network                         description: Ethernet interface        product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:01:00.0        logical name: enp1s0        version: 08        serial: 50:af:73:6a:fb:e8        size: 10Mbit/s        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8106e-2_0.0.1 04/23/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s        resources: irq:16 ioport:1000(size=256) memory:90604000-90604fff memory:90600000-90603fff   *-network UNCLAIMED        description: Network controller        product: BCM43142 802.11b/g/n        vendor: Broadcom Limited        physical id: 0        bus info: pci@0000:02:00.0        version: 01        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: memory:90500000-90507fff     sudo modprobe wl modprobe: ERROR: could not insert 'wl': Required key not available     fatima@fatima:~$ rfkill list all 0: ideapad_wlan: Wireless LAN    Soft blocked: no    Hard blocked: no 1: ideapad_bluetooth: Bluetooth    Soft blocked: no    Hard blocked: no 2: hci0: Bluetooth    Soft blocked: no    Hard blocked: no


Prove that the Gaussian Integer's ring is a Euclidean domain

I'm having some trouble proving that the Gaussian Integer's ring ($\mathbb{Z}[ i ]$) is an Euclidean domain. Here is what i've got so far.  To be a Euclidean domain means that there is a defined application (often called norm) that verifies this two conditions:   $\forall a, b \in \mathbb{Z}[i] \backslash {0} \hspace{2 mm} a \mid b \hspace{2 mm} \rightarrow N(a) \leq N (b)$ $\forall a, b \in \mathbb{Z}[i] \hspace{2 mm} b \neq 0 \rightarrow \exists c,r \in \mathbb{Z}[i] \hspace {2 mm}$ so that $\hspace{2 mm} a = bc + r \hspace{2 mm} \text{and} \hspace{2 mm} (r = 0 \hspace{2 mm} \text{or} \hspace{2 mm} r \neq 0 \hspace{2 mm} N(r) \lt N (b) )$   I have that the application meant to be the "norm" goes: $N(a +b i) = a^2 + b^2$, and I've managed to prove the first condition, given that N is a multiplicative function, but I can not find a way to prove the second condition.   I've search for a similar question but I have not found any so far, please redirect me if there's already a question about this and forgive me for my poor use of latex.


After applying SMOTE, the class distribution doesn't match the real world. Is this a problem?

I have an extremely unbalanced dataset with two classes:  1: 1,800 # class 1  0: 40,000 # class 0    This is real world customer data of churned/not churned  If I were to use smote to oversample / undersample, the model would be trained on an artificially created distribution of classes that does not reflect the real world whatsoever.  Should the training data reflect the real world, or is smote a widely used technique to balance the classes in production environments? I feel like I would be training a model for a completely different task if the training data doesn't reflect the unseen data.  My model is currently performing quite poorly on the 1 class, which is why I'm investigating smote.  Any insight is appreciated from people who have used smote. I can't find info of this issue in smote tutorials online. So perhaps it's not an issue?


Do the words "en dash" and "em dash" require a hyphen?

I have seen the compound words "en dash" and "em dash" sometimes appear with a hyphen ("en-dash") and sometimes without. Are both the hyphenated and the unhyphenated forms correct?


Model Looks Dirty after Ambient Occlusion Bake

I tried to AO bake my model, but it became very "dirty" with many black dots on it. How can I remove them?


How to generate a random number from normal distribution (not allowed to use built in functions)

Hint: To generate this number you could perform the experiment of tossing fair coin 10 times.    I guess we are supposed to use the normal approximation to binomial distribution. But I'm stuck after that. Can anyone help me?


.htaccess or .htpasswd equivalent on IIS?

Does anyone know if there is an equivalent to .htaccess and .htpassword for IIS ? I am being asked to migrate an app to IIS that uses .htaccess to control access to sets of files in various URLs based on the contents of .htaccess files.   I did a google search and didn't turn up anything conclusive. Is there a general approach or tool that I need to purchase that provides this capability ?


I'd like to say something like "Then, we have the question: why did this happen?" What is a proper way to say this using the phrase "The question then arises..."? Is it "The question then arises as to why this happened."? If this is correct usage, are there other continuations of this phrase (i.e. "The question then arises") that I could use?


I am currently using Ubuntu 12.04 because the latest upgrade 14.04 is not working in my system. I need to install the latest Adobe Flash Player 17 plugin, but it only allows me to install up to version 11.02, so media files cannot be opened. It says that Adobe Flash Player 17 is not compatible with my system.


I was reading some lectures on quantum information theory and it came with the idea of " mutually unbiased bases" that I  never heard about. But the definition is very simple: two basis $ B = \{|b_0> , |b_1>  \} $ and $ C = \{|c_0> , |c_1>  \} $ are said to be mutually unbiased if $ <b_i|c_j>$ is independent of i and j for every i and j. In other words, if the scalar product does not depend on any vector in some of the basis, but is just a number. I do not know why this definition can be useful at all. In other words: why would I want a set of basis to be mutually unbiased? More specifically, where can it be useful in quantum information theory? That was my first question. Now, given to basis: $ Z = \{ |0> , |1> \}$ and $X = \{|+> , |-> \}$, with $ |+> = \dfrac{1}{\sqrt2}|0> + \dfrac{1}{\sqrt2}|1> $ and $ |-> = \dfrac{1}{\sqrt2}|0> - \dfrac{1}{\sqrt2}|1> $ I need to find another basis Y that is mutually unbiased with both X and Z and show that there is no other basis that is mutually exclusive with X, Y and Z. Of course we all know the answer must be $Y = \{\dfrac{1}{\sqrt2}|0> + \dfrac{i}{\sqrt2}|1> , \dfrac{1}{\sqrt2}|0> - \dfrac{i}{\sqrt2}|1> \}$, but I cannot show this to be true. My first attempt was to write $Y = \{ |a> , |b> \} $ and write it as a combination of the basis Z as $ |a> = \alpha|0> + \beta|1> $ and $ |b> = \omega|0> + \lambda|1> $ and then try to solve for the coefficients $\alpha$, $\beta$ , $\omega$ , and $\lambda$ given the set of equations $ <a|a> = 1$ , $ <b|b> = 1$ and $<a|b> = <b|a> = 0$ but I did not get anywhere. Any help?


H-264 mp4 video plays on an iPhone when embedded in a PDF via Acrobat, but not via media9

Is there a bug in the media9 package that causes H-264 mp4 files to embed properly and play properly on a computer, but not an iPhone? I embedded the exact same mp4 video file in Acrobat X Pro (Mac OS 10.6.8) using the video tool under Multimedia, in which case the video played perfectly in Acrobat X Pro and ezPDF Reader on the iPhone. However, when I embedded the exact same video file via media9 (testing both VPlayer.swf and StrobeMediaPlayback.swf), the file played in Acrobat, but showed up as a blank media folder icon in ezPDF Reader. Clicking on that folder threw up an error message of   Media playback failure. Can not play format.   My LaTeX2e distribution is MacTeX 2012. I am using the LaTeX engine in TeXShop.


Arrow and flow of charge in fermion propagator

The momentum-space fermion propagator in the free Dirac theory is given by       The arrow on the fermion propagator is said to represent the flow of charge.  How can we derive this statement quantitatively from the Dirac Lagrangian?  What is the quantitative form of the charge being referred to here?


In my drawings I use a hand drawn looking line style to indicate discontinuity. Therefore I use a random line style. Since you cannot change the decoration in between a path creation, I’m facing a problem. How do I fill an area that is defined by such a style? Or to rephrase it: how can I fill the second rectangle in the following example?  \documentclass{article}  \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing}  \tikzset{handwritten/.style = {     decorate, decoration={random steps, segment length=2mm, amplitude=0.3mm}     } }  \begin{document}     \begin{tikzpicture}         \draw[fill=green] (0,0) -- ++(left:3) --  ++(down:1) [handwritten] -- ++(right:3) -- cycle;     \end{tikzpicture}     \begin{tikzpicture}         \draw (0,0) -- ++(left:3);         \draw[handwritten] (-3,0) --  ++(down:1);         \draw (-3,-1) -- ++(right:3);         \draw[handwritten] (0,-1) -- (0,0);     \end{tikzpicture} \end{document}


I've been looking for hours now on how to edit a profile on Apple Configurator but to no luck. There are some similar responses, but none of them were of too much help. I am trying to edit a profile that exists on a iPad Air, but not the mac. Can anyone help me?


How do I label equations without the chapter number?

I have an equation, such as:  \documentclass{report}  \begin{document}  \chapter{hello} \begin{equation} x=1 \end{equation}  \end{document}   And the equation appears as "x=1 (1.1)".    What I want is "x=1 (1)" ignoring the chapter number.  How do I get that?  Thank you.


Like wise open packages for Ubuntu 14.04.3

Please help me ASAP on installing Likewise open gui packages for ubuntu 14.04.3 LTS desktop version.    Thanks and Regards, Raghava


Creating a Lebesgue measurable set with peculiar property.

On an exam I took recently, I was challenged with the following problem but couldn't come up with an answer. I couldn't find the answer by searching the forum either so I hope it hasn't been asked before. Any help on how to answer, and if possible how to think when challenged with this kind of problem, is much appreciated:     Problem Create a Lebesgue measurable set $E\subseteq [0,1]$ such that $0<m(E \cap I)<m(I)$ for all intervals $I=(a,b)$, where  $0\leq a<b\leq 1$ and m is the Lebesgue measure.


I used QGIS 3.2 to load OSM data obtained from Geofabrik as      Layer/ Add Layer/ Add Vector Layer   The problem is that QGIS does not show roads completely compared to the OpenStreetMap website. I converted the .osm format to .xml and searched for the ID of missing line segments from the OSM website. I found out the  tag with the specified ID exists in the XML file so the Geofabrik data is the same as OSM webpage. I also installed QuickOSM plugin in QGIS with no success of loading the whole data. Is it some bugs in QGIS or something else?


Where does the word "torsion" in algebra come from?

Torsion is used to refer to elements of finite order under some binary operation. It doesn't seem to bear any relation to the ordinary everyday use of the word or with its use in differential geometry (which relates back to the ordinary use of the word). So how did it acquire this usage in algebra?  I'm interested to understand the intuition behind why the word "torsion" was chosen for this notion, as well as when it was first used.


Formula for reflection across a line in $\mathbb{R}^2$?

$\newcommand{\Reals}{\mathbb{R}}$I have an equation of a line: $4x - 3y = 0$. Let $S : \Reals^2 \to \Reals^2$ be reflection through that line, and let $P : \Reals^2 \to \Reals^2$ be projection onto that line.  I want to find a vector that represents the reflection through that line and a vector that represents the projection onto that line. Are there any formulas for these?


Prove $f(z)=c$ when $\operatorname{Re}(f)$ has an upper bound ($f$ is analytic)

As the title says      Prove $f(z)=c$ when $\operatorname{Re}(f)$ has an upper bound, given that $f$ is analytic   I am just getting introduced on complex analysis, and I found proving that $f(z)=c$ when $f'(z)=0$ (some previous exercise) relatively easy, but this one looks very strange since $\operatorname{Re}(f)$ being upper bounded sounds very generic.  Any help will be appreciated.


How to check the disk activity of my hard-drive?

I had a problem in Windows 8 where my hard-drive activity was reaching 100% all the time and the system was very slow. Now I've switched to Ubuntu Gnome and want to check if this is still a problem on Ubuntu. Is there a way to check this?   I am not looking for how much space I have on my HDD! I know how to find CPU and RAM usage as well. I am looking to find out the disk activity of my drive. For example, using  Windows Task Manager it reports the disk activity as 0.04%. This is what I am looking for:


Why can't I output the values of this object?

I need to add a randomly generated number to an object state, keeping track of where in the array the object is by a count (acc_count) that is written to a text file each time a new object is added to the array. After the random number is added to the array as (.set/.getUserID) I want to print all userIDs in the array of objects, however I get the error [java.lang.NullPointerException]. Why is this happening?   public class Test {  public static int acc_count = 0;  public static void main(String[] args) throws IOException{      Accounts[] account = new Accounts[2000];     ArrayList<Integer> list = new ArrayList<Integer>();      for (int i = 1000; i < 9999; i++) {         list.add(new Integer(i));     }      Collections.shuffle(list);      FileReader fr = new FileReader("Instance Counter.txt");     BufferedReader br = new BufferedReader(fr);     FileWriter fw = new FileWriter("Instance Counter.txt", true);      String line = br.readLine();     acc_count = Integer.parseInt(line);     acc_count++;     String l = String.valueOf(acc_count);      PrintWriter pw = new PrintWriter("Instance Counter.txt");     pw.close();      fw.write(l);     fw.close();        account[acc_count-1] = new Accounts();     account[acc_count-1].setUserID(list.get(acc_count));           for (int f = 0; f < account.length; f ++){             System.out.println(account[f].getUserID());          }   }   }


I want to change the pedals on my spinning bike but to clipless but

Ive bought a spinning bike to help in lockdown, and its ace...I want to change the pedals to a clipless set. I bought some clipless pedals, but the thread on the pedal is way smaller than the ones coming off. I read about and bought an adapter, but its on marginally larger. Is what I'm trying to do possible, there only seem to be 2 pedal sizes and each would be way to small to fit my crank. Is it possible I have a crank that only fits its own pedal size??. Any help would be appreciated as I'm a set of pedals shoes and an adapter down at the moment. Many thanks


I want cron to be run in every 55 mins. I followed the link   and my crontab command is  */5 * * * * [ $(( $(date +%s) / 60 % 55 )) -eq 0 ] && wget http://localhost/sandbox/run-cron-job   but I am getting error message in file /var/mail/root  From root@shashikanth-912  Wed May 20 10:55:01 2015 Return-Path: <root@shashikanth-912> X-Original-To: root Delivered-To: root@shashikanth-912 Received: by shashikanth-912 (Postfix, from userid 0)         id DD3CE4006E; Wed, 20 May 2015 10:55:01 +0530 (IST) From: root@shashikanth-912 (Cron Daemon) To: root@shashikanth-912 Subject: Cron <root@shashikanth-912> [ $(( $(date + Content-Type: text/plain; charset=ANSI_X3.4-1968 X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> Message-Id: <20150520052501.DD3CE4006E@shashikanth-912> Date: Wed, 20 May 2015 10:55:01 +0530 (IST)  /bin/sh: 1: Syntax error: end of file unexpected (expecting ")")   How to fix this problem.


Rebinding events in jQuery after Ajax update (updatepanel)

I have several input and option elements on my page, each (well almost) have an event attached to update some text on the page once they change. I use jQuery which is really really cool :)   I also use Microsofts  framework, utilizing the UpdatePanel. The reason why I do that is that certain elements are created on the page based on some server-side logic. I don't really want to explain why I use the UpdatePanel - even if it could (it can with quite some effort) be rewritten to use only  I still want that UpdatePanel.  You probably guessed it - once I have a postback on the UpdatePanel the jQuery events stops working. I actually was expecting this, since the "postback" is not really a new postback so my code in document.ready that binds the events won't be fired again. I also confirmed my suspicion by reading up on it in the jQuery help libraries.  Anyway I'm left with the problem of rebinding my controls after the UpdatePanel is done updating the . I preferably need a solution that does not require adding more .js files (jQuery plug-ins) to the page but something as simple as being able to catch the UpdatePanel's 'afterupdating' where I can just call my method to rebind all the form elements.


There's a lot (of biscuits). How can it be explained from the grammatical point of view?

While flicking through a textbook for beginners I came across the following:     How many biscuits are there? - There's a lot!   I wonder how "there is" can be explained to a student who knows that "biscuits" is a countable noun given in the plural in the sentence.


Why 1 is not the limit of 0.999... but equal?

$\lim_{x\to0}x=0$ $\lim_{x\to1}x=1$ Limit is unreachable, isn't that mean for x→0 can never be 0? That's why infinitesimal isn't 0, because its limit is 0. (By Wikipedia: infinitesimals or infinitesimal numbers are quantities that are closer to zero than any standard real number, but are not zero.) But if apply the same cases, x→1 has a limit of 1, and $x$ can never be 1. So what's the difference between the $x$ here and 0.999... ? Both of them are approaching 1, not equal to 1 and greater than all the number smaller than 1. If this is true then 1 should only be the limit of 0.999... but not equal. Just as infinitesimal doesn't exist on standard real number system, shouldn't 0.999... also not exist in standard real number system but rather than equal to 1? Where am I wrong? Really looking forward to replies. Can't really accept 0.999...=1 from such reason: there is no real number between 0.999... and 1, so they are equal. Isn't this the idea and concept of limit?


I am trying the following exercise : Let $f\in C^\infty(\mathbb{R}^2, \mathbb{R}^2)$ and $\forall x\in\mathbb{R}^2$ $f(kx)=k^2f(x)$ for $k\in\mathbb{R}$  Show that any periodic solution of $y'=f(y)$ is constant.  Thank you in advance


Regarding new possible EU travel limitations of US citizens

Regarding the new vote in the EU parliament, I wanted to know the affect on traveling in the EU if already possessing a visa.    For the case of already having a visa to enter one EU country, either long-term work or study, would there be a need to obtain another visa when entering another EU Country? (Ex. Possession of US Passport + German Work Visa, but want to visit France)


Trigonometric Integral Using Residue Theorem

Evaluate:  $$\int_{0}^{2\pi} \frac{1}{1+a^2-2a \cos(x)} dx$$  where $a>1$.  I am trying to transform the integral into a contour integral in which the Residue Theorem would apply, but am having trouble.


Avoid parentheses around optional header material in theorem environment

I would like to get rid of the around the optinal header material in my theorem environment. Here is a MWE   \documentclass{beamer} \begin{document} \setbeamertemplate{theorems}[numbered] \newtheorem{MyHypo}{Hypothesis} \begin{frame} \begin{MyHypo}[insert text] This is my hypothesis \end{MyHypo}  \end{frame}  \end{document}    Is there another option for the setbeamertemplate to keep the numbering but avoid the ( ) for the text?


How to share Knowledge Articles with external clients

I'm looking for suggestions on how to share Knowledge Articles with external clients.  I have searched web and one way seems to be to setup a Community and then share articles by check marking which channel the article is shared (Internal, Partner, Customer, public knowledge).  Looking for detailed steps on how this, or other options, are done; so any info would be much appreciated.  other info - we are currently running Salesforce classic but we plan to move to Lightning soon - so not sure how that might affect my approach


I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


How to have roman numerals at the beginning of the document?

The first few pages of my document (introductory material)  should be numbered using roman numerals. Starting with a specific chapter, the remaining pages should be numbered arabic, starting from one (1) again.   How can i achieve this? Are there any pitfalls i need to look after?


i want to use the same socket address for multiple calls for this task.  i tried to get the address from different class but didn't work .  please help !!!  my call from different class is:  new ConnectToServer().execute(ip, "2000", "br1");   my code for task is:  public class ConnectToServer extends AsyncTask<String, Void, Void> {      @Override     protected Void doInBackground(String... parms) {         // TODO Auto-generated method stub         try {              Socket s = new Socket(parms[0], Integer.parseInt(parms[1]));             // ******              OutputStream os = s.getOutputStream();             BufferedOutputStream out = new BufferedOutputStream(os);              if (parms[2] == "br1") {                 out.write("rr1".getBytes());                 out.write('\n');                 out.flush();             } else if (parms[2] == "br2") {                  out.write("rr2".getBytes());                 out.write('\n');                 out.flush();             } else if (parms[2] == "br3") {                 out.write("rr3".getBytes());                 out.write('\n');                 out.flush();             } else if (parms[2] == "br4") {                 out.write("rr4".getBytes());                 out.write('\n');                 out.flush();             } else if (parms[2] == "bb1") {                 out.write("bb1".getBytes());                 out.write('\n');                 out.flush();             } else if (parms[2] == "bb2") {                 out.write("bb2".getBytes());                 out.write('\n');                 out.flush();             } else if (parms[2] == "bb3") {                 out.write("bb3".getBytes());                 out.write('\n');                 out.flush();             } else if (parms[2] == "bb4") {                 out.write("bb4".getBytes());                 out.write('\n');                 out.flush();             }              // s.shutdownOutput();          } catch (NumberFormatException e) {             // TODO Auto-generated catch block             e.printStackTrace();         } catch (UnknownHostException e) {             // TODO Auto-generated catch block             e.printStackTrace();         } catch (IOException e) {             // TODO Auto-generated catch block             e.printStackTrace();         }         return null;     }  }


How do I Concatenate entire result sets in MySQL?

I'm trying out the following query:  SELECT A,B,C FROM table WHERE field LIKE 'query%' UNION SELECT A,B,C FROM table WHERE field LIKE '%query' UNION SELECT A,B,C FROM table WHERE field LIKE '%query%' GROUP BY B ORDER BY B ASC LIMIT 5   That's three queries stuck together, kinda sorta. However, the result set that comes back reflects results from query #3 before the results from query #1 which is undesired.  Is there any way to prioritize these so that results come as all for query #1, then all for query #2 then all for query #3? I don't want to do this in PHP just yet (not to mention having to control for results that showed up in the first query not to show in the second and so forth).


Without using prime factorization, show if $m\mid n^2$ then $\gcd(m,n^2/m)\mid n$

It's easy to use prime factorization to show:     If $m\mid n^2$ then $\gcd(m,n^2/m)\mid n$.    Can anybody find some other proof - perhaps a simple reduction of some sort? Maybe solving $m^2x + n^2y=mn$, for example?  I suppose the result would follow if you could prove that $\gcd(m^2,n^2)=\gcd(m,n)^2$, since $\gcd(m,n)^2\mid mn$ since $\gcd(m,n)\mid m$ and $\gcd(m,n)\mid n$. That result doesn't even need $m\mid n^2$.


Is it better to use MAE or MSE for perfomance measure?

My data set is about forest fires in Portugal. I want to define a model that can predict better wildfires. In my data set, the outliers are entries referring to big fires. What is the best performance measure in this situation? I'm using the model SVM, which is the one that gives me a lower value of MAE but with RandomForest i get better values of MSE and NMSE. I don't know what is the best in this situation. Thanks for your help.


Altium off sheet connector vs net vs ports

I have difficulties to understand what are the differences between a net, a port and a off sheet connector.   I particularly don't understand when to use a port and when to use a off sheet connector when there are multiple sheet.  I see sometimes people use port and sometimes they use off sheet connector, while I still read that only net can be used in some situations.


Issue with conditionals inside of a for loop (JAVA)

Im learning programming with my group of friends and we are seriously stucked with something that looks pretty easy at first sight.  Basically we have a for loop that runs once. Inside we get some user input. Then we use a conditional to establish if we should add +1 to countM (Male count) or +1 to countF (Female count) instead.  PROBLEM -> The issue comes on the conditionals. When the user input is "F", the programm should be executing countF++, (if the requirements are fullfiled) however countM++ is the one executing everysingle time even if the user input is F and not M.  public static void main(String[] args) {      int countM = 0;     int countF = 0;      int peso;     int estatura;     String sexo;       for (int i = 1; i <= 2; i++) {           if(i == 2){            JOptionPane.showMessageDialog(null, "El nº de chicos aptos es " + countM);           JOptionPane.showMessageDialog(null, "El nº de chicas aptas es " + countF);           break;         }           JOptionPane.showMessageDialog(null, "Teclea los datos del alumno nº "+ i);           estatura = Integer.parseInt(JOptionPane.showInputDialog("Teclea la estatura del alumno (cm)"));         peso = Integer.parseInt(JOptionPane.showInputDialog("Teclea el peso del alumno en kg"));         sexo = JOptionPane.showInputDialog("Teclea el sexo del alumno (M o F)");            if(sexo == "F"){             if(estatura>160 && peso>60){             countF++;             }         }          else{             if(estatura>170 && peso>70){             countM++;             }         }                    }        }


Ubuntu 20 - Chromium doesn't show anything in Recents

I have a lot of files in Recent, and I can see them in apps like LibreWriter.  But when I want to upload a file somewhere form Chromium, I don't see those files in Recent.  This is really annoying because every time I want to open the file I just worked on (screenshot, document etc.) in Chrome, I need to navigate to its folder. After I upload a file, it appears in Chrome's Recent, but new recent files created in other apps, do not. This makes Recent useless in Chromium.  Is this because of the ? How can I make Recent function normally?


Hi. What does this syntax mean in python?

What does this syntax mean in python? Why after assignment is slash ? discriminator_on_generator= \     generator_containing_discriminator(generator,discriminator)


Install / Dual-boot Ubuntu on a Android tablet?

I have a Samsung Galaxy Tab 3 7.0 (SM-T210), I would love to install Ubuntu on it. Is it currently possible? And is anyone developing a rom?


How can I log the activity of a directory?

I need to know which files have been copied to or removed from a directory or folder such /dev or /mnt or any other directory.  How can I do that?


How to emulate middle-click on two-finger tap on a Synaptics touchpad?

I have a Synaptics touchpad whose whole surface is clickable (so the whole surface physically moves down). In windows, I can configure it so pressing the pad with two fingers works like right-click and tapping the pad with two fingers works as middle-click. How can I configure it this way in Ubuntu 13.04?


Non-perpendicular hyperplane decision trees

The usual implementation of decision trees, and estimators based on ensembles of decision trees, use decision trees that threshold on a single predictor at each split. So they divide the feature space into perpendicular hyperlanes.  Is there any benefit to generalizing this a tiny bit. So at each split, the decision tree uses 2 features, and thresholds based on whether $ax_1 + bx_2 \ge T$. In other words, the feature space is now getting divided into hyperplanes that are not necessarily perpendicular.   I think the main disadvantages would be:    increased computation, and  overfitting since now using more degrees of freedom   I guess to help both of these issues, randomization could be used analogous to extra trees. The pair of features could be randomly selected, instead of exhaustively trying every pair, and the threshold T and parameters a and b could be chosen randomly as well (perhaps from a set of few discrete values such that the hyperplanes could have a few orientations).  Are there some cases where you think these non-perpendicular decision trees would be an improvement over the regular implementation of various decision tree algorithms?


Based upon the first question I have implemented operator overloading to one of my List by inheriting from it.  Today I stumbled upon the second link. So my question is "Is it possible to do operator overloading with List without inheriting from it?"  //Copying the content of first question     I'm trying to overload an operator in C# (don't ask why!) that applies   to Lists. For example, I'd like to be able to write:  List<string> x = // some list of things  List<string> y = // some list of things  List<string> z = x + y        so that 'z' contains all the contents of 'x' followed by the contents   of 'y'. I'm aware that there are already ways to combine two lists,   I'm just trying to understand how operator overloading works with   generic structures.      (This is the List class from Systems.Collections.Generic, by the way.)


stackoverflow appears without CSS in Chrome

When viewing the main stackoverflow.com site in Chrome 28, I don't get the CSS.     It works fine in IE10.  The chrome debugger shows a failure to get CSS resources over the HTTPS connection:  GET https://cdn.sstatic.net/stackoverflow/all.css?v=7f92ff1ddd7d  stackoverflow.com/:10 GET https://cdn.sstatic.net/js/stub.js?v=dd6898efd655  stackoverflow.com/:10 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:16 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:23 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:30 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:35 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:3079 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:3092 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:3105 allow right click initializing for http://stackoverflow.com/ rightclick.js:1 allow right click processing http://stackoverflow.com/    On stackexchange sites where the CSS resources are retrieved over an HTTP connection, there are no errors.   I note that if I try to directly go to , chrome gives me a warning about the certificate's domain not matching *.stackexchange.com.  If it matters, I am behind an iPrism web filter.


Does using the Lucky Feat to tranform disadvantage into super-advantage still work with a net?

In , it can be seen that using a luck point when doing something at a disadvantage essentially transforms it into super-advantage.  Does this specific strategy still works when throwing a net (which, by default, are always at a disadvantage due to their 5ft short range) ?


How to fix "could not retrieve the required disk image files" error?

I can´t install Ubuntu with Wubi on my Windows 7 laptop, there is a pop up with the message      Could not retrieve the required disk image files


What affect does having two URLs pointing to the same path have on SEO?

I have two URLs: http://ent.example.com and http://www.example.com/ent/. Both of them are mapped to my server path /www/ent.   I am very confused, how would this affect my SEO as far as Google is concerned? If two URLs are pointing to the same path, would Google consider this cheating?


My Zelda does not save after beating Ganon in botw

Confused why happening pls respond I’ve done the Ganon fight twice it never saves


I'd like to make a bunch of 3D ribbon plots in TikZ or PGF, I've taken a look around and I've found no hints on how this might be accomplished, is there a simple way to do this? I'd settle for a 3D waterfall plot which may be easier to achieve.  My data is formatted thus:    theta -5 -4 -3 -2 -1 0 1 2 3 4 5


Character can't jump in other angle with fixed angle off

I turn off fixed angle so my character can rotate, but it can only jump in 1 angle but I want it to jump in every angle.   How do I do that?  Code:  using UnityEngine; using System.Collections;  public class Player: MonoBehaviour {    public float maxspeed = 10f;   bool facingRight = true;    Animator anim;    bool grounded = false;   public Transform groundCheck;   float groundRadius = 0.2f;   public LayerMask whatIsGround;   public Vector2 jumpDirection = new Vector2(0f, 0f);   public float jumpFocre = 500f;   bool doubleJump = false;    void Start ()   {     anim = GetComponent<Animator> ();   }    void FixedUpdate () {     grounded = Physics2D.OverlapCircle(groundCheck.position, groundRadius, whatIsGround);     anim.SetBool ("Ground", grounded);      if (grounded)       doubleJump = false;      float move = Input.GetAxis ("Horizontal");     anim.SetFloat ("Speed", Mathf.Abs (move));      GetComponent<Rigidbody2D>().velocity = new Vector2(move * maxspeed, GetComponent<Rigidbody2D>().velocity.y);   }    void Update()   {     if((!doubleJump) && Input.GetKeyDown ("up"))     {       anim.SetBool("Ground", false);       float move = Input.GetAxis ("Horizontal");       jumpDirection.x = move;       GetComponent<Rigidbody2D>().AddForce(jumpDirection.normalized * jumpFocre);        if(!doubleJump && !grounded)         doubleJump = true;     }   }    void Flip()   {     facingRight = !facingRight;     Vector3 theScale = transform.localScale;     theScale.x *= -1;     transform.localScale = theScale;       } }