Let $f:\mathbb{R}\to\mathbb{R}$, $f(kx)=f(x)$. Show that if $f$ is continuous at $0$ then $f$ is a Constant function

Let $f:\mathbb{R}\to\mathbb{R}$ , there is $k \in \mathbb{R}$, $|k|\ne 1$, so that for every $x\in \mathbb{R} , f(kx)=f(x).$ Show that if $f$ continuous at $0$ then $f$ is a constant function.   I tried to find something to show it from the definition of continuous function but I didn't know how to continue. We have that $f$ continuous at $0$ if for every $\epsilon>0$ there is $\delta>0$ such that $|x-0|<\delta \implies |f(x)-f(0)|<\epsilon$ And if $f$ not continuous on $0$ is $f$ still a constant function?


I would like to be able to draw movement arrows (which can overlap) underneath a linguistic example sentence (not a tree).  However, everyone seems to be using gb4e but when I paste the examples into TexShop and compile them the arrows come out a weird angles and the text is messed up..(see screenshots).. Any idea what is going on?    Thanks in advance.  The code:  \documentclass[11pt, dvipdfmx]{article} \usepackage{tikz} \usetikzlibrary{calc} \newcommand\tikzmark[1]{\tikz[remember picture, baseline=(#1.base)] \node[anchor=base,inner sep=0pt, outer sep=0pt] (#1) {#1};}  % This code from http://tex.stackexchange.com/q/55068/2693 \tikzset{     ncbar angle/.initial=90,     ncbar/.style={         to path=(\tikztostart)         -- ($(\tikztostart)!#1!\pgfkeysvalueof{/tikz/ncbar angle}:(\tikztotarget)$)         -- ($(\tikztotarget)!($(\tikztostart)!#1!\pgfkeysvalueof{/tikz/ncbar angle}:(\tikztotarget)$)!\pgfkeysvalueof{/tikz/ncbar angle}:(\tikztostart)$)         -- (\tikztotarget)     },     ncbar/.default=0.5cm, }  % Thanks to Paul Gessler adn Percusse for code improvement here \newcommand{\arrow}[2]{\begin{tikzpicture}[remember picture,overlay] \draw[->,shorten >=3pt,shorten <=3pt] (#1.base) to [ncbar=\arrowht] (#2.base); \end{tikzpicture} \setlength{\arrowht}{0ex} } \usepackage{gb4e} % The following code modified from  % http://permalink.gmane.org/gmane.comp.tex.linguistics/1036 % This adds some extra space after the first line \newlength{\arrowht} \setlength{\arrowht}{0ex} \newcommand*\cgdepthstrut{{\vrule height 0pt depth \arrowht width 0pt}} \renewcommand\eachwordone{\cgdepthstrut\rmfamily} \renewcommand\glt{\vskip -\topsep} \let\trans=\glt \newcommand\arrowex{\setlength{\arrowht}{2.5ex}\ex}   \begin{document} \begin{exe} \ex\label{scramble-det} \begin{xlist}         \arrowex          \gll          \ldots dat Jan \tikzmark{een} auto gisteren \tikzmark{t}  gekregen heeft.\\         \ldots that John a car  yesterday t gotten has \\         \ldots that John a car yesterday.         \arrow{t}{een} \end{xlist} \end{exe}  \begin{exe} \ex\label{scramble-dets} \begin{xlist}         \ex          \gll          \ldots dat Jan een auto gisteren t gekregen heeft.\\         \ldots that John a car  yesterday t gotten has \\         \ldots that John a car yesterday. \end{xlist} \end{exe}  \begin{exe} \ex[]{     \gll     John-wa totetumonaiukurai baka-da.    \\     John-Top very stupid-cop \\     `John is very studip.'     }  \ex[]{     \gll     John-wa totetumonaiukurai dousiyoumonai tondemonai sukuigatai baka-da.    \\     John-Top very very very very stupid-cop \\     `John is very studip.'     }  \arrowex[]{     \gll     \tikzmark{John}-wa totetumonaiukurai dousiyoumonai tondemonai sukuigatai  \tikzmark{t} baka-da.    \\     John-Top very very very very stupid-cop \\     `John is very stupid.'         \arrow{t}{John} }  \end{exe} \end{document}


understanding prototype or Map.prototype in javascript

understanding Map.prototype  javascript  Hi all...  I have gone through many example and tutorials to understand what Map.prototype  actually represents..  in some blogs i saw that it represents Map object but if i have created two Map objects in the same file which one it will refer to?  and  can anyone please tell what the below condition mean?  var temp = Map.prototype ? new Map() : {} ;   are they checking if any objects of Map created if yes then create new object??


Why does the Ricci tensor vanishes in Schwarzschild metric?

If the Schwarzschild metric is suppose to describe the behaviour of a spherical object in flat space, so the Schwarzschild is different from the flat metric because it describes curved space so why then does the Ricci tensor equal zero. Also, if the metric describes a spherical object of mass $M$ in space why should the Energy-Momentum Tensor vanish. If there is mass then there is energy so why must it vanish.


Trigonometry, find sum of squared sines, given some tangent sum

My question is: Given that the angles $\alpha , \beta,\gamma$ are connected by relation $$2 \tan^2 \alpha\cdot\tan^2 \beta\cdot\tan^2 \gamma + \tan^2 \alpha\cdot \tan^2 \beta +\tan^2 \beta\cdot \tan^2 \gamma+\tan^2 \gamma\cdot\tan^2 \alpha =1 $$ Find the value of $$\sin^2 \alpha+\sin^2 \beta+\sin^2 \gamma$$


I am trying to center my divs with bootstrap  html

             //stuff

             //stuff

   it shows   ---------------------------- |                            | ||left  | |       right      | ||      | |                  | ||      | |                  | | |   I want to have    ---------------------------- | |     |left|  |  right  | |     |    |  |         |  | |   with Left and Right divs centered within wrapper all the time.  What is the best way to do this with bootstrap class only?


Do basic techniques and special powers count towards a discipline mastery?

Once a psyker has acquired 8 abilities of the same discipline he earns the discipline mastery, which gives him an extra point of psy-rating when using abilities of that discipline.  The Telepathy Discipline has the Basic Technique: Thought Sending and the Special Power: Astral Telepathy. These are earned for free once the psyker has acquired the discipline. Do these count towards the discipline mastery?


Are the transformers used in switching flyback converters regular transformers?

When trying to use the turns ratio to assist in the voltage conversion I found current transformers to have the greatest range in N, up to 1:500. Is a current transformer suitable for a flyback switching converter?  Otherwise, could someone please point to a transformer which would be appropriate for this purpose. Thank you!  Looking for one for a traditional isolated 5 V supply from mains.


I'm looking for a way to prove $\sin^2x+\cos^2x=1$ without using the Pythagorean Theorem or proving it.  The only thing I've tried was to play with the Taylor series, but I didn't get far with that as nothing seemed to 'mathify' nicely after a point.


Let $R= \mathbb{Q}[x^2 ,x^3 ]$, the set of all polynomials over $\mathbb{Q}$ with no $x$ term. Show that the $\gcd$ of $x^5$ and $x^6$ does not exist

Let $R= \mathbb{Q}[x^2 ,x^3 ]$, the set of all polynomials over $\mathbb{Q}$ with no $x$ term. Show that a gcd of $x^5$ and $x^6$ does not exist in $R$.   I am reasoning for the absurd and I am assuming that $gcd (x ^ 5, x ^ 6) = ax ^ 2 + bx ^ 3\in\mathbb{Q}[x^2 ,x^3 ] $, then, for the Bezout identity there exists $p (x) = cx ^ 2 + dx^3$ and  $q(x)= ex ^ 2 + fx ^ 3$ in $\mathbb{Q}[x^2 ,x^3 ]$ such that $x ^ 5p (x) + x ^ 6q (x) = ax ^ 2 + bx ^ 3$, which is absurd since $$9 = deg (x ^ 5p (x) + x ^ 6q (x)) \neq  deg (ax ^ 2 + bx ^ 3) = 3.$$  Is it okay what I did? Thank you very much.


Is there a way to render a TeX formula in pure HTML/CSS using Open Type fonts?

Is there a way to convert a TeX document into HTML that instead of relying on JavaScript, SVG, HTML Canvas, or images for rendering formulae to solely rely on HTML, CSS, and OTF fonts?  In  there are a number of fonts listed that have mathematical symbols and glyphs, but are there any OTF smart fonts that render, say, $\sum_i^j as $\sum_i^j$ or $\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$ as $\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$? using ligatures, variants, capitals, swashes maybe with the help of some additional CSS etc.?


get method returns null array when invoked form anther class . It results nullPointerException

I keep getting NullPointerException when I try to access array elements from another class using the get method. My code uses a constructor to initialize the array, and it works just fine.  MagazineValue.class  public class MagazineValue {  public MagazineValue(){ } private String[]magazineName; public MagazineValue(String[] magazineName){       this.magazineName = new String[magazineName.length];     System.arraycopy(magazineName, 0, this.magazineName, 0,     magazineName.length);  }  public String[] getMagazineName(){     return magazineName; } }   The constructor here copy's array value from the argument to a private array variable. When I try to invoke getMagazineName() from another class, it shows that the array is still null. Is there any way I can solve this? It sure seems easy but it took me a lot of time.   FirebaseValueListner.class  public class FirebaseValueListner { public void setMagazineName(){     String[]magazineName={"African Daily" , "African Bussines", "African Women"};     MagazineValue setValue= new MagazineValue(magazineName); }   }  The FirebaseValueListner gets values from the Firebase database and saves it values to an ArrayList and later copy's the values to arrays. The arrays are passed to the constructor of the MagazineValues.  LibraryFragment.class `  public class LibraryFragment {  public static void main(String[] args) {     // TODO Auto-generated method stub     String[]magazineName;     MagazineValue getMagazineName;     getMagazineName=new MagazineValue();      magazineName=getMagazineName.getMagazineName();     System.out.println("Magazine Name : " +magazineName[1]);         }      }   `


How to check if a string starts with ' " ' (double quotes)?

Every time I write " my compiler assumes I am trying to write a String. Instead I want my method to tell me if the incoming string starts with a  double quote "" Ex:  String n; if(n==n.startsWith(" " " ));   doesn't work  Any suggestions??


I always keep bread around, home-made or otherwise.  Is there a way to keep it from molding, or at least delay the process?  I've tried the fridge with some success (extra day or two), but I don't like my bread that cold to eat.  I've tried zip-top bags with no success (seems to mold faster).  Bread-box didn't seem to make any difference in time.  Thanks


How to fetch latest two records based on timestamp in sql


Unable to bind Super key on Ubuntu 17.10

I just installed Ubuntu 17.10 and when I pressed the Super key nothing happened. So I went into keyboard shortcuts and tried to map it to an action, but it wasn't registering.  To be more specific - when I'm on the "Set shortcut" window and press the Super key, nothing happens. I expect it to register as the keybind for the selected action.  Also Super registers properly when used with another key, for example Super + A


Where can I find words and expressions which are dated and not found in today's dictionaries?

I'm having trouble understanding Charles Dickens book called The Haunted House. Could anyone tell me in which dictionary I can find parts I don't understand? Is there a dictionary for nineteenth century literature?


I came across this problem from a probability practice book. Could someone give me a hint? Suppose you have N balls and M of them are red(others aren't red). You keep picking one ball out and NOT putting it back until you get one red ball. Find the expectation of a number of balls you need to pick out.  My approach is to use recursion. Let $X_k$ denote the distribution of number of balls I need to pick to get a red ball with k balls in the pool. Then,   $E(X_k)=\frac{M}{k} + \frac{k-M}{k}(1+E(X_{k-1}))$ , with $E(X_M) = 1$   as with M ball left in the pool, it should be immediate to pick a red ball. But then I end up an equation that I couldn't solve.   $E(X_N) = 1+\frac{N-M}{N}(1+\frac{N-1-M}{N-1}(1+...(1+\frac{1}{M+1}(1+1))))$  can anyone give me a hint or guide me please?


How does a FIFO (named pipe) differs from a regular pipe (unnamed pipe)?

How does a FIFO (named pipe) differs from a regular pipe (|)? As I understand from , unlike a regular pipe, a FIFO pipe "keeps living" after the process has ended and can be deleted sometime afterwards.  But if f the process is based on a shell command containing a pipe (cat x | grep y), we could "keep it alive after the process" if we store it in a variable or a file, isn't it then a FIFO?  Also, a regular pipe also has the first stdout it gets, as stdin for another command, so isn't it also a kind of first in first out pipe as well?


How do you spawn ONLY zombies in Singleplayer?

I'm making a maze where you have to fight zombies and get to the end, but all these other mobs start showing up and I can't figure out how to spawn only zombies. Also, I can't use dispensers.


Arrays.sort from higher number to lower number?

Basically I wanted to sort my arrays from higher humbers to lowe numbers using "Arrays.Sort". Sadly though I don't know how to sort it from higher to lower as "Arrays.sort" sorts those arrays from lower to higher.  Any suggestions?  Code:      double sortArrays[] = {         (float) probabilityOfFlush,         (float) probabilityOfFullHouse,         (float) probabilityOfOnePair,         (float) probabilityOfPoker,         (float) probabilityOfRoad,         (float) probabilityOfRoyalFlush,         (float) probabilityOfTriple,         (float) probabilityOfTwoPairs     };      Arrays.sort (sortArrays);     System.out.println(Arrays.toString(sortArrays));   Well, the output would be like this for an example:     [0.0, 0.18018017709255219, 0.36036035418510437, 2.3423423767089844, 2.882882833480835, 2.882882833480835, 4.504504680633545, 45.76576614379883]


In Firefox's options, you can either set that you want to be asked where to save every file, or you want it to be in place your favourite directory here, I've noticed that most of the stuff I save I put in one directory, usually something called Downloads (inspiring, isn't it?).  But FF still asks, and pops up with the download dialog. It is(!) by default in that directory, but I was wondering is there a way to avoid it alltogether. I.e., when I click on Save image or Save page as or whatever, that it directly just saves it - without asking for OK?  Anyone know how this can be accomplished?  Edit: Although I appreciate the posted answers so far, I should clarify that I'm not looking for an organizer of downloads, nor for download managers. I just need something that will minimize the number of clicks I have to make to get the file from the Internet to my disc.


In men, why do over 80% of sperm have abnormal form?

Here is the percentage of normal forms among fertile mens according to the centile (Source: Cooper et al. 2010):   2.5: 3%  5 (below this is Teratozoospermia): 4% 10: 5.5% 25: 9% 50 (median): 15% 75: 24.5% 90: 36% 95: 44% 97.5: 48%   Men who have less than 4% of their sperm that have normal morphology are diagnosticated with Teratozoospermia (also called Teratospermia) and are likely to be infertile, though technically 5% of fertile men have Teratozoospermia.  I read on the internet that abnormally-shaped sperms are bad and useless because their abnormal shape prevents transport through the cervix and/or prevents them from adhering to the ovum.  But I think that if they were really that bad, Mother Nature would not have engineered the average men with 85% of their sperm abnormally-shaped.  And I also heard that even animals have a big fraction of their sperm that are abnormally-shaped.  So, in men, why do over 80% of sperm have abnormal form?


How do you get the portal in act 2 in the center of the desolate sands to work? If you press the stone to the left of it it does nothing... What do you do to get it to actually do something?


From Canada, can re-enter the US using the valid DS-2019?

My US VISA expired but I have my 2019 valid for more 6 months. Can I go to Canada (for about a week) and re-enter the US using the valid DS-2019?


2001: Confused benefit of monoliths to aliens

I just saw 2001: A Space Odyssey for the 3rd time, but this time in 70mm — amazing. Anyway, I’ve been thinking a lot about the film and the role the monoliths played throughout it.  I understand that the question: “” contains the answer as to what the monoliths do but I don’t understand why the aliens placed these monoliths. How does it benefit them?  If you don’t know the actual answer (if there is one), I’d love to just hear what your belief is!


I've seen it a lot in python/Lib source code but I don't know what it is for.  I thought it was used to limit accessible members of of a module. So only the elements at __all__ will show up when dir(module).  I did a little example and saw it was not working as I expected.  So... What's the python __all__ module level variable for?


java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object

Why am I getting that error? It's causing my app to crash. Every time I test my app on my device the logcat puts out that error and I don't know why. I have a reasonable understanding of what a null pointer exception is and I have search thoroughly for an issue similar to mine. I have tried to reformat the click listener in several ways, made sure I have the correct view ID etc. Here is my code.  public class GridActivity extends AppCompatActivity {  Button dijkstra; Button astar; GridView grid; protected void onCreate(Bundle savedInstanceState) {      super.onCreate(savedInstanceState);     setContentView(R.layout.activity_grid);     dijkstra = findViewById(R.id.dijkstra);     astar = astar.findViewById(R.id.astar);     grid = astar.findViewById(R.id.grid);            dijkstra.setOnClickListener(new View.OnClickListener( ) {         @Override         public void onClick(View v) {               GridViewe geoView = new GridViewe(GridActivity.this);             geoView.Dijkstra( );         }     });     astar.setOnClickListener(new View.OnClickListener( ) {          @Override         public void onClick(View v) {               GridViewe geoView = new GridViewe(GridActivity.this);             geoView.Astar( );          }     });   }  public void setContentView(int activity_grid) { }  @Override public void onStop() {     GridViewe geoView = new GridViewe(GridActivity.this);      if(geoView.dijkstrathread.getStatus()== AsyncTask.Status.RUNNING)        geoView.dijkstrathread.cancel(true);     if(geoView.astarthread.getStatus()==AsyncTask.Status.RUNNING){         geoView.astarthread.cancel(true);     }      super.onStop(); }   }  <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".GridActivity">  <GridView     android:id="@+id/grid"     android:layout_width="match_parent"     android:layout_height="match_parent"   />  <Button     android:id="@+id/dijkstra"     android:layout_width="63dp"     android:layout_height="35dp"     android:layout_weight="1"     android:text="DIJKSTRA"     app:layout_constraintEnd_toEndOf="parent"     app:layout_constraintHorizontal_bias="0.0"     app:layout_constraintStart_toStartOf="parent"     app:layout_constraintTop_toTopOf="parent" />  <Button     android:id="@+id/astar"     android:layout_width="106dp"     android:layout_height="27dp"     android:layout_weight="1"     android:text="A* (A star)"     tools:layout_editor_absoluteX="168dp"     app:layout_constraintEnd_toEndOf="parent"     app:layout_constraintHorizontal_bias="0.0"     app:layout_constraintStart_toStartOf="parent"     app:layout_constraintTop_toTopOf="parent" />


how to fix compiler error undefined reference

I am not sure why I am getting this error. The function should return true or false. All variables have been defined and the error I get is:  /tmp/ccTspEHr.o: In function `main': rectangles.cpp:(.text+0x169): undefined reference to `rectangle_name(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<Rectangle, std::allocator<Rectangle> >)' rectangles.cpp:(.text+0x310): undefined reference to `rectangle_name(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<Rectangle, std::allocator<Rectangle> >)' rectangles.cpp:(.text+0x7b0): undefined reference to `rectangle_name(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<Rectangle, std::allocator<Rectangle> >)' collect2: ld returned 1 exit status   Function prototype:  bool rectangle_name(string prompt, string invalid, string used, string n, vector<Rectangle> rectangle);   function definition:  bool rectangle_name(string prompt, string invalid, string used, string & n, vector<Rectangle> rectangle) //This function reads in a prompt and reads in the name of the rectangle or stop\  {   cout << prompt;   getline (cin, n);   // do other stuff and return true or false }   What causes these errors?


Do you double the delayed damage for Melf's Acid Arrow after a critical hit?

The spell Melf's Acid Arrow does 4d4 on hit and 2d4 next turn (I'm ignoring what happens for a miss). If you roll a 20 for your spell attack roll, you double the 4d4 to 8d4.   What about the 2d4 next turn? Does that get doubled too or does that just stay at 2d4 because it occurs on the next turn?  I know that  covers additional kinds of damage during a critical hit, but this is the same substance that did critical damage, continuing its damage in a later round.


I am using setInterval(fname, 10000); to call a function every 10 seconds in JavaScript. Is it possible to stop calling it on some event?   I want the user to be able to stop the repeated refresh of data.


Partially high noise using glass material

I created a simple bottle and applied a glass material using the new principled shader. When it comes to rendering the surface of the bottle turns out incredibly noisy, except the part on the front that looks like glass. I tried several solutions with light paths, sampling settings etc. but it doesn't change anything. Any thoughts on that? :-)


Does having natural weapons prevent a multiclassed druid/monk from using Martial Arts while in Wild Shape?

The monk's Martial Arts feature's benefits all require a monk to be "unarmed or only wielding monk weapons". Even if you're a Way of the Kensei monk, that only lets you add a couple of new simple or martial weapons to your monk weapon list. The druid's Wild Shape forms all come wielding natural weapon attacks. Natural weapon attacks are not unarmed attacks, nor are they monk weapons, nor are they simple or martial weapons that can possibly be chosen by a kensei. Therefore, it seems that a beast is never "unarmed", and thus can never use a druid/monk's martial arts benefits even if it wanted to choose to use unarmed strikes instead of its natural attacks. Is this interpretation accurate? Or can a beast choose not to "wield" its teeth and claws? If my reading of the rules is accurate, such a blanket prohibition on Martial Arts when one has natural weapons seems overly-restrictive; it would mean, for example, that a Minotaur can never be a monk, since they are "never unarmed."  I am explicitly not addressing the (already answered and very obvious) question of whether animals can make unarmed attacks. I am asking whether they can ever choose not to "wield" their own natural weapons, so as to be able to use martial arts in the first place.


How to install another Ubuntu alongside different version of Ubuntu?

Just as the question says, I need to install newer version of Ubuntu without messing up the older version. I have looked at the responses to similar questions but it isn't clear to me how to do so (some suggest dual boot using a second hdd and some suggest using virtualization -- both of these are not an option for me).


How to retrieve checked-through luggage if I don't board a connecting flight?

Assume I have a flight ticket from A->B->C and at A I checked in luggage all the way to C. However after the first flight I don't board the second flight but decide to remain in B.  As I understand procedures my luggage will need to be unloaded again from the plane in B when they notice I did not board the flight.    How and when can I retrieve my luggage at B? (Or if not, what is the fate of my luggage?) Is there any way I can advise airport/airline staff in B to not load my luggage in the first place? (I understand that asking to do so when checking in in A would be declined / met with a fare recalculation)   This question is different from  in that I am looking for a general answer, whereas in that case B happened to be the port of entry to the US where you have to collect your luggage in any case. Also it is different from   in that I do want to check in  luggage from A to B. Finally I am also aware that possible further legs of my trip would be cancelled.  is asking essentially the same but was marked duplicate to the above two questions that do not answer my question.


Google banned my site, how can I clear virus from my site?

When you enter URL of the websites in a web-browser, warning is shown. How can I solve this problem?


let $A,B\in M_n$, suppose    $A>0$ (i.e, all $a_{ij}>0$) $\rho (A) = \max \{ \left| \lambda  \right|:\lambda $ is eigenvalue of $A$   $\}$ $B>0$ $A-B>0$   Why does $\rho (A) - \rho (B) > 0$?


I'm putting some type on a path, a circle; but when I do it, the type is upside down. How can I flip it so it reads the right way up? See image below:


how to control vertical placement of span independent of image

I would like to be able to move the span vertically without disturbing the image    <hgroup>                           Educate ● Initiate ● Collaborate                         </hgroup>


My silver pickaxe got damaged. How is it possible?

I crafted my first silver pickaxe in Terraria 1.1. I did not examine its stats until some time later. The name color is grey with -14% damage.  I have no problem mining with it but killing monsters especially cave bats (which I have been doing a lot) got weaker.  Can anyone give an insight into why this happened? I am split between weapon degradation and crafting fluke.


Overlapping objects still show object underneath in Illustrator

I am having issues with objects overlapping.   If I create a red rectangle in Illustrator, then copy it, and paste it directly on top of itself and change it to white, I get a red outline, even though the object is supposed to cover the other object behind.   Why is that? It's driving me nuts, please someone help me out :)


So i'm working in python with SpeechRecognition :  It works perfectly with this code:   import pyaudio import speech_recognition as sr r = sr.Recognizer(language = "es-ES", key = "AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw") with sr.Microphone() as source:     audio = r.listen(source) print r.recognize(audio)   But when I try to turn it into a function:  def stt():     r = sr.Recognizer(language = "es-ES", key = "AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw")     with sr.Microphone() as source:         audio = r.listen(source)     return r.recognize(audio)   I get this error: File "./prueba_2.py", line 22     with sr.Microphone() as source:                                   ^ IndentationError: unindent does not match any outer indentation level  How could i fix it?


I just uninstalled my Ubuntu partitions and have a problem to delete the GNU GRUB from my computer.  I worked with the  guide but cant finish the "Fix the Windows Boot Loader" stage.  After I restarted my computer and opened the windows installer and typed:   bootrec.exe /fixmbr   I restarted the computer and got a black screen with the title: GNU GRUB version 2.02 and text:     Minimal BASH-like line editing is   supported. For the first word, Tab lists possible command completions.   Anywhere else TAB lists possible device or file completions.   I opened linux through my disk-on-key and tried to figure out from where the GNU GRUB came from and I figured that I have alot of partitions:   This time, I changed my BIOS settings and set windows to be the default boot. How can I remove the GNU GRUB from my computer and check if I have another Ubuntu partition on my hardware? (Also, I see that 2 of the partitions on my laptop are from Lenovo)


Why does my array not update after passed in a method that changes its elements?

I thought arrays are passed by reference - so when I pass str into replaceSpaces, the method returns 'Mr%20John%20Smith' as a char array which is right, but when it returns back to the main method, the char array goes back to its original value of "Mr John Smith    ".  public static char[] replaceSpaces(char[] s, int n) {         String result = "";          for(int i=0; i<n; i++) {             if(s[i]==' ') {                 result+="%20";             }             else {                 result+=s[i];             }         }          s=result.toCharArray();           return s;     }      public static int findLastCharacter(char[] str) {         for (int i = str.length - 1; i >= 0; i--) {             if (str[i] != ' ') {                 return i;             }         }         return -1;     }       public static void main(String[] args) {          String str = "Mr John Smith    ";         char[] arr = str.toCharArray();         int trueLength = findLastCharacter(arr) + 1;         replaceSpaces(arr, trueLength);          System.out.println("\"" + AssortedMethods.charArrayToString(arr) + "\"");       }


How to keep website(www) parked at GoDaddy but manage e-mails elsewhere?

I have a domain registered at GoDaddy and a dedicated server I want to use to manage e-mails.  If I want to keep www.mydomain.com loading from GoDaddy(at least for now) yet when e-mails are sent to mymailbox@mydomain.com these are managed over at my dedicated server, do I simply have to add a new Hostname in the GoDaddy control panel like this:  Hostname: MAIL  IP Address: IP of the dedicated server  Would this be enough, or I also need to add an MX record and if yes, how?  In my dedicated server control panel, I added this for the domain:  Existing DNS records  Hostname: @ Type: MX Content: mail.mydomain.com Priority: 0 Time to live: 300


How to prevent a kiosk running Ubuntu 13.10 showing the update dialog popup window?

In my KIOSK i have Ubuntu 13.10.  How to remove/suspend/blacklist/hide/disable completely from the Ubuntu 13.10 this following popup via command line? (even with GUI when i click settings and insert my password it still fails and keep repeating it)   this setup is running in a busy Railway, where passengers passing very busy place  every day almost every hour i have this strange popup "Software update"  even i do not want it   Please kindly anyone suggest how to remove this to stop disturbing? I have tried following but none works:  root@touch:~# vim /etc/default/grub  add GRUB_RECORDFAIL_TIMEOUT=0 root@touch:~# vim /etc/default/apport  put 0 root@touch:~# sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop root@touch:~#


Sudo comes up with an error, cannot run anything as root

For some reason, when I try to run any programs (I am trying to run a rootkit hunter: rkhunter) as root on the command line with sudo like this:  sudo rkhunter   Then I get this message:  You must be the root user to run this program   and then I get these lines:  sudo: error in /etc/sudo.conf, line 0 while loading plugin 'sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must only be writable by owner sudo: fatal error, unable to load plugins   I try typing in just sudo but that comes up with the same three errors as above. Also in /etc/ sudo.conf does not exist.  I cannot run any other programs as root through sudo. It was also strange because I could run as root a day ago. I would like it to work.  Just so you know, I am the only user of this computer, and the administrator, running Lubuntu 14.04.1.


Why is probability proportional to $ \ e^{-E/kT}$?

Why is the probability for say the Ising model to be found in state of energy E proportional to $e^{-E/kT}$ ?  Is this some postulate or can it be derived from simpler principles?


What was Dolores Umbridge's blood status?

Dolores Umbridge's dislike of Muggles, Muggle-born witches and wizards and half-breeds is quite obvious. In Order of the Phoenix she takes a particular dislike to Hagrid due to his giantess mother (and his allegiance to Dumbledore), as well as to the centaur Firenze who takes over as Divination teacher after Professor Trelawney is sacked. And, of course, during Deathly Hallows she is made Head of the Muggle-Born Registration Commission.  In Deathly Hallows, when Hermione (under the effects of Polyjuice potion) comments on the locket she's wearing, Umbridge says this:     "That's - that's pretty, Dolores," she said, pointing at the pendant gleaming in the ruffled folds of Umbridge's blouse.      "What?" snapped Umbridge, glancing down. "Oh yes - an old family heirloom," she said, patting the locket lying on her large bosom. "The S stands for Selwyn... I am related to the Selwyns... Indeed, there are few pure-blood families to whom I am not related. ..."   That seems a rather large and contrived lie to tell just to explain her possession of the locket, considering her blood status had never been questioned by the Ministry. I don't remember it being covered anywhere in the books (which I just recently re-read, so I'd hope I'd remember if it had been!), but I was wondering if there was any other evidence (interviews, etc) to say whether Umbridge was Pure-blood, Half-blood or Muggle-born?


If $\cos x=\cos y$ and $\sin x=\sin y$ is $x=y$ or $x=2\pi,y=0$ or $x=0,y=2\pi$? $x,y\in[0,2\pi]$

I know that if $\sin x=\sin y$ then $x=n\pi+(-1)^ny$  and $\cos x=\cos y$ implies that $x=y+2k\pi$ or $x=-y+2l\pi$. Since the latter does not fit the form above $x=y+2k\pi$ which implies that $k=0,1,-1$. Hence, we have x=y or $x=2\pi,y=0$ or $x=0,y=2\pi$.


TTY characters mixed up after device cat or Python print

So, when I cat /dev/input/mouse0 in a TTY, move the mouse around a bit, and then ctrl-z to stop cat, my terminal characters are all messed up.  Almost every single character gets swapped out for another character in the ASCII character set.  This same situation occurs when I execute this in Python 3.2:  print('\033[1;12mTest.\033[1;m')   The the same symptom does not appear on a shell in the GUI, only on the virtual terminals.  The problem does not go away if I log out.  I suspect that a certain escape code (which may be contained within the Python code) is remapping the ASCII byte codes to the character representations, but that is just a guess.  What is happening and how do I undo it?


What form of government exists at the time of Alien/Aliens?

In The Alien universe we see that a powerful company has faster than light space travel, off world colonies and their own marine force.  Despite this, they still need to be cloak and dagger about returning a xenomorph to earth.   What is the nature of government on earth at the time of Alien and Aliens?


Can the Next/Prev Post links be ordered by menu order or by a meta key?

I have a series of posts that are ordered by a meta_key value. They could also be arranged by menu order, if necessary.  The next/prev post links (generated by next_post_link, previous_post_link, or posts_nav_link all navigate by chronology. While I understand this default behaviour, I don't understand how to change it. I found that it maps through to adjacent_post_link in link-template.php, but then it starts to seem fairly hard-coded. Is it recommended to re-write this from scratch to replace it, or is there a better solution.


I would like to plot stacked bar plot inside table in latex.  I have code which plots two different bar plots inside table. But i want to plot single barplot with stacked bars.  How can I do it in LATEX ?  Many thanks...  Here is the code.......  \documentclass{article} \usepackage{booktabs}   \usepackage{multirow} \usepackage{pgfplotstable}     \usepackage{filecontents}  % The data \begin{filecontents}{data.txt} accession,data1,data2 C1,150708.4564,481.0388003 C2,49652.53112,275.2190163 C3,37379.1284,58.85806921 C4,34165.85698,26.06571636 C5,30856.19158,35.96802428 C6,15204.22768,26.71594573 \end{filecontents}   \pgfplotstableread[col sep=comma]{data.txt}\data  \newcommand{\errplota}{% \begin{tikzpicture}[trim axis right]   \begin{axis}[y=-\baselineskip,   scale only axis,   width=5cm,   enlarge y limits={abs=0.5},   axis y line*=middle,   ytick=\empty,   axis x line*=bottom,   xbar,   bar width=1.5ex,   xmin=0,   visualization depends on=x \as \rawx,   nodes near coords,   every node near coord/.style={   anchor=east,   shift={(axis direction cs:-\rawx,0)}  }  ] %  \addplot [draw=black, fill=red]  table [x=data1,y expr=\coordindex]{\data}; \end{axis} \end{tikzpicture}% }  \newcommand{\errplotb}{%  \begin{tikzpicture}[trim axis right]  \begin{axis}[y=-\baselineskip,   scale only axis,   width=5cm,   enlarge y limits={abs=0.5},   axis y line*=middle,   ytick=\empty,   axis x line*=bottom,   xbar,   bar width=1.5ex,   xmin=0,   visualization depends on=x \as \rawx,   nodes near coords,   every node near coord/.style={   anchor=east,   shift={(axis direction cs:-\rawx,0)}  }  ] %  \addplot [draw=black, fill=yellow]  table [x=data2,y expr=\coordindex]{\data}; \end{axis} \end{tikzpicture}% }  \begin{document}  % Get number of rows in datafile  \pgfplotstablegetrowsof{\data} \let\numberofrows=\pgfplotsretval  % Print the table \pgfplotstabletypeset[columns={accession,data1,data2},  % Booktabs rules   every head row/.style={before row=\toprule,after row=\midrule},   every last row/.style={after row=[3ex]\bottomrule},  % Set header name   columns/accession/.style={string type,column type=l,column name=accession},   columns/data1/.style={   column name={Data1},   assign cell content/.code={% use \multirow for Z column:   \ifnum\pgfplotstablerow=0   \pgfkeyssetvalue{/pgfplots/table/@cell content}   {\multirow{\numberofrows}{6.5cm}{\errplota}}%   \else   \pgfkeyssetvalue{/pgfplots/table/@cell content}{}%   \fi   },},    columns/data2/.style={   column name={Data2},   assign cell content/.code={% use \multirow for Z column:   \ifnum\pgfplotstablerow=0   \pgfkeyssetvalue{/pgfplots/table/@cell content}   {\multirow{\numberofrows}{6.5cm}{\errplotb}}%   \else   \pgfkeyssetvalue{/pgfplots/table/@cell content}{}%   \fi   },  }  ]{\data}  \end{document}


Is there a way to find the maximum and minimum defined values of an enum in c++?


Can I convert a C# string value to an escaped string literal?

In C#, can I convert a string value to a string literal, the way I would see it in code? I would like to replace tabs, newlines, etc. with their escape sequences. If this code: Console.WriteLine(someString);  produces: Hello World!  I want this code: Console.WriteLine(ToLiteral(someString));  to produce: \tHello\r\n\tWorld!\r\n


Add post id as body class in wordpress admin dashboard

i am looking to add custom class names to the body tag of all our posts (including pages, posts, Woocommerce products) all have post id's (seen in the URL when editing a post, category, etc.) and is also part of the body class on the front end.  How do i also add it to the body class when for example "editing the post" in the dashboard. So i can call it via our admin.css  Thanks for any help!


how can I use light nodes for lights in Blender 2.9?

how can I use light nodes for lights (not emission shader for objects) in Blender 2.9 in order to control the color of the light with blackbody shader?


2D Integration With Quadratic Arg. of Delta Function

The problem statement, all variables and given/known data  I have a 2D integral that contains a delta function:  $\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}\exp{-((x_2-x_1)^2)+(a x_2^2+b x_1^2-c x_2+d x_1+e))}\delta(p x_1^2-q x_2^2) dx_1 dx_2$,  where $x_1$ and $x_2$ are variables, and a,b,c,d,e,p and q are some real constants. Relevant equations  How can one integrate this without resulting in poles. Because integral over, for example, $x_1$ leads to a pole, given the property of delta function. The attempt at a solution If inside the delta function, the argument would be $x_1^2+x_2^2$, and not $x_1^2-x_2^2$, then one could go to polar coordinates, and get rid of the poles coming from the delta function integral. Sadly, this is not the case here. Further one can get rid of pole by going into hyperbolic coordinates $x_1=RCosh(\theta)$ and  $x_2=RSinh(\theta)$. The R integral can be done exactly because the poles cancel out due to Jacobian. However, the integral over ##\theta## then becomes unbounded. So this method also has a problem. Is there a smarter way to perform integral with quadratic argument of delta function without encountering poles?


Definite article before specific product names

I would just like to know: Do we use the definite article (the) before specific names of products like iPhone and iPod? If yes, is there any specific rule as to when and when not to use the article "the" before such names?  Thank you!


What is the usage of Zero Ohm & MiliOhm Resistor?

I am new to PCB design and I noticed that some schematics use 0Ω or 100mΩ resistors. What is their purpose and why do we need to use them in our PCB design?  Normally if we wish to probe how much current the load is taking, we put a jumper pin across the PCB trace (then measure current across the pin using a multimeter). Adding resistors for this purpose seems like it would waste a lot of PCB real-estate. Is this the sole reason why 100mΩ resistors are being placed (since I = V/0.1Ω) instead of a jumper pin?   If so, is there any consideration we should take when placing such a mΩ resistor on board so it doesn't affect the signal or behaviour of the circuit?


My child poured some water in my computer. The computer did not blow up or anything like that, it just lost connection with monitor. I shuted it down. I opened it, cleaned it without taking apart and dried some water I saw around.  I managed to start the computer for once but soon the windows screen broke into little squares like the graphics is breaking down or something. then it fell into blue screen and shut down.  Now it has problem to start. Whenever I start it, it runs for few seconds and then restarts itself, runs for few seconds and restarts itself and it restarts like this forever. When its starting, all the fans are running and the motherboard lights are up.  I took the components apart. I took the graphics out first to try if it would start without it, but it did the same thing. Now I guess some components are dead or faulty, but I dont know which. My best guess is motherboard, RAM and/or graphics, because I found some water on them or around them. But could it also be CPU? though it did not blow up and no water got close to CPU?  How can I determine which components are dead, which to replace?


Allow user to only select one check box in visualforce page

I have a visual force page which dynamically displays multiple records with check box's.  I  need to allow the user to select only one check box at a time.  I know it is possible with only javascript.  Can any  one post sample code for this?  If you have any other suggestions as well, please let me know.


Get profile properties from person/group field using rest api

I have a list with a person field. I need users to fill in the field with their names but I need to get the following properties below from that field using rest API:   Email Address Name(Full Name) Department Job Title Phone Number   Is this possible?  Thanks in Advance.


My 3 lenses all have a different size thread. (77, 67 and 58mm) I am to purchase a good CP filter for the 77 and 67 thread. I don't have any filters for the 58mm thread lens but I was thinking about perhaps getting a  and use my 77mm filters on the 58mm lens.   Are there any known issues with using filter step-up rings? I am thinking maybe even getting only one good 77mm CP filter and use with with all my lenses with a pair of step-up rings.   Any thoughts?


HTML Anchor is not clickable after adding elements to the DOM

I've created an html page that looks like that:       ...
         ...

Selected Shift Type

Selected Dates

             Submit

    I also have a jQuery click listener for the  tag:  $("#submit-overview").click(function() {    console.log("click");    submitDates(); });   This listener works as long as the DOM stay the way it is now. Whenever I add an element to the selected-shift-type-cont or the selected-dates-cont the listener does not work anymore. Does anyone has an idea why this problem occurs?  I add elements this way:  var tmp = new Date(date.getTime()); dates[dates.length] = tmp; $("#selected-dates-cont").append("
" + getDateString(tmp, "dd.mm.yyyy") + "
");   and  $("#selected-shift-type-cont").html("
" + shiftType.name + "
");   As soon as one of these two pieces of code are executed, I cannot click the anchor anymore.  Update:  I use jQuery 1.9.1. Also I use Chrome (version 28.0.1500.71) for developing. When I test it on Firefox 22 everything works as expected. Since I use the jQuery .load() method to change the main content according to what the user clicked in the navigation bar. Therefore I need to run the website on localhost which I do using the python -m SimpleHTTPServer 8001 command on my Mac. This command starts a webserver from the directory I called that command. Is it possible one of these factors might be the problem  Update 2:  I did not mention until now that I use the fullCalendar jQuery plugin. I also created a jsFiddle that reproduces the problem . It contains all important parts, I also included the whole fullCalendar minified javascript code, because I did not know how to include an external script.  Update 3:  It does work if I add the following CSS:  #submit-overview {     position: relative;     z-index: 99; }


Prove inequality: $\sum \frac{a^4}{a^3+b^3} \ge \frac{a+b+c}{2}$

Prove inequality with $a,b,c >0$ $$\frac{a^4}{a^3+b^3} +  \frac{b^4}{b^3+c^3}+\frac{c^4}{c^3+a^3} \ge \frac{a+b+c}{2}$$   I tried the inequality: $\sum \frac {a^4+b^4}{a^3+b^3} \ge \sum \frac{a+b}2=a+b+c$, but seem like it doesn't help


Convert Proxy Server to open internet connection

My college provides internet access via wifi and uses a proxy server. Every time when I open my browser I have to enter user name and password for internet access.   Is there any way to convert proxy server internet access to open internet access using VPN or any other service so that I can access internet in my system without using any proxy address and port ?


lwc lightning-checkbox-group - display checkboxes horizontally

Can I display the checkboxes horizontally using lightning-checkbox-group tag? <lightning-checkbox-group                             onchange={handleChange}                             name={objectInfo.data.fields.Reason__c.apiName}                             label={objectInfo.data.fields.Reason__c.label}                             options={reasonOptions}                             value={recordInput.fields.Reason__c}></lightning-checkbox-group>


Show determinant of $\left[\begin{matrix} A & 0 \\ C & D\end{matrix}\right] = \det{A}\cdot \det{D}$

Let $A \in \mathbb{R}^{n, n}$, $B \in \mathbb{R}^{n, m}$, $C \in \mathbb{R}^{m, n}$ and $D \in \mathbb{R}^{m, m}$ be matrices. Now, I have seen on Wikipedia the  of why determinant of $\left[\begin{matrix} A & 0 \\ C & D\end{matrix}\right] = \det{A}\cdot \det{D}$, but I still did not get it. Specifically, the explanation is:  This can be seen ... from a decomposition like: $\left[\begin{matrix} A & 0 \\ C & D\end{matrix}\right] = \left[\begin{matrix} A & 0 \\ C & I_{m}\end{matrix}\right]\left[\begin{matrix} I_n & 0 \\ 0 & D\end{matrix}\right]$  I understood that the equation is true from the standard rules of matrix-matrix multiplication, but it is still not too clear why this should prove what we want to prove or show. If $A$, $B$, $C$ and $D$ were regular reals (and $I_{i}$ was $1$), then the equation and the explanation would be obvious, because of the standard rules of calculating determinants... But in this case, I cannot understand why the equation shows that the final determinant is $$\det{A} \cdot \det{D}$$ Those 2 matrices $\left[\begin{matrix} A & 0 \\ C & I_{m}\end{matrix}\right]$ and $\left[\begin{matrix} I_n & 0 \\ 0 & D\end{matrix}\right]$ basically could not be triangular or diagonal matrices, from my understanding...


If I bought Minecraft Desktop version, can I convert it to Wii U version or maybe just get discount for it?


Word for phrase Good for you, bad for us

There is a phrase I have heard quite a bit recently dealing with people that are leaving the department for promotions, etc. When a person leaves, it is good for them, but bad for us.  It is good for them because they will be pursuing a new opportunity, but not so good for the department since they will have to be replaced, and others will have to pick up the slack until someone else can be hired and get up to speed.  Is there a word that means that a deal is good for one party, but not necessarily the other?


BASH - Command not found - LVM over LUKS Automation Script

I've been working a bash script to automate the process of opening and closing an LVM over LUKS external hard drive. However I continue to receive errors on line 28:   $(vgchange -a n ; cryptsetup luksClose vol)   The error I receive:  $ sudo ./encryption.sh -l Locking System.............. ./encryption.sh: line 28: 0: command not found System Locked!   Here is the rest of the code for reference:  if [ $1 = -u ] ; then     $(cryptsetup luksOpen /dev/sdb2 vol)     echo "Unlocking.................." | pv -qL 10     $(mount /dev/mapper/vol-lvroot /mnt ; mount /dev/mapper/vol-lvvar /mnt/var ; mount /dev/mapper/vol-lvhome /mnt/home ; mount /dev/sdb1 /mnt/boot)     echo "System Mounted!" | pv -qL 10 #   exit 0 fi  if [ $1 = -l ] ; then     $(umount /mnt/var ; umount /mnt/home ; umount /mnt/boot ; umount /mnt/)     echo "Locking System.............." | pv -qL 10     $(vgchange -a n ; cryptsetup luksClose vol)     echo "System Locked!" | pv -qL 10     exit 0 fi   Other information:   I receive no apparent error when running the command in question by itself interactively. I'm new to writing bash, so any recommendations and constructive criticism is appreciated. The process appears to complete successfully, but I don't understand the error or how to make them go away. Upon further research when running the troubled code alone in interactive mode it does provide output after being executed.   This is given after posting the troubled code interactively.   0 logical volume(s) in volume group "vol" now active


There are many  about Unable to locate package.  For example : if user try to install package by using apt-get then the following error shown. (Here package is used only as example for displaying error message):  sudo apt-get install package Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package package   What does this error mean? How do I solve it?    provided General solution to understand and how to solve such type of error (which is helpful for new users that may unaware of repository-apt install mechanism)  Note : For resolving unmet-dependencies, visit: .


Can you block and hit the ball over the net in volleyball?

So playing with friends the other day and this happened. Team A set the ball for their attacking player (3rd touch), he tried to dink the ball behind the blocker. It was a horrible touch and the blocker managed to block it.  Now here is the issue. As soon as the blocker made the block he noticed that it will drop in his own side. So before the ball went below the net line he managed to hit it again into the opposing team side. Is that allowed ?  In other words, he made two consecutive touches above the net: blocking and pushing the ball to the other side.


Could you help me to point out the differences in the following sentences. for me both sentences imply same meaning.      The Restaurant , offers a broad range of locally caught fresh seafood,   prime steak and meat dishes      The Restaurant , offers a wide range of locally caught fresh seafood,   prime steak and meat dishes


I am using Blender 2.80 beta. In Object Mode Scaling and Rotating objects stopped working.  How do I enable rotating and scaling again?  The button that is referenced in Blender 2.7x does not exist in Blender 2.80. The odd thing is if I create a new model everything works fine...it just stopped working on my original model and still isnt working.  ???


What is the proper use of [square brackets] in quotes?

I sometimes see square brackets used while quoting.  My assumption is that they are replacing a pronoun with what the object of the pronoun, but I never know for sure because I don't usually get to see what the original quote looks like before the modification.  What are these called and what are the rules of use?


Is there an apostrophe in "number of years experience?"

I'm developing a tool that looks at a person's resume and skill set. One of the features is to estimate how much experience a person has based on the length of time on a project and associated skills/tools used in that time (we've had extensive talks about the limitations of this, but that's not really relevant to this question). At the end of the day, I'd like to be able to say "Bob has 4 years experience with C#," but the correct way to show that is unclear to me:    Bob has 4 years experience with C# Bob has 4 year's experience with C# Bob has 4 years' experience with C#    I'm writing documentation and the phrase "number of years experience" has shown up a few times, but I think that's the same situation as above (Word grammar checker does not like this phrase).


Is a spell's area set before damage is applied?

Triggered by , I was curious as to what the specific order of operations is with respect to spell resolution.  I have been unable to find any information which states that a spell's area of effect is limited to it's initial casting point.  Example scenarios:  A fireball is inside a wooden box. Does it destroy the box and expand to 20'?  If not, then consider that if the fireball was inside a cotton shirt. Or a bubble.  An additional example would be to swap fireball out for something like Lightning Bolt. Would hanging out behind a curtain suddenly make the spell utterly useless against you if area of effect is determined before the damage is?  I feel that spells area of effect and damage are not exclusive of each other, and that objects which are destroyed don't successfully impede the spell.  Is this accurate?  Additional information I've found which created the problem:  PHB pg. 196 under Cover     A target with total cover can’t be targeted directly   by an attack or a spell, although some spells can reach   such a target by including it in an area of effect. A   target has total cover if it is completely concealed by   an obstacle.   PHB pg. 204 under Area of Effect     A spell’s effect expands in straight lines from the point   of origin. If no unblocked straight line extends from the   point of origin to a location within the area o f effect, that   location isn’t included in the spell’s area. To block one of   these imaginary lines, an obstruction must provide total   cover, as explained in chapter 9.   These two rules indicate that something as simple as a 5' X 5' roll of linen, so long as it is granting you full cover, is capable of withstanding any AOE spell and excluding you from the area. What's more, the wording seems to contradict each other. Spell AOE says it doesn't affect areas under total cover. Total cover states spell AOE can reach you. That's...... not helpful.  So I've attached an image which shows a Caster (denoted with a C) launching a lightning bolt through a room with 5 targets to help illustrate an example of this issue.


The Projection to a Projective Line is Holomorphic

I have a line $L\subset \mathbb CP^2$ and a point $R\in \mathbb CP^2-L$. I need to prove that the map  \begin{align*} \varphi:\mathbb CP^2&-\{R\} \to L\\ &P\quad\mapsto L\cap L_{RP} \end{align*} where $L_{RP}$ is the line between $R$ and $P$, is a holomorphic map between complex manifolds.  I'm having some troubles finding an explicit description of $\varphi$, so that I can make sense of the composition with the charts. Any help? Are there other ways to prove this?


Obtaining the text from a drop-down box?

This gets the value of whatever is selected in my dropdown menu.  document.getElementById('tester').value   I cannot however find out what property to go after for the text that's currently displayed by the drop down menu. I tried "text" then looked at W3Schools but that didn't have the answer, does anybody here know?  For those not sure, here's the HTML for a drop down box.  <select name="tester" id="tester">     <option value="1">A skill</option>     <option value="2">Another skill</option>     <option value="3">Yet another skill</option> </select>   Thanks


Why do some applications use ~/.config/appname for their config data while others use ~/.appname?

I've noticed that some applications put their configuration files to ~/.config/appname while others use ~/.appname (the classic way, AFAIK) for this. What's the sense in this distinction and what could be better to consider for an application of mine?  UPDATE: Looks like my (XUbuntu 11.10 default) $XDG_CONFIG_HOME is set to ~/ and the most of the applications in my system (like Mozilla Firefox, Adobe Flash Player, Midnight Commander, Opera, Wine, etc.) comply to this. But there are still many applications (like Compiz, Deadbeef, VLC, Qt Creator, Google Chrome, XFCE, etc.) using ~/.config/ instead. Another suspicious thing is that directories in ~/.config/ are not themselves hidden (no dot in their names) - aren't application config dirs expected to have constant own names without depending on the location ($XDG_CONFIG_HOME value)?


I've just installed Ubuntu on a fresh machine had Nothing on it just a 120gb SSD, 1TB HDD.  Once it finished installing which was pretty fast on the SSD,  I restarted my PC only to get the error  System running low graphics I, of course, googled it and turns out that some AMD GPU's are having compatibility issues with Ubuntu. the fix apparently is to go to recovery mode and pressing Ctrl+Alt+F2 to get into Terminal command.   The only problem is that it's asking me to log in... sure I try to log in but when it asks for my password it wont let me type Anything.. and just keeps going.   I have no idea how to fix this... any tips? video links maybe ?


I am working on a compact manifold $M$ of dimension $m$.  Moreover, I suppose that $M$ is oriented of fundamental class $ [M] \in H_m (M)$.  I want to show that I have an isomorphism  $H_\ast (M, \mathbb{Q}) \cong H_\ast (M) \otimes \mathbb{Q}$.  I figured I'd use the poincaré duality which tells me that $ H^i (M) \cong H_{m-i} (M)$ via the map $ - \cap [M]$ ?  Any help would be greatly appreciated!


I've been trying to update my iPhone to iOS13.5.1. I couldn't find an option to update via Mobile Data (and apparently it's not supported), so I tried to create a hotspot through another phone and update my iPhone over that. However, it is not updating. Is there a workaround for this? Can I somehow lead my iPhone to believe that the mobile hotspot is a WiFi connection? PS: In the settings corresponding to the network, I've set Low Data Mode to off.


Do I leave a revised question closed even though it falls out of scope for a different reason than the original closure reason?

I have been through a few re-open requests and some shared a similar issue.  Like   It was originally closed as unclear. Then the OP changes the question but his edit still makes it a very poor question with no research shown and the answer could be as simple as yes or no - only if the question didn't get closed.  I judge looking at the new(revised) question ignoring the original closure reason. Even though the revised question still doesn't make a good question and would probably get closed very quickly I just leave it closed with the old closure reason.    Am I doing the right thing or should we re-open and let it get closed for a new - more appropriate reason?   The answer seems obvious: leave it closed, but    is this how all of you process re-open queue?   Note: I am asking because sometimes I've noticed others voting to re-open such cases and I want to confirm that I am on the same page as everyone else


Is there an \iftex4ht command, and if not, how should it be defined?

Background: I'm using TikZ to generate a load of pictures that I want to put on the web as SVGs.  So I'm using the pgfsys-tex4ht.def driver and it's working very well.  My gut feeling is that the SVG output from TikZ/pgf is "experimental" so while designing the pictures, I'm not using a special driver but just generating the PDFs via pdflatex.  Also, I want PDFs as well as SVGs at the end.  So rather than having to comment out the line  \def\pgfsysdriver{pgfsys-tex4ht.def}   each time, I'd rather have a switch that loaded it if tex4ht was loaded; that is, I already specify the output when I decide whether to run pdflatex or htlatex - I don't want to have to specify it twice.  So, my question:     Is there an \iftex4ht somewhat akin to the \ifpdf provided by ifpdf.sty?   If not, what would be the "right" way to test for the presence of tex4ht?


What does it mean for a paper to be "under review"

I dont know much about paper submission as I am not that matured enough.  Can someone kindly say what does it mean for a paper to be "under review"?  First I was informed that it was "Initial version" and now the status says "under review". How long will the tag "under review" stay?  As I am a Master's student I dont know much about publication.Can someone please say what does the above means and what are the steps that follow in order for a paper to be accepted in a journal.  Do editors send the authors mail keeping them informed about the steps that are being done ?  I will be grateful if someone helps me here.


Why would you use an assignment in a condition?

In many languages assignments are legal in conditions. I never understood the reason behind this. Why would you write:  if (var1 = var2) {   ... }   instead of:  var1 = var2; if (var1) {   ... }


How to check if a shell is login/interactive/batch

I think I understand the differences between an interactive, a login and a batch shell. See the following links for more help:    (from the sister site: )  (from A User's Guide to the Z-Shell)   My question is, how can I test with a command/condition if I am on an interactive, a login or a batch shell?   I am looking for a command or condition (that returns true or false) and that I could also place on an if statement. For example:  if [[ condition ]]    echo "This is a login shell" fi


Phd in Mathematics (Analysis, Analytical Number Theory)

Does one have to study algebra at a graduate level (master's degree) in order to do a Phd related to complex analysis and analytical number theory, or functional analysis and PDE? Is a master's degree in analysis and PDE sufficient?


Not able to install Win Xp on Lenovo Ideapad z570

I want to install Win Xp on my Ideapad Z 570 laptop but i always get blue screen with message with some drive related problem which asks me to run CHKDSK command. I tried with that but no luck. Is there any way i can install Win Xp with SP 2 ?  Edit: i searched across the sites and came to know there could be some Compatibility problems, and i could fix it by setting HDD mode to IDE; will it solve the problem?


Consider an experiment where subjects reaction times are measured in three conditions. Because every subject participates in each condition, this is a typical within-subjects design. Now I'm wondering if a one-way within subjects anova is completely equivalent to a two-way anova with subject as the second factor. I already read some chapters on this topic but the difference between both procedures was never discussed explicitly.So,   Is there an advantage of using one compared to the other?  Is a multilevel approach with subject as the random effect and condition as a fixed effect even better?  What if an effect of time is assumed, (e.g. fatigue). Could this be modelled additionally as a "third" factor?   I know these are pretty vague/broad questions but I hope you could give me some hints anyway.  Thanks in advance


Someone is copying my blog content. Does it affect my blog’s ranking on Google?

I have posted one blog post about SEO interview questions last month, but I found that someone copied the content of my post and updated in their wordpress blog yesterday with no change. He/she didn’t give link back to my post or anything referring my post. I don’t like this kind of activity. I asked them to give link back to me but no response. My post was cache by Google already and that stolen post hasn’t cache by Google. If it cache by Google will it affect my Post? How avoid those content copies? Does it possible to complaint Google above it?


What makes a differential equation, linear or non-linear?

Among these differential equations why one is linear while other is non-linear?  What is criteria to find out whether a differential equation is linear or non-linear?


Topology exercise: how to prove this equivalent definition of continuity

Let $F: X \rightarrow Y$ be a map between topological spaces. Prove that the following property is equivalent to continuity of $F$: For every subset $A \subseteq X$, $F(\overline A) \subseteq  \overline {F( A)}$. The definition of continuity is that the preimage of an open set is open. $\\$ For one direction: Assume continuity. $\Gamma_X$ is the set of all open sets in $X$. $F(\overline A) \subseteq  \overline {F( A)}$ $\iff$  $\overline A \subseteq F^{-1} (\overline {F(A)})$ $\iff$ $X-\overline A  \supseteq  F^{-1}(Y-\overline{F(A)})$ $\iff$  $\cup \{Q | Q \in \Gamma_X, A \cap Q = \emptyset\} \supseteq F^{-1}(Y-\overline{F(A)}) $. Since $F$ is continuous and $Y-\overline{F(A)} \in \Gamma_Y$, $$ F^{-1}(Y-\overline{F(A)}) \in \Gamma_X$$. It can be proved that  $$ F^{-1}(Y-\overline{F(A)})\cap Q = \emptyset$$. Thus the last statement is true.  QUESTION: I don't know how to prove the other direction, i.e. If $\forall A$, $\cup \{Q | Q \in \Gamma_X, A \cap Q = \emptyset\} \supseteq F^{-1}(Y-\overline{F(A)}) $, then $F^{-1}(Y-\overline{F(A)}) \in \Gamma_X$. If you can solve it, please tell me how you approach the problem instead of directly giving a solution.


What requirements does the Artificer's Magic Item Savant feature ignore?

The 's  feature (E:RftLW, p. 58; WGtE, p. 180) states:     [...] You ignore all class, race, spell, and level requirements on attuning to or using magic items.   Class and race requirements are relatively intuitive, additionally, since an Artificer is able to cast spells they can already attune to items that require you to be a spellcaster. But there's still some questions:   Can they use a spell scroll of a spell not on their spell list? Is this one of the four requirements ignored? What are level and spell requirements; what are some examples?


Deformation vs Strong Deformation Retract

When I think of deformation retracts visually, I can only visualize strong deformation retracts. Can someone give a simple, easy to visualize example of a subset that is a deformation retract, but not a strong deformation retract?


I cannot distinguish if "could" in the following sentences shows "possibility" or "hypothetical situation".  A study published last week in the journal Cell found that antibodies in llamas’ blood could offer a defense against the coronavirus. The hope is that the llama antibodies could help protect humans who have not been infected.  I would be happy to receive your replies.


why does a change in velocity cause length contraction, mass gain and the slow down of time?

How did the universe 'know' to do that? Or is there an intuitive explanation for it?


How do I show a label instead of the value in a custom autocomplete?

I am building a custom autocomplete field. It worked as in when I type 'a' it shows me all the list of fruits with letter 'a', but when I click on any of the options. I see the autocomplete field 'value'.   When users type a, it should show Apple, Avocado. Clicking on any of them, it should show Apple, not fruit-1 in the field.  This is the code I am using.  Form  namespace Drupal\custom_google_search\Form;  use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Routing\TrustedRedirectResponse;  class GoogleSearchAutocomplete extends FormBase {    /**    * {@inheritdoc}    */   public function getFormId() {     return 'custom_google_search_autocomplete';   }    /**    * {@inheritdoc}    */   public function buildForm(array $form, FormStateInterface $form_state) {     $form['google_places_search'] = [       '#type' => 'textfield',       '#title' => t('Searchfield'),       '#autocomplete_route_name' => 'custom_google_search.autocomplete',       '#value' => 'aaa11',     ];   $form['search_in_us'] = [     '#type' => 'submit',     '#value' => $this->t('Search'),     ];       return $form;   }    /**    * {@inheritdoc}    */   public function validateForm(array &$form, FormStateInterface $form_state) {    }    /**    * {@inheritdoc}    */   public function submitForm(array &$form, FormStateInterface $form_state) {    } }   Autocomplete controller  namespace Drupal\custom_google_search\Controller;  use Drupal\Core\Controller\ControllerBase; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Drupal\Component\Utility\Tags; use Drupal\Component\Utility\Unicode; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; use Drupal\Core\StringTranslation\TranslationInterface; use Drupal\Core\StringTranslation\StringTranslationTrait;  class AutocompleteController extends ControllerBase {    public function handleAutocomplete(Request $request) {      // Get the typed string from the URL, if it exists.     if ($input = $request->query->get('q')) {       $typed_string = Tags::explode($input);       $typed_string = Unicode::strtolower(array_pop($typed_string));       $trimed_string = preg_replace("/\s+/", "+", $typed_string);       $results = $this->showRelatedPlaces($trimed_string);     }     return new JsonResponse($results);   }    public function showRelatedPlaces($trimed_string) {     try {        $results = [          [            'value' => 'fruit-1',            'label' => 'Apples',          ],          [            'value' => 'fruit-2',            'label' => 'Apricots',          ],          [            'value' => 'fruit-3',            'label' => 'Avocados',          ],        ];        return($results);      } catch (RequestException $e) {     return($this->t('Error occured.'));   }  }   }   Problem is that when I type a in the autocomplete textfield, it shows the fruits label (Apple), but when I click on the fruit label, the field value shows fruit-1. I want to show Apple when users select Apple.  PS: I don't want to use the same value for label and value.


How can I say that this matrix is invertible?

Let $A_{ij}=1$ if $i=j$ and let $A_{ij}=\frac{1}{2}$ if $i \neq j$. How can I formally argue that $A$ is an invertible matrix? I can made for particular examples, but I don't know how to argue for the general case.


Set legend of piechart pgf-pie under the figure

Is it possible to move the legend of the pie-chart under the figure instead of having it on the side? Moreover, how can I label and add a caption for each piechart?  I want to piechart one next to each other as the one show below:  \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage[utf8]{inputenc} \usepackage{textcomp} \usepackage{eurosym} \usepackage{pgfplots} \pgfplotsset{width=10cm,compat=1.9} %\usepgfplotslibrary{external} %\tikzexternalize \usepackage{verbatim} \usepackage{pgf-pie} \usepackage{tikz} \usepackage{subfigure}  \begin{document} \begin{tikzpicture}   \pie [rotate = 180]     {62/\TeX\ Live and Mac\TeX,      32/MiK\TeX\ and Pro\TeX t, 6/Other \TeX}       \pie [rotate = 180]     {60/\TeX\ Live and Mac\TeX,      34/MiK\TeX\ and Pro\TeX t, 6/Other \TeX} \end{tikzpicture}   \begin{tikzpicture} \tikzset{lines/.style={draw=white},} \pie[color={purple, red, yellow, blue, green},sum=auto, after number=,text=legend,every only number node/.style={text=black},style={lines}]{10/A,20/B,30/C,10/D} \pie[pos={8,0},color={purple, red, yellow, blue, green},sum=auto, after number=,every only number node/.style={text=black},style={lines}]{10/,20/,30/,10/}  \end{tikzpicture}    \end{document}


Prime and Maximal Ideals of $\mathbb{Z}_2 \times \mathbb{Z}_4$

I'm having some trouble finding ideals in general. The problem I'm stuck on is:  Find all prime and maximal ideals of $\mathbb{Z}_2 \times \mathbb{Z}_4$.   I know that a finite integral domain is a field, which means the prime and maximal ideals are the same. That means I just have to find one or the other, right? But I don't really know how to go about finding ideals for $\mathbb{Z}_n \times \mathbb{Z}_m$. Any help would be great. Thank you!


Are these two definitions of finiteness equivalent?

Def1. Say $X$ is finite, if there isn't a $Y\subsetneq X$ such that $|X|=|Y|$. Def2. Say $X$ is finite, if for every $f:X\to X$, $f$ is an injection iff $f$ is a surjection. It can be easily verified that they are both equivalent to the usual definition, that is, $X$ is finite iff $|X|=n$ for some $n\in\mathbb N$, using axiom of choice. Also, it is known that Def1 is strictly weaker than the usual one in $ZF$. (There is an 'infinite' $X$ which satisfies Def1) My question is, is Def1=Def2 in $ZF$, and is Def2=the usual one in $ZF$?


Applescript with get every file loop fails

I want to run a script on all files with two specific extensions on a disk with a hierarchy of multiple nested folders.  My script works fine when I choose a folder further down the line with fewer subfolders but I'd like to run it on an entire archive with over a thousand folders.  The AppleScript takes forever to get all the files and then exits without returning anything and without executing the operations after getting the files.  No timeout message, no error message.  And the Finder becomes unresponsive (and remains stuck after the script exits).   set myFolder to choose folder with prompt "Choose a folder:"     tell application "Finder"         try             set eafFiles to (every file in entire contents of myFolder whose name ends with ".eaf") as alias list         on error             try                 set eafFiles to ((every file in entire contents of myFolder whose name ends with ".eaf") as alias) as list             on error                 set eafFiles to {}             end try         end try         try             set pfsxFiles to (every file in entire contents of myFolder whose name ends with ".pfsx") as alias list         on error             try                 set pfsxFiles to ((every file in entire contents of myFolder whose name ends with ".pfsx") as alias) as list             on error                 set pfsxFiles to {}             end try         end try         set myFiles to eafFiles & pfsxFiles     end tell      repeat with CurrentFile in myFiles         set CurrentFile to CurrentFile as string          do shell script "perl /path/to/perl/script.pl " & quoted form of CurrentFile     end repeat


So from reading the Player's Handbook, it seems that the Ready action is taken instead of any other action as it is an action in its own right. However, can you move on the same turn that you ready an action? For instance, (taking the example from the Player's Handbook):     If the cultist steps on the trapdoor, I’ll pull the lever that opens it   Presumably, when you ready this action, you would want to move near to the lever so you can pull it when the time is right. Likewise, with readying a spell, you would obviously want to move away from combat so you could concentrate on the spell.  Secondly, when the trigger goes off do you have to wait for your turn, or do you in effect get a bonus turn? For instance, the cultist starts running towards you, but on his way he steps on the trap door - so you immediately pull the lever, even though it wasn't your turn. I assume you then act as normal when your actual turn comes around?


I have an old pair of speakers that has an annoyingly loud bass response.  Switching back and forth between these speakers and any other speakers makes the effect even more noticeable.  I admit I could just buy a better pair of speakers, but I feel like this problem should be able to be solved with software, now that we live in the future of pulseaudio.  How can I set up a pulseaudio equalizer filter that only (and always) affects one output?  Alternately, is there a system-wide equalizer that actually works in 16.04?  All the instructions I can find come from 2013, and none of the software indicated therein seems to be pre-built for anything past 15.04, which doesn't inspire confidence.


Why does placing a magnet/phone on the left speaker of a Macbook Pro Retina 15" cause the screen to sleep?

I've repeatedly encountered an issue where putting my phone, or headphones, or a magnet (the magnetic power adapter thing) near the speaker port on the left side of a rMBP (or on top of the speaker holes nearby) will cause the display to go to sleep. Is this an intentional design?


AVR 1.1V Internal ADC Reference Over-Voltage

If I use the internal 1.1V reference for the ADC, and my Analog input exceeds 1.1V, lets say 2.5V, is that harmful to my microcontroller? Or will ADC value simply clip (to 0x3FF) at 1.1V?  For convenience, I am including an excerpt block diagram from the ATMega328 datasheet.


Has  ever been observed?  If not, is it likely that it ever will, assuming current technology?    Note: This is not a question of space bending light, but of light bending space.


Ugly scrollbar shown on HNQ when user image can't be shown

It appears that when a user image can't be displayed, the user in the Users List on the right side of the HNQ page gets a scrollbar:    Looking at , it looks like the link for the image it's trying to pull is:  https://graph.facebook.com/1562342057384865/picture?type=large   For me at least, visiting that page results in:  {    "error": {       "message": "Unsupported get request. Object with ID '1562342057384865' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",       "type": "GraphMethodException",       "code": 100,       "error_subcode": 33,       "fbtrace_id": "DGmWtgYaB0R"    } }   I'm using Chrome Version 72.0.3626.121 (Official Build) (64-bit) on a Windows 10 machine.  Can we handle this better to avoid the strange scrollbar?


I am trying but still unsuccessfully solving the following question:  For every positive integer $n$, show that any prime divisor of $12n^2 + 1$ is of the form $6k + 1$, where $k$ is an integer.  I would like, if possible, to get a solution that does not refer to Legendre symbol or quadratic reciprocity. That is: I would like to get, if possible, a more elementary solution.  I ask for help.


The TikZ user guide (version 3.18b, page 1042) says this:  ifthenelse(x,y,z) This returns y if x evaluates to some non-zero value, otherwise z is returned.  It would appear that both y and z are first evaluated and then returned, which is (to me) a surprise; a TeX \if does not evaluate the unused option -- so why does TikZ bother to evaluate an unused option? I discovered this in a vain attempt to avoid division by zero: \documentclass{article}  \usepackage{tikz}  \begin{document}  \pgfmathsetmacro{\foo}{0}  \pgfmathsetmacro{\foobar}{ifthenelse(equal(\foo,0),0,1)}\foobar  %% Both return the error: "You've asked me to divide `1' by `0'..." % Uncomment the following to see the problem: %\pgfmathsetmacro{\foobar}{ifthenelse(equal(\foo,0),0,1/\foo)}\foobar %\pgfmathsetmacro{\foobar}{ifthenelse(greater(\foo,0),1/\foo,0)}\foobar  \end{document}  There are a number of non-TikZ approaches (for the moment I have settled on \ifdim\foo pt=0...\else...\fi). Just wondering what a more TikZ-idiomatic approach might be.


Why do some power plugs have holes in them?

I've just learned that electrical chargers with pins with holes in them are illegal in Australia. Here's what I'm talking about (ignore the one second from the left):   What's the purpose of these holes?


Internal expansion with the find command and wildcard character

I'm still learning the command line and I am having some trouble fully understanding the use of the wildcard within the find command.  I'm working in the directory user/temp and use the find command as followed to find all .txt files:   find . -name *.txt -print   This gives me the error:  find: unknown primary or operator.   I know you need to use single quotes around the *.txt in order to escape the expansion and get your desired result; however, I do not understand why this needs to be done.  I read that you have to escape the * so that find does the expansion internally. I am confused because I thought that using single quotes around * will give make the command line not interpret it as a special character, so how does the expansion take place?


How can I find the package that contains a program in Debian?

I am using a minimal Debian system which does not have the top program installed. I tried to install top with sudo apt-get install top, but top is not a package name.  It seems that top is a part of some other package. How can I find out which package I should install to get it? More generally, how can I find the package that contains a program?


Adding new value to string in static method

public class Main {     public static void main(String[] args) {         int x = 0;         int[] arr = {20};         String name = "Vitalii";         f(x, arr, Name);         System.out.println(x + " " + arr[0] + " " + Name);     }      private static void f(int x, int[] arr, String Name){         x = 20;         arr[0] =40;         name = "Max";     } }   The output I have is "0 40 Vitalii". I don't understand why in method f, jvm insert 40 at first position in array, but do nothing to string. Why it doesn't change it's value to "Max"? I'm sure I miss some important concept about “pass-by-reference” or “pass-by-value” or something like this.  Thanks for helping.


Why are oxygen and hydrogen compressible, but water is barely compressible

What makes the two gases compressible, but does not apply to a liquid like water?


Terminology for cores in a multicore processor

What is the difference between logical and physical cores in a multicore processor? And is execution core another name for a physical core?


Why I can't apply mirror modifier? Here's screen


What factors other than clock speed influence the performance of a CPU?

Having seen various people test powerful emulators on their computers, I have come to surprise hearing about how one CPU can have triple the clock speed but still have worse single-threaded performance; or how one CPU can use 16 threads but one forced to use a single-thread can wipe the floor using 1 thread and tons of rapid context switching, even assuming a multi-threaded app.  Some of the best Intel CPUs can be as underclocked as much as possible and still run very demanding programs perfectly, and some of those Atom CPUs can be overclocked as much as possible and still not run them without chopping/lags, etc. Here's what I've noticed:  A 1.5 GHz Intel i7 5960x can run latest Photoshop and Adobe After Effects, including PS2/GameCube/Wii emulators and games fullspeed; an overclocked Celeron 450 @ 3.3 GHz can barely do the same, and it's technically more than twice as high in clock speed.  Also, a 4 GHz Atom N270 seems to perform worse than a 1 GHz i7 5960x. Why is this?  With these really new and expensive Intel CPUs, clock speed seems to mean very little, as they can be 1.9 GHz and run everything, whereas some 3/4/5+ GHz CPUs of yesteryears can't even.  So fast that even forced to use a single core while another CPU uses multi-core, they can do better.


Does back to back connection of PN diode works exactly as transistor?

I have a doubt related to back to back connection of PN diode....  Does  exactly as transistor?  It looks like a small doubt... But I want detailed information about it. So, can anybody explain about it in detailed manner?


NOTE: This question has been marked as a duplicate. Well two things.  I don't see an answer there  The interpretation of the user in that question is the count of flags is of available flags instead of those that are not yet handled by myself. Is this the case? If yes, can anyone direct me to a meta/faq link which affirms this? And if you cannot find a meta/faq link then please do not mark it as a duplicate. It is a humble request :) Also  Instead of simply downvoting, I would request you to please let me know what is wrong with this question so that I can improve on it. :)    Please see this screenshot. The numbers never match. No matter how fast I refresh. I thought that maybe there were 7 Not An Answer posts and some of them disappeared because they were actioned so I rapidly refreshed 5 times in a row but that 7 didn't change... nor did the 3 on the left hand side. Same with the total posts to be reviewed (in Orange) vs the total posts 19. The orange total did change after 2 refresh attempts though. Am I missing something? Does the count for individual flags refresh only after some specific time? I assumed it to be dynamic i.e changing with every refresh (Showing the actual count)


Rolle's theorem without compact domain hypothesis

Good evening everyone, I'm asking for a proof of "Rolle's theorem generalization". The thesis is as follows:  Let be $a \in \mathbb{R}$ and $f:[a,\infty) \longrightarrow \mathbb{R}$ a continuous function such that $\lim_{{x\to \infty}} {f(x)} = f(a)$. Prove that if the derivative exists in $(a,\infty)$ then $\exists$  $x_0>a$ such that $f'(x)=0$.  I tried to prove that but I wasn't able to do it, so if you can help me I'll appreciate it a lot. Thank you for your time.


How do I tell my supervisor that I've been offered a job and want to leave?

Yesterday I posted about wanting to leave my PhD and I've definitely decided that it's the healthiest choice for me. Now comes the hardest part- telling them that I plan to leave the program once I find an alternative role. I'm not a very confrontational person and I hate to feel that I am wasting anyone's time so I want to be as polite and direct as I can be. Is it as simple as emailing to say that I wish to discuss my progress and long term goals and then inform them during the meeting that I've been offered a job?


Am I a resident or a non resident for tax purposes this year?

I am on H1 B visa since Oct 1, 2017. Last year, I was on F1 OPT. I am filing a Married filing jointly with my wife (is on H4 without any income). I am planning to fill in Form 4868 for extension and pay the necessary amt. After I meet the substantial presence test, say by May end, I will file form 1040 as Resident Alien. Is this the right thing to do? Or should I file taxes as a Non resident like I did last year? If I have both the options, which is the best?


Is it better for your character model to be filled or hollow inside?

I'm making a character model that will be rigged and used for a 3D animation I'm making for class. In tutorials I see, they keep their models hollow. Is it better to keep your model hollow? Will my model still be ok if it's filled inside while rigging or will there be problems I'll encounter?


I am very new at the development. I finish writing the Trigger but have no idea with the test code. I trying to write the test code but get 0% of code coverage.  Here is my Trigger and test code. Hoping someone can help me. Thank you!  Trigger      trigger UpdateQuoteStatus on QuoteLineItem (after insert, after update) {     List<Quote> quoteList = new List<Quote>();      for(QuoteLineItem q : Trigger.New)     {         if(q.UnitPrice != q.Apex_price__c)         {            quoteList.add(new Quote(Id = q.QuoteId, Status = 'Needs Review', Sales_Price_not_List_Price__c = 'Yes', RecordTypeId = '0126F000001KDtwQAG'));         }        if(q.Discount != 0 && q.Discount != null)         {           quoteList.add(new Quote(Id = q.QuoteId, Status = 'Needs Review', Discount_not_0__c = 'Yes', RecordTypeId = '0126F000001KDtwQAG'));         }     }     map<Id,Quote> accmap = new map<Id,Quote>();     accmap.putall(quoteList );     if(accmap.size()>0){     update accmap.values();     } }   Test Code  @isTest private class TestUpdateQuoteStatus {     @isTest static void TestUpdateQuoteStatusWithPrice() {         QuoteLineItem  acct = new QuoteLineItem (UnitPrice =8.11,Discount=0);         PricebookEntry PbE = new PricebookEntry(UnitPrice =8.11);        Test.startTest();        try{             insert acct;         }         catch(Exception e){             Test.stopTest();         }         }  }


In the İmages you can see the vase has a 2 different colours. The top is white and opaque, and the bottom is transparent and dark blue (thanks to my webcam you'll see it as black). My question is how can I colour my model vase like the real one?


The Fourier transform of a 1-d "disk" or: f(x) = \begin{cases} 1 & \text{ if } \left | x \right |< \frac{1}{2} \\  0 & \text{ if } \left | x \right |> \frac{1}{2} \\ \end{cases} gives a sinc function, and the Fourier transform of a 2-d disk: f(x,y) = \begin{cases} 1 & \text{ if } \left | \sqrt{x^{2}+y^{2}} \right |< \frac{1}{2} \\  0 & \text{ if } \left | \sqrt{x^{2}+y^{2}} \right |> \frac{1}{2} \\ \end{cases} gives a jinc function. What is the Fourier transform of: f(x,y,z) = \begin{cases} 1 & \text{ if } \left | \sqrt{x^{2}+y^{2}+z^{2}} \right |< \frac{1}{2} \\  0 & \text{ if } \left | \sqrt{x^{2}+y^{2}+z^{2}} \right |> \frac{1}{2} \\ \end{cases} , or for that matter any n-disk?


Elementary isomorphism between $\operatorname{PSL}(2,5)$ and $A_5$

At  it is claimed that to construct an isomorphism between $\operatorname{PSL}(2,5)$ and $A_5$, "one needs to consider" $\operatorname{PSL}(2,5)$ as a Galois group of a Galois cover of modular curves and consider the action on the twelve ramified points.  While this is a beautiful construction, I wonder if this really is necessary.  Is there a construction of a map that takes a representative matrix of a class in $\operatorname{PSL}(2,5)$ and uses some relatively simple computation to produce a permutation in $S_5$ that can be shown to be even?  I don't mind if describing the construction and providing the verification that it is well-defined and does what it should takes several pages.  I'd just like to think that it's possible.


Under what conditions should Likert scales be used as ordinal or interval data?

Many studies in the social sciences use Likert scales.  When is it appropriate to use Likert data as ordinal and when is it appropriate to use it as interval data?


I am recently change from Kubuntu to Xubuntu. I think some files might be deleted. I am trying to install Vlc Player and other .deb packages it throws following error. Please help  Error:  root@Aravinth:/home/aravinthan/Softwares/Players# sudo dpkg -i vlc-media-player-2-    1-4-es-en-br-fr-de-it-cn-ubu.deb  (Reading database ... 312909 files and directories currently installed.) Preparing to unpack vlc-media-player-2-1-4-es-en-br-fr-de-it-cn-ubu.deb ... Unpacking vlc (2.1.4-1) over (2.1.4-1) ... dpkg: dependency problems prevent configuration of vlc: vlc depends on vlc-nox (= 2.1.4-1). vlc depends on libtar0. vlc depends on libvlccore7 (>= 2.1.0).  dpkg: error processing package vlc (--install): dependency problems - leaving unconfigured Processing triggers for mime-support (3.55ubuntu1.1) ... Processing triggers for bamfdaemon (0.5.1+14.10.20140925-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for desktop-file-utils (0.22-1ubuntu2) ... Processing triggers for gnome-menus (3.10.1-0ubuntu2) ... Processing triggers for man-db (2.7.0.2-2) ... Errors were encountered while processing: vlc root@Aravinth:/home/aravinthan/Softwares/Players#    and i am trying to install vlc-nox and it requires these following lib. what can i do?  root@Aravinth:/home/aravinthan/Softwares/Players# sudo dpkg -i vlc-nox_2.1.4-1_amd64.deb  Selecting previously unselected package vlc-nox. (Reading database ... 312909 files and directories currently installed.) Preparing to unpack vlc-nox_2.1.4-1_amd64.deb ... Unpacking vlc-nox (2.1.4-1) ... dpkg: dependency problems prevent configuration of vlc-nox:  vlc-nox depends on liba52-0.7.4.  vlc-nox depends on libass4 (>= 0.9.7); however:   Package libass4:amd64 is not installed.  vlc-nox depends on libavcodec54 (>= 6:9.1-1) | libavcodec-extra-54 (>= 6:9.13); however:   Package libavcodec54:amd64 is not installed.   Package libavcodec-extra-54 is not installed.  vlc-nox depends on libavformat54 (>= 6:9.1-1); however:   Package libavformat54:amd64 is not installed.  vlc-nox depends on libavutil52 (>= 6:9.1-1); however:   Package libavutil52:amd64 is not installed.  vlc-nox depends on libbasicusageenvironment0; however:  vlc-nox depends on libcddb2; however:  vlc-nox depends on libgnutls28 (>= 3.2.10-0); however:   Package libgnutls28:amd64 is not installed.  vlc-nox depends on libgroupsock1; however:  vlc-nox depends on libkate1 (>= 0.3.0); however:  vlc-nox depends on liblircclient0; however:  vlc-nox depends on liblivemedia23; however:  vlc-nox depends on libmodplug1; however:  vlc-nox depends on libpostpro dpkg: error processing package vlc-nox (--install):  dependency problems - leaving unconfigured Processing triggers for man-db (2.7.0.2-2) ... Errors were encountered while processing:  vlc-nox root@Aravinth:/home/aravinthan/Softwares/Players#    what's my Problem?


Is "Where is your mother at?" grammatical?

When querying:     Where is your mother at?   Is that considered to be proper English language usage?  Alternatively, you could just state more simply:     Where is your mother?   Is adding the trailing preposition considered slang here, does it have no value and should it just be eliminated?


Can I join the railroad, brotherhood and minutemen and still have good relations with each one? If not what should I choose (bear in mind I am already a good bit into minutemen quests) ?


Retrieve every records for each custom settings

I want to know a way to download or export or view all the records for each custom settings without querying them individually. I have tried a chrome extension called Custom settings exporter for Salesforce. But, if we have many custom settings, it only downloads some of them, it did not work for me


Conformal Map from Vertical Strip to Unit Disc

I haven't found a similar question on here, though I suspect the question may be rather well-covered.   I want to find a conformal map from the vertical strip $\{z:-1<Re(z)<1\}$ onto the unit disc.  Under the exponential map the region is taken to the annulus with radii $e$ and $e^{-1}$, but I'm not sure how useful this will be.  Can anyone advise on what the conformal map may be?  Thanks.


How many fields are there (Up to isomorphism) with exactly 6 elements? In case of Group of order 6.. number of group( up to isomorphism )is 2..but what is it in case of field?


Frequency encoding is a widely used technique in Kaggle competitions, and many times proves to be a very reasonable way of dealing with categorical features with high cardinality. I really don't understand why it works.   Does it work in very specific cases where frequencies are correlated with the target or is it more general? What's the rationale behind it?


Where should I ask a question about an answer?

I have a question about an answer given by somebody on a question. How do I tag that person and ask my question regarding his answer? This is in Cryptography Exchange.


How do I prove this using mathematical induction: $\sum_{k = 1}^{n}k\binom{n}{k}=n2^{n-1}$?

$\sum_{k = 1}^{n}k\binom{n}{k}=n2^{n-1}$  How do I prove this using mathematical induction?


Is it possible to install Ubuntu 14.4 from USB to Sony Vaio notebook

I have a sony vaio notebook with preinstalled Microsoft 8.1 version operating system. Now, I need to have a DUAL BOOTING system with Ubuntu (PenDriveLinux) distribution, installed alongside windows 8.1. Is it possible?.  Any pointers are appreciated. Thanks in advance.


Is there a way to pass additonal php.ini settings to a drush command?

I want to specify additional php.ini settings to a drush invocation in the manner they would passed using -d option if drush was a php script that could be passed to PHP using the -f parameter.  On looking at drush  shell script - /usr/bin/drush - I see that it executes the drush.php script in that manner.  Is there a way to add more of those through the command line?


How to remove spammy search results from Google

Often, when I search for something, I get results like www.<site>.com/Search/<my search terms>, which are nothing but the exact same search repeated on www.<site>.com and are of no use.  How do I handle this? Can I remove these search results based on pattern or something? I wouldn't want to remove specific sites because that'd be pointless I think.


I'm new in c++ world, and learned that it is a good practice to make forward declarations. But is it always good?  I'm looking for guidelines for when it is a good practice to make a forward declaration and when it is not good, but I really couldn't find any. There are any objective case for when it should be used or not, or it is entirely up to the developer?