I have some problems in spacing. I just want to put equations in the text. What I found is that the vertical spacing between the equation and text is not consistent. Some is large and some is small. Both spacings above and below equation are not consistent. How do I get consistent spacing in the entire thesis? I can adjust spacing using \vspace{\baselineskip}. But I am not sure the spacing is exactly the same or not. It doesnt seems good solution. Here is my code.  \documentclass[twoside]{utmthesis} %According to the new manual, should not mixed single-side with two-side  printing \usepackage{graphicx} \usepackage{url}  %\usepackage[pages=some]{background} \usepackage{lipsum} \usepackage{pdflscape} \usepackage{verbatim} \usepackage{textcomp} \usepackage{mhchem} \usepackage{amsmath}  \usepackage{listings} \usepackage{graphicx} \usepackage{mwe} \usepackage{xr} \usepackage{siunitx} \usepackage{float} \usepackage{subfig} \newsavebox{\bigleftbox} \usepackage{tikz} \usepackage{nameref} %\usepackage[printonlyused]{acronym} \usepackage{romannum} \usetikzlibrary{shapes.geometric, arrows} \usepackage{natbib} \let\cite\citep \bibliographystyle{utmthesis-authordate}  \begin{document} \subsection{1D numerical modeling of the SI-engine} \vspace{\baselineskip} The numerical models and related equations applied in the 1D engine  simulation are presented and briefly discussed. \subsubsection{Pipe} \vspace{\baselineskip} In one-dimension modeling of flow through the pipes, working fluid is  assumed that it is flowing in one-direction, instead of three direction (X,  Y, and Z). It seems plausible, as most fluid particles are moving mostly in  longitudinal direction rather than radial direction of the pipe. A one-  dimensional pipe flow is described by Euler equation which is given in  conservation form below.  \begin{equation} \label{Euler} \frac{\partial \mathbf{U}}{\partial t} + \frac{\partial \mathbf{F(U)}}  {\partial x}= \mathbf{S(U)} \end{equation}  $\textbf{U}$ and $\textbf{F}$ represent state vector and flux vector,  respectively which are represented as follows.  \begin{equation} \mathbf{U}= \begin{pmatrix} \rho \\ \rho \cdot u \\ \rho \cdot \bar{C_v} \cdot T + \frac{1}{2} \cdot \rho \cdot u^2 \\ \rho \cdot w_j \end{pmatrix}\,\,\, , \,\,\, \mathbf{F}= \begin{pmatrix} \rho \cdot u \\ \rho \cdot u^2 + p \\ \rho \cdot (E+p) \\ \rho \cdot u \cdot w_j  \end{pmatrix} \end{equation}  With total energy, $E$ is given as below.  \begin{equation} \label{E} \begin{split} E=\rho \cdot \bar{C_v} \cdot T + \frac{1}{2} \cdot \rho \cdot u^2 \end{split} \end{equation}  The source term, $\textbf{S}$ is divided into two different sub-source  terms.   \begin{equation} \label{S}    \mathbf{S(U)}= \mathbf{S_A(F(U))} + \mathbf{S_R(U)} \end{equation}  $\mathbf{S_A}$ is the source term caused by axial changes in the pipe cross  section.  \begin{equation} \label{Sa} \mathbf{S_A(F(U))}= - \frac{1}{A} \cdot \frac{dA}{dx} \cdot \left(F +  \begin{pmatrix} 0 \\ -p  \\ 0 \\ 0  \end{pmatrix} \right) \end{equation}  $\mathbf{S_R}$ is the source term taking into account homogeneous chemical  reaction, friction, heat and mass transfer between gas and solid phase.  \begin{equation} \label{Sr} \mathbf{S_R(F(U))}= \begin{pmatrix} 0 \\ -\frac{F_R}{V}  \\ \frac{q_w}{V} \\ M W_j \cdot \left(\sum\limits_{i}^{R_{hom}} \nu_{i.j} \cdot  \dot{r_i}\right)\end{pmatrix} \end{equation}  \bibliography{reference} \end{document}

How could I go about setting the 'above' and 'below' vspaces around the equation environment?  If the same could be done for the subequations or gather environments, this would be a bonus.


does anyone know how to make the vertical line (before subscript op) for Taylor's polynomial? Any help will be appreciated!

Sorry for the long title, but how do I enter evaluated at (for a derivative), with multiple valuation criteria at the bottom of the the big | line?  Thanks!


I bought a laptop from a guy who has reprogrammed it and is still the device administrator, which means I can not install or uninstall any software or programs and I have no control over my device.

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


I know that this must have been asked but I think I have tried all the suggestions written.  I am using:   Win 7 x64 Office 2010(32 bit). MSFT Access Database 2010(32 bit) MSFT Office Access Database engine 2007.   My project is ANY CPU but still getting this error. Here is my connection string   "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + fileLocation + ";   Extended Properties=\"Excel 12.0;HDR=Yes;IMEX=1\";"   I have also checked my App Pool is currently set to False for 32 bit applications.  Any ideas guys?

I have a Visual Studio 2008 solution with two projects (a Word-Template project and a VB.Net console application for testing).  Both projects reference a database project which opens a connection to an MS-Access 2007 database file and have references to System.Data.OleDb.  In the database project I have a function which retrieves a data table as follows   private class AdminDatabase    ' stores the connection string which is set in the New() method    dim strAdminConnection as string     public sub New()    ...    adminName = dlgopen.FileName    conAdminDB = New OleDbConnection    conAdminDB.ConnectionString = "Data Source='" + adminName + "';" + _        "Provider=Microsoft.ACE.OLEDB.12.0"     ' store the connection string in strAdminConnection    strAdminConnection = conAdminDB.ConnectionString.ToString()    My.Settings.SetUserOverride("AdminConnectionString", strAdminConnection)    ...    End Sub     ' retrieves data from the database    Public Function getDataTable(ByVal sqlStatement As String) As DataTable         Dim ds As New DataSet         Dim dt As New DataTable         Dim da As New OleDbDataAdapter         Dim localCon As New OleDbConnection           localCon.ConnectionString = strAdminConnection          Using localCon             Dim command As OleDbCommand = localCon.CreateCommand()             command.CommandText = sqlStatement             localCon.Open()             da.SelectCommand = command             da.Fill(dt)             getDataTable = dt         End Using      End Function End Class   When I call this function from my Word 2007 Template project everything works fine; no errors. But when I run it from the console application it throws the following exception     ex = {"The 'Microsoft.ACE.OLEDB.12.0'   provider is not registered on the   local machine."}   Both projects have the same reference and the console application did work when I first wrote it (a while ago) but now it has stopped work.  I must be missing something but I don't know what.  Any ideas?


This is the problem happening while I am rotating the left arm bones in pose mode as you can see in the picture.All the vertex groups are correctly weighted and parent with the bones.Even rotating bones will be transforming the left arm but not exact position with bone position.    Now look the vertex weight paint it is showing correct weight color to move with bones.  Even though left arm is moving not according to bone position.    Please help.Thank you in advanced

When trying to control the eyelid and eyelashes mesh (both are part of the same mesh although the eyelashes are not attached to the rest of the head). Moving the gaze bone up causes the eyelids to move at the appropriate speed, but the eyelashes move at a different speed and don't stay where they need to be.  Eyelid deform bones are circled in red. These bones are restricted to X rotation only.     After changing the gaze bone to make the character look up, eye lashes detach.   I have tried weight painting the eyelashes but it doesn't make a difference unless the weight is set to zero and then the eyelashes don't move at all.  Is there a way to fix this?  Link to the .blend file:


In Schindler's List (1993), a woman says a story:  The trains arrived and the people were driven out with clubs. They were lined up in front of two big warehouses. One was marked "Cloak Room," and the other "Valuables." And there they were made to undress. A Jewish boy handed them pieces of string to tie their shoes together. They shaved their hair. They told them it was needed to make something special for U-boat crews. And then they were herded down a big corridor to bunkers with Stars of David on the doors and signs that said "Bath and  Inhalation Room."  Why "down a" instead of "down from"?

"Off down the corridor"?  "off" and "down"?  I can't get the picture of this sentence,because I don't know where the man was and where he was going in the sentence.  What position did the speaker think "he" was in then?


UPDATE  I tried the answer of         but when I tried the code below, it gave me 16 for below code   public class MemoryTest {      public static void main(String[] args) {         System.out.println(ObjectSizeFetcher.getObjectSize(new ArrayList<>().add(new DummyObject())));     } }   and 16 is not what I am looking for, so I asked this question again.  Is this question still duplicated question?    I want to check the memory usage of an object, and here is what I tried.  (java 8)  // Dummy Object class public class DummyObject {     int dummy; }  // Separate class to check memory public class MemoryTest {     public static void main(String[] args) {         Runtime runtime = Runtime.getRuntime();          long before = runtime.totalMemory() - runtime.freeMemory();         DummyObject obj = new DummyObject();         long after = runtime.totalMemory() - runtime.freeMemory();          System.out.println(after - before);     } }   and result is "0"   Can anyone tell me 1. why result is 0 2. what is the proper way of measuring memory usage of an object  thanks in advance     UPDATE  When I tried the same code in Android project as below, (SDK version 23)  public class MainActivity extends AppCompatActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);          Runtime runtime = Runtime.getRuntime();          long before = runtime.totalMemory() - runtime.freeMemory();         DummyObject obj = new DummyObject();         long after = runtime.totalMemory() - runtime.freeMemory();          System.out.println("test memory: " + (after - before));     } }   the result was "680"  What makes this difference and why?

I have an application that reads a CSV file with piles of data rows.  I give the user a summary of the number of rows based on types of data, but I want to make sure that I don't read in too many rows of data and cause OutOfMemoryErrors.  Each row translates into an object.  Is there an easy way to find out the size of that object programmatically?  Is there a reference that defines how large primitive types and object references are for a VM?  Right now, I have code that says read up to 32,000 rows, but I'd also like to have code that says read as many rows as possible until I've used 32MB of memory.  Maybe that is a different question, but I'd still like to know.


