Programmatically retrieve SQL Server stored procedure source that is identical to the source returned by the SQL Server Management Studio gui?

Any pointers on how I can programmatically get exactly the identical stored procedure source from SQL Server 2005, as when I right-click on that stored procedure in SQL Server Management Studio and select modify?  I'm trying using SMO, but there are some textual differences.  The procedure always has CREATE, not ALTER, and there are some differences in the header, such as missing GOs in the version I'm getting programmatically.  I can fix these up, but perhaps there is a better way?  Again, I'm in SQL Server 2005, using SMSE.  Using SMO via Visual Studio 8 2008.  Update:  Gotten some answers that tell the basics of how to retrieve the stored procedure.  What I'm looking for is retrieving the text identical (or nearly identical) to what the GUI generates.    Example:  for sp_mysp, right-click in Management Studio, select modify.  This generates:      USE [MY_DB]       GO       /****** Object:  StoredProcedure [dbo].[sp_mysp]    Script Date: 01/21/2009 17:43:18 ******/       SET ANSI_NULLS ON       GO       SET QUOTED_IDENTIFIER ON       GO       -- =============================================     -- Author:           -- Create date:      -- Description:      -- =============================================     ALTER PROCEDURE [dbo].[sp_mysp]   I'd like to programmatically get the same thing (notice the GOs in the header, and the fact that it's an ALTER PROCEDURE.  Ideally, I'd like to get this with minimal programmatic fixing up of the source retrieved.  I'd be happy to only get something that differed in the Script Date details . . .


Where can I find information about the points awarded for each action on Stackoverflow?

I would like to see a table in the FAQ section of SO detailing the points awarded for each action. Is this possible? Is it available somewhere or this is hidden for a purpose?


Null Pointer Exception on String Despite Checks

