Coloring cell text makes tabularx add undesired vertical space

I know that I must not use vertical rules but I'm trying to reproduce a SAS output like this:    When I use a simple tabular my code works well (see the first table below), but when I use one or more X column from tabularx some undesired vertical space appears (see the 2nd and the 3rd tables below).  What am I doing wrong?  \documentclass{book}  \usepackage{array} \usepackage{tabularx} \renewcommand*{\arraystretch}{1.1} \usepackage{tcolorbox} \newcommand{\stilecomandoa}{\color{blue!60!black}\bfseries}  \begin{document}      \begin{center}         \begin{tabular}{|>{\stilecomandoa}r|l|l|r|}             \hline             \multicolumn{4}{|c|}{\stilecomandoa Alphabetic List of Variables and Attributes}\\                   \hline             \# & {\stilecomandoa Variable} & {\stilecomandoa Type} & {\stilecomandoa Len} \\             \hline             3 & Age & Num & 8 \\             \hline             4 & Height & Num & 8 \\             \hline             1 & Name & Char & 8 \\             \hline             2 & Sex & Char & 1 \\             \hline             5 & Weight & Num & 8 \\             \hline         \end{tabular}         \end{center}     \begin{center}         \begin{tabularx}{.7\linewidth}{|>{\stilecomandoa\arraybackslash}X|X|X|X|}             \hline             \multicolumn{4}{|c|}{\stilecomandoa Alphabetic List of Variables and Attributes}\\                   \hline             \# & {\stilecomandoa Variable} & {\stilecomandoa Type} & {\stilecomandoa Len} \\             \hline             3 & Age & Num & 8 \\             \hline             4 & Height & Num & 8 \\             \hline             1 & Name & Char & 8 \\             \hline             2 & Sex & Char & 1 \\             \hline             5 & Weight & Num & 8 \\             \hline         \end{tabularx}     \end{center}     \begin{center}         \begin{tabularx}{.7\linewidth}{|>{\stilecomandoa\arraybackslash}r|X|X|r|}             \hline             \multicolumn{4}{|c|}{\stilecomandoa Alphabetic List of Variables and Attributes}\\                   \hline             \# & {\stilecomandoa Variable} & {\stilecomandoa Type} & {\stilecomandoa Len} \\             \hline             3 & Age & Num & 8 \\             \hline             4 & Height & Num & 8 \\             \hline             1 & Name & Char & 8 \\             \hline             2 & Sex & Char & 1 \\             \hline             5 & Weight & Num & 8 \\             \hline         \end{tabularx}        \end{center} \end{document}


Is it possible to consider $S^n$ as a $0$-simplex and a singular map of an $n$-simplex so that the $n$-simplex forms the surface of $S^n$ minus a point, and the point is the singular map of the $0$-simplex? Can a (singular map of an) $n$-simplex have zero boundary for $n>1$? I am trying to understand the homology groups of $\mathbb{R}^n$ with finitely many points removed. I imagine I could use the Mayer-Vietoris exact sequence and homotopy invariance, but I want to try to find the groups directly from the definition to confirm that I am right. So, I have started by showing that $X=\mathbb{R}^n\backslash\{x_1,\ldots,x_m\}$ is homotopy equivalent (deformation retracts) to the wedge sum of $m$ copies of $S^{n-1}$ meeting at a common point, as in the diagram for $n=3,m=4$.


I started downloading El Capitan and left my computer for a while, but it had gone into the sleep mode and the download was paused. But when I tried to resume it would not start even after restarting my computer.


How do I use a core class from an external script?

I am trying to access a node programmatically and getting errors though using (AFAIK) the recommended way. My code (so far) is really simple. use Drupal\node\Entity\Node;  $nid=1805; $node = Node::load($nid); print_r($node, true);  It keeps failing with this error message.  [09-Nov-2020 08:32:31 UTC] PHP Fatal error:  Uncaught Error: Class 'Drupal\node\Entity\Node' not found in test-node-access.php  The program resides (at least currently) in Drupal root directory. I am acting on user action via AJAX call from a paragraph (as a lame explanation to a little un-orthodox implementation).


Change desktop wallpaper to a custom photo in Ubuntu 18.04

How to change the desktop wallpaper to a photo of my own selection in Ubuntu 18.04? I'm not interested in downloading some wallpaper changer application, nor am I interested in coding something up. There has to be an easy way to select a photo as a custom wallpaper in Ubuntu 18.04.


! Package inputenc Error: Unicode character  (U+202A) when using crossref

I'm trying to cite this reference, but whenever I compile it with pdflatex, biblatex and biber, I get the error "! Package inputenc Error: Unicode character  (U+202A)". I already checked my files for special characters, but I think I isolated it to just the reference. Other examples from biblatex work fine with the crossref. When I comment out the crossref, I can compile it, but the bibliography does not include the proceedings. Any guesses why this strange error occurs?  @proceedings{UCAMI2018,   title        = {The 12\textsuperscript{th} International Conference on Ubiquitous Computing and Ambient Intelligence (UCAmI 2018)},   location     = {Punta Cana, Dominican Republic},   series       = {19},   volume       = {2},   publisher    = {MDPI},   year         = 2018,   month        = dec }  @inproceedings{Espinilla2018,   crossref    = {UCAMI2018},   author      = {Macarena Espinilla and Javier Medina and Chris Nugent},   title       = {UCAmI Cup. Analyzing the UJA Human Activity Recognition Dataset of Activities of Daily Living},   doi    = {10.3390/proceedings2191267},  }


having trouble performing LINQ's ThenBy inside a loop

I feel like there is some silly syntax error going on here but I can't for the life of me figure it out. I am trying to sort a big list using multiple properties.   Method A:  IOrderedEnumerable<myClass> orderedList = myList.OrderByDescending(e => e.Tier);  orderedList = orderedList.ThenByDescending(e => e.Priority[0].Value); orderedList = orderedList.ThenByDescending(e => e.Priority[1].Value); orderedList = orderedList.ThenByDescending(e => e.Priority[2].Value);  orderedList = orderedList.ThenByDescending(e => e.Score);   Method B:  IOrderedEnumerable<myClass> orderedList = myList.OrderByDescending(e => e.Tier);  for (int i = 0; i < 3; i++) {     orderedList = orderedList.ThenByDescending(e => e.Priority[i].Value); }  orderedList = orderedList.ThenByDescending(e => e.Score);   The above Method A works perfectly, but Method B (the way I need to do it) keeps returning an index out of range error, even though it should be the exact same (i.e. 0, 1, 2)  In both instances e.Priority represents a list of 3 KeyValuePairs. I don't understand why Method B is returning an out of range error.


