Adding Facebook Online Account - "application you are trying to use doesn't exist or has been disabled"

I noticed on April 9 that Empathy wasn't connecting to Facebook Chat, so I opened Online Accounts, and it appears that I needed to authorize Ubuntu to access Facebook.  But then I couldn't do that - when I try, the web server at Facebook responds with   "Facebook Error Accessing App We're sorry, but the application you're trying to use doesn't exist or has been disabled."  I tried removing and adding the Facebook account again, and got the same result.    Does anyone know if Facebook shut down the authentication app due to the Heartbleed bug?  If so, any word on when it will be back up again?


Can Stack Exchange prevent users from signing up with a username that is already in use?

If you look at the  section of Stack Overflow, and search for a username that is used often, like 'Someone', you will see many people with the same username. However, this raises confusion on who really did something on the network. It is easy to confuse one user with another if they have the same name and same low-reputation level. So can users be prevented from signing up when they supply a username that is taken, and can they be asked to think of a new username? I want something like this:


what's the most elegant way to check to files for equality in Python? Checksum? Bytes comparing? Think files wont' be larger than 100-200 MB


Requirements for the transit visa and baggage information for layover in Dubai

I am flying from Chennai to Toronto via Dubai, where a 21 hours layover is available in Dubai. In order to avail a transit visa, is it necessary to book a hotel? Since it's a connecting flight, what about the baggage? Due to the 21 hours layover will we get the baggage in Dubai or will we get it at the end?


What is it called when someone types a random string of characters in an online conversation?

We can often see in online group conversations messages composed of random letters like "fjqofudnelfi" as a response to something surprising or unexpected.  Is there a name for this kind of "behaviour" ?  More precisely: is there a name for the action of furiously typing a random string on the keyboard?  Thank you  P.S. I couldn't find anything online as I didn't know how to concisely describe it.


How to fix error processing package git-daemon-run?

I am trying to install php curl like so:  sudo apt-get update sudo apt-get install php5-curl   But I keep getting an error.  Reading package lists... Done Building dependency tree        Reading state information... Done php5-curl is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                           Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   when I try sudo dpkg --configure -a I get:  dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  git-daemon-run   when I try sudo apt-get install --reinstall runit I get:  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. E: Internal Error, No file name for runit:amd64   when I try sudo apt-get install runit I get:  Reading package lists... Done Building dependency tree        Reading state information... Done runit is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up runit (2.1.2-3ubuntu1) ... start: Job is already running: runsvdir dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                                                                                Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   when I try sudo apt-get install --reinstall git-daemon-run I get:  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. E: Internal Error, No file name for git-daemon-run:amd64   How can I fix this?  System Specs:  Processor: Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8 Graphics: Gallium 0.4 on AMD TURKS (DRM 2.43.0, LLVM 3.6.2) OS Type: Ubuntu 15.10 64-bit


Necessary and sufficient conditions for when spectral radius equals the largest singular value.

One well known fact about matrix norms is the following:  If $\lambda_1\geq \dots\geq \lambda_n$ are eigenvalues of a square matrix $A$, then:  $$\frac{1}{||A^{-1}||} \leq |\lambda|\leq ||A||$$  If we take our matrix norm to be the matrix 2-norm, and recall that the matrix 2 norm gives us the largest singular value, i.e. $||A||_2=\sigma_1$, then the upper bound implies:  $$|\lambda_1|\leq \sigma_1$$  My question is: are there necessary and sufficient conditions for when equality above holds? I vaguely remember something like: $|\lambda_1|=\sigma_1$ iff $\lambda_1$ is non-defective, i.e. its algebraic multiplicity equals its geometric multiplicity. However, I have not been able to find a reference or prove this. Can someone point me to a reference or provide a proof. Thank you in advance for your time.


How do I pluralize a name ending in "y"?

Frequently when I refer to or address a family, I do so by pluralizing their last name, e.g., The Smiths, or The Ramones. But suppose I want to address a family whose last name ends in a "y", e.g., Kennedy. Normally in English, I reflexively change the "y" to an "ies" when pluralizing words in this form, but as a proper noun, I'm not sure this is the right thing to do. On the other hand, The Kennedys doesn't seem right either--the "dys" looks like it would lead to a dysfunctional prononciation. I'm also pretty sure an apostrophe belongs nowhere near here.  So how do I properly pluralize a name ending in a "y"?


Why are other users allowed to approve third party edits?

A while back I answered a question and another user recently made a factually incorrect edit to my answer. The edit was approved by a third user, and my post was altered. I was able to reject the edit, but how is this allowed to happen without singular confirmation of the edit from the original poster?   In my opinion, what I write is my voice and my reputation. Any additional information, arguments, or refutations should be added via comment, not via editing a post or comment. If it's an inappropriate post or answer, then it should be deleted.   I feel like there are people roaming around just looking for things to edit frivolously to earn points, and it's irritating that this behavior is actually incentivised.   I suggest at least an option to opt-out of third party edit approvals.


I have a query that looks like this:   SELECT ContactId, OpportunityId         FROM OpportunityContactRole         WHERE ContactId IN: conAccountMap.keyset()  I checked the QueryPlan and it looks like following:    OCR is a junction object and I am worried about the query becoming non-selective. Please let me know your views.


Use sed to find and replace a string in multiple files

I'm trying to pass a list of files with a known set of characters to sed for a find and replace.  For a directory containing multiple .xml files:  ls -la  file1.xml file2.xml file3.xml   Each containing a matching string:  grep -i foo *  file1.xml <foo/> file2.xml <foo/> file3.xml <foo/>   Replace foo with bar using a for loop:  for f in *.xml; do ls | sed -i "s|foo|bar|g" ; done   Returns:  sed: no input files sed: no input files sed: no input files   I already figured out an alternative that works, so this is mostly for my own edification at this point.  find /dir/ -name '*.xml' -exec sed -i "s|foo|bar|g" {} \;


Attribute field names truncation when creating shapefiles

I am wondering what is the expression that truncate a given name to the 10 characters name used in ESRI shapefiles when an object is saved as shapefile with the function writeOGR in R. For example, the attribute field from a spatial dataframe "Ablepharus kitaibelii" is converted to "Ablphrk" when saved as shapefile, how the truncation is done?


Slow SQL Server database on a specific server

I have a SQL Server database on a production server (Windows server 2012, Intel Xeon, 24 GB RAM). The same database is present on my computer (Windows 10, Intel I3, 8 GB RAM).  When I'm querying the databases the response time is ~2 times longer on the production server.  The size of the databases and log files are identical.


Why is the cross-entropy loss function used in logistic regression?

Just wanted to double check: I understand that we can't use the squared error cost function (as we do in linear regression) for the cost function of a logistic regression model as the sigmoid function leads to the squared error being a non-convex function which makes finding a global minimum tricky. But why is the cross-entropy loss function used? It seems that cross-entropy is the quantity we almost automatically revert to when there's no better plan, is this true?


Trying to compare userinput username and password to a hashmap, username works fine but error when comparing password input with password in hashmap

My code:  import java.util.HashMap; import java.util.Scanner; import java.util.Arrays; import java.util.Map; import java.util.*;  public class LeetGrailLogin {    public static void main(String[] args) {       Map<String, String> UserPass = new HashMap<String,String>();       String userinput;       String[] arrOfStr;       Scanner sc = new Scanner(System.in);       UserPass.put("test", "test");        System.out.println("Please enter your username");       userinput = sc.nextLine();        userinput = userinput + ":";        System.out.println("Please enter your password");       userinput = userinput + sc.nextLine();        arrOfStr = userinput.split(":");        if(UserPass.get(arrOfStr[0]) != null) {          if(arrOfStr[1] == UserPass.get(arrOfStr[0])) {             System.out.println("Thank you for logging in! Redirecting...");          }          else if(arrOfStr[0] != UserPass.get(arrOfStr[0])) {             System.out.println("Incorrect Passord");          }       }    }  }   Console:   ----jGRASP exec: java LeetGrailLogin Please enter your username test Please enter your password test Incorrect Passord   ----jGRASP: operation complete.   I have tried debugging and all values should match up, my code is kind of messy so that may be the cause of the issue.  What I would like to achieve: I would like a user with the username "test" and password "test" to do a mock login by inputing their username and password as asked by the console. If username and password match those already in the hashmap then console says "successful login". If not, console says "incorrect password".  Error that I run into: I cannot for the life of me find the bug that causes the console to print "incorrect password". Can you guys find anything wrong with my code? (I would also appreciate any suggestions about how to clean up my code... it feels super messy to me.) Thanks for any suggestions and help you can provide.  Edit: I am a beginner in Java and I only recently learned hashmaps so if I'm making a somewhat obvious mistake, please be patient with me :D


Are there some websites for self-learning of advanced mathematics?

Are there some websites for self-learining of advanced mathematics? For example there is perimeter scholars for self study of theoretical physics, but I haven't found some good websites providing lecture videos of mathematics For example, some great lecture vedios of differential geometry, Lie group , Lie algebra, algebraic topology, partial differential equations and so on.


Creating a Batch to change a line (find and replace text)

I'm trying to create a batch file that replaces a line in a text file. The line is: Window Resolution: Depending on some settings in my program, this line can look like this: Window Resolution: 1 Window Resolution: 2 Window Resolution: 3 I need to replace Window Resolution: (number) with Window Resolution: 1 using a batch. My first guess would be to create something like this: @echo off setlocal enableDelayedExpansion  :Variables set InputFile=configfile.txt set OutputFile=tempconfigfile.txt set "_strFind=Window Resolution:" set "_strInsert=Window Resolution: 1"  :Replace >"%OutputFile%" (   for /f "usebackq delims=" %%A in ("%InputFile%") do (     if "%%A" equ "%_strFind%" (echo %_strInsert%) else (echo %%A)   ) )  DEL %InputFile% MOVE %OutputFile% %InputFile%  ENDLOCAL  But I can't get this working... Any advice would be awesome. Thank you.


Extension methods syntax vs query syntax

I'm trying to get a handle on if there's a good time to use standard linq keywords or linq extension methods with lambda expressions.  They seems to do the same thing, just are written differently.  Is it purely a matter of style?  var query = from p in Products     where p.Name.Contains("foo")     orderby c.Name     select p;  // or with extension methods: var query = Products     .Where(p => p.Name.Contains("foo"))     .OrderBy(p => p.Name);   They're very similar with the second example being a bit more terse, but perhaps less expressive if you don't know what the => is doing.  Other than writing terse code, are there other advantages to using the extension methods as opposed to the LINQ syntax?