From :     Your main problem is that the Gunslinger is gimped by the awful Pathfinder gun rules. It will never have comparable damage to other characters. Consider getting your DM to allow better firearm rules, they exist in the Pathfinder Freeport Companion and Adamant Entertainment's Tome of Secrets, and here's a great free set of gun rules (I wrote) for Pathfinder from LPJ Design via RPGNow.   The link in that answer is dead. Where are LPJ Design's alternate gun rules for Pathfinder available now?

I am considering playing a Gunslinger when next we play Pathfinder (I am currently GMing a game, and we'll be switching off afterwards), and thumbing through the Ultimate Combat Playtest v. 2, and I'm wondering how best to keep my damage progression on a decent track. I've considered a couple of things, like taking the various feats which increase damage and critical threat range (seems most guns crit at x4), and enchanting my gun, but I was wondering if anyone had some other ideas on how to keep damage high.   There are a couple of things working against me:   Ammo is expensive: A single shot, if made by the Gunslinger costs a minimum of 1gp 1sp, and that's the kind of ammo which takes a standard action to reload (move if you have rapid reload). Alchemical rounds cost something like 6gp a piece. Guns are expensive: A single shot pistol is 1,000 gp (but the Gunslinger can make one for half). Ultimately I think I want a revolver so I can get up to 6 shots before having to reload. Guns don't add ability bonuses: Like crossbows, they do static damage. 1d8 for a pistol.   Things working for me:   Within one Range Increment, guns resolve against touch AC: Which means I will probably almost always hit. That's awesome, but doesn't help my damage. Aimed shots at level 7: These are kind of awesome, and can cause nifty status effects.   I don't really need powergaming levels of damage here, just want to keep a moderate level of damage.


If we have to evaluate $[(-2)^\frac{3}{8}]^\frac{8}{3}$ would the answer be -2 or 2? My teacher says that in this case the exponents can't be multiplied as they are not natural numbers. Then how do we simplify it solving one bracket in a step?

My teachers have gone over rules for dealing with fractional exponents. I was just wondering how someone would compute say: $$(-5)^{2/3}$$ I have tried a couple ways to simplify this and I am not sure if the number stays negative or turns into a positive. I know that if a negative number is raised to an odd power it is negative, but fractional powers are neither odd or even. Is there a general rule for dealing with these types of problems?


In the book I'm writing there are some parts with math-mode spaces and math-mode inline spaces that are too excessive for me. The first and the second image that I am reporting are taken directly from the textbook that makes the idea of excessive spacing (see some annotates red arrows).  Real first image taken from my book    Real second image taken from my book    Here there is a compilable MWE that reproduces the similar problem. I was asking myself if the spacing is normal or if there is something that I should fix either in the text or in the preamble.  \documentclass[a4paper,12pt]{article} \usepackage[top=2.5cm,bottom=2.2cm,             left=3.2cm,right=1.5cm,headsep=10pt,             a4paper]{geometry}   \usepackage{amsmath,amssymb,mathrsfs} \usepackage{newtxtext,newtxmath} \showhyphens{matematica} \begin{document} \noindent Ovviamente deve essere $1-c^2>0$ e cioè $|c|<1$ perchè sia lecita la relazione \ldots. La costante arbitraria $c$ può avere segno qualsiasi; deve aversi cioè $\forall x\in ]a,b[, \,y'(x)=c/\sqrt{1-c^2}$ oppure $y'(x)=-c/\sqrt{1-c^2}$. Potrebbe essere $c=0$ compatibile solo con $y(a) = y(b)$, segmento parallelo all'asse $x$. Se $c\ne 0$, allora anche $c/\sqrt{1-c^2}\ne 0$, e dovendo $y'$ essere continua non può accadere che per certi $x\in ]a, b[$ valga il segno $+$ e per altri il segno $-$ (altrimenti $y'$ salterebbe senza assumere i valori intermedi fra $c/\sqrt{1-c^2}$ e $-c/\sqrt{1-c^2}$). Deve quindi valere $y'(x)=c/\sqrt{1-c^2}$ per ogni $x\in]a,b[$, oppure $y'(x)=-c/\sqrt{1-c^2}$ sempre per ogni $x\in]a,b[$: dato che $c$ è, come detto prima, costante di integrazione indeterminata, non si perde nulla a scrivere $y'(x)=c/\sqrt{1-c^2}$ qualunque sia $c$. Posto  $m=c/\sqrt{1-c^2}\in \mathbb{R}$, ed essendo $c$ variabile in $]-1,1[$ allora $m=c/\sqrt{1-c^2}$ assumerà tutti i valori reali. La soluzione generale dell'equazione di Eulero è $y(x)=mx+k$; dovendo essere $y(a)=\alpha$ ed $y(b)=\beta$ si ricava $ma+k=\alpha$ ed $mb+k=\beta$, da cui $m=(\beta-\alpha)/(b-a)$ e $k=\alpha-a(\beta-\alpha)/(b-a)$. Ma ci si poteva fermare una volta scoperto che $y'$ deve essere costante: questo prova che le uniche soluzioni sono segmenti di rette come il percorso più breve, e ce n'è uno solo che passa per due punti dati $(a,\alpha)$ e $(b,\beta)$, come ben sappiamo. La funzione integranda non dipende esplicitamente da $x$ quindi il funzionale è del tipo \[\mathscr{F}(y)=\int_{a}^{b}f(y,y')\,dx\] In questo caso l'equazione di Eulero-Lagrange   \[\frac d{dx} \frac{\partial f(y,y')}{\partial y'}-\frac{\partial f(y,y')}{\partial y}=0\] Se poi $y$ è di classe $\mathcal{C}^2$ in $[a,b]$ diventa, dalla \eqref{elfd2}, per il teorema di derivazione delle funzioni composte, \begin{equation}\label{edex} f_{y}(y,y')-f_{y'y}(y,y')y'-f_{y'y'}(y,y')y''=0 \end{equation} Moltiplicando la \eqref{edex} per $y'$, otteniamo l'equazione di Eulero-Lagrange è \[\dfrac d{dx}(f-y'\,f_{y'})=0.\] Infatti si ha \[\begin{split}\dfrac d{dx}(f-y'\,f_{y'})&=f_y\,y'+f_{y'}\,y''-y''\,f_{y'}-(y')^2\,f_{yy'}-y'\,y''\,f_{y'y'}=\\ &=y'(f_y-y'\,f_{yy'}-y''f_{y'y'})=y'\cdot 0=0.\end{split}\] \end{document}   The two outputs are:   and   For the users: see please the comments below.

LaTeX commands like this:  Here again, four different simulations are run on networks of size  $C^{G} = 25 \times\ 25 = 625$, $C^{G} = 50 \times\ 50 = 2500$, $C^{G} = 250 \times\ 250 = 62500$, and $C^{G} = 500 \times\ 500 = 250000$...   When compiled generate the following:    The spacing in math mode really irritates me. There's too much white space around the equal sign, and the multiplication sign has more right padding than left padding. Is there any way to reduce this spacing?


I frequently edit question so it look nice and readable.  I found that some asker post question with some extra comment and log which is not useful in understanding question or not related to question.  Like system comment, Auto generated comment, Log to print variable, or log like "called" "abc1", "abc2".  So should I remove this comment and log while making edit to this kind of question?

I am referring to this question on SO , where there is a massive amount of commenting within the code (the question has since been edited to correct this).  Is it allowed to remove these for the sake for readability (the comments just specify some lesson details, method comments etc)?


Is the series $\sum 1/p$ in which p is prime converges? I remembered there's some theorem about this. THank you

Is this series known to converge, and if so, what does it converge to (if known)?  Where $p_n$ is prime number $n$, and $p_1 = 2$,  $$\sum\limits_{n=1}^\infty \frac{1}{p_n}$$


I was wondering a lot about it lately. I found various examples of it, specially in more formal/old texts.  The first time I realized it was reading what Oppenheiner said in an intreiew after the test with a nuclear bomb, he quotes the Bhagavad-gita and says:     "Now I am become death, the destroyer of worlds.   What is this am doing there? What is its function? I am not an english native speaker, so I found it very tricky to find out the logic behind it, maybe some older tense I'm not aware of, or maybe "become" is not funcioning like a verb in an older context (but I think it is not as likely, knowing abou germanic languages in general).

Is physicist Robert Oppenheimer's phrase “Now I am become Death, the destroyer of worlds.” grammatical in English? Why not "becoming" or "now I become"?


Now that I was looking into static inner class, I found that the way of object creation of static inner class and non-static inner class is different. But I don't understand why.  For non-static inner class:  Outer.Inner inner = new Outer().new Inner();   For static inner class:  Outer.Inner inner = new Outer.Inner();

What is the main difference between an inner class and a static nested class in Java? Does design / implementation play a role in choosing one of these?


I have an array of strings in Korean similar to 사람 [saram] where they all consist of the Hangeul(Korean alphabet) and then the English pronunciation in brackets.  The preg_replace I have is:  preg_replace("/\[.*\]/u","","사람 [saram]");   But the output is always:  ì‚¬ëžŒ   or some similar gibberish.  I'm 90% sure it's the Korean characters because when I try:  preg_replace("/\[.*\]/u","","Person [saram]");   Only Person is outputted.  Any help would be greatly appreciated!

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


The :  :    :    :    And, my favorite, :    But  is very boring:    Yawn.    And it isn't like I'm seeing this infrequently - we get spam, it is deleted and then I click the X new questions button, open them all in new tabs and half of them are deleted and end up with a 404.  Please could we have a fun, inventive image, maybe that links into one of . Feel free to answer with your suggested images (ensure it would be legal for it to be used).  Please note however that SE have not said that the 404 page will necessarily be implemented since I have no saying on that.

I see the  404 page didn't survive the migration. The current image is the default for beta sites. Is there a better image in the works to replace the somewhat bland '' and ''?


I want to create an user with no login, no home and that not be shown in lightdm login screen window or User Accounts tool. Just like others users in /etc/passwd: sshd, syslog, avahi...  I've tried with this command line:   useradd -r -u 1001 -M -g 1001 media   But I still can see the user in user accounts tool:    Thanks in advance!!  Note: This question has been claimed to be duplicated but I don't think so. The main difference is what I want is to create a kind of user that never be shown in the lightdm login screen window neither User Accounts tool. An user that not have a properly defined $home is a different thing.

I want to create a new user to run a service on the system but don't want to have /home and other configuration files for it. Like there is a user for postgres but it doesn't have any /home directory.


I am in an intro to java class and have we have to create a Mine Sweeper game.  I have the game complete for the most part. But I have having 1 issue where my program goes into a crazy infinite loop.  When the user Guesses wrong and hits a "bomb", the game correctly ends.  But when they guess correctly and do not hit a bomb, the program enters a infinite loop for some reason and I have to terminate it.  I use 2 2dArrays, one  that displays to the player as all '?', and the other that has actual bombs placed on it, that I compare guesses to and update the player board.  I feel like the problem is in my GetGuess method.  Not sure why this infinite loop only happens the the user makes a correct guess.  The first guess prompt works fine, and if it hits a bomb, the game ends.  If the guess is good, the program should ask for another guess, but instead  The infinte loop prints:   Enter row number:  null   over and over again until I terminate.  Can anyone help me figure out where this is coming from?    Here is my main and Game class.  public class MineSweeper {  public static void main(String[] args) {      Game test = new Game();     test.loadBombs(test.bombBoard);     test.loadArray(test.board);     test.loadNumber(test.bombBoard);     test.displayBoard(test.board);     test.displayBoard(test.bombBoard);      while(test.gameOver==false)//Continue to get user guess until win or lose     {     test.getGuess(test.board, test.bombBoard);     test.displayBoard(test.board);     }  }   public class Game {  int arrayDimension = 9; char[][] board = new char[arrayDimension][arrayDimension]; char[][] bombBoard = new char[arrayDimension][arrayDimension]; static boolean gameOver;  public static void getGuess(char[][] boardArray,char[][]bombBoard) {       int rowGuess = 0, colGuess=0;     Scanner reader = new Scanner(System.in);        //Prompt user guess        boolean valid = false;//Check if guess is valid        while(valid == false)        {       try{        System.out.println("Enter row number: ");        rowGuess= reader.nextInt();         System.out.println("Enter column number: ");        colGuess = reader.nextInt();         if((rowGuess<0||rowGuess>8) && (colGuess<0||colGuess>8))//Check if guess is valid        {            throw new IndexOutOfBoundsException("This row and column is out of bounds!");        }        else if(rowGuess<0 || rowGuess >8)        {            throw new InputMismatchException("Invalid Row Choice!");        }        else if(colGuess<0 || colGuess >8)        {            throw new InputMismatchException("Invalid Column Choice!");        }        else{}        }        catch(Exception e)       { System.out.println(e.getMessage());       }         if(rowGuess >= 0 && rowGuess<=8) //Guess was valid, place * at location         {             if(colGuess >=0 && colGuess<=8)             {                 boardArray[rowGuess][colGuess]= '*';                                reader.close();                 valid = true;             }         }        }        char answer = bombBoard[rowGuess][colGuess];//check bomb board with user guess        if(answer == '#')//Bomb, you lose        {            boardArray[rowGuess][colGuess]= answer;            System.out.println("You hit a bomb, game over!");           gameOver = true;               }        else//correct guess, Place number of bombs around guess, continue guessing.        {            boardArray[rowGuess][colGuess]= answer;           gameOver = false;        }  }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I thought that I could give an additional 50 bounty points for an answer if I wanted to, but it would appear that I am restricted to only giving an additional 100.  Could someone please tell me why this is so?  Is there way around this restriction?

It's possible to offer and award bounties of reputation on questions.   What is a bounty? How can I find questions that have a bounty attached? How do I start a bounty? When can I start a bounty? Why is the system requiring me to choose a bounty amount that's higher than the minimum? Can I use Markdown formatting in the bounty remarks? Can I edit the remark? How long is the bounty period? How do I award a bounty? Can I award a bounty to my own answer? Can I award a bounty to an old answer? If I offer a bounty on someone else's question, can I award the bounty to their answer? After awarding the bounty, can I remove it or move it to another answer at a later time? What happens if there's no answer after the bounty period? What happens if I feel my question is still unanswered? What is automatic awarding? Are bounty awards exempt from the 200 points/day reputation limit? How does Community Wiki mode affect bounties? How does user deletion or post dissociation affect bounties? Can I award a bounty to an answer from a deleted user or one where the author was dissociated? Can I offer a second bounty after the first one has expired? Can I raise my bounty? What happens if a bounty question is closed or deleted? Why can't I vote to close or migrate a bounty question? What happens if I delete my account while I have an active bounty? Do I keep an awarded bounty when I delete my answer? What happens if a question where I awarded a bounty later gets deleted or migrated? Can I cancel my bounty? Can I affect / divide / share part of my bounty to two (or more) users? How many outstanding bounties can a single user have?      See also:  in the Help Center


I have attached a blender file below along with some pictures. I tried to use the boolean modifier to do the same but came up with rather difficult to work with results. I want to have the curve and the shape of the hat to be nearly the same as the real Staunton Bishop.    gdrive link to blend file:

I was modeling a chess set. Bishop was my biggest problem. The slice looks ok without a subsurf. Add a subsurf of 2 and ugliness happens.  I went to just practicing on a cylinder. looks ok, but I'm still get creases/folds. I get the slice by beveling a flat cube and booleaning.    So far this is the best I can get.  Thanks for any help or suggestions. Just another noob wading neck deep in blender water.  Not sure if my solution is a perfect as I would like, but here is what I ended up with.  I removed the edges inside the slice and allowed the Subsurf to create the curve. That eliminated the mega ngons that was being created.


I have two formats and they are shown below.  Format 1 :  printstring = printstring & "---------------------------------------" & vbNewLine   Format 2 :  printstring = String.Format("{0}---------------------------------------{1}", printstring, vbNewLine)   It was recommended to follow Format 2 by a Code Optimization Tool.  Is there any specific reason for this? Like memory consumption or some other reason?

Let's say that you want to output or concat strings. Which of the following styles do you prefer?   var p = new { FirstName = "Bill", LastName = "Gates" }; Console.WriteLine("{0} {1}", p.FirstName, p.LastName); Console.WriteLine(p.FirstName + " " + p.LastName);   Do you rather use format or do you simply concat strings? What is your favorite? Is one of these hurting your eyes?  Do you have any rational arguments to use one and not the other?  I'd go for the second one.


I'm trying to disable IPv6 on all of the adapters on an Ubuntu 17.10 machine. I used to be able to do so (prior Ubuntu versions) by editing /etc/sysctl.d/99-sysctl.conf to add disable parameters as follows:  echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.d/99-sysctl.conf echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.d/99-sysctl.conf echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.d/99-sysctl.conf   then reloading the parameters with:  sysctl -p   With Ubuntu 17.10, this works for the current session (i.e., ifconfig or ip address will show only IPv4 addresses), but IPv6 addresses come back after a reboot. (FWIW, I also have dhcp6: no set for each adapter in the netplan 01-netcfg.yaml file, so the IPv6 address associated with each adapter is a default one.)  How do I disable IPv6 permanently on an Ubuntu 17.10 (netplan) machine?  Update  Since this was marked as an "exact duplicate" of , I'll defend my question by noting that   That answer, which I had seen, appears to be a last resort ("If your PC doesn't load /etc/sysctl.conf at boot time"). I think Ubuntu 17.10 does load /etc/sysctl.d/99-sysctl.conf at startup (though I'll do some research to confirm this if no one who knows responds to this), and There has to be a more elegant (or "correct") way to disable IPv6 within Ubuntu. I can think of lots of kludgy ways to disable IPv6 (cron script run at boot, this grub fix, etc.), but I'm worried about portability across, for example, kernel updates (will my grub edits persist across updates, or will I need to make the same edits each time?).   Since this problem appears to have started only with the move to netplan instead of /etc/network/interfaces, I'm hoping someone familiar with netplan network configuration will weigh in.  Sorry if I sound defensive, but I try very hard to do my homework first and not to post duplicate questions.

How can we disable IPv6 system wide via terminal commands?  I've read editing /etc/modprobe.d/aliases  and replacing:  alias net-pf-10 ipv6   with:  alias net-pf-10 off alias ipv6 off   Is this safe to apply and does it permanently disable ipv6 across reboots?


I am trying to separate each word in a string and then add them to a stack. Here is the code I wrote to do this. Every time I run the tester, it always returns an empty stack, but shouldn't the stack have <body> in it?  import java.util.Stack;  public class HTML3{ //main method public static boolean checkBalance(String str) {     Stack<String> stack = new Stack<String>();     String[] words = str.split(" ");     for (int i = 0; i < words.length; i++) {         String tag = words[i];         if(tag=="<body>" || tag=="<hl>" || tag=="<center>" || tag=="<p>" || tag=="<ol>" || tag=="<li>") {                      stack.push(tag);         }     }      return stack.isEmpty(); }  public static void main(String[]args) {     checkBalance("<body> <li>");    }   }


Is the term TTY only a metaphor in modern day Linux systems referring to any CLI environment (direct as in GUI-less distros, and/or indirect as a CLI window in GUI-based distros).

I think these terms almost refer to the same thing, when used loosely:   terminal shell tty console   What exactly does each of these terms refer to?


I am working on a Visual C++ application that works only if command line arguments are passed to it. Since I have more kind of tests and arguments to pass to my application, passing them by the Project -> Options -> Arguments is not a good approach. I am currently looking for some kind of Visual Studio extension that allows me to run my application with arguments right from Visual Studio.

I'm developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the arguments I need (like this program.exe -file.txt) , but this way I can't debug. Is there somewhere I can specify the arguments for debugging?


Reference: Conway - Functions of one complex variable p.55 Exercise 17.  Let $\epsilon>0$.  Let $f:B(0,\epsilon)\rightarrow \mathbb{C}$ be an analytic function such that $|f(z)|=|f(w)|$ for each $z,w\in B(0,\epsilon)$.  In this case, how do I prove that $f$ is constant?  I'm completely lost where to start..

How can I prove the following assertion?    Let $f$ be a holomorphic function such that $|f|$ is a constant.  Then $f$ is constant.    Edit: The more elementary the proof, the better. I'm working my way through a complex analysis workbook, and by this exercise, the only substantial thing covered has been the Cauchy-Riemann equations.


I know we can overload behavior of instances of a class, e.g. -   class Sample(object):  pass s = Sample() print s <__main__.Sample object at 0x026277D0> print Sample <class '__main__.Sample'>   We can change the  result of print s:  class Sample(object):   def __str__(self):     return "Instance of Sample" s = Sample() print s Instance of Sample   Can we change the result of print Sample?

In Python, what are metaclasses and what do we use them for?


I have been riding on a cheap bike from Argos but I want to start doing it a bit more properly. Where I live, there are a fair few cycle paths, etc which aren't very flat. There's a lot of tree roots, pot holes etc.   Also, as I'm a bit of a novice, I can't ride on the road properly. So I want to be able to hop onto and off curbs.  My goal is to compete in a 100 mile race next year. I have been looking at bikes, what do you guys think of this one:    Will this be a good bike to get?

In the (distant) past I commuted 6 km (more than half an hour) each way, on a cheap bike with big knobbly tyres.  Soon I'll have a new commute: 18 km each way, daily. That's much further than I've done in the past, and I don't want it to take 2 hours each way; but  suggests that it's feasible:      Most people who reside 10 to 20 kilometres away will also find it quite easy to cycle to work, although the distance in the high end of this range will become a little more demanding.   If I can do it in 80 minutes or even less each way, that would be ideal. I'm 49 years old, 6 foot tall, and weigh 170lb, and I want to commute by bike because otherwise I'd be getting no exercise in my week at all.  I've never bought or ridden anything but a cheap bike.  What equipment should I buy then, to commute 11 miles each way through a city (Toronto) on  flat, paved roads, shared with cars:   Wheels? Tyres? Clipless pedals and shoes? Gears? Handlebars (e.g. flat or dropped)? Frame (size, shape, material)? Mud-guard/fender?


My /boot/ partition is full and I can't purge old kernels, I've been trying the suggestions here but no luck   dpkg -l linux-image-\* | grep ^ii ii  linux-image-4.4.0-71-generic       4.4.0-71.92  amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-4.4.0-72-generic       4.4.0-72.93  amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-4.4.0-75-generic       4.4.0-75.96  amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-4.4.0-78-generic       4.4.0-78.99  amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-4.4.0-79-generic       4.4.0-79.100 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-4.4.0-81-generic       4.4.0-81.104 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-4.4.0-83-generic       4.4.0-83.106 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-4.4.0-87-generic       4.4.0-87.110 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-4.4.0-89-generic       4.4.0-89.112 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-extra-4.4.0-71-generic 4.4.0-71.92  amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii  linux-image-extra-4.4.0-72-generic 4.4.0-72.93  amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii  linux-image-extra-4.4.0-75-generic 4.4.0-75.96  amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii  linux-image-extra-4.4.0-78-generic 4.4.0-78.99  amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii  linux-image-extra-4.4.0-79-generic 4.4.0-79.100 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii  linux-image-extra-4.4.0-81-generic 4.4.0-81.104 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii  linux-image-extra-4.4.0-83-generic 4.4.0-83.106 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii  linux-image-extra-4.4.0-87-generic 4.4.0-87.110 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP   sudo apt-get update suggests I Try 'apt-get -f install' with no packages (or specify a solution).  All I get for my efforts is this:  The following packages have unmet dependencies.  linux-image-extra-4.4.0-93-generic : Depends: linux-image-4.4.0-93-generic but it is not going to be installed  linux-image-extra-4.4.0-96-generic : Depends: linux-image-4.4.0-96-generic but it is not going to be installed  linux-image-generic : Depends: linux-image-4.4.0-96-generic but it is not going to be installed                        Recommends: thermald but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   sudo apt-get autoremove returns  sudo apt-get autoremove Reading package lists... Done Building dependency tree Reading state information... Done You might want to run ‘apt-get -f install’ to correct these. The following packages have unmet dependencies.  linux-image-extra-4.4.0-93-generic : Depends: linux-image-4.4.0-93-generic but it is not installed  linux-image-extra-4.4.0-96-generic : Depends: linux-image-4.4.0-96-generic but it is not installed  linux-image-generic : Depends: linux-image-4.4.0-96-generic but it is not installed                        Recommends: thermald but it is not installed E: Unmet dependencies. Try using -f.

My first issue was when I tried to apt-get update or apt-get upgrade. On upgrade I get the following error:  You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not installed E: Unmet dependencies. Try using -f.   I tried running apt-get install -f and this was the output(after saying yes on prompt)  (Reading database ... 186183 files and directories currently installed.) Unpacking linux-image-3.2.0-27-generic (from .../linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb) ... Done. dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb (--unpack):  failed in write on buffer copy for backend dpkg-deb during `./boot/System.map-3.2.0-27-generic': No space left on device  No apport report written because the error message indicates a disk full error                                                                           dpkg-deb:    error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-27-generic   /boot/vmlinuz-3.2.0-27-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic Errors were encountered while processing: /var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I tried running apt-get autoremove and it gives me the same error as apt-get upgrade.  When I run df, I get this for /boot:  /dev/sda1                    233191     230297         0 100% /boot   So, I read elsewhere that I should try to purge old kernels. I checked for what kernels I had with:  $ dpkg -l linux-image-\* | grep ^ii ii  linux-image-2.6.38-13-server  2.6.38-13.52  Linux kernel image for version 2.6.38 on x86_64 ii  linux-image-3.0.0-13-server   3.0.0-13.22   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-14-server   3.0.0-14.23   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-15-server   3.0.0-15.26   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-16-server   3.0.0-16.29   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-17-server   3.0.0-17.30   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.2.0-24-generic  3.2.0-24.39   Linux kernel image for version 3.2.0  on 64 bit x86 SMP ii  linux-image-3.2.0-25-generic  3.2.0-25.40   Linux kernel image for version 3.2.0  on 64 bit x86 SMP ii  linux-image-3.2.0-26-generic  3.2.0-26.41   Linux kernel image for version 3.2.0  on 64 bit x86 SMP   When I try to remove the oldest with this:  $ sudo apt-get purge linux-image-2.6.38-13-server Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not going to be     installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   How can I free up or extend boot without messing up my installation?


I want to subscribe to the close / beforeunloadevent of a window:   public OpenParameters() {              if (this.openProcessStrategyWindowHandle) {                 this.openProcessStrategyWindowHandle.focus();             }              if (this.openParametersWindowHandle) {                 this.openParametersWindowHandle.focus();                 return;             }              this.generateUrlParametersWindow();             this.openParametersWindowHandle = this.$window.open(this.openParametersUrl + "?"                 + this.eveUtilsService.createGuid(),                 "parametersWindow", "width=1280,height=750,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=yes");             // event for closing window/tab             this.openParametersWindowHandle.onbeforeunload = () => {                 this.CloseParametersInfo();             };         }   This works fine with Chrome but not with IE11 I also tried subscribing via  this.openParametersWindowHandle.addEventListener("beforeunload", () => {                 this.CloseParametersInfo();             });   which results on IE in following message: "Das Object untersützt die Funktion oder Eigenschaft "addEventListener" nicht"  I found a might related topic   but none of the suggested fixes helped. any ideas?  Update: what confuses: after setting and hitting a breakpoint in the code above, the code seems to work.

I need to warn users about unsaved changes before they leave a page (a pretty common problem). window.onbeforeunload = handler  This works but it raises a default dialog with an irritating standard message that wraps my own text. I need to either completely replace the standard message, so my text is clear, or (even better) replace the entire dialog with a modal dialog using jQuery. So far I have failed and I haven't found anyone else who seems to have an answer. Is it even possible? Javascript in my page: <script type="text/javascript">        window.onbeforeunload = closeIt; </script>  The closeIt() function: function closeIt() {   if (changes == "true" || files == "true")   {       return "Here you can append a custom message to the default dialog.";   } }  Using jQuery and jqModal I have tried this kind of thing (using a custom confirm dialog): $(window).beforeunload(function () {     confirm('new message: ' + this.href + ' !', this.href);     return false; });  which also doesn't work - I cannot seem to bind to the beforeunload event.


I don't understand what  is. I know escape velocity from the earth is 11,186m/s. If a rocket is launched from the surface of the earth with initial speed of 11,186m/s, does it escape the influence of earth's gravitational pull? Or does it need to have that velocity at a particular distance from the surface to escape the gravitational pull?

from Earth's surface is 11.2 Kilometres/second.  How long would one need to maintain this escape velocity to actually escape Earth's gravitational pull? Must this 11.2 km/s velocity need to be maintained all the way up to geosynchronous orbit?


What is the basic concept in electromagnetism that explains the MRI projectile effect in which steel objects such as gurneys crash into an MRI machine with a force that is sufficient to kill or severely injure a person?

While searching, i found this page:  but it does not have full explanation. So Please tell full explanation of why this happens?


How can you prove the existence of super-natural being ?

Assume the supernatural does exist, and consists of beings/forces that can interact with our natural universe in ways that are contrary to the natural laws of this universe (at least as we know them).  Take any generic or historical example of the supernatural, such as miracles, spiritual/supernatural revelations, sixth senses (in some contexts), angels/demons, various explanations of God/gods, vampires/werewolves, etc.  Whichever you like or is your favorite.  In general, you just need a being which exists in another dimension/plane of existance, and can at least one-way interact with ours in a way that "breaks" the laws of nature.  What evidence can exist or could be captured for these beings/forces/events truly being supernatural?  Is it possible that they could be scientifically tested or proven?  To what level or extent?  Any supernatural event which is observable (a faith healing, for example) could have witnesses, which provides some amount of legal/historical evidence, but is there any way to extend this into a more rigorous scientific test?  For example, if we were able to know that a supernatural event was going to occur at a given time, and capture whatever data we desire, can this ever rise to a higher level of proof than the courtroom style proof?    Note: This probably applies to many other similar questions, such as proof for one of the many multi-verse hypotheses, proof for free will/dualism, etc.  I think it may also work for proof of alien encounters...


I know its a stupid question, but does the enchantment stack? so if I fire an +1 arrow from my +1 longbow, do I get +2 on attack roll and damage?  If not, what are +1 arrows good for if I already got an +1 longbow?

One of my players has a +1 shortbow, and recently found some +1 arrows. If he fires a +1 arrow from a +1 bow, will the bonus to attack and damage be +1, or +2?


Question:     Two given circles intersect at A and B. A straight line through B meets the circles again at C and D. Prove that CD is greatest when it is parallel to the line joining the centres   My attempt:  I made this diagram on Paint.NET:    Here CD is the required line parallel to the line $MNOP$ joining the centers N and O, and EF is another line not parallel to $MNOP$. Both CD and EF pass through point B. I know I have to prove that $CD > EF$.  But I don't know how to solve this problem. And I need hints.

If two non-congruent circles with centres $A$ and $B$ intersect at $P$ and $Q$, then prove that among all lines drawn through $P$ and terminated by the circumference of two circles, the line which is parallel to $AB$ is the greatest.


I am writing a python program which generates TeX code that gets compiled into a PDF document. For this to work, I need to make sure that the user has some distribution of LaTeX installed on their computer. How do I do this from within Python 2.7 in a platform-independent way?

In Python, is there a portable and simple way to test if an executable program exists?  By simple I mean something like the which command which would be just perfect. I don't want to search PATH manually or something involving trying to execute it with Popen & al and see if it fails (that's what I'm doing now, but imagine it's launchmissiles)


today i was making a scoreboard sidebar for my java server and i wanted to make a name with spaces, i don't know how to do that so i added "_". But it looks horrible, so how can i add spaces to my texts?

Note that this is only focusing on Minecraft Java Edition, and for versions 1.13+. I am predominantly looking for a solution that does not require any external programs (like MCEdit or NBTExplorer) and will work in just plain vanilla Minecraft, although if the only solution doesn't fit these criteria, I'll still take it (since having a solution is better than no solution!) Essentially, I am looking for a way to put a phrase (meaning essentially there are two or more words and spaces are involved) on a Minecraft scoreboard. This is what I mean by 'phrase': One two three, 1 2 3 These are not 'phrases': OneTwoThree, One-Two-Three, One_Two_Three, 1-2-3, etc. However, it seems like the only way to add text to an objective on the scoreboard is to add a "fake player", via /scoreboard  players add [playername] [objectivename] [score], which shows the [playername] and the [score] part of the command on the scoreboard. However, since player names can't have spaces at all, it means that you can't have a phrase shown on the scoreboard. I have seen on many servers scoreboards that do have phrases listed on the scoreboard, but I have no idea how they do this (probably because of plugins that can do this sort of thing).  I did notice that teams can be given display names that can have spaces, so is there a way to display the team name on the scoreboard (thus being able to put phrases on there?)? Overall, my main question would be "Is there a way to use spaces on the scoreboard (excluding the objective name) in vanilla Minecraft?


Ofter i come across things like this:  $$7^x\equiv 1 \pmod{180} $$  $$x^3\equiv7 \pmod{13}$$  Are there easy ways to solve in general these kinds of congruences: $$a^x\equiv b \pmod{n} $$  $$x^a\equiv b \pmod{n}$$  For example $7^x\equiv 1 \pmod{180} $ has as solution $x\equiv 0 \pmod{12}$, I checked with Wolfram. But how can I do these?  Thank you for your time :)

If values $a$, $b$, and $c$ are known, is there an efficient way to find $x$ in the equation: $a^{x} \bmod b = c$?  E.g. finding $x$ in $128^{x}\bmod 209 = 39$.


I was working on a project and then i got stuck on this problem. I want to use 2 HDRI at once. One HDRI to affect the lighting of the scene while other to affect the background. I am using cycles to render.I know its not photoreal to do that but there are no much shiny parts in the scene so it shouldn't affect all that much. Is there any way to do this? Sorry,it says this question is already answered but the answer its suggesting does not help in my case. Any other Answer??

My question is, how would I make the visible HDRI/Enviroment Map be image 1 and then have reflections as Image 2? If someone can post a node setup, or a .py file that would be great <3 I was thinking maybe using the Is Camera Ray node but I'm not confident it would work, and have no idea where to start.


On Expatriates, on  it says I have earned the inquisitive badge,    but on  it says it has been awarded 0 times   why is there a difference?  Is one more real-time and the other calculated more irregularly?

Formerly List of all badges with full descriptions.  What are badge name's requirements? Why didn't I get badge name ? Which badges can I earn multiple times?    Jump to:                    Note: Some badges are awarded based on score. The term score means the total number of upvotes minus the total number of downvotes.  Any badge with a *** next to it is one of 20 badges that count towards the  displayed on a moderator candidate in an election. The candidate score is a total of 40 points: the first 20 are awarded based on the user's rep divided by 1000 and rounded down; the second 20 represents the total number of unique badges earned of the 20 that count. Note that if the same badge is earned multiple times, it will only count once towards the candidate score.  Any badge with a "(retired)" next to it is no longer awarded, but is retained by users who previously earned them. See  for more info on what it means for a badge to be retired.       Visit the  of the  on any site to see a complete list of badges that you can filter by earned, unearned, or type.


I want to send an email to a professor to inform him that I want to accept the offer of PhD admission and Research assistantship. But I do not know how to start email. Is the following good? if not, would you please recommend better phrase.     Dear Professor,      I hope you are keeping well ....

When needing to ask a professor about something important and potentially delicate, what is an appropriate way to phrase the question or write the email?  Examples include:   Requesting a recommendation letter Asking for exceptions to policy (e.g., ignoring a course prerequisite, rescheduling an exam) Asking if you can do research with them, join a group, get into a program Scheduling a meeting, exam, or defense Letting them know about a change of plans Letting them know about a life event affecting your work or studies (e.g., wedding, funeral, sickness, vacation)


I have an issue with my .bib in LaTeX. I just started using it and can't figure out what's wrong. I am using the site Overleaf to create my documents. Basically, I have a bibliography like so:  @online{1234, author = "Lexikon der Physik", title = "Kompensationsmethode", url = "https://www.spektrum.de/lexikon/physik/kompensationsmethode/8214", addendum = "(Stand: 30.05.2019)", }   @online{anleitung,     author = "Elektrizitätslehre Institut für Angewandte Physik der Goethe-Universität Frankfurt am Main",     title = "Anleitung zu Versuch 5",     url = "http://www.uni-frankfurt.de/49295171/Generic_49295171.pdf",     addendum = "(Stand: 30.05.2019)", }   In total there are 6 sources. My subfile in which I am citing goes somewhat like this:  \subsection{Kompensationsmethode}  blablabla text \cite{1234} \cite{anleitung}. more text   Now, the 1234 one will not be recognized, I have tried naming it differently, moving it to a different position in the .bib file and it just will not find it. Instead it will give me the [1234] instead of the actual citation within the PDF.    The error message is:     I have absolutely no clue why one of my sources is being recognized, and the other one is not. Any help is apreciated.

I have my PhD deadline on Monday and disaster has struck at the very last minute! Any assistance would be eternally appreciated.  I'm using Overleaf (v2) to write my thesis - it's a very large file tree containing multiple .tex files.  Everything was compiling fine, until I decided to experiment and use:  \usepackage{biblatex}   It compiled with this included but looked odd, so I deleted the line again. However, now it does not compile - despite the document being exactly the same as before the problem began.


I'm not sure how to judge the fridge life of this stuff, does this salty stuff last awhile?

How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed.


I am trying to show that If $S,T$ are mappings from $V \rightarrow V$, where V is finite, then $Rank(S+T) \leq Rank(S) + Rank(T)$ after finishing a chapter entitled "Applications of Rank-Nullity".  First consider two lists of vectors $S(x_1),...,S(x_n)$ and $T(y_1),...,T(y_n)$  where the $x_i, y_i \in V$ the vectors are linearly independent then it seems to me that the basis S+T will have a trimmed down version of the combination of these two lists (i.e. getting rid of any redundant or linearly dependent vectors) thus its rank would be less than or equal to S(x) + T(x), but I am not sure how to write this in a more formal way. Any Hints appreciated including alternative methods of proof if I have gone off the rails here.

Show $\operatorname{rank}(A) + \operatorname{rank}(B) \ge \operatorname{rank}(A+B)$, where $A,B \in M_{m\times n}(\mathbb{F})$.   I'm trying to think in terms of linear transformations. We can define $T_a, T_b:\mathbb{F}^n\rightarrow \mathbb{F}^m$. I know that $\dim_{\mathbb F}\operatorname{Im} T_a, \dim_{\mathbb F}\operatorname{Im} T_b \le m$.  What should I do next?


On my fresh install of Ubuntu 18.04 (GNOME) buttons of some apps are huge. Here's an example - this is VLC. But this problem appears in other apps, for example it applies to emojis in Thunderbird.   How can I fix this?

After the update to Ubuntu 18.04, the vlc player can't be used anymore on my second screen(Main screen is 1366x768 and second screen is 1920x1080). When it is dragged from the main screen (where it looks normal) to the second screen, the interface is replaced by a huge ">>" button(see screenshot). I've already deleted and reinstalled vlc. Any help would be appreciated.     LE: vlc was installed with      sudo apt install vlc   the output of apt-cache policy vlc is:  vlc:   Installed: 4.0.0~rc1~~git20180727+r77135+157~ubuntu18.04.1   Candidate: 4.0.0~rc1~~git20180727+r77135+157~ubuntu18.04.1   Version table:  *** 4.0.0~rc1~~git20180727+r77135+157~ubuntu18.04.1 500         500 http://ppa.launchpad.net/videolan/master-daily/ubuntu bionic/main amd64 Packages         100 /var/lib/dpkg/status      3.0.2-0ubuntu0.1 500         500 http://ro.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages      3.0.1-3build1 500         500 http://ro.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages


Suppose we have 5 subjects. For each subject, biomarker is measured at t0, t1 and t2. Measured values are skewed. We want to compare the values at t1 and t2.  When we have skewed data, usually we do log-transformation. t test on log-transformed data is equivalent to comparing the fold change of the mean, which is also equivalent to comparing the geometric mean.    I can also calculate fold change for each subject at t1 and t2, both using t0 as baseline. If we do t test on the fold changes at t1 and t2, Are we comparing the mean of fold changes?   So the problem is fold change of the mean vs mean of fold changes.  If what we want to know is if there is any differences between t1 and t2, in terms of fold change, should we use fold change of the mean OR mean of the fold changes? Fold change and logFC is commonly used in differential gene analysis. I'm trying to get a better understanding of this issue.   See the example below. All test results are different....  # we have 5 subjects. Each subject is tested at t0, t1 and t2.  t0=c(0.2,0.3,0.5,0.2,0.1) t1 = t0+runif(5,min=0.5,max=2) t2 = t1+runif(5, min=0.5, max=1) t0_log2 = log2(t0) t1_log2 = log2(t1) t2_log2 = log2(t2) t0_fc = t0/t0 t1_fc = t1/t0 t2_fc = t2/t0  # test the diff of log-transformed result between t1 and t2 t.test(t1_log2, t2_log2, paired=T) # test the diff of fold change (both vs t0) between t1 and t2 t.test(t1_fc, t2_fc, paired=T)  # test the diff of log-transformed result between t0 and t1 t.test(t1_log2, t0_log2, paired=T) # test the diff of log-transformed result between t0 and t1 t.test(t1_fc, t0_fc, paired=T)   How do we properly interpret the results from t test above?  I really appreciate if anyone can clarify my confusion. Thank a lot.

I have some confusion about t test on original result, log2(result), fold change and log2(fold change). Hope to get some expert opinion on this.  Our original results are, for example, some biomarker values measured from 10 patients in clinical study. The biomarker was measured at 3 time points. t0, t1, t2.  Here we are using t test (in our case, paired t test) to compare biomarker values at t1 and t2.  Fold change at t1 and t2 is represented using t0 as baseline value,  result(t1)/result(t0) and result(t2)/result(t0).   I'm relatively certain about t test on original result and log2-transformed result.  t test on original result: compare the mean of results between two time points.  t test on log2(result): compare the mean of log2(result), which is equivalent to one sample t test of fold change vs 1 (mean of fold change equals 1?), which is also equivalent to comparing geometric mean on original result.  However, I'm not sure about doing t test on fold change?  t test on fold change:   comparing mean of fold change(relative to t0) between t1 and t2?  Does that make sense? what's the meaning of test result?  t test on log2(fold change):   I'm not sure about this...  For further clarification:  In many cases such as differential gene expression, people use log2 of fold change to represent differences with its associated p value. Does that mean we calculate log2(fold change), BUT do t test on log2(result) to get p value OR do t test directly on fold change or log2(fold change) to get p value?  One additional question:  If we use non-parametric test like wilcox to get the p value of fold change, what should we do wilcox on? fold change, log2(fold change) ? .......  Thanks a lot in advance.


So I am writing a small script which needs to capture only the RX/TX packets/errors/bytes from "ifconfig" and translate it into dictionary/json format It should look something like this: {          'rx_packets': 'value',          'tx_packets': 'value',          'rx_bytes': 'value',          'tx_bytes': 'value',          'rx_errors': 'value',          'tx_errors': 'value',              }  I am not sure how to extract the output off the regex so it becomes a dictionary. This is the script: ifconfig=subprocess.Popen('ifconfig', shell=True, stdout=subprocess.PIPE,).communicate()[0]      pattern = re.compile(br'\s+(?P<type>RX|TX)\s(packets|errors)\s+(\d+)\s+(bytes|dropped)\s+(\d+)', re.MULTILINE)  prnt=(re.findall(pattern, ifconfig))  for match in prnt:     print (match)  The current output is: (b'RX', b'packets', b'2197707', b'bytes', b'2500953222') (b'RX', b'errors', b'0', b'dropped', b'74419') (b'TX', b'packets', b'700405', b'bytes', b'148862473') (b'TX', b'errors', b'0', b'dropped', b'0') (b'RX', b'packets', b'61522', b'bytes', b'10087739') (b'RX', b'errors', b'0', b'dropped', b'0') (b'TX', b'packets', b'61522', b'bytes', b'10087739') (b'TX', b'errors', b'0', b'dropped', b'0') (b'RX', b'packets', b'0', b'bytes', b'0') (b'RX', b'errors', b'0', b'dropped', b'0') (b'TX', b'packets', b'0', b'bytes', b'0') (b'TX', b'errors', b'0', b'dropped', b'0'

I'm using this code to get standard output from an external program:  >>> from subprocess import * >>> command_stdout = Popen(['ls', '-l'], stdout=PIPE).communicate()[0]   The communicate() method returns an array of bytes:  >>> command_stdout b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   However, I'd like to work with the output as a normal Python string. So that I could print it like this:  >>> print(command_stdout) -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1 -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2   I thought that's what the  method is for, but when I tried it, I got the same byte array again:  >>> binascii.b2a_qp(command_stdout) b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   How do I convert the bytes value back to string? I mean, using the "batteries" instead of doing it manually. And I'd like it to be OK with Python 3.


I am using python and I believe the problem below can be solved using itertools but if there is another method please let me know.  If I have a variable set of lists (for illustration purposes let it be 3) and each contains a variable set of elements (elements could be strings, integers, lists).  An example:                            [a,b,c]   [d,e,f]   [g,h,i]   How can I create (and access) all the total possible combinations (as a list preferably) choosing just one from each set?  i.e.   [a,d,g]  [a,d,h]  [a,d,i]  [a,e,g]  ... (and so on)  Order does not matter so for the output I do not want [a,d,g] and [d,a,g] both to show, just [a,d,g].  If my question is not clear please let me know.   Also, if it helps we can consider all elements to be simple strings or integers but I would like a solution that takes in count the fact that the number of lists and the number of elements in each list is variable.

How can I get the Cartesian product (every possible combination of values) from a group of lists?  Input:   somelists = [    [1, 2, 3],    ['a', 'b'],    [4, 5] ]   Desired output:  [(1, 'a', 4), (1, 'a', 5), (1, 'b', 4), (1, 'b', 5), (2, 'a', 4), (2, 'a', 5) ...]


$$\lim_{x\to0} \frac{\tan(2x)}{\sin x}$$  How would I evaluate that? I was thinking changing the tan to sin/cos, but when I tried that, it did not work.

I have $$\lim \limits_{x\to 0}  \frac {\tan(2x)}{\sin(x)}$$ and in my case the result is $\frac{2}{1}$ =2 not whether it is right.  This is my procedure.  $$\lim \limits_{x\to 0}  \frac{\frac {\sin(2x)}{\cos(2x)}}{\frac{\sin(x)}{1}}= \lim \limits_{x\to 0}  {\dfrac {\sin(2x)}{(\cos(2x))(\sin(x))}}=\dfrac{2x\frac {\sin(2x)}{2x}}{\cos(2x)\frac{x\sin(x)}{x}}$$  I separate the limit.  $$\frac{\left(\lim \limits_{x\to 0}2x\right) \cdot \left(\lim \limits_{x\to 0}\frac {\sin(2x)}{2x}\right)}{\lim \limits_{x\to 0}\left(\cos(2x)\right)\cdot\left(\lim \limits_{x\to 0}\frac{x\sin(x)}{x}\right)} = \lim \limits_{x\to 0} \dfrac{2x}{x}=\frac{2}{1} =2$$


I just got Ubuntu 15.04 running well, still customizing of course.  Why is there an End Of Life so soon, Jan 2016?  There are many things still being worked out how can it end that quick?

What are the differences between an Ubuntu Long Term Support release (LTS) and a normal release?


On the wiki page under the section for set partitions it says that for a set {a,b,c} there are 5 set partitions, and in the top link it says that there are 5 equivalence relations, how are these related?

I'm having difficulty grasping a couple of set theory concepts, specifically concepts dealing with relations. Here are the ones I'm having trouble with and their definitions.  1) The collection of equivalence classes w.r.t. $R$     Def: Let $R$ be an equivalence relation in a set $X$. The collection of equivalence classes w.r.t. $R$ is the set:   $$[X]/R =\{S|(\exists x)(x\in X\land S=[x]/R)\}=\{[x]/R|x\in X\}$$   2) Partition     Def: Let $X$ be a set. A collection of sets $C$ is a partition of $X$ if:   (i) $$\bigcup_{S\in\ C} S=X.$$   (ii) $$\forall S \in C, S \neq \varnothing$$   (iii) $$\forall S, S' \in C, S' \neq S \Rightarrow S \cap S' = \varnothing$$   3) Relation induced by     Def: Let $C$ be a partition of $X$. The relation induced by $C$, denoted by $X/C$, is a relation in $X$ such that $$X/C = \{(x,y) | (\exists S \in C)(\exists x \in S \land \exists y \in S)\}$$


So, is there really any advantage to using int16? I can see how you might use it if you know your number is never going to use more than 16 bits. However, the compiler (as I understand it) optimizes for int (aka "int32") anyway. Also, it seems more common practice to use int, in the first place.  So, why would one use int16?

I have a questionable coding practice.   When I need to iterate through a small list of items whose count limit is under 32000, I use Int16 for my i variable type instead of Integer. I do this because I assume using the Int16 is more efficient than a full blown Integer.   Am I wrong? Is there no effective performance difference between using an Int16 vs an Integer? Should I stop using Int16 and just stick with Integer for all my counting/iteration needs?


Which Stack Exchange is the best site to ask questions about Microsoft Excel (as well as potentially other Microsoft Office and  questions)?

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


I've got a sticky post that i would like to move down to third position in between my regular posts on my site and for it to stay there permanently? I've already downloaded a few different sticky plugins and none of them can do this. Any help would be greatly appreciated.

I'm having a hard time determining the first direction to take with this. I'm trying to write a plugin that allows users to pick a location for a post to be inserted into the homepage. For example a user can 'sticky' an old post to the 2nd location on their front page. My problem is I don't know how to insert a post into the loop at a specific point. I'm thinking it should be something like the following (but clearly I'm missing the insert text):  $current_position = $_POST('current_postition'); add_action ('pre_get_posts', 'add_post_to_frontpage'); function add_post_to_frontpage ($query) {   if ( $query->is_home() && $query->is_main_query() && $query->current_position = $positionlocation ) {          //insert a given post into this current_position      $query->set( 'p=$desired_post');   } }   Thanks  EDIT: I added in what I think is a logical way to set the post, but think that this will cause trouble with the posts that follow the post I'm inserting


I need write a method that searches an object array of Club Members for a specific member and returns true if the member is found. This is what I have now.   public boolean isMember (String name){     boolean found = false;     int arrayIndex = 0;     while(arrayIndex < members.length && !found){         if(members[arrayIndex] == name){             found = true;         }         arrayIndex++;     }     return found; }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


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

I'm having some trouble understanding the concept of negative work. For example, my book says that if I lower a box to the ground, the box does positive work on my hands and my hands do negative work on the box. So, if work occurs when a force causes displacement, how does negative work happen? Are my hands displacing anything?


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.

Since using Yosemite, I've had the annoying problem of my current Terminal window flashing when backspacing on an empty line. I know on previous versions of OS X this flashing was not default, and could be toggled in accessibility settings, but I cannot find the same setting and I'm dying to get this turned off. Any known ways to get rid of it?


When I installed Ubuntu on my system my hard formatted entirely and Ubuntu installed on it. Now i want to change partitions of hard disk but it seems is impossible.    How can I resize it?

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


I am interested in the subsequent measurement of energy, like assume the energy of the electron was measured to be $E_1$ and the wavefunction of the electron is described by a finite superposition of eigenfunction of energy. After the first measurement will the subsequent measurement have the same energy measurement which is $E_1$. I think this question has been asked multiple times, but what I am confused about is that if all the subsequent measurement was of state $E_1$ that means that the uncertainty in energy is zero, which implies that the uncertainty in time measurement has to be infinite.

Just beginning to learn quantum mechanics and my textbook says that all pure eigenstates of the Schrodinger equation ( with a specified potential function) have a zero standard deviation for the expectation values of energy.So every measurement of the energy yields a fixed value. I've also read that pure eigenstates are physically realisable solutions in some situations ( like the infinite potential well). But wouldn't that violate the uncertainty principle? the standard deviation in expectation of energy is zero and hence $$ΔE~Δt=0.$$ Where am I going wrong? Also could someone also give me an insight as to what uncertainty in time even means? I haven't been able to grasp that concept clearly yet.


i have a table like:  ID   value 3      1 3      2 3      3 3      4 3      5 3      6   Can anyone help me to convert this table into format:  ID  Value 3   1,2,3,4,5,6

I've got two tables:  TableA ------ ID, Name  TableB ------ ID, SomeColumn, TableA_ID (FK for TableA)   The relationship is one row of TableA - many of TableB.  Now, I want to see a result like this:  ID     Name      SomeColumn  1.     ABC       X, Y, Z (these are three different rows) 2.     MNO       R, S   This won't work (multiple results in a subquery):  SELECT ID,        Name,         (SELECT SomeColumn FROM TableB WHERE F_ID=TableA.ID) FROM TableA   This is a trivial problem if I do the processing on the client side. But this will mean I will have to run X queries on every page, where X is the number of results of TableA.   Note that I can't simply do a GROUP BY or something similar, as it will return multiple results for rows of TableA.   I'm not sure if a UDF, utilizing COALESCE or something similar might work?


I am using p:dataScroller with 10 chunk Size, but on my content of each item, I am adding one class, it have a click event function, when I load the page, my function event only works with the 10 first items, this is my code  <h:form>

Text

Text

Text

text Text

text Text

                 </h:form>   My Javascript event:   $(".resultados-filtro").click(function () {                 alert("event");             });   When I scroll down and the next 10 rows are loaded, they do not react on the click function

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


So I'm trying to hibernate my Ubuntu laptop, using sudo systemctl hibernate, in turn it says "Failed to hibernate system via logind: Not enough swap space for hibernation".  I already tried this before, so before using hibernate, I set up different swapfiles to accomodate the RAM my laptop has (8G), overall my total swap space (from free -h) is               total        used        free      shared  buff/cache  Mem:          7.7Gi       2.7Gi       4.4Gi       135Mi       741Mi Swap:          16Gi       1.4Gi        14Gi  So is there any difference between swapfiles and swap partitions? Is there any more settings I can do to properly hibernate?  As a side note, I tried installing pm-utils and use pm-hibernate, the system hangs for a moment, the screen turns off, but then it would turn back on and resume as normal, (probably because also of the lacking swap space).  Is there a step I forgot or whatever?  EDIT: Related screenshot,

I'm going to install 64 bit 14.04 on a new machine with something like 1 to maybe 128GB RAM and even more RAM later. How much space should I allocate to the swap partition?   And especially: WHY those recommendations for these numbers?    (None of the existing answers  and  explain any of the why and are a bit dated if we look at 1GB or RAM and up)


Let $G$ be a group containing exactly $2n$ elements, $n\ge1$ integer. Prove that, $\exists$ $x\neq e$ such that $x^2=e$ where $e$ represents the identity of $G$.

I am working on the following problem from group theory:     If $G$ is a group of order $2n$, show that the number of elements of $G$ of order $2$ is odd.   That is, for some integer $k$, there are $2k+1$ elements $a$ such that $a \in G,\;\; a*a = e$, where $e$ is the identity element of $G$.


Is there any option to tell Maven to start from latest version, when a version range needs to be evaluated? E.g. having  <version>[1.0.0,2.0.0)</version>   Maven starts with e.g. 1.0.0, 1.1.0, ..., 1.234.0.  For each of these version, Maven goes into all nested dependencies, which might also be version ranges, and recursively does again evaluations starting from their lowest version, running into exponential useless evaluation mess...  Is there any option to tell Maven to evaluate starting with latest version, and skip lower version evaluation if not required?  If 1.234.0 matches the needs, and nothing forces usage of a lower version, all earlier versions do not need to be evaluated at all.  Gradle reading Maving pom.xml's is able to resolve versions starting from latest version, and is much (!!!) faster than Maven. (I know from the time when Maven was designed and built, IBM forced that evaluation order for some reason, which was a really bad decision for the community in long-term.)  Is there any Maven mechanism to reverse the evaluation order and make Maven work in the same manner?

In Maven, dependencies are usually set up like this:  <dependency>   <groupId>wonderful-inc</groupId>   <artifactId>dream-library</artifactId>   <version>1.2.3</version> </dependency>   Now, if you are working with libraries that have frequent releases, constantly updating the <version> tag can be somewhat annoying. Is there any way to tell Maven to always use the latest available version (from the repository)?


I need help to install vmware or vmplayer but I don't quite understand the written command to install it. I am using Ubuntu 14.04.

I can't install VMwarePlayer 4.0.3 on Ubuntu 12.04 64Bit. For Version 4.0.2, I found a script that I have to run to patch VMware Player for it to work on my system to properly, and after that I could install 4.0.2.  Is there an similar solution for Version 4.0.3?


currently i am using toast to show validation coming from server side but as my component shows up in popup(overlay library) toast is not showing above the popup instead it shows below the popup. any one have idea regarding this?  Component Code :  <lightning:overlayLibrary aura:id="overlayLib"/>   JS controller code  let toastParams = {title: "Error",                    message: "Unknown error", // Default error message                    type: "error",                    mode: 'dismissible' }; toastParams.message  = errors[0].pageErrors[0].message; let toastEvent = $A.get("e.force:showToast"); toastEvent.setParams(toastParams); toastEvent.fire();

I have created lightning quick action to add my component for some functionality.   so from my quick action. When I do some validation like       var opp = component.get("v.objOpportunity");     if(!opp.Name.length || !opp.CloseDate.length )     {         var toastEvent = $A.get("e.force:showToast");         toastEvent.setParams({             "message": 'Opportunity name and close date can not be empty.',             "type": "Error"         });         toastEvent.fire();         return;     }   So the toast message display behind the modal. Please check below screenshot.   Any solution for this issue? I don't want to write custom error message functionality to display to user.


I understand inversion but I have a difficulty when it comes down to "there."  A: Under the window there stood a vase. B: Under the window stood a vase.  Here my teacher said that option B is correct.  C: Under the window there was a vase. D: Under the window was a vase.  And here he said that option A is correct.  Could someone explain why I can't say option D?

The opening sentence to The Hobbit by J.R.R. Tolkien reads,     In a hole in the ground there lived [verb] a hobbit [subject].   I wonder if there are accepted stylistic purposes for such a structure.  When is it natural, and when is it unnatural?


For: $\int_{-1}^{1}{\frac{1}{\sqrt{2\pi}} e^{\frac{-x^{2}}{2}}}dx $ A method I saw (but did not get the right result) was to set: $I = \int_{-1}^{1}{\frac{1}{\sqrt{2\pi}} e^{\frac{-x^{2}}{2}}}dx $ and $I = \int_{-1}^{1}{\frac{1}{\sqrt{2\pi}} e^{\frac{-y^{2}}{2}}}dx $ then by calculating  $I^2 $ I could make use of polar coordinates since $x^2+y^2=r^2$ and $dxdy=rdxd\theta$ Any other process I may use instead? I just need to be pointed in the right direction

How to prove  $$\int_{0}^{\infty} \mathrm{e}^{-x^2}\, dx = \frac{\sqrt \pi}{2}$$


Don't know where I am missing, but the simple Access VBA snippet below returns 2 when I divide any floating numbers that the division equals 3.   Note: I have received the code with this Int() function, but if changes are necessary to achieve same result, I can change anything.  Sub RoundTest()      Dim a, b, c      a = 4.8     b = 1.6      c = Int(a / b)      MsgBox (c)  End Sub   Have any of you ever heard of something like this before? I tried on two different computers and get the same result. Maybe it is something with the Access compiler, or my code.

I have trouble comparing 2 double in Excel VBA  suppose that I have the following code  Dim a as double Dim b as double a = 0.15 b = 0.01   After a few manipulations on b, b is now equal to 0.6  however the imprecision related to the double data type gives me headache because  if a = b then  //this will never trigger end if   Do you know how I can remove the trailing imprecision on the double type?


I am in need of a way to parse math equations written in latex to plain text. Is there any way to do this through a website or through a program?  For example, I need \frac{b}{c} to just be b/c and \lim _{n\to \infty \:}\left(1\right) as whatever the text equivalent is, perhaps lim as n->oo 1

Why does the following code does'nt work when i am using PDFLaTeX or just LaTeX ? I tried it in different editors as well.  This is the code   $\{f^'_n\}$   Surprisingly it works on Math.SE site


I have a PDF that is editable in Illustrator. I have to open the PDF in Illustrator and edit individual parts of the document but I am missing the font that is used in the PDF. When I open the PDF in Illustrator, the PDF opens but the font is automatically replaced with a substitute font.  How do I get the original fonts?  Can they be extracted as the original fonts, even though I do not have them in my system?  I need the fonts that were used when the document was created.  Not outlines, the actual fonts.

If I have an Adobe Illustrator file, and I save it as a .pdf - it looks like the fonts are included in that .pdf file. (I think this because when I open the .pdf file in Reader it looks the way I expect it to.) However, when I open this same .pdf file on a different computer (or workstation) with Adobe Illustrator - Illustrator says I 'don't have the font I need'. This doesn't make sense to me because - If I can see the document correctly in reader, I would expect it to be there for Illustrator as well. Can someone explain why this is? I am asking because saving a file as a .pdf for print seems to handle most font troubles that come up - but sometimes I need to change the text in a file before I print it... I am hoping there is a way to open a .pdf so that .ai recognizes that the font is in there.  But I am unsure on the details of saving as a .pdf in Illustrator, how fonts are handled, and what is possible.


Let's assume that we are using Ubuntu 18.04 LTS (Bionic Beaver).  I know GUI ways to enable or disable the following repositories:   Important security updates  (bionic-security) Recommended updates (bionic-updates) Pre-released updates (bionic-proposed) Unsupported updates (bionic-backports)    In KDE user may want to open Software & Updates (or software-properties-kde) and navigate to Updates tab. In GNOME, MATE, Xfce user should open Software & Updates (or software-properties-gtk) and navigate to Updates tab for -security, -updates and -backports and Developer options tab for -proposed.   But how to enable or disable -updates, -security, -backports, -proposed repositories from commandline?  Note: I need a solution without direct editing of /etc/apt/sources.list.  Update: I created .

I know there is a GUI in Ubuntu Software & Updates to enable the update channels   updates proposed backports security   as shown in this screenshot:    I am looking for an easy way to do this from within a terminal using commands such as    sudo apt-add-update enable updates sudo apt-add-update enable proposed sudo apt-add-update enable backports sudo apt-add-update enable security  sudo apt-add-update disable updates sudo apt-add-update disable proposed sudo apt-add-update disable backports sudo apt-add-update disable security   and an additional thing  sudo apt-add-update enable default  sudo apt-add-update disable default     Some examples for a better understanding   An empty sources.list   cat /etc/apt/sources.list  <empty>  sudo apt-add-update enable security  <empty>   One enabled repository (main)   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily main  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily-security main   Two or more enabled repositories in one or two lines   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily main universe   or   deb http://archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily universe  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu wily-security main universe   or  deb http://archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily-security main deb http://archive.ubuntu.com/ubuntu wily universe deb http://archive.ubuntu.com/ubuntu wily-security universe   With deb-src entries   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily main universe deb-src http://archive.ubuntu.com/ubuntu wily main universe  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily main universe deb-src http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu wily-security main universe deb-src http://archive.ubuntu.com/ubuntu wily-security main universe   With inactive deb-src entries   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily main universe # deb-src http://archive.ubuntu.com/ubuntu wily main universe  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily main universe # deb-src http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu wily-security main universe   The default thing    cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily-security universe  sudo apt-add-update enable default  deb http://archive.ubuntu.com/ubuntu wily universe deb http://archive.ubuntu.com/ubuntu wily-security universe   Only one entry and the disable action   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily-security universe  sudo apt-add-update disable security  <empty>   Different or the same servers for different or the samerepositories, respect each server   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily universe deb http://us.archive.ubuntu.com/ubuntu wily main  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily universe deb http://us.archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily-security universe deb http://us.archive.ubuntu.com/ubuntu wily-security main   Different Ubuntu releases for different repositories, respect each release   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu trusty main  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu trusty main deb http://archive.ubuntu.com/ubuntu wily-security main universe deb http://archive.ubuntu.com/ubuntu trusty-security main   PPAs or other package sources (not-Canonical)  in the sources.list?  Ignore! Don't change the protocols, e.g. https, http, tor, ...


For some reason the Android app will does not expose a comment box at all on closed posts either for the question or any answer posts.  Especially as a moderator this is a cause of some frustration as post closures are something that I often comment on to help people learn the ropes and to do this I have to frequently switch over to a browser.

In the Android App, if a question is closed, I won't be able to leave comments on either the question or any of its answers. There are simply no "Add Comment" buttons available anywhere if the question is closed.  See the screenshot below. The comment adding interface is simply removed on closed questions and their answers — no Reply button in the toolbar, and no Add Comment button under the question.        Occurs on Android app v1.0.50 and v1.0.51, on a HTC One running Android 4.4.3.


I was looking for a word (a noun) that describes a young person/a teenager who is stubborn, acts recklessly, and likes to show off to draw people's attention (as they think it's cool). I've found the word tearaway, which somehow fits the definition, and would like to know if there is a similar word which is commonly used in American English (besides the word hellion, as I think that doesn't wholly fit what I was looking for like the word tearaway)?

I'm looking for a word (formal, informal, or even slang) to describe a young person who  behave recklessly, like to mess around and often get into trouble with people, don't listen to advice from older people, and has shallow thinking.   People in my country have a word which can be translated into "bullheaded kid" but I find it a bit weird so I want to find a proper word for it.


To troubleshoot a problem I used msconfig to set that windows 10 should boot without loading most of the services (safe boot). I rebooted the PC and then noticed that I could not login with the PIN in safe mode. Its my father's laptop and he doesn't remember the original password of his account.  Because I can not login I can not tell windows to start booting in normal mode again. Is there any way to let windows boot in normal mode without requiring me to login?  What I did so far:   Created a windows 10 installation usb drive Booted from the usb drive and followed a trick I found online to rename c:\windows\system32\cmd.exe to c:\windows\system32\utilman.exe (after backing up utilman.exe). This allows me to access a command prompt when logging in from the harddisk again by clicking the accessiblity icon on the login screen. I then created a new administrator account using:   net user myusername /add  and   net localgroup administrators myusername /add  I then rebooted and tried to login using that user, but I get an error when logging in saying: "The service User Profile Service prevents logging in. User profile cannot be loaded" (I translated that from dutch).  Does anyone have a solution? Maybe a file I can edit from the command prompt to tell windows to boot normally again?

I got a brand new Windows 7 machine, installed the operating system, created one account and forgot its password. What can I do?  There is no external CD, the operating system is loaded from somewhere inside the machine.  I already tried to remember passwords and tried all candidates with all possible combinations of caps lock, num lock etc.


I have a database in SQLite that I'll be using to store restaurants information for a website.  The website will allow users to insert new restaurants in the dabase (through php).  My question is, given that each row in a table in the database has its id attribute (which is the primary key), how can I know what id should the next item I'm going to store in the database have?  If the last item added to the database has the id 50, then the next restaurant a user tries to add should have the id 51, but how can I have access to this?  Here's my SQLite Restaurant table:  CREATE TABLE Restaurant (   id NUMBER PRIMARY KEY NOT NULL,   name NVARCHAR2(20) NOT NULL,   description NVARCHAR2(20),   address NVARCHAR2(20) NOT NULL,   priceRange NUMBER NOT NULL REFERENCES PriceRange(id) ON DELETE SET NULL ON UPDATE CASCADE );   Thanks in advance!

I'm trying to find if there is a reliable way (using ) to find the ID of the next row to be inserted, before it gets inserted. I need to use the id for another insert statement, but don't have the option of instantly inserting and getting the next row.  Is predicting the next id as simple as getting the last id and adding one? Is that a guarantee?  Edit: A little more reasoning... I can't insert immediately because the insert may end up being canceled by the user. User will make some changes, SQL statements will be stored, and from there the user can either save (inserting all the rows at once), or cancel (not changing anything). In the case of a program crash, the desired functionality is that nothing gets changed.