As far as my understanding goes, during the 'Big Bang' equal amounts of matter and antimatter (matter's oppositely charged twin) were produced, and the physical matter that remains within this universe is what's left over from the equilibrium of matter and antimatter canceling one another out following the Big Bang. If matter and antimatter truly do cancel one another out (are transformed into pure energy) upon contact, than:  a) why is there still matter in existence?  b) if matter is still in existence then doesn't that mean that somewhere within the universe there is an equal amount of antimatter?

I can think of three general ways of explaining why the universe contains more matter than antimatter:  (1) Near the Planck time, the universe had zero baryon asymmetry, but at some later time, determined by some GUT energy scale, the  were satisfied, and the baryon asymmetry became nonzero.  (2) Nonconservation of baryon number occurs only at Planckian energies. Near the Planck time, the baryon asymmetry evolved from zero to some nonzero value.  (3) The Sakharov conditions have never been satisfied. The baryon asymmetry has always been nonzero, and has simply scaled as expected. (Apparently one  $\Delta n=n_B-n_\bar{B}\propto s$, where $n$ is number density and $s$ is entropy density).  It seems like most theorists are interested in #1, but is there any reason why 2 and 3 aren't possible?  2 seems pretty reasonable, since for the reasons given in , we have good reasons to think that baryon number is not conserved under Planckian conditions.  3 also seems reasonable to me, since even if baryon number is nonconserved at Planckian energies, that's only one of the three Sakharov conditions. I don't see any obvious fine-tuning objections to #3, since the scaling of baryon asymmetry with cosmological expansion isn't particularly drastic (not an exponential decay or anything). Is there something unphysical about maintaining $\Delta n\propto s$ all the way back to the Planckian era?   Some people might object to #3 on aesthetic grounds, since we "expect" the initial conditions of the universe to be symmetric, but that seems weak to me. After all, we don't object aesthetically to the fact that homogeneity was an imperfect symmetry of the early universe, and we even accept that the early universe was in a thermodynamically unlikely state.


for(int i=0;i<=5;i++){             HtmlPage currentPage = (HtmlPage)client.getPage("http:// http://testsite.com ");             HtmlForm form = (HtmlForm) currentPage.getElementById("kelimeAraID");             HtmlButton button = (HtmlButton) form.getElementsByTagName("button").get(0);             HtmlTextInput kullaniciAdi= form.getInputByName("kelime");             kullaniciAdi.setText(arrayList.get(i));             HtmlPage sayfa2= button.click();             HtmlTableRow tr=(HtmlTableRow)sayfa2.getFirstByXPath("//*[@id=\"hor-minimalist-a\"]/tbody/tr[1]");             System.out.println(arrayList.get(i)+":"+tr.asText()); /*line:95*/             client.closeAllWindows();         }   Exception in thread "main" java.lang.NullPointerException     at htmlunit.HtmlUnit.main(HtmlUnit.java:95)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Do you lose as in magic? Do you reshuffle your discard pile?

When the corporation R&D is empty the corporation loses.  What happens when the Runner's stack is empty?    I think that: He must finish the game with only the cards on the table.  or  I doubt that: He reshuffles the heap into a new stack.


If there is a quote at the end of a sentence, does the period of the quote go before or after the end quotation mark? And if the quote is ended by a question mark does it replace the period that would be at the end of the main sentence?

I have been/am being taught that end punctuation should always go inside quotes. For example, you are supposed to write:     Marvin thought it was "awful."   The problem is I do not see how does this make sense. Intuitively, I always wrote:     Marvin thought it was "awful".   as that makes more logical sense — you want a quote to be an exact replication of what somebody else said, so why should you add punctuation inside?  I always thought it made more sense to not touch the quote and add anything after or before if it must be added.  So, why should I put end punctuation inside quotes?


IT reimaged my PC (Windows 7) and I had to reinstall all the software they don't have on their standard image - including MikTeX and TeXniccenter.  If I try to compile and output a PDF the second time, but I left the last PDF open after viewing it, the compile stops.  See below for information from log file, the LaTeX and Viewer profiles.  I remember having this problem before, and a colleague gave me a solution (other than remembering to close the PDF every time I want to recompile) and that was to change the build profile in some way so that it closed the PDF before the build, but I can't remember where the change needs to be made or what the code is (and the colleague has left).  Thanks for any help.  From log file:  ! I can't write on file `"0 - 10-4 polar curves.pdf"'. Please type another file name for output ! Emergency stop.                      \endgroup \set@typeset@protect  l.35 \myclass  *** (job aborted, file error in nonstop mode)

My Adobe decided it should be version X now, and it misbehaves in so many ways. One way is that it is impossible to get it to open a pdf document from within TexnicCenter (or I missed something...) Pressing F5 opens up the Adobe with some start menu asking me to open a recent file blablabla. But not the file I want to see. And TexnicCenter tells me the command could not be executed.  I've had it with Adobe bloatware, so I want to shift to something else. Nitro comes to mind, as I find it a decent PDF reader and editor. So I wondered if anybody had experience setting up TexnicCenter with , as I couldn't really find anything on the net. Or is there another one that is better ( is mentioned as it gives pdfsync, but again, I have no experience in this)  Thank you for your answers.  EDIT :  After some more searching around, I found that there is apparently a problem with the server name for Adobe ( see  ). Still, I've had it with those censored. more censored. So any help on linking TC with either Nitro or something else is greatly appreciated


Not duplicate of : The above question wanted some of the subsections round corner framed. The answer provided requires a command which almost behaves like an environment.  Here the answer requires solution which can manipulate subsection command globally and with less dependencies. This is my example:  \documentclass[a6paper]{book} \usepackage{titlesec}  %%%%%subsection title formating%%%%%% \titleformat{\subsection}[frame] {\filcenter\bfseries\Large}{}{1em}{}  \begin{document} \section{this section doesnt need box} \subsection{This subsection needs round corner box} This can be normal paragraph. This can be normal paragraph. This can be normal paragraph.  \end{document}

I want to write some subtitle like the bold sentence inside the box, could anyone give me some guide on how to do it? Basically this subtitle is inside a section environment.   I have no idea how to write this subtitle, as well as how to generate the box. Could anyone give me some help? Thx.


I am trying to find a "fair" matchup system for a competition where $16$ players participate in a 4- player game. I would like to emulate the advantages of a round-robin system For example if my game were a 2-player one, I could easily make a $15$-round tournament, with each player facing a different opponent on each round. At the end of the tournament, each player would have faced all opponents exactly once, so none of the players faced a stronger opposition than any other player. A total of $120$ games would have been played in total. This simply doesn't work in a game with more players. If I wanted to go through every possible matchup in a 3-player game, I'd need $560$ games (more than $100$ rounds), and with four players, I'd need $1820$ games (in other words, each player would participate in $455$ games). I've considered switching to something based on the "Swiss" format used in chess, but that also has its downsides. My question is, what would be the shortest pairing method that would make each player on the competition face every opponent the same number of times? Does it apply to a different number of competitors? And no a game of $n$ players? It still wouldn't be totally "fair", as a cetain combination of opponents could be tougher than another, but it'd definitely be an improvement. PS: As three opponents are played at each round and there are $15$ opponents for each player. The number of rounds played should  therefore be a multiple of $5$, but I don't know if it would be possible to do it with exactly $5$ rounds (after all, if there were $20$ rather than $16$, you'd defintely need at least $19$ rounds

I'm looking to schedule 16 players to play a round robin tournament with each other such that there are 4 players at each table.  I'd like for each player to play with each other player exactly once over the course of 5 rounds.  I just took a look at this post:  , and I was wondering if anyone knows if the case n=m=4 has been solved, and if so what that solution is.


I have a form with a table inside it. The table has four input elements each with type=submit. The form also has a hidden input element. What I want to do is the following:  When one of the four input elements is clicked, a jQuery event should fire that:   Stops submission Sets the id of the clicked element as the value of the hidden input Submits the form   The event is not firing and the form is being submitted normally. I can't see what the issue is. Any help is appreciated.  <form id="myForm" method="post" action="" style="background-color: antiquewhite; margin: 0; padding: 0;">   {% csrf_token %}   <input type="hidden" id="op" name="op" value="">

Is this an origin for the claim?
       	       <input type="submit" id="1" value="Yes">	       <input type="submit" id="2" value="No">

       <input type="submit" id="3" value="Invalid Input">	       <input type="submit" id="4" value="Don't Know">

 </form>   $("input").on('click', function(e) {   e.preventDefault();   let choice = e.target.id;   document.getElementById("op").value = choice;   $("#myForm").submit(); });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I am using sage a math library in python. After downloading its package, I usually have to go to the directory where I extracted it and then run the the script using   sudo ./sage   from terminal. How can I add sage to the list of installed applications, that I will be able to run the script by typing sage command from any directory in terminal?

I'd like to know if there is a way to run  program/shell script without typing full path:  /opt/idea/bin/idea.sh


Does anyone know how to put a gap between the axes and data in PGFPlots? Essentially I'm looking to use Jean-Luc Doumont's style from his excellent book Trees, Maps, and Theorems. Figure here is from .   Don't worry about the arrows and everything, that is all straightforward. I am specifically asking about the axes position.

