My system's "Settings" tool can detect noise from my microphone but Discord and games can't. I changed a few settings in the system's builtin tool and in the pavucontrol, to no avail. It works fine on Windows so I know microphone is working. This was happening in 16.04 and now in 18.04. I don't know if this is relevant, but I'm using a USB sound card from a chinese brand called U Green. Any ideas?  edit:  Settings can hear my mic:   Discord can't:


Two Pythons intalled and problem importing numpy

While I was struggling to understand why I couldn't import NumPy I think that I faced another problem. During the numerous attempts and through various different "solutions" I think that I end up installing two python.   /usr/bin/python --version Python 2.7.6  renan@renan-1215B:~$ which python /usr/local/bin/python   Now when I try to import NumPy the following error appear:      >>> import numpy     Traceback (most recent call last):       File "<stdin>", line 1, in <module>     ImportError: No module named numpy   Everything seems to be installed  renan@renan-1215B:~$ apt-cache policy python-numpy python-numpy:   Installed: 1:1.8.2-0ubuntu0.1   Candidate: 1:1.8.2-0ubuntu0.1   Version table:  *** 1:1.8.2-0ubuntu0.1 0         500 http://br.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages         100 /var/lib/dpkg/status      1:1.8.1-1ubuntu1 0         500 http://br.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages renan@renan-1215B:~$ apt-cache policy cython cython:   Installed: 0.20.1+git90-g0e6e38e-1ubuntu2   Candidate: 0.20.1+git90-g0e6e38e-1ubuntu2   Version table:  *** 0.20.1+git90-g0e6e38e-1ubuntu2 0         500 http://br.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages         100 /var/lib/dpkg/status renan@renan-1215B:~$ apt-cache policy python-scipy python-scipy:   Installed: 0.13.3-1build1   Candidate: 0.13.3-1build1   Version table:  *** 0.13.3-1build1 0         500 http://br.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages         100 /var/lib/dpkg/status   I tried the following solution and get the same error message  renan@renan-1215B:~$ /usr/local/bin/python -c "import numpy" Traceback (most recent call last):   File "<string>", line 1, in <module> ImportError: No module named numpy   I want to know if it would be too much painful to remove one of these pythons (I saw some warnings to not remove python, otherwise it could crash the system, then I would not dare to do this by myself) If not, how could I do it ? And backing to the main question, what else should I try to import NumPy (I did not showed more attempts because after I notice 2 pythons installed I assumed that it could be a cause of my fail attempts, but I can say that apt-get and aptitude did not work.)


Post in flask does not render new template

Let's say I have this setup  Why after clicking "arrToPython" button flask does not redirect me to "query_result.html"? And more importantly, how can I make it to do so?  I tried creating separate route like and using flask's "redirect" method, but it did not work for me either :( test.py:  from flask import Flask from flask import request, url_for from flask import render_template from flask import redirect, Response   app = Flask(__name__)  @app.route('/', methods=['POST', 'GET']) def savingImage():     if request.method == 'GET':         return render_template('test.html')     if request.method == 'POST':         return render_template('query_result.html')  if __name__ == '__main__':     app.debug = True     app.run()   Where test.html  <!DOCTYPE html>       <title></title>            <input id="arrToPython" type=button value="arrToPython" href="result" onclick = "arrToPython()">          And query_result.html
 Hola amigo!


td;tr I'm trying to do my hello-world with creating my own normal maps. I've took this . I'm doing exactly as in the tutorial. This is my "low-poly" cube.  This is my "high-poly" cube.  Node setup  And selection during baking, just in case.  But instead of correct normal map I get this weirdness.  Can anybody explain why this happens, please.


How to separate 1 string into multiple strings

How do I convert "ThisIsMyTestString" into "This Is My Test String" using C#?  Is there a fast way to do it?  I've been thinking of a pseudo code but it's complicated and ugly:  String s = "ThisIsMyTestString";  List<String> strList = new List<String>(); for(int i=0; i < str->Length ; i++) {    String tmp = "";    if (Char.IsUpper(str[i]))    {      tmp += str[i];      i++;    }     while (Char::IsLower(str[i]))    {      tmp += str[i];      i++;    }     strList .Add(tmp); }  String tmp2 = ""; for (uint i=0 ; i<strList.Count(); i++) {   tmp2 += strList[i] + " "; }


How do I process text before I hand it over to enscript? (Or how do I print UTF8 Mutt messages to PDF?)

I'm trying to use enscript to print PDFs from Mutt, and hitting character encoding issues with curly quotes. So that an email with text like this:  “very dirty”     we’re    Comes out as:  â\200\234very dirtyâ\200\235 weâ\200\231re   My print script currently reads like this:  #!/usr/bin/env sh INPUT="$1" PDIR="$HOME/Desktop" OPEN_PDF=evince    tmpfile="`mktemp $PDIR/mutt_XXXXXXXX.pdf`" enscript --font=Courier8 $INPUT -2r --word-wrap --fancy-header=mutt -p - 2>/dev/null | ps2pdf - $tmpfile $OPEN_PDF $tmpfile >/dev/null 2>&1 & sleep 1 rm $tmpfile   Is there a way to replace the curly quotes before I send it to enscript? Or a character encoding I can use that will handle the quotes?  If there's another (better?) way to print to PDF from Mutt, I'm all ears. I just need to ensure that my quotes aren't getting fouled up.


How do we have ${\mathbf {v} }^{\mathrm {T} }{\mathbf {v} }={\mathbf {v} }^{\mathrm {T} }Q^{\mathrm {T} }Q{\mathbf {v} }$?

From , if a linear transformation, in matrix form $Q{\mathbf {v}}$, preserves vector lengths, then: $${\displaystyle {\mathbf {v} }^{\mathrm {T} }{\mathbf {v} }=(Q{\mathbf {v} })^{\mathrm {T} }(Q{\mathbf {v} })={\mathbf {v} }^{\mathrm {T} }Q^{\mathrm {T} }Q{\mathbf {v} }.}$$ What happens to $Q^{\mathrm {T} }Q$?


Is it possible to upgrade a BGA 1224 CPU?

I want to upgrade the CPU of my T430s laptop from i7-3520M to i7-3632QM. I'm sure i7-3632QM is supported (same socket (BGA1224), same TDP (35W) and microcode found in BIOS (306A9.PAT)).  So my question is: 1) is it possible to de-solder the current CPU without damaging it, and to solder the new CPU without damaging it and the motherboard ? 2) if so, what tools are necessary? who can do that at a reasonnable cost?  Until now, I was unable to find anyone able (or willing) to do that (I'm located in France, and I have tried a local fablab, electronics shops, TV repair shops, ...). Any hint would be appreciated.


Can Blackbeard consume more than one Devil Fruit?

Can Blackbeard consume more than just one Devil Fruit? If yes, then what is the upper limit?  When he reaches the maximum number of Devil Fruits, can he change them, i.e. can he lose one of the Devil Fruits to consume a new one?


How to make Live Server USB with updated package

How do I make a new version of the ubuntu-18.04-live-server-amd64.iso with an updated version of the installer (in particular curtin).  I need to do this because I am experiencing a bug that was fixed in curtin version18.1-17-gae48e86f-0ubuntu1 but no new ISO's have been released yet.  Bug Report:   Fixed In:   Edit: I would use the alternate installer except it suffers from another bug () that also effects me.  Edit: Ended up using the alternative installer and removed all drives, except the OS drive to avoid the bug above.


Evaluate strength of enemies with class level

How can a player evaluate the strength of an ennemy? My players encounter guards that were far less powerful than them but fled because they looked strong. Can they make a skill check for evaluating CR of enemy with class levels?


How to unzip a multipart (spanned) ZIP on Linux?

I need to upload a 400mb file to my web server, but I'm limited to 200mb uploads. My host suggested I use a spanned archive, which I've never done on Linux.  I created a test in its own folder, zipping up a PDF into test.zip.001, .002, and .003. How do I go about unzipping it? Do I need to join them first?  Please note that I'd be just as happy using 7z as I am using ZIP formats.  If this makes any difference to the outcome.


CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page

