Let $f:U \to V$ be a bijective holomorphic function. Show that inverse of $f$ is also holomorphic.

Suppose $U$ and $V$ be domains(i.e., open and connected) in $ \mathbb C$.Let $f\colon U \to V$ be a bijective holomorphic function. Show that the inverse of $f$ is also holomorphic.  By Open Mapping Theorem it is clear that $f^{-1}$ is also continuous. Please give some ideas to complete the proof.  Edit:I'm interested in a proof which comes as a corollary of  open mapping theorem


This came to my mind after I learned the following from :  where T : struct   We, C# developers, all know the basics of C#. I mean declarations, conditionals, loops, operators, etc.  Some of us even mastered the stuff like , , , , ...  But what are the most hidden features or tricks of C# that even C# fans, addicts, experts barely know?  Here are the revealed features so far:    Keywords    by  var by  using() statement by  readonly by  as by  as / is by  as / is (improved) by  default by  global:: by  using() blocks by  volatile by  extern alias by    Attributes    by   by   by   and  by   by   by   by    Syntax    (coalesce nulls) operator by  Number flaggings by  where T:new by  Implicit generics by  One-parameter lambdas by  Auto properties by  Namespace aliases by  Verbatim string literals with @ by  enum values by  @variablenames by  event operators by  Format string brackets by  Property accessor accessibility modifiers by  Conditional (ternary) operator (?:) by  checked and unchecked operators by  implicit and explicit operators by    Language Features   Nullable types by  Anonymous types by  __makeref __reftype __refvalue by  Object initializers by  Format strings by  Extension Methods by  partial methods by  Preprocessor directives by  DEBUG pre-processor directive by  Operator overloading by  Type inferrence by  Boolean operators  by  Pass value-type variable as interface without boxing by  Programmatically determine declared variable type by  Static Constructors by  Easier-on-the-eyes / condensed ORM-mapping using LINQ by  __arglist by    Visual Studio Features   Select block of text in editor by  Snippets by      Framework   TransactionScope by  DependantTransaction by  Nullable<T> by  Mutex by  System.IO.Path by  WeakReference by    Methods and Properties   String.IsNullOrEmpty() method by  List.ForEach() method by  BeginInvoke(), EndInvoke() methods by  Nullable<T>.HasValue and Nullable<T>.Value properties by  GetValueOrDefault method by    Tips & Tricks   Nice method for event handlers by  Uppercase comparisons by  Access anonymous types without reflection by  A quick way to lazily instantiate collection properties by  JavaScript-like anonymous inline-functions by    Other   netmodules by     by     by


Automate Fixed Width Page, length > some minimum length, but only as long as needed

I am trying to automate the solution proposed by egreg to  by hooking into \begin{document} and \end{document}.  So, egreg's solution works fine:  \documentclass{article} \def\MinimumPaperHeight{12cm} \usepackage{geometry} \geometry{paperwidth=\MinimumPaperHeight,paperheight=\maxdimen,margin=1cm} \usepackage{lipsum}  \begin{document} \setbox0=\vbox{ \lipsum[1-6] } \dimen0=\dp0 \pdfpageheight=\dimexpr\ht0+2cm\relax \ifdim\pdfpageheight<\MinimumPaperHeight \pdfpageheight=\MinimumPaperHeight \fi \unvbox0\kern-\dimen0 \end{document}   But can't seem to get this to work:  \documentclass{article} \def\MinimumPaperHeight{12cm} \usepackage{geometry} \geometry{paperwidth=\MinimumPaperHeight,paperheight=\maxdimen,margin=1cm} \usepackage{lipsum} \usepackage{environ}  \NewEnviron{MyBox}{     \setbox0=\vbox{\BODY}% }{%     \dimen0=\dp0%     \pdfpageheight=\dimexpr\ht0+2cm\relax%     \ifdim\pdfpageheight<\MinimumPaperHeight \pdfpageheight=\MinimumPaperHeight \fi%     \unvbox0\kern-\dimen0% }  \AtBeginDocument{\begin{MyBox}} \AtEndDocument{\end{MyBox}}  \begin{document} \lipsum[1-6] \end{document}   Hooking into \AtBeginDocument is per this solution on .


Converting accented characters into latin without compromising ElementTree

I'm trying to figure out how I can replace all accented characters (å, é, í...) with their latin correspondants (a, e, i respectively) and I've tried several ways of doing this, but they all do something beyond my comprehension that makes it impossible for ElementTree to later convert with .fromstring().   I also have to escape ampersand characters, but that I have figured out.   Relevant syntax:  # -- coding: utf-8 --  import xml.etree.ElementTree as ET import os import re  path = "C:\\Users\\SuperUser\\Desktop\\audit\\audit\\saved\\audit"  root = ET.Element("root")  for filename in os.listdir(path):     with open(path + "\\" + filename) as myfile:         lines = myfile.readlines()      for line in lines:         line = re.sub(r"&(?!#\d{3};|amp;)", "&amp;", line)         xmlVal = ET.fromstring(line)   It is on this last line that the error occur, where it has with other solutions complained with a UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 161: ordinal not in range(128), or a similar error.


Emission light creates grainy and blurry shadow

