Are there specific techniques/filters for snowscapes?

It is fast becoming winter, and this will be my first winter that I have a decent camera, so I was wondering how to make the most of the seasons beauty.  I am wondering if there are any techniques that are good for capturing scenes that often occur during the winter in snowy areas. In particular, the terrain will be mostly mountainous, but not exclusively. Obviously there will be a lot of white, and during the day lots of reflection from the snow. I am interested in exposure technique, composition, and special filters. I currently use a circular polarizer, but I don't know what else is good in this situation.  I would also be interested in techniques and such for icy water photos. Some of the locations I will be shooting at will be near lakes and streams, likely to be overtaken by ice this time of year.  EDIT:  are some very inspirational pictures, I thought I would share them. :D


What is wrong with defining \bal as \begin{align}?

I'm trying to define two commands \bal and \eal instead of inserting \begin{align} and \end{align} in my document, but in the code below, I'll get some errors. What is wrong with it?    \documentclass{article} \usepackage{amsmath} \makeatletter  \newcommand{\bal}{%  \begingroup  \align% \@ifstar{\nonumber}{}%  }  \newcommand{\eal}{\endalign\endgroup} \makeatother \begin{document} \bal* x=y \eal \end{document}


Why is PI considered irrational if it is already defined as ratio of circumference to diameter?

Why is PI considered irrational if it is defined as ratio of circumference to diameter? And how do we close the value of circumference and diameter to a certain number without giving up accuracy at some point, be it after trillion digits? I know it is approximated via other rigorous mathematical techniques but how come we do not ever involve losing any accuracy at any point. How are we so certain of the irrationality of PI?


Trump is the 45th US president. How do you ask a question to get this number?


Zooming / Focusing certain parts of a chart in latex

I am using pgfplot to draw graphs in latex. Now this is the problem I am facing:  \begin{tikzpicture}[scale=1] \begin{axis}[ybar,grid=major,bar width=2pt,width=8cm, height=8cm,xmin=1,xmax=540,ymin=1,ymax=240] \addplot [draw=black,fill=green]  table [x=size, y=cluster, col sep=comma] {sim-0.4-0.6.csv}; \end{axis} \end{tikzpicture}   It generates the following graph:    Since, I have values mainly between 0-50 on x-axis, I want to zoom there. After that, values comes around 500. S0, there are no graph points between 50 - 450. How should I do that?


Can anyone please tell me if there is any need to backshift the tense?  Here is the example:     Yesterday, as a consultant I went to meet my friend Peter who has been found guilty of fraud. He claimed that he is/was not guilty of any fraud.   Can I use the 'simple present' too?


Taylor and Francis Manuscript Status "Under Review"

Does this status mean it has been sent to referees? Or is could it still be desk rejected?