trigger ServiceEnquiryOwnershipTrigger on Service_Enquiry__c (before insert) {         System.debug('~~~ Begin');          Set<String> accset = new Set<String>();          for(Service_Enquiry__c s : Trigger.new)         {             accset.add(s.Account__c);         }           Map<Id,Account> accMap = new Map<Id,Account>([SELECT ID,OwnerId FROM Account WHERE ID IN :accSet]);          for(Service_Enquiry__c s : Trigger.New)         {             System.debug('~~~ Inside Loop');            try           {                       if(s.Account__c != null)                       {                            System.debug('~~~ Account Match Found');                            s.OwnerId = accMap.get(s.Account__c).OwnerId;                            System.debug('~~~ Owner Id = '+s.OwnerId);                        }                       else                       {                           System.debug('~~ Account Not Found'); //BELOW LINE THROWS EXCEPTION                           s.OwnerId = SEMapping__c.getValues(s.Lead_Office__c).Manager__c;                           System.debug('~~~ Owner Id = '+s.OwnerId);                        }           }           catch(Exception e)           {              System.debug('~~~ Inside Exception');               s.OwnerId = SEMapping__c.getValues('Default').Manager__c;               System.debug('~~~ Owner Id = '+s.OwnerId);               s.System_Comments__c = 'Exception occured while assigning ownership';           }         }          System.debug('~~~ End');     }   As commented in the code snippet I get an exception at the line  s.OwnerId = SEMapping__c.getValues(s.Lead_Office__c).Manager__c;   In that custom settings I have knowingly put an inactive user to trigger an exception. In the catch block i intended to get a default user (who will always be active) and keep that as owner whenever there is an exception. The exception is indeed getting thrown but for some reason it is not being caught by the "catch" block.  Let us assume inactive user as XXX and the default active user as YYY  The following occurs (obtained from the debug log)  ~~~ Begin ~~~ Inside Loop ~~ Account Not Found ~~~ Owner Id = XXX ~~~ End   What I expected (when there is an exception)  ~~~ Begin ~~~ Inside Loop ~~ Account Not Found ~~~ Owner Id = XXX ~~~ Inside Exception ~~~ Owner Id = YYY ~~~ End   I get the following exception   13:20:02.0 (280750383)|FATAL_ERROR|System.DmlException: Insert failed. First exception on row 0; first error: INACTIVE_OWNER_OR_USER, operation performed with inactive user [XXX] as owner of 01Ip0000000Ck3E: []   Can someone tell me what I am missing ?


How to sum up values of neighbouring rasters?

I have a raster (25X25 meter) and I will make a new raster where each cell get the value of the sum of all the raster cells in a radius of 500m. I use QGIS. What is the best option to do this?


Method can be made static, but should it?

ReSharper likes to point out multiple functions per ASP.NET page that could be made static. Does it help me if I do make them static? Should I make them static and move them to a utility class?


Story about suicidal breeding of aggressive next generation on generation ship

I am looking for a short story and anthology / anthologies containing it: A multi generation ship has landed on a planet with very hostile inhabitants on it. The aliens are chipping away at the hull of the ship with primitive instruments.   The leaders of the space ship decide to breed aggressive children to counter the aliens. They know that this is suicidal as the children will be so aggressive that they will kill the parental generation.   I think I read this in an anthology in early 80's / late 70's. Most likely published in 70's.


How to remove directory with invalid name on running system root partition without third party software?

Somehow, most probably from one or another usb-born Linux, I got cute little directory named C: located on my C: NTFS partition, due to its peculiar name I can not operate on its directory tree as deleting C: is a no no operation after all...  rmdir, del, move, copy all have no effect, and even show some signs of undefined behavior (for example del asks to delete \*). Checkdisk failed to complete. (I have a bad feeling about this.) Environment is up-to-date Windows 8.1 in English localization with full admin privileges. I will be doing full format of this disk in few days anyway and all data are backed up so crazy ideas have green light.


Determining if an arbitrary point lies inside a triangle defined by three points?

Is there an algorithm available to determine if a point P lies inside a triangle ABC defined as three points A, B, and C? (The three line segments of the triangle can be determined as well as the centroid if they are needed.)  Grid space is defined as Screen Space, that is, 2D Cartesian with the Y-Axis flipped so "up" is negative y and the origin is the upper left corner.


I found an iPad on the street, how can I find its owner?

I have found an iPad on the street last night, it's an  according to the model number (A1474).   How can I find its owner?   The iPad is locked. There's no SIM card to help me find its owner. There's another question on this site  But it's 6 yr old and may be outdated.  I thought about leaving it to the police, but according to what I read, they won't deal with it.


I am in the process of redesigning an interface with a lot of Tabular data that is previously simply used as tables that look like the 19th century. I was a bit confused whether to switch it to a Card View sort of layout and present the data in that way, or to leave it in a Tabular View itself and instead just style around it.  I would like to know what could be the better approach when it comes to User Experience and what seems more at ease to the customer as I want the product to be easier for the customer to use rather than looking complicated to them.  The users of the product would be on the financial sides of the industry so, if needed please keep that into consideration.


C++ class, its base class and circular include includes

FILE #1 (foo.h):  #ifndef FOO_H_ #define FOO_H_ #include "baseclass.h" #include "bar.h" class Bar; class Foo : public baseclass { public: bar *varBar; }; #endif   FILE #2 (bar.h):  #ifndef BAR_H_ #define BAR_H_ #include "foo.h" class Foo; class Bar { public: Foo *varFoo; }; #endif   FILE #3 (baseclass.h):  #ifndef BASECLASS_H_ #define BASECLASS_H_ #include "foo.h" class Foo; class baseclass { public: list<Foo*> L; }; #endif   But I get an compile error in file #1 in line class Foo : public baseclass:  Error: expected class-name before »{« token   If I add class baseclass; bevor class declaration, I get this error:  Error: invalid use of incomplete type »struct baseclass«   So my question is, how can I resolve circular dependencies with baseclasses?  Ask if you don't get somepoint. I allready tried to change the order of includeing the headers, but no luck so far. Thanks for any hint.  EDIT: Note: I am using include guards EDIT2: It is not limited to pointers, so I remove them, just in case. EDIT3: Added baseclass (forgot O.o) EDIT4: Now it should be clear and without anymore flaws, the problem persisits with this code.


How to insert degree Celsius symbol in node text in pgfplots/tikz?

Here is my code.  \resizebox{\textwidth}{!}{ \begin{tikzpicture} \selectcolormodel{gray} \begin{axis}[xlabel=Voltage,ylabel=Current,title=IV Characteristics of PV Module] \node[label={Set 1}] at (axis cs:2,60){}; \node[label=Set 2] at (axis cs:2,150){}; \node[label=Set 3] at (axis cs:2,240){}; \node[label=Set 4] at (axis cs:2,305){}; \addplot table [x=v1,y=i1, col sep=comma,mark=none] {SolarCellIV.csv}; \addplot table [x=v2,y=i2, col sep=comma,mark=none] {SolarCellIV.csv}; \addplot table [x=v3,y=i3, col sep=comma,mark=none] {SolarCellIV.csv}; \addplot table [x=v4,y=i4, col sep=comma,mark=none] {SolarCellIV.csv}; \node at (axis cs:12,360) {Set 1: 44.9 degreeCelsius}; \end{axis} \end{tikzpicture}}   I want the symbol for Degree Celsius in place of the text. How do I do so?


Find out the pairwise prime integer solutions?

Number of pairwise prime positive integer solutions of $(x,y,z)$ in the equation $$(1/x^2) + (1/y^2) = (1/z^2)$$  I had started the problem with taking numbers but unsuccessful to reach towards solution. Is there any general way to reach solution with ease!


Markers are placed incorrectly on network profile reputation graph after zoom reset

If I zoom in somewhere and then press the "reset zoom" button, it places some of the markers completely out of place:  What it's supposed to look like:   Browser: Safari, iOS 10.1.1


Why sometimes evidence is said to be too complex to compute and other times is negelected cause it is fixed?

When motivating something like variational inference they say the denominator in Bayes rule is too complex to compute. Other times I see that the denominator is neglected and equality is replaced by proportionality. Can you please explain when do we do this or that?


This may be a bit of beginner type of question; however, hypothetically, if there is method that takes a pointer of class type A, how would you free to allocation from a call such as this...  void method123(A *ptr) {<stores the A pointer in a data structure>} method123(new A());   Is there a way to free the allocation made by that 'new' without deleting the pointer itself that was stored into the data structure?


In multiplayer, what happens if a player you're attacking dies before combat damage is dealt?

I can't work this one out. For example:  I declare a creature attacking one of my opponents (who's on 5 life). Before he/she declares blockers another player casts  (or similar), reducing his/her life to 0. They would then leave the game, correct?  What happens to my attacking creature, does it still attack the player who is no longer there,  or is it no longer attacking?  In a similar situation, if my opponent has a planeswalker and I attack it, if that planeswalker is destroyed or exiled before it gets to combat damage what happens with the attacking creatures?  My guess is the damage is still dealt to the player/planeswalker no longer there and therefore doesn't do anything except tap the creature, but I'm not sure about this.


Installing 64-bit geoprocessing of ArcGIS for Desktop?

I am trying to install 64-bit processing to ArcGIS 10.2, but the ESRI .  One similar question on this exchange  that shows an option to include this, but my setup installation program (which I downloaded) does not show this installation window, but instead goes straight to selecting features to install as shown below.  I can't find any other documentation for running 64-bit geoprocessing on ArcGIS version 10.2.  Can anyone show me how to do this? or is it best to just try to install the service pack 1 version of it?


A $p$-group of order $p^n$ has a normal subgroup of order $p^k$ for each $0\le k \le n$

This is problem 3 from Hungerford's section about the Sylow theorems.  I have already read hints saying to use induction and that $p$-groups always have non-trivial centres, but I'm still confused. This is what I have so far:  Suppose $|G| = p^n$. For $k = 0$, $\{e\}$ is a normal subgroup of order $p^0$. Suppose $N_1, ..., N_k$ are normal subgroups of $G$ with orders as described (ie. $|N_i| = p^i$) and $k < n$.  $G/N_k$ is a $p$-group, so it has a non-trivial centre $C(G/N_k)$. $\pi^{-1}(C(G/N_k))$ is a subgroup of $G$, where $\pi : G \to G/N_k$ is the quotient map. It is normal in $G$ because $\pi$ is a homomorphism and $C(G/N_k)$ is a normal subgroup of $G/N_k$.  I know it contains $N_k$ and some stuff not in $N_k$, so it has to have order at least $p^{k+1}$, but I do not know how to argue it must be equal, or indeed if it even is equal.


When trying to installing MySQL I got "unable to locate package mysql-server"

$ sudo apt-get install mysql-server [sudo] password for user:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package mysql-server   I am using Ubuntu 14.04.


Delete all files in a folder except the last (most recent) 20

I want to remove all the files from different directories, and want to keep only latest files 20 files. is this the correct command to do this?  ls -t1 /mnt/dwh/ftp/dwh_ftp_cbs/ARLOGS/ | tail -n +22 | xargs rm -f


Necromancer badge given based on merged duplicate instead of master question

The system awarded me Necromancer, attributing it to the fresh printed new question instead of the older decrepit master question it was merged into.  I earned the "Necromancer" badge because I "Answered a question more than 60 days later with a score of 5 or more."  I did not actually answer a question more than 60 days after it was asked. I just won the badge because the question had been merged with a previous one.   Shouldn't the system have this premise in consideration and not award badges like that?


Prove or find a counter example of : $3$ divide $2^{2n}-1$ for all $n\in\mathbb N$.  I compute $2^{2n}-1$ until $n=5$ and it looks to work, but how can I prove this ? I tried by contradiction, but impossible to conclude. Any idea ?


Does E(X|Y)=E(X) implies independence between X and Y?

if anyone could help me with this doubt, it would be great! I know that independence between X and Y implies  E(X|Y)=E(X) and E(Y|X)=E(Y), but i really don't know if the opposite is valid. Thank very much for your attention! Regards


How many ways to choose group of numbers with constraints

I'm taking a combinatorics course, and I was trying to practice from a book I took from the library. unfortunately there are no answers in this book, and there was a question I didn't know even how to approach to. I'd really appreciate it if anyone could give me an advice on how to think about it:     Given the group $\{1, 2, \ldots, n\}$,  choose $r$ different numbers so that no two are sequential. e.g for $r = 3$ and $n>r$,  $\{1,3,5\}$ is a valid group but $\{1,4,5\}$ isn't valid.   Thank you very much for your time and attention!


etoolbox: problem with the last row in an table automated

I want to automate a long table as follows  \documentclass{article}  \usepackage{etoolbox} \newcounter{test} \newcounter{count}  \begin{document}  \begin{tabular}{|c|c|}\hline \whileboolexpr{test {\ifnumequal{\thetest}{0}}} {\ifnumless{\thecount}{10}{\addtocounter{count}{1}Hello & Hello} {Bye & Bye\addtocounter{test}{1}}\\\hline}\setcounter{test}{0} \end{tabular}  \end{document}   but there is a problem with the last line. How can I fix that? I think the problem is with \whileboolexpr, but I don't know how fix it.


Number Theory Prove $\gcd(a, b, c)=\gcd(\gcd(a,b),c)=\gcd(\gcd(a,c),b)=\gcd(\gcd(b,c),a)$.

Let $a, b, c$ be integers, no two of which are zero, and $d=\gcd(a, b, c)$. Show that  $d=\gcd(\gcd(a,b),c)=\gcd(a,\gcd(b,c))=\gcd(\gcd(a,c),b)$.  Here is what I have tried, but I'm unsure if the part that I prove $d=\gcd(a,b)$ is correct:  Proof:  $d=\gcd(a,b,c)\implies d\mid a$, $d\mid b$, and $d\mid c$.  Let $d=\gcd(a,b)$.  So, $d=ax+by$, some $x,y\in \mathbb{Z}$, by Theorem 2.3.  Let $n\mid a$ and $n\mid b$, $n\in \mathbb{N}$.  Then, $n\mid (ax+by)$ by Theorem 2.2(g) $\implies n\mid d$.  So, $d=\gcd(a,b)$ by Theorem 2.6.  Similarly, we can show $d=\gcd(a,c)=\gcd(b,c)$.  Thus, we have $\gcd(\gcd(a,b),c)=\gcd(d,c)$.  Since $d\mid c$, we have $dk=c$, some $k\in \mathbb{Z}$.  So, we have $\gcd(d,c)=d\cdot \gcd(1,k)=d\cdot 1=d$ by Theorem 2.7.  Similarly, we can prove that $\gcd(a,\gcd(b,c))=\gcd(\gcd(a,c),b)=d.\blacksquare$  Theorems  2.2(g): If $a\mid b$ and $a\mid c$, then $a\mid (bx+cy)$ for arbitrary integers $x$ and $y$.  2.3: Given integers $a$ and $b$, not both of which are zero, there exist integers $x$ and $y$ such that $\gcd(a,b)=ax+by$.  2.6: Let $a,b$ be integers, not both zero. For a positive integer $d$, $d=\gcd(a,b)$ if and only if  (a) $d\mid a$ and $d\mid b$.  (b) Whenever $c\mid a$ and $c\mid b$, then $c\mid d$.  2.7: If $k>0$, then $\gcd(ka,kb)=k\cdot \gcd(a,b)$.


What is the absolute safest way to find out if a URL exists or not?

I do realize that there are different wat to check the existence of a website in C# and other languages. However, I have come to understand that some of them don't work as good. For example, this code:         WebClient client = new WebClient();         try         {             string response = client.DownloadString(url);             return true;  // Successful -> the website does exist.         }         catch         {             return false; // Unsuccessful -> the website doesn't exist.         }  doesn't detect , although this website clearly does exist. What code should I use to be absolutely on the safe side here?


working with procedure  to update Ubuntu 18.04 offline machine, the sudo apt-offline install /path_to_downloaded_package_folder do not apply any updates/upgrades. The beginning of the massage I get is :   sudo apt-offline install ./updates_path/ No changelog available (Y) Yes. Proceed with installation (N) No, Abort. (C) Display changelog (?) Display this help message. What would you like to do next:  (y, N, ?)y Proceeding with installation ERROR: Path for keyring is invalid: /etc/apt/trusted.gpg gpgv: Signature made Mon 06 Jan 2020 08:17:27 AM MST gpgv:                using RSA key 3B4FE6ACC0B21F32 gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" gpgv: Signature made Mon 06 Jan 2020 08:18:52 AM MST gpgv:                using RSA key 3B4FE6ACC0B21F32 gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" gpgv: Signature made Mon 06 Jan 2020 08:18:25 AM MST gpgv:                using RSA key 3B4FE6ACC0B21F32 gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" gpgv: Signature made Thu 26 Apr 2018 05:38:40 PM MDT gpgv:                using RSA key 3B4FE6ACC0B21F32 gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" security.ubuntu.com_ubuntu_dists_bionic-security_InRelease synced. security.ubuntu.com_ubuntu_dists_bionic-security_Release synced. security.ubuntu.com_ubuntu_dists_bionic-security_Release.gpg synced.   What am I doing wrong?


How to create a transparent clipping mask?

I want to create an image that has the text as transparent like this (imagining that black is transparent)    So in photoshop I have tried selecting 'color range' and choosing the white and then getting the inverse selection and deleting it from a new white layer. But this comes out very pixelated like this (I have put a black layer underneath to show through the transparence):    How can I do this without the pixelated edges? The ideal situation here would be if there was a 'transparent clipping mask'


Local variable inside while loop in python

I am learning Python by watching a YouTube video. I was implementing the pop method for Linked List. In the code, I noticed that variable prev was created in the While loop which means prev is a local variable that lives inside the while loop. But I don't understand how prev.next still works outside the loop.     while temp.next is not None:         prev = temp         temp = temp.next     prev.next = None     return temp.data


Knowing$\sum a_{k}$ converges, how to prove that $\lim _{n \rightarrow+\infty} n a_{n}=0$.

Let $a_{n}$ be decreasing and positive. Then $\sum a_{k}$ converges implies $\lim _{n \rightarrow+\infty} n a_{n}=0$.  I think since $na_n$ is positive, the only thing to do is to find an upper bound for the sequence. But I don't know how to split the sequence to form the upper bound.


Multiple labels error in align inside gather

I have written the following piece of latex (ignore the formulas, don't make sense) \begin{gather}     \min \quad \sum_{i=1}^{n} a_i b_i, \nonumber \\     \begin{align}         \sum_{i=1}^{n} a_{i} \geq i&,   & \forall i &= 1, \ldots, m, \label{eqn1} \\          \sum_{i=1}^{n} b_{i} \geq i&,   & \forall i &= 1, \ldots, m, \label{eqn2} \\          a_{ij}          \in \{0,1\}&,   & \forall i &= 1, \ldots, n, \; \forall j = 1, \ldots, n \nonumber     \end{align} \end{gather}  and I get the error: ! Package amsmath Error: Multiple \label's: label 'eqn1' will be lost. From what I have found online this happens when more than one labels refers to the same equation, but I don't know how to solve it. P.S., side questions: what's the best way to align the stuff inside the align block?  does not work in my case: I need to \label two lines/equations inside the inner align environment, whereas the linked answer works only if you have one label inside the align environment and the other one outside.


If $\frac{\cos x}{\cos y}+\frac{\sin x}{\sin y}=-1$, then what's the value of $4\left(\frac{\cos^3y}{\cos x}+\frac{\sin^3y}{\sin x}\right)$?

I was trying to solve this problem:     If    $$\frac{\cos x}{\cos y}+\frac{\sin x}{\sin y}=-1$$    then what is the value of    $$S=4\left(\frac{\cos^3y}{\cos x}+\frac{\sin^3y}{\sin x}\right)$$   I tried to solve this problem using a change of variables $\cos^3y=a\cos x$ and $\sin^3y=b \sin x$.  So:  $$\frac{S}{4}=a+b$$ $$\frac{\cos^6y}{a^2}+\frac{\sin^6y}{b^2}=1$$ and  $$\frac{\cos^2y}{a} + \frac{\sin^2y}{b}=-1$$ I tried to manipulate these equations, but it gives no result


Trying to protect my SQL queries from injection attack and not having any luck

I've read a couple of post's on here and followed the queries word for word (minus my variable names) and I cannot get my code to run on a website I'm working on without errors appearing. All I have is a form where user's can upload an image.  My original code which was vulnerable but worked:  <?php   $uploadDir = 'images/';     if(isset($_POST['upload']))   {     $fileName = $_FILES['userfile']['name'];     $tmpName = $_FILES['userfile']['tmp_name'];     $fileSize = $_FILES['userfile']['size'];     $fileType = $_FILES['userfile']['type'];     $memberID = $_POST['member-id'];     $imgTitle = $_POST['img-title'];     $catID = $_POST['catID'];      $filePath = $uploadDir . $fileName;      $result = move_uploaded_file($tmpName, $filePath);      if (!$result) {       echo "Error uploading file";       exit;      }      echo "
Files uploaded
";      if(mysqli_connect_errno())      {        printf("Connect failed: %s\n", mysqli_connect_error());        exit();      }       if(!get_magic_quotes_gpc())         {          $fileName = addslashes($fileName);          $filePath = addslashes($filePath);         }           $query = "INSERT INTO `tblImage` (`fldImageID`, `fldMemberID`, `fldCatID`, `fldFilePath`, `fldName`) VALUES (NULL, '$memberID', '$catID', '$filePath', '$imgTitle')";          $query = "SELECT `fldImageID` FROM `tblImage` ORDER BY `fldImageID` DESC LIMIT 1";           $result = $conn->query($query) or die ("error");   }  ?>   and then the below is where I have tried to carry out prepared statements with no luck, please can someone point where my error is I've only pasted the below code which overwrites the above code where $query begins....      $stmt = $conn->prepare = ("INSERT INTO tblImage (fldImageID, fldMemberID, fldCatID, fldFilePath, fldName) VALUES (NULL, ?, ?, ?, ?)");      $stmt->bind_param($stmt, "ssss", $memberID, $catID, $filePath, $imgTitle);      mysqli_stmt_execute($stmt);     $stmt->execute();     $result = mysqli_stmt_get_result($stmt) or die ("error");   Error Message on web page:


Why did Community just create an unused tag?

Community just created a tag on Stackoverflow called javscript.  There are no questions, on Stackoverflow, with this tag.  It appears to be a mispelling of javascript.  Why was it created?


Does there exist a smooth approximation of $x \bmod y$?

I'm looking for a function $m(x,y)$ that smoothly approximates $x \bmod y$, and I'm assuming there would be some $n$ or $\varepsilon$ in the body of $m(x,y)$ that defines the degree of approximation such that as $n$ goes to infinity or $\varepsilon$ goes to zero,  $$ m(x,y)= x \bmod y. $$  I've looked at, for example, $\sin(x/y)$ and have been trying to figure out ways to make $\sin(x)$ more "steep" so that I can apply such techniques to $\sin(x/y)$ in order to perhaps more closely approximate $x \bmod y$.  The analogy I'm looking at is the approximation of $\mid x\mid$ as $\sqrt{x^2 + \varepsilon)}$ where epsilon is some small quantity.  Does a similarly smooth function exist for $x \bmod y$?


How can I use a meta query like this:  >>>>>> KEY_X Conditional IS ABSOLUTELY REQUIRED <<<<<<<<<<              array(                 'key' => 'Key_X',                 'value' => 'Value_for_X'              ), >>>>>> KEY_Y **OR** KEY_Z ARE REQUIRED  / AT LEAST ONE <<<<<<<<<<             array(                 'key' => 'Key_Y',                 'value' => 'Value_for_X'             ),             array(                 'key' => 'Key_Z',                 'value' => 'Value_for_Z'             )   So the first one is an absolute must, and then one or the other is required (at least one).  Thank you so much!  Ciprian


Proving a result of $\text{Re}\left(\frac{1-e^{i(n+1)\theta}}{1-e^{i\theta}}\right)$

Show that for $0<\theta<2\pi$:   $$\text{Re}\left(\frac{1-e^{i(n+1)\theta}}{1-e^{i\theta}}\right)=\frac{1}{2}+\frac{\text{sin}\left(n+\frac{1}{2}\right)\theta}{2\text{sin}\frac{\theta}{2}}$$   I am stuck up to this point \begin{align} \text{Re}\left(\frac{1-e^{i(n+1)\theta}}{1-e^{i\theta}}\right)&=\frac{1-\text{cos}\theta-\text{cos}(n\theta+\theta)+\text{cos}\theta\text{cos}(n\theta+\theta)}{2-2\text{cos}\theta} \\ &=\frac{1-\text{cos}\theta}{2-2\text{cos}\theta}+\frac{\text{cos}(n\theta+\theta)(\text{cos}\theta-1)}{2-2\text{cos}\theta} \\ &=\frac{1}{2}-\frac{\text{cos}(n\theta+\theta)}{2} \end{align}  I hint would be very helpful.


How can I determin if a reboot is required after update from CLI

So I have an alias that I use for performing updates that cleans up old kernels and stuff. Problem is that it doesn't notify me immediately if a reboot is required afterwards. What can I use to figure this out so that I can at least print a message to the screen?  alias update='sudo apt-get update;sudo apt-get dist-upgrade;sudo apt autoremove;'


Google is still crawling and indexing my old, dummy, test pages which now are 404 not found

I have set up my site with sample pages and data (lorem ipsum, etc..) and Google has crawled these pages. I deleted all these pages and actually added real content but in webmaster tools, i still get a lot of 404 errors Google trying to crawl these pages. I have set them to "mark as resolved" but some pages still come back as 404.   Furthermore, I have a lot of these sample pages still listed when i do a search of my site on Google. How to remove them. I think these irrelevant pages are hurting my rating.   I actually wanted to erase all these pages and start getting my site being being indexed as a new one but I read it's not possible? (I have submitted a sitemap and used "Fetch as Google.")


Auto arrange irregular shapes inside of artboard

I have over 500 irregular shapes with different sizes on artboard, total area of them is less than artboar's area . align/arrange all of them and control overlaps manually is not possible , are there any script to re-arrange (put each shape on free space) all these shapes inside of artboard without overlaps ? (maybe with  algorithm)  Edit : this picture is good sample for my need. many shapes with different size.


(This was originally asked on SuperUser --- they pointed me here as being more appropriate.)  I have a shiny new Debian server running in an Amazon EC2 instance. I've spent a while setting it up and it now works nicely. However, because it's a cloud server, if I (or someone else) presses the wrong button then its virtual hard disk will go pop and I have to do it all over again. So, I want to make backups.  But I'm paying by the byte for storage, so I want to make a small backup.  It should be possible to backup a complete Debian server by recording the set of currently installed packages (which I can do via dpkg --get-selections), the state of the debconf database (which I can do via debconf-get-selections), and then only backing up files that cannot be trivially replaced from the packages --- i.e., everything else. Then restoring the backup should be a matter of reinstalling the packages and dropping the files on top.  The tricky part is determining which files belong to a package and which files don't. Having a static list of subdirectories to backup isn't really good enough due to cruft creep. I need a way to automatically determine whether a particular file needs backing up or not.  This is precisely the sort of thing I don't want to do myself because I'll get it wrong. Are there any tools to allow me to do this?  (Note: I'm not looking for an incremental backup solution. I want to take a complete snapshot.)


How do I get cmatrix to turn on after a certain period of inactivity in console?

I have got the console screensaver cmatrix, and I was wondering if there is anyway of getting it to turn on after a certain amount of inactivity in the console you are in?    OS Information:  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 15.10 Release:    15.10 Codename:   wily Flavour: GNOME GNOME Version: 3.18   Package Information:  cmatrix:   Installed: 1.2a-5build1   Candidate: 1.2a-5build1   Version table:  *** 1.2a-5build1 0         500 http://archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages         100 /var/lib/dpkg/status


Can a bicycle with 26x1.95 tires on magnesium alloy wheels be upgraded? Say 26x2.10?


I have 2 numbers stored as Double, 1.4300 and 1.4350. When I subtract 1.4350 - 1.4300, it gives me the result: 0.0050000000000001155. Why does it add 1155 to the end and how can I solve this so that it returns 0.005 or 0.0050? I'm not sure rounding will work as I'm working with 2 and 4 decimal numbers.


CSS Display an Image Resized and Cropped

I want to show an image from an URL with a certain width and height even if it has a different size ratio.  So I want to resize (maintaining the ratio) and then cut the image to the size I want.  I can resize with html img property and I can cut with background-image.  How can I do both?  Example:  This image:     Has the size 800x600 pixels and I want to show like an image of 200x100 pixels   With img I can resize the image 200x150px:      That gives me this:           And with background-image I can cut the image 200x100 pixels.
&nbsp;
    Gives me:
&nbsp;
      How can I do both?  Resize the image and then cut it the size I want?


What if table columns cannot fit on webpage?

If I've 12 - 14 columns in a table to show on a page but there's not enough space to show all columns (let's say, there's only enough space to show 7 columns of the table), what is the solution for this?  I can make the page scroll horizontally but it's ugly and the last resort. Shrinking the font size of the table data only has rooms for 1  - 2 more columns at best.


R integral domain, Q its field of fraction, M R-module with nontrivial annihilator. Is Ext(Q,M) always 0?

Let $R$ be an integral domain, let $Q$ be its field of fractions, and let $M$ be an $R$-module with nontrivial annihilator. Determine if $\mathrm{Ext}_{R}^{n}(Q,M) = 0$ for all $n \geq 0$.   Intuitively, I believe it is true, because the most natural example $R = \mathbb{Z}$, $Q = \mathbb{Q}$, and $M = \mathbb{Z}_m$ looks promising. However, this example is "bad", because $\mathbb{Z}$ is a PID, and therefore divisible is equivalent to injective.  My first thought is constructing a short exact sequence, for example, $0 \to Ann_R(M) \to Q \to M \to 0$ and look at its induced long exact sequence on the cohomology. However, I never succeed. My professor suggests that I should somehow use the fact that $Q$ is the field of fractions, maybe though the fact that $Q$ will kill all the torsions (considering the induced cohomology on $Tor$).  Can anyone give me some more suggestions? Thanks!


Difference between PLS regression and PLS path modeling. Criticism of PLS

This question was asked  but no one gave a good answer. So I think it's a good idea to bring it up again and also I would like to add some more comments/questions.    The first question is what is the difference between "PLS path modeling" and "PLS regression"? To make it more general, what are structural equation modeling (SEM), path modeling and regression? To my understanding regression focuses more on prediction while SEM focus is on the relationship between response and predictors and path modeling is a special case of SEM?  My second question is how trustworthy is PLS? Recently it's been subject to many criticisms as highlighted in  and  which leads to the rejection of papers based on PLS in high tier journals such as Journal of Operations Management ( is the note from the journal editor):     We are desk rejecting practically all PLS-based manuscripts, because we have concluded that PLS has been without exception the wrong modeling approach in the kinds of models OM researchers use.   I should note my field is spectroscopy, neither management/psychology nor statistics. In the papers linked above the authors are talking more about PLS as a SEM method, but to me, their criticism looks applicable to PLS regression as well.


My app includes a feature which a user is allowed to draw on a body. I want to detect polygon vertices as if the user had used straight lines.   The image above is the original drawing, and I would want to detect the shape of a Z. This is not for character or handwriting recognition, just to detect a no convex polygon.  What would be the best C++ way to achieve that?  This is not to detect if the polygon drawn is convex or not. It's to detect, from the entire drawing, the vertices that would create a straight-line polygon.


Proof that $\lim\limits_{h \to \infty} \frac{h!}{h^k(h-k)!}=1 $ for any $ k $

I kind of barely understand this in some way, and I think I would understand it better by a formal proof. Where do I start?


I've had this cursor for some time now. What is it and how can I make it go away, and get the normal cursor with which I can select objects?


Which is the most lightweight torrent client?

Which is the most lightweight torrent client which works on Lubuntu-Core (Lubuntu Minimal Install)?   I would be interested to be as slim as possible, with as few options as possible...  Thank you.


How to compute the constraint force of a rod falling on a table?

This question was asked years ago  by another user but I cannot find satisfying answer so I ask again. The problem is from Arnold's "Mathematical Methods of Classical Mechanics", p. 97 in Chapter 21 on the D'Alembert's principle: A rod of weight P, tilted at an angle of $60^{\circ}$ to the plane of a table, begins to fall with initial velocity zero. Find the constraint force of the table at the initial moment, considering the table as (a) absolutely smooth (b) absolutely rough (In the first case, the holonomic constraint holds the end of the rod on the plane of the table, and in the second case, at a given point.)  My solution for question (b) is,  Since the end is fixed, the virtual variation is orthogonal to the rod, hence the total force of the constraint force and the gravity must be orthogonal to the rod. On the other hand, according to the D'Alembert's principle, the constraint force must be orthogonal to the virtual variation, so the constraint force must be along the rod. Combine 1 and 2 and by elementary geometry, we can find that the constraint force is $\frac{\sqrt{3}}{2}P$.    My questions are:    Is my solution to (b) right? How to solve (a)?


Does PCSX2 fully support Metal Gear Solid 3: Snake Eater?

Can I play Metal Gear Solid 3: Snake Eater on the PCSX2 Playstation Emulator on a Windows OS?  I know that there are glitches but is it at least completable? I.e. playable to the end?   If it matters, my PC has:   Processor: Intel 3.10 GHz i5 RAM: 8GB  Graphics: GTX 650 1 GB


How to use Java Library after compiling?

I realize this is probably a very simple question, but I have been researching it for literally days on end to no avail. Any help would be much appreciated.  My project structure looks like this:  src   |--Main.java   |--WebScrapper.java  out   |--Main.class   |--WebScrapper.java  lib   |--Jsoup   My WebScrapper.java file imports the Jsoup library utilities like this:   import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.select.Elements; import org.jsoup.nodes.Element;   I am using a Java library in my project on the InteliJ IDE. In the IDE I go to "Project Structure -> Modules -> Add Jars or Directories" and my program works by me selecting the "run" button in IntelliJ, however when I compile the Java code, and try to run it with "java Main.class" from the terminal, I get the following error:   Exception in thread "main" java.lang.NoClassDefFoundError: org/jsoup/Jsoup         at WebScrapper.returnPage(WebScrapper.java:12)         at Main.main(Main.java:19) Caused by: java.lang.ClassNotFoundException: org.jsoup.Jsoup         at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)         at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)         at java.base/java.lang.ClassLoader.loadClass(Unknown Source)         ... 2 more   I know that this is a problem with the library and not my other class file, because when I changed the other class file to a simple System.out.printl statement, it works perfectly fine. How do I get this dependency to work in my project? Do I need to create a lib folder and do something? Or is it something else? I have browsed many other questions on stack overflow, and have seen solutions like cleaning the build, using a dependency management plugin like maven etc. However, rebuilding the project did not work and I would like to avoid using a dependency management system if possible, however if needed I will do so.   Thanks in advance, Michael


Can somebody help me? I’m new to Ubuntu, and I need help elevating my privileges to root. All I’m getting is:   darion@darion-HP-2000-Notebook-PC:~$ sudo -i nautilus [sudo] password for darion:   (nautilus:3306): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus. Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files  (nautilus:3306): GLib-GObject-WARNING **: invalid cast from 'GtkMessageDialog' to 'NautilusWindow' ** ERROR:nautilus-window.c:2116:nautilus_window_get_slots: assertion failed:(NAUTILUS_IS_WINDOW (window))


Google Custom Search gives different result number for same query

We are using Google Custom Search and we have found that often the total results iterates between two values, even for the same query. The different values can be slightly different or more than double.  The parameters I am using look like this:  https://www.googleapis.com/customsearch/v1? q=something cx=XXXXXXXXXX lr=lang_en siteSearch=www.mydomain.com start=1 fields=context%2Citems%28fileFormat%2CformattedUrl%2Clink%2Cpagemap%2Csnippet%2Ctitle%29%2Cqueries%2CsearchInformation%28searchTime%2CtotalResults%29%2Cspelling%2FcorrectedQuery key=YYYYYYYYYYYYYYY filter=0   This is problem because of calculating the number of result pages. How can I get the same results for the same query?


Find the slope of tangent line to the curve at the point $(1, \pi/2)$  the equation is  $$\sin(xy) = x$$  The right answer was = Slope is infinite   My answer was taking the derivative and I end up in this equation   $$ (1-y\cos(xy))/ x\cos(xy)  $$  I substitute with the points and the calculator showed an error, Does the error means infinite ?


I'd like to create a chart where the column titles are rotated, as per this toy example:    I used the rotating package to generate the above. It has certain shortcomings: the rotate command doesn't leave space for the titles, so I have to manually space things to prevent overlaps. The turn command, by contrast, creates too much space, where each column is the width of the entire rotated column title.  There is also no easy way to have long titles be split into multiple lines.  Is there a package for creating tables of this sort, or at least one that would relieve some of the manual placing and spacing that goes into creating such a table?    This question is more to make sure I don't miss any easy way of doing what I want than seeking help on manually doing it, but the code for above is included anyways:  \begin{tabular}{r|ccc} & \begin{rotate}{60} Property 1 \end{rotate} & \begin{rotate}{60} Property 2 \end{rotate} & \begin{rotate}{60} Property 3 \end{rotate} \\ \hline System 1        &       &       &  X    \\  System 2        & X     & X     &  X    \\ System 3        & X &   &  X    \\ \hline \end{tabular}


How to start a program in the background

The program Boblight does not run in background. There is no noticeable difference between executing   sudo boblightd   and   sudo boblightd&    How can I solve this problem that the console will not block further inputs?  pi@raspberrypi ~/boblight/boblightd-for-raspberry-master $ sudo boblightd Boblightd 2.0 (optimized version for raspberry) (c) 2013 Speedy1985 and Heven) (InitLog)                       start of log /root/.boblight/boblightd.log (PrintFlags)                    starting boblightd (CConfig::LoadConfigFromFile)   opening /etc/boblight.conf (CConfig::CheckConfig)          checking config lines (CConfig::CheckConfig)          config lines valid (CConfig::BuildConfig)          building config (CConfig::BuildConfig)          built config successfully (main)                          starting devices (CClientsHandler::Process)      opening listening TcpSocket on *:19333 (CDevice::Process)              ambilight: starting with output "/dev/spidev0.0" (CDevice::Process)              ambilight: setting up (CDevice::Process)              ambilight: setup succeeded   pi@raspberrypi ~/boblight/boblightd-for-raspberry-master $ sudo boblightd& [1] 2289 pi@raspberrypi ~/boblight/boblightd-for-raspberry-master $ Boblightd 2.0 (optimized version for raspberry) (c) 2013 Speedy1985 and Heven) (InitLog)                       start of log /root/.boblight/boblightd.log (PrintFlags)                    starting boblightd (CConfig::LoadConfigFromFile)   opening /etc/boblight.conf (CConfig::CheckConfig)          checking config lines (CConfig::CheckConfig)          config lines valid (CConfig::BuildConfig)          building config (CConfig::BuildConfig)          built config successfully (main)                          starting devices (CClientsHandler::Process)      opening listening TcpSocket on *:19333 (CDevice::Process)              ambilight: starting with output "/dev/spidev0.0" (CDevice::Process)              ambilight: setting up (CDevice::Process)              ambilight: setup succeeded


