How to run Windows 10 from an external hard drive?

I am currently able to boot from an external drive or multiboot USB. Taking this concept one step further, I have 3 questions:   1) Is it possible to install and run Windows 10 on a portable external hard drive or USB card with the same functionality of being installed on the internal drive?   2) Is it considered legal to do so or will it affect Windows updates in any way?   3) What are the steps to do that? (please outline steps I can follow so I don't lose a drive in the process). :)  EDIT: My question deals specifically with Windows 10, the legality and method of making it a standalone OS running from an external device and what effect if any it has on Windows Update; questions not dealt with in the other question.


I'm using the standalone package. How can I get regular paragraph breaks?

I'm using the standalone class to render images for individual math problems that will be displayed in an app, so the cropping functionality is essential. However, the package seems to destroy paragraph breaks support. What I'd like to have is non-indented paragraphs with about 1 line of space between each paragraph, like:  \setlength{\parindent}{0pt} \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}   I've tried the above and a million other things, including using the preview option, the preview package directly, and messing with the varwidth setting, but nothing seems to work. I'm not very knowledgeable about the inner workings of LaTeX or the packages I'm using, so I'm at a dead end.  Could someone with better knowledge explain to me a.) why this refuses to work b.) if there's some way to get normal paragraph breaks working without workarounds like \\[7pt]? Here is what I'm working with right now:  \documentclass[border=1bp]{standalone}  \usepackage[document]{ragged2e} \usepackage[none]{hyphenat} \usepackage{amsmath}  \begin{document} \begin{minipage}{4in} This is a paragraph. It's a nice long paragraph.   This is another paragraph.  This is a paragraph. It's a nice long paragraph. This is a paragraph. It's a nice long paragraph. \end{minipage} \end{document}


Power sum is given by $$ 1^m + \cdots + n^m = \frac1{m+1} \sum_{k=0}^m (-1)^k \binom{m+1}kB_k n^{m+1-k}$$ and negative zeta values are given by $$\zeta(-m) = (-1)^n \frac{B_{m+1}}{m+1}$$ But heuristically, $\zeta(-m) = 1^m + 2^m + \cdots $. So it feels as if taking $\lim_{n \rightarrow \infty}$ in the power sum formula should give us the negative zeta value.   All this is obviously mathematically not rigorous ($\zeta(s)$ with $\text{Re}(s)\le 1$ must be calculated using reflection formula and taking such limit is impossible). But to me, the occurrence of Bernoulli number in both expressions seems too suspicious for a coincidence. Is it really just a coincidence?


Ask a question and notify users on specific users list

I thought It could be useful to create a specific user lists to notify them of a created answer.  I thought the lists could be useful for example if you ask an SQL question and you like to notify users are used to SQL problems.  Sometimes I'd like to ask specific questions to specific users because I like their approach or for any other reason. Maybe they could accept or ignore the list request (also automatically).  What do you think?


What happens when two smooth surfaces touch?

I am wondering what will be the physics to explain how two neutral, chemically nonreactive objects stick. I know that using van der Waals formalism, we can treat neutral body electrodynamic forces and arrive with attractive forces that pull the objects together.   Now, once the objects touch (say a mechanical cantiliver in a MEMS sensor like the one used in an iPhone), what happens to the forces? A quantitative answer or some estimate on how strong the attractive force is for simple cases will be very appreciated.  in response to anna's comment : Let us consider what happens in vacuum for ultra smooth surfaces, with no residual electrical charge and fully chemically stablized surfaces (example, silicon crystals with stabilised surface bonds).


Purpose of the diode and capacitor in this motor circuit

I'm hooking up a small DC motor to an arduino using an NPN transistor using the following diagrams I found online:       The circuit works, and I'm successfully able to make the motor run.  Now, I'm seeking to understand why it works the way it does.  In particular, I'd like to understand:     Why are the diode and capacitor hooked up in parallel to the motor?  What role do they serve here?   Why is a resistor needed between the transistor and the digital PWM pin on the arduino?  Would it be safe to run the circuit without it?


Is it impossible to use Generics dynamically?

I need to create at runtime instances of a class that uses generics, like class<T>, without knowing previously the type T they will have, I would like to do something like that:  public Dictionary<Type, object> GenerateLists(List<Type> types) {     Dictionary<Type, object> lists = new Dictionary<Type, object>();      foreach (Type type in types)     {         lists.Add(type, new List<type>()); /* this new List<type>() doesn't work */     }      return lists; }   ...but I can't. I think it is not possible to write in C# inside the generic brackets a type variable. Is there another way to do it?


Unknown apps/processes with number only are shown in data usage

A mysterious app named "10102" shows up in my data usage. It bears only the standard Android app icon (the Bugdroid logo with a cube on its torso). From what the graph tells me, it has used 36 megabytes of data in the background and zero on the foreground. I think I haven't uninstalled anything for months. Is it malware? I haven't sideloaded anything and only authorized my laptop as a USB debugger. If it's malware, how do I remove it? I have no idea how to find its package name and 10102 isn't in the list of downloaded apps in settings. I'm running stock & never-been-rooted Android 4.4.4 on Nexus 4.


I'm not a native English speaker, so I would like to have an explanation of that expression: "Where something/somebody at?"  Examples :      Where Brooklyn at ? (interlude in a Lonely Island album)      Where you at ? (seen on a game server, instead of Where are you, I suppose)   Are not they supposed to say "Where is/are ..."?


How do I find what packages I've installed via terminal?

I've been learning the shell for a few weeks and have installed several packages. I know/remember what some of them are, like oh-my-zsh and emacs 24 (which was a nightmare to upgrade to), but not sure sure about what else. I've used different methods like curl, wget and Macports.  My question is, if and when I want to do a clean installation of MacOS, how do I backup or script a fresh installation of these packages? In other words, when I do a new install of MacOS I won't be restoring from Time Machine using Migration Assistant: rather I'll install the system and manually restore files. How do I know the installation paths and dependancies of what I've installed in my previous installation using the command line? Is there a txt file somewhere that the system maintains to keep track of what has been installed?  (MacOS 10.8.2)


i have lost my images by deleting them but now i want them back

last day my pictures were deleted by mistake i have tried to acquire them back by simply logging into samsung account . How can i get my pictures back by using my samsung account ?


Request for comments... Series of tightly related questions, which form a tutorial in their entirety

During a project I had to delve into the QtCreator code to get a deeper understanding on how to write plugins. It was quite a hard work, since the documentation within the QtCreator code is not the best. My best resource was an ancient pdf, which described the plugin development for QtCreator 1. Most of the code did not even compile for QtCreator 2 anymore.  Now I would hate to see my efforts to learn all this go to waste. What I could easily do is to write a new pdf for QtCreator 2. But this would also age and be worthless in a few months.  So my idea is to create this tutorial on SO. Here is an example question:   If this is accepted in general, I would add further questions:   How do I add a navigation panel to the QtCreator How do I add an editor to the QtCreator How do I add....   Then I'd like to cross link between the questions. The advantage is, that others could improve the questions and further comments/answers could be added to keep it up-to-date with changing QtCreator versions.  Does anyone see a problem with the above question/answer? My plan? Comments?


First post review queue: answers are questions, questions are answers

I believe there is a typo in the  review queue. When reviewing a question, the information message asks the user to review the answer. Take a look at the image below.    Similarly, when an answer is posted in the queue, the description box calls it a question instead. Has anyone else noticed this?


Dystopia from the 70s: floating cities, decadent society, longevity, flying suits?

I'm looking for the name of a novel from the 70s or early 80s(?) that involved a protagonist who was the only young person in a society of decadent immortals. They lived in a floating city (or series of floating buildings), and flying suits were ubiquitous. (One detail that stuck with me is that everyone had pocket telephones, so at least one prediction came true!) He eventually meets up with a woman with the improbable name of "Synthetica" and discovers a society (with relatively primitive technology) who lives underground in a fantastically-carved cavern. Ring any bells? I'd love to read it again with an adult perspective.


Original Question  In scrreprt the distance between title and content of a TOC is larger than the distance between a regular chapter title and the text body. Does this make sense in terms of typography? And—if not—how can I prevent this from happening?  Thank you!  Minimal Example    \documentclass{scrreprt} \usepackage{blindtext}  \begin{document} \tableofcontents \chapter{Lorem} \blindtext \end{document}   Edit 1  Well, okay ... I should have looked a bit harder before posting this. According to the answer to , all I need to add is:  \addtocontents{toc}{\vskip -1.0em}   But still: Would you go with the extra vertical space, or would you try to even things out?


Latex template for journal of advanced research Elsevier

Can anyone help me to download a latex manuscript template for journal of advanced research (Elsevier)


I'd love to play Diablo 1 on Ubuntu.  How can I do that?


The use and difference of simple future perfect tense and simple future perfect continous tense

i do not understand the difference of future perect tense and future perect continous in a sentence or paragraph because the time signal of both tense are same. Namely by, before, and when. sometimes I got problem to do homework that determine use future perect tense and future perect continous in sentence.  can you tell me the difference of each sentence?


Cursor appears at the beginning of command line