Suppose to have this shortcode:  [spu-close class="" text="" align=""]   I want to show this short code when I click on a button this is  my html:   <input class="button b" onclick="openFile(link);"  type="button" value="download" />   and this is my js file:  function openFile(link){ //I want do something like this     do_shortcode('[spu-close class="" text="" align=""]', false );    //    }   I don't know how I can do this, anyone can help me?


What is the single word to describe a person who always likes to "celebrate"?

(edited) I am having trouble finding a single word to describe a person who likes to "celebrate". This is different from "party animal", "clubber", "reveller" or "socialite". Specifically, I am looking for a noun that is designated for such a person.  The said person has the personality that simply enjoys being with friends and likes to find occasions to celebrate, in good spirits. In addition, the said person not only goes to party, but s/he takes the initiative to propose having one to celebrate (an event/life/news...etc) whenever s/he finds the opportunity to do so.  Any help? Thanks.


Control figures grouped inside a section when there are a lot of them

I am working in my homework where there are a lot of figures.  I have a visual problem with figures which they must only placed inside a specific section, but they are shown in the next section. This is because I have a little text, and LaTeX tries to arrange my paragraphs and text for the best.  Is there any solution for that? I have tried with \hspace and \newpage, but doesn't work. I am working with \documentclass[11pt,a4paper]{article}, maybe I have to use another kind of document for my homework.  Please help me.


How to deduce the boundary for heat ball?

Here:    It's given a reasoning that gives out the heat ball interior and its boundary, separated.  However, I have troubles seeing, why must the boundary be that?    Can one perhaps use the reasoning that since $y$ grows to the positive direction and since the inequality limits $y$ from above, then $y$s at the boundary satisfy the equality part of the inequality?  However, how do I know that $y$ actually attains that value?


error when running java swing application from console

I'm working in a Java Swing application and I'm facing a strange error when running the app outside my IDE (i.e. in pre-production). BTW, I'm using Netbeans 8.2.  The application connects to a database and takes the configuration properties from a connection.properties file located in src/main/resources, which, of course, are packaged in the root directory inside the jar.  I am able to compile the application and run it from Netbeans with no problem: The properties are loaded, the connection to the DB is done and the data is being read and updated according to the business logic and so on.  The problem comes when I try to run my app from the console. From there I run  java -jar myapp-1.0.jar   And get the following error  ago 01, 2017 8:41:25 PM ar.edu.unt.jdbc.GestorJdbc loadPropertiesFromFile SEVERE: File not found java.io.FileNotFoundException: file:/path/to/my/app/target/myapp-1.0.jar!/connection.properties (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at ar.edu.unt.jdbc.JdbcManager.loadPropertiesFromFile(JdbcManager.java:216) ... etc   However, the file actually exists. The code from the method is as follows:  public class JdbcManager {      static final String JDBC_DRIVER_PROPERTY = "jdbc.driver";     static final String JDBC_URL_PROPERTY = "jdbc.url";     static final String JDBC_USER_PROPERTY = "jdbc.username";     static final String JDBC_PASSWORD_PROPERTY = "jdbc.password";     String PROPERTIES_FILE_PATH = "connection.properties";      private static final Logger LOGGER = Logger.getLogger(JdbcManager.class.getName());      // This method is being called with PROPERTIES_FILE_PATH as a parameter     // from another method in the same class     Properties loadPropertiesFromFile(String configFilePath) {         ClassLoader classLoader = getClass().getClassLoader();         File configFile = new File(classLoader.getResource(configFilePath).getFile());         Properties properties = new Properties();         try {             properties.load(new FileInputStream(configFile));             LOGGER.log(Level.INFO, "Properties loaded: {0}", properties);         } catch (FileNotFoundException ex) {             LOGGER.log(Level.SEVERE, "File not found", ex);         } catch (IOException ex) {             LOGGER.log(Level.SEVERE, "Error reading file", ex);         }          return properties;     } }   As I said, from Netbeans the file is read correctly. What am I doing wrong here? Thanks in advance for your answers.


I have this document, with problems building my bibliography  \documentclass[12pt, letterpaper]{article} \usepackage[english, spanish]{babel} %\usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern}  \usepackage{csquotes} \usepackage{xpatch} \usepackage{filecontents} \usepackage{hyperref}  \usepackage[backend=biber, citestyle=apa, bibstyle=authoryear-comp, sorting=ynt, url=false, isbn=false, doi=false, language=spanish, firstinits=true, hyperref=true, backref=true, maxcitenames=3, maxbibnames=10, mergedate=basic, firstinits=true, dashed=true]{biblatex}  %\inputencoding{latin1} \addbibresource{Biblio.bib} %\inputencoding{utf8}  \begin{document}     \parencite{CoaleDemenyVaughan1983}     \parencite{MacInnesPerezDiaz2008} \parencite{Levy1993}  \printbibliography \end{document}   And the bib file is this:  @PhdThesis{PerezDiaz2001,   Title                    = {Transformaciones sociodemogr{\'a}ficas en los recorridos hacia la madurez. Las generaciones espa{\~n}olas 1906-1945},   Author                   = {P{\'e}rez D{\'\i}az, Julio},   Type                     = {Thesis},   Year                     = {2001},   University               = {Universidad Nacional de Educaci{\'o}n a Distancia} }  @Book{CoaleDemenyVaughan1983,   Title                    = {Regional Model Life Tables and Stable Populations},   Author                   = {Coale, Ansley J. and Demeny, Paul and Vaughan, Barbara},   DOI                      = {http://dx.doi.org/10.1016/B978-0-12-177080-8.50005-6},   Edition                  = {Second},   ISBN                     = {978-0-12-177080-8},   Publisher                = {Academic Press},   URL                      = {http://www.sciencedirect.com/science/article/pii/B9780121770808500056},   Year                     = {1983},   Address                  = {New York},   Bdsk-url-1               = {http://www.sciencedirect.com/science/article/pii/B9780121770808500056},   Bdsk-url-2               = {http://dx.doi.org/10.1016/B978-0-12-177080-8.50005-6},   Type                     = {Book} }   So if I build without the inputenc package its fine, but with it, the first reference doesn work when I try to build the bibliography...Im writing in spanish and I export my references from endnote to jabref...Witch its the best process to avoid this problem????


Proving a relation with Four-velocity tensor

I'm trying to show that:  $U^a_{\space\space;b}U^bU_a = 0$ (Where U is four-velocity)  and I'm stuck on how to go about it. I tried expanding it out into the Christoffel symbols, but that didn't seem to get me anywhere.  Would really appreciate advice on what I should do to proceed.  Thanks.


Does expectation of a r.v. always converge?

Let X be a random variable. Will its expectation E[X] expressed as a (possibly infinite) sum converge for arbitrary X?  My intuition would be yes. Since E[X] is a function of a r.v., E[X] is a r.v. itself, so by definition it maps to the reals. The infinity is not a real number, so there will be a limit to which the E[X] will converge.  Of course you can construe a r.v. such that weighted sum will diverge, but is then the case that E[X] = $\infty$ or is E[X] said to be undefined?


Object instantiated is showing as null in Array List with objects

I am quite new to Java but I encountered the following error: Exception in thread "main" java.lang.NullPointerException: Cannot invoke "bussines.Plot$Rectangle.setRectangle(int, int)" because "java.util.ArrayList.get(int).rectangle" is null at bussines.Owner.buyRectangle(Owner.java:24) at construction.Application.run(Application.java:17) at construction.Application.main(Application.java:36) I will insert bellow the relevant code snippet: public class Plot {     Rectangle rectangle;     Square square;          public class Rectangle     {         public int length;         public int width;     }                  public Rectangle()          {             length = 0;             width = 0;         }                  public void setRectangle(int l, int w)          {             length = l;             width = w;         }                  public int getArea()          {             return length * width;         }     }          public class Square     {         public int size;                  public Square()          {             size = 0;         }                  public void setSquare(int s)          {             size = s;         }                  public int getArea()          {             return size * size;         }     } }  public class Owner {          public String name;     public ArrayList<Plot> landPlots;          public Owner(String n)     {         name = n;         landPlots = new ArrayList<Plot>();     }          public void buySquare(int lastUpdate, int size)      {         landPlots.add(new Plot());         landPlots.get(lastUpdate).square.setSquare(size);     }          public void buyRectangle(int lastUpdate, int l, int w)      {         landPlots.add(new Plot());         landPlots.get(0).rectangle.setRectangle(l, w);     } }  public class Application  {     private Owner owner;     private int lastUpdate;          public Application()      {         owner = new Owner("Matei");         lastUpdate = -1;     }          public void run()      {         System.out.println("Buying four plots.");                  owner.buyRectangle(0, 4, 2);         owner.buySquare(1, 5);         owner.buyRectangle(2, 2, 2);         owner.buySquare(3, 4);                  System.out.println("Compute total area.");         System.out.print(owner.getTotalArea());                  System.out.println("Selling two plots.");         owner.sellPlot(0);         owner.sellPlot(1);                  System.out.println("Compute total area.");         System.out.print(owner.getTotalArea());              } }


How to find historical stock price for a de-listed or defunct company?

With services like Google Finance or Yahoo Finance it is very convenient to find the historical stock price metric of a listed company, but if the company is not listed, I can't find the data.  For example, I want to see the price metrics for Macromedia, which had been listed in 1993 on NASDAQ (MACR), then acquired by Adobe in 2005. How could I find its historical price metrics?


Find numbers of the form $\frac{n(n+1)}{2}$ such that the digits of the number are all same

Find all $a \in \{1, 2, \ldots, 8, 9\}$ such that $\exists n \in \mathbb{N}$ and the digits of $\dfrac{n(n+1)}{2}$ are all $a$.   In other words, we have to find the values of $a$ such that $\dfrac{n(n+1)}{2} = a \cdot (1111\ldots1111)$ where $a$ is a Numerical Digit of Base $10$, i.e. $a \in \{1, 2, \ldots, 8, 9\}$.  I made the following progress:  Let's take $(1111\ldots1111) = R$ for convenience. So we get the following equation: $n^2 + n - 2aR = 0$. Taking the roots of $n$ by using the Quadratic Formula, we get $n = \dfrac{-1\pm\sqrt{1+8aR}}{2}$ .  As $n \in \mathbb{N}$, $-1\pm\sqrt{1+8aR}$ must be even, so $\sqrt{1+8aR}$ must be odd and hence $1+8aR$ must also be odd. We also know that $1+8aR$ must be a perfect square.  So, our problem reduces down to $1+8aR = f^2$ where $f \in \mathbb{N}$.  I couldn't proceed ahead from here.     also talks about pretty much the same problem. However, no conclusive solution was reached in that thread. I want to do the above question with an analytical approach. Hence, I beleive that my question is not a duplicate.  [Source: As far as I know, this problem is from IMOTC India]


I'm trying to create an array of arrays that will be using repeated data, something like below:  int[] list1 = new int[4] { 1, 2, 3, 4 }; int[] list2 = new int[4] { 5, 6, 7, 8 }; int[] list3 = new int[4] { 1, 3, 2, 1 }; int[] list4 = new int[4] { 5, 4, 3, 2 };  int[,] lists = new int[4, 4] {  list1 ,  list2 ,  list3 ,  list4  };   I can't get it to work and so I'm wondering if I'm approaching this wrong.   What I'm attempting to do is create some sort of method to create a long list of the values so I can process them in a specific order, repeatedly. Something like,  int[,] lists = new int[90,4] { list1, list1, list3, list1, list2, (and so on)};  for (int i = 0; i < 90; ++i) {    doStuff(lists[i]); }   and have the arrays passed to doStuff() in order. Am I going about this entirely wrong, or am I missing something for creating the array of arrays?


Dimension of the vector space given by the quotient of an Artin ring by the product of all its maximal ideals

Let $\mathcal{M}_1,\dots,\mathcal{M}_r$ be all the maximal ideals of an Artin ring $A$ which is a finite $\mathbb{K}$-algebra; so let $A/\mathcal{M}_1\cdots\mathcal{M}_r$ be a $\mathbb{K}$-vector space. Which is its dimension?  Is it a general case that the number of maximal ideals in $A$ is equal to $\operatorname{dim}_{\mathbb{K}} A+1$?


If I cast  on my 3/1 creature and to counter my opponent uses  to return it to my hand, is my Tormented Thoughts wasted?


I am currently a PhD student in a EU country and recently I was advised to pursue a European Doctorate Programme.  I thought that, being "European", it was some kind of regulated, inter-country program with specific rules, but I cannot find any "official" documentation from any European institution. The only things I can find by searching on google are doctorate programs from various universities that claim to be "European".  I am aware that some EU students are encouraged to do 3-6 months of their PhD (or more) abroad, but I don't know if by doing this their PhD qualifies to be a European Doctorate.  So, what is a European Doctorate Program? Is there any regulation for it by a European institution? How does it relate with doctorate programs where students decide to spend some months abroad?


So how I can make it via GUI? Right-click just shows 'Create folder' I dont see that option


Can't change desktop resolution - "Size 1920x1080 not found in available modes"

My xrandr gives   xrandr -q Screen 0: minimum 8 x 8, current 1360 x 768, maximum 16384 x 16384 DVI-I-0 disconnected (normal left inverted right x axis y axis) VGA-0 connected primary 1360x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm    1024x768      60.00 +    1360x768      59.96*   59.80      1152x864      60.00      800x600       72.19    60.32    56.25      680x384       59.96    59.80      640x480       59.94      512x384       60.00      400x300       72.19      320x240       60.05   DVI-I-1 disconnected (normal left inverted right x axis y axis) HDMI-0 disconnected (normal left inverted right x axis y axis)   If I try  xrandr -s 1920x1080 Size 1920x1080 not found in available modes   Also I tried   cvt 1920 1080 # 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync   But new problems occur  xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync X Error of failed request:  BadName (named color or font does not exist)   Major opcode of failed request:  140 (RANDR)   Minor opcode of failed request:  16 (RRCreateMode)   Serial number of failed request:  29   Current serial number in output stream:  29   How to add this one to available modes? I'm using Ubuntu 16.04


In "" we saw how Bunny Rabbit got into the rapping gang and won the heart of millions of rap lovers. Now in Eminem's original life too similar thing happened. We know how Dr. Dre helped him getting into an industry which is dominated by mainly black people in USA. In fact,  called the film semi-autobiographical. So I want to know which parts are direct picturisations of his real life?


I have a few questions about Python string manipulation

Can any one please explain me why this prints none for the first statement where it says "university"? The second command prints index(-5) and index(3) which is cd but the first one gives me back nothing. x = "university" print(x[-5:4]) x = "abcdefg" print(x[-5:4])


Positioning figure with [htb] vs [htbp]?

I'm very new to Latex, I'm using MiKTeX with Texmaker on Windows. When I execute the following code I get the desired result: \begin{figure}[htb] \label{fig:MagEngT}  \centering   \includegraphics[scale=0.55]{MagEngTemp.png}   \caption{Words and such}  \end{figure}  \paragraph{}  Yet more words   However, if I instead choose to position the figure with [htbp] it has some kind of emotional breakdown and sits in the middle of the page by itself, pushing the paragraph below onto the next page. My understanding was that by using [htbp] I was indicating a preference in position, so I don't see why adding the p explicitly, since, as far as I know, it defaults to that when it's out of options anyway, changes the behaviour? More to the point, why does it change the behaviour to sitting in the middle of a blank page with occupied pages above and below? I thought it was supposed to float to an empty page at the end of the document? Any help understanding this is appreciated. :) Also, I just noticed I've made some spelling errors, aha.


Private function invoked and it works. Could any of you reason it please

I am able to invoke the private function of the derived class. Is this Ok?  #include <iostream> class A { public:     virtual ~A() {}      virtual void func()     {         std::cout << " Printing from A" << std::endl;     } };  class B : public A { private:     virtual void func()     {         std::cout<< " Printing from B"<<std::endl;     } };  main() {     B b;     A* a = &b;      a->func();     // b.func(); Not possible as expected. }   Below is the output     Printing from B


How do I replace french accents like "é" with their latin equivalents like "e" when pulling information from the database or when displaying strings on the page?  Update:  Can the moderator that is linking to the question "UTF-8 all the way through" marking this one as duplicate please explain how that topic answers the question of "how do I CONVERT a french accented character to an English equivalent"? That question explains how to properly store french characters in your DB and then display them which is great, but it does not explain how you can take a french accent like "é" or "à" and convert to "e" and "a". You would want this for example to convert image file names since Safari can't display images with French characters, remove them from usernames or for any other number of reasons.


Is there something like a Root Mean Square Relative Error (RMSRE)? Or: What is the name of this error?

\begin{equation} \text{RMSRE} = \sqrt{\frac{1}{n}\cdot\sum_{i=1}^n \Delta X^2_{\text{rel},i}} \end{equation} with  \begin{equation}  \Delta X_{\text{rel},i} = \frac{X_i}{T_i}-1, \end{equation} where $T_i$ is the desired value and $X_i$ is the actual value.  If this error actually exists, then a citable source for it would be greatly appreciated. If it does not exist, then why so?  Thanks in advance.


I want my table to be deadsmack in the middle of the page but it keeps sticking to the side. Firstly I tried using floats but it wouldnt work. Now I'm trying to center my table with images using margins but I can't seem to get it to work. Here is my code:

   and my CSS code   .table_images{       margin-right: auto;       margin-left: auto;   }   any help would be appreciated.


Java calculator stops once inputs have been entered

I'm trying to create a calculator for one of my first projects in java. I ask the user for two number inputs and a symbol to choose the operation. It asks for the inputs then stops once it reaches the if statements to calculate the answer.  import java.util.Scanner; class Calculator{      public static void main(String args[]){         double a;         double b;         double answer;         String symbol;         Scanner in = new Scanner(System.in);         System.out.print("Enter an operation");         symbol = in.nextLine();         System.out.print("Enter the first number");         a = in.nextInt();         System.out.print("Enter the second number");         b = in.nextInt();          if (symbol == "+"){             answer = a+b;             System.out.print(answer);          }         else if (symbol == "-"){             answer = a-b;             System.out.print(answer);          }         else if (symbol == "/"){             answer = a/b;             System.out.print(answer);          }         else if (symbol == "*"){             answer = a*b;             System.out.print(answer);          }     } }   Here is my output  Enter an operation + Enter the first number 4 Enter the second number 5


This question perhaps was asked before, but my case is somehow special.   I have two divs one inside the other. Both divs heights are unknown, but what I can tell about the outer div is its minimal height. The point is - I want the smaller div to center vertically inside the outer div if the inner div is smaller than the outer. And I want the inner div to expand the outer div if it is bigger than the minimal height of the outer div.   I would like to achieve this without using any scripts.  Is it even possible?  Sample code:

        Im here, I could be short, I could be long         and if I wrap - i could be tall


I have a question regarding interpretation of results of a random forest that I created. First, some background regarding the data:  I have a dataset that consists of 100 true instances and 1000 instances of a negative set.  I have 20,000 features, thus giving me a matrix of 1100 x 20,000. (These features are sparsely distributed throughout the matrix. Of the 22,000,000 values of the matrix, 21 million are 0's and only about 1 million have values greater than 0).From this sparse data I created a random forest of 500 trees (using the default settings in package RandomForest in R).   After this training, I tested the random forest on a testing set consisting of  another gold standard and negative standard that the RF was not trained on  to see how well it performed. The final output for this testing set for each 1100 instances is a probability from zero to 1, of it being in the gold standard. The results were excellent,with ROC curves showing that the Random Forest classifier had a true positive rate of 60% and a false positive rate of less than 5%, which is excellent in this context and outperforms other methods I used previously for this problem.  The problem that I have is I need to justify in this context why  each prediction is being made, which I am not sure how to do. For example, if instance 212 is predicted to be part of the gold standard with a probability of 63%, how do I justify why, as concretely as possible, this is being predicted?  By way of comparison, for Naive Bayes Classifiers, this is easily done, since for "instance 212" each feature is associated with an odds ratio (or posterior probability) of that instance being in the gold standard, which makes interpretation easy. Is there an analog of this for Random Forests? I know that there is variable importance, but that does not directly bear on any individual instance.  EDIT:My question does overlap somewhat with . However, it sounds like some people there are just saying the answer is no, while others are saying there might be a way to interpret the probability distributions for each tree in a way that is logical, but I am not sure how that would be done.


Efficient Collision Detection With Numerous Objects at Once

I am developing a 2D game with very large levels in which two teams(around 200 objects per team) fight against each other in planes, tanks, turrets,...etc. With every entity shooting bullets at their enemy it is expected that there would be a numerous amount of objects at one instant. What collision detection algorithm could I use to support collision for a massive number of entities at once? The objects are simple figures(rectangles and circles). Would a brute force approach suffice or break up the level into a grid?


Best way to initiate a class in a WP plugin?

I've created a plugin, and of course being me, I wanted to go with a nice OO approach. Now what I've been doing is to create this class and then just below create an instance of this class:  class ClassName {      public function __construct(){      } }  $class_instance = new ClassName();     I'm assuming there is a more WP way to have this class initiated, and then I came across people saying that they prefer to have an init() function than a __construct() one. And similarly I found the a few people using following hook:  class ClassName {      public function init(){      } } add_action( 'load-plugins.php', array( 'ClassName', 'init' ) );   What is generally considered the best way to create a WP class instance on load and have this as a globally accessibly variable?  NOTE: As an interesting side point, I've noticed that while register_activation_hook() can be called from within the __construct, it cannot be called from within the init() using the second example. Perhaps someone could enlighten me on this point.  Edit: Thanks for all the answers, there clearly is a fair bit of debate as to how handle the initialization within the class itself, but I think there's generally a pretty good consensus that add_action( 'plugins_loaded', ...); is the best way to actually kick it off...  Edit: Just to confuse matters, I've also seen this used (although I wouldn't use this method myself because turning a nicely OO class into a function seems to defeat the point of it):  // Start up this plugin add_action( 'init', 'ClassName' ); function ClassName() {     global $class_name;     $class_name = new ClassName(); }


Why doesn't our body gets crushed due to the atmospheric pressure?

The atmospheric pressure is 101325 Pa,which is good enough to get our bones crushed.But why aren't we crushed due to it?


I have a C# application that can be run by a argument or not. For example   C:\MyApplication.exe  C:\MyApplication.exe -record   Both of these instances can run at the same time. Inside another application I need to know if any instances that is started with parameter runs and if so I would like to kill them.  I tried to get it by such a code:  Process.GetProcesses().Where(x =>                x.ProcessName.StartsWith("MyApplication")             && (x.StartInfo.Arguments == "-record"));   However StartInfo.Arguments is empty even if I set it manually when process started with the argument. How can I find my processes that started with argument?


I want to install a startup item in OS X Big Sur which runs a shell script as a user on my machine and connects via ssh to a remote machine I maintain.  I use ssh keys so no password is required for this script to succeed.  It will linger in the background.  How would I accomplish this in Big Sur?  My understanding is that the old /Library/Startup Items/xxx.plist trick is deprecated.  What is used in its place? Thanks!


Let $a,k,m$ be integers. Prove that $\gcd(ka,km) = k\gcd(a,m)$.

Here is what I got so far:  Let $\gcd(ka,km) = d$  Then by the Euclidean Algorithm, we have integers $s,t$ such that:  $$s(ka) + t(km) = d \implies k|d  $$  Let $$d/k = g = sa + tm.  \tag{1}$$  So now I need to show that $g$ is indeed = $\gcd(a,m)$. Let  $\gcd(a,m) =  h$  Now since $k|d \implies d|a , d|m  \space $  (since $$\gcd(ka,km) = d \implies  g|  \gcd(a,m) = h \\\implies h = dj  ,$$ for some integer $j$.  Putting this into (1):  $$ h/jk = g = sa + tm $$  since $$h = dj \implies dj/j = kg \\ \implies d = kg. $$   So $g$ is the $\gcd(a,m)$?  Is this a correct proof? Or have I gone in some sort of circle? Many thanks for any hints or direction!


How often do publishers sue researchers for copyright infringement for putting their articles on a personal website?

I know that some publishers sometimes send copyright infringement emails to researchers putting their articles on a personal website. How often do publishers actually sue researchers for copyright infringement for putting their articles on a personal website? (assuming the authors didn't have the legal right to do so)  I am mostly interested in United States-based authors, but I am curious about other countries as well.


So for this program I don't understand why times is still 0 . Why is count able to increment but times is not? I thought changing the parameter name would change this but I was wrong. Does this have to do with the scope of variables or something entirely different? Thanks1  1  public class Test { 2    public static void main(String[] args) { 3      Count myCount = new Count(); 4      int times = 0; 5      for (int i = 0; i < 100; i++) 6        increment(myCount, times); 7      System.out.println("count is " + myCount.count); 8      System.out.println("times is " + times); 9    } 10 11   public static void increment(Count c, int times) { 12     c.count++; 13     times++; 14   } 15 }   1  public class Count { 2    public int count; 3    public Count(int c) { 4      count = c; 5    } 6    public Count() { 7      count = 1; 8    }   }


Macbook display flashing when using Terminal

the macbook I use for work will very occasionally 'blink' or 'flicker' while using external machine connections such as the Terminal or programs that connect to databases (used for work). As a bonus, occasionally, if these connections are left open for too long, my Macbook screen will go white or white/black striped. At this point, the only way to effect this is to manually restart the laptop. Has anyone seen this before and does anyone have any advice on how to solve this or at least begin to diagnose the problem?  This problem has no sounds or other cues associated with it other than the occasional flashing. I've disabled flashing/sounds for errors in the system preferences.


Not enough space on /tmp but 900mb free on /

I get an error saying that I do not have enough space on /tmp to download a file. However, I have around 900 Mb of free space on the / partition. Is there a way for Ubuntu to actually use this space?  Here is the result of df -h:  Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur udev               1.8G     12K  1.8G   1% /dev tmpfs              351M    1.3M  350M   1% /run /dev/sda5           19G     18G     0 100% / none               4.0K       0  4.0K   0% /sys/fs/cgroup none               5.0M       0  5.0M   0% /run/lock none               1.8G    352K  1.8G   1% /run/shm none               100M     32K  100M   1% /run/user /dev/sda2          923M    250M  611M  29% /boot /dev/sda4           91G     29G   58G  33% /home overflow           1.0M    448K  576K  44% /tmp   and here is the lsblk result:  NAME   FSTYPE   SIZE MOUNTPOINT LABEL sda           119.2G ├─sda1 swap     7.5G [SWAP] ├─sda2 ext4     954M /boot ├─sda3            1K       ├─sda4 ext4    92.2G /home └─sda5 ext4    18.6G /


Set a post to draft once depending on a post meta value (passed certain date)?

To give better context I have a CPT on my site called "Upcoming Games". I have the posts ordered by the datepicker:  $args = array(         'post_type'      => 'upcoming-games',         'post_status'    => 'publish',         'orderby'        => 'meta_value',         'meta_key'       => 'release_date',         'meta_value'     => current_time( 'timestamp' ),         'meta_compare'   => '>=',         'order'          => 'ASC',         'posts_per_page' => is_front_page() ? 3 : 12, );   But I want to take it a step further, if a game is released on August 1, 2016 and the current date is August 2, 2016, technically it's no longer an "Upcoming Game" so I'd like the post to be drafted without manually having to go into WP each time and change it myself.


Is there a way to execute sql statement in sql server based on sql server version?

I would like to create computed index on a table if sql server is 2008 or newer and a simple index if sql server is 2005 or older:  -- check for sql server version if (select cast(left(cast(serverproperty('productversion') as varchar), 4) as decimal(5, 3))) >= 10          CREATE unique nonclustered index ix1_table             ON table (column1, column2)             WHERE column1 is not null and column2 is not null         ELSE             CREATE nonclustered index ix1_table                 ON table (column1, column2)   problem is that the whole statement is evaluated and on sql server 2005 this throws an error      Incorrect syntax near the keyword 'WHERE'.   Is it possible to somehow create different index based on sql server version?  Thanks  Dragan


Journal of Finance Template German '*.bst'

I am currently writing my bachelor thesis and I am using LyX as my standard writing program (because I am not familiar with LaTeX at all).  For my bibliographystyle I use JabRef and the citation style needs to be Journal of Finance.  Now, I found this .bst file for the Journal of Finance style online () which is actually really good. But the problem is, that I need it in German. There must be an "und" instead of "and" and all the umlauts don't work as well. Basically I need everything in German.  Do you know a website with a German .bst file? Or can I change something in the settings in LyX or JabRef and everything would be fixed?


I have a function on $\mathbb{R}^2$ defined as $d((x_1, x_2), (y_1, y_2)) = |x_2 - y_2|$ if $x_1 = y_1$ and $d((x_1, x_2), (y_1, y_2)) = |x_1 - y_1| + |x_2| + |y_2|$ otherwise. I want to prove that it is a metric.  I can do it only by considering many cases which is quite lengthy. Can it be proven neatly?


How to encrypt an entire Disk with full cross platform access?

I would like to encrypt an external USB Hard Drive in manner that allows full access (read+write) from Ubuntu trusty, Windows 8 and optionally Android and older Windows versions. With TrueCrypt development (as suggested by as an answer to this Question:  ) being in an uncertain state (  ), what alternatives are there which are still in deveopment


How to understand the ordering of output redirection?

So I am trying to learn how to pass standard out and standard err to various areas.  Let's say I have a folder with here.txt alone.  So if I do  ls here.txt not-here.txt  1>out  2>&1   Since here.txt is present I'll have some output to direct to the file out but since not-here.txt is not present, an error will get sent through standard error, which I am redirecting to standard out with 2>&1.  However, why doesn't this work:  ls here.txt not-here.txt 2>&1 1>out   It seems to only work if I do the redirection after the standard out instruction? Why?


I am from a biology background. Using t, χ2, F tests day-to-day, following like a recipe. However, I feel I must understand the background of this. I took an online lecture on p-value and hypothesis testing.  if your p-value is less than 0.01, then you have a very strong case against null hypothesis very strong case. The meaning of this is only in 1 % of the cases your null hypothesis will hold true in 99 % of the cases your null hypothesis will be false  Without many mathematical notations, could someone help me to understand; 1. why having a low probability is strong? 2. What p-value really tells in hypothesis testing? because some say it'd not about probability. 3. Is setting a null hypothesis a mathematical requirement? 4. Is normal distribution a hypothetical thing? because why we have to use different t, χ2, F distributions for different data types to calculate p-value. I am not sure why I fail every time to understand this; is it mathematics or is it the language (wording) use to explain these concepts.


Ubuntu 14.04 Security update broke something

I got a pop-up for a security update which uninstalled and reinstalled lots of stuff. During this it said something failed to update. Now when I try to install the update that failed I get this error message.   Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f   Running the command gives me this   Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) Unable to lock the administration directory (/var/lib/dpkg/), are you root?   I barely know anything about linux so please give simple answers and don't use shorthand lingo.  Edit: I ran the command with sudo and got this in terminal   The following package was automatically installed and is no longer required:   libllvm3.5 Use 'apt-get autoremove' to remove it. The following extra packages will be installed:   libllvm3.8v4 The following NEW packages will be installed:   libllvm3.8v4 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded. 33 not fully installed or removed. Need to get 0 B/10.2 MB of archives. After this operation, 40.3 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 788253 files and directories currently installed.) Preparing to unpack .../libllvm3.8v4_1%3a3.8-2ubuntu3~trusty4_i386.deb ... Unpacking libllvm3.8v4:i386 (1:3.8-2ubuntu3~trusty4) ... dpkg: error processing archive /var/cache/apt/archives/libllvm3.8v4_1%3a3.8-2ubuntu3~trusty4_i386.deb (--unpack):  trying to overwrite '/usr/lib/i386-linux-gnu/libLLVM-3.8.so.1', which is also in package libllvm3.8:i386 1:3.8~+rc3-1~exp1~gd~t dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libllvm3.8v4_1%3a3.8-2ubuntu3~trusty4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Side note: I can't launch the Ubuntu software center and everytime I launch steam. Steam brings up the terminal and installs something every time it didn't used to do that.


The TAB button usually moves focus. Is there a way to enter TAB symbols into text fields of opened web pages?  For example here, on Stack Exchange?  Is it possible to enter the symbol from keyboard?


when we have different results, can we say that logic is not universal?

suppose we have to persons has the same level of experience and same equipments... we asked them to solve a problem, and it's almost clear that they'll have some differences in their solutions   i think of this example for a while and the only reason i found is that they don't have the same logic. But, isn't it universal?


How to read R program P-Value for Logistic Regression

I'm not used to that kind of p-value form as I don't know how to interpret it...  It's usually shown a p-value with stars (significant codes) on its sides  Can anyone help? How to read if the variable significant or not...?


Emission does not show light haze with Cycles

I was trying to create a self-luminate ball with Cycles as renderer, however when I linked an Emission node to the Surface, the ball just showed nothing. I added a plane beside it, there is light on the plane, but the ball was still there like dead. I have put the file as a link. Can someone help me with this? Thank you very much.


Advanced rules for shortening relative clauses with a participle?

Once again, a problem encountered while marking German pupils' exams. We teach them the following rules:     A present participle can be used to shorten an active relative clause:         The boy who was driving the car didn't stop = The boy driving the red car didn't stop         A past participle can be used to shorten a passive relative clause:         Strawberries which are grown in California are delicious = Strawberries grown in California are delicious.      While marking, I encountered several problems. For example, why does this not work:     The girl who has black hair is in the corner   NOT   The girl having black hair is in the corner   or     That's the man who is happy to be here   NOT   That's the man being happy to be here   Does this all have to do with:   the verbs have and be? (But "The girl, being happy, phoned her friend") the continuous and simple forms? (But "We help people who live in ghettos = we help people living in ghettos") the tenses?    Or what? I'm totally stumped by this problem and do not know how to explain the pupils' mistakes to them. The problem seems to occur mostly with the use of the present participle. Who can help with some explanations or even better, specific rules!


Client refuses to pay and yet is using my work

I've been designing (my personal projects) for the past 6 years and recently I started designing logos for clients.   Now, there is this client who wanted a logo. I took 6 days to submit 1 logo and 1 day to submit 5 variations (totally different) of that logo upon rejection (PS. all 6 were standard).   Finally, he selected the last one (IT'S STILL THERE AS HIS LOGO IN HIS WEBSITE) and when I asked for my payment, he started "abusing" me over phone claiming that I delayed his project (He never mentioned any deadline). Since I'm a beginner, I didn't know that I had to sign an agreement before hand. But, I have the PSD file, whatsapp conversation with him and a screen shot of the logo in his website. How do I deal with this?


Tried several times with several captchas.  is the data explorer page I tried to access. with space between :  To the non-believers :) :  System produced on: Windows 7 Chrome Version 33.0.1750.146


How to install all the boost development libraries?

I am having trouble installing boost library completely it fails/skips several things that seem to be key for me to continue on to compiling a program with it.  Here is what I get when I install boost,  gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or directory compilation terminated.      "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC  -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG  -I"." -c -o "bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o" "libs/iostreams/src/bzip2.cpp"  ...failed gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o... ...skipped <pbin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi>libboost_iostreams.so.1.50.0 for lack of <pbin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi>bzip2.o... ...skipped <p/usr/local/lib>libboost_iostreams.so.1.50.0 for lack of <pbin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi>libboost_iostreams.so.1.50.0... ...skipped <p/usr/local/lib>libboost_iostreams.so for lack of <p/usr/local/lib>libboost_iostreams.so.1.50.0... gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/link-static/threading-multi/bzip2.o libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or directory compilation terminated.      "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG  -I"." -c -o "bin.v2/libs/iostreams/build/gcc-4.6/release/link-static/threading-multi/bzip2.o" "libs/iostreams/src/bzip2.cpp"  ...failed gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/link-static/threading-multi/bzip2.o... ...skipped <pbin.v2/libs/iostreams/build/gcc-4.6/release/link-static/threading-multi>libboost_iostreams.a(clean) for lack of <pbin.v2/libs/iostreams/build/gcc-4.6/release/link-static/threading-multi>bzip2.o... ...skipped <pbin.v2/libs/iostreams/build/gcc-4.6/release/link-static/threading-multi>libboost_iostreams.a for lack of <pbin.v2/libs/iostreams/build/gcc-4.6/release/link-static/threading-multi>bzip2.o... ...skipped <p/usr/local/lib>libboost_iostreams.a for lack of <pbin.v2/libs/iostreams/build/gcc-4.6/release/link-static/threading-multi>libboost_iostreams.a... ...failed updating 2 targets... ...skipped 6 targets...   Ive tried re-installing zlib, and other archive tools like bzip2 but no luck.


Which one is correct: a strong motivation or strong motivation?

Can you tell me which one is grammatical and why ?     When you start learning a new language, you need a strong motivation.    Or      When you start learning a new language, you need strong motivation.


Where to find all the power saving options Windows 10 provides?

My Samsung Series 9 laptop holds around 2-3 times longer on battery when on Windows 10, compared to Ubuntu. At least part of it is due to extensive power saving options available on Windows (is there another part? would be nice to know)  Is there a utility or a set of utilities that would be equivalent to all these options?


Novel where main character discovers dragons hidden in castle?

I found this book at a used book store in America sometime around 2005. From what I remember of the style of the cover (and the general condition), I would assumed it was published sometime 1985-2005.  It's medieval-esque fantasy. The main character is a young woman who comes to work at a castle. At first, the lord of the castle is aloof and cold with her. Then, while exploring the castle, she finds a dungeon containing dragons. The lord had hidden them from her to keep them safe.  I think that the word of the dragons gets out and people come to attack the castle. The climax of the novel has the main character and the lord of the castle defending the castle against attackers.  There is also a romance between the main character and the lord, though the book isn't primarily a romance novel.  I believe the cover of the edition I had was a picture of the castle. The colors were blues and greys. I also think that the title was the name of the castle, which had the word "Dragon" in it. I think the author was a woman.


QGIS Small Square Dots Appearing on Postcode Sector Polygons

I dissolved UK postcode polygons at the sector level to create the postcode sector polygons I need. However, I seem to have more postcode polygons than I expected, about 800 additional postcodes that aren't in the national statistics data.   I added a binary indicator to all of the postcode sectors I got from the national statistics office in the UK (ONS), and visualised them. I got the following:    And also at a higher zoom, this:    I'm not able to select these small square dots and I don't seem able to find them in the attributes data. For example, when I search for polygons based on area and rank them, the sectors with the smallest areas are too big to be these dots, for example:  Pcd.Sector Area  M60 8   73 VGU02   129 PH2 1   149 VUB01   616 DL981   807 VSE04   847 M60 7   1101 OL133   1263 W1A 3   1264 EC4N1   1450 EC3A2   1537   I'm really not sure what these are, has anyone seen these before?


My boss would like me to find which (of approx 400+) stored procedures are not being used by our website any more. I'm found and reworked a script to give me the details of most recent executions, however it only goes back as far as 10:17am September 1st.  My boss assures me that (although he likes to tinker with the server in his spare time) the server has been up since May 5th.  I'm pretty new to this, so explain it like I'm a particularly simple house pet, but is there are reason why my results table only goes back 1 month, instead of the full 6? I would assume that uptime is reset if the server is restarted, but I'm not sure why I wouldn't have any history that far back.  Does viewing the procedure by using right-click -> modify count as an execution?  SQL Query  SELECT qt.text AS 'SP Name', qt.dbid as 'SP DB', qs.execution_count AS 'Execution Count', qs.total_worker_time/qs.execution_count AS 'AvgWorkerTime', qs.total_worker_time AS 'TotalWorkerTime', qs.total_physical_reads AS 'PhysicalReads', qs.last_execution_time 'Last Executed' FROM sys.dm_exec_procedure_stats AS qs CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) AS qt where qs.database_id = 5 ORDER BY qs.last_execution_time asc   My question relates more to the time frame of the results. I'm finding the information I need in the month of results I have but I'm worried there are 6 months of results that aren't being found found.  This returns May 5th:  select create_date from sys.databases where name = N'tempdb';   The following returns "2015-05-05 08:27:42.080":  SELECT sqlserver_start_time FROM sys.dm_os_sys_info;   Finally, this one returns "2013-09-15 19:34:34.667":  SELECT top 1 [rs].[destination_database_name], [rs].[restore_date]  FROM msdb..restorehistory rs  where destination_database_name = '%ID%'  ORDER BY [rs].[restore_date] DESC;


Proof of continuity implied by differentiability

I need to  Let $f : (a, b) → R$ be differentiable on $(a, b)$. Prove that $f$ is continuous on $(a, b)$ by showing that:  $∀x_0 ∈ (a, b)$ $∀ε > 0$ $∃δ > 0$ s.t.  $(x ∈ (a, b), |x − x_0| < δ) ⇒ |f(x) − f(x_0)| < ε$  My understanding so far:   When we say a function is differentiable at $x_0$, we mean that the limit: $$f^{\prime} (x) = \lim_{x\to x_0} \frac{f(x) - f(x_0)}{x-x_0}$$ exists.  When we say a function is continuous at $x_0$, we mean that: $$\lim_{x\to x_0} f(x) - f(x_0) = 0$$  My attempted proof:  Let us suppose that $f$ is differentiable at $x_0$. Then $$ \lim_{x\to x_0} \frac{f(x) - f(x_0)}{x-x_0} =  f^{\prime} (x) $$  and hence  $$ \lim_{x\to x_0} f(x) - f(x_0) = \lim_{x\to x_0} \left[ \frac{f(x) - f(x_0)}{x-x_0} \right] \cdot \lim_{x\to x_0} (x-x_0) = 0$$  My issue:  My issue may be a non issue, however for the 6 marks this question should be worth my proof seems shallow. Could someone please poke some holes in my proof, or add to it?   Thank you


I use pgfplots for most of my plots. Now I need to add a . Is this possible with pgfplots or any other package?


I've got a CI server with a command-line interface that allows me to remotely kick-off a job (jenkins CI server and the jenkins-cli.jar tool).  After I kick the job off I tail -f the log (sorry for the messy command):  ssh -t my-jenkins-host.com "tail -f \"/var/lib/jenkins/jobs/$job_name/builds/\`ls -ltr /var/lib/jenkins/jobs/$job_name/builds/ | grep '^l' | tail -n 1|awk '{print \$9}'\`/log\""   After the job successfully completes, usually after at least 5 minutes, I get the following line on the output:  Finished: SUCCESS   Is there a good way to stop tailing the log at this point? i.e. is there like a tail_until 'some line' my-file.log command?  BONUS: extra credit if you can supply an answer that returns 0 when SUCCESS is matched, 1 when FAILURE is matched, and your solution works on mac! (which i believe is bsd based)


I am new in bash scripting, I have html file and i want to read the file and show into terminal with formatting. My Html file Code

Country Name	City1	City2	City3

CHINA	500	700	1200

USA	400	600	1000

  How can format Terminal output, i mean their spaces between colum1 and column2?


Scale-dependent displaying of a layer using OpenLayers plugin?

When I am creating a layer in QGIS the layer position/lines does not stay the same when I zoom in closer than, it seems like 1: 1000. I am adding 2 images to explain the problem. The moment I zoom in closer than 1: 1 000 then the original layer does not display correctly anymore.  Please, can you assist in this matter?


This morning I read this sentence (see ):     On July 24th and again on July 29th,   Egyptian police did shoot dead unarmed   African migrants attempting to cross   that border.   Why "did shoot" and not "shot"?


I am trying to install Ubuntu with the windows installer but I want to make the partition larger than 30 GB. How do i do this?


I am trying to import data from a point that lies on a certain polygon feature (or raster). As an output I would like the polygon feature to have the point data as a new field in the attribute table. How can this be done in QGIS?


how to break automatically the lines in the following table? Thanks.  \documentclass[a4paper, 12pt]{report}     \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{subcaption} \usepackage{verbatim} \usepackage{enumerate} \usepackage{makeidx} \usepackage{topcapt} \usepackage{setspace} \usepackage{rotfloat} \usepackage{makecell}  \begin{table}[H]     %\begin{center}     \topcaption{Comparaison des aspects généraux des méthodes d'analyse et de modélisation des connaissances.}     \noindent\makebox[\textwidth]     {         \begin{tabular}{|*{8}{c|}}         \hline         \diaghead{\theadfont Diag ColumnmnHead II}%         {Auteurs}{Attributs}&\thead{Caractéristiques}&\thead{Objectif}&\thead{Destinaires}&\thead{Type}&\multicolumn{2}{c|}{\thead{Etendue}}&\thead{Propriétés}\\         \hline         \footnotesize{} & \footnotesize{} & \footnotesize{} & \footnotesize{Ing pédagogique} & \footnotesize{Ing logicielle}& \footnotesize{}\\         \hline         \hline         \footnotesize{HNa XXXXXXXXXXXX} & \footnotesize{Basé sur l'analyse du comportement d’apprenants et l'analyse des traces d’usage (Usage Tracking Language)} & \footnotesize{Réingénierie d’un scénario pédagogique, Constitution d'une mémoire des indicateurs partagés} & \footnotesize{Enseignants} & \footnotesize{Patrons} & \footnotesize{x} & \footnotesize{-} & \footnotesize{}\\         \hline         \footnotesize{} & \footnotesize{} & \footnotesize{} & \footnotesize{} & \footnotesize{} & \footnotesize{} & \footnotesize{}\\         \hline         \footnotesize{} & \footnotesize{} & \footnotesize{} & \footnotesize{} & \footnotesize{} & \footnotesize{} & \footnotesize{}\\         \hline         \end{tabular}     }     %\end{center}     \label{tab: aspectsGeneraux} \end{table}


Dealing with Complete Separation in Logistic Regression when Reporting

I have a question regarding how one would deal with complete separation in logistic regression when reporting the outcome for statistical analysis. For a study, we have group participants into 4 groups, depending on year of graduation, and have several dependent binomial factors we were testing for the statistical significance of the predicting power of the group of year of graduation. Out of the 4 binomial outcomes, 3 are completely fine and produce great results. The 4th, we have a cell count 0 - as one of the groups had 0 successes. My software, obviously, is not allowing me to run a logistic regression on this data, but it still looks, to the eye, statistically significant.   I would prefer to do a fourth logistic regression for consistency of the report. I need suggestions how to proceed. Some sources recommend combing groups. In our case, our groups are: [pre 2000], [2001-2005], [2006-2010], [2011-2015], and [2016+]. The [2016+] group is the one with 0 successes. Should I combine the last two groups, creating a 2011+ group? If I do this only for the last regression, does this raise questions regarding data validity. Do I explain why I did the analysis the way I did?   Any suggestions would be helpful. Thank you.


Prove that a bipartite planar graph has a vertex of degree at most 3

Exam preparation.  I'm a bit confused on where to start with this question. How could one approach this question?


I'm having quite the trouble of installing drivers for my wireless usb adapter. I have tried different drivers, but none of them work. Someone in the same situtation?  uname -v  #48~16.04.1-Ubuntu SMP Thu May 17 12:56:46 UTC 2018   uname -r  4.13.0-43-generic   lsusb | grep Edimax  Bus 003 Device 007: ID 7392:a812 Edimax Technology Co., Ltd


I met this guy on Twitter who was interested in a sugar baby with someone to speak with, get to know, etc. He lives in IL apparently and I’m in the east coast. Initially he wanted me to buy a $200 GC and give him my bank login info so he can pay off my credit card debts - the GC is apparently for charity. I said no and we agreed that I’d get a $50 GC and he’ll give me his bank information to post the CC payment and show him the receipt.   Thoughts? Is this a scam? Can I get in any legal trouble here, or what’s the risk?   EDIT: He did not ask for MY info, he offered to give me HIS ACCOUNT INFO. It seems some of you are confused, because I’m not an idiot and would never give someone my bank info.


How to answer this question without using the special case?

Points P,Q,R, and S are chosen on the sides of parallelogram ABCD, so that P is on line AB, Q is on line BC, R is on line CD, S is on line DA, and AP=BQ=CR=DS=1/3 AB. Compute the ratio of the area of PQRS to the area of ABCD.  The special case where ABCD is a square is solved here:


Is it possible to get a tag specific ranking of a user profile in Stack Overflow? In other words, I want to check if I could relatively evaluate a user with respect to certain tags like python, java or c++.


How to set scale across all blender objects and keyframes?

I have a complex scene with physics (not baked) and I discovered a long way into the scene that I need to scale everything up for the physics to do it's thing right. I scaled everything up, pressed play and everything went to crap. My keyframes are interfering. Is there a way to set the scale of all of the objects across all of the keyframes without messing up the other keyframe settings?


How can you derive score test under nonlinear null hypothesis with nuisance parameter?

Suppose I have a multiple linear regression of the form: $$y_i = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} +\beta_3 x_{i3}+\epsilon$$ Then suppose I am interested in testing this set of hypotheses: $$H_0: \beta_1 *\beta_2 = 0$$ $$H_A: \beta_1 *\beta_2 \neq 0$$ I am interested in deriving a score test statistic for this hypothesis.  I understand that I need to derive this under the null hypothesis.  However, I am under the impression that score tests do not work for nonlinear hypotheses of this form, correct?  Additionally, you see that there is a nuisance parameter to also take into consideration: $\beta_3$. Any input would be much appreciated, thank you! Update: this is quite similar to my question .  However, this setting has a nuisance parameter, whereas the other does not.