I am trying to make an implementation of a Binary Tree for a Words each of a which have a pattern (ex hello - pattern is ABCCD)  I keep getting a null pointer exception on the line it states         while(pos.getPattern() != null || a){   I dont understand why- there are checks in place. Also when I print pos.getPattern()  - I get a string not a null value  I could really use some help  public void AddWord(String word) {     TreeNode pos = root;     boolean a = true;     String pat = PatternMaker.MakePattern(word);     while(pos.getPattern() != null || a){          if (pos.getPattern().equals(pat)) {             WordList list = pos.getList();             list.insertWord(word);             pos.setList(list);             a = true;         } else if (pat.compareTo(pos.getPattern()) > 0) {             pos = pos.getRight();         } else {             pos= pos.getLeft();          }     }     if(pos ==null){         pos = new TreeNode(word, pat);     } }


Is ANOVA valid for binomial data?  I have 7 binomial groups and I want to test whether the distributions of all of the groups are equal or whether the distribution of the first group is significantly different than the distribution of groups 2-7.  What tests would accomplish this? I was thinking of just combining groups 2-7 and then performing a chi-square test on group 1 vs groups 2-7. Is this valid?  Thank you!


I want to prove basic results of cyclotomic polynomials over $\mathbb{Q}$.  $(1)\ \Phi_n(0)=1$ for all $n>1$. $(2)\ \Phi_{2n}(x)=\Phi_n(-x)$ for all odd numbers $n>1$.  I want use this result as definition: For every positive integer $n$, $$ x^{n}-1=\prod_{d|n} \Phi_{d}(x)$$ where $d$ runs over all positive divisors of $n$.


Show that if $AB = BA$, then $\exp(A) \exp(B) = \exp(B) \exp(A)$

Show that if $AB = BA$, then  $$\exp(A) \exp(B) = \exp(B) \exp(A)$$  here is what i got so far: $$\begin{align}\exp(A) \exp(B) &= (I + A + {\dfrac{1}{2}} A^2 + {\dfrac{1}{6}}A^3 + \ldots)(I + B + {\frac{1}{2}}B^2 + {\frac{1}{6}}B^3 + \ldots )\\ &= I + (A + B) + {\frac{1}{2}}(A^2 + 2AB + B^2) + {\frac{1}{6}}(A^3 + 3A^2 B + 3AB^2  +  B^3 ) + \ldots\\  &= I + (A + B) + {\frac{1}{2}}(A + B)^2 + {\frac{1}{6}}(A + B)^3 + \ldots \end{align}$$  am i going the right direction so far...if so, how to get to show the rest until $\exp(B)\exp(A)$.  Thank you


Let $\phi\colon R \to R'$ be a ring homomorphism. Prove that if $R$ is a field then either $\phi$ is an isomorphism or $\phi(r) = 0$ for all $r \in R$.   I am stuck on this problem and don't know where to begin. I feel like I'm very weak in writing proofs.


Can I extract data from my icloud back up to view on pc?  I have changed phones but have lots texts etc on new iPhone. Can I view my icloud back up data as I have done texts I would really like to keep  Thanks


How do I beat myself after taking the X Potion?

When I use the X Potion from any level, I get teleported to an area where I fight myself. But, I can't seem to win!  Whenever I try to heal, the other me heals as well, so I keep dying before I can kill myself! How can I win?


on opening terminal it shows on top  $: command not found $: command not found $: command not found yogesh@yogesh-WNB8PHF4710C-0030:~$   and my .bashrc file has  # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples  # If not running interactively, don't do anything case $- in     *i*) ;;       *) return;; esac  # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth  # append to the history file, don't overwrite it shopt -s histappend  # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000  # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize  # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar  # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"  # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then     debian_chroot=$(cat /etc/debian_chroot) fi  # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in     xterm-color) color_prompt=yes;; esac  # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes  if [ -n "$force_color_prompt" ]; then     if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then     # We have color support; assume it's compliant with Ecma-48     # (ISO/IEC-6429). (Lack of such support is extremely rare, and such     # a case would tend to support setf rather than setaf.)     color_prompt=yes     else     color_prompt=     fi fi  if [ "$color_prompt" = yes ]; then     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt  # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*)     PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"     ;; *)     ;; esac  # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"     alias ls='ls --color=auto'     #alias dir='dir --color=auto'     #alias vdir='vdir --color=auto'      alias grep='grep --color=auto'     alias fgrep='fgrep --color=auto'     alias egrep='egrep --color=auto' fi  # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF'  # Add an "alert" alias for long running commands.  Use like so: #   sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'  # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package.  if [ -f ~/.bash_aliases ]; then     . ~/.bash_aliases fi  # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if ! shopt -oq posix; then   if [ -f /usr/share/bash-completion/bash_completion ]; then     . /usr/share/bash-completion/bash_completion   elif [ -f /etc/bash_completion ]; then     . /etc/bash_completion   fi fi


Gravitational Time Dilation Near Center of Gravity

Stretch your imagination a bit and imagine an almost empty universe with nothing in it but a very, very large asteroid (or an asteroid in our universe but in an almost empty patch so it's not affected too much by other celestial bodies).  I travel to this asteroid and I use some powerful drill and dig a tunnel to the center of mass of this asteroid.  Far away in another empty patch of the universe an atomic clock ticks exactly one second. Consider this the "proper" time interval.  The equation to calculate gravitational time dilation under the effect of a non-rotating object is  $$ \Delta t_{ 2 }= \Delta t_{ 1 } \sqrt { 1-\frac { 2Gm }{ rc^{ 2 } }  }   = \Delta t_{ 1 }  \sqrt { 1-\frac { r_{ s } }{ r }  } $$  where $r_s$ is the Schwarzschild radius, $r$ is my distance from the center of the center of mass, $\Delta t_2$ is the time interval experienced by the observer and $\Delta t_1$ is the proper time interval.  In order to try to solve the time dilation using this equation while I sit exactly on the center of mass I have to divide by 0 because my distance from the center is 0.  Since that would be mathematically undefined, how long has passed relative to an observer at the center of a non-rotating and not very massive object?  I've searched for other questions but they use other equations, consider black holes, talk about the Earth, or have been closed due to poor wording by the OP. My curiosity is what this can tell me about how one would experience time at the center of an asteroid.


how do I find the average velocity and instantaneous velocity?

This is a question from my Calculus book.  I was showed the correct answer but I really need to learn what the process is to achieve the answer.  Here is the question:  If a ball is thrown into the air with a velocity of $40 \frac{ft}{s}$, its height in feet $t$ seconds later is given by $y=40t - 16t^2$ .  Find the average velocity for the time period beginning when $t = 2$ and lasting   (i) 0.5sec   (ii) 0.1sec   (iii) ...


Geoserver WMS SQL VIEW parameters with accents

I'm getting this error when I pass latin words (with accents and "ç") as parameter to a SQL View layer.     Rendering process failed    java.io.IOException   null   Invalid value for parameter NOME_IMOVEL   Look this error on log:     Invalid value for parameter NOME_IMOVEL   java.lang.IllegalArgumentException: Value ARAÃUAI does not match ^[\w\d\sáàéíóúÁÀÉÍÓÚçÇ]+$      I sent "NOME_IMOVEL:ARAÇUAI".  Did anyone had this issue before? Is there any workaround?


hard disk space lost when I installed Ubuntu 14.04 and also lost all partition and data please help me out. i was installing Ubuntu 14.04 accidentally LOST ALL DATA & drive partitions. i have not try any software for recovery so please tell me how can i recovery all partitions back.


How can I browse custom tag filters created by other users?

I am a heavy user of custom tag filters through stackexchange.com.  For all of my custom filters, I am (unsurprisingly) the only follower.  However, custom filters are public, and I can browse/view/follow filters created by others by manually constructing a relevant URI and guessing a filter ID:        etc...  but that's not a very efficient way of searching.  Are there any other ways of browsing custom tag filters, apart from manually constructing an URI? How can I find what custom stackexchange.com tag filters are popular?


How did I get my Editor badge when I shouldn't have?

According to :     What is NOT included         edits to your own posts      I am not supposed to get the Editor badge after editing my own post. However, recently I faced an issue with my post, and edited it. It was my first ever post (on that site), and my first ever edit. Now, for some reason, this appears on my reputation feed:    Now, this seems weird in two ways:   I shouldn't have received this, as it was my own post. I don't even see the badge everywhere. On some pages, on certain times, it still shows me 1 bronze medal (whereas the Editor one would be my second one).   What is causing this issue?


Is there a way to move a vertex along an axis for it to then stop when it reaches the angled edge and snap to it. When I try to using the snap tool, the vertex just goes past or does't reach the edge as my cursor slides up and down the angled edge.


Validation using two Picklist Fields in 2 objects

I'm trying to create a validation rule formula in Salesforce, that uses two picklist fields which have the same values : p1, p2, p3.  One of the picklists is on the account object and the other one on the contact object.  If the selected value on the contact record is p1 and on the contact's account record is p2 then I would like to throw an error.  Any help would be greatly appreciated.


Prove that there exists at least one root of $g$ between any two roots of $f$

Given that $$f(x)= 1 - e^x\sin(x)$$ $$g(x)= 1 + e^x\cos(x)$$  Using Rolle's theorem,  prove that there exists at least one root of $g$ between any two roots of $f$. Attempt so far:   $f'(x) = -e^x(\sin(x)+\cos(x))= f(x)-g(x)$  Since $f(x)$ and $g(x)$ are continuous and differentiable, Rolle's theorem is applicable. Let $a$ and $b$ be any $2$ roots of $f$. Then by Rolle's theorem, there exists a $c$ in $(a,b)$ such that $f'(c) =0$. Therefore,$$f'(c)=0=f(c)-g(c)$$ $$\implies f(c)=g(c)$$  That is where I got stuck and I don't know how to proceed. Am I on the right track? What else should I be doing? Am I at all on the right track?


Conditional calculation in QGIS Raster Calculator

Is it possible in QGIS either directly or via plugins to do a raster calculation including an if statement?  e.g., if raster1 > 0.3, then raster 1 * raster 2, else raster1 x raster3... something like that?


If $a\mid b$ and $b\mid a$, $a,b\in R$, show that $\exists w \in R^\times$ with $b=wa$

$R$ - commutative Ring, and $a$  non-zero-divisor  $R^x$ - multiplicative Monoid? (it's called Einheitsgruppe in German, maybe unitary group?)   I started by stating, that if $a\mid b$ and $b\mid a \rightarrow a=b$.  So for $a\mid b$, $\exists x\in R$ with $xa=b$ and for $b\mid a,\exists y\in R$ with $yb=a$  Now: $b=xa=xyb=wb$, with $w=xy$.  $\stackrel{a=b}{\rightarrow} b=wa$  Now the problem that I think I have with my proof, is that R is not a given Ring. For example $a=b$ wouldn't work in $\mathbb{Z}$. Is there any other way to do the proof?


How to rigorously find $\lim_{n \to \infty} \sqrt[n]{n!}$?

Let $x_n \colon= \sqrt[n]{n!} $ for all $n \in \mathbb{N}$.   Then how to determine rigorously whether the sequence $\left( x_n \right)_{n \in \mathbb{N} }$ converges or diverges?   And, how to find $\lim_{n \to \infty} x_n$, rigorously?  By rigorously I mean using the same machinery as has been developed by Rudin until Chap. 3, where he discusses sequences.   My Attempt:      We note that, for all $n \in \mathbb{N}$ such that $n > 1$, we have   $$ 1 \leq \left( x_n \right)^n \leq n^{n-1}, $$   and so    $$ 1 \leq x_n \leq n^{ (n-1)/n } = \frac{ n }{\sqrt[n]{n} }. $$   However, although    $$ \lim_{n \to \infty} \sqrt[n]{n} = 1, $$   we also have    $$ \lim_{n \to \infty} n = +\infty. $$   Thus the squeeze theorem is not applicable.    Or, can we find some majorizing sequence converging to $1$?  Is this sequence monotonic?


I have a question about the installation on Ubuntu. I'm actually running Centos 7 on my laptop, but i need some things only available on Ubuntu. So i've created a bootable USB with my Ubuntu on it, i start my PC over Boot Device but when I choose the USB Key, i came back to grub to choose Centos ... Do I miss somethings ? I hope my English is not to bad and comprehensible ^^"" Thanks a lot for your help and Time  Pixi


Linguex numbers turning into dot over dash symbols

I'm experiencing problems with Linguex. For some reason, weird symbols are appearing in some of my examples. The relevant part of the code is given below and the output is in the screenshot. Thank you in advance for your help!  \documentclass[11pt;a4paper]{article}  \usepackage{linguex} \usepackage{apacite} \usepackage{latexsym} %symbols \usepackage{comment} \usepackage{stmaryrd} %symbols \usepackage{amssymb} %symbols \usepackage{qtree} \usepackage{amsmath} %symbols \usepackage{url}  \usepackage[normalem]{ulem}%for \sout  \usepackage{float}%to keep tables in their place   \usepackage{color}%for changing the text colour   \usepackage{tikz} %for circles around symbols and other fancy stuff   \usepackage[T1]{fontenc}%for Scandinavian letters   \newcommand*\circled[1]{\tikz[baseline=(char.base)]{    \node[shape=circle,draw,inner sep=1pt] (char) {#1};}}%circle around symbols     \newcommand{\sem[1]}{$\llbracket$#1$\rrbracket$}%sembrackets       \usepackage{tree-dvips}%for arrows in trees  \begin{document}  \ex. $\neg$ [$\Box$ [$\exists x$ [$x$ is a merchant and Petronella marries $x$]]]\label{51220173}  \ex. \label{51220175}\a. Surface scope: what Petronella wants to do is to marry no merchant\\     $\Box > \neg \exists$     \b. Inverse scope: there is no specific merchant Petronella wants to marry\\     $\neg\exists > \Box$\label{51220175b}     \c. Split scope: Petronella does not want to marry a merchant\\     $\neg > \Box > \exists$  \end{document}


After removing any part the rest can be split evenly. Consequences?

Let $S$ be a finite collection of real numbers (not necessarily distinct). If any element of $S$ is removed then the remaining real numbers can be divided into two collections with same size and same sum ; then is it true that all elements of $S$ are equal ?  (I know the result is true if the "reals" are replaced by "integers".)


I'm pretty new to java. I'm getting java.lang.NullPointerException error when trying to run my servlet on the server. Can someone advise what the problem is the way I have called getAllStaff?  static StaffDAO dao = new StaffDAO(); static ArrayList<Staff> staffList = null;  public void doGet(HttpServletRequest request,         HttpServletResponse response)                 throws ServletException, IOException {      staffList = dao.getAllStaff();      request.setAttribute("staff", staffList);


May I know how to handle the source not found error while debugging the java code in Eclipse IDE I got the error - The source attachment does not contain the source for the file URLClassPath.class.


Evaluating $\int_{0}^{2\pi}\frac{1}{4\cos^2 t + 9\sin^2 t} dt$

Evaluating $\displaystyle \int_{0}^{2\pi}\frac{1}{4\cos^2 t + 9\sin^2 t} dt$   Can someone show me a way using Complex Analysis methods? This is what I tried:    Let $C$ be the contour defined by $C(t)= 2\cos t + 3i\sin t$, $0 \leq t \leq 2\pi$.    Considering the integral    $$I= \int_{C}\frac{dz}{z}= 2\pi i$$ by Cauchy's Integral Formula, then also $$I = \int_{C}\frac{\overline{z}}{|z|^2}= \int_{0}^{2\pi}\frac{2\cos t - 3i\sin t}{4\cos^2 t + 9\sin^2 t}\cdot (-2\sin t + 3i\cos t) dt\\ = \int_{0}^{2\pi} \frac{5\sin t\cos t + 6i}{4\cos^2 t+ 9\sin^2 t}dt = 2\pi i.$$ I'm not sure where to go from here.


Best way to implement breadcrumbs on mobile

I would like to know about the use of breadcrumbs on mobile, is it a feasible practice today?


I am level 18 in Pokemon go. I have a 407 CP Squritle and a 188 CP Wartortle.  Which should I evolve to produce a higher level Blastoise?


Noise in JPEG file after processing RAW file in photoshop

Recently i started shooting in RAW after understanding its advantages over JPEG format.   While processing the RAW file there is an option to reduce noise in a captured picture. It works great when i am working on RAW file. But as soon as I save file in JPEG format, noise comes back.  I understand that while converting from RAW to JPEG compression techniques will be applied. But how can i handle this situation (while doing post processing)?


What is the best file extension for an SEO friendly URL?

I'm working for a website to convert the website URL to an SEO friendly URL. I plan to use this:  example.com/category-name/pageid-123-page-name  I looked at some similarly categorized, highly ranked websites. They have the same structure, except for one thing. In one case, the URL format was  example.com/category-name/pageid-123-page-name.html  Another was   example.com/category-name/pageid-123-page-name.php  Now I know the text in URLs help with SEO. Is it more helpful to have a file extension? If yes, which one is better?  Or if my current plan is okay, will it be better with a / at the end?


Direct limit of the finite tensor product of algebras over a commutative ring A.

Can anybody give me an independent proof for the universal property of tensor product for the direct limit $B$ in the picture without using the argument that the tensor product of algebras over a commutative ring is the coproduct.


Limit $\lim_{n\to \infty} \frac{1}{2n} \log{2n\choose n}$

$\lim_{n\to \infty} \frac{1}{2n} \log{2n\choose n}$    I could not approach it beyond these simple steps,    $\lim_{n\to \infty} \frac{1}{2n} \log(\frac{2n!}{(n!)^2})$ $=\lim_{n\to \infty} \frac{1}{2n} [\log(2n)+\cdots +\log(n+1)-\log(n)-\cdots-\log1]$ $=\lim_{n\to \infty} (\log(2n)^{1/2n}+\cdots+\log(n+1)^{1/2n}-\log(n)^{1/2n}-\cdots-\log1^{1/2n})$    Now,I understand that I have to create a sum of limit and produce an integration or use the formula $\lim_{n\to \infty} \log(1+\frac1x)^x=e$ but I cannot do it. Please help!


What are the reputation requirements for privileges on sites, and how do they differ per site?

Formerly Reputation requirements compared. What are the reputation requirements for privileges on the various sites in the network? Also, how do reputation requirements for various privileges compare on different Stack Exchange sites? Specifically, the following types of sites:  Designed sites e.g. Stack Overflow, Ask Ubuntu, Gaming, etc. Public beta and non-designed sites Private beta sites  ...as well as any site-specific differences.


How to generate spherical gradient volume

I have an object which represents an atom. I want to show a spherical gradient where the cloud is intense in the centre. It fades away to the edge.  I tried emission but not getting the desired output.


Creating a custom Ubuntu Server (Minimal Install) ISO which only asks for disk and hostname during installation

I'm in need of creating a custom minimal install iso. When booting this ISO all I need is the user to select what disk to use and hostname. Nothing else, we managed to do this using kickstart pre-script on CentOS but we'd like to know how to do it in Ubuntu? Cloud-Init seems really limited and unfinished. What we'd like it do do on boot from iso:  Ask which HDD to install (We'll configure it to use full HDD so must be able to do that) Ask what hostname to set to the system  While installing it needs to do:  Add 3 users with 3 different password and groups. Add a script to one of the users home directory which will run at login (bash script) where the user can continue the installation (add packages e.t.c.) we already have that script.  Is this possible in Ubuntu's current state?


Which symbol to use for composition of a sequence of functions

I know how to write the composition of two functions: $f\circ g$ but I don't know whether there's a standard symbol for a sequence (similar to $\sum_i{f_i}$, $\prod_i{f_i}$ or $\bigotimes_i{f_i}$, etc.).  How would you write it?  edit: Would you understand $\bigcirc_i{f_i}$ without explanation?


What happened to the Azor Ahai prophecy after S08E03?

I dont really understand the idea of the prophecy anymore.       Arya killed the Night King   so what was the point of the prophecy? I thought Jon or Dany were the Prince That Was Promised. Can anyone explain?


Can names of abilities or spells within a game be trademarked/copyright?

Okay, say I want to create an RPG similar to and takes inspiration from such games as Final Fantasy, The Elder Scrolls, Shin Megami Tensei, Pokemon, etc. and I would like to use familiar names in some cases because the names simply fit from a design perspective (like from anything as mundane-but-aptly-named as "Water" or "Waterfall" to something like "Ultima" or "Souleater"). For the sake of the question I want to make it clear I'm not attempting a parody or the sort (it's going to be its own franchise), just most ability/spell names I can think of tend to come from video games or board games I've played.


File paths not relative to main.tex but relative to subfile

I am looking for a way, if possible, of specifying file paths not relative to the main document but to the subdocument in which they are contained. As background:  I am writing my thesis chapter by chapter. I have written each chapter as an independent document, edited it, and now want to combine all chapters into one document. Each chapter document is structured to have a main.tex which contains the preamble, the \begin{document}, etc. The actual text is contained in a file called toc.tex which contains the section structuring of each chapter and in turn imports the documents containing each section. So main.tex looks something like this:  PREAMBLE \begin{document} \maketitle \tableofcontents \input{toc.tex} \printbibliography \end{document}   each toc.tex looks something like the following:  \section{A} \input{./Content/A.tex} \section{B} \input{./Content/B.tex}   This means that I can compile each chapter individually. My plan was now to compile the overall thesis by using a main_thesis.tex which looks something as follows:  PREAMBLE \begin{document} \maketitle \tableofcontents \input{toc_thesis.tex} \printbibliography \end{document}   where the file toc_thesis.tex looks as follows:  \chapter{Introduction} \input{./chapters/Introduction/toc.tex} \chapter{Body} \input{./chapters/Body/toc.tex}   My folder structure would thus looks along the following lines:  thesis    chapters       Introduction          Content          Figures       Body          Content          Figures   When I now compile main_thesis.tex I get an error message saying File `./Content/intro.tex' not found. \input{./Content/intro.tex}, i.e. the file toc.tex in the Introduction chapter can't find the file intro.tex which is contained in ./chapters/introduction/Content as it is looking in ./Content which doesn't exist.   As far as I understand this is because the paths apparently are always relative to where the main file resides not the inputted subfile (). My question is, is there anyway of changing this behaviour to get LaTeX to use the paths relative to the input files not the main file? I am using TeXStudio should this be of relevance to the question.


Why we define the variance of a random variable $X$ as $\text{var}[X]=\text{E}[(X-\mu)^2]$ instead of $\text{var}[X]=\text{E}[\left|X-\mu\right|]$.  Normally we understand the standard deviation $\sigma=\sqrt{\text{var}[X]}$ as a measure of the average distance of a sample from the mean. If this is the case, isn't it more reasonable to use the absolute value instead of squaring as a measure of distance? Then this way we don't have to square afterwards to obtain $\sigma$.


I am trying to use the nomencl package. I am following an excellent looking guide available here:    However, I can't for the life of me get even the most basic example working despite the document building with no errors. This is the basic example:  \documentclass{article} \usepackage{nomencl} \makenomenclature \begin{document} \section*{Main equations} \begin{equation} a=\frac{N}{A} \end{equation}% \nomenclature{$a$}{The number of angels per unit area}% \nomenclature{$N$}{The number of angels per needle point}% \nomenclature{$A$}{The area of the needle point}% The equation $\sigma = m a$% \nomenclature{$\sigma$}{The total mass of angels per unit area}% \nomenclature{$m$}{The mass of one angel} follows easily. \printnomenclature \end{document}   When I build this document (using Texmaker and MikTex 2.9), I get a page with the equations and text. There are no errors or warnings shown and it even creates an ".nlo" file with the correct information inside. But no nomenclature.  Can anyone think of anything I have missed or should try?


Is there a limit to the number of GPUs I can use?

I'm putting together a mining-like render build with over 10 GPUs. And I would like to ask is there a limit of gpu's I can use on given time. I am asking this because I can go with like 4 680's (Each with 1500 Cuda Cores).


I know there are thousands of this type of question on S.O but i haven't found an appropraite solution that suits my problem.  I have a simple text file create creator that saves file using the default extension .tj. I did this using      DialogResult DR = openFile.ShowDialog();     if (DR == DialogResult.OK)     {          StreamWriter writeFile = new StreamWriter(new FileStream(openFile.FileName,FileMode.CreateNew,FileAccess.Write));          writeFile.WriteLine(rtbText.Text);          writeFile.Flush();          writeFile.Close();     }   This works perfectly but what i want is that whenever my Application is installed and a file with the default extension is saved, Whenever the file is Double Clicked, the file opens in my Application and the Rich Text Box shows the text in the file.  Any help will be appreciated


Assume I have written a book and want to name it:     The Joy of Not Being Stupid   Would the "not" be capitalized?


Built-In Trackpad and Keyboard Unresponsive after Sleep or Restart

I have a MacBook Pro (15-inch, Early 2008) that's currently running 10.7.3. I've been finding that it will intermittently freeze and then I have to shut down and restart the computer, but sometimes that will not fix the problem.  If I plug in an external mouse and keyboard, then I can move the cursor and type again, but as soon as I remove them, the problem persists.  I've tried resetting the P-RAM, reinstalling Lion, installing a new HD, and I've had the graphics chip tested and it's performing properly. If you have any suggestions on how to fix or diagnose, that would be very helpful. Thank you.


Show that $f(E-F) \not\subseteq f(E)-f(F)$

Can someone help explain this question to me?  Let $f : X \to Y$ be a function and $E \subseteq X$ and $F \subseteq X$. Show that in general:  1) $f(E-F) \not\subseteq f(E)-f(F)$  2) $f(E \bigtriangleup F) \not\subseteq f(E)\bigtriangleup f(F)$


This is the script  user@linux:~$ cat script.sh  #!/bin/bash for i in `seq $#` do   echo $i done user@linux:~$    Output  user@linux:~$ ./script.sh a b c 1 2 3 user@linux:~$    Desired Output  I would like to get argument value like this .... and not just the number  user@linux:~$ ./script.sh a b c 1 - a 2 - b 3 - c user@linux:~$


Can pulling with Thorn Whip generate an Opportunity Attack?

Let's say my party member is around 30 feet in front of me and engaged with a monster in melee close combat.  If I successfully cast Thorn Whip and pull the monster 10 feet closer to me, will this generate an opportunity attack for my party member who is next to the monster?


A way for saving running state of a program

I have a program that will perform a lengthy calculation which may take several days to be completed.  Is there a way to save the program's running state; so I will be able to turn off the computer and run the program from a saved state. Or if the program crashed for any reason I can restart it from a saved state (and not from the outset)?


Difference between would be and might be

Could you tell me the difference between these two sentences:     A: He would be going to railway station.   B: He might be going to railway station.


If a mapping is continuous and a bijection, the inverse mapping is also continous?

On my textbook, I was given the following conditions for when a continuous mapping is a homeomorphism: "Let(X,τ) and (Y,τ′) be topological spaces and f a function from X into Y. Then f is a homeomorphism if and only if (i)f is continuous, (ii)f is one-to-one and onto; that is, the inverse function f^−1:Y→X exists, and (iii)f^−1 is continuous" I was wondering whether the third criteria is even needed. If a mapping satisfies the first two, shouldn't the inverse mapping automatically be continuous?


I dual boot Windows 10 on my laptop.  Today I noticed that I can't create files on the other partitions of the disk. Everything is fine on the Ubuntu partition. Running fsck on that partition returned  fsck from util-linux 2.28.2  and nothing more.  I don't know if this has anything to do with the recent Windows update. Everything seems to be fine a few days ago.


What's this I hear about First Edition Unix being restored?

that the source code of First Edition Unix had been restored from tapes.  The response was amazement and a request for more information.  What have people done?  Who did it?  When?  And how?


If I am talking to somebody about a certain group of people in the third person, and then want to refer to the person I am talking with as one of those people, which do I say?     One of them were you      One of them was you.


When accessing a secure note on my login keychain (Using the Keychain Access app) I accidentally selected "Deny" on the prompt.   Now I have no access to this keychain anymore. All of my applications that were previously able to access the keychain are denied as well. All items in the keychain have this issue.  The "Access Control" on the individual items in the keychain does not indicated that access is restricted.   Other keychains do not have this problem.  The error that I get is "Access to this item is restricted (-67808)"  How do I undo this action?


401k withdrawal abroad and state taxation?

From what I know about 401k's, when it's time to retire, we take our 401k money and pay federal and state tax. Some states don't have taxes on 401k's — Florida is a good example. So many people move to Florida for a retirement, not to pay taxes (that's why people call it heaven's waiting room). The question is - how does it work if a US citizen permanently moves to another country for a retirement (retaining citizenship, but not living in any of the US states)? Are there any state taxes? If yes, then why?


Windows utility to render which key I am pressing on-screen

I'm giving training to a large group of people remotely and will be covering a number of application shortcut keys.  I've seen 's on-screen display of keystrokes; is there a similar product for Windows?    The other features of MousePose (fancy mouse pointers, etc.) aren't really useful to me, just the OSD of key presses.


Why terminal in windows doesn't run my java class?

I coded a java file in a folder which is on my desktop.I copied windows terminal to this folder to execute and compile this file.When I compiled the file there was no problem.But when I tried to run the file,the same file it did found when I was compiling,it didnt found the file(like what?). Screenshots   What I've tried so far I tried including a class path in my terminal code but it didnt change anything. Where am I making a mistake please help me solving the problem.


How executable locates functions from DLL file?

How executable locates functions from DLLs exactly? I know that DLL files have entry points but how does the executable locate those entry points with name since everything inside a DLL is 1s and 0s?


What is the difference between "is having" and "has" in this sentence?

what is the difference and which one is correct?  a) The shoe shop is having a sale this week.  b) the shoe shop has a sale this week.


