What is reputation supposed to be? A tool to gauge quality/improve the community, or a competition between rivals?

Note that I am asking what it should be, not how it works, and not how people feel about it.  It’s all too obvious how people feel about it.   sounds like a duplicate, but it didn’t get answered there.  I thought I read somewhere that it was to make it easier to find better questions and better answers.  Yet I see numerous complaints, even some whin(g)ing, about losing points or not getting them, with words like “penalized” or “punished.”  (I’m not talking about the far fewer curious questions trying to understand an anonymous unexplained downvote.)  So which is it?  A tool to gauge quality/improve the community, or a competition between rivals?


Usage of 'it is' or 'is it' in questions

Who can tell me what day is it today? Or Who can tell me what day it is today? Which is correct grammatically?


Running testclass for my controller class

Hey any help how to create a test class for codes  public class MycustomSettingController {      public Org_Info__c orgInfo {get; set;}      public MycustomSettingController(){         orgInfo = new Org_Info__c();     }  public PageReference save(){     try{         upsert orgInfo;         ApexPages.addmessage(new ApexPages.message(ApexPages.severity.CONFIRM,'Created successfully'));     }     catch(System.DMLException e){           ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'Invalid Credentials  '));         return null;     }          orgInfo = null;         ScheduledOrgInfoFetch.ScheduledOrgInfoFetch();         return null;   }   this is my test class  @isTest public class Test {  @isTest public static void testVFcontroller(){           Org_Info__c orgI = new Org_Info__c();         orgI.Client_ID__c = 'clID';         orgI.Client_Secret__c = 'sec';         orgI.Username__c = 'us';         orgI.Password__c = 'pw';         orgI.Sandbox__c = false;          System.Test.startTest();          MycustomSettingController controllerRes = new MycustomSettingController();         controllerRes.orgInfo = orgI;         controllerRes.save();           //try{                  //insert to;             //}             //catch(System.DMLException e){              //System.assert(e.getMessage().contains('Insertion failed'));            //}         System.assert(ApexPages.hasMessages(ApexPages.SEVERITY.ERROR));         System.Test.stopTest();          Org_Info__c oi = Org_Info__c.getOrgDefaults();         System.assertEquals('us', oi.Username__c);      } }


$\int_{0}^{\infty} \frac{1}{1 + x^r}\:dx = \frac{1}{r}\Gamma\left( \frac{r - 1}{r}\right)\Gamma\left( \frac{1}{r}\right)$

As part of a  I posted, I decided to try and generalise for a power of $2$ to any $r \in \mathbb{R}$. As part of the method I took, I had to solve the following integral:  \begin{equation}  I = \int_{0}^{\infty} \frac{1}{1 + x^r}\:dx \end{equation}  I believe what I've done is correct, but I'm concerned that I may missed something (in particular whether it holds for all $r \neq 0$). So, here I have two questions (1) Is what I've done correct? and (2) What other methods can be employed that doesn't rely on complex analysis?  Here is the method I took:  First make the substitution $u = x^{\frac{1}{r}}$ to arrive at  \begin{equation}  I = \frac{1}{n} \int_{0}^{\infty} \frac{1}{1 + u} \cdot u^{1 -\frac{1}{r}}\:du \end{equation}  We now substitute $t = \frac{1}{1 + u}$ to arrive at:  \begin{align}  I &= \frac{1}{r} \int_{1}^{0} t \cdot \left(\frac{1 - t}{t}\right)^{\frac{1}{r} -1}\frac{1}{t^2}\:dt = \frac{1}{r}\int_{0}^{1}t^{-\frac{1}{r}}\left(1 - t\right)^{ \frac{1}{r} - 1}\:dt \\ &= \frac{1}{r}B\left(1 - \frac{1}{n}, 1 + \frac{1}{r} - 1\right) = \frac{1}{r} B\left(\frac{r - 1}{r},\frac{1}{r}\right) \\ &= \frac{1}{r} B\left(\frac{r - 1}{r},\frac{1}{r}\right) \end{align}  Wheer $B(a,b)$ is the  function. Using the  we arrive at:  \begin{equation} I = \frac{1}{r} \frac{\Gamma\left( \frac{r - 1}{r}\right)\Gamma\left( \frac{1}{r}\right)}{\Gamma\left(\frac{r - 1}{r} + \frac{1}{r}\right)} = \frac{1}{r}\Gamma\left( \frac{r - 1}{r}\right)\Gamma\left( \frac{1}{r}\right) \end{equation}  And so, we arrive at:  \begin{equation}  I = \int_{0}^{\infty} \frac{1}{1 + x^r}\:dx = \frac{1}{r}\Gamma\left( \frac{r - 1}{r}\right)\Gamma\left( \frac{1}{r}\right) \end{equation}  for $r > 1$  As per 's comment and others, we can employ  to position this result for $\frac{1}{r} \not \in \mathbb{Z}$ Here, as $r \in \mathbb{R}, r > 1 \rightarrow \frac{1}{r} \not \in \mathbb{Z}$ and so our formula holds.  \begin{equation}  I = \int_{0}^{\infty} \frac{1}{1 + x^r}\:dx = \frac{1}{r}\Gamma\left( \frac{r - 1}{r}\right)\Gamma\left( \frac{1}{r}\right) = \frac{\pi}{r\sin\left(\frac{\pi}{r} \right)} \end{equation}  Thank you also to , , and 's for their comments and corrections/clarifications.


Is it possible to implement an equivalent syntax of (*x {\f(x)}) but the ordinate is specified first?

PSTricks provides us with a useful syntax (*x {\f(x)}) to specify a point with abscissa x and ordinate \f(x). For example, let \def\f(#1){#1+.5}, a point (1,1.5) can be written as (*1 {\f(x)}).  I want to have the opposite way in which the ordinate is given first and the abscissa is calculated by the given expression \g(y). For example, let \def\g(#1){#1-.5}, I want to have a point (1,1.5) but it has to be represented in the form (**{\g(y)} 1.5).  Is it possible to implement it? I will give 4 bounties of 500 each if you can implement it.


How do I get back my suspend option in Gnome Shell?

With the new version of Gnome Shell in Ubuntu 12.10 they turned  around by just displaying the shutdown option which becomes suspend on pressing Alt.  How do I get back my beloved suspend option?


How to report back the EXIT code of a multi program script?

On a linux shell I have essentially the following script  #!/usr/bin/env bash set -e  python script.py arg1 & python script.py arg2 & python script.py arg3 & wait echo $?   in which some python programs can run in parallel, and I wait until the completion of the programs.   However, when I have only one failing programm for testing purposes which fails, the reported exit status is 0 (SUCCESS). I suspect that is the exit status of the wait command. That is not what I want. I want to report an error (i.e. exit status unequal zero), if ANY of the programs did fail.  Is there a simple way to achieve this?


I was looking at this  and i can`t understand this part:  QA = dA G = 5 (5,1) = (9,16)  I saw that algorithm used for this was Double-and-add algorithm but i didn't get it. Can anyone explain how can i do this calculation on papir?


If I travel close to the speed of light and come back, why is everyone else dead, and not me?

Consider the following scenario:   I get in a spaceship, and travel really close to the speed of light for a while, and then come back. A lot of time has passed on the Earth, but since I was traveling so fast, I only experienced a few years passing. So, my friends on Earth are dead, whereas I'm only a few years older.   But what I'm having trouble wrapping my head around, is why is it them that's dead, and not me?  After all, given what I understand about relativity, it's just as fair to say that my spaceship stayed still, and it was actually the Earth that traveled really fast and then came back to my ship.  In that scenario though, the Earth being the fast-moving ship, and my ship being the stationary body, wouldn't it be that I am dead, and everyone on the Earth is just a few years older?  If there really is no preferred frame of reference, then why does the ship-traveler live while the people on the Earth die?


how do I transform "that can be used" into active voice?

Consider the following sentence:     The SuperAPI is the API that can be used to configure a Higher-Order   model.   When this sentence exists in a Microsoft® Office 365 Word document, the grammar checking functionality flags the fragment, "that can be used," as passive.  How would I rewrite this as an active-voice sentence?  However,  does not complain about this.  I see plenty of examples using the sentence fragment, "that can be used," in describing the proper grammatical formation of active-voice phrases!  (For example, see  in which exists, "Semicolons are one type of punctuation that can be used to link two independent clauses together."  I believe ignoring the warning doesn't diminish the strength of the containing document.  If it does, what rule guides me in rewriting this into an active-voice version?


Anyway to have testfor a count of 0? 1.12.2

Is there anyway to do something like: testfor @p[score_snowball=0] {Inventory:[{id:"minecraft:snowball",Count:0b}]}" That works besides inverting: testfor @p[score_snowball=0] {Inventory:[{id:"minecraft:snowball",Count:1b}]} ? I wanna give player a snowball when they accidentally thrown one into a wall. Because when they throw it into a wall when they are too close to it, it doesn't get found by: testfor @e[type=snowball] and therefore doesn't give a snowball when it breaks. I also want the player to only have 1 snowball, everytime the snowball objective = 0. Setup:  Repeating + Always active cmd block with: testfor @p[score_snowball=0] and comp going to: give @p minecraft:snowball  Another Repeating + Always active cmd block with: testfor @e[type=snowball] and two comps, one going to: scoreboard players add @p snowball 1 and another going to cmd block that's inverted: scoreboard players set @p snowball 0


Design a 3-to-8 Decoder Using Only Three 2-to-4 Decoders

Using only three 2-to-4 decoders with enable and no other additional gates, implement a 3-to-8 decoder with enable. The inputs of the resulting 3-to-8 decoder should be labeled X[2..0] for the code input and E for the enable input. the outputs should be labeled Y[7..0].  Here's my current solution. My question is, is there a better/cleaner way to do this?


Why Volley throw a java.lang.NullPointerException

I use the code below to get JSON data (img, name), and everything works fine, but I get a lot of report in Google Console under ANRs & Crashes :   java.lang.NullPointerException:    at maa.app.Fragments.fragmentAnime$3.onSuccess (fragmentAnime.java:75)   at maa.app.Fragments.fragmentAnime$6.a (fragmentAnime.java:52)   at maa.app.Fragments.fragmentAnime$6.onResponse (fragmentAnime.java:2)   at com.android.volley.request.StringRequest.c (StringRequest.java:4)   at com.android.volley.request.StringRequest.a (StringRequest.java:2)   at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run (ExecutorDelivery.java:30)   at android.os.Handler.handleCallback (Handler.java:789)   at android.os.Handler.dispatchMessage (Handler.java:98)   at android.os.Looper.loop (Looper.java:164)   at android.app.ActivityThread.main (ActivityThread.java:6942)   at java.lang.reflect.Method.invoke (Method.java)   at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)   myApplication :  public class MApplication extends MultiDexApplication {     public static RequestQueue requestQueue;     @Override     public void onCreate() {         super.onCreate();         requestQueue = Volley.newRequestQueue(getApplicationContext());     }   Fragment :   StringRequest stringRequest = new StringRequest(Request.Method.GET,                     URL_DATA,                     s -> {                         List<Post> listItems = new ArrayList<>();                         try {                             JSONObject jsonObject = new JSONObject(s);                             JSONArray array = jsonObject.getJSONArray("bgs");                             for (int i = 0; i < array.length(); i++) {                                 JSONObject o = array.getJSONObject(i);                                 Post item = new Post(                                         o.optString("img"),                                         o.optString("name")                                 );                                 listItems.add(item);                             }                             callback.onSuccess(listItems);                         } catch (JSONException e) {                             slowInternetConnection();                         }                     },                     callback::onError) {             };             if (getActivity() != null && isAdded()) {                 stringRequest.setShouldCache(false);                 requestQueue.getCache().clear();                 requestQueue.add(stringRequest);             }   can anyone help me to get resolve this issue?


I need help with this, here is what I have.

Rocky has 31 days to prepare for his Discrete Math final. He has decided to do at least one tough problem each day, but no more than 50 problems total. Show there must be a sequence of consecutive days in which he does exactly 11 problems.


I have Password Safe installed and running OK on my 20.04 LTS notebook.  I got an email advising of an updated version so I downloaded passwordsafe-ubuntu18-1.10-amd64.deb  I found and followed advice from this site to install the update as follows:  chris@CandKAcer:~$ sudo dpkg -i passwordsafe-ubuntu18-1.10-amd64.deb [sudo] password for chris:  dpkg: error: cannot access archive 'passwordsafe-ubuntu18-1.10-amd64.deb': No such file or directory chris@CandKAcer:~$    The file passwordsafe-ubuntu18-1.10-amd64.deb is in my downloads folder.  What did I do wrong?  I also tried to Install it by extracting it in Archive Manager, but no go. In an earlier version of Ubuntu the Archive Manager had an Install button which worked fine, but the Extract button in Archive Manager 3.36.1 doesn't do the same!  I know this should be easy, but I'm new to Ubuntu and I'm struggling with this.  Precise step by step instructions would be greatly appreciated.


Open subsets of the connected sum $M_1\# M_2$

I'm trying to solve a problem in  (Problem 4-19), but seems that i need helps now. Here's the problem :      Let $M_1 \# M_2$ be a connected sum of $n$-manifolds $M_1$ and $M_2$. Show that there are open subsets $U_1,U_2  \subseteq M_1 \# M_2$ and points $p_i  \in M_i$ such that $U_i \approx M_i \smallsetminus \{p_i\}$, $U_1 \cap U_2 \approx \mathbb{R}^n \smallsetminus \{0\}$, and $U_1\cup U_2 =  M_1 \# M_2$.   The definition of the connected sum of $M_1\# M_2$ is  of $M_1' \cup_f M_2'$ under a homeomorphism $f : \partial M_1' \to \partial M_2'$, where $M_i' = M_i \smallsetminus B_i$ and $B_i \subseteq M_i$ is a regular coordinate ball of $M_i$. Regular coordinate ball $B_i \subseteq M_i$ is a coordinate ball with homeomorphism $\varphi : B' \to \varphi(B')=B_{r'}(0)$, where $B' \supseteq B$, such that $\varphi(B) = B_r(0)$ and $\varphi(\bar{B}) =  \bar{B}_r(0)$ for $r'>r>0$.   If we denote the embeddings as $e_i : M_i' \to M_1 \# M_2$, and the larger open subsets contain the coordinate balls $B_i$ as $B_i'$,  i'm guessing that the desired open subsets are $U_1 = e_1(M_1')\cup e_2(B_2' \smallsetminus B_2)$ and $U_2 = e_1(B_1'\smallsetminus B_1) \cup e_2(M_2')$. But i having trouble to show that $U_i \approx M_i\smallsetminus \{p_i\}$. Actually  i managed to show that (with $p_i$ is chosen as the "center" of coordinate ball $B_i$), but my solution is quite long. So i'm not sure it is correct (i'll add my solution here if needed).      If these choices of $U_1,U_2$ is correct i really appreciate if somebody tell me some hint to show that $U_i \approx M_i \smallsetminus \{p_i\}$. If it is not then i would like to know what the correct choices look like. Thank you.     $\textbf{Edit : }$I think i already got what i want . It has a nice answer.


What is that twiggy strand in hair of some anime characters called?

I remember there's a Japanese word for it, but I forgot.  Here's an image of Hachiman. That "twig" on his head.


solves the same problem I have, but in the example the data comes from filecontents and the solution involves changing the data, in my case the data comes from a CSV which I cannot change, is there a way to achieve the same result? Thanks in advance.


Hi everyone I know that this subject has been posted many times but none of them work for me . So I need to store some arabic data in particular table but when I send it and explore it within phpmyadmin I found something like this &#1575 i try to add the meta charset=utf-8 in head and add accept-charset='utf-8' in the form  but still no difference  here's the code that i use it to connect to my database     $conect=new PDO("mysql:host=$host;dbname=$datab;charset=utf8;connection collation: utf8_general_ci",$user,$pass); $conect->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql="INSERT INTO botola_team(name,nameabbreviation,team_url,year_of_ta2sis,President,coach,name_field,pic_of_team,logo,pic_field) VALUES ('$name','$nameabrev','$teamurl','$ta2sis','$president','$coach','$namefield','$teampic','$logo','$teampic')"; $conect->exec($sql);


Tense when saying "This is the first time" you've been somewhere

I'm very confused about tenses.  I have examples in two different situations here. Situation 1: I went to New York two months ago and was talking to someone about it.  A. This is the first time I've been to New York. B. That was the first time I'd been to New York.  Which is correct in a daily conversation?  Situation 2: I'm going to New York next month and talking to someone.  A. This will be the first time I've been to New York. B. This is the first time I've been to New York. C. This will be the first time I go to New York.  Which sentence is appropriate?  According to a grammar article I've read before, I think it says that I can use this sentence in both cases:  This is the first time I've been to New York.  But I'm not sure if this is really so. So I'd like to know which tense I should use in each case. Could you explain it?


How different is D&D since it first came out?

I have never played Dungeons and Dragons, but I have participated in several other RPGs, and my Dad recently posed interest in playing since he was an avid D&D player when he was younger.  I myself have only played IKRPG mainly, so I'm not too familiar with the universe, however I would like to possibly set up a game for my Dad and a couple of friends. How drastically (if at all) has the game changed over the years?  I'm not looking for what is different, I'm asking to what degree has it changed. Is it recognisable to players who haven't seen the changes for 30 years? Or is it still relatively similar?   makes no sense to me as (having stated above) I have no experience with the game.


Is there a way to have a custom death message in vanilla Minecraft?

Basically, I want a custom death message by using tellraw, but how would I make it detect someone has died? Do I use a scoreboard system, do I use testfor, what do I use to make it detect someone died?


Complex integration with a $\mathcal{C}^1$ function $f$

This is the problem from the book Notes on Complex Function Theory, Sarason.      Let the complex valued function $f$ defined and $\mathcal{C}^1$ in the disk $|z-z_0|<R.$ For $0<r<R$ let $C_r$ denote the circle $|z-z_0|=r$, with the counterclockwise orientation. Prove that $$ \lim_{r\to 0}\frac{1}{r^2}\int_{C_r}{f(z)}\ dz=2\pi i\ \frac{\partial f}{\partial \bar{z}}(z_0) .$$   I found the answer to my question  But I wanted to do this by basic theory of complex integration. Any help will be appreciated.   Thanks.


Which are the main disciplines that UX comes from?

User Experience is a practice which has historic roots in multiple other disciplines, uniting and combining them to provide something new. What are the building blocks of UX and what role do they contribute to the whole?


Focal length of an ellipse and related results

There are 2 questions(part of same question but I divided it into two):    Q1. Prove that the length of the focal chord of the ellipse $\frac {x^2}{a^2}+\frac {y^2}{b^2}=1$ which is inclined to the major axis at an angle $\theta$ is $$\frac {2ab^2}{a^2\sin^2\theta+b^2\cos^2\theta}$$ I tried to solve this using the parametric form of a line, i.e., $(x,y)=(ae+r\cos\theta,r\sin\theta)$, plugging this into the given equation to find $r_1-r_2$ which is giving a different solution.    Q2. If $PSQ$ and $PS'R$ are two chords of an ellipse through its two focii S and S', then prove that $$\frac {PS}{SQ}+\frac {PS'}{S'R}=2\left(\frac {1+e^2}{1-e^2}\right)$$ Here I fixed $P \equiv (a\cos\theta,b\sin\theta)$ and found out the parametric angles of $Q$ and $R$ using the result $$\tan\theta_1/2*\tan\theta_2/2=\left(\frac {e-1}{e+1}\right)^{\pm1}$$, $+$ when chord passes through $S$ and $-$ when chord passes through $S'$. But it gives a very ugly expression. So how do I do it  in an easy way? Hints are welcome.


For any numbers $a, b,$ and $c,$ $a + b = a + c$ if and only if $b = c$

I was reading about the field of real numbers $\mathbb{R},$ and a basic question arose in my mind.  How one should prove that, for any numbers $a, b,$ and $c,$ $a + b = a + c$ if and only if $b = c?$  In order to prove this statement, we have to prove two things. I will start with the part usually known as the cancellation rule.  $\implies.$ Let $a, b,$ and $c$ be any numbers. Suppose that $a + b = a + c.$ Since $a$ is any number, we know from the filed axioms, that exists a number $-a$ such that $a + (-a) = (-a) + a= 0.$ Hence, adding $(-a)$ to both sides, we have $(-a) + (a + b) = (-a) + (a + c).$ By the Associative Law, we deduce that $((-a) + a) + b = ((-a) + a) + c.$ Since $(-a) + a = 0,$ we get $0 + b = 0 + c.$ Since $0$ is the additive identity, it follows that $b = c.$ $\square$  This part is really straightforward. Although, I have no idea what to do about the $\Longleftarrow$ part. I think of this last part as the statement that $+$ is well-defined in $\mathbb{R},$ which means that for all $x, y, z, w \in \mathbb{R},$ if $x = y$ and $z = w,$ then  $x + z = y + w,$ but I’m not sure if these two things are related to each other. Another thing that “bores” me is the fact that I use this fact to prove the $\implies$ part when I added $(-a)$ to both sides and stated that they still equal. In short: How can I prove that if $b = c,$ then $a + b = a + c?$ Is this related to the fact that $+$ is well-defined? Do we assume that $+$ is well-defined (i.e., is it an axiom), or can it be proved?


Software Updater shows "Failed to download repository information. Check your internet connection" [18.04 LTS]

I know this question has been brought up ad nauseam, but I want to be sure I make the right changes to fix it. I'm pretty sure I need to change some of the settings in Software & Updates, but which ones? Or is there something else I need to resolve? Here's the terminal message that displays when I run sudo apt-get update along with the Software & Updates menu.    edit: included text.  nicholas@klaus:~$ sudo apt-get update [sudo] password for nicholas:  Hit:1 http://repo.steampowered.com/steam precise InRelease Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease                      Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease               Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease               Hit:6 http://dl.google.com/linux/chrome/deb stable Release                      Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]    Hit:8 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                 Ign:9 http://ppa.launchpad.net/mjblenner/ppa-hal/ubuntu bionic InRelease        Hit:10 http://repository.spotify.com stable InRelease                           Err:12 http://ppa.launchpad.net/mjblenner/ppa-hal/ubuntu bionic Release           404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done                       E: The repository 'http://ppa.launchpad.net/mjblenner/ppa-hal/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


What does this mean? I am trying to upgrade my version 12.04 Ubuntu

The following packages were automatically installed and are no longer required:   mingw-w64 sbsigntool libnet-ssleay-perl gir1.2-timezonemap-1.0 linux-image-3.5.0-22-generic realpath efibootmgr libunistring0 diffstat   libdmraid1.0.0.rc16 libdebconfclient0 binutils-mingw-w64-i686 libxml-parser-perl liburi-perl libhtml-parser-perl kpartx-boot libopts25   gir1.2-json-1.0 libhttp-daemon-perl linux-headers-3.5.0-22-generic autogen libfont-afm-perl libhttp-negotiate-perl libfile-listing-perl   libhtml-form-perl gcc-mingw-w64 user-setup gcc-mingw-w64-i686 kpartx libhtml-tree-perl libencode-locale-perl rdate libhttp-date-perl   libmailtools-perl liblwp-protocol-https-perl libhttp-cookies-perl libhttp-message-perl binutils-mingw-w64-x86-64 libdebian-installer4   libopts25-dev libnet-http-perl btrfs-tools apt-clone localechooser-data linux-headers-3.5.0-22 gcc-mingw-w64-base libhtml-format-perl   libgettextpo0 libsocket6-perl gcc-mingw-w64-x86-64 libhtml-tagset-perl archdetect-deb dmraid python-pyicu libkms1 libwww-perl mingw-w64-dev   libio-socket-ssl-perl libwww-robotrules-perl liblwp-mediatypes-perl gir1.2-xkl-1.0 libio-socket-inet6-perl Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. dianne@dianne-Inspiron-3437:~$ sudo do-release-upgrade Checking for a new Ubuntu release No new release found


Is there a fairly easy way to convert a datetime object into an RFC 1123 (HTTP/1.1) date/time string, i.e. a string with the format  Sun, 06 Nov 1994 08:49:37 GMT   Using strftime does not work, since the strings are locale-dependant. Do I have to build the string by hand?


We are able to add/remove elements to List using add()/remove() methods without creating another list which looks similar to StringBuilder append. Because of this I think List is mutable.   Can anyone confirm my understanding is correct?   If it is wrong please explain the code below:  List<String> strList = new ArrayList<String>(); strList.add("abc"); strList.add("xyz");


I have some pseudo-code where I want to highlight some sections in a different color (this is why: in an assignment at university, I have some code given and have to adapt it. I want to highlight what I changed for enhanced readability).  \documentclass[english, a4paper, 11pt]{article} \usepackage{xcolor} \usepackage{listings} lstset(language=C)  //best for pseudo-code IMHO  \begin{document} \begin{lstlisting}[frame=single]    public class A<T> extends B<T> {       \textcolor{red} {Stack stack};  //how can I achive this? Nothing should change, except for the textcolor. This code just prints the \textcolor command though.         //ctor        public A() {};    } \end{lstlisting} \end{document}


Accidentally killed terminal window before package update during upgrade

I accidentally interrupted the upgrade process and I am wondering how I could restore it.  I was upgrading from 16.04LTS to 18.04LTS using the graphical tool popped with /usr/lib/ubuntu-release-upgrader/check-new-release-gtk as suggested in .  I accidentally closed the terminal window and therefore killed the upgrade process at the moment where I got a message like "The packages will have to get updated and this would require many hours" or something similar (I don't exactly remember the message).  Running lsb_release shows that ubuntu has been upgraded, but obviously there were unfinished steps. Please note that the PC is working as usual.  :~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.1 LTS Release:    18.04 Codename:   bionic  :~$ sudo apt update && sudo apt upgrade Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:2 http://gr.archive.ubuntu.com/ubuntu bionic InRelease                Hit:3 http://gr.archive.ubuntu.com/ubuntu bionic-updates InRelease        Hit:4 http://archive.canonical.com/ubuntu bionic InRelease               Hit:5 http://gr.archive.ubuntu.com/ubuntu bionic-backports InRelease Reading package lists... Done                       Building dependency tree        Reading state information... Done 1 package can be upgraded. Run 'apt list --upgradable' to see it. Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages have been kept back:   php-curl 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.   Is there a way that I could manually continue the process and update the respective packages? Are there other steps to be completed?


Can we convert infinite sums into infinite products?

Is there any method to convert an infinite sum (of any type) into an infinite product? That is, a method such that  the equality   $  \sum_{n = 0}^{\infty}a_n = \prod_{n = 0}^{\infty} f(a_n)$   holds.


measuring bandwidth per-user used by ssh server-side connections on linux

I'd like to be able to measure the bandwidth used by each user by their inbound ssh connections, into a linux box.  I measure most other traffic using iptables and user-matching, but inbound ssh sockets seem to be owned by root, so I can't use that approach here.


I have read several line-breaking inside align environment but I fail to deal with the bracket {}. LaTex seems not recognize \left\{ and \right\} belong to the same equation when I break the line.    \begin{align*}     s_{percent-log} (y,y') &= \frac{1}{3} \left\{ \frac{\min[\log(0+1),\log(1+1)]}{\max[\log(0+1),\log(1+1)]} \\     & \qquad + \frac{\min[\log(5+1),\log(4+1)]}{\max[\log(5+1),\log(4+1)]} \\     & \qquad + \frac{\min[\log(2+1),\log(2+1)]}{\max[\log(2+1),\log(2+1)]} \right\} \\     &\approx 0.46387 \\     d_{percent-log} (y,y') &\approx 0.53613  \end{align*}


Why can't I see hats on my phone using the app

I am loving the winter bash and I love that there are things to do on your phone to get a hat. But then you can't see them on the phone. You can't even see a list of earned hats. I am using the android app.


Normal curvature along a line of curvature

I have come across the following exercise (the context is curves and surfaces in $\mathbb{R}^3$ and the Gauss map):     If $C=\alpha(I)$ is a line of curvature, and $k$ is its curvature at $p$, then   $$ k = \mid k_n k_N \mid $$   where $k_n$ is the normal curvature at $p$ along the tagent line of $C$, and $k_N$ is the curvature of the spherical image $N(C) \subset S^2$ at $N(p)$.   I am not sure I understand the question, though... because it seems to me that if $C$ is a line of curvature, the normal curvature should be identical to the curvature of $C$ itself, hence  $k = k_n$. Am I mistaken?


Ubuntu installation which version to load on old laptop

I have a very old laptop that runs windows XP (I think it originally came with vista?)  It has an intel centrino 2 vPro duo core p8400 @2.26 GHz processor with 2 GB RAM  I am trying to load the 18.04 LTS version of Ubuntu which needs a 64bit processor.  Obviously I'm having trouble and I’m not sure if it is because of the processor or not?  I was under the impression that duo core processors were 64 bit. Can anyone confirm or deny this and how would I find out this information?


I have using an iPhone 5 upgraded to iOS 7. Is it possible to turn off vibrations for alarms? I am currently using a song as alarm sound, the vibration is annoying.


Why am I advised not to eat immediately before exercise?

It is  that, after eating, you should wait 2-3 hours before exercising. It isn't recommended to eat and right afterwards to exercise (or swim).  But I haven't really understood why that is. Does this bad behavior affect me immediately (if I'm in robust health) or does it affect me in the long term? Αnd how?


Is it possible to disable the cursor shadow in Ubuntu 13.10? The shadow is ruining my cursor theme's glow effect.


Can we insert equations as images in IEEE format? So instead the writing the equation in latex I will be inserting the image.


Cannot install Ubuntu 16.04 LTS on Asus ROG Laptop

I have a Asus ROG G551VW laptop and I'm trying to install Ubuntu 16.04 on my laptop, but when i try to load the installer, my laptop just freezes and its fan starts working for no reason. I have tried to install Ubuntu 14.04 on my laptop and the installation went smoothly. What should I do if I want to install Ubuntu 16.04 on my laptop?  Any help would be greatly appreciated.


Eclipse import shortcut does not work as expected

I was writing the Junit code below in eclipse kepler. I pressed the shortcut ctrl+shift+o to automatically import all the packages that are needed by this code. The shortcut only imported Test and gave me an error in assertEquals - The method assertEquals(int, int) is undefined for the type FootballTeamTest  import org.junit.Test;  public class FootballTeamTest {      @Test     public void constructorShouldSetGamesWon() {         FootballTeam team = new FootballTeam(3);         assertEquals(3, team.getGamesWon());      }  }   This was fixed by adding an import import static org.junit.Assert.*;. Why does eclipse not do this import automatically ?   Related post -  Go to the answer for Junit4 in that question. Amazing.


log transformation vs square root transformation, Can I do both?

I am analyzing ARIMA or multiple regression model. $Y= X_1 + X_2 + X_3 + X_4$  Can I have the log on Y and square root on X1 and square root on X2, at the same time?  That is,   $\log Y = \sqrt{X_1} + \sqrt{X_2} + X_3 + X_4$  If yes, how can I interpret the results?


I was watching a youtube tutorial that looked at logistic regression. To illustrate this they showed a graph that plotted p on the y-axis, where they used the inverse of logit(p).  Can anyone help me understand the algebra behind how they got from logit to inverse logit as below? Finding it quite frustrating to just see a black box output like this!


Loop cut and slide didn't complete the loop

Not only that, the object is no longer manifold, and I haven't been able to fix it.


Output more than one list from a python function using list comprehension

I would like to build a function that gives me two lists as an output:  def times_10(i):     out = i * 10     return out, i  outpt,inpt = [times_10(i) for i in range(1,8)] #doesn't work   I have one way of doing it, but I have a feeling there must be something simpler:  a = [times_10(i) for i in range(1,8)] outpt,inpt = list(map(list, zip(*a))) # this works   Expected output:  >>> outpt [10, 20, 30, 40, 50, 60, 70] >>> inpt [1, 2, 3, 4, 5, 6, 7]


How to align an object by one or two edges to xyz axes?

How can I align object edge to one of the axis? For example, if I have a cube rotated 'freely' in the scene with applied rotation -- how can I realign it along x y and z axes again?  using physics engine comes to mind, but it also sounds like an overkill


Completion and algebraic closure commutable

The following corollary of Krasner´s Lemma says:  Let k be a global field and p a prime of k. Then $(\overline{k})_p=\overline{k_p}$. Im wondering if $(\overline{k})_p$ means the completion of $\overline{k}$ because i know that $\overline{\mathbb{Q}_p}$ is not complete. So i think it means  $\bigcup L_{ip}$ with the $L_{ip}$ ranging over all finite extensions of k. In particular $\bigcup L_{ip}$ doesn´t need to be complete. Am i correct with that? Thx for any help given!  You can find the corollary for example in Neukirch´s cohomology of number fields, 8.1.5.


I am new to bash. I will kindly ask for help from someone who can help me with this problem. I have created a script that makes a backup. Next step would be to make this script run at some certain timestamp in the future. I know I can do this with crontab. My problem is that the script requires some output from the user in order to run properly. (As you can see it asks for the Path) What I need to do is to make the script to take an argument (the path) so It can be runned like this: backup.sh -path=/tmp/myfoldertobackup From what I just read, it seems I have to use getopts but still this is very confusing to me.  It looks like I also need to set the case when no argument is entered. Please help!  Any advice would be greatly appreciated! Thank you!!!  #!/bin/bash #Simple backup script for onee.newdomain.tk echo - e "Please tell me the path of directory you'd like to backup?" read directory cd $directory mkdir backup #mkdir "backup_$(date +'%Y_%m_%d__%H_%M_%S')" SOURCEDIR=$directory tar -czvf public.tgz public_html mysqldump -u onee -pjFztm3s72anA oneex > onee.mysqlbackup.sql mv public.tgz $directory/backup/ mv onee.mysqlbackup.sql $directory/backup/ mv backup backup.`date +"%d-%m-%Y"` echo "===============================" echo "Done!" echo "==============================="


Suppose $S_1 =\{ u_1 , u_2 \}$ and $S_2 = \{ v_1 , v_2 \}$ are each independent sets of vectors in an n-dimensional vector space V.

Let us assume that every vector in $S_2$ is a linear combination of vectors in $S_1$.  Question: Does that mean that $S_1$ and $S_2$ are bases for the same subspace of $V$?  I know that the answer to this question is yes, subspaces spanned by both $S_1$ and $S_2$ are the same. Let's call them $W_1$ and $W_2$ respectively. How do we prove $W_1=W_2$? Equal subspaces when regarded as sets, must have the same elemnts. How can we show that EVERY vector in one subspace is also in the other subspace?


Which episodes of the Naruto anime are core plot and which are filler?

For both the original Naruto series and Shippuuden, which episodes should I watch if I want to avoid the filler? I'm only interested in core plot and character developments.  To make this question a bit more concrete: Which episodes are directly based off the manga, and which were produced with unique content for only the anime? At what points did the anime "catch up" to the manga and require non-manga-related content to continue airing episodes while the manga produced new content?


Run vcredist_x86.exe missing MSVCR120.dll

Ok, so I was getting an error trying to add a file to a game for full screen windowed mode, and it gave me the error "program cant start missing MSVCR120.dll is missing". Alright, no problem, so everything I searched for said install vcredist_x86.exe, but when I try to run it I get the same error. I cannot figure out or find anywhere how to fix it. I am running 64 bit windows 7 so it is the right file type.


I understand perfectly well how to apply l'Hopital's rule, and how to prove it, but I've never grokked the theorem. Why is it that we should expect that $$\lim_{x\to a}\frac{f(x)}{g(x)}=\lim_{x \to a}\frac{f'(x)}{g'(x)},$$ but only when specific criteria are met, like $f(x)$ and $g(x)$ approaching $0$ as $x \to a$? I've never found the proof of the theorem to shed much light on this (thought this might be because I don't have much of an intuitive sense as to why the Cauchy Mean Value Theorem holds, either). I've always been mystified as to how l'Hopital (Bernoulli?) ever discovered this theorem, beyond accidentally discovering that it holds in some cases and then generalizing it to a theorem. So, if you have any ideas as to where the theorem came from, and why it makes intuitive sense, I'd appreciate it if you shared them!


Never gotten a solid answer on this. What do the Pentagons mean on a Pokémon's info card? Does it have anything to do with Kalos, and it's pentagon shape?


How do keep auto-correct from making one particular change

An email address I frequently type into web forms is srs@.... Yesterday auto-correct started changing the srs to sis as soon as I typed @. While keeping the rest of auto-correct working I would really like it to leave srs alone.  In my searching for an answer I found  But I'm not making a typo.  I found a variety of answers for both OS X and iOS, but none seemed to the point. The worst was decrypting a substitution file maintained by Safari to edit?!


Show that for any real constants a and b, where b > 0, (n + a) b = Θ(n b ).

Show that for any real constants a and b, where b > 0,  $(n + a)^b = Θ(n^b)$.  So taking a stab at this.. I let $a = 0$, and $b = 1$  So I got $f(n) = (n + a)^b \implies f(n) = (n+0)^1$ which we know $\implies n^1$ or $O(n) \implies \Theta(n^1)$ ? I just took a guess. I'm not sure if that's even close to being right.


let $\sum_{k=0}^{n}|f_{k}|^{2}=g$ then if g is constant then $\forall k\in[n].f_{k}$ is constant

let $\sum_{k=0}^{n}|f_{k}|^{2}=g$ and then if g is constant then if $\left\{ f_{k}\right\} _{k=1}^{n}$ is holomorphic then : $\forall k\in[n].f_{k}$  is constant. My try: Each of the $f_k$ is has composition to 2 harmonic function $u+iv$ therefore its 2nd derivative is zero. therefore and because they have the same derivative they must be linear. but linear function accept constant in the entire plane iff they are constant function therefore $f_k must be constant.


How to render text pixel-perfectly with subpixel antialising with Illustrator?

I'm exporting a document to raster image with Illustrator and get this result:  But I want to get this quality:  It lookes more pixel-perfect and thin then the Illustrator's render.  How do I setup Illustrator to render text pixel-perfectly? Also, is it possible to enable subpixel AA in it? Thank you!


Open Terminal Shows : bash: alias: =: not found How to remove?

when i open my terminal it shows:  bash: alias: osmall: not found bash: alias: =: not found bash: alias: cd: not found bash: alias: /var/www/html/OpenSupermall/: not found bash: alias: /var/www/html/OpenSupermall/: not found alias osmall='cd' bash: alias: /var/www/html/OpenSupermall/: not found bash: alias: /var/www/html/OpenSupermall/: not found   It's so annoying to me. How can I get rid of this message ? Thanks


Once I was asked a question during the interview.  Hence I have a function void f(std::string), and I call a function as this f("int"). So that my function must create a local int x in its body. Is there a way to get the type from const char*. I know that boost::mpl::vector does solve this kind of problem. Can anyone tell me the technique?


If I type man tmux then /join-pane I go right to the subcommand I'm looking for:    But if I grep the man page then I get nothing:  $ man tmux | grep join-pane $ echo $? 1   If I try something different then it does work:  $ man tmux | grep 'terminal multiplexer'      tmux -- terminal multiplexer      tmux is a terminal multiplexer: it enables a number of terminals to be    What is going on here? Why can't I grep the tmux man page for join-pane?   Some details about my operating system and the commands I'm using:  $ uname -a Darwin home.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64 $ grep --version grep (BSD grep) 2.5.1-FreeBSD $ man --version man, version 1.6c $ tmux -V tmux 2.7   As per a  about this being a terminal issue I tried some more patterns that didn't work:  $ man tmux | grep join\-pane $ man tmux | grep "join-pane" $ man tmux | grep 'join-pane' $ man tmux | grep 'join\-pane' $ man tmux | grep "join\-pane" $ man tmux | grep -e join-pane


How can I convert a C# byte array into a binary string to be pasted in a SQL script?

Just to be clear, I'm NOT trying to insert into SQL Server directly from C#.   I'd like to convert a C# byte array into a binary string so that I can paste it into a SQL Script like the following:  insert into Files (FileId, FileData) values (1, 0x010203040506)   How can I do this?


I've started with the base case first by letting $n=3$, which yields $$LHS = 1^{3}+2^{3}+3^{3} = 36 = \frac{3^{2}\left ( 3+1 \right )^{2}}{4} = RHS.$$  Assume $n=k$ holds: $1^{3}+2^{3}+...+k^{3}=\frac{k^{2}\left ( k+1 \right )^{2}}{4}$ by Induction Hypothesis.   We want to show that $1^{3}+2^{3}+...+\left ( k+1 \right )^{3}=\frac{\left ( k+1 \right )^{2}\left ( k+2 \right )^{2}}{4}.$  I have started from $$1^{3}+2^{3}+...+\left ( k+1 \right )^{3}$$ $$\Rightarrow 1^{3}+2^{3}+...+ k^{3} + 3k^{2} + 3k + 1$$ $$\Rightarrow 1^{3}+2^{3}+...+  + \frac{k^{2}\left ( k+1 \right )^{2}}{4}+3k^{2} + 3k + 1 \text{ (By Induction Hypothesis)}.$$   I am pretty much stuck here so any help would be appreciated.


Distribution of $\frac{X+ZY}{\sqrt{1 + Z^2}}$

Let $X$, $Y$ be random variables with standard Gauss distribution. Let $Z$ be a random integer variable. All these variables are independent together. I need to find distribution density of random variable $\frac{X+ZY}{\sqrt{1 + Z^2}}$ If I will use a fact $A$ that linear combination of normal distributions is a normal distribution with $\sigma = \sqrt{a^2\sigma_1^2 + b^2\sigma_2^2}$ $$\frac{1}{\sqrt{1 + n^2}}X+\frac{n}{\sqrt{1+n^2}}Y$$ $$\sigma = \sqrt{\frac{1}{1+n^2}+\frac{n^2}{1+n^2}} = 1$$ then by using independence i could write it as $$\sum_{n\in\mathbb{Z}}\rho_1\mathbb{P}(Z=n)=\rho_1\sum_{n\in\mathbb{Z}}\mathbb{P}(Z=n)=\rho_1$$ where $\rho_{\sigma}$ is density for normal distribution with constants $\sigma$ and $1$. But I don't know how to prove this linear combination fact $A$. So I would like know if my attempt is correct ($mod \:A$) and if  there are some other easier approaches or modifications of this one.


"Is far from..." - How do I connote the simile, without the literal connotation?

In using a contrasting simile, I think I have fallen into a trap. I want to say:     The academy is far from a placid house of learning.   In the sense of:     The academy is not at all a serene place for study.   Unfortunately, the literal meaning connotes physical distance, as in:     The academy is 500 miles from a quiet school that I know.    I have checked Ngram Viewer, and is far from a place does not come up with any hits, and the limit is five words per phrase. I could not pinpoint the problem in any of the usage dictionaries either. Might one say:     The academy is far from being a quiet place of study?   That doesn't sound right at all. Being should not be a verb.


Should I cash out my IRA to pay my student loans?

I'm 27 and I have an IRA of around 125K. I'm about to transition into another position with a salary of around 85K-100K. I have around 15K in smaller debts that include credit cards and medical. I also have around 30K in debts that include vehicles and other home related things. My wife and I have around 220K in student loan debt combined. The student loans are a combination of private and federal student loans. Does it make sense to cash out my IRA when I leave my current position and put all of it down on student loan debt? Or should I continue to let my IRA grow and just come up with a longer term payment plan for my student loans?   Any help is appreciated. Thanks.


Can we please allow upload of images (like screenshots) via the iOS app?  For my last question I had to use a random imgr app to upload my screenshot and copy the link to my question which was quite a hassle.


Change password on root user and user account

If I change the password for the root user is that going to automatically change the password for the user account?   I found this link for root:    How do I change the user account password?


jquery click function not working for dynamically added fields

I dynamically append some html code (contains input type checkbox) using jquery. the data showing perfectly with class and ids but when i tried to access those input tags (input type checkbox) by using jquery it is not happening. Why? and is there any solution?  My Html

   My Scripts


How to solve an expression where series are in a fraction


How to put a brace on the right, not left, to group cases?

How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They are a set of steps in an algorithm which I want to consider as an item.)  The following puts the brace on the left. All I need to do is to flip it to the right.  \begin{align} \begin{cases} a&=bbb\\ c&=ddddddd\\ e&=ffffffffff \end{cases} \end{align}   Thanks for any help with this!


On MacOs X running updated mactex packages, when I compile my biber file I get this error:  data source /var/folders/yf/y69gwrx12kj2jtzrs78vg2vm0000gn/T/par-67696f6e61/cache-    23e542f078c05cf97a78083ff4d628bc746d389d/inc/lib/Biber/LaTeX/recode_data.xml not found in . Compilation failed in require at Biber/Utils.pm line 20. BEGIN failed--compilation aborted at Biber/Utils.pm line 20. Compilation failed in require at Biber/Internals.pm line 8. BEGIN failed--compilation aborted at Biber/Internals.pm line 8. Compilation failed in require at (eval 22) line 2. ...propagated at /opt/local/lib/perl5/5.14.1/base.pm line 94. BEGIN failed--compilation aborted at Biber.pm line 5. Compilation failed in require at script/biber-darwin line 20. BEGIN failed--compilation aborted at script/biber-darwin line 20.   Any idea on how to solve it?


Macbook Pro 2018 Touch Bar Gone dark and not working

I have a 15" 2018 Macbook Pro with touchbar and the touchbar has gone completely black! the only thing working is the touch id. Also, there are no touch bar related settings in the keyboard settings section.  I've seen his problems for the last couple of days, after the machine unexpectedly shut down, and then it showed "your computer restarted because of a problem"   I've tried:   pkill "Touch Bar agent";  killall "ControlStrip";   and  sudo pkill "Touch Bar agent"; sudo killall "ControlStrip";  Starting in Safe Mode SMC reset NVRAM reset Apple Hardware Test (booting while holding D),     resulting in "No problems found" re-installaing MacOS updating to Catalina. Pressing fn to see whether that would light the touch bar up (it didn't work)   Has anyone encountered this issue as well?


How to insert an image in the footline of a beamer presentation

I'm using the Madrid theme but I would like tu use images instead of colored backgrounds for the frametitle and the footline. This is what I have so far    I want to do the same thing I did for the frametitle in the footline. I've tried many things, the only one that has worked is   \setbeamertemplate{footline}[textline]{ \includegraphics[width=\paperwidth]{image}}   but I can't fill the width of the page nor move the image, and the text is covered by the image. This is an example of what i just described  \documentclass{beamer} \mode<presentation>{   \usetheme{Madrid}   \setbeamercolor{frametitle}{fg=yellow}   \setbeamercolor*{palette primary}{use=structure,fg=red}   \setbeamercolor*{palette secondary}{use=structure,fg=red}   \setbeamercolor*{palette tertiary}{use=structure,fg=red}   \setbeamerfont{frametitle}{size=\huge} } \usepackage{textpos} \usepackage{graphicx} \usepackage{tikz} \usepackage[export]{adjustbox}  \setbeamertemplate{footline}[text line]{ \includegraphics[width=\paperwidth]{foot_image}}  \addtobeamertemplate{frametitle}{ \begin{textblock*}{\paperwidth}(-30pt,0pt) \includegraphics[width=1.1\paperwidth,height=1.3cm]{frametitle_image} \end{textblock*} }  \title[Title]{\textbf{{\huge Big Title}}} \author[email]{Author} \institute[]{Department\\University} \setbeamertemplate{navigation symbols}{}  \begin{document}  \begin{frame}{Frametitle} slide 2 \end{frame} \end{document}   Which produces


Chat prefixes in Minecraft without plugins?

I'm trying to make chat prefixes (like so):  Steve (Administrator): Hello   That is in the chat.  In this, Steve is the username and Administrator is the rank. I want to do this without plugins or mods, just commands. Is this possible?


Okay, when I tried to install Ubuntu it showed up a code error so I uninstalled Ubuntu, but when the pc boots up it gives me an option if I want to start with windows or Ubuntu, and I already formatted my pc like 3 times and still giving the option to boot with Ubuntu and that annoys me, please help!


How can I obtain a Cauchy distribution from two standard normal distributions?

I am interested in      Let $X\sim N(0,1), Y \sim N(0,1)$ independently. Show $\frac{X}{X+Y}$   is a Cauchy random variable.   My work:  $f_{X,Y}(x,y)=\frac{1}{2\pi} e^{\frac{-1}{2}(x^2+y^2)}, -\infty<x,y<\infty$ by independence  Let $U=\frac{X}{X+Y},V=X+Y$. (Is there a better $V$ to choose for this bivariate transformation?)  Then, $X=UV, Y=V - UV$. So, $|J|=V$.  $f_{U,V}(u,v)=f_{X,Y}(uv,v-uv)|J|=\frac{v}{2\pi}e^{\frac{-v^2}{2}(2u^2-2u+1)},-\infty<u<\infty$  $f_U(u)=\frac{1}{2\pi}\int_{-\infty}^{\infty}ve^{\frac{-v^2}{2}(2u^2-2u+1)}dv$. Let $y=\frac{v^2}{2}(2u^2-2u+1)$, so $dy=v(1+2u^2-2u)dv$. Then,  $f_U(u)=\frac{1}{2\pi(2u^2-2u+1)}\int_0^{\infty}e^{-y}dy=(\pi[(\frac{u-1/2}{2})^2+1])^{-1}, -\infty<u<\infty$,   which is not exactly a Cauchy distribution. Where did I mess up? More importantly, how would you proceed in solving this problem?


Unable to mount my Windows partition drives in external Hard disk

I had an old laptop hard disk which was containing 5 drives created in Windows 7. When that laptop was got complaint I picked the hard disk and started using it as external hard disk. Now when I try to access the drives using Ubuntu, it shows the following error message for all the drives. What to do?


What is the difference between Fact and Truth?

I'm curious about the difference between Fact and Truth. I was searching on the internet if I could find it. But still I'm confused about the exact meaning. I first read the forum discussion here  where an author has given two examples for each like below     A fact is a reality that cannot be logically disputed or rejected. If   I say "fire is hot," I don't care how great your reasoning skills are,   if you touch fire your skin will burn (and don't give me that "but   people can walk on hot coals!" bull. There's a difference between the   transfer of heat through conduction and training one's body to deal   with the agonizing pain of said conduction). Now when I say this, I am   not speaking a truth, I am speaking a fact. If you say "fire is not   hot," you are not lying, you are incorrect. Facts are concrete   realities that no amount of reasoning will change. When one   acknowledges a fact, they are doing just that. Facts are not   discovered, facts are not created, facts are simply acknowledged.      A truth on the other hand, is almost the opposite. Truths are those   things that are not simply acknowledged, but must be discovered, or   created. If I say "God exists," and I possess strong reasoning for the   affirmative of that statement, then God really does exist, that is a   reality. However, if another individual possesses strong reasoning for   the negative, and because of this reasoning they believe that God does   not exist, then that is also a reality. If we were to debate our   ideologies, and my reasoning appeared stronger than theirs, they may   choose to adopt my belief that God does exist. If they do, then the   existence of God is just as true as the nonexistence of God which they   believed a week ago. Truths, as opposed to fact, are much more fluid   and malleable than their empirical counterparts.   and followed by further discussion.  Then I found this . Article from above link says like below:     Facts are notes and lyrics on sheet music.  Truth is what the singer   gives to the listener when she’s brave enough to open up and sing from   her heart.   But still curious about the difference between both of them.  In our daily life, in general conversation, we generally use these both terms interchangeably. Then what is the difference? Are they synonym or have specific difference?


New environment with parameter for caption

This is my first attempt to define my own environment. I fail with the number of parameters. LateX complains Illegal parameter number in definition of endperformance. This should be a standard textbook example but I can't see what I am doing wrong.   \newenvironment{performance}[1] { \begin{table}[ht] \begin{tabular} {llllllll}   \toprule {} &   {Return} & {Annua Return} & {Volatility} & {Sharpe Ratio} & {Max DD} & {YTD}  & {2015}\\ } { \bottomrule \end{tabular} \caption{#1} \end{table} }


Which preposition is correct in the following sentence?     Now I am at/on/in the railway station.


comparison between materialized view and view

The actual app uses the view, when to use materialized, when to use the view


When $\operatorname{Hom}_{R}(M,N)$ is finitely generated as $\mathbb Z$-module or $R$-module?

Assume that $M$ and $N$ are two finitely generated $R$-modules. Then $\operatorname{Hom}_{R}(M,N)$ is a finitely generated $\mathbb Z$-module and/or $R$-module (in this case, assume that $R$ is commutative)?   Note that $R$ is not Noetherian ring. Is there any counterexample (for any cases)?


In C# is there a way to detect if a string is all caps?  Most of the strings will be short(ie under 100 characters)


how to extract path from file location using shell

how to extract path location from below given string.  /opt/oracle/app/oracle/product/12.1.0/bin/tnslsnr   expected output.  /opt/oracle/app/oracle/product/12.1.0/bin   (or)  /opt/oracle/app/oracle/product/12.1.0/bin/


As the title says, every time when I open Nautilus from unity launcher, it opens with all files being shown. Normally it opens with hidden files being hidden, how can I change it back to that behavior?   My system is Ubuntu 14.04 LTS with Unity, no other WM/DM's are installed.


$L^p$-norm of the gradient of a harmonic function.

Let $1<p<\infty$, $\Omega \subsetneq U \subset \mathbb{R}^n$ be bounded open sets in $\mathbb{R}^n$ with smooth boundary. The claim is that there is $c>0$ such that the following inequality holds $$ \| \nabla u \|_{L^p(\Omega^\prime)} \leq c \| u \|_{L^p(U)}$$  for all $u \in L^p(U)$ with $u$ being a weak solution of $\Delta u = 0$,   I believe that it can be proved by the mean value property of harmonic functions that such a $u$ is actually smooth and so $\nabla u$ is defined in the usual sense. My question is how can we prove this inequality? The proof I'm reading just states that applying the mean value property to $\nabla u$ and so the $c$ exists. Also, I'm kind of suspicious of for the case $p \in (1,2)$ because I feel we might need to apply Jensen's inequality to $\frac{p}{2}$ somehow.


I got this error   E: unable to locate the package oversip   when I write this command   sudo apt-get install oversip


How can I check which applications are using internet? How to block internet accessing one particular application? Is there any GUI tool that exist for it in Ubuntu Software Centre? Thanks in advance!


I do a condition with a value when it is null and when it is not null. The time where this value is null I got the java.lang.NullPointerException. How could I deal with this in order to dismiss this exception? I need the condition when the value is null and when it is not.


Cross- Stack-Exhange sites "linked" section

I've seen , but I'm just wondering about a more limited use case; it's probably been discussed earlier, but I cannot find a reference.    I much enjoy the "Linked" and "Related" sections on the right side of StackExchange sites. Also, I often find myself finding related stuff on, say, AskUbuntu, and then adding a comment with "Related: [link]" to a related post on, say, Unix SE.  Since the engine apparently already parses URL's per site locally, so that it can create the "Linked" section, it could probably be adapted to match cross-site links too; all I'd want from this, is a small "Cross links/Linked: 3 sites, 5 questions" summary link to the right (below "Linked" and "Related" sections), and clicking on that link would show you a list of links (both incoming and outgoing, just as it works locally now).   How possible is this to implement - or maybe such a feature exists already?


How to center a div both vertically and horizontally

I would like to center both vertically and horizontally the text "apple". I tried every solution already proposed (an inner div, vertical-align, margin:auto...) I just don't get it.    I think that the problem is located below.  #distance {  height:20%;   text-align: center;  vertical-align: middle;  font-size: 2em; }   Thanks.


Email Validation code for python not giving expected output

For email validation, i have following conditions: 1. username should be alphanumeric only(a-z,0-9,A-Z) 2. website name should be a-z 3. extension should be a-z  i am writing a python code as :  import re  def check(email):     #complete the function     #the function should return the strings "invalid" or "valid" based on the email ID entered     if(re.search('^[a-zA-Z0-9]+$@^[a-z]+$.^[a-z]+$',email)):           return("valid")        else:           return("invalid")    email=input() print(check(email))     My input: vk@google.com But it returns me "Invalid" It should return as "Valid". What am i doing wrong here?


A question on counting and probability: Six friends hold a Christmas present swap. Each person brings a present, and puts it into a sack...

Question:  Six friends hold a Christmas present swap. Each person brings a present, and puts it into a sack. Once all six presents are in the sack, each participant in turn then draws out a present at random (presents are not replaced once drawn). The swap is deemed lucky if no participant draws out the present that he or she put in. What is the probability that the swap is lucky?   Where I am at so far:  Let A B C D E F be the 6 people. Let $A_P$ $B_P$ $C_P$ $D_P$ $E_P$ $F_P$ be the 6 gifts.  The set {A, B, C, D, E, F} has 6! permutations. Now each permutation gives the order in which order people choose presents from the sack. Let's call the set of all these permutations R.  There are also 6! permutations of {$A_P$ , $B_P$ , $C_P$ , $D_P$ , $E_P$ , $F_P$}. Each one of these permutations give the order in which present are chosen from the sack. Let's call the set of all these permutations S.  R x S gives the set of all possible ways the 6 people choose presents. For example, ( (A, B, C, D, E, F), ($B_P$ , $A_P$ , $D_P$ , $C_P$ , $F_P$ , $E_P$) ) means A chooses first and selects $B_P$, B chooses second and selects $A_P$, C chooses thirds and selects $D_P$ etc.  Counting the number of unlucky swaps  Now all I can count so far are the number of possibilities where the 6 people choose their own presents. That's just $720$. But I know there are more but I don't know how to count them.  Counting the number of luck swaps  I was thinking if I figured out how many ways there are to rearrange the first row of the following table so that A does not appear in column A more than once, B does not appear in column B more than once, C does not appear in column C more than once etc. Then may be I could figure out how many lucky swaps there are. But again I don't know how many permutations like this exist.  \begin{array}{|c|} \hline \hline A& B& C& D& E& F&\\ \hline B& C& D& C& F& E&\\ \hline C& E& A& F& B& D&\\ \hline D& E& F& A& B& C&\\ \hline E& C& B& F& A& D& \hline  & & &\\ \hline.  & & &\\ \hline.  & & &\\ \hline. \end{array}


.cpp vs .h and where should I put function definitions

I've been writing in C++ lately and I'm getting confused with .cpp vs .h — when to use them and what should go in them. I've been reading that you should put function definitions in a separate .cpp file, and headers should be used for declarations, but how do I use the separate .cpp file?  Do I #include it or what? I'm looking for clarification on .h and .cpp and what should go where and how to include separate .cpp files.


I have assigned some data to the one object and I want that object in future as it was like the first time. Whenever I do changes for the parent object it is getting reflected in the child object too. How can I solve this? Please give all possible answer for the object, arrays, maps also.  var parentObject = someData; const childObj = Object.assign({}, parentObject);   I want to change only parent object and I want to keep child object as constant to use in the future.


Find the limit $ \lim_{n \to \infty}\left(\frac{a^{1/n}+b^{1/n}+c^{1/n}}{3}\right)^n$

For $a,b,c>0$, Find $$ \lim_{n \to \infty}\left(\frac{a^{1/n}+b^{1/n}+c^{1/n}}{3}\right)^n$$  how can I find the limit of sequence above?  Provide me a hint or full solution. thanks ^^


I am relatively new to python and have recently learned about recursion. When tasked to find the factorial of a number, I used this:  def factorial(n):     product = 1     for z in xrange(1,n+1):         product *= z     return product  if __name__ == "__main__":     n = int(raw_input().strip())     result = factorial(n)     print result   Then, because the task was to use recursion, I created a solution that used recursion:  def factorial(n):     if n == 1:         current = 1     else:         current = n*(factorial(n-1))       return current  if __name__ == "__main__":     n = int(raw_input().strip())     result = factorial(n)     print result   Both seem to produce the same result. My question is why would I ever use recursion, if I could use a for loop instead? Are there situations where I cannot just create for loops instead of using recursion?


I wanted to ask if there are any free render farms. I tried to find one but I couldn’t. If anyone finds a “free” render farms pls tell me.


While in undergraduate years, abstract stuctures are very confusing since they arise without many motivations most of the times, and find their living ground later on. I would like to understand why noetherian rings are interesting.  Principal and euclidean rings are definitely useful to have arithmetic tools and notion generalizing those of the arithmetics of integers. What about noetherian rings? It often appears in arithmetic courses, however what allows them to do that other rings do not? What are the lost properties compared to a principal ring?   In one sentence: how to grasp the meaning and interest of noetherian rings (or other structures)?


Use 3 different USB HDDs always on same drive letter

I am using 3 different USB HDDs of the same model for regular backups with Acronis. This software wants me to set up a target path for the backup files, so I depend on my external HDDs to always have the same drive letter (E:), otherwise it will fail.  Now, I usually only have one HDD at a time plugged in and I set up the drive letters for each device to E: in the Device Manager. Every HDD gets automatically assigned the letter E: when I plug it in.  This works, but only if I strictly take care that never more than one of those three devices is connected at the same time. If I e.g. connect all three devices to check and compare the backups and delete old ones, the first device I plug in gets assigned to E:, the second to F: and the third to G:. This would be ok and can't be different, of course, but afterwards, when I disconnect all of them and plug in a single device to run my backup, it keeps its reassigned letter (E: F: or G:) instead of switching back to E:.  My question is: How can I tell Windows to assign a device a specific letter whenever possible (if the letter is currently not occupied by another device, but again if the letter is free the next time I connect it)?  Note that for the backup, I need exactly the same drive letter and directory structure (--> same backup target directory address) on all three devices!  From OPs comment:  This is not a duplicate of the question as it has been closed. It's just the opposite. The other questions asks is like "How can I make my red USB key always be drive D: and my blue USB key always be drive E:?" This question is like "How can I make sure that no matter which of red, blue, or green external USB backup drives I connect that it will always be drive D: when possible?"


Bibliography URLs missing part when using lmodern

I'm creating a document that contains urls in the bibliography. That works just fine and the urls are broken to new lines at appropriate points.  The only issue I have is that the two pdf viewers I've tested seem to crop part of the url from the end.  Example:  http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/docs/reference.html   becomes  http://google-maps-utility-library-v3   which is exactly the part before the line break.  Here is an image showing the problem (the tooltip shows the problem):    This is the latex document:  \documentclass[11pt]{article} % type of the document \usepackage[english]{babel} % language of all the auto generated text \usepackage[utf8x]{inputenc} % encoding stuff \usepackage[T1]{fontenc} % encoding stuff \usepackage[hyphens]{url} % \url command \usepackage{geometry} % define the geometry of the page \usepackage{lmodern} % <-- THIS BREAKS IT \geometry{a4paper,left=25mm,right=25mm, top=28mm, bottom=28mm}   % the document starts here \begin{document}  Google MarkerClusterer \cite{MarkerClusterer}.  % add the bubliography (without file extension) and style it \bibliography{cite} \bibliographystyle{unsrt}  \end{document}   and the bib file:  @misc{MarkerClusterer,     author = {},     title = {{MarkerClusterer for Google Maps v3}},     howpublished = {\url{http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/docs/reference.html}},     year = {2010},     note = {Last accessed on 2013-09-19} }   I compiled with both pdflatex and lualatex.  The problem seems to be related to the lmodern package, since it works without it.  Does anyone know how to make the url break lines AND still make it clickable (without parts being cropped)?


I am creating a Formula field that returns texts when:   Picklist_Status = Activated, the return text should be A else null Picklist_Status = Sold, the return should be B else null Picklist_Status = ChangeofMind , the return should be C else null   So these are 2 picklist fields that would update the formula field if a OR b OR C is true.   My FORMULA:  OR ( IF ( ISPICKVAL ( Status__c , 'Verified Complete' ), 'B' , IF ( ISPICKVAL ( OHSI_Status__c , 'Ok for Production' ), 'B+' , IF ( ISPICKVAL ( OHSI_Status__c , 'Activate' ), 'A' 'null' ))))   Error: Incorrect parameter type for function 'OR()'. Expected Boolean, received Text  I do not know where to put the OR.. these 3 should be OR


Can a 3 years PhD make an independent researcher ? Or how many post-docs after PhD to be an independent researcher?

I am doing research more than 3 years. I was admitted in a 3 years program, now in the last months of the program. I fell I have a long way in the field to be an independent researcher. But most of the post-docs in my department and in my group don't seem to be in the direction of a independent research. Many of us PhD students and post-docs look like more high level technical staff.


What is a terminal and how do I open and use it?

What is a terminal? How do I open a terminal window? How do I use the terminal?


Effects of Schengen Visa refusal appeal on new fresh visa

I have appeal for refusal of Schengen visa (Spain), but I decided to apply for fresh visa from other Schengen State (Czech Republic). I want to know, does my appeal to Spain affect my visa in Czech Republic? How to cancel appeal of visa refusal?


How can I paint terrain with normal map? In texture paint mode I can choose one texture to paint, but what if I have a pair of texture? (color + bump)  For example I have a pebbles looping texture. It would be great if I could also make a big bump map as I paint the pebbles.


How do I remove 'Places' entries from the Nautilus sidebar?

I want to remove Videos and Music from the left side panel. But, I can't seem to find the option to do so. How do you do that?


Checking proof for: It is possible to find addition assumptions on the sets $A$ and $B$, so $P(A)\cup P(B) = P(A\cup B)$.

It is possible to find additional assumptions on the sets $A$ and $B$ so that in fact $P(A)\cup P(B) = P(A\cup B)$.  Prove that for all sets $A$ and $B$, if $A=B$ then $P(A)\cup P(B) = P(A\cup B)$.   Solution: Suppose $A=B \implies P(A) = P(B) \implies P(A) \cup P(B) = P(A)$ and $P(A \cup B) = P(A \cup A) = P(A)$.  Thus, $P(A) \cup P(B) = P(A) = P(B) = P(A \cup B)$  By containment (or inclusion), let $X \in P(A \cup B) \implies X \subseteq (A \cup B).$  $\implies X \subseteq (A \cup A) = (B \cup B) \implies X \subseteq A=B$.  $\implies X \in P(A) = P(B) \implies X \in P(A) \cup P(B)$.  $\implies P(A \cup B) \subseteq P(A) \cup P(B)$.   As $P(A \cup B) \supseteq P(A) \cup P(B)$. Thus, $P(A) \cup P(B) = P(A \cup B)$.


When did "I could care less" (rather than "I couldn't care less") become popular?

What decade? Any particular reason?  This is an etymological/historical question, not a grammar question.


Performance of Set and Get using Reflection

Does setting and getting an object attribute using reflection (java.lang.reflect.Field get and set functions) rather than calling the set and get of the object itself, result in any significant performance differences?


I am trying to prove that for a continuous $f\colon[1,\infty)\rightarrow\mathbb R$ and $f(x)\to a$ as $x\to\infty$ it could be approximated by $g(x)=p(1/x)$ where $p$ is a polynomial.


If you knew how bad things were... or If you knew how bad things are

Which one is correct and why?     If you knew how bad things were, you would not go on vacation right now.   or     If you knew how bad things are, you would not go on vacation right now.   This is assuming that "things" are actually bad right now (that's not up for discussion).


How to remove or delete column fields in a shapefile using Python?


I want to convert a timestamp from mysql to format as time().  IF i have this date:  2015-06-05 08:53:30   I wants to convert to something like: 1433491545  I have to use the method date() ?  I cant found a solution.


Get the all site collections in an online 365 Tenant

I am trying to write JavaScript to get all the site collections in an online 365 Tenant for a Sharepoint Hosted App.  I found this but I need to do it in JavaScript.       public DataTable GetAllSiteCollections(string url)     {         DataTable dt = new DataTable();         dt.Columns.Add("URL");         dt.Columns.Add("Name");         SPSecurity.RunWithElevatedPrivileges(delegate()         {             SPWebApplication webApplication = SPWebApplication.Lookup(new Uri(url));             foreach (SPSite site in webApplication.Sites)             {                 dt.Rows.Add(new object[] { site.Url, site.Url });             }         });          return dt;     }


Is your IP address neighborhood important for SEO?

Can other websites on your shared host affect the rank of your website in the Google index? (same IP address as yours, potentially malicious/low-trust content) Can other websites on your IP class affect the rank of your website in the Google index? (different actual IP, malicious/low-trust content)   Clarification: Domain class, is what you get when you run a whois query on an IP address.  Example:  NetRange:       69.163.128.0 - 69.163.255.255 CIDR:           69.163.128.0/17   PS: Prefer answers with experience or links to trustworthy material, over speculations, assumptions and gut feelings.


how i can export particles system with animation to three.js?

i need to export particle system from blender to three.js with animation , i had export this model as gltf .


If $n \times n$ matrix $A \succeq 0$, and one $ n \times q$ column orthogonal matrix $U$, does this inequality hold? $$A- UU^{T} A UU^{T} \succeq 0$$


How can I set my username in the Android app?

I am a new user and I'm using the Android app. How can I set my username? Is this possible at all from the app?


So when I'm in render preview I can see everything but everything cut off in object mode


Regex for breaking down Polynomial Expression

I'm trying to break down a mathematic expression into pieces and I was trying to use the Regex /\([^)]+\)/ to do the trick (). But reading that answer, I understood that this Regex will be searching for the first closing parenthesis ) to finish, giving me trouble when handling, for instance:   (2*x^2 + 5*x - (2*x - 3)^(1/2))/(1 + x) ^                      ^      ^ START                IGNORE FINISH   Since I'm not really good with coming up with Regex, I'm wondering if I should handle this with strpos, substr and str_replace or is there a different Regex to apply to preg_match_all and get the correct set of parenthesis?   Note: This function will be recursive in order to solve inner parenthesis.  EDIT:   My expected output in this case:   $array = null; $expression = '(2*x^2 + 5*x - (2*x - 3)^(1/2))/(1 + x)'; $expression = str_replace(' ', '', $expression); preg_match_all('MAGIC EXPRESSION HERE', , $array); print_r($array);  // Output array(     [0] => (2*x^2+5*x-(2*x-3)^(1/2))     [1] => (1+x) )   Thanks.


Generating set of countable, co-countable sigma algebra on $\mathbb{R}$

I am trying to prove that the countable, co-countable sigma algebra on $\mathbb{R}$ cannot be countably generated.   In more precise terms.   Let $\Sigma$ be the $\sigma$-algebra generated by countable subsets of $\mathbb{R}$, that is $$ \Sigma = \sigma (\{A\subseteq  \mathbb{R} \:|\: A \textrm{ is countable}\})$$   It is easy to see that $A\in \Sigma$ iff $A$ is countable or co-countable.    Question: Is there a countable family $\{A_n\}_{n\in\mathbb{N}}$ such, for all $n\in\mathbb{N}$, $A_n\in \Sigma$ and $$ \Sigma = \sigma (\{A_n \:|\: n\in\mathbb{N}\})?$$   I think the answer is NO, and I am trying to prove it. Can someone please help me in proving this?    My attempt is to prove by contradiction. That is assuming that the countable generating set exists then to show that sigma algebra generated by this set would miss some singletons of $\mathbb{R}$. Since the given sigma algebra contains all singletons this leads to contradiction. I am following this approach because I know that the set of all singletons generate the given sigma algebra and they are uncountable.


Coupon collector expectation using definition

I want to do coupon collector's for a dice roll, or the expected number of rolls to get all 6 numbers from definition of expected value as opposed to using linearity of expectation.   $\tau = min\{ t \vert X_t = i, \forall k \neq i,\ \exists j<t:  X_j = k ,\ \forall l< t, \ X_l \neq i \}$.   $\mathbb{E}[\tau] = \sum_{j = 1}^{\infty} j\mathbb{P}(\tau = j)$ is the definition.   I try to compute $\mathbb{P}(\tau = j)$, and for j rolls, you must have 5 numbers in the first $j-1$ rolls, and a 6th number in the $j$th spot, and the 6th number can't be in any of the first $j-1$ spots. So   $\mathbb{P}(\tau = j) = 6[\frac{1}{6^6}5! \binom{j-1}{5} (\frac{5}{6})^{j-6}$].   $\frac{1}{6^6}$ is for six numbers being in those spots (say, 1-5 being in the first j-1 spots, 6 being in the last), $5!$ is the ways of arranging the 5 numbers, $\binom{j-1}{5}$ is to choose the ways of putting $1,2,3,4,5$ in $j-1$ spots, and $(\frac{5}{6})^{j-6}$ is so the $j-1$ spots which you didn't place 1 to 5, don't contain a 6. then multiply by 6 since 1 through 5 can also be at the jth position.   This doesn't work out to be the right sum. Where is this wrong?


How can I find the continued fraction expansion for the square root of 5. Do this without the use of a calculator and show all the steps.


I am a newbie in Latex. My goal is to have the word "Chapter" in the title of any chapter, and the word "Appendix" in the title of appendix. I also want to add "Appendix" in TOC. However, using the following MWE from my university, I end up having "Appendix A" in TOC. How can I remove the letter "A" in TOC.  \documentclass[12]{thesis}  \RequirePackage{tocloft} \RequirePackage{titlesec} \usepackage[titletoc]{appendix}  \newcommand{\spacemultiplier}{1.5} \renewcommand{\baselinestretch}{\spacemultiplier}\normalsize  \renewcommand{\frontmatter}{ %TABLE OF CONTENTS \addcontentsline{toc}{chapter}{Contents} {\renewcommand{\baselinestretch}{1}\normalsize \tableofcontents } \newpage \titleformat{\chapter}[display]{\renewcommand{\baselinestretch}{1.5}\LARGE\sc\fillast}{Chapter   \thechapter}{0pt}{}[\renewcommand{\baselinestretch}{\spacemultiplier}\normalsize] \titlespacing{\chapter}{0pt}{1.4cm}{20pt} \setcounter{chapter}{0} }  % Appendix setup \newcommand{\universityappendix}{ \appendix \titleformat{\chapter}[display]{\renewcommand{\baselinestretch}{1.5}\normalsize \LARGE\sc\fillast}{Appendix}{0pt}{} \titlespacing{\chapter}{0pt}{-30pt}{20pt} \renewcommand{\baselinestretch}{1.5}\normalsize }   \begin{document}  \frontmatter  \chapter{blah blah} This is a chapter  \universityappendix \begin{appendices} \chapter{blah blah} this is appendix \end{appendices} \end{document}   Thanks


How many partitions of what sizes should I make for a dual boot?

I'll be getting a laptop soon. It only has 500 gigs. Windows is for gaming and Ubuntu for fun stuff.    Should I go 150:350gigs, or 200:300? Do I make 4 partitions (os+data) for each os, or do I just flop windows on one partition?   2.a Is it customary on Linux to have two partitions?   Should I make the Ubuntu partitions when creating Windows, or should I make 1 or 2 partitions for Windows, and let the rest be unallocated space, and then the Ubuntu installer will recognize that and let me format it? How can I prevent windows from accessing my Ubuntu drives, while ubuntu being able to access windows? The goal is that windows doesn't steal my data. Do I need to worry about the UEFI thingie?


Spin, orbital angular momentum and total angular momentum

If I understand correctly, spin is an intrinsic property of particles, which follows the algebra of angular momentum, but has nothing to do with an "orbital angular momentum" in that the particle is not like a small sphere that rotates on itself, to which we could attribute an angular momentum as usual in classical mechanics, cf.  and  Phys.SE posts.   My question is: why does spin combine with orbital angular momentum to give total angular momentum? To me this is surprising, as spin, in fact, has nothing to do with a classical angular momentum. Any insight on that?


Transit visa 8 hour layover in Saudi Arabia

I am a Romanian travelling from Istanbul Turkey to Mauritius island. I have a layover of 8 hours in Jeddah (Saudi Arabia). Do I need a transit visa in Jeddah


What is the expression for translational kinetic energy of REAL GAS?

I know that  the translational kinetic energy of ideal gas is $\dfrac{3}{2} nRT$. What is the expression/formula for translational  kinetic energy of a real gas ? Does it change due to potential energy interaction in real gas which is not present in ideal gas? Does it remain the same as $\dfrac{3}{2} nRT$ ? Does it varies from one real gas to another ? What are the new factors that affect it if it  is different from that of ideal gas? I am a high school student.


see the sentence. "It matters a lot."  here it uses matters, but when I question like "Does it matter?" why we don't use s with matter?


JavaScript reg ex apostrophe is new word boundry

I'm trying to target the first letter of each word in a string. I'm working in JavaScript. I've found discussions for Python and PHP that don't address my problem specific to JavaScript.   str = "i'm a little tea pot"  regEx = /^.|\b[a-z]/g   I have a function that uppercases each letter the regEx finds. My result is the m after the apostrophe is capitalized. How do I avoid this?  After uppercase function: I'M A Little Tea Pot"


Due to a physical disability using pen and paper for maths problems is not an option for me. So I am using Latex to work on maths problems, typically algebra at the moment. To be clear I'm using Latex not to print or share documents with other people but as a means of working on the algebra. [Note: I am a Linux user and have been unable to find a decent dedicated equation/formula editor that is suitable for my needs.]  The various equation commands that I've tried, IEEEeqnarray, eqnarray, align, all center the equations in the middle of the page. I can align the equations left, but that just means the beginning of each equation line is aligned on the left but the equations are still in the middle of the page. I would like the whole block aligned left on the left of the page.  I've used \usepackage[margin=2cm]{geometry} to set the page margins how I want them, and plain text appears where I want it, but the equations all end up in the middle of the page.  The image below shows what I mean and the red line shows where I would like the equations to actually begin. How do I achieve this please?    Here's the current Latex.  \documentclass[12pt,a4paper]{article}  \usepackage[margin=2cm]{geometry} \usepackage{amsmath, amssymb, IEEEtrantools}  \begin{document}  This is some text to show the top left margin.  \begin{IEEEeqnarray*}{l} x^4 - 13x^2 + 36 = 0 \\ \\ u = x^2 \\ u^2 - 13u + 36 = 0 \\ (u-9)(u-4) = 0 \\ u = 4, u = 9 \\ \\ x^2 = 4 \\ x = \pm \sqrt{4} \\ x = \pm 2 \\ \\ x^2 = 9 \\ x = \pm \sqrt{9} \\ x = \pm 3 \\ \\ x = \pm 2, x = \pm 3 \\ \end{IEEEeqnarray*}  \end{document}   Thanks.


Why do my speakers make a noise when my cell phone gets a call?

It's a very common sound but I've never thought to question why it happens.


How does biblatex decides on the number of authors in a citation

When I compile the example below I get Hailey et al. 2018 in the pdf. When I uncomment the second citation I get "Hailey, Mori, et al. (2018)Hailey and Mori (2017)."  Why did the first reference change when I un-commented the second one ? I don't want this behavior.  I understand biblatex sometimes adds authors to disambiguate citations but that seems unneccessary in this case...  \documentclass{article} \usepackage{filecontents} \begin{filecontents}{mwe.bib} @InProceedings{hailey&mori2017,   Title                    = {{NuSTAR observations of black hole binary candidates in  the Galactic Center and its environs}},   Author                   = {Hailey, C.~J. and Mori, K.},   Booktitle                = {AAS/High Energy Astrophysics Division},   Year                     = {2017},   Month                    = aug,   Pages                    = {109.12},   Series                   = {AAS/High Energy Astrophysics Division},   Volume                   = {16},    Adsnote                  = {Provided by the SAO/NASA Astrophysics Data System},   Adsurl                   = {http://adsabs.harvard.edu/abs/2017HEAD...1610912H},   Eid                      = {109.12},   Owner                    = {aleksey},   Timestamp                = {2017.10.13} }  @Article{hailey+2018,   Title                    = {A density cusp of quiescent X-ray binaries in the central  parsec of the Galaxy},   Author                   = {Hailey, C.~J. and Mori, K. and Bauer, F.~E. and Berkowitz, M.~E. and Hong, J. and Hord, B.~J.},   Journal                  = {Nature},   Year                     = {2018},    Month                    = apr,   Pages                    = {70--},   Volume                   = {556},    Owner                    = {aleksey},   Publisher                = {Macmillan Publishers Limited, part of Springer Nature. All  rights reserved.},   Timestamp                = {2018.04.07},   Url                      = {http://dx.doi.org/10.1038/nature25029} } \end{filecontents}  \usepackage[backend=biber, natbib=true, minnames=1, maxnames=2, style=authoryear]{biblatex} \addbibresource{mwe.bib}   \begin{document} \citet{hailey+2018}%\citet{hailey&mori2017} \end{document}


Vector Error Correction Models (sign of the coefficent)

I am working on a VEC model atm, testing for cointegration between 4 variables (the Nikkei, interest rate, M2, and unemployment).  My question is this however: When assessing the VECM output, how important is it that all four variables have a negative coefficient and statistical signifcance?   For example, if my output looked like this:   Error Correction:   D(LNNK) D(LNR)  D(LNM2) D(LNUP)  CointEq1    -0.016525   -0.029369    0.000543    0.003737      (0.00455)   (0.01041)   (0.00033)   (0.00229)     [-3.63253]  [-2.82135]  [ 1.65503]  [ 1.63485]  Whereby, the first-difference of log-Nikkei has -.16% adjustment. And the first-diference of the interest rate has -.29% adjustment.   How important is it that the remaining two variables have a negative and significant coefficient?   If they don't have a negative sign, is the entire cointegrating equation undermined? Or is it regarded that only the interest rate would be cointegrated with the Nikkei, and the other two (positive coefficients), are regarded as not having a long-run correction path.  Any expertise on this would be greatly appreciated guys.   If I am wrong, I would appreciate any recommendations for remedies on Eviews please  Andrew


I would like to get some opinions. I need to make dialog with 3 tabs, every tab have different form, some very long and some very short. my dilemma is, if to make the dialog height change by the length of each tab or to make it the same height for all the tabs even if some of them will have large blank space (see the example...). If you have a examples of websites that use something similar i will be happy to see


Why aren't my Strings equal, if they are identical?

I wrote a class Storage, which should represent a Windows directory, by using the file class. It should have some Methods as the folderOnly() method, which returns a boolean, if there are just folder in my Storage. Extra information: There are just .mp3-files and other folder in the directory I am looking at.  So here the code:  import java.io.File;  public class Storage {     String location;      public Storage(String location){         this.location = location;     }      public boolean folderOnly(){         boolean onlyFolder = true;         File folder = new File(location);         String [] folderArray = folder.list();         for(int i = 0; i < folderArray.length && onlyFolder ; i++){             if(folderArray[i].length() >= 4 && folderArray[i].substring(folderArray[i].length()-4) == ".mp3"){                 onlyFolder = false;             }         }         return onlyFolder;     } }   So if I create a "Storage" object for a directoy with a lot of .mp3-files (even if the number doesn't matter) it still returns true. So I checked for intermediate results:  The String, that is created by the line folderArray[i].substring(folderArray[i].length()-4) , outprinted by System.out.println(String s) seems to be ".mp3". But if I compare it to ".mp3" , false is returned.   What am I missing out on?   Please don't blame me if there's a really simple solution, or my English is really hard to understand. I'm new to whole thing of English and programming. :)


I have a user like this:  uid=501(ironsand) gid=500(foo) groups=500(foo),10(wheel),497(git),501(ironsand)   And to change primary group to ironsand like gid=501(ironsand), I typed this command:  sudo usermod -g ironsand ironsand   It changed groups order but didn't change main group like:  uid=501(ironsand) gid=500(foo) groups=501(ironsand),10(wheel),497(git),500(foo)   I thought someone already asked a question like this, but I couldn't find one.  How can I change primary group?


How can I discover the amount of elements in an array in C++

I'm facing some problems with my code in C++. I would like to know how can I discover the amount of elements in an array. Follow the code:  #include <iostream> #include <cstdlib>  using namespace std;  int avg(int numbers[]){     int amount; // The problem is in. How can I discover the amount of elements in an array?      int sum = 0;     for(int i = 0; i < amount; i++){         sum += numbers[i];     }      return sum / amount; }  int main(){     int q;     cout << "Type number of integers:" << endl;     cin >> q;      int numbers[q];      for(int i = 0; i < q; i++){         cout << "Type an integer value for number " << i+1 << ":" << endl;         cin >> numbers[i];     }      cout << "The average is " << avg(numbers) << endl;      return 0; }


Find the sum of an infinite sequence(not a series)

Let $n$ be a natural number and let $\langle n\rangle$ denote the closest integer to $\sqrt n$. Evaluate $$\sum_{n=1}^  \infty \frac{2^{\langle n\rangle}+2^{-\langle n\rangle}}{2^n}$$ I started putting the values of $n$ to see a pattern. It looks like a Geometric Progression but I am unable to sum it. Also, if a better approach exists, please share. Thanks.


I am currently learning about first order logic, and as an exercise was asked to provide free and bound variables in the following formula:  $$(\exists x P(y,y) \implies \exists y P(y,z))$$  I'm currently confused on the following: the term $P(y,y)$ clearly has $y$ as a free variable, while $\exists y P(y,z)$ clearly has it as a bound variable.  From definition, it should be that in the formula above, $y, x$ are both bounded and $z$ is free. However, this does not convey that if I were to do a "change of variables" to $(\exists x P(k, k) \implies \exists y P(y,z))$, then $x, y$ would be bound and $k, z$ would be free, which means that the number of free variables actually changed for formulas that are actually "equivalent" (since both $P(y,y)$ and $P(k,k)$ are referring to a constant, rather than a variable).  I am also having trouble understanding what the full parenthetization of this expression would be: $(\exists x (P(y,y) \implies (\exists y P(y,z))))$ or $((\exists x P(y,y)) \implies (\exists y P(y,z)))$. Both would a priori be valid, and even though it doesn't really change anything in this case (since $x$ is not mentioned within the formula that is being quantified), I'm curious.


Reference: Renormalization Group and scale invariance in statistical mechanics

Can anyone recommend a book/resource that succinctly explains how the Renormalization Group idea is applied in statistical mechanics?   I have some background in undergraduate-level statmech, but none in quantum field theory, and I am finding this idea difficult to get physical intuition for.


Way of seeing data as image anywhere in a Cycles nodes setup?

I made a complicated nodes setup for a material using Cycles.  Is there an easy simple way to peek at the data passing through any node, to view it as an image?  I desire something like an oscilloscope, where I can touch a probe to any point of the circuit and see what kind of signal is there.  In Blender Internal, I could make many Output nodes and hook them up anywhere, and they'd show the data as a texture on a sphere, cube, Suzanne or whatever.  There doesn't seem to be anything like this for Cycles nodes.  Example of using Output to monitor textures along the "circutry".  (This is not any sensible texture; just messing around with BI nodes.)


Error running : apt-get install ttf-mscorefonts-installer

I am attempting to install the MS Core fonts on Ubuntu 14.04 LTS, and am running into the following error:  vagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get install ttf-mscorefonts-installer Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  ttf-mscorefonts-installer : Depends: cabextract but it is not installable E: Unable to correct problems, you have held broken packages.   Running dpkg --get-selections | grep hold doesn't return anything and I can't find a package in apt-get called cabextract.  From everything I've Googled, installing the MS Core fonts is relatively straightforward, so I'm a tad lost.  How can I resolve this issue and install the core fonts?  Edit:  Here's my /etc/apt/sources.list file  ############################################################# ################### OFFICIAL UBUNTU REPOS ################### #############################################################  ###### Ubuntu Main Repos deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted multiverse  ###### Ubuntu Update Repos deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted multiverse deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted multiverse


My department expects me to write my masters dissertation in MS Word (which is just silly I know).  I however want to use Latex and then just convert the entire document to word afterwards, as I think the department just wants the word version for it's archive, I doubt if they will mind if I hand in a Latex formatted document as a final submission.  Are there options of converting from Tex to Word?


"In recent years" vs "in the recent years"

Do we write in the recent years or in recent years? For example,  In the recent years, the influence of blablabla on blablabla has grown rapidly. In recent years, the influence of blablabla on blablabla has grown rapidly.  As far as I know, both are correct. But which one sounds more natural (more correct from a native speaker's point of view) or does it not matter?


Let $I$ ba a two-sided ideal of a ring $R$ and $M$ be an $R-$ left module. Prove that if $M$ is an $R-$ projective left module then $M/IM$ is an $R/I-$ projective left module.  It is easy to see that $M/IM$ has the structure of $R/I-$module. I need some ideas to prove that $M/IM$ is an $R/I-$ projective left module.  Thank you very much.


Which is the idiomatic way to document a static_cast?

I understand that (MyType)foo, MyType(foo), and static_cast<MyType>(foo) are somewhat similar in that the first two become the last (EDIT: I have been corrected. The previous sentence is untrue.) My question is which is the idiomatic version to use? Is context a consideration?  Since I know that C style casts are not preferred in C++, it is down to functional casts and static_cast.


Cosmic Expansion - Why aren't we ripped off yet?

According to Hubble's law, the universe expands exponentially ever since the big bang.    If the space-time expands, what effects does it have upon us, (1.Earth, 2.solar system and 3. Milky Way).  What would be the fate of Gravitational force and other forces of nature if the expansion continues.  What happens to the dark energy and dark matter then?  Won't all the dark energy be used up in the acceleration process?


How to add an eyedropper functionality to prop_search in my addon?  col.prop_search(scene, "string_property", context.scene, "objects")   This code will create prop_search just like on the animation below, but without an eyedropper.


My neighbor indicates her Gateway SX2110G Windows 10 returns ""  Assume that the hard drive has failed and needs replacing.  It's an older machine, so I ordered an SSD and plan to install Win-10 from USB stick.  When activating, will the MS activation server recognize the configuration details (CPU serial, LAN MAC ID, etc.) and activate the fresh SSD Win-10 install?  I would like to understand the obstacles to activation, because if it is too much, then I will consider an alternative (Ubuntu).