Returning to D&D from 2nd Edition, what are the things I should look out for

I have agreed to introduce a friend to D&D but I haven't played since AD&D 2nd Edition. I was more often a player than a DM but I am okay with performing that role. I will be starting our part off with the 5th edition Starter Set but is there anything I need to be aware/careful of making the transition?


There is an element of order $51$ in the multiplicative group $(Z/103Z)^∗.$

How to show that there is an element of order $51$ in the multiplicative group $(Z/103Z)^∗.$  I can't use Cauchy's theorem since $51$ is not prime.


is it possible to use ubuntu 14(trusty ) as a live usb?

I have ubuntu 14 iso and also have successfully installed it alongside win8(uefi, and it was fairly difficult). now I am able to boot into both as needed.  But i want a os that i can carry around in an usb, along with user files. how can I install this ditro as live? is it even possible?  I am a total newbie to linux and having linux in my hdd is not motivating me to make the most out of it. if it was portable i would be a lot more interested.  thank you.


Why couldn't the Ministry of Magic use Veritaserum to question Winky about Barty Crouch Jr.'s Testimony?

Since Winky was present at the testimony of Bartemius Crouch Jr. (in the Defense Against the Dark Arts office), she would have remembered it. In addition, she could confirm that what he was saying was true. Why did McGonagall and Dumbledore give up on finding evidence for Crouch's testimony after he was administered the Dementor's Kiss?  In addition to confirming Crouch's testimony with her own, she could also provide her memories that would be visible through use of a Pensieve, and along with those of Snape, Dumbledore, McGonagall, and Harry, this would have made for VERY convincing evidence. In addition, who is to say that Crouch lost his memory after the Dementor's Kiss? Do dementors suck out memories in addition to the soul?


How do I set up a wireless connection after install Ubuntu Server 15.10? (systemd)

I tried lshw -C network and my wireless interface says DISABLED.  How do I re-enable it and connect it to the available wireless network?  It's an Intel 3945ABG and it worked fine in the installer to download the updates etc.


Add folder to Windows 10 Explorer's Folder section

How can I add some of my folder (as in image, svn) to the Folder section? And, how can I remove the folder I never use (Pcitures / Videos / Music) from this section?


I have my website, I need to check browser compatibility of my website across all browser and OS combinations. Sp Is there any other way to test websites on different operating systems instead of setting up a new OS machine?


Listings package split frame when the page ends

When I use the listings package with frame in my code the frame "breaks" when the page ends and it is open in the end of the page. I want the frame to be complete with four sides and continue in the next page again with all four frame sides complete. How can I do this? Why does the frame "breaks"?


Check if square root is a perfect integer in Java

I get that this topic has been discussed a lot, but other links haven't taken me anywhere on this problem. If someone would be kind and help, I'd really appreciate it.   I need to find out if the numbers square root gives us a perfect integer. And, then I need to count how many of them gave us that. I also have to count all the numbers, which I did that, but I can't seem to get around this one. The numbers are 64 bit (long).  To sum it up: I have to input a few numbers, then count how many numbers are. I did that. And then, find if any of these numbers, when in square root, give us a perfect integer. I hope I'm clear.  Any help? Thank you! :)


Please why does  \begin{document} \begin{tikzpicture} \foreach \x [remember=\x as \lastx (initially A)] in {B,...,H}{%   $\overrightarrow{\lastx\x}$, } \end{tikzpicture} \end{document}   give  Missing character: There is no , in font nullfont!   in the log file while in document body? Removing the comma (,) after $ relieves the warning.


Add a key and array to object in Javascript