I used the excellent code from TUGBoat issue 34 mentioned in this post  and was very happy until I tried to use it with logarithmic axis. The problem seems to be that the values stored in \pgfplots@data@xmin etc. are logarithmic.  \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document}      % automatically save the min and max value of the data     % this part is crucial for me since I do not want to find the min and max values manually in a large data file.     \makeatletter     \def\pgfplotsdataxmin{\pgfplots@data@xmin}     \def\pgfplotsdataxmax{\pgfplots@data@xmax}     \def\pgfplotsdataymin{\pgfplots@data@ymin}     \def\pgfplotsdataymax{\pgfplots@data@ymax}     \makeatother      % This adds the min and max values found above as extra ticks     \pgfplotsset{tufte extra ticks/.style={             extra x ticks={                 \pgfplotsdataxmin,                 \pgfplotsdataxmax             },             extra y ticks={                 \pgfplotsdataymin,                 \pgfplotsdataymax             },     }}        \pgfplotsset{         range frame/.style={             tick align=outside,             axis line style={opacity=0},             after end axis/.code={                 \draw ({rel axis cs:0,0}-|{axis cs:\pgfplotsdataxmin,0}) -- ({rel axis cs:0,0}-|{axis cs:\pgfplotsdataxmax,0});                 \draw ({rel axis cs:0,0}|-{axis cs:0,\pgfplotsdataymin}) -- ({rel axis cs:0,0}|-{axis cs:0,\pgfplotsdataymax});             }         }     }      \begin{tikzpicture}     \begin{axis}[     range frame,     xlabel={$L$ [H]},     ylabel={$\hat{I}_{DM}$ [A]},     axis lines*=left,     ymin=0.41,     ytick={0.7,0.9,...,1.5},     xtick={1.5e-3,2e-3,2.5e-3},     tufte extra ticks,     xmode=log, % <- comment this out to get a working example     ]     \addplot +[black, mark options=fill=black] coordinates {(948e-6,1.61981) (1.5e-3,1.02377) (2e-3,0.769047) (2.5e-3,0.614994) (3.2e-3,0.503511)};     \end{axis}     \end{tikzpicture} \end{document}   Is there a way to solve this problem if one or both axis are in log-mode?  Edit: tufte extra ticks has the purpose to create a tick for the minimal and maximal value of each axis as in the image below.


Server port is open in Network firewall as well as iptables disabled on server.  We able to telnet port in same network but unable to telnet using localhost/127.0.0.1 and using different network.  Find below output which will be help you to analyse issue.  **[root@localhost ~]# netstat -paln | grep 40901  tcp        0      0 10.141.36.41:40901          0.0.0.0:*                   LISTEN      48292/./as-agent  [root@localhost ~]# telnet 10.141.36.41 40901  Trying 10.141.36.41...  Connected to 10.141.36.41.  Escape character is '^]'.  ^]  telnet> quit  Connection closed.  [root@localhost ~]# telnet localhost 40901  Trying ::1...  telnet: connect to address ::1: Connection refused  Trying 127.0.0.1...  telnet: connect to address 127.0.0.1: Connection refused**

This is a  about Connection Refused    We see a lot of questions to the effect      When I try to connect to a system I get a message      Connection refused      Why is this ?


I would like to split multiple lines into equal aproximately 10m lengths. (Line length / 10m = number of segments) The split tool can only split one selected feature at a time. To overcome this I can merge multiple lines into a single multigeometry feature then run the split tool on the merged line. Works fine until I run into what seems to be a limitation - the split tool can only split into a maximum of 999 equal parts. When I enter a higher number the OK button goes dim.   Is there a workaround to overcome this limitation or another way to split mupliple lines into equal parts?  Basic or Standard licence only.   Figure 1 - Split Tool dialog showing 999 equal parts:     Figure 2 - Split Tool dialog showing 1000 equal parts:

I have a shapefile of U.S. states.  I extracted the boundary between two states, resulting in a line segment.  For example, the boundary between Georgia and North Carolina.    Is there a way to further divide this boundary into, say, units of 25 mile segments?  Similarly, is there a way to segment the line into equal length segments.  For example, taking this border segment, and dividing it into 3 segments of equal length.  I use ArcGIS 10.1 and ArcMap.  And if we have several lines to split (a few thousands)?


I just saw this river Basin map in Twitter and thought to replicate the work in another catchment I am having. I have all the associated files such as dem, drainage with me but I don't know the steps in blender.

I know nothing about Blender and I need to do a very simple 3D terrain with texture map.  I have a 1000 x 700 height map:   And I have a 1000 x 700 texture map:   And I want to combine them into a 3D model that I can view. I have done this before, about 8 years ago, in XNA but none of my old code will compile anymore under Visual Studio 2010.  I apologize that this is a very simple question. I'm not a CGI artist and I don't anything about Blender but I know that it can do this simple thing.  What are the steps to do this with Blender?  Thanks for posting the steps but I don't have Import -> images as planes. I just have this:   Am I in the wrong place? Thanks in advance!


I am building a program that takes input, then detects to see it a specific thing was entered. After the line was entered,it should convert it to lowercase. But, I cannot figure out how. I have tried tolower(), but I cannot figure out what to put in the brackets. Here is the code:  #include <string> #include <sstream> #include <iostream> #include "stdafx.h" using namespace std; int main() {     while (1)     {         string dir = "C:/";         string line;         string afterPrint;         string prompt = "| " + dir + " |> ";         cout << prompt;         cin >> line;          stringstream ss(line);         while (ss)         {             string command;             ss >> command;             command = ;// Command, but lowercase             if (command == "cd")             {                 string dir;                 if (ss >> dir)                 {                     cout << "changedir: " << dir << "\n";                     string prompt = "| " + dir + " |> ";                 }             }             else if (command == "c:" || command == "c:\\" || command == "c:/")             {                 cout << "Directory: " << dir << "\n";             }             else             {                 cout << "error\n";             }             break;         }     }     return 0; }   Help would be highly appreciated!

I want to convert a std::string to lowercase. I am aware of the function tolower(). However, in the past I have had issues with this function and it is hardly ideal anyway as using it with a std::string would require iterating over each character. Is there an alternative which works 100% of the time?


Let $f$ be an analytic function in an open set $U \subseteq \mathbb{C}$. Let $V=\{z\in\mathbb C:\overline z\in U\}$. Define $g$ on $V$ by $g(z)=\overline{f(\overline{z})}$. Show that $g$ is analytic on $V$. Note: It is not sufficient to show that $g$ is holomorphic because we haven't yet proved that holomorphic implies analytic.    Here is my attempted proof:  First, we will simply state what it means that $f$ is analytic on $U$. Applying the definition, we know that since $f$ is analytic on $U$, we know that for every $z_0 \in U$, there exists $r>0$ and a sequence of complex numbers $\left(a_n\right)_{n=0}^\infty$ such that $f(z)=\sum_{n=0}^\infty a_n\left(z-z_0\right)^n$ on the disc $D(z_0,r)$.  Next, note by definition of $V$ that for all $v \in V$, we have $\overline{v} \in U$. Therefore since $f$ is analytic on $U$, then for all $v \in V$ there exists $r>0$ and a sequence of complex numbers $\left(a_n\right)_{n=0}^\infty$ such that $f(u)=\sum_{n=0}^\infty a_n\left(u-\overline{v}\right)^n$ for all $u \in D(\overline{v},r)$.  Edit (Following Daniel Fischer's suggestion) Now if we realize that if $u \in D(\overline{v},r)$, then we see $u=\overline{w}$ for some $w \in D(v,r) \subseteq V$.  Therefore, putting everything together, we have that for all $v \in V$, there exists $r>0$ and a sequence of complex numbers $\left(a_n\right)_{n=0}^\infty$ such that $f(w)=\sum_{n=0}^\infty \overline{a_n}\left(w-v\right)^n$ for all $w \in D(v,r)\subseteq V$ (is this last part correct?).  I feel like I am getting close; I just need to obtain $g$ from this somehow. But I am losing direction here... Am I on the right track? Thanks!

I'm doing a bit of self study, but I'm uncomfortable with a certain idea. I want to show that $f(z)$ is analytic if and only if $\overline{f(\bar{z})}$ is analytic, and by analytic I mean differentiable at each point. Here $f$ is a complex valued function.  What I do is write $f(z)=u(x,y)+iv(x,y)$, where $u$ and $v$ are real functions of two variables. Then $\overline{f(\bar{z})}=u(x,-y)-iv(x,-y)$.  These two forms look very similar, in the sense the one function being differentiable should immediately imply the other is differentiable, since the only thing really changing might be a $-$ sign popping out due to the chain rule.   How can I more rigorously express that $f(z)$ is analytic iff $\overline{f(\bar{z})}$ using this? Many thanks.