In which case $M_1 \times N \cong M_2 \times N \Rightarrow M_1 \cong M_2$ is true?

Usually for modules $M_1,M_2,N$ $$M_1 \times N \cong M_2 \times N \Rightarrow M_1 \cong M_2$$ is wrong. I'm just curious, but are there any cases or additional conditions where it gets true?  James B.


Tried to search the forum already for some time, but can't get something working in a script in my blender environment. I want to play an animation based on the content of a label. I am really struggling with the if and elif condition, especially with the content of a label. Can anybody provide a simple example? I have now this, but it doesn't work: import bpy status = bpy.data.objects["Text"] if status == 'GO':     bpy.ops.screen.animation_play() elif status == 'NOGO':     bpy.ops.screen.animation_stop()


Sampling color of partially transparent objects in Illustrator

Sometimes when using Adobe Illustrator I need to get a range of tints from a certain color, so I'll drop the opacity to, say, 75%, 50%, and 25% on a white background to get there. It's the quickest way to get what I want in that moment, but then it comes back to bite me later when I put something underneath and then I have visibly overlapping layers.  What I want to be able to do is get the value of the color that I'm seeing. In Photoshop I'd do this by putting a white layer underneath, merging the two layers, and then sampling the color. Is there some sort of trick I can pull in Illustrator to do the same thing?   If not, is there a different (and preferably simple) way to add white to a color? Changing S and B values in the color picker is the only thing I could think of in that regard and isn't always terribly simple to do...


Proving continuity of composition of continuous functions

I need to prove the following theorem:  Given $f(x)$ with domain $Df$ and $g(x)$ with domain $Dg$:  With $f$ and $g$ above, let $a$ be in the domain of $f(g(x))$. Then $f(g(x))$ is continuous at $a$ if $g$ is continuous at $a$ and $f$ is continuous at $g(a)$.  I am at a loss of how to approach this problem.  Any help is appreciated.    Proof:   The definition of continuity is $$  \forall \epsilon > 0 : \exists \delta > 0 : 0 < |x − x_0| < \delta \implies |f(x)−f(x_0)| < \epsilon $$


How do I cite an article not written in English?

I am writing a research paper where references have to be addressed by author name and the year of his/her publication. I.e (Hamidi 2016).   The article that I am planning to include is in German language , so what is the best way to cite this article in my manuscript?


Coefficient of friction greater than one

Can coefficient of static or kinetic friction be greater than one?  If yes, then is there example of any material which is practically in use?


In the general theory of constrained optimization, is it possible to pose a minimization problem subject to some constraints that are dependent?  For example, suppose we aim to minimize an objective function $\mathscr F(x,y,z)$, for the design parameters $x$, $y$, and $z$, such that $z=x^2+y^2$. Is it correct to have such constraint, theoretically?  EDIT $z=x^2+y^2$


I'm trying to prove the following inequality $\forall x,y \in \mathbb R$ :    $$\lfloor x \rfloor + \lfloor x + y \rfloor + \lfloor y \rfloor \le \lfloor 2x \rfloor + \lfloor 2y \rfloor$$ If one thing is clear for me it is that the basic definition isn't enough to prove this, I would always get an additional $1$ on the left hand side.    Thanks for your trouble.


Why does DecimalFormat round inconsistently?

import java.text.*;  public class TryStuffOut {     public static void main(String[] args) {        double n=12323233.445;        DecimalFormat x = new DecimalFormat("#.##");        System.out.println(x.format(n));     } }  why does this round the decimal part down to .44 and when i switch the variable n to double n=12323233.415; it rounds up to .42 . Why? and does the # in front of the deicmal matter to how many digits I have because it still seems to print out the entire number even thought I only have 1 pound sign. Thanks


Why are the Borg different in Voyager and TNG?

When I look at the Star Trek: The Next Generation episode "", I notice that that Borg reacts differently than the Borg in Star Trek: Voyager.   Is there a specific reason for this?


How to send email verfication in android using firebase