What command do I use to determine how long my actual boot time is? From the grub screen until all the start up processes are finished in the background.  I ask because Launcher stays purple for at least another minute or so after I have desktop use.  So, I wait until I see it change to the color that matches the theme in use before I begin my session.    The next logical step would be to analyse the boot time data, determine if there are errors, fix, and stream line it.


Query without having to specify table's schema

I imported a bunch of tables from SQL Server 2000 to my 2008 database. All the imported tables are prefixed with my username eg: erpadmin.tablename.  In the table properties it lists 'erpadmin' as the db schema. When I write a query I now have to include 'erpadmin.' in front of all the table names which is confusing.  Current result:  select * from erpadmin.tablename   Desired result:  select * from  tablename


I have enough reputation that my edits are immediately applied. Sometimes I still feel that they should be peer reviewed, just because I'm not completely sure that my edit was correct. On these situations just leaving a comment isn't usually an appropriate solution, because edits are so major that just leaving comment won't get the problem solved.  Can I somehow ask my edits to get peer reviewed?  If not, could this feature be added?  Note: While that situation is fairly common in codegolf.SE, I'm not really sure if that happens on other sites.


LWC: lightning-navigation is not a function

I am trying to use the navigation to custom sObject record edit page by passing recordid as mentioned in the document. However, it says "it is not a function".  Any thoughts?  import { NavigationMixin } from 'lightning/navigation';  navigateToCorpconEdit(row) {         let { linkName } = row;                     let recordid = linkName.substr(1);          this[NavigationMixin.Navigate]({             type: 'standard__recordPage',             attributes: {                 recordId: recordid,                 objectApiName: 'npe5__Affiliation__c',                 actionName: 'edit'             },         });     }   Error:     [this[h.NavigationMixin.Navigate] is not a function]