I saw the other questions regarding this problem. I am trying to approach it a bit differently.   We can write $g(x)$ as $(D^r+D^{r-1}+D^{r-2}+...+D+1)f=g(x) \implies \frac{(D^{r+1}-1)}{(D-1)}f(x)=g(x) \implies f(x) = (1+D^{r+1}+...)[g(x)-g'(x)]=g(x)-g'(x) \geq 0$.   [$r$ =$deg f(x)$, $f(x)$ is a polynomial, greater or equal to zero for all $x$. ]  Now, $1 \geq g'(x)/g(x) \implies e^x \geq \ln{g(x)}$, which is defined for all $x$. Now, $g(x)$ has to be $>0$ $\forall x$, for that to occur.   Can someone take it from here?

Let $p(x)$ be a polynomial of degree $n$ satisfying $p(x)\geq 0$ for all $x$. That is, for all $x$, $p(x) = a_n x^n + a_{n-1} x^{n-1} + \cdots + a_1 x + a_0 \geq 0$, $a_n\neq 0$.  Show that $p(x)+p'(x)+p''(x)+\cdots+p^{(n)}(x)\geq 0$ for all $x$ where $p^{(i)}(x)$ is the $i^\text{th}$  derivative.  My interest: I know that, we can rewrite the LDE as follows  $$ p(x)+p'(x)+p''(x)+\cdots+p^{(n)}(x) = Lp(x) $$  where $L := I + D + D^2  + \cdots + D^{(n)}$. Can we say anything about a linear operator of this kind so that it does not change the sign of the input it takes? I can try to solve the question by writing for all the derivatives and factoring them using $p(x)$, but I think there should be a clever way of showing this by the properties of $L$. Can I figure out a solution by just looking at $L$ and the sign of $p(x)$ as in the question? Where should I look for that?


Are these 2 queries the same?  Query #1  select      e.last_name, e.first_name, d.department_name, l.city from      employees e inner      join departments d on e.department_id = d.department_id inner join       locations l on  d.location_id = l.location_id;   Query #2  select      e.last_name, e.first_name, d.department_name, l.city from      employees e, departments d, locations l where      e.department_id = d.department_id      AND d.location_id = l.location_id;

Is there any efficiency difference in an explicit vs implicit inner join? For example:  SELECT * FROM table a INNER JOIN table b ON a.id = b.id;   vs.  SELECT a.*, b.* FROM table a, table b WHERE a.id = b.id;


I am using spherical coordinate system $r,\theta, \phi$ like this picture.  Consider I have a sphere with radius $R$, is divided into two hemisphere $S$ and $P$.  With this given information I am able to calculate $\phi$ limits for $P$ portion over $T$ using the following method:  $$ \begin{split} \tan \beta = z/y,\\  z=R\cos\theta, \end{split}\quad \iff \quad y={R\cos\theta\over\tan\beta} $$  $$ \begin{split} R\sin\theta\sin\phi={R\cos\theta\over\tan\beta}, \\ \sin\phi={1\over\tan\beta\tan\theta}, \end{split}\quad \iff \quad \phi=\arcsin{1\over\tan\beta\tan\theta}.$$ So the $\phi$ can go until $\pi -\phi$.  Now consider my $P$ is not a hemisphere: rather it is a spherical cap, where the cap size can be defined by an angle $\gamma$.     What will be my $\phi$ in this case to calculate the $P$ portion over the line $T$?

Given a sphere of radius $r$ with two spherical caps on it defined by the radii ($a_1$ and $a_2$) of the bases of the spherical caps, given a separation of the two spherical caps by angle $\theta$, how do you calculate the surface area of that intersection?   To clarify, the area is that of the curved surface on the sphere defined by the intersection. At the extreme where both $a_1,a_2 = r$, we would be describing a spherical lune.   Alternatively define the spherical caps by the angles  $\Phi_1 = \arcsin(a_1/r)$ and $\Phi_2 = \arcsin(a_2/r)$.


My problem is that one specific activity in my app can't be launched for some reason, and it throws:   java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference  All other launching code that looks like this work fine, the problem is ONLY when I'm launching Player1. The class surely exists, and I can't understand what is the problem.  I'm launching an activity called Player1 from an activity called ChooseLevel. When some button is pressed, the call is:  Intent intent = new Intent(ChooseLevel.this, Player1.class); Bundle b = new Bundle(); b.putInt("game_level", 1); intent.putExtras(b); startActivity(intent); finish();   The logs show that the error is in: Player1.onCreate(Player1.java:50)  The code in line Player1:50 is:     @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_player1);      changeIndex = 0;     cards = new ArrayList<Card>(8);     score = (TextView) findViewById(R.id.score_text);     message = (TextView) findViewById(R.id.msg_text);     timer = (TextView) findViewById(R.id.timer);     timer.setText(String.valueOf(definitions.TIMER_START)); # LINE 50      Bundle b = getIntent().getExtras();      ...  }   When this launching code runs, I get this in my logs:  33:04.338 18302-18302/com... D/AndroidRuntime: Shutting down VM 01-18 10:33:04.338 18302-18302/com... E/AndroidRuntime: FATAL EXCEPTION: main            Process: com..., PID: 18302 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.../com....Player1}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference         at com....Player1.onCreate(Player1.java:50)     EDIT:   I found my answer, it had to do with some object that I had in my Player1.onCreate() method. In a wierd way, android-studio raised the exception regarding getClass(). If someone knows why this happend, please share :)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I am using   DateFormat dateFormat =  new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); Date date = new Date(); String fromdate = dateFormat.format(date);   to get the current date, how can I get the date 7 days back. For example, if today is 7th June 2013, how can I get 31th May 2013 in the same format as defined in date formatter?  Update  Got the solution:  DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");          Date date = new Date();         String todate = dateFormat.format(date);          Calendar cal = Calendar.getInstance();         cal.add(Calendar.DATE, -7);         Date todate1 = cal.getTime();             String fromdate = dateFormat.format(todate1);

Anyone know a simple way using Java calendar to subtract X days from a date?  I have not been able to find any function which allows me to directly subtract X days from a date in Java. Can someone point me to the right direction?


I like to use  with  but its not clear to me how to install it within mactex ?

I've searched online, but I have not found any clear instructions how to permanently add .sty files to my TeXShop installation. I'm using a Mac with OSX (TeXShop is a mac only program).  What is the best way of doing this? The one comprehensive set of instructions I found .   I've got as far as extracting the files (running LaTeX on the .ins and . dtx files) but after that I don't know what to do. I also don't understand how to update the index of my distribution, and whether there are particular OSX specifics (the instructions are for Windows).


Let $G$ be a group, $H<G$ a subgroup and $g$ an element of $G$. Let $\lambda_g$ denote the inner automorphism which maps $x$ to $gxg^{-1}$. I wonder if $H$ can be mapped to a proper subgroup of itself, i.e.  $\lambda_g(H)\subset H$.  I tried to approach this problem topologically. Since every group is the fundamental group of a connected CW-complex of dimension 2, let $(X,x_0)$ be such a space for $G$. Since $X$ is (locally) path-connected and semi-locally simply-connected, there exists a (locally) path-connected covering space $(\widetilde X,\widetilde x_0)$, such that $p_*(\pi_1(\widetilde X,\widetilde x_0))=H$. The element $g$ corresponds to $[\gamma]\in\pi_1(X,x_0))$, and its lift at $\widetilde x_0$ is a path ending at $\widetilde x_1$. By hypothesis, $H\subseteq g^{-1}Hg$, which leads to the existence of a unique lift $f:\pi_1(\widetilde X,\widetilde x_0)\to\pi_1(\widetilde X,\widetilde x_1)$ such that $p=p\circ f$. This lift turns out to be a surjective covering map itself, and it is a homeomorphism iff $H=g^{-1}Hg$.  I was unsuccessful in showing the injectivity. If $x_1$ and $x_2$ have the same image under $f$, then $x_1$, $x_2$, and $f(x_1)=f(x_2)$ are all in the same fiber. I took $\lambda$ to be a path from $x_1$ to $x_2$. I have been playing around with $\lambda$, $p\lambda$, and $f\lambda$, but got nowhere.  Of course, there could also be a direct algebraic proof. On the other hand, if the statement is not true then someone maybe knows of a counterexample.

Let $G$ be a group, $H\subseteq G$ a subgroup and $a\in G$ an element of the group. Is it possible that $aHa^{-1} \subset H$, but $aHa^{-1} \neq H$?   If $H$ has finite index or finite order, this is not possible.


Please examine the following phrases:   a few hundred books a few hundreds of books several hundred books several hundreds of books many hundred books many hundreds of books   I think #1, #3, and #6 are correct. What about the others? Also, it seems to me (although I'm by no means certain) that "many" patterns differently from "a few" and "several." If that's the case, do you have an explanation?

Which is correct?     A few hundred people ...   A few hundreds of people ...   Does it make any sense without an article or A is necessary?