How do I connect my desktop and my laptop using an ethernet cable to transfer files?

I have an ethernet cable (not a crossover cable) to connect my laptop and my desktop ubuntu machines. I want to transfer large amounts of data. Is it possible with such a cable? I believe that between two Windows machines such a connection is possible (though I'm not totally sure).


What should be done when no more Pokemon can be caught? (when full storage)

It seems that I can buy 50 more slots using 200 coins, but what if I keep on getting more and more common Pokemons such as Pidgey or Rattata, then the slots will be full again.  Right now, I am sorting by CP (Combat Power) and then "Transfer" the lowest CP Pokemons to the Professor (to give it away), but wonder what is a good or better way to handle this?  (For example, can I combine several Pidgey into one?)


I was wondering where you bought that book (from)? Is 'from' necessary in this sentence ?


Prove that $\mathbb{Z}[\sqrt{2}]$ is isomorphic to $\mathbb{Z}[x]/(x^2-2)$?

I've recently got stuck proving that $\mathbb{Z}[\sqrt{2}]$ is isomorphic to $\mathbb{Z}[x]/(x^2-2)$. I understand that the definitions of two rings are \begin{align*} \mathbb{Z}[\sqrt{2}] &= \{a + b \sqrt{2} \mid a, b \in \mathbb{Z} \}, \\  \mathbb{Z}[x]/(x^2-2) &= \{c(x^2-2)\mid c \in \mathbb{Z} \}. \end{align*} Did I understand the definitions correctly? Then what should I do to proceed? Any hint is appreciated!


Why is my server with memory pressure when I have 4.3GB available memory?

I'm doing a couple of tests in my local computer and I noticed that the plan cache was being wiped every couple of minutes. After researching a bit I noticed on my error log that my instance was with memory pressure and paging out...  I really can't understand what's going on as I do have my perfmon open all the time and I do have 4.3GB available memory and the instance is not caped in memory limit.   Do you guys have any idea what's going on?  I also would like to take this opportunity to ask if anyone knows a way to catch when does the lazy writer gets executed ?Is there any way to track him down ?  Thank you all! @@Version: Microsoft SQL Server 2014 - 12.0.4100.1 (X64)  sys.dm_os_ring_buffers   <Record id = "101241" type ="RING_BUFFER_RESOURCE_MONITOR" time ="4419025954"> <ResourceMonitor>     <Notification>RESOURCE_MEMPHYSICAL_LOW</Notification>     <IndicatorsProcess>2</IndicatorsProcess>     <IndicatorsSystem>2</IndicatorsSystem>     <IndicatorsPool>2</IndicatorsPool>     <NodeId>0</NodeId>     <Effect type="APPLY_LOWPM" state="EFFECT_ON" reversed="1">1114779</Effect>     <Effect type="APPLY_HIGHPM" state="EFFECT_OFF" reversed="0">0</Effect>     <Effect type="REVERT_HIGHPM" state="EFFECT_ON" reversed="1">791590828</Effect> </ResourceMonitor> <MemoryNode id="0">     <TargetMemory>388744</TargetMemory>     <ReservedMemory>34086804</ReservedMemory>     <CommittedMemory>388740</CommittedMemory>     <SharedMemory>0</SharedMemory>     <AWEMemory>0</AWEMemory>     <PagesMemory>151288</PagesMemory> </MemoryNode> <MemoryRecord>     <MemoryUtilization>48</MemoryUtilization>     <TotalPhysicalMemory>16664584</TotalPhysicalMemory>     <AvailablePhysicalMemory>4534516</AvailablePhysicalMemory>     <TotalPageFile>30857376</TotalPageFile>     <AvailablePageFile>8330020</AvailablePageFile>     <TotalVirtualAddressSpace>137438953344</TotalVirtualAddressSpace>     <AvailableVirtualAddressSpace>137404308856</AvailableVirtualAddressSpace>     <AvailableExtendedVirtualAddressSpace>0</AvailableExtendedVirtualAddressSpace> </MemoryRecord>


Electrical Machines based on Electric Fields

Our teacher asked us this question during the lecture for Power Electromagnetics. We know that Electric Fields and Magnetic Fields are easily transformable into one another. And they are used greatly in various systems.   He asked us why is it that almost all the electric machines are still based on exchange of magnetic energy? Why isn't electric field used for power exchange and interaction through air gaps for a machine?


Validate if email address exists in JavaScript

I need to check whether my email address has valid host, exist for example someone@yahoo.com might return valid meanwhile some@yahozzz.com might return invalid (because invalid host)  I stumbled upon a code in git for golang that satisfy my needs for that , but currently at the moment i'm looking for the solution in javascipt, any help will be appreciated.  P.S. : I am using this code as a script inside my HTML


Global keyboard capture in C# application

I want to capture a keyboard shortcut in my application and trigger a dialog to appear if the user presses a keyboard combo even outside of the app. Similar to Google Desktop Search's Ctrl, Ctrl to bring up the search dialog.  I have tried using some keyboard hook modules out there that basically use Win32 interop to get this effect but each implementation I've tried ties down the keyboard to some extent to where you start getting weird behaviors when the application is doing something intensive. Such as loading a large amount of data, this would cause the keyboard and mouse to lockup.  I'm looking for a lightweight solution that would allow this to be done without tying down the keyboard and mouse.


How to get current CPU and RAM usage in Python?

What's your preferred way of getting current system status (current CPU, RAM, free disk space, etc.) in Python? Bonus points for *nix and Windows platforms.  There seems to be a few possible ways of extracting that from my search:   Using a library such as  (that currently seems not actively developed and not supported on multiple platform) or something like  (again no activity since 2007 it seems and no support for Windows). Using platform specific code such as using a os.popen("ps") or similar for the *nix systems and MEMORYSTATUS in ctypes.windll.kernel32 (see ) for the Windows platform. One could put a Python class together with all those code snippets.   It's not that those methods are bad but is there already a well-supported, multi-platform way of doing the same thing?


Is there a option to store Stack Overflow posts?

My doubt is on using Stack Overflow. Is there a way I can save a Stack Overflow post which I like on my profile page, so that they can be my future references?  I mean a function similar to Facebook likes or Pintrest pins.


What is the use/meaning of 'swap area' while linux installation?

When i installed ubuntu in my x86 machine, I had to configure some memory as 'swap area'.  What is the use of this memory and what is the importance of this memory in linux file systems?  How can I determine the exact size of 'swap area' in a machine for the safe working of linux inside in it?


triggered my curiosity for this question. Why most of manga are black and white? Is this because of more cost if they add colors to it?


What is the value of the current (i) and what is the right way to do it?

What exactly went wrong with the below method?  Here, in the same circuit I am getting a different value for the current in the mid wire only by rearranging the circuit.    I was trying to solve this unbalanced  and found that the current (\$i\$) in the mid wire (in image 1) is 3 A. This result was achieved by using the node voltage method.  Then I rearranged the same circuit to the form shown in the second image.    And at this point I flipped the right half of the circuit so as to obtain the equal resistors on the same side.    Now I again rearranged the circuit as shown.    Here, the final circuit is a balanced Wheatstone bridge and thus the current (\$i\$) must be 0 A.  So clearly something went wrong in there.  I posted  before this one just to make sure that there is no mistake in rearranging the circuit in the way I have done.  The mid wire is a complete connected wire. The gap in the mid wire near the arrow was inevitable.


What happens when the first Cubone comes to existence? Does it has a skull to wear, or not?

I'm sure that the Pokedex says that a Cubone has the skull of it's dead mother, so if the first one appears, does it have a copy of it's skull, or not?


I've designed for a campaign a duo of rogues. My character is as , and his follower is a Knife Mistress. Couple of question about them. Our party is about to ambush several . My Sniper will hide near their camp, and shoot the weakest one when fight begins. His follower will then rush the troll and slice him in several pieces. My Sniper has the Bleeding attack feat:  Bleeding Attack (Ex) Benefit: A rogue with this ability can cause living opponents to  by hitting them with a sneak attack. This attack causes the target to take 1 additional point of damage each round for each die of the rogue's sneak attack (e.g., 4d6 equals 4 points of bleed). Bleeding creatures take that amount of damage every round at the start of each of their turns. The bleeding can be stopped by a DC 15 Heal check or the application of any effect that heals hit point damage.  Emphasis mine. Thus, a normal enemy would bleed every turn, until he get cleaned of the bleeding effect. However, troll have a special ability, which is  5 (acid/fire)  Regeneration (Ex) A creature with this ability is difficult to kill. Creatures with regeneration heal damage at a fixed rate, as with , but they cannot die as long as their regeneration is still functioning (although creatures with regeneration still fall unconscious when their hit points are below 0). Certain attack forms, typically fire and acid, cause a creature’s regeneration to stop functioning on the round following the attack. During this round, the creature does not heal any damage and can die normally. The creature's descriptive text describes the types of damage that cause the regeneration to cease functioning.  So, the troll will automatically get rid of the bleeding effect during his first turn. My question is: Does the bleeding effect apply before the regeneration, or get neglected, because the troll will heal during his turn? Am I right to assume that, Bleeding attack effect getting triggered at the beginning of the troll turn, it will deal him the damages before the wounds heals?


Backup packages from 12.04 and install it on 14.04

hope that everyone is doing okay , I have a question , i want to know if it possible to install packages from 12.04 to 14.04 not all of them just a few (for exemple i want to transfer the packages that i installed on 12.04 two days ago on the 14.04 version) it is possible ?  thank you for your help


In bash, {a..d} expands to a b c d. Currently this is not happening for me in zsh, and my googling has returned conflicting results.  Some results suggest that {a..d} should work -  The other result I found is from the zsh mailing list which suggests setopt braceccl to get letter ranges using {a-z}. This works, but I'm wondering whether I've misread the Brace-Expansion link, or whether there's something else to consider.  Importantly, I'm using the zsh-grml config, which is probably adjusting a variety of expansion options, but I'm hesistant to start digging through because it's massive, and a cursory grep brace ~/.zshrc doesn't reveal anything.


CRUD/FLS checks on Dynamic SOQL - Needed for WHERE clause?

For the AppExchange Security Review, do we need to check FLS on a Dynamic SOQL WHERE clause as well?  Ex: If Contact.My_Custom_Field__c is not visible to the logged in user, then the following SOQL would be a violation of FLS?  SELECT Id FROM Contact WHERE My_Custom_Field__c = 'Oh really'


I am very new to SQL and I am trying to run my first line in SQL - of course the SHOW databases; However, it gives me the error message :     Msg 2812, Level 16, State 62, Line 1   Could not find stored procedure 'SHOW'.   But it seems like I can do CREATE table Test2 just fine. I am confused, did I miss anything please  Thank you very much, appreciate it.


How can I retrieve the permissions of a file in a certain format?

I can change the permissions of a file by:  chmod 600 ~/.ssh/authorized_keys   How can I retrieve the permissions of a file in the same format which is 600?


I plan on building a computer with  which has no GPU:     Graphics Specifications      Processor Graphics:   None   on a  motherboard which has an onboard integrated graphics processor:     Integrated Graphics Processor:         1 x D-Sub port, supporting a maximum resolution of 1920x1200@60Hz   1 x DVI-D port, supporting a maximum resolution of 1920x1200@60Hz   1 x HDMI port, supporting a maximum resolution of 4096x2160@24Hz or 2560x1600@60Hz   Support for up to 3 displays at the same time   Maximum shared memory of 512 MB      I have asked  and know that even if the CPU has no GPU, I can still get video as long as the motherboard has onboard graphics. However, when I went to buy the parts at a computer center yesterday, the technician said motherboards nowadays use CPU's GPU to display, including this Gigabyte GA-Z97X-UD5H motherboard (which he meant this board has no real onboard graphics).  So for Xeon E3 1231v3 + Gigabyte GA-Z97X-UD5H to display, do I need a video card or not?  (I don't really care about the graphics quality. I use the computer mostly to write programs, web browsing, and Photoshop, and seldom play games or watch videos.)