I have an array called Cars. How do I get from this: [     {         "id": 1,         "type": "Car",         "maxPerson": 4,     },     {         "id": 2,         "type": "Car",         "maxPerson": 5,     } ]  to this. [     {         "id": 1,         "type": "Car",         "maxPerson": 4,         "owner": {             "username": "jsmith",             "firstname": "Joe",             "lastname": "Smith"         }     },     {         "id": 2,         "type": "Car",         "maxPerson": 5,     } ]  Assuming I know the index of the item. I have tried: const newOwner = {owner: {username: "jsmith", firstname: "Joe", "lastname": "Smith"}; Cars[index].push(newOwner)  but get: Cars[index].push is not a function


Something something: and the Scourge of (Rykard?)

I had a wonderful fantasy book, which was part of a series, in the mid '90s. On the cover was a man that looked like Kratos from God of War.  In the story, he at one point got a gem shoved into his chest by an old wizard that was giving him powers and glowing.  WTF is this book?  I can't find it ANYWHERE on the internet.  HELP!


Why disabling "Secure Boot" is enforced policy when installing 3rd party modules

When installing 16.04, I was asked to turn off "Secure Boot" if I wanted to install 3rd party modules/drivers.  I did not comply.  And when I installed manually the only 3rd party drivers I use (bcmwl-kernel-source), I was asked again (during the installation of the package) to turn off "Secure Boot".  Using bcmwl-kernel-source was perfectly fine with Secure Boot in 15.10. This does not seem to be related to a bug to me.  So this does look like Ubuntu refuse to sign anymore the 3rd party drivers/modules to make it work (??) with "Secure Boot". Or seem to consider 3rd party modules as insecure and breaking "Secure Boot" hence inforcing to disable it to make it clear ?? Am I right ?


How to stop Play Store from auto-updating itself?

How can I stop Google play from automatically updating to the latest version? I tried deleting my hosts file but it's not being deleted. My phone is rooted.


public void Calculate(double value){         int quarter, dime, nickel, remainder;         value *= 100;         System.out.println(value);   This is part of a simple coin counter program (I'm learning programming)--I have value set to 2.26 but found that I didn't get the desired answer, so I did   System.out.println(value) to pinpoint where I am not getting the value expected. With value =  2.26, I should get 226 but instead I get 225.99999999999997, which throws off the entire program.


Is the set of polynomials of degree less than or equal to $n$ closed?

This question is in relation to the space $C(I)$, $I = [a, b]$. Define $P_n =\{ a_0+\dots+a_nx^n \mid a_i \in \mathbb{R}\}$ (any or all $a_i$ could be zero); clearly $P_n \subset C(I)$. The norm I'm using is $\lVert f\rVert_I = \sup_I |f(x)|$. Is $P_n$ closed under $\lVert\cdot\rVert_I$?   I am almost sure the answer is "yes", but I can't seem to prove it. My first instinct was to biject  $P_n$ to $\mathbb{R}^{n+1}$, using coefficients as coordinates, and prove that sequences of degree-$n$ polynomials converge to degree-$n$ polynomials, but I can't prove that the metric $\lVert\cdot\rVert_I$ is equivalent to the standard metric on $\mathbb{R}^{n+1}$. Next, intuitively given a function $f \in C(I), \notin P_n$ I should be able to find some $\epsilon > 0$ such that there are no low-degree polynomials "nearby", then that function was not a limit point of $P_n$ so $P_n$ is closed. Again I have no idea how to prove this. What should I do?


When to capitalize words such as "lake", and when can the whole word be omitted?

Which of the following sentences are correct?     "He gave two examples of large lakes, Lake Michigan and Lake   Superior."      "He gave two examples of large lakes, Michigan and Superior."      "He gave two examples of large Lakes, Michigan and Superior."      "He gave two examples of large lakes, Lakes Michigan and Superior."   This question is primarily about what variants are formally correct, not which one sounds the best.  I think that the question should be valid for several words of the same kind, such as mountain (Mount), figure (Figure), table (Table) and so on.


Selecting and backspacing a tag just merges its text with that of the tag before it

This is something I found across all S.E. communities.  Whenever I add a tag, and if I find out that the tag doesn't exist on the community yet, deleting this tag is a bit annoying.  See in the following screen capture what happens: when I select the tag to erase it, then press the ⌫ key on my computer, it doesn't delete the tag but instead keeps it and combines its text with the previously entered, validated tag without removing any characters from either of them.   So I have to forward delete at this point, and press Space to re-validate the previously entered tag.  I assume that BkSp/⌫ should delete what is selected, and not mess with the previous tag that was validated.    Mac OS X 10.10, Safari 8.0.8


Is one stronger than the other? More correct? Just curious, one of the many abstract things to pop into my head on the drive home today...


Best linux Distro for older machines? (Macbook end 2009)

My parents have an old laptop (  ) wich start to lag on the last OS version. So I'm looking for a light distro to install.  They only use the laptop to go on internet (any browser) and use Open Office or equivalent. But I need a very intuitive distro 'cause they don't very understand how a computer works and I'm too far away for any computer maintenance (I just can install the distro for Christmas).  I hesitate between Ubuntu with an other DE than Unity  (elementary OS?) or Linux Mint (lighter, but have a quite bad GUI) or buy the OS X Snow Leopard (past version of OSX).  Thanks for your help!  PS: I hope I have not made too many spelling mistakes... ^^'


check if an array "includes" an item in Javascript

I am trying to understand the array "includes" function. My goal is to determine if an array includes a certain item. It works fine for an array of strings but when using objects it doesn't work.        var itemsString = ["name1", "name2"];     var itemsObject = [{ name: "name1" }, { name: "name2" }];     var itemToSearch = { name: "name1" };          console.log(itemsString.includes("name1" ));     console.log(itemsObject.includes(itemToSearch));     console.log(itemsObject.includes(x => x.name === "name1"));     Output:   true  false false   Does "includes" work with objects or do I need to use another function?


$\sum \exp(-n^{ 1/3})$ series convergence

$\sum_n \exp(-n^{ 1/3})$ Should be convergent by ratio test. However it gives me that $a_{n+1}/a_{n}=\exp(n ^{1/3}-(n+1)^{1/3}) \rightarrow 1,n \rightarrow +\infty $ so the limit ratio test fails. Thank you for suggestions.


How can I show that:$$\sum_{k=1}^{n}({k^2})$$ Is equal to: $$\frac{n(n+1)(2n+1)}{6}$$ I know that I would apply the sum formula, should I also be using this formula? $$\sum_{k=1}^{n}k=\frac{n(n+1)}2$$


Getting Joker from the existing groups in Rummikub

I have a group of tiles made up of 3 fours and a joker:     4 4 4 Joker   Now, if a player removes the joker, do they have to replace it with another 4?


Calling a script with ./bla.sh vs. . bla.sh

Can anybody explain to me what the shell does in the two examples A) and B) below? It obviously behaves differently, but I can't find out why the output is different.  Example: Let's have a script in our current directory named bla.sh with only one command: echo ${0##/*} hello  A) Started as: ./bla.sh gives: ./bla.sh hello  B) Started as: . bla.sh gives: -bash hello  Since I use this in a script, the second output (because of the "-" in front of the -bash) kills the command. Of course, a simple -- before the ${...} helped, but I would love to understand what causes the output in the first place.I love bash. And vi[m]. But I digress…


Require `value_type` to be of type `char` using concepts

I would like to create a concept which ensures that the type's value_type member type is convertible to char. (Such as std::basic_string<char>) Here is what I have tried so far (neither of which work): template <typename T> // Error: Template argument for template type parameter must be a type; did you forget 'typename'? concept MyConcept = std::is_convertible_v<T::value_type, char>;  template <typename T> concept MyConcept = requires(T t) {     // Expected concept name with optional arguments     { T::value_type } -> std::convertible_to<char>; };  As far as I am aware, this checks that the type has an actual property called value_type, which isn't what I'm looking for: template <typename T> concept MyConcept = requires(T t) {     { t.value_type } -> std::convertible_to<char>; };  I'm using g++-10 version 10.2.0.


Why did Harry utterly forget Sirius's mirror for months?

In the fifth book of the saga, Sirius gives Harry a mirror so that he could communicate with him with ease without being intercepted. However Harry never thinks about it, even though the whole plot revolves around the need of  communications between them. In fact if Harry remembered that mirror he almost certainly wouldn't have gone to the ministry and the whole ending of the book would be different, no Sirius death etc.  I know that when he received the mirror he didn't want to use it, fearing that Sirius would do something else. However:   Sirius explicitly told him that it was a mean of communication, and given that communication was so important in that book I don't buy that he absolutely never remembers that. They spent way too much time thinking about communication and Sirius to absolutely never think about that ever again.  The first time he goes to Umbridge's office he remembers of an other Sirius gift. Yet he isn't able to even think for a second about what he received the last time. This doesn't feel right. When I think about presents received from a person I usually remember more than exactly one. In fact given he takes weeks thinking about Sirius and taking to him, he must be really dumb to don't ever remember about the mirror. When he finally remembers it's after Sirius death. And what he thinks is that he can communicate with the dead Sirius... When finding out that he is gone he never thinks holy duck! I just killed my godfather for nothing! It's all my fault! I should just jump of the castle and kill myself!. I myself would have been struck by the view of the mirror and start thinking how stupid I was etc, not simply let's try to communicate with him and when this fails nothing changed.   I find this is a huge plot hole. Even accepting that he forgot about it the whole time you cannot tell me that not having even the slightest feeling of guilt about this is normal. I mean everything that happened in the end, especially Sirius death, happened because he didn't remember about that. I'd be incredibly distressed by this.  Is Harry just really really dumb that he didn't even realize that it was all his fault? It's the only logical explanation I can find.  Ps: I know he feels some guilt about falling in Voldemort's trap, but he never seem to realize that if he thought about the mirror before nothing would have happened. in particular what troubles me is that the finding of the mirror after Sirius death doesn't change any of his feelings.    Yet an other thing that doesn't seem to fit I'd that Sirius to seem to forget about that! I mean the first time Harry uses the Floo powder Sirius doesn't even take one second to think why Harry isn't communicating using the mirror. He never mentions it, yet he wastes time asking irrelevant things and telling Harry to study Occlumency. Even if he didn't have time then he ought to tell McGonagall or someone at Hogwarts to tell Harry to look at his gift. Surely the order had some mean of communication to provide a short generic message like that.  Moreover even if Harry hadn't realized what the mirror was, when one year later he finally understand he ought to have at least a thought about it... But nothing. This is to say, the answers to the related question aren't satisfying from this point of view.


I am trying to show that $[A,B^n] = nB^{n-1}[A,B]$ where A and B are two Hermitian operators that commute with their commutator. However, I am running into a little problem and would like a hint of how to proceed.  If A and B commute then $[A,B] = ABA^{-1}B^{-1} = e$ where e is the identity element of the group.  $$\therefore AB=BA$$  $$n=1; [A,B^1] = (1)B^0[A,B] = e$$ This statement is certainly true. however moving on to $n = 2$ I find...  $$[A,B^2] = AB^2A^{-1}B^{-2} = ABBA^{-1}B^{-1}B^{-1} = BBAA^{-1}B^{-1}B^{-1}$$  Where in the last step I have used the fact that A and B commute to rearange the terms. However, it is plain to see that this last term simply reduces to the identity as well and for the n = 2 case we have:  $$[A,B^2] = e \ne 2B[A,B] = 2Be = 2B$$  Clearly I have assumed something I shouldn't have. The fact that there is a multiplicative factor of n implies I should be adding things, but I thought if I kept it as general as possible, the answer should just fall out naturally. I don't want an answer please, only guidance.


Interpreting summary function for lm model in R

What is the meaning of t value and Pr(>|t|) when using summary() function on linear regression model in R?  Coefficients:                               Estimate Std. Error t value Pr(>|t|)     (Intercept)                    10.1595     1.3603   7.469 1.11e-13 *** log(var)                        0.3422     0.1597   2.143   0.0322 *


How can I solve this question   Find all group homomorphisms from $\mathbb{Z_{5}}$ into $\mathbb{Z_{12}^{x}}$?


Grammar: Should the sentence say, "my sister or I" or "my sister or me"?

I read the following sentence, "My mother won't put up with my sister or I swearing." My question is, should the sentence say, "my sister or I" or "my sister or me"?


Is the $n$th root of a positive real number a function?

Consider a simple case: Let $f$ be a function from $\textbf{R}^+$ to $\textbf{R}$, such that $f(x) = \sqrt{x}$. It is known that a positive real number can have two square roots. A basic case: $\sqrt{4} = \{+2, -2\}$. However, this goes against the very definition of a function: "a function is a binary relation between two sets that associates every element of the first set to exactly one element of the second set." (Source: wikipedia) What am I missing?


Where can I ask this question about IS and IT solutions can improve the effectiveness and efficiency of business?

I need to put this      It has been believed that “IS and IT solutions can improve the   effectiveness and efficiency of business processes.” However,   introducing IS and IT will cost money (in some cases millions!)   Therefore, how IS and IT solutions can help and at the same time bring   extra cost?   to a discussion... Where on Stack Exchange can I put the question?


I have a few arrows that I created for usage in math mode. I recently found out that the arrows seem to have a white background (between the two lines). This is a problem for me as I have a gray background in some parts of my document (e.g., definitions have a gray box as background). I created these arrows mostly by copying stuff from the internet and modifying the arrows until they roughly looked the way I had in mind. However, I don't understand how I can modify the background color (the part between the lines). Is it somehow possible to have a transparent background (instead of white)? Thank you for your help! \documentclass{scrartcl}  \usepackage{tikz} \usepackage[utf8]{inputenc} \usepackage{xcolor}  \usetikzlibrary{calc,arrows,decorations.pathmorphing}  \newcommand{\xRightarrow}[1]{     \mathrel{         \begin{tikzpicture}[baseline= {( $ (current bounding box.south) + (0,-0.5ex) $ )}]             \node[inner sep=.5ex] (a) {$\scriptstyle #1$};             \path[draw,implies-,double distance between line centers=2pt] (a.south east) -- (a.south west);         \end{tikzpicture}     } }  \newcommand{\xTwoheadrightarrow}[1]{     \mathrel{         \begin{tikzpicture}[baseline= {( $ (current bounding box.south) + (0,-0.5ex) $ )}]             \node[inner sep=.5ex] (a) {$\scriptstyle #1$};             \path[draw,implies-,double distance between line centers=2pt] (a.south east) -- (a.south west);             \path[draw,implies-,double distance between line centers=2pt] ($ (a.south east) + (-0.079,0) $)--($ (a.south east) + (-0.08,0) $);         \end{tikzpicture}     } }  \newcommand{\xRightsquigarrow}[1]{     \mathrel{         \begin{tikzpicture}[baseline= {( $ (current bounding box.south) + (0,-0.5ex) $ )}]             \node[inner sep=.5ex] (a) {$\scriptstyle #1$};             \path[draw,implies-,double distance between line centers=1.5pt,decorate,decoration={zigzag,amplitude=0.7pt,segment length=1.2mm,pre=lineto,pre length=3pt}] (a.south east) -- (a.south west);         \end{tikzpicture}     } }  \begin{document}  \pagecolor{gray}  \noindent $\xRightarrow{abcde}$ \\ $\xTwoheadrightarrow{abcde}$ \\ $\xRightsquigarrow{abcde}$   \end{document}  The corresponding output looks as follows:


LookAt different object smoothly in unity3d

As picture depicted my camera moving on path i want to lookAt bath different object smoothly. Currently have tried  trasnform.LooAt(activePath.gameObject.transform);   but it producing jerky result. object suddenly lookAt to next object how to avoid it. I searched and found this sloution but it also not working  var targetRotation = Quaternion.LookRotation(activePath.gameObject.transform.position - transform.position);         transform.rotation = Quaternion.Slerp(transform.rotation, targetRotation, Time.deltaTime);


I am from Nigeria, and I have UK visa to visit for 6 months. I didn't use it to travel because I am pregnant and due for delivery. My doctor says I can't travel. Will I be able to get another visa when next I want to travel again? I don't know if this will affect my chance of getting another visa.


Is there a way in photoshop to convert k values to alpha values?

Basically, I would like to make it so that the lighter a pixel is (the more white it has) the more transparent it becomes. Black pixels would be opaque, white pixels would be transparent.  I currently use the slider in blending options on the first tab to get rid of the white and make it transparent but find it works slightly better if I use the magic wand tool with delete.  I figure that there is some blending option out there but there are so many and I'm not sure which to use to achieve my goal.  (Using Photoshop CS6)


System is running low graphics mode after uninstalling Unity

I uninstalled Unity from Ubuntu mistakenly. When I restart the computer I get      The system is running low-graphics mode   I have tried different commands   sudo apt-get autoclean sudo apt-get autoremove   etc but the problem persists.  How can I solve this?


When a new bounty without a comment appears, the add a comment appears half over the grey banner background:    While not a bad bad bug, it is annoying.


What is the sum of the angles of a triangle on Earth orbit?

Gauss went out and measured triangles made up of mountain peaks to show that the angles sum up to 180 degree.  However, general relativity leads to non-Euclidian space and I would like to get a better feeling for it.   What would be the sum of angles in a triangle that has all corners on earth's orbit (and with sides of equal length)? The sides are defined by light beams traveling between the corners.


What would you call this large bowl-shaped container?

What do you call this thing (on the picture)? Laundry and water is put in it.


How does one set the font for text inside a math environment? If I use \setmathsfont(Latin){FontName}, I can change the font for individual letters in the math environment, but not for functions such as \sin. (These aren't controlled by the set "Symbols" either.)  Here's a MWE:  \documentclass[a4paper,12pt]{article}  \usepackage[MnSymbol]{mathspec}  \usepackage[no-sscript]{xltxtra} \defaultfontfeatures{Mapping=tex-text}  \setmainfont{Times}  \setmathsfont(Digits){Times} \setmathsfont(Latin){Times} %\setmathsfont(Symbols){Times}  \begin{document}  Some text digits 1, 2, 3 and some math digits $1, 2, 3$.   Some italic text \textit{text}, and some math text $text$.  But, we have \textit{sin x} and $\sin x$. Or, \textit{arctan x} and $\arctan x$.  \end{document}


Why should one scale variables before performing PCA?

Frankly, this is an old topic, but I am hoping this is a new perspective. Though it is been a while, I am pretty familiar with PCA and all the linear algebra/math beneath it.  I was thinking about using PCA for some task today and was following the standard recipe to normalize features before performing PCA, but couldnt wrap my mind around one detail.  Intuitively, if the dataset is multivariate Gaussian, the contour is an ellipsoid. What PCA does is removing the shorter orthogonal axis after a linear transformation. See image below.    The part that is unclear is that after you standardize your variables, the ellipsoid becomes a ball. All the orthogonal axis have the same length. What is the point of doing PCA then?


How do I access the recovery mode in Ubuntu 18.04? I don't see any form of grub bootloader when the system boots - it just goes straight into the OS.


Is there a closed form for the integral $\int_0^1 x^n \log^m (1-x) \, {\rm d}x$?

Let $n \in \mathbb{N}$. We know that:  $$\int_0^1 x^n \log(1-x) \, {\rm d}x = - \frac{\mathcal{H}_{n+1}}{n+1}$$  Now, let $m , n \in \mathbb{N}$. What can we say about the integral  $$\int_0^1 x^n \log^m (1-x) \, {\rm d}x$$  For starters we know that $\displaystyle \log^m (1-x)=m! \sum_{k=m}^{\infty} (-1)^k \frac{s(k, m)}{k!} x^k$ where $s(k, m)$ are the .   Thus  \begin{align*} \int_{0}^{1} x^n \log^m (1-x) \, {\rm d}x &=m! \int_{0}^{1}x^n \sum_{k=m}^{\infty} (-1)^k \frac{s(k, m)}{k!} x^k  \\   &= m! \sum_{k=m}^{\infty} (-1)^k \frac{s(k, m)}{m!} \int_{0}^{1}x^{n+m} \, {\rm d}x\\   &= m! \sum_{k=m}^{\infty} (-1)^k \frac{s(k, m)}{m!} \frac{1}{m+n+1} \end{align*}  Can we simplify? I know that Striling numbers are related to the Harmonic number but I don't remember all identities.


Used VBoxManage modifyhd --resize, actual size did not change

In continuation to  I used the following commands in order to increase the space available in my virtual machine (Ubuntu):  VBoxManage.exe clonehd "c:\users\a_b\VirtualBox VMs\MyBox_default_1510839571239_2193\Box1.vmdk" "C:\Users\a_b\VirtualBox VMs\MyBox_default_1510839571239_2193\clone.vdi" --format vdi  VBoxManage.exe modifyhd "c:\users\a_b\VirtualBox VMs\MyBox_default_1510839571239_2193\clone.vdi" --resize 102400  VBoxManage.exe clonehd "c:\users\a_b\VirtualBox VMs\MyBox_default_1510839571239_2193\clone.vdi" "C:\Users\a_b\VirtualBox VMs\MyBox_default_1510839571239_2193\Box2.vmdk" --format vmdk   No errors were outputted in the process. However, neither the size of clone.vdi nor Box2.vmdk files was increased to 100GB (that should probably have been my first clue that something was amiss).  I replaced Box1.vmdk with Box2.vmdk as the storage accessed by the VM using the VirtualBox GUI.  When I activated and entered the VM via Vagrant, I checked it size using   df    and saw that the space available to the VM was not increased.  Indeed the sizes available to the two VMs (before and after "resizing") was similar:  Box1:  /dev/mapper/vagrant--vg-root  39625324  13644568  23944840  37% /   Box2:  /dev/mapper/vagrant--vg-root  39625324  13644564  23944844  37% /   How should I proceed to actually resize the VM? If the space is unavailable because the partition needs to be resized, how should I resize it?  Using   sudo resize2fs /dev/mapper/vagrant--vg-root   as suggested in   Yields only   resize2fs 1.42.13 (17-May-2015) The filesystem is already 498688 (1k) blocks long.  Nothing to do!   And   sudo resize2fs /dev/sda1   Yields       resize2fs 1.42.13 (17-May-2015) The filesystem is already 498688 (1k) blocks long.  Nothing to do!   With no changes to size (as evident from the use of df)


I am really not good with regular expressions and I come here for some assistance :). I am trying to combine regular expressions with something like AND. For example if we have a text file with:  abc1-xyz  abc1-ertxyz  abc1xyz  postxyz  abc1   I would like to match everything that starts with "abc1" AND also contains the letters "xyz" somewhere.  I know that I can start with:  /^abc1/   but I am not sure how to combine so it can also match to contain "xyz".  Thank you for your assistance in advance.


Can anyone tell me where this pic was taken?

This image appears on a LG TV screen saver. Does anyone know where in the world is this?  cheers


I have a Visualforce page which consists of questions and inputFields below the question .I want to use Help Text for that field so as to display the Text in place of question.How do i achieve it without using <apex:pageBlockSectionItem> ? My code:  <apex:pageBlock >    <apex:pageBlockSection >       <div class="questions">          <apex:pageBlockSectionItem helptext="{!$ObjectType.Survey__c.Fields.Impact_of_visit__c.InlineHelpText}">             {!$ObjectType.Survey__c.Fields.Impact_of_visit__c.label}              <apex:outputLabel value="{!$ObjectType.Survey__c.Fields.Impact_of_visit__c.Label}" />              <apex:inputField value="{!decision.Impact_of_visit__c}" />          </apex:pageBlockSectionItem>       </div>   </apex:pageBlockSection> </apex:pageBlock>   Its that i have to display 5 questions from the help text of the particular field.And if i use it in <apex:pageBlockSectionItem> ,i get blocks in the page which i dont want to display on the page.


What is time, does it flow, and if so what defines its direction?

This is an attempt to gather together the various questions about time that have been asked on this site and provide a single set of hopefully authoritative answers. Specifically we attempt to address issues such as:   What do physicists mean by time? How does time flow? Why is there an arrow of time?


Allow Post Notices to be Community-Customized Like Off-Topic Close Reasons on SE Network Sites

In their infinite wisdom, SE made it possible for each community to pick its own off-topic close reasons, recognizing that not every community has the same guidelines. The same wisdom should be applied to post notices. Post notices should be allowed to be customized by the moderators in each community to allow proper moderation of answers. Currently there are 6 default post-notices that are universal across the network. While some of these (bounty notices, locked message) are good and universal across the sites, some of them aren't. And some good messages are missing for certain sites that may not be applicable to all the others. Here is the current list of post notices as I understand them. This list should be allowed to be customized by each community within reason (the universal ones, like bounties and locks, should be kept).  Wiki Answer  This question's answer is a collaborative effort: if you see something that can be improved, just edit to improve it! No additional answers can be added here   citation needed  This post does not cite any references or sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.   current event  Post is related to a rapidly changing event.   insufficient explanation  We're looking for long answers that provide some explanation and context. Don't just give a one-line answer: please explain why you're recommending it as a solution. Answers that don't explain anything will be deleted. See  for more information.   bounty  This question has an open bounty worth +X reputation from [user] ending in [time].  or  This question had a bounty worth +X reputation from [user] that ended [time] ago; grace period ends in 23 hours   locked  This post has been locked due to the high amount of off-topic comments generated. For extended discussions, please use chat.    Note: I am not a moderator, so I cannot confirm that these are accurate. I took them from  which should also be updated if these are not accurate


Fix duplicate error sudo apt-get update .Help me!

I trying update security ...  sudo apt-get update   And faiel...  Reading package lists ... Done  W: Duplicate sources.list http://archive.canonical.com/ubuntu/ precise entry / i386 partner Packages  (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages) W: You may want to run apt-get update to correct these problems   How fix?


How to access a refreshed Sandbox in CI/CD?

We are using the classical machine-to-machine approach to connect to our DevHub to create scratch org, but in pre-release we need to connect to sandbox environments, which we would like to refresh nightly. Although the key associated to the connect app we use to sign the jwt is  not changed during sandbox refresh, the consumer id is changed every time we refresh the sandbox How can we get access to the sandbox after we have refreshed it, in CI/CD? If we have access to production, is there a way we can use it to get login access to sandbox?


Verb to be before pronoun in declarative sentences

I saw this sentence in a newspaper cartoon:      Not only are you dysfunctional — you appear to be completely spineless as well.   Is the verb are in the right position?


I'm trying to find the erase geoprocessing method as I am familiar with in ARC, but I can't seem to find it in OGR using Python. I have looked through the module OGR documentation but perhaps I missed it.   An example of the function would be even better.


How to flag questions that show no research or code

When reviewing low quality posts this question appeared  . The question shows no research and no code that has been tried by the asker.  I want to recommend that the post be deleted, but with what reason? The post is, in my opinion, "off topic" as it asks for a solution but not help on a piece of code. None of the "off topic" options seem relevant.   seems relevant. Its answer recommends flagging with "This question does not show any research effort ..." but no such flag option is available to me.


I've created a custom post type called "References" and a custom taxonomy "Genre".  I have 2 terms : Applications and Games.  My problem is that I'd like to show posts associated in Applications on a page (and the same for the games). I believe WordPress do this like doing the same for tags....  In fact, I just need to make a query and getting the current term of the page.  Here is what I tried but I get the same list for each terms page (Applications and Games) :  <?php get_header(); ?>

<?php single_cat_title(); ?>

     <?php      $loop = new WP_Query( array( 'post_type' => 'references' , 'genre' => '') ); ?>     <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>          <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_title(); ?>

<?php the_content(); ?>

          <?php the_post_thumbnail();?>      <?php endwhile; // end of the loop. ?>

  <?php get_footer(); ?>   Hope someone can help me. I've Googled for a week now...


Null Pointer Exception with objectinputstream

I'm trying to read this list of names and phone numbers in. But the the program keeps throwing nullpointerexception. Why is it doing this?  int i=0;         Datab[] b = null;          //b = null;          // The name of the file to open.         String fileName = "datt.dat";          try {             // Use this for reading the data.             byte[] buffer = new byte[1000];             FileInputStream FileIS = new FileInputStream("datt.dat");             ObjectInputStream input = new ObjectInputStream(FileIS);              for(i=0; i<b.length; i++)              b[i]=(Datab)input.readObject();              input.close();


My sister has always wanted a macbook, but I recently convinced her that Ubuntu is a great OS with much more similarity to Mac OS than Windows. She said I can install Ubuntu on her laptop but it is not really big on performance.  Specs: 1GB RAM 120GB harddrive 128MB graphics  I really like the look and feel of Ubuntu and don't want to install Lubuntu or something like that.  Is there a way to run Ubuntu in sort of a 'performance' mode rather than 'appearance' mode? And what other settings can I adjust to increase the performance of the OS?


Why does drawing $\square$ mean the end of a proof?

To end a proof, I often write "as was to be shown" or "q.e.d". Both of these terms make sense to me as a reader. On the other hand, I feel a little strange to put down $\square$ although I  saw it many times here and there. In fact, I learned $\square$ notation here. I wonder if anyone could give me a brief explanation of $\square$ notation in mathematics. Where does it come from? More importantly, how does it logically mean "end" of a proof? Thank you.


I would like to compare vector vs raster data. So i try to fix a problem using both ways.  I made it in vector first :  coastline<-readShapeSpatial("shp") wets<-readShapeSpatial("shp") wetb<-gBuffer(wets,width=500,byid=T) #doing a buffer of 500m of the wetlands wetb2<-gBuffer(wets,width=1000,byid=T) #doing abuffer of 1000 wetb1$vat=0 # assigning a new column of 0 in the buffer i created wetb2$vat=5 # assigning a new column of 5 in the second buffer coastline$vat=10 #assigning a new column of 10 in the rest of the land   Now how would i write the same thing in raster?  My thoughts are that i should turn the coastline and the wetlands into raster first off.How would i do that and what after that?


How do I get this if else statement to work with a String variable? (Java)

The script below is a test script and I can get the if else to run when the variable is an int. But I can't seem to get it to run the if else statement when a string is entered.  import java.util.Scanner;  public class ifelse {    public static void main (String[] args)    {       Scanner keyboard = new Scanner (System.in);        String money;        System.out.println("Enter how much money you have.");       money = keyboard.nextLine();        if (money == "fifty"){        System.out.println("money");       }       else if(money == "seventy"){       System.out.println("Nothing");       }    } }   The code below works and it's using int for the variable.  import java.util.Scanner;  public class ifelse {    public static void main (String[] args)    {       Scanner keyboard = new Scanner (System.in);        int money;        System.out.println("Enter how much money you have.");       money = keyboard.nextInt();        if (money == 50){        System.out.println("money");       }       else if(money == 70){       System.out.println("Nothing");       }    } }   Any help is appreciated. Thank you!


What's the significance of the Blue Hallway before the 'two door' room?

Is there any significance to the Blue Hallway that appears sometimes before the 'two doors' room at the start?  And has anyone else seen this hallway and found out that significance?


Why do $p$ and $q$ have to be different in RSA?

When using RSA cryptography, it is possible to have the decrypted message and the initial message the same when $p$ and $q$ are the same. So why are they always different?


Why is not it possible to write "company files" as "company's files"?  I am not quite sure whether it is correct to say "company's files".


Every app in my Xubuntu 18.04 deleted by Tasksel. Please Help

I tried to remove samba-server with this command (sudo tasksel remove samba-server) and every app even the system apps are deleted and now xubuntu is stuck at boot, just showing loading. What should I do?  Did tasksel deleted my files too?


Would looking out from inside or near a black hole be unimaginably bright?

I have the following assumption based on limited knowledge. A black hole appears dark to us because any light that would be emitted from it, and any light that passes nearby, is caught by the gravity well and either captured or bent from its original course.  If this is true, from any point within the gravity well or towards the center of a black hole, looking outward there would be immense amounts of light and radiation coming in.  Edit for specificity: The idea is not necessarily that a human or object would be looking out while at a point, but theoretically a fixed point that has light and matter passing by.  Of perhaps if we somehow invented something capable of not exceeding but matching the gravitational force and could stay still.  Or a sensor reading at a certain point, pointing a camera or infinite lumen sensor outward.


Riemann Integrable Functions to prove $f(x) =0$

Suppose that $f$ is continuous on $[a,b]$, that $f(x) \geq 0$ for all $x \in [a,b]$ and that $\int_a^b fdx = 0$.   Prove that $f(x) = 0$ for all $x \in [a,b]$.


I can't remember the email or password i used for Pokemon Go

I broke my phone and I never backed it up so I lost everything. Including Pokemon Go. It would've saved my account though, right? I tried to sign in using my username and password but my password won't work! I USE THE EXACT SAME PASSWORD FOR LITERALLY EVERYTHING I HAVE!!! Why would I use something different this one time??? I asked my friends if my username was right or wrong and they all sent me a screenshot of my profile that I sent them and the username was right. I have so many emails that I cant remember which one I used. Any advice on what I should do?


How to determine which variables are dependent or independent?

I'm new to this, and am struggling with the concept of how to determine what is the independent variable and what is the dependent variable.   Here's an example that I think would go a long way for me: I'm studying baseball, specifically the home run rate for all players over the course of the season. Is the player the independent variable, and the home run rate dependent on the player?


I would like to make the diagram  \documentclass{article} \usepackage{amsmath,amsfonts} \usepackage{tikz-cd} \begin{document}     \[         \begin{tikzcd}             A \arrow[r, bend left=40, "H\circ r", ""{name=U}]\arrow[r, bend right=40, "K", swap, ""{name=D}]    &\textbf{Abcd}\arrow[Rightarrow, "\eta", from=U, to=D].         \end{tikzcd}         \] \end{document}   perfectly symmetric. I've been trying to change the parameters after the bend left/right option but I don't think this is the right way to proceed. Is there a standard way to act, which is "robust" with respect to the whole diagram?


Why gravitational waves are not produced by objects moving at constant velocity?

Gravitational wave is produced by change in gravitational field, . If something is moving away from me at constant speed, its gravitational field will vary. But why only accelerating bodies produce GW?


What is the practice of using elaborate introductions to one's idea called?

The following is an exaggerated example: Suppose that three people wanted to express their opinions of StackExchange:  Person A: StackExchange is cool Person B: I think that StackExchange is cool Person C: I have a feeling that I would like to almost allow myself to think that StackExchange is cool  What is the speech pattern of Person C called?


I am an Indian in Germany. I have a type D visa that says 'Deutschland' and its validity is from 1.4.19 to 31.8.19 ( 5 months). I don't have a resident permit, and I am in Germany only for a semester-long student exchange program. I wanted to know if I can travel to other Schengen states in July and August. It's said there is a 90/180 rule with this visa, so I can travel to Schengen states other than Germany upto 90 days in any 180 day period. But, when do my 90 days start; do they start on the day I entered Germany or do they start when I step out of Germany into another Schengen state? Super confused over here and any help will be appreciated, since my travel plans are frozen because of this! Thanks!


I need to monitor the network activities of a process and the bandwidth of the connection. So I decided to use nethog and netperf combine with grep and awk to write the values to a file.   nethog command: nethogs -t  eth0 | grep firefox | awk '{ print $3 }' (I want to take the upload/download speed). The 1st problem is that command doesn't print anything.  More detail: command: nethogs -t  eth0 | grep firefox output:  usr/lib/firefox/firefox-bi�)/4956/1000  0.338867    0.239063 /usr/lib/firefox/firefox-bi�)/4956/1000 0.543555    0.274219 /usr/lib/firefox/firefox-bi�)/4956/1000 0.794531    0.489844 /usr/lib/firefox/firefox-bi�)/4956/1000 0.794531    0.489844 /usr/lib/firefox/firefox-bi�)/4956/1000 0.749023    0.589844 /usr/lib/firefox/firefox-bi�)/4956/1000 1.30098 3.47617 /usr/lib/firefox/firefox-bi�)/4956/1000 1.90449 8.0127 /usr/lib/firefox/firefox-bi�)/4956/1000 5.31641 25.0033 /usr/lib/firefox/firefox-bi�)/4956/1000 8.60762 42.0176   I want the two values at the bottom right. But as you can see the output ain't consistent (the space), add | awk '{print $3}' most of the time return nothing. And I can't fix this.  netperf command: netperf -H 192.168.1.10 and the output is:  Recv   Send    Send                           Socket Socket  Message  Elapsed               Size   Size    Size     Time     Throughput   bytes  bytes   bytes    secs.    10^6bits/sec    524288 524288 262144    10.00    **718.62**   I want to print the value on the bottom right but have no idea how to. That's the 2nd problem => solved by  fedorqui!  Can you guys help me out? Any ideas will be appreciated!


stack is popped in function still still shows in main function.Isn't the call should be by reference for the vector given

stack is popped in function still still shows in main function.  Isn't the call should be by reference for the stack given.        void showstack(stack <int> s)  {          while (!s.empty()) {              cout << '\t' << s.top();              //stack getting popped             s.pop();          }      }       int main () {          stack <int> s;          s.push(10);          s.push(30);          s.push(5);          s.push(1);          cout << "The stack is : ";          showstack(s);          //The stack should be empty here.         cout << "\ns.size() : " << s.size();//size should not get displayed          //top should be empty         cout << "\ns.top() : " << s.top();          cout << "\ns.pop() : ";          s.pop();          showstack(s);          return 0;      }


Sometimes I like to browse my spam folder, to make sure I'm not passing by something that is important. The problem is that there is so much spam that is even hard browse through it.  I notice some very distinguishable patterns, and I was wondering if there is some way that the emails that meet those patterns could be 100% deleted automatically, to help me browse through the folder with more ease.  For instance:  "Delete all mails that are detected as spam and contain the word 'viagra'"  Is there a way to do this?


Are the planets we see in Star Wars colonised? Or homeworlds?

Lots of planets seem to have only one or two locations where the action takes place -  Naboo: Theed Tatooine: Mos Espa / Mos Eisley Iego: The city where Jaybo lives Bespin: Cloud City  Is this the equivalent of aliens always managing to find either New York or London in Earth sci-fi? i.e. It discounts the vast majority of civilised areas in favour of one or two population centres. Or is it a result of planets being colonised by small settlements, and the resulting populations being fairly central? e.g. The coastal cities of westerners in early Australia.


Scatter plot with text labels and colors from table with pgfplots

I want to scatter plot points from table with colors and text labels from table. Choosing colors works with classes but labels are parsed as numbers and appear as "nan".    \documentclass[tikz]{standalone}  \usepackage[utf8]{inputenc} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture} \begin{axis}[enlargelimits=0.2]     \addplot[         scatter/classes={a={blue}, b={red}},         scatter, mark=*, only marks,          scatter src=explicit symbolic,         nodes near coords*={\label},         visualization depends on=\thisrow{label} \as \label     ] table [meta=class] {         x y class label         0.5 0.2 a A         0.2 0.1 b B         0.7 0.6 a C         0.35 0.4 a D         0.65 0.1 a E     }; \end{axis} \end{tikzpicture}  \end{document}   How do I stop pgfplots from parsing the labels?


Can OpenGeo Suite be deployed in production environment (using WAR package) for free?

Is there a possibility to use OpenGeo Suite in production environment (using the WAR package) for free?  Actually we are planning to deploy on a glassfish (alternatively Tomcat) container openGeo Suite. In a first step we think we can manage to set everything ourselves, thus we don´t need any support of OpenGeo. The pricing for the WAR package with glassfish costs 45000$ and what I understood it is only for the support. Can we get the WAR package for free if we don´t need any Support?


I have a question about money.  We have different sorts of money such as blood money and I was wondering what stolen money is called.  Is there any kind of specific word for this type of money?


How to reuse a rim after the brake edge has been damaged

My chain fell of and got stuck a few days ago (i ride fixed gear) and made a real mess of my back rim.  I noticed 2 marks on the brake edge of the rim where the chain scraped along. they are not very deep (under 1mm) and 1-2cm long.  Is there any way i can make the rim brakable again, without having to change my brake pads once a week? Since the incident i haven't been using the back brake because of this...


Doing some experimentation I consumed two of the same item of food from my inventory and when I returned the game screen I only had the remaining time of a single item.  So eating two 'Meat' with a 10s vitality regen timer, you'll only get 10s of regen.  As the duration doesn't stack, is the effect of eating multiple food items cumulative? Will I get double the regen in the same amount of time? Or are extra food items just 'lost'.


Prevent authentication from specific machines

I have two domains PRIMARY and DEV. These both contain matching service accounts for various applications. PRIMARY also contains user accounts  We have a one way trust relationship such that DEV trusts PRIMARY so that users do not need matching accounts to log into DEV machines. However, we want to prevent DEV service accounts from trying to hit resources in PRIMARY (and because password is different, it causes the service account in PRIMARY to become locked).


Hide the fact a site is using WordPress?

I have a website for which we are trying to be discreet about the fact that we are using WordPress. What steps can we take to make it less obvious? EDIT- Important security note: Please understand that doing this perfectly is impossible as per Mark's , so don't rely on this as a security measure.


REST API HTTP CallOut error in same domain

I am using this code to call a REST API inside my same domain           HttpResponse res = new HttpResponse();         Http http = new Http();          req.setEndpoint('https://chaarvim-dev-ed.my.salesforce.com/services/data/v48.0/composite/tree/Account/');         req.setMethod('POST');                 req.setCompressed(false);         req.setBody(strRequest);         req.setHeader('Content-Type', 'application/json');         req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionID());           try {             res = http.send(req);                  } catch(System.CalloutException e) {             System.debug('Callout error: '+ e);         }   But i am getting   [{"message":"This session is not valid for use with the REST API","errorCode":"INVALID_SESSION_ID"}]  Any Suggestions please.