Background I've had my bike for several years and it's been fine with moderate use, but this summer, I ended up using it a lot (I rode almost 200km in less than three weeks). Problem It started squeaking pretty badly, so I sprayed some lubricant around all of the joints (pedal, crank-arm, etc.) then took it out for a spin. On that very first ride after the lube, the left crank-arm nearly fell off; I though the pedal broke, but when I stopped and checked, the nut had come loose. I managed to use my keys to tighten the nut and repeat every block or two until I got home. Attempted fix At home, I used a 14mm socket wrench to tighten the nut, but it keeps coming loose. I've resorted to carrying the socket-wrench with me when I ride and stopping to tighten it about ever kilometer. 😕 Research I've read some stuff about the holes in the crank-arm wearing out and worn nuts and how Loctite isn't a solution and such, but none of them mentioned lubrication. My issue started immediately after I lubricated the area around the nut, so logic would dictate that it allowed the nut to slip. I've included a photo (fig.1) of the crank-arm hole and nut. To my eye, the hole doesn't look worn (I assume the bulging around the edges is intentional), but the catch-teeth on the nut do seem worn/flat. 🤔 Question Anyway, I'm wondering if lubrication is indeed the problem and if cleaning the lubrication off (and maybe applying a mild adhesive like Loctite or just hairspray) would suffice. Appendicies Figure 1: Crank-arm hole and nut