I'm having difficulty with specifying PS1 on Ubuntu 18.04.5. I use the following code in my .bashrc file and the result looks exactly as it should. export PS1=$'\e[38;5;046m \u00AB\D{%y-%m-%d}\u00BB-[\D{%H:%M:%S}]-{\W}\e[1m\e[38;5;196m>\e[38;5;226m>\e[38;5;046m>\e[38;5;255m\e[0m '   The problem is that my cursor is at the beginning of the command line and not after the >>>. Curiously, if I set my terminal to full screen, the cursor appears where it should. Is there an obvious error in my PS1 definition?


Use du to list size of top 20 largest folders/files in current directory recursively in bytes and human readable format

Few things to be achieved 1. Recursively get top 20 largest folders/files 2. Get their sizes in bytes as well as human readable format


Ubuntu 18.04's dock doesn't show Nautilus folders shortcuts when right clicked

In Unity's Launcher, if you right clicked in Nautilus you'd get shortcuts to "Personal Folder", "Documents", "Downloads", "Images, "Musics" and "Videos".     It's a feature I miss a lot since Ubuntu switched to GNOME shell, 'cause before I could go to the folder I wanted directly from the dock. Is it possible to add these shortcuts back to Nautilus icon in Ubuntu 18.04's dock?


I'm trying to make cross referencing to a forward part in my document using \hyperref[<to_label>]{<link_text>} but it seems because of \label{} is ahead of \hyperref, that's not defined when code is compiled, so the link does not work properly.  I'm using this code to include enumerate environment items in equations numbering   \counterwithin*{equation}{section} \counterwithin*{equation}{subsection} \counterwithin*{equation}{enumi} \usepackage{chngcntr,etoolbox} \newif\ifinenumerate     \AtBeginEnvironment{enumerate}{\inenumeratetrue}  \makeatletter \renewcommand\theequation{%   \ifnum\value{subsection}>0 \thesubsection.\else   \ifnum\value{section}>0 \thesection.\fi\fi   \ifinenumerate \theenumi\fi   \arabic{equation}}  \renewcommand\thefigure{%   \ifnum\value{subsection}>0 \thesubsection.\else   \ifnum\value{section}>0 \thesection.\fi\fi   \ifinenumerate \theenumi\fi   \roman{figure}} \makeatother   And this is my hyperref setup  \usepackage[colorlinks=false]{hyperref} \hypersetup{     pdftitle={...},     pdfauthor={...},     pdfsubject={...},     pdfkeywords={...}, }   Here is a working example; as you can check my cross reference carries to last equation referenced instead of \label what I've defined.  \documentclass[8pt,a4paper,dvipsnames]{article} \usepackage[utf8]{inputenc} \usepackage[a4paper,hmargin=2cm,vmargin={2cm,2.5cm}]{geometry} \usepackage[colorlinks=false]{hyperref} \hypersetup{     pdftitle={...},     pdfauthor={...},     pdfsubject={...},     pdfkeywords={...}, } \usepackage{enumitem} \usepackage{chngcntr} \usepackage{cleveref}  \counterwithin*{equation}{section} \counterwithin*{equation}{subsection} \counterwithin*{equation}{enumi}  \usepackage{etoolbox}  \newif\ifinenumerate \AtBeginEnvironment{enumerate}{\inenumeratetrue}  \makeatletter \renewcommand\theequation{%   \ifnum\value{subsection}>0 \thesubsection.\else   \ifnum\value{section}>0 \thesection.\fi\fi   \ifinenumerate \theenumi\fi   \arabic{equation}} \makeatother  \begin{document} \section{test 1} \subsection{test 1.1} \begin{enumerate}[label=\alph*.] \item item a     \begin{itemize}         \item item a case 1                  \begin{equation}         a = b         \end{equation}                       \begin{itemize}         \item item a case 1 subcase 1                \begin{equation}         a = b         \end{equation}         I need to reference \hyperref[not:Note1]{forward}         \end{itemize}     \end{itemize} In here, for example \label{not:Note1} \end{enumerate} \end{document}


What's the Difference Between These Two Casts in C++?

Code sample one:  float i=1.1f; int j=static_cast<int>(i); cout << j<< endl;   Code sample Two:  float i=1.1f; int j=(int)i; cout << j<< endl;   what's the difference between these code samples about converting in c++?


Badge icons in Achievements section erroneously correspond to the current site

This screenshot says it all:  I am on ELL.SE, opening a recent notification in top frame.  The notification is about a Badge received on Linguistics.SE site.  The icon apparently belongs to the theme of ELL.SE, while it must be from the theme of Linguistics.SE.


How To Use an iPad as a Graphics Tablet?

I would like to use my iPad as a graphics tablet to draw stuff on Ubuntu. Is there any solutions to this? As to see that Ubuntu has built-in Tablet support.


The blade (for want of a better term) length does not appear to be standard.  I remember an expanded universe story featuring a character using lightsaber with an incredibly long reach, and let us not forget Yoda's teeny tiny lightsaber.  Is the length determined by the user, or does it's design determine the blade length?


I'm wanting to update an iframe with css in javascript. I know how to update the iframe body with the code below but is there a way to insert css into the head of the iframe?  Thanks David  var previewFrame = document.getElementById('previewFrame'); var preview = previewFrame.contentDocument || previewFrame.contentWindow.document;  preview.open(); preview.write('New Content'); preview.close();


Prove that the symmetric difference is associative using only the properties of $\cup$ and $\cap$   I don’t know how to prove this without doing a lot of nasty steps. The symmetric difference is obviously commutative, but proving that it is associative seems to involve a bunch of nasty steps. I was wondering if there was a clean way to do this?


How to change directory to the old directory?

I am currently in /downloads directory. Before I was in /var/www directory. How can I return back to the old directory in terminal? I do not want to execute  cd /var/www  I need a simple command to change to old directory.


unresolved external symbol when implementing memory management template class

I'm trying to create a pool to manage the allocation and so on of little game objects that will die and reborn quickly.  For it I have created a Pool:  template <class T> class Pool {  public:      T* obtain()     {         T* obj = 0;          if (_avaibles.size() > 0)         {             std::vector<T*>::iterator it = _avaibles.begin();             obj = *it;             _avaibles.erase(it);         }         else             obj = new T();          return obj;     }      void free(T* obj)     {         _avaibles.push_back(obj);     }      void clear()     {         std::vector<T*>::iterator it = _avaibles.begin();          while (it != _avaibles.end())         {             T act = *it;             delete act;             ++it;         }     }  private:      std::vector<T*> _avaibles;  };   The problem is I'm getting unresolved external symbols. The pool is placed as a static member of a class:   static Pool<Ship> _shipPool;   Here is the error:  Error   16  error LNK2001: unresolved external symbol "private:  static class Pool<class Ship> Asdf::_shipPool"   (?_shipPool@Asdf@@0V?$Pool@VShip@@@@A)  C:\-\Asdf.obj


Update Xperia Mini Pro (SK17i) to Jelly Bean

How can I update my  to ? Please provide me the best step by step guide.


How do I get the prosaic description of a package using apt? I tried both apt-cache show and apt-cache showpkg but no luck.  Using synaptic it's easy as typing the package name and the description is given by the standard view, but sometimes I'd prefer to just use apt-cache, for example from terminal.


$\Bbb{Z}/10\Bbb{Z}$ isomorphic to $\Bbb{Z}[i]/\langle 1+3i\rangle$.

I need to prove that   $\Bbb{Z}/10\Bbb{Z}$ is isomorphic to $\Bbb{Z}[i]/\langle 1+3i\rangle$.   I know I can use the third isomorphism, but I would like to use the first one. I consider a homomorphism $\Bbb{Z}$ to $\Bbb{Z}[i]/(1+3i)$ :  $$\phi : \Bbb{Z}\rightarrow \Bbb{Z}[i]/\langle 1+3i\rangle,\quad x\mapsto \overline{x}.$$ The kernel is a subgroup of $\Bbb{Z}$, so it looks like $p\Bbb{Z}$ for a unique $p>0$.    Plus $\overline{x}$ means (here) that it's equal to $(a+ib)+\langle 1+3i\rangle =(a+ib)+(1+3i)(a+ib)$, isn't it ? I am not sure, I used the fact that $\Bbb{Z}[i]$ is euclidean so principal and then all ideal are is that form. On the other hand $\Bbb{Z}\cap\langle 1+3i\rangle=10\Bbb{Z}$.     So the question is how can I write, correctly, the morphism $\phi$  ?


How can I delete Apple OS X application such as Photos, iPhoto, and others that I never use?


How can I fix permissions for files in the /var/folders/zz?  There are a lot of file under /var/folders/zz that seem to be application caches or some sort.   I am interested in this because, it appears that if the permissions of these folders get set incorrectly (and there is a lot of "help" out there that suggests changing these at one time or another) it can easily break the applications that use them, like Apple Software Update, Apple Setup Assistant, Adobe Flash Installer, and many others.  Note: This asks a different (although similar) question to the one found in , and provides a correct & concise answer to this specific question. It is also not about clearing space, but about fixing permissions on these files, which when incorrect WILL break applications.


I have observed that, on average, the absolute value of Pearson correlation coefficient is a constant close to 0.560.42 for any pair of independent random walks, regardless of the walk length.  Can someone explain this phenomenon?  I expected the correlations to get smaller as the walk length increases, like with any random sequence.  For my experiments I used random gaussian walks with step mean 0 and step standard deviation 1.  UPDATE:  I forgot to center the data, that's why it was 0.56 instead of 0.42.  Here is the Python script to compute the correlations:  import numpy as np from itertools import combinations, accumulate import random  def compute(length, count, seed, center=True):     random.seed(seed)     basis = []     for _i in range(count):         walk = np.array(list(accumulate( random.gauss(0, 1) for _j in range(length) )))         if center:             walk -= np.mean(walk)         basis.append(walk / np.sqrt(np.dot(walk, walk)))     return np.mean([ abs(np.dot(x, y)) for x, y in combinations(basis, 2) ])  print(compute(10000, 1000, 123))


We have a script that is used to sync some directories to a USB disk drive. It is set to run once a day but often takes longer than that.   To ensure that multiple copies of the script don't run at the same time, we check the list of processes and if our script is present, we immediately exit.  #!/bin/bash  #check if we are already running running=$(ps aux | /usr/bin/grep -i "usb_sync" | /usr/bin/grep -v grep | /usr/bin/grep -c bash) echo "usb_sync $running" >/opt/local/backup/usb_sync_log #If we are, the quit if [ $running -gt 1 ] ; then   exit 0 fi   The problem is that this check works fine when running it via sudo and manual invocation through the CLI. However when it is run through cron, it will start regardless. I have tried a couple of different variations but they all seem to run.  This is on FreeNAS 11.2.


How do I monitor network usage on a Windows server?

I would like to monitor server bandwidth usage.  The server OS is Windows Server 2012  This should give me as result the amount of data over a certain period of time and separate it by protocol and by remote IP.  Protocol to discriminate would be HTTP, FTP and RDP at least.  How can I do this?


Can I award back my bounty points or decrease the bounty time period?

I have set a question bounty. Now I want to get back my bounty points and decrease the time period of bounty.  Where are the options for it? Does anybody have an idea about it?


Why does time slow down when traveling at high speeds

One of the effects of traveling at high speeds is slowing down of clocks. I can understand gravity time dilation effect but not how would velocity affect clock speeds.   How correct it is, if I say that higher the speed, more object travels through space dimension therefore less it travels through time dimension; therefore slowing down of time?


I am a US citizen born in Mexico. I am traveling to Mexico in a couple of weeks with my American passport. Do I need a visa or anything else to travel?


Can I migrate a Windows 10 with a license key to another computer using dd?

Not trying to do anything malicious or violate copyrights. Just out of pure curiosity. If dd creates a full clone of a disk, will it work if I use dd to make a full copy of windows 10 with a license key to another drive and boot it on another computer and have it still worked?


Can't understand concept, range of the pulse (waveform)

I am working on the lab which is allowed to ask other people for hints.    In the image, program called "Audacity" is used to capture that waveform.  Question 1     In the image it says, "The peak-to-peak span of the signal is about 2.0 V"   It says its span range is 2.0 V, but I think that it spans from around -0.2 (lowest point in the wavefore picture) to +0.8 (highest point in the wavefore picture) according to picture. But why this description says it is 2.0 V?  Question 2     In the image it says, "the graph below can show a range of about 4 volts top-to-bottom"   Similarly, I think total range of top-to-bottom in the image is from -1.0 to +1.0, which I think 2V in total. But why this description says it is 4 volts?


Why an element disappears with "overflow: visible" but is visible with "overflow: hidden"?

When I use the default overflow value, an
 element disappears. Here's a snipped I've tested with Google Chrome:    ul {   list-style-type: none;   background-color: #333333; }  li {   float: left;   color: white; }

Test

     However, when I add overflow: hidden; to
, it becomes visible:    ul {   list-style-type: none;   background-color: #333333;   overflow: hidden; }  li {   float: left;   color: white; }

Test

     As far as I know, the overflow property specifies if the overflow renders outside the element's box. Why the whole element is invisible when the default overflow: visible is set?


How to cd into a directory with the name "-"?

I tried to cd into a directory named - that I created for experimenting. I could not from Bash. How do I cd into it?  With Nautilus on Ubuntu 13.10 I could easily do this, and even create files inside it effortlessly.  I did a Google search and  is what I got. That covers the case when directories begin with a -, like -test, but not the case when the entire name is one single -. Even rm does not work, although I was able to delete it from Nautilus.  cat test.txt >- copies text from test.txt into a file named -, but cat - >test2.txt does what it would do in normal circumstances, that is, copy input from stdin into test2.txt, not from the file -.  Why does Nautilus have no problem with this but bash does?


Confusion about validity of work energy theorem

I recently came across an MCAT question that confused me, and I haven't been able to understand it. The answer explanation claims that the work energy theorem is not valid when there are nonconservative forces or a change in potential energy. Is that true? I have looked at other posts, but as far as I can tell, non-conservative forces and potential energy shouldn't invalidate the work energy theorem. The question is included below   "Knowing the speed of an RBC means that the initial and final kinetic energies of the RBC can be found, and therefore that the change in kinetic energy can be calculated. However, realize that the work energy theorem is valid only when there is no energy lost to non-conservative forces. Since in moving from the aorta to the capillaries, energy of the RBCs will be dissipated due to frication and the potential energy will change, the work energy theorem is invalid." According to Kaplan


One of our employees has had signed in with her Google account on a tablet (SM-T285, organizational one, and I didn't know that). Now she isn't here and we don't have access to her. Because she had had set a screen lock (and also many other customizations), I preferred to do a factory reset to make it totally clean. Now I am stuck in initial setup and need that Google account. How can I bypass this? I have googled a lot, no luck.  Thanks  EDIT: I have seen other posts, but none of them works for me. Connecting USB via OTG doesn't open explorer (Cable is OK). USB debugging disabled by default and no fastboot.


Do offensive spells and similar "missile" spells have range?

A lot of the spells in Harry Potter, including just about every offensive one like Stupefy are what I would call "missile" spells (if there's a better term for it, please tell me). That is, they basically involve shooting a spell out of your wand like a missile, as opposed to an "area of effect" form (a protective spell like Muffliato) or no really perceivable form at all (like Accio).   Do such directed spells have a limit to their range? Or will they travel until they hit something?   I'm interested because if spells have virtually infinite range and high accuracy (which is another matter), then there should be "snipers" in battles that fire curses from long range, and it would be possible to "assassinate" somebody like Voldemort or Dumbledore given appropriate conditions. Of course, people may see the spell coming, but if they're distracted enough or if there's enough interference (a firework show, for example), then this could be a very effective means of killing people from afar.


Pacman option to assume "yes" to every question?

When installing software in debian systems we can put something like this:   sudo apt-get install -y chromium-browser  that way the installation occurs automatically, whitout asking to confirm installation [Y/n]. Can i do the same with pacman?


Incorrect question asked date and question answered date in UI

I asked the question several days ago and it was answered several days ago whereas the UI shows that I asked this question yesterday and it was answered yesterday, which is wrong. Question . I now see that the question was asked 2 days ago and it was answered 2 days ago while today morning it said asked yesterday. Also, if when hovered the mouse over the date it said "2019-11-24" so it clearly shows that there is a bug in the timezone.


"not so useful as" vs "not as useful as"

I do not understand whether the first or the second sentence is correct, or perhaps both?    No other metal is so useful as iron. No other metal is as useful as iron.    Although the latter feels correct to me. Any light shed on the above would be much appreciated!


xdotool search window of Gedit doesn't work

Need to bind an F key to perform Ctrl-S in Gedit and reload page browser. Can't get xdotool to find Gedit window on Ubuntu 17.10  $ xdotool search --name "Opera" | tail -1 58720257 $ xdotool search --name "Gedit" | tail -1 $    Tried changing search string to "Text Editor", file name, etc. xdotool can't find only Gedit. Works for any other desktop window. It's always the active window so finding that would also work.


Probability of a typing monkey backspacing all letters.

Suppose a monkey is typing on a keyboard into a word document. The word document has x letters already in the document. The keyboard has n number keys on it (i.e. keys that cause another digit to appear on the screen) and k backspace keys. If the monkey types for an infinitely long time, what is the probability that at any point there will be 0 characters on the screen?


Recently I saw a widget on the Stack Overflow website which says Stack Overflow now has its own currency called "unicoins". According to this widget, a user can earn reputation, customize Stack Overflow by changing its colors and the user can also remove the vote down button from their questions and answers by spending "unicoins".  This widget does not look real, because this is out of standard of the Stack Overflow website.  Also today is 1st April. Is Stack Overflow fooling us?


Proving the number of $n$ length binary strings with no consecutive $1's$ $b_n$ is equal to $b_{n-1} + b_{n-2}$

For this problem, I used a proof by induction. My base case was essentially defining $b_1 = 2$, $b_2 = 3$, and then proceeding to the inductive step.  In the inductive step, I use strong induction. I assume the claim holds for $n=1,2,...i-1$ and show it holds for $i$.  We have by the inductive hypothesis $b_{i-1}$ is the number of $i-1$ length binary strings with no consecutive $1's$. To each of these such strings, we can add $0$ to generate $i$ length binary strings with no consecutive $1's$. We now have $b_{i-1}$ binary strings that end with $0$ and have no consecutive $1's$.  We have by the inductive hypothesis $b_{i-2}$ is the number of $i-2$ length binary strings with no consecutive $1's$. To each of these such strings, we can add $01$. These new strings are distinct from the strings we created above, as these strings end with a $1$, but the above strings end with a $0$. So, we have $b_{i-2}$ binary strings that end with $1$ and have no consecutive $1's$.   We note a binary string $B$ can be classified as such:  Ends with a 0: Last two digits are 10, 00. Case 1 considers all these strings  Ends with a 1: Last two digits are 01, 11. Case 2 considers all strings of the former case. The latter case is a violation, and each case ignores it.  Thus, $b_i = b_{i-1} + b_{i-2}$.   My problem here is:  1) Is my argument classifying the strings and then showing we counted correctly sufficient?  2) Is the proof by induction correctly formatted? I notice I am not using the fact $b_{i-1} = b_{i-2} + b_{i-3}$, but I do not know how to derive the conclusion without working on the assumption that $b_{i-1},b_{i-2}$ are indeed the correct number of binary strings without consecutive $1's$. It seems I am using induction right now to work under the assumption that the claim holds for all values $<i$, but could I not use induction and still work under this same assumption?


Collapsing a stream of multiple lines into one line

I have a file containing a a large number of lines, each of which contains a bunch of numbers which are separated by spaces. I process this data in a pipe in some way, and then I want to collapse the multiple lines into a single line of all the numbers separated by spaces.  Is there a standard command-line utility I can use to do this? It seems like most line-by-line utilities won't mess with the newlines...


My 3D View is not the same as my render result

I'm new with blender and I don't know what's happening with my 3d model. This is what it looks like with 3D view    When I tried to render, this is the result that comes up with    I've google some keywords but I still can't really solve my problem. I don't know what's going on with my render, I've tried to close Blender, then restart my computer several times, and even shut it down for a couple of hours but it doesn't help.  I'm totally new with 3D and Blender so I just follow some tutorials I watched in Youtube.


I have a pretty long paper that is getting sluggish to compile. Different sections are imported with \input. I'd like to have something like \includeonly but that works on \input rather than \include commands (\input works better for the paper as it does not start sections on new pages, etc.).  A reasonable option would be to use \include for the draft and swap back later, but thought I would ask here first if there is a command like \includeonly for \input. (By the way, I tried \includeonly combined with \input but indeed it doesn't work.)


Set a Custom Label for App Builder Lightning Component

Is it possible to set a custom label for the name of a Lightning Component in the App Builder? In the example below, my component is named "DashboardPage" - can I change the label to something else, or do I have to rename the entire component?


Can't Update to 18.04 LTS from Ubuntu GNOME 16.04.4 LTS

I using Ubuntu GNOME 16.04.4, and I cannot update to 18.04 from Software Updater.   I get the message      The software on this computer is up to date.


A Systematic way to solve absolute value inequalities?

So, I had to solve this problem: $\left\vert \dfrac{x^2-5x+4}{x^2-4}\right\vert \leq 1$ I factored it in the form: $\left\vert \dfrac{(x-4)(x-1)}{(x-2)(x+2)} \right\vert \leq 1$. After that I found the intervals in which the expression is positive: $x \in(-\infty, -2) \cup [1,2)\cup[4, \infty) $. And when expression is negative: $x \in (-2,1) \cup(2,4) $. So, then I went ahead and solved the equations, when the expression is positive and when it's negative. The answer I got for positive is: $ x \in (-2,8/5] \cup(2, \infty).$ I'm not sure how to proceed from here, I figured that I'd find the intersection of the answer I got (when solved for positive expression) and when x is positive. But that doesn't seem to be the correct way to proceed. Since my answer is way off. I've tried searching how to solve these kinds of problems, but couldn't find anything close to this. So I'd really like to know how to solve this problem and how to approach problems like these in general. I really lack intuition and would like to understand it more. I'd also appreciate any textbook / information about how to solve more complex problems in general.


I chopped up some raw assorted hot peppers, covered them with olive oil and then refrigerated them immediately. How long will they keep in the fridge?


'const string& getName() const{}' vs 'string getName() const{}'?

Now, this is highly conceptual. I don't know if I understand this correctly, so please help me understand the difference.  Let's assume that name is a private std::string data member that is accessed by the getName() accessor function:  const string& getName() const {        return name;   }   Now then, this returns a reference, which is just another word for alias, to name. So, an alias is being returned, i.e. the name data member is being returned. Is this allowed or will it defeat the whole purpose of data hiding?   In other words, how exactly is the above method different to the conventional:  string getName() const {      return name; }   ???  And finally, is it really worth implementing the former instead of the latter?


Remove file path and extension, and just leaving the file name

I have a file path /home/test/domain/example.txt It can also be completely different in length and file extension. For example: /reallylongpath/example/longername.vb  I need to remove the extension name '.' and after, and I need to delete everything other than the file name. The two examples above I would need example and longername. I was assuming to go to the last occurrence of '/' but not sure. I am looking to do this using bash.


I have been reading Men With Brooms for a few days. I read a sentence which did not make any sense to me, so I landed here to get some help on it. I have pasted the sentence from the novel. Please go through it and let me know your valuable feedback on it.  An excerpt from the novel (Men With Brooms: A Sweeping Epic, paperback 2002, a novelization by Diane Baker Mason):     Gordon was about to walk away from the Impala when he saw it stop and his son get out. So it was real the boy had come.   As per my opinion it should have been:     Gordon was about to walk away from the Impala when he saw it stopped and his son got out. So it was real the boy had come.   I have two questions here:   Why did the writer use stop and get instead of stopped and got? As she is telling us a story which happened in the past. Let's say the writer is telling us her mind's situation and she used the present tense for it but why did she use stop and get instead of stops and gets?


Ubuntu boots to a blank screen after fresh install

I want to remove Windows 7 from my existing system and do a fresh install of Ubuntu 15.10 LTS. I have given this a few attempts and and I have chosen the option that says "Erase everything and Install Ubuntu."   It then prompted me to reboot. After a reboot, nothing appears to be loaded and it's stuck on a black screen with a blinking typing bar and its not interactive!  I can't load up the boot menu because nothing appears to be loading.


I am traveling to Vietnam soon and will have a ~6 hour layover in Doha. Since this is quite some time to kill and my connecting flight leaves at 1am from Doha I am wondering about cheap options for lounges in Doha.  Am I eligible to enter any lounge cheaper (or for free) with my Diners Club or MasterCard?  Am I allowed to enter any lounge at all if my flight is economy?  What are the costs and services available?


Bash shadow a command - function with same name as command

I have a function in my .bashrc to automatically sudo to open files that aren't writable by me:  vim() {     if [ -w "$1" ]; then         \vim "$1"     else         sudo env HOME="$HOME" \vim -u ~/.vimrc "$1"     fi }   When the file needs sudo, it works fine. When it doesn't, it recursively calls this function and uses 100% of 1 CPU until I C-C.   I see there are a few options, all of which I've tried. One actually works:  'vim' "$1" #fails \vim "$1" #fails command vim "$1" #Works!   Why do the other options not work as I would expect them to?   (I know this is a duplicate, but it was very hard to find my answer on SO/SE with the current question titles, so I wanted to post a question with a title that I and others could've found by google searching)


Let $G$ be a group and let $N$ and $K$ be normal subgroups of $G.$ Suppose $N \cap K = \{e_G\}$. Prove that for all $a \in N$ and $b \in K, ab = ba.$   I am seeing that all normal subgroups are not necessarily abelian so I am not sure what tools to use for this one.


What criteria should I consider when choosing a domain register?

I want to create a blog with my own domain and there are many companies which offer the same domain for different prices.  Do they offer different services at different price points or does their reputation does depend on other aspects (reliability, support, etc)?  Which criteria do I consider to choose among them?


Free GIS software for orthorectification?

Could someone recommend a free and/or open source GIS application that can orthorectify map images?


Let $(C[-1,1],\|.\|_2)$ prove this space isn't a Banach space.  My attempt:  Let $\{f_n\}$ such that   $f_n(x)= \left\{ \begin{array}{lcc}              -1 &   if  & x \in [-1,\frac{-1}{n})               \\ nx &  if &  x \in [\frac{-1}{n},\frac{1}{n})               \\ 1 &  if  & x \in [\frac{1}{n},1]              \end{array}    \right.$  Note each $f_n$ is a continuous function in $[-1,1]$ then $\{f_n\}\subset C[-1,1]$ Moreover is easy show that $\{f_n\}$ is a Cauchy sequence in $C[-1,1]$.     I'm stuck trying to show that $\{f_n\}$ converges to $f$ but $f\not\in C[-1,1]$.


Please help me to find an example of a group epimorphism $f:G\to G$ which is not an isomorphism.   I understand that $G$ should an infinite group.


Show that $f(x + 1/n) = f(x)$ for some $x$, given $f(0) = f(1)$

Let $f: [0,1] \to \mathbb{R}$ be continuous and such that $f(0) = f(1)$. For each $n \in \mathbb{N}$, prove that there exists $x \in [0,1]$ such that $x + 1/n \in [0,1]$ and $f(x + 1/n) = f(x)$.  Don't even know where to start.


How to get  the eglibc source code used by Ubuntu?

How do I get the source code for eglibc in a format that will allow stepping through the source with gdb?    I have tried using apt-get source libc6-dev and that works for getting the source code, but I think that since the pre-processor directives were not applied that the line numbers that gdb has does not match with the source I downloaded. This makes it less useful when trying to step through the source and look at how functions in libc are working.


When I try to install Chrome through the Ubuntu Software Center, I get the message     Dependency Is not satisfiable : libstdc++6 (>=4.8.0)   How can I fix this?  I am running Ubuntu 12.04.


RegEx: Grabbing values between quotation marks

I have a value like this:  "Foo Bar" "Another Value" something else   What regex will return the values enclosed in the quotation marks (e.g. Foo Bar and Another Value)?


Linguex glosses and translation separating across page break

I use linguex and I don't want my examples to be separated from their interlinear gloss and translation by a page break. Currently I have to check the PDF output and use the package needspace, but obviously this is a chore/bore.  \needspace{4\baselineskip}   Keeps the next 3 lines together.   Is there any way of telling LaTeX not to split linguex examples across two pages, ever?  Clarification: I don't want it to keep sub-examples a. b. c. together.   Edit: adding a new command such as in the response to  is not a solution to this question - I have already stated that the solution should not involve returning to each example environment manually. The solution for gb4e is undesirable as it would involve finding each already written example, but also because it changes line spacing slightly to the old gb4e style. It also involves the addition of a command to each linguex example, making it a less than elegant solution to a global problem within the document's style. There might be a solution in adding the \nobreak command to the package somehow, but as of now, there is no solution.  What I mean is that a linguex example looks like this:  \documentclass{article} \usepackage{linguex} \usepackage{leipzig} \usepackage{lipsum} \def\glt{\nobreak}  \begin{document}  \lipsum[1-5]   \exg. y cath-od\\ {\Art} cat-{\Pl}\\ `the cats'  Some text about cats.  \end{document}     whereas the solution proposed would be this:  \exg. y cath-od\\ {\Art} cat-{\Pl}\\ \glt `the cats'     and I want my examples to stay as they were because 1) don't want to edit them all by hand 2) inelegant solution to a straightforward issue.


How to compress data using client side scripting

I got a problem while transferring data from client side to back-end. If transfer data is more then its taking more time to send the request to back-end. So, I thought if i can compress the data, then it will take less time.   Is there any compression technique or method is available in the front end side using javascript or jquery.


While working in intelliJ I was recommended to make a method be localized - by removing the access modifier. I realized I don't really know which modifier to use and when and would like some clarification.  I read this post:   and as that's for C#, although they're similar, I wanted to make sure it's not too different.  I also read the Javadoc post here:   and was still a bit skeptical.  Thanks in advanced!


Why am I shown as the first person to reopen a question, when in fact I'm the last?

This is rather weird, and maybe I'm missing something (I almost hope I am, because then this question should be closed as too localized ;P).   I saw this question in the reopen queue and voted to reopen it, however, I noticed in the revision history that it places me as the first person to vote on the question, when in fact I had just cast the last vote.


grep or find a pattern in all directories

I have an account number 1234-5678, I am trying to find it in all files of directories. I used the below command but no result found.  grep "1234-5678" */  Please can someone help me how to find it in all files of directories.


I've played a fair bit of cribbage, but I've never heard of scoring one point for "Go" (as mentioned in this other question: ).  What is it, and what impact does it have on the game?


I want to turn a photo in a engraving style picture, like  using GIMP and, if possible, then make an SVG out of it with Inkscape.  Can you recommend any filters/tools/plugins/tutorials for this?


SFTP chrooted to home directory and users wanted to have a write permission to home directory

I have a new request from the user and these are the following requirements   Request to have an sftp user account and disable shell access Sftp User should only see their home directory (ie..  /home/user1) and should not able to see other home directory Sftp user should able to write directly inside the /home/user1   As I see most of the forums you can write only by adding additional folder like /home/user1/upload.  Here are my configurations below, I'm using RedHat 6.5 with openssh-server-5.3p1-112.el6_7.x86_64 version.   /home directory is currently set as root:root /home/user1 currently set as root:root  contents of /etc/passwd  $ cat /etc/passwd user1:x:806:806::/home/user1:/sbin/nologin cat /etc/group sftponly:x:2002:user1  contents of /etc/ssh/sshd_config          $ cat /etc/ssh/sshd_config Subsystem sftp internal-sftp -u 0022  Match group sftponly     ChrootDirectory %h     ForceCommand internal-sftp     X11Forwarding no     AllowTcpForwarding no  contents of /home   $ ls -la /home drwxr-xr-x 2 root root 4096 Oct 29 10:23 user1    With this permission and configuration above sftp is working fine but I could not meet the requirement of the user because he needs to upload a folder directly in his /home/user1 directory  I've also tried to set an ACL:      $ setfacl -m user:user1:rwx /home/user1     $ getfacl /home/user1      # file: user1/     # owner: root     # group: root     user::rwx     user:user1:rwx     group::r-x     mask::rwx     other::r-x      $ sudo service sshd restart   I expect that I can able to write already but it failed to connect using winscp or filezilla it saying Network error software caused connection about, Authentication failed.  When I look the sshd logs:  $ tail -f /var/log/secure fatal: bad ownership or modes for chroot directory "/home/user1"   This means setting the ACL can cause an issue.


Sql server use variable in selection top row

I have a stored procedure that select top X from Table,   declare @i int ; set @i = 10 ; select top @i from tableNam      Incorrect syntax near '@i'.   What should i do ?  suppose that the @i comes from parameters in my storedProcedure


Validation / Dirty Flag: should we force users to fix invalid entries before they move to another screen in the software?

Scenario:   User makes a series of entries in text fields on a page that requires apply/cancel buttons. Invalid entries are flagged with an error icon and hover-over tooltips that explain the validation error.  The "apply" button remains disabled until all fields are valid; users cannot apply invalid entries BUT the user is still able to navigate away to another page of the software, at which point they receive a dirty flag notification: "You have changed some settings blah blah, would you like to apply them before leaving this page? (Apply/Don't Apply/Cancel)"   Problem:   How do we handle the case where the user clicks "Apply" in the dirty flag dialog while they still have invalid entries?    Considered solutions:    After they click "apply", they receive an error dialog stating "Some settings are invalid, could not apply" and the invalid entries are rejected, reverting the fields to their previously saved states. After user closes error dialog, they move to their destination page. We include a message in the dirty flag dialog along the lines of "Only valid entries will be applied, invalid entries will be reverted to last state." When the user clicks "apply" in the dialog, they move to the destination page and only valid entries are applied Before the dirty flag dialog even appears, the user receives a notification dialog stating "Some entries are invalid, please fix before continuing." They fix the invalid fields and try to leave the page again, at which point they encounter the dirty flag dialog.    We're in a conundrum about which solution is the most elegant. This whole situation is awkward to begin with, considering the few cases where a user would try to leave a page without applying their changes... But yeah, which of these, or others, would best be the most appropriate solution for us?


Converting three int parameter to one date

Consider three parameters:  @Y=2014 @M=11 @D=24   I want to have a function in SQL Server which gets three numbers and return one date as result.


Other people have similar errors, although this one is different, speciialy because of the getListView()  java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.ListView cookiemaster.cookieclicker.MainActivity$ItemsList.getListView()' on a null object reference    @Override public void TimerTick() {     runOnUiThread(new Runnable() {         @Override         public void run() {             totalCookies.setText("Total: " + Beautify.CommaSeparate((int)(Game.getInstance().getTotal())));            CookiesPerSec.setText(Beautify.CommaSeparateDouble(Math.round(Game.getInstance().getCps() * 100.0) / 100.0) + " CPS");               try{ ItemsList.getListView().invalidateViews(); }             catch(IllegalStateException e){}         }     }); }   Logcat:    java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.ListView cookiemaster.cookieclicker.MainActivity$ItemsList.getListView()' on a null object reference             at cookiemaster.cookieclicker.MainActivity$3.run(MainActivity.java:136)             at android.os.Handler.handleCallback(Handler.java:739)             at android.os.Handler.dispatchMessage(Handler.java:95)             at android.os.Looper.loop(Looper.java:135)             at android.app.ActivityThread.main(ActivityThread.java:5221)             at java.lang.reflect.Method.invoke(Native Method)             at java.lang.reflect.Method.invoke(Method.java:372)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)


Efficient Robust Private Set Intersection Additive ElGamal

I am trying to implement  using additive ElGamal.  I am trying to run the full protocol mentioned in Section 3.4 on the following inputs:   $p = 17$ (prime) $g = 6$ (generator) $x = 5$ (private key) $k = g^x \pmod p = 6^5 \pmod{17} = 7$ (public key)   Suppose the clients inputs are 1, 2. Then $P(x) = (x-1)(x-2) = x^2-3x+2$, and therefore the coeffiecients to encrypt are $(1, -3, 2)$. I chose $y = 10$ and so the encrypted values are:   $1$ becomes $(15,12)$ $-3$ becomes $(15, 1)$ $2$  becomes $(15, 4)$.   The Server Side Input Set $S=\{1\}$ and the random value $r0$ corresponding to $\{1\}$ is $r_0=2$.    With the above problem in context, I have some questions:   What does P 0,j refer to in Step 7. Can you please give an example? In Step 8, suddenly variable i is introduced along with j. What does i, j, refer to? In Step 8, ENC() function has a ; in between. How do we interpret ENC(a;b)?


Let $A:V\to W$ be a linear transformation and $A^*:W^*\to V^*$ the corresponding pullback such that $A^*(g)(v)=g(A(v))$, where $g\in W^*$. There's a theorem in a book I'm reading (Semi-Riemannian Geometry: The Mathematical Language of General Relativity by Newman:  Prove that $\text{im}(A^*)=\text{ker}(A)^0$ for a linear transformation $A$  If $U$ is a subspace of $V$ then $U^0$ is the "annihilator set of $U$": $U^0=\{f\in V^*:f(u)=0\ \forall u\in U\}$. The proof in the book (reproduced at the end of this question) uses a result that I don't want to use because of reasons mentioned in this question:  I'm looking at an alternative approach: Let $f\in\text{im}(A^*)$ and $v\in\text{ker}(A)$. Then there exists $g\in W^*$ such that $f=A^*(g)$. So $f(v)=A^*(g)(v)=g(A(v))=g(0)=0$. Thus $f\in\text{ker}(A)^0$. Conversely let $f(v)=0$ for all kernel vectors $v$ for some $f\in V^*$. We have to show that there exists $g\in W^*$ s.t. $A^*(g)=f$. This is where I'm having trouble - I may be missing something really easy or obvious. I could use some help in proving the $\text{ker}(A)^0\subseteq\text{im}(A^*)$ part.  Proof in book: Note that it was proved in a previous part that $\text{ker}(A^*)=\text{im}(A)^0$  $$\text{ker}(A)=\text{ker}(A^{**})=\text{im}(A^*)^0\\\implies\text{ker}(A)^0=\text{im}(A^*)^{00}=\text{im}(A^*)$$  This proof uses another fact that $U^{00}=U$ for a subspace $U$ of $V$, which again seems erroneous because strictly speaking they are NOT equal, they are just naturally isomorphic. $U^{00}$ is a subspace of $V^{**}$, not $V$. Hence the reason why I don't want to use the book proof.


Accessing raster attribute table in QGIS?

I have some Python code that makes Raster Attribute Tables for GeoTiffs using GDAL.    In ArcGIS I can see these attribute tables fine and they behave how I like (as classifications) but in QGIS the whole concept of an attribute table seems to be missing.    Is there any way to access a RAT in QGIS?


"The number $\frac 16 \pi^2$ turns up surprisingly often and frequently in unexpected places." - Julian Havil, Gamma: Exploring Euler's Constant.   It is well-known, especially in 'pop math,' that $$\zeta(2)=\frac1{1^2}+\frac1{2^2}+\frac1{3^2}+\cdots = \frac{\pi^2}{6}.$$  is nice. I would like to know where else this constant appears non-trivially. This is a bit broad, so here are the specifics of my question:  We can fiddle with the zeta function at arbitrary even integer values to eek out a $\zeta(2)$. I would consider these 'appearances' of $\frac 16 \pi^2$ to be redundant and ask that they not be mentioned unless you have some wickedly compelling reason to include it. By 'non-trivially,' I mean that I do not want converging series, integrals, etc. where it is obvious that $c\pi$ or $c\pi^2$ with $c \in \mathbb{Q}$ can simply be 'factored out' in some way such that it looks like $c\pi^2$ was included after-the-fact so that said series, integral, etc. would equal $\frac 16 \pi^2$. For instance, $\sum \frac{\pi^2}{6\cdot2^n} = \frac 16 \pi^2$, but clearly the appearance of $\frac 16\pi^2$ here is contrived. (But, if you have an answer that seems very interesting but you're unsure if it fits the 'non-trivial' bill, keep in mind that nobody will actually stop you from posting it.)  I hope this is specific enough. This was my attempt at formally saying 'I want to see all the interesting ways we can make $\frac 16 \pi^2$.' With all that being said, I will give my favorite example as an answer below! :$)$  There used to be a chunk of text explaining why this question should be reopened here. It was reopened, so I removed it.


Proof using induction: $r!$ divides the product of $r$ consecutive integers

Prove by induction that the product $$n(n+1)...(n+r-1)$$ of any $r$ consecutive numbers is divisible by $r!$.   In the inductive case i've$$n(n+1)...(n+k-1)(n+k)$$ I was not able to find a way to prove this is divisible by (k+1)!. I try to use distributive property in (n+k).


What is the Function of Apostrophes in this Idiom?

The idiom 'Cross your Ts and dot your Is' is often written with apostrophes as though they were in the possessive forms:     Cross your T's and dot your I's   It's ubiquitous online, even on dictionary websites. But I don't understand why the apostrophes and don't know the rule of grammar that permits it. Can someone please explain the correct rule that governs writing it to me?


Utility to Strip Comments from LaTeX Source

I've a LaTeX source. I'm ready %for submission %But first I would like to strip its comments.  So I hope there are 100\% auto ways to get this done.  \begin{comment}    Because there are subtle ways to mess it up. \end{comment}   Is there a utility which will eliminate all these comments?  Yes, I could do it by hand, but that seems needlessly laborious, has the potential for mistakes, and makes maintenance difficult. I could also use sed, but there's a potential for mistakes. Besides, it is an axiom of the whole GNU/Linux thing that if you can think of it, someone's probably already made a utility for it.


Find a combination with length n from an Array in Java

I am building a big Algo. and I got stuck trying to code a helping algo.  I found some good examples in the Interner but all of them are missing a small and important detail:  I need to code a methode: combine(int[] numbers, int n)  numbers is an array of unique numbers, for example: {1,2,3,4,5,6,7,8,9}  and n is the length of the combinations, for example: n=3 -> [1,2,3] or [7,2,5]  as simple example of the method:   int[] numbers = {1,2,3,4}  System.out.println(combine(numbers,2))   the output should look like this:  1,2 1,3 1,4 2,3 2,4 3,4   its very important that redundant does not come out, such as: 1,2 and 2,1 and also not same numbers such as 1,1 or 2,2  the code that I found looks like this: (it does not remove redundant and that is my problem)      public static List<int[]> combinations(int n, int[] arr) {         List<int[]> list = new ArrayList<>();         // Calculate the number of arrays we should create         int numArrays = (int)Math.pow(arr.length, n);         // Create each array         for(int i = 0; i < numArrays; i++) {             list.add(new int[n]);         }         // Fill up the arrays         for(int j = 0; j < n; j++) {             // This is the period with which this position changes, i.e.             // a period of 5 means the value changes every 5th array             int period = (int) Math.pow(arr.length, n - j - 1);             for(int i = 0; i < numArrays; i++) {                 int[] current = list.get(i);                 // Get the correct item and set it                 int index = i / period % arr.length;                 current[j] = arr[index];             }         }          return list;     }   and I did call it in main like this:   public static void main(String[] args) {     int[] current = {1,2,3,4,5,6,7,8,9};      List<int[]> s = combinations(2,current);     for(int j = 0; j < s.size(); j++) {         System.out.println(((int[])s.get(j))[0] +"," +((int[])s.get(j))[1]);     }  }   and the output looks the same like the one before but with more combinations and alot of redundants  how to edit the code above to get the output with out redundants?


What is the male equivalent of "mistress" in formal English?

The mistress definition, Oxford dictionary     a woman having an extramarital sexual relationship, esp. with a married man   I am looking for the male equivalent of 'mistress' as defined above. Some sources on the net come up with 'master' and 'mastress'. But I could not find both words in dictionary as male equivalent of mistress.  So, any male equivalents of mistress in formal English?


Is it at all possible to run a solo game where you act as the DM/GM for yourself? I know there was a 4th edition adventure published in an old issue of one of the D&D magazines but recently I read somewhere (Reddit I think) that the games Outbreak: Undead and Eclipse phase were good games to play solo.  Can anyone with experience with running a game of D&D 5e for themselves explain how to do so?


LNK2001 and LNK1120 on singleton inheritance

i have a problem with my singleton template class.. i got this problem and searched for like 4 hours or more for a solution but i dont understand why it doesnt work because i declared get_instance() in the header file and in the source file  sorry for my bad english and if its an duplicate but the other thread doesnt help me at all.  hope you can help me. thank you in advance  Fehler    LNK2001    Nicht aufgelöstes externes Symbol ""public: static class common::config_t & __cdecl common::singleton_t<class common::config_t>::get_instance(void)" (?get_instance@?$singleton_t@Vconfig_t@common@@@common@@SAAAVconfig_t@2@XZ)".      Fehler    LNK1120    1 nicht aufgelöste Externe   singleton.hpp  #ifndef SINGLETON_H #define SINGLETON_H  #include <iostream> #include <cstdint>  namespace common {     template <typename T>     class singleton_t{     public:         static T& get_instance();          singleton_t(const singleton_t&) = delete;         singleton_t& operator= (const singleton_t) = delete;      protected:         singleton_t() {}     };  }  #endif // !SINGLETON_H    singleton.cpp  #include "stdafx.h" #include "singleton.hpp"  namespace common {     template<typename T>     T& singleton_t<T>::get_instance()     {         static T instance;         return instance;     } }   config.hpp  #ifndef CONFIG_H #define CONFIG_H  #include <cstdint>  #include "singleton.hpp"  namespace common {     class config_t : public singleton_t<config_t> {         friend class singleton_t<config_t>;     public:         config_t();         ~config_t();     public:         uint32_t variable_to_do_anything;     }; }  //#define CONFIG common::config_t::get_instance()  #endif // !CONFIG_H   config.cpp  #include "stdafx.h" #include "config.hpp"  namespace common {     config_t::config_t() : variable_to_do_anything(1){      }      config_t::~config_t() {      } }   and i am trying to get it like this          auto& config = common::config_t::get_instance();         config.variable_to_do_anything;


I'm new to ubuntu, does it come with a firewall installed or will I have to install one, if so which one is best.


Is it two-third or two-thirds? If both are correct, how does their usage differ?


Show that a norm on an inner product space satisfies parallelogram law. Hence use the parallelogram law to show that the space of continuous real functions defined on the interval $[a,b]$ is not a Hilbert space. Here I did the first part. Let $X$ be an inner product space and $x,y\in X$ consider $\Vert x+y\Vert ^2$ and $\Vert x-y\Vert ^2$ Then on adding I get $\Vert x+y\Vert ^2+\Vert x-y\Vert ^2=2(\Vert x\Vert ^2 +\Vert y\Vert ^2)$ For the second part I don’t know how can a parallelogram law prove $C[a,b]$ is not a Hilbert space, help me please.


I do this to upgrade 15.10 to 16.04:       $ sudo apt-get update     $ sudo apt-get dist-upgrade     $ sudo do-release-upgrade  and after download from xenial repositories, show me this:   Checking package manager Reading package lists... Done Building dependency tree Reading state information... Done  Calculating the changes  Calculating the changes  Could not calculate the upgrade  An unresolvable problem occurred while calculating the upgrade.  This can be caused by: * Upgrading to a pre-release version of Ubuntu * Running the current pre-release version of Ubuntu * Unofficial software packages not provided by Ubuntu  If none of this applies, then please report this bug using the command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.   Restoring original system state  Aborting Reading package lists... Done Building dependency tree Reading state information... Done === Command detached from window (Sun Apr 24 23:59:43 2016) === === Command terminated with exit status 1 (Sun Apr 24 23:59:53 2016) ===    I reported the bug to ubuntu wbsite. Any idea to fix this problem and upgrade to 16.04?   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I found this and my problem is solved now :) Try executing:   grep ERROR /var/log/dist-upgrade/main.log  Hopefully this will show you the names of conflicting packages. For me it was (I broken long line to be easier to read):  2014-10-25 18:15:05,915 ERROR Dist-upgrade failed:      'The package 'postgresql-9.3-postgis-2.1'      is marked for removal but it is in the removal blacklist.  postgresql-9.3-postgis-2.1 is conflicting package here. It will probably be different one or some for you. You can then remove it/them by:   sudo apt-get remove conflicting-package-1 conflicting-package-2 ...  Then just restart distribution upgrade.   in


A word for someone willing to make sacrifices or drastic decisions

I am looking for a word for someone who is willing to make sacrifices or go to extreme lengths in order to get what they want. This is less about how badly they want something and more about how they are constantly prepared to make a tough decision. I'm looking for something more than just "determined" since its specifically focused on how willing they are to go to extremities if they feel its necessary.


How can I show long titles in a short drop-down list button?

I have a dropdown button which will display under it a list of sections for an online e-learning course.  The button works fine for short titles but this website is known for having titles that can go up to a sentence or more.  Is there any particularly good methods of showing a longer title here rather than just using an ellipses?    So the title goes where it currently says Contents however the titles can get a lot longer.


What is the use of // operator in Python and when is it advisable?

How is it different than "/"? I tried print 10//5 and print 10/5 and both gave the same result.


It doesn't matter what wagon you board; you will love the journey.   In  this sentence do I use what or should I say which?


Error running Snaps after system update throws 'multiple nvidia drivers detected, this is not supported' error

I have located where the error message originates from it is in  line number 221. As I have only a single nvidia driver installed I suspect it is is the same issue. I am not a developer but looking at the code preceding this line I can see the statement.  const char *glob_pattern = "/usr/lib/nvidia-[1-9][0-9][0-9]"  this will pick up nvidia-352/ nvidia-361/ and nvidia-361-prime/ ? on my PC.


Let A be an $n$ x $n$ matrix and let $u$,$v$ $\in$ $\mathbb{R^n}$. Prove that $$Au\cdot v = u\cdot A^Tv$$  I tried using the fact that $A^Tu=A\cdot u$. However, I cannot seem to get to this result. Could anyone please help me out?


I would like to redirect to a certain folder based on the REMOTE_USER value, so:  http://example.com/files   would redirect to:  /data/files/charlie/uploads   if the REMOTE_USER value was 'charlie'.  I've tried many things, including this:  RewriteCond %{LA-U:REMOTE_USER} !^$ RewriteRule ^/files/(.*)$ /data/files/%{REMOTE_USER}/uploads/$1 [PT]   but nothing works. I get infinite loops and 404s.  I looked at <If> but it seems REMOTE_USER is not available during <If> evaluation.  [EDIT:]  Current attempt, which results in a redirect loop for http://example.com/files/ looks like this:  # if REMOTE_USER is not empty string RewriteCond %{LA-U:REMOTE_USER} !^$  # eg /files/foo -> /data/dev/uploads/charlie/foo RewriteRule ^/files/(.*)$ /data/dev/uploads/%{LA-U:REMOTE_USER}/$1 [PT,L]  #...  <Directory /data/dev/uploads>     AllowOverride all     AuthType Basic     AuthName "Restricted Content"     AuthUserFile /etc/apache2/.htpasswd_dev     Require valid-user </Directory>   Entire conf file:  <VirtualHost *:80>     ServerName example.com     ServerAdmin admin@example.com      DocumentRoot /usr/local/www/example.com/public_html      ErrorLog /usr/local/www/example.com/logs/error.log     CustomLog /usr/local/www/example.com/logs/access.log combined     ErrorLogFormat "%{c}t %M"      Header set Access-Control-Allow-Origin "*"     Header set Origin "http://example.com"     Header set Accept "Authorization"      ExpiresActive on      <FilesMatch "\.(html|htm|js|css|ico)$">         # Header set Cache-Control "max-age=31536000"         Header set Cache-Control "must-revalidate"         # ExpiresDefault "access plus 4 hours"     </FilesMatch>      WSGIScriptAlias /api /usr/local/www/example.com/server/server.py     WSGIPassAuthorization On     WSGIDaemonProcess example.com threads=15 python-path=/usr/local/www/example.com/server     WSGIProcessGroup example.com      Alias /files /data/dev/uploads     Alias /files/ /data/dev/uploads/      RewriteEngine On      # if REMOTE_USER is not empty string     RewriteCond %{LA-U:REMOTE_USER} !^$      # eg /files/foo -> /data/dev/uploads/charlie/foo     RewriteRule ^/files/(.*)$ /data/dev/uploads/%{LA-U:REMOTE_USER}/$1 [PT,L]      RewriteRule ^/play/(.*)$ /api/play/$1 [PT]     RewriteRule ^/screen/(.*)$ /api/screen/$1 [PT]     RewriteRule ^/static/(.*)$ /static/$1 [L]     RewriteRule ^/(list|edit|help|view).*$ /index.html [L]      <Directory /usr/local/www/example.com/public_html>         Require all granted     </Directory>      <Directory /usr/local/www/example.com/server>         Require all granted     </Directory>      <Directory /data/dev/uploads>         AllowOverride all         AuthType Basic         AuthName "Restricted Content"         AuthUserFile /etc/apache2/.htpasswd_dev         Require valid-user     </Directory>  </VirtualHost>   OK, this almost works:  RewriteRule ^/files$ /files/%{LA-U:REMOTE_USER} [PT,L]  Alias /files /data/dev/uploads  <Directory /usr/local/www/example.com/public_html>     Require all granted </Directory>  <Directory /usr/local/www/example.com/server>     Require all granted </Directory>  <Directory /data/dev/uploads>     Options +Indexes     AllowOverride all     AuthType Basic     AuthName "Restricted Content"     AuthUserFile /etc/apache2/.htpasswd_dev     Require valid-user </Directory>   This seems to work:  RewriteCond %{LA-U:REMOTE_USER} !^$ RewriteRule ^/files/?$ /files/%{LA-U:REMOTE_USER} [PT,L]  Alias /files /data/dev/uploads  <Directory /data/dev/uploads>     AllowOverride all     AuthType Basic     AuthName "Restricted Content"     AuthUserFile /etc/apache2/.htpasswd_dev     Require valid-user </Directory>   [PT] is to allow the Alias to pick up the redirection, although I'm not sure that's how it works...


I have an API that accepts plain-text and IV as input and I'm trying to identify the encryption mode for that API. I have already tested this API for ECB, CBC, OFB, CFB and CTR and it doesn't seem to be any of these modes. Though on first glance it appears to be padded CBC mode but if you look at my Step 3 (see below) it isn't CBC because for padded CBC mode the Step 3 output should be C1 (first 16 byte of Step 1 ciphertext)|| C2(Step 2 cipherxtext) where || means concatenation. Any guidance on what this mode could be will be appreciated! Step 1: curl "http://dev/api/v1.0/test-1?iv=00000000000000000000000000000000&text=00000000000000000000000000000000" {"ciphertext":"e910b119321663b062ca59d3f09a95f6282397de97904f8267638c5f234b1ee7"}  Step 2: curl "http://dev/api/v1.0/test-1?iv=e910b119321663b062ca59d3f09a95f6&text=00000000000000000000000000000000" {"ciphertext":"b793f834eeb36c0eac275df3ba53c6e50de0df8f9b31afcb8b5eb89ebaaf3ad8"}   Step 3: curl "http://dev/api/v1.0/test-1?iv=00000000000000000000000000000000&text=0000000000000000000000000000000000000000000000000000000000000000" {"ciphertext":"e910b119321663b062ca59d3f09a95f6282397de97904f8267638c5f234b1ee75bd4c7fbd2cdd9b658507be2dec68429"}```


Are Basic Lands (Mana) Block/Set Agnostic?

What is the point in Wizard creating  and , for example?  It seems like it would be a lot more efficient and cost effective to everyone involved if these basic land types were not specific to a set.  Wizard wouldn't have the cost of manufacturing (as many of) them and we wouldn't need to buy new ones just to stay legal.


Sickbeard start service on boot not working: Permissions issue?

I've just installed Sick-Beard on my server. Starting the service via SSH works just fine, as I issue the command  sudo service sickbeard start   However, I can't get the service to start on boot. There are some things I'm quite sure are incorrect, but I don't know what the correct settings should be.  sudo nano /etc/default/sickbeard   currently shows  SB_USER=root SB_PROFILE=/opt/sickbeard/pid   and as for ownership and permissions,  ls -l /opt   shows  drwxrwxrwx 10 root   root   4096 Sep 28 19:24 sickbeard   Now, I'm pretty sure I should not be using root everywhere, and instead I've created a user 'sickbeard', but this does not work either, probably since this user doesn't have the right permissions. (What these should be, I don't know.)  Furthermore, I've followed  with respect to /etc/init.d/sickbeard  Now, basically, if I issue the first command above (sudo service sickbeard start|stop) it works just fine, but without sudo I get  diana@SERVER:~$ service sickbeard start Starting SickBeard start-stop-daemon: unable to set gid to 0 (Operation not permitted)   I'm out of my depth here, have searched back and forth but can't get the service to start without the sudo command which, in my mind, is preventing it from starting on reboot. But I might be wrong, it might be something else entirely, I just don't know what...  Any help is most welcome.


Python -- using function attributes as return values

I have a function that has a few possible return values. As a trivial example, let's imagine it took in a positive int and returned "small", "medium", or "large":  def size(x):     if x < 10:         return SMALL     if x < 20:         return MEDIUM     return LARGE   I am wondering the best way to write & define the return values. I am wondering about using Python function attributes, as follows:      def size(x):     if x < 10:         return size.small     if x < 20:         return size.medium     return size.large  size.small = 1 size.medium = 2 size.large = 3   Then my calling code would look like:  if size(n) == size.small:     ...   This seems like a nice built-in "enum", possibly clearer/simpler than creating a module-level enum, or defining the 3 values as global constants like SIZE_SMALL, SIZE_MEDIUM, etc. But I don't think I've seen code like this before. Is this a good approach or are there pitfalls/drawbacks?


MySQL single table static and dynamic pivot


Which is correct - "most quiet" or "quietest"?

A friend of mine saw a gun at the store that was labeled as the "most quiet gun".  Is this correct English or is it more correct to say, the "quietest gun"?


Prove that $\forall a,b\in\mathbb{C} \exists c,d \in \mathbb{C}: c+d = a \land cd = b$

Prove that: $\forall a,b\in\mathbb{C} \exists c,d \in \mathbb{C}: c+d = a \land cd = b$   We just learned about the characteristic/minimal polynomial and diagonalization but I am not sure if it has something to do with this question.  I'd be glad for guidance!


how to get line spacing greater than one and half spacing and less than double space

Does anyone know how to get line spacing in a paragraph to be greater than one and half spacing and less than double spacing? I tried \renewcommand{\baselinestretch}{value} but it did not work.


What does it meant " assignment of paper with decision in prosess " in the same time?

I have submitted the paper to  after the stage "submitted to the journal" (14 days ) ,I have received the message that paper is assigned with current stage " Decision in process " in the same time , Is this can say anything about acceptenece or reject of my paper ?


blender 2.8 texture paint material mode not showing shaded object, just flat color is shown?

blender 2.8 texture paint material mode not showing shaded object. IT just displays flat color for the object silhoutte. LookDev mode is enabled and it shows the flat color instead of the actual shading of the object with all the respective textures for normal, height etc applied.


After a recent update, I get multiple entries for same linux kernel version in the boot menu. I have tried running update-grub2 but it also lists the same linux-image version twice i.e  adnan@adnan-laptop:/boot$ sudo update-grub2 Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.32-26-generic Found initrd image: /boot/initrd.img-2.6.32-26-generic Found Windows 7 (loader) on /dev/sda1 Found linux image: /boot/vmlinuz-2.6.32-26-generic Found initrd image: /boot/initrd.img-2.6.32-26-generic Found memtest86+ image: /boot/memtest86+.bin done   As you can see vmlinuz and initrd are found multiple times. But there is only one vmlinuz and initrd file in /boot  adnan@adnan-laptop:/boot$ ls -l total 15120 -rw-r--r-- 1 root root  646144 2010-11-24 15:58 abi-2.6.32-26-generic -rw-r--r-- 1 root root  110601 2010-11-24 15:58 config-2.6.32-26-generic drwxr-xr-x 3 root root    4096 2011-01-01 18:59 grub -rw-r--r-- 1 root root 8335528 2010-12-20 23:36 initrd.img-2.6.32-26-generic -rw-r--r-- 1 root root  160280 2010-03-23 14:40 memtest86+.bin -rw-r--r-- 1 root root 2156100 2010-11-24 15:58 System.map-2.6.32-26-generic -rw-r--r-- 1 root root    1336 2010-11-24 16:00 vmcoreinfo-2.6.32-26-generic -rw-r--r-- 1 root root 4050080 2010-11-24 15:58 vmlinuz-2.6.32-26-generic   Can some one tell me why does update-grub2 finds vmlinuz and initrd twice? and how to stop this from happening.  UPDATE: Find grub.cfg


I have an Android phone and imported all my contacts from Gmail. Most of my old contacts weren't in Gmail, but on the iPhone 3GS.  Now getting the iPhone contacts into Gmail is proving to be a huge pain, there is a ton of information about this on the web but a lot of it must be outdated and none of the methods have worked for me yet.    How can I get contacts of iOS 5 iphone 3GS, and into Gmail so that they can be visible on my new Android phone (Galaxy Nexus)?  I've been trying for 4 hours and it's very frustrating.


Strange behavior of XITS Math in XeLaTeX for \underset and \underaccent commands

Prompted in part by the question , I started wondering if the \underset (from amsmath) and \underaccent (from accents) commands work equally when using XeLaTeX instead of pdflatex. The following code and associated output show that this is not the case for the XITS Math package:  \documentclass{standalone} \usepackage{amsmath,accents} \usepackage[no-math]{fontspec} \usepackage{unicode-math}    \setmathfont[version=cambria]{Cambria Math}    \setmathfont[version=lm]{Latin Modern Math}    \setmathfont[version=asana]{Asana Math}    \setmathfont[version=xits]{XITS Math} \newcommand\undersetunderaccent{$\underset{x}{A} \ \underaccent{x}{A}$} \begin{document} \Huge  \noindent \mathversion{lm}Latin Modern Math:       \undersetunderaccent\\ \mathversion{cambria} Cambria Math:      \undersetunderaccent\\ \mathversion{asana}   Asana Math:        \undersetunderaccent\\ \mathversion{xits}    XITS Math:         \undersetunderaccent \end{document}     Clearly, the output of the two commands is rather different [!] when "XITS Math" is the math font. Does the XITS Math package have to be loaded with special options to suppress this behavior, or should I plan on sending a bug report to the maintainers of the XITS Math font and/or the maintainers of the unicode-math package?  Addenda: (i) I can generate the output above using both TeXLive 2011 and MiKTeX 2.9 (both updated yesterday); the OS is Windows Vista; all math fonts on my system are the latest ones available. (ii) The problems with "XITS Math" do not arise if I run the example code above under luatlatex instead of under xelatex.


Vertical Fourier and Laplace "club" symbols

The  package provides macros for transformation signs, eg: \fourier and \laplace.    I need a vertical version of those symbols.


I am working on my Masters' thesis in aeronautical engineering and would like to make high-quality drawings (not technical drawings as in detail designs in CAD, but drawings of concepts and ideas, eg airplane with basic forces acting on it).  I am sure is this a common task in technical writings and would like to know if there is software available for such purposes?  Disclaimer: I am not a graphic designer and don't have the skill or time to make nice drawings from scratch. I am hoping there is software that has a library of a bunch of basic shapes and images that can be edited and freely used.


I have many power plans in my desktop PC - one is optimized for downloading (PC doesn't sleep but turns the display off), one for reading, one for games and so on.  But the problem is that I have no power icon in tray (notification area), so I created a shortcut of Power Plans on my desktop, but it's really annoying.    So how can I make Windows show power icon in tray?  For moderators: this may seem duplicate of  and , but they are about laptops. And their answers didn't work for this case.


Can I use exp() function inside PIC877A?

I compiled this code successfully in mikrocpro. But I can't get output in proteus.    This is the hex file link :            // LCD module connections       sbit LCD_RS at RD4_bit;       sbit LCD_EN at RD5_bit;       sbit LCD_D4 at RD0_bit;       sbit LCD_D5 at RD1_bit;       sbit LCD_D6 at RD2_bit;       sbit LCD_D7 at RD3_bit;       sbit LCD_RS_Direction at TRISD4_bit;       sbit LCD_EN_Direction at TRISD5_bit;       sbit LCD_D4_Direction at TRISD0_bit;       sbit LCD_D5_Direction at TRISD1_bit;       sbit LCD_D6_Direction at TRISD2_bit;       sbit LCD_D7_Direction at TRISD3_bit;       // End LCD module connections  void main()  {        char ch;       double m,a;       m=5.10;       a=exp(m);         TRISD = 0x00; // PORTD is output            Lcd_Init();                      // LCD display initialization           Lcd_Cmd(_LCD_CURSOR_OFF);        // LCD command (cursor off)           Lcd_Cmd(_LCD_CLEAR);             // LCD command (clear LCD)      while(1)     {           ch=sin(3.14/2.)+800/100;           Lcd_Chr(2,1,48+ch);           Delay_ms(1);     }  }


What is the default password of the sudo? I visit some forums, it tells that the default password is password, but it doesn't work, how can I determine the password?


Buttons designed with PyGame won't change value of a variable

i hope you can help, because I'm running out of knowledge. My Problem: i want to change a variable to a new value: def Schwierigkeit1():     x = 1     return x     print(x)  therefore i call this function in my Button function: def button(msg, x, y, w, h, ic, ac, action=None):     mouse = pygame.mouse.get_pos()     click = pygame.mouse.get_pressed()      if x + w > mouse[0] > x and y + h > mouse[1] > y:         pygame.draw.rect(gameDisplay, ac, (x, y, w, h))          if click[0] == 1 and action != None:             if (action == Schwierigkeit1):                 schwierigkeitComputer = Schwierigkeit1()                 print("Gegner auf Schwierigkeit: %d" % schwierigkeitComputer)  When i debug this, it shows me a good looking code and it seems to work. BUT: This button call is set in a loop to build a starting screen for my game. Whenever the program comes back to this while-loop, the value of this variable gets resetted to the "Global" value. schwierigkeitComputer = 0    def game_intro():   while intro:     pygame.display.set_caption('Spieleinstellungen')     clock = pygame.time.Clock()     intro = True     pygame.init()     gameDisplay.fill(white)              for event in pygame.event.get():                 # print(event)                 if event.type == pygame.QUIT:                     pygame.quit()                     quit()              button("1", 100, (ZEILEN + 230), 100, 50, white, LIGHTBLUE, Schwierigkeit1)  Did I mess anything up or do i not understand how a button with pygame works? Thank you for your help.


TexStudio problem (Error: Could not start the command)

I have a problem for texstudio software. When I write a very basic format, it always goes wrong. The error presents as "Error: Could not start the command: pdflatex.exe -synctex=1 -interaction=nonstopmode "First year Ro.".tex".  How to fix it? Many thanks.


Heyo-  I just started fooling around with R and want to find a good tutorial. Suggestions?   Also, are there other things I should be doing to beef up my R chops?   Context: very little coding experience, intermediate knowledge of SPSS  Much obliged.


What are the legal considerations with using spritesheets?

If you google for sprites sheets, you'll find a lot of sprites sheets. As far as I can remember, industrial patents (the terms may not be the right ones I'm sorry), after 20 years, fall into public domain. For music it's 100 years. How about sprites sheets?  I'd like to know if I can use some of them directly? If I spend a lot of time to take them, rework them as SVG and they will look modern but exactly the same as the original ones?  What is the general rule of thumb to follow to know if I can use a sprite sheet?


Consider the answer I posted here:   It is actually an improvement to the most upvoted answer. However, had I just made an edit to it (the most upvoted answer), I would have received no reputation for further upvotes. This way, however, I received 5 upvotes until now and even earned the Necromancer badge for it.  Do you think it would make sense if the editor could also earn some reputation for subsequent upvotes?  Perhaps this could be part of the edit review process, where the reviewer has e.g. a checkbox to tell whether this edit actually builds upon the original answer, so that the editor should also receive reputation for further upvotes.


How to connect to Salesforce REST API without OAuth? How does Jitterbit do it?

So what I read everywhere is that, in order to connect to Salesforce via the API, you'll have to authenticate using OAuth.  But this involves creating a Connected App, which is 'cumbersome' for normal users. They just want to login and go.   How do e.g. Jitterbit and Mavensmate etc solve this? I don't install Jitterbit/Mavensmate in my org, do I? There's no connected app in my org. Yet, they can access my data when I provide my username and password+token.  How can I connect to Salesforce without running via OAuth and a Connected App or installing something in the org?


Where should I post my sum-up of the answers, as the OP?

Sometimes as the OP (question asker), after reading through all the answers, I have my own sum-up about them. I want to tell people and all further readers about my feeling and comprehension about my desired answer and how all the answers helped towards solving my problem.  Where's the correct place to put that information? Things I've considered:   Edit into my question: No because that's not part of the question A comment under the question: I dislike that due to limited formatting in comments and its subject to removal (though the latter won't be the case) A comment under the highest-scored or the accepted answer: Still the same reason above. This is, for the time being, the place I'm posting that. A separate answer: Those thoughts probably don't qualify as an answer


How to send a system notification using python [Solved]

I have this code: from bs4 import BeautifulSoup import requests import re import time import schedule   def scrape():      regex = r"\{.availability\":\"(?P<found>\w*\")"          URL = 'someurl'      headers = {         "User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0'}      page = requests.get(URL, headers=headers)      soup = BeautifulSoup(page.content, 'html.parser')      scripts = str(soup.find_all('script'))      matches = re.finditer(regex, scripts, re.MULTILINE | re.DOTALL)      for matchNum, match in enumerate(matches, start=0):          print("{matchNum}: {match}".format(             matchNum=matchNum, start=match.start(), end=match.end(), match=match.group()))            schedule.every(3).seconds.do(scrape)   while 1:     schedule.run_pending()     time.sleep(1)  Code is checking whether an article is 'out_of_stock' or 'in_stock'. The problem is, I have to look like 24/7 at the consol waiting for the line 'in_stock' to appear. I was wondering, how to write a few lines of code to make a pop-up (?) notification saying: "Hey, 'in_stock" just popped-up!" Or I don't know, maybe a simple sound? (that's maybe even better) Any kind of notification. I would really appreciate any kind of help. I'm newbie to Python, so I'm sorry in advance if I don't know basic stuff. Have a wonderful evening! ~EDIT - I used this:


disk is full, but cannot find big files or folders

Ubuntu server shows me that I  use allmost all disk:  Usage of /:   95.5% of 118.12GB   And I try to find big folders and files, run ncdu:  ncdu 1.8 ~ Use the arrow keys to navigate, press ? for help                                                                                --- / ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------     5.5GiB [##########] /root                                                                                2.3GiB [####      ] /var   628.6MiB [#         ] /usr   209.9MiB [          ] /lib    28.2MiB [          ] /boot     8.6MiB [          ] /bin     7.7MiB [          ] /sbin     6.6MiB [          ] /etc   208.0KiB [          ] /run   112.0KiB [          ] /tmp    48.0KiB [          ] /opt e  16.0KiB [          ] /lost+found     8.0KiB [          ] /dev     8.0KiB [          ] /media     4.0KiB [          ] /lib64 e   4.0KiB [          ] /srv e   4.0KiB [          ] /selinux e   4.0KiB [          ] /mnt e   4.0KiB [          ] /home     0.0  B [          ] /proc     0.0  B [          ] /sys @   0.0  B [          ]  initrd.img @   0.0  B [          ]  vmlinuz   According to ncdu I use about 10 GiB of 128 GiB - it is about 10 %. Contradiction.  How to clean my ubutntu server without rebooting?  I thought that ncdu lies and used another apps to find big files and folders. All of them shows the same result as ncdu.  And df -h command shows that disk is full.  # df -h Filesystem      Size  Used Avail Use% Mounted on /dev/xvda       119G  113G     0 100% / udev            2.0G  8.0K  2.0G   1% /dev tmpfs           788M  212K  788M   1% /run none            5.0M     0  5.0M   0% /run/lock none            2.0G     0  2.0G   0% /run/shm   Update  sudo du -sch /* result:  /# sudo du -sch /* 8.7M    /bin 29M /boot 8.0K    /dev 6.6M    /etc 4.0K    /home 0   /initrd.img 210M    /lib 4.0K    /lib64 16K /lost+found 8.0K    /media 4.0K    /mnt 48K /opt du: cannot access `/proc/4470/task/4470/fd/4': No such file or directory du: cannot access `/proc/4470/task/4470/fdinfo/4': No such file or directory du: cannot access `/proc/4470/fd/4': No such file or directory du: cannot access `/proc/4470/fdinfo/4': No such file or directory 0   /proc 5.0G    /root 212K    /run 7.8M    /sbin 4.0K    /selinux 4.0K    /srv 0   /sys 112K    /tmp 629M    /usr 2.3G    /var 0   /vmlinuz 8.1G    total   8.1G  total as usual. But I see cannot access rows, maybe problem because of them.  Then I checked the biggest folder in /. It is /root :  /# sudo du -sch /root/* 96K /root/Downloads 2.5G    /root/Dropbox 36K /root/nohup.out 4.0K    /root/npm-debug.log 4.0K    /root/readonly 980K    /root/redis-2.6.16.tar.gz 228M    /root/tmp 2.7G    total


Prove $f'(z)=f(z)$ implies $f(z)=ce^z$ for some $c \in \mathbb{C}$

Suppose that: $$f'(z)=f(z) \text{ for all }z\in\mathbb C.$$ In other words, the complex function $f$ is equal to its own derivative.  Prove that there is a constant $c\in\mathbb C$ such that $f(z)=c e^z$; that is $f$ is the exponential function (up to a multiplicative constant).    So far, I've tried substituting $f'(z)=f(z)$ into the limit definition of $f'(z)$, to no avail. I'm trying to think of what other simple expressions I have relating $f$ and $f'$, but am not having much success.


Why would Snape still be well informed about Order plans?

When we see Snape's memories in DH Dumbledore's portrait tells Snape that he must tell Voldemort the right date Harry will be moved from Privet Dr because Voldemort believes Snape so well informed. But why would he still be considered well informed about the Order and Ministry's plans now that both believe him to be a Death Eater who murdered Dumbledore?


Customizing cover sheet for dissertation

Hi I am working on my dissertation. I need my cover sheet to be like following.                       Dissertation Title                           My name                          (centered)                    A dissertation submitted                       to University....                       (centered)                    Copyrights This copy of                    Dissertation supplied...   But I don't know how to do it exactly. Can anyone please help me with it.


There's next code:  TITLE="Some value with spaces" DIALOG="${DIALOG=dialog} --clear --no-tags --tab-correct --backtitle $TITLE " ... $DIALOG --title "Some title --menu "Menu" 15 60 5 "1" "menu1" "2" "menu2"  ...   When TITLE contains string with no spaces DIALOG works OK. With spaces - no correct substitution is done.  Tried to use variants like (with no luck):  $TITLE "$TITLE" \"$TITLE\" ${TITLE} "${TITLE}" \"${TITLE}\" TITLE='Some value with spaces' TITLE="Some\ value\ with\ spaces"   How has correct substitution to be done?


How to easily copy, download, or view all of "code box" in question?

Some questions contain long code listings, and it is often required to copy, download, or view the code in full, and maybe past/download it to a local file for compiler experiments.  Is there a better way for getting the code than doing tedious region select, scroll, and copy ?  Does it make sense to suggest some download link, or maybe copy link similar to the box appearing when pressing share for question or answer?; and how to make such a suggestion ?


I'm modelling a minigolf hole but when i create the hole with boolean modifier i see a little drop around it. This cause the ball in the game not rolling straight as it should. How can i solve this problem?


Notepad++ process hangs shortly after start; it is suddenly starting ONLY as Administrator

I've been using Notepad++ for years now. Since a short while, Notepad++ doesn't start anymore (maybe since a recent Windows Update? Or maybe a plugin update?). The process shows up in the task manager, but it seems to stop executing with a consumed CPU time of less than a second.  However, after re-installing it (V6.9.2) (and also trying the previous version 6.9.1, same effect), I noticed that it does start as usual when executed as Administrator. Note: The behavior is different than the question "" - in that case notepad++ requests Admin rights when started, in my case it doesn't start at all.  I also tried to start it without plugins using the -noPlugins command line option. No effect.  Any idea what could be the cause? What else could I try to reset?


An alternative to gender specific pronouns

Is there any suitable alternative to using both gender specific pronouns in such cases?   Example:     Client uses his/her account.


Each time I restart my computer , the nameserver change automatically , and it changed to 127.0.0.1  .  Hence in order to connect to the internet I need to edit the resolv.conf file . After each restart I find my resolv.conf file as  nameserver 127.0.0.1   then I need to edit the file to   nameserver 8.8.8.8 nameserver 8.8.4.4   What is the possible reason behind this and how can I solve it ?  My OS is ubuntu 14.04


Is there a term for an issue or activity that occurs only until the moment that you ask someone else to watch?

Is there a term for the coincidence that occurs when an issue ONLY occurs until the moment that you ask someone else to watch or help you resolve it?    For example, having an issue with software until you try to show someone, then it stops being problematic.  Or an issue with the computer/phone that resolves as soon as a help ticket is put in.    The final example is when you have a problem with your car (funny noise, etc) - you hesitate taking it in for weeks because you know it will disappear as soon as the mechanic drives it...then it does.    This is different than a , where the action of applying a debugger, for example, changes the behavior of the activity being watched.  It's also different from a 'works on my machine' scenario, where only the original user has the problem.   What is it called when a problem resolves itself just by the mention of it?  Jinxing the issue? :)  I see this every day supporting my software product -- the users are experienced and are not making mistakes at one time then doing something different when I watch.  The problems also truly resolve (coincidentally) as soon as they ask for help - they do not reoccur.  I guess it's a case of synchronicity?


I'm newly introduced to the gamma function. I was wondering how can I calculate: $$\left(n + \frac 12\right)!$$  When I entered the above in wolfram alpha the result was: $$\Gamma\left(n + \frac 32\right)$$  After researching about the gamma function, I tried to prove that the two above expression are the same but I failed. So how can I calculate $\Gamma\left(n + \frac 32\right)$?


What about the covariance formula makes it obvious that it is about 'linear' associations?

The covariance (and correlation) are described as the strength of a linear association between variables. Is there a way to see where the 'linear' part comes from in the formula?