Best solution for acronyms, abbreviations, glossary and index

I am writing a scientific text/book which will contain acronyms, which should have a glossary and should also have an index. The question is: which LaTeX setup is best for this? Which are the best packages, etc.  Obviously some of the problems are overlapping.   I want to have a glossary where I explain some terms or where I give a one sentence explanation and refer to the section where the term is discussed in detail. For some of these terms it might be common to use the acronym/abbreviation. Examples are HTTP, TCP or Dow Jones.  Other terms are usually written out, but I might want to use an abbreviation (in some sections) because they appear often or because they are so lengthy. (Examples: Distributed Event-Based System: DEBS or Peer-to-Peer: P2P) I want to have a List of Abbreviations and Acronyms.  I also want to have a Glossary where some of the acronyms/abbreviations appear, but not all. I also want to have an index that links to the relevant pages where some of the index terms appear. It should also be possible for the index to contain terms that do not appear in the glossary or acronym list.   Searching for possibilities to achieve this I found several partial solutions, but I am not sure how they will work together, especially since some seem to overlap.    package   seems to be quite common and powerful when it comes to acronyms - maybe ever a little overkill.  unclear how to make use of it for index/glossary purposes   package   supports glossaries nicely also supports acronyms. But how can I define acronyms that should not appear in the glossary, but some should appear in the glossary seems to work well with hyperref uses makeindex  index with makeindex, \index{..} and \printindex   is build-in in LaTeX can I combine it with the glossaries package?  other glossary packages like makeglos, gloss, glossary, glosstex other acronym packages like nomencl other index packages like makeidx    So there are many solutions, but which is the best?


Do composite particles that are electrically neutral but have charged constituents radiate?

For example an electron radiates when accelerated. So does a positron. But is the radiation emitted by accelerated positronium the sum of the radiation emitted by each separately? If not, why not? If so, does this provide a way of testing whether a given neutral particle is composite? For example, does a neutron bremsstrahlung when decelerated?


GCD (a,b) =1 prove GCD ( (a+b), (a-b) ) = 1 or 2

if GCD of $(a, b) = 1$, prove that GCD $(a+b, a-b) = 1$ or $2 .$ The proof goes like: Let GCD $( a+b, a-b ) = d$ and let there exist integers m and n such that $ a+b =md$  and $ a-b = nd.$ By adding and subtracting these two equations we get: $2a = (m+n)d$ and $2b = (m-n)d$ , because $a, b$ are coprime then $2$ GCD $(a,b)$ = GCD $(2a, 2b),$ and so on. My question is, why do we have to add and subtract above equations? I need to understand the concept of this prove in some more details. Thanks!


How to filter by several parameters in GeoServer from the PostGIS table

On a layer from the GeoServer I linked a table to PostGIS, in that table I have a geometry column and several columns of related geometry information after which it should be filtered. Now it should be when I request only certain parameters from the data bar, only that to bring back not the whole table. I don't know how to pass those parameters to GeoServer and then filter them for me. The code I've done so far: var terrain = new ol.layer.Tile ({           source: new ol.source.TileWMS ({                     URL: "http: //127.0.0.1: 10000 / geoserver / ADMINISTRATION / WMS '                     params: {'LAYERS': 'ADMINISTRATION: pdf', 'STYLES': 'LAND'},                     format: new ol.format.GeoJSON (),                     ratio: 1,                     serverType 'geoserver'                                                     })       });  In the table for example there is an identifier that is called city hall and has values from 1 to infinity now I would like it to show me in the field layer only the geometries that are in city hall 1.


Step by Step guide to install aircrack-ng suite on ubuntu 12.04 LTS

I tried soo many guides and soo many things i browsed like the whole world wide web and I could not install aircrack-ng suite. Any help would be appreciated :) Thank you all, Best regards.


Confused with java aceess modifers. Why [default] class is accessable from outside?

I am familier with other languages.But i am learning java now. I was reading the access modifiers . I found that only public class can be accessed from outside. And the [default] class cant not be accessed from outside. But as i have written some simple code i cam access the non public class from outside:  Add.java  class Add{     int a(int x, int y)     {         return x+y;     } }   MyClass.java  public class MyClass {     public static void main(String args[]) {       Add obj= new Add();       int sum= obj.a(10,20);       System.out.println("Sum of x+y = " + sum);     } }   OUTPUT>>>     Sum of x+y = 30   So please someone explain this for me? I want to know how this is happening!  Thanxx in advance.


How to identify if sentence is passive Voice or Indicative sentence?

Examples:      "One car was parked outside of the gate."    "Your work volume is increased or not"   "He was arrested"   "She was raped"   "After accident he was taken to hospital"   "He was informed about this"   “My heart was broken”   All above statements can be in the stative form if we do not mentioned the agent. But if we use the agent i.e. By Driver, By Boss,  By Police, By  boyfriend, By  friend, By  father, By  husband respectively, then sentence become as passive voice.  My questions are  a) How to quickly make out whether a sentence is in the passive voice or just a simple sentence (Stative)?  B) If i use had been in above sentence does it mean the same?


Using ~ in symlink target or making a symlink with a variable

I would like to create a symlink to ~/foo/ but when I write that, ~ is always resolved to the absolute home path. I've used ../s in the past and they work fine, is ~ not allowed?  The reason I'd like to do that is because ~ has a different absolute path depending on the machine and Linux/OSX, but always points to my home directory.  I'd like to include such a link in a git repo sync'd across several machines.


DJB described curve25519 in his paper which can be found  (PDF). It seems that the main purpose was for Diffie-Hellman key exchange. I think this means that Discrete Log is supposed to be hard on curve25519.  My questions is whether DDH (Decisional Diffie-Hellman) assumption is conjectured to hold on curve25519 too so that we can use it for building an ElGamal encryption scheme. Some quick investigation shows that DDH are assumed to be hard on elliptic curves with large embedding degree () and it seems that most elliptic curves have large embedding degree except those constructed for pairing based crypto.   So, I guess the answer should be “yes”. But still I would like to get some expert knowledge to confirm that one can securely build ElGamal encryption on this curve.


I am trying to minimize my typing with creating a few scripts, but I'm stuck.  echo "Creating the plex.tar.gz" dd if=plex.bin of=plex.tar.gz bs=200 skip=1; sync echo "I am now unpacking the plex.tar.gz" tar -zxf plex.tar.gz echo "It should all be done"   and I keep getting  xx:~/plex$ sudo ./plex_create Creating the plex.tar.gz 510616+1 records in 510616+1 records out 102123230 bytes (102 MB, 97 MiB) copied, 1.43576 s, 71.1 MB/s : not foundte: 2: ./plex_create: sync I am now unpacking the plex.tar.gz tar (child): plex.tar.gz\r: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now It should all be done xxx@xxx:~/plex$   What I would require would be actually text and running command, when done, text, another command and so on.  Thank you very much.


How can I play Starcraft 2 under Ubuntu 16.04

Unfortunately, I only have a laptop with Ubuntu 16.04 as operating system. I'd still love to play a round of Starcrft II for sake of old times. I already tried to follow the "walk-through" from this site:   Unfortunately, it doesn't work, as my system - and apparently my Wine installation - is 64 bit, while the battle.net executable requires 32 bit. Mind you, I am not a very experienced Linux user, nor a gamer, nor do I have any experience with Wine. So, the question is: Is there an idiot-proof way to play Starcraft 2 in my situation? I also tried to install the thing in my Windows 7 Professional SP1 installation that I have within a VirtualBox, but this didn't work either...


Command to convert many images to one square image (not becoming a column or a row)

Is this really duplicate? I have not yet found it anywhere.  For example:  I have 4 PNG images: image1.png, image2.png, image3.png, image4.png.  Every one of them is 200x200 pixels.  I want to convert them to image1234.png.  image1234.png is 400x400 pixels, what consist of:   image1.png is in the top-right. image2.png is in the top-left. image3.png is in the bottom-right. image4.png is in the bottom-left.


For all $x,y\in\mathbb{R}$ define that $x\equiv y$ if $x^{2}=y^{2} $; prove $\equiv$ is an equivalence relation.

For all $x,y\in\mathbb{R}$   define that $x\equiv y$   if $x^{2}=y^{2}$  . Then $\equiv$  is an equivalence relation on $\mathbb{R}$  , there are infinitely many equivalence classes, one of them consists of one element and the rest consist of two elements.  Solution  True. To show that \equiv  is reflexive we need to show that \forall x\in\mathbb{R}  :x=x.  Let x\in\mathbb{R}  , x\equiv\mbox{\ensuremath{x}}  if x^{2}=x^{2},   which is obvious.  [x]  ={y\in\mathbb{R}  |x\equiv y}  =[0]={y\in\mathbb{R}|0\equiv y}={0}  . Hence y^{2}  =0^{2}   =0   which implies that y=0  .


How can i find matching element in array, for example  i want to find word in array element "Black" Array element is : ["Black footbal scarf"] So i understand how to match this by converting array to string, but how can i do it exactly with array elements  var color = "Black";  var arr = ["Black footbal scarf", "Blue footbal scar", "Red footbal scar"]; //Converting to string WORKS alert(arr.join("").indexOf(color));  alert(arr.indexOf(color));   So i need to get array index of the color from variable.


Ok, I have a big problem! My fiance says he was at lunch while google location history shows that for over an hour he was in the hotel next door to the restaurant. He has a Galaxy 3.   The dots at the bottom of the screen are from the restaurant and the dots up at the top are the hotel. None of the blue circles from the 2 locations run into one another either.  How likely is it that this is inaccurate?


How can I found out which packages cause problems with the class svjour3?  After many compilations I found out that the problem lies in of the packages I use. The code is below and does not produce a pdf.   EDIT 1: The file svjour3.cls was modified on 1/10/2008. I use MiKTeX 2.9.   EDIT 2: The error is  ! TeX capacity exceeded, sorry [input stack size=5000]. \cl@chapter ->\cl@chapter                            \@elt {theorem} l.2486 }{}           %  end of \@ifpackageloaded{amsmath} !  ==> Fatal error occurred, no output PDF file produced! Transcript written on probleem.log.   PDFLaTeX Compilation Report:   (Pages: 0) Errors: 2   Warnings: 2   Bad Boxes: 0    \documentclass[smallextended]{svjour3}  \usepackage{amssymb} \usepackage{amsmath} \usepackage{undertilde} \usepackage{amstext} \usepackage{amsthm} \usepackage{epsfig} \usepackage{graphics} \usepackage{color} \usepackage{booktabs} \usepackage{graphicx} \usepackage{caption} \usepackage{float} \usepackage{subfigure} \usepackage[sort&compress,round,comma,authoryear]{natbib}%bibtex \usepackage{mathtools} \usepackage{epstopdf} \usepackage[titletoc,title]{appendix}% for appendix met A \usepackage{cleveref} \usepackage{dcolumn}   \begin{document} Hello \end{document}