Need help recovering data from hard disk formatted by Ubuntu,

I am a beginner with Ubuntu. I have tried installing Ubuntu yesterday in C drive. However it took over the complete hard disk space. I dont see my data. After doing lot of research on internet got to know that with the help of disktest tool that can be recovered. I tried booting from live usb and installing testdisk on the that. I was successful in analysing the cylinders. Got to see all the NTFS derives. But once i selected one of the drive and pressed enter it did not give me any option to recover it on external disk. Please help.


How to delete files/folder from ubuntu one cloud

I cannot delete files from my cloud account.  Please tell me how to delete files/folder from my Ubuntu One cloud account.


$$ \sum_{k=0}^{n} \binom{2n}{2k} = 2^{2n-1} $$  Now, I tried:  $$ (a+b)^n= \sum_{k=0}^{n}a^{n-k} b^{k} \binom{n}{k}$$   as I used: $$ (1+1)^{2n-1}=(a+b)^{n}$$ But then I'm stuck because I'm not sure what to do with the binom itself. Or I tried using the binom identities, but I'm not too sure about that too.


Proving injection and surjection with functions $F:C^B\to C^A$, $F(f)=f\circ\varphi$, $\varphi: A\to B$

Let $\varphi: A\to B$ and define $F:C^B\to C^A$ such that $F(f)=f\circ\varphi$. Prove the following:  if $\varphi$ is surjective then $F$ is injective.  if $\varphi$ is injective then $F$ is surjective.    For both of them I realize that I should begin with assuming the condition on $\varphi$ is true and the condition for $F$ is false and then apply the composition in some way to get a contradiction but I have no idea how to begin...


