Physical interpretation of Glauber states

The definition of a Glauber, or coherent, state is   $$a|\alpha\rangle = \alpha|\alpha\rangle.$$  Why is this a useful definition? Grynberg's Quantum Optics book simply says "a quasi-classical state $|\alpha\rangle$ is the eigenstate of the annihilation operator $a$.


If $(1+ \cos A) (1+ \cos B) (1+\cos C)= y = (1- \cos A) (1-\cos B) (1-\cos C)$ then $y = \pm \sin A \sin B \sin C$

If $$(1+ \cos A) (1+ \cos B) (1+\cos C)= y = (1- \cos A) (1-\cos B) (1-\cos C)$$ then prove that $$y = \pm \sin A \sin B \sin C$$


I want to make a program that keeps getting string input and only stops when "." is entered, any ideas how to make it?  I understand that I need to make a string array, but what's the length I'm gonna give it if I dont know how many strings the user will enter?  This is my first time to use this website, so excuse me for any mistakes.  Thank you.  Edit: Here's a code that is confusing me. I keep entering dots but the for loop never breaks. Also the length is currently 10, how can I make it unlimited until the input is a dot?  Scanner s=new Scanner(System.in);     String[] x = new String[10];     for(int i=0;i<10;i++)     {            x[i]=s.next();         if(x[i]==".")             break;     }


So I have a website and I am looking for a way to redirect a user to another webpage when they press the Esc key.


How to determine where cursor is in a string in a form element?

I have an input.  <input name="inputName" id="inputId" value="Hello" />   Lets pretend that the cursor is after the e in hello, like so:  He|llo   How can I determine the position of the cursor within that string?  Meaning, how can I make it tell me that the cursor is right after string{1} (or before string{2})?  Edit: Really though, my end goal is determine if the cursor is at the end of the string.  I don't need to know if its in the middle.  If it's at the end of the string, I am capturing arrow presses and will make it jump to the next form element.  If it's at the beginning or middle, then I am not making that jump to the next form element.  Jumping around on arrow presses works already, but it jumps irregardless of where the cursor is in the string.


Creating a ‘bounding polygon’ for a set of points (preferably with GGplot2)

In R, Lets say that I have a set of x and y points, how can I get a geom_polygon to encapsulate all points, ie, what is the best way to create a 'bounding' polygon for the set?  library(ggplot2)  set.seed(1) x <- runif(100) y <- runif(100) mydata <- data.frame(x,y)  ggplot(mydata,aes(x,y)) + geom_point() + geom_polygon()   The above code is pretty clear that the result is unsatisfactory (result below).


The python command starts the the wrong version of the python interpreter

I am using Mac OS X Version 10.13.1 and I have just installed anaconda.  I have created a virtual environment using the command  conda create -n py3 python=3   Then, I have started the python interpreter using the command  python   To my surprise, the preinstalled python 2.7 from /usr/bin showed up instead of python 3.6.  In order to check what is going wrong I issued the command  which python   The result was even more surprising,  I got the following:  /Users/karlstroetmann/anaconda2/envs/py3/bin/python   When I then invoked the command  /Users/karldrstroetmann/anaconda2/envs/py3/bin/python   I did get python 3.6.3.  But I don't understand why I cannot invoke this version by just typping python.  What am I missing here? Any hints would be very much appreciated.


Minimize the sum of distances between two point and a circle

Let's $A$,$B$ and $O$ be random point in a plane, such that they are not colinear. Let's $c$ be a circle centered on $O$, such that points $A$ and $B$ are outside of it. Find a point $X$ that lies on the circle $c$ and the sum $AX + BX$ is minimal.  First I tried to minimize the function:  $$f(x,y) = \sqrt{(A.x - x)^2 + (A.y - y)^2} + \sqrt{(B.x - x)^2 + (B.y - y)^2}$$ with  constraint $$g(x,y) = x^2 + y^2 - r^2 = 0$$  By moving $O$ to $(0,0)$ and do the same with $A$,$B$ so the relative distance will not change.  But these works when we know the coordinates of $A$,$B$ and the radius of the circle. Yet this isn't the right way because the problem is to construct that point.  Later I tried to approach using geometry.  The smallest distance from the point $A$ to the circle is the intersection of the circle $c$ and the ray $OA$, this is the same for $B$. Then we construct circles centered on $A$ and $B$ that are tangent to $c$. If the two circle intersect we'll get a common point for the both $A$ and $B$ and the distance will be minimal. Using computer I find the point X should be somewhere around the intercetion of the circle $c$ and the ray from $O$ to the new point.   Sometimes the optimal point differs just a bit and also this method fails when the two circles do not intersect each other


some paragraph some paragraph   I ask for the difference between this two tags.


I know intuitively that the Cross Product of two vectors $\vec{A}$ and $\vec{B}$ represents another vector $\vec{A \times B}$ perpendicular to it. In study of physics we come across this situation a lot. Hence I can visualize some applications of it    I know that the dot product of two vectors $\vec{A}$ and $\vec{B}$ is scalar quantity and also that it represents angular relationship between $\vec{A}$ and $\vec{B}$ .i.e.   If $\vec{A}$.$\vec{B} = 0$. Then $\vec{A}$ and $\vec{B}$ are perpendicular. If $\vec{A}$.$\vec{B} > 0$ (Positive). Then the angle between $\vec{A}$ and $\vec{B}$ are less than $90^o$. If $\vec{A}$.$\vec{B} < 0$ (Negative). Then the angle between $\vec{A}$ and $\vec{B}$ are greater than $90^o$.   But I won't be able to understand intuitively, What does the dot product represents. What does the magnitude of the dot product of two vectors represents.


Is it possible to create a default "table" (not programatically) in sqlite and have eclipse compile it into the apk? Basically I want a table file that the program can then later access to get information from.  Edit: Just to add more information: What I want to do is create a file that can be added in the "res" folder that has a table (containing all the values I wish to add to the DB). These will be treated as "constants" and I will use the "KEY" value to link them to the other tables that will be done within my program.  However I apologize, I did not originally find the answer to my question. Thanks for the help!


Why does java stream program takes more time than the nested for loop?

I was solving the below question on leetcode:  You are given an m x n integer grid accounts where accounts[i][j] is the amount of money the ith customer has in the jth bank. Return the wealth that the richest customer has.  I submitted the below 2 solutions. First using streams java 8 and the other one using normal nested for loops. Time taken for each of these was 2ms and 0 ms respectively. Does anyone know why this performance overhead? public int maximumWealth(int[][] accounts) {     int maxWealth = 0;     for (int[] customer : accounts) {         int temp = Arrays.stream(customer)                 .sum();         maxWealth = Math.max(temp, maxWealth);     }     return maxWealth; }  public int maximumWealth(int[][] accounts) {     int maxWealth = Integer.MIN_VALUE;     for (int i = 0; i < accounts.length; i++) {         int temp = 0;         for (int j = 0; j < accounts[i].length; j++) {             temp += accounts[i][j];         }         maxWealth = maxWealth < temp ? temp : maxWealth;     }     return maxWealth; }  TIA.


String to characters to a link page Javascript

Hello I have some variables in Javascript that can have values as “Creación de” I need to convert to send to an html page as “Creaci%F3n%20de”. How can I make that conversion in Javascript? Thank you


From some comments in the answers for  (now deleted, 10k only), there's confusion around the usage of I vs. me:  While the sentence, "the other attendees are myself and Steve," is agreed to be incorrect, there's confusion about whether the correct form is "the other attendees are me and Steve" or "the other attendees are Steve and I."  (I've always used the heuristic of removing the other people from the sentence, so I always thought "the other attendee is me" would be correct, instead of "the other attendee is I." Is this true, or am I using a flawed heuristic?)


Remove preinstalled apps on Big Sur MacBook Pro M1

Sorry for my English, I'm French and  I have  tried a lot (even with SIP disabled) but nothing works. I'm kind very desperate since I’m not sure how I would set up screen time to limit my children’s usage of the Pre-installed apps. The reason why I need to do so, is that my kid waste time in stead of studying. Is there a guide how to set this up?


I've created a regex which I need to run with grep, I'm pretty sure the regex is fine as it works with online regex tools, however when I run   grep -r -P -o -h '(?<=(?<!def )my_method )(["'])(?:(?=(\\?))\2.)*?\1'   I get the error Syntax error: ")" unexpected.


How should I perform substantial edits that cannot meet the 6 non-space character limit?

Possible Duplicate:          Occasionally I come accross a post like , where    the lack of code formatting is a significant problem the post is so deliberately simple that further changes disrespect the original author's intent.     How should I attempt to improve such posts, given the 6 non-space character limitation?  Submit an overzealous edit and assume it will be pared down if necessary?  Give up and come back when I hit 2k?


What is the most appropriate image to indicate to users to swipe left or right? i am using  but i feel like it needs a swipe indicator in the background somewhere.  Edit: for iPhone and Android use only.


I have a Dell Inspiron INSP1440 laptop with a Pentium T4400 dual-core CPU. I need to know if Ubuntu 14.04 (or any version) will work on it before I burn Ubuntu to a disk.


For maximizing photo adjustment performance, which hardware upgrades matter most?

I do a lot of photo editing on a 13" Macbook Pro. When making photo adjustments I spend a lot of time waiting for the image to re-render. I'm wondering which hardware upgrades will have the greatest impact on adjustment performance and why. (Preferably ranked.)  I use Aperture, but the question should apply just the same to all photo editing software.  Note that I'm taking specifically about performance when making adjustments. I don't care about the time to first load images into the app or the time to export because I can walk away while that is happening. Also, at of the time of this question, all Macs come with flash storage, so recommending an SSD isn't helpful in this situation.


Does Python have a ternary conditional operator?

If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?


Are you sure the following is true or not.:$(0.\overline{9}=1 )$

Are you sure the following is true or not.:  $(0.\overline{9}=1 )$  If proven true or false is not.Thank


enable access via ssh-key without using ~/ssh/authorized_keys

i want to enable access to a  home dirs via ssh/scp with an key. Normally i would place the pub key into ~/ssh/authorized keys But i want    disable the ability to add or remove ssh-keys (turn off ~/ssh/authorized_keys) The user should not be able to rm -f pub_key, modify pub_key wherever it sits in the system make the directory where the pub keys for different accounts are stored not readable for "normal" user, e.g. like /etc/sudoers.d/ is only readable by root1   Is that possible? How would i do that?


What do you do when the bus bike rack is full?

Sometimes I take commute via bike, other times on the bus, but I rarely plan on doing both because I worry about the possibility of waiting for a bus only to find that its bike rack is full and having to wait for the next bus, which may also have a full bike rack.  What do you do in this case? I asked a bus driver today on the way home and I couldn't really understand what he was saying, but he said something about a bike rack in the back and I think he was saying that were he not driving the rapid bus and were his schedule different, he would put any extra bikes in the back. Not sure though, he could have said something completely different.


500 internal server error when trying to access chat profile

I tried going on the Stack Overflow chat and got the following notice:    The console shows:     Failed to load resource: the server responded with a status of 500 (Internal Server Error)   Update #1  It seems like this issue intermittently occurs.  Update #2  Browser: Chrome (60.0.3112.113)  Access Type: HTTPS  VPN: N/A  Country: UK