I want show solving process. So I have for example  Y=(x-2)y / y =x-2 . I want draw a line over y that show as eliminated as problem be solved. How can I do?


Move windows between screens in dual screen mode

I have a laptop and a 27 inch monitor. I have Qt running on one monitor and Pycharm on the other. Is there a way to make a key combination to swap all the windows between both screens. The reason is that I want to program on the big screen only. I have already 4 workspaces and all of them are already used.  The output of xrandr:  Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 32767 x 32767 eDP1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 344mm x 193mm    1920x1080      60.2*+   59.9      1680x1050      60.0     59.9      1600x1024      60.2      1400x1050      60.0      1280x1024      60.0      1440x900       59.9      1280x960       60.0      1360x768       59.8     60.0      1152x864       60.0      1024x768       60.0      800x600        60.3     56.2      640x480        59.9   HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 597mm x 336mm    1920x1080      60.0*+   50.0     59.9      1920x1080i     60.1     50.0     60.0      1600x1200      60.0      1680x1050      59.9      1280x1024      75.0     60.0      1440x900       59.9      1280x960       60.0      1366x768       59.8      1152x864       75.0      1280x720       60.0     50.0     59.9      1024x768       75.1     70.1     60.0      832x624        74.6      800x600        72.2     75.0     60.3     56.2      720x576        50.0      720x480        60.0     59.9      640x480        75.0     72.8     66.7     60.0     59.9      720x400        70.1   DP1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis)


How to perform SQL injection attack on this code?

In a local xampp server which I set up for development, I have a table like so:  CREATE TABLE `entries` (  `id` int(10) UNSIGNED NOT NULL,  `title` varchar(100) NOT NULL,  `entry` text NOT NULL,  `date_entered` datetime NOT NULL  )   In order to learn how to secure my queries against SQL injections, I want to induce one (I am intentionally not using prepared statements). I have a query to insert an entry in this table like so:  $sql = 'insert into entries ( title , entry , date_entered ) '     . 'values("'     . $postTitle     . '","'     . $postEntry     . '","'     . $dateEntered     . '")';   It works (it does insert entries in the table), but I failed to induce SQL injection attack against it. Here is what I tried to insert in the $postEntry field:  ;drop table entries; ;drop table entries;' ';drop table entries;' `;drop table entries;' q';drop table entries; q","e");drop table entries; --' q","e");drop table entries;--   For the last value the SQL query became:  insert into entries ( title , entry , date_entered ) values("r","q","e");drop table entries;--","2016-08-18 10:35:36")   Still the entries table intact!  I modified the SQL string to use single quotes like so:  $sql = 'insert into entries ( title , entry , date_entered ) '     . ' values(\''     . $postTitle     . '\',\''     . $postEntry     . '\',\''     . $dateEntered     . '\')';   Then tried:  q','2016-5-5');drop table entries; --'   But still no luck! How should I produce SQL injection attack then? note : the proposed duplicate is not duplicate and not even an answer . the whole point of this question is to demo the expoite so that i make sure the security measures are working.


Case-insensitive string matching in LINQ Where

I was working on something that required me to catch the first char of a string. and return if it starts with S or s.  The pseudocode I considered was:  var foodsWithS = Foods.Where(food => food.Name[0] == 'S' || food.Name[0] == "s").Select(i => i.Name);   Unfortunately, this fails. What would be the best way to do this? Currently I have two lambdas to check for each case of the letter.


What font is used on Windows 8 or Windows Phone 8?

What font is used for the interface in Windows Phone 8 and Windows 8? Is this font free to use?


Topbar tells me about a +1 recovered from a deleted DVed post, but detail view doesn't show it

The topbar only tells us about reputation gains (see ).  But sometimes it only half-tells us:    The explanation of that +1 is nowhere to be found here.  An answer that I downvoted was deleted (hence the return of my 1 rep), but I'm active on several sites and sometimes it takes days (or weeks or months) for such posts to be deleted, so asking myself "what have I downvoted recently?" doesn't necessarily help.  If we're going to show the notification, shouldn't we also show the explanation?


Attributes of polygons in a shapefile based on largest area intersection with polygons from a different shapefile

I have a shapefile of landcover.  It was developed from a raster dataset (the Crop Data Layer).  I also have a grid of 50x50m cells (polygons in a shapefile) I have overlain on the landcover shapefile.  It's only a subset of 1 county at this point, so it's not too terribly large.    I want to give an attribute to each cell that corresponds to the largest landcover category underneath.    I would prefer to do this with the shapefiles, as I made several modifications to the shapefile after converting it from the raster.  But if it can only be done with a raster, then I'll take that route.    I have tried spatial joins and the update overlay tool in vector data.  I have tried to take raster data, convert it to point data, then to raster, then back to polygon, but doing that you lose the habitat code for the data.


I have been going through some old posts, flagging them as necessary. But I have noticed that the number of posts that I am able to flag is continually staying at ten. It seems that the new flagging system has messed this up.  I am able to keep flagging posts even after 10, so I know it isn't a UI bug. This is a very big problem, because I can flag infinitely many times. And I am pretty sure this isn't the intended behavior of the overlords This isn't because I am being awarded more flags. I flag more than 13 posts in 5 minutes, and I can keep going without restriction  Some of the flags were accepted, so now my number is up to 13. But it is still staying at 13


I have this function in my .zshrc:  activated=false  function test_toggle() {   if [ $activated=false ]; then     echo "WAS FALSE"     activated=true   else     echo "WAS TRUE"     activated=false   fi }   I'd like the function to toggle the state of var activated between false and true. But if I open a terminal and run the function I only get this:  $ test_toggle WAS FALSE $ test_toggle WAS FALSE $ test_toggle WAS FALSE   How can I make the function use and change the variable: activated from parent scope correctly?


Sentence adverbs and the user's attitude

According to   [S]entence adverbs convey the mood, attitude or sentiments of the speaker.  Yet,  Sentence adverbs form a completely standard aspect of English grammar, but there are a few, for example, hopefully, that give rise to widespread criticism as they express the user's attitude to the sentence content rather than modify the sentence as a whole. Others that may incur criticism in the same way are mercifully, thankfully, and truthfully.   Both excerpts are contradictory, which one is correct?


Do I need to cross immigration to collect my baggage at FCO

I am travelling from New Delhi, India to Halifax, Canada on a student Visa through Air India (New Delhi-Rome) and Air Canada (Rome-Halifax).   My tickets are on a single booking but have different PNR due to change of airlines. My Air India flight arrives at Terminal 3 and my Air Canada flight also leaves from the same terminal.   I have a 16 hour layover in Rome (FCO) and I plan to stay inside the International Transit Area. However I will need to re check-in my baggage. Do I need to cross immigration to collect my baggage and if yes, will I need a transit visa for it?


Do you know if it is possible to hide/show the menu bar similar to the Dock? I found about  , but I think you can't use the menu bar space, and additionally it costs $1.99. Do you know other alternatives?


Articles with proper nouns as adjectives

Do I need to use articles in front of proper nouns that are used as adjectives?  Examples:  "I joined [the] Warp Engine team."  "I want to share [the] Warp Engine roadmap with you."


Help finding the sum $\sum_{n=1}^{\infty} \frac{n^2+1}{5^n}$

I have: $$\sum_{n=1}^{\infty} \frac{n^2+1}{5^n}$$ I have separated the fraction in two, the second one, $\frac{1}{5^n}$ is clearly just a geometric series and simple enough. But what about the first one? Looking through my calculus book and notes I haven't found an example of this. Any help is appreciated, especially if there's a general method to go around finding these kinds of sums. Thanks.


get to hold the action button in java awt

Guys i'm new to awt library. I'm try to build a simple GUI using java awt.  I want to build something react with button thing.   enter codepackage chapter19; import java.awt.*;  import java.awt.event.*; class Gui05 extends Frame implements ActionListener,ItemListener{ private static final ItemEvent ItemEvent = null; TextField[] tfs;// south Button[] bts; //North TextArea ta; Checkbox[] cbs;// east3 Button bt;  Gui05(){     super("Compound Layout");      create();     allocate();     button(null);   } private void allocate(){      this.setLayout(new BorderLayout(5,5));     Panel cp = new Panel();     cp.setLayout(null);     ta.setSize(400,300);     ta.setLocation(20,20);      this.add("Center",ta);      for(Button b: bts){     // panel 이란 컨테이너를 사용해야 한다      Panel np = new Panel();     np.setLayout(new GridLayout(1,4,5,5));     for(Button t: bts){         np.add(t);       }     this.add("North",np);      Panel sp = new Panel();     sp.setLayout(new GridLayout(1,2,5,5));     sp.add(tfs[0]);     sp.add(tfs[1]);     this.add("South",sp);        Panel ep = new Panel();     ep.setLayout(new GridLayout(2,1,5,5));     Panel ex = new Panel();     ex.setLayout(new GridLayout(3,1,5,5));     //ex.add(bt);     //     for(Checkbox t: cbs){         ep.add(t);       }     ep.add(ex);     ep.add(bt);     this.add("East",ep);     this.setSize(500, 430);     this.setResizable(false);      }        }     private void create(){     tfs = new TextField[]{new TextField(),new TextField()};     bts = new Button[]{new Button("NEW"), new Button("OPEN")      , new Button("CLOSE"), new Button("EXIT")};        ta = new TextArea();     cbs = new Checkbox[]{new Checkbox("red"),new Checkbox("yello"),new      Checkbox("green")};     bt = new Button("enter");     bt.addActionListener(this);      addWindowListener(             new WindowAdapter()             {                 public void windowClosing(WindowEvent e){                      System.exit(0);                 }             }             );       this.setSize(1000, 800); }  public void button(ActionEvent ie){       String arg = bt.getActionCommand();     if(arg == "enter"){         System.out.println("checking..");         Checkbox tempcbs = new Checkbox("red");         //System.out.println("arg2..."+arg2);         if(tempcbs == cbs[0]){             System.out.println("red is printing...");             setBackground(Color.red);          }       }  }     //public void stateChange(ItemEvent ie){     //String arg = bt.getActionCommand();     //System.out.println("arg..."+arg);    //} @Override public void itemStateChanged(ItemEvent e) {     // TODO Auto-generated method stub  } @Override public void actionPerformed(ActionEvent e) {     // TODO Auto-generated method stub  }         }         public class GuiEx05 {             public static void main(String[] args) {             new Gui05().setVisible(true);          }    } here   and this part   enter code here public void button(ActionEvent ie){       String arg = bt.getActionCommand();     if(arg == "enter"){         System.out.println("checking..");         Checkbox tempcbs = new Checkbox("red");         //System.out.println("arg2..."+arg2);         if(tempcbs == cbs[0]){             System.out.println("red is printing...");             setBackground(Color.red);          }   its printing "checking.." even though i did not click the enter button and I want to check checkBox's text is match with 'red','yello' string. how to do this?


Attempting to Format Symbol and Text in Two Columns

I use markdown to take school notes. They are later converted, via Pandoc to HTML and PDF (through LaTeX templates). I am trying to typeset a Symbol (floated left) to multiple lines of text. In the browser it looks like this:   or   This works in HTML by inserting the raw HTML and CSS (using floats and padding or tables). Is there a way to accomplish the same thing in the LaTeX?   Thank you for your help!


Synchronous and Asynchronous callback functions in ES6 and Node

I'm new to ES6 and Node.js  I would like to understand how callback functions work in a synchronous environment and asynchronous environment.   I tried to run the following in Node:   function func1() {      console.log('hello');  }  func1(function(){      console.log('world'); });    From my understanding of asynchronous callbacks, func1 should execute first, and when func1 finishes execution it calls back the function inside its argument list.   So in this case:   console.log('world')    should execute in second place, but i'm only getting as an output:hello.  Am i missing something? Can someone explain to me with clear examples how callbacks work? Is it the same in a synchronous environment?


How do gravitons and curved space time work together?

I've heard two different descriptions of gravity, and I'm wondering how they work together.  The first is Gravitons:     "The three other known forces of nature are mediated by elementary   particles: electromagnetism by the photon, the strong interaction by   the gluons, and the weak interaction by the W and Z bosons. The   hypothesis is that the gravitational interaction is likewise mediated   by an – as yet undiscovered – elementary particle, dubbed the   graviton. In the classical limit, the theory would reduce to general   relativity and conform to Newton's law of gravitation in the   weak-field limit." --    I'll admit I don't know much about them, but I assume that they would work similarly how photons do in EM.  The second, which I understand more, is given by GR and is that space time is curves by mass-energy, sort of how putting a heavy object on a blanket curves it.  So, how would these work together? Would the curves space time be analogous to a "graviton field", where the more massive/energetic objects produce a stronger field which other objects are attracted to, and excitations in the field produce gravitons?


How do I navigate to a samba location I've mounted in Nautilus on the command line?

Please note: I am two weeks old in Linux. I have found a lot of answers to this question on the internet, tried many, but all failed one way or another. Therefore I dare to ask once again in the hope that someone here could explain it simply :)  Pre-conditions:  In my institute, we have a Samba server. In Windows, it is accessed by going to \\xyz.220.131.233\ and entering the login abc and the password def.   In Ubuntu, I was able to do exactly the same using Nautilus, pressing Ctrl+L and entering smb://xyz.220.131.233/. It then asks for the login and the password and connects. I can even drag a folder from here to the 'Places' and have a shortcut to the remote location.   So far so good. I've just installed Matlab and want to open this remote location. Trying to cd to smb://xyz.220.131.233/ returns      Cannot CD to smb://xyz.220.131.233 (Name is nonexistent or not a directory).   A Mac user in my group told me I first mount the location, but he didn't know how to do it.   Is it true and how do I do it?