Einsteins theory of relativity and formula of kinetic energy

After seeing both Einstein's theory of relativity ($E=mc^2$) and the formula of kinetic energy (K.E=$\frac{mv^2}{2}$), I noticed that that they are mostly the same, with the only difference that Einstein's theory uses a specific speed, namely of light, while the kinetic formula uses the object's speed. Is the similarity a coincidence, like with density [mass/volume] and concentration [mass of solute/volume of solution]? Was one derived from the other?


How to prove this inequality $\left|x\sin{\frac{1}{x}}-y\sin{\frac{1}{y}}\right|<2\sqrt{|x-y|}$?

For any real numbers $x,y\neq 0$,show that $$\left|x\sin{\dfrac{1}{x}}-y\sin{\dfrac{1}{y}}\right|<2\sqrt{|x-y|}$$ I found this problem when I dealt with . But I can't prove it. Maybe the constant $2$ on the right hand side can be replaced by the better constant $\sqrt{2}$? Thank you.


I was wondering what is the value of $\lim\limits_{x\to 0+} x^{x}$.  Assuming that the limit exists, I could show using the usual logarithm techniques that the limit is $1$. However, I am not able to show that the limit exists. Could some one help on that?  EDIT: It would be so nice if we could do it without l'Hopital...


Is the conversation below correct in past tense?     Girl:  Why are u leaving now?   Boy:  I had asked you to come at 6 o'clock but you came at 7 o'clock. It's late now.   Can I use past perfect tense here?  This is because asking to come at 6 o'clock is the first action and coming at 7 o'clock is the second action.