Now that the jailbreak for iOS 9.2.1 has been released, can I downgrade my iPad Mini 1 to older versions? It is so slow with 9.2.1.


The sum of integrals of a function and its inverse: $\int_{0}^{a}f+\int_{0}^{f(a)}f^{-1}=af(a)$

Regarding real numbers, the following appears to be true, or at least true with some modifications. Could you help me for the proof? $$\int_0^af(x)dx+\int_{f(0)}^{f(a)}f^{-1}(x)dx=af(a)$$


OS X is my host OS.  I have windows xp and Ubuntu 10.10 on guest OS. They both work great.  When I eject USB flash drive from host OS, it appears in windows guest OS  but it does not appear in Ubuntu Guest OS.   I never run both guest OS at the same time. It's always either or.  I am running, VM VirtualBox 4.1.10 and installed latest guest additions and also installed VM virtualbox extension pack.


The situation is as follows: there are 6 people in the team, we work together and come up to an answer/question. They all have legit profiles - they are not sock puppets. However, sometimes we do upvote a post if we consider that it might help us individually or as a team. Question: might this be considered a voting anomaly? There is a small paragraph in :  We now perform a more detailed statistical analysis on voting patterns. Any voting patterns that are too far outside the statistical norm will be nullified.  Does it applies to my situation?


Is there some deeper meaning associated with all the religious symbolism in Evangelion?

It just seems like they put all those symbolism for no reason, and it sounds and looks pretty stupid IMO. The series would have been a lot better without all the nonsense.


I have a SharePoint that has list and I need to be able to update this list with new values from an Excel sheet (using VBA).  This can be done from Access not a problem however I need it to be Excel only.  Is what I am asking possible and if some could point me in the direction of a solution.


Ubuntu Software is not installing or updating anything. (16.04.1)

When I try to install something via a .deb file or just from software center it will say installing for a second or so then go back to the button saying install. When I try to update the software I have installed it just shows the installing sign but doesn't update, I left it running over night but still nothing updated  Picture of me trying to update:


I forced exit on Ubuntu upgrade and when I try a new command it gives me this   E: dpkg was interrupted, you must manually run 'dpkg --configure -a'   If I run that command will upgrade continue? If yes, how do I just do so it won't continue because I don't want to upgrade anything?  I read about removing files from /var/lib/dpkg/updates and that should solve the issue, but I don't want to try things out of the blue on Linux machines because that got me into troubles already.


Can anyone explain,  why, like unlike all planets, Pluto does not have a regular orbit?   Why does it have an orbit that meets the orbit of Neptune?   Why does it never collides with Neptune?   Is it a mere coincidence?


Need to develop an angled Spacer to go in between the Garage Floor and Car Lift post pads

I need to fabricate/develop an angled spacer.  13 inch wide by 10 inch long, by 3/4 inch to 1 3/8 inch thick. This spacer is needed to go under two of the posts of a hobbyist car lift in my garage.  The garage floor is angled by the door where two of the four corner posts will go. These two rear posts need to be on a flat surface and at the same level as the two front posts. Each post pad will need to handle approximately 2000 pounds. I was thinking of building a 4-sided mold where the column pads would be on the angled concrete and pouring some type of epoxy, resin, or cement into the mold. Which the metal plate from car lift posts would sit on.


i need some help to write correct regex validation. I want password with no spaces, min. 6 symbols, doesn't matter numbers or letters or symbols. Alphabet a-zA-Z and а-яА-Я(RU). How i can do that?


If spacetime itself is expanding, how could we ever tell?

If space is the measured distance between 2 objects, then saying the space expanded is nonsensical unless we have a measuring stick outside of the space fabric to measure the expansion. 2 objects moving away from themselves isn't the same as space expanding.   What measuring stick is outside space? Doppler redshift shows the relative speed of a star in relationship to us - but would have no effect on a space expansion.  Edit: There seems to have been some confusion (very possibly on my part) on the nature of my question. I'm not talking about an explosion-type situation where matter in the universe is moving apart (with nuclear forces holding stars/planets and gravitation forces holding solar systems, and star clusters together). This is intuitive. I'm talking about statements made by physicists that "space itself" is expanding. An excerpt from a scientific American article: "the spacetime containing matter cannot remain stationary and must either expand or contract"    Edit after related question presentation: So according to the answers on that related question, we should be able to measure exactly that extra energy spent holding matter together against the accelerating space-time expansion. Would radioactive decay would be speeding up too? Would it get easier and easier to split an atom? So thats how we'd measure spacetime expansion?


What's the difference between an application, a process and a service?

I know that an application is a program that you interact with on the desktop, but what exactly are processes and services?  Are services classified as processes or is it the other way round?


I am an Indian passport holder. I shall land in Istanbul (IST) airport and within next 4 hours from the same airport I shall take another flight to Greece.   Airline companies for these two flights are different. I have to collect bags and again check in while changing flights as they are not connecting flights.  Do I need a Turkish Visa for this layover?


If $f$ is symmetrically continuous, then $f$ is not necessarily continuous

I've already proved that continuous functions are symmetrically continuous. Now I want to show that the converse does not hold.  Define $f:X\rightarrow \mathbb{R}, f$ is symmetrically continuous at $x$ So, $\lim_{h\to 0} [f(x+h)-f(x-h)]=0$ I can't come up with a function that's symmetrically continuous but not continuous. Any ideas or hints? The Cantor set comes to mind, but is the Cantor set symmetrically continuous?


Recurrent vs Recursive Neural Networks: Which is better for NLP?

There are Recurrent Neural Networks and Recursive Neural Networks. Both are usually denoted by the same acronym: RNN. According to , Recurrent NN are in fact Recursive NN, but I don't really understand the explanation.  Moreover, I don't seem to find which is better (with examples or so) for Natural Language Processing. The fact is that, although Socher uses Recursive NN for NLP in his , I can't find a good implementation of recursive neural networks, and when I search in Google, most of the answers are about Recurrent NN.  Besides that, is there another DNN which applies better for NLP, or it depends on the NLP task? Deep Belief Nets or Stacked Autoencoders? (I don't seem to find any particular util for ConvNets in NLP, and most of the implementations are with machine vision in mind).  Finally, I would really prefer DNN implementations for C++ (better yet if it has GPU support) or Scala (better if it has Spark support) rather than Python or Matlab/Octave.  I've tried Deeplearning4j, but it's under constant development and the documentation is a little outdated and I can't seem to make it work. Too bad because it has the "black box" like way of doing things, very much like scikit-learn or Weka, which is what I really want.


Prove that $x^7+x^5+x^3+1=0$ has only one solution in $\mathbb R$

Question :    The equation $x^7+x^5+x^3+1=0$ is given.  Prove that this equation has only one solution on $\mathbb R$.    Note 1 : You should use Rolle's theorem in your proof.   That's what the question wants ! its not optional !!!    Note 2 : The question is taken from "Real Analysis : A first course " : Russel Gordon  Note 2 : I don't have any idea... I've never proved something like that ! Any help would be great !


If I were to attack with my creatures, 5 1/1's for say, and my opponent chooses not to block, could I then boost those creatures with an instant to make them more powerful?


Showing connection of cross-ratio and Schwarzian derivative for a holomorphic function $f$.

For some holomorphic function $f$ show that    $$\lim_{t\to0} \frac{cr(f(ta),f(tb),f(tc),f(td))-cr(a,b,c,d)}{t^2cr(a,b,c,d)}=\frac{(a-b)(c-d)}{6}S(f)(0)$$   where $cr(a,b,c,d)$ is the cross-ratio of four points in $\Bbb C$ and $S(f)$ is the Schwarzian derivative of $f$.   I am unsure on how to really make any progress after inserting the definition of the cross-ratio and turning it all into one fraction (rather than fractions in a fraction). I tried working from the other side but made even less progress, since I don't even know how I am supposed to get the factor $(a-b)(c-d)$ in there, since this is nowhere in the fraction.   Any help would be greatly appreciated.


Show $P(X > x) = e^{-\lambda x} \forall x > 0$ and some $\lambda > 0$

Given that $X$ is a non-negative random variable, satisfies $P(X = x) = 0$ and   $P(X > x + y\mid X > x) = P(X > y)$ $ \forall x, y \in \mathbb{R^{+}}$. Prove that $P(X > x) = e^{-\lambda x} $ $\forall x > 0$ and some $\lambda > 0$   By applying the definition of conditional probability, for now I have  $P(X > x) = \frac{P(X > x + y)}{P(X > y)}$. I guess we are trying to prove something like $P(X > x) > 0$, but I dont know how to proceed.


Set PSReadLine colors and then persist them

For some reason powershell is displaying operators and parameters as invisible. Using this question I can fix this:   $colors = @{Operator="Green";Parameter="Green"} Set-PSReadLineOption -Colors $colors   This is good, but then if I close Powershell and bring it up again it has reverted back to the original settings.  A comment on  says "Add the settings to your profile".  How do I do this? How do I add these settings to my profile?


Formal proof for why subtracting two equations in a system of linear equations maintains equivalence with the original system of equations

While solving a system of linear equations, we add/subtract two equations to get a simpler equation which we can solve for a variable. I see why we can do so intuitively, because when we add one equation to the other, we are just adding equal quantities on both sides of the first equation, thus unchanging the equation and since we are finding solution which satisfies both the equations, this solution satisfies the new equation also. Graphically, adding subtracting equations will create new lines (or 2-d planes and higher dimensional planes), but these will intersect at the same point(s) as the original system. But I am not able to show a formal proof for why subtracting two equations while solving a system of equations doesn't change the original system of equations. Could I please get some help with this?


URLs: Should I use hyphens, underscores or plus symbols?

Which is better for search engines?   example.com/my_cool_page.html example.com/my-cool-page.html  example.com/my+cool+page.html


Converting FLV to MP4 Using FFMPEG and Preserving the Quality

Im trying to use ffmpeg to convert my flv files to mp4 to play them on iOS devices but the converted video has a much worse quality than the original one.  Here is the command i use:  ffmpeg -i input.flv -ar 22050 output.mp4   I would really appreciate if someone could provide me with the best settings for flv to mp4 conversion.


Configuring lidR catalog to overwrite raster output (with different extension)?

