How to find the default value of variables (e.g., \columnsep)

I want to use the value of \columnsep but I can not find what was the default value.


I am taking my first course in Real Analysis this fall. With my background in analysis limited, I knew it was going to be a difficult course, and I prepared all summer. However, with the online university situation, my real analysis professor has been insufferable and made the class so much harder. His lectures are 100% reading out loud his textbook, and he has banned all external conversation and materials. I have been doing well, but I am essentially just teaching myself analysis from a textbook I dislike and it is taking a  real mental toll to adhere to deadlines on homework that is extremely difficult and is focused on finding counterexamples, rather than understanding the material. My main and only goal is to pass a graduate real analysis qualifying exam. At this point, I think it would be easier to just teach myself everything, rather than stress and frustrate myself with this course in such an already stressful time. Does anyone have any book or material resources that would be best for teaching oneself real analysis? I have been reading Royden's Real Analysis, and I find it very readable and good for an introduction. I still need other materials to get a variety of problem sets and information. Books specifically from a perspective of set theory and algebra would feel most natural to me. Unfortunately, I cannot go to a library to seek other books before buying them, so your suggestions would be very helpful.


I can't close the IntelliJ IDEA when it hangs, how can I close it from the terminal?  P.S.: I think this question is different from "How to kill a unresponsive program from terminal?" because IntelliJ's process has name just 'java' so you can't really tell it apart by its name.


How prove this $\int_{a}^{b}[f''(x)]^2dx\ge\dfrac{4}{b-a}$

let $f$ on $[a,b]$ two  continuously differentiable functions,such      $$f(a)=f(b)=0, f'(a)=1,f'(b)=0,b>a>0$$   show that   $$\int_{a}^{b}[f''(x)]^2dx\ge\dfrac{4}{b-a}$$   My idea: use Cauchy-Schwarz inequality $$\int_{a}^{b}[f''(x)]^2dx\cdot\int_{a}^{b}g^2(x)dx\ge\left(\int_{a}^{b}f''(x)g(x)dx\right)^2$$ How find the $g(x)$?  then I think      \begin{align} \int_{a}^{b}f''(x)g(x)dx &=\int_{a}^{b}g(x)df'(x)=f'(x)g(x)|_{a}^{b}-\int_{a}^{b}f'(x)g(x)dx\\ &=f'(b)g(b)-f'(a)g(a)-\int_{a}^{b}g(x)df(x)\\ &=-g(a)+\int_{a}^{b}g'(x)dF(x)\\ &=-g(a)+F(x)g'(x)|_{a}^{b}-\int_{a}^{b}F(x)g''(x)\\ &=-g(a)+F(b)g'(b)-F(a)g'(a)-\int_{a}^{b}F(x)g''(x)dx \end{align}   where $F(x)=\int_{a}^{x}f(t)dt$      Now following I can't find the $g(x)$? can you help me or use other methods solve it? Thank you    and some hours ago: I ask this integral inequality:


If a character like Pharah or Junkrat hurts themselves in spawn, before the round starts, and Mercy/Zenyatta/Lucio heals them, will it count towards their healing stats for that game?


I know that this is probably asked many times already. I just want to center all items of my navbar vertically. I tried to set vertical-align: center; in my headercss tag. I probably miss something:

Login

                     <input class="searchbar" type="text" placeholder="Search...">                     <button class="search-button" type="submit"></button>
                           css:  *{     margin: 0;     padding: 0;     text-decoration: none;     list-style: none; }  body{     font-family: sans-serif; }  /* Navbar stuff */ header{     background-color: #424242/*#80aaff*/;     height: 60px; }  .navbar{     width: 80%;     margin: auto; }  .branding{     float: left; }  .navbar-links{     float: right; }  .navbar-links ul{     list-style: none; }  .navbar-links ul li a{     text-decoration: none;     text-transform: uppercase;     color: white; }


iPhone 4s: I keep receiving notifications over 3G for apps that I've disabled cell data for

I try and keep an eye on my cell data so I don't use too much. From what I've noticed from my own usage the apps that eat up the most data are the ones that stream music and videos like Pandora and Youtube, so I turned off cell data for these apps. Just yesterday I got a notification from Pandora saying "New music has been added to so-and-so station". I wasn't on wifi and after double checking the cell settings data was still disabled for it.   Whats going on?


What hook is the currently active theme's functions.php file loaded on?

At which point of hook execution is the currently activated theme's functions.php file loaded?


Continuity via sequences in general topology

I have anexo exercise to answer that if for every sequence $x_{n} \rightarrow x$ we have $f(x_{n}) \rightarrow f(x)$ than is f continuous or not. Continuous here means that $f^-1(A)$ is open If $A$ is open I feel that this is false but can neither proof or show a counter example PS: Sorry If duplicate but couldnt find the same question on search


I'm writing a program in which a user can create a rectangle by giving the upper left and lower right coordinates. In turn, my program should automatically set the upper right and lower left coordinates using the points the user enters.   Ex: User adds a rectangle with the points (5,25) for upper left and (20,10) lower right. So the upper right point would be (20,25) and the lower left point would be (5,10).  This is how I wrote that out in my Rectangle class:  Point upperLeft; Point lowerRight; Point upperRight; Point lowerLeft; public double area; public double perim;  public Rectangle (Point upperLeft, Point lowerRight){     this.upperLeft = upperLeft;     this.lowerRight = lowerRight; }  public Point getUpperLeft() {     Point p = upperLeft;     return p; }  public void setUpperLeft(Point p) {     this.upperLeft = p; }  public Point getLowerRight() {     Point p2 = lowerRight;     return p2;  }  public void setLowerRight(Point p2) {     this.lowerRight = p2; }  public Point getUpperRight(){     upperRight.setX(lowerRight.getX());      upperRight.setY(upperLeft.getY());     return upperRight; }  public Point getLowerLeft(){     lowerLeft.setX(upperLeft.getX());     lowerLeft.setY(lowerRight.getY());     return lowerLeft; }   In my main class I created a Rectangle called r, and did a println of r.getLowerRight(). Works fine, returns (20,10) as expected.  However, if I try to print one of the points that the user does not input, for example upperRight, I get a null pointer exception for the first line of getUpperRight, which is:  upperRight.setX(lowerRight.getX());    If I print the value of lowerRight.getX() on its own, it works. But for some reason when I try to set the X of the upperRight point to be the same as that of the lowerRight point, it just doesn't work. This is the Point class:  private double x; private double y; private double area; private double perim;   public Point(double x, double y){     this.x = x;     this.y = y; }   public double getX() {     return x; }  public void setX(double x) {     this.x = x; }  public double getY() {     return y; }  public void setY(double y) {     this.y = y; }  public String id() {             shapeID++;     String id = String.valueOf(shapeID);     return id; }  public double area() {     area = 0;     return area; }  public double perimeter() {     perim = 0;     return perim; }  public void hit(Point p) {  }  public String toString(){     return "(" + x + "," + y + ")"; }  public static double distance(Point p1, Point p2){     double distance = Math.sqrt((p1.x - p2.x)*(p1.x - p2.x) + (p1.y - p2.y)*(p1.y - p2.y));     return distance; }   }   Another note: Even if I replace upperRight.setX(lowerRight.getX()) with upperRight.setX(20.0), the getUpperRight println will still give a null pointer exception, which makes me think the problem is with the upperRight.setX part of the statement.   edit: I really don't see how this is a duplicate of "what is a null pointer exception?" That's a much more general question. I know what it is, but I don't see how it applies here.


Meta edit buttons disabled and not on main site

The edit buttons are disabled on the meta and not main site. Is this status by design or a bug?


What size lens do I need? I am shooting video from a distance of about 10 to 11 feet away. I want to be able to go from a CU (top of head to mid-chest) to a full body shot (head to toe). I currently have a Sony NEX-5 with the standard lens the camera comes with. Advise on the type of lens to get?


Currently I am learning Quantum field theory, however I notice the lack of group theory knowledge especially Lie Algebra is quite fatal to my understanding. I hope to find some materials that can self study this field. My field of interest is mainly on quantum field theory and related theoretical particle physics. My mathematical skill is on the level of standard beginning postgraduate students on physics, I learn mathematical methods from physics side instead of mathematics side, so I am not familiar with the style of Definition proves lemma corollary. I hope the material focus more on the application on physics theory. Please recommend some lecture/course materials/books that may meet these requirement.


I was asked to inherit this project at work and re-do the animation as the background and lighting structure shape changed. I was going to use Motion 5 or After effect, but I was curious if I could it in Blender as well. If possible I want to do it in Blender as I would like to take it as a learning opportunity. I am new to Blender, so I am not sure if this is achievable in Blender.  Please see the below link for the existing animation:   My main question is:   how to make neon lighting effect that constantly changes color in Blender? how to combine background image with lighting structure?    I have no idea where to start, tried to find some tutorials but no luck. I would appreciate your help!  Thank you.


Looking into inversion, I found a website listing different types of inversion, but I can't understand intro adverbial. The website says that inversions in this case are optional, and gives the following examples:  Into the room ran the lady. First comes love, then comes marriage. After A comes B, then comes C, next comes D. Down came the rain and washed the spider out.  Now, these examples are extremely hard for me to "restructure", I hope I can receive some help, this is the best I was able to come with:  Into the room, the lady ran. First comes love, marriage comes then. After A comes B, C comes then, D comes next.