How to fix "System.QueryException: List has more than 1 row for assignment to SObject"

While cloning record i am getting the below error in the 1st line of the code, the SOQL. Can anyone help me with that.  XX_Segment__c desc1 = [select  Id, XXX_New_Keyword_Description__r.Description__c from XX_Segment__c where Availability_Forecast_XXX__c =:id1]; String s= desc1.XXX_New_Keyword_Description__r.Description__c; s= s.substring(0,3); String s1 = s+'%';   Regards


Proving the limit at $\infty$ of the derivative $f'$ is $0$ if it and the limit of the function $f$ exist.

Suppose that $f$ is differentiable for all $x$, and that $\lim_{x\to \infty} f(x)$ exists.  Prove that if $\lim_{x\to \infty} f′(x)$ exists, then $\lim_{x\to \infty} f′(x) = 0$, and also, give an example where $\lim_{x\to \infty} f′(x)$ does not exist.  I'm at a loss as to how to prove the first part, but for the second part, would a function such as $\sin(x)$ satisfy the problem?


What is the relation between the Laplacian Operator and the Laplacian Matrix?

In what way are the Laplacian operator (defined on functions from $\Bbb{R}^n$ to $\Bbb{R}$ which are twice-differentiable) and the Laplacian matrix (defined on simple graphs) similar or related?