I have a small issue with configuring the lidR  for parametrizing the extracted raster files with grid_metrics() function.  My question is how to set in the catalog options that:   be able to overwrite the results with a second run if I want to run my script several times and I do not want to name each output differently. instead of .tif I would like to get .grd files as output.   My current code (which is working) is the following:  normalizedctg = catalog(workingdirectory) opt_output_files(normalizedctg) <- paste(workingdirectory,"/clipped/normalized/{XLEFT}_{YBOTTOM}_height",sep="") height = grid_metrics(normalizedctg, max(Z),res = resolution)   But with a second run on the same code I get the following error:  Error in .getGDALtransient(x, filename = filename, options = options,  :    filename exists; use overwrite=TRUE


Mac OS X won't boot from grub menu in Ubuntu Precise on Apple MBA(5,2)

I have set up Ubuntu Precise on the new 2012 edition of the Apple MBA(5,2) following the excellent guide over . Now I want to uninstall rEFIt, in order to avoid going over the boot options twice. The boot options are displayed via rEFIt and GRUB in that order. However to do so, I must be able to boot into Mac OS X via grub. At the moment this is not happening. I read somewhere that this requires chainloading. Could someone direct me to get this right?  Thanks in advance!


Show that a finite domain is a division ring

Let $R$ be a finite ring. Show that the following are equivalent:  i. $R$ is a division ring.  ii. $R$ is nontrivial and if $r$,$s \in R$, with $rs=0$, then either $r=0$ or $s=0$.  $\textbf{NOTE:}$ A commutative ring that satisfies (ii) is called an integral domain or sometimes just a domain. The problem tells us that finite domains are fields.  I am not sure if I have one direction done properly. The other direction stumps me. $\textbf{Proof:}$ (i) $\implies$ (ii) Suppose $R$ is a division ring. Then every nonzero element is invertible. Let $r,s \in R$ where $r \neq 0$. Suppose $rs=0$. Then $r^{-1}(rs)=s \implies s=r^{-1}0=0 \implies s=0$. $\therefore$ $rs=0 \implies r=0 \,\, \text{or} \,\, s=0$. (ii) $\implies$ (i) Suppose $R$ is a finite ring that is nontrivial. Let $r,s \in R$ with $rs=0$ and either $r=0$ or $s=0$. [We want to show that $R$ is a division ring. So we want to show that every nonzero element is a unit. I know that a ring is a division ring if and only if the set of units denoted $U(R)=R-\{0\}$, where $R-\{0\}=R^\times$ is the multiplicative group of $R$.] How do I being to prove this direction?


Given a matrix $M\in A^{n\times n}$, where $A$ is a commutative ring different from $\{0\}$, then we know that if there exists a vector $x\in A^n$ such that $Mx=0$, then $\det M$ must be a zero divisor.   The converse is true? That is, if $\det M$ is a divisor of zero, is it true that his kernel is non-trivial? And if $\det M=0$?  The only thing I obtained is that it's true for Principal Ideal Domains, thanks to the Smith Form.


Is there a general rule whether to use the Verb + to infinitive or the Verb + ...ing format?  There are cases in which I can't decide which one to use. Like:  -They can't afford to go out very often.  -They can't afford going out very often. Or:  -I don't mind to wait.  -I don't mind waiting. Or:  -It was a nice day, so we decided to go for a walk.  -It was a nice day, so we decided going for a walk.


Why energy cannot be created nor destroyed if the Universe is still growing in size?There is creation of new space and infact this space is so energetic that causes 'Hubble flow' of matter...


I'm at roughly 67% completion of the Alola Dex, with ~200 caught, ~290 seen. After scanning QR codes, I've caught a Swinub and Cyndaquil. However, neither were registered in the Pokédex, since neither are Pokémon in the Alola Dex. This brought up the following question:  When will I unlock the National Dex?   Do I need to have seen all the Pokémon in the Alola Dex? Do I need to complete some specific quest, like catching/defeating the Ultra Beasts?


I received an email from my email address dedicated to Facebook blackmailing me. Saying that he had hacked my webcam and has videos for me. He wants 1000$ in the form of bit coins. What's your advice in such a situation? Thanks


FrcPath part 2 exam in the uk april 2019

The case here is being married so we have revenue streams but not enough to cover the trip, how they will see that a family member sponsor their married adult.  My mother who works in the KSA can support financing my trip visa app  how can I manage the application? I live in Egypt, married and with children, travelling alone for 4 days to sit the frcpath part 2 exam. I have proof of passing part 1, paid the examination fees for part 2 and have a proof of payment and invitation letter from the royal college. My salary and my husband's salary cover the monthly household only.


calculating R square for a logistic regression

can anyone help me with how to calculate R-squared for a logistic regression- How do I use the deviance for this Purpose ?   Additionaly, the question in matlab: I am calculating a psychometric function using the "glmfit" function in matlab, with  'probit' parameter.  It returns "dev" variable, and I do not understand how to calculate from this value the goodness of fit of the model - R-squared.   Any advice?


Now I got a dictionary like this  Dictionary dict = new Hashtable(); dict.put("shipno", item.getShipNumber()); dict.put("addr", item.getFinalAddr()); dict.put("receiver", item.getReceiverName()); dict.put("phone", item.getReceiverPhone());   and I'm going to pass this dictionary to funcion Test() as a parameter, what should I put in the '()'  public static int Test(Dictionary)   Is this correct? Thanks!


How long answer is considered OK in Stack Exchange sites? Are there any limits, assuming, that entire text of answer is somehow valuable and percentage of blah, blah is limited to minimum?  I have just wrote  and I have doubts, if I didn't cross the line?  BTW: Is this the longest / one of the longest answer in Stack Exchange / Stack Overflow? :>


Mathematical Induction for Recurrence Relation

I have solved the following recurrence relationship:  $T(1) = 1$  $T(n) = T(n-1) + n + 2$  so  $T(n) = \frac{1}{2}n^2+\frac{5}{2}n -2$  I am now trying to perform mathematical induction to prove this.  $Basis:$  $T(1)=1=3-2=\frac{1}{2} + \frac{5}{2} - 2 $  $Induction:$  $T(k+1) = T(k) + k+1 + 2$  $= \frac{1}{2}k^2 + \frac{5}{2}k -2 + k+1 +2$  $= \frac{1}{2}k^2 + \frac{7}{2}k +1$  What can I do next?


I was using the following command   curl -silent http://api.openstreetmap.org/api/0.6/relation/2919627 http://api.openstreetmap.org/api/0.6/relation/2919628 | grep node | awk '{print $3}' | uniq   when I wondered why uniq wouldn't remove the duplicates. Any idea why ?


Installing Python 3.8 alongside the base system installation

I'm on Ubuntu Mate 20.04. I'd like to install latest Python 3.8 on my system globally but I've noticed that it's the same Python install that is managed by the OS and therefore I'd like not to tweak it. For various reasons I need to work with exactly 3.8. I was thinking about installing it locally (e.g. on $HOME/.local) or even create a venv and sourcing the activation on every prompt but it seems to be just more confusing. Is there a safer way to achieve this?  is not really the answer I was looking for. I'm talking about installing the same python version used by the system.


Why are SMD LEDs shipped in a sealed bag containing desiccant?

I had a selection of 0805 LEDs in my last Mouser order and was a bit surprised to discover they arrived in heat-sealed (rather than folded and taped with sticker) bags containing a desiccant bag and some sort of litmus-esque paper indicator saying something about baking them if the dots on it went pink (instead of blue).    A quantity of through-hole LEDs I had in the same order just came in the regular ESD-protective bag, folded over with a sticker.  What's up with SMD LEDs that they work so hard to keep them dry? Surely their dryness can't be assured once they're installed. Does it have to do with their solderability or something? Why would that be different than other SMD parts?


What is the easiest way to do this? Is it possible with managed code?


If I had a 12V battery and wanted to use an LED that used 2V and 20mA, then I need a resistor that will drop 10V and provide enough resistance to produce a current of 20mA. Therefore I would use R=V/I = R = 10/0.020 = 500 Ohms.  Therefore I would need a 500 Ohm resistor. I believe this is correct so far?  My confusion comes from when we then look at the circuit as a whole. The circuit has a current of 0.020A and a resistance of 500 Ohms, which when looking at V=IR equals 10V (the resistor), not the 12V that it should be there for the whole circuit?  Where am I going wrong? How do I make V = IR work regarding the whole circuit so that V = 12?  I'm pretty new to this sort of thing and no doubt I've probably made a daft mistake but if someone could just help clear up my confusion it would be appreciated.  Thanks.


$X$,$Y$,$Z$ mutually independent implies $X+Y$ independent of $Z$

Supposing $X$, $Y$ and $Z$ and mutually independent real random variables, how can we prove that $X+Y$ and $Z$ are independent from the definition? If not from the definition, using $\sigma$-algebras?  I know that if $X$ and $Y$ are not independent this doesn't work so I know I have to make use of their independence in my proof but I can't figure out how. And it means that if I write the following, I'm making a mistake, and I can't find it:  $$\mathbb{P}(X+Y \leq k,Z \leq l)=\int_{\mathbb{R}} \mathbb{P}(X=x,Y \leq k-x, Z \leq l) dx=\int_{\mathbb{R}} \mathbb{P}(X=x,Y \leq k-x) \mathbb{P}(Z \leq l) dx = \mathbb{P}(Z \leq l)\int_{\mathbb{R}} \mathbb{P}(X=x,Y \leq k-x)dx= \mathbb{P}(Z \leq l) \mathbb{P}(X+Y \leq k) $$  PS: I have seen the proof here but it much more advanced stuff, kind of a sledgehammer...


How to adjust UV mapping for each element of an array?

I am using an array in conjunction with a curve modifier to make a stone wall along a path.  But the problem is that it is easily noticeable that all the stones have the exact same mapping (i.e. the exact same cracks in the exact same place) which looks terrible.  This problem is easy to eradicate for just the displace modifier by basing the texture coordinates on an empty.  I would like to be able to do something like this for the material mapping as well, altering the position of the UV pelt on the UV grid.  Though I am open to any suggestions on how to fix this problem.  Edit:  As a clarification, I need to use UV coordinates, not generated.


I'm wondering about current efforts to provide mathematical foundations and more solid definition for quantum field theories. I am aware of such efforts in the context of the simpler topological or conformal field theories, and of older approaches such as algebraic QFT, and the classic works of Wightman, Streater, etc. etc . I am more interested in more current approaches, in particular such approaches that incorporate the modern understanding of the subject, based on the renormalization group. I know such approaches exists and have had occasions to hear interesting things about them, I'd be interested in a brief overview of what's out there, and perhaps some references.  Edit: Thanks for all the references and the answers, lots of food for thought! As followup: it seems to me that much of that is concerned with formalizing perturbative QFT, which inherits its structure from the free theory, and looking at various interesting patterns and structures which appear in perturbation theory. All of which is interesting, but in addition I am wondering about attempts to define QFT non-perturbatively, by formalizing the way physicists think about QFT (in which the RNG is the basic object, rather than a technical tool). I appreciate this is a vague question, thanks everyone for the help.


Problem with making table with special header that includes bolded numbers

I am the author of the question:  Following Zarko's advise, I have revised my code according to his suggestion to get my bolded number aligned in the right way. However, a new problem is popping up. I am making another post because I can't share the updated version of my code in my previous post. I am trying to make a table with special header. I tried the following code: \documentclass[11pt,a4paper]{article} \usepackage[hyperref]{NAACL2019} \usepackage[skip=1ex,font=small]{caption} \usepackage{times} \usepackage{url} \usepackage{latexsym} \usepackage{algorithm}  \usepackage{algpseudocode}  \usepackage{sectsty} \usepackage{amssymb} \usepackage{makecell} \usepackage{multirow} \usepackage{amsmath,epsfig,times} \usepackage{tabularx}  \usepackage{booktabs} \usepackage{etoolbox} \usepackage{subcaption} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{siunitx}  % <--- \usepackage{etoolbox} % <---  \newrobustcmd\B{\DeclareFontSeriesDefault[rm]{bf}{b}\bfseries} % <===  \usepackage{hyperref} % load this package _last_  \begin{table}[ht] \sisetup{detect-weight, mode=text, table-format=1.4} \centering \begin{tabular}{l SS              S[table-format=-1.2]             S[table-format=1.2] } \toprule  & \multicolumn{2}{c}{M1}    & \multicolumn{2}{c}{M2} \\    \cmidrule(lr){2-3} \cmidrule(l){4-5}  & {1-2} & {7-8} & {1-2} & {7-8} \\  \midrule A & \B{0.0021} & \B{0.0033} & -2.37 & 0.00 \\  B & \B{0.0052} & \B{0.0042} & -1.23 & 0.67 \\  C & 0.0960     & \B{0.0054} & -0.62 & 1.10 \\  D & \B{0.0082} & \B{0.0057} & -0.21 & 1.08 \\  E & 0.0107     & 0.0097     &  0.74 & 1.41 \\  F & \B{0.0080} & 0.0088     &  5.05 & 5.05 \\  G & 0.0140 & 0.0148 & -2.37 & 0.00 \\  H & 0.0128 & 0.0176 & -1.23 & 0.67 \\  I & 0.0157 & 0.0164 & -0.62 & 1.10 \\  J & 0.0145 & 0.0155 & -0.21 & 1.08 \\  K & 0.0205 & 0.0209 &  0.74 & 1.41 \\  L & 0.0236 & 0.0225 &  5.05 & 5.05 \\  \bottomrule \end{tabular}%} \smallskip \caption{My Caption} \label{tab:table1} \end{table}  But it gives the following result:  The problem here is that there is [rm]bfb right before each bolded number, which I want to remove. How can I resolve this issue? PS: For my LaTeX document, I am using this specific template for a particular academic conference:  This conference template is 2-columned, that is, the texts are displayed on each page in 2 columns. Thank you,