Boolean Modifier fails or makes object disappear

I cant seem to Cut a hole in Any objects with the Difference operation while using the Boolean Modifier, All it does make Objects Disappear or Instead give me an Error(Unable to perform Boolean Operation)


Changing the first letters of words in a string to uppercase in javascript

Can we capitalize the first letters of words in a string to Uppercase and return the string without using slice(1) in javascript? If possible please help me find this out?  function titleCase(str) {   str=str.toLowerCase().split(" ");   for(var i=0;i<str.length;i++){     str[i] = str[i].charAt(0).toUpperCase()+str[i].slice(1);   }   str=str.join(" ");   return str; } titleCase("sHoRt AnD sToUt");


How do substution-permutation networks work?

I understand what is going on in higher level. But I don't understand what's really going on in page 3 and 4 of  slide.   Specifically,   How $S_0$ and $S_1$ is used? What goes in what goes out? How exactly do key bits determine which s-box is to be used at each position? Position refers to what? Is the function $f$ on page 4 exactly the same SP network on page 3?  Why split plain text into left $L$ and right $R$? Why XOR $L$ with $R$ after applying $f$?  Why rotate after applying last $f$? Why is XOR used? Why not some other bitwise operation?    for reference.


Prove $\sin(kx) \rightharpoonup 0$ as $k \to \infty$ in $L^2(0,1)$