Expired visa, can I still fly inside the US without risk?

I am a foreigner and my student visa expired last month. I do have an American driver's license valid until the end of next year. Can I still fly inside the US without being afraid they will check my papers and try to get me out of the country? I haven't used any of my European IDs or passport in 2 years since I got the US ID, so I haven't been showing them off. I've been feeling pretty secure with my license. What do you think?


How should duplicate answers be handled?

What should I do when I see an unanswered question (or not well answered) which solution is the same of the answer to a different question?   Should I refer to the answer of the different question with a link:   in the comment section? as an answer?  Should I copy the answer of the different question? Should I down-vote it? Should I flag it for moderator attention?   Notice I tried to use the same wording as the meta-question  as it is easier to find it.    Note: To clarify a bit this issue, I will illustrate it with a real example. I wrote  to the question, that involved a pretty long process. I also found , that seems completely different to the other one, but in reality, it is a question that emerges in the same process of the other question/answer. I decided to answer it with a link to my previous long answer. Should I do it that way or other way is preferred?    Edit: This question has been marked as a duplicate by 3 different questions... :-)  I did some searches before posting current question, and neither of the questions I found seemed clear to me. Now I realize, that the question  may give part of the solution to this question, though my mind still gets confused, and does not find a definitive answer to the list of questions I ask here.  Moreover I think the wording of current question it is easier to find.