I'm using Drupal 7.x. I have achieved to make it work without clean URLs.  Investigating, I have understood that I should create a vhost for each drupal site and enable clean URLs with the following code.  if (-e $ REQUEST_FILENAME) {      rewrite ^ / (. *) $ / index.php? q = $ 1 last; }   Alternatively, I could use this code.  location / {          [... ]          error_page 404 = @ drupal;          [... ] }  location @ drupal {          rewrite ^ (. *) $ / index.php? q = $ 1 last; }   However, I've also seen that without creating a vhost can enable clean URLs (like Apache). I tried on both lines in my setup but I do not get a result. When I enable clean URLs it always displays the word Nginx (The localhost).  What is the right way to enable clean URLs?  This is my configuration in /etc/nginx/sites-available/default.  server {         listen   80; ## listen for ipv4; this line is default and implied         listen   [::]:80 default ipv6only=on; ## listen for ipv6          root /usr/share/nginx/www;         index index.php index.html index.htm;          # Make site accessible from http://localhost/         server_name localhost;          location / {                 # First attempt to serve request as file, then                 # as directory, then fall back to index.html                 try_files $uri $uri/ /index.html;                 # Uncomment to enable naxsi on this location                 # include /etc/nginx/naxsi.rules         }          location /doc/ {                 alias /usr/share/doc/;                 autoindex on;                 allow 127.0.0.1;                 deny all;         }          location /images {                 root /usr/share;                 autoindex off;         }         # Only for nginx-naxsi : process denied requests         #location /RequestDenied {                 # For example, return an error code                 #return 418;         #}          #error_page 404 /404.html;          # redirect server error pages to the static page /50x.html         #         error_page 500 502 503 504 /50x.html;         location = /50x.html {                 root /usr/share/nginx/www;         }          #Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000         #         location ~ \.php$ {                 try_files $uri =404;                 #fastcgi_split_path_info ^(.+\.php)(/.+)$;         # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini                  # With php5-cgi alone:                 #fastcgi_pass 127.0.0.1:9000;                 # With php5-fpm:                 fastcgi_pass unix:/tmp/php5-fpm.sock;                 fastcgi_index index.php;                 include fastcgi_params;         }          # deny access to .htaccess files, if Apache's document root         # concurs with nginx's one         #         location ~ /\.ht {                 deny all;         } }   I have not created any vhost on my server; neither do I know how.


Minimal Sufficient Statistics and MLE for Parameters in a Piecewise Random Variable

Problem Setting: $X_i$ is i.i.d. from a piecewise distribution which is $$ f_{\theta_1, \theta_2}(x) = \frac{1}{\theta_1+\theta_2}e^{-\frac{x}{\theta_1}}I_{[x>0]} + \frac{1}{\theta_1+\theta_2}e^{\frac{x}{\theta_2}}I_{[x \leq 0]} $$ I want to figure out the minimal sufficient statistics for $\theta = [\theta_1,\theta_2]$ and find the maximum likelihood estimation for both of them. I try to use the factorization theorem, but I don't know how to deal with the indicator functions in the joint pdf $f_{\theta_1, \theta_2}(X)$, where $X = \{X_1, X_2,...,X_N\}$.


After the last figure of each chapter adds an extra line for me is bad. How I can fix?  Attached my configuration.  Thank you.  \documentclass[letterpaper,11pt,twoside,openright]{book}  \usepackage[english, spanish]{babel} % espanol \usepackage{inputenc} % acentos  sin codigo \usepackage[pdftex]{graphicx} %imagenes \DeclareGraphicsExtensions{.png,.jpg}  \usepackage{geometry} %  margenes para encuadernacion \geometry{bindingoffset=2cm} \geometry{textwidth=390pt}  \usepackage{color} % para el color de fondo y letras \definecolor{gris}{gray}{0.5} \usepackage[table]{xcolor}  \usepackage{verbatim} % para la letra tipo consola \setcounter{secnumdepth}{3} % para que ponga 1.1.1.1 en subsubsecciones \setcounter{tocdepth}{3} % para que ponga subsubsecciones en el indice  \usepackage[T1]{fontenc} \usepackage[scaled]{uarial} \renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document  \pagestyle{headings} % establece el estilo como book \pretolerance=10000 % se usa para no separar palabras se-pa-ra-cion \tolerance=10000  \usepackage{longtable}  %longuitud de las tablas (tabla 4.1 muy ancha)  \usepackage{hyperref} \hypersetup{     colorlinks=true,%     citecolor=black,%     filecolor=black,%     linkcolor=black,%     urlcolor=black }  \usepackage{amsmath,amsthm} \RequirePackage{wboiboites} \definecolor{itcrtxtcolor}{RGB}{255,255,255} \newboxedtheorem[boxcolor=gray,                   background=gray!15,                   titlebackground=gray!5,                  titleboxcolor = black]                  {Ejemplo}{Ejemplo}{thm}  \addto\captionsspanish{% Sirve para cambiar las traducciones que vienen en LATEX \def\bibname{Referencias}% \def\tablename{Tabla}% }  \begin{document}  ...


I am trying to fit generalized linear model for weibull family, but when I try it in R, it gives an error. I know that weibull does not fit in exponential family, but I have read some research articles about fitting GLM for weibull family. If anyone can help me with this, I really appreciate.  It gives the following error.   > data(lung) > glm(time ~ age+sex+ph.ecog+ wt.loss, family = weibull(link='log'), data = lung) Error in glm(time ~ age + sex + ph.ecog + wt.loss, family = weibull(link = "log"),  :    could not find function "weibull"


Using composite API is it possible to pass all Id's from a GET operation to another GET operation without knowing how many objects are being returned?

With composite we can use the results from a previous operation in the next operation by using the @{ref.records[0].} syntax as so:  {   "compositeRequest": [   {     "method": "GET",     "url": "/services/data/v46.0/query?q=select+Id+,name+from+account+limit+2",     "referenceId": "ref1"   },   {     "method": "GET",     "url": "/services/data/v46.0/sobjects/Account/@{ref1.records[0].Id}",     "referenceId": "ref2"   } }   My question, is there some sort of syntax that can enumerate the results from ref1 and pass all the Id's to a subquery in ref2? Something like so:  {   "method": "GET",   "url": "/services/data/v46.0/query?q=select+Id+,name+from+account+where+Id+in+(@{ref1.records.ITERATE_ALL_IDs})",   "referenceId": "ref2" }   The reason being that ref1 could return a variable amount of records so explicitly referencing each item in the array is not feasible.  This could be accomplished using two API calls where the first one retrieves the Id's and the second one uses those Id's but I would prefer to do this in the same composite API call.


Why bother with the dual problem when fitting SVM?

Given the data points $x_1, \ldots, x_n \in \mathbb{R}^d$ and labels $y_1, \ldots, y_n \in \left \{-1, 1 \right\}$, the hard margin SVM primal problem is  $$ \text{minimize}_{w, w_0} \quad \frac{1}{2} w^T w $$ $$ \text{s.t.} \quad  \forall i: y_i (w^T x_i + w_0) \ge 1$$  which is a quadratic program with $d+1$ variables to be optimized for and $i$ constraints. The dual  $$ \text{maximize}_{\alpha} \quad \sum_{i=1}^{n}{\alpha_i} - \frac{1}{2}\sum_{i=1}^{n}{\sum_{j=1}^{n}{y_i y_j \alpha_i \alpha_j x_i^T x_j}}$$ $$ \text{s.t.} \quad \forall i: \alpha_i \ge 0 \land \sum_{i=1}^{n}{y_i \alpha_i} = 0$$ is a quadratic program with $n + 1$ variables to be optimized for and $n$ inequality and $n$ equality constraints.  When implementing a hard margin SVM, why would I solve the dual problem instead of the primal problem? The primal problem looks more 'intuitive' to me, and I don't need to concern myself with the duality gap, the Kuhn-Tucker condition etc.  It would make sense to me to solve the dual problem if $d \gg n$, but I suspect there are better reasons. Is this the case?


Sometimes I want to compare the results of two different settings to see which gives better results (e.g. during the final fine tuning before handing in a document). Such settings can result in small changes in the location of words and other elements of the document.  Motivation  Seeing the documents side-by-side on screen is not always enough, and the cost of printing is too great.   Is there a method for overlaying two resulting PDFs (e.g. one PDF is transparent) so that the differences can be easily compared? What other methods can one use to compare two PDFs?


If α is a unit in $\mathbb{Z}[\sqrt2]$ then $a^2 - 2b^2 = \pm1$

$$\mathbb{Z}[\sqrt2]  = \{a + b√2: a,b \in \mathbb{Z}\}$$  The question is asking to prove that if $\alpha$ is a unit in this set, then: $$a^2 - 2b^2 = \pm1$$ I've hit a dead end already:   I wanted to use the fact that there must exist another element in $\mathbb{Z}[\sqrt2]$ such that $\alpha\beta = 1$.  Now I'm lost, since I've just accidentally shown that the difference of $a^2$ and $2b^2$ should be equal to $1$, not that they are both equal to $1$.  Am I going about this the wrong way?


How to convert file .shp to .tif using ogr or python or gdal

I need to convert files. I'm trying to use gdal_rasterize   gdal_rasterize -b 1 -burn 0 -l file file.shp work.tif   and the output is the following:     ERROR 10: Pointer 'hDS' is NULL in 'GDALGetProjectionRef'. Warning 1:   The input vector layer has a SRS, but the output raster dataset SRS is   unknown. Ensure output raster dataset has the same SRS, otherwise   results might be incorrect. Segmentation fault (core dumped)


Can I resize icons on the launcher to smaller than 32 pixels?

Is there a way to get smaller icons in Unity that are less than 32 pixels? I would like to set it at something like 24 or 26, because 32 is too big on a 1366x786 screen.


limits problem-ordinary sencond order equation

we consider the problem $$ \begin{cases} x^2 y''+xy'+\lambda y\\ y(1)=y(e)=0 \end{cases} $$ The question is to find the eigenvalues and eigenfunctions for this problem.  I try to put $y(x)=x^r$ and plug it in the equation, then we obtain the caracteristic equation $$r^2+r+\lambda =0$$ In the case $\lambda >0$ we put $\lambda= \alpha^2$ where $\alpha \in \mathbb{R}^\star_+$. Then the caracteristic equation is  $$ r^2+\lambda=0 $$  Case 1. If $\lambda >0$ We put $\lambda = \alpha^2$ where $\alpha \in \mathbb{R}^\star_+$.  Then the genral solution of the equation is  $$ y(x)=C_1 \cos(\alpha x)+ C_2 \sin(\alpha x). $$ We have $y(1)=0 => C_1=0$ and $y(e)=0 => C_2 \sin(\alpha e)=0$  $Sin(\alpha e)=0 => \alpha e = \pi + 2 k \pi, \ k \in \mathbb{Z}^\star$  My solution is correct?


Say, I want to publish a research paper. But, for some reason, I don't want to expose my identity. Is it possible to publish a research paper using an alias?


Created jQuery button not listening to click

I've got a little loop in which a new buy button is created for every product in the array.  In the loop a buy button is created and should be clicked. However, the click isn't being registered. The button does appear in my page though.  var list = jQuery('<ul/>'); for (var i in perSecondProducts) {     var product = perSecondProducts[i];      var listItem = jQuery('<li/>');     listItem.html(i + '(' + product['price'] + ')');       var buyButton = jQuery('<button />');      buyButton.html('Buy');      buyButton.data('price', product['price']);     buyButton.data('scorePerSecondUpgrade', product['scorePerSecondUpgrade']);      listItem.append(buyButton);     buyButton.click(function () {         console.log('123123');     });      list.append(listItem); }  $('.productsPerSecondList').html(list.html());


Let $S = \{1,2,3,\ldots,n\}$. Consider a function $f\colon S\to S$. A subset $D$ of $S$ is said to be invariant if for all $x\in D$ we have $f(x)\in D$. The empty set and $S$ are also considered as invariant subsets. By $\deg (f)$ we define the number of invariant subsets $D$ of $S$ for the function $f$. [b]i)[/b] Show that there exists a function $f\colon S\to S$ such that $\deg (f)=2$. [b]ii)[/b] Show that for every $1\leq k\leq n$ there exists a function $f\colon S\to S$ such that $\deg (f)=2^{k}$.


how implement the jqueryUI in visualforce

Ill implement the some UI but its not working in the visualpage , can u know how implement jquery ui in viusalpage ,  Kindly tell the procedure ,     Im using this url its not working ,,,,,


I have a computer simulation from which I get a sample of values of some microscopic quantity $X$, i.e. $\{ x_1,\ldots,x_N \}$. I'm interested in estimating the expected value of $X$, i.e. $E[ X]\approx\frac{1}{N}\sum x_i$, and the variance associated with this estimate.   Now, do I understand correctly that:   taking the estimate of the variance of $X$, $Var[X]\approx\frac{1}{N}\sum (x_i-\bar{x})^2$, is NOT what I'm looking for (which in this notation would be $Var[E[X]]$)? I need to make use of some statistical technique, such as bootstrapping?


I am trying to start and run a blend file with python3 popen under windows 7, but all I am able to do is start Blender.  blendFile = "D:\_Blender_Files\atrium.blend" blenderPath = r"C:\Program Files\Blender Foundation\blender-2.71-windows64\blender.exe" subprocess.Popen([blenderPath, blendFile], stdout=subprocess.PIPE)


Do we know where Human life originated in the Star Wars galaxy?

Assuming that the different species of alien all originated on different worlds around different stars do we know where the "Human" lifeforms that make up the majority of the Star Wars films came from originally?


The title may seem a bit off topic. I will explain my doubts with an example. Let there be a situation where we are measuring gravity using the formula   Now, if the least count or error in the measurement of $l$ and $T$ is given, I can easily find the net error or relative error by taking a natural log on both the sides of the equation and differentiation.  But how to include the number of trials? For example, I learned somewhere that if the least count of a stop watch is 1 second, and the number of trials, say to measure the oscillation period of a pendulum is 20, then should the error in measuring the time period be cut down to 1/20 seconds?


Ubuntu 14.04 - Low Resolution Set To 1024x768

My monitory is 1920x1080 and I can't seem to change the resolution any higher than 1024x768.


How to find the number of derangements by only considering the first 'k' indices?

Method to calculate the number of derangements for any given 'n'(length of permutation) :    Suppose, for n = 3, the derangements are as follows : -  1 : {3,1,2}  2 : {2,3,1}  (Meaning of derangement : All permutations of {1,2,3} such that no element in the permutation occurs at it's  original index )   But , the new problem is : If only first 'k' indices need to be deranged , then how many permutations are possible  ?   Example : -   n=2 and k=2 ,   Answer : (3-ways)  1){2,1,3}  2){2,3,1}  3){3,1,2}


Calculate sum $\sum_{n=1}^\infty {n\over3^{n-1}}$

Calculate sum $$\sum_{n=1}^\infty {n\over3^{n-1}}$$The result is $9\over 4$ but I don't know how to get that.


How to get many questions in single flow without using the Next button causing server interruption till end of question set?

I am working with many questions and want a way by which users don't need to use the NEXT button for every question.  It should be flexible, so that the user can move any where on any question he wants and view a summary of the questions.   Maybe a slider or anything? Please give suggestions. Thanks in advance.


What is a 'rollback' on Stack Exchange sites? I have seen this mentioned but I do not understand the term. Please note: This post is not a sandbox for performing rollbacks. Please do not perform rollbacks on this post without valid reason. If you want to try out a few rollbacks, do it  instead.   See also   in the Help Center


Python " : " precedence compared to other operators in array index

I'm stumped on a line of code in Python that I'm supposed to translate. Most websites don't have a clearer example of my situation now.          output_qr_dim, and i are just integers      output_r[output_qr_dim * i:output_qr_dim * i + output_qr_dim, output_qr_dim * j:output_qr_dim * j + output_qr_dim] = ra   At first I thought it means you just complete the operations on either sides of the :, then only perform the slicing. But according to this website, , the slicing takes precedence over the other operations, so I'm rather confused at the moment.  Any help would be appreciated


Confusion regarding depiction of Electromagnetic Waves

Have a look at the image below,   It depicts Electric and Magnetic field components of electromagnetic wave.  I'm a bit confused about whats happening here.I mean is the electric field changing with time or position and what do the waves actually represent(the intensity or direction)...


Why did my electric range wiring burn out at the terminal block?

Turned on our 2 year old stove (Whirlpool Gold) and heard fizzing noises, then smelled electrical burning. Went downstairs and shut off the breaker (40 amp). That was the only way to get it to stop "fizzing". (6 gauge wire by the way). The range is 240 volt electric 3 wire hooked up to a 40 amp breaker (6 gauge wire). When I took the back panel off the stove I saw exactly where the problem occurred. The black wire was burned, the terminal block was melted, and the inside of the back metal panel that I removed was pitch black in the spot that was facing that area before removal. I removed the stove top and inspected all wires and other electronic components. No problems at all.   So my questions are:    Why did the black wire only, at the terminator block, start burning?  Why did the breaker not pop off?  Is it safe to just replace the terminator block or is this an indicator of a much larger problem?  Is 6 gauge the correct gauge for a 40 amp breaker?


In the radio series, how did Zaphod get into the artificial universe?

In the book The Restaurant at the End of the Universe, it's very clearly explained how Zaphod gets into the simulated universe; he's in it from the moment he enters Zarniwop's office, and a big deal is made of him leaving via the window rather than the door so that he stays in it.  In the radio series, however, this doesn't happen. At the end of Fit the Seventh, Zaphod asks "How do we get to this universe, then?" and Roosta replies "I'm afraid it looks like we don't...", pointing out that the building is splitting down the middle, preventing them reaching the office.  Later, in Fit the Twelfth, Zaphod finally meets Zarniwoop in the lounge of the slightly-delayed spaceliner and reacts with astonishment at learning he's been in the artificial universe all this time. "How did we get into it? I mean like where, when?"  Zarniwoop only replies enigmatically: "You didn't notice? Well, I'll let you work it out for yourself."  So, how did he get in? As noted, he never actually entered Zarniwoop's office. My only thought is that it happened during the "body debit" incident with the disco, but there's no particular indication that that should be the case. Is there any other possibility?


Which bulb will light up first in a series circuit?

Let's just imagine a long series circuit with three bulbs in it and a switch. Which bulb will light up first when the switch is closed? One nearer to the positive terminal or the one nearer to the negative terminal? Is the flow of electrons or flow of current related to it?  Thanks in advance


We know that when you  in D&D 5e, per the spell, you lose access to your class features, as discussed in . However, polymorph does not say it cancels on-going effects on the target.  My specific question is: If a raging barbarian is subject to polymorph, does their rage end or continue?  On one hand,  is a class feature, which suggests that it ends when the barbarian is polymorphed. On the other hand, Rage essentially applies a status effect to the barbarian with conditions which specify when it ends, which suggests that it might continue while polymorphed.  I am aware that Jeremy Crawford has tweeted that the answer to this question is that . However, Jeremy Crawford also rules that , another class feature with an on-going effect. If your answer is "Jeremy Crawford is right", then please also explain what components of the effects determine whether it is retained during rage, so as to clarify the apparent contradiction in Crawford's tweets.  I am also aware of  on the Bladesong feature, although that is a different feature to Rage and Rage is probably a more common scenario, so I thought I'd bring it up separately.


How to get back to scene view after opening python console?

So, I'm very new to blender. I am trying to do a batch scripting project for a friend, so I'm just trying to learn the scripting/console environment. I already know python pretty well.  I found out you can press SHIFT+F4 to open the console... but after that, how do I close it? I want to see the changes I've made from the console on the scene in blender, but I can't find a way to go back to the default starting view--with the cube and the lamp and stuff. Pressing SHIFT+F4 again doesn't seem to help... I'm on a Lenovo thinkpad so I actually have to press SHIFT+FN+F4, if that makes any difference.


How to Keep Desktop icons automatically arranged Ubuntu 17.10?

How I can Keep Desktop icons automatically arranged Ubuntu 17.10 wayland?


Can't get fresh Ubuntu server to update/upgrade

I've got a fresh Ubuntu 17.04 server, I've configured networking and can resolve all addresses as I'd expect, however when I run sudo apt update I get to ~19% at which point I get a load of messages indicating failures, such as...  err http://security.ubuntu.com/ubuntu zesty-security release 404 not found  [91.189.88.162 80]   and then  Repository http://security.ubuntu.com/ubuntu zesty-security does not have a release file   this is repeated several times.  All the listed URIs are reachable/resolve from terminal.  sudo apt-get upgrade   Fails with    reading package list... done  building dependency tree  reading state information... done  calculating upgrade... done  0 upgraded, 0 newely installed, 0 to remove and 0 upgraded   The problem is that without updates I can't get any other packages to install and I'm not familiar enough with linux to deal with it. Anyone got any thoughts on why updates aren't taking?  I know I'm supposed to be on 17.10 by now but I was hoping that'd be able to be sorted with an upgrade!


I have heard somewhere that for all primes $p$, for all $k$, there exist $x, y$ s.t. $x^2 + y^2\equiv k \pmod{p}$? I recall that the proof is very elementary, but I can't remember such a proof. How would one prove this? One way is to use Cauchy-Davenport, but I don't think that this is the simplest solution.


So I decided to go for it and try and switch to Linux. Going to need to keep Windows around for a while until I know that all my personal / work stuff will work with Linux.  So I am trying to install it to a second drive. Downloaded Ubuntu, setup a USB installer. Boot from it, the options are:  1) Install alongside Windows (I assume this means on the same drive which I don't want to do)  2) Wipe Windows drive (Nope)  3) Something else.  I selected something else, choose the drive I wanted to install it on "/dev/sbd" and click install. I get this error:     No root file system is defined. Please correct this from the   partitioning menu.   I tried clicking New Partition Table but that does nothing.  I'm stuck/lost. I tried looking up answers here already but they were either not applicable (talked about installing to the same drive as Windows) or over my head (I'm not familiar with installing Linux).


Error in master's thesis, I do not know what to do

I successfully defended my master's thesis last December.  I had 18/20 and it went well. However, my adviser invited me to carry out research in the area, which I accepted.   When I was writing the first paper, I noticed a big error in the data analysis. This does not affect the conclusions and the values of the estimates are very similar (with and without the error) the question is what do I do now? I'm afraid to tell my advisor and they cancel my master's degree. What do you think? My ethics does not allow me to write the paper again with the error, but if correct my advisor will find ..   Any suggestions? I'm sure no one will notice the error, but I do not know.  I´m very afraid of this Thank You


How to properly overload the << operator for an ostream?

I am writing a small matrix library in C++ for matrix operations. However my compiler complains, where before it did not. This code was left on a shelf for 6 months and in between I upgraded my computer from debian etch to lenny (g++ (Debian 4.3.2-1.1) 4.3.2 ) however I have the same problem on a Ubuntu system with the same g++.  Here is the relevant part of my matrix class:  namespace Math {     class Matrix     {     public:          [...]          friend std::ostream& operator<< (std::ostream& stream, const Matrix& matrix);     } }   And the "implementation":  using namespace Math;  std::ostream& Matrix::operator <<(std::ostream& stream, const Matrix& matrix) {      [...]  }   This is the error given by the compiler:     matrix.cpp:459: error: 'std::ostream&   Math::Matrix::operator<<(std::ostream&,   const Math::Matrix&)' must take   exactly one argument   I'm a bit confused by this error, but then again my C++ has gotten a bit rusty after doing lots of Java those 6 months. :-)


Let we have the following sequence $$x_1=1$$ $$x_{n+1}=\frac{x_n^2+a}{2x_n}$$ such that $$a>0$$ how can I prove it is a convergent sequence and its limit is $\sqrt{a}$


I've been searching some of the morning today and am unable to find a 'Greasemonkey' type program for IE8.  I have a horrendous 'Incident Monitor' ticket app at my company and it looks like it was developed for tiny screens and IE5, I would like to get some control over this mess.  Greasemonkey would work but app won't allow FF, one of those IE-only things.  I'm looking to be able to modify some styles / add to styles / view.


Repeating "the" with each item separated by "or"

If we have several items to mention, which should be separated with or, is this correct to use the for each one? Could it be possible to use one "the" to distribute among them?  For example, which of the following questions is proper?     When we teach this unit, should we focus on the textbook or the presentation?   or     When we teach this unit, should we focus on the textbook or presentation?   This question differs from the question put in the topic: , since the separation by the conjunction or has not been addressed in this topic.


Giving myself permission to edit files with a text editor on var/www/drupal

I'm very new to Linux and Ubuntu. I just installed a Drupal site locally on my machine for development purposes only. However, the only way I seem to be able to edit files is by running 'sudo nano '. That's really a pain. I'd like to be able to just open files in gdedit (for example) and edit and save them there.  I have drupal installed in a directory on /var/www that we'll call 'drupal'. It has tons of directories and files inside. I need to be able to give myself access to edit anything in there.  How can I give myself permissions to edit files in my drupal site at /var/www/drupal?


Lookup list dependant on the contents of another cell

hope someone can help to crack this one?  I've got a table on my data entry tab (sheet 1) where each row includes two data validation drop down lists (source is on sheet2). I want the options in the second drop down list (k13) to be dependant on what is selected in the first drop down list (g13)...  ie. if you select 'Diary' in the first drop down box then the second drop down only has 'Cheese', 'Milk' and 'Yogurt' - likewise, if you select 'Fruit' in the first box - I want the only options to be available specific to that categories column in the lookup table on sheet 2 (which are 'apple', 'pear' and 'banana' in this case)?  Please help - i think this is a vlookup indirect formula??


Is Windows 10 File Explorer not implementing alphabetical ordering?

I have following three sub-folders in a folder in Windows-10. I sort them by clicking on the Name column-header and they show in the following order:   01 1 02   According to  :  "... To determine which of two strings comes first in alphabetical order, their first letters are compared. If they differ, then the string whose first letter comes earlier in the alphabet comes before the other string "  Now if I compare the first letters of '1' and '02' then clearly '0' comes earlier in the alphabet, which is why it seems logical that above '01' comes before '1'. Very Good!  Then why does '02' NOT come before '1'?  Is Windows-10 FileExplorer sort-by-name NOT sorting by alphabetic ordering? Why not?


If $x=1\mod3$ and $x=0\mod2$, what is it $\mod6$?

If you know what a number mod two different primes is (3 and 2) in this case, how can you tell what the mod is of the two products?


What are the meanings of 'would's in the example?

“Jeremy Finch, I told you you’d live to regret tearing my camellias.   You regret it now, don’t you?” Jem would say he certainly   did. “Thought you could kill my Snow-on-the-Mountain, did you?   Well, Jessie says the top’s growing back out. Next time you’ll know   how to do it right, won’t you? You’ll pull it up by the roots, won’t   you?” Jem would say he certainly would. “Don’t you   mutter at me, boy! You hold up your head and say yes ma’am. Don’t   guess you feel like holding it up, though, with your father what he   is.” Jem’s chin would come up, and he would gaze at Mrs.   Dubose with a face devoid of resentment. Through the weeks he had   cultivated an expression of polite and detached interest, which he   would present to her in answer to her most blood-curding inventions.   (Harper Lee, To Kill A Mockingbird)   What’s the meaning of ‘would’s in the example?


I sometimes see phrases like 'the relational algebra' or 'the lambda calculus'. What is the difference between an algebra and a calculus?


Travelling multiple EU countries from SG, dual citizenship BG / TR, different names

I have Bulgaria-Turkey dual citizenship with different names (not even a word is matching in surname or name, totally different, only birthdays are matching in two passports basically). I do live in Singapore (I have a residency visa w my Turkish passport & name). I have a coming trip to Europe, and we will be visiting Germany, France and Portugal, for about 2 weeks.  Since I have Bulgarian passport (EU citizen), I have freedom of travel in EU countries.  My questions are: 1. Under which name I should book my tickets? Or should I book w different names for internal EU layover flights? Or it doesn't matter?   My plan is initially:   Book ticket w (home country (SG)), Turkish passport (since I have SG residency). Airline check-in, show them my Bulgarian passport (EU). At Immigration, show Turkish (TR) passport w Residency when leave. Arrive Germany, show BG passport at immigration. Flying to France, at check-in,  show Bulgarian passport (but for name mismatch, I show TR passport, or I book my ticket with BG passport for internal EU flights is better?) At immigration, show BG passport (my worry is at immigration if they wanna check my ticket & BG passport, they will see mismatch names, and I need to explain them dual citizenship).  Arrive France, show BG passport at immigration. Flying to Portugal, at check-in, show BG passport (again for name mismatch, I show TR passport, or I book my ticket w BG passport for internal EU flights? basically the same thing as #5) At immigration, show BG passport (Again, same concerns as #6, and may need to explain them dual citizenship). Arrive Portugal, show BG passport at immigration. Flying back to SG, at check-in, show TR passport since i have a residency visa. (this time name is matching) At immigration show BG passport (Again, same concerns as #6, ticket and name in BG passport not matching) Arrive SG, show TR passport at immigration.   Please let me know if my plan sounds correct.   In summary,    A) should I follow same name booking ( in this case home country (SG) w TR passport) for all flights?   B) or should I book EU flights w BG passport separately?  C) or should I just book all flights w BG passport since they are the majority of flights in this case?   Besides above questions, If you have any other suggestions, I would like to hear them as well. Thanks in advance. Cheers


I am building a model for a game and have decided to copy part of it into a separate layer. How do I copy one or more objects to a different layer?


How can I take advantage of the transparency of water in a landscape photo?

I would like to take a better picture of that fjord where water is crystal-clear.    The idea would be to include immersed stuffs in the foreground (whether ice or stones, algae...) and mountains in the background.  My main concern is about water transparency. I was not able to avoid reflections. Is it all about angle of incidence on the surface when taking a picture, but also ambient and polarized light? What would you recommend?  I use a Canon EOS 450D camera with a 18-55 mm lens and tripod.  All tips are welcome!


Check for flag passed to a Bash script and process value

I have a bash script in which I want to check if a flag with value was passed to it and then use the value in a variable. Something like this (pseudocode):  file.sh -c 1.0.0   inside file.sh :  #!/bin/bash  get flag: if flag 'c' then  curl c else  curl 'something else'   Whats the most optimal way to do the above?


PHP encoding UTF-8 - combination of symbols results in garbled text

I'm getting a quite curious error when displaying text on a webpage. I'm working on converting a set of pages from ISO-8859-15 to UTF-8. As I'm getting texts from various sources on that page, I'm using iconv to convert from ISO-8859-15 to UTF-8.   $arbeitstext=iconv("ISO-8859-15", "UTF-8", $arbeitstext);  I'm also setting the page header of the page with  header('Content-Type: text/html; charset=utf-8');  and the page in question is saved (and converted) as UTF-8 via notepad++.  So far so good - the output of, for instance, ä, ö, ü alone works fine. In combination with ` however, (`ü) it results in lots of Ã characters.   I'm depending on combinations such as     `ü, `Ü, `$,`&,´§,  etc. for another function, (replacing them with different strings), so this is quite an issue for me.   My firebug log suggests that the page-header is correctly set as utf8. The SQL Database from where I'm getting my texts is also set as UTF-8. What am I missing?


I saw in  the following identity: $$\sum_{k=0}^{n}\frac{(-1)^k}{2k+1}{n\choose k}=\frac{4^n}{(2n+1){2n\choose n}}$$ I have a  on an integral quite closely related to this identity, but I still do not know how to derive/prove the identity. I'm really not that good at combinatorics or evaluating series, so I don't know how to start, which is why I don't have any attempts to show you. Please explain your steps thoroughly. Edit: I know there other posts on this series, but I did not get from them the proof I was satisfied by.


I understand how generators and iterators work, but I don't see why generators are supposed to be so useful. I saw multiple tutorials that use a prime number finder as an example, however, I always also saw ways how to achieve the same without using a generator (without storing the numbers), for example I usually found things like this:  def gen_prim(num):     while True:         if is_prime(num): # just some function that returns true or false if num is a prime             yield num         num += 1  for i in gen_prim(1000):     if i < 1000:         print(i)     else:         break   However, instead of creating a generator in the first place, we could just instead of yielding num, do print(num) inside of gen_prim right away, as we're going to do that later anyways, and can thus remove the for loop.   So, as said, I don't understand how generators are beneficial, as to me it seems they just produce more code. I would greatly appreciate an explanation of why they are considered useful and how exactly I can use them that they are beneficial to me, because as you saw, they don't seem to help me very much.


How to clear a specific amount of items from inventory in Minecraft 1.15.2

I've seen this question answered in many ways but not for 1.15. I want to be able to clear a certain amount of items (let's say 45 stone) from a players inventory. How do I make it so the command only takes 45 stone, no more, no less? Basically, I don't want the command to work if the player doesn't have at least 45 stone in their inventory, and even then, it will only take away 45.


How do I hide nodes that shouldn't be directly accessed from users and search engines?

I've found that there are times I have a node that simply contains content that will be displayed somewhere else, but shouldn't be viewed directly. That is, no one should ever go to node/1234, but the content in node 1234 should be displayed somewhere else. For example, I create an about page with tabbed content using views. So there are "About Me", "About Us" and "About Them" pages. All of these are displayed in a single page with tabs using Views. So I don't want people to get directly to the "About Us" node because then they wouldn't see the tabs for the other pages. At the same time, I don't want Google giving people a direct link to this node, I want to limit access so users can only get to it through the View (i.e., the tab).  So I need to restrict access to the node, remove it from the Drupal search results, and make sure Google doesn't pick up on it. Any suggestions?


I was reinstalling Windows (namely installing Windows 8 instead of Windows 7). But then Chrome suddenly closed. When I started it again, it had that annoying  home page.  I don't know how to get rid of it. I tried removing the argument in Chrome's shortcut and changing Chrome settings (Set pages). Also, it made itself the default search engine and who knows what else. I thought that it must be µTorrent's doing. So I decided to:   Reinstall Windows once again Give Tixity a try. To my surprise, just after installing Windows 8 and running Internet Explorer, I saw that very  page again.   I'm now going to reinstall Windows once again, but move the content of the disk into a folder first, so that Windows doesn't inherit anything, if that's what's happening.  I'm open to your suggestions. I doubt reinstalling windows will do any better. Also, do you know by any chance what it is and where it came from? I saw a  on µTorrent's forum.  UPDATE I reformatted the hard drive, installed Windows and I can't see  anywhere now.


How to show that the determinant of a special $4 \times 4$ matrix is nonzero?

Show that if $a,b,c,d \in \mathbb R$ and at least one is different from $0$, then   $$\begin{vmatrix} a & b & c & d\\  b & -a & d &-c \\  c & -d & -a &b \\  d & c & -b &-a  \end{vmatrix} \neq 0$$


What does the word 'sport' mean in the following sentence?  The day at school begins at 8:00am, when all the students sport sleepy faces and bleary eyes.  I don't quite understand, can you make up another sentence with the same meaning?


PCA iteratively finds directions of greatest variance; but how to find a whole subspace with greatest variance?

works like this: the first greatest variance on the first  principal component, the second greatest variance on the second principal component, and so on.  For me there is a problem with this iterative process.  What if I know I only want two principal components in order to visualize my data in 2 dimensions?  The two first PCs are not the best because the second one is the best 2nd PC but with the 1st PC they don't constitute the best couple of principal components.  Is there a way to find the "best couple" of principal components, meaning two-dimensional subspace with the greatest variance?


When I started my laptop, there was no network service, and also no network icon in the top bar. It gives an error when I start OS like "Sorry, Ubuntu 14.04 experienced an internal error". When I click details, it says the error is occurred in the executable path usr/sbin/NetworkManager. Also, when I try to enter Network in the System Settings, it says "the system network services are not compatible with this version"  How can I solve this shocking issue?  p.s. I didn't install any third party packages/apps related with networking. Only system updates are installed.


Can we have a way to limit or otherwise control with Stack Exchange sites we see on our questions page?

For a variety of reasons, I'd love to be able to restrict which questions I see on my Stack Exchange  questions page (i.e.: ).  For instance, I haven't seen  yet and am starting to see questions come out that, sooner or later, are going to spoil something. The same goes for .  Additionally, I personally find the  questions somewhat tedious and would like to avoid them.  Is there a way to achieve this, much like we can do with tags on specific Stack Exchange sites?


In Lyx, "Part" section in Arabic numbers and numbering the rest of the sections accordingly

The default in lyx is to have   I. First part (roman number)   Section 1   1.1 Subsection 1  and I'd like to have   First part (arabic number)   1.1 Section 1  1.1.1 Subsection 1  etc.   Any suggestion? Thanks a lot in advance!


Are there any smartphones available in India with Ubuntu Mobile OS? If not, is it possible to install ubuntu touch in android tablets?


i have an emulated Contra on Jnes with a nes controller usb, and when i enter the Konami code, it doesn't work! Does anyone know how to help me? I've tried both B then A then B then A, and only B then A.


How many ways to arrange people on a bench so that no woman sits next to another woman?

There are $12$ women and $12$ men. How many ways are there to sit them all on a bench where no woman can sit next to another woman?  Thank you.


How do I stop the screensaver from coming on during VLC movie watching?

I am using Ubuntu 11.10 and my screensaver keeps coming on while I'm watching a movie.  I don't remember this happening in 11.04 and can't remember how to stop it?


Practically, how does an 'observer' collapse a wave function?

I have been reading/learning about the double slit experiment, its implications in quantum theory, and how it explained that “particles” can behave as both waves and particles.   I know that the wave function is a probability of the location of the particle, and that shooting the electrons through the double slits causes an interference pattern associated with multiple waves. This, though not making intuitive sense (in relation to how anything can even exist as a wave), is something I can follow.   However, I have read/heard that an “observer” collapses the wave function into a single point. This is what caused the electrons to actually show up on the wall behind the slit; however Feynman (admittedly, as a thought experiment) suggested that putting an “observer” prior to the slits would cause the electrons to fly through as particles, and leave no interference pattern on the back wall.   What is an “observer”? How and why would the electron “know” it is being observed and therefore cause it to change behavior?


$$y=u\times v$$  How does one derive this formula, called the product rule?  $$y^{'}=uv^{'}+u^{'}v$$


Running C&C 16 or 32 bit game on a 64 bit system

I have a HP dv5-2135dx laptop, Windows 7 64 bit.What upgrades do I need [if any] to run C&C 16 or 32  bit games on my system.


Get entries with most recent timestamp per month

I have a table prices that stores prices for various products as they update throughout the day, structured as below:  +---------+--------+-------------------+ | product | price  | creationTimestamp | +---------+--------+-------------------+ | A       | 34.234 | 30/10/20 01:48:48 | | A       | 34.598 | 30/10/20 21:43:12 | | A       | 33.129 | 31/10/20 08:52:58 | | B       | 13.440 | 31/10/20 15:22:01 | | B       | 12.914 | 31/10/20 23:24:42 | | C       |  1.494 | 31/10/20 04:36:00 | +---------+--------+-------------------+   What I would like to do is for the past 5 years,  extract the last price for each product, per month based on the most recent create timestamp. e.g. +----------------+---------+-----------------+ | endOfMonthDate | product | endOfMonthPrice | +----------------+---------+-----------------+ | 31/10/2020     | A       |          33.129 | | 31/10/2020     | B       |          12.914 | | 31/10/2020     | C       |           1.494 | +----------------+---------+-----------------+  (this only displays the last month as an example, but i want to show prices for the preceding 5 years) My query so far is select  * from prices p1 where creationTimestamp >= sysdate - interval '5' year and creationTimestamp in (select max(creationTimestamp) from prices p2 where p1.product = p2.prices)  which returns the most recent timestamp price per product. However I am unsure how to group this expression per month and year. can anybody help correct my query?


Showing field extension $\mathbb{Q}(\sqrt{2}, \sqrt{3}, \sqrt{5})/\mathbb{Q}$ degree 8

Possible Duplicate:          I am trying to classify the Galois group of the field extension $\mathbb{Q}(\sqrt{2}, \sqrt{3}, \sqrt{5})/\mathbb{Q}$ and am getting stuck on trying to show that the extension is degree 8. I understand that you can look at intermediate fields in the tower to get  $[\mathbb{Q}(\sqrt{2}, \sqrt{3}, \sqrt{5}) : \mathbb{Q}] = [\mathbb{Q}(\sqrt{2}, \sqrt{3}, \sqrt{5}) : \mathbb{Q(\sqrt{2}, \sqrt{3})}][\mathbb{Q}(\sqrt{2}, \sqrt{3}):\mathbb{Q}(\sqrt{2})][\mathbb{Q}(\sqrt{2}) : \mathbb{Q}]$   and each of these has degree 2. But is there an easy way to show $[\mathbb{Q}(\sqrt{2}, \sqrt{3}, \sqrt{5}) : \mathbb{Q}(\sqrt{2}, \sqrt{3})] = 2$? I tried showing that $\sqrt{5}$ cannot be written as a linear combination of $\{1, \sqrt{2}, \sqrt{3}, \sqrt{6}\}$ but it's a long mess, and I'm wondering if there's a more clever way to do this.  More generally, is it true that $\mathbb{Q}(\sqrt{p_1}, ..., \sqrt{p_n})/\mathbb{Q}$ where $p_i$ are distinct primes has degree $2^n$?


How to upgrade or downgrade a kernel in Ubuntu 17.04?

Ubuntu 17.04 is using the 4.10 kernel which introduces . How can I downgrade to the 4.9 kernel or the 4.11.6+ kernel, either of which are unaffected by the issue?


Bash while loop stop after a successful curl request

I'm currently learning how to write bash scripts. How do I stop while loop once I get a 200 response code on my curl request? aws --endpoint-url http://s3.sample.com/ s3 cp hello.php s3://bucket/ while [ true ] do     curl http://sample.com/hello.php &> /dev/null done


Color change of string delimiter in listings with macro

Problem:  I have managed to get color highlight for CSS using the package listings, but there is a small detail that is not solved. The string delimiters are : and ;. I would like the delimiter : to be coloured in blue, rather than the color of strings.  Question:  Is there a way to override the color of : in listings using a macro? All : should be in blue color.  Minimal Working Example (MWE):  \documentclass{scrreprt} \usepackage[dvipsnames,cmyk]{xcolor} \usepackage{listings} % -------------------------------------------------------------- % Colors % -------------------------------------------------------------- \definecolor{editorGray}{cmyk}{0, 0, 0, 0.2} \definecolor{editorBlue}{cmyk}{1, 0.35, 0, 0} \definecolor{editorPink}{cmyk}{0, 1, 0, 0} \definecolor{editorDarkOrange}{cmyk}{0, 0.8, 0.9, 0} \definecolor{editorPurple}{cmyk}{0.75, 1, 0, 0} % ---------------------------------------------------------------------- %  CSS % ---------------------------------------------------------------------- \newcommand{\CodeSymbol}[1]{\textcolor{editorPink}{#1}}  \lstdefinestyle{css} {   stringstyle=\color{editorPurple},   commentstyle=\color{editorGray},   keywordstyle=\color{editorPink},   ndkeywordstyle=\color{editorBlue},   identifierstyle=\color{editorDarkOrange},   commentstyle=\color{editorGray},   sensitive=true,   % Line numbers   xleftmargin={14pt},   numbers=left,   stepnumber=1,   firstnumber=1,   numberfirstline=true,   numberstyle=\color{black},   frame=l,   % Keywords   ndkeywords={color, text-decoration},   morecomment=[l][\color{darkgray}]{//},   morecomment=[s][\color{darkgray}]{/*}{*/},   alsoletter={.\#},   morestring=[s]{:}{;},   alsodigit={-;:},   literate=*{\{}{{\CodeSymbol{\{}}}1            {\}}{{\CodeSymbol{\}}}}1            {>}{{\CodeSymbol{>}}}1 }  \lstdefinelanguage{CSS3}{style=css} \lstMakeShortInline[language=CSS3]^  % ---------------------------------------------------------------------- %  Code style % ---------------------------------------------------------------------- \lstset{%   % General design   inputencoding=utf8,   backgroundcolor=\color{white},   basicstyle=\normalsize\ttfamily\upshape\lst@ifdisplaystyle\tiny\fi,   frame=none,   escapeinside=`',   % Languages   language=CSS3,   % Code   tabsize=2,   showtabs=false,   showspaces=false,   showstringspaces=false,   extendedchars=true,   breaklines=false }  \begin{document}  \noindent Inline CSS  \noindent ^.p { color: #ffffff; }^  \noindent CSS  \begin{lstlisting}[language=CSS3] // Classes .p { color: #ffffff; } header > .nav {   color: #ffffff;   text-decoration: none; } /* Ids */ #test {   color: #ffffff;   text-decoration: none; } \end{lstlisting}  \end{document}   Desired output:  To change the color of : from purple to blue.  UPDATE 1:  Thanks to @egreg, I found out a regular expression for switching out : to blue color, but I cannot seem to merge the new command with \lstMakeShortInline[language=CSS3]^. Any ideas?  \ExplSyntaxOn \NewDocumentCommand{\colorswitch}{ O{editorBlue} m }  {   \css_colorswitch:nn { #1 } { #2 }  }  \tl_new:N \l__css_colorswitch_input_tl \cs_new_protected:Npn \css_colorswitch:nn #1 #2  {   % store the string in a variable for usage with \regex_replace_all:nnN   \tl_set:Nn \l__css_colorswitch_input_tl { #2 }   \regex_replace_all:nnN    { ([:]) } % search a colon    { \c{textcolor}\cB\{#1\cE\}\cB\{\1\cE\} } % replace the match with \textcolor{#1}{<match>}    \l__css_colorswitch_input_tl   \tl_use:N \l__css_colorswitch_input_tl  } \ExplSyntaxOff


Asymptotic expansion of $u_{n + 1} = \frac12 \arctan(u_n)$

(I'm aware of  but it has no answers…)  Let be $u_0 \in \mathbb{R}$ and the sequence $(u_n)_n$ defined by: $u_{n + 1} = \frac12 \arctan(u_n)$.  I define also: $v_n = 2^n u_n$, so I can show that: $\lim (u_n)_n = 0$ (by studying $x \mapsto \frac12 \arctan(x)$), thus, I can show that $(v_n)_n$ is monotone and converges because it is bound.  Now, I conclude: $u_n \sim \dfrac{l}{2^n}$, I'd like to determine $l$ more precisely.  Here is what I tried, I suspect $l$ to be something like $f(\pi)$ for some $f$ :   push the asymptotic expansion of $\arctan$ to the 2nd order and reinject it ; use $\arctan(u_n) + \arctan(1/u_n) = \dfrac{\pi}{2}$ ; use series techniques to look for $\sum v_{n + 1} - v_n$, maybe conclude using Cesaro summation


If $a$ and $b$ are positive real numbers such that $a+b=1$, prove that $(a+1/a)^2+(b+1/b)^2\ge 25/2$

If $a$ and $b$ are positive real numbers such that $a+b=1$, prove that    $$\bigg(a+\dfrac{1}{a}\bigg)^2+\bigg(b+\frac{1}{b}\bigg)^2\ge \dfrac{25}{2}.$$     My work: $$\bigg(a+\dfrac{1}{a}\bigg)^2+\bigg(b+\dfrac{1}{b}\bigg)^2\ge \dfrac{25}{2}\implies a^2+\dfrac{1}{a^2}+b^2+\dfrac{1}{b^2}+4\ge \dfrac{25}{2}$$ Now, we have $a^2+\dfrac{1}{a^2}\ge 2$ and $b^2+\dfrac{1}{b^2}\ge 2$. Here, I am stuck, I cannot use the information provided, $a+b=1$ to any use. Please help!


How do you prove that there are infinitely many primes of the form $5 + 6n$?

There should be infinitely many primes of the form $5+6n$. How do you prove it? The same should be true for $7+6n$.


Where's my error in this partial derivatives problem?

Let $u(x, y)=x+y$. What is $\displaystyle\frac{\partial u}{\partial x}$ and $\displaystyle\frac{\partial u}{\partial y}$? My answers are $1$ and $1$.  Suppose I now told you that $y=x$, so that $u=2x$.  Now it appears that $\displaystyle\frac{\partial u}{\partial x}=2$ and $\displaystyle\frac{\partial u}{\partial y}=0$.  Where have I gone wrong?  Note: My question is completely different from "Partial derivatives paradox". I have renamed my question.


Unable to install Win font on Ubuntu. couldn't be accessed by user '_apt'

I am trying to install Windows font on Ubuntu 16.04. It says package has installed when I try to reinstall the same package but fonts are not found on LibreOffice. Also, while installing it gives some error.   $ sudo apt-get install ttf-mscorefonts-installer Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed:    ttf-mscorefonts-installer 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 0 B/29.5 kB of archives. After this operation, 134 kB of additional disk space will be used. Preconfiguring packages ... Selecting previously unselected package ttf-mscorefonts-installer (Reading database ... 208570 files and directories currently installed.) Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all.deb ... mscorefonts-eula license has already been accepted Unpacking ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ... Processing triggers for fontconfig (2.11.94-0ubuntu1.1) ... Processing triggers for update-notifier-common (3.168.2) ... ttf-mscorefonts-installer: processing... ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [198 kB] Fetched 198 kB in 5s (35.9 kB/s)                                       W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/andale32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe Get:1 http://downloads.sourceforge.net/corefonts/arial32.exe [554 kB] Fetched 554 kB in 4s (124 kB/s)                                        W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arial32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arialb32.exe Get:1 http://downloads.sourceforge.net/corefonts/arialb32.exe [969 B] Err:1 http://downloads.sourceforge.net/corefonts/arialb32.exe                Hash Sum mismatch Fetched 969 B in 2s (367 B/s)                        W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arialb32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) E: Failed to fetch http://downloads.sourceforge.net/mirrorproblem?failedmirror=excellmedia.dl.sourceforge.net Hash Sum mismatch E: Download Failed     I followed . There still some Warning (W) was visible but No Error (E). Warning is basically this:  W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/webdin32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)   But after the steps mentioned in the link, I can see Window Font appear in LibreOffice font selection list.   Old Update Information Dialog Box still came. Not sure if it is coming due to old process or due to this one.   Do I need to take any more steps or everything is fine?


Salesforce Shield Encryption Evidence Post Spring 17 Release

Post spring 17 release, the “View Encrypted Data” permission and its resulting masking behavior will no longer be available and users can see encrypted field data in plaintext if they have access to field.  In this case, as a developer how can we ensure that the data in the field is actually encrypted at rest/database after enabling encryption on a field? What kind of evidence we can provide to auditor if encryption is audit requirement?


Rectangular/Portrait orientation. Is there any way to change the size of the camera?

I'm trying to make a rectangular/portrait orientation style image for the camera in Blender 2.8. I've tried adjusting the aspect ratio, but all it does is the stretch the image. Is there any way you can adjust the size of the camera?  How it is now.    How I want it to be.


Connect to PostgreSQL from ArcMap 10.2 failed

I have a database server PostgreSQL and Postgis. I want to connect to database from ArcMap 10.2 , I tried Add Database Connection from arcmap menü.  I typed my connection informations and clicked database selection box, an error occured as following. My connection info is true. I can connect from pgAdmin to database.    I did not install ArcSDE to database server. I read before that I do not need SDE after 10.0 version.


Science fiction radio drama: aliens find Earth deserted

Anyone know of a radio drama about an advanced alien civilization visiting Earth (we don't know it's Earth until the end). Everything is deserted. They send down teams to investigate and one team accidentally engages the drive in a high speed underground shuttle that takes them into a tunnel and beneath a major city (NYC?). The mothership can't get to them. One member of the team is a different race, an organism that has an identical counterpart on the mothership. They are separate but are parts of a whole and communicate as one organism and it is from these special crew members that they finally get help and are rescued by the mothership. The captain on the mothership is able to locate them and blasts a hole down to retrieve them.   The planet (Earth) is soon to be destroyed by some catastrophe such as a colliding planet or the sun going nova. So they rush to find their team before the planet is destroyed and they stuck below and up on the mothership all are killed too.   The episode ends with the team being rescued and all escaping the dying planet just in time. Then scanning ahead and seeing thousands of ships in the distance, apparently the last inhabitants of the dying planet Earth who had already fled. It's a rag-tag fleet. The captain makes a joke at the end that perhaps they'll do just fine and be at their own level...in about a million years from now. It was produced in the 70s or 80s.


How to evaluate $ \int_0^n \cos(2\pi \lfloor x\rfloor\{x\})dx$?

For a real number $ x$, let $\lfloor x\rfloor$ denote the largest integer less than or equal to $x$ and $ \{x\}=x-\lfloor x\rfloor$ (floor and fractional part, resepectively). Let $n$ be a positive integer. I want to evaluate$$ \int_0^n \cos(2\pi \lfloor x\rfloor\{x\})dx$$ I broke down the integral as $$\int_0^1\cos(2\pi \cdot 0 \cdot x)dx+\int_1^2\cos(2\pi \cdot 1 \cdot x)dx +\cdots+ \int_{n-1}^{n}\cos(2\pi \cdot (n-1)\cdot x)dx$$ However I got the wrong answer and I couldn’t understand where I went wrong.


Why is an accepted answer displayed lower than another (more upvoted) answer?

In , a non-accepted answer (the one with 27 upvotes) is placed above the accepted one (with 20 upvotes).  I quickly checked some other questions and found that this behavior wasn't occurring elsewhere.  Is this a bug, or is this some SO feature that I'm missing?


How to derive $e^x = \lim_{n \to \infty} \left( 1 + \frac x n \right)^ n$ directly from $e = \lim_{n \to \infty} \left(1 + \frac{1}{n}\right)^ n$?

If given the definition of $ e $:  $$e = \lim_{n \to \infty} \left(1 + \frac{1}{n}\right)^ n$$  Using this fact alone, can it directly derive   $$e^x = \lim_{n \to \infty} \left(1 + \frac{x}{n}\right)^n$$  for positive and negative integer $x$ and in general, for any real number $x$?


Alignment issue in the search result screen

There is an alignment issue in the search result screen. The term     results found containing "search criteria"   is not aligned properly. For sample search with .  Screenshot for reference:    When compared with Stack Overflow due to the following CSS class absence, the alignment issue occurred.  .container #content {     padding: 24px 15px; }


My daughter is now 2 years and 3 months. She eats most soft foods, like rice and soup, yogurt or soup that contains small pieces of vegetables. She is swallowing. But if I make the pieces a little bit bigger , she will throw it away.  Moreover, when it comes to solid food, she seems she doesn't know how to chew, chewing is a problem for her, she will try first to lick it and touch it with her tongue, then she will throw it away.  I tried everything even gummy sweets, cakes, or fruits or anything soft. I cut fruits into tiny pieces, but she is still licking it and throwing. I don't give her milk at all, but she seems to be starving all day and depending on milk during the night, as she wakes up in the middle of the night asking for milk.  I tried to show her videos about children chewing and eating, I show her myself eating, we play games during eating, I have tried everything, since she was 1 year old.  Please help, any advice?


I've been researching RC4 and implementing it, and I was wondering, from the perspective of a cryptographer (a real one, not a fake one like me), what could be added to the RC4 algorithm to improve on its security?


Prove that If  $dim_F$ $(V ) > 1$ be finite, prove that $L(V )$ has two sided ideals other than $(0)$ and $L(V )$.  Further  Prove that the conclusion above is false if $V$ is not finite dimensional over $F$.  If  $dim_F$ $(V ) > 1$.Then let $v_1,v_2$ be two basis elements of $V$.The I tried making an ideal of $L(V )$ using these two basis elements but I was unsucessful.  Please help me with the problem.I tried the last part too but wasn't sucessful    Note that the above is false as written. See the dupliacte for the correct assertion.


Installation ubuntu 12.04 64 bit on notebook toshiba : no root file system is defined

When I run installation of Ubuntu 12.04 LTS on my notebook Toshiba Intel core i5, 6mb RAM, 500 Gb.   I receive a message of "no root file system is defined"  What can I do?


Suppose the side length $a$ of the square is 10mm. A circle is tangent to all four sides of the square. And two quarter-circles with the same radius of 10mm have centers on the opposite vertices.  It may be easier to view it in the picture on the right. What’s the area of shaded region? Using some trigonometrical calculation, I got a complex formula $$S=\left[\frac{1}{2}(\pi -\arccos(-\frac{\sqrt{2}}{4}))+\sqrt{2}\sin(\arccos(\frac{5\sqrt{2}}{8}))-2\arccos(\frac{5\sqrt{2}}{8})\right]a^2$$ which gives 29.276$mm^2$. The way is far from beautiful. Don’t know if there are any simpler ways to do that? Is there any principles that I am not aware of? Thank you.


How can I hide the most visited sites on Chrome?

Since the last update it has been impossible to hide the most visited sites. I don't know if it's some temporary sick joke by the chrome team but I need to remove it.  I have tried changing my home to something other website, this works for when you first launch chrome but not for opening news tabs.


How to make a table caption appear on the left of the table

I'd like to put a caption on the left of the table (not meaning text is left-aligned) like this:  \begin{table}[t] \caption{caption left} \label{tab:1} \centering     \begin{tabu} to 1 \linewidth{|X[2.2,l] |X[3.0,l] |X[0.65,c] |X[0.65,c]| X[0.65,c]|} \hline     A & B & C & D & E\\\hline\hline     A & B & C & D & E\\ \hline     \end{tabu} \end{table}


Why is Newton's First Law not considered a vacuous statement?

How did Newton come to postulate the law of inertia when every inertial body that he was considering was (by his own other hypotheses) being acted on by the force of universal gravitation.   In other words, he simultaneously posits the law of Inertia and then theorizes that the contrapositive of his statement is not testable ("If no forces act upon a body at rest, then it will stay at rest", but there is never a situation in which no forces are acting upon a body).   Did he get to this by considering the case of how the inertial velocity of something like a ball being swung on a string in a circle takes off in the direction of the tangent to the circle when the centripetal force is removed, or what were the observations that led to postulate this law? That's the only immediately testable example that I have been able to think of so far, as the same experiment with planets orbiting the sun is not/was not feasible to test in his day.    I'm guessing this law may have some historical context related to the philosophical question of "what makes things move" in Aristotle, and Newton used his law to resolve paradoxes that I am not familiar with.   Or is it something entirely different than what I'm thinking, in that what he actually meant was "it takes less force to keep a body in motion than it does to start a body in motion"?


Disable default dock app shortcut (super+num) functionality on Ubuntu 19.04

I would like to disable the functionality of using Super+0...9 to open applications residing in the Dock, so that I can use Super+0...9 solely for switching workspaces.  From Ubuntu 17.10 up until, and including, Ubuntu 18.10, this could be disabled using:  gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false   (see )  After updating to Ubuntu 19.04, this solution does no longer work for me.  How can I achieve the same thing in Ubuntu 19.04?


Let $A,B,C$ be sets. Prove that $(A \setminus B)\setminus C = A \setminus (B \cup C)$ for any sets $A,B,C$.  I'm not sure what proofs to use to prove this? or how to start this


Let $(X,\mathcal{M},\mu)$ be a measure space and $f$ be a nonnegative measurable function on $X$. Let $1\le p<\infty$. Show that, the function $|f|^p$ is integrable with respect to $\mu$ precisely when the function $$t\mapsto t^{p-1}\mu({x:|f(x)>t})$$ is integrable on $[0,\infty)$ with respect to Lebesgue measure. In addition prove that    $$\int_X |f|^p=p\int^{\infty}_{0} t^{p-1}\mu({x: |f(x)>t}) dt\,$$   I solved this problem for the case when space is sigma finite but don't know how to solve for general case.


How to calculate area from only boundaries length without point coordinates

How can I calculate polygon area if I have only boundaries lengths? Let check this simple example:  I have all boundaries length from this picture in the following format:  K6-K5: 24.15m K5-K10: 10.54m K10-K7: 23.63m K7-K6: 12.29m  What is suitable approach for calculating polygon area? I think we have only 2 ways:  Calculate current area of above plot, then scaling up Draw a "real polygon" by boundaries lengths, then calculate area on "real polygon"  Is there another approach for getting more suitable and accurate way?


Masking NetCDF data using shapefile (xarray & geopandas)

I am using the following packages: import pandas as pd import numpy as np import xarray as xr import geopandas as gpd  I have the following objects storing data: print(precip_da)  Out[]:     <xarray.DataArray 'precip' (time: 13665, latitude: 200, longitude: 220)>     [601260000 values with dtype=float32]     Coordinates:       * longitude  (longitude) float32 35.024994 35.074997 35.125 35.175003 ...       * latitude   (latitude) float32 5.0249977 5.074997 5.125 5.174999 ...       * time       (time) datetime64[ns] 1981-01-01 1981-01-02 1981-01-03 ...     Attributes:         standard_name:       convective precipitation rate         long_name:           Climate Hazards group InfraRed Precipitation with St...         units:               mm/day         time_step:           day         geostatial_lat_min:  -50.0         geostatial_lat_max:  50.0         geostatial_lon_min:  -180.0         geostatial_lon_max:  180.0  This looks as follows: precip_da.mean(dim="time").plot()   I have my shapefile as a geopandas.GeoDataFrame which represents a polygon. awash = gpd.read_file(shp_dir+"/Export_Output.shp")  awash Out[]:   OID_         Name      FolderPath  SymbolID  AltMode Base  Clamped Extruded  Snippet PopupInfo Shape_Leng  Shape_Area  geometry 0     0 Awash_Basin Awash_Basin.kml         0        0  0.0       -1        0     None      None  30.180944    9.411263  POLYGON Z ((41.78939511000004 11.5539922500000...  Which looks as follows: awash.plot()   Plotted one on top of the other they look like this: ax = awash.plot(alpha=0.2, color='black') precip_da.mean(dim="time").plot(ax=ax,zorder=-1)   My question is, how do I mask the xarray.DataArray by checking if the lat-lon points lie INSIDE the shapefile stored as a geopandas.GeoDataFrame? So I want ONLY the precipitation values (mm/day) which fall INSIDE that shapefile. I want to do something like the following: masked_precip = precip_da.within(awash)  OR masked_precip = precip_da.loc[precip_da.isin(awash)]  EDIT I have thought about using the rasterio.mask  but I don't know what format the input data needs to be. It sounds as if it does exactly the right thing: "Creates a masked or filled array using input shapes. Pixels are masked or set to nodata outside the input shapes"


Gparted Error "Unable to satisfy all the constraints on the partition"

I have dual booted Windows 7 & Ubuntu 14.04 with EasyBCD, i.e. I have installed grub on the Ubuntu root partition & added entry of linux to Windows bootloader using EasyBCD. So effectively i am using Windows Bootloader to boot into either of them. Working perfectly.  As i already had 4 primary partition on HDD, i converted one of  that (NTFS-Windows 500 GB) to Logical using EaseUs Partition, so that around 70GB of uncollected space on HDD could be used.  NOTE: Before that the 500 GB partition was Primary & i was able to see all partition in Gparted. "What i mean to say is all was working properly".  The problem (i.e. after conv. of primary to logical) is i am getting this message after starting Gparted & shows entire partition as Unallocated.  Unable to satisfy all the constraints on the partition  $ sudo fdisk -l  Disk /dev/sda: 1000.2 GB, 1000204886016 bytes  255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors  Units = sectors of 1 * 512 = 512 bytes  Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0xe6bfc2a4     Device Boot       Start         End      Blocks   Id  System   /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT   /dev/sda2          206848   427624447   213708800    7  HPFS/NTFS/exFAT   /dev/sda3       427624449  1805438975   688907263+   f  W95 Ext'd (LBA)   Partition 3 does not start on physical sector boundary.   /dev/sda5       427624512  1532823551   552599520    7  HPFS/NTFS/exFAT   /dev/sda6      1532825600  1780301823   123738112   83  Linux   /dev/sda7      1780301824  1805438975    12568576   82  Linux swap / Solaris   So what is the cause of this problem.  I know there might be duplicate for this at "" (that was bug probably & was for old version of Ubuntu 13.04) & ""  Also, if there is any chance that both errors are related or complementary to each other?  So, is this problem caused because of Sector Size (512 bytes/4096 bytes) or my mistake of converting a Primary partition to logical using EaseUs rather than some of the Ubuntu Tools. How can i rectify this?  If any further info needed, feel free to ask.  UPDATE  @psusi, sudo parted -l says same as what gparted said. (Unable to satisfy..) @oldfred, i have started chkdsk, will update you with the same.  (Thanks to both)  @rod smith, I will try your suggestion after i done with chkdsk.Thanks !


This is my first time ever attempting to use class templates (I'm very new to C++)  I'm trying to create a very simple Number class.  To start, I'm creating a ToString method.  As of now, for testing purposes, I just want ToString to return the string "testing".  When I run my code, I get the following error:  Undefined symbols for architecture x86_64:   "Number<int>::ToString()", referenced from:       _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [build/ml] Error 1  Here is my code, any help is appreciated:  main.cpp  #include "number.h"  int main(int argc, char* argv[]) {     Number<int> x(15);     x.ToString();     return 0; }   number.h  #ifndef _NUMBER_ #define _NUMBER_  #include <iostream>  template <class T>  class Number {     private:         T m_val;     public:         Number(T val) : m_val(val) {};         std::string ToString(); };  #endif   number.cpp  #include "number.h"  template<class T>  std::string Number<T>::ToString() {     return std::string("testing");   }


How to graphical remote control an Ubuntu server?

I've tried googling and .  I'm connecting my Windows 7 SP1 machine to an Amazon EC2 Ubuntu cloud server, Ubuntu 10.04 LTS. What I have done is   Enabling Remote Desktop in Ubuntu (, ) Connect to my server using 1)  and 2)  – I don't use  since it contains viruses.   But all of those result in Connection failed. I'm giving up!  More Detail Ubuntu server to remote to: Ubuntu 10.04 LTS (codename lucid)  My Windows: Windows 7 SP1


Mysterious crashes/freezes in Ubuntu 12.04

I am using 64 bit Ubuntu 12.04 for last two years. Machine is slightly older 3 years or so. No hardware changes to machine - even using same mouse and keyboard. I keep service packs up to date. No untrusted software - may be except Wekbit GTK latest version and its dependencies which I get from official sites and build it myself.  For the last month or so, I am experiencing sudden freezing of UI - almost every day or every other day. Log files (syslog/kern) do nor reveal anything interesting. The machine used to rock solid before this point and rarely needed reboot.  When problem happens, usual place I have seen it happening is in eclipse context menu- after right clicking on something. Don't know if eclipse related or I just notice it because I spend lot of time in eclipse -as its my primary work tool. When this happens GUI does not accept keystrokes. I can move the mouse, but can not click anywhere. I have two monitors and OS somehow forgets to paint another monitor.  However I can still use ctrl-alt F2 etc and from there I can reboot.   Apart from searching causes of this problem, is there any way I can logoff GUI user without rebooting the whole box? I tried restarting lightdm service, keyboard/mouse and monitors started working again, but it created new session with my eclipse and other tools in limbo.


What is the difference between several alloc methods of  memory in c++?      like so new, malloc and so on ...  thx


I have list of objects with properties  Id and Name.   foreach (var x in mydata)  {                     var model = new MyViewModel()     {        Id = x.Days.Id,        Name = x.Days.Name                                        };                                         models.Add(model);  }   I'm returning list (models) which has duplicate items, how can I return list of distinct items inside?


How do we know the Flash is faster than Superman?

I have heard from many people that the Flash is faster than Superman. But how do we know this?  Have we ever seen them head-to-head?


Is it safe to use the same cooking utensils for raw and cooked meat?

So, being new to cooking, I tried cooking a pan-seared ribeye steak for the first time recently.  I'm just getting new cooking utensils, and the idea of flipping the steak is something I'm not sure about.  Last time, I used the same utensil the whole way through.  I know, many are likely cringing at the thought.  But I was afraid of over-cooking so I was as attentive as possible to the steak.  I'm wondering if this is "safe".  I'm guessing most will say it is not, and that's fine.  I'd like to do better if it's not safe.  I bought a pair of tongs since then (I was using a spatula to flip before!) but I still only have one pair.  So, should I be placing the steak in the pan with the spatula, flipping with the tongs, and removing it from the pan with...something else?  Is it safe enough to use the tongs, and rinse them each time they touch meat before it's finished?  Should I be scrubbing them with soap each time?  Should I simply stick to different utensils?  (In which case I might just stop cooking--I don't have that many utensils, don't plan on buying more for this purpose, and quite frankly I don't wish to clean so many utensils when I'm finished cooking)  I know there are other topics, but they haven't been quite as specific as the questions I'm asking here, so I hope I can get a good response on the subject.


Images Unsharp Or My Criteria Needs To Be Adjusted

I have Nikon D3500 with kit lens 18-55 VR and some other lenses af-p 10-20 among them.  As I renewed my interest for photography some time ago, I have some images at the LR scrutiny that were taken more than six months ago, when I was still refreshing my knowledge and making many mistakes.  Yet, I cannot realize how could I make some images look not so sharp when viewed on 100%.  I mean, image at 18mm focal, f/14 has hyperfocal distance slightly over 1m and with my habit to focus at least somewhat longer than hyperfocal, how could I miss it?  I know, depth of field is not a measure of ideal sharpness, yet, I don't Like many details on 100%.  Am I too demanding or there could be some problem with camera?   I'm simply wondering how to not take photo sharp enough with these settings. And shutter speed is 1/160, that shouldn't create a blur even with a bit shaky hands.  Am I missing something?!  ()  I have added one of typical pictures where buildings in the back lose definition.


If you look to the right of the photo are the girl's arm it has black dots on it.


I'm getting conflicting statements when it comes to time dilation due to gravity. Some sites say time slows down near the source of gravity and some say it's faster. Can anyone she'd some light on this?


If all the objects in java are passed by reference. Then why do I see this Object Passed by value kind of behavior In this case?

I understand that java does Pass-by-reference for objects and Pass-by-value for primitives. But in the below scenario I see this dichotomy. Please help me understand this behavior. import java.util.*; import java.lang.*; import java.io.*;  class Main {     static class Node {         int data;         Node left = null;         Node right = null;         public Node(int data) {             this.data = data;         }     }   public static void main (String[] args) throws java.lang.Exception {      Node node = new Node(0);      node.left = new Node(2);      node.right = new Node(-1);            // case 1:      // nullify(root.left);      // System.out.println(node.left.data);  // output = 2;      //-------------------------------------------      // case 2:      nullify(node);      System.out.println(node.left);  // output = null; }  public static void nullify(Node root) {     // case 1:      // root = null;    input was == "" node.left  ""     //-------------------------------------------     // case 2:     root.left = null;   // input was ==  "" node "" }  }


When are quadratic integer programs easy to solve?

Let $N_i=\{0,1,\dots,\bar{n}_i\}$ and define $N=N_1\times \dots \times N_I$. I want to maximize $f$ on $N$. $f$ has the following form $$ f(n) = \sum_i A_i n_i -\sum_i \sum_{j\neq i} B_{ij} (n_i-n_j)^2 $$ where $A_i\geq 0$ and $B_{ij}\geq 0$ for all $i,j$. Note that $f$ is concave when defined on $\mathbb{R}^I$.  I know that integer programing is in general a hard problem but I would like to find nontrivial conditions on $A$ and $B$ such that this problem is easy to solve. By easy to solve I mean that there is a procedure that is fast and that is guaranteed to find the global maximum.  What I have tried  I have tried the following way of solving the problem. Define the mapping $T$ for which the $i$th element is defined as $$(Tn)_i=\arg\max_{\tilde{n}_i\in N_i} f\left( \left\{ n_1,\dots,\tilde{n}_i,\dots,n_I\right\}\right)$$ and iterate on $T$ until convergence. This is essentially a  algorithm but in a discrete space.   A few remarks:   We can look at the fixed points of $T$. The vector $n^*$ that maximizes $f$ is obviously a fixed point of $T$ (can't improve by deviating in any dimensions) but there might be multiple fixed point. The mapping $T$ is monotone in the sense that $n\geq n'$ implies $T(n)\geq T(n')$. As a result we can use Tarski's fixed point theorem to show that the (non empty) set of fixed point is a lattice. We can find the lower bound of that set by iterating on $T$ from $(0,\dots,0)$ and the upper bound by iterating from $(\bar{n}_1,\dots,\bar{n}_I)$. If both iterations end up on the same vector then there is a unique fixed point and it must be $n^*$. When it works that procedure is quite fast numerically but I don't know what conditions on $A$ and $B$ are needed for it to work. Under some conditions, $T$ might be a contraction mapping which would guarantee uniqueness but I haven't made much progress along that path yet.   Any helps is appreciated! In particular, if somebody has a good reference on these problems that would be useful.


Combine two parallel lines to one with postgis

In OpenStreetMap, a highway=motorway consists out of two parallel lines, each representing one direction:    On a professional map the two lanes get combined to one single line and drawn with a middle line:    Is there an easy way with postgis functions to combine that two lines to one in between to be able to render the highway accordingly? It has to be considered that the two lanes could split somewhere and every direction has to be rendered separately again (e.g. for going around a mountain). So there needs to be a parameter to set the maximum distance between both lines.


Time Machine Icon on Desktop showing the yellow icon

My Time Machine in Finder shows the correct icon, however, on my Desktop, it shows the Yellow icon that is used for normal external hard drives. It only changes on the desktop to the time machine icon when I either eject the hard drive or in terminal use, killall Finder. But ejecting it is kinda useless as I can't use it then, and if I then reconnect it, it shows the yellow icon again.  I'm running the latest version of OS X El Capitan.  Anybody else have this issue or know how to fix this?


How are physics theorems so accurate, relative to fixed measurement systems?

I admit this sounds like a dumb question. I know very little about physics, but I've always wondered that given the fact that:  A unit of measurement is a very specific constant value.  Then how can a formula like: $$E=mc^2$$ Be so precise and so clean when it has to use already pre-defined unit of measurements as values. I assume (I'm googling this and I know almost no physics, just what I remember from high-school) That this formula claims that $1 \text{joule} = 1 \text{kg} * (\text{speed of light}) ^ 2 \frac{m}{s}$ The meter, the kilogram, the second, the joule (composed of the base units) and so on are very very specific values defined by the International System of Units. How can one find a law, that just so happens to find a relationship between these exact values, without needing a custom made constant value or set of values to multiply or add by? Edit: So I understand that my understanding of the equation itself was off. It does not claim that $1 \text{joule} = 1 \text{kg} * (\text{speed of light}) ^ 2 \frac{m}{s}$ but instead that a mass of $1 \text{kg} * (\text{speed of light}) ^ 2$ = A certain amount of energy expressed in joules. My understanding of the equation itself improved, but my original question still stands. How is such a clean relationship found between the kg and the speed of light without multiplying or summing by a custom constant or set of constants? If you were to change to a different system, wouldn't you be unable to neatly say that exactly 1 unit multiplied by the speed of light = a certain amount of energy? You would need to translate your metric for mass to 1 kg. In pounds for example I think you would have to say: E = $2.20462pounds * c^2 m/s$ Is this off? And so on.. If you want to keep it clean with 1 unit you would have to change the constant from the speed of light to a different value (a smaller value in the case of pounds at least).


Special Characters from MySQL after using mysqli_real_escape_string

I'm using mysqli_real_escape_string function to avoid sql hacking issues but when I fetch that data from mysql using php, ', " & ’ characters are shown as a question mark sign (�) in output. I'm using   <meta charset="utf-8">   Any suggestions would be appreciated.


I have few text files with size more than 30MB.  How can i read such giant text files from PHP?


I have built numerous 555 circuits over the years. I recently had to built a Monostable 555 cct. as per this site :    The cct. is used in a motor vehicle. When the remote control is pushed to open the doors, it sends positive 12V to this Monostable cct. to initiate it and a 3 Amp Power Transistor pulses the siren momentarily to indicatse "unlocking" by audible means.   The issue I have is that Rt and Ct used to time the output pulse is not short enough. I replaced these components to the smallest values I could get, but the output is still "too long". Teh siren makes a "chooow" sound instead of "chow". Sounmds too unprofessional or after-market.  Any ideas to get a short pulse (nearly a few micro seconds) out of this old 555 cct. ?


Is it intended to be possible to change your vote on a question, that YOU have edited?

I read a question, thought it was interesting, voted it up. It needed some editing, so I started fixing all the grammar mistakes, added punctuation, improved sentence structure; I realized that the quality of this question was very low - it felt like the OP didn't put any effort into it at all - no evidence of research was provided, and a very unclear question was asked.   I changed my mind about the upvote, but I couldn't change my vote until the post was edited. In a couple of minutes my edit was accepted, and I was able to change it to a downvote.  Is it normal? It just seems weird that your own edit can let you change your vote on a question.


Find the roots of the equation $$2000x^6+100x^5+10x^3+x-2=0.$$ I am struggling finding a root using rational root theorem. Even if I get a root, I have to find all the roots. Please don't use WolframAlpha, I am looking for an approach, etc. Thanks.


Misalignment of bullets on vote-to-close sequence

The first vote-to-close dialog lists the radio buttons next to the selection:    When selecting off-topic because, the radio buttons are vertically misaligned:    Can this be fixed?


I'd like to find a place to store stuff while I'm out adventuring, without spending 5000 on a house (at least, until I can afford that...). Where can I safely store items without worrying about them disappearing?   There are two possible places that come to mind,  (to which I have the key and was told I could stay), and the small bedroom given to me at the  (which I was told was mine, despite seeing J'zaro sitting in it later). Can I store items safely in either of these places?


I found a bug in Stack Exchange, where should I report?

I have found some bug in the current implementation of Stack Overflow. Since there is no specific thing like "bug bounty" on Stack Exchange, I am framing it as a question on Meta.  Can I contact any of Stack Exchange members here and can get some kind of reward (if bug accepted)?


Why does the series $\sum_{n=1}^∞ \ln ({n \over n+1})$ diverges? And general tips about series and the logarithm

Why does the series $\sum_{n=1}^∞ \ln ({n \over n+1})$ diverges? I'm looking for an answer using the comparison test, I'm just not sure what I can compare it to.   And can I have some tips on what to look at when handling with series that have logarithms in the expression?   Thanks in advance!


Possible Duplicate:          Site that will allow to ask questions about the law system, every each country System work in different way so users can ask about different languages (countries).  from programming point of view people can ask questions about different licenses, Term of Services EULA, Public domain and other things not related to computers and internet.


I want to do regular long division in latex. See also:   Is there a latex macro for this ?  Edit: I actually want to use it in mathjax, is this possible ?