I want to show that $u_k(x)= \sin(kx) \rightharpoonup 0$ as $k \to \infty$ in $L^2(0,1)$.   We know trivially that $0 \in L^2(0,1)$.  I need to show that $\langle u^*,\sin(kx) \rangle \to \langle u^*, 0 \rangle$ for each bounded linear functional $u^* \in L^2(U)$, where $L^2(U)$ is a dual space of itself (since $L^2$ is a Hilbert space).  I think I need to show that, as $k \to \infty$,  $$\int_0^1 u^* \sin(kx) \, dx \to 0.$$


Preview image with dynamically created input element

I make a button to dynamically create input field. After uploading file the image should be previewed . But find that , at first one image is previewed , then 2nd time after selecting file 2 copy of same image is previewed, then 3rd time 3 copy of same image and goes on…  Html code  <form method="post" action=" " class="form" id="form" accept-charset="UTF-8"  enctype="multipart/form-data" >

Upload your images
 <input type="text" placeholder="Event name"> <input type="file" id="1" class="gallery_input" name="files[]" multiple />
     Js code         If I remove        $("body").click(function()   line it’s work . But I need this because it work’s with dynamically created   input filed . I remove some HTML and js code like input filed create Js code, etc. Because I think it works.


Proving inequality $x^xy^y \geq (\frac{x+y}{2})^{x+y}$

Prove that for all $x,y>0$ the following inequality $x^xy^y \geq (\frac{x+y}{2})^{x+y}$ is true.  It smells like Jensen inequality, but all I can get is that $\frac{x+y}{2}ln(x) + \frac{x+y}{2} ln(y) \geq xln(\frac{x+y}{2})+yln(\frac{x+y}{2})$


Rotation around the cursor with low-level python (no bpy.ops)

In order to optimize my script, I would need some help to perform a rotation around the cursor (see )  With low-level python, that means, without bpy.ops.* operations.  I have to admit that I didn't find a good overview on how to make rotation with python without bpy.ops. Do I have to perform matrix operations for a simple rotation around an axis Z located at the cursor position?


The Ability To Create Custom Question Filters Would Be Fantastic

I really wish there were better ways to browse the questions on SO (and the like).  The Unanswered -> My Tags page is close to what I often want, but not always, and it often still gives me many questions I don't care about.  I'd like to be able to filter by (at least):   Accepted/Unanswered/No Answers Tags to include, defaulting to letting the user select tags marked as interesting, but able to specify any tags Tags to exclude - starts with ignored tags, but again user selectable, this one's critical, and lacking from the current power-searches   I imagine a new button at the top, or maybe replacing 'Unanswered' called 'Custom' or 'Filters' - what's currently in 'Unanswered' could go inside this page - which would allow you to browse by pre-defined filters and by custom made filters, and also let you select which filter would be your default - what you see when you first hit SO.com.  The questions would be ordered like usual - in terms of last update - though I wouldn't be opposed to allowing other orderings, I don't see that as critical to this feature.  This would address several other requests/questions, including , , and .  I realize the  provide a fair bit of this functionality, but non of the user friendly interface that I imagine.  This would be a huge boon for the usefulness of SO and would help prevent questions going unanswered and disappearing too quickly for those interested in answering to notice.  I believe the default view of the home page is crippling to the distributed knowledge of SO, and as the site grows it becomes imperative for power users to browse their own way.


How to perform case insensitive string comparison?

in this code i'm comparing between two strings i did it correctly, but i don't want to consider the letters' case.  for ex: first string: aaaa, second string: aaaA. the output should be 0 or equal.  is there any ideas to fix this?  #include <iostream> #include <algorithm> #include <string> using namespace std; int main()  {     cout << "enter the first string" << endl;     string x;      cin >> x;     cout << "enter the second string" << endl;     string y;      cin >> y;     cout << endl;     sort(x.begin(), x.end());     sort(y.begin(), y.end());     cout << x << endl;     cout << y << endl;     if (x.compare(y) < 0)     {         cout << "-1" << endl;     }     if (x.compare(y) > 0)     {         cout << "1" << endl;     }     if (x.compare(y) == 0)     {         cout << "0" << endl;     }  }


Noether's Theorem for Non-Rigid Transformation

I am reading the yellow book Conformal Field Theory by Francesco et al, and am deeply confused by the authors' derivation of the current associated with symmetry transformations (pages 40-41). This is described in . Keeping $O(\omega)$ terms (without any integration by parts), we can show that $$ S' = S + \int d^dx \, \omega_a f_a      - \int d^dx \, (\partial_\mu \omega_a) j_a^\mu $$ where $j_a^\mu$ is the current, given by eq (2.141) (I have verified it), and $f_a$ is some weird quantity found to be (hope that there is no mistake) $$ \begin{aligned}     f_a &\equiv     \mathcal{L} \, \partial_\mu      \frac{\partial x'^\mu}{\partial \omega_a}     + \frac{\partial F}{\partial \omega_a}     \frac{\partial \mathcal{L}}{\partial \phi}     \\ &\quad     +      \frac{\partial \mathcal{L}}{\partial (\partial_\mu \phi)}      \left[         \partial_\mu \frac{\partial F}{\partial \omega_a}         - (\partial_\nu \phi) \,          \partial_\mu          \frac{\partial x'^{\nu}}{\partial \omega_a}     \right] \end{aligned} $$ In the   (and also in the book) where global uniform transformation is considered, I understand their argument that $f_a$ should vanish identically (in that answer, $f_a$ is denoted by $[...]_2$). But it seems that this statement is not trivial to understand: (Edit: According to @Qmechanic, the scaling symmetry holds in $d = 2$ only; but I think it does not prevent us to consider it as an example) For example consider the infinitesimal uniform scaling for scalar fields (here we have only one controlling parameter $\omega$, which is the same everywhere) $$ x' = (1 + \omega) x \qquad \phi'(x') = F(\phi(x),\omega) = \phi(x) $$ Then obviously $$ \frac{\partial x'^\nu}{\partial \omega} = x^\nu \qquad \frac{\partial F}{\partial \omega} = 0  $$ By direct calculation, we find $$     \begin{aligned}         f &=         \mathcal{L} \, \partial_\mu x^\mu         +          \frac{\partial \mathcal{L}}{\partial (\partial_\mu \phi)}          \left[             - (\partial_\nu \phi) \,              \partial_\mu x^\nu         \right]         \\         &= \mathcal{L} \times d         - \frac{\partial \mathcal{L}}{\partial (\partial_\mu \phi)} \partial_\mu \phi     \end{aligned} $$ where $d$ is the spacetime dimension. It does not look like zero at all. So my question is: Is there any concrete example supporting that $f_a$ vanishes identically? (instead of just give some vague "physical argument")


I'm trying to install VMWare Player. I've downloaded .bundle file in ~/Downloads. To install I switched to root account, changed directory to ~/Downloads and ran apt-get install VMware-Player-15.0.2-10952284.x86_64.bundle. But I'm getting:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package VMware-Player-15.0.2-10952284.x86_64.bundle E: Couldn't find any package by glob 'VMware-Player-15.0.2-10952284.x86_64.bundle' E: Couldn't find any package by regex 'VMware-Player-15.0.2-10952284.x86_64.bundle'   How do I install VMWare successfully?


Remap a mouse button to act as control key