Using "nor" at the end of a list begun with "no"

Which is correct?         "The book has no marks, tears, wrinkles or writing."    "The book has no marks, tears, wrinkles nor writing."       (I understand the use of neither/nor and either/or.) In this case, I thought the first sentence "no/or" was correct, but was told that "no/nor" was the correct usage. Can you help?


I have a laptop running Ubuntu 14.04 from a root file system on USB storage. This is not working well, because after wake up from suspend, ext4 will frequently try to write to the root file system before USB is ready.  Here is what I see in the kernel log when this happens, notice how I get a bunch of I/O errors on sda1, and then one second later the USB storage drive is finally detected by the kernel.  [ 2826.517419] wlan0: associated [ 2826.517452] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 2827.575371] EXT4-fs warning (device sda1): ext4_end_bio:317: I/O error -5 writing to inode 1733735 (offset 0 size 0 starting block 12629950) [ 2827.575380] Buffer I/O error on device sda1, logical block 12629694 [ 2827.575400] EXT4-fs warning (device sda1): ext4_end_bio:317: I/O error -5 writing to inode 3148603 (offset 0 size 8192 starting block 12844470) [ 2827.575404] Buffer I/O error on device sda1, logical block 12844212 [ 2827.575411] Buffer I/O error on device sda1, logical block 12844213 [ 2827.575448] EXT4-fs warning (device sda1): ext4_end_bio:317: I/O error -5 writing to inode 3015015 (offset 0 size 90112 starting block 6588832) [ 2827.575453] Buffer I/O error on device sda1, logical block 6588576 [ 2827.575461] Buffer I/O error on device sda1, logical block 6588577 [ 2827.575465] Buffer I/O error on device sda1, logical block 6588578 [ 2827.575469] Buffer I/O error on device sda1, logical block 6588579 [ 2827.575473] Buffer I/O error on device sda1, logical block 6588580 [ 2827.575477] Buffer I/O error on device sda1, logical block 6588581 [ 2827.575481] Buffer I/O error on device sda1, logical block 6588582 [ 2828.857284] sd 0:0:0:0: [sda] No Caching mode page found [ 2828.857293] sd 0:0:0:0: [sda] Assuming drive cache: write through   At first there is no visible indication outside of the kernel log, that the problem has triggered, but if I let Ubuntu stay running beyond this point, then the file system will get errors and eventually switch to read only mode. At that point I have to reboot into recovery mode and run fsck.ext4 manually from a root shell in order to repair the file system.  Is there some setting I can change such that access to the root device after waking from suspend can be delayed until the USB drive is ready?