i want to send email verfication to the new user. i am using firebase authentication. I have tried in this way, but it's giving me problem. it's not working  @Override public void onActivityResult(int requestCode, int resultCode, Intent data) {     super.onActivityResult(requestCode, resultCode, data);      if (requestCode == RC_SIGN_IN) {         IdpResponse response = IdpResponse.fromResultIntent(data);         System.out.println("Respuesta: "+response);                   if (resultCode == RESULT_OK) {                     // Successfully signed in                       if (response.isNewUser()){                         System.out.println("Eres nuevo");                         auth.sendEmailVerification();   Here is the error     Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.auth.FirebaseUser.sendEmailVerification()' on a null object reference


if p is prime then 1920 divides $p^4-10p^2+9$

if $p>6$ is prime then 1920 divides $p^4-10p^2+9$ Take out the factors of 1920 which are $$1920=2^7(3)(5)$$ and factor the expression that remains as $$p^4-10p^2+9=(p-3)(p-1)(p+1)(p+3)$$ and I assumed as p is prime then p-1 and p + 1 is even then it is divisible by $2^7$ but I think it is not correct, can you help me?


Dissecting the Stack Overflow views counter

The last couple of days I've been trying to understand how the Stack Overflow page views counter works. I wish to add a views counter to a project of mine and investigating the options. Stack Overflow seems to be a good source of useful ideas. Needless to say I've browsed through all of the related questions here on Stack Overflow and on Meta Stack Overflow. I can't say I've found an explanation but some tips (presumably false leading) were given in this answer:  From what I can tell there is now a JavaScript section in each answer page (used to be CSS in 2008):

   The last part of the URL - a947 - seems to be dynamically generated. It is changed every 15-20 minutes and is the same for all questions and presumably users (I tried anonymous access, changing my IP address, it stays the same during the interval). In a comment to the answer  Jeff Atwood gave a bit of a hint:  our view counts are very very strict -- more akin to visits as they are unique per IP per 15 minute interval.  Observing things with Firebug reveals that this URL always returns "204 No Content". So my first idea was that the browser is likely not to retrieve that counter URL on subsequent page requests until the random code changes, thus preventing duplicate counter hits already on the client side for that 15 minutes interval. Watching the things with Firebug doesn't seem to confirm that theory:  As you can see the counter URL is retrieved again and again (even if I don't refresh the page with F5 but just click the page link in the title). More to it. I tried to recreate the same scheme in a test project also returning 204, and I confirm that the counter URL is retrieved again and again. No browser caching. More peculiar, Firefox for some reason calls the URL twice (the number is always even):  At this point the idea behind this counter URL is a mystery to me. What is the point of that last changing part of the URL if it's the same for all questions and users and does not prevent repeated requests from the client-side? In that question a possible explanation is given:   I think I know the answer - they are analyzing the IIS log as Ope suggested. Hidden image src is set to  code] [Random code] is needed because many people may share the same IP address (in a network, for example) and the code is used to distinguish users.  I'm not sure I understand this and I somehow feel it's off course. Can somebody or perhaps the Stack Exchange Inc. folks explain what and how they are doing with the views counter? I'm not trying to understand how it works in order to start gaming the system, I only wish to learn how these things are done. I hope Stack Exchange Inc. won't mind revealing some secrets. UPDATE: I'm beginning to suspect this changing value at the end of the url is used to help aggregate the collected data by dividing time in 15-minute-slots. Still thinking in what way exactly... UPDATE 2: So I've tried my test project with different browsers to see if 204 No Content would result in browser caching. It doesn't. The counter URL is retrieved again when the page is requested next time, but the value at the end of the counter URL is not changed. I tried with Internet Explorer 8 and the current versions of Firefox 3.6, Opera, Safari and Chrome. The behavior is identical and not surprising actually since the response for 204 doesn't contain the "Expires" header (neither does a live response from stackoverflow.com) so there is no reason for the browser to cache the response. I kindly ask again the nice folks what is then the reason of that changing value of the counter URL? It doesn't force temporary browser caching so the reason must be elsewhere.


So I am trying to get my head around the concept of a dual basis. I think I have an okay idea of it, but my problem lays at finding a dual basis given a basis $B$. So I have given that $B = ((2,1),(3,1))$, which is a basis for $V=\mathbb{R}^2$. Then, apparently, $B^*=(-1x_1+3x_2,x_1-2x_2)$ is an ordered dual basis for $B$.  I know that given a vector $\textbf{x} \in V$  we can get the function $\phi_k(\textbf{x})=([\textbf{x}]_B)_k$ (evaluating it's coordinates in the basis B and taking the coefficient that corresponds to the k-th position). If we then take $B^*=(\phi_1,\phi_2)$, we have an ordered dual basis to $B$.  However, I don't understand how we can compute $\phi_1$ in such an instance, like is done in the example I've given. Could anybody help me out?  Thanks,  K. Kamal


Is my solution correct for solving $\cos(z)=2$, $z\in \mathbb{C}$

Find all roots in $\mathbb{C}$ of the equation $\cos(z)=2$ and plot them on an Argand diagram.  My solution: $\cos(z)=2$, $z=x+iy$ so we have that $\cos(x)\cos(iy)-\sin(x)\sin(iy)=2$ so $\cos(x)\cosh(y)=2$ and $\sin(x)\sinh(y)=0$ must hold. So if $\sinh(y)=0$ then $y=0$ so $\cosh(y)=1$ and so $\cos(x)=2$ which is a contradiction, therefore $x=n\pi$, for some $n\in \mathbb{Z}$ and so $\cos(x)=\pm 1$. However, $\cosh(y)>0$, so if $\cos(x)=-1$ it follows that $\cos(x)\cosh(y)<0$ and cannot equal $2$. Hence $\cos(x)=1$ so $x=2n\pi$ for some $n\in \mathbb{Z}$ and $y=\pm\cosh^{-1}(2)$ since $\cosh(y)=2$. Therefore since $z=x+iy$ $\implies z=2n\pi \pm i\cosh^{-1}(2)$, $n\in \mathbb{Z}$.  My question is, is this sufficent to answer the question $\cos(z)=2$? And if not how should I structure it using this method? Also why is it $\pm\cosh^{-1}(2)$? I don't understand this sutble point. And if I was to draw an Argand diagram would it just be on the imaginary axis at $\cosh^{-1}(2)$ every $2n\pi$?


Should users be notified with new comments/edits on posts that they have downvoted on?

Many times we've seen this scenario happen - a question was posted and currently doesn't meet the standard or is unclear.  A user with voting privileges sees the content, downvotes it, and moves on with their day.  They were not obligated to make comments on their downvotes (they should, but they're not required to).  However some of these questions are redeemable - sometimes the original poster would amend the question up to standard per suggestions, or sometimes they want to clarify their position with the downvoters (especially on answers) but the downvoter is already long gone from the post.  My question is thus: should those who downvote a question/answer receive notifications on new edits and comments so they can review their decisions? I think it's beneficial because:   Notifications can easily be ignored, so it's not an annoyance.     It allows the downvotee a channel to reach out to the downvoter without pestering them.   It would generally promote better voting ratio and reduce the view of "toxicity" on some of the communities.


./configure won't work while trying to install GNU tar 1.28

I'm trying to install GNU tar-1.28 and when I type ./configure I get:  ./configure: line 3064: config.log: Permission denied ./configure: line 3074: config.log: Permission denied line 3064: | #define HAVE_DECL_FWRITE_UNLOCKED 1 line 3074: | #define HAVE_GETCWD 1   Can anyone help me fix these errors?


I'm looking for a plugin or way to simply go from any namespace, type, method, property, etc in my .Net code to the MSDN page that covers it via a context menu item or hyperlink-like mechanism.  Does anyone know of anything that will do that?    The "Go to Definition" option when you right click almost covers this, but it doesn't quite work well enough - no support for namespaces and you often end up at an ugly metadata page.  I'm still on vs2005, so if vs2008 is better at this I'd like to know about it.


Ejabberd server on AWS t2.micro instance?

I am just worried about the performance issues of running Ejabberd(XMPP) chat server on 1GB RAM and 1CPU core AWS t2.micro instance.  Ejabberd documentation says it can easily accept concurrent connections of 100K to 300k if the machine has 16GB of RAM and 4 CPU cores.  But I have only 1GB RAM and 1CPU. If I run Ejabberd chat server on this machine can it withstand at least 10000 connections? And how efficient is it to run a chat server on this machine(1GB,1CPU) for 10000 connections?


I would like to simply put a very short image description over an image I have included using \includegraphics. What is the simplest way to achieve this?


Can we extract data of contacts that entered a journey and are not a part of email activity in Journey builder

-I am trying to extract data of contacts who entered the journey and who exit the journey as a reminder group and passed through wait by duration activity before flowing out of journey.  -These contacts are not a part of any activity like email. -I am trying to query in data views and not able to find any table when this information is capture. Can anyone help with a query to identify these contacts.


Undefined control sequence with PStricks

I am new to PStricks and Tex in general and no matter what I do, I get the same error message running a very simple code like the following:  \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{pst-all} \usepackage{graphics} % !TeX program = xelatex \begin{document}     \begin{pspicture}(2,2)(5,5)         \psline(0,0)(1,1)     \end{pspicture} \end{document}   These are the error messages I get:  ! Undefined control sequence. <recently read> \c@lor@to@ps   l.12 ^^I^^I\psline(             0,0)(1,1) The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.   And:  ! Package inputenc Error: inputenc is not designed for xetex or luatex. (inputenc)          only UTF-8 supported.   I don't understand what the error is since I run the document with XeTex and use TexStudio (if that is of any importance).  Thank you for your help :)


I'm making fan art for a youtube channel I watch and When I click Shift-Z, to see the preview render, it shows itself as nice and smooth   but when I render it, it doesn't come out as smooth   If you look closely you'll see what I'm talking about. Any suggestions on what could be causing this. Camera is in Orthographic.


How do I access the configuration variables present in settings.php through my code?

I want to access the variables present in the settings.php in my custom module. For example, if the settings.php file contains the $config['test']['uid'] = 'ABC'; line, I want to access the content of $config['test']['uid'] in a controller.  How can I achieve this?


Selecting a feature using expression if attribute field is "NULL"

I am new to QGIS and am having, what I expect to be, an easy issue. I am working with a multi-polygon shapefile of taxable property parcels in QGIS 3.16. All it is I am trying to do is select all features whose "FieldA" is empty (or "Null") In the expression field I have tried: "FieldA" = 0; or "FieldA" = NULL Neither of these work obviously and I am at a bit of an impasse.


Exercise 3.23 from Real and Complex Analysis of Walter Rudin

I need help in the exercise cited in the title.  Suposse $ \mu $ is a positive measure on $ X $, $ \mu(X)<\infty $, $ f \in L^\infty(\mu) $, $ \|f\|_\infty >0 $, and \begin{equation} \alpha_n = \int_X |f|^n d\mu, \forall n \in \mathbb{N} \end{equation}  Prove that \begin{equation} \lim_{n \rightarrow \infty} \frac{\alpha_{n+1}}{\alpha_n} = \|f\|_\infty \end{equation}  I tried this.  As we know that $ \lim_{n \rightarrow \infty} (\int |f|^n)^{1/n} d\mu = \|f\|_\infty $ then for every $ m \in \mathbb{N} $ existis $ N_m \in \mathbb{N} $ such that for all $ n \geq N, n \in \mathbb{N} $ we have the following assert  $$ |(\int |f|^n)^{1/n} d\mu - \|f\|_\infty| < \frac{1}{m} $$  Then  $$ \|f\|_\infty - \frac{1}{m} < (\int |f|^n)^{1/n} d\mu < \|f\|_\infty + \frac{1}{m} $$ $$ (\|f\|_\infty - \frac{1}{m})^n < \int |f|^n d\mu < (\|f\|_\infty + \frac{1}{m})^n $$  Similar way as $ n+1>N_m $ we have  $$ (\|f\|_\infty - \frac{1}{m})^{n+1} < \int |f|^{n+1} d\mu < (\|f\|_\infty + \frac{1}{m})^{n+1} $$  Then for sufficiently large $ m $ such that all terms are positve and taking care that $\|f\|_\infty>0$  $$ \frac{(\|f\|_\infty - \frac{1}{m})^{n+1}}{(\|f\|_\infty + \frac{1}{m})^n} < \frac{\int |f|^{n+1} d\mu}{\int |f|^n d\mu}  < \frac{(\|f\|_\infty + \frac{1}{m})^{n+1}}{(\|f\|_\infty - \frac{1}{m})^n} $$  Now, making $ m \rightarrow \infty $ and as a consecuence making $ n \rightarrow \infty $  $$ \lim_{n \rightarrow \infty} \frac{\int |f|^{n+1} d\mu}{\int |f|^n d\mu} = \|f\|_\infty $$


How many 10-digit numbers can be made by using the digits {5,6,7} (all of them) and with the additional constraints that no two consecutive digits must be the same and also that the first and last digits of the number must be the same?   I am trying to find a solution by using combinatorics. I start from the 1st leftmost digit, which can have any value from {5,6,7} (3 possibilities).  Then we move to the 2nd digit, which can have 2 values (since it can't be the same with the 1st) and so on, and for the last digit we only have 1 option. But this is not correct, because for the 9th digit we have the restriction that it must be different from the 8th and also different from the 10th, which, in turn, is equal to the 1st.  I don't know how to express this.  I therefore tried to find a recursive relation.  I found that the general relation is $a(n) = 2*a(n-1)$ if n odd and $2*a(n-1) + 6$ if n is even.   For n=4, we have 6 such numbers (4-digit numbers, but with the given restrictions). Then if we add one more digit to the right, we remove the rightmost (4th) digit, which had to be the same with the first, and now for the 3rd digit we have 2 options instead of 1 (we can also add the options that were rejected because they were neighboring with the 4th digit). So in total we now have $2 x 6 = 12$ options. Therefore, $a(4)=6$ and $a(5)=12$. I don't understand, however, where this $+6$ (in the recursive relation) comes from!  By the way, the correct answer is 510.  Many thanks in anticipation.


How does a for-each loop works when it calls a method, either recursively or a different method?  Example:  for(String permutation : permute(remaining))     {           // Concatenate the first character with the permutations of the remaining chars       set.add(chars.charAt(i) + permutation);     }   By the way the method  permute  takes in a String and returns a set.  Thank you.


If you go to  any page on stackexchange.com the old top bar is still in use. This makes me sad since I find the  to be far superior. It only seems fair that the main domain should also have the top bar designed to unify all Stack Exchange sites.


Is it valid to use / in a class name in html/css?  // html

  // css ./10{ float:left; }


Using the infinitive or past tense for the verb for a future event

A recent article in The New Yorker included this phrase: "...forbade him to represent Israel in bridge for an additional 18 months...". I would have written " forbade him from representing Israel". Which is correct, and why?


English is not my native language, so I'm wondering, should I say:     I'd better go away now.   or:     I better go away now.   or even (I think I've heard this one):     I better go now.   Thanks in advance!


Can you attack multiple times a turn with a light/heavy crossbow and the Crossbow Expert feat?

It has been my understanding that since the first benefit of the  feat (PHB, p. 165) is:     You ignore the loading quality of crossbows with which you are proficient.   ...Then you can fire a light or heavy crossbow as many times as your Attack actions and possible bonus weapon attack bonus actions allow - especially in light of the ruling that the two-handed property means you need two hands to wield it, rather than simply hold it, which means you can free up a hand to reload it in time.  And yet, I see people talking about taking multiple shots with a hand crossbow, explicitly a one-handed weapon. I understand that having the option to fire either it or (depending on interpretation) another one as a bonus action is a desirable quality, but assuming I want my bonus action free, am I able to attack several times with a non-hand crossbow?


when I save my image as a png, it appears darker than the original rendering, or at least, the colorimetry is not the same. Does anyone have any idea what it is? Thank you


Opportunity associated to OpptunityLîneItem

I want to display All Opportunities associated with the same Product as this OpportunityLineItem


How to upgrade android from 4.2.2 to 4.4 kitkat in XOLO Q1010?

I have bought XOLO Q1010 it has Android version 4.2.2. Is it possible to upgrade to Android version 4.4 KitKat? if yes then how?  Thanks.


Is there a schematic overview of Ubuntu's architecture?

as enthusiastic, advanced Linux learner, I'd love to get an overview about Linux' architecure/structure in general. You know, like "the big picture".  I'm thinking of a large schematic graphic showing what is what, who is who, what system (e.g. X) comprises which subsystems (GDM/Gnome/Compiz) on the way from a to z, from boot to interactive desktop, including the most important background services (auth, network, cron, ...).   Maybe a bit like this:  but way more detailed. There's bootchart, which produces very comprehensive charts, but they again are too detailed and difficult to get the "big picture" from.  Is there such a thing? Possibly not for the whole System, but maybe for single subsystems?  I had trouble searching for this, because using search terms like "scheme" or "architecture" pointed to the wrong direction (a tool called "scheme" or CAD software for linux).  I appreciate any links. If there's interest in those schematic overviews and links, maybe someone could turn this post into a wiki post?


Automatically create accounts in all sister sites

I've seen a number of cases when questions have been migrated from one site to another (SO-->SF, SO-->SU etc). If the original asker doesn't have an account on the site to which the question has been migrated, he basically loses track of the question.  This is especially true of questions that are migrated to SU which still needs a password having to do with . I suggest that once you have an account on one of the sites, you should also have an account in each of the sister sites so that you can easily keep track of all your questions that have been migrated. Edit:  I know you can link the accounts.  I just think this should be automatic in order to reduce friction.


"This post has severe quality issues." in low-quality review has no means for feedback?

While review posts in the "low-quality" queue in the new review system, I encountered a short post consisting of a link along with a somewhat terse explanation.  Here is the , but the post has been hidden by the review system.  It was long enough to convince me it didn't belong under "link-only non-spam", and I deemed it  looked good.  Upon clicking "Looks good" I met the "This post has severe quality issues" warning instructing me it had severe problems and has already been dealt with.  The only problem was the post didn't have any obvious problems (barring my developing sense of acceptable posts.)  Certainly it was not off-topic or offensive.  Please, before you mark this question as a , here's what I want to know: in the situation an "obviously good" post gets this warning, how would I mark it as such?  Putting my specific example aside, it seems there should be some means to disagree, or at least see the reason it was put up (I suppose my example might have been especially well-crafted and genuinely useful vendor spam.)


Suppose I want a bash command to do something extra.  As a simple example, imagine I just want it to echo "123" before running.  One simply way to do this would be to alias the command.  Since we still need the original, we can just refer to it by its exact path, which we can find using which.  For example:  $ which rm /bin/rm $ echo "alias rm='echo 123 && /bin/rm'" >> .bashrc   This was easy because I was able to look up the path to rm using which.  However, I am trying to do this with exit, and which doesn't seem to know anything about it.  $ which exit $ echo $? 1   The command did not output a path, and in fact it returned a non-zero exit code, which which does when a command is not in $PATH.  I thought maybe it's a function, but apparently that's not the case either:  $ typeset -F | grep exit $ echo $? 1   So the exit command is not defined anywhere as a function or as a command in $PATH, and yet, when I type exit, it closes the terminal.  So it clearly is defined somewhere but I can't figure out where.  Where is it defined, and how can I call to it explicitly?


how to extract all ip address from a given string, please.  eg:  " 2014-07-08 19:05:20 1X4YpU-0001kr-6y <= info@arianet-dsl.com H=(server.takcloud.com) [185.4.28.203] P=esmtps X=TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256 S=1018 id=57844562-138B-4934-9CF7-554F8C613C1C@arianet-dsl.com "


Adding “’s” when the name ends with “s”?

Example 1:     Peter’s bag   Example 2:     Chris’s car   Is example 2 correct? If not, what is the rule for names that end with “s”?


SciFi work that had artificial birds turning on humans?

Trying to find the original story (I read it in Russian translation, original was most likely English unless it was Lem).  The story plot had artificial birds designed to serve as cops. The birds started attacking humans who were percieved as being aggressive towards anything alive. So they created more advanced birds to protect against the first ones. This worked for a while until the second kind started attacking humans as well. It ended with the idea that they would need another generation to attack the second-generation birds.  The story wasn't very long. I read it a while back (mid-1980s, which means the original was written even earlier, probably before 1980).  Despite a somewhat Asimov-like "misbehaving robots" topic, I'm pretty sure it wasn't Asimov.


How to update/increment an Oracle sequence by ten million?

I have a (Oracle) sequence that I use to assign an order number to new orders being inserted into a database table. It started at 1, and increments by 1 for each new order.  I have a new requirement saying that order numbers should start at 10000000 (ten million), so I want to update all existing records (by adding 10000000; order 1 will then be 10000001, order 7002 will be 10007002, etc), and also increment the Oracle sequence so that the next value will be correct.  I was going to simply run this script:  DECLARE   l_temp NUMBER; BEGIN   FOR idx IN 1..10000000 LOOP     SELECT MY_ORDER_SEQ.nextval       INTO l_temp       FROM dual     ;   END LOOP; END; /   but I don't really know how long that would take to run.  Is there a better way to do this?


Span Stack Exchange sites for tags, searches, and related questions

I think there's an unintended motivation for users to post questions to higher-traffic Stack Exchange sites rather than their more specific or appropriate lower-traffic ones.  I think I have a solution.  What motivated this suggestion for me was that I am confident that if users were to post Android design questions to  beta and/or , that they would likely not be noticed by the appropriate audience compared to the vast army of Android experts here on Stack Overflow.    There are plenty of Android questions on SO that really should be on one or both of the aforementioned sites.  Presently there is little motivation for users to start questions like this on the appropriate site.  Is there something we could do to cross-pollinate related sites?  For instance, what if we let certain tags span certain sites?  Obviously the selection would be controlled by high-reputation users.   There could also be a feature to show (or explicitly hide) certain questions from other sites regardless of the tags.  This could be controlled by lower-reputation users than the global tag since it wouldn't have much statistical impact.  For instance, the android-layout tag could by default span sites, but OPs and other users could eliminate from the Graphic Design site questions that are of a purely technical nature.  Users interested in Android tagged questions would see related questions on design and UE sites--whether they are searching, posting, or viewing a question through the related items.  This would help eliminate cross-site duplicates, and encourage people to post on the correct site in the first place.   For related question lists and search results, there could even be a specific cross-site icon  next to an off-site question to show that it's from UX, for example.


Greetings,  I have an apache2 server with 4 domain names point to my server's single IP address.  When I type in www.site1.com it serves pages from /home/eamorr/site1/index.php Same for www.site2.com, www.site3.com and www.site4.com  However, when I type in to the address bar of a browser without the www, it always redirects to site1.com!  i.e.  site1.com -> site1.com site2.com -> site1.com site3.com -> site1.com site4.com -> site1.com  How do I configure apache to do the following:  site1.com -> site1.com site2.com -> site2.com site3.com -> site3.com site4.com -> site4.com  Here is my default config:           ServerAdmin admin@site1.com         ServerName www.site1.com      DocumentRoot /home/eamorr/sites/site1.com/www     DirectoryIndex index.php index.html      <Directory /home/eamorr/sites/site1.com/www>             Options Indexes FollowSymLinks MultiViews             Options -Indexes             AllowOverride all             Order allow,deny             allow from all             php_value session.cookie_domain ".site1.com"              #Added by EOH for redirection             RewriteEngine on             RewriteRule ^([^/.]+)/?$ driver.php?uname=$1 [L]      </Directory>      ErrorLog /var/log/apache2/error.log      # Possible values include: debug, info, notice, warn, error, crit,     # alert, emerg.     LogLevel warn      CustomLog /var/log/apache2/access.log combined     I'd like to look at the domain name and then redirect to www.sitex.com. Is there an Apache rule to do this?  I hope someone can help. My SysAdmin/apache2 config skill aren't the best.  Many thanks in advance,


Who made the decision for Gandalf's promotion from 'grey' to 'white'?

In the first book of the LoTR, after his fight with the Balrog of Moria, Gandalf the Grey changed to .   My question is, who made the decision to 'promote' him from grey to white? Was it ? Or was it the ? Or was it the ?


I want to show:     If $f(x) \in F[x]$ is a poly of degree n, then the splitting field of $f(x)$ over $F$ in $\bar F$  has an extension degree less or equal to $n!$.   I think $n!$ has something to do with permutation but I cannot proceed further.


I do not know why those two references can not get cited. I only get a question mark instead of the reference number. I copy the name of the reference and I still have the error!. Here is what I write: \cite{Agembeddedinsi} and it does not work!!!  @article{Agembeddedinsi,    author = "Trolle, Mads L. and Pedersen, Thomas G.",    title = "Indirect optical absorption in silicon via thin-film surface plasmon",    journal = "Journal of Applied Physics",    year = "2012",    volume = "112",    number = "4",     eid = 043103,    pages = "-",    url = "http://scitation.aip.org/content/aip/journal/jap/112/4/10.1063/1.4746699",    doi = "http://dx.doi.org/10.1063/1.4746699"  }  @article{organicdiodes,    author = "Ditlbacher, H. and Aussenegg, F. R. and Krenn, J. R. and Lamprecht, B. and Jakopic, G. and Leising, G.",    title = "Organic diodes as monolithically integrated surface plasmon polariton detectors",    journal = "Applied Physics Letters",    year = "2006",    volume = "89",    number = "16",     eid = 161101,    pages = "-",    url = "http://scitation.aip.org/content/aip/journal/apl/89/16/10.1063/1.2362975",    doi = "http://dx.doi.org/10.1063/1.2362975"  }


how to end connection in java socket with "good buy" message

I build a client/server chat in java  and i want to end the connection if one of the client or the server send a "good buy" message  but that not what happened the connection still a live  The code in the client side:  import java.io.*; import java.net.*;  public class TCPClient {     public static void main(String[] args) throws Exception {         String message;         String recivedMessage = "h";          Socket clientSoc = new Socket("127.0.0.1",9999);          while(recivedMessage != "good buy") {             System.out.print("Client : ");             BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in));             DataOutputStream outToServer = new DataOutputStream(clientSoc.getOutputStream());             BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSoc.getInputStream()));              message = inFromUser.readLine();             outToServer.writeBytes(message + '\n');              recivedMessage = inFromServer.readLine();             System.out.println("Server : " + recivedMessage);             if (recivedMessage == "good buy") {                 break;             }         }         if (recivedMessage == "good buy") {             System.out.println("Connection end");             clientSoc.close();         }     } }   The code in the server side:  import java.io.*; import java.net.*;  public class TCPServer {     public static void main(String[] args) throws Exception {         String Message;         String recivedMessage = "h";         ServerSocket welcSoc = new ServerSocket(9999);          while(true){             Socket serverSoc = welcSoc.accept();             while(recivedMessage != "good buy"){                 BufferedReader inFromClient = new BufferedReader(new InputStreamReader(serverSoc.getInputStream()));                 DataOutputStream outToClient = new DataOutputStream(serverSoc.getOutputStream());                 recivedMessage = inFromClient.readLine();                 System.out.println("Client : " + recivedMessage);                  System.out.print("Server : ");                 BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in));                 Message = inFromUser.readLine();                 outToClient.writeBytes(Message + '\n');             }             if (recivedMessage == "good buy") {                 break;             }         }         if (recivedMessage == "good buy") {             System.out.println("Connection end");             welcSoc.close();         }     } }


Evaluate the following integral.  $\int\frac1{(x+a)(x+b)}~dx$  ${a}\neq{b}$  I do not know where to being solving this integral.


How to execute TMUX commands on a remote server when I have TMUX running locally too?

I am not sure if this is possible but I have a remote server running tmux and I frequently ssh into that server from a computer that is also running tmux.  The issue is that the tmux.conf filed are the same so when I try to run a command like detach with prefix-d I detach from my local tmux session when I actually want to detach from the remote one.  I do not see anyway around this other than having separate tmux.conf files but I thought I would check.


I do not understand what should be here:     He wants to be able to see all users whose data he has an/the... access to.


What to do when your character is just too good?

I'm playing in the Paizo Pathfinder Jade Regent adventure path and we're having a good time so far (). However, as my character has gone up in power I'm now confronting a problem with him being just too effective.  As background, I'm not a big character optimizer, in fact I find the process a little distasteful.  I'm playing a samurai and deliberately built him as a switch hitter, both melee and archery, specifically to avoid min-max syndrome.  However, a combination of just being a strong class and good treasure has made him seem almost too good especially in the arena of dealing damage.  Why do I feel that way?  Well, as an example, last session, we knew some master ninja guy was hunting us. And sure enough, he was posing as some normal guy and got in a death attack on me.  He did a crapload of damage but I made the death save and he leapt away to disappear into the crowd.  I quickdrew my bow and put something on the order of 100 points of damage into him and down he went, encounter over. Which sucked from a dramatic point of view, this was supposed to be a really complex capstone encounter. The rest of the players groused a bit, though several did the calculation and realized that in optimal conditions they could deal out a hellacious amount of damage in a round too, so I wasn't an order of magnitude out of line (after review the other PCs are probably able to deal 30% less damage per round than I am under similar conditions), but still, I don't want to overshadow other PCs (or, frankly, our opposition!).   . I was a bow/sword switch hitter but then we got  - which turned a full bow attack with multishot, deadly aim, rapid shot, point blank shot, and the most common round 1 buffs from my party (haste and bard song) into +20(x2)/+20/+20/+15/+10 for 1d8+29 points of damage per arrow.  I think it's worthwhile talking about this problem from a system-neutral perspective; Pathfinder specific thoughts are fine but I can toss the bow, take crap feats next level, etc. without your help.  I've asked a separate question about the system issue,  The real question here is if I have a character that does or seems to outstrip the other characters in terms of effectiveness, how can I adjust to at least mitigate the resulting problems (over and done encounters, PC envy)?  For an example of an adjustment I already made, back when I only got challenge with my katana, I RPed not wanting to use the katana/challenge on "unworthy" opponents so I could shoot mooks and then just use the big damage on main bosses... But now we've grown past where that helps.


Bevel constantly regardless of face size (don't stretch bevel)

I want to bevel a rectangular prism, but when I stretch the prism, instead of keeping the same bevel, the bevel stretches as well. How can I get the bevel to stay the same size while the prism is stretched?


Let $L,M$, two subspaces of $V$. Prove $L\cup M \ne V$

Let $L,M$, two subspaces of $V$ where $L,M\ne V$. Prove $L\cup M \ne V$   My Try:    Obliviously, $L\cup M \subseteq V$. It's left to show $L\cup M \subsetneq V$. $L,M$ have bases as subspaces. Let: $$l = \sum\limits_{i=1}^{j} = \alpha_il_i$$  $$m = \sum\limits_{i=1}^{k} = \beta_im_i$$  Now, I want to claim that $v=l+m$, is of course $\in V$ but $\notin L\cup M$  Is that how am I suppose to do that? How to proceed then?  Thanks.


can we write a script in python that runs dos commands/dos mode? Eg: I have a command   megarec.exe -cleanflash .1   which supposed to run only on dos mode.I do it manually.Now i need to write a script which automates the above procedure.can i do it?


I would like to know how to prove that $$\sum_{r=1}^\infty \frac{(-1)^{r+1}}{(2r-1)^3}=\frac{\pi^3}{32}$$ I would very much prefer answers that avoid non-elementary functions like the gamma or beta functions, as although I am researching them, I am still in high school and not very familiar with them- but if it is necessary, I will not object :) I know how to prove the Basel problem using $\sin$ expressed as a product of its factors and its Maclaurin series, and other similar series, such as $$\sum_{r=1}^\infty \frac{(-1)^{r+1}}{r^2}=\frac{\pi^2}{12}$$ but I cannot find a similar method to help evaluate this. It'd also be helpful if I could find an elementary function that I could express as a useful series expansion and then integrate between $0$ and $1$ to evaluate the series I am dealing with such as $$\frac{1}{1^2}-\frac{x^2}{3^2}+\frac{x^4}{5^2}-\frac{x^6}{7^2}+\cdots$$ but I cannot find any function that has this series expansion. Many thanks for your help.


What kind of abbreviations are "Bee Gees", "Eminem", etc?

The  is actually a stylised expansion of the initials BGs, which in turn refers to initials of Barry Gibb, DJ Bill Gates and Bill Goode (or simply means Brothers Gibb).   comes from M&M, initials of Marshall Mathers.  Similarly,  from pronunciation of M.C., abbreviation of master of ceremonies, a noun phrase attested from the 1660s.  In my place I see a lot of companies titled similarly, PeeKays (from initials PK), CeePee electronics, Kay Pee Em tours and travels etc.  Now, my username NVZ is an initialism. What if I expand it into En Vee Zee?   What is this type of naming called?  I don't think it's simply an acronym, or an initialism.


How to tell the difference between linear and non-linear regression models?

I was reading the following link on non linear regression . My understanding from reading the first section "Nonlinear Regression vs. Linear Regression" was that the equation below is actually a linear regression, is that correct? If so why?  $$y = b_1x^3 + b_2x^2 + b_3x + c$$  Am I also to understand that in non linear regression multicollinearity isn't an issue? I know that multicollinearity can be an issue in linear regression so surely if the model above is in fact a linear regression there would be multicollinearity?


How long do Superman's powers last without access to the Sun's radiation?

Superman gets his powers from the radiation generated by our sun, but once he no longer has access to this radiation, how long do his powers last?  I'd be looking for examples from comics or the animated universe if possible.


Show $n^{-1} \max_{k\leq n} X_k \rightarrow 0 \quad a.s.$ if and only if $\mathbb{E}(X_1)_+-\infty)>0$