I would like to tell my Android that when I'm in a given app it should switch to a given keyboard. My use case is that I want to use Hacker keyboard with Connectbot.


The following are the memory usage of mysql and apache respectively on my server. As per the output of pmap say, mysql is using about 379M and apache is using 277M.   [root@server ~]# pmap 10436 | grep total  total           379564K  [root@server ~]# pmap 10515 | grep total  total           277588K   Comparing this with the output of top, I see the values are almost matching.    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 10515 apache    20   0  271m  32m 3132 S  0.0  6.6   0:00.73 /usr/sbin/httpd 10436 mysql     20   0  370m  21m 6188 S  0.0  4.3   0:06.07 /usr/libexec/mysqld --basedir=....   Now these values definitely are not the current memory usage of those two processes, since if it were it would've exceeded the 512M ram on my system and I understand the fact that these are the size of the pages assigned to these two processes and not really the size of the memory actively used by them. Now, when we use pmap -x, I see an extra coloumn Dirty which shows far less memory usage for the process. As seen in the example show below, the Dirty coloumn shows 15M as opposed to 379M in the first coloumn. My question is: Is the value under coloumn Dirty is the 'real' amount of memory actively used by that process? If its not, then how can we find out the real memory usage of a process? Not ps and top for the same reasons above. Do we have anything under /proc that will give this info?  [root@server ~]# pmap -x 10436 | grep total total kB          379564   21528   15340 [root@server ~]#   [root@server ~]# free -m              total       used       free     shared    buffers     cached Mem:           489        447         41          0         52        214 -/+ buffers/cache:        180        308 Swap:         1023          0       1023 [root@server ~]#


View nodes in a listing only, not on their own?

I have created two node-types: 'match' and 'set'. When a 'match' node is viewed it displays a listing of several 'set' nodes. I've acheived this by calling node_load_multiple in hook_node_view. That's all 'set' nodes do: they are listed by a match node. 'Set' nodes can be created, edited and deleted, but I only want the user to be able to view them in listings.  So, I want to deny access to viewing 'set' nodes on their own page at node/1 or whatever. I've denied access to 'set' nodes using the node access mechanism, but then they don't appear in my listing either.  How can I set these nodes so that they can only be viewed in my listing?  The only thing I can think of is not to call node_load_multiple but to write by own db_select query to retrieve all the necessary 'set' nodes to list in a match 'node': a bit messy.  Hope this makes sense. I open to any suggestions. Thanks.


JavaScript splitting String with multiple quotation marks and different IDs

