Latex: How to generate derived .sty files?

I am trying to compile a template which uses the "todonotes" package, which I have found here:   When I run latex on the template I get the following message printed to terminal:  ! LaTeX Error: File `todonotes.sty' not found.   I realize that I need to include the .sty file in the directory from which I compile. However the .sty is not available for download from anywhere that I can find. The files todonotes.dtx and todonotes.ins are available for download on the quoted CTAN page.  How do I get the todonotes.sty file? Do I need to somehow generate it from the .dtx and .ins files?


Why this two variable's values remain the same after I change one of them?

I'm studying php and I made this code:  $a = new DateTime('NOW');  $b = $a;  $b->modify("+1 day");  echo "<pre>";  print_r($a);      print_r($b);   And in both my print_r the results are the same, this:  DateTime Object (     [date] => 2017-12-29 15:05:27.000000     [timezone_type] => 3     [timezone] => America/Sao_Paulo ) DateTime Object (     [date] => 2017-12-29 15:05:27.000000     [timezone_type] => 3     [timezone] => America/Sao_Paulo )   Why is that?


How much mana does Radiant Fountain provide when tapped?

reads "{T}: Add {1} to your mana pool." Does this card alone produce a total of {1} or {2}?  Basic Land cards produce mana when tapped. So, either   All land cards produce mana when tapped, and  adds another due to the {T} description, resulting in {2}. The {T} description is the only result, there is no implicit mana from a land card, resulting in {1}.


Assigning keyboard key to Python script in ArcMap?

I have a python script and I use it through my toolbox but I use it many times in a day.  Is it possible to assign a keyboard shortcut to my tool ?


Evans PDE Chapter 5 Problem 11: Does $Du=0$ a.e. implie $u=c$ a.e.?

Let $W^{1,p}(U)$ be the Sobolev space. Suppose that $U$ is connected bounded domain in $\mathbb{R}^n$ and $u \in W^{1,p}(U)$ satisfies $Du=0$ a.e. in $U$. How can I prove that $u$ is constant a.e. in $U$?


How to get a table in latex which is parallel to the page length (like landscape) and not the page width (like portrait)?  Using package 'booktabs'


I have a manual list of stuff that are sometimes separated by an hrule(or my own custom ruler) for visual purposes.  Sometimes the hrule ends at the top or bottom of a page which makes it useless.  Is there a way to prevent it from being added if it is at the top or bottom of a page?    MWE of problem:  \documentclass{book} \usepackage{tikz} \begin{document} \newcommand\rulesep{%   \par % make sure we end a paragraph   \vskip5pt % space above the rule   \leaders\vrule width \textwidth\vskip0.4pt % rule thickness is 0.4pt   \nointerlineskip % disable interline glue here   \vskip5pt % space below the rule } \def\dotikzcircle#1{\begin{tikzpicture}\draw(0,0)circle(#1);\end{tikzpicture}} \rulesep \noindent This is a test\noindent \rulesep \noindent End of test \rulesep \dotikzcircle3 \rulesep \begin{center}\dotikzcircle3\end{center} \rulesep \begin{center}\dotikzcircle3\end{center} \rulesep \dotikzcircle1 \rulesep \dotikzcircle2 \rulesep \dotikzcircle3 \rulesep \dotikzcircle4 \rulesep \dotikzcircle5 \rulesep  \end{document}


Live USB "Check disk for defects” finds defects but doesn't list them

I downloaded the iso file for XUbuntu. I created a live usb using Pen Drive Linux. I turned on my computer, booted to the XUbuntu installation screen, and selected "check disk for defects".  A minute later, it says that it found one defect. How do I figure out what this defect is?


What does this icon in available wifi mean?

I just stumbled across something I never saw before. When clicking on the the Wi-Fi icon in the menu bar at the top right of my screen, every available network has this "Wi-Fi icon" except one which has another icon and a "[?]" displayed as name, can someone explain what this is ? I'm running macOS Sierra on a MacBook (8,1).


Why do only heavy radioactive elements perform fission? I mean what's so special about heavy elements which makes them ideal for nuclear fission?  Also why do only neutrons show fission/fusion and why can't electrons preform fission/fusion?


Do you know why this horizontal line appears at the top of this headline text? It shows in Illustrator and when saved as JPG, and in some PDF viewers.    This is a single click text line (not a text box). The font is Bodoni 72, size 130 pt. I'm using Illustrator CC on the latest Mac OS.


I know this sounds like a stupid question, but I just wanted to confirm if they are the same thing. In new canon, anti-gravity is never mentioned.


Can I install Ubuntu 64 bit alongside a Windows 8.1 32 bit pc?

UEFI is not enabled in my PC so Windows 8.1 was installed in Legacy Mode and I was wondering I could dual-boot 64 bit version of Ubuntu with Windows 8.1 32 bit PC without any problems? Also if it is possible please tell me the exact steps to properly install Ubuntu.  Thank you


Are human fetuses more likely to be male?

Question: From a physiological point of view, when sex is  in a human fetus, is it equally likely to be male or female?  Studies in this area typically measure age at birth, where the data would have already been biased.  There's a slight imbalance in the , in that there's an overall tendency towards males.  However, this could be accounted for in numerous ways, such as abortion.   suggests there would be an evolutionary tendency towards 50:50 chance.


I'm starting a new campaign and have decided on a Monk.  I know that chossing to be an Elf gives me a +2 Dex.  For the Wood Elf subclass does that give you an additional +1 Wisdom or does that take the place of the +2 Dex? What I'm understanding so far is that creating a Wood Elf Monk would give me a +2 to Dex and a +1 to Wisdom.


Show that $\sum_{k=0}^n \binom{m-k}{n-k} = \binom{m+1}{n}$

How can you show that:  $$\sum_{k=0}^n \binom{m-k}{n-k} = \binom{m+1}{n}$$  by using an index shift and the following relationship, which is assumed to be true:  $$\sum_{k=0}^n \binom{m+k}{k} = \binom{m+n+1}{n}$$


Add more than 20 digits in Excel without an exponential sign

I want to add more than 20 digits in an Excel cell. The current format of the cell is general, and it converts the number to an exponential format. I tried with a number format and accounting, but when I enter more than 15 digits, it gets converted to 0's.  What are the steps for stopping Excel from converting data to exponential Format for 20 digits when in the general format?  Example: 12345678901234567890    Excel converts it to 1.23457E+19 in general format.  Excel converts it to 12345678901234500000 in number & accounting format.


Backup using dd reformatted disk from ntfs to ext4. Can I recover any of the files?

I accidentally started a backup from /dev/sda3 my root partition that is formatted as ext4 to my backup hard drive dev/sdb2 which was formatted as NTFS. I did this using the dd command:  dd if=dev/sda3 of=/dev/sdb2   When I recognized the mistake I canceled the command, but now when I run lsblk -f it lists the backup hard drive as ext4.   I am also not unable to mount the disk. I receive this error:  mount: /media/HD: wrong fs type, bad option, bad superblock on /dev/sdb2,  missing codepage or helper program, or other error.   Is there anyway to rescue any of the files on the hard drive that may not have been overwritten?


How to run a python program in the background even after closing the terminal?

I am running a python program from a terminal in my Ubuntu machine as,   $ python test.py   But my whole program will be stopped if I close the terminal, Is there any way of running this python program in the background so that if I close my terminal then it still keeps on running?  And also after running this program in the background, how do I find out my actual program whether it is still running or not if I am logging back again to that terminal?


regex one or many characters are not matching string

I have the following string:  " 105 NE 12 Avenue, Apt #9,\nHallandale Beach, FL 33309"   It should match the following regex:  /\s+(\d+\s+.+,.+,.+\d+)/   Let's break it down:  \s+ #=>   \d+ #=> 105  \s+ #=>  .+  #=> NE 12 Avenue  ,   #=> ,  .+  #=> Apt #9  ,   #=> ,  .+  #=> \nHallandale Beach, FL   \d+ #=> 33309   However, it does not match:  > " 105 NE 12 Avenue, Apt #9,\nHallandale Beach, FL 33309" =~ /\s+(\d+\s+.+,.+,.+\d+)/  => nil  > $1  => nil   What am I missing here?


How can I have a Makefile automatically rebuild source files that include a modified header file? (In C/C++)

I have the following makefile that I use to build a program (a kernel, actually) that I'm working on. Its from scratch and I'm learning about the process, so its not perfect, but I think its powerful enough at this point for my level of experience writing makefiles.  AS  =   nasm CC  =   gcc LD  =   ld  TARGET      =   core BUILD       =   build SOURCES     =   source INCLUDE     =   include ASM         =   assembly  VPATH = $(SOURCES)  CFLAGS  =   -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions \             -nostdinc -fno-builtin -I $(INCLUDE) ASFLAGS =   -f elf  #CFILES     =   core.c consoleio.c system.c CFILES      =   $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c))) SFILES      =   assembly/start.asm  SOBJS   =   $(SFILES:.asm=.o) COBJS   =   $(CFILES:.c=.o) OBJS    =   $(SOBJS) $(COBJS)  build : $(TARGET).img  $(TARGET).img : $(TARGET).elf     c:/python26/python.exe concat.py stage1 stage2 pad.bin core.elf floppy.img  $(TARGET).elf : $(OBJS)     $(LD) -T link.ld -o $@ $^  $(SOBJS) : $(SFILES)     $(AS) $(ASFLAGS) $< -o $@  %.o: %.c     @echo Compiling $<...     $(CC) $(CFLAGS) -c -o $@ $<  #Clean Script - Should clear out all .o files everywhere and all that. clean:     -del *.img     -del *.o     -del assembly\*.o     -del core.elf   My main issue with this makefile is that when I modify a header file that one or more C files include, the C files aren't rebuilt. I can fix this quite easily by having all of my header files be dependencies for all of my C files, but that would effectively cause a complete rebuild of the project any time I changed/added a header file, which would not be very graceful.  What I want is for only the C files that include the header file I change to be rebuilt, and for the entire project to be linked again. I can do the linking by causing all header files to be dependencies of the target, but I cannot figure out how to make the C files be invalidated when their included header files are newer.  I've heard that GCC has some commands to make this possible (so the makefile can somehow figure out which files need to be rebuilt) but I can't for the life of me find an actual implementation example to look at. Can someone post a solution that will enable this behavior in a makefile?  EDIT: I should clarify, I'm familiar with the concept of putting the individual targets in and having each target.o require the header files. That requires me to be editing the makefile every time I include a header file somewhere, which is a bit of a pain. I'm looking for a solution that can derive the header file dependencies on its own, which I'm fairly certain I've seen in other projects.


Making widths of tables equal to width of textblock

I have various tables in my document, and all of them have different widths. Is there a way I can evenly space out all of them, and have all widths equal to the width of the textblock (=pagewidth minus widths of margins)?  \documentclass[12pt]{article} \addtolength{\parskip}{\baselineskip} \usepackage[margin=1in,includefoot]{geometry} \usepackage[fleqn]{amsmath} \usepackage{mathtools} \usepackage{siunitx}  %Tables preamble \usepackage[none]{hyphenat} \usepackage{array} \usepackage[thinlines]{easytable} \usepackage{longtable} \usepackage{array, booktabs, makecell, multirow}   \renewcommand\theadfont{\bfseries\small} \newcommand\mceight[1]{\multicolumn{8}{l}{#1}} \newcommand\mctwelve[1]{\multicolumn{12}{c}{#1}}   \usepackage{arydshln} \setlength\dashlinedash{0.2pt} \setlength\dashlinegap{1.5pt} \setlength\arrayrulewidth{0.3pt} \usepackage{pdflscape} \usepackage{afterpage}  \widowpenalty500 \clubpenalty500 \exhyphenpenalty=50 %for line-breaking at an explicit hyphen \brokenpenalty=4991 \predisplaypenalty=10000 \postdisplaypenalty=1549 \displaywidowpenalty=1602 \floatingpenalty = 20000  % Header and footer \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \fancyfoot{} \fancyfoot[R]{ \thepage\ } \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{1pt}  \usepackage{booktabs} \usepackage{dcolumn}    \begin{document}  \subsection{Appendix of Tables}  \newgeometry{margin=0.5in}   \begin{table*}[ht] \centering \fontsize{10}{12}\helvet \caption{Summary statistics 1} \begin{tabular}{l*{6}{S[table-format=2.2]}} \toprule & & & \multicolumn{3}{c}{Quantiles} \\ \cmidrule(lr){4-6} \textbf{Variable} & \textbf{Mean} & \textbf{Minimum} & \textbf{25th percentile} & \textbf{Median} & \textbf{75th percentile} & \textbf{Maximum} \\ \midrule \textbf{Panel A: Female labour force} \\ \midrule \textbf{2004-05} \\ \hdashline {Hourly wage}  & 17.17 & 0 & 3.75 & 5.48 & 12.5 & 250\ \\ \hdashline {Age (in years)}& 9.98 & 15 & 22 & 29 & 38 & 60\ \\ \hdashline {Years of experience} & 10.61 & 0 & 8 & 15 & 25 & 40\ \\ \hdashline {Years of education} & 7.13 & 0 & 0 & 8 & 12 & 16\ \\ \hdashline \\ \bottomrule \end{tabular} \end{table*}  \begin{longtable}{ l*{7}{S[table-format=2.2]} } \fontsize{10}{12}\helvet \caption{Summary statistics 2} \label{tab:...} \\ \toprule \multirow[b]{2}{*}{\thead{Dependent\\ Variables}}     &   \multicolumn{3}{c}{\thead[b]{Share(\%)}}         & \multicolumn{3}{c}{\thead[b]{Avg hourly wage}}             & {\multirow[b]{2}{*}{\thead{Avg\\ differential}}}              \\     \cmidrule(lr){2-4}\cmidrule(lr){5-7}     & \textbf{Men} & \textbf{Women} & \textbf{Pooled}     & \textbf{Men} & \textbf{Women} & \textbf{Pooled}                       \\    \hdashline                                                               \\ \endfirsthead %%%% \caption{Summary statistics 2 (cont.)} \\ \toprule                                     \multirow[b]{2}{*}{\thead{Dependent\\ Variables}}     &   \multicolumn{3}{c}{\thead[b]{Share(\%)}}         & \multicolumn{3}{c}{\thead[b]{Avg hourly wage}}             & {\multirow[b]{2}{*}{\thead{Avg\\ differential}}} \\   \cmidrule(lr){2-4} \cmidrule(lr){5-7}   & \textbf{Men} & \textbf{Women} & \textbf{Pooled} & \textbf{Men} &   \textbf{Women} & \textbf{Pooled} \\ \midrule \\ \endhead \midrule \multicolumn{8}{r}{\footnotesize\textit{Continue on the next page}} \endfoot\endlastfoot \mceight{\textbf{PANEL A: 2011-2012}} \\ \midrule \\ \mceight{\textbf{Panel A.1: Sector (Urban or Rural)}} \\ \midrule Rural  & 51.5 & 54 & 52 & 28.54 & 18.83 & 26.92 & 51.5 \\ \hdashline Urban  & 48.4 & 46 & 48 & 45.19 & 41.86 & 45    & 7.8 \\ \hdashline \bottomrule \end{longtable} \end{document}


Expected ':', ',', ';', '}' or '__attribute__' before '=' token

I have little problem while programming Atmega328    This piece of code gives error:  expected ':', ',', ';', '}' or '__attribute__' before '=' token   in Atmel Studio 7  struct {     const uint8_t fioletowy[3] = {255,0,255};     const uint8_t blekitny[3] = {0,255,255};     const uint8_t czerwony[3] = {255,0,0};     const uint8_t zielony[3] = {0,255,0};     const uint8_t niebieski[3] = {0,0,255};     const uint8_t pomaranczowy[3] = {255,128,0};     const uint8_t zolty[3] = {255,255,0};     const uint8_t bialy[3] = {255,255,255};     const uint8_t rozowy[3] = {255,100,255};     const uint8_t cyjanowy[3] = {0,255,225}; } kolory;   Whole code


arrays passing to methods in Java - What is passed here? Value or Reference?

When I passing an object reference (arrays are objects) to a method, the value is passed, right?  In the following code the initial value is: 333. After method passing, the value is changed. Why? Is in this case the reference passed instead the value?  Are arrays "special cases"?   public static void main(String[] args) {     int[] myArray = { 333 };     valueOrRef(myArray);            // Value or Reference?     System.out.println(myArray[0]); // 777 (changed) }  public static void valueOrRef(int[] myArgument) {     myArgument[0] = 777; }   Another approach: (the logic "pass by value"):  public static void main(String[] args) {     int[] myArray = { 333 };     valueOrRef(myArray[0]);         // Value or Reference?     System.out.println(myArray[0]); // 333 (after method still unchanged) }  public static void valueOrRef(int myArray2) {     myArray2 *= 2; }


An XP and a Win10 PC reside on a LAN.  The goal: the Win10 PC executes a program on the XP box:  XP_BOX>> myProgram.exe  arg1 arg2 argN   Is there a built-in Win10 command that enables:  Win10>>  remoteExecute  XP_BOX:userID:password "myProgram.exe  arg1 arg2 argN"    Once this works, the Win10 box has an application that can bang-out to the Win10 OS and perform remote program execution.  If there is a better way of accomplishing the above: suggestions are appreciated.  Thank you


Why isn't $\{0\}$ being prime ideal is not maximal in $\mathbb{Z}$?

I am confused with the following arguments :-   $\mathbb{Z}$ is a Euclidean Domain with the evaluation map $\phi(r)=|r|$ and so it is a PID.  The ideal $\{0\}$ is a prime ideal in $\mathbb{Z}$ since $ab=0$ implies either $a=0$ or $b=0$   I know the theorem that in a PID an ideal is maximal  iff it is prime.   So this should give $\{0\}$ ideal as maximal! , which is obviously false since $\{0\}\subset p\mathbb{Z}\subset \mathbb{Z}$, where $p$ is prime.  This may be a naive question but where am I wrong. Please help.


Graph of order $n$ has two two vertices of same degree

How to proof that a graph of order $n$, $n\geq 2$ has two vertices of the same degree?


Do we need to be careful when comparing a double value against zero?  if ( someAmount <= 0){ ..... }


I'm having an issue with blender where whenever I try to render as any sort of video, instead of showing up as an mp4 or whatever file type I chose, it will show up as a mystery file that cannot be opened. This issue started recently and randomly: I was always able to render perfectly fine before and I used the exact same settings now that I did then.   not sure exactly what I'm doing wrong. Here are the export settings I am using:


Find the largest $m$ such that $n^{12}\equiv 1\mod m$ for all $n$ relatively prime to $m$? (using only Euler's totient theorem)

I was able to show that if $(n,72)=1$ then $n^{12}\equiv 1\mod {72}$, and now the second part of this question seeks to find the largest $m$ such that $n^{12}\equiv 1\mod m$ for all $n$ relatively prime to $m$. Based on the first part we must have $m\geq 72$. But I have no idea on how to proceed; any hint would be vastly appreciated. Maybe using Euler's totient function?


I tried installing sqlplus by following the instruction from . I'm still getting :  sqlplus: command not found   when I do sqlplus from my terminal.   I'm an novice in Ubuntu and I use Ubuntu 12.04.


What does the cosmic neutrino background look like today, given that neutrinos possess mass?

This question is inspired by (or a follow-up to) the threads  and   The  (CνB) consists of the "primordial" neutrinos from the time when the universe had cooled/expanded enough for the neutrinos to "decouple" and become free. This of course is similar to the cosmic microwave background except that photons decoupled at a much later time (age $1.2\cdot 10^{13}$ s) than neutrinos (age $1$ s).  My question is, what would we expect the CνB to look like today, given that we know that neutrinos possess mass. According to the linked threads, the neutrinos would have become non-relativistic today because of the great expansion of space since the time when the universe was only one second old.  So will the relic neutrinos from CνB be captured gravitationally by galaxies and stars and similar objects, in a way that today these neutrinos are orbiting galaxy centers, stars etc.? I imagine this is like how most cold/slow hadronic matter (like dust or isolated hydrogen atoms or whatever) will be gravitationally bound to galaxies, stars etc.  Because if that is the case, this neutrino "background" will no longer be have a "background" appearance.  So what to expect: Is the neutrino background still quite isotropic and homogenous and "background-like", maybe even with a temperature associated to it? Or are those particles now captured by all sorts of objects, and no longer constituting a "background" of cold/slow particles?  If one assumes a particular rest mass for each neutrino, say $0.1$ eV, maybe it is even possible to answer this quantitatively?


Name of a short sci fi story about 2 astronauts

I read sometime ago a short sci-fi story. It's about 2 astronauts from Earth traveling to an other planet. On their way to that planet they get intercepted by an alien vessel. The captain of that ship tells the 2 astronauts about an enemy that kills billions of aliens in the milky way. There was a big war and the bad aliens got killed, but they send ships out to search if there were more.  When one of the astronauts asks if they ever found one of the enemies,  the captain said not till today.


Can we allow users with 1k reputation (or something) to grant users without the reputation access to a specific chat room?

There have been several times I have been helping a user with a question and things aren't quite working out perfectly, and the comments keep getting longer and longer and longer. We've all been there, the comment system isn't made for long discussions, and at some point we just want to throw up our hands and give up.  I've tried creating a chat room to discuss the issue in a better environment, but if they have less than 20 reputation that isn't possible. If you are room owner of that chat room (like you probably are if you created it) and have 1k rep you can make a room read-only, but you can't give a user explicit write access to a room, even though you have access to the controls.     TL;DR  Can we please allow users with 1k (or some amount) of reputation the ability to give write access to users with less than 20 reputation in chat? .    This question  is related, but isn't really the same request.


I use a composed figure that contains two subfigures implemented via subfloats. Example code:  \begin{figure}     \centering      \subfloat[Workload = 1,000]{         \includegraphics[width=0.45\linewidth]{img/fib-1k-dyn.eps}         \label{subfig:fib1k}     }     \qquad     \subfloat[Workload = 20,000]{         \includegraphics[width=0.45\linewidth]{img/fib-20k-dyn.eps}         \label{subfig:fib20k}     }      \label{fig:fib}     \caption{Fibonacci benchmark with fixed workload, dynamic scheduling} \end{figure}   When I refer to the first subfigure via \ref{subfig:fib1k} the really pretty text is displayed such as 5.1a or 5.1b in the analogous reference.  However, sometimes I need to refer to the whole image, i.e. \ref{fib}. In that case I'd expect 5.1 (without the letter of course). Instead, unknown reference is presented ??.  How can I refer to it properly? I use pdflatex and \usepackage{subfig} package.


Every subgroup of finite index contained in an infinite group $G$ contains a normal subgroup of $G$.

Let $H<G$ such that $H$ has finite index in the infinite group $G$. Then $G$ contains a normal subgroup of finite index contained in $H$.  Can I create a subgroup of index $2$ in $G$ using elements of $H$?


Is it possible to change he/she (he or she) in a sentence into one word? For instance: When a student comes in, ask him or her to...


Reference with distributions with various properties

I often find myself asking questions like, "I know this variable $x$  lies in $(0,1)$ and most of the mass lies in $(0,.20)$ and then declines continuously towards 1.  What distribution can I use to model it?"  In practice, I wind up using the same few distributions over and over again simply because I know them.  Instead, I'd like to look them up in a more systematic way.  How do I go about accessing the wealth of work that probabilitists have done developing all of these distributions?  Ideally I'd like a reference organized by properties (region of support, etc.), so I can find distributions by their characteristics and then learn more about each distribution based on the tractability of the pdf/cdf and how closely the theoretical derivation fits the problem I'm working on.  Does such a reference exist, and if not, how do you go about choosing distributions?


I was reading the lyrics of the song "Selling Rope" by "Los Campesinos" and there's a part that says:     Anecdote, lie    My own alibi    I've been telling jokes    Piled notes high   My own alibi   I've been selling rope   also     Oh I was a bird right then, one day I will be again   I've been telling jokes while selling rope to you   so what does it mean? I made a google search and it is not an idiom or anything like that, is it a british slang or something?


Hyperref in verbose citestyle (Biber) not working

I am using hyperref and Biber's verbose citestyle for the bibliography of my Ph.D thesis. However, the hyperrefs for the bibliography does not seem to be working. Here is my set up :  % !TEX encoding = UTF-8 Unicode % !BIB TS-program = biber \documentclass[a4paper, 12pt, oneside]{book}  \usepackage[citestyle=verbose-trad1,           bibstyle=verbose,          dashed=true,          sorting=nyvt,          hyperref=true,          backref=true, % will show where in the text are references cited           backrefstyle=three, % Compresses any sequence of three or more consecutive pages to a rang          firstinits=true] % initials for first and middle names          {biblatex}  \begin{filecontents}{bibliographie.bib}           @book{maclane1986,     Address = {New York},     Author = {Mac Lane, Saunders},     Date-Added = {2014-10-30 10:22:32 +0100},     Date-Modified = {2014-10-30 10:23:05 +0100},     Publisher = {Springer},     Title = {Mathematics, form and function},     Year = {1986}} \end{filecontents}  \addbibresource{./bibliographie.bib}  \usepackage{hyperref}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}   \begin{document}  \frontmatter  \begin{titlepage} great title \end{titlepage}  \tableofcontents   \mainmatter  This is the citation that should be hyperrefed : \cite{maclane1986}  \backmatter \addtocontents{toc}{\vspace{1em}}   \addcontentsline{toc}{chapter}{References} \printbibliography \end{document}    And this is what I get:     If, instead, I change the citestyle to (for example) authoryear:  % !TEX encoding = UTF-8 Unicode % !BIB TS-program = biber \documentclass[a4paper, 12pt, oneside]{book}  \usepackage[citestyle=authoryear,           bibstyle=verbose,          dashed=true,          sorting=nyvt,          hyperref=true,          backref=true, % will show where in the text are references cited           backrefstyle=three, % Compresses any sequence of three or more consecutive pages to a rang          firstinits=true] % initials for first and middle names          {biblatex}  \begin{filecontents}{bibliographie.bib}           @book{maclane1986,     Address = {New York},     Author = {Mac Lane, Saunders},     Date-Added = {2014-10-30 10:22:32 +0100},     Date-Modified = {2014-10-30 10:23:05 +0100},     Publisher = {Springer},     Title = {Mathematics, form and function},     Year = {1986}} \end{filecontents}  \addbibresource{./bibliographie.bib}  \usepackage{hyperref}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}   \begin{document}  \frontmatter  \begin{titlepage} great title \end{titlepage}  \tableofcontents   \mainmatter  This is the citation that should be hyperrefed : \cite{maclane1986}  \backmatter \addtocontents{toc}{\vspace{1em}}   \addcontentsline{toc}{chapter}{References} \printbibliography \end{document}    the hyperref works now fine:     Is there something I am doing wrong?  PS: I am new to stackexchange, so sorry if my question is not phrased properly...


How does @comment work for authors of edit to my post which I've rejected or are still pending?

I've just found out that you can @comment to the author of a successful edit to your post. That's excellent.  From time to time I will reject an edit and would like to thank the editor, but let them know why their suggestions were rejected.  While @comment for accepted edits doesn't autocomplete and so it looks like it won't reach the editor, but it will. What is the behavior for the authors of the following?   pending edits rejected edits


Alternative to many IF statements in python?

I know there are a lot of questions about that, but they are all about some specific cases.  I have a general question.  I have code which compares user input to many possible values (keywords).  All works, but I hate the "monstrosity".  it's like this:   if userinput == "input1":    print('input1')  elif userinput == "input2":    print('input2')  elif userinput == "input3":    print('input3')  elif userinput == "input4":    print('input4')  elif userinput == "input5":    print('input5')  # repeat many times until the last else  else:    print('all the rest')    the inputs can be ANYTHING. And comparison is not always just ==. the action on match sometimes can be a long piece of code too, not just print.   I can't really combine those conditions and I on purpose don't want to, since each one detects it's own thing.   My question is: Any practice of making such cases more readable? Cleaner?   One thing I am thinking is to call an external functions per case from each comparison and store those functions in separate *.py file. The best I can think of at this point..  Any better ideas\ways to handle that?


I want to type Arabic text in Photoshop cs3, but the text appears disjointed and the letters do not connect at all. For example محمد appears as م ح م د.


Prove for all positive integers d, m, n. If d=gcd(m, n) then gcd(m, nk)=gcd(m, dk). So I messed around with it, and I started from the conclusion. I made gcd(m, nk)=x, gcd(m, dk)=y. Then by Bezout's Lemma ms+nkt=x, ms+dkt=y, s and t are integers. I think I can make these 2 equations and change it to the form of d=gcd(m, n). Maybe by dividing? But If I divide it by d, then ms/d+nkt/d=x/d, then this equation might not be integers anymore. I don't know that the next step is. Thank you for looking this over for me.


Understanding an 'ideal' diode made from a p-channel MOSFET and PNP transistors

The Raspberry Pi B+ models have a protection circuit between the USB connector and the 5V net on the board.  They recommend putting a similar protection circuity on a Pi HAT before 'backpowering' the pi through its GPIO header along with a polyfuse.  I understand why this is the recommendation, but I'd like to understand more about how this circuit works.  I did some searching before posting this question and found information on using a MOSFET as a low voltage drop diode, but they all had the gate wired directly to ground without the pair of PNP's and the resistors.  What are they doing for this circuit?  Also, is this primarily using the body diode?  In which case, what's the relevant info on the datasheet that qualifies DMG2305UX for this application?  In the other circuits I found, it appeared low Rdson and Vgsth compatible with the circuit seemed like the relevant characteristics.


The distribution of the product of Gaussian variable and Rademacher variable.

I have two independent variables: $X$ follows from standard Gaussian distribution $N(0,\sigma^2)$; $Y$ follows from Rademacher distribution, i.e., $Y$ can be either $-1$ or $1$ with the same probability.  My question is:  For a new random variable of $Z=XY$, What is the probability density function?   Or can we have some concentration inequalities for $Z$ (e.g., show how $Z$ approaches its expectation, etc.)?


git clone hex2hcd "command not found" Ubuntu bluetooth

I have Ubuntu 14.04 and my bluetooth stopped working.  The accepted solution for this problem is to find the driver in hex format and convert it to hcd for installation:    sudo apt-get install git git clone git://github.com/jessesung/hex2hcd.git cd hex2hcd make ./hex2hcd ../BCMxxxx.xxx.xxx.xx.hex BCM43142A0-0a5c-21d7.hcd (Correct hex file and required hcd name here)   So I followed the commands and installed git and everything seems to go just fine until the end when I get a "command not found":    $ git clone git://github.com/jessesung/hex2hcd.git Cloning into 'hex2hcd'... remote: Counting objects: 8, done. remote: Total 8 (delta 0), reused 0 (delta 0), pack-reused 8 Receiving objects: 100% (8/8), 8.71 KiB | 0 bytes/s, done. Resolving deltas: 100% (1/1), done. Checking connectivity... done. ~$ cd hex2hcd :~/hex2hcd$ make gcc -O2 -march=native    hex2hcd.c   -o hex2hcd ~/hex2hcd$ hex2hcd BCM43142A0_001.001.011.0084.0086.hex BCM43142A0-0a5c-21d7.hcd hex2hcd: command not found   Why am I getting "command not found" ???    If i look in the directory the command hex2hcd is present:    ~/hex2hcd$ ls BCM43142A0_001.001.011.0084.0086.hex  hex2hcd  hex2hcd.c  LICENSE  Makefile   And if I examine the hex2hcd file its properties are executable.  I do not know what to do next to resolve this.  hmm.  This question has been marked as a duplicate to:      But I do not understand how that helps or how I would have ever found that page.  Actually another suggest to prepend ./ before my command is a helpful answer as it has solved the problem.  But that solution is not found on the page marked as duplicate.  I don't understand why I need to prepend ./ when I am already in the directory with the command ...  So I have a solution but do not understand why it is needed.


I use the sign convention:   Heat absorbed by the system = $q+$ (positive) Heat evolved by the system = $q-$ (negative) Work done on the system = $w +$ (positive) Work done by the system = $w -$ (negative)   Could anyone please tell me, that volume increased in system does positive or negative work?


Is there some way to derive ? I can understand that energy in something is proportional to its mass, but the $c^{2}$ part. I have no idea. It seems like the way the units are going it would end up as $kg*(m/s)^{2}$, which I think is the unit for Newtons, not energy. And why is there no constant of proportionality $k$? Did Einstein just set it up perfectly so that there wouldn't be one?


What is the significance (or purpose) of this trailing s in this std::string_view example?

Update: The answer(s) and discussion provided in the  answer are more than sufficient to satisfy this question.  If you have a similar question the suggested reading is this paper on  and the  reference     Reading through  I came across this example. There is this trailing 's' at the end of the bad example and I am not sure what it signifies.


Novel involving an inventor who frequently creates incidents, and a young boy who winds up being his assistant

While reading through , I was suddenly struck with a memory of having read a book within the last few years (I'll start trolling through my library history tonight after work) with a kind of similar premise. The inventor in question had some sort of pull or influence over the town such that they couldn't quite get rid of him. I want to say that he developed projects for the U.S. Military, although he was sort of a "gentleman inventor" who was doing it for the fun of it rather than someone who was truly trying to push the boundaries of human understanding. The two bits that stick out to me are   He frequently causes incidents that require the fire department to show up, and he's got his own siren or klaxon for when things go wrong. I don't remember if it was fires or gasses that were what kept happening, and I have a vague memory that the post office guy often got caught in the middle of incidents, to the point where the inventor treated him as a bit of a guinea pig. He eventually gains a young boy as an assistant. We're introduced to said boy as he and a gang of kids are playing a "follow the leader" game where he's trying to winnow them out by doing progressively more dangerous or at least damaging to the clothes they're in. One which sticks out in my head was that they had to wade through a river, I think without removing their shoes, etc. The last challenge involves them going onto the grounds of this inventor, which I'm pretty involved traversing a fence. The young boy winds up the only one left when he encounters the inventor.   From there, I think I had to return the book, but the inventor decides to give the boy a job. I think he initially gives the boy some recent invention... I want to say they were either discs or glass bottles but they're on a belt, and there's something in the belt indicating that it was a military project.  The book had the feel of an older book, maybe pre-computers. I'm almost certain it was set in a time before cell phones and personal computers, when the primary entertainment for kids involved romping through woods and creeks. I think the cover might have been yellow, a hardback, just the name of the book without a cover image? I'm pretty sure it was written for a younger crowd.


In Django, how does one filter a QuerySet with dynamic field lookups?

Given a class:  from django.db import models  class Person(models.Model):     name = models.CharField(max_length=20)   Is it possible, and if so how, to have a QuerySet that filters based on dynamic arguments?  For example:   # Instead of:  Person.objects.filter(name__startswith='B')  # ... and:  Person.objects.filter(name__endswith='B')   # ... is there some way, given:  filter_by = '{0}__{1}'.format('name', 'startswith')  filter_value = 'B'   # ... that you can run the equivalent of this?  Person.objects.filter(filter_by=filter_value)  # ... which will throw an exception, since `filter_by` is not  # an attribute of `Person`.


What happens if I beat Ganon in Zelda: Breath of the Wild?

I'm close to maxing out my character and I want to beat Ganon solely for the TRUE ending, but I'm too scared of losing some of my personal favorites from the Guardian Spear++ to fighting those damned Guardians (it was so fun).  So, after beating Ganon    Do monsters disappear? - Including the corrupted Guardians, but also the blood moons, I don't want to just face off against the Yiga Clan... Am I gonna run out of resources? - As a survival game Zelda BOTW has some emphasis on the survival genre but to me it is a survival-esque action-adventure game. Are special weapons still available when you max out? - Like the Savage Lynel Spears or Swords)


Each login creates a new StackExchange account

I have a user on SharePoint StackExchange with some reputation. On this computer I am logged in and can work with this account.  If I use another browser or another computer, of course I am not logged in. When I try to log in by entering my mail adress and password, StackExchange want to create a new account.    After confirm I get a new account SharePoint StackExchange account with no reputation and I cannot "work" on my given answers.  It's like Facebook would give me a new account with an empty friendlist on each login on a new device.  I have to contact support to merge the new created account with my existing account.  I understand the princip of having different user profiles for different StackExchange Q+A pages. But I don't understand why I always get a new account on a simple login.  Why does this happen? Did I do something wrong or should I login with G+ or Facebook to prevent such behavior?


How to locate exactly that executable, which will be run if it's name entered in command line?

Is it possible to locate exactly that executable  myname   which will be run if passed to command line  > myname   locate command didn't work as expected, since it returns numerous results. Result should be exactly one, because if you run something, only one file runs. Also, result should take PATH precedence into account.


Fisher's Information for Laplace distribution

Say we have $f(x , \theta) = \frac{1}{2}e^{-|x-\theta|}$ Lets assume for simplicity, we only have 1 sample. We find that the log-likelihood for this distribution is:  $$ l(\theta , x) = -log(2) + (\theta - x) I_{(x < \theta)}+(x-\theta)I_{(x \geq \theta)}. $$  Now in general, Call the score function:  $$ S(\theta , X) = Dl = \frac{Dg_{\theta}}{g_{\theta}} $$ by noticing the log-likelihood is expressed as :  $$ l(\theta, X) = log (g_{\theta}) $$  Where g is the likelihood and assume $g$ is 3 times differentiable. Furthermore, we find :  $$ DS = \frac{D^2g_\theta}{g_\theta}- SS'. $$ Which finally allows us to obtain that :  $$ var_\theta S = -E_\theta DS $$ by noticing that $E_\theta S = 0$  Now in this case:  $$ Dl = \frac{dl}{d\theta} = I_{(x < \theta)} - I_{(x \geq \theta)} $$  So indeed  $$ E_\theta S = P{(x < \theta)} - P{(x \geq \theta)} = 0 $$ And then $\frac{dS}{d\theta} = 0$ so $-E_\theta \frac{dS}{d\theta} = 0$  Now computing  $$ ES^2 = E( [I_{(x < \theta)} - I_{(x \geq \theta)}]^2) = E(I_{(x < \theta)} + I_{(x \geq \theta)}) = 1. $$ This does not match the case above, however here do not have differentiability. Is what I did correct, or plain fiction?


BitLocker issue. Recovery Key is required on each startup after installing secondary OS

I'm using a laptop with TPM module with BitLocker-encrypted internal HDD, running Windows 7. Recently I've installed a Windows 8 on the external, eSATA drive. Windows 8 detected the Windows 7 and correctly replaced the bootloader with dual-boot option.  Unfortunately, I'm now forced to enter BitLocker Recovery Key each time I start the computer. The only workaround I've found was to disable TPM module in BIOS, and suspend BitLocker on the Windows 7 drive.  How to accomplish the following configuration:   Keep the BitLocker running on Windows 7 (internal drive)  Leave the Windows 8 (external, eSATA drive) completely unencrypted  Don't be bugged to enter Recovery Key each time during startup  No matter if the eSATA drive is plugged in, or not   Is it possible? I don't care if TPM is enabled and I just want the Windows 7 drive to be BitLocker-encrypted.


Why is array indexing symmetric in index and name

Looking at some weird obfuscation contest code today I realized that array indexing is symmetric, in other words, x[n] is the same as n[x]. For example, consider the code below:  #include <iostream>  int main() {     int x[] = {0, 1, 2, 3, 4};     std::cout << x[3] << ' ' << 3[x]; // both display 3 }     Is this indeed standard compliant, and if yes, is there any good reason why? And a bonus if you can provide a standard reference/quote.  PS: the code compiles fine with both gcc and clang


Proving that $\sin(x+y)$ is uniformly continuous

How may I prove that both are uniformly continuous?:  $f(x,y)=\sin(x+y)$ for 1, I said, let $\epsilon > 0$ if $d((x,y),(u,v))<\lambda$:  $|f(x,y)-f(u,v)|<|f(x,y)|+|f(u,v)|=|\sin(x+y)|+|\sin(u,v)|<|x+y|+|u+v|$ But how may I continue from here?


how to return null value when getter have null value instead return java.lang.NullPointerException

i query database and mapping it to class MyDataClass myDataClass = myDataDao.findMyDataByAccountNumber(accountNumber);  and i map it to other class like this MyOtherDataclass myOtherDataClass = new MyOtherDataClass(); myOtherDataClass.setBirthDate(myDataClass.getBirthDate().toString);  i know the myDataClass.getBirthDate() is null because birthdate value in my database is null. if i insert value to birthdate in database, then its normal, everything works. but if it has no value, instead of throw java.lang.NullPointerException: null, i want to set it to null in json i expect the result in json like this { AccountNumber: "12313", BlaBla: "blabla", BirthDate: null, }  =========================================================================== Found out the problem. i use .toString() on myOtherDataClass.getBirthDate().toString() so it throws null pointer.because birthDate in myDataClass is null. sorry that's my bad. solved using myOtherDataClass.setBirthDate(myDataClass.getBirthDate() != null ? myDataClass.getBirthDate().toString() : null);


Will making time-lapse videos for several hours with my DSLR wear out the sensor?

The title says it all. I'm using a DSLR. Will making a time-lapse video, which requires several hours to shoot, wear out the sensor?


Import a class from own library of jar file in IntelliJ Idea

I have made a global library from jar file but  how can I import a class of this library(the Idea see library but do not see any class) Thank you.


Wanting to know if these formulas are correct for this very basic circuit analysis

Hello for the following diagram below, i was just wondering if these formulas are correct to finding what they state (i.e. Vout and V2). For V2 is R3 and C2 in parallel with C2?


How to lock Record(unable to Edit) in saleforce

I've one checkbox field Completed. which is update by using apex class.  I've created one checkbox field as Record Locked  when this field is checked true then; user unable to edit the record. i've to update Record Locked field automatically  when i write validation and check for the Record Locked is true; The problem is when i try to check Record Locked to true then validation also fire.  How can we do. Please Suggest


What is difference between install desktop-environment and run directly distro?

My question is what is difference between installing perticular desktop environment on Ubuntu And Using directly that (Default -environmented) distro/flavour of Ubuntu?  Example: Two options:   Install ubuntu-gnome-desktop or kubuntu-desktop or xubuntu-desktopetc. (official & recognized derivatives) alternatively on Ubuntu (Default -Unity Desktop) Use (Run) perticular distro/flavour Ubuntu-Gnome or Kubuntu or Xubuntu etc.   I want to know is both method working same performance? and which is proper method to use Desktop Environment.


Across as adverb cited from :  1 from one side to the other side It's too wide. We can't swim across. The yard measures about 50 feet across. 2 in a particular direction towards or at somebody/something When my name was called, he looked across at me. 3 across from opposite There's a school just across from our house.  I'm trying to rewrite them into:  It's too wide. We can't swim over. The yard measures about 50 feet over. When my name was called, he looked (over / away) at me. There's a school just over our house.  Are these adapted sentences idiomatic? Any nuances between them and the original ones?


Pass parameters to program started with Runas

I am trying to start Performance monitor as different user. I found runas.exe but syntax for program arguments makes me go crazy. The following syntax works: C:\Windows\System32\runas.exe /user:domain\username perfmon.exe  But since perfmon.exe has the argument */res* the following line doesn't work: C:\Windows\System32\runas.exe /user:domain\username perfmon.exe /res  I tried to escape */res* but without any success. I tried: "/res" \"/res\"" \"\/res\""  Any ideas?


fetching Remote table data and storing into local dump file in pgSQL?

I want to copy one table's content from a remote machine to local. I have tried with psql Command \copy. It's working fine as "copy" is not working due to copying from remote.  But is there any way I can do the same without the command console, and execute a simple query through c# and do it programatically? I am using  Postgres 9.4


What's faster, SELECT DISTINCT or GROUP BY in MySQL?

If I have a table  CREATE TABLE users (   id int(10) unsigned NOT NULL auto_increment,   name varchar(255) NOT NULL,   profession varchar(255) NOT NULL,   employer varchar(255) NOT NULL,   PRIMARY KEY  (id) )   and I want to get all unique values of profession field, what would be faster (or recommended):  SELECT DISTINCT u.profession FROM users u   or  SELECT u.profession FROM users u GROUP BY u.profession   ?


How to add a user from the command line in macOS?

In Terminal, I used, useradd liao2, as I would also do in Linux, but it failed:  useradd liao2 -bash useradd: command not found   I also tried using sudo:  sudo useradd liao2 Password: sudo: useradd: command not found   How can a user be added from Terminal?


How to Add PCloud in startup applications?

I am using PCloud (cloud storage) on my Ubuntu 14.04 machine. To avoid any misunderstanding, I want to clarify that PCloud is just another Dropbox like cloud storage solution. I want to start this application automatically every time I log in. To do this I've searched the binary file in the "/" directory of my machine, but I've found no binary files for PCloud!!!  How can I add PCloud in startup applications?


Can I enter the Schengen area if my visa period is valid before the 180 day rule

My new visa is valid for 90 days within 12-10-2018 to 12-10-2019. My last visit ended on 30-07-2018 and I plan to enter again at 23-10-2018. Will border control in the Netherlands deny entry because of the 180 days rule, even if the visa is valid?   The linked answer explains about the base of the rule. To rephrase my question: Will border control check the last stay or will they allow entry based on the visa validity?  Both the last stay and the intended stay are 90 days.


Determine whether each of the following statements (are or is) true or false

While writing some questions, I came across the following: Determine whether each of the following statements ____ true or false. a. statement 1 b. statement 2 c. statement 3 In the gap, which one of "is" or "are" grammatically correct? Thanks for your help!


In Ubuntu I tried to play with the permission of NTFS drive. I installed an app from the Ubuntu Software Center named NTFS Configuration Tool. After using it a few times, the app started to close and wasn't responding. So I removed the app.  The next day I opened my PC, started the torrent client Transmission. That was a huge file so I downloaded that to my NTFS drive. So I resumed the torrent, but it said Permission denied to write. :( It seems like all of my NTFS drives have become read-only. I can't write anything.  How can I fix this permanently?   (I've run Transmission using sudo command. It's working, but using sudo command everywhere isn't the solution, I need it back like it was before. Please help.)  Here are my fstab contents:


Film where boy's parent reveal their alien selves to him

I never saw the full film, just a uk trailer, dated maybe about 1990. I thought at the time "I'm gonna watch that" but then the years intervened.  I've had a search through this site but no joy.  What I recall is this kid aged approx eleven is gaping in horror because he learns his parents (step-parents maybe) are shape changing aliens/ demons   They proceed to flip through a few changes while laughing at his reaction, one that stayed in my memory was "you called us butt-heads, well look at this!" and both then change their heads into people with big butts from the neck up.


Laurent Series of $f(z)=\sin(\frac{1}{z})$ about $z=0$

To expand $f(z)=\sin(\frac{1}{z})$ about $z=0$? can someone do a step by step explained method please?


I want to write something like this:  \begin{frame}     \begin{itemize}         \item First item         \item Want some code \begin{verbatim}           \pause         \end{verbatim}        Done with it     \end{itemize} \end{frame}   But it fails with this error!  Runaway argument?  \pause \end {verbatim}   What's going on and how to write verbatim in itemize environment?


Can anyone tell me how to avoid mentioning both the pp. and the p. in footnote citing of an article? I kinda find it ugly and redundant. Here is what I mean:     18J.R.R. Tolkien. “On Fairy-Stories”. In: The Monsters and the Critics and Other Essays. Ed. by Christopher Tolkien. London: George Allen and Unwin, 1983, pp. 109–161, p. 141.   In this case, I need to mention p. 141, but I wish to remove pp. 109–161. I don't want to have pp. omitted in all citations, but only when a specific page is mentioned.  I'm using the following:  \usepackage[bibstyle=verbose,citestyle=verbose-trad3,autocite=footnote,backend=bibtex,backref=true]{biblatex}


Are these Dummy subjects?  It was nice to see him   It's obvious that in this sentence "It" is a dummy subject and the sentence can be reconstructed as "To see him was nice".  But what about this: It is time to watch   Is the case same here as in the first one? Can it be reconstructed to "To watch is time"?  Also wanna ask something additional: We were happy to see each other  Now what happens in this sentence? "to see" is something lie a complement to the adjective "happy"?   Some other examples like this one: He is ready to play, She is prepared to play the piano


NullPointerException in simple static main program

I don't know what I did wrong.  Exception in thread "main" java.lang.NullPointerException     at helloWorld.HelloWorld.main(HelloWorld.java:30)   Feel free to tell me a much better way of doing this. The error seems like to be something I did wrong with the scanner during  "String feels1 = scan2.nextLine();" on line 13. I think  there might be a way easier way of writing this but I'm just testing.  public static void main(String[] args) {     Scanner scan = new Scanner(System.in);     System.out.println("Hello");     System.out.println("Who am I speaking with?");     String name = scan.nextLine();     System.out.println("Hello " + name + "!");      String feels = null;      do{         System.out.println(name + ", how are you doing today?");         System.out.println("[Good] [Bad] [Ok]");         Scanner scan2 = new Scanner(System.in);         String feels1 = scan2.nextLine();         if (!feels1.equalsIgnoreCase("good") || !feels1.equalsIgnoreCase("bad")                 || !feels1.equalsIgnoreCase("ok")){             break;         } else {             System.out.println("I don't understand you.");         }        } while ( !feels.equalsIgnoreCase("good") ||!feels.equalsIgnoreCase("bad")||             !feels.equalsIgnoreCase("ok") );               // The error lies here.             if ( !feels.equalsIgnoreCase("good") ){                 System.out.println("Im glad you're feeling good!");              }else if (!feels.equalsIgnoreCase("bad")){                 System.out.println("I hope you feel better!");              }else{                 System.out.println("I'm sure you'll feel better soon enough.");      }                 }   Edited:    public static void main(String[] args) {                 Scanner scan = new Scanner(System.in);                 System.out.println("Hello");                 System.out.println("Who am I speaking with?");                 String name = scan.nextLine();                 System.out.println("Hello " + name + "!");              do{                     Scanner scan2 = new Scanner(System.in);                     String feels = scan2.nextLine();                     System.out.println(name + ", how are you doing today?");                     System.out.println("[Good] [Bad] [Ok]");                     if (!feels.equalsIgnoreCase("good") || !feels.equalsIgnoreCase("bad")                                     || !feels.equalsIgnoreCase("ok")){                             break;                     } else {                             System.out.println("I don't understand you.");                     }                   } while ( !feels.equalsIgnoreCase("good") ||!feels.equalsIgnoreCase("bad")||                             !feels.equalsIgnoreCase("ok") );                             if ( !feels.equalsIgnoreCase("good") ){                                     System.out.println("Im glad you're feeling good!");                              }else if (!feels.equalsIgnoreCase("bad")){                                     System.out.println("I hope you feel better!");                              }else{                                     System.out.println("I'm sure you'll feel better soon enough.");              }                                    }


Can a hyphen be used without anything on the right side?

From :     [...] in early parts of this century when it was the most user- and hardware-friendly Linux operating system available [...]   Is the user- fragment valid (outside this technical/informal context)?  The usage in this context is clear, as it's just avoiding the repetition of -friendly, but is it correct?  Would it be more correct to omit the hyphen?


Let $\{v_1, v_2, v_3, v_4\}$ be a linearly independent set. Prove that the set of vectors $\{v_1, v_2, v_3\}$ form a linearly independent set.

The question asks to use a proof by contradiction. I know that the coefficients of $\{v_1,v_2,v_3,v_4\}$ are all zero, but then I don't know what to do next-how to translate that into the $\Bbb R^3$ vector. Any help would be appreciated, thanks!


QGIS 2.18.5 update breaks on Ubuntu 16.04

Concurrent updates to GDAL (to 2.1.3) and QGIS (to 2.18.5) on Linux Mint 18.1 from the Ubuntugis repos breaks QGIS, with a noted dependency for the virtual package gdal-abi-2-1-2 being uninstallable.    The stable Ubuntugis ppa currently supplies GDAL 2.1.0 (gdal-abi-2-1-0) while the Ubuntugis-unstable ppa has been updated to GDAL 2.1.3 (gdal-abi-2-1-3).  Has anyone found a way around this?    Update:  QGIS bug report for those interested is here:     UPDATE 2  The ticket has been closed as fixed. Everything should be back to normal now.


Interpreting coefficients of an interaction between categorical and continuous variable

I have a question about the interpretation of the coefficients of an interaction between continuous and categorical variable. here is my model:  model_glm3=glm(cog~lg_hag+race+pdg+sex+as.factor(educa)+(lg_hag:as.factor(educa)),                 data=base_708)  Coefficients:                          Estimate Std. Error t value Pr(>|t|)     (Intercept)               21.4836     2.0698  10.380  < 2e-16 *** lg_hag                     8.5691     3.7688   2.274  0.02334 *   raceblack                 -8.4715     1.7482  -4.846 1.61e-06 *** racemexican               -3.0483     1.7073  -1.785  0.07469 .   racemulti/other           -4.6002     2.3098  -1.992  0.04687 *   pdg                        2.8038     0.4268   6.570 1.10e-10 *** sexfemale                  4.5691     1.1203   4.078 5.15e-05 *** as.factor(educa)2         13.8266     2.6362   5.245 2.17e-07 *** as.factor(educa)3         21.7913     2.4424   8.922  < 2e-16 *** as.factor(educa)4         19.0179     2.5219   7.541 1.74e-13 *** as.factor(educa)5         23.7470     2.7406   8.665  < 2e-16 *** lg_hag:as.factor(educa)2 -21.2224     6.5904  -3.220  0.00135 **  lg_hag:as.factor(educa)3 -19.8083     6.1255  -3.234  0.00129 **  lg_hag:as.factor(educa)4  -8.5502     6.6018  -1.295  0.19577     lg_hag:as.factor(educa)5 -17.2230     6.3711  -2.703  0.00706 ***   lets say the equation of the model is:  E[cog] = a + b1(lg_hag) + b2(educa2*lg_hag) + b3(educa3*lg_hag) + b4(educa4*lg_hag)  + b5(pdg, centered) + other covars, where  b1 = difference in cog  with higher lg_hag among lowest education (coded as 1) b1 + b2 = difference in cog with higher lg_hag among middle education (coded as 2) b1 + b3 = difference in cog with higher lg_hag among high education (coded as 3) b1 + b3 = difference in cog with higher lg_hag among very high education (coded as 4) b5 = difference in cog with each unit increase in pdg   My question is: if my interpretation is right, how to construct confidence intervals for each effect estimate of interactions (e.g: b1+b2) from the confidence intervals of b1 and b2.


How do  form? Why are they called the "time-reversed" versions of a black hole? What's an "eternal" black hole? How come a white hole is only encountered if you remove the star from the space-time surrounding the black hole? Why is it that if you add any matter to the area that the white hole disappears? Any explanation greatly appreciated.


Administrative download for windows 10 upgrade

I have a small at home computer repair business.  Where can I download an upgrade for windows 10 that I can use LEGALLY to update computers from 7 or 8 without having to download all the packages for each machine?


I hope you enjoyed/have enjoyed staying in Italy

A friend has written me a message in which she tells me that she is leaving tomorrow from Italy. I want to say that I hope that she had/ has had a great time here in Italy. What is the right way to say it? "I hope you enjoyed staying in Italy" or "I hope you have enjoyed etc.." Thanks.


Can wizards and witches improve their eyesight in Harry potter's world?

It's well known that in the Harry Potter's world, at least two very powerfull wizards, namely Dumbledore and Harry Potter himself, do wear spectacles.  Since there are spells that can modify some how their physical look, or transform their body. Why can't they just temporally or permanently improve their eyesight.


I need a query to take the name of the territory to which a user belongs I try with this  UserTerritory userT = [SELECT Id, Terrotory.Name                                     FROM UserTerritory                                     WHERE UserId = :currentUser LIMIT 1];  but throws this error  SELECT Id, Territory.Name            ^ ERROR at Row:1:Column:12 Didn't understand relationship 'Territory' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.


Does laser beam expand along distance or not?

Why does laser dot become bigger at bigger distance?   e.g: from millimeter to inches so that it distracts pilots in aircrafts. I knew that laser beam should't expand over distance, but remain stable. Is that true?


Third-party SSD solutions in ProLiant Gen8 servers

I was wondering if anyone had any specific experience using Intel DC3700 SSDs (or similar) in the HP (DL380p) Gen8 servers?   I'm upgrading a set of database servers that use direct-attached storage. Typically, we use HP-branded everything in our server configs, and beyond a few SSD'd desktops (all of which have worked flawlessly), I have not otherwise used SSDs - certainly not in a server.   The servers we're upgrading run SQL Server (2005) on Windows. We're moving to SQL 2012. Current boxes host a single 200GB database on DL370 G6 provisioned with 72GB 15K SFF drives in RAID 1+0 as follows: OS (2 spindles), tempdb (4 spindles), t-logs (8 spindles), data (20 spindles). Performance is not an issue (CPU load is typically 20% / peak 30%, disk queues are typ = 1). The data volume disks are running in MSA50s off a P800 - so there's probably 5K IOPS there tops. The hardware is approaching 4 years old, and so it's time for a refresh.  Data usage, as reported by the individual hard disks, shows write volume of < 100TB since deployment on the data volume; < 10TB write on the transaction log volume; and ~ 1TB on tempdb.   That's the use case. Now consider a new, identical disk subsystem. It's going to run ~ $15K per server (34x 15K HDD @ $250 + 2x D2700 shelf + Smart array P421 for the external storage).   Consider a similar SSD deployment, say 6x 200GB SSD for the data volume, and 2 each (100GB) for OS, tempdb, and logging. Perhaps overkill, but using Intel DC S3700 for all with a second array card brings me in around $5K per server. Plus, it fits in one 2U box (use the expansion cage on the DL380p) and saves several hundred dollars in electricity every year. With the increased SSD performance, this might even cover some sloppy queries ;-).   An equivalent "no-worries" HP SSD solution is going to run ~ $10.5K. Twice the price with less warranty, lower endurance, but guaranteed performance and manageability.    Certainly, there are loads of in-between solutions that could work. I'm also quite aware of the vendor supported solution vs. 3rd party trade-offs. What I don't have is experience integrating these specific products to help quantify those trade-offs. I'm hoping someone out there does, and is willing to share his experience.   Questions that come to my mind are:  Does the S3700 play well in the Proliant environment with the Array P42x/P822 cards? If using the S3700, would there be an advantage to using a 3rd party card, say the LSI 9270-8i? How (well, easily) are firmware upgrades or management alerts accomplished with the third party solution as I've outlined?  If there are particular issues with the assembly, how have you worked around them - assuming you have?  With the changes that SSDs has introduced into the storage arena, storage solutions are way less straightforward than even a few years ago. I'm sure they will be very different in another few years, and we had expected to wait another cycle before seriously considering using SSDs in any server application.   Before I head too far down this road, is there anyone who would share their relevant experience with any of this? Please tell us why we're smart, crazy, or something in between.


Fixing performance problem in PostGIS ST_Intersects

I am new to PostGIS and I have a problem in query performance.  This my query:  SELECT DISTINCT ON (userid) userid ,ST_AsText(position), timestamp   FROM table1  WHERE ST_Intersects ( ST_GeomFromText('a multiypolygon geom goes here',4326),position)  ORDER BY userid, timestamp desc   and the problem is my multipolygon include VERY large polygons (600 pages long in word doc!) and it took more than 2 hours to execute!  Is there a way to optimize my query or use another way?


Concerning the sequence $ x_1=1 ,\space x_{n+1}=x_n+\dfrac{1}{x_n} $

Let $(x_n)$ be a real sequence satisfying  $ x_1=1 ,\space x_{n+1}=x_n+\dfrac{1}{x_n} ,\forall n \in \mathbb N$ , then can we find an expression for $[ x_n$] ( box-function) in terms of $n$ $,\forall n \in \mathbb N$ ? ( I have only been able to find that   $x_n^2>2n , \forall n>2$ and $lim \dfrac {x_n^2}{n}=2$)


How to roll a plane onto a cylnder (paper onto a toilet roll)

We're trying to make an animation pretty much like toilet roll being wound onto a cylinder (but the cylinder is invisible)  We've managed to do this:    by moving the planes along a spiral but really that means the coil is too wide at the beginning but the end result is good.  Is there another way to achieve this goal because I think what we are doing now is fundamentally flawed in its approach?  This is not the same as  - this approach also rolls a plane onto a spiral. I'm trying to get the effect that a material rolls onto a cylinder like a cassette tape winding onto a reel. This is almost backwards from the spiral approach because the first fold should be the smallest ....


How to parse file with array of objects gets turned into string

I have a text file containing a an array of objects in the following format:  [{             "symbol": "MSFT",             "side": "BUY",             "price": 120,             "quantity": 100         },         {             "symbol": "KPMG",             "side": "SELL",             "price": 88,             "quantity": 10         }]   However, when I upload the file into my application, and store it as a variable, it gets stored as a string. Does anyone know how I can avoid doing this?  I want to be able to read the file in (which I can already do) and store that as an array. So I can go like data[1] and get access to     {         "symbol": "KPMG",         "side": "SELL",         "price": 88,         "quantity": 10     }   I also want to be able to go like:  data[1].side   and retrieve the field


Remove duplicate values from list in tuple

I have a list that containts a tuple, and that tuple contains another list with values:  list [('5c3b542e2fb59f2ab86aa81d',  ['hello', 'this', 'is', 'a', 'test', 'sample', 'this', 'is', 'duplicate'])]   As you can notice 'this and 'is' are already present in this list and I would like to remove them.  So I want something like this:  new_list [('5c3b542e2fb59f2ab86aa81d',  ['hello', 'this', 'is', 'a', 'test', 'sample', 'duplicate'])]   Just to be clear, the List above contains multiple values, see my screenshot attached to this question.  So far I tried the following method:  final_list = []  for post in new_items:     if post[1] not in final_list:        _id = post[0]        text = post[1]        together = _id, text        final_list.append(together)   I tried to loop through each item in the list and if it's not in the list, it would be added to the final_list. But so far this method doesn't work and gives me the exact same list back.


Which Stack Exchange sites weren't proposed in Area 51?

Recently I found some sites that are a part of the Stack Exchange network but were not proposed. In other words, I'm talking about sites that are not established through Area51, like Super User.  Which sites are these that are part of the Stack Exchange network and have not been proposed / were not established through Area51?


Why is the dot product of two vectors defined the way in which it is?

Most people who’ve sat through any lesson involving vectors will know about the vector dot product     If $\displaystyle \mathbf p=\left[{v_1\atop v_2}\right]$ and $\displaystyle \mathbf q=\left[{w_1\atop w_2}\right]$, then $$\mathbf p \cdot \mathbf q=v_1w_1+v_2w_2$$   Obviously this is the special case where the vectors lie in the two dimensional plane, and this formula does extend to $n$ dimensions, my typesetting abilities just aren’t advanced enough to know how to represent such vectors. In any case, I’m just wondering, so that I don’t go through the rest of any future linear algebra courses blind, why do we define the dot product of vectors in this way? Instead of, for example, multiplying each component of one vector by the corresponding component of a second vector to produce a third vector, whose components are these products?  Any input is appreciated, thank you.


I failed . The original post is . I don't think this audit is good, because the question is clearly "too broad" and should be closed as such, and remain closed as such.   No harm is done, but I know that the posts that get put into audits are automated, here is a case where the automated process failed.  edit:  I also just failed  (). Clearly this should be closed as off-topic because it is about "general computing hardware and software".  I think there are probably a few problems with the reopen audits. Until they are fixed I am going to stop reviewing in that queue - because I fear the auto-ban might get me.  The point of my post (as it seems unclear to some):  I think these specific audits are on bad posts, and I think they should be removed from the selection of audits for this queue.


I understand why C requires a main function to begin the execution of a program, but of the now three books I've read entirely or in portion, none has explained why programs begin by declaring main as int, or with an argument of void:  int main(void)  can someone tell me what the purpose of this is?


I'm running GNOME 3.18 and I would like to reduce the title bar height. How could I do it?


My email server is classed as a spammer by hotmail

I created an email server hosted at IP 65.75.241.26 with domain www.softmail.me using which I can send and receive emails from all users and I don't have problem with any other except hotmail. That my emails are moving to Junk bin of hotmail. How to overcome this issue?


There {is/are} a car and a bicycle in the yard

Which of these sentences is correct? and why?     There is a car and a bicycle in the yard.      There are a car and a bicycle in the yard.   Which of these should be used in an academic essay?


When should I consider a 2 socket motherboard for Server?

We are buying a new server and the idea of dual socket motherboard comes up. Is 2 socket motherboard worth the price and hassle for an application that hosts a couple of websites and databases for a 100+ employee company? Site is Intra only with no www access.  I am more inclined towards a single CPU motherboard (less cost, low power consumption, easy configuration). As a side question, is a two dual-core CPU "much" better than a single quadcore CPU. The emphasis is on much.  -- Edit: My question is different from the suggested duplicate as I have focused it on single CPU vs two CPU for an Application or Server. This can be a typical scenario for newbie into the world of Servers and would benefit many!


Is there an established suffix like -phobia that expresses dislike but not fear?

These days there are a host of words constructed with -phobia that express dislike towards a class of people or things. As far as I understand, in common parlance, -phobia technically encompasses any dislike, whether fearful or not. However, in spite of this it has acquired certain connotations:   Clinical phobias have captured the lay peoples' imagination, and armchair psychiatrists have grown fond of over-diagnosing "phobias" on trivial grounds (eg. one who prefers taking the bus becomes "car-phobic", someone who orders a veggie burger is "meat-phobic", someone who finds cell phones impractical is "technophobic" and so on), whether such phobias are even recognized by the mental health community or not. Not all dislike is grounded in fear. For instance, one may dislike wearing cumbersome clothes not because he is terrified of becoming enveloped in them, but simply because they are not very comfortable. An occasional rhetorical tactic is to attack an opponent's dislike of a thing by suggesting this dislike is grounded in irrational fear instead of arising from logical conclusion. A person on the receiving end of this, by the mere act of using the word, is implicitly submitting to this attack, making even sound arguments for the alleged "phobia" sound self-defeating.   Because of this, I feel like there is a gap in vocabulary in certain cases when one wishes to describe "mere dislike" of a thing without necessarily fear of that thing.  Is there a suffix that can, in analogy to -phobia, be used to express such "mere dislike", but unlike -phobia, not carrying any connotation of fear?


How to divide string like this into items in Python

Here is the string:  format db "this is string a", 0, 0Ah   And I am trying to split it into this:  format db "this is string a" 0 0Ah   Is there any way can do this in python 2.7?  Thank you!


Is there a way to sort questions I have starred and find interesting?

Recently, I have been finding a lot of cool questions on Stack Overflow. I am very into Ruby, Java and JavaScript, but after only recently finding many cool questions I have found that the things I have starred as favorites are kind of just randomly ordered. This of course becomes especially annoying if you start starring tons of questions.  It would be nice if there was a way that I can have a column or something like that where I can put the cool questions I found on Ruby. Then another for Java etc. Of course there are some questions on SO that are not so much language specific, but it would be nice to have a way to organize this so that later when I want to see a specific cool question from Ruby I can already filter the Java questions out. Right now I just put all these links into an Excel file and have some headers.


My beautiful enzyme avatar is hosted on Gravatar, and it doesn't load on , and generally SE pages I have open.  Can someone take a look? I have Chrome version Version 53.0.2785.143 m and it seems to throw a 502 error (Bad Gateway). Others are experiencing this issue as well.


I'm completely new to Python, I want to download a file by sending a request to the server. When I type it into my browser, I see the CSV file is downloaded, but when I try sending a get request it does not return anything. for example:   import urllib2 response = urllib2.urlopen('https://publicwww.com/websites/%22google.com%22/?export=csv') data = response.read() print 'data: ',  data   It does not show anything, how can I handle that? When I search on the web, all the questions are about how to send a get request. I can send the get request, but I have no idea of how the file can be downloaded as it is not in the response of the request.  I do not have any idea of how to find a solution for that.


This is an easy question, but it's super frustrating for someone who is not using html for ages. My html table can be seen at the following:  with below html:

         Account status:	         Portfolios invested:	         Date joined:	         MangoPay status:	         NorthRow status:	         Investor type:

         status	         Number of portfolios	         17 Feb, 2019	         Approved	         Approved	         Inexperienced

         Suspend user	         Member for 1 y, 10m	         Change

  Which will give me tables without spaces. How to achieved something similar to this:


Can we treat $\psi^{c}$ as a field independent from $\psi$?

When we derive the Dirac equation from the Lagrangian, $$ \mathcal{L}=\overline{\psi}i\gamma^{\mu}\partial_{\mu}\psi-m\overline{\psi}\psi, $$ we assume $\psi$ and $\overline{\psi}=\psi^{*^{T}}\gamma^{0}$ are independent. So when we take the derivative of the Lagrangian with respect to $\overline{\psi}$, we get the Dirac equation  $$ 0=\partial_{\mu}\frac{\partial\mathcal{L}}{\partial\left(\partial_{\mu}\overline{\psi}\right)}=\frac{\partial\mathcal{L}}{\partial\overline{\psi}}=\left(i\gamma^{\mu}\partial_{\mu}-m\right)\psi. $$  Now if we include a term with charge conjugation, $\psi^{c}=-i\gamma^{2}\psi^{*}$, into the Lagrangian (like $\Delta\mathcal{L}=\overline{\psi}\psi^{c}$), does this $\psi^c$ depend on $\overline{\psi}$ or $\psi$? Why or why not?  If $\psi^{c}$ depends on $\psi$, why wouldn't the reason that $\overline{\psi}$ and $\psi$ are independent apply for $\psi^{c}$ and $\psi$?  If $\psi^{c}$ depends on $\overline{\psi}$, how should we take derivative of $\Delta\mathcal{L}$ with respect to $\overline{\psi}$?


Assume I have written two MATLAB functions foo.m and bar.m   I want to know if foo.m calls bar.m  I tried using depfun and listing dependencies and checking if bar is a member. It didn't work.  It seems depfun only returns builtin functions.  Is there a way around this when bar.m is not a built in function?


is "calc" usable on left and right property in CSS?

I tried to use left:calc(width:/2); but it didn't work. is there any way to use "calc" to controll the left and right css properties? I also tried using webkit, but it didn't work.


I have a windows 2008 r2 server on my companies network which is locked down and only allows certain ports through for specific ip addresses. so a simple tracert will not work for what I need since it does not allow for specifying a port.  is there any applications out there that will provide similar results as tracert but allow you to specify port?  I am being told that the issue I am experiencing is outside of our network when I am almost certain it is inside our network but only way to prove it is with a trace to show where the packets are being dropped at.


make error while compiling foreign application

I try to compile a program called ip sla responder (). i copied everything into a temp directory. root@srvmwips01:/tmp/ip-sla-responder-master# ls -l total 128 -rw-r--r-- 1 ipsla ipsla  1072 Nov  9  2018 LICENSE -rw-r--r-- 1 ipsla ipsla   641 Nov  9  2018 Makefile -rw-r--r-- 1 ipsla ipsla  3143 Nov  9  2018 README.md -rw-r--r-- 1 ipsla ipsla  2421 Nov  9  2018 arp.c -rw-r--r-- 1 ipsla ipsla  8312 Nov  9  2018 cisco.c -rw-r--r-- 1 ipsla ipsla  1946 Nov  9  2018 ether.c -rw-r--r-- 1 ipsla ipsla  3229 Nov  9  2018 icmp4.c -rw-r--r-- 1 ipsla ipsla  2320 Nov  9  2018 icmp6.c -rw-r--r-- 1 ipsla ipsla  2413 Nov  9  2018 ip.c -rw-r--r-- 1 ipsla ipsla  2368 Nov  9  2018 ip6.c -rw-r--r-- 1 ipsla ipsla  3506 Nov  9  2018 junos.c -rw-r--r-- 1 ipsla ipsla  9323 Nov  9  2018 main.c -rw-r--r-- 1 ipsla ipsla  2587 Nov  9  2018 pak.c -rw-r--r-- 1 ipsla ipsla   487 Nov  9  2018 responder.conf.sample -rw-r--r-- 1 ipsla ipsla  4743 Nov  9  2018 responder.h -rw-r--r-- 1 ipsla ipsla 33922 Nov  9  2018 test-main.c -rw-r--r-- 1 ipsla ipsla  1920 Nov  9  2018 udp4.c -rw-r--r-- 1 ipsla ipsla  1849 Nov  9  2018 udp6.c -rw-r--r-- 1 ipsla ipsla  3020 Nov  9  2018 utils.c  But when i want to compile this, i get an error message: root@srvmwips01:/# cd /tmp/ip-sla-responder-master/ root@srvmwips01:/tmp/ip-sla-responder-master# make CC=gcc gcc -W -Wall -Wno-unused -Wno-unused-parameter -ggdb -O3 -DCONFIGFILE="\"/etc/responder.conf\"" -c -o utils.o utils.c /bin/sh: 1: gcc: not found make: *** [Makefile:27: utils.o] Error 127  I installed a fresh ubuntu LTS 20.04 but it doesnt seem to work. I installed followin tools in order to compile: root@srvmwips01:/# apt install make root@srvmwips01:/# apt install libpcap-dev  I already tried chown and chmod to make sure there is no permission problem. The manual says that i need some more things in order for the compile to work:  It needs pcap(3) interface on kernel and AF_PACKET. It also requires librt and libpcap.  But these packages are not available from apt install (anymore?). how do i get them? The libpcap i could find as a dev version. Not sure if this is the same, though. I read, that there is a prerequisit check command, that loads all the necessary modules from the apt store, but this only works for applications hosted up there. I downloaded my appliacation via github. I searched the site  to find the libraries, but some searches come back with no results while others come back with a boat load of entries.


SanDisk 32GB Flash Drive now a 14MB Flash drive

I have a 32GB Sandisk Cruzer Flash drive when I connected it to my PC it read 14MB. What went wrong and How can I fix it?


When Yoda speaks, he often uses a distinctive speech pattern that differs from other characters in the Star Wars universe:  Take you to him, I will. The dark side of the Force are they. So certain are you.  Always with you it cannot be done.  Hear you nothing that I say? The very Republic is threatened, if involved the Sith are.  As anyone who’s had to read my incessant posts here will know, I’m not so many good with word rule laws. But: are there consistent grammatical rules used to construct Yoda’s distinctive speech patterns? (And for bonus points, just in case this is a thing, do they seem to shift throughout the films? Does, for example, his speech become more “Yoda-ish” in the prequels, as compared to Empire and Jedi?)


There is often information “hidden” in the data that is not readily evident.  What does it mean by "readily evident"?


Setting bounty from Stack Exchange Android app

I can easily set "bounty" from any Stack Exchange site as there is a option under every question. But in the android app, there is no option to add bounty! Is this feature missing? Or my eyes missed the option?


10 servers to administer and I'm a history major

Through reasons that don't warrant exhaustive discussion, I find myself in charge of 10 servers:   A domain controller-~500 hosts/~350 users IIS web server-This is where we make our money SQL server-The crown jewels Exchange server Linux box for data entry AV server Backup server A few others tossed around   The company where I work believes everybody is replaceable and therefore believes they can pay a minimum wage for any position. The IT manager and Sysadmin quit recently and I think I was the only person who did not take a big step backward when the call went out for volunteers. This also explains why someone with my background is in this position. That is the reality, as much as I wish it otherwise.  What are the things I should be doing to keep those systems running? There is no written procedure left behind and I crammed the A+ and Network+ certs in the last two months but that leaves me with some theory and no practical experience.  I am in the process of teaching myself powershell but from here to there is a long way. I have no scripting or programming experience.  What tasks should I be performing? What practices should I implement?  I understand I am probably hosed but a lifeline to get me through would be helpful.


Any way to fix a stuck pixel in an LCD screen?

I have an older LCD monitor, and it has recently developed a single green pixel that's always on.  It's not really annoying if the screen is bright, but it's very noticeable when there's something dark on the screen.  Is there any way to fix this?


I found this sentence in the book Artemis Fowl 2: The Arctic Incident:     Whether he escaped or not, the LAPD would be visiting evety dwarf in the city come sunrise.   I guess it means "when sunrise comes," but is it correct? And is it common usage?  PS: I'm a non-native speaker who never saw this kind of phrase before, and when I Googled “come sunrise” no explanation turned up.


Kinematics with non constant acceleration

A particle experiences an acceleration described by  $$ a=kx^{-2} $$ where x is the displacement from the origin and k is an arbitrary constant.  To what value does the velocity v of the particle converge to as x approaches infinity if the particle starts at some point x0?  If I approach this problem with energy, then $$ W = \int F \mathrm{d}x $$ $$  = \int_{x_0}^\infty mkx^{-2} \mathrm{d}x $$ $$  = mk(-\infty^{-1}+{x_0}^{-1}) $$ $$ W = K = mk{x_0}^{-1} $$ $$ \frac{1}{2}mv^2 = mk{x_0}^{-1} $$ $$ v = \sqrt{2k{x_0}^{-1}} $$  How would I solve this problem with pure kinematics? (there appears to be some sort of cyclical dependency where acceleration affects velocity, velocity affects displacement, and displacement affects acceleration)  Likewise, two particles experience accelerations described by $$ a_1=k_1x^{-2} $$ $$and $$ $$ a_2=-k_2x^{-2} $$ where x is the distance between the two particles  What two velocities do the particles reach as x approaches infinity if the two particles are initially separated by some x0?


If two things say "You may pay (cost)" and I pay that cost once, do both things happen?

If I own two s and play a , both Flameshadow Conjurings would go on the stack. Once I choose to pay 1 red mana, do I get two copies or one? Since the rules text says "if you do" it seems like both cards would see I did and I'd get two copies.


Prove that a set consisting of a sequence and its limit point is closed

Can someone please check whether the following simple proof is "mathematical"? Is it correct, complete, rigid? Can it be simplified? I'm a complete autodidact so I'm looking for someone to give me feedback to gain experience in writing proofs... This is also my first question on MSE.  The proposition:  Let $(X, d)$ be a metric space and $x_n \to x$ where each $x_n \in X$ and $x \in X$. Let $A$ be the subset of $X$ which consists of $x$ and all of the points $x_n$. Prove that $A$ is closed in $(X, d)$.  My tentative to prove this:  We first show that all infinite sequences in $A$ converge to $x$: Let $y \in X$, $y \ne x$. Then there is some open ball $B_\epsilon(x)$ with $\epsilon < d(x,y)$ containing all but finitely many elements of $A$. As $y \notin B_\epsilon(x)$ there can be no infinite sequence in $A$ converging to $y$. Consequently all infinite series in $A$ converge to a point in $A$ which therefore must be a closed set.  Edited: As rightly pointed out in the comments, I should have written in the first sentence "...sequences with infinitely many distinct terms and which converge to some point of $X$" and the last sentence should be "Consequently all infinite sequences...".


HI guys I have an annoying problem. I wanted to replace windows with Ubuntu on my labtop. I used my USB to install ubuntu successfully but now when I reboot it without the USB it says no boot able device or something like that. I used the boot repair software to try to fix it but it didn't work.  is the url I was told to write down to help me fix it. Can someone please help me      ubuntu@ubuntu:~$ sudo lsblk -o name,mountpoint,label,size,fstype;sudo parted -l NAME         MOUNTPOINT                                LABEL        SIZE FSTYPE sda                                                                29.6G  └─sda1       /cdrom                                    UBUNTU 16_0 29.6G vfat loop0        /rofs                                                  1.4G squashf mmcblk0rpmb                                                           4M  mmcblk0boot0                                                          4M  mmcblk0boot1                                                          4M  mmcblk0                                                            29.1G  ├─mmcblk0p1                                                         512M vfat ├─mmcblk0p2  /media/ubuntu/1cbc9f59-3734-4d9c-92f2-177             26.7G ext4 └─mmcblk0p3                                                         1.9G swap Model: PNY USB 3.0 FD (scsi) Disk /dev/sda: 31.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:   Number  Start   End     Size    Type     File system  Flags  1      1049kB  31.7GB  31.7GB  primary  fat32        boot, lba   Error: /dev/mmcblk0rpmb: unrecognised disk label Warning: Error fsyncing/closing /dev/mmcblk0rpmb: Input/output error Retry/Ignore?


How do I find the common ratio of a geometric sequence?

A geometric sequence has its first term equal to $12$ and its fourth term equal to $-96$.   How do I find the common ratio? And find the sum of the first $14$ terms


How to test API integration in marketing cloud?

I have created a API package under Setup -> Installed Packages.   I have created API Integration component for the package .I have the below basic details for the component.   Client Id Client Secret Authentication Base URI REST Base URI   I want to test the created API package using any tool( Postman or other API testing tools).  I was able to find API integration testing links for SFDC but not for the Marketing Cloud.   What is the redirect URL to be used in the API package? I have created an API integration package of Integration type ( Web APP)   In web app properties, what is the redirect URL to be provided?


Show that every open set A in a metric space (X,d) is the union of closed sets.  I am beyond confused for this question. I thought union of closed sets are closed


Can a decision in a node of a decision tree be based on comparison between 2 columns of the dataset?

Assume the features in the dataframe are columns - A,B,C and my target is Y  Can my decision tree have a decision node which looks for say, if A>B then true else false?


How do I remove log out, reboot, and shut down from GNOME shell application list?

I’m new to Ubuntu. I don't know where the log out, reboot and shut down icons in my application list came from. I just need to remove this from here.


Creating slippy map from large shapefiles?

I am trying to create a map of the UK based on a number of open data sources (Ordnance Survey Open Data, OSM, some CSV files etc).  My end goal is to create a map of the whole of the UK that I can view in OruxMaps or some other similar slippymap style offline client.  I am really struggling to work out the best way to do it though.  I have tried importing the data into QGIS, styling it and then using QGIS Server, but I can't figure out a good way of creating the slippy map from there.  I have tried TileMill, but it can't cope with the 2.5Gb contour .shp file.  I have looked around at various other things too, but just cannot work out the best way of doing this.  Any thoughts?


trying to generate random passwords with "-" in between

import random s = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?" passlen = 4 p = "".join(random.sample(s,passlen)) p2 = "".join(random.sample(s,passlen)) print(p,"-",p2)   This is my code. But when i run it get something like this: RJ9e - zN0P I do not need the spaces in between. What am i missing here? Thanks!


Why does NOT IN condition on SQL Server "break" when list includes a NULL value?

Take these two simple statements:  SELECT '1 IS NOT IN THE LIST' WHERE 1 NOT IN (2, 3, 4) SELECT '1 IS NOT IN THE LIST' WHERE 1 NOT IN (NULL, 2, 3, 4)   The results you will get are:    Basically, as soon as you add NULL to the list, the NOT IN condition always returns FALSE, implying that (in this case) 1 = NULL  Can someone explain why this happens?  Following on from that, why does this statement (the opposite of the NOT IN that returned FALSE) not return TRUE?  SELECT '1 IS IN THE LIST' WHERE 1 IN (NULL, 2, 3, 4)


The system is runnng in low-graphics mode(Ubuntu 14.04)

I installed Ubuntu 14.04 in my new HP-15-Pavillion E026ax laptop with configuration AMD A10 processor with dual radeon graphics, when I starts the Ubuntu os it always says The system is running in low-graphics mode and also shows in console [drm:radeon_acpi_init] ERROR Cannot find a backlight controller. Please help me if possible. I m fully fed up with Ubuntu now. I do all of ur solutions on askubuntu and Ubuntu forums. I also installed Ubuntu 14.04 thrice in a day... please do needful as soon as possible. sudo apt-get install fgrlx..but this command is not a solution for me...


I am trying to read 7M data from a file but it is failing. When I googled,I found that there is no limit for reading data.  My code given below is failing with segmentation fault.  char *buf = malloc(7008991); FILE *fp = fopen("35mb.txt", "rb"); long long i = 0; long long j = 0; while(fgets(buf+i, 1024, fp)) {     i+=strlen(buf);     if(i==7008991)break; } printf("read done"); printf("ch=%s\n", buf);   Need some help


Prevent browser from saving page in cache

I'm working on a website with nodejs, express and ejs. The issue is that when an user logouts, he still sees the website as if he was logged in. How can I fix this? I have already tried adding:     <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">     <meta http-equiv="Pragma" content="no-cache">     <meta http-equiv="Expires" content="0">  but the issue persists


Remove indent of paragraph and add line skip with tufte-latex

I'm using tufte-latex and I want paragraphs to have no indent, but a line skip instead. Normally you can achive this with:  \usepackage[parfill]{parskip}   Using tufte-latex this does not work however. So how do I do this?


What is the Vanilla JS meaning of this construction used in Svelte?

The Svelte  presents line  $: doubled = count * 2;   And claims     [..]  It's valid (if unconventional) JavaScript [..]   If it's valid in plain JavaScript, what's the meaning of it?  I tried it in the console and $: tt = 5 seems to assign a value of 5 to tt but does nothing to $. It also seems that I can place other strings at the start like fdf: ddd = 44 and it works the same.  Note: I am NOT asking about the role of this in Svelte but in plain JS without Svelte compiler.


Why is setting a variable before a command legal in bash?

I've just encountered several answers such as to  that use the construct:  while IFS=, read xx yy zz;do     echo $xx $yy $zz done < input_file   where the IFS variable is set before the read command.  I've been reading through the  but can't figure out why this is legal.  I tried  $ x="once upon" y="a time" echo $x $y   from the bash command prompt but got nothing echoed. Can someone point me to where that syntax is defined in the reference that allows the IFS variable to be set in that way? Is it a special case or can I do something similar w/ other variables?


What does * * * * * (five asterisks) in a cron file mean?

The first noncomment line in a legacy crontab file begins with five asterisks:  * * * * * ([a_command]) >/dev/null 2>&1   The authors are gone, so I do not know their intent.  What does all-wildcards mean to (Solaris 8) cron?  The betting here is either run once, run continuously, or run never, which is unfortunately broad.  If you are wondering about the comment line preceding this, it is "Do not delete."  Note: This cron file is working. This question is not a duplicate of a question about broken cron files or cron files which require troubleshooting.


I've been struggling with this all day today. I imagine it's not very hard, but my algebra skills are terrible. So, how can I show that if $m>n$ and $a$ is a positive integer, then $$a^{2^n}+1 \mid a^{2^m}-1.$$ I just can't get a coherent picture of what I'm supposed to do. If this too (see yesterday's question) boils down to the Unique Factorization Theorem, I would be very grateful for any intuition on how to think about this!


Errors from compiling BibTex: \citation, \bibdata, and \bibstyle not found.

I tried to compile the very basic example of biblatex in ShareLaTex from  in Texshop.  I tried to compile first with LaTex and then with BibTex, but when I ran the BibTex, I got three errors as following:   I found no \citation commands---while reading file try2.aux I found no \bibdata command---while reading file try2.aux I found no \bibstyle command---while reading file try2.aux   The try2.tex file is directly copied from the ShareLaTex website:  % The main .tex file: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage{biblatex} \addbibresource{sample.bib}  \begin{document} Let's cite! The Einstein's journal paper \cite{einstein} and the  Dirac's book \cite{dirac} are physics related items.   \printbibliography  \end{document}   The following is the sample.bib file, which is also a copy from the ShareLatex website:  % The sample.bib file: @article{einstein, author =       "Albert Einstein", title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})              [{On} the electrodynamics of moving bodies]", journal =      "Annalen der Physik", volume =       "322", number =       "10", pages =        "891--921", year =         "1905", DOI =          "http://dx.doi.org/10.1002/andp.19053221004", keywords =     "physics" }  @book{dirac, title={The Principles of Quantum Mechanics}, author={Paul Adrien Maurice Dirac}, isbn={9780198520115}, series={International series of monographs on physics}, year={1981}, publisher={Clarendon Press}, keywords = {physics} }   I find ShareLaTex useful but sometimes cannot work offline, so I also use TexShop as a complimentary.  I know that there must be difference between ShareLatex and TexShop, but I am not sure how I should modify this to make it compile in TexShop. Or, are there any alternative ways to make it work?  Thank you so much!


Should I correct grammatically incorrect quotes when using them in a paper?

As a researcher, I often need to quote from the previous authors. Sometimes, it happens that there are spelling mistakes in the part I want to quote. I treat this as a human error and write the correct spelling. However, I am unsure how should I handle if there is some (relatively) serious error? For example, I found the word choosed (instead of chose). Should I simply copy with the wrong word, or fix it? If I change it, the previous authors (from whom I took the quote) may be unhappy. If I do not change it, the reviewers (who would be reviewing my paper) may be unhappy by seeing my lack of care while writing a paper. This question is different from , as I am confused whether or not to correct. Since I am writing a formal paper, I cannot use sic. Originally asked here


Subjunctive or indicative: "was" or "were" after he

I have a question regarding which it should be:     He acted as if he were owner of the place   or     He acted as if he was owner of the place.   Which is correct?