Is there any other way to replace consecutive repeating digits with 0 in an integer without converting it to string?

We are given an integer which can be large as 10 to the power of 18 and we have to replace all consecutive repeating digits with zero.  I have tried by converting the integer to string but it takes a lot of time in doing type conversion from integer to string. Is there any way to do the function without converting it to string. My code by converting the integer to string -:  def replace(l):     l1 = str(l)     s = l1[0]     temp = s[0]      for i in range(1, len(l1)):         if l1[i] == temp:             s += '0'         else:             s += l1[i]             temp = l1[i]      l = int(s)     return l    Example-: Let integer be 1222433444 Expected output -: 1200430400


Using grep to omit values given in a text file

Omit.txt  001 006 008 0016   Filetogrepfrom.txt  001 006 007 008 0016 00546 008 0031 00 0021 0016   I want to do   cat filetogrepfrom.txt | grep -a 00 | grep -v {lines from omit.txt}


Calculate width of expanded string variable (csname) to use in tikz

I am trying to calculate the width of a string defined by csname.  The MWE is here   \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{calc}   \def\EllipseDegrees{120} \def\EllipseOuterRadious{4} \def\EllipseInnerRadious{3}   \newsavebox\mybox \newlength{\mylengtho} \newlength{\mylengtht}  \begin{document}  \begin{tikzpicture}       \tikzset{       partial ellipse/.style args={#1:#2:#3}{           insert path={+ (#1:#3) arc (#1:#2:#3)}       }    }    \draw (0,0) circle (3);    \draw (0,0)    [partial ellipse={180+\EllipseDegrees/2}:{180-\EllipseDegrees/2}:\EllipseOuterRadious cm and \EllipseInnerRadious cm];    \pgfmathsetmacro\stepslines{5}    \pgfmathsetmacro\degsteplines{\EllipseDegrees/\stepslines}     \foreach \ellipsetext [count=\i from 1] in {First Value, Second Value, Third Value, Fourth value, Fifth value}{        \global\expandafter\let\csname Item\i\endcsname\ellipsetext        \xdef\myt{\csname LeftItem\i\endcsname}       \savebox\mybox{\myt}       \pgfmathsetmacro\myw{\wd\mybox}       \node at (5,0) {myw=\myw};       \global\expandafter\let\csname Item\i Width\endcsname\myw    }     \foreach \n in {1,...,5} {    \xdef\curdeg{180-\EllipseDegrees/2+(\n-1)*\degsteplines}    \pgfmathsetmacro\curdegfixed{\curdeg+(\degsteplines/2)}    \savebox\mybox{\fontsize{10}{12}\selectfont\expandafter\csname Item\n\endcsname}    \settowidth{\mylengtho}{\expandafter\widthof{\mybox}}    \settowidth{\mylengtht}{\usebox{\mybox}}    \global\expandafter\let\csname mylengthone\endcsname\mylengtht    \global\expandafter\let\csname mywidthof\endcsname\mylengtho    \pgfmathsetmacro\EllipseOuterRadiousfixed{\EllipseOuterRadious}    \pgfmathsetmacro\EllipseInnerRadiousfixed{\EllipseInnerRadious}     \node[rotate=180+\curdegfixed] at ($(0,0)+       ({\EllipseOuterRadiousfixed*cos(\curdegfixed)},{\EllipseInnerRadiousfixed*sin(\curdegfixed)})$)          {%           \fontsize{10}{12}\selectfont \csname Item\n\endcsname           };    }    \node at (5,1) {thewdmybox=\the\wd\mybox};    \node at (5,-1) {themylength=\the\mylengtho};    \node at (5,2) {mywidthof=\expandafter\the\csname mywidthof\endcsname};    \node at (5,3) {mywidthof=\expandafter\the\csname mylengthone\endcsname}; \end{tikzpicture}   \end{document}   The point is to add text radical (next to a circle) in elliptical way and alligned.  The result pdf is this:    I have done a part of the job described but I need length of every text of the  list (kept with '\csname') to add the distances and correct my variables.  As you can see... next to the diagram I print every try made and all are zero!  Any idea?


Explaining to laypeople why bootstrapping works

I recently used bootstrapping to estimate confidence intervals for a project. Someone who doesn't know much about statistics recently asked me to explain why bootstrapping works, i.e., why is it that resampling the same sample over and over gives good results. I realized that although I'd spent a lot of time understanding how to use it, I don't really understand why bootstrapping works.  Specifically: if we are resampling from our sample, how is it that we are learning something about the population rather than only about the sample? There seems to be a leap there which is somewhat counter-intuitive.  I have found a few answers to this question here which I half-understand. Particularly . I am a "consumer" of statistics, not a statistician, and I work with people who know much less about statistics than I do. So, can someone explain, with a minimum of references to theorems, etc., the basic reasoning behind the bootstrap? That is, if you had to explain it to your neighbor, what would you say?


Issue in calculating elapsed time in millisecond date command not found

I have the following code trying to calculate how much time it takes in milliseconds to build a docker container. However I am facing syntax error and command not found issue, running bash script bash pipeline.sh #!/bin/bash echo 'Initiating pipeline' cd /home/switch-approach/server-c start=date+'%s%3N' sudo docker build -t server-c . end=date+'%s%3N' echo "duration: $((duration=end-start)) seconds."  Retrieving error date+'%s%3N' command not found  operand expected syntax error start


Replace Windows 10 with Ubuntu, keeping D: drive

I need to replace my windows 10 system with Ubuntu. Not a dual boot as I do not need to keep Windows.  I do not want to lose my D: partition though. Windows is installed on the C: partition.  How can I do that?


jQuery .click() not working in search suggestion

i want to create search suggestion. input type is created in this way:

           title

        <input type="text" class="signup_searchType">

    my jQuery function to find key up is:  $('.signup_searchType').keyup(function(event){   $.ajax({url:"http://localhost:8000/auth/search/",success:function(result){         id=event.target.id;         var parent=event.target.parentElement.parentElement;         var add=parent.getElementsByClassName('signup_suggestion')[0];         add.style.display='block';         var child=add.firstChild;         while(add.firstChild){             add.removeChild(add.firstChild);         }         for(var i=0;i<Object.keys(result).length;i++){             var div=document.createElement('div');             div.innerHTML=result[i];             div.className='signup_oneSuggestion';             add.appendChild(div);         }     }}) });   and my jQuery click function is:  $('.signup_oneSuggestion').click(function(event){     console.log('click'); });   when i type in search type search suggestions appear but when i click on them does not print anything in console.


I want to validate MM/YYYY in VB6  I used (0[1-9]|1[012])/(19|20)[0-9]{2}  But it is not working as expected. Even it allows 5 digit year.


Gibbs Sampler for mixture models: shall I skip some samples to avoid to use correlated samples?

I am implementing a Gibbs sampler in order to estimate the parameters of a mixture model.  Assuming that the parameters are contained in a vector $\theta$ what I will do is:   Implement and run the sampler. Wait to reach a stationary distribution (so to remove the impact of my initialization); say that we reach the stationary distribution at iteration $n$. After iteration $n$, I start collecting the sampled parameters into a list $[\theta_n,...\theta_{n+m}]$ Last, I evaluate the expected value of $\theta$ doing $$ \theta_{m,estimated} = \sum_{i=1}^{m} \theta_{n+i}/m $$    Now, I have some questions:   Two subsequent samples $\theta_{n+i}, \theta_{n+i+1} $ will obviosly be correlated.  Should I skip some samples in order to ensure independence between the samples I use to calculate my estimator? If yes, there is some standard heuristic to do this?  Can I say that (if the sampler is properly implemented) $\theta_{m,estimated}$ is a consistent estimator of $\theta$?


Why is the group ring just a ring, not a field?

Can one give an example showing that it is not a field? I think the essential problem is to show that there exists some element in the ring without an inverse?


Can't find Custom Location in iOS Simulator

I have an app, where I have different fields based on the device location.  Until now, I've always changed the location via Debug -> Location -> Custom Location However, it seems Appled has update XCode Simulators and now you can no longer access custom location from the Debug options.  Before:    After:     Any idea where I can access the Custom Location from now on?


I control the following two enchantments:  and . At the beginning of my opponent's upkeep do I get to choose which one of the triggered abilities that goes on the stack first or will my opponent make that choice?


What is the proper term for global nicknames such as "Dude", "Slick", "Jack", etc?

Some people have the tendency to use words in a context similar to a pronoun, despite the word in question being an adjective, verb, whatever. Examples would be someone like Agent K in the film "Men in Black", who often referred to his junior agent "J" in such a way:   Whatever, slick, but let me tell you something. It's your show, chief.   An historical example would be the hippy sub-culture of 1960's and 1970's America, which often used the expression "man" in this way.   It's looooove, man. Love sets you free.   Another example from that same time period would be the "Greaser" sub-culture, which used the proper name "Jack".   Don't be a square, Jack. Just ride.   In American English, what is the proper term for using words this way? I initially thought "nickname", but that's more of an individual thing. This use seems rather global and generalized.


I am trying to crop a picture so that it is shaped like a circle and additionally put a border around it. So far I figured out I will crop an image so that it looks like circle by using \clip:  \documentclass[12pt]{article} \usepackage{tikz}  \begin{document}  \begin{tikzpicture}       \begin{scope}         \clip [rounded corners=.6cm] (0,0) rectangle coordinate (centerpoint) (1.2,1.2cm);         \node [inner sep=0pt] at (centerpoint) {\includegraphics[width=1.2cm, height=1.2cm]{example-image-b}};       \end{scope}     \end{tikzpicture} \end{document}   Effect:    How do I make a red-colored border (circle-shaped) around the picture?   I thought about painting one image on top of another, but the circle and the image get arranged side by side. I am a beginner so any clue will be appreciated.


Can we say that $\emptyset\in\{\emptyset\}$?

Is it correct to say that $\emptyset\in\{\emptyset\}$? By definition, the empty set does not contain anything so how can we say that empty belongs to the empty set. And also whether it is right to say that the empty set is contained in empty? I am really confused about this. Please help.


C++ construct object at pointed location

I have an array of elements of type determined by template: SomeType array[10]; I have pointer to required class object: RequiredType * objectList; I do assignment: objectList = (RequiredType)array; How can I call RequiredType() constructor to construct an object at pointer location where memory is already allocated? This question also applies to any situation where you have allocated mamory at which you have to cnstruct an object.


Single Time Slider for Multiple Data Frames--ArcMap Desktop 10.3

This question has been asked before, but never really answered: Is it possible to have a single time slider control that animates over multiple data frames? Reason being, I have one main map and 4 inset maps with the same time-aware dataset (see image with main frame activated). I can only export the animation with one frame following time. I would like the end result to be sequential images.  Has ESRI evolved some way to control multiple frames, or can you suggest a method that would get the same result?  I am aware of the questions at these stackexchange links ( [3-years old and no solution] and ( [3-months old and no answer]). However, it seems there is a demand for an workaround here, so I would like to keep this question on the boards, though it means reposting the question.


For what $x$ : $2\sqrt{x}+\dfrac{1}{\sqrt{x+1}} \leq 2\sqrt{x+1}$

Hey so while doing exercises this popped up. My idea is to put everything under $\sqrt{x+1}$ and then multiply it by $\sqrt{x+1}$. and then square both sides to get that $x \leq 0$. But this is a very ugly method. The one in the answer is using the fact that $4(x^2+x) \leq (2x+1)^2$ but how in the world am i supposed to come up with that... This is actually the result i come up with at the end. It seems as if they did my method and then reverse it. Any other good ideas to solve it? Not graphically. Is it actually viable to calculate the function of area between the functions and maximize the function? Seems ugly here but in general?


How to cut holes in a plane with multiple meshes without adding to the plane?

I'm trying to use the boolean difference tool to cut holes in a plane with a mesh. Whenever I try I end up with a weird 3d object completely different from the plane that I'm looking for. Am I approaching this in the wrong way?


I have recently taken on a project that involves improving a circuit and there is a couple of instances where there are two capacitors in parallel with each other.    The values of these capacitors are 100nF and 100pF so one is average sized while the other is small. The instances of these capacitors in parallel are placed on input/output signals, one on an output that is readings a battery voltage and the other on a power input to an op-amp. I am a bit confused as to why they are both needed as opposed to one so if anyone can point me in the right direction with regards to that, that would be great.


Twitter: Alert me only based on keywords in tweets?

Is there a way to only be alerted when keywords you've chosen are in the tweet of the person you are following?


Are homotopy-preserving maps continuous?

I was thinking some about weak homotopy equivalences and what happens when you drop the continuity assumption. For example, it's not too hard to come up with non-continuous functions that induce isomorphisms on all homotopy groups (and a bijection on connected components): let $X$ be any contractible space, then the identity map $\operatorname{codisc}X\to X$ from the codiscrete topology on $X$ is not continuous in general, but it trivially induces isomorphisms of all $\pi_n$ as both spaces are contractible. My question is if continuity remains unnecessary if I strengthen the assumptions a bit from just inducing homomorphisms of homotopy groups to actually just preserving homotopies: Question: Does there exist a non-continuous map $f:X\to Y$ such that $\def\bS{\mathbb{S}}fg:\bS^n\to Y$ is continuous for all continuous $g:\bS^n\to X$ and $n\geq0$, where $\bS^n$ is the $n$-sphere? I want to believe that the answer is yes, but I am drawing blanks for an explicit example. I thought to use length constraints on homotopies like what happens with the  (each individual homotopy is "too small" to see everything), but I couldn't put it into practice. If the answer to the question is indeed yes, then how nice can $X$ and $Y$ be with $f$ still existing? For instance, can $X$ and $Y$ be  and () Hausdorff?


Hi i have an dictionary which is been set by me and am accessing it  the code is as follows.  NSMutableDictionary* filteredDictionary = [NSMutableDictionary dictionary];     [filteredDictionary setObject:@"xcode" forKey:@"1"];     [filteredDictionary setObject:@"ios" forKey:@"3"];     [filteredDictionary setObject:@"ipad" forKey:@"2"];     [filteredDictionary setObject:@"iphone" forKey:@"5"];     [filteredDictionary setObject:@"simulator" forKey:@"4"];     NSLog(@"%@",filteredDictionary);   current output:  {  1 = xcode; 2 = ipad; 3 = ios; 4 = simulator; 5 = iphone;     } but i want  { 1 = xcode; 3 = ios; 2 = ipad; 5 = iphone; 4 = simulator; }   i want the dictionary as i set the object in it   i dont want to make the dictionary to sort according to it   Pls Help  Thanks in advance.....


How do I automatically decrypt an encrypted filesystem on the next reboot?

Goal  I am looking for non interactive way to decrypt a root file partition and a swap partition encrypted with LUKS the next time the system reboots. As well as this, I need a way to undo it after the reboot so that it after one more reboot will require the password again (or even a new password).  The system uses LVM.  I don't want to have to type the password on the system, or use a different system to unlock it, it has to unlock itself that one time.  I have the password it is encrypted with, and would be willing to save it in cleartext on the harddrive. I am not concerned with security at this step.  Background  I have a flow for deploying Ubuntu that is based on an Ubuntu server installation with a custom preseed and kickstart file, kickstart installs a service that run after the first reboot (and only the first reboot) and then reboots again. I am trying to implement LUKS disc encryption in this flow, but I need it to remain non interactive, so it has to be able to restart the first time without a password.  The password set during installation is temporary and will be changed by the service that runs after the first reboot, so the first password can be stored in clear text.  Things I have looked into before posting this question  I have done my fair bit of Googling to try and figure this one out, and most of what I find point towards a solution that swaps out the initramfs file.  I have found multiple resources that explain how to use this to allow for remote unlocking the system, but I need to do it without interaction. Here is one such resource:   The closest thing to a solution I think I have found, is this resource which is supposedly a way of accomplishing what I want for a VPS solution, but it is just a bunch of commands with no explanation, and I don't know how to adapt it:   I also found this resource for ArchLinux , and I have tried adding the kernel parameters, but I have not had any luck with that either. I don't know if it is because LUKS does not support these kernel parameters.


The convolution of two continuous functions is continuous

I am just learning about convolutions in a measure theory course.  We are given that the convolution of two functions $f$ and $g$ is defined as:  $$f*g(t) = \int f(u)g(t-u) \,du$$  Now, I would like to show that, if $f$ and $g$ are continuous with compact support, then the convolution $f*g$ is also continuous.  I can't seem to wrap my head around how to show this.


How can I create a custom terminal command (to run a script)?

I'm a web developer. When I want to start working, always i'm executing some command on terminal. For example:  sudo service apache2 start sudo service mysql start sublime   For speed up this process, I create a .sh file which contain these commands.   Now, when I want to start working, I'm just executing this .sh file and all services (mysql, apache2 etc.) starting.   Is it possible to create a custom command for this? For example if I type sudo start-working to terminal, it will execute these commands


Difference between using a "-" and a "," in a sentence

I have noticed that some native english speakers use the "-" sign to explain some additional things in a sentence: eg     Sophie is going to the shop - which happened to be around the corner -   to buy some groceries.   Before knowing this notation I would write the same sentence as follows:     Sophie is going to the shop, which happened to be around the corner,    to buy some groceries.   To me the "-"-sign seems much  clearer than a comma. Am I using the "-" correctly. If so what is the difference between a "," and a "-".


Does a Gambian need a visa to transit Amsterdam?

I am a Gambian, traveling from Malaysia to Dakar, Senegal via Amsterdam and Istanbul. Do I need a transit visa for Amsterdam if the connection time is less than 24 hours?


In English, when presented with a list (real or imagined) or answers that could be given to a question, and the correct one is not given, we will say that somebody has given "the wrong answer".  However, doesn't "the" imply that there is only one wrong answer?    Logically, it should be "that's a wrong answer", not "that's the wrong answer". Right?


Bug in iOS app dealing with certain Unicode characters

:    The Arabic characters are displayed within the time. The expected behaviour is that the entire user name is displayed, followed by the time.   App Version: 1.6.6.2 Device: iPhone 6 OS Version: Version 10.3.3 (Build 14G60)


In the LOTR the Return of the King we see Minas Morgul as a giant tower that emits green light.   What are these lights and why are they there?


Enabling SEXTANTE toolbar in ArcGIS for Desktop?

I have just upgraded to ArcGIS 10.1 from version 10.0.  I am trying to add the SEXTANTE tools to ArcToolbox.  I have followed all the instructions from the SEXTANTE . I have also tried the instructions  and .    No matter what I do, I keep getting little red crosses when I try to run any of the tools in SEXTANTE.   Note, following the instructions in the above links worked for me in version 10.0 but I just can't seem to get it to work in 10.1.    Does anyone know what might be going on?  Are other people having this issue?


Move only the last 8 files in a directory to another directory

I'm trying to move the last 8 files from the Documents directory to another directory, but I don't want to move them one-by-one to that specific directory. Is it possible to move them with a substitute of the tail command, but for directories instead of files? I mean I'd like to do so with something like tail -8 ./Documents | mv ./Anotherdirectory or with mv tail -8 ./Documents ./Anotherdirectory.  In fact, I'm looking for a clever way I could move the last 8 files (as listed in ls) quickly (without typing out each name) to the other directory. Any suggestions?


Cannot update - PPAs do not have release files

N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/noobslab/icons2/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/ravefinity-project/ppa/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


Why is it a privilege to view vote counts?

Just curious, why is there a required privilege (especially one as high as 1000) to view vote counts for a post? It's not like someone can mess up a post by just viewing the vote counts. Is it just to give people incentive to reach 1000?


Let $G$ be a finite group and $A \le G$. If $G=AA^g$ for some $g$ then $G=A$.

Hi: I could try to prove there is a bijection $f$ from $A$ into $G$. There is a bijection $A\to A^g$. Then $|G|= |A||A^g|/|A\cap A^g|=2|A|/|A\cap A^g|$. If $|A\cap A^g|=2$ then $G=A$, because $G$ is finite. But how do I prove it? And how do I find $f$? Suppose $f(a)=aa^g$. If I can prove $f$ is onto then $A=G$. But if $g \in G$ then $g=xy^g$ for $x,y\in A$. Why would $x=y$? Another way would be to find an injection from $G$ into $A$. P.S.: $a^g:= g^{-1}ag$. $A^g:= g^{-1}Ag$.


Pass environment variables' values to a program?

When I run a perl script  in bash, I want to set the value of a variable TEXMFVAR needed by the  script, and pass it to the script.  I googled around, and thought  I found a solution:  $ TEXMFVAR=/usr/local/texlive/2014/texmf-var sudo /usr/local/texlive/2014/texmf-dist/scripts/pax/pdfannotextractor.pl --install   But it seems TEXMFVAR is still empty in the script, because it creates a directory $TEXMFVAR under my current dir. I am puzzled.   $ ls \$TEXMFVAR/* $TEXMFVAR/ls-R  $TEXMFVAR/scripts: pax   Do I need to export the variable?  Is this a problem of usage of environment variables?  Note: My original problem is about texlive  and here


"Could not parse ligature component "xxx" of "xxx_alt" in parseCharName" warning with Forest and Externalize

I am using a few symbols from the fontawsome package to decorate tree generated with forest with tikz externalize. When I compile my tex document I see the following output:    Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "fonttest".tex  Syntax Warning: Could not parse ligature component "horizontal" of "ellipsis_horizontal" in parseCharName Syntax Warning: Could not parse ligature component "folder" of "folder_open_alt" in parseCharName Syntax Warning: Could not parse ligature component "open" of "folder_open_alt" in parseCharName Syntax Warning: Could not parse ligature component "alt" of "folder_open_alt" in parseCharName  Syntax Warning: Could not parse ligature component "444" of "_444" in parseCharName Syntax Warning: Could not parse ligature component "547" of "_547" in parseCharName  Process exited normally   When I do not externalize the warning is gone.  Not sure how should I handle this. The pdf looks ok, but not sure how it will be handled on other computers.  \documentclass[a4paper]{article} \usepackage{amsmath,amssymb,latexsym}  \usepackage[edges,external]{forest} \tikzexternalize[prefix=external-figures/] %if this is removed  Could not parse ligature component warning is gone  \usepackage{fontawesome} \pgfkeys{/forest,   namespace/.append style={content=\textbf{\{\}} ##1},   assembly/.append style={content=\faCogs \enskip \textbf{##1}},   class/.append style={content=\faObjectGroup \enskip ##1}, %\faClone   delegate/.append style={content=\faPaperPlaneO \enskip ##1},   enum/.append style={content=\faEllipsisH \enskip ##1},   interface/.append style={content=$\multimap$ ##1},   fldr/.append style={content=\faFolderOpenO \enskip ##1},   root/.append style={content=\textbf{##1}} }  \begin{document}   \begin{forest} for tree = {folder,grow'=0,fit=band,font=\scriptsize,inner ysep=1pt} [ {Legend}, root     [ {Assembly}, assembly         [ {Namespace}, namespace             [ {Class}, class ]             [ {Interface}, interface ]             [ {Enum}, enum ]             [ {Delegate}, delegate ]             [ {Folder}, fldr ]         ]     ] ] \end{forest}  \end{document}


Which application occupies a serial port I want to open

Hello can anyone please help me with the following, I try to find a delphi routine which allows me to find which other program is holding a comport. (A comport I want to open is occupied by another application which application does that).  I am aware of the tool to find it but I would like to do that programmatically in my application, please can someone give me a hint? Thanks


How to line cross over in flowchart in draw.io

I am drawing flow chart in draw.io, I didn't find a way cross the two lines with cross over connector as above figure. Can any one help me out?


Is there such a thing as "Action at a distance"?

What ever happened to  in entangled quantum states, i.e. the ? I thought they argued that in principle one could communicate faster than speed of light with entangled, separated states when one wave function gets collapsed. I imagine this paradox has been resolved, but I don't know the reference.


Black screen after installing the ATI driver

I'm new to the Linux world but decided to try Ubuntu and so far I like it.   But after installing the ATI driver a weird thing occured. Whenever I turn on my laptop, it starts normally up to the part where I can choose the OS I'd like to boot (with purple background) and when I hit Enter to boot the Ubuntu, it just beeps and stays black, nothing happens.  I tried to find a solution but got nothing so far.  When I boot in recovery mode (root) and try to purge the driver, 3 lines appear :  W: Not using locking for read only lock file /var/lib/dpkg/lock E: Unable  to write to /var/cache/apt/ E: The package lists or status file could not be parsed or opened.   It's like that will all commands I try.  I'd really like to use Ubuntu and maybe at some point I'll remove Windows entirely but for now it's just unusable.  I have a request, if someone replies, please try to explain everything step by step since I'm new to this.   P.S. I am really sorry if there is already a post answering to this.


Basis of the space of alternating $k$-tensors

I am reading Tu's book on Manifolds. As I understand it, given a point $p$ of a manifold $M$ we have the basis $\{\frac{\partial}{\partial x^i}|_p\}$ for $T_pM$, where $(U,x^1,...,x^m)$ is a chart around $p$. Now, if I prove that $\{ dx^i(p) \}$ is a basis for $T^\ast_p M$, then it shouldn't be too hard to show that $\{ dx^{i_1}(p)\wedge ... \wedge dx^{i_k}(p) \}$ is a basis for $ \bigwedge^k T^*_pM  $.  Now, I think that all I need to do to prove that $\{ dx^i(p) \}$ is a basis for $T^\ast_p M$ is to show that $dx^i(p)(\frac{\partial}{\partial x^j}|_p)=\delta^i_j$.   Let $f\in C^\infty(\mathbb{R})$. We have  $$ dx^i(p)(\frac{\partial}{\partial x^j}|_p)(f) =\frac{\partial}{\partial x^j}|_p(f\circ x^i) $$ and this does not seem to be $\delta^i_jf$.


Mathematical Reasoning for Fluid Pressure as a Scalar

from a while ago and answers/comments to  from earlier today both make heavy mention of the fact that fluid pressure is a scalar.  Although this information was surprising to me, it makes sense intuitively, especially when considering Pascal's Principle and liquid depth pressure.  However, I struggle when thinking about the mathematical reasons why pressure is a scalar, and the answers to the first question linked either appealed to intuition, seemed contentious, or unsatisfying.  My confusion comes from the fact that pressure is often defined at the high school/undergrad level as $$P\equiv \frac{F}{A}$$ where this not just a relationship, but often presented as the equation definition of pressure.  Force is a vector, and I had assumed that area was a scalar.  Therefore, I had always figured this was a scalar multiplication problem, and the product would also be a vector.  Now that I know that pressure is a scalar, I just can't see how you would get a scalar for pressure out of this relationship.  I see two possibilities:  1) For reasons I don't currently understand, area is treated as a vector in continuum physics.  As a result, some type of vector algebra must be applied to divide a vector by another vector in order to yield a scalar.  If this is the case, I would like to see at least a framework for this math in the answer.  2) If possibility 1 is not the case, then the other possibility in my mind is that $P=\frac{F}{A}$ is not truly the definition of pressure, and there exists some more basic definition for pressure that would explain its scalar nature.  Are either of these explanations correct, or is there a third possibility that I have not considered?  I've tried to make this a substantially different question than either of the other two questions that I've linked to, but if that does not appear to be the case, please let me know.


Connecting to my own network via external IP

Even though I have seen and read quite a few similar Q's I was still unable to understand what is required for me to be able to do this.  I have an internal network. One of the machines is a web server. The router is configured for NAT redirecting a specific port to to that machine.  A public domain name is configured using dynamic DNS to point to my external address.  So incoming communication hits the router from its WAN interface and gets pointed to the internal server on the right port.  But if I try to use my public domain name from another machine within my network if fails to be redirected to the server.    In a way I would like that the same NAT rules would apply not only to incoming traffic but to outgoing (sort-of) traffic and have it sent back to the right server.  Assuming this helps, my router (D-Link DSL-2760U) does support static routing, but I am not sure how to configure it. It has the following parameters:   IP Version DstIP/PrefixLength Gateway Interface Metric


I am learning on a PSD file, the final picture like below, I really want to know how to make such a shadow effect.    I hidden all the above layer, and the shadow layer is this:    Does anyone know how to do it?? I have this question for days, I asked in other place, but nobody answer my question.


In C#, Internally List encapsulate Array.In both data structure we can access the element using index. List<T> equals Array[T] and support adding/removing items.  If the capacity of the list is full then, internally new array with size equals to 2 * capacity will be created and all element are moved to new array. Is this true?  If true,then size of the array and list are increased dynamically. What are the benefits of using List<T> over Array[T] with Array.Resize(ref myArray, 2*size);?


Apache on CentOS 5.9 VM serves modified files incorrectly

Edit: this has been almost entirely rewritten as I've narrowed down the issue.  I'm using a Vagrant VM to mirror the client's environment as closely as I can. I'm using VirtualBox 4.3 (with Guest Additions 4.3) with Vagrant 1.3.5, and the server is running CentOS 5.9, Apache 2.2.3-83, PHP 5.3.3, and Drupal 7.  When the server first starts the original files in the shared directory, where my application resides, are cached. When I change the file the original file +/- the filesize delta is served, leading to the image corruption I saw before. So additions add NUL characters on the end of the original, and deletions truncate the file. When I view the file using nano the contents are correct; restarting the httpd service makes no difference. I have to restart the VM for the changes to be served correctly.  Before:   // The quick brown fox   Changes:   // The quick brown fox jumps over the lazy dog   Apache serves:   // The quick brown fox\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0   Where exactly does this error lie? With Apache 2.2 or its dependencies, or with VirtualBox and its Guest Additions?


Apache LDAP Authentication with AD nested Subgroups

am trying to authenticate using an Active Directory User on a Apache with nested Groups.  Apache 2.4.7 Ubuntu 14.4  I have a Group with Name test in this Group i have a few nested Groups If i put the user in the test goup directly all fine. The user get authenticated. But if i put the user in a nested Group and put the nested Group in the Group test i get the errormessage.  didnt match with attr member [Comparison false (cached)] [5 - Compare false]  authoritation denied for user xyz  My Subgroupdepth is just one.  Anyone a idea ?  Best regards mobios  My Config:  <AuthnProviderAlias ldap users> AuthLDAPBindDN "CN=ldapbind,OU=Services,OU=Administration,DC=test,DC=tc" AuthLDAPBindPassword Password AuthLDAPURL "ldap://10.0.100.1:389/CN=Users,DC=test,DC=tc?sAMAccountName?sub" </AuthnProviderAlias>   <AuthnProviderAlias ldap project> AuthLDAPBindDN "CN=ldapbind,OU=Services,OU=Administration,DC=test,DC=tc" AuthLDAPBindPassword Password AuthLDAPURL "ldap://10.0.100.1:389/OU=Projects,DC=test,DC=tc?sAMAccountName?sub" </AuthnProviderAlias>  <AuthzProviderAlias ldap-group test CN=test,CN=Users,,DC=test,DC=tc> AuthLDAPBindDN "CN=ldapbind,OU=Services,OU=Administration,DC=test,DC=tc" AuthLDAPBindPassword Password AuthLDAPURL "ldap://10.0.100.1:389/CN=Users,DC=test,DC=tc?sAMAccountName?sub" </AuthzProviderAlias>  Alias /production /srv/webdav/production  <Location "/production"> SSLRequireSSL  DAV On  Options None  AuthType Basic  AuthUserFile /dev/null  AuthName "Repository production"  AuthBasicProvider project users  AuthLDAPMAxSubGroupDepth 10 AuthLDAPSubGroupAttribute member AuthLDAPSubGroupClass Group AuthLDAPGroupAttribute member AuthLDAPGroupAttributeIsDN on Require test Options Indexes FollowSymLinks MultiViews  Order Deny,Allow  </Location>   My active Directory Details are:  test.tc | |--(CN)Users--(CN)test | |--(OU)Projects--(OU)Group1--(CN)Group1    This are my Details in my active Directory. (CN)test is the main Group and (CN)Group1 are nested in (CN)test.  Additionally i tried: Require ldap-filter memberof:1.2.840.113556.1.4.1941:=CN=test,CN=Users,dc=test,dc=tc  unfortunately dont work :(


how many outlets can you put on a 15amp breaker?

how many outlets can you put on a 15amp breaker ?


How can we prevent parameter expansion? Does  mention this somewhere? I'd appreciate     if you could help me to locate where it is mentioned there.  For example,  $ b=1 $ echo $b 1   When the bash interpreter interprets echo $b, the parameter expansion $b happens before running echo $b. So  there is no need to make b a environment variable of the shell process, in order to be passed to the subprocess for echo $b.   For comparison, consider another example from   $ b=1 $ c=$(b=2; echo $b) $ echo $c 2   In the original shell, when the bash interpreter interprets c=$(b=2; echo $b), it doesn't expand $b using the value 1.  In the subshell of the command substitution, when the bash interpreter interprets b=2; echo $b, it expands $b using the value 2.  What prevents the parameter expansion $b in the original shell, and leaves the parameter expansion $b till the subshell?  Quotes can prevent parameter expansions, e.g. "$b". But here there are no quotes around the parameter expansion. Does  command substitution prevent parameter expansion in it?


Let $a$, $b$ and $c$ be positive real numbers such that $$(1+a+b+c)\big(1+\frac{1}{a}+\frac{1}{b}+\frac{1}{c}\big)=16.$$   Prove that $$a+b+c=3.$$    I am not able to get how to prove that? Thanks for help in advance .


I have two files: file1 and file2.  file1 has the following contents:  ---   host: "localhost"   port: 3000   reporter_type: "zookeeper"   zk_hosts:      - "localhost:2181"   file2 contains an IP address (1.1.1.1)  What I want to do is replace localhost with 1.1.1.1, so that the end result is:  ---   host: "1.1.1.1"   port: 3000   reporter_type: "zookeeper"   zk_hosts:      - "1.1.1.1:2181"   I have tried:  sed -i -e "/localhost/r file2" -e "/localhost/d" file1 sed '/localhost/r file2' file1 |sed '/localhost/d' sed -e '/localhost/r file2' -e "s///" file1   But I either get the whole line replaced, or the IP going to the line after the one I need to modify.


Spam sending on my machine with not write on log of exim and ASSP

This question it's diferent to   Obviously the server has a security commitment. But this question presents some specific and not generic issues, as generic and very obvious are those of the post which is accused of being a duplicate.  The special difference is that a series of data is provided, which refers to a specific question: sending mail if you use the sendmail system, a contribution of data regarding how the use of the server was detected for the mail, and The suspicions of how it is done.  If you want to mark this as a duplicate, then 99% of StackOverflow and its variants is a duplicate.  Affair:  On last day one of my machines is involved on campaign of sending spam with subject "Incomming voicemail" Supposedly sent by WhatsApp.  I know this beacuse my provideer detect spam sending of my server. Oops. My server use Exim, and ASSP how anti-spam system.  Well, my provider send me some examples of spam. Destination IP: 74.125.129.27 - Message-ID: 7eE1c2268c4.8E2eBB6d3b915f3dc69aacA1E36@fes.de - Spam score: 600 Destination IP: 74.125.129.27 - Message-ID: 5C6e3Cf89a.9E98A6E9af61F2C6aC3a214@frfsa.org - Spam score: 600 Destination IP: 74.125.129.27 - Message-ID: 9e2E3aA2EDd54C5AD52ae1.C23DC3e9faD3@clayton.com - Spam score: 600 Destination IP: 74.125.129.27 - Message-ID: Fd7521FAf5BC98C87.3BacFaAe@wapi.com - Spam score: 300 Destination IP: 74.125.129.27 - Message-ID: a87fa6d2Cb4Ab42A9f3e54859a84A8f152b6cc@masapon.net - Spam score: 600   On my server there is no evidence of such submissions. We talk about the exim logs and the ASSP logs, and we're talking about looking only at the destination domain.  To analyze the problem, create a script to create a dump with tcpdump on the port 25 traffic in order to verify and analyze if it was true that my provider was detecting those submissions.  When I analyze the traffic in the next suspension of traffic, I returned to find nothing in the logs but my surprise when analyzing with Wireshark the pcap file of the temporary space sent to the sending of spam, I found that all the evidence was there.  I do not understand how it is possible to send mail without it passing through the ASSP and Exim logs, unless you are using a program that does telnet?  An error or lack of configuration in ASSP or Exim?  On wireshark  220 SNT004-MC4F14.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.microsoft.com/en-us/anti-spam.mspx. Fri, 17 Feb 2017 16:51:25 -0800  HELO srv108.tamainut.net 250 SNT004-MC4F14.hotmail.com (3.22.0.27) Hello [176.31.31.233] MAIL FROM: <davidiqwq@clayton.com> 250 davidiqwq@clayton.com....Sender OK RCPT TO: <rdlord@msn.com> 550 Requested action not taken: mailbox unavailable


How should I handle a NullPointerException in PhoneDirectory program

I am trying to create an addChangeEntry method for my PhoneDirectory program, its function is to search and either add a new entry to the Directory if the name passed does not exist, or if the contact already exists, updates their number.  I keep getting NullPointerExceptions, as I believe that my value of x equals null. After learning this I tried to catch and handle the Exception, but I am still receiving NullPointerExceptions.  addChangeEntry code:  public String addChangeEntry(String name, String telno) {     for (DirectoryEntry x : theDirectory) {         try {             if (x == null) {                 Logger logger = Logger.getLogger(ArrayPhoneDirectory.class.getName());                 logger.log(Level.WARNING, "User with no name found");                 continue;             }              else if (x.getName().equals(name)) {             x.setNumber(telno);             return x.getNumber();             }              add(name, telno);         }             catch (Exception ex) {         System.out.println("Exception found");         throw ex;             }         }     return null; }   Any help on how to handle this exception would be much appreciated, as it is currently halting my testing of the program.


How can I possibly sleep with everybody?

I've just started playing Mass Effect and was wondering, as a male Shepard (maybe for female Shepard also), who can I sleep with and how?


error command on installing zoom  dpkg request installing AMD 64 and I would like the command line info for installing AMD 64 I have tried numerous commands in dpkg but have failed to get the proper command line information to make it work. I just need the proper command line info to create the amd64 architecture in linux lime


My textbook mentions the standard derivation of finding pressure at a depth of a liquid  by considering a cylindrical portion of liquid an then using the equilibrium of forces and hence pressure comes out  to be $$hdg$$.What I want to ask is that the above method is correct but then it is mentioned that pressure on a point of side wall at a depth of $$h$$ would also be $$hdg$$ without giving any explanation. If I try to use the above stated derivation then there is problem that I can't use the weight since gravity acts downward and also I don't know the force exerted by fluid on side walls. So how can I say that pressure at depth is same as pressure on side walls?


I just installed lamp-server^ and wanted to try it I created a php file but I was not able to move it to /var/www because owner of that folder is root I managed it using terminal (I logged in as root). But I dont want to do it everytime. Is there any other way to do it? I dont want to use terminal every time I want to try to access that folder.


Why isn't my if statement working properly?

I'm writing a program that finds whether a word/phrase up to 8 characters is a palindrome. No matter what I put in as input, even if it is a palindrome, my program prints my else statement. I checked and made sure the code I wrote actually prints the input in reverse and it does. So I'm not quite sure what the problem is.  import java.util.Scanner; public class hw5 { public static void main(String[] args) { Scanner in = new Scanner(System.in); String word, newWord; int lengthOfWord; char lc;//last character      System.out.print("Enter word/phrase of 8 characters or less: ");     word = in.nextLine();      word = word.toLowerCase();     newWord = word;     lengthOfWord = word.length();     lc = word.charAt(lengthOfWord -1);       lc = word.charAt(lengthOfWord -1);      if (word.length() == 2)         newWord = lc+word.substring(0,1);     else if (word.length() == 3)         newWord = lc+word.substring(1,2)+word.substring(0,1);     else if (word.length() == 4)         newWord = lc+word.substring(2,3)+word.substring(1,2)+word.substring(0,1);     else if (word.length() == 5)         newWord = lc+word.substring(3,4)+word.substring(2,3)+word.substring(1,2)+word.substring(0,1);     else if (word.length() == 6)         newWord = lc+word.substring(4,5)+word.substring(3,4)+word.substring(2,3)+word.substring(1,2)+word.substring(0,1);     else if (word.length() == 7)         newWord = lc+word.substring(5,6)+word.substring(4,5)+word.substring(3,4)+word.substring(2,3)+word.substring(1,2)+word.substring(0,1);     else if (word.length() == 8)         newWord = lc+word.substring(6,7)+word.substring(5,6)+word.substring(4,5)+word.substring(3,4)+word.substring(2,3)+word.substring(1,2)+word.substring(0,1);     else         newWord = "error, not enough or too many characters";      if (newWord == word)         System.out.println("it is a palindrome");     else         System.out.println("it is not a palindrome");      System.out.println(newWord);


How do I kill a witch in minecraft as a beginner, no weapons, milk, or advanced items in inventory

I started minecraft last week to play with my kids. I built a huge castle in the sky between 2 hills. When I was just finished I find something walking around the courtyard (all door were closed). I rushed it with a pickax, pinned it against the wall and clicked as fast as I could. I spent 2 pickaxes and didn't seem to do any damage. Now I'm dead and it standing over the bed and chests inside the castle courtyard. I look it up and find its a witch, but there are no comments on special tactics on how to kill it. Its supposed to be a simple thing?  How did it get into my fully lit and walled castle? Can they fly or jump? Open doors? Go through walls? Why won't it die? I need to be able to keep monsters out. Castle design:                                                                  __ |_______                        ____________________Witch__|   /         |     castle            |                             |         |            ___________|                             |         |           |                                         |         | respawn   |                                         /         |___________|                                        |        /             \                                      /       /               |                                     | mountain       /                |   P.S.: I found out building a canopy over a valley is a bad idea. Shading that much area brings out a non-stop barrage of creepers and skeletons making going out a death march, not to mention un-passable, unless one brings a full load of dirt to climb out of the sheer number of blast craters.


Why do shells implement their own "echo" commands internally?

(Note that this is entirely an academic question... I'm just curious about the answer, not trying to solve any particular problem.)  From the ECHO(1) manual page (GNU echo):     NOTE: your shell may have its own version of echo, which usually supersedes the version described here.  Please refer to your shell's documentation for details about the options it supports.   From the ECHO(1) manual page (BSD echo):     Some shells may provide a builtin echo command which is similar or identical to this utility.  Most notably, the builtin echo in sh(1) does not accept the -n option.  Consult the builtin(1) manual page.   When running echo from the shell, an internal command is run, but specifying a full path e.g. /bin/echo, the external program is run.  What's the justification for having the shell itself implement that particular command. There are definitely commands which must be implemented by the shell (e.g. cd, read, etc.) but why echo? Is it because it's used so often, and the time-savings for avoiding process setups and context-switches is measurable -- especially historically?  Ignoring the fact that e.g. bash has a huge number of not-strictly-necessary features, why didn't things like expr, [/test, mkdir, rmdir, etc. make it into shells if the speed factor was important? Things like mkdir and rmdir whose implementation is almost literally a single call to a libc function would seem to be obvious candidates for inclusion.


This might seem like a stupid question but I've been stuck with it all day. It seems to me that $c|\frac{a}{b}$  iff $c|a$ & ${c\not{|}{b}}$ but I can't prove it.


Is it possible to disable Terminal's automatic tweaking of colors in Lion?

While it's great that Terminal now has built-in support for changing the ANSI colors, I find it annoying that it automatically adjusts the colors to improve contrast, which means the colors that I actually pick often end up washed out or off in some other way. Here's a screenshot explaining the problem:     This bugs me because I like to use the same color scheme in Terminal and MacVim, and with this handling of colors by Terminal, they don't match up to the ones in MacVim.  Does anyone know of a solution to this, besides switching to iTerm 2 (which I'd rather not – I like the rest of Terminal, especially some GUI touches like the pulsating visual bell). Thanks!


How do I prove that for every positive integer $n$, there exist $n$ consecutive positive integers, each of which is composite?

I need help proving that for every positive integer $n$, there exist $n$ consecutive positive integers, each of which is composite. The hint that came with the problem is: Consider the numbers $2+(n+1)!,3+(n+1)!,...,n+(n+1)!,n+1+(n+1)!$.  I honestly have no idea how to begin here. I am specifically confused about what it means when it says "there exist $n$ consecutive positive integers". Does this mean that if $n = 5$, for example, then somewhere in the positive integers there are 5 consecutive composite integers, and that we want to prove that? I get that composite means that they are not prime, so they have more factors than 1 and themselves.  Any help would be greatly appreciated.  Thank you!


My iron tawa pan is flaking, how do I fix it?

I don't think my pan is cast iron which is why I am posting this here. I revived my cast iron pan and it performs beautifully. I use the cast iron pan for doas/pancakes.  The iron pan is lighter but defintely made of iron and does not have a non stick coating on it. It is commonly used in india for cooking flatbreads. I bought it at a local shop a few years ago. It looks very similar to .   When I cook rotis/flatbreads on it, it flakes. Little black bits come onto the bread.   My method of cooking is this.   Heat pan. Place flatbread on it for a while. Flip it, brush some oil on cooked side. Flip again, brush some oil on other cooked side, keep away.   If I brush oil directly on the pan, it smells weird.  I scrape and wipe the flakes off with a piece of cloth when it gets bad. But yeah, this pan has a huge flaking problem. What's causing it?


Which is called first the constructor or onDraw()

I referred to  but it does not offer what I am asking about.  I have some variables which are declared globally and, initially, they are assigned to NULL. Inside the constructor I call a function called "newGame()", this function initialise the variables. And inside onDraw() I am trying to draw a text contains the size of one of the variables that I have initialised inside the newGame() function, and when I run the app, it crashes, and logCat says: NPE.  So, i think, if the constructor is called first, my variables should have been initialsed, so that there should be no NPE. But, since there is NPE, it seems that, onDraw() is called before the constructor, is that true?  Update_1  I have also placed the newGame() function inside onSizeChanged() but, I receive the same NPE  Update_2  I am checking if an object of a hashmapis null or not like this in the following: if (obj == null)  is it correct to check whether or not an object is null?  Update_3  here is how I initialise the "hand"  if (hand == null) {         Log.i(TAG, "@dealCards: Hand hashMap was NULL, it will be initialised");         hand = new HashMap<Integer, Card>();     }   Code  private HashMap<Integer, Card> deck = null; private HashMap<Integer, Card> tableHand = null; private HashMap<Integer, Card> myHand = null; private HashMap<Integer, Card> compHand = null; .... .... //CONSTRUCTOR     public GameView(Context context) {     super(context);     // TODO Auto-generated constructor stub     mContext = context;     scale = mContext.getResources().getDisplayMetrics().density;      textPaint = new Paint();     textBounds = new Rect();     deckSize_String = "Deck_Size: ";     cardArraySize_String = "cardsArraySize: ";      textPaint.setAntiAlias(true);     textPaint.setColor(Color.RED);     textPaint.setStyle(Paint.Style.STROKE);     textPaint.setTextAlign(Paint.Align.LEFT);     textPaint.setTextSize(scale*15);      newGame(); } .... .... //OnDraw()     protected void onDraw(Canvas canvas) {     // TODO Auto-generated method stub     super.onDraw(canvas);     canvas.drawText("tableHand: "+tableHand.size(), 10, 200, textPaint);  }  private void newGame() {     // TODO Auto-generated method stub     Log.i(TAG, "@newGame()");      initDeck();     dealCards(deck, tableHand);     myTurn = whosTurn();      if (myTurn) {         dealCards(deck, myHand);         dealCards(deck, compHand);     }else {         dealCards(deck, myHand);         dealCards(deck, compHand);     } } ... ... ...  private void dealCards(HashMap<Integer, Card> deck, HashMap<Integer, Card> hand) {     // TODO Auto-generated method stub     if (hand == null) {         Log.i(TAG, "@dealCards: Hand hashMap was NULL, it will be initialised");         hand = new HashMap<Integer, Card>();     }      for (int i=0; i<4; i++) {         hand.put( (hand.size()+1), deck.get( ((DECK_MAX_SIZE - deck.size())+1) ) );         copyDealtCards( dealtCardsPile, deck.get( ((DECK_MAX_SIZE - deck.size())+1) ) );         deck.remove( ((DECK_MAX_SIZE - deck.size())+1) );     } }


Why is a map to a smaller dimensional space not injective?

I am trying to proof the theorem that states that:  "A map to a smaller dimensional space is not injective"  So I first suppose that V and W are finite-dimensional vector spaces such that dimV > dimW and I let T be the linear transformation from V to W.  Given the above, you have that:  dim(null(T)) = dim(V) - dim(range(T)) >= dim(V) - dim(W) > 0  So I understand the first and second equalities. However, I don't understand why dim(V) - dim(W) is strictly greater than 0.


The set $\{g^2 | g \in G\}$ in a group $G$

Let $G$ be a group. Prove or disprove that $H =\{g^2 | g \in G\}$ is a subgroup of $G$.   I tried testing the permutations of $A_4$, however squaring each cycle yielded a cycle in $A_4$ so I'm lacking a counter-example (if there is one). In a nutshell I'm looking for a subgroup such that when you square the permutation cycle, it yields a cycle not in that subgroup.  Or, I could be way off base and figure out that there isn't a counter-example and I need to prove that indeed $H$ is a subgroup of $G$.


how to dual boot ubuntu 15.04 with windows 8

My laptop model is DELL INSPIRON 15z(has 2 hard drives. One is 500GB HDD and the other is 32GB mSATA used for caching purpose and fast booting using IRST). I want to dual boot ubuntu alongside windows 8 that is currently installed on it. But I am not getting the option to install ubuntu alongside windows. Last time when I tried to install ubuntu my windows crashed.  Please help me out with detailed instruction.


How to use USB Speakers with 3.5mm Aux Speakers at the same time?

I have the Bose Companion 5, and recently got a Bose SoundLink mini bluetooth speaker as a gift and I want to be able to use them both at the same time, preferably having the mini speaker as the center. The Companion 5 is connected through USB and in order to use the mini speaker it has to be connected via 3.5mm cable into the aux (or bluetooth but I don't have it on my main PC).  Is it possible to have the audio output go through both USB and 3.5mm Analog simultaneously?  I have Virtual Audio Cable (VAC) but have only used it for other purposes. When trying to use the audiorepeater for real-time simultaneous sound, I get an echoing sound so I don't know if just doesn't work or that I'm using it incorrectly (please let me know).  Help would be greatly appreciated!  I'm using Windows 7 with an on-board sound card btw.


I wanted to get the previous day using Calender in Java. I am using the below code.  Calendar now = Calendar.getInstance(); now.add(Calendar.DATE, -1); now.add(Calendar.MONTH, -2);  myDate = now.get(Calendar.MONTH) + "/" + now.get(Calendar.DATE) + "/" + now.get(Calendar.YEAR);  System.out.println(myDate);   Output: 2/31/2020  The problem is above doesn't work all the time. As above if the current date is 03/01/2020 you get the above results. But February cannot have 31. Is there an option within Calendar lib to handle this?  And if I use below with formatting it gives completely different values.  Calendar now = Calendar.getInstance(); now.add(Calendar.DATE, -1); now.add(Calendar.MONTH, -2); SimpleDateFormat df = new SimpleDateFormat("MM/DD/YYYY"); String myDate= df.format(now.getTime());  System.out.println(myDate);   Output: 03/91/2020


I would like to prove that  $$a^{2^n}\equiv 1 \pmod {2^{n+2}}$$  I tried induction but could not get it.  Thank you very much!


the fastest way to hole curved side of a cylinder?

Does anyone knows the fastest and easiest way to hole the curved side of a cylinder in blender 2.8? thanks!


Algebra: Does every group whose order is a power of a prime p contain an element of order p?

I need to solve this using Lagrange's theorem and simple corollaries. Thanks.


Execute scripts for all files in a folder

I have following script which i need to execute for all files in a folder.  pdftk "file1.pdf" output uncompressed.pdf uncompress   sed -e "s/text need to remove/ /" uncompressed.pdf > unwatermarked.pdf   pdftk oldfile.pdf stamp stamp.pdf output final.pdf   How to apply all files in a folder may be with a for loop?


Again on "Either"... does it mean "both"?

I'm aware that the meaning of either can be:  Any of two options Both the options  It depends from the context ... This is the context, an :  When you arrive at the UK border you’ll need to show either:  a printed copy of the document attached to your confirmation email the document attached to the confirmation email on your phone   Now, should I have with me BOTH the documents or just ONE ? What is the (English grammar) rule here to identify if either means any or both? [Update] I read the answers in  but I was still not sure because:  the usage here is not "Either OF these options". The "both" meaning is an historical/old usage doesn't really matter. Google translator translates the phrase in Italian using "entrambi", that means BOTH, without any ambiguity!


In Tolkien's The Lord of the Rings series, there are generally two groups of Men. The good ones are coming from the West (Dúnedain, Men of the West), and the bad ones, the Easterlings, mostly fight under Morgoth and Sauron.  Why was this so?


Is there a reliable way to make a full desktop backup of all apps, app settings, files from an Android running Oreo?  I have tried using SDK and using the adb backup command. It seems to backup all the data but restore doesn't work. I have also noticed that backups made a few hours apart can be wildly different in terms of file size, which implies that it doesn't work consistently.  Is there something similar to the itunes back for iphone which works reliably? Thanks


A survey of 400 men and 400 women in a certain city showed that 270 men and 240 women favor a certain proposition. Calculate a confidence interval of 88% for the difference in proportions between men and women. Interpreting the result.  My attempt:  By hypothesis we know:  $N_x=400$ $N_y=400$ $n_x=270$ $n_y=240$  Note $\bar{p}(x)=\frac{270}{400}=0.675$ and $\bar{p}(y)=\frac{240}{400}=0.6$  Let $1-\alpha=0.88$ then $\frac{\alpha}{2}=0.06$  We know the confidence interval have the form   $$p=(p_1,p_2)$$  where $$p_1=(\bar{p}(x)-\bar{p}(y))-\phi_{\frac{\alpha}{2}}\sqrt{\frac{\bar{p}(x)(1-\bar{p}(x))(N_x-n_x)}{n_x(N_x-1)}+\frac{\bar{p}(y)(1-\bar{p}(y))(N_y-n_y)}{n_y(N_y-1)}}$$  $$p_2=(\bar{p}(x)-\bar{p}(y))+\phi_{\frac{\alpha}{2}}\sqrt{\frac{\bar{p}(x)(1-\bar{p}(x))(N_x-n_x)}{n_x(N_x-1)}+\frac{\bar{p}(y)(1-\bar{p}(y))(N_y-n_y)}{n_y(N_y-1)}}$$  Note $\phi_{\frac{\alpha}{2}}=1.56$  Then $p_1=-0.4096$ and $p_2=0.5596$  Here i'm stuck because $p_1>0$ but i have $p_1<0$. Can someone help me?


Recommendations on a free library to be used for zipping files

I need to zip and password-protect a file. Is there a good (free) library for this?  This needs to be opened by a third party, so the password protection needs to work with standard tools.


What do the joint distributions look like?

I know that if I know the marginal distributions, that's not enough to specify the joint distribution. But obviously it can't be "any" joint distribution, it still needs to respect its marginal requirements. So what do they look like?  For example, say I have the following "marginal requirements":   $X \sim N(0, 1), Y \sim N(5, 10)$ $\text{Corr}(X, Y) = 0.5$   Now, I know that 1 distribution for $(X, Y)$ satisfying these requirements is a multivariate normal distribution. But what are the other distributions? What is the "set" of distributions that can be used as a joint distribution for these marginal requirements? What do they look like? Do they have a specific "form"? What can I say about the density?  Are any of these questions answerable?


How do I get the directory that the currently executing jar file is in?

I'm running a jar file in various locations and I'm trying to figure out how to get the location of the jar file that is running.


I'm using Ubuntu 20.04.1 on Raspberry Pi 4 with 8GB RAM. After setting up the server and installing the ubuntu-desktop can't access wifi.  Does anyone have any idea how to resolve this issue?


As a tourist, can one rent a gun in the US?

A conversation this week at work reminded me of , and the question was asked if instead, you could rent instead of buying?  (Politics and amendments aside, whether guns are good or bad, just whether it's possible, legally)


How can I clip an image via a bezier-path?

I have a rectangular image that I can not change.  I'd like to clip the image with a bezier path so I get one that is rectangular at the top and the sides but has a curve at the bottom, preferable without using additional packages.


I am developing a SharePoint 2013 hosted app. I would like to use in my app the color of the style site. How can I retrieve the information of the style used by the site using JS? Thanks,Nk


SOLVED - Open Internet Explorer Desktop version from Start?

Is it possible to pin IE tiles that when you tap it, it open IE in desktop mode? I imagine it will be possible to make a shortcut with iexplorer.exe /somecommand or something like that and then pin it to Start, but I don't know the command, there must be some sort of flag command since IE pinned in taskbar is always open in desktop and IE pinned in Start Screen always open as Modern IE.  The end result I want is to have 2 tiles of IE on Start, one for desktop and the other for Modern version. Yes, IE is the default browser.  UPDATE: Found a workaround. Since the Modern IE pinned in Start is IE 64 bit, I can pin the IE 32 bit as desktop shortcut.  Since the question is marked as duplicate, I can't make an answer.


Why do people float inside space station in space?

In the spaces station moving around the world, we can see that people are floating inside the station. There are two forces acting on the station.    Gravitational force Centrifugal force   Now these forces can't cancel themselves. If that would happen then the station won't move in the orbit. But we see people floating. How can they float? There should be a net force acting on them which should cause them to move in a direction? But it doesn't happen.  So where am I wrong?


Why do some sites redirect to HTTPS but not others?

More specifically, http://*meta.stackexchange.com/ redirects to https://*meta.stackexchange.com, but http://*stackexchange.com/ does not redirect to https://*stackexchange.com. It is the same with the stackoverflow.com domain. Why is this the case?


Why is deep neural net with linear activation diverges?

Why is this toy example so difficult for neural net to learn? My guess is that the output of the first hidden layer is not normalized, so propagated gradient is not very stable. I've tried adding BatchNormalization between the two linear layers, but it has no visible effect on the optimization.  UPD: It seems like this particular behavior is caused by . This matches my experiments, which showed that the learning occurs only with very small learning rate.  Example code:  import numpy as np import keras from keras.models import Sequential from keras.layers import Dense  x = np.arange(100)[:, np.newaxis] f = lambda x: x ** 2 + 3 y = f(x) x_normed = (x - x.mean()) / x.std()  km = Sequential() km.add(Dense(1, activation=None)) km.add(Dense(1, activation=None)) km.compile('sgd', loss='mse')  km.fit(x_normed, y, epochs=300)


is software updater application in ubuntu like sudo apt-get update?

Does software update application in ubuntu 14.04 like sudo apt-get update command?


Outlook 2013: Move any message without a To or Cc

How can I create an Outlook 2013 rule which moves any message that doesn't have me listed as a recipient? It's easy to do this for messages which aren't To me, but I only want it to trigger if I'm not on the To or the Cc.  UPDATE: These messages will still arrive, either through BCC, or, more commonly, through certain bulk mailers and mailing lists, which deliver mail without the To: header.


A couple of years ago I've heard about an interesting (based on the hearing) story.  I didn't know what it is: a small tale or a novel.  The storyline is evolved around a first interstellar Spacecraft and life there - it allows for many peoples to live there. In this story (based on the hearing of mine) the evolution of life of people is described. And the most memorable thing was, in my interpretation:     Children start to asking, why in the old movies and books the sky often described as blue, red with no stars. But they knew that the sky is always black, they knew it by looking out of a porthole.   That's all I remember about the story.


Aligning the third word with 20 spaces from the beginning of the second word

We have the following file:     cat info.txt  linux03.sys98.com net16777728       Speed: 1000Mb/s linux03.sys98.com net16777728       Speed: 1000Mb/s linux01.sys98.com net3f0    Speed: 1000Mb/s linux01.sys98.com net3f0    Speed: 1000Mb/s  linux03.sys98.com net16777728       Duplex: Full linux03.sys98.com net16777728       Duplex: Full linux01.sys98.com net3f0    Duplex: Full linux01.sys98.com net3f0    Duplex: Full  linux04.sys98.com net3f2    Link detected: no linux04.sys98.com net3f3    Link detected: no  linux04.sys98.com net3f2    Speed: Unknown! linux04.sys98.com net3f3    Speed: Unknown!  linux04.sys98.com net3f2    Duplex: Unknown! (255) linux04.sys98.com net3f3    Duplex: Unknown! (255)  linux03.sys98.com net16777728       Link detected: yes linux03.sys98.com net16777728       Link detected: yes linux01.sys98.com net3f0    Link detected: yes linux01.sys98.com net3f0    Link detected: yes   We want to align the third word with 20 spaces from the beginning of the second word as the following expected results:   linux03.sys98.com net16777728          Speed: 1000Mb/s linux03.sys98.com net16777728          Speed: 1000Mb/s linux01.sys98.com net3f0               Speed: 1000Mb/s linux01.sys98.com net3f0               Speed: 1000Mb/s  linux03.sys98.com net16777728          Duplex: Full linux03.sys98.com net16777728          Duplex: Full linux01.sys98.com net3f0               Duplex: Full linux01.sys98.com net3f0               Duplex: Full  linux04.sys98.com net3f2               Link detected: no linux04.sys98.com net3f3               Link detected: no  linux04.sys98.com net3f2               Speed: Unknown! linux04.sys98.com net3f3               Speed: Unknown!  linux04.sys98.com net3f2               Duplex: Unknown! (255) linux04.sys98.com net3f3               Duplex: Unknown! (255)  linux03.sys98.com net16777728          Link detected: yes linux03.sys98.com net16777728          Link detected: yes linux01.sys98.com net3f0               Link detected: yes linux01.sys98.com net3f0               Link detected: yes   How to perform that with printf or any other solution?


I am interested in understanding how mathematics is divided into many categories, such as what categories are particular cases of what, what categories do not or have little overlap with what. This is meaningful to me, because it helps me get a big picture and not mess up  many categories.   Quoted from :     think if "Algebra", "Geometry",   "Analysis", "topology, "Number   Theory", etc. as 'first-level   subjects'; then you have algebraic   number theory, algebraic topology,   analytic geometry, etc., as   'second-level subjects.' Now we have   algebraic arithmetic geometry, a   'third level subject'   I was wondering what criterion is used to divide mathematics into the first level subjects?  My understanding for these subjects are:  The objects studied in algebra are sets with operators with some properties, and mapping between such sets. So algebra is dealing with general and abstract objects.  Geometry is, quoted from Wikipedia:      a branch of mathematics   concerned with questions of shape,   size, relative position of figures,   and the properties of space.   To make these questions meaningful, is the space a general inner product space? Or must it be a particular one, an Euclidean space $\mathbb{E}^n$? In either case, geometry is dealing with some kind of topological vector space, which seems to be more concrete than algebra.  The subjects studied in analysis are derivatives and integrals of some mapping between some sets( others that I miss?). To make derivative concept meaningful, the domain and codomain of the mapping must be Banach spaces (?); to make integral concept meaningful, the domain and codomain of the mapping must be measure space and Banach space respectively(?).   Topology is about neighborhood of each element in a set, defined as a class of subsets that are closed under arbitrary union and finite intersection. This is also quite general and abstract.  Number theory is about properties of natural, integer, rational, real, complex, algebraic numbers, that are represented in terms of four specific operators $+, -, \times, \div$. This is quite concrete.  In summary, the first-level subjects algebra, geometry, analysis, topology and number theory seem not stand at the same level of abstraction or concreteness. Is there a criterion or reason for dividing mathematical topics into these first-level subjects? There are also other categories of mathematics, such as set theory, category theory, logic and measure theory, which especially the first three seem quite general and each does not very much overlap with other categories of mathematics, including algebra, geometry, analysis, topology and number theory. So what kind of criterion is used to form these other categories? Are there other criteria for forming mathematics categories?   Thanks and regards!


I am trying to eradicate my HTML code of tags such as <strong>, <i>, <b>, and <em>. I understand that <strong> and <b> can be accomplished in CSS by using font-weight: bold. I also understand that <italic> can be accomplished in CSS by using font-weight: italic. However, I am not sure how what the CSS equivalent for <em> is. After a lot of research, I really do not even see the difference between <strong>, <b>, and <em>.  Therefore, what is the difference between <strong>, <b>, and <em>, and what is the CSS equivalent of <em>? Any suggestions are appreciated. Thank you.


How to fix missing panel indicators in 13.10

After moving from 12.04 to 13.10 (with unity), the majority of my applications no longer have panel indicators. e.g: - xchat - sonata  xchat gets a link in the mail menu, but this is useless because it opens a new xchat instance each time it's clicked, rather than bringing up the existing one.  I understand that this is a change from 13.04 to 'tidy up' the notification area, but it's super frustrating. Is there any way to force the old behaviour so that all of my applications can have status indicators?


Is there any way to disable Command+W in the terminal?   On several occasions I have accidentally closed a terminal window containing important information when I meant to close a Safari tab and did not realize that the terminal was the active window.


Because of messages I received about the mail server being insecure, I was told to change my password. This I did with relative ease, got a "verification code" to use, went through two or three steps to verify this and thought all was well. However, when I try to log into my Gmail, it asks for my user name and password. Neither the new nor old credentials work.  What do I do now?


If body temperature is 37°C (98.6°F), why are most people more comfortable at around 21°C (70°F)?

It may be different for other people, but for me, anything above 32°C (90°F) is very uncomfortable, and my body is inclined to seek cooler temperatures.  But I would think that at 32°C, the body would have less work to do to get itself to 37°C.  So why is it not comfortable in those temperatures?  My theory is this, but I don't know if it's right:    The body's abilities for warming itself are much more sophisticated than its abilities for cooling itself (which are non-existent, possibly?). So it likes to be in an environment 20-30 degrees below optimal because it can easily handle that.  But up in the 32's and we're dangerously close to going over the optimal, and the body doesn't know how to get it back down after that, so we are inclined to seek safer temperatures.    Is it something like that?


Prove that $\exists a, b\in(0,1)$ such that $\int_0^{a} xf(x)dx=0\text{ and }\int_0^bxf(x)dx=\frac{b^2f(b)}{2}.$

Question: Let $f:[0,1]\to\mathbb{R}$ be a continuous function such that $f(0)=0$ and $$\int_0^1f(x)dx=0.$$ Prove that $\exists a, b\in(0,1)$ such that $$\int_0^{a} xf(x)dx=0\text{ and }\int_0^bxf(x)dx=\frac{b^2f(b)}{2}.$$  My approach: Let $g:[0,1]\to\mathbb{R}$ be such that $$g(x)=x\int_0^xf(t)dt-\int_0^xtf(t)dt, \forall x\in[0,1].$$ By the first fundamental theorem of calculus we can conclude that $g$ is differentiable on $[0,1]$ and $$g'(x)=\int_0^xf(t)dt, \forall x\in[0,1].$$ Also, observe that $g(0)=0$ and $g(1)=-\int_0^1tf(t)dt$. Thus, by applying MVT to the function $g$ on the interval $[0,1]$, we can conclude that, $\exists c\in(0,1)$ such that $$g'(c)=\int_0^cf(t)dt=-\int_0^1tf(t)dt.$$ Observe that clearly three cases are possible, i.e, either$$\int_0^cf(t)dt<0\text{ or }\int_0^cf(t)dt=0\text{ or }\int_0^cf(t)dt>0.$$ Now let $h:[0,1]\to\mathbb{R}$ be such that $$h(x)=\int_0^xtf(t)dt, \forall x\in[0,1].$$ Please note that the part highlighted below is wrong, but still I have included it to just demonstrate my thinking process, as it might be of some help to others trying out this problem.  Observe that if $\int_0^cf(t)dt<0$, then, $h(1)>0$. This also implies that $\exists$ an open interval $(d,e)\in[0,c]$, such that $f(t)<0, \forall t\in(d,e)$. Now select any point $c_1\in(d,e)$. Applying MVT to the function $h$ on the interval $[0,c_1]$, we can conclude that $\exists c_2\in(0,c_1)$ such that $$h'(c_2).c_1=f(c_2).c_2.c_1=h(c_1)-h(0)=h(c_1)<0.$$ Now $h(c_1)<0$ and $h(1)>0$. Thus, by IVT we can conclude that $\exists a\in(c_1,1)\subseteq(0,1)$, such that $$h(a)=\int_0^af(t)dt=0.$$ A similar reasoning for the case when $\int_0^cf(t)dt>0,$ shows that $\exists a\in(0,1)$, such that $$h(a)=\int_0^af(t)dt=0.$$ Now finally if $\int_0^cf(t)dt=0$, then we will have $h(1)=0$. Now if $f$ is identically equal to $0$ on $[0,c]$, then clearly $tf(t)=0, \forall t\in[0,c]\implies h(x)=0, \forall x\in[0,c].$ Thus choosing any point $x\in(0,c]$ and setting it as $a$, we will have $h(a)=0$ and we will be done in that case. Now if $f$ acquires both positive and negative values on $[0,c]$, then we can conclude that $\exists c_1,c_2\in(0,c)$, such that $f(c_1)>0$ and $f(c_2)<0$. Also, let us assume WLOG that $c_2>c_1$.  I have not been able to make any significant approach other than this. Can someone help me out with this problem? Please note that a solution using integration by parts might not be possible, since $f$ is not a differentiable function.


Is this correct grammar: "[...] cash can't be beat."

I found the following phrase in a NYTimes article and I was pretty surprised that it wasn't corrected or edited out: "But when it comes to privacy and freedom, cash can't be beat.".  I am under the impression that this is incorrect grammar and the sentence should actually be "[...] cash can't be beaten." or "[...] you can't beat cash" but definitely not the one used in the article. Am I wrong here?  This sort of grammar is mostly only used in slang in England and I always thought that it was wrong but after a bit of googling, I'm not sure anymore. Is it just another difference between American and British English? I know it's really petty but I'm still interested in the answer!  Article link:


Counting unique addresses in a list based on criteria in another column

I have a list of a few hundred addresses and have a day of the week matched with those days.  I need to know how many of the weekdays have a unique address associated with it.  For this example, Monday has 4 addresses but only 2 of them are unique:


How performance is better even-thought using additional condition check of queue size before poll from Queue

I need to maintain last 4 recent ids (It may not be in sequence). So I have added below code.      long timeStamp = System.currentTimeMillis();     Queue<Integer> autoIds = new LinkedList<Integer>(Arrays.asList(-1,-1,-1,-1));      for(int i =1;i<2147483647;i++){         autoIds.add(i);         autoIds.poll();     }     System.out.println(System.currentTimeMillis()-timeStamp);      // 25436 or 26771... little different numbers but more then 24500     System.out.println(recentUnregisteredModuleIds);   Later I thought removing size check in if condition, may increase performance so I removed and initialize queue with some dummy 4 values.      long timeStamp = System.currentTimeMillis();     Queue<Integer> autoIds = new LinkedList<Integer>();      for(int i =1;i<2147483647;i++){         autoIds.add(i);         if(autoIds.size()>4){             autoIds.poll();         }     }     System.out.println(System.currentTimeMillis()-timeStamp);      // 19949 or 20425 ... less then 21000 in different times     System.out.println(recentUnregisteredModuleIds);   But when I compare the execution time adding additional if condition to check queue size before poll is better in performance. I thought adding one additional condition will decrease the performance, here that's not true how ?


Disabling the software escape button on touchbar

Is there any way to disable permanently the software Escape button on the Touch Bar. After two months I can't get used it, and can't help touching it inadvertently in the middle of some important operations.   Any solution other than drilling through the touchbar is welcome.


Can't format/erase a partition on usb stick

I wanted to make a bootable Windows 10 USB on my Ubuntu 16.04 Gnome and in the process of following  I got myself into a few problems with my 8 GB pen drive disk.   GParted does not recognize the whole 8GB as unallocated. I think another 4GB partition was created but I don't seem to able to manage it via GParted.    I get errors when trying to format disk or erase it in Disks:   When I run sudo mkfs.vfat /dev/sdb1 || sudo dd if=/dev/zero of=/dev/sdb1 bs=1M count=1 to format via command line I get the following output:  mkfs.fat 3.0.28 (2015-05-16)  I tried opening the USB disk in GParted on another laptop (running Lubuntu) and there I could see the disk formatted correctly and showing up the whole 8GB. Could it the problem be my computer's system?   How am I to repair this USB stick so I can get a working windows bootable USB?


How can I install 'Adobe Flash Player' offline?

My friend has a computer with Ubuntu 12.04 32 bit, but he has no internet connection. He'd like to install the Adobe Flash Player on his computer. How to do that?


Supposing I have two Linux distributions, in dual boot (the GRUB menu appears and ask me what to choose):   Ubuntu 14.04 elementary OS   Adding a new one is very simple: just insert the installation device and start installing.  What about uninstalling one? How can I uninstall elementary OS, for example?  Can I do that only by formatting/deleting that partition?


Can I give a creature trample after blockers have been assigned?

I declare my attack with a 3/3 creature & then my opponent assigns a 1/1 creature to block.  Am I allowed to use the ability of an  (1 Green Mana - Target creature gains trample until end of turn) on my original 3/3 creature to make sure that, in addition to his creature dying, he receives 2 damage to himself as well?  Or would that give my opponent the chance to go back and assign a secondary blocker?


OK. So I have sinned and here I am at the confessional.  Yes, the mods wern't too happy about it but I made a suggestion to one mod. How about pulling in all my various accounts under this IP and rolling them into one. It's a pain not having the back-log of questions I can refer to if there are things that I'd like to go back and look at without accidentally duping questions.  Or is this too much to ask. The mod in question suggested it could be a 'good' idea.  Any pointers?


"false implies true" is a true statement

In algebra, one lesson we took was about logic. We learned that it is a true statement or logical expression to say that if a Beijing was the capital of the US then the moon existed last night, as this is convenient with a false statement implying a true one being a true statement. Agree?


In my book of c++ I just found a code where the book says there is an undefined behaviour.   # include <iostream> using namespace std;  int main( ) { const char * a = "aaa"; char * b = const_cast<char *>(a); cout << a << '\n' << b << '\n'; b[0] = 'b'; // here undef. behaviour  cout << a << '\n' << b << '\n'; }   I don't understand why . Does anyone know it ?


I wanted to capture to a file the errors being returned on the command line from grep. For example,  grep foo.lookup No such file in directory   I want to output that to a log file. This is my shell script:  lookUpVal=1 var1=$(grep $lookUpVal foo.lookup) >>lookup.log 2>$1   It creates the file lookup.log but doesn't write the error on it.


Is it unhealthy not to masturbate at all?

If a person stops masturbating, will it have negative effects on their health? Can a person live perfectly without masturbating at all?


JFK-Arriving Int'l Transfer Passengers required to undergo TSA screening?

An international passenger is arriving at JFK to transit to another domestic airport.  The passenger will need to clear customs (with their baggage).  Once baggage is in PAX custody, I assume that checking in said bags is required for the domestic flight.  Once the bags are checked-in for the domestic flight:  Should the passenger expect and plan to undergo TSA inspection for the domestic flight?    Is there any instance where this would not happen (i.e. all activities in first paragraph occur in the 'sterile area' of airport?  If you have actually performed this exercise, please state this in your response.    An international arrival followed by a transfer does not always imply a terminal change. This question is different from  because it is possible to arrive and transfer within the SAME terminal.  For example, arrive at JFK T5 on Jetblue from an international flight and transfer within the same terminal to another Jetblue domestic flight. As phoog has pointed out, the question the question is more complicated in that it is comprises international complications, not merely a domestic flight.


If $\Gamma \cup \{ \neg \varphi \}$ is inconsistent, then $\Gamma \vdash \varphi$   Here, a set of formulas is inconsistent means they syntactically imply some formula as well as its negation. Syntactic implication here consists of (1) given formulas, (2) all first-order logical axioms, (3) modus ponens.  I have tried to explicitly construct a syntactic proof for the conclusion but failed to come up with one.


I wanted to determine the following: \begin{align*} \lim_{x\to 0^+}{x^{x^x}} &= 0 \end{align*} There has been a previous question posted on it before but the arguments on there do not seem entirely formal:   I wanted to see if we could use the fact that we know that $\lim_{x\to 0^+}{x^x} =1$   $\lim_{x\to 0^+}{x^{x^x}} = \lim_{x\to 0^+}e^{x^xlnx}=e^{{\lim_{x\to 0^+}x^xlnx}} $ but I can't see this helping me as $lnx$ has an infinite limit here.  Any thoughts as to how to get a nice solution to this?