I'm using the  to control the brightness of a LED using an Arduino Uno. The MCP4131's interface is SPI and it has a multiplexed SDI/SDO pin (pin #3).  The  specifies a resistor R1 to be placed on the host's SDO before the host SDI/SDO signal are being multiplexed. I was wondering how to calculate it's value? For now, I used a 1k resistor and it works but I want to learn how to deduce this value from the datasheet.  The comment says that R1 must be sized to ensure VIL and VIH of the devices are met, I can't figure out what these are.  If anyone can explain I'll appreciate it, thank!

There are two aspects here. The first question is related to R1 below:    The datasheet says: "R1 must be sized to ensure VIL and VIH of the devices are met" but gives no formula. So first question:  (1) How does one determine value of R1?  The datasheet gives maximum SPI SCK frequency for this device as 10MHz for 5V supply as given in Tables 1-1 and 1-2. However, for the read operation on the device where the SDI/SDO are multiplexed, the idea is different because:    The point 2 under the Table above says that the max SCK can be increased by using a pull up resistor. About these things I am wondering the following:  (2) Why is max SCK frequency lower for multiplexed SDI/SDO read operation only? (3) If I connect a pull-up resistor it will certainly form a voltage divider with the R1 in the first picture. How do I determine the value of both of these resistors then?  Finally, since the Table 1-1 and 1-2 give SCK Input Frequency for voltage 1.8V to 2.7V as 1MHz rather than 10MHz which applies to 2.7V to 5.5V.   (4) Why is the max SCK lowered at lower supply voltage?


Let T:$\mathbb R^3\to\mathbb R^3$ be an orthogonal transformation such that det T=1 and T is not the identity. Let S subset of $\mathbb R^3$ be the Unit sphere. Show that T fixes exactly two points on S. S is compact and the linear function T is continuous. Hence T(S) is compact. No way I can proceed further. Help me out please.

Let T : $\mathbb{R^3} \rightarrow \mathbb{R^3}$ be an orthogonal transformation such that det $T = 1$ and T is not the identity linear transformation. Let S $ \mathbb{R^3}$ be the unit sphere, i.e., S = {$(x; y; z):x^2 + y^2 + z^2 = 1$}: Show that T fixes exactly two points on S.  can anyone help me to solve this problem.thanks.


Unless I'm just using bad grammar I guess, it feels more natural when talking to someone to say "zero point five days" when referring to 0.5 days; conversely, it sounds more natural to say "one day" when referring to 1 day.  A similar question might be relevant: Why do we say "half a day" when describing the value, but "zero point five days" when being numerically specific?

Do we say "-1 thing" or "-1 things"?  I am interested in both      two things minus one thing(s)    and      minus/negative one thing(s)


I was wondering if there was a way to find the common roots of 2 polynomials.  For example let $P_1(x) = x^5+x^3+2x^4-5x^2-7$ and $P_2(x) = 2x^7 +3x^3+4x^6+6x^2-14x^4-21$  Is there an algorithm or a method to find $P_1$ and $P_2$'s common roots?

How do we find the GCD $G$ of two polynomials, $P_1$ and $P_2$ in a given ring (for example $\mathbf{F}_5[x]$)? Then how do we find polynomials $a,b\in \mathbf{F}_5[x]$ so that $P_1a+ P_2b=G$? An example would be great.


I posted a question on Programmers and was told that I should post it on Stack Overflow instead.  Having posted it in both places, both questions are now "on hold  as off-topic" so really, I don't know where I'm supposed to post this question anymore.     I added a little more info to the SO question to follow what the "off-topic" notice suggestion but I seriously doubt it'll ever receive any attention again.  So where can I post this question now that the 2 most likely places have rejected it outright?

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


I tried providing StackExchange's openid url () as a login method over at ask.libreoffice.org and got an SE server error:  An error occurred on the server This event has been recorded. If you believe you encountered this message in error, please report it.  Well I believe I did encounger this error in error, so am reporting it.

If I'm on , I click on OpenID and then enter  and click Log In, I get a page that says:  An error occurred on the server  This event has been recorded.  If you believe you encountered this message in error, please report it.   I clicked report it and here I am reporting it! Using Firefox 26


ok so I download Kali Linux to a usb stick plug it into my computer and I had to change my EFI to legacy I did everything went smoothly until I wanted to get back to windows 8 I restart my computer go into my boot options and windows boot is gone. So I don't have windows 8 someone plz help.

I installed Windows 7 and Windows 8 in EFI mode on a hard disk some days ago. Today, the bootloader got missing/corrupted.  I currently have the Windows 8 installer on a flash drive and tried using the Automatic Repair option to repair the bootloader but it didn't do anything. The Startup Repair option is also missing in the Windows 8 installer.  How I can repair/recreate the EFI bootloader from the Command Prompt?  BCDEDIT returns the following message:  The requested system device cannot be found.


Intuitively, what exactly is the dot product of two vectors? I am trying to understand the big picture of the Cauchy Schwarz theory. So the dot product of two vectors is less than or equal to the product of the lengths of two vectors... but what does the dot product of two vectors represent anyway?

Suppose you have two vectors a and b that you want to take the dot product of, now this is done quite simply by taking each corresponding coordinate of each vector, multiplying them and then adding the result together. At the end of performing our operation we are left with a constant number.  My question therefore is what can we do with this number,why do we calculate it so to speak? I mean it seems almost useless to me compared with the cross product of two vectors (where you end up with an actual vector).


In my SQL i have a table with a column id & Order.On website data is displayed according to id & Order.But we want to change the way data is displayed we want to randomize whole content..Can anyone please suggest SQL query for this.  rough database structure is below  city_id       city_name       city_order   1               xyz             1   2               geh             2   3               tre             3   Regards,

How can I request a random row (or as close to truly random as is possible) in pure SQL?


please advice can i run ubuntu 13.04 64bit  on Pentium 4 cpu of  2 Ghz clock, 2GB RAM with nvidia 210 GPU with 1 GB ram.

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


I have a list of files that need to be renamed, the original values are on the left the new values are on the right as follows:  B000R825I0_1.jpg    test_1.jpg B000R825I0_2.jpg    test_2.jpg   I am new to batch files but I have attempted the following:  ren B000R825I0*.jpg test*.jpg   The renamed files are now incorrectly showing as the values below:  testR825I0_1.jpg testR825I0_2.jpg   I'm not sure why this is happening, please can someone assist me?

I've got a bunch of files named with a the pattern 99 - DescriptiveName.txt and I'd like to remove the number from the front so I just have DescriptiveName.txt.  How can I do this? Can I do it from the command line or is there a utility that can do this?


A friend of mine said that Count Dooku only was a good friend of the Sith. I think that Count Dooku is a Sith.   So was Count Dooku a Sith?   Is there any evidence of him being a Sith?

I don't know the exact significance of the word "Darth" in the Sith world, but I think it was a word of honor for powerful Sith. That's why Anakin was given this word in his new name.  All powerful Sith in canon had this word in their names: Darth Plagueis, Darth Bane, Darth Sidious, Darth Vader, Darth Maul, etc. As such name similarity can't be names given by their parents, I can assume they were given such words in names as a honor.   Now, look at Count Dooku... he was a powerful Sith too. So, why wasn't he given this title?    Darth word to address Dooku hasn't been used in the movies, as far as I know. If you are claiming that Darth and Lord words are same, give citations because my vocabulary rejects it.


I am creating a module in Drupal 7. The module is working well now, but I doesn't create an admin menu link.  I used the following code:  <?php function question_mark_menu() {     $items = array();      $items['admin/question-mark'] = array(         'title' => 'Question mark',         'description' => 'Manage your question mark',         'page callback' => 'question_mark_page',         'access arguments' => array('administer question mark'),         'type' => MENU_NORMAL_ITEM,     );     return $items; } ?>   I tried to clear my cache but nothing works.  What is wrong in my code?

I'm working on a module in Drupal 7. I've added a hook_menu implementation:  $items['admin/config/content/mymodule'] = [   'title'            => 'MyModule',   'description'      => 'Configure MyModule settings.',   'page callback'    => 'mymodule_get_form',   'page arguments'   => ['mymodule_admin_settings'],   'file'             => 'mymodule.admin.inc',   'access arguments' => ['administer mymodule'],   'menu_name'        => 'mymodule', ];   ...and a configure line to mymodule.info:  configure = admin/config/content/mymodule   A Configure link for MyModule now appears the admin/modules page, but how can I also have the module listed on the admin/config page? Or is the admin/config page reserved for only core modules?


Let $T = \frac{X}{S}$ with X a random exponential variable of parameter lambda and S gamma random variable of this form: $\Gamma(2,\lambda)$.  I want to find the density of T. Know, I tried to find $F_T(t)$, so that I can derive and obtain the desired result. This is what I did:  $$ F_T(t) = \mathbb{P}[T \leq t] = \mathbb{P}[\frac{X}{S} \leq t]$$  Then I am not sure if I should write S = X + Y with X and Y independent random variable of exponential distribution $\lambda$ or if I should continue with the definition.   I tried to keep going with the definition:  $$ \mathbb{P}[\frac{X}{S} \leq t] = \mathbb{P}[X \leq tS] $$  However now I cannot say that this is equal to $F_X(tS)$ because I have S as random variable, so I tried to write it in this way: $$\mathbb{P}[X \leq ts \ \vert S = s]$$ So that I can use Bayes theorem and write:  $$\frac{\mathbb{P}[X \leq ts \cap S = s]}{\mathbb{P}[S = s]}$$ However here I am not sure on how to proceed. Any idea?

A recent question () asked about the distribution of the ratio of two random variables, and the answer accepted there was a reference to Wikipedia which (in simplified and restated form) claims that if $X$ is a Gamma random variable with parameters $(n, 1)$ and $Y$ is an exponential random variable with parameter $1$, then $Y/X$ is a Pareto random variable with parameters $(1, n)$.  Presumably $X$ and $Y$ need to be independent for this result to hold.  But, Wikipedia's page on Pareto random variables doesn't seem to include a statement as to what $(1, n)$ means, though based on what it does says, a reasonable interpretation is that the Pareto random variable takes on values in $(1,\infty)$ and its complementary CDF decays away as $z^{-n}$.  My question is:  what is the intuitive explanation for the ratio $Y/X$ to have value $1$ or more?  It would seem that all positive values should occur, and indeed the event  $\{Y < X\}$ should have large probability since the Gamma random variable has larger mean than the exponential random variable.  I did work out the complementary CDF of $Y/X$ and got $(1+z)^{-n}$ for $z > 0$ which is not quite what Wikipedia claims.  Added Note:  Thanks to Sasha and Didier Piau for confirming my calculation that for $z > 0$,  $P\{Y/X > z\} = (1+z)^{-n}$ which of course implies that  $$P\{Y/X + 1 > z\} = P\{Y/X > z-1\} = (1 + z - 1)^{-n} = z^{-n}~ \text{for}~ z > 1$$ and thus it is $Y/X + 1$ which is a Pareto random variable, not $Y/X$ as claimed by Wikipedia.  This leads to a simple answer to  a  posed by S Huntsman:  Are there any (pairs) of simple distributions that give rise to a power law ratio?     If $W$ and $X$ are the $(n+1)$-th and $n$-th arrival times in a (homogeneous) Poisson process, then $W/X$ is a Pareto $(1,n)$ random variable:  $P\{W/X > a\} = a^{-n}$ for $a > 1$.   I suspect that this result is quite well known in the theory  of Poisson processes but I don't have a reference for it.


I'm using the Kolmogorov-Smirnov test to test a random number generator. I'm wondering if there are other tests that I should implement as well. So far, I've looked at the equidistribution and serial correlation tests, but they seem redundant given that the KS already ensures that the random numbers follow the uniform distribution reasonable well.

Which methods are used for testing random variate generation algorithms?


I have two function which returns two dictionaries. In third function I've tried merge these dictionaries using update but I've got Noneresult while printing. Could anyone explain my mistake?  def first():     dict1 = {         one : [1, 2, 3]     }     return dict1  def second():     dict2 = {         two : [3, 4, 5]     }     return dict2  def third():     return first().update(second)   print(third()) >>> None   I also tried this way:  def third():     a = first().copy()     return a.update(second())   By the way, this way doesn't work in Python 3.4:  def third():     return dict(a.items() + b.items())

I have two Python dictionaries, and I want to write a single expression that returns these two dictionaries, merged (i.e. taking the union).  The update() method would be what I need, if it returned its result instead of modifying a dictionary in-place. >>> x = {'a': 1, 'b': 2} >>> y = {'b': 10, 'c': 11} >>> z = x.update(y) >>> print(z) None >>> x {'a': 1, 'b': 10, 'c': 11}  How can I get that final merged dictionary in z, not x? (To be extra-clear, the last-one-wins conflict-handling of dict.update() is what I'm looking for as well.)


If $|G|=p^2$ then $G$ is abelian. Now, like $G$ is abelian for the Theorem of finitely generated abelian groups $G$ is isomorphic to $\mathbb{Z}_p\times \mathbb{Z}_p$, but I don't know if I can do this or what other way I have?

I'm a bit lost on this problem:      Show that a group of order $p^2$ is isomorphic to $\mathbb{Z}_{p^2}$ or $\mathbb{Z}_{p}$ $\times$ $\mathbb{Z}_{p}$.    The only thing I can think of that may relate to this problem is Lagrange's Theorem, where the order of a subgroup divides the order of a group. But I'm not sure if I can even use that for this problem... Any help would be tremendously helpful. Thank you!


I am trying to show that the language   { (B,w) | B is a DFA that accepts at least one string w}   is decidable.   I have:  M = "On input (B,w) where B is a DFA and w is a string:   Simulate B on input w Repeat until an accept state is marked.  If any w reaches ends in an accept state mark it.  If an accept state is marked, accept; otherwise reject.    I'm not sure this is right, because what if it keeps checking and in reality the DFA accepts no strings, then 2. will be infinite right? Am I anywhere near the right answer?

I'm supposed to show that the following language is decidable:  $\{\lt A \gt \mid A \text{ is a DFA and } L(A) \text{ is not empty}\}$  What I have  T = "On input $\lt A \gt$  where $A$ is a DFA:   Mark the start state of $A$ Repeat until no new states gets marked  Mark any state that has a transition coming into it from any state that is already marked.   If an accept state is marked, accept. Otherwise reject.   Does this suffice to show that the language is decidable and did I make any mistakes?


I'm trying to iterate and map list with a key pair. I'm getting the following output as below(i.e.) Im getting only the last value in the list.   {'first': [{'Key': 'Created', 'Value': '2020'}, {'Key': 'Type', 'Value': 'Entr'}], 'Second': [{'Key': 'Created', 'Value': '2020'}, {'Key': 'Type', 'Value': 'Entr'}]}   Code  tags = [[{'Key': 'Created', 'Value': '2019'}, {'Key': 'Type', 'Value': 'Business'}], [{'Key': 'Created', 'Value': '2020'}, {'Key': 'Type', 'Value': 'Entr'}]]  samplelist = ['first','Second']  sampledict = {}  for i in samplelist:     for tag in tags:         sampledict[i] = tag   Expected Output  {'first': [{'Key': 'Created', 'Value': '2019'}, {'Key': 'Type', 'Value': 'Business'}], 'Second': [{'Key': 'Created', 'Value': '2020'}, {'Key': 'Type', 'Value': 'Entr'}]}

Imagine that you have the following list. keys = ['name', 'age', 'food'] values = ['Monty', 42, 'spam']  What is the simplest way to produce the following dictionary? a_dict = {'name': 'Monty', 'age': 42, 'food': 'spam'}


I have a problem. I'm working on my document on MacOS using prepared template. The problem i to generate bibliography. During compilation error occur - Bibliography empty. Here is my configuration:  \usepackage[ style=numeric, sorting=none, language=autobib, autolang=other, urldate=iso8601, backref=false, isbn=true, url=false, maxbibnames=3, backend=bibtex]{biblatex}  \addbibresource{mybib.bib}   I tryied backend as biber and mpm --install and --update both biber and bibtex does not working. Can anyone help ? Thanks

Is there any way to have BibTeX or biblatex insert a bibliography without having citations in the body of the document itself? Maybe a way to hide the in-text citations, so that BibTeX still sees them and includes them in the bibliography, but does not print them in the body?


Is there anything wrong in following source code if I don't use mutex?  bool bStop = false;  void thread1_fun() {     while (!bStop)     {         doSomething();     } }  void thread2_fun() {     bStop = true; }

I have a multi-threaded C++ app which does 3D rendering with the OpenSceneGraph library. I'm planning to kick off OSG's render loop as a separate thread using boost::threads, passing a data structure containing shared state in to the thread. I'm trying to avoid anything too heavyweight (like mutexes) for synchronization, as the render loop needs to be pretty tight, and OSG itself tries to avoid having to ever lock. Most of the shared state is set before the thread is started, and never changed. I do have some data that does need to be changed, which I am planning to double-buffer. However, I have a simple boolean for signaling the thread to suspend rendering, and later resume rendering, and another to kill it. In both cases the app thread sets the bool, and the render thread only reads it. Do I need to synchronize access to these bools? As far as I can tell, the worse thing that could happen is the the render loop continues on for an extra frame before suspending or quitting.


Vendors in my current game of Fallout 4 wont restock their items. I've been waiting for weeks for a mini nuke to be restocked.  Why don't they restock? Would it have anything to do with the mods I have installed?

I've been looking for 2mm EC ammo and according to the  it is supposed to restock every 48 hours at Arturo. However he has not gotten any new 2mm EC ammo for at least 10 restocks.   Do vendors restock on a random selection of items with some being more likely than others? Is there a max limit to how many different items a vendor will sell so that no new items will be added to stock after this limit is reached? Is there a level limit on what items can be restocked? I bought 2mm EC ammunition once from Arturo so I assume I'm high enough level if that's the case?


In Notepad++ i'm familiar with opening files into new views (Move to Other View). This opens a second window which files can open in. Is there a way to open a 3rd view?

I would like to open 4 Notepad++ windows at once, in the same pannel. Currently, I am only able to split it into two, and would like to know if there is a plugin that enables 4 views at at same time, or 3.   thanks


when changing a defective fan I found out that because only 2 wire  cables were used, they have used the ground as the third wire to supply the light. Is this legal and safe? This is in a condo in Florida

I'm replacing a ceiling fan and it has three wires as is common: black, white, and bare ground. I have a two-toggle wall switch. One switch makes the black wire hot (for the motor), and the other switch makes the white wire hot (for the integrated light). So it looks as if the white wire in the ceiling is used as a hot for the light rather than a neutral wire as is common.   From the main power, there are three wires:  Black wire has nut that is spliced to both the Dual Switch (that controls the ceiling fan) and the other switch which operates the upsidedown wall outlet.  White Wire is spliced to just the upsidedown wall outlet. (no connection to Ceiling Fan)  All three bare ground wires are connected together.  So the Dual switch that controls the ceiling fan has The Black Wire from the main power to the top of the switch, The other top wire at the ceiling fan Dual switch is the BLack wire that runs to the Ceiling Fan (assuming to run the fan light, and the Bottom wire is the White wire which appears to operate with the bottom switch (of the dual switch) when it is turned assumed for the fan motor.          Crazy thing is this is how the home builder (Beezer Homes) wired the home when new in 95). I remember the builder was originally suppose to install 3-toggle switches in two bedrooms.  They only installed 2-toggle switches.  They corrected the problem by install the dual switch in place of one of the single toggle switches.  The fan was wired with the House bare ground wire being utilized as the Fan's neutral White Wire (and that being connected to the mount ground wire. The houses Neutral is the hot wire for the fan motor. Black wires are connected as normal and for power to the fan's light.


Can I use binary variables in R's glm function with a binomial outcome (logistic regression)?

I'm modeling (using GLM) one binary explanatory variable against a binary response variable.  The output looks ok to me, but I'm a biologist with a basic knowledge of stats, I just wanted to ask if there's any rule/caveat/problem for modeling a binary versus a binary?


I would like to redirect domain1.com to domain2.com using DNS. I would further like to redirect www.domain1.com to www.domain2.com.  For domain1.com zone file, do I need to have an A record or are CNAME records sufficient, e.g.  *                               IN      CNAME           domain2.com. www.domain1.com                 IN      CNAME           www.domain2.com.   The goal is that when visitors visit domain1.com or www.domain1.com, they go to domain2

Is it possible to set a DNS record to redirect all example.com/* traffic to www.example.com/*?  I'm running a  app on Heroku's .  I set up , and the documentation discusses . I also read about how to do this with . However, I'm wondering if there's a way to do this via DNS, i.e., without hitting my app.


I'm solving knapsack problem using DP in Python. Here's how I fill the table (code below). The problem is, I'm only filling column i+1 but column i change as well. I'm pretty sure I didn't code any command to change the values of column i.  I have printed the tables in several cases to identify where the culprit is. I failed to find it and I'm sure there is something wrong in the last line (filling command). But what??  table = [] table.append([0]*(capacity+1))  for item in (items):     table.append(table[item.index])      i = item.index     for k in range(item.weight,capacity+1):         table[i+1][k] = max((table[i][k]),(item.value+(table[i][k-item.weight])))   For example if my knapsack's capacity is 11 and I only have 1 item with weight 4 and value 8, table[0] should remain [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] and table[1] should be [0, 0, 0, 0, 8, 8, 8, 8, 8, 8, 8, 8]. Instead, in the end of the (only) iteration, I got table[0] = [0, 0, 0, 0, 8, 8, 8, 8, 16, 16, 16, 16] and table[1] = [0, 0, 0, 0, 8, 8, 8, 8, 16, 16, 16, 16].  Clearly, the values of table[0] has been changed. But in which line did I inadvertently program to change it?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I have a command I'm running in the background,  fnordctl &   Occasionally I pull it up into the foreground,  fg   Now, I'd like to send it back to the background to continue running. Typing Ctrl-z will suspend the process, and it won't continue running until I run bg.  Is there a way I could background the process without suspending it?  If that's not possible, maybe there's a way I could bind the suspend operation and subsequent bg to a shortcut key (e.g. Meta-z)? I'm using Bash, so maybe this is something I could create a custom Readline binding for?

I already know that pressing ctrl+z stops the app, then I can send the app to background with the bg command, but that means there is a brief preiod of time that the app is stopped.  How do I send the app directly to the background without stopping it?


I read some about red giants and so far I understand red giants become exhausted of burning hydrogen in the core, so then start hydrogen burning at shell and may or may not be burning helium in the core, in the meantime.   I know when stars start burning heavier atoms the nuclear energy against the gravitation becomes weaker and stars start to collapse. But why red giants get bigger while burning helium or just hydrogen burning shell ? If it was gaining energy it would not become red, what makes it to expand then ?

What causes the dimensions of a star increase when its hydrogen fuel is exhausted? For example, the Sun is expected to increase its radius 250 times. What causes this if its temperature is expected to fall? How gas can expand if the temperature falls?


I am trying to calculate the following gradient $$\nabla_{\mathbf{X}} \left( \mathbf{a}^{T} \mathbf{X} \mathbf{a} \right)$$ where I am using the convention that $\mathbf{a}$ is a column vector. I am wondering what the steps are to extract the solution from the matrix cookbook, which is: $$\nabla_{\mathbf{X}} \left( \mathbf{a}^{T} \mathbf{X} \mathbf{a} \right) = \mathbf{a}\cdot\mathbf{a}^{T}$$

How can I find the gradient of the term $a^TXb$ where $X$ is a $n \times m$ matrix, and $a$ and $b$ are column vectors.  Since the gradient is with respect to a matrix, it should be a matrix.  But I do not have a clue on how to derive this gradient.   Any help ?


can you model a square in an equation ?  like a circle for example $r^2 = x^2 + y^2$  and lets say we have a square with: centered at $(3,3)$  $2 \leq x \leq 4$ and $2 \leq y\leq 4$  can we somehow make an equation for that square ?

I need to graph a rectangle on the Cartesian coordinate system. Is there an equation for a rectangle? I can't find it anywhere.


I'm a level 80 mage whom wears heavy armour but it is slowing my character down too much. I've got the  heavy armour skill to 35 and need to increase it so I can get the perk that makes the armour weigh nothing.   How can I speed up leveling this skill?

I'm trying to fast track my heavy armor skill, mostly so I can get the Conditioning perk (since my armor takes up such a ridiculous portion of my overall carrying capacity).  So far, I've only found two ways to increase my heavy armor skill: paying for training (which gets pretty expensive!), or actually getting hit by enemies.  The problem with the first option is that it will quickly bankrupt me, the problem with the second option is that it tends to kill me.  Has anyone found a good way to "farm" up your heavy armor skill?


I was changing the  bashrc file based upon the following video  but suddenly when I type sudo su I get the following error      bash: export: `/home/mala/WRFinstall/Build_WRF/LIBRARIES/mpich/bin:/home/mala/WRFinstall/Build_WRF/LIBRARIES/netcdf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games': not a valid identifier   I tried to edit the bashrc file by typing nano ~/.bashrc  but I can't find the file I edited. I only get content of a normal bash file.

I'm trying to setup cocos2dx in Ubuntu 14.04 LTS but after setting the environmental variables (in .bashrc) I start getting this error:  bash: export: dev/cocos2d-x-3.2/tools/cocos2d-console/bin': not a valid identifier  bash: export:/home/john/android': not a valid identifier  bash: export: dev/android-ndk-r10b': not a valid identifier  bash: export:dev/adt-bundle-linux-x86_64-20140702/sdk': not a valid identifier   And I don't know what to do to fix it.


I intend to either reset a password of a user, or add a new user on my windows 10 machine with lost password. All the tutorials point to using utilman as cmd. I know it worked a year ago, but now it does not. I succesfully swapped utilman.exe to cmd.exe but after clicking the utils button the console does not appear. I heard a tip that you have to be in time before windows defender activates in 30 seconds, but even in 6 seconds it did not work.  What can I do now to reset the password to my account?

I got a brand new Windows 7 machine, installed the operating system, created one account and forgot its password. What can I do?  There is no external CD, the operating system is loaded from somewhere inside the machine.  I already tried to remember passwords and tried all candidates with all possible combinations of caps lock, num lock etc.


I want to decrease the length of margins, which are denoted on the picture (because i fint them too long). How can i do that?     \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel} \usepackage[T1]{fontenc} \usepackage{graphicx, graphics} \usepackage{epsfig} \usepackage{stmaryrd} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amsmath} \pagestyle{empty}  \begin{document} \title{ticket9} \author{myname}  \section{introduction} \vskip 0.1 cm Some text  \end{document}

I am writing a document for which I need the margin to be exactly as follows: left, right, top and bottom text margin all equal to 1in, distance from bottom of the paper to page number equal to 0.75in (I don't have any footnote or header to set).  I tried to use the fullpage package in LaTeX but it does not give me the 0.75in to the page number. Is there a way to force that? I tried to set manually the margins for a 8.5x11 paper but I am not succeeding.    I tried but after writing:  \documentclass[PhD]{class_file} \usepackage[margin=1in,footskip=0.25in]{geometry}   I get the error message \paperwidth (0.0pt) too short.  I don't see the \paperwidth is set to 0.0pt anywhere though..  Also it seems to me that depending on which machine I use to compile my tex file, I get different margins, even when I set them up manually (without using geometry). Is it possible?    Using the geometry package things seem to work a bit better now (I changed machine and the problem with the paper width previously mentioned disappeared).   \usepackage[margin=1in,footskip=0.25in]{geometry}   gives me without problem upper, right and left margin of 1in. But the lower margin is 1.2in and I can't change it to be 1in even by using bottom=1in or bottom=0.8in. I really don't see how this can happen. Maybe a problem with the spacing between lines? The class files I am using can be fund at   I erased the margin settings of uclath12.clo as the margin I need are different from the ones that this file gives. Thank you.


In computer science,  is a common technique used to increase the throughput of processing units, both in the context of hardware and software. When describing a context that are amenable to pipelining, we would say that is is pipelinable/pipelineable.  I have found neither pipelinable nor pipelineable in any dictionary, so I assume this form (along with pipelining?) has been invented by researchers/engineers. When I search Google scholar, I find 659 results for , and 1550 results for , leading me to believe that there is also no clear consensus in the scientific community.  Are there any arguments for using one over the other when it's not a dictionary word, or is it truly arbitrary?

Possible Duplicate:          Both are correct for these words:        But these words are incorrect:            Are there rules for this?  The case for keeping the "e" seems to be that the "ga" in "acknowledgable" would be read as "gall" rather than "germ", but "minglable" shouldn't cause that problem.  I'm also not sure why we couldn't keep the "e" in words like "storable" or "makable".


I have been playing pokemon go for one week, everything was fine. Suddenly i am seeing a no items on map. No gyms, no pokemons and no poke stops. Checked reinstalling the game but no luck. Can anyone suggest how to solve this? Thanks.

Pokemon GO isn't working at all for me right now. I'm in one of the following circumstances and can't do anything:   My game is displaying a "Try Again" message I'm stuck on the Loading Screen When I sign in I get a message that the servers are experiencing problems. I see the map but nothing is loaded, and my team color is wrong The "loading" Pokeball just ends up spinning and I can't catch or interact with things When I try to catch a Pokemon, the Pokeball just sits on my screen doing nothing Gym opponents will drop to 1 HP and won't take any more damage or attack When I open a pokestop, the pokestop image and the name of the pokestop does not load.   What's causing this? Is there a way to fix it?


I'm used to javascript where if for exemple I call :   var tab1 = [0,1,2,3,4];   I can call tab1, and it returns my array content as :   [0,1,2,3,4]   I've noticed in java if I declare an integer array like so :    int tab1[] = {0,1,2,3};   If I want to print out my array the only way I tought of was doing a loop to print out   tab1[i];   If I call "tab1" alone, I get something like : "[I@15db9742", but why ? What is that piece of code, and why can't we just call variables as loosely ?

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I listen to audiobooks as I work around the house. Most audiobooks come in many "pieces" ... multiple MP3 files. I need to combine these files into one large file to properly use it. In windows there are several "merge" file but I haven't found anything for Ubuntu. Any suggestions?

As it was suggested  I am using cat command to concatenate several .mp3 files into one .mp3 file. Imagine, I have following .mp3 files in the current folder: 001001.mp3 001002.mp3 001003.mp3 001004.mp3 001005.mp3  or, like this: 096001.mp3 096002.mp3 096003.mp3 096004.mp3  I need to concatenate these .mp3 files in there ascending sequence, i.e.  001001.mp3+001002.mp3+001003.mp3+etc. In order to join these .mp3 files into one I am executing following command in the current folder: cat *.mp3 > final.mp3  I tested the final .mp3 file and it is what I am expected, but I need to be sure that above command picks files in there ascending sequence. Can I be sure that above command always concatenates files in the ascending sequence? Thank you Sir!


A practitioner of physics is known as a physicist. It seems like it would logically follow that a practitioner of metaphysics would be known as a metaphysicist; yet, in every text I've read, a specialist in metaphysics is referred to as a metaphysician. What is the reason for this distinction?    The OED has an entry for metaphysicist, citing the origin as:     Late 19th cent.; earliest use found in The Ladies' Repository. From metaphysic + -ist, after physicist.   However, its use seems rare.

This is a question bugging me for a long long time, especially for a non-native speaker like myself.  We have physicist standing for the people doing physics research, as is linguist, chemist, etc.  But for math, the counterpart of "-ist" suddenly becomes "-ian": I call myself a mathematician.   What bugs even more is that we have physician as well, yet representing a totally different occupation with physicist.  This is not the end, in mathematics, we have so many adjectives derived from the names of mathematicians. Through some wikipedia-fu I learned they are called eponymous adjectives, most of which I used often end with "-ian": Newtonian potential, Cartesian coordinate system, Lorentzian transformation etc. These words often indicate somewhat the relationship of possession.   Yet again, not all possessive relations are represented using "-ian", there are: Maxwell's equations, not Maxwellian equations; Gauss's divergence law, not Gaussian law (even though there are tons of things with Gaussian in it).  What confuses me even more, is that "-ian" after people's name can not only represent "of someone", it also can stand for "a believer or supporter of someone's theory". For example, I call myself a Kantian. There is Leibnizian as well, the supporter of Leibniz's philosophy.  Now my questions are:   Is there a standard rule to decide which one to use, "-ian" or "-ist", when describing an occupation? For eponymous adjectives, my vague impression is that: when something is derived not by that specific person, but rather whose derivation bears the spirit of that someone's theory, then we use "-ian". For example, Newtonian potential is not invented by Newton, yet Maxwell's equations are unified by Maxwell. But another example is that Descartes invented Cartesian coordinate system, but the system is not called  Descartes'  coordinate system...How to tell if we want to invent some new terms? For example, if I proved a new theorem using some idea from Newton, do I call the proof Newton's argument or Newtonian argument? Can "-ian" be used interchangeably in "I am a Kantian" and "This is a Kantian style argument."? or there is some tradition for each word ending with "-ian"? i.e., Some words ending with "-ian" can be only used as noun or adj.


Dog is base object  class dog {     void bark(); (print : I am dog) }   and a lot of child class from dog  class Puppy : Dog {     void bark(); (print : I am a purry) }  class Puddle : Dog {     void bark(); (print : I am a puddle) }   put many kinds of child class into "Vector dogs"  Vector<Dog *> dogs;  dogs.pushBack(puppy); dogs.pushBack(puddle); dogs.pushBack(martiz); dogs.pushBack(yok);  for (auto dog : dogs) {     dog->bark(); }   all class print "I am a dog"  I want to downcast automatically their origin class.  what is the best way for my case?

Someone mentioned it in the IRC as the slicing problem.


I want to prepare my presentation's outline page look like . But, I can't figure out how to use square bullets and the font that slide uses. Can someone please be of my help?

I have an enumerate inside an enumerate:  \documentclass{beamer} \usetheme{Boadilla} \begin{document} \begin{enumerate}    \item Item1    \item Item2    \begin{enumerate}       \item Item2.    \end{enumerate} \end{enumerate} \end{document}   The problem is the bullets of the inner enumerate and the outer enumerate are in same style (a ball in green), does anyone know if there are other styles of bullets available?


Should we use the pronoun "it" with "which"? Which one of the following is correct?      I should sell my car, which I use very little.   Or      I should sell my car, which I use it very little.

I was reading definition/meaning of the word "perverse" in , came across :     showing deliberate determination to behave in a way that most people think is wrong, unacceptable or unreasonable   Shouldn't it be :     showing deliberate determination to behave in a way that most people think it is wrong, unacceptable or unreasonable


I am getting these when I try to install npm...  BTW: I could install other packages so I am not sure if I have held broken packages...  And I did FRESH INSTALL of Ubuntu and still this issues show up... PLEASE help!!!  $ sudo apt install npm The following packages have unmet dependencies:  npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   $ sudo apt install node-gyp The following packages have unmet dependencies:  node-gyp : Depends: nodejs-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.  $ sudo apt install nodejs-dev The following packages have unmet dependencies:  nodejs-dev : Depends: libssl-dev (>= 1.0.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  $ sudo apt install libssl-dev The following packages have unmet dependencies:  libssl-dev : Depends: libssl1.1 (= 1.1.0g-2ubuntu4) but 1.1.0g-2ubuntu4.1 is to be installed               Recommends: libssl-doc but it is not going to be installed E: Unable to correct problems, you have held broken packages.   BTW: ibssl1.1 is installed and it says...   $sudo apt install libssl1.1 ... libssl1.1 is already the newest version (1.1.0g-2ubuntu4.1)

I noticed over at the  website that node is currently at v 0.12.0.  Can someone let me know how to install the latest version of node together with npm (terminal commands please)?


If I use \ref{fig:fig1} command, It only makes hyperlink to word "1"   Or \autoref{fig:fig1} , it write Figure 1, but link exists on only word "1" also.  As an other way, \cref{fig:fig1} write "fig. 1", but link exists on only word "1".  However, I want to make it to, word "fig. 1" is written, and the hyperlink to figure 1 exists on word "fig. 1" not only on "1"  How can I do that?

\documentclass{article} \usepackage{hyperref} \usepackage{lipsum} \usepackage{polski} \begin{document} \begin{figure} . \caption{A figure} \label{fff} \end{figure} \lipsum[1]  Rysunek~\ref{fff} jest zabawny, bo na rysunku~\ref{fff} nic nie ma. \end{document}   In this sample, a clickable link is added to output PDF for 1 and 1. I want to be able to change them to Rysunek 1 and rysunku 1. I want to be able to put any other text + number of the figure into a hyperlink. The word rysunek can't be set in preamble as a default because there is a declension in Polish. The same question goes for tables, listings, equations, pages (pageref) etc (basically any reference).  HTML equivalent of my MWE:    Rysunek <href="fff">1 jest zabawny, bo na rysunku 1 nic nie ma.   I want it to be:    <href="fff">Rysunek 1 jest zabawny, bo na rysunku 1 nic nie ma.


Suppose if we have two fractions $\frac{a}{b}$ and $\frac{c}{d}$ then how are their values related with the fraction $\frac{a+c}{b+d}$ ?  I have observed this inequality: $\frac{a}{b}\le\frac{a+c}{b+d}\le\frac{c}{d}$.   Does this hold true $\forall a,b,c,d \in N$ ? Is there any proof?  I am sorry if this question is too basic, but I want help regarding this.

We were trying to come up with an easy way to generate a rational number in between two existing rational numbers with a fairly low numerator and denominator (the way we were doing this earlier was to find the average of the two rationals, but that results in a denominator of up to $c * d$. Does this inequality hold for all values of $a, b, c, d$?


Is there a way to send a (sms) text to myself when I receive a new Gmail message and the subject contains a certain string?  Is there a feature in Gmail itself, a third party service, or an addon that would help me do this?

In some cases I receive an email that I would like to know about immediately.  Regardless of whether or not my 'phone has email abilities, SMS messages coming to my mobile are much more in your face. Therefore I am looking for a way to have emails matching some filter in Gmail automatically sent to mobile device via SMS.  Does not need to be the entire message, subject line would suffice.    I am fairly certain this is not possible through Gmail, perhaps I could setup a mailserver on one of my Linux boxes to periodically check for said email and push to SMS via @provider.com.  If relevant at all, I am running an iPhone 3G on T-Mobile but also have a BlackBerry at my disposal.    Any suggestions on this?


I am relatively new to D&D.  I've been playing a character in 3/3.5e and have been playing with others in 5e.  The latter have basically been guiding me in how to build a character.   I've read how Hit Dice are tied to a characters class, but I've been unable to find the answer on my own about where to find the a character's Hit Dice when building the character.  I'm looking for more guidance on this matter.

I'm a brand new player and I want to clarify my attack sequence as simple as possible. I'm a level 1 Rogue, so I have 1d8 "hit dice" according to the rules.  How does that affect me if I'm making attacks with my daggers? What would my attacks look like? For a main hand and off hand, as far as I know it's 1d4 + 3  for main and 1d4 for off hand, does this sound correct? Where does the hit die fit into it?  My DEX mod is +3 and proficiency is +2.


Will I lose my configurations or it's simple to do?

What are the different ways I can use to upgrade Ubuntu from one release to another?


Can an open subset of $\mathbf{R}^m$ be homeomorphic to an open subset of $\mathbf{R}^n$ for $1\leq m<n$? That is, if $U\subset\mathbf{R}^m$ and $V\subset\mathbf{R}^n$ are open, can we prove that no homeomorphism $$f\colon U\to V$$ exists? If yes, I'd like to see the proof/have a reference. Motivation: I'm asking because if the answer is no, this would prove the invariance of the dimension of topological manifolds.

I am a little confused on this topic, I have managed to prove that if $n < m$ then this is true, but the proof does not seem to work if $m < n$. Indeed, if $n < m$ and $f :\mathbb{R}^n \to U$ is a homeomorphism  with $U$ being an open subset of $\mathbb{R}^m$, then $\mathbb{R}^n$ will also be homeomorphic to the subset of $\mathbb{R}^m$ consisting of tuples where the last $m-n$ entries are zero, this set $A$ is closed, and so we have an homeomorphism $F: U \to A$, but since $U$ is open so must $A$ be by the invariance of domain theorem, but $A$ can't be both close and open since the only such sets in $\mathbb{R}^m$ is the empty set and $\mathbb{R}^m$ itself, contradiction.  But what if $m < n$? This proof does not seem to work then?


I know how Booster Packs drop, but I am wondering just how often they drop. Is it random? Do they drop when you get achievements in games? Do they drop when you buy a game?

So today I woke up and noticed new item in inventory which was a booster pack containing 3 cards from L4D 2. From what I see on market these booster packs are new (graph only shows up to 19 of June). No matter the game it seems to always contain 3 cards. There are two actions I can do with it: unpack or sell. There is fancy animation when you unpack the booster ;)    I'm not exactly sure why I got it, I have few guesses:   I got new badge, power player - this could give me a booster? Because of new badge I reached level 10 - maybe every couple levels there are gifts? It just dropped randomly for everyone?   Maybe together we could rule out above guesses. It's also interesting from the point of market, to estimate how many boosters are there. With some games they seem to be more valuable than 3 cards separately, but that maybe only initial confusion.


Recall the definition of the Weyl Chambers: A Weyl Chamber is a region of $V \setminus \bigcup_{\alpha \in \Phi} H_{\alpha}$, where $V$ is underlying Euclidean space, and $H_\alpha$ the hyperplane that is perpendicular to $\alpha$ the elements of  $\Phi$ in $V$.   I want to show that:   The Weyl chambers are open, convex and connected.   My attempts:   A single hyperplane $H_\alpha$ separates the space $V$ into two half-spaces: positive half-space $H_\alpha^+=\{x \in V \mid (\alpha,x)>0\}$ and negative half-space $H_\alpha^-=\{x \in V \mid (\alpha,x)<0\}$. It is clear that $V \setminus H_\alpha = H_\alpha^+\cup H^-_\alpha.$ As the result, the Weyl chambers can be regarded as components of  $$V \setminus \bigcup_{\alpha \in \Phi} H_{\alpha}= \bigcap_{\alpha \in \Phi} \left( V \setminus H_{\alpha} \right)= \bigcap_{\alpha \in \Phi} \left( H_\alpha^+\cup H_\alpha^- \right).$$ By the discussion above, a Weyl chamber is simply a $\textbf{intersection}$ of finite half-spaces. It is the case since one may write $$\left( H_\alpha^+\cup H_\alpha^- \right) \cap \left( H_\beta^+\cup H_\beta^- \right) =\left( H_\alpha^+\cap H_\beta^+ \right)  \cup\left( H_\alpha^+\cap H_\beta^- \right)  \cup \left( H_\alpha^-\cap H_\beta^+ \right)  \cup\left( H_\alpha^-\cap H_\beta^- \right).$$ Therefore openness and convexity of the Weyl chambers are straightforward since half-spaces are open and convex, so are their intersections. Moreover, we would replace $V$ by $\Bbb R^{\dim V}$ since they are isomorphic. Now we can prove that the Weyl chamber is connected by showing that every convex set in $\Bbb R^{\dim V}$ is connected. And I'm sure that proof of this statement existed. So am I done?


Parent table : p_id, t_id, name , salary Child table : c_id, t_id , age key : Child.t_id=Parent.t_id  While taking backup i would like to take pull only the matching records from Child table . How can i do it via bash script ?  Thanks in advance .

Background  I would like to provide the subset of my database required to reproduce a select query. My goal is to make my computational workflow reproducible (as in ).  Question  Is there a way that I can incorporate this select statement into a script that dumps the queried data into a new database, such that the database could be installed on a new mysql server, and the statement would work with the new database. The new database should not contain records in addition to those that have been used in the query.  Update: For clarification, I am not interested in a csv dump of query results. What I need to be able to do is to dump the database subset so that it can be installed on another machine, and then the query itself can be reproducible (and modifiable with respect to the same dataset).   Example  For example, my analysis might query a subset of data that requires records from multiple (in this example 3) tables:  select table1.id, table1.level, table2.name, table2.level         from table1 join table2 on table1.id = table2.table1_id         join table3 on table3.id = table2.table3_id        where table3.name in ('fee', 'fi', 'fo', 'fum');


With a whole slew of new TLDs becoming available how will they affect SEO?   While I realize some of these domains are fairly general, such as .ninja others are very specific such as .dental and this leaves me curious as to how this new TLDs will ultimately affect SEO?

New domain names like .photos .gallery .repair etc are being released every month. I tried running a generic search for some things, and I could not find any of those in the results.   Any idea if they will ever integrate them into the search results? Will they be ranked higher than the .com domains? For example, if someone had stackphotos.com and now they got stack.photos - will the second domain be ranked higher than the first?


I am now use Ubuntu 14.04 desktop and I want to secure directory or files using password then please suggest me to best software or else if any other methods than also suggest me...

Is there any simple (IE: right click in Nautilus) way to password protect a particular folder/file in Ubuntu? I've got a few files containing sensitive info and I'd much prefer that if/when I leave my computer alone, they aren't accidentally accessed by someone else.  The secruty does not have to be extremely tight. My only concern is that when family/friends come over, I don't really like the idea of them looking at my bank details, accounts or, you guessed it, porn collection.  A simple, effective way to let me put my machine in the hands of someone else knowing that said machine can not cause me embarresment is the sole reason why I'd like to see this in Ubuntu.


"The Plaza hotel is as near as it gets to the best shopping along New York's famous Fifth Avenue." Whats the meaning of this sentence?and what does as-as means here?

I do know what "as good as it gets" means (in my language, we say "it will not get any better").    However, I do not understand the grammar here: Firstly, does the "get" mean a change of state here? Secondly, why the present tense? It can get better in the future, can't it?    Could I say "as stupid as he gets?" What would that mean?  EDIT: I have found this one: I was expecting there to be more people at this dance party, and I was hoping there would be more nice ladies/gentlemen for me to meet. Is this as good as it WILL get? If this is a permanent concept, why that person use a future tense?


I installed ssh on my laptop running Ubuntu 14.04 LTS  when I open terminal and type "ssh localhost" it seems to work fine, I get the notice displayed and the last log in time. like below  srimanth@srimanth-Inspiron-N5110:~$ ssh localhost ***************************************************************************                             NOTICE TO USERS   This computer system is the private property of its owner, whether individual, corporate or government.  It is for authorized use only. Users (authorized or unauthorized) have no explicit or implicit expectation of privacy.  Any or all uses of this system and all files on this system may be intercepted, monitored, recorded, copied, audited, inspected, and disclosed to your employer, to authorized site, government, and law enforcement personnel, as well as authorized officials of government agencies, both domestic and foreign.  By using this system, the user consents to such interception, monitoring, recording, copying, auditing, inspection, and disclosure at the discretion of such personnel or officials.  Unauthorized or improper use of this system may result in civil and criminal penalties and administrative or disciplinary action, as appropriate. By continuing to use this system you indicate your awareness of and consent to these terms and conditions of use. LOG OFF IMMEDIATELY if you do not agree to the conditions stated in this warning.  **************************************************************************** Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic i686)   * Documentation:  https://help.ubuntu.com/  Last login: Sat Jan 24 21:43:06 2015 from localhost   But when I log in as a root in terminal by typing "sudo su" and then running "ssh localhost" it is asking me for root password and I typed the correct password several times and I get the message saying permission denied.  srimanth@srimanth-Inspiron-N5110:~$ sudo su [sudo] password for srimanth:  xdpyinfo:  unable to open display "localhost:0.0". root@srimanth-Inspiron-N5110/home/srimanth # ssh localhost ***************************************************************************                             NOTICE TO USERS   This computer system is the private property of its owner, whether individual, corporate or government.  It is for authorized use only. Users (authorized or unauthorized) have no explicit or implicit expectation of privacy.  Any or all uses of this system and all files on this system may be intercepted, monitored, recorded, copied, audited, inspected, and disclosed to your employer, to authorized site, government, and law enforcement personnel, as well as authorized officials of government agencies, both domestic and foreign.  By using this system, the user consents to such interception, monitoring, recording, copying, auditing, inspection, and disclosure at the discretion of such personnel or officials.  Unauthorized or improper use of this system may result in civil and criminal penalties and administrative or disciplinary action, as appropriate. By continuing to use this system you indicate your awareness of and consent to these terms and conditions of use. LOG OFF IMMEDIATELY if you do not agree to the conditions stated in this warning.  **************************************************************************** root@localhost's password:  Permission denied, please try again. root@localhost's password:  Permission denied, please try again. root@localhost's password:  Permission denied (publickey,password).   I changed password by "sudo passwd root". even after this I get the same message saying permission denied. I dont know where wether the root password and root@localhost are same and I dont know where I have set up root@localhost password. I would appreciate some help. Thank you.

I just installed Ubuntu 14.04 and LAMP on that. Then, I wanted to configure my server, so tried out  tutorial.  When I give the command:  ssh root@localhost   I get : Permission denied, please try again. I have logged in as root user through the command :  sudo -i   I also tried the same, by logging in through:  sudo -s   I use the same password as that I used to log in as user, but still am getting the same error message.  Could someone help me out here?  PS: I looked into  but didn't seem to work for me.


I using this code to generate two digit but I want to change it and make it generate three digit.  int lottery = (int)(Math.random() * 100);  Thanks

How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum.


When I open windows, there is a some problem in graphics at the boundaries. Please help.

NB: Nvidia has released an official fix; please see ,  and/or .  Upon waking up Ubuntu 16.04 from Suspend, the following graphical glitches appear around all windows, context menus, and similar:      This is currently known to affect the following NVIDIA cards running the proprietary drivers:  NVIDIA GeForce 610M, driver version 375.39, 340.102 NVIDIA GT 630M, driver version 375.39 NVIDIA GTX 650, driver version 375.39 NVIDIA GT 740M, driver version 378.13 NVIDIA GTX 745, unknown driver version NVIDIA GTX 850M, driver version 375.39, 378.13 NVIDIA GT 940M, driver version 375.39 NVIDIA GTX 950M, unknown driver version NVIDIA GTX 960M, driver version 378.13 NVIDIA GTX 970, driver version 375.39 NVIDIA GTX 970M, driver version 375.39 NVIDIA GTX 980 TI, unknown driver version NVIDIA GTX 1060, driver version 375.26, 375.39, 378.09 NVIDIA GTX 1070, driver version 378.09  The above above list has been sourced from reports from other users here on AU,  thread, and  thread. NB: This is be no means an exclusive list. It probably effects nearly all Nvidia cards.  Furthermore, this issue has been replicated on a clean install where the only change was a software update and the installation of the latest NVIDIA drivers.  What is going on, and how can it be resolved?


there is an OR operator | in regular expression (re module), but why there is no AND operator?

Obviously, you can use the | (pipe?) to represent OR, but is there a way to represent AND as well?  Specifically, I'd like to match paragraphs of text that contain ALL of a certain phrase, but in no particular order.


An (unlikely) charged black hole can be described with the mass, angular momentum, charge and the thermal radiation. The reasoning behind the thermal radiation rests on the particle creation outside of the event horizon. What is the reasoning behind the escape of the electric field beyond the event horizon?

The  (or conjecture), suggests that black holes can be entirely described by their mass, angular momentum and charge. All other details of the BH formation are lost.  Is there a simple way of understanding why you would be able to tell the difference between a BH made from protons and one made from electrons, but not between one made from matter rather than anti-matter?  i.e. What is special about charge, and why aren't lepton number, baryon number, strangeness etc, also black hole properties?


I am working on a xamarin application where I have to download a PPT file and opened the downloded ppt file from PowerPoint app (if available on a device)

What is a simple way of downloading a file from a URL path?


I'm running Aero but it's next to impossible to read the task bar icon titles:    How would I change the font color to a different color (i.e black) so it's visible and makes the background and task bar look nice?

Windows 7 (non-Aero) uses a very low contrast white font color on my light blue taskbar. Personalize > Window Color does not offer an option to change the taskbar font.   For Aero Themes the solution seems to be  as two posters have been pointing out. However this does not solve my problem.  Is there any way to change this font in a non-Aero (i.e. Basic) UI Theme?  Regards, tamberg


I would love to block sending the notification email about new automatic update of wordpress (but I need to keep other emails working). Any ideas how to do that? I'm webmaster for more than 40 pages and that makes me crazy...  I've used following code in wp-config.php file, but it seems to be not working.  /** auto updates email **/ apply_filters( 'auto_core_update_send_email', false, $type, $core_update, $result );   Thanks a lot for your answer.

Using the automatic update of my self-hosted WordPress blogs, I configured automatic updates of both the WordPress core as well as WordPress plugins and themes ().  Whenever a core update occurs, I get an email like:     Your site has updated to WordPress 3.9.2      Howdy! Your site at  has been updated automatically   to WordPress 3.9.2.      No further action is needed on your part. For more on version 3.9.2,   see the About WordPress screen:       If you experience any issues or need support, the volunteers in the   WordPress.org support forums may be able to help.         The WordPress Team   I understand that I can  but I would prefer to only disable the above notification.  Therefore my question is:  How to disable update notification emails in WordPress?


If data is continuous (not discrete) how to calculate median and mode?

Inspired by my other , I would like to ask how does one find the mode of a probability density function (PDF) of a function $f(x)$?  Is there any "cook-book" procedure for this? Apparently, this task is much more difficult than it seems at first.


Does anyone know of a way to recover a previous version of an MS Excel (2007) file in Windows Vista Home Premium version, which I've accidentally wrote over?

I worked on a Word document and also saved the file on my flash drive.  When it asked me to save, I pressed the Replace document option by mistake.    I can see the missing work under the Properties menu. Will I be able to recover the lost work?