I encountered a problem with emission light and shadow I get after rendering. Namely, I create the cell light as you can see in screenshot, and gave them emission material as light source. Also, I create reflection background plate.  I tried everything in Cycles mode of rendering...without Denoising (I get really grainy render), with Denoising default setup (grainy effect just get blurred but it's still visible)...increasing the Radius value to max (I get combination of grainy and blurry render).    Any suggestion, what to change to get clear photo realistic image?  Thanks.


How do I make jquery image replacement on screen size dynamic instead of only on refresh?

I have a jquery statement that replaces an image based on screen size    It only works on refresh though. I want it to automatically run when the user resizes their screen past my set of parameters.  I can't figure out how to do this.   JQUERY


How can I add named arguments in a C# console application's main?

I would like to create a .NET C# application that takes a few parameters as arguments but deduced by name similar to how dism.exe accepts it's arguments.  So for example I can run it in the following fashion :  myapp.exe /host:<host.com> /db:<db_test> /user:<username> /pass:<password> myapp.exe /help   or it could be   myapp.exe --host <host.com> --db <db_test> --user <username> --pass <password> myapp.exe --help   I've tried   static void Main(string[] args)   but this expects parameters like   myapp.exe <host.com> <db_test> <username> <password>   So the user might easily confuse the order  Any ideas if this is possible?


Why do some users have an association bonus even if they are not in any other Stack Exchange sites?

Why do some users have an association bonus even if they are not in any other Stack Exchange sites (as shown in their profile)? P.S.- I came across many users recently (like  or ).


Show that if $G$ is Hamiltonian, then $L(G)$ is Hamiltonian. Attempt: For any graph, we can relabel the vertices.  For a graph $G$, then we must have a Hamiltonian cycle $(1, 2, \ldots , n)$. Now, I think it is just a matter of guaranteeing that in $L(G)$ there is a cycle $((1,2), (2,3), \ldots )$.


How to count multiple values of a column as one group?

I have a table main with the following rows:      id |  name  | rank ----+--------+------   1 | Ali    | a   2 | Sami   | b   3 | Khan   | c   4 | Kamran | d   5 | Imran  | e   6 | Asad   | a   7 | Nawid  | v   8 | Jamil  | c   9 | Usman  | j   I want to count rows with certain values in column rank. For example, I want to group values as follows:   Values (a,b,v) should come in one group by name myvalues. Values (c,d,j) should come in another group by name yourvalues. Value (e) should come to another group by name extravalues.   My desired result:    myvalues | yourvalues | extravalues    4     |     4      |      1   myvalues counts 4 because it consists of (a,b,v). There are 2 occurrences of a, 1 occurrence of b and 1 of v - a total of 4. The same is the case with yourvalues which consists of (c,d,j) and the occurrences of these values makes a total of 4. And the last group extravalues consists of (e) and counts only 1 row.


I am searching code in java for fetching or synchronizing my local PC system time into my application.


how to measure the instruction count during execution?

I want to mesure how much instruction are executed in method example.  int a=0; functionTest(); a=getCountInstruction() // return the number of instruction executed until now.   Their any way to do it using Profiler or some Classes ?


Making int array in parallel to java string array

The following code creates a string array 'one' as [c, a, t, a, n, d, d, o, g]. Now I want to create an int array 'two' in which place of every 'a' is  3 and all other places are filled by 5 forming   int two= {5, 3, 5, 3, 5, 5, 5, 5, 5}   but the code is giving  every element equal to 5, so it prints as   5 5 5 5 5 5 5 5 5 :   The code I used starts here:      import com.google.common.collect.ObjectArrays; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.apache.commons.lang3.ArrayUtils;  public class StringInt {   public static void main(String[] args) {        String str= "cat and dog";       String[] word = str.split("\\s");        String[] one = new String[0];       for(int i=0; i<word.length; i++){            one = ArrayUtils.addAll(one, word[i].split("(?!^)"));       }           System.out.println("One : " + Arrays.toString(one));          int[] b = new int[one.length];          for(int j=0; j<one.length; j++){             if(one[j]=="a"){                 b[j]=3;              } else {                 b[j]=5;              }             System.out.print(b[j]+" ");            }          }    }   Being new to programming and java I need help to rectify this code to get the required output:  5  3  5  3  5  5  5  5  5


How do I run my Java program outside of eclipse as an .exe file

I want to run my java program outside of eclipse as an .exe file, I am very new to programming so I just wanted to know if there's an easy and free way of converting my program into an exe file after exporting it.


In relation to this question , I'm trying to prove that $\bf R(a \times b) = R(a) \times R(b)$ for any given rotation $\bf R$ in $\mathbb{R}^3$.   Edit: If one can prove that this holds for the unit vectors (e.g. $\bf R(\hat j) \times R(\hat k) = R(\hat i)$) then that's all there is to it, given the distributivity of cross product and linearity of $\bf R$.


Can one avoid AC in the proof that in Noetherian rings there is a maximal element for each set?

More specifically, I just want to prove that in a Noetherian (even Dedekind) ring, every ideal in contained in a maximal ideal. Is the axiom oh choice needed here? The usual proofs (for general rings use Zorn's lemma; for Noetherian rings one can build an infinite ascending chain if there is no maximal element) seem to rely on it.  If the axiom of dependent choice can be avoided as well, even better.


How do I avoid the prompt: Multiple identities can be used for authentication?

I'm setting up a continuous deployment user, agent, on my Ubuntu Server 16.04 instance.  He is in the sudo group. He has also been added to visudo as such:  agent ALL=(ALL) NOPASSWD: /bin/systemctl   I want him to be able to start and stop systemd services without a interactive console session.  However when he executes the command systemctl stop my.service, he gets the following message:  Authentication is required to stop 'my.service'.  Multiple identities can be used for authentication:  1.  Ubuntu (ubuntu) 2.  ,,, (user1) 3.  ,,, (user2) 4.  ,,, (agent)   Choose identity to authenticate as (1-4):   This defeats my CI/CD software.  Is there any way that I can prevent this screen from showing up? My sudoers file is default, excepting that one modification:  root    ALL=(ALL:ALL) ALL  # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL  # Allow members of group sudo to execute any command %sudo   ALL=(ALL:ALL) ALL  agent ALL=(ALL) NOPASSWD: /bin/systemctl


Integrability of Thomae's Function on $[0,1]$.

Consider the function $f: [0,1] \to \mathbb{R}$ where f(x)= \begin{cases} \frac 1q & \text{if } x\in \mathbb{Q} \text{ and } x=\frac pq \text{ in lowest terms}\\ 0 & \text{otherwise} \end{cases}  Determine whether or not $g$ is in  $\mathscr{R}$ on $[0,1]$ and prove your assertion. For this problem you may consider $0= 0/1$ to be in lowest terms.  Here's an attempt. I may have abused a bit of notation here, but the ideas are there.   Proof: Let $M_i = \sup \limits_{x \in [x_{i-1},x_i]} f(x)$.  Notice first that the lower Riemann sums are always $0$, since every interval contains an irrational number. Thus, to prove $f \in \mathscr{R}$, it suffices to prove that, given any $\epsilon >0$, $\sum \limits_{i \in P} M_i \Delta x_i < \epsilon$ for some partition.     Let $\epsilon > 0 $ and $M  > \frac{2}{\epsilon}$. We first show that there exists $\eta(x,\frac{1}{M})$ so that $|f(x) - f(y)| < \frac{1}{M}$ if $|x-y| < \eta$. Fix $x \in (\mathbb{R} \setminus \mathbb{Q}) \cap [0,1]$. Now, consider the set $$R_{M} := \{ r \in \mathbb{Q} : r = \frac{p}{n}, n \leq M, p \leq n, p \in \mathbb{N} \}.$$ Clearly this set is finite, enumerate it as $\{q_1,\ldots, q_m\}$. So, let $$\eta(x,\frac{1}{M}) = \min_{i=1,\ldots, m} |x- q_i|.$$ We see then, $|f(x) - f(y)| < \frac{1}{M}$ on this $\eta$-neighborhood.    After we choose that $\eta$ so that $x \in (\mathbb{R} \setminus \mathbb{Q}) \cap [0,1]$, is continuous in a $\eta$-neighborhood, we see  $$ A:= [0,1] \setminus R_M \subset \left( \bigcup_{ x \in ( \mathbb{R} \setminus \mathbb{Q}) \cap [0,1]} B_{\eta(x)} (x) \right) \cap [0,1].$$  Since $A$ is compact, we may take finite sub-covering, and let $\delta = \min \limits_{i=1,\ldots,n} \{\eta(x_i)\}$. Take a partition $P_1$ of $A$ so that $\Delta x_i < \delta$. Since $R_M$ is non-empty, we can take a partition $P_2$ of $R_M$ so that $\Delta x_i < \frac{\epsilon}{2m}.$ Moreover, we see that,  on $[0,1]$, $f$ is at most $1$. Let $P = P_1 \cup P_2$. Thus,   \begin{eqnarray*} \sum_{i \in P} M_i \Delta x_i &=& \sum_{i \in P_1} M_i \Delta x_i + \sum_{i \in P_2} M_i \Delta x_i \\ &\leq& \frac{1}{M} \sum_{i \in P_1} \Delta x_i + \sum_{i \in P_2} \Delta x_i \\ &<& \frac{\epsilon}{2} + \frac{\epsilon}{2} = \epsilon  \end{eqnarray*}    Comments?    EDITED I think I resolved the issue.


I recently tried to delete unoDNS from my laptop. A member of their team gave me some commands to input in a terminal. It looked like it changed the nameserver address back to 8.8.8.8. But after I restarted my laptop I cant connect to internet at all. I am using ubuntu 14.04. Please help.


What is the number of ways to select ten distinct letters from the alphabet $\{a, b, c, \ldots, z\}$, if no two consecutive letters can be selected?   There are a couple of formulas that I could use, but I am not sure how to use them.     The number of combinations of a given length that use elements from a given set, allowing repetition and with no missing elements in other words, each element of the given set occurs at least once in each combination: $\binom{k-1}{n-1}$ where where $n$ is the number of elements in the given set and $k$ is the length of the combination.   OR     The number of combinations of a given length that use elements from a given set, allowing repetition: $\binom{n+k-1}{n-1}=\binom{n+k-1}{k}$ where $n$ is number of elements in the given set and $k$ is the length of the combination.   Please help me understand what I should do and how to go about solving this question?


How to delete an folder thus name contains a control character?

TL;DR:  A (kinda bad) python setup asked me for a path. I started typing,backspace, backspace, typed something other. Okay this setup created a folder with the following name (according to ls):     ?[3~?[4~foo   Obviously the name contains some control characters. The parent directory contains some other very important folders that I can't move to execute a rm -rf *  Okay, so:  How to delete the folder?  I should mention I only have SSH access - there is no GUI.  mv "?[3~?[4~foo" x won't work obviously since these are control characters.


Can I use an if statement to detect if bash and dash are being run interactively?

After looking around for a while I've found several good pages describing how to check and see if a bash script is running interactively and , but one of them that I keep seeing over and over is checking the variable $- for the presence of i to signify that it is interactive.  I'm looking for a way to use an if statement that would work with both /bin/bash and /bin/sh (which is typically aliased to /bin/dash on Ubuntu systems), or in fewer words "an interactive if test that is universal as possible"  For bash it seems these things should work:  Case Statement  case "$-" in *i*)    echo This shell is interactive ;; *)  echo This shell is not interactive ;; esac   If Statement  if [[ $- == *i* ]] then     do_interactive_stuff fi   But $- is apparently not set in dash. Possibly because $- is supposed to be the  variable which      was originally a ksh construct adopted into Bash, and unfortunately it does not seem to work reliably in Bash scripts... [ for it's intended purpose however] ...One possible use for it is to have a script self-test whether it is interactive.   So is there an (relatively simple) if test that can be used both with bash and dash?  Or am I just "doing it wrong?"  ps: I have been under the impression that dash is faster than bash, and unless the script needs "bash specific" functions it would be better to hashbang it as #!/bin/sh and let it use the system-default shell. I get that checking for an interactive shell in the way mentioned above is "bash specific" but it seems odd to think there is not a more universal way. In the script I'm working on I don't need any other bash-specific functionality.


Is there a way for me to find all my installed programs in one place? When using the Launcher, I have to type in the letters of the alphabet to find installed programs.


How to run unit test automatically in VS2013

i use VS2013. I have a "normal project" and a testproject with some testcases to the "normal project". I can run the tests in test project - so far so good. But now, I want to run the tests automatically, when I rebuild my "normal project". Any ideas?  Thanks.


Does having two pages under different URLs affect SEO?

I've always thought that having duplicate content within a site is a bad thing for SEO. However, after doing some research I found that Google doesn't have a penalty for having duplicate content and the only downside is how links are shown in the search engines.   So my question is, If i have the product page under www.example.com/products/walls/product-page.html and www.example.com/products/floors/product-page.html will this have a negative effect on my rankings?  As the product page is relevant to both walls and floors, it makes sense to have them under separate URLs.


C: getting stack overflow when array grows to more than 6 elements

I'm getting a stack overflow error message when running the below code, but ONLY when more than 6 digits are entered. I think the code is fairly simple and all I've been able to find in the way of help so far are answers about "memory allocation" which I don't yet have any concept of.  int main(void) {        printf("Please enter card number for check: \n");     long long credit_card = GetLongLong();     int card_length = log10(credit_card)+1;     int cred_array[card_length];     long long dec = 1;     int i;      printf("credit_card: %lli\n",credit_card);     printf("card_length: %i\n",card_length);     for (i = (card_length-1); i>-1; i--)     {         cred_array[i]=(credit_card/dec)%10;         dec *=10;     }     int luhn_array[(credit_card-(credit_card % 2)) / 2][2];     int j;     int n = 0;     for(j = card_length-2; j >= 0; j-=2)     {         luhn_array[n][0]=cred_array[j]*2%10;         luhn_array[n][1]=cred_array[j]*2/10;         n++;     } }


Hostelworld is currently the dominating system to book hostels in the world. There used to be hostelbookers but it was bought and now both sites resemble the same.  Not to say that the website isn't good but I often used both to search different offers and double check information like hostel ratings and prices or to do some type of search that one or the other allowed since they had different functionality at search level.  Since they now are the same and look the same, is there actually an alternative?


Biot - Savart Law and time - variable current

Is the Biot Savart law valid also with currents which are functions of time (for instance a sine wave)?


Is there a name for the number $$\sum_{p\ prime} \frac{1}{p!}=0.6751984379111143419005616\cdots$$ ?   I also wonder whether this number has been studied and in particular , whether it is known whether the number is rational, algebraic irrational or transcendental.


How do I cd the remote server directory mounted through File/Nautilus?

I mount my server drive through Nautilus as  describes, then how do I cd the directory in Terminal? I don't want to double click a folder again and again.


How to remove/clear the old game data in Game Center?

I can't remove the old data in iCloud or even in Game Center. I like to play games like Hay Day and Township. I have already uninstalled the games and chose to remove the data but when I reinstall the same game, my level still is the same and won't become level 1 and start all over.  How can I fix this problem?  iPad mini, iOS 7


SQL - create array of values matching another value

UPDATE: WORKING SOLUTIONS Getting an array type: column1, CONCAT('[', GROUP_CONCAT(column2), ']') AS array FROM table GROUP BY column1  And this returns a column named array with following results: [x,y,z] Getting an object type: column1, CONCAT('[', GROUP_CONCAT(CONCAT('{ property_A:', column2, ', property_B:', column3, '}')), ']') AS object FROM table GROUP BY column1  And this returns a column named object with following results: [{property_A: x, property_B: z},{property_A: y, property_B: w}] ORIGINAL QUESTION I have SQL table like that: N | B 1 | z 1 | w 1 | y 2 | x 2 | k  how has to be the query that returns something like that: N | C => alias of collection of B 1 | [z, w, y] 2 | [x, k]  Thanks


How to switch render source (VSE or Camera)?

If you create a scene for the Video Sequence Editor and start working on a project Blender will render the output from the VSE. But if you want to later switch it to render your 3D scene again (the camera output) where is the setting to select the source?  Usually I keep a separate .blend for VSE edits so I don't need to switch, but I feel like I ought to learn how to do this as it's pretty basic. I would expect to find this in the Render context but I see no place to specify the source.  Thanks.


Is there any sort of mechanical reason to use a trident over a spear?

First, let's take a look at the Spear (D&D 5e Player’s Handbook p. 149):  Spear (Simple Melee Weapon) Cost: 1 gp Weight: 3lbs Damage: 1d6 piercing Properties: Thrown (range 20/60), Versatile (1d8)  I ask this because, when you check the Trident (D&D 5e Player’s Handbook p. 149)...  Trident (Martial Melee Weapon) Cost: 5 gp Weight: 4lbs Damage: 1d6 piercing Properties: Thrown (range 20/60), Versatile (1d8)  It does the same thing, but it's more expensive and heavier. So... Is there any reason for you to use a Trident instead of a Spear? I mean mechanically speaking, of course. Because everybody knows that tridents are way cooler.


What's the motivation behind Generalised Eigenvectors?

Reading the Wikipedia article on the topic, when you have a defective matrix that lacks a full rank eigenspace, you can form 'generalised eigenvectors' by looking at the equation $(A - \lambda I)v = v_\lambda$, where $v_\lambda$ denotes a true eigenvector and $v$ a generalised one (corresponding to the same eigenvalue).  Opening up the expression, we're looking for a vector that maps to a multiple of itself plus the true eigenvector, ie. $Av = \lambda v + v_\lambda$, which makes some sense when considering an action like a shear transformation, but it's a little hazy.  My questions are: why is this a good definition for these generalised vectors, and why exactly does it guarantee linear independence? If we have, say, n different eigenvalues with certain algebraic multiplicities, what guarantees that their respective generalised vectors do not overlap? Is it something to do with the way the nullspace maps these things?


B1/B2 visa holder returning to the US just six months after first visit

I have a B1/B2 visa, valid for a 10-year period.   I traveled to the US for the first time in 2016, stayed for four months, and left in August 2016.   I am planning to return in February 2017, just six months after my departure.  I'm concerned about how that will seem when I arrive at the border, and whether I will be questioned about my reasons for returning so soon.  Am I risking losing my visa since I just spent 4 months in the US and am going back so soon?


Let $x_1,x_2..x_n$ be real numbers in $[-1,1]$ with $\sum_{i=1}^{n} {x_i}^3=0$ then find maximum value of :$A=\sum_{i=1}^n x_1$

Let $x_1,x_2..x_n$ be real numbers in $[-1,1]$ with $$\sum_{i=1}^{n} {x_i}^3=0$$ then find maximum value of :$$A=\sum_{i=1}^n x_1$$   As i don't know how to start i give a brief background of the problem along with some of my intuition. Background we define for each $i$: $b_i={x_i}^3$. Hence we require the minimum of: $\sum {(b_i)}^{1/3}$.The most interesting part of the problem is that $f(x)={x}^{1/3}$ is convex for all $x<0$ and concave $x>0$. If we assume $b_1,b_2,..b_k$ as negative then we can apply the following lemma with $a=-1,b=0$.  Lemma:Suppose that f(x) is a real convex function defined on $[a,b]$ and $x_1, x_2, ... , x_n$ belonging to  $[a, b]$ such that $ x_1 + x_2+ ... + x_n = S$,then the function $$F=f(x_1)+f(x_2)..+f(x_n) $$ attains maximum value if and only if $n-1$ elements are equal to $a$ or $b$.  But i am stuck on how to handle $b_{k+1}...b_n$ Jensen  would work as by assumption $b_{k+1},b_{k+2}..b_n $ will be postive.But again i don't know how to start.


How to copy code chunk containing unicode character in verbatim environment?

In Julia programming language, one can type Unicode character such as    If I want to copy paste a chunk of code in a tex file. What should I do?  Here is an unsuccessfule attempt:  \documentclass[a4paper, 12pt]{book} \usepackage{verbatim} \usepackage{unicode-math} \begin{document} \begin{verbatim}  Hello world μ x \end{verbatim} \end{document}   In the output, the $\mu$ does not appear:    Edit Ok I did some research and found   \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pmboxdraw}  \begin{document}  \begin{verbatim} verbatim { ├ ─ └ } \end{verbatim}  \end{document}   However, when this is the output I get    Edit 2 I also tried the following code  \documentclass[a4paper, 12pt]{article} \usepackage{fontspec} \setmainfont{Liberation Serif} \setmonofont{Liberation Mono}  \usepackage{verbatim} \begin{document} Hello world  \newline μ  \newline Hello world again  \begin{verbatim} μ x  \end{verbatim}  \end{document}   The font "Liberation Serif" cannot be found / The font "Liberation Mono" cannot be found


Where to find Brazil immigration records of ancestor from Italy?

I'm looking for an ancestor who moved from Italy to Brazil between 1800 and 1900.  Where can I find Brazilian immigration records?


The sentence is:     One of the limitations of liberalization is that it increases the vulnerability of (a/the/no article) domestic market to foreign shocks.   Am I free to use either 'the', 'a', or no article in this sentence? If one is better than the others, please explain why.  And is 'domestic market' together a noun or only 'domestic' is a noun?


Story haunting me: Man marooned on Mars, transformed into Martian

Many years ago, while in my earliest 20's, I read a short story that has haunted me since. I am 70 now, and keep looking for this one story. My husband had a small collection of paperback books featuring short sci-fi stories. All I can remember of this story was a man marooned on (Mars?). He was without food or water, and was dying because of this. He wandered into a long deserted city? settlement? seeking shade as well as food and water. There was a terrible noise, a clanging noise invading his senses. He found a room that had a low trough-like place. He suspected food had come from a faucet device attached to the trough. In his final weakness, he lay down in the trough and passed out. Then he came to, hearing glorious music where the awful, strident clanging noise had once been, and the trough he lay in delivered food to his waiting and upturned snout.  So, in some way he was transformed by the planet, devices on the planet, something, to make him part of the society that used to be, and saved his life. Does ANYONE know the story I speak of?


$x$, $y$ and $z$ are lengths of the sides of a triangle. Prove the following and determine when both LHS and RHS are not an inequality but EQUAL. $$\sqrt{x+y-z} + \sqrt{y+z-x} + \sqrt{z+x-y} \leqslant \sqrt{x}+\sqrt{y}+\sqrt{z}$$


Substituting table salt or sea salt for kosher salt?

The roasted chicken recipe I'm following of course calls for kosher salt, but I don't have any, and getting some is out of the question.  I have sea salt and table salt on hand.  Can I substitute one of those instead, and if so, what is the proper ratio of the kosher salt the recipe calls for to either sea salt or table salt?


If you cast a spell with different effect options twice on the same creature, do multiple castings of the spell stack?

After researching into how spell effects stack, I find some ambiguity regarding certain spells that have multiple possible effects. Notably,  contains updated information from the :  Combining Game Effects (p. 252). This is a new subsection at the end of the “Combat” section:  Different game features can affect a target at the same time. But when two or more game features have the same name, only the effects of one of them—the most potent one—apply while the durations of the effects overlap. For example, if a target is ignited by a fire elemental’s Fire Form trait, the ongoing fire damage doesn’t increase if the burning target is subjected to that trait again. Game features include spells, class features, feats, racial traits, monster abilities, and magic items. See the related rule in the ‘Combining Magical Effects’ section of chapter 10 in the Player’s Handbook.   There are, however, no references in deciding how to determine what "the most potent one" may be when not using raw numbers (such as with paladin auras). This is also applicable to spells like , which inflicts a "natural disease" (and you can be afflicted by multiple natural diseases). If both effects of  cannot influence a character at the same time, how do you determine which one takes effect (assuming both casts are at the same spell level)?


Regularization of linear regression problem

Consider a vector $a \in R^n$. I want to know how I can find analytically the solution of the following optimization problem: $x^* = argmin_{x \in R^n} f(x)$, where $f(x) = ||x-a||_{2}^2 + \lambda ||x||_1$, $\lambda > 0$ and $||.||_p$ is the p-norm in $R^n$.  Thanks in advance.


Why should we wipe disks multiple times?

There exists various ways of destroying the data on a disk. Even simple wipes differ, some disk utilities give these options:   Format (does not actually wipe) Wipe 1 time with zero Wipe 1 time with random bits Wipe 7 times with zero / random bits Wipe 14 times with zero / random bits   Are they implying that data can be reserved somewhere else instead of writing to the disk (even cache exists the data should go to the disk I think), or the disk is totally not trustworthy by providing such options?


I was once shown a shortcut that I can't recall/ find. After pinging an ip, then attempting to ssh into it - the ip was saved into to a variable automagically.  Something like:      ping 10.1.23.4     ...     ssh root@$!   and the ip was replicated in the second line replacing $! without further ado.  So does this ring a bell as to what the actual syntax is? Or was this some special configuration? I believe this was running centos if that is related. tia


are there different meanings of the word "sample"?

As a beginner in probability and statistics I have been confused by usage of the word "sample."   For example in my book on probability we define a sample space $S$, and then we say that $s ∈ S$. I had been reading this as "s is a sample in the sample space S," although technically my book has only said that "s is a possible outcome."  Then later in my book, in discussing the famous , it says that when choosing birthdays for $k$ people, we would "sample" the 365 possible birthdays $k$ times.  So a single sample $s∈S$ would be constructed by $k$ acts of sampling. Can it be said that we construct a sample by sampling in this way?  If the answer is yes then that is fine by me, I just wasn't sure if the word could take on two shades of meaning like that.  Or, if $s$ isn't read as "a sample," then what is the best term for it? An "outcome", as my book seems to suggest?


I have a couple of big text files and in the file UNIQS.txt I have a list of strings to grep from another file. The code I use is  grep -f UNIQS.txt EEP_VSL.uniqs.sam > UNIQ_templates.sam   which does nothing - the file generated is empty. But when I do  grep -F -f UNIQS.txt EEP_VSL.uniqs.sam > UNIQ_templates.sam   it works correctly. This confuses me because I didn't think grep would interpret the entries in UNIQS.txt as regexp patterns without quotes and slashes and so on being in the file (which there aren't). Is it the case in general that if you are getting the patterns from a file then it will automatically think that they are regexp patterns?  Edit: In the UNIQS.txt file, there are newline separated strings of the form  HWI-ST365:215:D0GH0ACXX:2:1101:10034:186783   (called template names) and the file EEP_VSL... tab separated columns, with about 14 columns and the first column is the template name, so basically I want to extract the line corresponding to each template in the file.


In most SE sites, asker has a highlighted background in answers and comments for easy identification. MSE doesn't have such thing. The problem is in the .owner background-color CSS rule that is set for #FFF (aka white) which is exactly the same as well, the white background.  In this screenshot I "fixed" the td background color, but not in comments since td.owner had priority:


How can I manually choose the size of a wide accent? (math mode)

I would like to replace the usual \hat in maths with a larger one, but I do not want it to stretch. The size I want is "the smallest \widehat" (as in $\widehat{.}$). Is there a way to put that one above a wide character like M ($\widehat{M}$ would stretch and give be an even wider hat).  I guess I have a lack of understanding for the mechanism behind accents that extend, so feel free to explain.


Abstract & Inheritance classes NullPointer

Before I begin, here is what I'm working on   a class named "Zoo" which contains the main method an abstract class named "Animal" Several extended classes for class "Animal"   I have the code for "Zoo" posted at the bottom. I keep getting the following error when I run it   Exception in thread "main" java.lang.NullPointerException  at zoo.Zoo.add(Zoo.java:27)  at zoo.Zoo.main(Zoo.java:90)"   If I comment out the second zoo part it works fine. Why am I getting an error for the 2nd zoo? And what can I do to fix it?  public class Zoo  {  private int actual_num_animals; private int num_cages; private Animal[] animals;   Zoo() { actual_num_animals = 0; num_cages = 20; animals = new Animal[num_cages]; }  Zoo(int num_cages) { this.num_cages = num_cages; }  // adds an animal to Zoo public void add(Animal a) { for(int i = 0; i < num_cages; i++) {     if(animals[i] != null && animals[i].equals(a) == true)     {         System.out.println(a.getName() + " is already in a cage!");         break;     }     else if(animals[i] == null)     {         animals[i] = a;         actual_num_animals++;         break;     } }  }  // returns the total weight of all animals in zoo public double total_weight() { double sum = 0;  for(int i = 0; i < actual_num_animals; i++) {     sum += animals[i].getWeight(); } return sum; }  //Print out the noises made by all of the animals. public void make_all_noises() { for(int i = 0; i < actual_num_animals; i++) {     animals[i].makeNoise();     System.out.println( animals[i].makeNoise()); } }  //prints the results of calling toString() on all animals in the zoo. public void print_all_animals() { for(int i = 0; i < actual_num_animals; i++) {     System.out.println(animals[i]); } }  public static void main(String[] args) { Zoo z = new Zoo(); Snake sly = new Snake("Sly", 5.0 , 2, 2); Snake sly2 = new Snake("Slyme", 10.0 , 1, 2); Cow blossy = new Cow("Blossy", 900., 5,  10); Horse prince = new Horse("Prince", 1000., 5, 23.2);  // Following not allowed because Animal is abstract //Animal spot = new Animal("Spot", 10., 4);  z.add(sly); z.add(sly2); z.add(blossy); z.add(prince);  z.make_all_noises(); System.out.println("Total weight = " + z.total_weight()); System.out.println("**************************"); System.out.println("Animal Printout:"); z.print_all_animals();    System.out.println("********* Now we will make the Second Zoo"); Zoo z2 = new Zoo(5); z2.add(sly); z2.add(sly2); z2.add(blossy); z2.add(prince); z2.add( new Horse("Warrior", 1200, 6, 25.3)); z2.add( new Horse("Harry", 1100, 4, 21.3)); System.out.println("Total weight of z2="+z2.total_weight()); z2.make_all_noises(); z2.print_all_animals();  } }   If needed I can post the "Animal" class and the other classes that extend from it.


While doing science homework, I came across something I found strange. The term "eukaryotic" had a as the article instead of an. I was looking at:     A eukaryotic cell...   I learned that if a word started with a vowel, it should be an instead of a. My bio textbook says otherwise.   Why is this?


Change of Root Password for PHPMyAdmin Renders Unexpected Output on CLI

I am unable to login to my root account on phpmyadmin on Ubuntu 14.04.4.  I have perused the following and followed the instructions there:       I am getting the following error (Access denied):  root@phpmyadmin-8gb-sgp1-01-13feb17-2327hrs-8gb-sgp1-01:~# sudo service mysql stop stop: Unknown instance:  root@phpmyadmin-8gb-sgp1-01-13feb17-2327hrs-8gb-sgp1-01:~# sudo mysqld --skip-grant-tables & [1] 12052 root@phpmyadmin-8gb-sgp1-01-13feb17-2327hrs-8gb-sgp1-01:~# 170226  1:11:55 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead. 170226  1:11:55 [Note] mysqld (mysqld 5.5.49-0ubuntu0.14.04.1) starting as process 12053 ... mysql -u root mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)   How do I solve this?  NOTE: even with "sudo mysql -u root mysql" I have the same error:  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)


What it's the best way to generate a string of \t's in C#  I am learning C# and experimenting with different ways of saying the same thing.    Tabs(uint t) is a function that returns a string with t amount of \t's  For example Tabs(3) returns "\t\t\t"  Which of these three ways of implementing Tabs(uint numTabs) is best?  Of course that depends on what "best" means.     The LINQ version is only two lines, which is nice.  But are the calls to Repeat and Aggregate unnecessarily time/resource consuming? The StringBuilder version is very clear but is the StringBuilder class somehow slower? The string version is basic, which means it is easy to understand.   Does it not matter at all?  Are they all equal?   These are all questions to help me get a better feel for C#.     private string Tabs(uint numTabs) {     IEnumerable<string> tabs = Enumerable.Repeat("\t", (int) numTabs);     return (numTabs > 0) ? tabs.Aggregate((sum, next) => sum + next) : "";  }    private string Tabs(uint numTabs) {     StringBuilder sb = new StringBuilder();     for (uint i = 0; i < numTabs; i++)         sb.Append("\t");      return sb.ToString(); }    private string Tabs(uint numTabs) {     string output = "";     for (uint i = 0; i < numTabs; i++)     {         output += '\t';     }     return output;  }


Geometrical Meaning of derivative of complex function

What's the geometrical meaning of $f'(z)$ in complex analysis, as we know in real analysis $f'(x)$ has meaning ie. Slope of curve or gives max/ min. But what does derivative $f'(z)$ has geometrical meaning in complex analysis


What is the proof that $\sum_{n=1}^\infty \frac{1}{P_n -1} =1$

Proving that  $$\sum_{n=2}^\infty \frac{1}{P_n -1} =1$$ Where $P_n$ is the nth perfect power.  I think Goldbach has proved this, and I can't even find his proof anywhere. All the results are of the Goldbach conjucture  and that none of this man's other works is even visible through that. Kind of sad. Also the , the oeis on perfect powers has said the same that Goldbach proved it but no reference nor citation to back it up. Any help?  Also is it also possible to find like;  $$\sum_{n=1}^\infty \frac{1}{P_n^2 -1} $$ etc with powers too?


"His graduation to dictator took years" — wny no article in front of "dictator"?

From an :     His graduation to dictator took years. In that time, he dismantled Russia's electoral system, took over its media, saw many of his opponents killed, jailed or forced into exile, created one of the most ruthlessly corrupt government systems in history, made peaceful protest punishable by jail time, waged a long and brutal war on his own country's territory and a short one against a neighboring country, Georgia, a piece of which Russia bit off in 2008.   Why isn't there an indefinite article in front of dictator?


I want to align two numbers in two different rows the decimal point.    I do see a link for that here:   However, I don't understand how to incorporate that into my code.  What follows is a reduced version of my code.  \documentclass[12pt,english]{article} \usepackage{longtable} \usepackage{fullpage} \usepackage{times} \usepackage[flushleft]{threeparttable} \usepackage[font=large,labelfont=bf,tableposition=top,textfont=bf]{caption} \usepackage{tabularx} \usepackage{booktabs} \newcolumntype{C}{>{\centering\arraybackslash}X}  \begin{document}  \clearpage \newpage \begin{table}[!ht] \caption{Table Title} \def\arraystretch{1.05} \vspace{-0.2cm} \begin{threeparttable} \small \begin{tabularx}{\textwidth}{l*{10}{C}} \hline \hline \addlinespace & (1)  \\   Variable Name & 0.1234566  \\ & (0.1234566) \\ \hline \hline \addlinespace  \end{tabularx} \begin{tablenotes} \vspace{0.1cm} \footnotesize{  \item \noindent \hspace{-1.8mm} Notes:    \noindent Sources:   } \end{tablenotes} \end{threeparttable} \end{table}  \end{document}


Some of my references don't work even though they are spelled correctly and in the .bib-file

My document is the report class and I only have this issue in one of my subsections. This is an example of a reference that does not work:     @article{Wang2007,       author  = {Wang, J. J., Sanderson, B. J., & Wang, H.},       journal = {Mutation research},       title   = {Cyto- and genotoxicity of ultrafine TiO2 particles in cultured human lymphoblastoid        cells},       year    = {2007},       number  = {2},       pages   = {99–106},       volume  = {628},       doi     = {10.1016/j.mrgentox.2006.12.003},     }  This is an example of a reference that does work in the same subsection:     @Article{Fartkhooni2016,       author   = {Fatemeh Mohammadi Fartkhooni; Ali Noori; Abdolrasool Mohammadi},       journal  = {International Journal of Life Sciences},       title    = {Effects of Titanium Dioxide Nanoparticles Toxicity on the Kidney of Male Rats},       year     = {2016},       number   = {1},       pages    = {65-69},       volume   = {10},       doi      = {https://doi.org/10.3126/ijls.v10i1.14513},       keywords = {Nano-TiO2, Kidney tissue, Renal factors, Toxicity},     }


Please use another captcha than reCaptcha

ReCaptcha gets worse and worse. Often I need to solve 12 image puzzles before ReCaptcha acknowledges me as a human.  There are a lot of nice CAPTCHA solutions are out there, most self-hosted (which allows for nice data protection as well). Choose any reasonable one except ReCaptcha.  In the  near future, ReCaptcha will lock out many users anyway, see  In an informal survey, people noticed that there are many different browser combinations, which are just untrusted for Google. They seem to get a lot of ReCaptcha v2 image puzzles (what do you deem acceptable? I think 12 is way too many) and just fail v3.  So please use a different CAPTCHA. Possibly just one with old-style garbled text, which is generated serverside. Hosting your own CAPTCHA isn't too complicated, complies with data retention laws (especially GDPR), and allows setting a reasonable threshold instead of just accepting what Google thinks how many you need to solve today.  Here is the


2015-12-03 02:02:18,961 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None' 2015-12-03 02:02:19,303 - softwarecenter.ui.gtk3.app - INFO - building local database 2015-12-03 02:02:19,303 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open() Traceback (most recent call last):   File "/usr/bin/software-center", line 130, in <module>     app = SoftwareCenterAppGtk3(options, args)   File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 313, in __init__     self._rebuild_and_reopen_local_db(pathname)   File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 532, in _rebuild_and_reopen_local_db     rebuild_database(pathname, debian_sources, appstream_sources)   File "/usr/share/software-center/softwarecenter/db/update.py", line 1148, in rebuild_database     cache.open()   File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 261, in open     self._cache = apt.Cache(progress)   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 107, in __init__     self.open(progress)   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 155, in open     self._list.read_main_list() SystemError: E:Malformed line 4 in source list /etc/apt/sources.list.d/google-chrome.list (dist parse)   help me


Does anyone have a T_PAAMAYIM_NEKUDOTAYIM?


Using 18.04 LTS. Update this morning shows a 10.2 Mb file to be downloaded but there are no details of the update nor any technical description. Seems suspicious to me, is it?


Why are "Questions that may already have your answer" search results better than the actual search results?

This is a search result for         I realize (from seeing the above search results) that my question hasn't been asked before. But as soon as I start typing, all the relevant results appear in the Questions that may already have your answer (which should've appeared on my first search!!)        Just for fun,         I no longer bother with searching first and just start typing my question instead.   Why does the [Questions that may already...] functionality work better than the search bar?


Continuity of differentiable function $x^2\sin(1/x)$

Assume this function has a value $0$ at $x=0$.  If the right hand derivative of a derivable function is equal to the right hand limit of the derivative function (same for the left), why aren't functions like the one above continuously differentiable?  For a function to be continuous, limits should be  finite and equal to value at that particular point.  For this function derivative using first principle yields $0$.  The RHD, LHD is $0$, I think. So why isn't the derivative continuous?  For finding the RHD and LHD, I have seen answers resorting to using known derivatives. My question is: why don't we use the first principle itself? Why do we get different answers then?


How to prevent a linebreak before align/equation environment in itemize?

The following code  \documentclass{article} \usepackage{amsmath} \begin{document}  \begin{itemize} \item  \begin{align} a&=b\\ &=d \end{align} \item  \begin{equation} a=b\\ =d \end{equation} \end{itemize}  \end{document}   produces    How to avoid the linebreak after the bullet and have the equations (1 and 3) begin on the same line (with the bullet)? I should perhaps emphasize that I want to preserve the numbering of the equations.


Best solution for XmlSerializer and System.Drawing.Color

System.Drawing.Color objects apparently won't serialize with XmlSerializer. What is the best way to xml serialize colors?


I am trying to get a  working on ubuntu, sadly when it gets plugged in it seems to come up as a storage device rather than an interface. I have tried installing numerous drivers from many different sources (to list a some):      This is the output of the lsusb command: Bus 003 Device 006: ID 0bda:c811 Realtek Semiconductor Corp.  dmesg output on plugging in the usb: [  +0.000666] usb-storage 3-2.4:1.0: USB Mass Storage device detected [  +0.000209] scsi host2: usb-storage 3-2.4:1.0 [  +1.020215] scsi 2:0:0:0: Direct-Access     Realtek  Driver Storage   1.00 PQ: 0 ANSI: 0 CCS [  +0.000585] sd 2:0:0:0: Attached scsi generic sg1 type 0 [  +0.000411] sd 2:0:0:0: [sdb] 16000 512-byte logical blocks: (8.19 MB/7.81 MiB) [  +0.002656] sd 2:0:0:0: [sdb] Write Protect is off [  +0.000003] sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00 [  +0.002631] sd 2:0:0:0: [sdb] No Caching mode page found [  +0.000010] sd 2:0:0:0: [sdb] Assuming drive cache: write through  dmesg output on command sudo usb_modeswitch -KW -v 0bda -p 1a2b   +0.009662]  sdb: [  +0.006413] sd 2:0:0:0: [sdb] Attached SCSI removable disk [Jul 7 10:05] usb 3-2.4: USB disconnect, device number 7 [  +0.223896] usb 3-2.4: new high-speed USB device number 8 using xhci_hcd [  +0.106195] usb 3-2.4: New USB device found, idVendor=0bda, idProduct=c811 [  +0.000003] usb 3-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [  +0.000002] usb 3-2.4: Product: 802.11ac NIC [  +0.000002] usb 3-2.4: Manufacturer: Realtek [  +0.000001] usb 3-2.4: SerialNumber: 123456  modinfo: $ modinfo 8812au filename:       /lib/modules/4.15.0-109-generic/updates/dkms/8812au.ko version:        v4.3.8_12175.20140902 author:         Realtek Semiconductor Corp. description:    Realtek Wireless Lan Driver  dkms status: rtl8812au, 4.3.8.12175.20140902+dfsg, 4.15.0-109-generic, x86_64: built rtl8812au, 5.6.4.2, 4.15.0-109-generic, x86_64: installed rtl8812au, 5.6.4.2, 4.15.0-99-generic, x86_64: installed  Does anyone have any idea what I am doing wrong? I am not the best when it comes to drivers so I could be doing something... very silly...?


Ubuntu 16.04: Compiz uses way too much cpu

I have a problem with compiz since a recent update, it uses 160 to 170% of cpu according to top, the laptop's fan is going full speed. And it goes up with time, after 30 minutes it's over 270%.  Here's the apt log from when it started:   About my laptop, it has 16GB RAM, Intel® Core™ i7-6700HQ CPU @ 2.60GHz × 8 processor, a Quadro M1000M graphic card and running 64-bits ubuntu 16.04.1 LTS.  I can see with nvidia-smi that compiz is using the graphic cards (another member here had issues with their drivers).  Changing options from CCSM did not solve the issue.  Any idea how to fix this?   EDIT: Tried metacity --replace to temporarily use something else than compiz, but compiz keeps on running anyway even if I try to kill it before.  None of the answers marked as duplicate help me in any way, it seems to be a completely different issue (no more related to those 3 or 5 years old you mentioned).


Font in editor for editing posts has become proportional

When ing a post, the font in the edit box with source code for the post is proportional:    This does not happen when  or answers:    Tested with the latest Firefox and Safari on macOS High Sierra.


How does an electric field come inside a conducting wire inside the circuit?

This has been a really great confusion for me now ....  Many places I have read in books that when a potential difference is applied across the ends of a wire a constant electric field is generated inside it which drives the current through it...  My question is how is this electric field generated? Why is it constant in magnitude throughout the wire? What is the mechanism of flow of current inside the wire?  And  What all things happen inside the conductor just after closing the switch and before the low of constant current through it?


If a random sample all came out positive, what can be inferred about the population?

Specifically, let's say I take a random sample of 20 products from a manufacturing batch of 1000 and they all tested good, what assumptions and conclusions can I make about the whole batch? Is it possible to say "There is an x% chance that the entire batch is good"? How could I calculate x in this case? Note that this is assuming I have no prior knowledge of what the defect rate should be.


I am trying to derive the equation of small signal vout/d for a CCM flyback converter. In order to do this, I need the small-signal average model. I am having difficulty seeing how the small signal model for the flyback (or buck-boost) is derived from the flyback converter:    I recognize that the Vout/Vin for the flyback and buck-boost include a D in the numerator like a buck converter, and a 1-D in the denominator like that boost converter, and that is why the small signal model has a buck type stage (1:D) and a boost type stage ((1-D):1). I just wish to be able to be able to derive the small signal model directly from the normal circuit schematic.


How to interpret a log transformed (x+c)?

I need to use log-log regression and because I have lots of zero values I tried to add a very small constant c=8E-12 to x and it works pretty good. Xs are very small probabilities.  lnY= a + b ln (x+c)  But how do I interpret that model? Thanks


Can I give a donation to Stack Exchange?

I have learned so much from SE sites and I am really thankful for it. I sometimes feel that I am under debt from SO, so in order to satisfy me and my principles, I think I should give some donation.  I want to contribute but I don't have much technical expertise to use in helping others, so maybe if I can give a donation, this would help me to feel better.  I have been a member of various other forums and I have always given some amount (not much, though) to them as thanks.


Make password appear censored in bash script

I am going to make this short and simple. I am making a bash script where the user needs to enter their root password using the read command and it will be stored in a variable. What I don't like is that their password is clearly visible as they type it. I want their password to be shown as stars or be invisible like when normally entering root password. I don't mind using tput. How can I do this?


What are good Stack Exchange sites for iPhone SDK programming?

I primarily use Stack Overflow for my questions about iPhone SDK programming. Is this the best choice?  I have found some other Stack Exchange sites about iPhone SDK programming, but they are not as active. Are there any that are as good as Stack Overflow?


Converting VB.NET's DateTime.TryParse(string, Nothing) to C#

I am currently trying to convert some vb into c# and in the vb code I have the following line:  If DateTime.TryParse(txtExpirationDate.Text, Nothing) = False Then  _isValid = False   Which, with my extremely limited knowledge of vb, I think should read in c# as:  if (DateTime.TryParse(txtExpirationDate.Text, null) == false)         _isValid = false;   However visual studio is telling me that I have invalid arguments:     The best overloaded method match for 'System.DateTime.TryParse(string, out System.DateTime)' has some invalid arguments      I was wondering if anyone would be willing to help me out. What am I doing wrong? Is this even possible in c# and if so how would I do it?


Is this charger compatible with my laptop?

I just lost my laptop charger and I found another one on my house, I was wondering if it is compatible with my laptop and if you would recommend it using, the specs are the following:  ORIGINAL CHARGER (HP) Input: 100-240 V ~ 1.4A  50-60 Hz Output: 19.5V  2.31A 45W  REPLACEMENT CHARGER (Lenovo) Input: 100-240 V ~ 2.5A. 50-60 Hz Output: 20V  2A 46.08W  Thank you very much for your help.


How to make [return] behave as a [return] within Messages, Skype…

I am using Messages on both Macs & iPhones and I am typing a lot of E-mails. Within all these environment I am used to the normal behaviour of the return key.  Within Messages this key doesn't behave as a return key thus causing me to prematurely send truncated messages.  I found this very similar question:  and I already knew the workarounds proposed ctrl+return, alt+return. But these workarounds didn't answer the original question. Moreover I already use them but this still leave me with an unacceptable error rate.  From my point of vue, the return should never be associated with a "function" within an environment where you are at typing text. This is a huge ergonomic design error.  I tried to override the actual shortcut mapping with:  defaults write com.apple.iChat NSUserKeyEquivalents '{ "                             " = "insertNewline:" ; }   Which is a silent failure.  I suspect that the syntax of the function might be wrong, but Messages doesn't write any error about this.  Is there a documentation about the exact syntax of internal Messages functions which can be called from a shortcut?  Is there any other correct way to make the return behave as a plain return?


Can somebody explain for what activities users get the Generalist badge, because I didn't understand its short description.


How to get keys of a LinkedHashMap sorted by their entry’s value?

In a graph i associate a node to a quantity : quantities could be redundant and nodes can't, so in order to sort according to ascending quantities i put nodes as keys and quantities as values of a LinkedHashMap and sort it as follows :  LinkedHashMap<Node, Integer> orderedResult = mapNameToSize.entrySet()                 .stream()                 .sorted(Map.Entry.comparingByValue())                 .collect(Collectors.toMap(                         Map.Entry::getKey,                         Map.Entry::getValue,                         (oldValue, newValue) -> oldValue, LinkedHashMap::new));  But my question is how to get the keys sorted accordingly into a ArrayList?


error: package architecture (amd64) does not match system (i386)

I am trying to install Ubuntu 12.10 and by the way my wireless is not working. So, I'm trying to fix this problem manually. I have installed the 64 bit Ubuntu already. The problem is I cannot install any packages because when I do I get an error. For example if I run the command   sudo dpkg -i wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb   I get this error:   dpkg: error processing wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb (--install: package architecture (amd64) does not match system (i386)    I also get this error if I try to install any other package. My system is a Dell 3421 which has an i5 processor so I don't know why Ubuntu think I have a i386 system. If I run the uname command I get these results:  uname -i  i686  uname -p i686  uname-m i686


Updating SQL Server 2016SP2 to latest CU in Cluster...what happens?

Updating to latest CU in a cluster with a bunch of databases. Can I do this on the passive node without SQL Server kicking on?  Do I need to worry about that? I think I can run it on the passive, reboot the passive, then failover and ... at this point I'm unsure what happens with the databases in the instance. Does it go through and update each individual database? Run update exe on passive node Reboot passive node Failover...?


Prove that if $X$ and it's closure $\overline X$ are connected and if $X\subset Y \subset \overline X$, show that Y is also connected.

Can anyone give me a proof of the statement that if $X$ and its closure $\overline X$ are connected and if $X\subset Y \subset \overline X$, show that Y is also connected?  Thank you.


Is it correct to say "I kindly request you to..."?

Isn't kindness already implied when you say "I request you to..."?  When I say "I humbly request you to...", the word humbly helps me to label the state of my behavior during the request.  On the other hand, what value does the word kindly add to the request?


When would you use a friend class/function instead of inheritance?

I am not exactly sure what the use of a friend function or class is when you can easily just use inheritance (parent/child classes)? From my understanding, a friend function or class allows a non-member function to access the members of another class that it is declared a friend of. Similarly, a child class can access the members of a parent class. I am wondering, in which situation would you pick one over the other?


Differences between the Borel measure and Lebesgue measure

I'm having difficult time in understanding the difference between the Borel measure and Lebesgue measure. Which are the exact differences? Can anyone explain this using an example?


Alright, so David Griffiths in his "Introduction to Electrodynamics" states that the Twin Paradox is not a paradox at all since the traveling twin returns to Earth. By returning to Earth, the twin had to reverse direction, thus undergoes acceleration, and therefore cannot claim to be a stationary observer.   However, what if the traveling twin simply Skypes the twin that is on Earth. The twin on earth will still appear older, which would make no sense since in that case the rocket can be seen as the stationary frame of reference while the Earth "travels" at a speed close to the speed of light. No acceleration is undergone, yet the paradox remains.   Is Griffiths just completely glossing over important nuance again?


How would i remove flags from my enum  I can add them easy with m_Buttons | (button);  enum WindowButton {     None = 0,      Minimize = (1 << 0),     Maximize = (1 << 1),     Close = (1 << 2), }; inline WindowButton operator|(WindowButton a, WindowButton b) {     return static_cast<WindowButton>(static_cast<int>(a) | static_cast<int>(b)); } inline WindowButton& operator |= (WindowButton& lhs, WindowButton rhs) {     return lhs = static_cast<WindowButton>(static_cast<WindowButton>(lhs) | static_cast<WindowButton>(rhs)); }   This is the function where im trying to add / remove  void Window::SetButton(WindowButton button, bool show) {     if (show)         m_Buttons |= (button);     else         m_Buttons | ~(button); // This is not working to remove flags }


Suppose that I have two univariate marginal distributions, say $F$ and $G$, which I can simulate from. Now, construct their joint distribution using a , denoted $C(F,G;\Sigma)$. All the parameters are known.  Is there a non-MCMC method for simulating from this copula?


How to simulate scenario using selenium wherein User needs to upload a excel file?

I am new to selenium. I want to replicate a scenario in which User clicks on 'Choose file' and then uploads an excel file lying on the same desktop and then clicks on submit.  I have tried using sikuli and added the below mentioned lines for file upload in the code:      Pattern name = new Pattern("C:\\Users\\delhivery\\Desktop\\Selenium Class\\name.png");     Pattern open = new Pattern("C:\\Users\\delhivery\\Desktop\\Selenium Class\\open.png");           Screen.src = new Screen();     src.setAutoWaitTimeout(30);     src.type(name, "C:\\Users\\delhivery\\Desktop\\Express CSV Files\\DataE.xlsx");     src.click(open);   But still it shows errors. I have added the Sikuli Jar file as well in the project. Do I need to import something as well?  Step by step detailed instructions would be great, Thanks!


windows 10 default wireless instead of ethernet

I have a Windows 10 machine that's both connected to wifi and ethernet (eth is for wake on lan purposes only). Problem is, windows always preselects the wired connection at boot. I tried changing the interface metric (wired to 1000, wifi to 10), but windows is still keeping the default wired. Is there anything else that I can do to get this going?


I want to change margins specifications for the first page of each chapter.  I know about geometry package to set up margin of the whole document. Is there a way to change that setting at the first page of each chapter, then return the default setting again?  \usepackage[a4paper,left=1in,right=1in,top=1in,bottom=1in]{geometry}   Thanks


Is a differentiable function always continuous?

Continuous Functions are not Always Differentiable. But can we safely say that if a function f(x) is differentiable within range $(a,b)$ then it is continuous in the interval $[a,b]$ . If so , what is the logic behind it ?


Let $X \sim U(0, 1)$ and $Y \sim U(0, 2)$ be independent random variables. What's the expected value of $|X - Y|$? I found $f_{X}(x) = 1$ and $f_{Y} = \frac{1}{2}$ so that $f_{XY}(x, y) = \frac{1}{2}$ and $$\mathbb{E}[|x - y|] = \int_{0}^{1} \int_{0}^{2} \frac{|x - y|}{2} \mathop{dy} \mathop{dx},$$ but how can I compute this quantity? It looks tricky. I know the trick where you split the integral in the one-dimensional case, but I'm having trouble getting it in the two-dimensional case.


Run Windows application with different locale setting

I have a badly written third-party Windows application that only works correctly if the decimal separator and thousands grouping characters are set to the values typical for English, i.e. point for decimal, comma for thousands. This application is used by a number of users with different user locales, some of which (e.g. German) swap these characters for each other.  Is there a way to run this application with its desired locale configuration, without changing it globally and so that the user does not have to do anything difficult?  I have found things like AppLocale and Locale Emulator, but they appear a bit too broad for my purpose – I don't want to change the whole language etc., just the two characters.  Thanks for any advice.


prove a theorem about positive-definite Hermitian form

If $H$ is a vectorspace in $\mathbb{C}$ with an inproduct $<.,.>$:$H$x$H$$\to$$\mathbb{C}$, a positive-definite Hermitian form. I know that the inner product makes a norm at $H$, $||x||$=$\sqrt{<x,x>}$. I calculated that $<x,x>$=$1/4$($||x+y||^{2}-||x-y||^{2}+i||x+iy||^{2}-i||x-iy||^{2})$ I want to prove that if $K$ a vector space in $\mathbb{C}$ with a norm that satisfies the parallelogram quality, then there exists a unique postive-definite Hermitian form $<.,.>$ at $K$ with $||x||=\sqrt{<x,x>}$  for every $x \in K$.


I have to perform a regression. My data set is composed of 12 independent(ration) variables and 1 dependent(interval) variable. After having performed a Normality test(kolmogorov-Smirnov) it resulted the none of the variables were normally distributed. It is common practice to normalise the variables before a regression. My question is: should I normalise also the dependent(interval) variable?  this represents a scale of quality. Would normalising it undermine the result or it's perfectly fine to normalise all the dataset and keep the dependent variable unnormalised?


How to install Android Studio on Ubuntu 14.04

I have downloaded Android-Studio and extracted it into documents. When I try to locate the studio.sh file located in Documents/android-studio/bin, I get an error.  How will I go ahead and install this Android Studio.


I know that we need to dispose of SPSite and SPWeb objects, especially in scenarios where we instantiate them or don't get them from context.   Other than these, which other objects in the SP Object Model should be disposed of?   Should we dispose of objects like SPFarm, SPWebServiceCollection, SPWebService, SPWebApplication, SPList, SPListItem, SPUser, SPGroup and so on? Or we need to dispose of only SPSite and SPWeb? This doesn't seem to be clearly documented. Please help.  Note: Though the below link talks about a few, it doesn't seem to be covering the list, which I have asked.


No Wi-Fi Adapter Found in Ubuntu 18.04 - HP Pavillion x360

Okay, so I've encountered yet another issue in my endeavor of "Installing Ubuntu to a brand new and clean HP System." I've tried many different potential solutions to this issue (from checking off the "Install third-party software for graphics and Wi-Fi hardware and additional media formats" TWICE to installing the appropriate drivers... again) however nothing seems to be working for me. I've even reinstalled Ubuntu to see if it would do anything.  I don't know what I could be doing wrong, because before I booted off Windows I was able to connect to the internet just fine. Currently have to plug my phone into the device to get any internet whatsoever.  After running the lspci -knn | grep Net -A3 command, was met with:  02:00.0 Network controller [0280: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]   After running the rfkill list command, was met with;  0:hci0: Bluetooth     Soft blocked: no     Hard blocked: no   That's it.


I have created simple shuffle method everyting seems okay but there is a problem which i can't find.  Here is my Code Below:   public static <E> void shuffle(List<? extends E> list) {     List<E> temp = new ArrayList<>();      while (list.size() != 0) {         E val = list.remove((int) (Math.random() * list.size()));         temp.add(val);         System.out.println(val);     }     System.out.println(temp);      list = temp; }   This is the test case:   ArrayList<Integer> arr = new ArrayList<>();     arr.add(1);     arr.add(2);     arr.add(3);     arr.add(4);     arr.add(5);     arr.add(6);     System.out.println(arr);      shuffle(arr);      System.out.println("-->" + arr);   The problem is last print out method shows that arr is empty  --> [] It Should be something like that [4,3,1,2,6,5]  Problem could be this line but i did not understand why ?   --> list = temp;


Why do the following PostGIS operators perform so differently?

I encountered large performance differences for spatial intersections in PostGIS depending on the operator I'm using and I can't figure out what's causing them.  Background:  I have a large set of points and I'm usually selecting a subset of them based on a polygon outline. Something like st_intersects (polygon, points) works for this, but there is also the && operator. Looking at the  and  documentation, they seem to do, at least in the case of points and polygons, the same thing. I would even have imagined && to be a bit slower, since it constructs bounding boxes around the geometries to compare.  However, when optimizing my query, I used EXPlAIN to estimate the costs of different approaches and discovered that && tends to be much cheaper (factor ~10). Can someone please explain to me what I'm missing here?  I made two small examples in PostGIS 2.5.0 to try it out. Note that they only differ in the one line where the comparison takes place. The rest is just random point generation.   EXPLAIN  WITH x AS     (select generate_series (1,1000),      st_setSRID(st_makepoint(         (random()*360)::float - 180,         (random()*180)::float - 90),      4326) geom)  SELECT * FROM x WHERE st_intersects (geom, st_setSRID(st_geometryfromtext('POLYGON((-74.1 83.8, -13.0 83.8, -13.0 59.6, -74.1 59.6, -74.1 83.8))'), 4326));      CTE Scan on x  (cost=5.04..277.54 rows=67 width=36)   EXPLAIN  WITH x AS     (select generate_series (1,1000),      st_setSRID(st_makepoint(         (random()*360)::float - 180,         (random()*180)::float - 90),      4326) geom)  SELECT * FROM x WHERE (geom && st_setSRID(st_geometryfromtext('POLYGON((-74.1 83.8, -13.0 83.8, -13.0 59.6, -74.1 59.6, -74.1 83.8))'), 4326));      CTE Scan on x  (cost=5.04..27.54 rows=200 width=36)


Is there a simple way to add todo notes to LaTeX documents ?  I would like to have these notes in red in the generated pdf and a simple syntax to write them.


Why do the ancestors of birds still exist?

If I am not mistaken, scientists believe that birds are evolved from reptiles. Why do the ancestors of birds (that is, reptiles) still exist?


What are the differences between a proverb, adage, aphorism, epigram, maxim and apothegm?

Dictionary definitions of all three are very similar, typically something like:     a pithy observation which contains a general truth   But the Wikipedia entries for each are quite different.  Are these words largely interchangeable synonyms?  In the Wikipedia entry for adage, for example, a proverb is defined as an adage produced from folk wisdom, whereas an aphorism has "not necessarily gained credit through long use, but is distinguished by particular depth or good style".


watchdog: BUG: soft lockup - CPU#10 stuck for 23s! [Kworker/10:2:10578]

I just installed ubuntu 18.10 alngside windows 10. After the instalation completed and restarted this appeared on my screen. I am lvl 1 ubuntu user XD Thought someone here can help. Thanks!


Python 3 floating point operations with loop


Can I list the resources in a given package?

Lets assume my classes are loaded from a compressed .war file or loaded elsewhere,  how can I discover all the resources in a given package?  Enumerating files will not really work, since this is a war file.  Most likely this will involve using the current classloader?  Is there a library out there that does something like that? Googling revealed only some hacks with listing files.


Can future execution start before the synchronous execution is completed

Is there a way for @future annotated method to start execution before the synchronous request which invokes it has completed.  In other words, do I have some guarantees that the timing will look like this:  -start sync---call future---end sync---execute future->   instead of like this:  -start sync---call future---execute future---end sync->   I couldn't find the execution order guarantees in the documentation, although  states:     The reason why sObjects can’t be passed as arguments to future methods   is because the sObject might change between the time you call the   method and the time it executes. In this case, the future method will   get the old sObject values and might overwrite them.  To work with   sObjects that already exist in the database, pass the sObject ID   instead (or collection of IDs) and use the ID to perform a query for   the most up-to-date record.   This can be read as saying that the future is not queued at the end of the transaction, otherwise Salesforce could guarantee that the sObject sent is the most recent version. And since it's queued during the transaction, it might imply that it also might execute and complete while the synchronous transaction is still running.  On the other hand,  implies that futures are only fired after the transaction completes:     Invoking Database.rollback not only rolls back inserts, but it goes   much, much further.   [...]   It also rolls back:      Calls to @future methods. Any methods called within the rolled back part of your script will not be invoked (also why @future doesn't start until your script completes).


Creating a select list from an list of objects that have one enum property

I have a list of objects of a class like:  public class Template {     public TemplateTypeEnum TemplateType { get; set; }     public int Id { get; set; }     public int Name { get; set; }     /// etc... }   And enum:  public enum TemplateTypeEnum  {     [StringValue("First item")]     FirstItem = 1,     [StringValue("Second item")]     SecondItem = 2,     // .....  }   and I have a list of Template objects:  IEnumerable<Template> templateList = GetAllTemplates();   and I would like to populate a select list only from Enum values, so that data value field is int representation of the enum value, and data text file is the string value of the enum, so something like:   Model.TemplateList = new SelectList(templateList, "(int)TemplateType", "TemplateType.ToString()");


Epsilon from Bivariate Normal Distribution

I came across the following example from a book. I am given a dataset generated from a bivariate normal distribution:    Among the data, there are missing values for the last 20 of x2i (but not for x1i). The example demonstrates how EM algorithm comes into play to impute the missing value. The procedures are attached below:    It is further commented that the E-step conditional expectation is derived from the following formula:    I don't understand how this formula (the one with epsilon) is derived. Could anyone give me a reference for that?


Why Are the Laws of Physics the Way They Are?

Why does Newton's law of gravitiation look the way it does? Why is the Gravitiational Consntant this specific value? Why do Maxwell's Equations look the way they do? Why is it that abstract quantities we make up such as mass, charge, displacement, time etc... could be put into useful formula that accurately predict phenomena in the physical world?  I am aware that physical laws are merely abstractions, but the mathematical correspondance between many physical quantities we define is deduced almost purely emperically i.e. is not abstractly defined by us as human observers. Let me emphasise that this is not necessarily the case with all laws, for example Newton's Second Law "F=ma," where we define the force to be the product of mass and acceleration, there is nothing about the law that is "emperically deduced." It is purely a definition. However, the Second Law of Thermodynamics, Faraday's Law and Special Relativity are just a few examples of where we deduce "mathematically meaningful correspondance," purely due to emperical observation.   Why is that so? Why does our universe seem to exhibit mathematically significant correspondance? Please keep in mind that I am referring to emperically deduced laws of physics, not quantities we define.


I want to uninstall Ubuntu 12.04 LTS completely and install windows 8

I want to uninstall Ubuntu 12.04 LTS and install windows 8 pro.  I have the Windows disc but an unsure if there is anything special that I need to do first.  Any help will be greatly appreciated.


EDIT: This does not have to do with randomising numbers. When I tried doing that all I got back was numbers, and not my strings. Could someone at least explain how the Fisher-Yates-shuffle or what it was, would work in my case, if it does actually work for sentences-strings? Because I don't understand it.. I can't be the only one who doesn't understand it?  I have an array of strings that I want to randomise. I want three random strings, that aren't the same, but everything I find online is either for numbers or in another language. At the moment my strings are being randomised, but I sometimes get the same strings, so for example: "Behind a tree, behind a tree, behind a tree".   So it should be like randomHiding1 != randomHiding 2 && randomHiding3; (I know that's not "real code", but just so you get what I mean)   This is my first post here, so I hope this is ok to ask because I haven't been able to find anyone asking a question about randomising "sentences-strings", and not just "abcdefg...." or numbers. Here's my code. Thanks in advance!      Random random = new Random();      // strings with hiding spots         string[] hidingSpot = {             "in a ditch",             "up in a tree",             "behind a stone",             "in a hole in the ground",             "behind a tree",             "in the shadows" };          int hidingChoice1 = random.Next(hidingSpot.Length);         int hidingChoice2 = random.Next(hidingSpot.Length);         int hidingChoice3 = random.Next(hidingSpot.Length);          string randomHiding1 = hidingSpot[hidingChoice1];         string randomHiding2 = hidingSpot[hidingChoice2];         string randomHiding3 = hidingSpot[hidingChoice3];   BTW, I know this code is very bad, and unnecessarily long, but I'm still fairly new to arrays and lists and so my number 1 priority is to get code that works, not code that is short etc. So I don't need tips about reading the documentation, because I am doing that constantly, but I just have a hard time remember things atm due to personal reasons.. I hope that makes sense.


It smells like really musty water, but the water itself does not smell or taste bad at all. Only happens when I run the water, so it doesn't make the room smell, just when you fill something up or wash your hands.   I tried drain-o and it didn't do anything and there's GREAT flow so it's not clogged at all anyway.   Only thing that has worked (temporarily) is pouring pretty much everything I could think of into it. Lemon juice, draino, bleach, etc.


A $125-$pages document is on the floor randomly spread. If $4$ pages are picked up at random, what is the chance that these are the document's last four pages and in the right order? Page $122, 123, 124$ and $125.$


Can't login to admin account on Windows 7. Xpsl701x

How do I gain admin control? I can't change anything the admin account the admin account has a password I guess. It's the Windows administrative password but I'm just really stuck and confused because I've got two logins: one is Tony ones Tony admin. I can log in under Tony but I can't change anything I can't log under Tony admin because there's a password.


How to make title, chapter, sections names use garamond with Koma-Script class document?

I've noticed something very strange.  I switched to using   \usepackage[T1]{fontenc} \usepackage[urw-garamond]{mathdesign} %this below also works. Do not know what is the difference. %\usepackage[garamond]{mathdesign}    Which looks like a nice font. The problem is that, when using Koma-Script's classes, such as scrbook or scrartcl, the title, and all chapter and section heading, use completely different font (which I do not know what it is ) than the rest of the document, which makes final result look ugly due to having 2 different fonts next to each others.  This only happens when using Koma. When switching to standard article and standard book classes, then the title and section text font now matches the rest of the text.  Here is a MWE using standard article class  %\documentclass[11pt]{scrartcl} \documentclass[11pt]{article} %\documentclass[11pt]{scrbook} %\documentclass[11pt]{book}  \usepackage[T1]{fontenc} \usepackage[urw-garamond]{mathdesign} %\usepackage[garamond]{mathdesign}  %this also works, without urw \begin{document}  \title{HW 1, Hard class.\\               Fall 2018\\        University Of Somewhere } \author{John Doe} \date{\today} \maketitle  %\chapter{This is chapter one} %test  \section{This is section one} This is some equation $x^2=y$.     \end{document}     Now, notice what happens when using koma (change the code above to use \documentclass[11pt]{scrartcl}). This is the output    Which looks bad. The titles and chapter and section all look like they are using different font and not using garamond.  Question is: How to make koma use the same font everywhere, including titles like the standard classes do?  TL 2018. Compiled using lualatex foo.tex. This is list of files when using \documentclass[11pt]{scrartcl} for the above example  *File List* scrartcl.cls    2018/03/30 v3.25 KOMA-Script document class (article) scrkbase.sty    2018/03/30 v3.25 KOMA-Script package (KOMA-Script-dependent bas ics and keyval usage)  scrbase.sty    2018/03/30 v3.25 KOMA-Script package (KOMA-Script-independent b asics and keyval usage)   keyval.sty    2014/10/28 v1.15 key=value parser (DPC) scrlfile.sty    2018/03/30 v3.25 KOMA-Script package (loading files) tocbasic.sty    2018/03/30 v3.25 KOMA-Script package (handling toc-files) scrsize11pt.clo    2018/03/30 v3.25 KOMA-Script font size class option (11pt) typearea.sty    2018/03/30 v3.25 KOMA-Script package (type area)  fontenc.sty    t1enc.def    2017/04/05 v2.0i Standard LaTeX file    t1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern mathdesign.sty    2013/08/29 v2.31 Math Design Project   ifthen.sty    2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)    mdugm.cfg    mdugm.sty    2013/08/29 v2.31 urw garamondno8 + mdugm (Math Design Project)   mdfont.def    2013/08/29 v2.31 (Math Design Project) mdsffont.def    2013/08/29 v2.31 (Math Design Project) mdttfont.def    2013/08/29 v2.31 (Math Design Project)  xkeyval.sty    2014/12/03 v2.7a package option processing (HA)  xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)  t1mdugm.fd    2013/08/29 Fontinst v1.933 font definitions for T1/mdugm.  fontenc.sty    t1enc.def    2017/04/05 v2.0i Standard LaTeX file   mdacmr.fd   mdbcmr.fd   t1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern ot1mdugm.fd    2013/08/29 Fontinst v1.933 font definitions for OT1/mdugm. omlmdugm.fd    2013/08/29 Fontinst v1.933 font definitions for OML/mdugm. omsmdugm.fd    2013/08/29 Fontinst v1.933 font definitions for OMS/mdugm. omxmdugm.fd    2013/08/29 Fontinst v1.933 font definitions for OMX/mdugm. mdamdugm.fd    2013/08/29 Fontinst v1.933 font definitions for MDA/mdugm. mdbmdugm.fd    2013/08/29 Fontinst v1.933 font definitions for MDB/mdugm.


I'm studying 'Introduction to Statistical Learning' by James, Witten, Hastie, Tibshirani.   In page 139, of their book, they began by introducing Bayes' Theorem $p_k(X)=P(Y=k|X=x) = \dfrac{\pi_kf_k(x)}{\sum_{l=1}^k \pi_l f_l(x)}$. $\pi$ is not mathematical constant, but denotes the prior probability. Nothing is strange in this equation.   The book claims that it wants to obtain an estimate for $f_k(x)$ that it can plug into the equation given above. To estimate $f_k(x)$, it assumes that is normal. In the one dimensional setting, $f_k(x)=\dfrac{1}{\sqrt{2\pi}\sigma}\exp(-\dfrac{1}{2\sigma^2}(x-\mu_k)^2)$, where $\mu_k$ and $\sigma^2_k$ are the mean and variance for the $k$th class. It is assumed that $\sigma^2_1 = \sigma^2_2 = \cdots = \sigma^2_K$. (I began to get confused from the last statement.)   Plugging $f_k$ into $p_x$, you have this quite messy equation (1) :   $$p_x(k)=\dfrac{\pi_k \frac{1}{\sqrt{2\pi}\sigma}\exp(-\frac{1}{2\sigma^2}(x-\mu_k)^2)}{\sum_{l=1}^K \pi_l \frac{1}{\sqrt{2\pi}\sigma}\exp(-\frac{1}{2\sigma^2}(x-\mu_l)^2)}. $$  Again, no surprises here since it is just substitution.     The Bayes' Classifier involves assigning an observation to the class for which equation (1) is the largest. Taking the log of Equation (1) and rearranging terms, it is not hard to show that this is equivalent to assigning the observation to the class for which the following is the largest:  $$\delta_k(x)=x \cdot \dfrac{\mu_k}{\sigma^2} - \dfrac{\mu_k^2}{2\sigma^2} + \log(\pi_k) $$  Question: I do not understand where this came from, and what it means. I tried doing the log of equation and it doesn't become this. Are we taking the derivative somewhere here, since this is the largest observation?


Can I force someone into my bag of holding?

I'm playing an artificer, and I have the  infusion. I was thinking that if I put a whole person in a bag of holding against his or her will, that would be basically an instakill, right?  My DM said that in my infusioned bag of holding nothing living can enter, and if it does, it instantly dies. How do I do that? Just a regular melee attack roll? Do I make an opposed strength check? What if we are just talking and I randomly do that, does that count as a surprise round so I can do it before rolling for initiative?  Bags of holding are 2 feet wide, does a dwarf fit in there? (I want to kill a really bad dwarf mafia boss.)


I'm used to doing all my coding in one C file. However, I'm working on a project large enough that it becomes impractical to do so. I've been #including them together but I've run into cases where I'm #including some files multiple times, etc. I've heard of .h files, but I'm not sure what their function is (or why having 2 files is better than 1).  What strategies should I use for organizing my code? Is it possible to separate "public" functions from "private" ones for a particular file?   question precipitated my inquiry. The tea.h file makes no reference to the tea.c file. Does the compiler "know" that every .h file has a corresponding .c file?


How can I theme the outgoing contact mail?

I want to theme the outgoing mail from the contact module, because the standard output looks horrible. Where can I do this? It's the one starting with admin () sent a message using the contact form at .


How do i find my WiFi password when i am already connected but it doesnt show

I am trying to find my WiFi password from my iPad and I am connected to it.  Is there anyway I can find out when I am connected to it?


how to Quick Look text files with custom file extensions in Finder

When I have .txt files or .py files, I can Quick Look those files in Finder. I have .jl files that are codes written in the Julia Language. Of course they are text files. They will open in a text editor like Sublime Text. How can I Quick Look these .jl files in Finder?


Transit Visa (Toronto - Lisbon - Vienna - Delhi)

I am an Indian citizen travelling from Toronto to Delhi. I have a valid Canadian long term Visa. I am thinking of booking a flight from Toronto to Lisbon, Lisbon to Vienna, Vienna to New Delhi. I'm wondering if I will be asked for an Airport Transit Visa?  It seems the connecting flights are from the same terminal and the layover is less than 4 hours on both connections in Vienna and Lisbon.


Why is the chown command root-only? Why can't non-root users use chown to give away files they own?


$ d(x_n,y_n) \to d(x,y)$ if $x_n\to x$ and $y_n \to y$

Let $(X,d)$ be a metric space. Suppose that $x_n \to x$ and $y_n \to y$. Is it true that $$ d(x_n,y_n) \to d(x,y)? $$


In going through the review tool I often come across poor quality answers to poor quality questions. In particular, I will occasionally see questions that are simply asking for links to products, asking for tools, etc. Here are three examples that I've come across just this morning.        Clearly it's appropriate to go to the question and vote to close it (these are examples of not constructive) if they aren't already closed, but what should be done with the answers?    Should the answer be marked for deletion? Much of the normal reasoning for not providing link only answers is defeated if the question is simply asking for links. I'm tempted to mark them as 'looks good' for that reason, because it's the question that is flawed. Is that correct, or should I evaluate all answers as if they were responding to a quality question?


Is it possible for a continuous function to have a nowhere-continuous derivative?

This is motivated by a question I saw elsewhere that asks whether there is a real-valued function on an interval that contains no monotone subintervals.   Edit: Note that I am asking for a function whose derivative exists but is not continuous anywhere.


Labeling linguistic examples with language information

I'm writing a linguistics paper that uses a large amount of linguistic examples from a wide variety of languages, using the gb4e package. I want to be able to label each example with information about the language it comes from, as I've seen in some texts, sort of like this:   Language (family, citation, etc.)      (1) example text          glosses        'translation'    gb4e is great at formatting the examples themselves, but I can't seem to get the label placed where I want it, that is, placed immediately before the example and without an indent. Here's some example code:  \documentclass{article} \usepackage{gb4e} \usepackage{lipsum}  \begin{document} \lipsum[2]  Hungarian (Finn-Ugric, \emph{reference})   \begin{exe}   \ex \gll    J\'anos h\'aza\\               John house.his\\       \glt    `John's house'   \end{exe}  \lipsum[3] \end{document}   If the label text is outside the exe environment, it's treated like a regular paragraph, but if I try to put it inside, it gives me an error. How can I make it look the way I want? I've looked at other packages that do numbered examples, but they don't seem to have solutions either, and they also don't have the same functionality as gb4e that I need.  Any help would be greatly appreciated.


How is it possible to send ping to all 127.0.0.0/8 successfully?

I have some wonders about 127.0.0.0/8 network and have 2 question about it.  Firstly, why 127.0.0.0/8 is not considered as private network? I wonder this because  does not mention about it. Where 127.0.0.0/8 differs from other private networks?  Secondly, I realized I can send ping successfully to all IP addresses in 127.0.0.0/8, just like lo interface has all this IP addresses. What is the technical reason of this case?


Is there any information about Data after Nemesis?

In the last movie of TNG's generation, "Nemesis", near the end in the Scimitar (Shinzon's ship)... spoilers ahead...      Data dies   Earlier in the movie the team discovers B-4, a prototype android constructed by Doctor Noonian Soong. A little later Data wished to give his brother the opportunity to expand his capabilities, in much the same way that he himself had in years past. Towards that end, Data willingly copied all of his memories to B-4, hoping that the added experiences would help B-4 to expand beyond his original programming. However, soon afterward, B-4 had to be deactivated because of the danger he posed to the Enterprise crew, as a result of Shinzon's tampering.  At the end:      Some of Data's memories began to surface as Picard left the android in  his ready room, B-4 beginning to sing the song that Data had sung at  Riker and Troi's wedding shortly before B-4's discovery. His future  was uncertain.   Does anyone know if Data was slowly resurfacing through B-4 and might be still alive?


I have a question about violating verb tenses. I was taught that you can't use present perfect (or continuous) and past simple within a sentence. You either have to use present perfects (or continuous) with present perfects (or continuous), and past simples with past simples. But I've found this not to be true, so I'm a bit confused.   Here is an email one of my native American friends sent me.     Hey, it's been such a long time since we last emailed each other. Thanks for sending me an email! Getting that email was such a pleasant surprise, because I was just thinking how I've been wanting to send you an email as well.   What confuses me the most is the last part. How can you say that you were thinking about how you have been wanting to do something?   I was taught that this is wrong: "he has decided to go hiking, so I went hiking as well." But I'm assuming that my friend's email is correct, since he IS a native speaker.   So, this is what I'm thinking: I can't say present perfect (or continuous) + past simple, but I can say past simple + present perfect (or continuous).   This violates verb tenses:     "he has decided to go hiking, so I went hiking as well."    But this doesn't:     "I went hiking because he has decided to go hiking."   Are there instances where present perfect (or continuous) + past simple or vice versa is allowed and correct?  EDIT:  This is a difficult concept for me to grasp. But thank you for all your help, because I'm learning a lot. There are many sentences that don't make sense to me. I came across this sentence today:     "[I think this is inferred: During those days,] We've watched the movie many times. I really wanted this life to continue."   I'm not sure what the present perfect is doing here. I don't think it is being used for describing what a person has done before, like "I've seen that movie before". Why is it not simply "We watched the movie many times. [It was so good that] I really wanted this life to continue"?


Trigger on Pricebook Entry or Finding whether a Product has a standard price

I need to perform some action when a Standard price is added to a product. I need to capture when it happen, so SOQL won't help me here. How can I trigger on new PricebookEntry or, is there a field on the Product that can tell me if the Product has a Standard price?


My query works (100+ results.) How do I insert them into a new table?

my attempt: SELECT * into table_joe FROM table_names WHERE username LIKE '%Joe%' But this fails saying the new table (table_joe) is an undeclared variable. Thank you!


Auto Increment on users table is not functioning

I need to Create a new user programmatically. So, I have used user_save method, as shown here:  $usersave = array( 'name' => 'abc', 'pass' => 'abc', 'mail' => 'abc@gmail.com', 'status' => 1, 'roles' => array(   DRUPAL_AUTHENTICATED_RID => 'authenticated user',       5 => 'customer' ), );  $save = user_save($usersave);   But it throws this error message:     PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY': INSERT INTO {users} (name, pass, mail, status) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => abc [:db_insert_placeholder_1] => abc [:db_insert_placeholder_2] => abc@gmail.com [:db_insert_placeholder_3] => 1 ) in drupal_write_record() (line 7383 of /home/vijay/public_html/vssb/public/includes/common.inc).   What's the issue?


How to apply css style for a span containing an active link

I currently have 2 links enclosed within 2 spans however when a link is clicked an dis active, the link has a class"linkActive". I need to apply a border for the span containing the active link how can one do this in css styles       HTML
                           Link1                                      Link2
   I would like to apply border to span containing the anchor tag with link active class   i tried    span.sec a.linkActive{                  border-bottom: 3px solid black;              }   It does not seem to work. Any help will be appreciated


xgboost or lightgbm to handle Binomial problems

I have a dataset containing a column of trials, a column of successes and other features; and, obviously, I can generate a probability column. I would like to use gradient boosting methods (like xgboost or lightgbm) to model the success probability. Which parameter shall I set to handle this in lightgbm or xgboost?


How can i change the runlevel in ubuntu 10.04 or 10.10 As far as I can recall ubuntu changed the runlevel with something else?  If I want to change the start to terminal only and not X what and r