“Add comment” button should not fail review audit

While reviewing , I was shown .  I thought it was a good question, and I wanted to ask what the term odr-used means, so I pressed add comment.  For daring to taint a good question with my filthy comment, I was struck down:   Now I cannot make any more reviews.     You have made too many incorrect reviews. For an example of a task you   should have reviewed differently, see:   .      Come back in 2 days to continue reviewing.   Review audits should not fail due to the add comment button.


I have tried to set up a scheduled backup of my Minecraft server. I used a script I found on GitHub at  and it seems to work great when I run it from the terminal directly.  The cronjobs I have set up however doesn't work for some reason. In mails I get these error messages:     Hexxit Server is running, suspending saves... su: must be run from a terminal   su: must be run from a terminal   su: must be run from a terminal   done   Backing up hexxit-01... done   Total backup size (175 MiB) <= (5000 MiB)... done   Hexxit Server is running, re-enabling saves... su: must be run from a terminal   su: must be run from a terminal   done     The main problem seems to be su: must be run from a terminal and I assume this has to do with security issues on the server and not the script, so that's why I'm asking here.  It's more or less a freshly installed instance of Debian 7.1.0 x64 with one user on it, mc. How do I fix it so that this script runs successfully?  The cronjobs look like this and have been added using crontab -e  */15 * * * * /usr/bin/minebackup backup 0 0 * * * /usr/bin/minebackup backup full     I've been searching around for a bit and I have a feeling I need to edit /etc/sudoers, but the line which I was supposed to comment away isn't even in the file, so I don't know if Debian has changed its defaults or... eh?  Defaults        env_reset Defaults        mail_badpass Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"  root    ALL=(ALL:ALL) ALL  %sudo   ALL=(ALL:ALL) ALL  #includedir /etc/sudoers.d


Oracle - Any way to view uncommited changes to a particular table?

I'm debugging through a batch process currently that does a lot of DML statements, but doesn't do a commit right away.  It would be nice to be able to view the "pending" changes from another session while the transaction is not committed.  Is this possible?  Example:  Insert into table myTable (col1, col2) values ("col1", "col2");  --Somehow view the pending transaction maybe by system view?....  ...other DML statements....  commit;


Profiting from predictable periodic swings in the stock market: Where does the money come from?

Since Donald Trump has started to impose tariffs and periodically threatening to impose more tariffs, we see that the stock market tends to go up and down. When the stock market goes down by a sufficient amount I put in money in my stock account (which my bank invests this money in index funds). Then I wait until the stock market recovers,  I withdraw that extra money I had put in. I then calculate the profit made by this intervention (this takes into account the extra transaction fees). Having done this a few times, my conclusion so far is that doing this seems to be more profitable compared to always leaving that extra money in the stock account.   The question is then where the extra gains I and presumably many other investors are able to make, is coming coming from. Could it be institutional investors like pension funds who have to stick to rigid rules for selling stocks when the price drops?


Here's my PS1 variable:  PS1='\u:\W$(__git_ps1 "\e[32m\][%s]\e[0m\]")$ '   Works great for picking up my Git branch, but it has the unfortunate side-effect of wrapping the lines when the colours are active, so that they overlap when you use long commands.  Can anyone with magic PS1 skills help me out to fix this?


Email address validation in C# MVC 4 application: with or without using Regex

I have an MVC 4 web application and I need to enter and validate some email addresses, without sending an email to the user's email address.  Currently I am using basic regex email validation with this pattern:  [RegularExpression(@"\A(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)\Z",         ErrorMessage = "Please enter correct email address")]   Although this is validating email addresses, it passes 1@1.1 as a valid email address. For the moment I have a validation that requires symbols @ symbols . symbols where the symbols can be numeric/alphabetic and ._- .    I need more standard email validation for my MVC 4 application. How do I do that?


I Installed Ubuntu on a Windows XP computer (completely installed not side by side) I have 1 gb of RAM with a Pentium 4 processor Ubuntu version is 15.04 it runs as slow as heck is there any way to speed up my computer or to revert to windows xp with out the boot disk for XP? I am thinking of getting a SSD though but I have no idea wether to get Sata III or less


Im trying to install Visual Studio 2015 on Windows Server 2012 R2. And even after run windows update and install everything cant install it.    Now I try to go the windows update   And even when show windows 2012, the link go to window 8 files     And if I try to install that file say the "update isn't applicable to this device"    And show the following error in the Event Log     La actualización de Windows  no se pudo instalar debido a un error: 2149842967 "". (Línea de comandos: ""C:\Windows\system32\wusa.exe" "C:\Users\juan.oropeza\Downloads\Windows8.1-KB2919355-x64.msu" ")   So what I do to install the update?


Prove that: $\operatorname{cosec}(2A) + \operatorname{cosec}(4A) + \operatorname{cosec}(8A) = \cot(A) - \cot(8A) $

How can we prove $\operatorname{cosec}(2A) + \operatorname{cosec}(4A) + \operatorname{cosec}(8A) = \cot(A) - \cot(8A)$?


PXE-E61: Media test failure, check cable and PXE-MOF: Exiting PXE ROM

Yesterday, my friend's laptop fell down on the floor. Because it is quite robust we though that it won't leave a mark. But we were wrong. Upon boot strange noises began to come out of the inside of the laptop. Then, the boot logo appeared as normal. But continuing onward, we were met with this message:     Intel UNDI, PXE-2.1 (build 083) Copyright (C) 1997-2000  Intel Corporation  This product is covered by one or more of the following patents: US6,570,884, US6,115,776 and US6,327,625  Realtek PCIe GBE Family Controller Series v2.57 (08/27/13) PXE-E61: Media test failure, check cable PXE-MOF: Exiting PXE ROM    Then, the BIOS error audio began bleeping like crazy and wouldn't stop until we turned the laptop off.  I think it is safe to conclude from the scratching noises that some hardware was damaged and that a technical support will be needed. I am only a bystander, but even so, I am curious what are the possible reasons for this error. Please, satiate my thirst for knowledge.  And just a little bonus for my friend: I am convinced that we cannot restore the computer by ourselves, but if anyone does have a solution, which doesn't include taking the laptop to repair (I doubt), please tell us. We are very grateful for your help.