Show that $$n^{-1} \max_{k\leq n} X_k \rightarrow 0 \quad a.s.$$ if and only if $\mathbb{E}(X_1)_+<\infty$ and $\mathbb{P}(X_1>-\infty)>0$  Hoping for a hint on where to start.


Why should Bucky know Black Widow specifically?

In the movie Captain America: Civil War, Black Widow told Bucky: "You could at least recognise me". What does that mean? Did they know each other during WWII?


Do I have to supply a bank statement for my Schengen visa application if I have a sponsor?

Is it necessary to submit a bank statement which does not have enough funds,though I'm being supported by a friend in Germany when applying for a schengen visa to Germany from Zimbabwe?


How to check if data constitute a time series with simple moving average method?

I have some set of random data. I would like to check if this data constitute a time series. I know how to apply a simple moving average method to the data. But after applying it, how can I say if the data is time series or not?


I'm having an issue while trying to fix my connection

I have a Toshiba Satellite C-55 and recently changed to Ubuntu 19.10, I'm completely new to Ubuntu, so there's nothing much I know what to do, except googling before asking, but I'm stuck. My internet connection got really slow like a day or so after installation, and IDK why, but I found out that is a common issue with Atheros devices, which my computer has, so I tried to enter the following command:   sudo su echo "options ath9k nohwcrypt=1" >> /etc/modprobe.d/ath9k.conf   As seen here:  But... it got stuck there, it's doing nothing (I think, but whenever I try to close the terminal, it's saying that there's still a process running, but it has been like that for an hour, what do I do?


How can I correctly attach a file to a mail?

I am very new to drupal and need to upload a file and sent it as attachment in Drupal 8. I have created the form element like $form['candidate_attachment'] = [   '#type' => 'managed_file',   '#title' => t('Attachments'), ];  When I submit the form with a PDF file and in the submitform() the data displays for the $form_state->getValue('candidate_attachment');  is Array ( [0] => 1358 )  Code to send email is // ... $validators = ['file_validate_extensions' => ['pdf']]; if ($file = file_save_upload('candidate_attachment', $validators, FALSE, 0)) {   $filepath = file_get_contents($file->getFileUri()); }  // ... $params['context']['message'] = $test; $params['context']['attachments'][] = $filepath; $to = $em["mail"];          $result = $mailManager->mail('system', 'mail', $to, $langcode, $params);   But the email is sending without an attachment. What am I doing wrong? How can I correctly attach the file to the mail?


I've been using this sentence for a while now, but someone suggested to me that it doesn't sound like proper English.  "Do please let me know [e.g. if you need more information]" (1)  vs  "Please let me know" (2)  or even  "Please do let me know" (3)  My thinking is that the "do" in (1) and (3) tends to make it sound more genuine than (2) (as suggested in ), while placing "do" before "please", a slightly unexpected order, insists even more on that aspect. But perhaps it's just bad grammar.


Selected Files/folders:  I don't know who these files belong to, but I'm afraid deleting them might cause something to break. How do I hide these files and folders so that they do not appear in Nautilus, but they are accessible by Windows, if they belong to it.  I have seen some guides where each file and folder to be hidden is prepended by a period (.), but that would change the file name, which may or may not break something.


If coefficients of the Quadratic Equation are in AP find $\alpha+\beta +\alpha\beta$.

$ax^2+bx+c=0$ is a quadratic equation with integer roots $\alpha,\beta$ and the positive coefficients are in AP.Find $\alpha+\beta +\alpha\beta$.  My attempt:  $\alpha+\beta +\alpha\beta=\frac {-b}{a}+\frac {c}{a}$ and we know $\frac{a+c}{2}=b$.  But I cannot eliminate the $a,b,c$ terms to get the answer $7$ given.  How to do it?Any quick,short,simple solutions?


I remember the first time I saw this formula, $F = ma$, and it seemed perfectly correct and natural to me (in the sense that it is very straight-forward and logical, not that it is easy by any means). But then, I wondered, what if an object is moving with a constant speed? Maybe a car. If it travels with constant speed and hits me, it still hurts. So it's force must not be $0$.  One more thing related to this problem. If the same car is pulling another car behind it, if the car goes with constant speed, it implies that the first car doesn't exert any force to the second car at that moment, since it is not technically pulling it anymore (espacially if we don't take into consideration the friction).  So my question would be the following: How do these two phenomenons describe the same law of motion?   PS: If gravity wasn't behaving as some kind of acceleration pulling me constantly to the Earth's core, then if I jumped upwards, would I start slowly getting away from Earth?


Export/list out object information as text format

Is there an option in blender to export (or list out) certain properties of all (selected) objects?  My case is: I have modelled a furniture using real size, metric measurements. Now I want to hand a list of sheet sizes over (x-y-z dimensions of objects in blender) to the carpenter so he would be able to cut the correct sheets for me.   I am looking for an option to do all inside blender, if that isn't possible, an option of some kind of export would be acceptable.


Does it make any difference if you host a blog at "blog.example.com" vs "example.com/blog"?

Just wondering if there would be any difference to the SEO or search engine rankings for a website if they decided to host the blog part of their website at a subdomain(blog.example.com) instead of hosting it at a path from their root domain (example.com/blog) I saw  about it that doesn't directly answer the question, it just says you should have both.


`du` shows non zero size of empty catalog

I know, that when I create empty catalog it has his own size:  mkdir test && du -h test   gives:  4,0K    test   But this case is another. I had catalog with 1e6 files (74 GB) on external HDD (ext4). I processed these files, saved in other catalog and deleted from this location in parallelized script. Now this catalog should be empty. So it is ok that  ls -a raw/all   print  .  ..   But   du -h raw/all   gives  19M     raw/all   Without -h we have exactly 19288B. And this is also strange result:  ls -la raw/all  total 19292 drwxr-xr-x 2 daniel daniel 19746816 wrz 18 19:23 . drwxrwxr-x 4 daniel daniel     4096 wrz 17 13:21 ..    What is going on? Is there any cache in du command? Or after processing such many files there are any rest after these files? I deleted filed by unlink in perl5 script.  Update - answers to questions from comments  ls -aiR raw/all raw/all: 51647758 .  51647760 ..  lsof +L1    prints 44 lines but nothing connected with this catalog. But lsof gives something with numbers like 19746816.  lsof | grep raw bash      5355                daniel  cwd       DIR               8,17  19746816   51647758 /media/daniel/f2971ccd-4841-4da3-8ce3-d9f2cc03fc27/daniel/pro/scraper/raw/all lsof      5677                daniel  cwd       DIR               8,17  19746816   51647758 /media/daniel/f2971ccd-4841-4da3-8ce3-d9f2cc03fc27/daniel/pro/scraper/raw/all grep      5678                daniel  cwd       DIR               8,17  19746816   51647758 /media/daniel/f2971ccd-4841-4da3-8ce3-d9f2cc03fc27/daniel/pro/scraper/raw/all lsof      5679                daniel  cwd       DIR               8,17  19746816   51647758 /media/daniel/f2971ccd-4841-4da3-8ce3-d9f2cc03fc27/daniel/pro/scraper/raw/all   Laptop was rebooted. External drive was disconnected. But du still shows 19M.


TEMPLATE_NOT_FOUND When workflow is fired from Communties

In a partner community I have a button which users click to accept a request. On the click of this button I perform an update on a record, which then causes it to meet some workflow criteria. At this point a email alert should be fired. Unfortunately the email isn't received and I see the following error being thrown in the logs:        TEMPLATE_NOT_FOUND, The record couldn't be saved because it triggered an email alert that failed. Please contact salesforce.com Customer Support.   In the error it displays the template Id. The template it refers to is a Visualforce template which has previously been pushed across in a change set. This same workflow and email alert are working in a different environment. I have checked security and ensured that all the fields referenced in the template are accessible to the community user. Additionally I have checked that the data in the template is valid. If the email is triggered from the standard sf UI (e.g. I update a field, which causes the wf rule to be valid) the email alert and template work just fine. Can anyone shine a light on a solution for this?   EDIT Interestingly commenting out all the merge fields in the VF template allows the email to fire successfully.


Why does this C code work? (It shouldn't)

I am checking a student's homework. The assignment is to print the amount of English letters to the console. For some reason, what he did works (7th line):   int main(void)  {      char first = 'A';      char last = 'Z';      int amount = 0;       amount = ("%d - %d", last - first + 1);      printf("The amount of letters in the English alphabet is %d\n", amount);       return(0);  }   After seeing it, I tried putting other things in the brackets instead of "%d - %d". No matter what I put there and how many commas were there, it'd only take what's after the last comma (which is the correct sentence).  What is actually happening there?


osm2pgsql Ways importing very slowly in .pbf, much slower than .osm

I'm currently importing the planet-latest.osm.pbf file I downloaded from  some time last week. I'm importing it using the following command:   nohup osm2pgsql -l -U gis -c -v -r pbf --unlogged --drop -s data/planet-latest.osm.pbf &   My problem is that the ways are importing very slowly and based on current speed (0.04k/s) and the  it will take 86 days to import them all. By contrast the nodes imported at 151.3k/s. Even if I waited 86 days for the ways to import (I won't) I would then need to import the relations and sit through all the post-processing.  I recently imported another planet file in .osm format using the same command line arguments and, although it ultimately failed due to  it was moving along at a much faster speed.  From what I can see in the docs I've done everything I can to improve the import speed.  Can anyone tell me why the .pbf format import is moving so much slower over ways than the .osm format?  I'm using PostGIS 9.4 and osm2pgsql 0.88.1. Disks are on a fast SAN, the machine has a single Intel Xeon @ CPU 2.67GHz and 4GB memory. OS is Ubuntu 14.04 Server.


Is it possible to break the second law of thermodynamics regarding entropy?

The motivation behind my question is that it seems very unlikely that a chunk of metal would "randomly" reach escape velocity and fly away from the Earth, but it happens thanks to NASA and other space programs. If the second law of thermodynamics regarding entropy is statistical, can it be broken on a larger scale?


Is there a way to unlock screen programmatically?

I want to be able to unlock screen, or login to physical user while I'm connected with ssh connection. I know this might be unsafe etc. However that's ok for me at the moment. What options do I have to do this?


Is there a way to list a set of say, 30 random files from a directory using standard Linux commands? (in zsh)  The top answer described  does not work for me (sort does not recognize the option -R)


This comes from the world of video.  I'm shooting an event with 20-300mm zoom lenses on HD video cameras.  The cameras are physically 35 feet from the stage, given that information how tight of a shot (width x height) can I get given those numbers on a 6' person?


Someone please explain to me quotient rings

Specifically what does stuff like $\mathbb{Q}[x] / \langle x^{2} - 1\rangle$ generally means? I thought it meant the set of polynomials with rational coefficients divided by $x^{2} - 1$, but when I see stuff like $\mathbb{Z}[x]/\langle x^{2} + 1, 5\rangle$ I have no idea what it means. Also, how do you generally find what $R/I$ is isomorphic to?


Creating Top-Down Race Track From A List Of 2D Points

My final year project for university is based on the idea that a two-dimensional top-down multiplayer racing game can be made using Google Maps to dynamically generate race tracks. The idea is that the user would pick two points on a Google Map and then click a button that would generate a route between the two points.  I am able to extract the path from these points.      Now, I can't figure out how to actually transform this shape into a race track. I tried changing the stroke width, it messes up the details, like curves.  I want thicker strokes without losing details and the strokes overlapping each other so that the strokes look more like race tracks, because the camera would center the player's car and be zoomed in on it while following the car. Something like this:    Is there any way I can make the route shape into an actual race track? If so, how?


I have this android logcat's log:  "Could not find class android.app.Notification$Action$Builder, referenced from method b.a"   and I'm trying to apply a regular expression, in python, to extract android.app.Notification$Action$Builder and b.a.  I use this code:  regexp = '\'([\w\d\.\$\:\-\[\]\<\>]+).*\s([\w\d\.\$\:\-\[\]\<\>]+)' match = re.match(r'%s' % regexp, msg, re.M | re.I)   I tested the regular expression online and it works as expected, but it never matches in python. Someone can give me some suggestions?   Thanks


Find the slope of a line given a point and an angle

I'm trying to figure out this problem and feel like it's something that must be so simple that I could've done in high school no problem, but for some reason my brain is frozen this morning.  I would really appreciate any help, and want to say thanks in advance. I tried to draw a picture below; I want to find the slope of a line given a point $(x,y)$ and $\theta$.


Disable Ubuntu Update Manager's new version warning

How to disallow Ubuntu to upgrade from like 11.10 to 12.04?  I know that its your wish if you want to upgrade, but I don't want the message in update manager that says a new release is available to get displayed.  All help will be appreciated


Why does Lupin have his first transformation at Hogwarts?

In Harry Potter and the Prisoner of Azkeban, Lupin, the werewolf, has to take a potion every full moon to keep his inner wolf under control. It causes him to miss class. Now, the first time it happens (the students are told he is sick), it's stormy outside, so the clouds would be covering the moon.      " 'Sorry I'm late, Professor Lupin. I --' 　　But it wasn't Professor   Lupin who looked up at him from the teacher's desk; it was Snape.   　　'This lesson began ten minutes ago, Potter, so I think we'll make it   ten points from Gryffindor. Sit down.' "   　     " 'D'you know what that --' (he called Snape something that made   Hermione say 'Ron!') '-- is making me do? I've got to scrub out the   bedpans in the hospital wing. Without magic!' He was breathing deeply,   his fists clenched. 'Why couldn't Black have hidden in Snape's office,   eh? He could have finished him off for us!'  　　Harry woke extremely   early the next morning; so early that it was till dark. For a moment   he thought the roaring of the wind had woken him. Then he felt a cold   breeze on the back of his neck and sat bolt upright -- Peeves the   Poltergeist had been floating next to him, blowing hard in his ear."   So when Lupin was "sick" the first time, it was storming really hard outside, so the moon wouldn't have been visible. But, later in the book it says      "A cloud shifted. There were suddenly dim shadows on the ground. Their   party was bathed in moonlight. 　　Snape collided with Lupin, Pettigrew,   and Ron, who had stopped abruptly. Black froze. He flung out one arm   to make Harry and Hermione stop. 　　Harry could see Lupin's silhouette.   He had gone rigid. Then his limbs began to shake. 　　'Oh, my --"   Hermione gasped. "He didn't take his potion tonight! He's not safe!"   　　"Run," Black whispered. "Run. Now.' "   It says that "A cloud shifted. There were suddenly dim shadows on the ground. Their party was bathed in moonlight." and "Harry could see Lupin's silhouette. He had gone rigid. Then his limbs began to shake." Meaning that it's direct moonlight that causes the transformation. So why did Lupin transform the first time, if it was stormy outside?


How to fix NullPointerException, jsoup element

I was using Java Eclipse and imported jsoup package, in order to scrape from the Amazon website.  The program simply goes to a search page, see the number of results and if any changes make notifications on the left side of the screen and constantly reload pages with a timer. Well it was working well and after a while, it shows me an error constantly. Sometimes it executes properly.    I have tried to use if(select=!null), but it shows me an empty result.  This means that selector sometimes scrapes data sometimes gets nulls.       package main;         import java.awt.AWTException;        import java.awt.SystemTray;        import java.io.IOException;        import java.net.MalformedURLException;         import org.jsoup.Jsoup;        import org.jsoup.nodes.Document;        import org.jsoup.nodes.Element;        import org.jsoup.select.Elements;        import java.util.Timer;         import java.util.TimerTask;        class amazon1 extends TimerTask{                public static int result1;                public static int result2;                public static int result3;          public void run() {            try {             final Document doc =          Jsoup.connect("http://www.amazon.com/s?k=hello&i=stripbooks-intl-          ship&ref=nb_sb_noss")                     .userAgent("Mozilla/17.0")                     .get()                      ;       Elements select = doc.select("div.a-section.a-spacing-                small.a-spacing-top-small>span");             Element first = select.first();             String contentText = first.text();             amazon1.result1 =               Integer.parseInt(contentText.replaceAll("[\\D]",""));                 } catch (IOException e) {             // TODO Auto-generated catch block             e.printStackTrace();         }           //            if(amazon1.result1>amazon1.result2) {         System.out.println(amazon1.result1);         amazon1.result2 = amazon1.result1;         amazon1.result3 = amazon1.result1 - amazon1.result2;            if (SystemTray.isSupported()) {                 DisplayTrayIcon td = new DisplayTrayIcon();                 try {                     td.displayTray();                 } catch (MalformedURLException | AWTException e) {                     // TODO Auto-generated catch block                     e.printStackTrace();                 }             } else {                 System.err.println("System tray not supported!");             }          } else {          ;         }             }     }         public class Main {        public static void main(String[] args) throws IOException {           Timer timer = new Timer();              TimerTask task = new amazon1();              timer.schedule(task, 3000, 5000);         }         }   Error is..       Exception in thread "Timer-0" java.lang.NullPointerException    at main.amazon1.run(Main.java:31)    at java.util.TimerThread.mainLoop(Timer.java:555)    at java.util.TimerThread.run(Timer.java:505)   NullPointer exception comes from selecting class element. The output should be 11620000 and notification from the right side of the screen.


Can you determine an unknown value when it is combined with a known value and you are given the resulting hash?

Say I have a string that I want to keep hidden. You can then enter a known string which is added to the end of the hidden string and you are given the sha256 hash of the combined string. If you were to do this many times with whatever strings you wanted and the hidden string remained fixed, would there be a practical way to determine the hidden string?


Dual Boot problems (Win 8.1 and Ubuntu 13.10), Boot-repair didnt work

I have preinstalled Windows 8.1 and Ubuntu that I installed a week ago on my Laptop Lenovo E530. After my first installation of my Ubuntu 13.10 as Dual Boot, I could not to log in to Windows again, only Ubuntu.  Today I decided to fix this problem with Boot-repair. I used a bootable version of my Ubuntu on my USB to log in, then I downloaded the Boot-repair via Terminal. Then in Boot-repair I choosed the Recommended repair and followed all the instructions, including confirmation of the removing my Grub 2. After that, when I restart the computer, everything what I see now is black screen with error message:     error: file '/boot/grub/i386-pc/normal.mod' not found.      Entering rescue mode...       grub rescue>   Now I cant log in to any operating system. Probably the Grub doesn't load.  Can anyone help?


Passive voice expressed by means of the active voice

I wonder what the reason is to say These cakes sell well instead of These cakes are being sold well.   I understand that it’s shorter but it doesn’t work with any verb, does it? For example, The house is being built can’t be substituted by The house is building.  So, what justifies and makes it acceptable to compose such a sentence which we can see in the example with the verb sell? Does it have something to do with the verb used or something else? If so, are there many verbs which can be used that way?


Get image size already on DOM with jquery / javascript

With this code i can have the original size of the image:  var img = new Image(); img.onload = function() {   alert(this.width + 'x' + this.height); } img.src = 'something.jpg';   and what if i have all images loaded on DOM already, how can i get the same info!?  Thanks ;-)


Conflict with package newpxmath and \accentedoperators

Whenever I use the \accentedoperators command from spanish, babel, alongside the package newpxmath, the accents on math commands disappear. Not only that, dots on i's disappear as well.  \documentclass[11pt]{book} \usepackage[utf8]{inputenc} \usepackage[spanish.noindentfirst, %don't mind these, just playing with some options and solutions     %mexico,     %es-minimal,     %es-noindentfirst,     %mexico-com,     %es-sloppy, ]{babel} \accentedoperators \decimalpoint  \usepackage{newpxtext} \usepackage[varg]{newpxmath} %if you comment out this line, it works  \begin{document}  \chapter{}  These words should be accented: límite, gráfica, función.   Both of these should use a decimal point: $2.099$ and 2.099.  These words need to be accented: $\lim$, $\max$, $\min$. $$\lim f=\max g=\min h$$  Both of these should have angle quotes: "`John"', <<Juan>>.  \end{document}     This used to work until some time ago, I don't know exactly when it stopped.


Why is there a minus sign in this wave equation derivation?

My book on quantum mechanics suggests a derivation of the wave equation  $$\left(\Delta - \frac{1}{c^2} \frac{\partial^2}{\partial t^2} \right) \psi(\bar{r},t) = 0$$  from the photon energy-impulse relation  $$E^2 = c^2p^2$$  using the substitutions  $$\bar{p} \to -i\hbar \nabla$$ and $$E \to i \hbar \frac{\partial}{\partial t}$$  I suppose the $\hbar$s are there for the non-photon generalisation, but is there a reason for the minus sign in the $p$ substitution? Removing it would yield the same result.


Proving $b^a(1-b)^{1-a} \leq a^a(1-a)^{1-a}$ where $0 \leq b \leq a \leq 1$

I am trying to prove an inequality which boils down to the following: $$b^a(1-b)^{1-a} \leq a^a(1-a)^{1-a}$$ where $0 \leq b \leq a \leq 1$  Another equivalent formulation is: $$ a\log{b} + (1-a)\log{(1-b)} \leq a\log a + (1-a)\log (1-a)$$  How can I prove it?


Row space and column space of $A^T A$ and $A A^T$

Suppose we have a $n \times m$ rectangular matrix $A$ with row space $\text{row}(A)$ and column space $\text{col}(A)$.   What are the row spaces and the column spaces of $A^T A$ and $A A^T$?


How to transfer domain to a new Hosting provider while keeping emails on old Hosting provider?

So let's say I have a website hosted in Yahoo Small Business with the domain name of 'website.com' as well as emails associated with the domain name, for instance 'email@website.com'.  How would I move the domain name 'website.com' to a different host such as Bluehost, while still retaining the email services at Yahoo Small Business?


Is there a way I can get the shower arm to tighten in the 12 o'clock position?

I bought an extender arm for my shower head, but when it screws tight the arm doesn't end up in the 12 o'clock position. I've had some progress of tightened position with teflon tape, but it's not predicatable and loosens easy. Is there a better way?


Ubuntu 14.04 Wireless not working: no network interface. Atheros [168c:003e] device

I just installed Ubuntu 14.04.3 LTS after installing windows 10 in my new VN7-571G and the wireless is not working. It never had: even during the installation it was not recognized. I run a script to gather the data , which is . lspci -knn | grep Net -A2 output 03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:003e] (rev 20)         Subsystem: Lite-On Communications Inc Device [11ad:0804]  The OS behaves like it has no wifi card. I do not see wifi settings in network settings I'm not a linux power user, so I do not know what to do to solve the issue. What should I do to make it work?


Android x86 not showing data usage settings

I am using an android x86 project named prime os version 0.4.5beta and I'm trying to find the data usage settings but I can't find it, I have also used the other x86 project like lineage, bliss, and the stock android x86 but none of them show the option in the settings app and I would like to be able to control how my internet will consumed by apps. If somebody has a solution please tell me what to do to make the option available.


How to install the sims 3... starter pack?

I've just bought the same 3 starter pack but I don't know how to install it and I want to play the same from my heart. Somebody knows how?


Finder - search in specific subfolders across the whole drive

I am trying to find a way how to search in specific subfolders through the whole drive on my mac. I will try to explain what I need exactly;  I have a folder with images called "Photos", which includes subfolders; each of these subfolders has a date as a name and includes at least 2 another subfolders called ORIGINALS and EDITS. Images in "originals" and "edits" folder have matching names.  When I search using command+F in "Photos" folder, my results are duplicated and I want to be able to include only files from "edits" folder.  Is this possible to achieve?  Thanks


It is well known that you can make the font italic or bold using \textit{} or \textbf{}. However, if I have an italic or bold font, what command can I use to make it nonitalic or nonbold?


This question is a follow on from   I am trying to produce diagrams like those in the picture below. In particular, the top part of this style of diagram (above the word "everyone") I have tried to reproduce. I came up with this:  \documentclass[11pt]{beamer}     \usepackage{pgfpages,amsmath,amssymb,mathtools,color, graphicx, amsfonts, braket}     \usepackage{subfig}     \usetheme{Madrid}      \usepackage{empheq}     \usepackage{multicol}      \begin{document}      \begin{frame}  \[     \left(     \begin{array}{c|c}       A & B\\       \hline       A & B\\       \hline        C      \end{array}     \right)   \]  \end{frame}  \end{document}   However, as you can see, the letter C does not occur below the vertical line, and the vertical line extends too far. How can I rectify this?    Edit:  In response to comments below, I would say first that my question is worth asking, since the format of the particular diagrams I was asking about are somewhat different from the format of the diagrams  in . Moreover, it is not transparent for a beginner user of Latex, how one might adapt the information in that question to produce diagrams of the form I wish to produce.  In any case, even if that question is relevant to my question, I still have an additional problem, not mentioned in  below to my question. This was the suggestion that I use \multicolumn{2}{c}{C}. Doing this I managed to produce:  \documentclass[11pt]{beamer}     \usepackage{pgfpages,amsmath,amssymb,mathtools,color, graphicx,     amsfonts, braket}     \usepackage{subfig}     \usetheme{Madrid}      \usepackage{empheq}     \usepackage{multicol}      \begin{document}      \begin{frame}    \[     \begin{array}{clc}  A & B\\   \hline   A & B\\   \hline  \multicolumn{2}{c}{C}   \end{array} \]  \end{frame}  \end{document}   However, note that the vertical line of the diagram disappears. How can I insert the vertical line?


How to construct a convergent subsequence of $\sin(n)$

I know that $\sin(n)$ has a convergent subsequence, but is there any way to actually construct a convergent subsequence of this sequence, or does existence just follow from the Bolzano Weierstrass theorem, and a sequence cannot be constructed?


Given a real sequence $(a_n)_n$ converging to a finite value $a$, a property of the Cesàro mean, defined as the arithmetic mean  $$ b_n=\frac{a_1+\ldots+a_n}{n}, $$  is  $$ \lim_{n\to\infty}b_n=a,\tag1 $$  so that, supposing $a_n\neq0$ $\forall\,n$ and $a\neq0$, we can also deduce  $$ \lim_{n\to\infty}\frac{b_n}{a_n}=1.\tag2 $$  Is result $(2)$ also valid for $a=0$? And are results $(1)$ and/or $(2)$ also valid for $a=+\infty$?


$$f(x,y)=\frac{2x^2y}{x^4+y^2}$$  By applying conditions such as $x=0$ and $y$ tends to $0$, or $y=mx$ and $x$ tends to $0$, we get that the limit of this function at $(0,0)$ is $0$. But how to solve it using the given definition of limit of a multivariable function    Please help  P.S- This isn't a homework question.I am solving these questions out of my own interest. In the questions that I solved before this one, I was successfully able to apply the abovementioned definition of limits and arrive at the answer. But I am unable to do so here.


I want to know what will happen to the inequality in these cases  $a>x>b$ If $a$ and $b$ negative  When i square the both sides of it  Is it going to be  $b^2>x^2>a^2$  Ok but what would happen if  $a$ is a positive and $b$ is a negative number when i square ? EXAMPLE $2>x>-1$  another case  $2>x>-4$   i forgot  mentioning this case ?  If it is something like  $2>x>-2$


How to produce a table of contents for a journal giving both article title and author name?

I edit a small club journal which prints articles submitted by the members. Currently I'm using MS Word but want to change to ConTeXt. My desire is to have one file per article, with a master 'issue' file containing \input commands, one for each article.  I've created a custom command to standardise the appearance of the article title and author:  \JournalArticle{The Title of the Article}{Author Name}   and now I'd like to extend this to create a table of contents automatically. Currently I do the ToC by hand, producing a table similar to:  \starttable[|l|l|r] \HL \NC \bf Title \NC \bf Author \NC \bf Page \NC \FR \HL \NC The Title of the Article \NC John Doe      \NC 1 \NC\NR \NC Second Article           \NC Jack Daniels  \NC 2 \NC\NR \NC Third Article            \NC John Doe      \NC 2 \NC\LR \HL \stoptable   My problem is that I can't work out how to do this automatically.  I've looked at \defineregister et al but can't see how to store two values (title and name).  Alternatively I could use a buffer (since I don't need to sort the titles, just list them in the order they appear) but I can't see how to append to a buffer each time a new \JournalArticle is encountered.  Can someone point me to where this problem has been solved before, or suggest a solution please?


$|\mathrm{e}^{z}- \mathrm{e}^{w}| \leq |z-w|$ for $\{z \in \mathbb{C} : \mathrm{Re}z \leq 0 \}$

I'm looking at this pretty easy problem, but I need the final argument for the mean-value property that I'm looking for. The problem goes like this.     Prove that if $V = \{z \in \mathbb{C} : \mathrm{Re} z \leq 0 \}$, then   $$|\mathrm{e}^{z}- \mathrm{e}^{w}| \leq |z-w|$$ for $z,w \in V$.   So my idea is obviously to apply the mean-value theorem for $f(z) = \mathrm{e}^z$ and bound it by $$\left| \frac{f(z) - f(w)}{z-w}\right|\leq 1.$$ But how do I argue that $$\frac{f(z) - f(w)}{z-w} \leq f'(0)?$$ This would finish the problem immediately.


Feature request: Create a separate site for feature requests

The prominently displayed feature request tag on this site should be removed immediately. A Q&A site does NOT mix well with feature requests. A Q&A site correctly punishes duplicate questions because duplicate questions lower the quality of the site. But this mindset of seeking to shoot down duplicates is exactly the opposite of what is needed for consideration of feature requests. The latter is best served by an open and creative mindset that will consider the feature request on its own merits with intent of actually hearing the unmet need rather than seeking to punish the person providing feedback. Including the feature request tag on meta is a mistake. People who express their unmet needs via feature requests are likely to be punished for doing so by the duplicate eradication mindset. This punishing of good behavior harms Stack Exchange in 2 ways.  It creates a strong negative experience of the person reporting their unmet need. It robs Stack Exchange of the feedback it needs to keep innovating to better meet the needs of users.


What limits the maximum sustainable surface charge density of a sphere in space?

Suppose I charge a sphere and leave it in vacuum for 10 years. After that time, I want its surface charge density to be in the order of 10^5C/m^2. Would that be possible? Would it depend on the material used and how? Would adding or removing electrons make a difference (positively vs negatively charged)?


Python function that behaves differently depending on the input object types

In Python, can I write a function that takes objects as inputs and performs different calculations depending on the types of the objects?  For example, say I have two classes: "circle" and "line". I define a circle object A with a radius and centre position, and a circle object B with a different radius and centre position. I then define a line object C with a direction vector and a point along the line.  I would like to write a function that calculates the intersection:  def intersect(obj1,obj2):     # Returns intersection of two geometric entities   If I input the two circles A and B, I want the function to return the area of intersection of A and B. But if I input circle A and line C, I want the output to be the points (if any) where the line crosses the circle. So intersect(obj1,obj2) will need to somehow read the class of obj1 and obj2, and act accordingly.


How to show or hide Keyboard Viewer with a keyboard shortcut?

I would like to display and hide the Keyboard Viewer using a shortcut.   Is there a way to display the Keyboard Viewer via a keyboard shortcut? Is there a way to automatically display the Keyboard Viewer once I switch to a specific language?


Why this InputStreamReader throws an exception

When I compile this code in eclipse ,it throws a NullPointerException,but the code in the book is written in this way.Here is this code.   InputStream in = ClassLoader             .getSystemResourceAsStream("javagames/filesandres/Test1.txt");  try {             InputStreamReader reader =new InputStreamReader(in);             BufferedReader buf = new BufferedReader(reader);             String line = null;             while ((line = buf.readLine()) != null) {                 System.out.println(line);             }         } catch (IOException e) {             e.printStackTrace();         } finally {             try {                 in.close();             } catch (Exception e) {             }         }     }


Can spacetime be curved even in absence of any source?

Einstein's equation in absense of any source (i.e., $T_{ab}=0$) $$R_{ab}-\frac{1}{2}g_{ab}R=0$$ has the solution $$R_{ab}=0.$$ But I think $R_{ab}=0$ does not imply that all components of the Riemann-Christoffel curvature tensor $R^c_{dab}$ be zero (or does it?). From this can I conclude that spacetime can be curved even in absence of any source?


Consider the following two examples:    First:  var x = (function(){  return 786;  }());   Second:  var y = function(){  return 786;  }();   I know that we can't use function(){  return 786;  }(); directly as an anoomymus self calling function but now since I am assigining it to variable x I can use this function. So,     Is there any difference in result of the behaviour of variable x in First and Second method?


Can't overwrite an existing Azure SQL Managed Instance database during restore

We're working on migrating some SQL Server VMs to Azure SQL Managed Instances.  We did an initial backup/restore without a problem:  RESTORE DATABASE [xxx]      FROM URL = 'https://<account-name>.blob.core.windows.net/<container-name>/<filename>.bak'   After doing testing, we now need to do a fresh restore from our SQL VMs.  We started doing the same process we initially did but when restoring, we got an error:  Msg 1801, Level 16, State 1, Line 1 Database 'xxx' already exists. Choose a different database name. Msg 3013, Level 16, State 1, Line 1 RESTORE DATABASE is terminating abnormally.   So I tried the WITH REPLACE option.  Unfortunately:  Msg 41901, Level 16, State 2, Line 1 One or more of the options (replace) are not supported for this statement in SQL Database Managed Instance. Review the documentation for supported options.   Reviewing the documentation just tells me that WITH REPLACE isn't available on a Managed Instance.  I can't find any documentation on doing an in-place restore/overwrite of an existing managed instance database.  Am I forced to drop and re-create the database?


I was talking with some of my friends and we all had very different opinions on how long Rey was on the island with Luke. Is there a definitive answer anywhere, or context in the film that I may have missed that hints to how long this training is? Even though it runs parallel to some scenes with the resistance, it seems likely that Rey was on the island before those scenes started, since we see them sleep multiple times while the resistance scenes appear to be much faster.


So I have a home server with 4 hdds:  hdd1: 60Gb (SSD - OS drive) hdd2: 4TB  (data drive) hdd3: 2TB  (data drive) hdd4: 1TB  (data drive)      So I intend installing ubuntu server onto hdd1 (ssd drive) with other drives simply being a data drives. So now I'm thinking about partitioning those data drives....  Do I even need to partition data drives? Can I just format them to ext4 and mount them?    Is partitioning always needed?


Why is it necessary to call rewind_posts() when using the loop more than once?

The  is meant to be used when the loop is going to be called more than once in a page with the same query.  If I call the same loop a second time in the page the result is the same as calling the rewind_posts function just before.   Why is it necessary? Is rewind_posts not calling again the content in the database (cache it somehow) while using the second loop, without using rewind_posts, is?


Finding how many times a given package has been installed

Is there any way to see how many times a package in the repos (say, firefox) has been installed?