I have the following page (deadlink: http://www.workingstorage.com/Sample.htm ) that has a footer which I can't make sit at the bottom of the page. I want the footer to  stick to the window bottom when the page is short and the screen is not filled, and stay at the document end and move down as normal when there is more than a screenful of content (instead of overlapping the content).  The CSS is inherited and befuddles me. I can't seem to change it properly to put a minimum height on the content or make the footer go to the bottom.


I want to have my sections in independent .txt files in the folder of my assignment. So I use \input{text.txt}. The problem is, I write in Danish and we have the 'æ' 'ø' 'å' characters that aren't normally recognized by LaTeX. I fixed it within the master .tex file, so when I write the letters, it shows up nicely in my document. It does not however show up nicely, if I put one of the characters in the file name or within the .txt files. Now, I don't mind that I have to avoid them in file names, but I really need them to be recognized within the file.  \documentclass[10pt,a4paper]{article} \usepackage[danish]{babel} \renewcommand{\danishhyphenmins}{22} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \usepackage[danish=quotes]{csquotes}  \begin{document} æ ø å \input{text.txt} \end{document}   I can't upload the .txt file, but if you copy the three letters, put it in a document called text.txt file and put it in the folder, you'll see what I mean.  If I delete \input{text.txt} from the document, or avoid using those three letters in the input file, everything works perfectly and it writes 'æ ø å' in the output file.  I asked this question on another forum, but they weren't much help. They talked about it being the wrong encoding and told me, that if I saved it as .tex files there would be a dialogue that would enable me to change the encoding of the input document so it would be compatible, however there is no such thing in the 'Save as' dialogues I get from TeXworks. I also have it set to utf8 in my preferences in TeXworks, however that doesn't seem to influence much of anything.


I know how the code work. But does not know Why? What are the differences between pointers? struct List{    int val;    List *next; } /// where is the different between fun1 and fun2 receiving the List void fun1(List **head){} void fun2(List *head){} int main(){     List *head;      /// where is the different between fun1 and fun2 passing the List     fun1(&head);     fun2(head); }


Should I Use “These” Books or “Those” Books

On this site there are links to books that I read. I recommend these/those books.   Below on this page there are links to books that I read. I recommend these/those books.      Should I use these or those?  EDIT: I replaced “lists” with “links”.  NOTE: Each link redirects the visitor to another site.


Is there any online facility to donate to Ubuntu on a recurrent (monthly) basis? Are there any fiscal/tax deductions for doing so? If so, in what countries?


How to add and align figure and texts like that

Please show me how I can do that. And I want to use many times. Help me write a macro so that I can use every time I need.  For example,   \begin{question}      Texts in the question field.  \end{question}     Update: This question is already solved by other linked questions.


I am trying to ring a phone bell with an Arduino. I have tried using a 12v motor controller (h-bridge), but I have an old bell, and that was barely enough to drive it, and I'd also like to use a single 5v wall wart to power the entire thing (logic board and bell).  I found several circuits that can be powered by 12v, expensive or hard to find ring generators (Black Magic and others), and one unit that seems like an ideal match, but a bit of an overkill, really:   So I'm looking for a schematic for something simpler that could make that bell ring off a 5v supply. As far as I understand it should be some kind of boost circuit and h-bridge combo, so I can control the frequency of the bell from firmware. But a fixed frequency bell that I can turn on and off will do as well.


My shortcuts often get broken because I move stuff around and unfortunately, the Windows link tracker can't keep up. Is there a way to programmatically (with Powershell) read and edit the properties of the shortcut? I would like to run a script that searches the whole hard drive (or wherever I specify) for a file that matches the target name and then update the shortcut with that new location assuming it is the right file.


Difference between amd64 and i386 version of Ubuntu

Can anyone explain the difference between these versions of Ubuntu?  I installed 11.10 i386 and wrote some C code that worked fine in that platform but failed to work in 11.10 amd64 on the same machine.  After debugging with valgrind and gdb I got that I was getting segmentation fault in a call to realloc() with an argument mem_ptr and size 0 passed to it.  I learned here that i386 is also referred to as 32-bit and amd64 as 64-bit, but what does this mean?  CPU: Intel i7 2nd generation


I'm using Kubuntu 18.04 and I want to run the kate editor with root privileges  sudo kate produces the message running kate as root is not possible. I think that's utterly silly.  How can I bypass it? Answer: just edit the file, even if it's a system file, using plain oldkate.  You don't need root privileges to edit it; you only need root privileges to save it.  When you save a system file, you'll be asked for the root password.  Supply it and the save takes place.  Easy!!


Proving a Functional Equation is Differentiable

Let $f:(0,\infty )\rightarrow \mathbb{R}$ satisfy $f(xy)=f(x)+f(y)$ and let f be differentiable at x=1. Prove f is differentiable over it's entire domain with derivative $f'(x)=\frac{f'(1)}{x}$  Using the definition of a derivative, $$f'(1)=\lim_{h\to0}(\frac{f(1+h)-f(1)}{h})=\lim_{h\to0}(\frac{f(1+\frac{h}{1})}{h})=\lim_{h\to0}(\frac{f(1+h)}{h})$$  Now similarly,  $$f'(x)=\lim_{h\to0}(\frac{f(x+h)-f(x)}{h})=\lim_{h\to0}(\frac{f(1+\frac{h}{x})}{h})$$  This is where I get really stuck, I've tried manipulating this expression as much as I can and can't seem to get any further. Searching online I found this old post: , and managed to use it to manipulate my expression to the form:  $$f'(x)=\frac{1}{x}\lim_{h\to0}(\frac{f(1+\frac{h}{x})}{\frac{h}{x}})$$  By using the limit laws and dividing through by x. From this point I just can't seem to proceed. I can't see how $f'(1)=\lim_{h\to0}(\frac{f(1+h)}{h}) $ could equal $\lim_{h\to0}(\frac{f(1+\frac{h}{x})}{\frac{h}{x}})$ Any help would be much appreciated.


Triangles are used in structures because they are the most rigid shape. And they are many descriptions of this on network and, if I am not mistaken, this all comes down to the law of cosines.But why this holds? Is it maybe because if we connect three random points on a planes their internal angles will add to half revolution? Is there a more fundamental reason for the rigidness of triangles? Engineer here, please don't mind the naive question


I have a method that is supposed to return a ByteBuffer. The meat of the method does the following:  if (true) {     //code that puts some data into ByteBuffer bb     return bb } else {     //should not be writing any data to bb      //intention: leave bb as is     return null; }   After calling this method and putting the necessary data into the ByteBuffer, I turn it into a byte array by first calling bb.flip(). However, if the last iteration through the if-else loop happened to be false, the last data inputted was null and I get the java.lang.NullPointerException error.     According to the page above, I'm supposed to return a zero-length ByteBuffer, but I'm not sure how to return something like that.  Any ideas on how to return an empty byte buffer?


In Python, what happens when you import inside of a function?

What are the pros and cons of importing a Python module and/or function inside of a function, with respect to efficiency of speed and of memory?  Does it re-import every time the function is run, or perhaps just once at the beginning whether or not the function is run?


I need to clear up what I mean by order here. I am simply asking about what order the data is fetched in.  If I simply SELECT * FROM table; in SQL Server without an ORDER BY clause, I find that the results always come in the same order. That certainly is not the case with some other database servers, such as PostgreSQL.  Is the observed behaviour actually happening? I presume that the results will be returned in the order the rows were added.  I have not tried with very large tables, but it certainly appears to be the case for the tables I have worked with.  Note:  This question relates only to SQL Server. I quite understand that SQL itself does not have a preferred order, and that is my experience with other databases.  The point is that SQL Server appears to prefer the allocation order, and I wondered whether that's true.  Note 2:  As regards this question’s being a possible duplicate, I have no interest in why rows are being added anywhere in particular. I just want to know whether they are normally returned in allocation order …


Avoid duplicated code 'cause of null objects?

As you know, in a lot of cases we need to check if an object is null or not to execute a method. It`s really not good to code, it gets ugly and repetitive. And sometimes the null objects was excepted (Search of a key in a list, or class dependency etc).   For example, using DI (using java, but can be any), as another approach that is not on constructor (method, property), we not know when the dependency will be set, and we need to check every place we must use the dependency. For example a logger:  If (logger != null ){   logger.error("blah"); }   It began to annoy me. I was thinking something to avoid this kind of situations.  Maybe some operator or notation to make this kind of code not so repetitive.  What do you think about some kind of ?  logger!.error("blah");   The void error will only be called if logger is not null (!. operator). Or something on field declaration.   @SafeCall //the name is just illustrative  Logger logger;   So, all the logger.*, just will be execute if the object is not null. Sure, I think that this on compile time should do what we do by hand, as the first example. Some opinion about ?  Do you know some good way to avoid the repetitive code ?    Thanks


Are there any physics equations that involve exponents >= 5?

This might be a strange physics question, but I am curious about it. Are there any physics equations that involve exponents $\geq$ 5?  There are plenty of equations with square exponents. Inverse square laws are the most obvious to me, like the universal gravitational force law. $$ F = \frac{GMm}{r^2}$$  I've seen some equations with an exponent of 3, like  in a fluid:  $$ P = \frac{1}{2}\rho v^3 A C_d $$  And also various cube-square laws like the semi-major axis related to the :  $$ a^3 = \frac{GMT^2}{4\pi^2} $$  I've also seen an equation with an exponent of 4. It's the  for black bodies, usually used for star luminosity: $$ L = \sigma A T^4 $$  There are also various  involving the 4th power of length, like a simple beam supported at both ends:  $$ \delta _{max} = \frac{5qL^4}{384EI} $$  But that might be considered more engineering than physics.  Anyway, I have never seen a physics equation involving an exponent of 5 or more. Do they exist? Is there some reason why they are super-rare or non-existent?  Admittedly, there is some arbitrariness in this question. For example, we could take any law we want, like Hookes Law, and take both sides to the 5th power...  $$ F = -kx $$  $$ F^5 = -k^5x^5 $$  But that's way too arbitrary. I guess the best way to avoid that is to say we want a physics equation in its most simple or most useful form.  Also, you could say that the hypervolume of a cube in 5 dimensions is equal to $x^5$. That is a little too arbitrary too. Not even sure if that's physics or just plain geometry.


Am developing a website, I have used many anchor link in menu navigation and given absolute URL. Somewhere I read we can also use relatives URL in menu navigation.  From SEO point of view, which is better for menu navigation absolute or relative URLs?


UBUNTU GNOME 16.10 constantly asked to enter password for keyring

I have just installed ubuntu 16.10, have all the latest updates and keep getting asked to decrypt a keyring. I have never seen this ever and I have been using ubuntu gnome for two years.  I started with a completely new user account.  Why am I always being asked this? It happens when I try and start software, install software, authorise online accounts etc... and I enter my password for the current user but it doesn't seem to be the required password. I keep getting asked over and over again


error: file '/grub/i386-pc/normal.mod' not found in Ubuntu MATE 16.04 32-bit

I got this message when I restarted my Ubuntu MATE 16.04 32-bit. How do I fix this?  error: file '/grub/i386-pc/normal.mod' not found


Can I install Ubuntu on Toshiba Satellite Click Mini?

I'd like to buy a small netebook with long battery life, and found .   I looked at  but did not find whether this is compatible so appreciate if someone share experience about it.


Why do smaller weights result in simpler models in regularization?

I completed Andrew Ng's Machine Learning course around a year ago, and am now writing my High School Math exploration on the workings of Logistic Regression and techniques to optimize on performance. One of these techniques is, of course, regularization.  The aim of regularization is to prevent overfitting by extending the cost function to include the goal of model simplicity. We can achieve this by penalizing the size of weights by adding to the cost function each of the weights squared, multiplied by some regularization paramater.  Now, the Machine Learning algorithm will aim to reduce the size of the weights whilst retaining the accuracy on the training set. The idea is that we will reach some point in the middle where we can produce a model that generalizes on the data and does not try to fit in all the stochastic noise by being less complex.  My confusion is why we penalize the size of the weights? Why do larger weights create more complex models, and smaller weights create simpler/smoother models? Andrew Ng claims in his lecture that the explanation is a difficult one to teach, but I guess I am looking for this explanation now.  Prof. Ng did indeed give an example of how the new cost function may cause the weights of features (ie. x^3 and x^4) to tend towards zero so that the model's degree is reduced, but this does not create a complete explanation.  My intuition is that smaller weights will tend to be more "acceptable" on features with greater exponents than ones with smaller exponents (because the features with small weights are like the basis of the function). Smaller weights imply smaller "contributions" to the features with high order. But this intuition is not very concrete.


I have to limit to 2 rows.  But can't do it for a SQL-Fetch.  select * from employee;


Is there a way to change the position of the top menu bar?

I'd like to know if there's a way to put the menu bar in the bottom, instead of it being in the top.


Little micro-controller (arduino) for my home automation project listens to a pin high low status change.  When the pin status changes,   function is called like below:    NotSureYet  sendMessageOnPinChange(8, "You turned on the kitchen lights ");   returns   The function will check if it was invoked with first parameter being an integer range from 0 to 16, else it returns 'error' (like: you should use a number between ...) the function checks if the second param is of type char * (a string), else it returns an error (like: the message is not a string) the function also returns if the message was 'sent' correctly or not   Question What would be the return type NotSureYet?  While once it returns "Message Sent success", which is NOT an error, and any other case it returns "error integer" or "error Message" or ... So I am not looking for error checking, I am looking for the return type of 'NOT_SURE_YET'


How do you leave a Stack Exchange community

There are so many Stack Exchange communities that you don't always realize what you're getting into until it's too late, so my question is: How do you leave a particular Stack Exchange community that is already up and running without deleting your account?  If it is not a thing to leave a Stack Exchange community can you please add it?


Regex matchs the whole string when I make a break

I have a problem with my regex, which should detect all echo functions in a string. So right now I have this expression:  /echo(.|\n)*?\(?"(.|\n)*"\)?;/g   This works until you make a break line in the quotes. If you do that, it would match the whole code until the end, as you can see in the picture:    You can get it .  What did I wrong? What do I have to change?


Show number of search results at the TOP

Every search engine out there displays the number of results at the top of the result listing. Yet SO and after several requests and no feedback, still does not display the number. It feels like hiding the number is intentional!  Only showing number of pages and result/per page at the bottom is not very helpful. Plus if the results are more than 500, you have no idea what the number is.


How to get the path to a file in your system

I am trying to cd /home/ervin/Downloads/psneuter in order to push psneuter to an android phone in order to root it.  I believe the path to the file and folder is correct, yet I get a message no such file or directory.  Am I doing anything wrong? It worked in Fedora, don't know about here.


Which OpenType Math fonts are available?

What OpenType math fonts are there available for usage in TeX/LaTeX, e.g. with the unicode-math package?  Here is a MWE which you can use to show off the font.  \documentclass{article} \pagestyle{empty}  \usepackage{amsmath} \DeclareMathOperator\Res{Res} \newcommand*\diff{\mathop{}\!\mathup{d}}  \usepackage{amsthm} \newtheorem{theorem}{Theorem}  \usepackage{unicode-math}  %%% % Set up you text and math fonts %%%  \begin{document}  \begin{theorem}[Residue theorem]   Let $f$ be analytic in the region $G$ except for the isolated   singularities $a_1,a_2,\dots,a_m$. If $\gamma$ is a closed   rectifiable curve in $G$ which does not pass through any of the   points $a_k$ and if $\gamma\approx 0$ in $G$, then   \[     \frac{1}{2\pi i} \int\limits_\gamma f\Bigl(x^{\mathbf{N}\in\mathbb{C}^{N\times 10}}\Bigr)     = \sum_{k=1}^m n(\gamma;a_k)\Res(f;a_k)\,.   \] \end{theorem}  \begin{theorem}[Maximum modulus]   Let $G$ be a bounded open set in $\BbbC$ and suppose that $f$ is a   continuous function on $G^-$ which is analytic in $G$. Then   \[     \max\{\, |f(z)|:z\in G^- \,\} = \max\{\, |f(z)|:z\in \partial G \,\}\,.   \] \end{theorem}  First some large operators both in text: $\iiint\limits_{Q}f(x,y,z) \diff x \diff y \diff z$ and $\prod_{\gamma\in\Gamma_{\bar{C}}}\partial(\tilde{X}_\gamma)$;\ and also on display \[   \iiiint\limits_{Q}f(w,x,y,z) \diff w \diff x \diff y \diff z   \leq   \oint_{\partial Q} f'\Biggl(\max\Biggl\{   \frac{\Vert w\Vert}{\vert w^2+x^2\vert};   \frac{\Vert z\Vert}{\vert y^2+z^2\vert};   \frac{\Vert w\oplus z\Vert}{\vert x\oplus y\vert}   \Biggr\}\Biggr)\,. \]  \end{document}   Here is a similar MWE for ConTeXt.  The images in the answer will only be shown for LaTeX output but the ConTeXt output looks very similar.  %%% % Set up you text and math fonts %%%  \setupmathlabeltext[Res=Res] \definemathcommand[Res][nolop]{\mfunctionlabeltext{Res}} \definemathcommand[diff]{\mathop{}\!\mfunctionlabeltext{diff}}  \defineenumeration   [theorem]   [text={Theorem},    style=italic,    title=yes,    titlestyle=normal,    distance=0pt,    titleleft={(},    titleright={).~},    alternative=serried,    width=fit]  \starttext    \starttheorem[title={Residue theorem}]     Let $f$ be analytic in the region $G$ except for the isolated     singularities $a_1,a_2,\dots,a_m$. If $\gamma$ is a closed     rectifiable curve in $G$ which does not pass through any of the     points $a_k$ and if $\gamma\approx 0$ in $G$, then     \startformula       \frac{1}{2\pi i} \int\limits_\gamma f\Bigl(x^{{\mathbf N}\in\mathbb{C}^{N\times 10}}\Bigr)       = \sum_{k=1}^m n(\gamma;a_k)\Res(f;a_k)\,.     \stopformula   \stoptheorem    \starttheorem[title={Maximum modulus}]     Let $G$ be a bounded open set in $\mathbb{C}$ and suppose that $f$ is a     continuous function on $G^-$ which is analytic in $G$. Then     \startformula       \max\{\, |f(z)|:z\in G^- \,\} = \max\{\, |f(z)|:z\in \partial G \,\}\,.     \stopformula   \stoptheorem    First some large operators both in text:   $\iiint\limits_{Q}f(x,y,z) \diff x \diff y \diff z$   and   $\prod_{\gamma\in\Gamma_{\bar{C}}}\partial(\tilde{X}_\gamma)$;\   and also on display   \startformula     \iiiint\limits_{Q}f(w,x,y,z) \diff w \diff x \diff y \diff z     \leq     \oint_{\partial Q} f'\Biggl(\max\Biggl\{     \frac{\Vert w\Vert}{\vert w^2+x^2\vert};     \frac{\Vert z\Vert}{\vert y^2+z^2\vert};     \frac{\Vert w\oplus z\Vert}{\vert x\oplus y\vert}     \Biggr\}\Biggr)\,.   \stopformula  \stoptext


Why does lower focal length magnifies objects better comparing to other camera?

I have a newbie question about focal length, what it actually means for lenses and how I can translate this into "how close to the target it's going to practically take me" (I don't want to use the term zoom here to avoid confusion, perhaps magnifying power is what describes best what I'm after, basically shots from the distance, not macro).  Here's an example: I currently have a Sigma 18-200mm lens (therefore approx. 11x zoom), which I use with Canon EOS 400D and also a compact Sony Cyber-Shot DSC-HX60 with focal length 4.3-129mm (approx. 30x zoom). Even though 200mm is obviously more than 129mm the Sony camera takes me closer to the target. Looking at zoom factor (30x comparing to 11x) this may seem obvious, but it's less obvious when you compare it to other lenses, e.g. 200-500mm lens, which effectively has "only" 2.5x zoom, but actually takes me closer to the target.  How can I make sense of this when looking at other lenses? For example let's consider Tamron 16-300mm, its zoom is obviously approx. 20x, but how can I compare it to Sigma 18-200mm or Cyber-Shot 4.3-129mm? Is it going to take me closer to the target, e.g. magnify objects better then both of them or only better than Sigma, but still not as good as Sony? (ignoring quality of picture of course)


Given two straight lines $$y=m_1x+c$$ and $$y=m_2x+d$$  When two lines are perpendicular to each other the product of their gradients, $m_1m_2=-1.$  How can I show that $$m_1m_2=-1?$$


JNA: Computed size of char array member of a struct is surprising

Can someone explain to me why the following structure size is 16 ?  public class StringStruct extends Structure {   public char[] data = new char[4];    public StringStruct() {}    @Override   protected List<String> getFieldOrder() {     return Collections.singletonList("data");   } }    public class Main {    public static void main(String[] args) {      StringStruct ss = new StringStruct();      // Prints StringStruct: 16     // I was expecting 4...     System.out.println("StringStruct: " + ss.size());    }  }   I want to model structures which own their data  typedef struct {    char data[4]; } StringStruct_s    If I use a byte array instead, it returns the expected value. Still, the char array size is really surprising to me. Is the field interpreted as owning an encoded String ? So, I launched this executable with various explicit encodings (-Djna.encoding="...") to see if it had an effect. No change...


I have an MXD that someone else has created. They have put some sort of lock on the extent that stops me from zooming and panning. I can't for the life of me work out how to turn it off.   Does anyone know?


Foreword: I'm aware that I'm doing unusual stuff with LaTeX :P I noticed that when I use \edef in something that contains an unicode (non-ASCII) character, TeX not only expands the macros, but also expands said unicode character (an ó, for example). I also learned that LaTeX does some  with these characters when writing the auxiliary files. But these two facts don't add up Ç_Ç. For example, the following code will throw an error when compiled for the second time to add the \listoftables. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \edef\WeirdWayOfInsertingACaption{Fósforo}  \begin{document}  \listoftables  \begin{table}  \caption{\WeirdWayOfInsertingACaption}  \begin{tabular}{cccc}   Can & I & Haz & LOT?  \end{tabular} \end{table}  \end{document}  It will break beacuse \edef somehow expands the ó in such a way that LaTeX fails to spot it and write the \IeC{\'o} to the .toc file. Instead it writes a plain ó, and when the \listoftables command tries to write the List of Tables, we get this error:  ! Package inputenc Error: Unicode char �sfo (U+14B) (inputenc)                not set up for use with LaTeX.  Is it possible to make the above code work keeping the \edef?


How do I write a bash script to restart a process if it dies?

I have a python script that'll be checking a queue and performing an action on each item:  # checkqueue.py while True:   check_queue()   do_something()   How do I write a bash script that will check if it's running, and if not, start it.  Roughly the following pseudo code (or maybe it should do something like ps | grep?):  # keepalivescript.sh if processidfile exists:   if processid is running:      exit, all ok  run checkqueue.py write processid to processidfile   I'll call that from a crontab:  # crontab */5 * * * * /path/to/keepalivescript.sh


Sci fi short story name about cyborg time traveling soldier

I have been trying to track down story I read in a middle school or high school class about a decade ago. It involves a soldier that was sent to "the end of time" in a gigantic battle for the universe. All of the soldiers in the battle get cybernetic enhancements to aid in their fighting ability. That was just the main character's back story. The main part had to do with the soldier coming home or to a comfortable time and trying to live in peace, but he spots a group of soldiers also from the war that start causing trouble in his town and so he fights them to protect the locals.  I appreciate any help. I don't know why but occasionally i think of that story and have tried to track it down a few times, obviously to no avail.


Why is this true? $(\exists x)(P(x) \Rightarrow (\forall y) P(y))$


"Failed to activate service 'org.freedesktop.Avahi'" how to get rid of this message?

I disabled the avahi-daemon according to the method set out , namely editing the /etc/init/avahi-daemon.conf file to:  start on (never           and filesystem       and started dbus) stop on stopping dbus   After a reboot, I now get from service avahi-daemon status (or initctl list | grep avahi)    avahi-daemon stop/waiting   Which sounds like I have successfully disabled the service.   However, in my syslog at boot I see :  dbus[991]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out dbus[991]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out   This seems to cost me half a minute of extra boot time...How can I disable this trying to launch avahi?


How to migrate from numprint to siunitx while keeping the same font?

Until now I used the numprint package to display the units correctly. But since the solution given by @egreg to this question: , I try to code everything with a single package: siunitx.  The problem is that I can't get the same display as with numprint.  For example, the abbreviation for liter is "l" (lowercase "ell"). Under beamer, it is without serif, which poses reading problems to young students who begin learning units of measurement, because one can confuse it with a stylized number "1".  \documentclass[a4paper, 11pt]{beamer} % Présentation générale et mise en page  \usepackage[french]{babel} \usepackage[np]{numprint} \usepackage{siunitx} \sisetup{locale=FR} \begin{document} Avec numprint: Le bol contient \numprint[l]{0.3} de thé vert.  Avec siunitx: La bouteille contient \SI{0.75}{\litre} de vin.  \end{document}   Output:      Edit: The global detect-all option does not solve this problem. Specifically, the dectect-all option doesn't affect the font used for the units; see the following code and screenshot.  \documentclass[a4paper, 11pt]{beamer} % Présentation générale et mise en page  \usepackage[french]{babel} \usepackage[np]{numprint} \usepackage{siunitx} \sisetup{locale=FR,detect-all} \begin{document} Avec numprint: Le bol contient \numprint[l]{0.3} de thé vert.  Avec siunitx: La bouteille contient \SI{0.75}{\litre} de vin. \end{document}     How to get the same font combination as numprint when printing with siunitx?  Translated with www.DeepL.com/Translator


Can I install Ubuntu Touch on Huawei Ascend Y511-U30

can I install ubuntu touch in my android device???


Unable to uninstall MySQL 5.7 from Ubuntu 16.04

I have the following results  $ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   mysql-server-5.7 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 48.3 MB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 230940 files and directories currently installed.) Removing mysql-server-5.7 (5.7.20-0ubuntu0.16.04.1) ... update-alternatives: error: /var/lib/dpkg/alternatives/my.cnf corrupt: invalid status dpkg: error processing package mysql-server-5.7 (--remove):  subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing:  mysql-server-5.7 E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get --purge remove mysql-server Reading package lists... Done Building dependency tree        Reading state information... Done Package 'mysql-server' is not installed, so not removed The following packages will be REMOVED:   mysql-server-5.7 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 48.3 MB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 230940 files and directories currently installed.) Removing mysql-server-5.7 (5.7.20-0ubuntu0.16.04.1) ... update-alternatives: error: /var/lib/dpkg/alternatives/my.cnf corrupt: invalid status dpkg: error processing package mysql-server-5.7 (--remove):  subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing:  mysql-server-5.7 E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get --purge remove mysql-server-5.7 Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   mysql-server-5.7 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 48.3 MB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 230940 files and directories currently installed.) Removing mysql-server-5.7 (5.7.20-0ubuntu0.16.04.1) ... update-alternatives: error: /var/lib/dpkg/alternatives/my.cnf corrupt: invalid status dpkg: error processing package mysql-server-5.7 (--remove):  subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing:  mysql-server-5.7 E: Sub-process /usr/bin/dpkg returned an error code (1)   How can I solve this?


Help! 'Saving' animation for edits that are saved on change (without clicking a save button)

I can't think of great examples on the net (comparisons to draw, that is). You've seen the feature before though. You are making an edit to something--say, a setting. And when you make the change, there is a quick transparent modal with the 'loading' circle animation (or a flashing disk or something), and the word 'Saving', or something similar. This appears on screen for maybe half a second, one second? Then it goes away, and there is a fade-out box near the saved feature that says 'Saved', or 'Successful', and it fades out over 5 seconds or something...  So, despite sounding like a teenage girl in the explanation (like, totally), have I explained it well enough?   My question here is, what are implementation ideas/examples for this? I'm looking both at user experience patterns/thoughts, and also implementation thoughts.   We're on DOJO framework, so really we can do anything from an animated GIF and CSS transitioned box to something fancy and javascript-y (as long as it's doable within DOJO--I don't want to use jQuery, for example).   Thanks for your contributions!


Word/phrase to mean something that just happens once

What is the word/phrase to mean something that just happens once? For example,     I have often been told/expected to do this and not to do that. I become aimless   and gradually lose the idea of who I am. I ask myself "What is the point?" If   life is just once thing, why can't I live my life in my own way,   the way I think is right and suitable to me? If I cannot, I would   rather live a shorter life.


Log out from website that uses basic authentication

I need to do a logout button. I use Flask and Python and my website uses basic authentication so as to log in. I found out that the only possible way to log out is to close a browser (which is not what I'm looking for) or to change already entered login and password doing something like this:  user:pass@127.0.0.1:8000   It works when I input that phrase in URL but I'd like to do it programmatically.  My Python code:  @app.route('/logout') @auth.login_required def logout():     urlparameter = "user:pass@127.0.0.1:8000"     return Response(render_template('logout.html', urlparameter=urlparameter, mimetype='text/html'))   HTML button:  Logout   However, it doesn't work. How should I change it? Thanks


If $z_1, z_2, z_3$ are three distinct complex numbers satisfying

$$\frac{3}{|z_2-z_3|} = \frac{4}{|z_3-z_1|}=\frac{5}{|z_1-z_2|}$$ Find the value of $$\frac{9}{|z_2-z_3|}+\frac{16}{|z_3-z_1|}+\frac{25}{|z_1-z_2|}$$   Let The given equality be equal to some value k Then $$9=k^2|z_2-z_3|^2$$ and so on  Replacing these values  $$k^2[|z_2-z_3|+|z_3-z_1|+|z_1-z_2|]$$ How should I solve further? The minimum value can be calculated to be zero, but the question is asking for the actual value.


Will I ever get a Facebook Looking back video again?

I got a facebook looking back movie, however, I didn't post it immediatly. I then deleted some photos and went back to watch the rest of the video then share it, but all I saw were like six pictures.I wish to know if I will ever get a video again.


#define with :: (double colon) in identifier for namespaces

How can I #define a type that has a double colon in C++?  For example, I want to include the std::optional type from the std library. The code bellow won't work because the compiler cannot parse the double colon in #define my_namespace::optional.  #if __cplusplus >= 201703L // C++17 #include <optional> #define my_namespace::optional std::optional #else #include <my_optional.h> #define my_namespace::optional my_namespace::my_optional #endif  // Use the optional type my_namespace::optional<int32_t> some_value;


14 badge notifications without receiving the badge

just received a couple upvotes, bringing it to 10. I just got 14 badge notifications for this post. However, it doesn't even show up once in my .


I'm trying to use rsync to transfer nearly 4GB of files onto a remote server that is supposed to be 20GB big.  On my computer, I run rsync -av --ignore-existing --inplace my_directory --compress-level=9 root@REMOTE.IP.ADDRESS:~/  The terminal prints a bunch of files being copies successfully for a while, then it prints this error.  rsync: recv_generator: mkdir "/path/to/some/directory" failed: No space left on device (28)  I ssh into my remote server. I run df -h. I see this (removed unneeded text).  Filesystem      Size  Used Avail Use% Mounted on /dev/root        20G  5.8G   13G  32% / devtmpfs        488M  4.0K  488M   1% /dev   I clearly have space on my remote server. Also, when I ssh into my remote server and run touch test, A file names test is created. But when I run touch test2 after that, I get this error: touch: cannot touch ‘test2’: No space left on device.  How do I transfer the rest of my folders and files to a remote server that claims it has no more space despite having space?  Update  Running df -i shows this.  Filesystem      Inodes   IUsed  IFree IUse% Mounted on /dev/root      1213440 1213440      0  100% /


When doing math on floats why am I getting 3 different results to the same equation?

I understand that doing math with floats can be strange because the float cannot always be expressed in binary correctly and then converted back. However, the following code contains the same simple equation 3 "different" ways. I say "different" because it's the same equation in the same order and everything but just typed in a different style. If it's doing the same conversion from float to binary and back to float to be displayed then how can it be different? Here is the c++ code:  #include <iostream>  using namespace std;  int main() {     // using literal numbers     cout << 0.1 + 0.1 + 0.1 - 0.3 << endl;      float f_one = 0.1;     float f_three = 0.3;      // using floats     cout << f_one + f_one + f_one - f_three << endl;      double d_one = 0.1;     double d_three = 0.3;      // using doubles     cout << d_one + d_one + d_one - d_three << endl;      return 0; }   The output of this code is  5.55112e-017 -7.45058e-009 2.77556e-017   I can understand that there can be a difference between float and double, that was expected. But shouldn't at least one of the two match the result obtained by  cout << 0.1 + 0.1 + 0.1 - 0.3 << endl;   ?  What else could be causing this difference?


How can I search my own answers over the whole Stack Exchange network?

I wrote an answer on one of the Stack Exchange sites a while ago, but I don't remember where.   How can I find it by a keyword?


is a dove a "she"? how to use "he" and "she" for animals?

In the song "Blowing in the Wind" by Bob Dylan, there's a verse that reads:  Yes, and how many seas must a white dove sail Before she sleeps in the sand?  My question is, why he used "she" for a dove? What about other animals and other non-humans? Is there a general rule?


How to force variable voltage fast charging power bank to output a certain voltage?

I am trying to power up my raspberry pi 3 with a Xiaomi 10000mAh fast charging power bank through the L298N motor controller. The motor controller can receive from 7 to 35V, and it has a 5v output, which I use to power my pi through the 5V pin. I also use a USB 2.0 to TTL UART Module 6Pin Serial Converter ().  I read a bit about fast charging and how they control the voltage, and this is how the charger decides what voltage to output using the d+ and d- pin:   The first problem is that the usb converter doesn't have the D+ and D-, but I believe it should be the RXD and TXD pin. I want my power bank to output 9V to the motor controller so I tried plugging a 3.3V to the 0.6V to the RXD and TXD (tried both way) but it doesn't change the output voltage. The second problem is that if I just plug the power bank to the motor controller, which it will automatically output 5V, it doesn't turn on the Pi.  I am new to these kinds of stuff so any suggestion on how to do this will be really helpful. Thank you.


egrep -rnw . -e "string" returns line and adjacent lines

I use,  egrep -rnw . -e "string"   a lot (in bash), but it would be nice to add some context to the returned results. This would be the line before and after it. Maybe the two lines before and afer it.   Is this difficult to do?   grep, egrep, pcregrep, etc. does not matter.  Thanks  PS. I just saw this:  which I didn't think of searching for "append".


I have got new Computer, and I need mods folder. I look at %appdata% .minecraft but folder mods was not there. What to do ?


save each line from csv to new file with filename as the string contained in a specific column

I have a csv file on a Linux machine like this:    value1 value2 name   1      2      a   2      3      b   4      5      c     What I want is to split the n entries in this csv into n text files with just the corresponding numbers in that file separated by space. N is determined by the value in name.    So above csv would become:   a.txt containing 1 2 b.txt containing 2 3 c.txt containing 4 5     In case there are multiple entries for a particular name then those should go together to one file.   Ex if there was     1  2  a    21 31 a   then there should be a single a.txt with   1  2      21 31


How does VB.NET 2008 round off integer numbers?

NOTE; I know about Math.Floor and Math.Round and stuff. That’s not what I’m looking for.  I would like to know how VB.NET 2008 internally handles the rounding off of integers.  For example:      Test1 = (127 / 2) + 13     Test2 = (127 / 2) + 12   Both test variables will give back 76, which seems strange to me.  (127 / 2) = 63.5   So   63.5 + 13 = 76.5  63.5 + 12 = 75.5   Since both have a .5 it seems logical to me that they either get rounded off to above or below. So expected answers are either:   Floor: 76,75 or Ceiling: 77,76   But instead it seems that 76.5 gets floored while 75.5 is upped.  Any clue on what rules VB.NET uses for this?


Unexpected value usin $parse in AngularJS

i'm trying to do a basic calculator in angularJs and in a piece of code  i've run into an unexpected problem:  let stringOperation = 'a - b'; let operationScope = {a: 0.8, b: 1}; var result = $parse(stringOperation)(operationScope);   I expcted the output -0.2, but the actual output is -0.199999 etc..  Any idea ? thx


How are non-Schengen nationals with a Schengen residence permit checked to obey the 90/180 rule while travelling inside Schengen?

Just curious. I am a non-Schengen (and non-EU) national with a residence permit from Finland, enabling me to travel visa-free inside the Schengen area up to 90 days in any 180-day period.  Since there is no passport control between Schengen countries, it looks like one can easily overstay without any consequences. So how is this 90/180 rule tracked for RP holders?  DISCLAIMER: I am not going to break the rules. I'm just curious about how it works, because while traveling I have never shown my passport or RP to authorities.


Why do liquids boil when their vapor pressure equals the ambient pressure?

Given that the boiling point of a liquid is the temperature at which the vapor pressure is equal to the ambient (surrounding) pressure, what significance does a liquid's vapor pressure have in the formation of bubbles that happens at and above the boiling point?    The definition of boiling point seems to imply that the pressure inside of the bubbles must be at least as great as the liquid's vapor pressure in order to balance the outside pressure, but is there any particular reason why the pressure inside of the bubbles is related to the vapor pressure?    The vapor pressure seems to be a measurement describing the tendency of the molecules to escape from the surface of the liquid, but I don't see how that relates to bubble formation within the liquid.  This question has bothered me for a while, so any help would be much appreciated.


What are the differences between the following responses to the question "how are you?"

I am good. I am well. I feel good. I feel well. I am feeling well. I am feeling good. I am doing good. I am doing well.   A former English teacher told me #1 is improper English and to use #2. Is this true and why so?  I Google searched this issue and found . The author clames both I am good and I am well are proper English, though I don't follow the argument.     The nitpickers will tell you that "well" is an adverb (and therefore   modifies verbs) and that "good" is an adjective (and therefore   modifies nouns), but the situation isn't that simple.   To me this statement is empty. So what if "well" is an adverb and "good" is an adjective? What grammar rule is being contradicted if this were true?  I have heard the argument that #5 and #6 are referring to the capacity to experience the sensation of touch. What I don't understand is how #3 and #4 can't be interpreted in the same way?  Does it make a difference if the asked question is "how have you been?" versus "how are you?"?


I know how to solve SIR model with ode45, but I just wanted to try it out using Euler Method. The SIR model is: $\dot S=-\beta IS \\ \dot I = \beta IS - \gamma I \\ \dot R = \gamma I$ The code that I wrote is function Euler deltaT=1; s=1; i=1e-6; r=1-(s+i); beta=1.4247; gamma=0.14286-1e-6; maxTime=70; t=[0]; for n=1:maxTime     t(n+1)=t(n)+deltaT;     s(n+1)=s(n)-beta*s(n)*i(n)*deltaT;     i(n+1)=i(n)+(beta*s(n)*i(n)-gamma*i(n))*deltaT;     r(n+1)=r(n)+gamma*i(n)*deltaT; end figure plot(0:maxTime,s) hold on  plot(0:maxTime,i) hold on  plot(0:maxTime,r)    when I make the step size to be 1, I get the following figure which looks like the expected behaviour.  But when I make the step size small= 0.001, I get a very different figure.  Why does the behaviour change when I change the step sizes. What have I done wrong in the code?


I have some projects I try to split up for easier management. Therefor I moved some parts that are used by different applications into modules rather than copying files around.  Right now I have the following structure for my modules (every module has its own docs and tests):  /projects   /module1     __init__.py     run_tests.py     /docs       ...     /module1       __init__.py       module1.py     /tests       __init__.py       module1_test.py   /module2     ...   Now I got myself the "main app" directory laid out in the same manner:  /projects   run_app.py   run_tests.py   /docs     ...   /app     __init__.py     app.py     module1 <-- Link to the module1 repository   /tests     __init__.py     app_tests.py   All my __init__.py files are empty at the moment and I do not know how to write a proper import statements in my app.py file. Since there is only one class in module1 I don't want a hugh import module1.module1.module1.ModuleClass so the ModuleClass should be imported to "module level" so I can just do something like a import module1.ModuleClass. I figure I have to tweak the __init__.py files but all I tried broke either the tests or the whole import.  Any help would be very much appreciated and sorry for my poor explanations I am not a native speaker...


What is the status of AMD graphics card drivers in Ubuntu 16.04/16.10?

As far  as I know there are amdgpu and fglrx AMD drivers and foss radeon driver. Where can I find a list what driver supports which card, which X.Org server, which Ubuntu vesion (16.04 and 16.10)?   Is there a new proprietary AMD driver instead of fglrx?  *Although my question has been identified as a possible duplicate and I foud there a partial answer to my question, it didn't give me a list of supported amdgpu-pro models and also amdgpu supported models. I think this list should exist so we can buy compatible Ubuntu hardware.


If a PIC MCU provides multiple Vdd/Vss should you provide power to them all?

Take a look at this example schematic:  The chip in question is the  and as you can see power is provided on both sides (with a 100nF cap to smooth noise I guess). Is this strictly required or could you put power into one side and just ignore the other? I know that I have just put power in one side and everything still seems to work fine but I feel uneasy with doing that. I feel that they would not waste pins that could be doing something useful by having an extra pair of power in/out pins. For what purpose does this PIC MCU (and others like it) have multiple power pins?


I am revising for a discrete mathematics exam and as quite stuck on this question.  Show that the polynomial $f = x^2 + 2 x + 3 \in \mathbb{Z}_5[x]$ is primitive. How many monic primitive quadratic polynomials are there in $\mathbb{Z}_5[x]$?  Any help would be greatly appreciated.


Summation is to integration, as the large product operator is to...?

The integral is defined many ways but one that I am aware of is the Riemann Integral(?) which looks sorta like $\sum^n_{i=0} f(a +i\frac {b-a}n)*\frac {b-a} n$. An interesting thought is "is there a similar construct built from $\prod$". Then my second thought was "what would it be used for".  So I thought about and figured maybe the $f(x)$ term would look the same, but then have it raised to the power of $dx$ as that second term is more commonly known as.  Is this sort of thing done and used or is it just a silly construction I thought up randomly?


Java "Cannot be referenced from a Static context" Jar Import

I am importing a Jar file for use of its classes (or .java's) into NetBeans IDE.  The Jar is pircbot.jar.  The inside class I want to call is PircBot.  I imported like this:   import org.jibble.pircbot.*;   And I called them like this:  PircBot.connect("irc.twitch.tv", 6667, passwordInput);   Now if the .jar is in my libraries section of NetBeans IDE, and I imported it correctly: why and I getting this error:  non-static method connect(String, int, String) cannot be referenced from a static context   All the Jar errors are from imports, and all the static context problems are people calling from the main() class.


Since I learned exponentiation in School, me and my classmates had this one question stuck in our brains. Why is $a^0=1$ and not $0$. Wouldn't it make more sense if it equaled to $0$, since $a$ is multiplied by itself $0$ times, it should equal $0$. Can somebody please explain to me how and why this works?


Why we can not define the solution of the differential equation beyond a particular $t$?

I was studying Ordinary Differential Equations, and my book was trying to explain the maximal interval of solution of a differential equation. If we consider this differential equation $$ \frac{dx}{dt} = x^2 \\ \text{with initial condition}~x(0)= a,~~~a \gt 0 $$ Then, the solution to this equation is $$ x(t) = \frac{1}{ a^{-1} - t}$$ Now, if $t$ starts to increase from $0$ the denominator will decrease and consequently $x(t)$ will increase, when $t =a^{-1}$ the denominator is $0$ and $x(t) = + \infty$. As we let $t$ to decrease from $0$, our denominator will increase and finally when $t = -\infty$, $x(t) = 0$. So, the solution of the differential equation is defined on the interval $(-\infty, a^{-1})$. But the problem comes when the book makes this statement  but there is no way to define the solution that extends further into the future beyond $t=a^{-1}$.  Why the function is not defined for $t \gt a^{-1}$? There is a discontinuity at $t=a^{-1}$ but beyond that the function is nice, why the solution is not defined after $t = a^{-1}$? If compare $x(t)$ with some other simple functions like, for example, $f(x) = \frac{1}{2-x}$, $f(x)$ is well defined after $x = 2$, and here we have its graph: . Why the book says that beyond $t=a^{-1}$ the solution is not defined?


Having or has? What is the best way to say that sentence

I have one question, what is the best way to say that sentence below? Are both grammatically correct?     He has been working on mobile development for 4 years and has published more than 15 apps.   or     He has been working on mobile development for 4 years, having published more than 15 apps.


I installed Ubuntu 12.04 in my laptop. Now I want to remove Ubuntu and I install Windows 7.  But when I restart my system after keeping Windows 7 DVD it is not booting.  What should I do to get rid of this problem?  I have tried to modify many options, but none of them had worked out?


why isn't require_once working with my path names

I'm writing a plugin, and near the top of the main plugin file I have a series of require_once statements as is typical.  After more than ten hours of trying to figure out why WP couldn't find my classes, I finally landed on this -- if I had:  require_once( 'includes/myclassfile.php' );   it failed.  But if I explicitly put in the base path like so:  define ( 'MY_DIR', rtrim( plugin_dir_path( __FILE__ ), '/' ) ); require_once( MY_DIR . '/includes/myclassfile.php' );   it worked.  So my question is: why didn't the first form work?  My IDE (PhpStorm) understood it, the boilerplate I started from used it, and I have other plugins installed that use that form, and they work.  What could have been different about this case?  Edit: This question got marked as duplicate of another that also addressed confusion about the proper use of require, however in that case, the final conclusion was the opposite of what worked for me.  I am not asking what to do, but why one version would fail.  Isaac's answer suggests a reason, but it is unsatisfying since there are other top-level plugins in my wordpress install that do work with the form that doesn't work for mine --- I would like to know what makes mine different.  (Just to be complete, here is the full plugin file:)       /*  * Plugin Name: A Strenga Projects  * Version: 1.0  * Description: Projects for Strenga  * Author: DD  */ if ( ! defined( 'ABSPATH' ) ) exit;  define ( 'STRENGA_PROJECTS_DIR', rtrim( plugin_dir_path( __FILE__ ), '/' ) );     require_once( STRENGA_PROJECTS_DIR . '/includes/plugin.php' );  function myFoofunction() {     ladeda();  // defined in plugin.php } myFoofunction();


How do you put a card like this on your profile?    Which groups all your Stack Exchange sites' reputation points, medals and icons.    Is there a minimum reputation check for an Icon to appear on the card?


What is the conjugate prior distribution?

I am new to the bayesian statistics and I most frequently see the conjugate prior distribution. Can you explain it with clear example? I would be very thankful.


Zero-Divisors & Units in $\mathbb{Z}/n\mathbb{Z}$

Let $n\in\mathbb{Z}_{\geq2}$. Considering the ring $\mathbb{Z}/n\mathbb{Z}$, we denote $(\mathbb{Z}/n\mathbb{Z})^*$ to be its ring of units. Furthermore, the map $\mathbb{Z}\to\mathbb{Z}/n\mathbb{Z};\,a\mapsto\overline{a}$ is meant to be the canonical projection modulo $n$. claim 1: $\overline{a}\in\mathbb{Z}/n\mathbb{Z}$ zero-divisor $\iff$ $1<\gcd(a,n)<n$. I am wondering if claim 1 is true or not. I was able to prove $''\implies''$ using Bézout as follows: $$\gcd(a,n)=1\stackrel{\text{Bézout}}\iff\exists x,y\in\mathbb{Z}: ax+ny=1\iff ax\equiv 1\mod n \iff \overline{a}\in(\mathbb{Z}/n\mathbb{Z})^*.$$ So in particular $\overline{a}$ is not a zero-divisor. If claim 1 is true, would it then imply the following proposition? claim 2: $\overline{a}\in\mathbb{Z}/n\mathbb{Z}$ zero-divisor $\iff \overline{a}\notin(\mathbb{Z}/n\mathbb{Z})^*$


Let $f$ be a continuous, nonnegative, real-valued function and $$\int_0^{\infty}f(x)dx<\infty.$$ Prove that $$\lim_{n\to\infty}\frac1{n}\int_0^{n}xf(x)dx=0.$$  A start: If $\lim\limits_{n\to\infty}\int_0^{n}xf(x)dx$ is finite, then it's obvious. Otherwise, perform L'Hopital's rule, we get $\lim nf(n)$, which we want to show is $0$.


Linux way to get Summation of elements on right

I have the following text stored in a .txt file - I want to have the sum of 'NUM_OF_USERS' using linux command.     so the desired result here is - Total 236


I am Unable to close current asp.net page using C# code. I tried:  ClientScript.RegisterClientScriptBlock(Page.GetType(),                                         "script",                                         "window.close();",                                         true);   I am not getting any error, but it doesn't work.


This is, probably, a really simple answer, but I am not coming up with it... Any help would be greatly appreciated:  I created a web form, to a stored procedure, that submits userID, deptID, and a string of comma separated itemID's like so. The purpose is to map an employeeID to itemID's for different departments.:  (1, 2, '20,30,90,60')   I use a Table-Valued function to split that in to a proper table like so:  EmployeeID | deptID | ItemID         1       2       20         1       2       30         1       2       90         1       2       60   I, then, perform a MERGE between a mapping table (ID, EmployeeID, DeptID, ItemID) and the table created from the splitting function before.  MERGE [dbo].[metricEmployeeDimItemDim] AS TARGET USING (SELECT accountID, deptID, ItemID FROM api.splitItemInts(@employeeId, @deptID, @ItemIDs, ',') ) AS SOURCE ON TARGET.employeeId = SOURCE.accountID AND TARGET.ItemId = SOURCE.ItemID WHEN NOT MATCHED BY TARGET THEN     INSERT (employeeID, deptID, ItemID)     VALUES (SOURCE.accountID, SOURCE.deptID, SOURCE.ItemID) WHEN NOT MATCHED BY SOURCE THEN DELETE;   The issue is that I need the merge statement to not clean out the entire TARGET table... I just need it to affect records with matching USER and DEPT ID's (syncing entries for the ItemID)  How can I accomplish this with a MERGE statement?  Thank you, Wes


Could you please provide me an example of how I can compute the accuracy for a kmeans clustering?  I split my dataset into train and test sets and computed the predicted clusters for the train set. However, I do not know how to compiute its level of accuracy and see if it is good not also for the test.  An example with a sample dataset of your choice it would be extremely useful.


Can gaming damage my MacBook Air in the long run?

I noticed my new MacBook Air getting kinda hot and the fan spinning up when running a 3D game. I know this Laptop is not made for gaming but I like to run a less demanding game from time to time. Also I'm not crazy and wouldn't do this in a already hot environment but technically it should not degrade the Laptop in the long run am I right?


Stacking multiple selected points in ArcGIS

I would like to find a way to stack multiple selected points in ArcGIS, either using the field calculator or python script. For example, I want to snap all points representing houses on a street into one point. Is there a way to reference one of the existing coordinate sets to use as the values for all selected points?


How to permanently disable (defective) graphics card in MacBook Pro?

My graphics card has malfunctioned and is preventing my MacBook Pro (2011) from booting.  Based on my research I will have to otherwise have the logic board replaced.  The defective ATI graphics card is preventing my MacBook Pro from booting because it gets stuck on a gray screen sometimes even when using the recovery CD.


How to accept a blank value for a Scanner input

I'm trying to achieve something for a small personal bank account project that I'm practicing with. I want to make it so that if a user enters a space , or doesn't enter anything at all (meaning they pressed enter without entering a value) that the default name of the account switches to "Default".  Like so:  Scanner read = new Scanner(System.in); System.out.print("Enter your account's name: "); String input = read.next(); String name = "";  if (input == "" || input == null) {     name = "Default"; } else {     name = input; }   Probably a stupid question, but this is one where I'm having a little trouble on. If I enter a space and then press enter, it doesn't continue to set the name. If I press enter when it prompts for an input, it doesn't continue to set the name. Is there a way to set it?  Edit: I don't want to know whether or not a String equals another string via .equals() (thank you for pointing that out, by the way). The scanner still does not accept blank inputs.


I have a simple problem when querying the SQL Server 2005 database. I have tables called Customer and Products (1->M). One customer has most 2 products. Instead of output as  CustomerName, ProductName ...  I like to output as   CustomerName, Product1Name, Product2Name ...  Could anybody help me?  Thanks!


Replacing X-ray or any radiation generating vacuum tubes with solid-state alternatives?

What are the reasons X-ray vacuum tubes could not be replaced by solid state alternatives? I'm thinking if it is possible to make a compact solid-state X-ray or higher energy photons generator just like how vacuum tube amplifiers, computers, etc. are going to be replaced by solid-state amplifiers, computers, etc. but not 100% replaced as we can still find vacuum tube amplifiers everywhere but vacuum tube computers are already very rare. But if I have to form the reason why vacuum tubes are still used to generate high energy radiations instead of solid-state devices with my own reasoning (although I have very limited background in physics), high speed electrons are only possible if there is some kind of chamber inside. So, common sense tells us that there is a need to include a chamber inside that thing so electrons can move freely instead of flowing through solids that will pose many difficulties.


How does a rocket moves upwards to escape Earth's gravity?

Is it true that when a rocket from earth is launched to the space the the rocket applies a force and the air gives an opposite reaction of force and so the rocket moves upwards?


Proof there is no largest cardinal number

For any set $A$, I proved already that $|A| < |\mathcal{P}(A)|$ by injecting $A \to \mathcal{P}(A)$ by $a \mapsto \{a\}$ and then demonstrating, by contradiction, that no surjection can exist. I want to prove that there is no largest cardinal number, but the argument $$|\mathbb{N}| < |\mathcal{P}(\mathbb{N})| < |\mathcal{P}(\mathcal{P}(\mathbb{N}))| < |\mathcal{P}(\mathcal{P}(\mathcal{P}(\mathbb{N})))| < \ldots$$ Perhaps more formally, I could suppose for the sake of contradiction that $|A|$ is the largest infinite cardinal, but this theorem implies that $|\mathcal{P}(A)| > |A|$, a contradiction. How can I make this proof sufficiently formal?


Convert NE555 square wave output to triangular wave using op-amp(s)

I want to generate a square wave with 45% duty cycle and 465Hz on an NE555 timer and then convert that wave into a triangular wave using op amps. I have a circuit schematic but the output generates flat signals on both ends. I don't understand what the issue is.  Please help as it is for a group project of important nature. Thank You.


I'm able to access the review queues from my mobile

I understand , so I'm not surprised to not see a "Review" link in the top bar.  However I can access my profile, bring up the "Activity" view, select any "Suggested Edit" I have made, rejected or approved, and then I'm magically taken to the full-featured version of the site; from there I can access all the review queues I normally have access to, and start reviewing, say, suggested edits (here, my last 5 reviews were made from my mobile!).  If we're not supposed to be reviewing using the mobile version, then why is it possible to do it through the "back door"?  Besides, I find the format of the review queues is fairly suitable for mobile (given minor layout adjustments), I think it should eventually be implemented.


Counter example to show that $ s(X) \le d(X) $

I am trying to show that there exists a topology in which $ s(X) \le d(X) $. I am working with the co-countable topology with an infinite topological space X. I understand the $d(X)$ is uncountable and the $ s(X) $ is countable.  For the density, I understand that I have to show that no countable set is dense.  For the spread, I know a little less. I know that I have to take an uncountable subset of X and show the spread is countable in the co-countable topology.  I understand these concepts however I am having trouble writing them on paper.   Any hints and direction would be appreciated!


How to prevent Windows 10 from re-enabling serivces

I am on Windows 10 Home, Version 1909. I did quite a bit of research on how to completely disable windows updates. This involved disabling the following services  Background Intelligent Transfer Service Update Orchestrator Service Windows Update Windows Update Medic Service  However after some time, these services magically re-enable themselves. This seems to work even when my machine is not connected to the internet. How exactly is Windows able to re-enable these processes by itself, and how can I prevent this? I am aware of the security implication of turning Windows Updates off. It's fine for my use case. Edit: I am not sure why this gets down-voted and why a different question is linked that does not answer my specific question. I have already consulted the link (links to a closed post, which in turn links to another post with answers going back to 2017). One of the more recent answers points out that non of the other answers to completely disable Windows update works anymore, and proposes the solution to disable these 4 processes. However, this no longer works either because even Windows Update Medic Service (which can be turned off via registry hack) turns itself back on. Therefore, the question is by which mechanism does this happen. As it stands, for the Windows version I am using there does not seem to be a working solution.


Let's start with the preface that I am a linguist, not a mathematican. My knowledge of stats stopped after A-level oh-so-many years ago. So if answers could be written in simpleton terms, that would be much appreciated!  For a linguistics study, I have used a corpus program to calculate keyness. Keyness being the actual frequency of a word within my corpus compared to the expected frequency, based on its frequency in a larger reference corpus. A keyness of 3.8 is significant to p<0.05 and a keyness of 6.6 is significant to p<0.01. The program has two options for calculating keyness- Log Likelihood and Chi Squared. The creator of the program has set LL as the default, and has stated that he feels it is often the better method.   However, I do need to state in my project why this method has been used, even if just a sentence.   My question: What is the difference between the two tests? Why would LL be the preferred method?


Where should I ask a question about certifications?

I have a question about Microsoft Certifications. What is the best Stack Exchange site to ask that question on?  The question was about MCTS, whether it is an accumulation of tests (like MCSD) or if each test is stand alone.


This problem is form the Romanian GM.  Let $(x_{n})_{n\geq1}$ be a sequence of real numbers defined by $x_{1}=1$ and $$x_{n+1}=x_{n}+ \frac{\sqrt{n}}{x_{n}}$$ for all $n \geq 1$. Study the convergence of the sequence $$(\frac{x_{n}}{n^{\frac{3}{4}}})_{n\geq1}$$  I only managed to show from the given relation that $(x_{n})_{n\geq1}$ is strictly increasing and tends to $+\infty$.


Scanning and manipulating Strings Cardinal Directions

I am creating a directed graph that represents a maze. One of the mechanics in the maze is to flip the direction of nodes. I am just reading the nodes from a file and I want to change the direction of node so it is opposite. By direction I mean N,W,S etc. However, my function does not work when using the String from the scanner and returns null when doing a system out. But does work when putting in a made up string, for example String test = "E" and then test = flipDirection(test). This sets test to "W". So I know that the flipDirection function and the String compares are valid. The output for the first line is "E" and then null.   public Digraph(){      FileReader reader = null;     Scanner scan = null;       try {         reader = new FileReader("input.txt");         scan = new Scanner(reader);         scan.nextLine();          while(scan.hasNextLine()){              //read in unflipped nodes             int row = scan.nextInt();             int col = scan.nextInt();             char color = scan.next().charAt(0);             String circle = scan.next();             String direction = scan.nextLine();               //add a node to the graph             Vertex v1 = new Vertex(row, col, color, circle, direction);             addNode(v1);              //add a flipped node             System.out.println(direction);             direction = flipDirection(direction);             System.out.println(direction);             Vertex v2 = new Vertex(row, col, color, circle, direction);             addNode(v2);           }       } catch (FileNotFoundException e) {         System.out.println(e.getLocalizedMessage());     }  }   public static String flipDirection(String d){      String flip = null;       if(d.equals("N"))         flip = "S";     if(d.equals("S"))         flip = "N";     if(d.equals("E"))         flip = "W";     if(d.equals("W"))         flip = "E";     if(d.equals("NW"))         flip = "SE";     if(d.equals("SE"))         flip = "NW";     if(d.equals("NE"))         flip = "SW";     if(d.equals("SW"))         flip = "NE";     return flip; }  public class Vertex {    //name of vertex and a pointer to the first node in its adj linked list  public int row; public int col; public char color; public String direction; public String isCircle;   public Vertex(int row, int col, char color, String isCircle, String direction) {     super();     this.row = row;     this.col = col;     this.color = color;     this.isCircle = isCircle;     this.direction = direction; }  @Override public String toString() {     return "Vertex [row=" + row + ", col=" + col + ", color=" + color             + ", direction=" + direction + ", isCircle=" + isCircle + "]"; }   And this is what the input file looks like, without the extra spaces. The direction is the last part of text in each line  7 7  1 1 R N E  1 2 B N W  1 3 B N NW  1 4 R N NW  1 5 R N S


I found a lot of similar question but never really found an answer. I bought an ASUS laptop from BestBuy and I got windows 8 on it without any windows media cd/dvd. I would like to install Ubunutu instead of windows, but I would also like to create some kind of windows media so I can go back to it if I ever want to. Is there any way to do this? Thank you all :)


I want to study quantum mechanics. But I don't know what and which topics  of mathematics are required.  I know a bit of differential calculus. But what else is needed to study a bit advanced quantum mechanics (not qft)? Please name a few books also if possible.


best practice for consistent text snippets

In a book document I must assure that the same text (a few lines) appears at several places, despite editing. Using the text editor to include the same text snippet does not guarantee consistency in the end.   I can do it with defininig  \newcommand{\partof}{\textit{part\_of}\xspace}   or  \def\verlag{my book title}   which seems ok for small pieces, but not for longer ones. what is the best practice? what is the difference between newcommand and def?


Can I upgrade my version of Ubuntu from the terminal?

I have the 32-bit Ubuntu 14.04 LTS and I am wondering if I could upgrade to 15 or 16 from the terminal. I tried to open the update manager through the GUI but it did not open.  I already entered the commands sudo apt-get update and sudo apt-get upgrade.


Flight search for multi-stop with 10 segments

There is a similar question on this site, .  But, it's from 2013. And lists just one site - , that gives an estimate. For example: 1.  2.  3.  4.   We're in 2020 now. In the last 7 years, i am sure some improvements must have been made in this regard. At least, i have hope.  I checked itamatrix, google flights and skyscanner.


I was studying some machine learning algorithms and I noticed something confusing; hence, I am asking these questions:  1) What is the difference between Euclidean space and vector space?  2) For example, I have a data sample which consists of 7 different attributes. To work with this sample, I work in R^7 space.   In this case, is R^7 a vector space or Euclidean space? If it is not Euclidean space, which dimensions are covered by Euclidean space ?


Android does not download any files from untrusted CA certificate site

I work on a site that serves mobile phones and shares some file. When I publish my site in http everything works great.  But when I activate SSL and publish my site via HTTPS with my own certificate, Android doesn't download any file from my site.  I create my own SSL CA certificate via openSSL in my local  PC and not purchasing from standard seller like GoDaddy.  How do I install my CA certificate to Android?  Do I have to purchase SSL from a standard seller to solve this issue?  My android version is 4.4.4.


I was in the middle of installing several apps using the sodu apt-get install command when all of a sudden sodu started producing the error sodu:command not found. What is going on?     Editor's note: The spelling of the command is as he typed it.


Plotting a function defined with \pgfmathdeclarefunction

I've got a few macros that perform floating point lookups and calculations for me and I'm interesting in plotting their results. They're the kind of calculation which requires if/else, so they can't be easily written as a simple math formula for \addplot.  Thanks to a previous question (), I now know to use \pgfmathdeclarefunction, but after trying it I've found that addplot seems to prepend a "0Y" or "1Y" to values before passing them as function arguments. My external macros aren't prepared to handle this extra text, and I'm not sure why it's there.   In the course of testing things out, I've also found that calling a function defined with pgfmathdeclarefunction can also change the positioning of the graph...  \documentclass{article}  \usepackage{xparse}  \usepackage{pgfplots} \pgfplotsset{compat=1.10}  \begin{document}  % Example of a macro which does math outside of pgf     \ExplSyntaxOn     \DeclareExpandableDocumentCommand \doubleMacro { m }%      {%       \fp_eval:n { #1*2 }%Math performed by a package other than pgfplots      }%     \ExplSyntaxOff    %Demo: macro does work in regular text \doubleMacro{1.1}.  % Defining custom pgf functions for plotting      \pgfmathdeclarefunction{mathDoubleMacro}{1}{%         \pgfmathparse{\doubleMacro{#1}} %Calls macro which performs math done by another package     }      \pgfmathdeclarefunction{mathDoublePgf}{1}{%         \pgfmathparse{#1*2} %Uses pgf to do the same thing as an external macro could     }  %Generic plot with function given directly to \addplot \begin{center} \begin{tikzpicture}     \begin{axis}         \addplot[domain=0:1] {2*x};     \end{axis} \end{tikzpicture} \end{center}  %Plot using first macro: complains about 'Unknown fp word Y.' \begin{center} \begin{tikzpicture}     \begin{axis}         %\addplot[domain=0:1] {mathDoubleMacro(x)};%Commented out because it gives problems     \end{axis} \end{tikzpicture} \end{center}  %Plot using second macro: works, but graph is displaced to the right of the expected position \begin{center} \begin{tikzpicture}     \begin{axis}         \addplot[domain=0:1] {mathDoublePgf(x)};     \end{axis} \end{tikzpicture} \end{center}  \end{document}   If I define mathDoubleMacro as calling a non-existent macro, then the errors show which x-values which the addplot is trying to evaluate y at:    0Y0.0e0  1Y4.1666e-2 1Y8.3332e-2 ...  1Y9.9998401e-1   What are these nY's all about, and why does \addplot[domain=0:1] {mathDoublePgf(x)} give a graph with different positioning?


What is the form of data used for prediction with generalized stacking ensemble?

I am very confused as to how training data is split and on what data level 0 predictions are made when using generalized stacking. This question is similar to mine, but the answer is not sufficiently clear:    My understanding is that the training set is split, base models trained on one split, and predictions are made on the other. These predictions now become features of a new dataset. One column for each model's prediction, plus a column that contains the ground truth for these predictions.    Split training data into train/test.  Train base models on training split. Make predictions on test split (according to linked answer, use k-fold CV for this). Create a feature for each model, filling it with that model's predictions Create a feature for the ground truth of those predictions. Create a new model and train it on these predictions and ground truth features.   Question 1: Are these the only features used to train the "meta" model? In other words, are none of the actual features of the original data included? The linked answer says it is common to include the original data, but I have not read about it elsewhere.   Question 2: If the above algorithm is correct, What is the form of the data when making predictions? It seems like it would also have to have predictions as independent variables. If so, that means running all new incoming data through all base models again, right?  Question 3: I keep seeing an "out-of-fold" requirement for the first level predictions. It seems that doing a simple train/test split as mentioned above would fulfill this. However, would you not want a 3rd split to test the combined model's generalization? Or is this type of ensemble bulletproof enough not to worry about it?


Do short URLs like goo.gl, bitly etc. affect your website ranking?

I need to know whether using short URLs to back-link to pages affects your website ranking in the Google search results.


Let $A,B,C$ be three pairwise coprime positive integers and let $a,b,c$ be three multiples of $A,B,C$ respectively. I am asking if the following system of congruence $b-c$=$0$ mod $A$ $a-c$=$0$ mod $B$ $a+b$=$0$ mod $C$ has a solution.


Proving that $\cot^220^\circ + \cot^240^\circ + \cot^280^\circ = 9$.

Prove that $\cot^220^\circ + \cot^240^\circ + \cot^280^\circ = 9$.   I tried bringing them all to $\cot^220^\circ$ but it didn't work. How do I proceed?


ssh port forward to access my home machine from anywhere

I'm coming from this question:  I want to understand this whole process of port forwarding. I read so many things, but am failing to understand the very basic concept of port forwarding itself. What I have:  a freebsd server sitting at my home.  netgear router  This is what I am trying to achieve:   to be able to access freebsd server from a windows machine over internet to be able to open a webbrowser and access internet.  I also want to access this freebsd box from a ubuntu machine that I have.  It will be great if someone can please help me. Here is the netgear router setup that I did for port forwarding.


I am new to MCMC and reading a  regarding Gibbs sampling. However, there are two parts in the paper I cannot understand and get stuck. The first part is equation 2.3 in page 168. It says that if $X^{'}_{j}$ is drawn from the process of Gibbs sampling, $X^{'}_{j}\sim f(x|Y^{'}_{j}=y^{'}_{j})$. It further claims under "general conditions," the distribution of $X^{'}_{j}$ converges to $f(x)$ as $n\rightarrow\infty$. Can anyone help explain what these general conditions are and why/how this statement is true. The second part is at the beginning of page 169, expression 2.9 says $\hat{f(x)}=\frac{1}{m}\sum^{m}_{i=1}f(x|y_{i})$, and the theory behind this equation is $E[f(x|Y)]=\int f(x|y)f(y)dy$. This confuses me because my understanding about monte carlo integration is that for example, $E[X]=\frac{1}{m}\sum^{m}_{i=1}X_{i}$ is true due to the law of large number that $\frac{X_{i}}{m}$ converges to $X_{i}\times p(X_{i})$ when $m\rightarrow\infty$. However, I don't see how equation 2.9 can be explained by the concept of monote carlo integration. Can anyone explain the intuition or math behind this equation? Thanks! EDIT 1 (My Answer/Thought for Part 2) I have thought about this question, and since no one responds yet, I will try my answer first and see whether someone has a better explanation. For the second part, instead of using $f(x|y_{i})$, let's focus on the density of a specific value $x^{a}$, which is $f(x^{a}|y_i)$. For simplicity, now assume $y_i$ is randomly drawn from a density $f(y)$ instead of $f(y|x_i)$ but the result could be generalized to $f(y|x_i)$. Both $f(x|y_i)$ and $f(y)$ are know distribution. Now we first randomly draw a $y_i$ from $f(y)$ and once we have $y_i$, we further randomly draw a $x_i$ from $f(x|y_i)$. Suppose we do this process $n$ time, and $n\rightarrow\infty$. Given a specific $y^{a}$ and $x^{a}$, we do know the value of $f(x^{a}|y^{a})$, which is just the density of $x^{a}$ cnditional on $y^{a}$. In other words, by Monte Carlo integration, for a given set of $y_i$'s and $x^{a}$, we can dervive that $\frac{1}{n}\sum^{n}_{i=1}f(x^{a}|y_i)\approx\int f(x^{a}|y_i)f(y_i)dy_i=\int f(x^{a}|y)f(y)dy=\int \dfrac{f(x^{a},y)}{f(y)}f(y)dy=\int f(x^{a},y)dy=f(x^{a})$ We can do the same process to dervie $f(x^{b})$, $f(x^{c})$, and etc. In the end, we will have $f(x^{a})$, $f(x^{b})$, $f(x^{c})$, ..., which all together constrcut $f(x)$. Therefore, $\hat{f(x)}=\frac{1}{m}\sum^{m}_{i=1}f(x|y_{i})$.


Many years ago, likely in the 1970's or possibly late 60's, I read a story in a science fiction magazine ( "IF" or the "Magazine of Science Fiction and Fantasy" ??) that I would love to track down.  It was about a man who somehow slipped into some kind of alternate reality, I think in the Arabian desert.  Had genii, Rocs (giant birds) in it as I recall.  The story was possibly the one in the magazine that inspired the cover art for the issue it was in.  I know it is really unlikely anyone will know this, or that I will find the story in print, but appreciate any help.


How can I insert an image into a RichTextBox?

Most of the examples I see say to put it on the clipboard and use paste, but that doesn't seem to be very good because it overwrites the clipboard.  I did see  that manually put the image into the RTF using a pinvoke to convert the image to a wmf.  Is this the best way?  Is there any more straightforward thing I can do?


How to solve $(1-\tan^2x)\sec^2x+2^{\tan^2x}=0$

I am stuck the following problem :  Solve the following problem: $(1-\tan^2x)\sec^2x+2^{\tan^2x}=0$  Taking $p=\tan^2x,$ we get $(1-p^2)+2^p=0$. Now,I do not know how to go from here. Simple observation says $x=2n\pi \pm \frac{\pi}{3}$,satisfies the equation and so it will be the solution but I do not know how to get there. Can someone help?


$X$ metric separable then $C(X)$ separable

Is it true, that if $X$ is a separable metric space, then the space of all continuous functions on $X$ with the supremum metric is also separable?


W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy/multiverse/binary-armhf/Packages  404  Not Found [IP: 91.189.92.200 80]


How To Resolve Wifi Driver Problem on Ubuntu 20.04

I am encountering a problem while installing the wireless driver in my ubuntu 20.04 version also facing the same issue with (Ubuntu 18.04).   I have gone through .  These are the steps which I am following:  git clone https://github.com/lwfinger/rtlwifi_new.git cd rtlwifi_new git checkout extended sudo make install sudo modprobe -r rtl8723de sudo modprobe rtl8723de   But while executing the the sudo make install, I am getting this error:  make -C /lib/modules/5.4.0-28-generic/build M=/home/username/rtlwifi_new modules make[1]: Entering directory '/usr/src/linux-headers-5.4.0-28-generic'   CC [M]  /home/username/rtlwifi_new/rc.o /home/username/rtlwifi_new/rc.c:336:11: error: initialization of ‘void * (*)(struct ieee80211_hw *, struct dentry *)’ from incompatible pointer type ‘void * (*)(struct ieee80211_hw *)’ [-Werror=incompatible-pointer-types]   336 |  .alloc = rtl_rate_alloc,       |           ^~~~~~~~~~~~~~ /home/username/rtlwifi_new/rc.c:336:11: note: (near initialization for ‘rtl_rate_ops.alloc’) cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:275: /home/username/rtlwifi_new/rc.o] Error 1 make[1]: *** [Makefile:1719: /home/username/rtlwifi_new] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-28-generic' make: *** [Makefile:85: all] Error 2    The output of lspci -knn | grep Net -A3; rfkill list:  08:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n [14e4:4365] (rev 01)     DeviceName: Broadcom BCM43142 802.11bgn 1x1 WiFi Adapter + BT 4.0 combo adapter     Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:2230]     Kernel driver in use: wl 0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 1: brcmwl-0: Wireless LAN     Soft blocked: no     Hard blocked: no 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no


I'm using blender 2.83 beta and I'm in the middle of a nightmare with a blender project that is randomly considering my scenes as 0 users datablocks.  It gives a red background on the scene name and a 0 on the left if I open the scenes list.  I didn't even know a scene can have 0 users, but I don't even see a fake user option so...  I'm using the 2.83 beta (updating to the today's version didn't help) on windows 10. I temporarily solved the problem by creating a full copy of every scene (all the scene were actually full copies of the master one) as backup.  Is this a feature? Is this a bug?


Adding a "Change Password" feature for the iOS app

The iOS app should allow a user to change passwords. Can this feature be added?


In my machine learning class these two methods were discussed and mentioned that both should be used. I have a couple questions about this:  1) Can I mix and match these two approaches? e.g. Feature Scale x1 and Mean Normalize x2?  2) How do you determine which of these options to apply? It seems that either could accomplish the task of increasing your convergence rates... I suppose you just need to know your data set to understand which will reliably reduce your values while leaving as few outliers as possible?


Dual boot Ubuntu with Windows on another drive

I want to dual boot Ubuntu with my Windows installation. Problem is that the SSD that my Windows is on is only big enough for Windows.  I have 2 other drives in my system, one for games with 2TB and one for programs with 1TB. Both are set up with Windows partitions, so Windows can access them. I cleared away 200GB on the 1TB drive so I could install Ubuntu there.  I tried installing Ubuntu manually by setting up:   swap: 512MB /: 30GB /home: rest of the 200GB   After that I set the bootloader to install on my SSD, alongside Windows.  The installation goes well, until it tries to install the bootloader, which fails to be installed. Is there anything I'm doing wrong? should the SSD also have some free space to be able to install the bootloader, or how should I proceed?


Changing views in 2.8 jumps out of ortho

I work mostly in ortho mode but after I switch to side, top, left, right or bottom view, and then move around the view changes to perspective. How can I ensure that it always stays in ortho view?


Please don't refer to 2019 as 'a great year'

There's a bug on the :      invites you to celebrate the end of a great year …with HATS! As you use your site, you'll discover hats and other items hidden behind certain actions. Collect all of them, some of them, or none of them, but be quick – the hats get put back in their boxes on January 2nd!   (emphasis mine)  I know this is just copy-paste from 2018, but 2019 hasn't been a great year[citation not needed]. Please change this to something neutral like     celebrate the end of 2019   Yes, I realize for some users here 2019 may have been a great year for personal reasons, which are important. Usually way more important than what happens on the Internet; this may or may not be one of the exceptions. I'm happy for you, but this question refers to the general mood here.


How can I change the file ownership to root on ubuntu 14.04


Is it possible to change the date of a commit in Git?  If yes does this modification leave any track?  Basically I want to change the date of a commit but it should not be visible to anyone that the date has changed by me.  As I have researched it is possible to change the date by using git filter-branch but I do not know whether this leaves any history.


I saw a similar question (), but I am unclear if it would break anything. That question assumes the user is not a developer, so I was a little worried and would like to be sure before I do anything. Can I delete this folder? I updated to Xcode 4, but I am unsure if deleting this would remove things that I may need. For example, before Xcode 4 came out, I installed Xcode 3 to compile my C programs (gcc).   Right now, there is a Developer and a Developer-3.2.5 folder, so I assume Developer is for Xcode4 stuff.


uname -r and available linux-headers- packages do not match

I am trying to install VirtualBox Guest Additions for guest Kali Rolling.  I get the following outputs:  $ uname -r 4.9.0-kali3-amd64  $ dpkg -l | grep linux-headers ii  linux-headers-4.9.0-kali4-all             4.9.30-2kali1                        amd64        All header files for Linux 4.9 (meta-package) ii  linux-headers-4.9.0-kali4-all-amd64       4.9.30-2kali1                        amd64        All header files for Linux 4.9 (meta-package) ii  linux-headers-4.9.0-kali4-amd64           4.9.30-2kali1                        amd64        Header files for Linux 4.9.0-kali4-amd64 ii  linux-headers-4.9.0-kali4-common          4.9.30-2kali1                        all          Common header files for Linux 4.9.0-kali4 ii  linux-headers-4.9.0-kali4-common-rt       4.9.30-2kali1                        all          Common header files for Linux 4.9.0-kali4-rt ii  linux-headers-4.9.0-kali4-rt-amd64        4.9.30-2kali1                        amd64        Header files for Linux 4.9.0-kali4-rt-amd64 ii  linux-headers-amd64                       4.9+80+kali1                         amd64        Header files for Linux amd64 configuration (meta-package)   Why do the kernel versions (4.9.0-kali3-amd64 vs 4.9.0-kali4-...) differ and what can I do about it?    SOLUTION  Since question is closed I can't add answers. So I'm adding the solution here.  I tried solutions from the duplicate questions, but they didn't work. Instead, I found  which basically suggests following.  Check kernel version:  $ uname -a Linux kali2017 4.9.0-kali3-amd64 ...   Currently it contains kali3. Install following packages:  $ apt-get update $ apt-get install linux-headers-amd64 $ apt-get install linux-image-4.9.0-kali4-amd64   Reboot and check kernel version once again:  $ reboot $ uname -a Linux kali2017 4.9.0-kali4-amd64 ...   Voila, kali4! Now, install guest additions:  $ apt-get install virtualbox-guest-x11   Done.