Weinberg Vol. I (9.2.15) writes: $$f(+\infty)+f(-\infty) = \lim_{\epsilon\to0^+}\epsilon\int_{-\infty}^{\infty}\!d\tau\,f(\tau)e^{-\epsilon|\tau|}\;.\tag{9.2.15}$$ But I can't prove this formula, nor can I get it to work numerically. Here is the value of such an integral (y-axis) vs. $-\log_{10}\epsilon$ (x-axis):    The actual value is supposed to be 2. There is a little bump at $I=2$ but no convergence. I used $f(x) = 1+ \tanh(x/2) + \exp(-x^2/4)$.


Sine is algebraically less than cosine in given interval.

Prove that Sine is algebraically less than Cosine for any angle between $2n\pi-\dfrac{3\pi}{4}$ and $2n\pi+\dfrac{\pi}{4}$.   My attempts:  $\sin \bigg(-\dfrac{3\pi}{4}\bigg)=\cos \bigg(-\dfrac{3\pi}{4}\bigg)=-\dfrac{1}{\sqrt{2}}$.  Now when moved further  $\sin$ will starts increasing in magnitude (till $\dfrac{-3\pi}{2}$) and $\cos$ will decrease, hence because they are in $3^{rd}$ quadrant $\implies\sin<\cos$.  Now if we enter  $4^{th}$ quadrant $\cos>0$ and $\sin<0$ till $2\pi$ $\implies\cos>\sin$.  Now if we cross $4^{th}$ quadrant $\sin\uparrow$, from $0$ and $\cos\downarrow$, from $1$, and becomes euqals at $\dfrac{\pi}{4}$, will imply $\cos>\sin$ till $\dfrac{\pi}{4}$. Hence the results.  But is there any way to do this with pure algebra, without these intuitions.  Please help.


Is there a word that covers both Null and Undefined?

I sometimes have to write code in JavaScript that handles both null and undefined the same way. For example, a function that removes from an array every item that is either null or undefined. How should I name the function?  removeNullAndUndefined is very long. removeNull is short but imprecise. Ideally I want to name it removeX, where X has the meaning "null or undefined".   Does anyone know a good word for X?


Block user from connecting MiFi units to computers

The scenario: a user connects a MiFi device to a computer on the Windows Domain network to charge it. This MiFi acted as a network interface and the computer's network traffic started going out through the MiFi.   This is obviously not wanted as this bypasses our network security.  How can I prevent such a situation to occur (other than telling users to not do that... since they do it anyway).   Ideally, users would not be permitted to connect any new network devices (could be MiFi, a 3/4G USB dongle, even a USB-Network adapter). It should require an Administrator logon. But USB storage devices should still work (I have policies in place for some users to get Read/Write and some Read-only).


Find all functions $f(x)$ such that $f(x)+f\left(\frac{x-1}{x}\right)=2 x+4$

Here we have $$f(x)+f\left(\frac{x-1}{x}\right)=2 x+4$$ Find the function $f(x)$.  Firstly, I let $t=\frac{x}{x-1}$ then I got the equation $$f\left(\frac{1}{t-1}\right)+f(t)=\frac{4t-2}{t-1}$$ After that I don’t find any notices to do more.  Please kindly give me a hint . Thank beforehand!


cut empty lines from a file (bash script)

I am trying to get rid of all the empty lines from a file but I do want to preserve "\n" after every non empty line. Problem: command works correctly if used in CLI but as soon as I use any command in a bash script it removes all "\n" so I have all my results in one line instead of having them in separate lines. here is my code: #printing second and third word from every line and remove lines that do not contain any digits     result=$(cat "$output_file" | awk '{print $2" "$3}' | sed 's/[^0-9]*/\\n/')     echo -e ""$result"" > "$output_file"  #getting rid of all empty lines but what happens is that the whole file becomes one line     no_empty_lines=$(cat "$output_file" | awk NF)     echo -e ""$no_empty_lines"" > "$output_file"  file to edit:  > 135.121.62.246 7.4  > 135.121.160.65 7.8  > 135.121.106.56 7.5  >   >   > 135.121.106.96 6.2  >   >   > 135.121.160.106 10  >    > 135.121.90.46 commandFailed  demanded result: file to edit:  > 135.121.46.246 7.4  > 135.121.106.46 7.8  > 135.121.106.56 7.5  > 135.121.106.96 6.2   > 135.121.160.16 10  > 135.121.90.46 commandFailed


Does the equation $\displaystyle min_{x,y} f(x,y)=min_{y}min_{x}f(x,y)=min_{x}min_{y}f(x,y)$ always hold for a minimization problem?

For a minimization problem of function $f(x,y)$, does the equation $min_{x,y} f(x,y)=min_{y}min_{x}f(x,y)=min_{x}min_{y}f(x,y)$ always hold?  I saw this equation somewhere. It does the minimization in a sort of iterated way, treating either $x$ or $y$ as a constant first. But what about a saddle point? If I use Hessian matrix to consider the convexity of $f(x,y)$, it will let me know it doesn't work if there's a saddle point, while this iterated method may still give me a value.  I think this kind of problems falls into optimization, and I also wonder if  $min_{y}max_{x}f(x,y)=max_{x}min_{y}f(x,y)$ holds.


$$ -1=(-1)^1=(-1)^{2\frac{1}{2}}=((-1)^2)^{\frac12}=1^\frac12=1 $$ I can't find a mistake. I think it might be that $$a^{mn}=(a^m)^n$$ doesn't hold for all $$a,m,n$$ but I don't know exactly. Can anyone help?


Is there a way to get a System.Configuration.Configuration instance based on arbitrary xml?

I'm trying to unit test a custom ConfigurationSection I've written, and I'd like to load some arbitrary configuration XML into a  for each test (rather than put the test configuration xml in the Tests.dll.config file.  That is, I'd like to do something like this:  Configuration testConfig = new Configuration("<?xml version=\"1.0\"?><configuration>...</configuration>"); MyCustomConfigSection section = testConfig.GetSection("mycustomconfigsection"); Assert.That(section != null);   However, it looks like  will only give you Configuration instances that are associated with an EXE file or a machine config.  Is there a way to load arbitrary XML into a Configuration instance?


I usually changed my MAC address with the following commands:  # Get a New MAC Address openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' # Changing the MAC Address sudo ifconfig en0 ether d4:33:a3:ed:f2:12   When I enter:  ifconfig en0 |grep ether   I still get the old MAC address :( - Who can help? I would love to have a script or system to automatically change it on system boot.


I am trying to add in PHP the string "0" to a one-digit-number, which is a string as well e.g."1" if it is less then ten in order to always have two digits.  I then want to get the string "01" for example in a new variable.  Defining all three variables with either strval() or (string) just returns the result variable as an int again nevertheless.  Any ideas? That is the code I tried: $zero = "0"; $number = "1"; $zero = strval($zero); $number = strval($number); if ($number < 10) {     global $zero;     global $number;     $result = strval($result);     $result = $zero + $number; } echo var_dump($result);  Unfortenately it always returns int(1) An alternate approach would be to do the same with int and convert it to str in the end, but I have no idea how 0 + 1 could result in 01 instead of 1


Applying javascript rules to cloned element

Each time the user clicks the 'add pizza' button, I would like the page to produce another pizza form and add any costs of the additional pizza. I have been able to add a pizza form, but none of the adding up rules are being applied to the cloned element. Any ideas?  HTML:
         <fieldset>             <form class="pure-form">             <legend>Pizza</legend>             Pizza Type: &nbsp;             <select id="pizza">                 <option name="margarita">Margarita</option>                 <option name="deep-pan">Deep Pan</option>                 <option name="stuffed-crust">Stuffed Crust</option>             </select>                                  Pizza Size: &nbsp;                 <select id="pizzaSize">                     <option name="e-small" id="4.99">Extra Small - £4.99</option>                     <option name="small" id="5.99">Small - £5.99</option>                     <option name="medium" id="6.99">Medium - £6.99</option>                     <option name="large" id="8.99">Large - £8.99</option>                     <option name="e-large" id="9.99">Extra Large - £9.99</option>                     <option name="f-size" id="10.99">Family Size - £10.99</option>                 </select>                              </form>         </fieldset>         <fieldset style = "border-top:0px">         <form class="pure-form">             <legend>Toppings (99p Each): &nbsp;</legend>             <input type="checkbox" name="onions" id="0.99">Onions</input>             <input type="checkbox" name="mushrooms" id="0.99">Mushrooms</input>             <input type="checkbox" name="peppers" id="0.99">Peppers</input>             <input type="checkbox" name="olives" id="0.99">Olives</input>             <input type="checkbox" name="garlic" id="0.99">Garlic</input>             <input type="checkbox" name="peperoni" id="0.99">Peperoni</input>             <input type="checkbox" name="cheese" id="0.99">Pesto</input>         </form>         </fieldset>

     <button id="addPizza"> Add Pizza </button>   JavaScript:  var pizzaCost = 0.00; var toppingCost = 0.00; var sideCost = 0.00; var drinkCost= 0.00; var desertCost = 0.00; var desertSizeCost = 0.00; var drinkSizeCost = 0.00; var sideSizeCost = 0.00;  $("#pizzaSize").prop('disabled', true);  $("#pizza").change(function() {     $("#pizzaSize").prop('disabled', false); })  $( "#pizzaSize" ).change(function() {     $("input[type='checkbox']").prop('disabled', false);     var selectionPrice = $('option:selected', this).attr('id');     var selectionInt = parseFloat(selectionPrice, 10);     pizzaCost = selectionInt;     calculateCost(pizzaCost, toppingCost, sideCost, drinkCost, desertCost, desertSizeCost, drinkSizeCost, sideSizeCost); });  $('input[type=checkbox]').change(function(){     var checked = $(":checkbox:checked").length;     toppingCost = 0.99 * checked;     calculateCost(pizzaCost, toppingCost, sideCost, drinkCost, desertCost, desertSizeCost, drinkSizeCost, sideSizeCost); });  function calculateCost(pizzaCost, toppingCost, sideCost, drinkCost, desertCost, desertSizeCost, drinkSizeCost, sideSizeCost) {     var total = pizzaCost + toppingCost + sideCost + drinkCost + desertCost + desertSizeCost + drinkSizeCost + sideSizeCost;     $("#totalPrice").text(total.toFixed(2)); }  $( "#addPizza" ).click(function() {   $("#pizzaForm").clone().appendTo("#extraPizza"); });


Is $\sum_{n\geq1}\frac{1}{n^3 \sin^2 n}$ a convergent series?