Possible Duplicate:          I want to develop Python apps in Ubuntu, and I'm tired of working with gedit one time and another.  So I'm trying to find a great Python IDE (a true IDE, not just a syntax-highlighting editor) on the Ubuntu repositories. Which one do you recommend me?


Multivariate normal distribution property

The Econonometrics book by Hansen mentions this property of a multivariate normal distribution: If $X∼N(\mu,\Sigma)$ then $AX+b∼N(Aμ+b,AΣA^\prime)$. It goes to say that a simple implication of this that each individual $X_j$ in $X$ is univariate normal. Could someone please explain how is this implied from the linearity property? Also is the converse true? If each $X_j$ in a $k$-vector random variable $X$ is normally distributed, is $X$ normally distributed?


How to control setuid, setgid, and sticky bits from chmod's numeric method?

I know how to set read/write/execute with three numbers from . I also know that chmod 7777 will set the setuid, setgid, and sticky bits to true. But which number controls these bits? Is it the first or the last number? Which value is set to true when a 1, 2, or 4 is passed as this value?  Edit: I have added this information to the Arch wiki for future reference.  My question is much smaller in scope than the proposed duplicate.


Wrap text around wide figure in two column

I need to insert a figure into a two column document such that the figure partially spans both columns, and the text wraps around it.  It seems wrapfig does not work for this in two column, pullquote does not seem to either be exactly what I need.  I've tried using minipage with no luck. I tried to post an example of what I need to accomplish but since I am new this forum I cannot.  I'd be happy to send an image if this helps.   Any suggestions would be fantastically helpful!


Active USB VirtualBox XP on Ubuntu 14.04

I'm using VirtualBox 5.0.20, and I have a problem with reading USB devices on XP system.     When I click right and selected "add filter from devices" I show


How can a rigid body's weight do work on it to make it rotate?

Consider a cylinder that rolls without sliding on an inclined plane. If it's placed at the top of the plane, with its center of mass at a height $h$ from the bottom, it will have a potential energy $mgh$ (considering the bottom of the plane as the zero point). Then, the cylinder will start rolling down the plane, as its weight does work on it, causing its potential energy to be transformed into rotational and translational kinetic energy. I'm confused about the origin of the rotational kinetic energy of the cylinder. Since the static friction and the normal force are applied at the point of contact with the plane, neither of them can do work on the cylinder (which is why its mechanical energy is conserved), since the cylinder is, by constraint, not sliding. This seems to imply that the cylinder's rotational kinetic energy comes from the work done by its weight. However, I don't understand how this happens, since a rigid body's weight can be seen as being applied on its center of mass, which means it can exert no torque on it. Instead, the only torque exerted with respect to its center of mass comes from static friction. Moreover, if the inclined plane was frictionless, there would be no torque exerted on the cylinder, so it would not rotate. Yet, I don't see how this situation could be distinguished from the previous one by only looking at the cylinder's mechanical energy (since the normal force would still be doing no work). So, my question is: how is gravitational potential energy converted into rotational kinetic energy, and what is friction's role on this?


Thesis chapter headings, any suggestions?

I've found a thesis with really beautiful chapter headings that I would like to use. What package am I going to need and how would I go about creating a heading that looks like the one below. Also, if you have or know of any nice headings do please share!


Why does a connected planar simple graph has a vertex of degree at most five?

The question is: "Prove that if G is a connected planar simple graph, then G has a vertex of degree at most five."  It baffles me because a connected planar simple graph CAN have a vertex of degree more than five.  Am I misunderstanding the wording?  I mean what if I just draw a hexagon with 6 vertices and connect them all to a 7th vertex in the centre?


For.. in loop cannot set property of undefined

var table = document.querySelectorAll(".numbers");  function seppuku() {   for (let i in table) {     table[i].style.color = "red";   } } seppuku();
1

2

3
     So here's my code. My problem is: Why console.log communicate "Cannot set property 'color' of undefined" after seppuku() function invoking?  It's not like var table is not defined! Actually, it has global scope and should be available for 'for.. in' loop. Moreover, this function works, chosen elements has color: red property now. How that works despite the communicate in console?


Is there a term for when you think of a joke in the context of a conversation, but the conversation ended hours ago?  My friends have told me of the term "l'espirit de l'escalier" in French, and the German calque "treppenwitz". Do people use the English calque of "escalator wit?"