I have the Logitech darkfeild mouse (the one that works on glass) and was wondering how I can remap one of my currently unused buttons (my zoom button) to function as a selected keyboard button (control or supper)? ....I am also using 13.04.... FYI.  Thanks


Prove that $a=b$, where $a$ and $b$ are elements of the integral domain $D$

Let $D$ be an integral domain and $a,~b \in D$. Suppose that  $a^n=b^n$ and $a^m=b^m$ for any two some $m,~n$ such that $(m,n)=1$. Prove that  $a=b$.   I know that $ab≠0$ since $D$ contains no divisors of zero, but  I don’t have an idea as to how to prove this.


How much of the Game of Thrones show dialogue is taken directly from the books?

I'm currently re-watching the series (never read the books). Whenever there's a scene with Tyrion I always find myself impressed by the writing/his witty comebacks. Are these all the work of George, or did the show writers help out.


What's the difference between xp_fixeddrives and this query

when i run xp_fixeddrives command to the drive that contains my tempdb, I obtain 10mb of free space, but the following query return other thing (45000 mb free).  other query :  USE tempdb; GO SELECT SUM(unallocated_extent_page_count) AS [free pages],  (SUM(unallocated_extent_page_count)*1.0/128) AS [free space in MB] FROM sys.dm_db_file_space_usage;   this drive only contain my tempdb db.  what is my error?


How to show that a disjoint sum of metric spaces is metrizable?