Be going to or verb-ing in this context?

Here's a not very clear exam question, in my opinion at least, it asks to circle the correct answer in:     It seems that our neighbors are (having/going to have) a party this weekend. This is our invitation.   What do you think?


How to initialise a BigInteger array in the same way like an int[ ] in Java?

In the following code, I am unable to initialize the BigInteger array due to which a NullPointerException is thrown as I compile:  public class Solution { public static BigInteger[] arr; public Solution(int n){     arr=new BigInteger[n];     for(BigInteger each:arr){         each=BigInteger.ZERO;     } } public static BigInteger maxlist(){     BigInteger max=arr[0];     for(BigInteger elem:arr)         if(elem.compareTo(max)>0)             max=elem;     return max; } public static void main(String[] args) {     Scanner in = new Scanner(System.in);     int n = in.nextInt();     int m = in.nextInt();     Solution s=new Solution(n);     for(int a0 = 0; a0 < m; a0++){         int a = in.nextInt();         int b = in.nextInt();         BigInteger k = in.nextBigInteger();         for(int i=a-1;i<=b-1;i++)         arr[i]=arr[i].add(k);   //Error is thrown here     }     System.out.println(maxlist());     in.close(); }   }  Error: Exception in thread "main" java.lang.NullPointerException         at Solution.main(Solution.java:29)  Is there any other way to do it?


Basic Linear Algebra problem about representing a vector space as its proper subspaces union

Suppose $V$ is a vector space over an infinte field $F$. Assume that $n<\infty$ and $W_i$ $(1<i<n \land i ,n\in\Bbb N)$ are proper subspaces of $V$.$(W_i\neq V \land W_i\neq \emptyset)$  Prove that we can't represent $V$ this way:  $V=\cup_1^n W_i=W_1\cup W_2\cup...\cup W_n$  I am spending my first course in linear algebra so i am not familiar with common concepts such as dimension or basis or... I am just starting this course and I only understand concepts like vector spaces or subspaces or fields or... please help me to solve this problem   thank you...


Can I get a visa to Germany outside my home county as a student in the USA?

I'm a Kenyan college student currently in the United States on an F1 Visa but I would like to go to Germany to visit my family in the summer of next year, can I apply for a German Visa in the USA ?


How to exclude files from Visual Studio compile?

I'm in the process of refactoring a project.  I've got an entire subfolder which is known to be broken.  Is there any declarative way to exclude that folder from the compile temporarily while I test the refactoring thus far?  I realize I could delete the folder, but I'd like to do this through configuration if possible.


Why does replication require primers while transcription does not?

In transcription, there is no need for any primer. I guess the basic mechanism of DNA polymerase & RNA polymerase is the same. So why does replication have the need for a primer?


How do you specify the name of a primitive created via the Python API?

For example, the command to create a cube is:   bpy.ops.mesh.primitive_cube_add(view_align=False,                                  enter_editmode=False,                                  location=(0.0, 0.0, 0.0),                                  rotation=(0, 0, 0),                                  layers=(True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False))   But how do you specify its name so it's not automatically determined (e.g. Cube.001)?


Installing Ubuntu on an Asus Vivotab Smart Windows 8 32-bit processor tablet

Good day,  I just got an Asus Vivotab Smart with Windows 8 but the processor is actually a 32-bit type. I am kinda confused with the Ubuntu version to install (32-bit or 64-bit). I have read all the tips and guidelines on installing Ubuntu on a Windows 8 machine.  I have disabled fast boot, quiet boot, secure boot, and still cannot boot from the usb. I tried this with Ubuntu 12.04.2, 12.10, and 13.04 (the 64-bit versions only). I am yet to try a 32-bit version but I'm reluctant since Canonical says only the 64-bit version was developed to handle the Windows 8 UEFI issues.  Also, I have a boot-override field in my UEFI options which I think force-boots from the boot option one selects. I selected to force-boot from my pendrive containing Ubuntu, but the screen just blinks momentarily and nothing happens.  Please help me to figure out how to load ubuntu on my machine. I don't really want the Windows 8......just Ubuntu on my tablet.  Thank you.


Which of the following subsets of $\mathbb{R}^2$ are compact?   (a) $\left\{ (x, y) : xy = 1 \right\} $ (b) $\left\{ (x, y) : x^{2/3} + y^{2/3} = 1 \right\}$ (c) $\left\{(x, y) : x^2 + y^2 < 1\right\}$   clearly a and c are not compact. not sure about b


localStorage.setItem() not working on page load

I want to load a page and, after the body tag, execute a sort based on localStorage. But myWay (no pun intended) doesn't work. Can you help me?  I have 3 sort functions, each with one of these lines:  <script>  localStorage.setItem("current_sort", "classSort()"); localStorage.setItem("current_sort", "playerSort()"); localStorage.setItem("current_sort", "ratingSort()");  </script>  <script>  myWay = localStorage.getItem("current_sort");  if (myWay === "") {myWay = "playerSort()";}  </script>   How do I load myway?   <script> eval (myway()); //doesn't seem to work. </script>


McAfee sending traffic on UDP port 2054: is this expected behaviour?

I noticed today that McSvHost.exe (part of McAfee LiveSafe running on Windows 10) is sending traffic to every host on my network on UDP port 2054. This is what the packets look like (the part with Xs was actually the sender's MAC address):     0x0000:  4500 0038 16c5 0000 8011 d2c9 0a14 1e01  E..8............     0x0010:  0a14 1efe d13b 0806 0024 ba22 0001 0800  .....;...$."....     0x0020:  0604 0001 XXXX XXXX XXXX 0a14 1e01 ffff  ........V[......     0x0030:  ffff ffff 0a14 1efe                      ........  ...and here's Process Monitor showing McSvHost.exe sending the packets:  My questions are—  Is this expected behaviour, or should I be suspicious? and If it is expected behaviour, what is McAfee trying to do?  I've checked and nothing on my computer is listening on UDP port 2054.  I've tried contacting McAfee support but I struggled to make the support agent understand my question.


I was reading about $A_4$ and $S_4$ groups and I got curious about some of the subgroups. And if we have $H:= \{(),(12)(34),(13)(24),(14)(23)\}$, how would I determine and how would the structure look like of the quotient group $A_4/H$ and is $A_4$ a simple group?


Has there ever been a gender-changing Time Lord before?

Is 13 going to be the first time (that we know of, obviously) that a Time Lord has changed genders during a regeneration? Preferably looking for in-canon or almost-canon, so anything other than the Curse of Fatal Death.


How to express a 2nd order ODE as 1st order ODE's?

Express the 2nd order ODE $$\begin{align}\mathrm d_t^2 u:=\frac{\mathrm d^2 u}{\mathrm dt^2}&=\sin(u)+\cos(\omega t)\qquad \omega \in \mathbb Z /\{0\} \\u(0)&=a\\\mathrm d_t u(0)&=b\end{align}$$ as a system of 1st order ODEs and verify there exists a global solution by invoking the global existence and uniqueness theorems.  I'm not sure how to express second order ODEs as first order ODEs, any tips?


I am new to C. Can someone explain me whats the difference between these?  I usually use pointers like this:  int myFunction(int* something) {   ... }  int main() {   int something;   something = 0;    myFunction(&something);   ... }   But I've found code which looks like this:  int myFunction(int& something) {   ... }  int main() {   int something;   something = 0;    myFunction(something);   ... }   It seems like the exactly same thing for me. Is there any difference?


A popular maths comic strip for little kid is shown in below:    Why, this proof is wrong? And, what happen when you comparing the areas of these two figure (truncate square, and circle)? Are the area equal? Formally prove it, for both of the statement.


So I stumbled upon this sentence:  ''Aside from a flexible vagina which is due to the pelvic muscles' elasticity [...]''  And I wonder, shouldn't there be ''because of''? Because it modifies the adjective ''flexible'', and for ''due to'' to be right shouldn't it have been ''the flexibility of vagina [...]'' ? But again, I know that ''due to'' must follow a form of ''to be'', which is present here.


repeated error: "Target filesystem doesn't have requested /sbin/init"

In the past few weeks when I turned my computer on it wrote me this error:     mount: mounting /dev/disk/by-uuid/280914ad-ed45-4948-bfdf-9      ac440455635 on /root failed: Invalid argument      mount: mounting /dev on /root/dev failed: NO such file or directory      mount: mounting /sys on /root/sys failed: NO such file or directory      mount: mounting /proc on /root/proc failed: NO such file or directory      Target filesystem doesn't have requested /sbin/init.      No init found. Try passing init=bootarg.      Busy Box v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash) Enter      'help' for a list of built-in commands.      (initramfs)   I fixed it by booting from a live CD and type in the Terminal:     e2fsck -f -y -v /dev/sda1   But every few reboots i get the same error. If someone know what cause this error and how to get it fixed permanently I'll be grateful.  Thanks in advance.    Well it happend again. This is the: "e2fsck -f -y -v /dev/sda1" command output:     ubuntu@ubuntu:~$ sudo e2fsck -f -y -v /dev/sda1 e2fsck 1.42      (29-Nov-2011) /dev/sda1: recovering journal Error reading block      2655492 (Attempt to read block from filesystem resulted in short      read).  Ignore error? yes      Force rewrite? yes      Clearing orphaned inode 265302 (uid=1000, gid=1000, mode=0100600,      size=8192) Pass 1: Checking inodes, blocks, and sizes Inode 1182032,      i_size is 31422, should be 40960.  Fix? yes      Inode 1182032, i_blocks is 72, should be 88.  Fix? yes      Pass 2: Checking directory structure Pass 3: Checking directory      connectivity Pass 4: Checking reference counts Inode 1182190 ref count      is 1, should be 2.  Fix? yes      Unattached inode 1182583 Connect to /lost+found? yes      Inode 1182583 ref count is 2, should be 1.  Fix? yes      Pass 5: Checking group summary information Block bitmap differences:       +595467 +595478 Fix? yes      Free blocks count wrong for group #18 (29091, counted=29089). Fix? yes      Free blocks count wrong (5135588, counted=5135536). Fix? yes      Free inodes count wrong (1341369, counted=1341362). Fix? yes      /dev/sda1:  FILE SYSTEM WAS MODIFIED       184558 inodes used (12.09%)   107 non-contiguous files (0.1%)   188 non-contiguous directories (0.1%)       # of inodes with ind/dind/tind blocks: 0/0/0       Extent depth histogram: 143481/16   967760 blocks used (15.86%)     0 bad blocks     1 large file       111100 regular files    18489 directories    57 character device files    25 block device files     0 fifos     2 links    54874 symbolic links (40967 fast symbolic links)     4 sockets       --------   184550 files ubuntu@ubuntu:~$   Please help me I don't now what more i can do.


I have different categories called as reviews, ideas etc. I have a page called as review, I want to display review category to the review page (only review category). Is this possible? Which file I have to change? I have the code below, but it is displaying only the texts not any links to the posts, 7 is my category id.  if( is_page( 'reviews' )){           query_posts("cat=7" );        }


Optimum design / structure for product data database?

What would be the optimum design/structure for product data database, where each product have many variations and many attributes? Attribute sets vary between products, and some attributes have values common for all variations of a given product. A typical example of product variations & attributes table is in the image below:    (The 'ATTRIBUTE X' is here to give you and idea of a different attribute type than for 'Product 1').   Would it be practical to try to 'group' some of the attributes (to save time and minimise errors when creating new product entries)? If so, how complicated would it need to be?  If it's relevant - I'm thinking of using mySQL engine, but I'd be happy to see any applicable example from other engines.  EDIT : More information: at the moment we have over 400 variations in a spreadsheet, each one about 15-20 attributes, so that would give about 6000-8000 'data points'. It would be great to be able to list all possible values for a given attribute (to create a dropdown menu when adding new entries), and also to have a choice of possible attributes for a given product. It would be great to be able to specify which attributes are applicable for product variations of each product.


Where are the actual bytes located within DIMM modules in dual or multi-channel mode?

I'm trying to find out how memory is arranged in dual channel mode, i.e. which memory addresses are on which DIMM. What I have currently found out is that there are two modes "ganged" and "unganged" and that there is little difference between them performance-wise. With ganged mode I understood that each 128-bit word is split in a two 64 bit words, and those are combined when read / written using two channels at the same time. That would mean that for every 128 bits one would probably contain the lower 64 bits (/8 bytes) and the other the higher 64 bits. So byte addresses 0-7 are on one DIMM, and the next 8-15 are on the other. Is this correct? What's entirely unclear to me is how memory is arranged in "unganged" mode. Is the memory still spread over the two modules using "sectors" of a specific size? Or is another scheme used? Do these arrangements differ per processor or is this kind of operation standardized somewhere?


The effect of Minor Illusion in the inner ear of a monster

Last session, one of my players said he wanted to cast minor illusion - creating a high-pitched screaming noise - within the inner ear of a Worg. I ruled it was permissible, got the Worg to take a Constitution check to not be alarmed, and it succeeded, remaining unperturbed.  But I've since been thinking - could you cast minor illusion in such a small, specific location within combat? Could I perhaps rule that the PC should take a penalty of some sort? Is a Con check appropriate? What would the effects of such below-the-belt tactics be if they succeed?


Expected number of steps till a random walk hits a or -b.

On wikipedia I read that the expected number of steps till a 1D simple random walk hits either $a$ or $-b$ is equal to $ab$. (I have seen this result also on other websites.) However, no proof or further reference is given. Could someone please explain how they arrived at this result?  Thanks in advance, Claus


Let S$^2$ := $\lbrace$ x $\in$ $\mathbb{R}$$^3$ : $\Vert x\Vert$$_2$ $\rbrace$ $\subset$ ($\mathbb{R}$$^3$, $\Vert .\Vert$$_2$) and T: S$^2$ $\to$ ($\mathbb{R}$, $\vert x\vert$ ) a continuous function.  a) Is there a point x$_0$ $\in$ S$^2$ such that T(x$_0$) = T(-x$_0$) ?  b) Is there a value T $\in$ (Tmax,Tmin), which exactly one x $\in$ S$^2$ takes, with Tmax = sup $\lbrace$ T(x) : x $\in$ S$^2$ $\rbrace$ and Tmin = inf $\lbrace$ T(x) : x $\in$ S$^2$ $\rbrace$ ?  I think I have a example of a function in a) : Let T(x) = cos (x$_1$) with x = (x$_1$, x$_2$, x$_3$)$^T$, so take for example x$_0$=(1,0,0)$^T$, so is T(x$_0$)=T(-x$_0$), however I don't know how to start b)


I've always wondered why cd isn't a program, but never managed to find the answer.  Anyone know why this is the case?


Rotate text inside table and align it to the centre of combined rows

I would like to rotate text inside a table and align to the centre as shown. The next column has several other rows which are combined in the "standards" row. Something similar to the first picture(aligning with the vertical line) and not the second. I would appreciate suggestions on the best way to do this. Thanks


What's proper punctuation for a sentence ending with an abbreviation followed by a parenthetical phrase?

Other questions here address a sentence ending in an abbreviation, and when a sentence-ending abbreviation is followed by a question-mark.  But what about when a sentence-ending abbreviation is followed by a parenthetical phrase?  Do you put a period after the parenthetical?  Example:     She was previously an engineer at the IBM Corp. (a well-known computer company).   My question is whether that last period is correct.  To me, it looks wrong either way.  I realize that this sentence could easily be rewritten to drop the abbreviation; or to expand it; or to replace the parentheses with, e.g., a comma or dash separator; or to make the parenthetical into a complete & separate sentence.  But those options were not possible in an earlier example I had.    Thanks.


Trace of a commutator is zero - but what about the commutator of $x$ and $p$?

Operators can be cyclically interchanged inside a trace: $${\rm Tr} (AB)~=~{\rm Tr} (BA).$$ This means the trace of a commutator of any two operators is zero: $${\rm Tr} ([A,B])~=~0.$$ But what about the commutator of the position and momentum operators for a quantum particle? On the one hand: $${\rm Tr}([x,p])~=~0,$$ while on the other hand: $$[x,p]~=~i\hbar.$$ How does this work out?


I've provided an answer on a question with a bounty, however once my answer was accepted I was not credited the bounty. The question in question is:


How to show this equals 1 without "calculations"

We have $$ \sqrt[3]{2 +\sqrt{5}} + \sqrt[3]{2-\sqrt{5}} = 1 $$  Is there any way we can get this results through algebraic manipulations rather than just plugging it into a calculator?  Of course, $(2 +\sqrt{5}) + (2-\sqrt{5}) = 4 $, maybe this can in some way help?


How can I pretty-print JSON in a shell script?

Is there a (Unix) shell script to format JSON in human-readable form?  Basically, I want it to transform the following:  { "foo": "lorem", "bar": "ipsum" }   ... into something like this:  {     "foo": "lorem",     "bar": "ipsum" }


Is it a bad sign, if reviews are completed very early?

My manuscript was sent to the reviewers of an Elsevier journal around 10 days ago. Today, I logged into EES and saw that the status has changed to Required Reviews Completed. I couldn’t believe it. My impression is that my manuscript is likely to have been rejected by the reviewers. Am I right about this?


What is the bash reverse quote equivalent in powershell?

Note: as pasted in the comment, it is called backtick for the symbol ``, and there's already an answer in:   Original question: In bash, people may use reverse quote(``) as result for quoted commands, and integrated in another command. For example: cmake -DVAR1=VALUE1 `cat ../custom-options.txt`  where ../custom_options.txt contains many lines like: -DBUILD_ZLIB=OFF -DBUILD_TIFF=OFF -DBUILD_OPENJPEG=OFF -DBUILD_JASPER=OFF -DBUILD_JPEG=OFF -DBUILD_PNG=OFF -DBUILD_OPENEXR=OFF -DBUILD_WEBP=OFF -DBUILD_TBB=OFF -DBUILD_IPP_IW=OFF -DBUILD_ITT=OFF -DWITH_AVFOUNDATION=OFF  For Windows system, it is powershell instead of bash in Linux. My question: what is the equivalent of reverse quote in PowerShell?


My friend and I are buying an RTR booster box mainly in hopes of getting some chase rares, but also for some fun.  What are some Draft Variants for only 2 players?


How to print the text between the first occurence of a pair of strings?

I'm trying to filter a part of a file that holds 2 digital certificates. Basically, I want the first part (let's say Cert1) and not the second part (Cert2).  Content of the file is:  -----BEGIN CERTIFICATE----- AAAA AAAA ETC -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- AAAA AAAA ETC -----END CERTIFICATE-----   I was under the impression that this would give me the content of Cert1 (the first part between the first BEGIN and the first END):  cat /etc/nginx/cert.pem | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'   For some reason, though, it still presents me all the content between the second BEGIN and the second END (basically, nothing changes; all content is the same).  Any pointers?