I have tried to evaluate the following sum:  $$\sum_{n\geq1}\frac{1}{n^3 \sin^2 n}$$ to test whether it is a convergent series  using standard method like creterion test really I think that $ \sin^2 n$ Bounded sequence which is its multiplicative inverse multiplied by a convergent sequence , But my problem is about the Growth rate of :$\dfrac{1}{\sin^2 n}$ seems not clear to me , Now am not able to test the convergence of this series, anyway ?


I'm currently developing a blender plugin, and need to be able to show drop down lists where users can choose a material and object from the project, but I can't work out how to do it.  Does anyone have an idea how this is done?


How do I make a textbox that only accepts numbers?

I have a windows forms app with a textbox control that I want to only accept integer values. In the past I've done this kind of validation by overloading the KeyPress event and just removing characters which didn't fit the specification. I've looked at the MaskedTextBox control but I'd like a more general solution that could work with perhaps a regular expression, or depend on the values of other controls.  Ideally this would behave such that pressing a non numeric character would either produce no result or immediately provide the user with feedback about the invalid character.


On the absolute value of Jacobian determinant - variable transformation in multi-integral

I would like to change some variables in a integral and encountered to an issue. I create here 2 simple examples to describe my questions:  Exp 1. Suppose we want to change $(x,y)$ to $(u,v)$ such that: $x= u + v$ and $y= -u -2v$.  Using the Chain Rule: $$dx dy = (du + dv) (-du -2dv) = -2du dv -dv du = -2du dv + du dv = -du dv.$$  On the other hand, using the Jacobian determinant formula, we need the absolute value of Jacobian determinant, which is $|-1| = 1$. So:  $$dx dy = 1. du dv = du dv \ne -du dv.$$ (Ref: )  What was wrong here?   Exp 2. With one variable, we have $dx = x^'_u du$ - so no absolute value is needed. What is the main difference between the one variable case and the multi-variables case?  I really appreciate if anyone could give me good references for this. Thanks in advance!


javascript functions differences defining

When defining a function, what is the difference between these 2 ways:      function t1() {}     var t2 = function() {}    Is t1 a function itself and t2 a reference to function?


If not used when misgendering, making unasked for assumptions about gender or in a hostile context, can usage of the words female/male be insulting?  More specifically: can a non-native speaker be accidentally insulting by using female/male describing human genders, for example in a internet discussion.   Background: In my native language Swedish, the term used for animals' genders differs from the one most commonly used to describe human gender. If you would use the words for animal gender for a human it would either sound a bit weird/unusual/humorous or insulting/demeaning depending on context. I used Google Translate for:   Swedish (the terms used for animals)->     English (got female/male)->     Swedish (got the terms used for humans).   I could interpret this as English lacks the distinction but human-specific gender-words exist in English as well: woman/man. A quick websearch show me a lot of usage of female/male for humans so clearly it can be used without being odd/insulting. In order to avoid being accidentally insulting in the future: are there times when I should not use female/male for humans?  Edit: Found an example of someone (seemingly) offended by "female" in the comments to this question (Look for user33333)


How do I migrate my Stack Overflow question to Server Fault?

How do I migrate my question from Stack Overflow to Server Fault?  I searched how to migrate in Meta Stack Overflow, but I didn't absorb how to do it.


A slick proof that a field which is finitely generated as a ring is finite

It is a known fact that if $k$ is a field that is finitely generated as a ring, which is the same as having a surjective ring homomorphism $f:\mathbb{Z}[x_1,\dots,x_n]\to k$ for some $n\in \mathbb{N}$, then $k$ must be finite. Since finite generation as a ring implies finite generation over the prime field ($\mathbb Q$ or $\mathbb F_p$), by Noether normalization it follows that $k$ must be a finite extension of its prime field. In positive characteristic this finishes the job and in zero characteristic, should lead quickly to a contradiction, though I don't see immediately how. Is there an elementary/slick proof of this fact?


Prove: If $a\mid m$ and $b\mid m$ and $\gcd(a,b)=1$ then $ab\mid m$  I thought that $m=ab$ but I was given a counterexample in a comment below.  So all I really know is $m=ax$ and $m=by$ for some $x,y \in \mathbb Z$. Also, $a$ and $b$ are relatively prime since $\gcd(a,b)=1$.   One of the comments suggests to use , i.e., $aq+br=1$ for some $q,r\in\mathbb{Z}$. Any more hints?  New to this divisibility/gcd stuff. Thanks in advance!


100 ArcSDE layers in one Map service - ArcGIS Server 10.3

I am doing my very first WebGIS application with ArcGIS server using ArcGIS Javascript API 3.17. I have to bring 100 layers in my webgis application as REST service from Oracle DB. To do that whether can we publish 100 layers as one map service or each layer as one service i.e 100 map service or group the layers as 10 datasets and publish as 10 map service. please suggest that which is the efficient way to publish those 100 layers in ArcGIS server.


Remove vertical spacing from top/bottom of itemize environment within a table

I'd like to create compact itemized lists within a column of a table that are vertically alligned with non-itemized text from the same column. I'm using enumitem to get more control over these environments, but I can't figure out how to completely remove the vertical spacing above and below the itemize environment.  Consider this simple example:  \documentclass[12pt]{report} \usepackage{enumitem} \usepackage{booktabs}  \begin{document}  \begin{tabular}{p{3cm}p{3cm}} \toprule Column one & Column two \\ \midrule First group & \begin{itemize}[noitemsep,topsep=0ex,partopsep=0ex,leftmargin=2ex] \item First item \item Second item \end{itemize} \\ Second group & \begin{itemize}[noitemsep,topsep=0ex,partopsep=0ex,leftmargin=2ex] \item First item \item Second item \end{itemize} \\ \bottomrule \end{tabular}  \end{document}     I have set topsep and partopsep to zero to try and remove the vertical spacing, but this does not seem to work as expected. Is there additional spacing outside the itemize environment that I'm overlooking?


How to use one object to cut a hole into another one

My issue is that I have 2 objects in edit mode, I want to use the second object to cut the first one to make a hole.  I hope the image can make what I want a little clear because I don't find the right words to explain that.  Thank you~


I'm really lost about how to fill my form, as I have an invitation from my GF from Sweden, but the closest place to her is Copenhagen, not Stockholm.    Should I fill Denmark as my first entry, and leave from Denmark also, and provide my train booking to her with my application?


Mac OS X ElCaptain error and now whenever I startup it always directo to OS elcaptain installer

so I tried upgrading my Lion os to High sierra and I saw one video on youtube saying that I need to download the El captain in order to update my Macbook Air 2012. After downloading, the installer started to crash and it says that "No packages were eligible for install." I decided to quit the installer but it asked me for a startup disk however there was no option for me to choose from. So whenever I try to restart it, it directly leads me to the installer not allowing me to be back at my screen. Please help me how to fix this thank you very much!


source list broken pakage update 16.04 ubuntu

After I edit my source list to default version  and update and upgrade, I can't fix my problem. Here is my result after sudo apt get update


How to prevent execution of main Python code when importing a function

Consider the two following files:  test.py:  import sys  def testfunction(string):     print(string)  sys.exit(0)   test2.py:  from test import testfunction  testfunction("string")   I would expect the import of testfunction not to execute statements outside of that function, e.g., sys.exit(0). Why is this happening, and how can I prevent it?


Why does echo of awk in a bash script remove line breaks?

I'm trying to include some awk commands in a bash script, and I've run across some unexpected behavior. Can you give me a clue as to what I'm overlooking?   For example, given a file named list:  1 2 3 4   This simple awk command does what you'd expect:  $ awk -F, '{ print $1 }' list 1 2 3 4   But if I put this command in a bash script:  #!/bin/bash echo "list:" cat $1  echo "list after awk:" echo `awk -F, '{ print $1 }' $1`  exit 0   I get this output:  $ ./script list list: 1 2 3 4 list after awk: 1 2 3 4   The awk in the bash script has mysteriously stripped away the carriage returns.  I've seen this behavior in bash on OS X as well as in zsh on BSD.  Any ideas?


How to remove session entries from LightDM?

I recently added Cairo Dock to my GNOME Shell in 11.10. Cairo Dock is GREAT, but I'm left with one little problem that I'd like to fix: after installing Cairo Dock, LightDM includes two extraneous entries to non-working desktops.  (The entries to working desktops remain unaffected, so I guess I could just ignore the extraneous entries, but...)  So I'd like to remove/edit the extraneous entries in LightDM.  I've looked and looked for discussions on how to do so, but haven't had much luck.  Any suggestions on how to go about editing the login menu in 11.10?


How to show that $\#(\mathbb Z^n/N) = \det(A)$ where $N$ is the subgroup of $\mathbb Z^n$ generated by columns of a square matrix $A$

$A$ is a $n\times n$ matrix with integer coefficients. I am trying to understand a) and b) claims. a) $Z^n/N$ is finite $\Leftrightarrow$ $det(A)\neq 0$ b) #$(Z^n/N)=|det(A)|$      Looking at the linked answer, I can reduce $A$ to normal form by multiplying by unimodular matrices and this multiplication does not change $|det(A)|$. I understand that the $det(A)=d_1d_2..d_r$ where $d_i|d_{i+1}$ and $d_1,..d_r$ are entries of normal form. But I don't understand why $Z^n/AZ^n \cong \bigoplus_{i=1}^{n} Z/d_iZ$? The explanations I have seen in MSE are in the context of rings and I don't know them yet. Any hint to explain the isomorphism using group theory language is appreciated. Thanks.


hibernate doesn't happen ubuntu studio 20.04

I enabled hibarnation by this article  but when after all I perform this command sudo systemctl hibernate  system seems want to hibernate, turned off network but that is all what actually happen, it keep working. What may prevent from hibernation?


Best logical structure to keep a dual boot Windows + Ubuntu

I have currently installed Ubuntu to my laptop as a partition since I will start using it for work. I actually prefer Ubuntu as my main OS, so I will just keep Windows for irrelevant things as games and programs as Office packages and Photoshop. This is the distribution I currently have for my partitions:   Windows OS (195GB) - ntfs Ubuntu OS (180GB) - ext4 /home directory for Ubuntu (25GB) - ext4 Shared data partition for both OS (75GB) - ntfs   In a first instance I tried to keep the /home directory partition as the one which will be used as the shared data, but I found out that Windows does not allow to write on ext4 partitions on a native way and some problematics programs or not immediate solutions had to be used.  For these reason, I created another partition with ntfs extension in order to share my programming projects and other stuff between both operative systems. This is later mounted on Ubuntu on /media/data/ on start and accessed by symbolic links I created on my /home directory.  As far as I have been testing, the implementation works fine and I have not experience any problem opening files in both OS, but I am not sure if this solution is an advisable one or if it may lead to possible future problems or losses of information. Is there any risk on this implementation greater than the one I would have on a default one?   Otherwise, do you recommend me to perform any changes or to implement the partitions in any other way?