I have encountered this question while tring to figure out why every sequential space $X$, is a quotient spaces of a metric space. If I understand correctly, given a sequential space, every sequence (including it's limit) can be identified with the space $Y=\{0\} \cup \{\frac1{n+1}|n \in N\}$. So The space $X$ can viewed as a quotient space of $\bigoplus_{(x_n) \in C} \{(x_n) \} \times Y$ where $C$ is the set of all converges sequences in $X$. My question is, How can I show that this space is metrizable?  Thank you! Shir


Will I be able to use wubi to install Ubuntu releases newer than 12.10?

I want to install 13.04 (or higher) using wubi, is that possible?


I have a arraylist of objects Box and i need to find all id of Boxes with more than one specific style. Example:  ArrayList<Box> boxes = new ArrayList<>(); Style s1 = new Style("black",160); Style s2 = new Style("yellow", 150); Style s3 = new Style("green", 150); boxes.add(new Box(s1));//id 0 boxes.add(new Box(s2)); boxes.add(new Box(s2)); boxes.add(new Box(s3));//id 3   and need to find all boxes with style s2 and s3 for example (This styles can be n and they will be store in array). Result will be {1,2,3}. Is there a effective way to do that?  class Box{    private int id;   private Style style;    public Box(){}   //GETTERS AND SETTERS }  class Style{   private String background;   private int width;    public Style(){}    //GETTERS AND SETTERS }


Get only the string inside a curly brackets

I have number of strings like   var str="#{ZyDt8spGZOA.mI8uHaT7o47}+#{z3PENrRf0cn.mI8uHaT7o47}+#{lhUBSvCMPWu.mI8uHaT7o47}+#{YNpiWU7fw9m.mI8uHaT7o47}";   I need to get the content only inside the curly bracket to an array. (In the above case array of length 4).  How can I achieve this?


I realize this is probably a dumb question but I couldn't find the answer anywhere... What is the purpose of the '&' symbol in C++ functions? Such as  vec2& operator+(vec2& left, const vec2& right) {     return left.add(right); }   I'm following a youtube series that's a little over my head, but I'm doing fine because all the code is there. However that 'and' symbol keeps popping up and I'd really like to know what it is... Does it have something to do with classes?  Here's exactly what I'm watching:  Guy from a channel called "TheChernoProject" making a simple game engine. Also, this is Visual Studio 2013 C++, if that changes anything.


Is there a way to rotate an object a specific number of degrees if you are in edit mode? When I am in edit mode, I can't find a tool to rotate. Is there maybe a feature I have to turn on? I just started working with Blender.


Where did the reputation go from the top bar?

I don’t see my reputation on the top bar anymore. Is it intentionally?


Word for the song, that we hum or sing all day, once we listen it

We listen to songs, and sometimes we forget them because they are boring.  And when we listen to a catchy song, we hum it or sing it whole the day. Is it okay to consider such songs as memorable? If not, is there any specific word for this?


Why can't I see related data in my Apex, or why are related records showing up as `null`?

This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, navigate to the  tag. This question and answer is owned by the community! If you can improve it and make it more useful, you're welcome to edit it. I am building a trigger, a unit test, or other Apex code. I'm working with sObject records, and trying to access related record information. For example, I might have a structure like this: Account a = new Account(Name = 'Test'); insert a;  Opportunity o = new Opportunity(Name = 'Donation', AccountId = a.Id); insert o;  System.assertEquals(o.Account.Name, 'Test', 'Correct Account associated'); // Assertion fails!  Or, in a trigger, I might be aiming for something like this: trigger ContactTrigger on Contact (after insert) {     for (Contact c : Trigger.new) {         if (c.Account.Name == 'Test') {             // Take some action here         }      } }  Why doesn't this work? Why am I getting null values, or NullPointerExceptions?


How do I really hide all console output from the process I start?

I was getting all those messages from firefox that I didn't care about:  Gtk-Message: Failed to load module "pk-gtk-module" Gtk-Message: Failed to load module "canberra-gtk-module"   So I killed firefox and restarted it like this:  $ firefox 2>&1 > /dev/null &   As in "redirect stderr into stdout and pipe both of them out into the null".  Unfortunately, those pesky messages didn't disappear. In fact, the terminal window where I started the firefox session into which I am currently typing this question is still producing them.  So the questions are:  Why the above redirection didn't work?  How do I redirect them correctly?


deleting large volumes of rows from table efficiently in SQL Server

I have a table that has gotten a little out of control. I am not a DBA per se but seem to recall that deleting a huge volume of rows in one shot can cause transaction log issues, hamper overall system performance during the delete, etc...  Is there an efficient way for me to create a job that deletes records in small batches to over hampering other access/performance and prevents problems with the transaction log?  This process can be quite slow is that makes a difference  For additional context, the delete criteria will be based on something like... where x like '%blah%'. Also, there is one clustered index and 5 non-clustered indexes.


What skills/drills should I learn to descend faster and more confidently? (for mountain biking)

I've ridden road and mountain bikes for years, and this is my first year riding as a part of a team (and actually doing races).  I've been stuck at nearly the same level of skill when descending and would like to improve.  Sure, there are some  I can read, but some are dated, and who has time to read a whole book?  (said only partially tongue in cheek)  Vague tips like, "ride with faster riders" are not needed - I ride with fast riders, and on the descents they're immediately gapping me at the first switchback.


Why did this question about framework comparisons get closed?

question, to my surprise, was closed. I honestly have no idea why. The question fits perfectly within the FAQ, is not particularly subjective (nor is the answer), and it's generally good content. From the FAQ:  [I]f your question generally covers practical, answerable problems that are unique to the programming profession, then you’re in the right place to ask your question!  Here's the kicker though:  [I]f your motivation is “I would like others to explain ______ to me”, then you are probably OK.  And I think that question fits very reasonably within "I would like others to explain the difference between [blank] and [blank] to me." It's also definitely not . So, why was it closed? I removed the subjective-sounding bits at the end before it had enough close votes, but that apparently didn't do much. If good content like that is being closed because of the "rules," then shouldn't that be an indication that something else is wrong?


Academic fair use and using publication images in your thesis

In the introductory chapter of my thesis, I've been surveying the previous work in my field. As part of this, I've used images from some of those publications and included them as Figures in my own thesis.   Occasionally, I have slightly edited them - for instance, changing the labelling.   I usually only use one image from each paper.   My understanding is that this falls under academic fair use, and I do not need permission from any of the publishers to re-use these images in my thesis.   Am I correct?   Update:  It is fairly easy to get permission using RightsLink with most publishers. Just fill out the form on the website and you get the licence immediately.   Bill Barth's comment is extremely important - fair use is a defence rather than a prophylactic and I for one don't want to be in a position of having to defend my use of Figures in a court of law.   Of course, it is extremely unlikely that any publisher would do such a thing, but my feeling is it's better to be safe than sorry.


I am writing a scientific article using LaTeX, with a separate .bib bibliography file, generated via a Zotero Firefox extension collection.  When generating the .pdf document, I get the following error:     Empty 'thebibliography' environment on input line 3   The line 3 contains:  \usepackage{amsmath}   Thus, the Reference section is empty and every citation number in the text appears as [?]. I already tried several things:   Inserting a \nocite{*} in the document Changing var = {something} to var = {"something"} in the BibTex file Removing all Unicode characters from the BibTex file   But the error style persist. Any idea?


How did my Mac end up with iPhone 4S as my host name in the user prompt in OS X terminal?

The other day I was searching for Xcode iOS 5 tutorials. About a day or two later, I noticed my terminal prompt is now "iPhone4s : myusername". Naturally , my biggest fear is that there could be a worm or trojan horse on here. I look up the current procedure for checking the most current Mac Malware and the system turned up clean. I followed the examples to edit the PIF with the code:  PS1="\h : \u\$"    and it does not get rid of the "iPhone4s" prefix. I checked the System Preferences > Sharing and the name for the computer is correct.  How do I go about making sure the system is not hacked, and how to get rid of the iPhone4s name? I have 3 accounts created on this system. The other 2 are not affected.


Suppose $v_1,...,v_m$ is linearly independent in  $V$ and  $w \in V. $ Prove that dim[(span$(v_1 + w,...,v_m + w)] \geq m - 1. $  attempt: Let $v_1,...,v_m$ be linear independent. So there is $a_1,..,a_m \in F,$ such that  $a_1v_1 + .... + a_mv_m = 0$. where $a_1=...=a_m = 0.$  Then $(v_1 - v_2,...,v_{m-1} - v_m)$ span and are linear independent in $V$. And dim$span (v_1,...,v_m) = m.$  Can someone please help me? I am stuck. Any help would be really appreciated. Thanks!


using fstream to read every character including spaces and newline

I wanted to use fstream to read a txt file.  I am using inFile >> characterToConvert, but the problem is that this omits any spaces and newline.  I am writing an encryption program so I need to include the spaces and newlines.  What would be the proper way to go about accomplishing this?


Why won't this If statement work for the string?

import java.util.Scanner;   public class Methods {  /*  * Compound interest Program Quarterly  */       public static void main(String[] args) {         Scanner keyboard = new Scanner  (System.in);          System.out.println("What is the Rate");         int rate = keyboard.nextInt()/100;         System.out.println("What is the Amount");         int amount = keyboard.nextInt();         System.out.println("How many years?");         int years = keyboard.nextInt();          keyboard.nextLine();         System.out.println("How is it compounded? Press Q = Quarterly, A = Anually, S = SemiAnnualy, M = Monthly");          String answer = keyboard.nextLine();         int easy = amount*(1+(rate/years));        int pow = 4 * years;           if (answer == "/Q"){             System.out.println("Your answer compounded Quarterly is: "  + Math.pow(easy,pow));   This is the code, but the if statement with String == "Q" doesn't work because when I press Q nothing happens? what's the issue?


The #include problem  class widget { };  class fubar : public widget { // 1      void value_parameter(widget); // 2         void ref_parameter(widget &); // 3     void ptr_parameter(widget *); // 4      virtual void value_parameter(widget); // 5     virtual void ref_parameter(widget &); // 6     virtual void ptr_parameter(widget *); // 7      widget value_return(); // 8     widget & ref_return(); // 9     widget * ptr_return(); // 10      widget instance_value_member; // 11     widget & instance_ref_member; // 12     widget * instance_ptr_member; // 13      static widget static_value_member; // 14     static widget & static_ref_member; // 15     static widget * static_ptr_member; // 16 };   Which of those lines require a has include?  (#include "widget.hpp")


How I can use coulours in Markdown Syntax?

Hello How I can use colours/background colours in texts.  I tried
coloured text
  But it does nothing.


Why do we have to use Gravatar for Careers 2.0?

Stack Exchange has moved away from using Gravatar.com for your profile picture, so can we do the same with Careers 2.0?   It is a real pain to have to update your picture on Careers.  Gravatar don't even allow login using OpenID which would kind of diminish the issue


I downloaded MiKTeX to my computer. I know how to change the font size in a document, and I understand that different document classes have a different default font size. My question is instead about how to change the default font size in the tex editor. It defaults to 8 and I have to manually make it bigger (Format -> Font... -> Font Size) every time I open a new tex file. Is there any way around this? Thanks in advance! Edit: I am using TeXworks.


It would be great if you help me!!  ' if I have a class, then I'll usually make my way to lecture hall after I (finish / have finished ) eating. '  what's the right word between the two? could you explain about the difference?


If $n>1$ is a natural number, how to prove that  $$(n+1)^n > 2^n n!$$


I am getting an Error: Bad math evironment delimiter for the following lines:`  \[ \sum\limits_{i=1}^{10} i z_{i}\equiv 0\)\ \textrm{mod}\ 11 \]   and  \[ z_{1} \equiv -  \(\sum \limits_{i=2}^{10} i z_{i}\)\ \textrm{mod}\ 11 0\leq z_{1}\leq 10  \]   The output is shown correctly


custom Adapter getView gives NullPointException

I have a listView which need a customized adapter- Dict_Adapter. One of the constructor of Dict_Adapter is:  public Dict_Adapter(Context c,ArrayList<String> Meanings){     context=c;     meaning=Meanings;     type=2; }   In getView of the adapter, the app will set two TextView and one ImageView like below:   @Override public View getView(int i, View view, ViewGroup viewGroup) {     if (view==null) {         LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);         view = inflater.inflate(R.layout.dict_listview_items, null);     }     TextView Difficulty=(TextView) view.findViewById(R.id.Dict_ListView_Difficulty);     TextView Word=(TextView) view.findViewById(R.id.Dict_ListView_Word);     ImageView Arrow=(ImageView) view.findViewById(R.id.Dict_ListView_Arrow);     if (type==2){         Difficulty.setText(difficulty.get(i));         Word.setText(meaning.get(i));         Arrow.setVisibility(View.INVISIBLE);     }     return view;   Difficulty and Word is two ArrayLists that supplies contents to the TextViews.  In the Activity Daily_Word.java, Dict_Adapter will be applied below:  ListView Daily_Word_Meaning_List=(ListView) findViewById(R.id.Daily_Word_Meaning_List);     String sourceMeaning=c.getString(1);     Log.w("SourceMeaning",sourceMeaning);     ArrayList<String> meaningList=new ArrayList<>(Arrays.asList(sourceMeaning.split("&")));     for (int i=0; i<meaningList.size();i++){         Log.w("Meaning",meaningList.get(i));     }     Dict_Adapter adapter1=new Dict_Adapter(getBaseContext(),meaningList);     Daily_Word_Meaning_List.setAdapter(adapter1);   Then here comes a problem: the app throws NullPointerException:  07-06 23:01:38.513 341-341/com.android.luftschlafer.wordenhancement E/AndroidRuntime: FATAL EXCEPTION: main                                                                                java.lang.NullPointerException                                                                                at com.android.luftschlafer.wordenhancement.Adapters.Dict_Adapter.getView(Dict_Adapter.java:103)   Which means      Difficulty.setText(difficulty.get(i)); gives nullpointerexception.  How to overcome this problem? I have already deployed the layout and widgets in "dict_listview_items" already.


How to restore ssh_config file in /etc/ssh

I accidentally deleted /etc/ssh/ssh_config file.  I've tried purging and re-installing openssh-server and ssh but the file doesn't return.  How would I restore this file?


I used this guide to create a mailserver for a small business: . IMAP is working perfectly but i ran into an issue with SMTP and Authenticated SMTP. When i use an email client (Inky, Airmail) i got logs from the IMAP connections but nothing from SMTP. The weirdest thing is that if u use my cell service on my phone it works...   My Postfix main.cf  alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix dovecot_destination_recipient_limit = 1 inet_interfaces = all mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 mydestination = webmail.voxel-it.com, voxel-it.com, localhost.voxel-it, localhost myhostname = webmail.voxel-it.com mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = voxel-it.com readme_directory = no recipient_delimiter = + relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client     blackholes.easynet.nl, permit smtpd_data_restrictions = reject_unauth_pipelining smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname,     reject_invalid_hostname, permit smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks,     permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain,     reject_unauth_destination, permit smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = voxel-it.com smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_sender_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_sender,                       reject_unknown_sender_domain, reject_unauth_pipelining, permit_sasl_authenticated, permit smtpd_tls_CAfile = /etc/ssl/certs/startssl-ca-bundle.pem smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/ssl/certs/mailserver.pem smtpd_tls_key_file = /etc/ssl/certs/mailserver.key smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_security_level = may smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes tls_random_source = dev:/dev/urandom virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = dovecot   Someone with the same problem as me


How are pseudorandom and truly random numbers different and why does it matter?

I've never quite got this. Just say you write a small program in any language at all which rolls some dice (just using dice as an example). After 600,000 rolls, each number would have been rolled around 100,000 times, which is what I'd expect.  Why are there websites dedicated to 'true randomness'? Surely, given the observation above, the chances of getting any number are almost exactly 1 over how ever many numbers it can choose from.  I tried it in : Here's the result of 60 million rolls. The highest variation is like 0.15. Isn't that as random as it's going to get?  1 - 9997653 2347.0 2 - 9997789 2211.0 3 - 9996853 3147.0 4 - 10006533 -6533.0 5 - 10002774 -2774.0 6 - 9998398 1602.0


I am writing a project using ASP.NET C#.  I want to implement linkbutton click event to open new page in a new tab, but before I have to create new session variable. I have tried this:  protected void LinkButton_Click3(Object sender, EventArgs e)         {             string p_id = (sender as LinkButton).CommandArgument;             Session["p_id"] = p_id;             Response.Write("<script type='text/javascript'> window.open('details.aspx','_blank'); </script>");          }   But it doesn't work anyway.


How to copy text in the Windows command line 'cmd'?

Is there any way to copy text that's shown in the Command Prompt window C:\Windows\system32\cmd.exe to the clipboard?


How to align prices in columns when both 2 digit and 4 digit variations of a price exist?

I am trying to display data similar to coinmarketcap with prices for coins, some above 1$ in which case they are rounded to 2 zeroes, some below 1$ in which case they have 4 digits following the decimal. I saw a bunch of posts here where people have suggested to use right alignment for numeric applications/prices  Approach 1 Decimal aligned   1. $13,700.05  2.      $0.0048   Approach 2 Right aligned   1. $13700.05  2.   $0.0048   Which of these approaches do you suggest? Thank you for your time


White Walkers sparing the odd member of the Night's Watch

Why do White Walkers spare members of the Night's Watch such as Will from the pilot episode and Samwell Tarly, although they don't seem like a merciful species?


I start a thread using the following code.  t = thread.start_new_thread(myfunction)   How can I kill the thread t from another thread. So basically speaking in terms of code, I want to be able to do something like this.  t.kill()   Note that I'm using Python 2.4.


Is a PDF output from a LaTeX document, a "derived work" from the LPPL standard packages?

If I write a LaTeX document that uses LPPL packages, since (La)TeX is a macro-replacement language, and I generate its output, to PDF for example, is the resultant output, in any form, a derived work from the LPPL packages?  I would like to be clear about this in order to know which types of licenses can I apply to my LaTeX source code and its output. For example, GFDL, CC-BY-SA, or even the source code LPPL and its output CC-BY-SA.


Reverse an array in place in JavaScript using Array.prototype.pop(), the return value

I want to write a JavaScript function reverseArrayInPlace(origin) that reverse an array in place. That is,   let orignalArray = [1, 2, 3];  reverseArrayInPlace(orignalArray);  console.log(orignalArray); // [3, 2, 1]   I know there is a trick that uses the Array.pop() method, by pushing the popped value to an empty result array, then return that result array. But it turns out the original array will become empty.  In order to modify the original array, I've tried it to assign the value of result reversed array to the original array (the argument), then return the original array. Using below three approaches:  origin = result;  origin = [...result];  origin.push(...result);  And here comes my question, the first or second does not work as I expected, but the third works fine.  function reverseArrayInPlace1(origin) {     let result = [];     while (origin.length > 0) {         result.push(origin.pop());     }     origin = result; // not work     return origin; }  function reverseArrayInPlace2(origin) {     let result = [];     while (origin.length > 0) {         result.push(origin.pop());     }     origin = [...result]; // not work     return origin; }  function reverseArrayInPlace3(origin) {     let result = [];     while (origin.length > 0) {         result.push(origin.pop());     }     origin.push(...result); // it works     return origin; }  let orignalArray1 = [1, 2, 3]; let orignalArray2 = [1, 2, 3]; let orignalArray3 = [1, 2, 3];  reverseArrayInPlace1(orignalArray1); // [3, 2, 1] reverseArrayInPlace2(orignalArray2); // [3, 2, 1] reverseArrayInPlace3(orignalArray3); // [3, 2, 1]  console.log(orignalArray1); // [] console.log(orignalArray2); // [] console.log(orignalArray3); // [3, 2, 1]   The return value of above functions is Ok, but the console.log result of the first and second is not what I want.  Can some one explain why the original array's value not changed after function return when I assign the result array to it directly using =? And why it changes as expected when using push()?