Return conditional statements to new line when organizing code(Python)?

So I know when listing variables in object class, you can return every line to list the variables vertically for better organization:  class Thing(object):   def __init__(x,                y,                z):   Is it possible to do the same thing with conditionals in an if statement, like so?  if condition1 and    condition2 and    condition3:   Obviously that's probably not the right syntax for it since it doesn't work, but it's a good example of what I'm trying to do in order to organize my code so I don't have scroll to right when something has long names for conditional satements.


Where are the files stored during Ubuntu upgrade?

I was trying to upgrade from Ubuntu 14.04LTS to Ubuntu 16.04LTS, however there was some issue with my internet connection and the software update tool had to abort the download. Now, I have changed my mind and want to wait for some more time before I attempt the upgrade. I wanted to cleanup the files/packages that were downloaded during the unsuccessful attempt. Could someone please guide me where does Ubuntu store those files/packages?


When a user fills out a form and presses submit, the form is disabled while the information is submitted. I use the following code to disable the form:   $form.find('button').prop('disabled', true);   How can I replace the text of the button with a loading image?


Do HDs, Thumb Drives or Dvds Have The Longest Shelf Life

I'm trying to backup fairly sensitive data.  Which of the three has the longest shelf life?   Hard Drives(Regular) Thumbdrives Dvds/Blurays   There are obvious cost and size differences.  Related


Different results between individual and batch clip of rasters in QGIS?

When I cut one raster with clip raster by mask layer I get the expected result.  But when applying batch processing with the same vector file, and the same rasters, the rasters aren't clipped and the values are changed to 0 and NaN?  The rasters are landsat 5 images, and the vector has the same datum.  Edit: I've figured out this is the gdal command used when processing individually:  gdalwarp -ot Float32 -q -of GTiff -cutline "some_shape.shp" -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -wo OPTIMIZE_SIZE=TRUE "original_raster.tif" "clipped_raster.tif"  And this one is used in batch processing:  gdalwarp -ot Byte -q -of GTiff -cutline "some_shape.shp" -co COMPRESS=NONE -wo OPTIMIZE_SIZE=TRUE "original_raster.TIF" "clipped_raster.tif"  Why the differences?


Is the electron of carbon identical to that of hydrogen? How to prove it?

I am still confused with whether, for example, the electron of carbon is exactly identical to that of hydrogen.   How can the scientist confirm this?


We have a SQL server hosted on an Azure VM.  One of our applications is very read\write intensive on the database and we're seeing poor disk performance.  Disk queue lengths of 10 or greater.   I've been trying to find a way to increase disk performance.  I found a technet video  that mentions a disk quota and spanning 4 storage accounts increases disk i/o.  Can anyone confirm this disk limiter or recommend this spanning technique?


My physics textbook says when a rock is lifted gravity does negative work and increases the gravitational potential energy. My understanding of negative work implies energy is being removed when an object undergoes negative work.  Another force must have been applied to move the rock in the first place and this seems like where the potential energy is coming from and the negative work is gravity slowing the rock back to stationary.  Am I misunderstanding something?


Changing vector projection in OpenLayers

I have added vector layer to map:      vactorTest = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection("EPSG:900913"), protocol: new OpenLayers.Protocol.WFS({     srsName: "EPSG:900913", url: "http://localhost:8080/geoserver/wfs", featureType: "ROADS", featureNS: "http://localhost:8080/MIA", featurePrefix: "MIA", geometryName: "GEOM", version: "1.1.0" }) });  map.addLayer(vactorTest);   And then, added polygon draw control:  var drawPolygon = new OpenLayers.Control.DrawFeature( vactorTest, OpenLayers.Handler.Polygon, { title: "Draw Polygon", displayClass: "olControlDrawFeaturePolygon", multi: true } );   with drawn polygon I want to filter layer:  testLayer.mergeNewParams({     "CQL_FILTER": mergeFilter });   I use within filter:   WITHIN(GEOM, POLYGON((4693721.49445 672633.89194, 4560244.10812 322255.75282, 4703732.29843 422363.79257, 4693721.49445 672633.89194)))   target layer is in Georgia, and if I draw polygon near Italy then, filter works.  How can I change vector projection like my layer to get right result?


Will there be translation + rotational motion?

If a rod is on a frictionless plane, and a force is applied on one of it's end, will there be both, translation + rotation motion? Also, if only a single force is applied on a body that does not pass through Centre of Mass, will it always produce rotation + translation?


Is  purely conceptual or does it represent some real "thing"?  Said another way, is superposition thought to have some tangible physical manifestation or is it simply the lack of physical determinism, except as defined by a wave function?  It seems like my question might be semantic.  For example, it is said that   superposition is obeyed, like a law superposition can be observed, like a phenomena superposition describes behavior   I guess my question is, can superposition be measured like an electrical charge, or is it simply the lack of knowable position.


Reduce spacing between chapter and head of page

I'm a bit frustrated because I am writing my thesis in latex and I used the graduate-thesis template from sharelatex.   I just want to reduce the spacing before a new Chapter that is generated between the top of the space and the "Chapter x" with the \chapter{"example chapter"} command.  How can I do that?  Thanks in advance!


How to prevent an email from accidentally being forwarded?

Is it possible to prevent an email from being forwarded, or to have sensitive information automatically removed when reply-all/forward is pressed?  For example, a Google Calendar invitation includes a link to directly accept/reject the event. However, if someone clicks reply-all, and they keep the HTML formatting, the link will be shared with everyone else who received the invitation, and they can change the user's RSVP. (Specifically, the email is sent only to you, but has a "To:" header showing all invitees, so the problem remains.)  What can be done to ensure that the recipient does not accidentally share the sensitive link? Would it be possible with some MIME trickery or with a semi-standard header? Or is the best practice to refrain from including such "direct action" links when someone might be tempted to reply-all?


Is it possible to refer to a word in a sentence?   Example: Hi, I love\label{Word: Love} learning so I ask a lot of questions.   I would like to refer to the word "love" in the above sentence. For instance:   "I `ref{Word: Love}` you" would then read "I love you" but with "love" being clickable etc.   Is this possible?   (I know there are some related question here, but they are too complicated and different from the present one. I believe I have a simple and to the point question. )


Tweaking AStar to find closest location to unreachable destination

I've implemented AStar in Java and it works ok for an area with obstacles where the chosen destination is reachable.  However, when the destination is unreachable, the calculated "path" is in no way to the closest location (to the unreachable location) but is instead some random path.  Is there a feasible way to tweak AStar into finding the path to the closest location to an unreachable destination?


$x^p-x-a$ is irreducible over $F_p$ for p-prime, $a\in F_p, a\neq 0$

Actual Question is to prove that, for a prime p and $a\in F_p$, $a\neq 0$, $f(x)=x^p-x+a$ is irreducible.  This is an exercise Question in Dummit Foote 13.5.5.  Hint : Prove that if $\alpha$ is a root of $f(x)$ then so is $\alpha+1$.  Proof: Suppose $f(\alpha)=0$ i.e., $\alpha^{p}-\alpha+a=0$ Consider $(\alpha+1)^{p}-(\alpha+1)+a=\alpha^p+1-\alpha-1+a=\alpha^{p}-\alpha+a=0$ . So, I proved that if $\alpha$ is a root of $f(x)$ then so is $\alpha+1$.  As further approach I have seen that no element of $F_p$ is a root because if $\alpha\in F_p$ is a root then so is $\alpha+1$ and so is $\alpha+2$ and so would be  $0\in F_p$ which is a contradiction as $f(0)=0-0+a=a\neq 0$. So, No element of $F_p$ is a root.   Just by this he wants to say that $f(x)$ is irreducible i.e., if $f(x)$ has no root in $F_p$ then it is irreducible.   I am unable to proceed further in this line. Any help would be appreciated.  Thank You.  P.S : I have seen just now that this question was already answered. I thought of deleting this Question. But Mr.AymanHourieh gave another nice answer. So, i Request Not to close this as this would just give another answer.   Thank You


When I open synaptic via launcher on gnome-panel, it opens and asks me for the password but if I enter the password, it says its wrong even though the password is correct and it used to work OK few days ago. If I open synaptic via terminal using sudo synaptic then it opens OK without any problem.


How to dynamically change a web page's title?

I have a webpage that implements a set of tabs each showing different content. The tab clicks do not refresh the page but hide/unhide contents at the client side.  Now there is a requirement to change the page title according to the tab selected on the page ( for SEO reasons ). Is this possible? Can someone suggest a solution to dynamically alter the page title via javascript without reloading the page?


Add a rule after chapter title using titlesec

I've been experimenting with chapter title formatting using titlesec but I can't seem to find the proper way to add a rule just below the chapter title. After reading the doc, I found that \titleline does that, but I'm not sure where in the \titleformat syntax to place it.


LOG all SQL Server queries with their durations

Is there a way to log all Microsoft SQL Server queries executed on a certain server, with their respective durations?  I'd like to be able to analyze all queries will a tool like what  does for PostgreSQL. While we're at it: do you know of any such tools?


Iron has the highest binding energy per nucleon in the entirety of the known elements. But why Iron specifically? What makes it have the highest binding energy per nucleon?