Is there a way to search/list the questions that I have upvoted?   Sometimes I will upvote a good question for which I wish to return later and view the answers.  I realized that I could "favorite" the question, but I feel there is a difference between what I am describing and a "favorite" question.  If this does not exist, I think there should be a tab under my profile to show recent questions that ive upvoted(or otherwise marked to be of interest to me)


Alternatives for evaluating $ \int \frac { 1 } { 5 + 4 \cos x} \ dx $ ??

$$           \int \frac { 1 } { 5 + 4 \cos x} \ dx $$  $$ \text{The solution given in the book for solving this was to use the identity.} $$   $$ \cos x = \frac{1 - \tan^2 \frac{x}{2}}{1+ \tan^2 \frac{x}{2}} $$  I was wondering if there was any other way for solving this  ?


Lowering the throttling temperature in Windows 8 for a laptop

I've seen a lot of posts about disabling the throttling temperatures but none regarding setting them.  I have an Acer V17 Nitro, i7 laptop and it's CPU temperature reaches 95°C before throttling. It's a very powerful laptop, crippled by a bad cooling system. I already undervolted by 70mV and disabled hyper boost.   Currently, I have to go into Power Options and adjust Maximum CPU Frequency between 40% and 80% to keep the temperatures under 80°C. But this depends on the application. And I have to do this manually for each application I'm using.  Ironically, some applications (especially Fortnite) will run just fine with the CPU frequency set to 30-40% with the temperatures only rising to 80°C, while others will run at the same temperatures with the maximum frequency set to 80%. It just depends on how the code was written and how many cores are being used.  I know the throttling temperature is set to 95°C for the CPU, but even if it doesn't melt the CPU, it can cause a lot of other issues, like melting the case.  I would prefer to lower the throttling temperature to something like 80°C. This way I don't have to adjust the maximum CPU frequency by hand every time.  Is there a way to do this from the BIOS? From Windows? Via a third party app?