How do I uninstall Ubuntu from a computer?

By just typing some commands, how can Ubuntu be uninstalled? I don't want to install Windows or anything, leaving my PC without an OS.  Would this command work?  sudo rm -rf /


Object in texture mode looks like solid mode

When I am in texture mode one of my objects looks like it is in solid mode. The model is textured like all other models in the scene, but it doesn't look like it is in texture mode.  Screenshot will explain better:      What this model looks like. What all models should look like in texture mode.


QGIS map creation: google imagery as base-map displaced when printed to pdf of tiff

I want to create a set of maps using the QGIS atlas feature. It works quite well, however when printing the maps to an image or pdf, the base map (google maps areal imagery) is shifted under the rest of the map.   The screenshots show (a) the correct representation in the print composer and (b) the defective map I get when printing to .tiff. Is there any workaround on this issue?   (a) correct map in print composer   (b) defective map printed to .tiff


What's the name of the property that $0 \cdot x = x \cdot 0 = 0$ for all $x \in \mathbb{R}$?  I suppose it would be some group theoretic name but I can't recall it and I've searched everywhere, it wouldn't be the identity nor an inverse, so I'm at a loss.


Minecraft won't run after updating Java?

My mother downloaded the newest version of java and now it wont run.   Here is the error message:  [18:15:59 ERROR]: Couldn't launch game java.io.IOException: Cannot run program "C:\Program Files\Java\jre7\bin\javaw.exe" (in directory "C:\Users\Sarina\AppData\Roaming\.minecraft"): CreateProcess error=2, The system cannot find the file specified     at java.lang.ProcessBuilder.start(Unknown Source) ~[?:1.7.0_55]     at com.mojang.launcher.game.process.direct.DirectGameProcessFactory.startGame(DirectGameProcessFactory.java:14) ~[launcher.jar:?]     at net.minecraft.launcher.game.MinecraftGameRunner.launchGame(MinecraftGameRunner.java:205) [launcher.jar:?]     at com.mojang.launcher.game.runner.AbstractGameRunner.onDownloadJobFinished(AbstractGameRunner.java:177) [launcher.jar:?]     at com.mojang.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:122) [launcher.jar:?]     at com.mojang.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:12) [launcher.jar:?]     at com.mojang.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:86) [launcher.jar:?]     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_55]     at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_55]     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.7.0_55]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.7.0_55]     at java.lang.Thread.run(Unknown Source) [?:1.7.0_55] Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified     at java.lang.ProcessImpl.create(Native Method) ~[?:1.7.0_55]     at java.lang.ProcessImpl.<init>(Unknown Source) ~[?:1.7.0_55]     at java.lang.ProcessImpl.start(Unknown Source) ~[?:1.7.0_55]     ... 12 more [18:15:59 INFO]: Deleting C:\Users\Sarina\AppData\Roaming\.minecraft\versions\1.7.4-mcpatcher\1.7.4-mcpatcher-natives-35438263712980


Show that upper triangular matrices group is solvable

I want to prove that the group  $$B_n =  \{ \begin{pmatrix} a_1 & b_{1,2} & \cdots &   b_{1,n} \\ & \ddots & & \vdots \\ & & a_{n-1} & b_{n-1, n} \\ & & &  a_n \end{pmatrix}  | b_{ij} \in F, a_i \in F^* \} $$   is solvable.  I though about using the homomorphism $f: B_n \rightarrow (F^*)^n$  , which is declared $$f(\begin{pmatrix} a_1 & b_{1,2} & \cdots &   b_{1,n} \\ & \ddots & & \vdots \\ & & a_{n-1} & b_{n-1, n} \\ & & &  a_n \end{pmatrix}) = (a_1,....,a_n)$$  this way, I get  $$Kerf = \{ \begin{pmatrix} 1 & b_{1,2} & \cdots &   b_{1,n} \\ & \ddots & & \vdots \\ & & 1 & b_{n-1, n} \\ & & &  1 \end{pmatrix}  | b_{ij} \in F* \} $$  and since $Ker(f) \lhd B_n$ I thought about using the theorem which says that: if $N \lhd G$ is solvable and $G/N$ is solvable, then G is also solvable.  I also know that $Im(f) = (F^*)^n$.  I got stuck proving that $Ker(f)$ and $B_n/Ker(f)$ are solvable  Help would be appreciated


Selecting references for PhD applications: are industry references OK?

My background:   Final year computer science undergraduate in the UK. Spent one year working in a scientific facility developing software for scientists. My colleagues had previous academic experience (PhDs in math or physics). Researched for 3 months under professor N within my university. My dissertation begins in February, so cannot use my supervisor from that.   I want to pursue a PhD, and am at the stage of applying for programmes. However, each programme requires "two academic references", and am unable to come up with a second one (professor N being the first) that would provide the best application.  Giving many of you read references, and recruit PhD students, which of the following references would you prefer receiving:   A senior software developer where I previously worked (he has a PhD in physics), but I feel this is not "academic". My personal tutor (a professor who helps with any personal or professional problems), whom I have not seen in a few months, but have used for references before (to get the aforementioned job). Professor B who has taught me over the past three months, but whom I am not close with (on a personal or professional level).   I know my question is a bit specific, so perhaps to generalise:  Q. Is it acceptable to have industrial references when applying for PhD positions, or should I instead use university professors as reference? Even if they may result in a generic reference letter.  Q. How can I speak with professor B to avoid him writing a generic reference letter about me?


I have one table like this..  TicketID    Name     111         ABC 111         DEF 222         GHI 333         ABC 333         GHI   I need output like this..  TicketID    Name     111         ABC, DEF 222         GHI 333         ABC, GHI   I have found a same kind of query try to do it with Stuff function but don't know why m not getting exact result  Can anyone give me query for SQL Server.. n tell me how actually it process.


Proving the countability of the rational numbers

I'm having a hard time with the very-last proof I'm supposed to make:     Prove that the set of rational numbers is countable by setting up a function that assigns to a rational number $\textbf{p/q}$ with $\textbf{gcd(p,q)=1}$ the base $\textbf{11}$ number formed by the decimal representation of $\textbf{p}$ followed by the base $\textbf{11}$ digit $\textbf{A}$, which corresponds to the decimal number $\textbf{10}$, followed by the decimal representation of $\textbf{q}$.   Any help would be kindly appreciated.  Thanks.


Can I leave the Schengen Zone before my student visa expires and come back as a tourist?

I'm studying in Denmark with a student visa, but it expires on July 14th and I've booked to stay in Europe for an extra month.   I already booked Airbnbs with friends on the July 15th and don't want to change the plans, so I was wondering whether I could leave the Schengen Zone and come back before it expires, but as a tourist.   Edit: Sorry, I'm an Australian citizen.


I have come across a Wikipedia page   On gravity and it claims that since mass and energy are related even pure forms of energy have gravitational attraction. I am in 10th so I have no formal knowledge about relativity or electromagnetism but I have been studying about these and have never come across this statement. It's rather peculiar and I don't think it's true. Please confirm if the page is stating the fact or what?


Is the series convergent $x + x^{1+\frac{1}{2}}+x^{1+\frac{1}{2}+ \frac{1}{3}}+\cdots$

$$x + x^{1+\frac{1}{2}}+x^{1+\frac{1}{2}+ \frac{1}{3}}+\cdots$$  I know that $u_n = \lim_{n \to \infty}   x^{1/n}$   I used root test and ratio test but it isn't working.


Does "you can pass until Wednesday" mean that I can still pass on Wednesday

or does it mean that I have to pass before Wednesday?


Using Supernatural Stamina on a Zombie Creature with Diregraf Colossus on the board

So let's say for instance I am attacking with a  and it's blocked so I use  on it because I know it will be destroyed. If I have  in play does the Zombie Card returned act as a spell cast? I was looking at rulings on Supernatural Stamina


I'd like to know what's the best method to store images into a MySQL database with the best performance. (assume a big database)  Solution A: Use LONGBLOB type and put the binary content  Solution B: Store the files on the hosting and save the URL how a VARCHAR type  Thanks in advance


Is there an (easy) way to create or personalize .bst files?

When you prepare an article for a journal (in my case, Quantum Information and Computation, Rinton Press), often they ask you to use some format for your references; in my case, the following:     [1] R. Calderbank and P. Shor (1996), Good quantum error          correcting codes exist,  Phys. Rev. A, 54, pp. 1098-1106.      [2] M.A. Nielsen and J. Kempe (2001), Separable states   are  more disordered globally than locally, quant-ph/0105090.      [3] A.W. Marshall and I. Olkin (1979), Inequalities:   theory of majorization and its applications, Academic Press (New   York).   The issue is, sometimes (and this is the case) they do not provide a .bst style file for bibtex users. I (and I guess many other people) prefer not to copy all the references of a bibtex file one by one into a tex document. So here is the question I am trying to answer:     What is the easiest way to create a .bst file? (for Rinton or any other publisher)   At first sight, I thought this would be very easy to do: after all, a .bst file is just a mere script to give format to a list. Strangely to me, after a long search I have been unable to find a simple clean solution to this problem. These are the the options I have been looking at:   I have tried to adapt a previous .bst file: concretely, apsrev4-1.bst, which has a similar format. Other people have tried this solution before , . However, it is an ugly option. First, it requires going through the script of the .bst and understanding it. Second, the script format used in different .bst files differs (quite annoyingly), so it is not easy to modify them unless you do understand what's written. The above solution is quite hideous and you really lose time on it, so I was wondering: isn't there any software tool (hopefully with a GUI) that does this job? It should, after all, pretty easy to program for a .bst script expert some sort of program to generate .bst files. There are some related questions in this site asking for something similar , ; there I have seen a couple of proposed apps, but going through their manuals they seem not so easy to use. Isn't there some software tool available to generate a .bst in less than 1 hour of work?   Remarks: ideally I would like to use/personalize/create .bst styles that support eprint fields (e.g. aps4-1.bst).


Should I downvote questions posted on the wrong SE site?

If a question is not directly "bad", but placed on the wrong SE network (e.g., posted on stackoverflow.com when it should have been posted on superuser.com), in addition to close-voting, should I also downvote the question? Or not?


Have Chrome autodetect language before spelling checking?

Chrome can automatically spell check emails I am writing in Gmail. I have two language installed: Dutch and English in both UK and US versions. And I type emails in both languages regularly. However, that requires me to switch the setting all the time:    Can I have Chrome automatically detect which language I am typing my email in, and automatically pick the correct language for spell checking?


How to know if any two arbitrary qubits are entangled?

Suppose there are two quits called q1 and q2. They are in two different superposition states. If we represent their states on the Bloch sphere surface, q1 is located at point_1 and q2 is placed at point_2. Please note that point_1 is different from point_2 and we know where point1 and point2 are. Now, my question consists of two parts:   How to make q1 and q2 entangled? After making them entangled, how to check if they are entangled indeed?