I have Strings which look like this one, but with different Id.  [{"Id":33,"Title":"Sweden, Stockholm - Järfälla: Dienstag, 31. Januar 2017 - Mittwoch, 1. Februar 2017"}]   How can I split them so that they become:  Sweden, Stockholm - Järfälla: Dienstag, 31. Januar 2017 - Mittwoch, 1. Februar 2017   I know that I can represent the quotation marks using \", but I don't know how to apply the split or String.prototype.split function in this case.  I tried  var text = "[{\"Id\":33,\"Title\":\"Sweden, Stockholm - Järfälla: Dienstag, 31. Januar 2017 - Mittwoch, 1. Februar 2017\"}]".replace("[{\"Id\":33,\"Title\":\"", '');   alert(text);   But that would still leave "}] at the end and besides, the Strings have different ID's so that would only work for this case.  Thanks in advance!


Prove that $x² + y² = z^n$ has a solution in $\mathbb{N}$, for all $n$ belonging to the set of natural numbers

Prove that $x^2 + y^2 = z^n$ has a solution in  $\mathbb{N}$, for all $n$ belonging to the set of natural numbers.    I think it uses Induction as a method of proof but just can't proceed with three variables. Any help is greatly appreciated.


How to import a c++ custom class into c# unity

I have a DLL file that contains a class that I want to use inside of my c# script in a unity project. I recently searched about dlls and learned to create dlls and use them inside c# this is the way i use the dll import attribute to import a method from a dll and use it inside of c# private const string dll= "MyDllFile";  DllImport(Dll, CallingConvention = CallingConvention.Cdecl)] static extern float percent(float percent, float of);  The main dll file that i want to work on has a custom class called Factory and i want to make an instance of that class which is inside of a dll file in my c# script. since i don't have the factory class in my c# project, i can not write something like DllImport(Dll, CallingConvention = CallingConvention.Cdecl)] private static extern factory(string name);  Factory factory = Factory("myFactory");  This won't work because Factory class is a custom class. the factory() in the dll file, returns an instance of Factory class. Any help would be appreciated.


Is there any way to salvage an old rusted wok?

Hello Seasoned Advice: I cannot find an answer on any previous posts here relating to woks about what to do if the wok is Already Rusted. I found this wok in my husband's house when I moved in - he has no idea where it came from or how long it's been there.  I have no information about this wok, other than that the faded manufacturer's label indicates it was made in Taiwan, presumably by an Asian cooking supply house - has Chinese (?) characters above, then in English: "Seven S---G Co., Ltd" (the --- indicates where the label is faded and illegible) with an address, international phone number and fax number. It is black, has a welded, hollow steel handle with a hole through it for hanging, and looks to be a commercial, or restaurant-grade wok of carbon steel, well used. It was stored in an under-counter cabinet next to a leaky sink, so I have no doubt about where the original rust came from. Has about 10 small pits on the bottom and almost half of the entire upper right side of the circumference of the wok is almost one continuous thin (not pitted) area of rust.  Previously, I had spent the better part of a day alternately: scrubbing the rust (with coarse salt and fine salt), wiping with vegetable oil and heating over a high gas flame -then repeating this process 3 or 4 times until I was sure there was no rust or moisture remaining (although it is still pitted in some places at the bottom), and then another thin coat of oil to seal against moisture, heated again, then wiped. It worked very well for a couple of weeks, but as I don't currently cook Asian-style on a regular basis, after a few weeks of disuse it turned rusty again, almost worse than when I found it.   Should I be using steel wool to scrub the rust down to bare steel first, or just the salt? Using a different oil? (WD-40?  Just Kidding). Oven vs Gas burner heating?  How should I be storing this? (I have limited space-so most of my equipment is hanging on the walls or on a steel kitchen shelving rack, so I don't think air-flow is an issue.)  As this looks like a relatively decent piece of equipment, I want to do more Asian style cooking and be able to use it on a more regular basis. Is this wok salvageable? I would hate to have to put it on the curb and spend the money for a new restaurant-quality wok.  Thanks in advance for any guidance. P.S., I have pics, but due to a software issue with my camera, I am unable to post at the moment - will try to send pics if I get an answer to this question.


i want to show that $k[x,x^{-1}]$ (where $k$ is a field ) is a PID . i have some proof but seems too- straight forward to be correct take the natural homomorphism $\phi: K[x]\to S^{-1}K[x]$ where  $S=(x^1,x^2...)$ for we know that for every ideal of $S^{-1}K(x)$ Lets say $I$ , $\phi^{-1}(I)$ is an ideal of $K[x]$ Which is PID so $\phi^{-1}(I)=(f)$ for some $f$ on $K[x]$ then is holds that the ideal $I$ is generated by $(f/1)$ ? if yes we've shown that $k[x,x^{-1}]$ is a PID?


Why do I have to use sudo if I am the only user?

I am new to Linux and am trying to wrap my head around the concept of super users in the context of the sudo command. If I am the superuser, and only user on my system, why do I not have all permissions to all files? Why must I use the sudo command and enter my password? I'm trying to grasp conceptually how I can think of this.


Is $p >a$ a condition of Fermat's little theorem

Web search: $p$ is a prime, $a$ is any integer for which $a^p-a$ is a multiple of $p$. My research: I found that if $p$ is smaller than a then the remainder of $a^p/p$ is not going to be a which is contradict to the theorem. Examples: $$p=2,a=17$$ $$17/2=8+1/2$$ $$17^2/2=144+1/2$$ Contradiction shown.


For a while I've been thinking that the stackoverflow search is broken... It does not use my up/down votes on questions, making it very hard to find an answer that I already voted. Basically, I up/down vote questions and answers for two reasons:   To improve the community by selecting the best questions and answers (benefits other users). To be able to find a particular solution at some point in the future (benefits myself).   In reality, the second use case doesn't work, because when I search on the site, I don't get the up voted questions/answers prioritized, so the only way to look for a previous question is to go through them by hand...  I think it would be very useful, than when logged in, the search results are ordered having my own votes rank better than the communities, or some search option to only search in answers I actively participated (be it by up/down voting, commenting, or posting the question / answer).  What do you think? Is there a way to do this that I'm missing?


Find the default application for a certain extension

Given xdg-open and an extension, is there a way to get the application which xdg-open is set to for that particular extension?  For example given xdg-open and .jpg the result is eog.


Linear transformation preserving orthogonality

If $A$ is such that if $u$ and $v$ are orthogonal than $A(u)$ and $A(v)$ are also orthogonal (that is, their scalar multiple is $0$) for any $(u,v)$ pair and $A \in Hom (V,V)$ where V is a complex vector space   then prove that A is a scalar (real,non-negative) multiple of a unitary transformation(so $A=\lambda D$ where $D^*D=I$ and $\lambda \ge0$ and $\lambda \in \mathbb R$).


How to Overclock my old PC's(Pentium 4) processor using Ubuntu?

I am new in Overclocking stuff. I am using an old gen. PC with 32-bit Pentium 4 with 3.0 GHz speed with Ubuntu 14.04 installed on it. I want to improve my CPU performance because it is really really slow.  Can anyone help me out?


Let's say in the TNG era.    They seem to be pretty rare given that they have to be promoted mostly from the ranks of the most accomplished captains.    I would guess maybe twenty are encountered or mentioned over the course of TNG.  Are there a dozen or a hundred?


Is the CLUI (Command Line User Interface) and GUI (Graphical User Interface) utilize different TTYs or both of them share the same TTY?   I understood in the past that they both share the same TTY but I might be wrong. I got a bit confused when reading about that and saw different phrasings that made see the CLUI/GUI-TTY issue a bit confusing one.  I understand what is a TTY machine from history (60s/70s) but don't know if a modern virtual TTY "bases" both CLUI and GUI, or if there is TTY one per each (one for CLUI and one for GUI), and my question is if there really is.  Update due to Sparhawk's comment:  By CLI I mean to either the CLUI I run from my GUI-including-distro (like the Debian desktop CLUI) or my other no-GUI distro, like the Debian server CLUI or Ubuntu WSL.


W: Failed to fetch   Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)  E: Some index files failed to download. They have been ignored, or old ones used instead.


I'll be at my uncle's house just in case you need to reach me.      I'll be at my uncle's house should you need to reach me.   Could you tell me what is the difference between those?


Problem downloading Ubuntu into Virtual box

I downloaded Ubuntu through BitTorrent.  Then I downloaded Oracle VirtualBox.  I've found a few different guides online but it keeps failing.  I'm not understanding what to do with the iso file once I've downloaded it and saved into my downloads.  Can anyone give me some good advice?  I'm running Windows 10 on my laptop.


How should a Software Tester deal with missed Defects/bugs in Production?

I work as a QA/test engineer in a small software company. It is an e-commerce based product. I was assigned a few projects by my manager. I mostly do functional/blackbox testing. Before the production release, I tested many good scenarios and found quite a few defects in the code. Most of them got fixed. I did my analysis and gave important information to the stakeholders. I had a good test strategy at that time. Now, this module went live in production servers and all was good.  After many months, there were some enhancements in the product and I did regression testing of the same product, that old code build. Due to my carelessness, I now found at least 10 defects, bugs that were already in Production. I had missed those simple test cases. I should have found those earlier, many months ago. I'm no junior, I'm a senior analyst, which is shameful.  My manager and the stakeholders don't trust my work as a tester, as how dare I say that it PASS the QA the first time. They think that I'm careless, not worthy of working, and risky.  Now, I'm feeling very bad and low as one should be PERFECT in this job and there should be NO scope for mistakes. Company pays me to test well and not be careless. I feel I don't deserve this job and should find new job in another industry.   Should I ignore this mistake and keep on working in the same project? Should I have acted more clever and wise. Should I have not found bugs in Production and should have been quiet? Why did I highlight my mistakes and been noticed by management. Should I resign or change my Job, as I can't even do simple testing? I also broke the trust of management as well as my reputation.


How can i download wine on a unity desktop environment? I've been trying to do so by using commands i found online but nothing helps. I found it easy to download it in xfce4, but now im using unity.


Prove that the equation $x^4+(2k^2)x^2+2k^4$ is not a perfect square

Prove that any quadratic of the form $x^4+(2k^2)x^2+2k^4$ for any nonzero integer $k$ is never a perfect square for all integers $x$.   I thought about proving this by induction. We first prove that $x^4+2x^2+2$ is not a perfect square for all integers $x$ (which is true since $x^4+2x^2+2 = (x^2+1)^2+1$) and then proceed with the inductive hypothesis. Is there an easier way of solving this?


I was trying to install java8 in my ubuntu 14.04 machine. I am getting the following errors. I have tried many solutions available in internet but the floowing error is repeating every time.  Oracle JDK 8 is NOT installed. dpkg: error processing package oracle-java8-installer (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of oracle-java8-set-default:  oracle-java8-set-default depends on oracle-java8-installer; however:   Package oracle-java8-installer is not configured yet.  dpkg: error processing package oracle-java8-set-default (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                                                                                Errors were encountered while processing:  oracle-java8-installer  oracle-java8-set-default E: Sub-process /usr/bin/dpkg returned an error code (1)   Thanks in advance..


What is the correlation of a copula of a multivariate normal distribution?

If $X_1, X_2 \sim \mathcal{N}(0,1)$ with correlation $\rho$, and $Y_1 = F_{X_1}(X_1)$ and $Y_2 = F_{X_2}(X_2)$, what is the correlation between $Y_1$ and $Y_2$? What is a proof that the correlation of $X_1, X_2$ is tightly coupled with the correlation of $Y_1, Y_2$, i.e. when the correlation in $X$ is low/high, so will be the correlation in $Y$?


Removing Windows XP and installing Ubuntu 12.04

I have installed Ubuntu 12.04 on my laptop. Since I hate Windows, I would also like to install Ubuntu on my desktop. It has two 1TB drives in ntfs (one drive is 1TB partition and other 1TB is C: 500GB partition for Windows XP and f: 500GB for data and programs) and I have searched the FAQ and did not come up with an answer if I would lose my data on ntfs drives or if they would mount.   I am a beginner to Ubuntu and do not know how to use the terminal, but I have been using Windows since early DOS. I am 63 and my memory is slipping. I just want Bill Gates out of my computers. I have a Windows tech charging me now to see why my copy of XP Pro is saying it may be counterfeit, and I know that it is not. $99.00 and he will likely tell me I will have to buy a new key at some price. "Love Ubuntu". Also is there any place that I can get a complete list of commands for use in the terminal for Ubuntu 12.04. Thanks for your kind understanding.


1) Australia has won the World Cup Cricket.      2) Australia have won the World Cup Cricket.   Which sentence is correct? Also, I would like to know more contexts where 'country has' and 'country have' are used.


Trying to create an instance of T based on a string to pass to a generic method

I have a class name as a string. I can then use the following to create a new instance  var assemblyName = Assembly.GetExecutingAssemble().FullName; var myObj = Activator.CreateInstance(assName, myClassName);   My issue is that I have the following generic method declaration  public static async Task myMethod<T>(string id) where T:IIdentity //boxing   I cannot call this method via   myMethod<myObj>("hello");   as myObj isn't of type T.  Is there a way that I can create a valid instance of myClassName that can be passed to my generic method?


I am a photography buff. I got my first DSLR camera 5 months ago ...and I need a flash to improve night-portraits  and indoor shots! the problem is that I don't have enough information about external flashes and as I read more about it, I'm more confused.. so I would be glad if somebody would tell me what is the basic functions and factors I should look for, and it would be nice if you suggest types and names with a price around 300$-420$. (I have nikon D7000 with 18-300mm 3.5-5.6)  Thanks:)


I'm trying to force the paper size with LaTeX, but all I can find are solutions like  and  in which the geometry is changed within the page instead of actually changing the page dimensions. How do genuinely change the paper size? (For instance to 100mm by 100mm) I use lualatex from Tex Live 2017 under Windows 7. Minimum working example: \documentclass{article} \usepackage[paperwidth=100mm, paperheight=100mm]{geometry} \usepackage{lipsum} \begin{document}     \lipsum \end{document}


Should I keep my swap file on an SSD drive?

I'm considering getting an SSD drive to run as the primary OS partition.  As I understand, this should provide a substantial improvement in performance.     My question is this: Should I leave the swap file on that drive?     The swap partition will be largely random seeks and so should benefit from the speed.  On the other hand, it will be constantly written to which will wear out the drive faster.


How to load database from SQLite DB file?

I want to create an SQLite file that will contain the database I will be using in my android app. I need to load it every time I start the app. An advice on how to do so would be very much appreciated. Thanks!


What does Wordpress do if I save a post without content/title?

I've created (as part of a theme) a few metaboxes for my post type. The metaboxes allow the user to interact with different instances of tinyMCE. Everything is working as it should, however, I can't for the life of me figure out which hook to use for publishing a post that is missing a title/content.  I've had a look at /wp-includes/post.php and was not able to find what I am looking for.  My question is: What happens when I click "Publish" when the post is missing content and a title? I know it gets created and is set as a "Draft" but it doesn't run the save_post hook. I'd also like to mention that I've tried using new_to_draft.  I've attempted using draft_post but I assume that because this is probably "auto-draft" it may not work (I have also tried "auto-draft_post").  add_action( 'save_post', array(__CLASS__, 'savePost')); static public function savePost($post_id) {     echo 'hello'; }


Java check if port is open and reachable for other computers

Is it even possible to check if port is open and reachable to others?  Right now I'm using to check if my listener is reachable by using  by simply entering port number.  What I want to know is it possible to make my application to detect if port is reachable to others, not using local ip.


Where does Word keep its autorecover data?

I accidentally closed Word withous saving a file. I had autorecover enabled. I immediately realised my mistake and pulled the plug on the computer and connected the hdd to another. How can I recover my document (t was not saved beforehand)  EDIT: I found parts of the document in the ~WRS and ~WRF files. Th e problem is to persuade Word to reconstruct the original, like it does with Autorecovery…


computing inverses in truncated polynomial rings manually for NTRU encryption

Can someone explain how to find inverses in truncated polynomial rings manually (i.e. on pen and paper)? As an example from the tutorial:     Example. Take $N=7$, $q=11$, $a=3+2X^2-3X^4+X^6$. The inverse of $a \bmod 11$ is   $a^{-1}=-2+4X+2X^2+4X^3-4X^4+2X^5-2X^6$, since      $(3+2X^2-3X^4+X^6)*(-2+4^X+2X^2+4X^3-4X^4+2X^5-2X^6) \equiv -10+22X+22X^3-22X^6 \equiv 1 \mod 11$.   How to find $a^{-1} = -2+4X+2X^2+4X^3-4X^4+2X^5-2X^6$, manually, not using the pseudocode?


What will be the remainder when $24^{1202}$ is divided by $1446$?

What is the remainder when $24^{1202}$ is divided by $1446$?      My Try :  $\gcd(24,1446) = 6$  So, By using Euler's theorem, I can write $24^{240} = 1 \pmod {241}$  Hence, $24^{1202} = 24^2 \pmod {241}$    How to solve this further to get $1446$ ?


Downgrade from iOS7(Final) to iOS 6.1.3?

Will it be possible to downgrade from iOS 7.0.1 to iOS 6 ? Just in case if i wanted iOS6 back.I'm asking about iOS7 final public version not the beta build.


I am looking at Dudley's proof of the existence of Mill's constant. It starts out as follows     The proof depends on the following theorem: there is an integer $A$ such that if $n>A$, then there is a prime $p$ such that   $$ n^3 < p < (n+1)^3 -1.$$   We will not prove this but we will use it to determine a sequence of primes$\ldots$   Where can I find a proof of this theorem?


Why I cant scan the the Whatsapp QR code?

I have tryed to scan the QR code using whatsapp for web, also I see the: ok, I got it, then a green line start to scan but noting happened, I just downloaded the app yesterday night and also Im in the right position of the phone and monitor.    Please can you help me? I have a: Samsung Galaxy Pro B7510.  Thanks a lot!


I'm trying to prove that proper subspaces of $ R^n $ are closed and have empty interiors.  To prove that they are closed I'm trying to use the fact that inverse images of closed sets are closed sets by continuous functions. So I'm trying to find a linear map such that a proper subspace of $ R^n $ is its Kernel but I don't know how to express it so that it would work on all dimensions.  Regarding the fact that they have empty interiors, I really don't know what to do.  Thanks in advance.


Need help with proving that group is not finitely-generated

I need to prove that $(\mathbb{Q}^*, \times)$ (i.e rationals, zero excluded, under multiplication) is not finitely generated.   So, suppose that G is finitely-generated. That means there exist a finite set $S=\left\{x_1, x_2,...,x_n\right\}\subset \mathbb{Q}^*$ s.t. $\langle S\rangle=\mathbb{Q}^*$.    Now, all I need to do is to find a number $y\in\mathbb{Q}^*$ that cannot be generated by $S$.   Naively, I first thought of prime numbers, but that surely won't work. Please help me out here... how can I find a number $y\in\mathbb{Q}^*$ that cannot possibly be multiplication of $x_i$-s from $S$?  Thanks in advanced!


Creating Multiple Levels of Properties within a Class

I've worked with API's that had what appeared to be instances of methods within other entities, and I haven't been able to figure out how to recreate this for myself. For instance, if I have a class called "House", and there were different doors in that house, and I wanted to put a window in one of the doors, the code to work with the instance would look something like this:  House myHouse = New House; myHouse.Rooms("living room").Doors("front").PlaceWindow("frosted four pane");   I hope my representation makes sense. I've been living in VB.Net for months, and we're just starting to switch back to C#. I am really just curious about the This.This.This.This aspect.  I'd like to have an object that is this easy to use and manipulate, and I can only place properties and methods within a single class with my current knowledge. I just don't know what to search for in the search engines to figure out how to make this kind of class (or whatever type of compilation it is). If anyone could steer me in the right direction, it would help tremendously.


Trying to remember a book involving a girl from a distrusted race becoming a mage and a dragon

I read it as a paperback around 2009ish. There are at least two books in the series. In the first book, we learn that the protagonist lives up in the mountains. Her people are distrusted by the people in the plains, and I think have either dark or olive skin. She leaves home to learn magic, something I think is rare in the world she lives in. When she arrives, there's a crazy power-hungry man at her destination and she has to hide who she is because otherwise he'd have her killed to prevent her from surpassing him. At some point, she winds up in a set of chambers set into the mountain where she finds a pool of water and carvings about dragons. Somehow, this leads into her learning to become a dragon, I think perhaps after meeting one. I want to say that the sequel got into her having dreams that turn out to be partly prophetic and partly communication.  One of the reasons the book sticks out in my memory is that, despite the mentions of the protagonists dusky skin, the cover depicts a fair-skinned blonde girl, I think holding a glowing globe of light.


How many mobile phones can I bring to India?

I am traveling from the UK to Delhi and I am bringing 4 phones with me + mine the rest are for friends.  These phones are all used so will this be an issue in bringing them through customs?


What are the mechanical consequences of a Centaur's Fey trait?

have the Fey trait (Guildmaster's Guide to Ravnica, pg. 16):     Fey. Your creature type is fey, rather than humanoid.   What does this mean in terms of gameplay? I know that certain spells, such as hold person, require a humanoid target, so a centaur wouldn't be affected by that spell. But what about any implicit mechanics?  In the intro to the Monster Manual (pg. 6) and the , it says under "Type":     The game includes the following monster types, which have no rules of their own.   So does this mean that the only consequence of them having the Fey trait is that they cannot be affected by spells and effects that target humanoids, and can be affected by spells and traits that target fey, and that's it?  For context, the reason I'm asking is that I want to give the playable elven subrace Eladrin the Fey trait as well (to make them consistent with the "monster" Eladrin stats, where they are listed as fey), and want to know the mechanical consequences of doing so.


Say a $\Bbbk$-algebra is separable if $L\otimes _\Bbbk A$ is reduced for every field extension $L/\Bbbk$, and reduced if its underlying ring is reduced.  Separable always implied reduced, and I found a result saying the converse is true over perfect fields. However, I would like an instructive counterexample of a reduced $\Bbbk$-algebra which is not separable. How can such a thing happen?


How to define a pgf curve with points instead of controls?

The syntax to produce a Bézier curve in pgf is  \pgfpathcurveto{first control point}{second control point}{target}   This defines the curvature by control points. Considering the degrees of freedom the curve definition provides, it should also be possible to define the shape by stating two points on the curve.  TikZ provides this with the smooth parameter as shown in . But within \pgfdeclareshape, TikZ luxury is not available. While declaring a shape to cleanly surround the text box, a pure pgf solution is needed. This would greatly simplify it to surround the text box by a curve.     In the result, the text box is marked in gray. The surrounding shape should exactly pass through the corner points of these gray rectangles.     So, is there some command like this?   \pgfpathcurvethrough{first relay point}{second relay point}{target}


Is there any way to import a .json model into Blender?

I need to find a way to import some .json models into Blender, and it seems I can't just import them the same way I can import a .obj model. So is there some way to convert a .json model to a .obj model, or another file type Blender can import? I've tried using Blockbench for this, but I think it only works with Minecraft recourse pack .json models, as those are the only models that will ever actually load in it. Thank you to anyone who can help me figure this out.


Failed i3wm install package has unment dependinces

Tried installing i3wm from these instructions using the Ubuntu ppa   Got this error when I typed in the final command apt-get install i3  sudo apt-get install i3 Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  i3 : Depends: i3-wm (= 4.6.1-1+g4.6-88-ge99158e1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   When I tried downloading the .deb file and running it I get an error in the software center saying  "Dependency is not satisfiable: i3-wm (=4.5.1-2)   Any ideas I am pretty much a noob


Expression from "Lord of the Flies" that I cannot understand

All round him the long scar smashed into the jungle was a bath of heat.   English is my second language, my first language is Spanish.  I don't understand this sentence at all. Please explain.


How to run pdftotext ... | grep on many documents?

Code which works with a single document  pdftotext *.pdf - | grep therapy   You can use find as described in the thread  but I would like to understand why the above command is not working.   Differential code where pdfgrep may add some benefit but still early in development   pdftotext *.pdf - | pdfgrep therapy #Wrong syntax so error # Usage: pdfgrep [OPTION]... PATTERN FILE... # Syntax Warning: Invalid Font Weight # Syntax Warning: Invalid Font Weight   I would like to get then a fast way to move to the specific pdf page if there is a good match.  However, I have not found any evidence that such a feature exists.   OS: Debian 8.5 Linux kernel: 4.6 backports Hardware: Asus Zenbook UX303UA Poppler-utils: pdftotext


Chat replies ending with an apostrophe get messed up in inbox notifications

I noticed this morning that a chat reply, with the last character in the preview being an apostrophe, was messed up.  (; (since it's the TL, it's blacked out) ;)    I then tested it with a sock of mine:    In both of these, the last character shown in the preview was '. They both did not show correctly.    The apostrophe does show correctly if it's not the last character:


How long can Moderator Resignation notices be featured?

How long are moderator resignation posts allowed to be featured in the sidebars of our sites?


I often hear that gravitational force is much "weaker" than electroweak and strong forces. But how can you compare the strength of interactions without the parameters like mass, charge on which it depends? Surely the gravitational force can be made as (practically) strong as one wants by increasing the mass?


I have a number of shapefiles in different CRSs (mostly WGS84 lat/lon) that I'd like to transform into a common projection (likely Albers Equal Area Conic, but I may ask for help on choosing in another question once my problem gets better-defined).  I spent a few months doing spatial stats stuff in R, but it was 5 years ago.  For the life of me, I cannot remember how to transform an sp object (e.g. SpatialPolygonsDataFrame) from one projection to another.  Example code:  P4S.latlon <- CRS("+proj=longlat +datum=WGS84") hrr.shp <- readShapePoly("HRR_Bdry"), verbose=TRUE, proj4string=P4S.latlon)  # Shapefile available at  #   http://www.dartmouthatlas.org/downloads/geography/hrr_bdry.zip  #   but you must rename all the filenames to have the same  #   capitalization for it to work in R   Now I have a SpatialPolygonsDataFrame with appropriate projection information, but I'd like to transform it to the desired projection.  I recall there being a somewhat unintuitively-named function for this, but I can't remember what it is.  Note that I do not want just to change the CRS but to change the coordinates to match ("reproject", "transform", etc.).  Edit  Excluding AK/HI which are annoyingly placed in Mexico for this shapefile:  library(taRifx.geo) hrr.shp <-    subset(hrr.shp, !(grepl( "AK-" , hrr.shp@data$HRRCITY ) |                                      grepl( "HI-" , hrr.shp@data$HRRCITY )) ) proj4string(hrr.shp) <- P4S.latlon


Is mobius groups isomorphic to PSL(2,C) or PGL(2,C)?

I'm looking at the  on Mobius group. But I didn't get if this group is isomorphic to $PSL(2, \mathbb{C})$ or to $PGL(2, \mathbb{C})$


This is a variation of a famous problem, that I have heard before but I have never seen it in this format before.      $N$ Guests arrive at a party, each wearing a hat. We collect all the hats and then randomly redistribute the hats, giving each person one of the $N$ has randomly. Letting $X_N$ be the number of hats that are matched correctly, what is the $PMF$ of $X_N$? I.e.    $P(X_N=k)=$   The common variations of this problem that I have seen usually involve the probability that no one gets the correct hat or as $N$ approaches $\infty$. I am struggling to identify a distribution that would result in any type of general formula for $PMF$ of this random variable. Has anyone seen this before?


Free Google Drive Client to Sync files/folders for Ubuntu 16.04?

I want to sync my files on the Google Drive cloud and use them offline for free.  I have many types of files on Google Drive.


Getting ERR_CONNECTION_REFUSED after changing nameserver for a domain

Hello everyone I have a website which was hosted in digital ocean server and now i changed it to AWS. After changing the nameserver, when i access the domain i get error saying  refused to connect. ERR_CONNECTION_REFUSED. Is it normal to get this error after changing Nameserver? I did research on aftereffect of changing nameserver and came to know about domain propagation. So is this the error message i get when its in propagation state? Or problem could be something else? I checked the domain in intodns.com and it shows record of new nameservers and IP ie AWS, but when i check with dig NS mydomain.com it show old IP and nameservers ie digital ocean. Any idea what might be causing this? Solutions?


How to scan/fix bad sectors on USB connected Ext HD even if SMART is unsupported w/o buying tools

I dropped my external Seagate 2 TB hard drive on the floor.  It seems to work fine.  But I want to scan for bad sectors just to be safe.  I use this drive for all of my TimeMachine backups.  The  post is about checking your hard drive and has tools you can buy (recommended by the community), or things you can try which I tried and which did not work.  On a Windows machine, you can take any connected drive, run scandisk on it, and detect/repair bad sectors.  Is there a way to do this for my drive on Macintosh (without purchasing third party tools)?  More info:   Disk Utility -> Info says that SMART status is "unsupported". The drive is formatted as HFS


Because I find them fascinating, I'd like to hear what folks in this community find as the most interesting statistical paradox and why.


Inconsistent calculation of divergence in spherical coordinates

I want to calculate $\nabla\cdot(\frac{\hat{r}}{r^2})$ Naively applying the expression for divergence in spherical coordinates gives $\nabla\cdot(\frac{\hat{r}}{r^2})=\frac{1}{r^2}\frac{\partial}{\partial r}(r^2 *\frac{1}{r^2})=\frac{1}{r^2}\frac{\partial}{\partial r}(1)=0$ However, based on the context in which this problem arose, I believe there should be a delta function. You can get this by noticing: $\nabla^2\frac{1}{r}=\nabla\cdot(\nabla\frac{1}{r})=-\nabla\cdot (\frac{\hat{r}}{r^2})$ Thus $\nabla\cdot(\frac{\hat{r}}{r^2})=-\nabla^2\frac{1}{r}=4\pi\delta(\vec{r})$ Can anyone point out where the error is? I suspect there is an issue cancelling out the $r^2$ in the first method due to that covering up the zero-in-denominator issue, but I would like to understand precisely what goes wrong.


How to make an international emergency call?

I don't want to know the emergency number in case I'm IN a different country. What I want to know is, if I am, say, in France, and I know someone in Sweden needs emergent services, how can I call, from France, the emergency services in Sweden? Forgive me if that sounds confusing, but I'm surprised nobody has asked this question, even if it may be stupid. I'm wondering if I can call help for someone in a different country, if I know they need help and am the only one able to call, maybe by adding a country code. Would that work?


Dell Inspiron 6400 indicates the wrong power adapter is plugged in and will not charge the battery

I am using the original power adapter with the Dell Inspiron 6400 laptop and now when it boots up I get the following error message.  The AC power adapter type cannot be determined. You system will operate slower and the battery will not charge. Please connect a Dell 65 W AC adapter or higher for best system operation. To resolve this issue, try to reseat the power adapter."  I don't have another power supply or laptop to try. Is there a way to test the power supply, or whatever the computer uses to determine the power supply size?


Hosting one webpage with a different host?

I have a small website and have a free (shared) web hosting package but I have recently created a node.js app and I want to purchase a cheap vps with a different web host for it. The vps plan has limited storage so I will still be dependent on the shared hosting plan.  It it even possible to do this? Let's say I have mywebsite.com using shared hosting and I want to host the specific page mywebsite.com/nodeapp on another web host with which I have purchased the vps. I can't seem to find this info anywhere and I would like to know before purchasing the vps. Thanks in advance for your answers.


jQuery event not firing on dynamically generated content

I an using ASP.NET MVC 4 to dynamically load a PartialView which contains  a  option. I want to bind a jQuery dblclick event to this and get the selected option, but the event is not firing. Here is my code:   <select size="5" id="popup-list">      <option value="test">test</option>  </select>   jQuery code:  $(document).ready(function(){      $("#popup-list").live("dblclick", function () {         var name;         $("select option:selected").each(function () {             name = this;             name = this.text();         });     });  });   I am not sure as the why this is causing a problem. The code is in a document.ready(), which should take care of the dynamic loading.


How can I modify the small icon and title bar fonts in Unity?

As you can see in the screenshot, the fonts for the title bar (any window) and for the icons within the file browser (as well as in the navigation pane to the left) are very very small, I have tried to fix this by a number of ways including using MyUnity, but to no avail. Could someone please help me with this as it can render my PC unnavigatable unless I'm sitting right up against it, and even then I struggle. I am using Ubuntu 12.04.


Password used during installation of Ubuntu 15.10

I'm setting up this box for a friend, and entered a simple password during installation. I set it to auto login, so it does come up to the desktop.    All setup and ready to reset the password to one of their choosing, and the password I used is rejected.  Quite sure I am entering it correctly, caps off, etc.  Tried both the gui and sudo password.    Since this is a fresh install, does it just make sense to reinstall?


Cross-posting between SE sites and 3rd party sites

I know one must not cross-post between SE sites. But am I allowed to post the same question, say, on AskDifferent and Apple Support Communities?


Calulate area when two circle intersect each other

I have Sphere with radius R. Inside the sphere I have Two circle. One circle is fixed defined by $\alpha$. Another circle can rotate and the orientation of that circle can be defined by $\beta$. From the centre of the sphere until the edge of the movable circle create $\alpha$ angle with $z$ axis. $h$ and $a$ are distance from the origin and base radius of this circle .  Now when both circle intersect each other what will be the surface area of intersection? Using spherical coordinate system $r,\theta,\phi$, I know that my $\theta $ limit goes from $\gamma$ to $\alpha$. But I am not getting the limit for $\phi$ with this given parameters. I am trying to calculate the intersected surface area using only calculus and trigonometry for relevancy of my future problem.


where are C++ string literals allocated ? Stack or Heap?

I am learning C++ and I came across string literals. I am wondering where strings literals are stored in C++ (stack or heap) ?


I run `sudo apt-get remove python2.7`, can I restore my Ubuntu now?

I wanted to remove and reinstall python2.7 interpreter on 12.04  But when I did sudo apt-get remove python2.7, The crazy terminal started to remove everything!!! Any idea how I can restore whatever I've removed?


Please help me to find the sum $\sum\limits_{n\geq1} \frac{\sin(nx)}{n^2}$

I must show that $\sum\limits_{n\geq1} \frac{\sin(nx)}{n^2}$ converges $\forall x \in {R}$. Then  if $f(x)=\sum\limits_{n=1}^\infty f_n(x)$, I must prove that  $f(x)$ is continuous for $x\in [0, \pi]$  and  $\int\limits_0^\pi f(x)=2\sum\limits_{n=1}^\infty \frac{1}{(2n-1)^3}$.  I used Weistrass M-test: $\sum\limits_{n\geq1} \frac{\sin(nx)}{n^2}$ converges uniformly because $|\frac{\sin(nx)}{n^2}|\le \frac{1}{n^2}, \forall x\in R$ and $\sum \frac {1}{n^2}$ converges.  I found somewhere that $f(x)=\lim\limits_{n\to\infty}f_n(x)$. Where does it come from? I don't understand. How $f(x)$ looks like? Without $f(x)$ I don't know how to prove the last equality from exercise:(    Later edit: If $ \sum\limits_{n\geq1}f_n\to f$ uniformly , then $f_n\to f$ (punctual converges to $f $- I hope this is correct translation) which means $f_n(x)\to f(x)$ when $n\to \infty ?$   I hope someone could help me again...


Computing the cohomology group of CW-Complex

I am stuck on the following problem from Lundell’s “Topology of CW Complexes”.  Let $X$ be a finite CW-Complex.  For every $i$, suppose that $dim_{F_p} H^i(X,F_p)$ is independent of the choice of the prime number $p$ ($F_p$ denotes the finite field).  Prove that $H^i (X,\mathbb{Z})$ are free for all $i$, where $\mathbb{Z}$ is the set of all integers.  My problem is that I do not know how to do that considering the finite field.  Assuming that condition above, how can I prove that $H^i (X,\mathbb{Z})$ are free groups deriving from that?


Prove the following statement: "Let $G$ be a group, and $N ⊲ G$. Then $G/N$ forms a group under the operation $(gN)(hN) = ghN$ "

I had this as a statement in my book, but I am unable to prove it using the four basic properties of a group:   Closure Associativity Existence of identity Existence of inverses.


Incremental updates for percentile estimates

I want to estimate percentile statistics for time-series pairs $(t, y)$ over varying granularities of time (hour, day, month, etc)  For example, if I have the following pairs (10:59, 3), (11:01, 2), (11:32, 5), the first point is part of a different hour window, but all three are part of the same day window.  When a new point arrives, I am recomputing the hour window statistics directly, by iterating over all data points in the window. Unfortunately, this does not scale to the longer time windows.  Is there a way to incrementally update the statistics for the longer time windows?


So this what happens, at first blender plays nice, no lag and fast response using the .zip installer. Then I decided to make a new partition for my 3D works and programs and this where it start to become laggish, I also tried to use trial version of C4D and MAYA and also it happens, same as laggish as blender.  By the way, these are some of my specs:  Processor: Intel i3-4005U @ 1.70 GHz (4 CPUs) OS: Windows10 Home SL  RAM: 4096 MB  Renderer:  nVidia Geforce 930M   All drivers are updated, DirectX 12 Version


Let p be prime. If a group has more than $p-1$ elements of order $p$, why can't the group be cyclic?

Let $p$ be prime. If a group has more than $p-1$ elements of order $p$, why can't the group be cyclic?  Can I assume that the group must be finite group since there is at least one element with finite order?   And I am wondering now if all cyclic groups are finite, or all finite groups are cyclic?


I cannot use exfat formatted USB because of mount error

Unable to mount DVN   Error mounting /dev/sdc1 at /media/leon/DVN:   Command-line Output:  mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,iocharset=utf8,namecase=0,errors=remount-ro,umask=0077" "/dev/sdc1" "/media/leon/DVN"' exited with non-zero exit status 32: mount: unknown filesystem type 'exfat'


Save for web is making my Illustrator file blurry. (30x30pixels)

I've been stuck on illustrator for legit 2 days. All I am trying to do is create a simple icon at 30x30pixels for an app project I am making. The drawing consists of like 4 black lines. Looks perfect in Illustrator, but then as soon as I save for web its blurry. I switched from Photoshop to Illustrator as I was told vectors will make cleaner/sharper lines.   What is going on? Am I fighting a losing battle here? When an image is 30x30 pixels is it possible for them to be unpixelated? Please someone help !!!! :( PS have looked at so many other forums.


Is there a way to shut down a Nether portal with redstone?

Since it is no longer possible for flowing water to deactivate a Nether portal, you can't use pistons to push blocks into the nether portal and finally you can't move the obsidian powering the portal with pistons; is it possible to deactivate the portal some other way with redstone?  I'm not too interested in detonating TNT near the portal either, ideally the method needs to be reusable and not destroy the surrounding mechanisms.   Bonus points for activating a Nether portal with redstone as well.


Is there a way to hide applications from other desktops/workspaces in the Unity launcher?

I don't want to see applications that are opened on my other desktops (workspaces) in my Unity launcher (or sidebar, whatever it is called). I find it annoying and would prefer if Unity just dealt with one desktop/workspace at a time.   Is there a way to do this? I have a feeling the answer will be no, but I'm asking anyway... maybe it will be implemented in future versions.


Is it possibly to say "take this" or "take that"?

Sometimes could be see sentences like "take this one". And I don't know which one is correct.


Acceleration of a container in thermodynamics

How will accelerating a container with an ideal gas in it affect the conditions? My initial thoughts are that the ideal gas will collect at the opposite end of acceleration, which means that the volume drops. According to the formula $PV = nRT$, either the pressure or the temperature would have to raise as well. Firstly, which quantity would rise if I just squeezed a gas in normal conditions? I don't see how I can differentiate between squeezing isothermally and squeezing isobarically, so would they both rise?  Upon further thought however, we are already experiencing 9.8 metres per second squared acceleration, and that has minimal effect at low heights. So does this mean at low accelerations the afore-mentioned effect can be ignored?


Why penalized logistic regression doesn't provide Z value like in glm?

I have been employing logistic regression in my research using glm function in R. However, as the separation problem exists, I am now using firth penalisation through logistf package. I noticed that this results in Chisq value instead of Z value as in glm. My question is could anyone please explain why firth penalisation results in Chisq instead of Z value as in glm?


The set of irrational numbers is not a $F_{\sigma}$ set.

I want to proove that the set of irrational numbers is not a $F_{\sigma }$ set and also the set of rational numbers is not a $G_{\delta}$ set using Baire theorem.  I started with saying that $\mathbb{R}$\ $\mathbb{Q}$ is a $G_{\delta}$ set because $\mathbb{R}$\ $\mathbb{Q}$ = $\bigcap_{ q\in\mathbb{Q}}^{}$$\mathbb{R}$\ {q}.   So, if $\mathbb{R}$\ $\mathbb{Q}$ were also $F_{\sigma }$ then $\mathbb{Q}$, as a complementary, would be a $G_{\delta }$ set.   Both $\mathbb{R}$\ $\mathbb{Q}$ and $\mathbb{Q}$ are dense in $\mathbb{R}$ and ($\mathbb{R}$\ $\mathbb{Q}$) $\cup $ $\mathbb{Q}$ = $\mathbb{R}$, so the whole space can be written as a sum of two dense and $G_{\delta }$ sets.   I've read that this is a contradiction with Baire theorem, but I can't see this.


How much related story is there between parts of The Witcher series?

I'm new to the Witcher series and wonder if I should spend time going through all of them. I read that the story is somehow related and there's even ability to import saves from previous parts into the next ones. I had a similar experience with Mass Effect, where having started with second piece I eventually replayed the game starting from ME1 for a much more rich experience when I could understand story behind characters from ME1 (and later ME2) showing up in the game.  Thus ultimately my question is, how the three Witchers are related in terms of story (NPCs with history, locations, quest decisions etc.) and if how much time will I have to devote to parts 1 and 2 if I only consider the core story-line of those?  There's a , but it only considers the first two Witchers.


What exactly happens when LaTeX runs on a dtx file?

I am confused on how docstrip/ltxdoc really runs. It seems that LaTeX runs twice when called on such a simple dtx file.  % \iffalse %<*installation> \expandafter\begingroup \input docstrip.tex \keepsilent \askforoverwritefalse \nopreamble \nopostamble \generate{\file{\jobname.cls}{\from{\jobname.dtx}{latex}}} \expandafter\endgroup %</installation> %<*documentation> \ProvidesFile{\jobname.dtx} \documentclass{ltxdoc} \begin{document}   \DocInput{\jobname.dtx} \end{document} %</documentation> %<*latex> % \fi %    \begin{macrocode} \newcommand{\mystuff}{mystuff} %    \end{macrocode} % \iffalse %</latex>  % \fi   I understand the first pass easily: docstrip is read and produces the .cls file as asked by the \generate command (the installation block).  But then a second pass seems to be done with the first group (from \begingroup to \endgroup) being ignored and the rest of the file (the documentation block) being used as normal LaTeX code thus producing the expected .pdf (or .dvi file).  If the \expandafter\begingroup and \expandafter\endgroup lines are removed only the first pass is done and an error is raised.  I read the docstrip documentation (and code but certainly not seriously enough) but did not find any allusion to this double execution.  So I am looking for answers to the following sub-questions:   Am I right (two passes)? Did I miss something in the docstrip documentation (if yes where)? Is the code read twice or once? Why do we need the first group to exist in order for LaTeX to produce the two expected files?


I was trying to upgrade to Ubuntu 18.04 from 17.10, and I used the Ubuntu Software / updates, but it gave an error. Also my laptop has logged me out of sessions/restart from Ubuntu login screen twice.   Is this due to not being on 18.04? Also I have used sudo to add Mint desktop repository as an option.   I see this error as shown in the photo:  tpw tpw0: A TPM error (325) occurred stopping the TPM


Are there endoscopic technologies for blood vessels?

Endoscopic procedures are used to look inside cavities like intestine, esophagus etc. Is it being used to look inside blood vessels?


Is there a sandbox for the API where I can post questions?

Is there a sandbox site for the Stack Exchange API?  I have found a couple of questions which were made for testing answers (EG ), but no way to test posting or editing questions.


What is the definition of positive semi-definite function in $R^3$?

The definition of positive definite function is something like:     for all nonzero $x\in R^n$ then the quadratic function $V(x)=x^TPx>0$ where $P \in R^n$x$R^n$ is a positive-definite matrix.   for example when I am studing the vector $x=[x_1,x_2]^T$ , the quadratice chosen function $V=0.5(x_1^2+x_2^2)>0$ is a positive definite function.  But in one textbook I have found that for a system with three state, i.e $x\in R^3$ for example $x=[x_1,x_2,x_3]^T$ if we choose the quadratic function as :  $V=0.5(x_1^2+x_2^2)$ then this chosen function is positive semi-definite in $R^3$.  I can't understand why the last function is positive semi-definite in $R^3$ and not positive definite? I thought that because it has been taken only two states i.e $x_1,x_2$ and it has been dropped $x_3$. But I didn't understand the idea of that.


Is there any way to find the runtime error code for c. Like if our c program gets executed successfully then main returns "0" otherwise any nonzero value according to the error occurred. I want to know how to find that code returned by main on windows platform ?


Finding the limit of the sequence $(1 - 1/\sqrt 2) \dotsm ( 1 - 1/\sqrt {n+1})$

Let   $$  a_n =  \left( 1 - \frac{1}{\sqrt 2} \right)  \dotsm  \left( 1 - \frac{1}{\sqrt {n+1}} \right),  \quad  n\geq 1. $$   Then $\lim_{n \to \infty} a_n$         is $1$,   is $0$,   does not exist,   is $\frac{1}{\sqrt\pi}$.      I tried this using the sandwich theorem as $$  0 \leq \sum_{r=1}^{n} \frac{-1}{\sqrt r+1} \leq \frac{-n}{\sqrt {n+2}} $$  which goes to zero. I am not sure though.


Intuitive reason why the Fisher Information of Binomial is inversely proportional to $p(1-p)$

It confuses/blows my mind that the Binomial has variance proportional to $p(1-p)$. Equivalently, the Fisher information is proportional to $\frac{1}{p(1-p)}$. What is the reason for this? Why is the Fisher Information minimized at $p=0.5$? That is, why is inference most difficult at $p=0.5$?  Context:  I'm working on a sample size calculator, and the formula for $N$, the sample size needed, is an increasing factor of $p(1-p)$, the result of a variance estimation in the derivation.


determinant of 4x4-matrix occuring in Zarhin's trick

What's the easiest/fastest way of calculating the determinant of $$\begin{pmatrix}a & b & c & d\\ -b & a & -d & c\\ -c & d & a & -b \\ -d & -c & b & a\end{pmatrix}$$? The result is $(a^2+b^2+c^2+d^2)^2$. This determinant occurs in Zarhin's trick (if $A$ is an Abelian variety, $(A \times A^t)^4$ is principally polarised).


A normal matrix with real eigenvalues is Hermitian

$A$ is a normal matrix (i.e. $AA^*=A^*A$, where * denotes the hermitian conjugate). If all its eigenvalues are real, prove that it is Hermitian (i.e. $A^*=A$).  I have tried many things but could not complete a proof. Could anybody please provide some help?


why is the set of all binary sequences not countable?

What is wrong with this reasoning: The union (finite or infinite) of countable sets is countable. The set of all binary sequences is the infinite union of the sets $S_n$ of all the binary sequences of length n, which are finite, hence countable.


Logged out, but still logged in?(not duplicate as answer for that duplicate is not my issue)

I found this question and still asking this again since I have clicked 'logout' button properly.(Two times, on top once and then the logout button appeared after this). After all these, I just clicked in the text box for openid, then It showed that I have logged in again. I am using chrome and it was in incognito mode. I cleared the cookies in content settings once.(But I don't see a reason for doing that since the message shows that your local settings will be cleared).   I tried 2 or 3 times and got this. And once I got the error saying this is our fault it is not you message.


Cast interface to its concrete implementation object or vice versa?

In C#, when I have an interface and several concrete implementations, can I cast the interface to a concrete type or is concrete type cast to interface?  What are the rules in this case?


My old xournal is 0.4.5, which is /usr/bin/xournal. I just installed a new version 0.4.8 by compiling from source to /usr/local/bin/xournal.  When I call xournal directly from the terminal, it is the old version.  $ xournal   When I call /usr/local/bin/xournal, it is the new version.  $ /usr/local/bin/xournal    But which shows that xournal is /usr/local/bin/xournal  $ which xournal /usr/local/bin/xournal   Isn't which supposed to show the actual path when calling xournal?  My PATH puts /usr/local/bin before /usr/bin, so why doesn't calling xournal  call /usr/local/bin/xournal but /usr/bin/xournal?  $ echo $PATH ”/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games”    Thanks.


Beamer tells me \textsubscript is undefined. Isn't it a core LaTeX command? How can I use the command in Beamer?  This example throws "undefined control sequence" errors and does not subscript the numbers.  \documentclass{beamer} \newcommand{\octave}[1]{\textsubscript{#1}}  \begin{document} \begin{frame} Musical octaves are designated with subscript numbers: A\octave{1}, A\octave{2}, A\octave{3}, and so on. \end{frame} \end{document}   ANSWER/WARNING  The package fixltx2e provides a \textsubscript command.  The memoir document class (and probably others) loads fixltx2e by default; beamer does not. If you want to write a package that you can use in both classes, adding \RequirePackage{fixltx2e} can cause problems with any class that already loads that package.   But if \textsubscript is the only reason for loading fixltx2e, then it is better to use the subscript package instead.


In Visual Studio website projects (in Visual Studio 2005 or later, not web application projects where there is still a .csproj file) how is the reference information stored, and is it possible to source control it without storing compiled binaries in source control?  If you right-click on a website project and select Property Pages, the first screen (References) lists all the project references.  System.* references are listed as type GAC, and other DLL files can be listed as BIN or Project.  The problem occurs when you include something as a project reference, and then commit it to source control (for us, Subversion, ignoring .dll and .pdb files.)  Another developer gets updated code from the repository and has to manually set up all of these project references, but I can't even determine where this information is stored, unless it's in that .suo, which is NOT source-control friendly.


Which of the ATI Dynamic Switchable Graphics are used when there is no "switching" utility?

I have a ATI Dynamic switchable graphics on a HP Pavilion g7 (hp pavilion g7-1246ef) but it has no support in Win7 32-bit.   It seems that I have 2 VGA controllers:   One on-CPU Intel for energy-efficiency One discrete card (an ATI/AMD Radeon HD 6470M in your case) for rendering.     The Intel driver provided Aero support and other options and the Windows update gives a generic driver for AMD but drivers from AMD and HP made for the switching part (including AMD Catalyst Control Center) are not working in this case. More on this (especially the comments) - .  I gave up for now but I am curious what happens meanwhile.  I know that the AMD Catalyst Control Center allows choosing manually the VGA or letting the applications choose which VGA to use. But what happens when there's no AMD Catalyst Control Center present?


I've a permission problem on my dedicated webserver, but I'm not able to understand what I'm doing wrong.   Ubuntu 14.04 Kernel 3.19.2 Apache 2.4.7 PHP 5.5.9 MySQL 5.5   (all from official repository, except for kernel. It comes from vivid repository)  I've installed apache2 and it starts with user www-data  I've set a virtualhost /home/USER1/public_html (where ownership is USER1:USER1)  so If I install any CMS (like joomla, wordpress or phpbb) I get lots of permission problems and I'm forced to set chmod to 777 (OMG! Against common sense) in order to install one of them.  The "standard" mode for this kind of CMS is, as I understand 755 for directory 644 for files  But if I set these permissions, I cannot do anything with the cms (install anything or update it. Files will be considered unwritable). Same problem with 775  So the problem is that my webserver needs all permission to "OTHER" and not just for USER (or at least for GROUP)  In order to avoid this trouble I've added USER1 to www-data group  usermod -a -G www-data USER1   but files are still unwritable with 775 or 755. The only mode allowed still 777 (OMG it's horrible to write it 2 times in the same post :D )  What is the problem and how can I fix it?


In Ubuntu 18.04 with Ubuntu-Wayland. I configured Ctrl+Shift for switching keyboard layout.  And now in chrome Ctrl+Shift+T doesn't restore closed tab but only opens empty tab as Ctrl+T. How to fix it.  P.S. In Mint with KDE same configuration but all work perfectly.


When a person sees the word LaTeX the first time, they are likely to think of a rubber material whose name is simply typed with a weird choice of uppercase letters. This strange name leads to much confusion (even ridiculing) and is thus not the best choice from a branding perspective. Is there a good historical reason why, of all letter combinations you could put in front of TeX, Lamport had to choose La? Because of his own name?  In other words, why is it called LaTeX?


I'm unfamiliar with C++, but something that I am trying to build requires the C++ version to be C++ 20 (it uses some features that only cpp 20 has apparently). I believe my current version is lower than that (C++ 17 or something along that line). How can I update my version of C++ to the newest version? I am on Ubuntu 18.04.3 LTS.


Why does this echo call overwrite existing text?

Consider the following CSV file:  jdbc.driverClassName,oracle.jdbc.driver.OracleDriver  jdbc.username,kshitiz   It has to be transformed into:  -Djdbc.driverClassName=oracle.jdbc.driver.OracleDriver \  -Djdbc.username=kshitiz \   Given the following bash snippet:  while read l; do     IFS=',' read -ra arr <<< "$l"     echo '-D'${arr[0]}'='${arr[1]}' \' done <properties.txt   Bash prints:  \jdbc.driverClassName=oracle.jdbc.driver.OracleDriver   \jdbc.username=kshitiz   What's going on here?


How to deduce the number of elements in a finite group given the group generators?

I am studying for my finals, and I came across a question I don't really understand. We have a finite group $G$ with two generators: $a$ ($a^3=E$) and $b$ ($b^2=E$), where $E$ is the identity. We are also given the relation $(ab)^2=E$. Now the question asks to show that $G$ has $6$ elements that can be represented as $$E, a, a^2, ab, a^2b, b$$ I am not sure how I can deduce the number of elements in my group from my generators? Thanks!


How to prove that a polynomial of degree $n$ has at most $n$ roots?

How can I prove, that a polynomial function $$f(x) = \sum_{0\le k \le n}a_k x^k\qquad n\in\mathbb N,\ a_k\in\mathbb C$$ is zero for at most $n$ different values of $x$, unless all $a_0,a_1,\ldots,a_n$ are zero?


I'm facing the following problem while I run update in my terminal. I am using Ubuntu 12.04.  W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages) W: You may want to run apt-get update to correct these problems


Answer deletion is not really a deletion

I deleted my answer but still see it.   Will it stay like this forever? Who else sees it?   Also, I think it would be good to be able to really delete an answer.


How to overcome Access Denied when killing process in Windows?

How to kill process which does not want to? I have Access Denied message when trying to kill the process. I know it can be due to device driver waiting and probably this is the reason.  But my question is how to kill process nevertheless? I am administrator, I don't want a process to wait any device drivers or something. I want it to die.   How to accomplish this?  Running Task Manager, procexp and procexp64 as an administrator didn't help.


I'm trying to show terms of custom taxonomies. I have that. But, my problem is how to separate when I have multiple terms. My code:
     <?php $loop = new WP_Query( array( 'post_type' => 'member', 'posts_per_page' => -1 ) ); ?>     <?php while ( $loop->have_posts() ) : $loop->the_post(); $do_not_duplicate = $post->ID; ?>

<?php $terms = get_terms('department');                 foreach ( $terms as $term ) {                     echo $term->name.' and ';                 }             ?>
             <?php the_post_thumbnail('full'); ?>

<?php the_title(); ?>

<?php $terms = get_terms('position');                     foreach ( $terms as $term ) {                         echo $term->name.' and ';                     }                 ?>
                 <?php the_content(); ?>                 <a href="<?php the_permalink(); ?>">See Full Biography

     <?php endwhile; wp_reset_query(); wp_reset_postdata(); ?>
   With this I am able to display all terms used (good). But, I need it to say "and" only between terms. Right now, it says "and" after every term, even it's only one term. I know my problem lies within here:  <?php $terms = get_terms('department');     foreach ( $terms as $term ) {         echo $term->name.' and ';     } ?>   How do I only get the "and" to only show between terms and not after every term?


Just curious, reading the trivia section on IMDB for the LOTR films, in the trivia for TTT and  TROTK it says the following:     Tell-tale signs (grayer hair, blotchy skin) are introduced to show   that the Uruk-hai are an inbred set of creatures, who are already   starting to erode.   It is going on 10-15 years since I read the books and I am struggling to remember anything at all about this. Can anyone expand on this further and detail if they are actually falling apart?  I mean I understand that inbreeding is bad


Why does `htop` show more process than `ps`

In ps xf  26395 pts/78   Ss     0:00  \_ bash 27016 pts/78   Sl+    0:04  |   \_ unicorn_rails master -c config/unicorn.rb                                            27042 pts/78   Sl+    0:00  |       \_ unicorn_rails worker[0] -c config/unicorn.rb                                           In htop, it shows up like:   Why does htop show more process than ps?


Objects appear transparent when rendering

When I render in version 2.91 it looks transparent like this.


Why is Stolz–Cesàro is considered to be the l'Hôpital's rule for sequences?

Wiki states that: The Stolz–Cesàro theorem can be viewed as a generalization of the Cesàro mean, but also as a L'Hôpital's rule for sequences.  To be precise, Stolz–Cesàro  states that: If $$\lim_\limits{n\to \infty} \frac{a_{n+1} - a_{n}}{b_{n+1}- b_{n}} = \lim\limits_{n\to \infty} \frac{a_{n}}{b_{n}}=k.$$ In contrast L'Hôpital's Rule states that: $$  \lim_\limits{x\to \infty} \frac{f^{(n)}(x)}{g^{(n)}(x)}=  \lim\limits_{x\to \infty}    \frac{f(x)}{g(x)}= k.$$ Although some similarity is apparent, I can't see how one generalizes the other. L'Hôpital's rule is about derivatives of the numerator and denominator when Stolz-Cesaro is about sub-sequences.


I have a python list ['100', '20.0', '?', 'a', '0']. The list contains real strings '?', 'a' and ints and floats coded in strings. I am trying to find the (real) strings '?', 'a' in the list.


Why does the finder refuse to eject SOME of the external drives, saying "finder is using it"?

Some of my external drives (of various types, sizes, and age) can be ejected w/o any issue. Others refuse, saying they can't be ejected because "Finder is using it". I have to close the Finder window and open another window to eject these drives.  Is there any reason--any settings that I can control--why this happens?


I am trying to find all units in $\mathbb Z[\sqrt{2}]$. Suppose $x=a+b\sqrt{2}$ is a unit. Then there is $y=c+d\sqrt{2}$ such that $$xy=(a+b\sqrt{2})(c+d\sqrt{2})=1$$ So $$ac+2bd+(ad+bc)\sqrt{2}=1$$  From here one deduces $$ad+bc=0,$$$$ac+2bd=1$$  I've tried to find $c$ and $d$ from here or to get restrictions for $x=a+b\sqrt{2}$ but I couldn't. I would appreciate some help.


I was recently asked to review for an  open access journal. Is this a reputable publishing company? Their website suggests that they are 15 years old, and only do open-access publishing. The journal has a 3-year impact factor of around 2, which is not unreasonable for my field.