C[Calculate the mean and standard deviation of each investment, assume that both returns come from independent samples, are both normally distributed and that the (true but unknown) variances are the same,, Can someone could check my calculations for mean and standard deviation? I did calculations but not sure what to do with negative values of distances(If if am correct Investment A MEAN= 78.6875 when it comes to calculating standard deviation i have to power difference by 2 ?


Sorry if this is basic.  After reading here i changed :   $('input,textarea').keyup(function()   to   $('input,textarea').on('keyup', function()   On my cloned element :     var cln = item.cloneNode(true); //true   and i can only listen to divs that where in my document on load, not the ones who cloned later.  I have also tried :     var cln = item.cloneNode(true, true);   after reading this :


JavaScript jQuery not working after AJAX

guys, currently I'm working on a project where I need to load some data through AJAX. I'm using jQuery for AJAX. Here are the HTML and JavaScript code  <body> <input type="submit" value="Number 1"> <script src="jquery.js"></script> <script>     $(document).ready(function(){         $.ajax('ajax.html',{         success: function(data){             $('body').append(data);         }         });          $('input').click(function(){             alert('bang!!!');         });      });  </script> </body>   And here is the ajax.html file  <input type="submit" value="Number 2">   Now the AJAX is working perfectly, but the click event is not working with the AJAX loaded input tag  The click event is working perfectly with the first input tag


So, I have been trying to get this mod and I go to resource files and I have no mine craft.jar/mods/etc files so I can't get the mod and I am really frustrated.  By the way I use an I-mac desktop.


Why do some tests have a (nonzero) minimum score?

Some tests have minimums in their possible score range. Cisco's 300-1000 point range, and the SAT's 200-800 point per section range come to mind.  What purpose does this serve? I assume there is some statistical logic behind it. Maybe it would make more sense to me if I understood how they go about calculating the score from a given number of (in)correct questions.


What could be causing a new 20 amp dedicated circuit supported by a GFCI breaker to trip?

I installed a dedicated 20amp circuit home run to support a single duplex outlet in a bathroom. The GFCI breaker is wired correctly. However, When I plug in a load  such as a light  a  the breaker trips. Could there be an underlying problem with existing circuits in the home which could be causing this issue such as a neutral and a ground touching each other somewhere on an existing circuit or circuits throughout the house?  The panel is a G E T M 2020C  and the breaker I installed is a THQL 1120 GFP. I believe that the issue is being caused by some sort of feedback through the neutral bar causing a ground fault condition when a load is plugged into the new outlet. I would appreciate any feedback.


Questions about bootable USB stick (Ubuntu) on Windows

When I create a bootable USB stick (Ubuntu) on Windows, does it mean that the changes that I will do (let's say save a new file called "abc.txt" on the Ubuntu desktop) will those changes be reflected the next time I boot this USB on some other computer (I will see the file "abc.txt" on the Ubuntu desktop)?  Next one might be a pretty stupid question but here it is:  Will it use the computer's RAM or use the space left on the USB as RAM.  Thanks


I Just started learning Hille Yosida theory. Im kinda stuck on dissipative operators, i dont get the intuition behind the notion of dissipative if there is any... Any help is welcome !


Resetting Xfce Panels to default settings?

How do I reset my Xfce panels to the default settings that Xubuntu uses?


How to cite a standard (ISO, etc.) in BibLaTeX?

I want to cite an ISO standard using BibLaTeX. All guidelines I found for BibTeX suggested using misc and replacing the author and editor fields by a number field which was then the full string denoting the ISO standard ("ISO 9241-210:2010" say). BibLaTeX won't display the number though. I found this  where it was suggested to copy the misc BibliographyDriver to a new standard type (as suggested by the section "2.1.3 Unsupported Types" of the ) and replace  \usebibmacro{author/editor+others/translator+others}    by  \usebibmacro{series+number}   The result is a complete adapted copy of the standard.bbx file, renamed to din.bbx though. Is this the only/best solution? Can't I just change what I need and insert it somehow?    This link is not TeX-related but might be useful:


Upgrade Mountain Lion to Mavericks, with DMG file obtained from unofficial source?

I am trying to update from Mountain Lion to Mavericks using a DMG installer that I obtained over BitTorrent.  I don't want to download it via the official App Store as I don't have good enough Internet connectivity to download the 5 GB file.  How do I install from this DMG file?  I tried double clicking the DMG file, double clicking OS X Install Mavericks.app, then clicking install; I am shown the software license agreement, and I accepted it, but nothing happens after accepting the software license agreement.


Lens cleaning pen - disappointed by results, is this working right?

I just got one of these for the first time, a lot of threads on here recommend them and they seem like a great idea. Bought a Nikon one from amazon for $8 and while I really like the brush it seems like the cleaner tool isn't really working.  I have a brand new lens that I used for a few days and after wiping off the dust I wanted to remove a little spec of water that had dried on it. When I use the cleaning tip end it didn't really do anything, so I fogged it up by breathing on the lens, still not much result but better. It seems like I was just using a micro fiber cloth without any cleaning solution. I tried breathing on it again and accidentally touched it with my lip (hehe) so now I had a larger mark to remove.   I kept using the cleaning pen, putting it into the cap and twisting to get the cleaning compound, and in the end I feel like it required way to much rubbing to get clean. And still when I look at in under a light at the right angle there are still spots where it seems the smudges were thinned out and wiped around until you couldn't see them anymore.  I also tried it some on my camera's LCD screen that had some big oily fingerprints and it was definitely just moving and spreading the prints around.  Should I be thrilled by this pen and see it remove fingerprints fairly effortlessly?


Does Earth really have two high-tide bulges on opposite sides?

The bit that makes sense – tidal forces My physics teacher explained that most tidal effect is caused by the Moon rotating around the Earth, and some also by the Sun. They said that in the Earth and Moon system, the bodies are in freefall about each other. But that points on the surface of Earth, not being at Earth's centre of gravity, experience a slightly different pulls towards the Moon. The pull is a little greater if they are on the Moon's side, and slightly lesser if they are on the side away from the Moon. Once freefall is removed, on the Moon side this feels like a pull towards the Moon and on the the opposite side it feels like a repulsion from the Moon. This makes sense to me, and is backed up by other questions and answers here, like  and also  Phys.SE question. The bit that doesn't make sense – tidal bulges They also said that there are "tidal bulges" on opposite sides of the Earth caused by these forces. The bulges stay still relative to the Moon and Earth rotating through the bulges explains why we get two tides a day. They drew a picture like this one…  An image search for  finds hundreds of similar examples, and  from a scientist on Twitter. …But, if there is a tidal bulge on both sides of Earth, like a big wave with two peaks going round and around, how can an island, like Great Britain where I live, simultaneously have a high tide on one side and a low tide on the other? For example:   on the West coast  on the East  Two ports with tides 6 hours, or 180º apart. It's high tide at one while low tide at the other. But they are only  by road. Great Britain is much smaller than Earth. It's probably not even as big as the letter "A" in the word "TIDAL" in that picture.  To prove this isn't just Britain being a crazy anomaly, here is another example from New Zealand:     Two ports that are 180º (6 hours) apart, but separated by  through a national park. New Zealand, unlike the UK, is in fairly open ocean.


Javascript test string for only letters and numbers

I have the following functions   JavaScript  function lettersNumbersOnly(string){    if (/[A-Za-z0-9]/.test(string)) {      console.log('Clean');    }else{      console.log('Not Matching');    } }  $(".test-input").change(function(){   lettersNumbersOnly($(this).val()); });   If I were to put letters and numbers into that .test-input field, I get the "Clean". BUT if I put characters like !2@$% etc. I still get the "Clean" which is not what I want. I just want strictly letters and numbers. Any suggestions?


How to query records having at least one valid child record?

I am attempting to create a query with the objects Opportunity, Courses__c, and Prior_Qualifications__c.   Opportunity has parent-child relationships with both Courses__c and Prior_Qualifications__c. I want to be able to query only information with valid Courses__c records, so that I can disregard any results returned with valid Opportunity object information, but no Courses__c information. Is there a way to do this? Am I able to make a query such that:  Select Id,  (Select Course_Name__c from Courses__r) from Opportunity where Courses__r.Course_Name__c != ''   I know that this isn't a valid query... but can I do something like this?


Is the cast keyword triggered from the graveyard?

If  or any other card states that when it is cast, does this mean that it can trigger when it returns from the battlefield? Such as Conduit of ruin is in the graveyard, I return it to the battlefield from the graveyard. Does the first ability trigger and allow me to search my library for an eldrazi card 7 or more to place on top of my library?


using extended euclidean algorithm to find s, t, r

i am stuck for many hours and i don't understand using the extended euclidean algorithm. i calculated it the gcd using the regular algorithm but i don't get how to calculate it properly to obtain s,t,r.  i understand that from the gcd i can get a linear combination representation, but i don't get how to do it using the algorithm.  how can i find $s,t,r$ for $a=154, b= 84$?  if it is of any importance, the algorithm i am referring to is from the book cryptography: theory and practice  thank you very much. became hopeless because of it


Cloning a Non-Standard Svn Repository with Git-Svn

I'm relatively new to Git, but I've found it so easy to work with at home that I'd like to use it at work where our projects are stored in Svn repositories. Unfortunately, the repositories are slightly non-standard and I'm having trouble getting them cloned. Sure, they all have trunk, branches/ and tags/, but branches/ and tags/ have subdirectories before hitting the real project directories:  trunk/ branches/maintenance/release1 branches/maintenance/release2 ... branches/development/feature1 branches/development/feature2 ... tags/build/build1 tags/build/build2 ... tags/release/release1 tags/release/release2   After cloning:  $ git svn clone -s --prefix=svn/ https://mydomain.com/svnproject $ git branch -r   development   development@1340   maintenance   maintenance@1340   tags/build   tags/build@1340   tags/release   tags/release@1340   trunk   trunk@1340    I get none of the actual project branches or tags. I actually need to be able to work on the trunk, one maintenance branch and one development branch. I've tried this approach in addition to several hacks at modifying the config, but nothing is working for me.  Is there any way I can get the key components of my non-standard Svn project into a local git repository so that I can easily move between them?  Many thanks.  UPDATE: I should add that I can't do a wholesale switch to Git (yet). There are other team members involved and an international presence. The logistics of the transition are more than I'm willing to undertake until I'm much more comfortable with Git; as I mentioned, I'm still pretty new. I've barely scratched the surface of its capabilities.


How virtual photons give rise to electric and/or magnetic field?

Say a neutron which have magnetic moment despite carrying no charge. Isn't both the electric field and magnetic field consist of virtual photons? So how can the same virtual photons give rise to 2 different properties? Since virtual photon is the excitation of a quantum field how come the same excitation of the quantum field can have different behavior like giving particle electric charge or spin?


how to *completely* turn off automatic updates in Windows 10

I have disabled the services "Windows Update" and "Windows Update Medic Service" in using services.mcs. Furthermore, I made changes to the registry, creating a key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU with a DWORD (32-bit) Value "AUOptions" with value set to 2. I still see frequent queries to ctldl.windowsupdate.com sent to my DNS server. Which services need to be disables to completely shut this down?


Substituting Value for Independent Random Variable in Conditional Expectation

Let $\tilde{D}$ be a topological space with Borel $\sigma$-algebra $\mathcal{B}(\tilde{D})$, $\tilde{g}: \Omega \times \tilde{D} \rightarrow \mathbb{R}$ be a bounded $(\mathcal{G} \otimes \mathcal{B}(\tilde{D}) ) / \mathcal{B}(\mathbb{R})$-measurable function, $\tilde{\Pi}: \Omega \rightarrow \tilde{D}$ be a $\mathcal{G}/\mathcal{B}(\tilde{D})$-measurable random variable, $\tilde{Y} : \Omega \rightarrow \mathbb{R}$ be a $\mathcal{G}/\mathcal{B}(\mathbb{R})$-measurable random variable, defined by $\tilde{Y}(\omega) := \tilde{g}(\omega, \tilde{\Pi}(\omega))$, $\tilde{s}: \tilde{D} \rightarrow \mathcal{L}^2(\Omega, \mathbb{R}, \mathbb{P}) $ be defined by $\tilde{s}(\pi)(\omega) := \tilde{g}(\omega, \pi)$, $\tilde{E} : \tilde{D} \rightarrow \mathbb{R}$ be defined by $\tilde{E}(\pi) = \mathbb{E}[\tilde{s}(\pi)]$, and for all $\pi \in \tilde{D}$, let $\tilde{s}(\pi)$ be independent of $\tilde{\Pi}$.   In this setting, I want to prove the following statement:  $\tilde{E}$ is $\mathcal{B}(\tilde{D})/\mathcal{B}(\mathbb{R})$-measurable and $ \tilde{E} \circ \tilde{\Pi}$ is a version of the $\mathbb{P}$-unique conditional expectation $\mathbb{E}[\tilde{Y} \mid \tilde{\Pi}]$.  Is this even true? An idea for a proof would be fantastic!