Our hosting is set up on Amazon EC2 servers, which have been performing great.  The problem we run into are spikes in requests for invalid URLs from scripts/bots looking for security holes.  When these URLs are queried, they are obviously not cached, requiring more resources.  This will slow our site to a crawl and has even made servers unstable to the point apache couldn't be stopped and we needed to reboot.  I've done some research and found .   Unfortunately, it doesn't seem like a perfect solution.  We need something that will replicate bans across servers.  We also need the ability for the process to be automated (not having to create manual URL Rewrites).  Here's the solution I'm envisioning:   Add php error_log() command on Magento soft 404 pages Use fail2ban (or similar) to monitor the error_logs and ban offending IPs Add rules to a Network ACL on AWS for a VPC (to minimize machine load and distribute bans to all machines in cluster)   Step 1 & 2 aren't too complicated.  I'm lost on step 3.   Does anybody have guidance on applying the ban rules to multiple servers?


Install Ubuntu inside/alongside windows 7

I'm confused about Ubuntu, last time I installed it, I lost all my Data on hard drive (as I have no experience of Ubuntu). But still I love this operating system as I want some change, the thing I want to know, how can I install Ubuntu so that my all data, partitions and windows 7 wont get effected?  I have Ubuntu 13.04 desktop ISO file. I have made a bootable USB also. I want to install it inside/alongside windows 7, so that i keep learning how to use it and then, maybe migrate to it completely, can you help me on this??


When $x^2+x+p$ is prime for $x=0$ to $p-2$?

Is it true that $f(x)=x^2+x+p$ is prime for all $x=0,1,...,p-2$ iff $\mathbb{Q}(\sqrt{1-4p})$ has trivial class group ?  I've heard this statement but getting no idea how to solve it, any help would be great.


How to configure WiFi adaptor to monitor mode?

I have just successfully installed a driver (athk9_htc) for TP-Link TL-WN722N (a USB WiFi adaptor) in Ubuntu 14.04.1. My goal is to capture the WiFi traffic with Wireshark.  I try to configure the adaptor to monitor mode by running: sudo iwconfig wlan1 mode monitor However it give me an error message:  Error for wireless request "Set Mode" (8B06):     SET failed on device wlan1; Device or resource busy.   How can I set it to monitor mode?  Edited: I do not agree this is a duplicated question. Actually I have found that thread before I asked this question. However there are two responses in that thread, but not any verified answer. If I do not ask this question again, how can I get the answer? Also the answer given by @chili555 is different to the responses in that thread, and I verified this answer is working. If the question is duplicated, should not it be adding a comment in that thread to indicate that a verified answer is here, instead of indicating an answered question is a duplicated question?


Prove that the product of $n$ bounded and uniformly continuous functions are also uniformly continous

Let $f_{1}(x),f_{2}(x),\dots,f_{n}(x)$ be $n$ bounded and uniformly continuous functions on $\mathbb{R}$. Prove that their product $f_1(x)f_2(x)\cdots f_n(x)$ is also a uniformly continuous function on $\mathbb{R}$  My approach is to use mathematical induction. At the last step, I need to prove that the product of two uniformly continuos functions (which are the product of the first $n-1$ uniformly continuous functions by inductive hypothesis and the $n^{\text{th}}$ function), which doesn't require me to use the fact the functions are bounded.   So, I sense that this approach is not correct (but I'm not sure why) as I didn't use the fact that the functions are bounded. If it's really wrong, how do I make use of the fact that the functions are bounded? Thank you :)


What's the name of this timeline package in LaTeX?

I tried searching through many resources to identify the package that allows to create this type of time lines:    but all in vain. Could anyone, please, point in the right direction?


Don't want Windows 10 upgrade - How do I stop installation

Have a computer someone does NOT want window 10 upgrade. They accidentally hit upgrade...then turned off their computer. I restored to an earlier point to where I know they had not updated to 10. Restarted. Told windows not to install until I requested it. Now we get a RED notice Windows 10 upgrade failed. (which is good). Now when the computer is being shut down I think it is trying to upgrade (Message says installing 1 update). No idea what the update is. is there a way we can tell the computer NOT to install the one update? Checking the update list of what is to be updated, nothing is there, so I have NO actual idea of what it is, I am guessing Windows 10 is my best guess. If no solution, I guess I'll have to let windows 10 install and then restore it back to 7. I just don't want to waste the time. Thanks


How can we derive the schrodinger wave equation?

How can we derive the Schrodinger wave equation with simplified explanation?


Alias Names and Two Table Query Problems

I'm quite new to querying databases, I've only been doing it for about 2 weeks in the current job that I'm in and have never touched SQL prior to this.   I'm working on trying to use alias names to pull two different sets of tables and display the fields in each table, all while ordering them by a specific field.  Here is the code I'm currently trying to use when to do that:    SELECT ars.facility_id, ars.service_code, ars.coding_system,    ars.result_label_seq, ars.display_seq, ats.facility_id,    ats.service_code, ats.coding_system, ats.display_name, ats.test_name    FROM anc_test_codes AS ats,   anc_results_seqs AS ars    WHERE ats.service_code = ars.service_code   AND ars.coding_system = ats.coding_system   AND ars.facility_id = ats.facility_id    AND ats.facility_id = 'C' AND ats.service_code = 'CBC'   ORDER BY ats.display_name   I'm sure my methods and style is totally hideous, so excuse this.  The error I'm getting is a generic Oracle SQL error: SQL Command Not Properly Ended - ORA-00933  Can anyone tell me what I'm doing wrong? Any help on this would be greatly appreciated.    Thanks!


I'm trying to write a light-weight image viewing application. However, there are system memory limitations with .NET.  When trying to load large bitmaps (9000 x 9000 px or larger, 24-bit), I get a System.OutOfMemoryException. This is on a Windows 2000 PC with 2GB of RAM (of which 1.3GB is used up). It also takes a lot of time to attempt loading the files.  The following code generates this error:  Image image = new Bitmap(filename); using (Graphics gfx = this.CreateGraphics()) {     gfx.DrawImage(image, new Point(0, 0)); }   As does this code:  Stream stream = (Stream)File.OpenRead(filename); Image image = Image.FromStream(stream, false, false); using (Graphics gfx = this.CreateGraphics()) {     gfx.DrawImage(image, new Rectangle(0, 0, 100, 100), 4000, 4000, 100, 100, GraphicsUnit.Pixel); }   Also, it is enough to do just this:  Bitmap bitmap = new Bitmap(filename); IntPtr handle = bitmap.GetHbitmap();   The latter code was intended for use with GDI. While researching this, I found out that this is in fact a memory issue where .NET tries to allocate twice as much as is needed in a single contigous block of memory.    I know from other applications (Internet Explorer, MS Paint etc.) that it IS possible to open large images, and rather quickly. My question is, how do I use large bitmaps with .NET?  Is there anyway to stream them, or non-memory load them?


Here is my problem:      Find two closed subsets or real numbers such that $d(A,B)=0$ but $A\cap B=\varnothing$.   I tried to use the definition of being close for subsets like intervals but I couldn't find any closed sets. Any hint? Thank you.


I recently picked up a Braum (Aldi) TV from the nature strip to play around with. The TV seems to work perfectly fine (Channels, DVD input, sound etc) except that there's no working backlight. I've proceeded to disassemble the TV, and found there is 9 lights x 3 strips = 27 backlights. Each strip seems to have an identifier "94V-0 E348124". The product number for the strip: K395A0835350309686-Rev1.1 I. Looking online it seems to match a Sceptre LED backstrip. I assume the 94V is referring to the forward voltage required to switch on the LEDS? I think the LEDs seem to be in series, so is the voltage roughly 10.5 V required per LED? (Or would it be 3.5V, assuming 3 strips?) If they are in series, if one fails they'll all fail right (hence 0% backlight)? I can see two pin contacts to test each LED which is nice. What equipment should I use to go about testing the strips? I don't believe I have any equipment that can supply 10.5V, and haven't really done anything like this before. From looking at other  forums it seems that a common TV backlit LED runs with >3V and about 150mA. Looking for an inexpensive option.


When translating a site go with URLs in Chinese or English?

What is the best practice when translating a site to Chinese, go with URLs in Chinese or English?      Could you please share the reason why?


Why isnt my pictures whole when I use background image using style property

Why are the pictures not filling, when I use style property for background-image url. What is shown on the page :       body {     background-image: url("../Bilder/ikkephotoshopped.jpg"),                      url("../Bilder/photoshopped.jpg" );     }    the pictures suppose to go into the page


I was wondering if given a huge Latex \documentclass[oneside]{book} is it possible to compile a specific range of pages, for example pages 11-35, to a PDF?  I want to compile a single chapter without having to copy and paste content, and move relevant packages into the new file.  I use Kile as my IDE.  Thanks in advance.


Check variable equality against a list of values

I'm checking a variable, say foo, for equality to a number of values. For example,  if( foo == 1 || foo == 3 || foo == 12 ) {     // ... }   The point is that it is rather much code for such a trivial task. I came up with the following:  if( foo in {1: 1, 3: 1, 12: 1} ) {     // ... }   but also this does not completely appeal to me, because I have to give redundant values to the items in the object.  Does anyone know a decent way of doing an equality check against multiple values?


How to disagree with one flag but agree with another

While visiting the flags I just noticed that  answer has two flags:   very low quality not an answer   I disagree that it is "not an answer", but I agree that this might be of "very low quality". I can't simply select "it has invalid flags" as that means I disagree with both flags. What should I do in this case? Use "other" option?


Random spawn for multiplayer Minecraft server

I want to know if there's a way I can set it so that on first join, a player gets teleported to a random location on the map automatically. Then if the player dies without having a home set, they are once again teleported to a random location but not if they have their home set.   What would be the best way to accomplish this? May it be through command blocks or plugins.   Thank you for your time.