There are a number of possibilities to have multiline equations, but I am looking for multiline \text{...} elements.  For example:  \documentclass{article} \usepackage{amsmath} \begin{document}  \begin{equation}   a^3 + b^3 \neq c^3 \text{ I have discovered a truly marvelous proof of this,\\which this margin is too narrow to contain.} \end{equation}  \end{document}   Is there a way to break that long text into two lines? The \\ does not work here.


Setting tag number according to sections

Question:     How does one set the tags numbering according to the related section or subsection? E.g. If it is the section 3.4 I would like to be able to label an equation as    \documentclass{article} \usepackage{amsmath, amsfonts, amssymb}  \begin{document} $$(s_1 \circ \varphi^{-1}_1)^*\boldsymbol \omega =\mathrm{Im} \left(\frac{\bar q}{1+|q|^2}dq\right) \tag{3.4.1} $$ \end{document}   Unfortunately I haven't been able to do so yet, and I would like to know if it is possible. If so, could anyone show how?


I have a Windows 7 machine with Truecrypt. I installed Ubuntu 12.04 with the intention of converting to an Ubuntu only machine but I can't install Truecrypt on Ubuntu.   I have been looking through the forums and have followed all advice to the letter and still Truecrypt doesn't work; I have only a non-functional icon in "dash". Should I uninstall Ubuntu and start over (ie reinstall)? I love Ubuntu and greatly appreciate your efforts on this forum.


How to run a process and find how much memory it uses?

I regularly use time to find out how long a process takes. Is there an equivalent command for memory? The usual ways to find out how much memory a process takes (ps,/proc/meminfo, etc.) work fine for a long-running process, but I don't know of anything that works like time does, for a command run from the command line. I'm imaging something like "size", except that includes the stack and heap:  % mem python myscript.py    text    data    heap  3135006  570928  115528


How do i restart my linux server in every 2 days via crontab?

I have a Linux server containing the os version below:  Linux 2.6.32-220.7.1.el6.x86_64  I want to restart it in every 2 days, please help me, I want to do it via crontab.  Another help,  I used a code below to drop my memory caches in every hour.   0 * * * * /root/clearcache.sh  #!/bin/sh sync; echo 3 > /proc/sys/vm/drop_caches   But 1st 15 in every hour my server remain so slow after cleaning the caches. My sites do not load during every hour in 1st 15 minutes.  In another way if I restart my server then also caches are removed. So I decided to restart my server in every 2 days to drop my caches.  Will it be helpful to restart? Or is there any other way to drop my memory caches that will not down my server?


How do I overlay a photo of a face over a character on a video?

I downloaded an 80s cartoon intro (Jem and the Holograms; traditional cel animation) and I want to animate cutout photos of various family members' faces overtop the cartoon faces. Bonus points if I can apply some "worn out VHS tape" effect to the photo faces. Time permitting, I might even like to add some Terry Gilliam cutout jaw movement.  If I set up tracker points for the cartoon characters' eyes in the Movie Clip Editor, how do I get the photo face to follow these points, such that closely spaced markers indicate the photo face should be smaller/further away and vice versa, or approximate the head tilt like the popular "Elf Yourself" Christmas videos that were hot a few years ago? This seems doubly difficult since the cel animation has a lot of quick cuts and scene changes.


When I'm trying to update ubuntu 19.10 to 20.04 I get an error

When upgrading Ubuntu 19.10 to 20.04, I get these three errors:  w: updating from such a repository can't be done securely, and is therefore disabled by default.  w: see apt-secure(8) manpage for repository creation and user configuration details. e: the repository 'http://in.archive.ubuntu.com/ubuntu disco-updates release' no longer has a release file.   How can I fix these errors?


Allow line break, but without inserting a dash

I have a sentence that contains a number of long dataset names. I would like to allow LaTeX to break these names at certain positions that I would like to specify somehow just like I can use \- to allow a word break with hyphenation. But: I would like LaTeX not to insert a dash (which could be mistaken as belonging to the dataset name). How can I do this?   (Something similar is realized in the url package so I guess I could just read that code :) I would not like to use the url package here to be able to make a syntactical (and typographic) difference between urls and datset names.)


The below code is for validating email. I am getting false for inputs like,   mike@gmail.com  kid@gmail.com  stain@yahoo.com   Can someone point what mistake in the code?         function validate(){     fieldValue = document.getElementById("check").value;     pattern = new RegExp(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/);            if(pattern.test(fieldValue)){         alert("true");     } else {         alert("false");     }        }     Thanks


The problem can be reproduced as follows:   When I remove the password of an administrator account, "Log In without Password", I cannot use that account to authenticate. When I do something that requires authentication, I cannot use an admin without a password to authenticate. If I leave the password box blank without a password while choosing a non-password admin, authentication fails (in terminal or in GUI).   How to fix this problem?


Why were Wolverine’s metal blades shaped differently than his bone claws?

In X-Men Origins: Wolverine, he had ugly bones coming out of his hands. Assuming adamantium replaced his skeleton, the adamantium should have taken their shape, instead of being nicely-shaped blades.  So was there a different explanation for Wolverine's claws or is it just so?


I bought an SSD and I am going to set up my desktop system with a completely fresh Linux installation. SSDs are known to be fast, but they have a disadvantage: The number of writes (per block?) is limited. So I am thinking about which data should be located at the SSD and which at the HDD drive. Generally I thought that data that changes frequently should be placed on the HDD and data that doesn't change frequently can be put on the SSD.  Now I read  question, with a similar scenario. In the answers there is written: "SSD drives are ideally suited for swap space..." Why are SSDs ideally suited for swap space? OK, I see high potential for raising the system's performance, but doesn't swap data change frequently and hence there would be many writes on the SSD resulting in a short SSD lifetime?  And what about the /var directory? Doesn't its contents change frequently, too? Wouldn't it be a good idea to put it on the HDD?  Is there any other data that should not be located on an SSD?


Did the Death Eaters Know Voldemort Was a Half-Blood?

Canon seems to conflict a bit on whether Voldemort's Death Eaters knew that Voldemort was a half-blood. In Half-Blood Prince, Tom Riddle refers negatively to his parentage and it reads as if his fellow Slytherins found it amusing in a derisive way, even though Salazar Slytherin was the ancestor of Tom Riddle (HBP - chapter 23 - Horcruxes). In Order of the Phoenix, during the fight in the Department of Mysteries, Harry taunts Bellatrix Lestrange and Lucius Malfoy with the fact that Voldemort is a half-blood, which seems to enrage Bellatrix in particular (OOTP - chapter 35 - Beyond the Veil).   Did the Death Eaters actually know Voldemort was a half-blood?  I would prefer a canon-based answer. JKR and Pottermore are fine.


How can I get the 10th previous line from a match? I think using grep with the option B and then piping it into head would work, but is there a simpler way to do this?  For example, if I had a text file like this  a b c d e f g h i j k l m   and if I chose the pattern to be "l", I'll get the 10th previous line, which is "b".


Is it good ideo seo point of view- to give noindex or nofollow to labels and tags?

Is it a good idea seo point of view to give noindex or nofollow  to labels and tags?  I am creating a blog with tagging post. What is the best strategy for tag pages?


How do I make partially shaded nodes with tikz without hardcoding coordinates?  A plain MWE is as follows:  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[mynode/.style={circle,draw=black,minimum size=10mm}]      \filldraw[fill=gray!25] (-3.5mm,-3.5mm) arc [start angle=225, end angle=405, radius=5mm];     \node at (0,0) [mynode] {\Large $x$};  \end{tikzpicture} \end{document} \end{tikzpicture}   This works, but I had to compute the coordinates of the shaded arc, and is very tedious when I have to work with a large number of nodes. Is there a way to do this automatically?  I have other code that uses , so if the solution can build on top of that it would be even better.


Why use anonymous types instead of creating a class

I am refactoring an older application, it was using dynamic in-line SQL, pulling data from a large Oracle database.  I created a stored procedure (PL/SQL) which works fine.  Since it is only one row (datarow) I left it returning a datarow.  This class resides in the DAL.    As I am refactoring things I thought I would isolate the database (in the DAL) from the business layer (use linQ). My first thought was create an object to contain the returned datarow.    One of my coworkers recommended Anonymous types, which I am not familiar with.  In the reading I've done so far it looks simple enough.  I just don't see the value in it if I have still have to put the fieldnames and field types using the anonymous types.    Am I missing something?  Would there be more value to using Anonymous types if I was returning a dataset/datatable?


How to move files out of subdirectories with given extension recursively to a destination-folder?

I want to move all the *.txt files from all the subdirectories located in a given directory to one destination-directory.  When doing it as below, it moves EVERY file - how can I reduce it to all the *.txt files only?  find -type f -print0|xargs -0r mv -it "/path to my folder/destination-directory"


Reputation not appearing in Rep. Notification Queue - yet it is given silently

I  and while on other sites I did not get a 'Reputation Notification' to explain that I was given 2 upvotes for my answer - yet if I manually check my Profile here at meta.SE my total Reputation is in agreement with the amount there.  I'm not knowledgeable about the intercommunication between the servers and sites but I would explain it this way: Super User either failed to send or other sites failed to receive the message the I had a reputation update on Super User.  I should have received either two green star trophies (🏆) of 10 reputation each or one of 20; depending on when I returned to one of the Stack Exchange / Stack Overflow / Super User / etc. sites.  Here's a screenshot showing no reputation change notification for Super User:    Here's a screenshot of my Profile over at Super User showing that I was silently credited:    I'm bringing this up on Meta.SE in case the communication is broken between more sites than just Super User and everywhere else.


I have this code  inside my comments.php :   <?php  // If CPT and not logged in, display a message:  if ( 'CPT' == get_post_type() && ! is_user_logged_in() ) {  echo '
You must be logged in to post a comment.' . '
';   echo do_shortcode("[upme_login]");   }  ?>   and this code :      <?php  // Don't output the comment form if CPT and user isn't logged in    if ( 'CPT' != get_post_type() || ! array_key_exists( 'comments', $wp_query->query_vars ) ) {   comment_form();  }   ?>   When the user is not logged in it should display a message like  You must be logged in.... which is doing, but I see the comment form also which normally I shouldn't see it.   If I remove this || ! array_key_exists( 'comments', $wp_query->query_vars ) everything is working as expected.   How can I do  to make it visible if the user is logged in?  What is wrong?


c++; ld: symbol(s) not found for architecture x86_64, generic class

Shortly: I have problem Undefined symbols for architecture x86_64. In details: I've build simple project to show my problem. //test.h template <class T> class Test {     public:     Test(T t); };  //test.cpp #include "test.h"  template <class T> Test<T>::Test(T t) {}  //test_main.cpp #include "test.h"  int main(int argc, char **argv) {     int param = 0;     Test<int> test(param); }  After all - I have this error (compile with -std=c++11):  Undefined symbols for architecture x86_64: "Test<int>::Test(int)", referenced from: _main in test_main.o ld: symbol(s) not found for architecture x86_64  Also it's clear if I delete template and change everything to int - I'm fine. But I would really like to understand what is the correct way to call function from a class with a template. I know that there are some questions like this already around but actual reason why this problem happens - I didn't find. So please help me to understand! Some link to documentation with reason why what I'm writing is wrong would be very welcome! Thank you! Edit: this question is answered


Draw ellipses with different coloring for their intersection in tikz?

How do I color intersection of two ellipses in different color. For instances, the ellipses should themselves be colored as yellow and their intersection as red. My code for drawing ellipses is given below  \draw (-4,0) ellipse (8 and 3); \draw (8,0) ellipse (8 and 3);   UPDATE: In the comments to individual answers, I have requested to show it for three ellipses.


Is the MSE of a vector a scalar or a matrix?

Suppose $Y = X\beta + \epsilon,$ where $Y$ is $n \times 1$, $X$ is $n \times p$, and $\beta$ is $p \times 1$, and $\epsilon$ is $n \times 1$ with mean 0 and variance $\sigma^2$. The OLS estimator of $\beta$ is $\hat{\beta} = (X^TX)^{-1}X^TY$. Let $\hat{Y} = X\hat{\beta}$, then $\hat{Y} = X(X^TX)^{-1}X^TY$. My question is, what is the MSE of $\hat{Y}$? Is it $\operatorname{MSE}(\hat{Y}) = \operatorname{E} \left [\left(\hat{Y}-X\beta\right)\left(\hat{Y}-X\beta\right)^T \right] $ or $\operatorname{MSE}(\hat{Y}) = \operatorname{E} \left [\left(\hat{Y}-X\beta\right)^T\left(\hat{Y}-X\beta\right) \right]$? The former has dimension $n \times n$, and the latter has dimension $1 \times 1$.


Is it okay to use my US visa after a name change?

I had my US visa about 7 month age, and I had to renew my passport for certain circumstances, so there was a mismatch in the name between both the visa and the new passport, you see they had to put my grand grandfather's name which was not on the old passport nor the visa, the name on old passport and visa is: Abdelrahman Samy Ali Mohammed and the new passport is: Abdelrahman Samy Ali Ibrahim Mohammed. My grand grandfather's name is Ibrahim, so the question is that gonna cause me any troubles concerning my entry to the US? is there any document should I consider taking it while i'm traveling?  Thanks,,


Can anyone tell me the difference between      Here We Are   And     We Are Here


I have read many articles about roc curve and how it works. But im still confused. Can someone please explain me what the points 5, 7, 9 means in the picture below?


I have a string that looks like KATIE+DAMAN-SUZANNE+DANIELS How do I replace both + signs? I tried the following which does not work. string.replace(/+/g, ' ');


Transparent web icons on dark backgrounds have white outline and look low quality

I usually make my images transparent using an internet online tool like LunaPic (Images like member ranks, buttons etc.)   The thing is that on light backgrounds they are looking fine but on dark ones (like black) they're not looking sharp.  Example on light gray background:    Example on dark background:    I don't have Photoshop.   Is there something I can do to fix it?


Is there any direct relation among first, third, fourth order moments?

Suppose that $X$ is a real-valued random variable, with $EX^4=1$ and $EX\leq0$. Find an explicit constant $c<1$ such that $EX^3<c$.


Find the correlation coefficient $\rho_g$ of $(G(x), H(y))$ where $G(x),H(y)$ are marginal  C.D.Fs of $X,Y$ and $X,Y$ follow  bivariate normal distribution $\text{B.N.}(\mu_1,\mu_2,\sigma_1,\sigma_2,\rho)$. I am finding it difficult to calculate $E(G(x)H(y))$, otherwise I can find all the other terms. Please help! The answer given is $\frac{6}{\pi} \arcsin{\frac{\rho}{2}}$


How do I remove one's self from a community?

NOTICE: This is NOT a duplicate!! The title is REMOVE not DELETE. The UNJOIN feature is what I was after. Please read the full post. I hope this clarifies the difference.  How do I remove myself from a community? I don't recall how I joined one perhaps an accidental mouse click. But I would like to know how to 'unjoin' a Stack Exchange community.  To clarify, this is NOT an account delete request, only to 'UNJOIN' a community or two.  UPDATE: There needs to be clarification about the DELETE and UNJOIN. I found the DELETE postings and wanted to be clear in this post that I DO NOT want to DELETE, only UNJOIN.   Go ahead and delete this message as I did not intend to duplicate the other questions that ambiguously mix DELETE with UNJOIN.


Is it posible to change the locale of my device?

In my Android phone when I go to Settings -> Language and Keyboard Settings -> Select Language I see "Locale" as the title on the top row and see that only few languages are listed. I suspect its because of this "Locale" setting.  Where I can change it so that all supported languages will be listed? Under Settings -> Language & Keyboard I don't see a "Locale" option.


Why could Ronald Weasley use Charlie's old wand?

In the first book of Harry Potter it is said that Ron had to use his brother's wand.   Why and how was that possible? Doesn't the "wand choose the wizard"? Isn't Charlie without a proper wand now?    Here is a quote from -     The first wand of Ronald Weasley was 12" ash with a core of unicorn   hair that stuck out at the end of the wand. It originally belonged to   his older brother Charlie.


Are there infinitely many primes of the form $6^{2n}+1$ or only finitely many?

Does anyone know whether there are only finitely many of primes of the form $6^{2n}+1$, where $n$ zero or any natural number?


Why not always present logistic regression estimates in the response scale (probablity)?

There's a lot of discussion in epidemiology around the relative merits of odds ratios vs risk ratios. Proponents of the former cite the mathematical qualities of odds (not constrained to be between 0 and 1) and their suitability for examining common outcomes. Proponents of the latter believe that RR's are often more interpretable, and match how clinicians and the public tend to think. Some have suggested methods to model risk ratios directly (in multivariable models). For instance, the log binomial model and poisson regression with robust standard errors. What I don't understand is - why don't we just fit the model using standard logistic regression and perform the inverse logit transformation on the fitted estimates? For instance, lets say we are trying to predict coronary heart disease using BMI (exposure) and age (confounder). We could fit the model and estimate the odds of CHD across the range of values of BMI (adjusted for age), according to the model. We then take the inverse-logit of those fitted odds to transform them onto the probability scale. Seemingly this way we now have an idea of the risk of the outcome across all values of the exposure, which we can plot or otherwise describe. But i've never seen this method recommended. Which makes me think there must be a conceptual issue with it?? p.s. lets assume we are performing a cross-sectional or cohort study (not a case-control study).


solve the following equation :  $$3^x +4^x = 5^x \text{ in } \Bbb R$$  the trivial answer is $x=2$ .


limit at infinity quotient by x privided given function uniformly continuous

Suppose $f(x)$ is real valued uniformly  continuous function on $ \mathbb R$. Is it true that limit of $f(x)/x$ exists as x tends to infinity and minus infinity?


How do I break a large file into smaller files?  And how can I send the part files on multiple computers through pssh  And how do I get those files back into the client computer and reassemble them as the original file?


I need help with a dynamic pivot query. I would like to modify the column name (alias) but I can't get it done in the pivot. Please help. The query itself works perfectly but the username contains the domain\username format. I am trying to drop the "domain\" portion. I cannot control what is in or inserted in the database nor can I make any structure changes. I have tried "replace(x,'domain\','') but again, I can't get it to work in the pivot.  Here is what I have data table:  requestID dateClosed              closedby --------- ----------------------- ----------- 1         2016-06-12 10:34:09.000 DOMAIN\Joe 2         2016-06-12 23:35:09.000 DOMAIN\Bill 3         2016-06-12 08:02:09.000 DOMAIN\Matt 4         2016-06-13 21:46:09.000 DOMAIN\Joe 5         2016-06-13 17:34:09.000 DOMAIN\Bill 6         2016-06-14 16:39:09.000 DOMAIN\Matt 7         2016-06-14 12:38:09.000 DOMAIN\Joe 8         2016-06-14 12:37:09.000 DOMAIN\Bill 9         2016-06-15 11:36:09.000 DOMAIN\Matt 10        2016-06-16 10:35:09.000 DOMAIN\Joe 11        2016-06-13 10:35:09.000 DOMAIN\Bill 12        2016-06-15 21:46:09.000 DOMAIN\Joe 13        2016-06-15 21:47:09.000 DOMAIN\Joe 14        2016-06-15 21:48:09.000 DOMAIN\Joe   Here is my ouput after PIVOT  date                    DOMAIN\Bill DOMAIN\Joe  DOMAIN\Matt ----------------------- ----------- ----------- ----------- 2016-06-12 00:00:00.000 1           1           1 2016-06-13 00:00:00.000 2           1           0 2016-06-14 00:00:00.000 1           1           1 2016-06-15 00:00:00.000 0           3           1 2016-06-16 00:00:00.000 0           1           0   I need to remove the "Domain\" portion from the column alias. Replace() didn't work for me. SQl v2012  Here is my query  --dynamic pivot declare @cols as nvarchar(max),     @query as nvarchar(max)  set @colS = STUFF((SELECT DISTINCT ',' + QUOTENAME(r.closedby)     from MYRequests r     where r.dateclosed > getdate()-30     for XML path(''), type     ).value('.','NVARCHAR(MAX)'),1,1,'')  SET @QUERY = 'select * from (     select      DateAdd(Day, DateDiff(Day, 0, dateclosed), 0) as [date],     closedby     from MyRequests     where DateAdd(Day, DateDiff(Day, 0, dateclosed), 0) > getdate()-30     )     as s PIVOT     (count(closedby) for [closedby] in       ('+ @cols + '))     as PVT '  execute(@query)   Here is sample filler data:  create table MYRequests     ([requestID] smallint,     [dateClosed] datetime,     [closedby] varchar(50));  Insert into MyRequests     ([requestID], [dateclosed], [closedby]) values     (1,'20160612 10:34:09 AM','DOMAIN\Joe'),     (2,'20160612 11:35:09 PM','DOMAIN\Bill'),     (3,'20160612 08:02:09 AM','DOMAIN\Matt'),     (4,'20160613 09:46:09 PM','DOMAIN\Joe'),     (5,'20160613 05:34:09 PM','DOMAIN\Bill'),     (6,'20160614 04:39:09 PM','DOMAIN\Matt'),     (7,'20160614 12:38:09 PM','DOMAIN\Joe'),     (8,'20160614 12:37:09 PM','DOMAIN\Bill'),     (9,'20160615 11:36:09 AM','DOMAIN\Matt'),     (10,'20160616 10:35:09 AM','DOMAIN\Joe'),     (11,'20160613 10:35:09 AM','DOMAIN\Bill'),     (12,'20160615 09:46:09 PM','DOMAIN\Joe'),     (13,'20160615 09:47:09 PM','DOMAIN\Joe'),     (14,'20160615 09:48:09 PM','DOMAIN\Joe')      select * from myrequests   Please help.


Not able to calculate distance(between two coordinates, dont consider the Travelmode like cycling,driving) in Map v3 API

I want the exact geographical distance between two address and it differs inthe Travelling mode in v3. please find the below code and the API file I called was  script type='text/javascript' src='//maps.googleapis.com/maps/api/js?key=xxxxxxxxxxx'  function showLocation(a,b)     {        alert(a.value);     geocoder = new google.maps.Geocoder();     geocoder.geocode(document.forms[0].address.value, function (response) {          if (!response || response.Status.code != 200)         {             alert("Sorry, we were unable to geocode the first address");         }         else         {              location1 = {lat: response.Placemark[0].Point.coordinates[1], lon: response.Placemark[0].Point.coordinates[0], address: response.Placemark[0].address};             geocoder.getLocations(a.value, function (response) {                 if (!response || response.Status.code != 200)                 {                     alert("Sorry, we were unable to geocode the second address");                 }                 else                 {                 location2= {lat: response.Placemark[0].Point.coordinates[1], lon: response.Placemark[0].Point.coordinates[0], address: response.Placemark[0].address};                 var x=calculateDistance();                  b.value = x;                         }         });     } });}  function calculateDistance(){ try {     var glatlng1 = new GLatLng(location1.lat, location1.lon);     var glatlng2 = new GLatLng(location2.lat, location2.lon);     var miledistance = glatlng1.distanceFrom(glatlng2, 3959).toFixed(2);     return miledistance; } catch (error) {      alert(error); }}


How can I install jdk-8u91-linux-x64.tar.gz on Ubuntu?

I downloaded jdk-8u91-linux-x64.tar.gz from the Oracle website.  How can I install jdk-8u91-linux-x64.tar.gz?  I have tried apt-get install jdk-8u91-linux-x64.tar.gz and also  sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer


System.InvalidOperationException: 'Cross-thread operation not valid: Control 'label2' accessed from a thread other than the thread it was created on.'

I'm currently trying to create a separate thread that will display a Server Message but I get thrown an error, saying I'm using the wrong thread for label 2.  My code looks like this  Thread MOTD = new Thread(() =>     {         System.Net.WebClient wc = new System.Net.WebClient();         // Use webclient to download webpage from target URL         byte[] raw = wc.DownloadData("https://targaryentech.com/Backend/test.txt");         // Convert to string         string webData = System.Text.Encoding.UTF8.GetString(raw);         // String to MessageBox         label2.Text = webData;      }); MOTD.Start();


For making a small quiz in class I am working on a presentation in beamer.  I want to change the color of statements to red (wrong statement) or green (right statement) but only after my class answered the question.  I was searching the internet, but only found the color package, where you apparently can only change the text color before it appears.  Can someone point me into the right direction?


Getting a List from an integer which modulo result is equal to 0 without using loop

I have an input called divisibleBy which is an integer. I want to get all the possible numbers that it is divisible with except itself.   For example:  var divisibleBy = 16;   the output should be "2,4,8". "16" was not included because it is equal to itself. Now i want it to be a list but without using for loop. It could be using a LINQ or whats your recommended. since there is a possibility that the divisbleBy can be greater than 1000 so looping would cause performance issue.  heres my current code using loop  var list = new List<int>(); for (var cols = divisibleBy - 1; cols > 0; cols--) {     if (divisibleBy % cols != 0) continue;      list.Add(cols); }


My Android device will not show up on my Ubuntu PC

When I hooked my Android phone up to my PC with Windows 7, I could go into Computer and find my device.   How do I find my device on Ubuntu 12.04, so I can import my pictures and music?


Run a Bash script to set up iptables at startup

I'm using Ubuntu 16.04 Server.   I want to use a Bash script for iptables at startup, but I dont wanna use crontab or init.d. Is there any possible way to achieve this without them?  #!/bin/bash IPT="/sbin/iptables" $IPT --flush $IPT --delete-chain $IPT -P INPUT DROP $IPT -P FORWARD DROP $IPT -P OUTPUT ACCEPT $IPT -A INPUT -i lo -j ACCEPT $IPT -A OUTPUT -o lo -j ACCEPT $IPT -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT*


In the United States we have a saying, "your mileage may vary", which means "your experience may be different".  In English-speaking countries that don't use Imperial miles, is there an equivalent expression?


I want to get the MD5 Hash of a string value in SQL Server 2005. I do this with the following command:  SELECT HashBytes('MD5', 'HelloWorld')   However, this returns a VarBinary instead of a VarChar value. If I attempt to convert 0x68E109F0F40CA72A15E05CC22786F8E6 into a VarChar I get há ðô§*à\Â'†øæ instead of 68E109F0F40CA72A15E05CC22786F8E6.  Is there any SQL-based solution?


Does this proof that every open set in a metric space is a union of open balls use the axiom of choice?

I am reading "A Course in Analysis vol.3" by Kazuo Matsuzaka.    There is the following proposition in this book.    Does the author use the axiom of choice in the proof?    Proposition 4:       A subset $A$ of a metric space $X$ is open in $X$ if and only if $A$ is a union of open balls in $X$.     Proof:       An open ball is open, so a union of open balls is open. Conversely, if $A$ is open and $a \in A$, then there exists a positive real number $r(a)$ such that $B(a ; r(a)) \subset A$. Obviously $$A = \bigcup_{a \in A} B(a ; r(a))$$ holds.     I think the author's proof uses the axiom of choice as follows:    Let $S_a := \{x \in \mathbb{R} | x > 0, B(a ; x) \subset A\}$. Since $A$ is open, for any $a \in A$, $S_a \ne \emptyset$. So, by the axiom of choice, there exists a mapping $r$ from $A$ to $\bigcup_{a \in A} S_a$ such that $r(a) \in S_a$.


19 months and no decision: At what point should I withdraw my paper?

I submitted a mathematical paper to a good journal specialized in geometry and topology. By good I mean that there is no doubt whatsoever about its scientific standing (e.g. Scimago places it consistently in the first quartile within its subject category). Now, the problem is that I submitted the paper more than 19 months ago, and yet I have not received any feedback. The journal does not use an online submission system, so to inquire about the status of the submission I need to send an email to the journal's email address. Approximately six months ago I was informed, upon request, that both referee reports had been received, and that the paper was pending the handling editor's decision. Last week I emailed the journal again (putting the Editor-in-chief on copy) and asked again for news. I was informed that the status has not changed. I am wondering how long more I should keep waiting before withdrawing the paper. I do not want to withdraw it, knowing that a decision might be close, but at the same time I am getting really frustrated. What would you do in this situation?


Excel NORM.DIST() calculation for a specific value of x (CUMULATIVE = FALSE)?

We know that the value of PDF at a specific time (X = x) is 0 due to the nature of a distribution of a continuous variable. However, I noticed that when I plug in some test numbers in NORM.DIST() in Excel with CUM = FALSE, it still gives a significant, non-zero answer. =EXPON.DIST(15,1/20,FALSE) O/P: 0.023618328  I looked up Microsoft's documentation to see if their formula has any continuity correction factor added (like, for above example, X=15 +/- 0.05) but that doesn't seem to be the case. Can someone explain why this is the answer and not 0?


I have an Acer ES1-524 (2 core @ 2 GHz, 4 GB RAM, 500 GB HDD) pre-installed with Windows 10. I'm using it to learn programming but recently while using it with VSCode and a few Chrome tabs opened (I would say about 10 to 15 tabs), switching between applications takes a long time.    Which Ubuntu flavor would you recommend that's beginner friendly, works on a low-spec laptop, and usable in programming?    TL;DR     No Linux experience   Looking for an Ubuntu flavor because of the size of the   Must be beginner friendly   Must be low-spec friendly   Must be able to handle VSCode with about 15 Chrome tabs opened


I'm having an issue with getting Ubuntu 14.04 to load into the GUI after installation.  I get through the installation with no problems, the computer boots up and the Ubuntu logo appears on the screen.  I get to the login screen, but after that I just get dots on the screen.  Could someone help me out on this issue?  I have tried doing the full installation 3 times with the same result.


re.findall() sometimes returning all sometimes returning last

This returns only the last occurrence in data  re.findall('data-hovercard-id="[\w\W]*"><span>([\w\W]*)</span></a',data)   Whereas this returns all occurrences in the data  re.findall('class="business-attribute[\s]price-range">([\W]*)</',data)   I can't share the data for privacy reasons, but this is scraping and old static html of yelp. Not sure if the structure is still the same.  Any ideas? I'm trying to get all occurrences for both


Just started doing some of Blender Tutorials and was wondering why things are slowing down. Not things like pan and orbit, they're fine . But moving booleans around is painfully slow. Like when you try to reposition them to change the effect. This is not a complex model. I have a  newer Dell laptop Core i9-10980 2.4 GHz Nvidia Gforce RTX 2070 Super and 32 gb of ram. I thought this would be more than sufficient to handle the software. I was on the phone with Dell and they checked everything out and there was no difference running Blender afterward. Is there something in the preferences that I need to set?


Refusal of Schengen visa (Netherlands short stay French embassy)

How can we appeal successfully after refusal? We have 2 refusals from the same French embassy. The only reason for refusal was, "Not sure the applicant will leave the country on time."


Consider the following example using the angles library and a pic path to mark an angle:  \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{angles,decorations.markings}  \begin{document}  \begin{tikzpicture}[   >=latex,   decoration={   markings,   mark= at position 0.5 with     {       \arrow{<}     }   } ]  \draw    (2,1) coordinate (A) node[label={right:$A$}] {} --   (0,0) coordinate (B) node[label={left:$B$}] {} --   (2,-1) coordinate (C) node[label={right:$C$}] {}   pic[->,draw=red,angle radius=1cm] {angle={C--B--A}};  \draw[<-] (3,1) -- (3,-1);     % The problem is here; pic doesn't seem to obey the decoration \begin{scope}[yshift=-3cm] \draw    (2,1) coordinate (A) node[label={right:$A$}] {} --   (0,0) coordinate (B) node[label={left:$B$}] {} --   (2,-1) coordinate (C) node[label={right:$C$}] {}   pic[draw=red,angle radius=1cm,postaction=decorate] {angle={C--B--A}}; \draw[postaction=decorate] (3,1) -- (3,-1);    \end{scope}  \end{tikzpicture}  \end{document}   The result is:    The image on top shows an angle marked using a red arc with an arrow in one end; in the image on the bottom I tried to use a decoration to add the arrow in the middle of the arc, but the postaction=decorate option was ignored; the straight lines to the right are not relevant and are only there for comparison: a simple \draw path obeys the decoration.   What's the proper way to use a decoration for an arc created using the angle pic?


Difficult problem in the analysis of sequences

Let $a_n$ be a sequence of real numbers and let:  $$\lim_{n \to \infty}(a_{n+1}-a_n)=0$$ Prove that every $a \in (\lim\text{inf}\,a_n, \lim\text{sup}\,a_n)$ is a limit point of $a_n$.


locate: ignore .git .svn and hidden folders in general when using wildcard

I try locate -i -l 256 -r '*testhack*' and I get all hidden files as results polluting my limited result list, things like /home/kwaadpepper/testhack/TwitterReport/.git/objects/9a.  I think that regex might solve my problem but how? All I could managed to do was .


Accessing a terminal when an interactive desktop session is unresponsive?

On linux distributions one can simply press the following keys in order to access the shell:   Ctrl+Alt+F2 Ctrl+Alt+F7 to exit and return to the GUI.   Is there a similar capability in OS X that would let me access a terminal when my interactive desktop session is no longer responsive?  If anyone wants to know why, read below  I have a reason for needing this, and mainly because I killed the wrong process id, which in term ended the launchd daemon.  As now I couldn't run Terminal.app, or type in my existing shells I needed to gain access of the main shell (my session is running in) which was active because Spotify still worked!  In order to start-up that daemon again to rectify my problem - annoyingly I had to restart which for Unix operating system is ridiculous - ONLY time a linux/unix system need be rebooted is after kernel updates are installed, otherwise it doesn't need to be.


"File tikz.sty not found" error after updating MiKTeX 2.9

After the update today I get the error message: File `tikz.sty' not found. There must be a problem with the latest version of MiKTeX 2.9.


How do download a file from url in Python

I want to download a file in Python shell like files get downloaded into browser. Yes, I know there are multiple ways like curl, wget, url retrieve etc. but here in all the cases, file name is not the same as original file.  Like if I want to download file from this url:    I want to download the file from this url as it get downloaded in browser, with the same name as original.


Enable pdflatex -shell-escape in TeXstudio

My latex editor is TeXstudio and I need to configure it to enable pdflatex -shell-escape, is it possible to do it? compile with pdfLaTex, use Windows 10 and MikteX 2.9


Proof that p prime divides binominal coefficient with p k

Let $p$ be prime and $k\in\mathbb N, \ 0 < k < p.$  Claim: $p | \begin{pmatrix}p \\ k \end{pmatrix}$  Proof:  We know that $\begin{pmatrix}p \\ k \end{pmatrix} = \frac{p!}{k!(p-k)!}=\frac{p(p-1)!}{k!(p-k)!}$  It's clear, that $\frac{p!}{k!(p-k)!}=\frac{p(p-1)!}{k!(p-k)!}$ is dividable by p. Thus $p | \frac{p!}{k!(p-k)!}=\frac{p(p-1)!}{k!(p-k)!}$ and thus $ p | \begin{pmatrix}p \\ k \end{pmatrix}$  q.e.d.  Does this work?


a) How does $x^2y''-3xy'+3y=0$ can be solved? I know how to solve for constant coefficients, but in this case they are functions...  b) In which maximum interval there is a solution that  confirms $y'(1)=6, y(1)=4$?


Is there a dimension of tic-tac-toe where there can never be a draw game?

Tic-tac-toe is a game traditionally played in a 2-dimensional 3 by 3 grid, where each cell of the grid can either be an "X", an "O", or it can be empty, and the number of cells empty is the number of moves played subtracted from 9 (so a game can never exceed 9 moves). A game where at least 5 moves has been played can have a winner, but it also can continue going, if in no row, column, or diagonal has 3 of the same symbol in it. 3 empty cells in a row, column, or diagonal does not count, as those have no symbol and thus no player attached to them. Incidentally, due to the alternating turns of the two players, the symmetry of the game board, and it's 3-by-3-ness, tie games are possible, where, after 9 turns, there are no rows, columns, or diagonals where there are 3 matching symbols in them. Is it possible, in higher dimensions, to construct a board with rows, columns, and their higher dimensional counterparts of length 3, such that the game always has a winner?


JAVA - String contains char letter. Possible to check?

I am trying to make a method called Baller(String str, char chr) which should return a boolean if the word contains the character. In the main method I have:   public static void main(String[] args) {     Balling ball= new Balling ();     System.out.println( ball.contains("Baller", 'a'));     System.out.println( ball.contains("Baller", 'A')); }   What I did was this but it did not work:   public boolean contains(String str, char chr ) {     if(str.length() == chr) {         return true;     }     else {         return false;     }        }   What could be the problem?  ANSWER  public boolean contains(String str, char chr ) {          for(int i = 0; i < str.length(); i++)             if(str.charAt(i) == chr)                 return true;         return false;     } }


I'm fairly new to Linux, as many of you may have noticed. What I speak particularly is adding personal, user-generated functions and alias in my .bashrc file. I'm not exactly sure how bash works but according to many posts I "add it to the end of my .bashrc file." Which does not work when the command is executed through the Terminal.


What do light wave oscillations look like?

High school physics student here, so please bear with me for a moment.  I know that light waves oscillate, but I don't know how. In textbooks and diagrams they're portrayed as wavy lines traveling through space, but I don't think most light waves oscillate in perfect sine waves like that (unless they're polarized).  At first I thought they oscillated in sort of a "spring" shape, like a three-dimensional sine wave, but I later found that that's another kind of polarized light called circular polarization. What I imagine now is the wave going all over the place while retaining the same amplitude and period, like a ball bouncing along in an infinitely long cylinder, but of course I have no idea if that's actually the case.  So what do light wave oscillations look like?


JavaScript for loop returning "clean" when calling AJAX call

really strange one this.  I'm calling an AJAX call which returns an array of items using JSON (should be 5).  In the success function I console.log the response which shows me the array which has 5 items.  (5) [{…}, {…}, {…}, {…}, {…}]     0: {id: "9232eef2-f66b-4a63-94dd-448271e9d4d0", title: "Dr"}     1: {id: "3d27249e-d825-4e51-8032-0ffbe8ec839d", title: "Miss"}     2: {id: "01d4f5c1-f19f-4390-9e01-7cd4cd501d07", title: "Mr"}     3: {id: "20b9bb71-fa48-4597-ab91-0028e7cb123f", title: "Mrs"}     4: {id: "89029583-6549-45a3-93fe-6ec32a73381e", title: "Ms"}     length: 5   When I perform a loop I get the following results for title:  11:50:24.320 stage-1.php:241 Dr 11:50:24.320 stage-1.php:241 Miss 11:50:24.320 stage-1.php:241 Mr 11:50:24.320 stage-1.php:241 Mrs 11:50:24.320 stage-1.php:241 Ms 11:50:24.320 stage-1.php:241 undefined   So I console log the k  11:52:10.685 stage-1.php:241 0 11:52:10.685 stage-1.php:241 1 11:52:10.685 stage-1.php:241 2 11:52:10.685 stage-1.php:241 3 11:52:10.686 stage-1.php:241 4 11:52:10.686 stage-1.php:241 clean   My code is this:  $.ajax({     type: "GET",     url: "/assets/core/php/ajaxCalls/optionFields/getData-v2.php",     dataType: "JSON",     data: {        optionFieldTypeID: "bb5ac90b-22c0-438d-8b75-d2cb23bb6df3"     },      success: function (response) {         console.log(response);         for (var k in response) {              console.log(response[k]["title"]);              console.log(k);          }     }   });   I guess I'm doing something really obviously wrong but can't see it - any ideas?


What factors should I take into account when deciding how much of my 401(k) contribution should go into my Roth 401(k)?

My employer allows new contributions to my 401(k) to go in as Roth (post-tax) or "regular" (pre-tax).  What should I consider when deciding how to distribute my contributions between the two?


Can we always establish whether an infinite series converges or diverges?

I'm currently working with infinite series for my calculus class, and I'm wondering whether we always (in theory) can establish whether a series is divergent or convergent? Of course, it might be computationally hard, but is there a class of series where we simply lack the tools to determine whether the series converges or diverges?


Unable to INSERT data into MySQL through HTML form using PHP

Here is my Form:    <title>Stats</title>
Member Information Form
  <form action="submit_mbr_nfo.php" method="post">     Member ID <input type ="text" name= "mbrid"/>
     Member Name <input type="text" name="mbrnm"/>
     Actual Name <input type="text" name="atlnm"/>
     <input type="submit" value="Save"/> </form>      Here is my PHP file:  <?php //Define database properties in global variables define('DB_NAME', 'STATS'); define('DB_USER', 'root'); define('DB_PASSWORD', 'Test'); define('DB_HOST', 'localhost');  //store connection props in var $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);  //check connection if (!$link) {     die ('Could not connect to the Database: ' . mysql_error()); }  //map $_POST to vars $mbr_id = mysql_real_escape_string($link, $_POST['mbrid']); $mbr_nm = mysql_real_escape_string($link, $_POST['mbrnm']); $atl_nm = mysql_real_escape_string($link, $_POST['atlnm']);   $sql = 'INSERT INTO MBR_NFO '.'(MBR_ID,MBR_NM,ATL_NM) '.'VALUES ('$mbr_id', '$mbr_nm','$atl_nm')';  mysql_select_db('STATS'); $exe_query = mysql_query( $sql, $link); ?>   And here is my php error log:  PHP Parse error:  syntax error, unexpected '$mbr_id' (T_VARIABLE) in /Applications/MAMP/htdocs/stats/submit_mbr_nfo.php on line 21   I am very new and learning PHP and HTML, i tried several online solutions but nothing has worked so far. I am able to insert into DB if I don't use $_POST, i.e., manually typing in the values in php code, but that's not the goal, the goal is to use Form to populate MySQL DB.  Any help is appreciated, thank you.


How to create a new object instance of class being the same type of another instance by only knowing it as base class type?

How to dynamic down casting in C#? I have these classes as follows: public class Base { }  public class A : Base {     public string name; }  public class B : Base {     public string name; }  public class C : Base {     public string name; }  I also have a Go method. I want to make it dynamic child class type(A, B, C), not "Base" type. So that any child class can work. How do I make testA have a datatype dynamically? public class Main {     private void Go()     {         Test(new A{ name = "My Name is A"});     }      private void Test(Base base)     {         var baseType = base.GetType();            // Class A (or Class B, Class C)         var baseTypeName = base.GetType().Name;   // "A" (or "B", "C")          // I want to make it dynamic child class type(A, B, C), not "Base" type.         // So that any child class can work         // How?          // This code is fixed for A.         var testA = new A();         testA.name = "Sucess";          // I want testA dynamic Data Type.         var testA = ?;         testA.name = "Sucess";     } }


Order of resolution on same player controlled cards

I have a  in play. I then play . If my opponent's permanent I gain control of is a creature, does this creature also receive the counter from Cathar's Crusade?


Different PDF output with same source files (NeurIPS 2021 package)

When working on a joint project, my collaborators and I encountered that we obtain significantly different PDF outputs with the same latex source. To be more specific, this already happens with the example .tex (and .sty) files for this year's NeurIPS 2021 conference: . When compiling the example .tex file on Overleaf, I obtain exactly the same pdf output as provided by the organizers, with a length of 5.5 pages (). When compiling the same file (with the same style file) on my local system, the result is half a page longer, filling the complete 6 pages. Here are some observations: Line breaks seem to happen at the same places. Instead all the vertical spaces seem to be a little bit larger in the file compiled on my own system. There is not a specific object that needs more space. Instead, it looks like every single line needs a bit more space. However, the font size itself is identical. Also the textwidth and textheight, as well as, the paper measures (letterpaper) seem to be the same. Even switching between MikTex and TexLive on my local system does not solve the problem. Since NeurIPS has strict page limits, it makes a crucial difference whether a file is half a page longer or not. Any help is highly appreciated! Thanks!


How can I use the default LightDM login screen with GNOME Shell?

I would like to keep the normal Unity log-in screen and everything.  When I installed GNOME Shell, it seems to have replaced the log-in screen with the GNOME one.   I like jumping between different desktop environments, but I like the Unity log-in screen MUCH more.  Is there a way to only install the most recent GNOME desktop environment, without changing the login screen?


Many years ago,  I noticed that $987654321/123456789 = 8.0000000729\ldots$.  I sent it in to Martin Gardner at Scientific American and he published it in his column!!!  My life has gone downhill since then:)  My questions are:   Why is this so? What happens beyond the "$729$"? What happens in bases other than $10$?


Can a Facebook fanpage/business account create a Facebook app

My Facebook account was opened as a fanpage/business account (not a fanpage as a child from a personal account). Now I want to create an app. The link  gets redirected to my fanpage.   Does that mean I can't create an app with this account?


Blank lines or \par break xparse or ifthen macro

Leaving blank line break simple macro but % terminating it fixes it. What's going on? I know one is supposed to use %, but I can't have any blank lines in the macro without it complaining. A blank line essentially terminates the macro and TeX complains about a mixing }. Using etoolbox also produces the same problem so it seems it is an issue with xparse. Is there any way to fix xparse package so I don't have to litter my code with %s? \documentclass{book}  \usepackage{xparse, ifthen, etoolbox}   \NewDocumentCommand\iftb{m m G{\relax}}{\ifthenelse{\boolean{#1}}{#2}{#3}}  %\NewDocumentCommand\iftb{m m G{\relax}}{\ifbool{#1}{#2}{#3}} \newboolean{A}\setboolean{A}{true} \newboolean{B}\setboolean{B}{true}   \begin{document}  \iftb{A}{% % <- remove all text on this line breaks macro (keep blank line)     \iftb{B}{%         asdffdsasdff         % <- same here         asdf     } }  End \end{document}


I want to copy the data folders from a previous ubuntu(14.04) partition

My hard drive is a mess and I want to reformat it and do a fresh install of 16.04. My problem is I only have access to the HDD via 16.04 on a USB stick and although I can navigate to the various folders, nothing I do allows me to copy to an external hard drive. The folders are not encrypted. I also have a small swap partition - I would like to preserve the data on that too if possible.  Here's a listing of the home directories on the drive:  ubuntu@ubuntu:/$ ls -l /media/*/*/home /media/ubuntu/0e228f65-dac7-435f-828b-1eb1a6c3f29a/home: total 4 drwxr-xr-x 46 1000 1000 4096 Dec 21  2015 simon  /media/ubuntu/db79a6d1-7c6c-4d8c-822b-ba6ccd1ddecd/home: total 4 drwxr-xr-x 27 1000 1000 4096 Apr 17  2014 simon  /media/ubuntu/ebe2a6ba-9cb5-4279-8352-5082b8dd4d5e/home: total 4 drwxr-xr-x 39 1000 1000 4096 Aug  3 14:21 simon


Apply for a UK visa while not in my home country

Can I apply for UK standard visit visa from any place in the world? I'm an Egyptian citizen and would like to apply in Germany, France, Japan, etc...


How does $\sigma’(x)$ simplify to $\sigma(x)(1-\sigma(x))$?

\begin{aligned} \sigma^{\prime}(x) &=\frac{\partial}{\partial x} \frac{1}{1+e^{-x}} \\ &=\frac{e^{-x}}{\left(1+e^{-x}\right)^{2}} \\ &=\frac{1}{1+e^{-x}} \cdot \frac{e^{-x}}{1+e^{-x}} \\ &=\sigma(x)(1-\sigma(x)) \end{aligned} I do not understand what is the last step in this derivative. How can you factor out the last term? \begin{aligned} \sigma(x)(1-\sigma(x)) \end{aligned}


JObject tostring formatting issue for JArray

I have a question or rather an issue with the JObject. This is just a small example, I have large lists with more than 20 elements and I am saving these in JSON format and it is really bad to read if every value is in a new line. Can someone explain to me how to fix this? Code: var myObj = new  {     Vector = new List<int>{         1,2,3,4,5     } };  Console.WriteLine(JToken.FromObject(myObj).ToString(Formatting.Indented));  Output is like this: {   "Vector": [     1,     2,     3,     4,     5   ] }  But I want it to be like this: {   "Vector": [1,2,3,4,5] }  I already tried to override the ToString() from MyObj but it doesn't work either.


User has negative score on a question and gets +5 in his stats?

I just came across this user's profile, , and noticed something odd. He has negative score on a question and gets +5 in his stats. Is this normal behavior of Stack Overflow or did something out of norm occur here?


Stokes' law of viscous friction is famously applicable to spheres in (slow) motion within a fluid. If the object has radius $r$ and speed $v$, and the fluid has dynamic viscosity $\eta$, the dampening force will be  $$\mathbf F_f = -b\mathbf e_t $$ (where $\mathbf e_t$ is the unit tangential vector) with $b = 6\pi \eta rv$.  Now, what if the object is a disk of radius $r$ and thickness $h$ instead? (Supposing, e.g., that the disk's trajectory is always orthogonal to its circular surface.) How will the formula for $b$ change?  EDIT: This question is not a duplicate of the one posted in the comments, since as I have specified the object I am interested in is a finite-length cylinder immersed in a 3D fluid.


How to remove an account from Google login options?

When I am in the main screen where I get to choose which account, it does not give me the option to remove an account. When I click the arrow, it just signs into that account.


LaTeX/BibTex not arranging citations by order of appearance

I am having an issue with LaTex/Bibtex presenting my citations in order of appearance. I know there a plenty of questions on this and I have read some of them, but the solutions posted don't seem to do me any good. I am using MacTeX and TeXmaker.  I am writing a large document, like a Thesis. Chapters are split between individual Tex files and included using the \include command.  I have a large .bib file that is maintained by Mendeley (program I use for storing my references and producing a BibTex file).  I am using the package, cite (mainly for doing references like [1-3,6,9])  I have a pretty standard looking document.  \documentclass[11pt,a4paper]{report} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \newcommand{\doubleSignature}[3][Alex Mason]{% \parbox{\textwidth}{ \centering #3 \today\\ \vspace{2cm}  \parbox{7cm}{   \centering   \rule{6cm}{1pt}\\    #1  } \hfill \parbox{7cm}{   \centering   \rule{6cm}{1pt}\\   #2 } } } \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} %\usepackage[sorting=none]{biblatex} %\bibliography{Alex} % Where journals.bib and phd-references.bi \usepackage[pdftex]{graphicx} \usepackage{enumerate} \usepackage{nomencl} \usepackage{wasysym} \usepackage{booktabs} \usepackage{cite} \usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry} \graphicspath{{./Diagrams/}} \usepackage[labelfont={sf,bf}, margin=1cm]{caption} \usepackage{subcaption} \renewcommand{\figurename}{Fig.} \renewcommand{\tablename}{Tab.} \renewcommand{\bibname}{References} \author{NAME (MEng)} \title{TITLE} \date{\today} \makenomenclature %------------------------------------------------ \begin{document} \maketitle \pagenumbering{roman} %-----------------------------------------------certificate of originality----------------      -------------------------------------------- \input{CertofOrigin} \begin{abstract} ABSTRACT \end{abstract} %-----------------------------------------------contents------------------------------------------------------------ \tableofcontents \listoffigures \addcontentsline{toc}{chapter}{List of Figures} \listoftables \addcontentsline{toc}{chapter}{List of Tables} \chapter*{Acknowledgements} \addcontentsline{toc}{chapter}{Acknowledgements} ACKNOWLEDGEMENTS \printnomenclature[1.5in] \addcontentsline{toc}{chapter}{Nomenclature} \pagebreak \pagenumbering{arabic} \include{2ndYearReport_CHAP1} \include{2ndYearReport_CHAP2} \include{2ndYearReport_CHAP3} \bibliographystyle{unsrt} \bibliography{Alex} %\printbibliography \end{document}   The goofy looking part at the top (\newcommand{doubleSig.....) is just for when i input a special page I made containing a certificate of originality spiel with two boxes for signatures and my university logo.  As you can see I am using the standard bibtex way of doing bibliographies by stating the style then the stating the bib file to use right at the end of the document. I have tried biblatex but can't get it to work. It says it hasn't produced the bib file but doesn't really state why.  As far as I am aware everything was working A-OK until I started on the second chapter and began adding citations in there. Now my citations are all messed up and won't correct. My first citation starts with [9]!!!  [1] appears in a figure caption later down the page, after 10, 11 and 12 have been called!  I have tried deleting all the working files (bbl, aux, log etc) but nothing happens. I get the same result. IIRC I used to have this problem with MS Word and is part of the reason why I switched to LaTex...yet it seems to have followed me!   bibtex does through a few warnings when it runs stating that some references are missing journal names or volume numbers. Would that be a reason?  What have I done wrong with my code?


Is it possible to have some sort of regex that matches regex?  For example, the regex would match /(.*?)/ but not /(.?+/.  I am not really looking for an example (since I would have absolutely no idea how it works nor do I really need one) but I would like to see what you come up with as a working example.  Thanks in advance!


How can I translate config entity fields?

The question is fairly straight forward. I have several config entities with various fields.   I haven't found a way to translate config entity fields in the Drupal 8 documentation(or maybe I haven't looked hard enough, both are a strong possibility).


I would like to create a view that has a part number, order number and any comments attached to the part number. Comments are stored in a table OEC. There is a record for each line of comments.   OEC.ord_no OEC.seq_no OEC.cmt_seq_no OEC.comment 123        1          1              Comment line 1 123        1          2              Comment line 2   The OEC will link to an OER table by OER.ord_no and OER.seq_no  I would like the view to return   OER.ord_no OER.item_no OEC_Comment 123        ABC         Comment line 1, Comment line 2   There is no limit to the number of lines a comment could possibly have


Stop iPhone alerting me when I'm in a phone call

When I'm in a phone call, I still get alerts for emails and texts. The noise will play and, if the phone is on Speaker, it will vibrate -- often leading the person I'm talking to wonder what that weird noise was.  Surely there must be a way to silence the phone while you're talking on it. It's very distracting to have beepings going off right next to your ear!


How can one motivate the relativistic momentum?

Motivating the non-relativistic momentum $$\mathbf{p} = m\mathbf{v}$$ is quite easy: it is meant to represent the quantity of motion of the particle, and since the mass is one measure of quantity of matter it should be proportional to mass (how much thing is moving) and should be proportional to velocity (how fast and to where it is moving). Now, in Special Relativity the momentum changes. The new quantity of motion becomes $$\mathbf{p} = \dfrac{m\mathbf{v}}{\sqrt{1-\dfrac{v^2}{c^2}}}$$ Or, using $\gamma$ the Lorentz factor $$\mathbf{p} = \gamma(v) m\mathbf{v}$$ where I write $\gamma(v)$ to indicate that the velocity is that of the particle relative to the frame in which the movement is being observed. The need for this new momentum is because the old one fails to be conserved and because using the old one in Newton's second law leads to a law which is not invariant under Lorentz transformations. So the need for a new momentum is perfectly well motivated. What I would like to know is how can one motivate that the correct choice for $\mathbf{p}$ is the $\gamma(v)m\mathbf{v}$. There are some arguments using the mass: considering a colision, requiring momentum to be conserved, transform the velocity and then find how mass should transform. Although this work, it doesn't seem natural, and it is derived in one particular example. On my book there's even something that Einstein wote saying that he didn't think it was a good idea to try transforming the mass from $m$ to $M = \gamma(v)m$, that it was better to simply keep $\gamma$ on the new momentum without trying to combine it with the mass. So I would like to know: without resorting to arguments based on transformation of the mass, how can one motivate the new form of momentum that works for special relativity?


What is the meaning of the density of a distribution at a point?

I know how to use PDFs to calculate probabilities, but I don't think I understand them. For example, at $X=0$ the PDF of the standard normal distribution is $\approx 0.4$. Does this have any useful meaning?


Make author names bold in bibliography only

I am using an adaption of the verbose-ibid citestyle (as suggested ) and a custom bbx file based on authoryear. One of the things it changes is that it makes the author names appear bold. The only problem is that the verbose-ibid style seems to use the same macro and the bold names therefore appear in footcites as well.  Here is the relevant part of the bbx:  \RequireBibliographyStyle{authoryear}  \ExecuteBibliographyOptions{dashed=false,firstinits=true}  \renewbibmacro*{author}{%   \ifboolexpr{     test \ifuseauthor     and     not test {\ifnameundef{author}}   }     {\usebibmacro{bbx:dashcheck}        {\bibnamedash}        {\usebibmacro{bbx:savehash}%         \textbf{\printnames{author}}% THIS IS THE IMPORTANT LINE         \iffieldundef{authortype}           {\setunit{\addspace}}           {\setunit{\addcomma\space}}}%      \iffieldundef{authortype}        {}        {\usebibmacro{authorstrg}%         \setunit{\addspace}}}%     {\global\undef\bbx@lasthash      \usebibmacro{labeltitle}%      \setunit*{\addspace}}%   \usebibmacro{date+extrayear}}  \DeclareNameAlias{sortname}{last-first} \DeclareNameAlias{default}{last-first}   How can I apply textbf in the bibliography ony, not touching citations and footnotes?


PHP: How to pass in row name using bind_param

I need to make a row name be dynamic based on my choice. How can I make the following code work for me using bind_param?  UPDATE: main problem that my dynamic row name doesn't work. It gives me an error -   PHP Fatal error:  Call to a member function execute() on a non-object   Code  $myitem = 'something2'; $result = getResult($myitem);  function getResult($myitem) {     global $DBconnection;     $rowName = $myitem;     $stmt = $mysqli->prepare("SELECT         id,         something1,         something2,         something3         FROM table         WHERE ? = ? // ERROR         ");         $stmt->bind_param("ss", $rowName, $myitem); // ERROR         $stmt->execute();         $stmt->bind_result($id, $something1, $something2, $something3);         while ($stmt->fetch()){                              $row[] = array('id' => $id, 'something1' => $something1, 'something2' => $something2, 'something3' => $something3);         }         $stmt->close();         if (isset($row)) {              return ($row);         } }   Thank you.


Prove by induction $\frac{a_{1} + a_{2} + a_{3} +...+ a_{n}}{n} \geq \sqrt[n]{a_1 \cdot a_2 \cdot a_3 \cdot ....a_n}$.

Let $a_1$ $a_2$,..., $a_n$ be positive numbers. Prove that  $\frac{a_{1} + a_{2} + a_{3} +...+ a_{n}}{n} \geq \sqrt[n]{a_1 \cdot a_2 \cdot a_3 \cdot ....a_n}$. Mine is about trying to understand how can i use induction to make some justifications so this has nothing to do with solving inequalities


I simplified the expression into $$\sqrt{8-3\cdot \sqrt{7}}$$ but my tutor said it wasn't the answer he was looking for. Can someone help me?


Proving by induction for $n^3 - n$ is divisible by $3$

Question: Prove that for any nonnegative integer $n$, $n^3 - n$ is divisible by $3$.  So I suppose that $n^3 - n = 3m$ for some integer $m$.  I know it is true for $n= 1$.  Suppose it is true for $n=k$. So $k^3 - k = 3t$ for some integer $t$.  How to prove it for $n= k+1$? I didn't get the equation for $n= k+1$.


Is that true that if $\{E_k\}_1^\infty$ is a decreasing countable colection of sets and $m^*(E_1)<\infty$, then $$m^*\left(\displaystyle\cap_{k=1}^{\infty}E_k\right)=\lim_{k\to\infty}[m^*(E_k)]?$$ I think it's not true, because we don't have that each $E_k$ is measurable. Does someone know some prove or some counterexample? PS: m*(A) is the Lebesgue outer measure of A.


Use bash to create array from files using ? wildcard?

I need to iterate through files in a directory that match a specific pattern using an array. For example: ./dirx/file1b_t1.tif ./dirx/file2b_z_t2_tif ./dirx/file3b_t3.tif ./dirx/file4b_x_t4.tif  I'm trying to build an array that lists the 1st and 3rd file above. I know 'ls' is not an appropriate way to build an array, but I've tried 'find' and it does not work with the '?' wildcard. Basically I'm trying to duplicate: ls ./dirx/*b_??.tif  but then pipe the list into an array.


How to solve $\tan(x+100)=\tan(x+50)\tan(x)\tan(x-50)?$

The question is The minimum value of x for which $\tan(x+100)=\tan(x+50)\tan(x)\tan(x-50)$  Here is what I've tried so far:  In the R.H.S-  $$\frac {\sin(x+50)\sin(x-50)\sin(x)}{\cos(x+50)\cos(x-50)\cos(x)}\implies \frac {(\sin^2x-\sin^250)\sin x}{(\cos^2x-\sin^250)\cos x}$$  But, I think I am proceeding wrong because my process is not yielding any result. Kindly help me out.


What problems are easier to solve in a higher dimension, i.e. 3D vs 2D?

I'd be interested in knowing if there are any problems that are easier to solve in a higher dimension, i.e. using solutions in a higher dimension that don't have an equally optimal counterpart in a lower dimension, particularly common (or uncommon) geometry and discrete math problems.


Inspired by , along with answers and comments, where the assertion made by many seems to be "yes, you drop to the ground at the end of your turn." However, I'm not so sure it's that cut-and-dry.     The game organizes the chaos of combat into a cycle of rounds and turns. A round represents about 6 seconds in the game world. During a round, each participant in a battle takes a turn. (PHB5e p.189, emphasis in original)   It seems to me that the mental model of combat turns & rounds and standard initiative must be one of sequential declaration and resolution of simultaneous action: when I declare my movement and action(s) on my turn, I am declaring and my table is resolving those movements and actions I take during the round, all as a compromise between simulationism and table-speed.  By this interpretation there'd be nothing wrong with ending a turn mid-air, as no matter how many other declaration-resolution events came before my next turn, in-game zero time has passed between my character's end of one turn and the beginning of 's next. But that's just my interpretation--I'm sure there are good rationales behind others.  In case you're looking for a concrete example, here it is from last Wednesday: my STR18 gnome barbarian wants to long-jump that 15'-wide mud-river near Ogremoch's chamber. On his turn he disengages from a foe, runs 25' to the river, and jumps. His turn ends after 10' in the air. Next turn: is he in the mud trying to wade for 5', or is he flying through the air for 5'?   The clear answer for 3.5e:


I plan to cook a basic mushroom risotto. However, the supermarket near us did not have shitake or any other uncanned mushrooms, they only had dried ones.  My question is, do I just remove the stem and place it straight into the risotto as the risotto finishes cooking?   I've seen and watched tutorials on how to cook a mushroom risotto. There are those who cook the mushroom (take out the stem and cut coarsely) by sautéing them in oil and onion. When the mushrooms sweat out, they put it in the risotto. However, there are those who cook out the mushroom and then add the rice in the same pot and cook the risotto. The point is that sweating out the mushrooms concentrate the flavor.  Since my mushrooms are already dry, do I have to do anything else aside from taking out the stem and cutting them coarsely? Is it acceptable if I sauté them or if I let them sit in hot water?   EDIT:  I found  that adjusted the risotto recipe for what's available in our country. It mentioned that I should soak the dried mushrooms in hot water, strain that water, and if I got it correctly, add the liquid to my stock. Can I skip this process? What's the advantages of soaking the mushrooms in warm water?


Could someone point me to an online resource where I can look up  $$ \int_{-\infty}^\infty \int_{-\infty}^\infty \int_{-\infty}^\infty \frac{\cos(\vec k\cdot\vec x)}{\sqrt{|\vec k|^2+m^2}}\,dk_1\,dk_2\,dk_3$$  where $\vec k$ and $\vec x$ are 3-vectors, and $m$ is a constant.  Also, if you know how to do it step by step and want to show off your fancy integration, that would also be very helpful.  Thanks ;)


How long can I keep bread dough in the refrigerator?

If I've made some dough and want to bake it later, how long can I store it in the refrigerator? Do I need to do anything special to make that work out? Are there any types of bread it won't work well for?


What book can I find the Yuan-Ti Pureblood race in?  I know its really simple but I just forgot.


Proving $\sum_{k=0}^n {2n \choose 2k}{2k \choose k}2^{2n-2k} = {4n \choose 2n}$

I'd like to prove that $\sum_{k=0}^n {2n \choose 2k}{2k \choose k}2^{2n-2k} = {4n \choose 2n}$. I'm not really sure where to start, maybe the identity ${2n \choose n}=\sum_{i=0}^n {n \choose i}^2$ is relevant but applying it to the RHS doesn't seem to produce anything useful. Any ideas?


Windows 10: Turning off Windows Defender's real-time protection

Since the times of Windows 7 I'm used to turning off Windows Defender's real-time protection, as it causes too much overhead. As a pro-user, I know what I download and I haven't caught a virus since the times of Windows XP.  However, I just upgraded to Windows 10, and it turns out that the "Turn off realtime protection" option doesn't "stick"; it is reset at every reboot. So every time I reboot my computer I have to remember to turn off real time protection.  This is very annoying. Is there a way to turn it off "forever"?


Does Stack Exchange use UTC time to store creation dates of posts and comments?

Does Stack Exchange use UTC time to store when a question, answer or comment is created, or is there any other approach to handle it to display localized time to the user?


Good looking underscores with LuaTex and fontspec

I'd like to have shorter underscores with LuaTex and fontspec. And the vertical position of the underscores is too low compared to not using fontspec.  Do I have to use some other setup than fontspec. It is working quiet well except for the too long underscores.  Result without fontspec    1. MWE  \documentclass[]{article} \usepackage[]{fontspec}  \begin{document} cöde\_nameß  \texttt{cöde\_nameß}  \textit{cöde\_nameß}  \end{document}       I tried  but there is a still a difference between texttt and the others.  2. MWE  \documentclass[]{article} \usepackage[]{fontspec} \usepackage{relsize} \begin{document} \renewcommand{\_}{\textscale{.7}{\textunderscore}}  cöde\_nameß  \texttt{cöde\_nameß}  \textit{cöde\_nameß}  \end{document}       I also tried  but then the font of the underscore doesn't match the texttt.  3. MWE  \documentclass[]{article} \usepackage[]{fontspec} \makeatletter \let\_\relax \DeclareRobustCommand{\_}{%   \leavevmode\vbox{%     \hrule\@width.5em           \@height-.26ex           \@depth\dimexpr.26ex+.28pt\relax}} \makeatother \begin{document}  cöde\_nameß  \texttt{cöde\_nameß}  \textit{cöde\_nameß}  \end{document}


No Gravatar option when editing profile picture, only on Programmers SE

First of all, my profile picture on  has changed by itself. If I recall correctly, the moment I clicked on the edit link, or when I made a change in one of the fields (not sure), the picture just changed by itself to what appeared to be Identicon.  On other sites, if I try to change my profile picture, I have Gravatar and Identicon options. As far as I can tell, only on Programmers SE, I don't have a Gravatar option, only Identicon. I'd like to use Gravatar on this site just like the others. This was working fine until a few days ago when I made a completely unrelated change to my profile.


What are the steps of this command using ; || and &&

Note: A B C are commands.....  Please tell me what the step process would be of these commands, so I can better understand the language..  A || B ; C = If A fails then run B then C? A ; B || C = Run A then B then C if (B fails... or is it if A fails?)?   What I am really after is something like this (but would like to understand the steps above):  If A fails, then run B, but if A succeeds, skip B then run C,d,e,etc (How can I do this with "||" ";" and/or "&&"?)   I found information from this link, but it only shows the steps of 2 commands, not 3....   Reason why another link does not answer this question:          So, next time if you need to chain 4 commands you'll ask a new question because the answers here only show how 3 commands work ?–  don_crissti26 mins ago          No sir, because I'll understand the linguistic next step for the future :). Mostly because of this....: I was unclear if the command and switch(?) " || " in sequential order (command C in this case) was always looking at command (A) or if it was looking command (B). This is mostly because I was confused by someone saying this: A || B = Run B if A failed.. wasn't sure if the next command (C, D, etc etc) would look at A as well :) (duh is what it seems, but I don't know this language... so had to get clarity).


Long lines in code sections are unviewable in stack android app

When there is a very long line of code in the code section , it does not scroll when you swipe to the left. it will scroll only a tiny amount each time (one character at a time)  For example:  this is a really long line of code that will not properly scroll to the left when viewed on a device that's not wide.


I have someone who wants to pay off my credit card for me and all he asked for was my username and password for my online account to make the payments. I’ve checked my account and I can’t find any important information that he could find from just having those two things but I’m still a bit unsure. Advice?


i am getting problem with ubuntu Lte 16.04 lib installation

what does it mean  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


An explicit formula of the function $f:\Bbb Z^2\to\Bbb Z$

A set $S$ is countably infinite if there exists a bijective function $f$ from $S$ to the natural numbers $ℕ$ (). I know that the cartesian product $A×B$ of two countably infinite sets $A,B$ is countably infinite.  Let $A=B=ℤ$ be the set of all integers. I am asking about an explicit formula of the function $f:ℤ×ℤ→ℕ$


Who attacks first in a battle of Readied Attacks?

This question is best illustrated in an abridged example:  Combat has already begun and a goblin sees a Paladin on his noble steed. He readies an attack on this trigger: When the Paladin enters my range, I will attack him. The Paladin's turn begins, and he readies an attack as well - When the Goblin enters my range, I will attack him. The Paladin's mount then goes, rushing down towards the Goblin, Paladin on his back. He enter's the Goblin's range, and...  Who strikes first? RAW, I couldn't find a definitive source that solved the matter - I wanted to say that because the Goblin had a higher initiative count, his reaction went first. However, the Paladin has quite impressive Dex, and argued that it should be a contest of Sleight of Hand, which also makes sense to me. Initiative has a small section about resolving standard ties with initiative, but I feel it doesn't apply here after initiative has already been determined. Initiative  "...The GM can decide the order if the tie is between a monster and a player character. Optionally, the GM can have the tied characters and monsters each roll a d20 to determine the order, highest roll going first."  I am also aware of , which provides an answer, but using 3.5 Edition Rules. Who goes first in a simultaneous reaction trigger when combat has already begun in 5th edition? Is there any clarification in the rules from 5th Edition sources?


How do I derive geodesic equation using variational principle?

I am trying to derive the geodesic equation using variational principle. My Lagrangian is $$ L = \sqrt{g_{jk}(x(t)) \frac{dx^j}{dt} \frac{dx^k}{dt}}$$ Using the Euler-Lagrange equation, I have got this. $$ \frac{d^2 x^u}{dt^2} + \Gamma^u_{mk} \frac{dx^m}{dt} \frac{dx^k}{dt} = \frac{\frac{dx^u}{dt}}{g_{pq}\frac{dx^p}{dt}\frac{dx^q}{dt}} \frac{d}{dt}\left[g_{rs}\frac{dx^r}{dt}\frac{dx^s}{dt}\right]$$  How do I prove the right hand side to be zero to get the geodesic equation?  Basically, I can rewrite the above mentioned equation as  $$ \frac{d^2 x^\mu}{dt^2} + \Gamma^\mu_{\nu \lambda} \frac{dx^\nu}{dt} \frac{dx^\lambda}{dt} = \frac{dx^\mu}{dt} \frac{d\ \log(L)}{dt}$$  I need to know why is the following true? $$\frac{d\ \log(L)}{dt} =0$$  I know that the derivation might be simpler using a different Lagrangian but I want to do it using this one.


What folder contains the Wallpapers for 14.04

Trying to find the folder that contains the Wallpapers for 14.04, I want to use some of them on my other computers.


I am having some trouble using the new Source Han Sans font (; ) released by Google and Adobe in latex documents. I compile using XeLaTeX and have the TeX Live installation. I have spent the last 4 hours or so looking for a solution but couldn't find one.  My code is the following:  \documentclass{article} \usepackage{xeCJK} \setCJKmainfont{Source Han Sans J Normal} \renewcommand{\arraystretch}{1.5} \setlength\parindent{0pt} % Removes all indentation from paragraphs \topmargin=-0.45in \evensidemargin=0in \oddsidemargin=0in \textwidth=6.5in \textheight=28cm \headsep=0.25in  \footskip = 20pt \begin{document} \thispagestyle{empty} 日本 \end{document}   Now when I run this it doesn't give me an outright error. However when I try to open the compiled pdf it tells me it is broken. When I look at the log file I find this at the bottom (the file name is "Core 1000 1-10.tex"):  Error 1 (driver return code) generating output; file Core 1000 1-10.pdf may not be valid.   The complete .log file can be found here:   When I comment out the line \setCJKmainfont{Source Han Sans J Normal} it works correctly again.  I have installed all the fonts in the family and did the procedure to load new fonts into LaTeX using TeX Live-manager.  Is this font maybe just not supported by xeCJK or am I doing something wrong?


Number of ways of distributing chocolates.

Find the number of ways in which $6$ different chocolates can be distributed among $3$  children such that each of them get atleast one chocolate. My approach:- First choose $3$ chocolates and give $1$ to each one of them. This can be done in $\frac{6!}{3!}= 120$ ways. Now each of the remaining $3$ chocolates have $3$ choices each. So these can be distributed in $3*3*3=27$ ways. So total ways if distributing, $120*27=3240$. Is my approach correct? And answer? Please help me figure out the right way to do this if my solution is incorrect. Thank you.


int main() {         const double PI = 3.1415926536;         cout << PI << endl;         return 0; }   why my output is 3.14159 ? It seems like the output is treated like a float..? I expected the value unchanged with all the decimals.


Questions about the phrase "but of tea not a glimpse" from "Great Expectations"

I still have a question about the phrase "but of tea not a glimpse" from the novel  by Charles Dickens.     I rang for the tea, and the waiter, reappearing with his magic clew, brought in by degrees some fifty adjuncts to that refreshment, but of tea not a glimpse. A teaboard, cups and saucers, plates, knives and forks (including carvers), spoons (various), saltcellars, a meek little muffin confined with the utmost precaution under a strong iron cover, Moses in the bulrushes typified by a soft bit of butter in a quantity of parsley, a pale loaf with a powdered head, two proof impressions of the bars of the kitchen fireplace on triangular bits of bread, and ultimately a fat family urn; which the waiter staggered in with, expressing in his countenance burden and suffering. After a prolonged absence at this stage of the entertainment, he at length came back with a casket of precious appearance containing twigs. These I steeped in hot water, and so from the whole of these appliances extracted one cup of I don’t know what for Estella.   Below is the sentence about which I still have a question.     I rang for the tea, and the waiter, reappearing with his magic clew, brought in by degrees some fifty adjuncts to that refreshment, but of tea not a glimpse.    Does the word "of" mean "with respect to" in the phrase "but of tea not a glimpse"? Does "not a glimpse" mean "the protagonist of the novel saw and inspected all of the fifty adjuncts that were brought by the waiter, and the protagonist of the novel didn't glimpse all of the fifty adjuncts, and the protagonist of the novel saw all of the fifty adjuncts very carefully, and then the protagonist of the novel found that all of the fifty adjuncts were with respect to the tea" in the sentence "but of tea not a glimpse"?


Question on the controversial "undefined" $0^0$

In Analysis this past week, we touched upon indeterminate forms which included some talk on undefined terms. One of the forms that got my attention was $0^0.$ Some of my colleagues argued that the best definition was $0^0=1$ since it made it easier to prove other theorems. The proof they gave me was this: $$1=(0+1)^1$$ $$= \binom{1}{0}\times0^1\times1^0+\binom{1}{1}\times0^0\times1^1$$ $$= 1\times0\times1+1\times0^0\times1$$ $$= 0^0.$$ Thus by Binomial Theorem and transitivity, $$1=0^0.$$  My problem with this is that it can easily be disproven by a counterexample (or so I think). Observe similarly, $$2=(0+2)^1$$ $$= \binom{2}{0}\times0^2\times2^0+\binom{2}{1}\times0^1\times2^1+\binom{2}{2}\times0^0\times2^2$$ $$= 1\times0\times1+2\times0\times2+1\times0^0\times4$$ $$= 0^0\times4.$$ Thus, $$2= 0^0\times4$$ $$\implies \frac{1}{2}=0^0.$$ But if $0^0=1$ then it follows that, $$2=4.$$ But this is a contradiction. Therefore $0^0\neq1.$  Would this work? Or did I do something wrong?  P.S. THIS IS NOT A DUPLICATE. I did check out the other link but the closest answer (which is not satisfying for me) was by celtschk. But celtschk said, "Therefore the definition $0^0=1$ is the most reasonable one" which I disagree and I have shown my reason above. If I made a mistake or am wrong, I hope someone will charitable point it out.


Find the radius of convergence of summesion (n=0 to ∞)(an*x^n), where an=[sin(n!)/n!] and ao=0?

found a question like this and there are four options   R>=1 R>=2*pi R<=4*pi R<=pi, where R denotes radius of convergence. I've tried hard but cant get it how to show in equality. Also there is question in my mind that among four options if the series is not converge at the end point can we discard that option. I'm not sure abut this since we know if anywhere "<" holds we can say "<=" holds, but the converse is'nt not true.   Please help to find the solution. Please answer it in the answer section rather comment. Thanks in advance.  I repost this because dont know why my previous post is locked.


In one of Harry's dementor-induced flashbacks, he presumably hears his mother protesting against Voldemort:  Harry was falling again through thick white fog, and his mother’s voice was louder than ever, echoing inside his head – ‘Not Harry! Not Harry! Please – I’ll do anything –’ ‘Stand aside – stand aside, girl –’ ‘Harry!’  Voldemort tells her to stand aside - why did he not just kill her?


Consider the following input to sort:  cat > foo <<EOM D,,5014978 DD,,25 D,I,1972765530 D,Y,4223624 -,Y,71285059 YA,I,2 EOM   Now try running sort foo  The output is not sorted when trying this on any of my linux boxes (gnu coreutils versions 6.9-7.4).  The output is sorted when run under cygwin (gnu coretuils 8.5).  Comments?


Whether to divide the web signup to steps or not?

I have divided my signup page into a three-step signup:   Account info (username, password and email) Personal Info (full name, gender and zip) And lastly, telling the user to verify his/her email address   Is that really a good idea? As there are only six fields in the total signup process which will not seem to be tough for user at first glance.


How to find the sum of all the numbers that can be formed using the digits 2,3,3,4,4,4.. What should be the way of doing this type of problem?? Please guide


How can a structure for a formal language be defined?

I'm learning some stuff about formal languages and structures for them. However there's this thing I don't understand.  How can we ever define/specify a structure for a language, if we do not yet have the language to talk about the structure?  If we were all  then this would be pretty easy to resolve, because we could just assert the existence of certain structures and rely upon our 'intuition' to convince ourselves that those structures are in fact models for the formal language.  However, since we are not all platonists, we need to:   Specify the model Prove that it exists (I guess?) Prove, using some method, that the structure is indeed a model for the language   But I just don't see how this can ever be done in a rigorous way without already having a formal language to work in.


How to prove that if $S: U\rightarrow V$ and $T: V\rightarrow W$ are surjective, then $TS$ is also surjective?

I feel my order has problem:  for $u\in U, v \in V, w\in W $. Since $S$ is surjective, we have $S(u)=v$. Since $T$ is surjective we have $T(S(u))=T(v)=w$. Therefore we have TS surjective.


How many days a year is a U.S. citizen allowed to stay in Morocco?

I arrived in Morocco in October of 2014 and renewed my visa by traveling to Spain by ship for a day and getting my passport stamped again in January of 2015. My question is, am I allowed to leave the country and repeat this process this year by traveling again to another country, other than my own in order to return to Morocco for another 90 days? And if so, how many times a year is this allowed? I have read 180 days on some websites but there is not any clear answers anywhere about this that I can find.


I'm trying to reset the password to the base administrative/main account on my Ubuntu system. In the recovery shell, I will type passwd <user> and it will give me an error output saying that user <user> does not exist.   I have verified that the user does indeed exist in the system via   cat /etc/passwd | grep USERNAME  What could the issue be that it cannot find the user in question?


g++ undefined reference to class::function when using templates

Some "undefined reference error" questions are already posted on StackOverflow but I couldn't find solution to my problem.  My project contains 5 files: 5.cpp vector_base.h vector_base.cpp vector.h vector.cpp  I compile it with:  g++ -std=c++11 vector_base.cpp vector.cpp 5.cpp -o 5   And get the following error:  /tmp/ccO8NeGJ.o: In function `main': 5.cpp:(.text.startup+0x21): undefined reference to `Vector<int, std::allocator<int> >::Vector(unsigned int, int const&, std::allocator<int> const&)' 5.cpp:(.text.startup+0x2b): undefined reference to `Vector<int, std::allocator<int> >::destroy_elements()' collect2: error: ld returned 1 exit status   well, code looks fine for me. Where did I mess up?  The code is as follows:   5.cpp  #include "vector.h"  int main() {     Vector<int> a{10, 0}; }   vector.h  #ifndef VECTOR_H #define VECTOR_H  #include "vector_base.h"  template<class T, class A = std::allocator<T>> class Vector { private:     vector_base<T,A> vb;     void destroy_elements();  public:     using size_type = unsigned int;      explicit Vector(size_type n, const T& val = T(), const A& a = A());     ~Vector() { destroy_elements(); } };  #endif //VECTOR_H   vector.cpp  #include "vector.h"  #include <algorithm> #include <memory>  template<class T, class A> Vector<T,A>::Vector(size_type n, const T& val, const A& a)     :vb{a, n} {     std::uninitialized_fill(vb.elem, vb.elem + n, val); }  template<class T, class A> void Vector<T,A>::destroy_elements() {     for(T* p = vb.elem; p!=vb.space; ++p){         p->~T();     }     vb.space=vb.elem; }   vector_base.h  #ifndef VECTOR_BASE_H #define VECTOR_BASE_H  #include <memory>  template<class T, class A = std::allocator<T>> struct vector_base {      T* elem;     T* space;     T* last;     A alloc;      using size_type = unsigned int;      vector_base(const A& a, typename A::size_type n)         :alloc{a}, elem{alloc.allocate(n)}, space{elem+n}, last{elem+n} {}      ~vector_base() { alloc.deallocate(elem, last-elem); } }; #endif //VECTOR_BASE_H   vector_base.cpp  #include "vector_base.h" #include <algorithm>  template<class T, class A> vector_base<T,A>::vector_base(const vector_base&& a)     :alloc{a.alloc}, elem{a.elem}, space{a.space}, last{a.last} {     a.elem = a.space = a.last = nullptr; }  template<class T, class A> vector_base<T,A>& vector_base<T,A>::operator=(const vector_base&& a) {     swap(*this, a);     return *this; }   I tried compile every cpp file separately and then link all but it didn't work also.


copy entire folder contents - not just the outputted file

I would like to use find and rsync to copy any directory that contains at least one "wav" file.  The copying should copy the whole folder if a "wav" file is present.  I have this so far:  find . -name "*.wav" | rsync -armR --include="*/" --include="*.wav" --exclude="*" /users/lukew/desktop/merged /users/lukew/desktop/123;   This is good because the output is distributed into the correct directory at the output level as a single "wav" file. I'd also like the other files in the source directory to be included at the same time to go alongside the "wav" file in the output directory.


What is semalt.semalt.com that shows up in Google Analytics under Referrals?

How does it work? How does it drive traffic and referrals? When I go there, it wants me to sign up for something. Is it a scam? It is 10% of my traffic for the last week.


Nexus 5 gives Status 7 error when flashing 5.1 OTA

I've been trying all day to install 5.1 OTA via ADB. In my struggle, I tried installing TWRP to try to get it to work, but it didn't. I since flashed the stock recovery.  When trying to flash via ADB, this is my output log:  Finding update package... Opening update package... Verifying update package... Installing update... Verifying current system... "System/bin/install-recovery.sh" has unexpected contents. E:Error in /sideload/package.zip (Status 7)  Installation aborted.


What is causing different spacing between a header and content on one page only?

I have found that for only one page (so far) the spacing between the header and content is different from the spacing on all the other pages. You can see this behavior in the images below (from pages 2 and 3 of the document):     My .tex file contents are shown below.  \documentclass[a4paper]{report} \usepackage{fullpage} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} \setlength{\headsep}{0.5cm}  \begin{document} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}} \fancyhead[L]{\bfseries \leftmark} \fancyhead[R]{\bfseries \rightmark}  \chapter{Version Control} \lipsum \lipsum \lipsum \lipsum  \end{document}


Why do I see edges partially see-through on back face (in viewport)?

Maybe you can help me with a weird viewport issue.   I want to show only visible edges in edit mode. i.e. I don't want to see those on the back side of the model. For some reason I always see partial edges in Solid Mode.  See the first image. There appears to be an 'inner cube' within my model. It occludes backface edges partially.    When I search on this topic people suggest toggling 'Limit Selection to Visible' in edit mode, and when I turn it on I can see all backface edges as expected, but the inner cube is still there.  It shows up in other models as well, like these steps:   Any suggestions?


I'm creating a game and I need a fill command to have a 50-50 chance of opening one of two gates (Ex. This will be activated when a button is pressed to start game).  The obvious choice would to use the @r selector, but I don't know how to apply this to a command block command.  I'm running 1.10.2 and this is only a two player game. (For me and a friend)


Null pointer exception when passing instantiated objects to method

I have a simple class where the constructor creates an array of objects, and obtain the hash code of each object in the array, as following. At run time, the program throws a null pointer exception when System.identityHashCode(Object x) is called. I have already instantiated the Object. Why might the exception have occurred?  public class ArrayOfObjects  {     private Object[] array;     private int[] arrayIdentity;      public ArrayOfObjects(int N)     {         array = new Object[N];         for (int i = 0; i < N; i ++)         {             array[i] = new Object();             **// The line below throws null pointer exception.**             arrayIdentity[i] = System.identityHashCode(array[i]);          }     }      public static void main(String[] args)      {         ArrayOfObjects arrayOfObjects = new ArrayOfObjects(10);            // Do something.     } }


A committee of four people, containing at least one man and one woman, must be chosen from four men and three women. How many different committees are possible?  I dont really now how to solve this. I tried solve them by counting them in groups. but thats not really the right way I guess. Can anyone give me a clue to solve this.


Cannot install adobe air on 13.10; i386 pkgs don't exist

I need Adobe Air for an important software that is only delivered via that platform, but it'll be used on a box that has Ubuntu x64. So there's no way around that.  From my research, the consensus is that:   Adobe no longer supports Linux as of v2.6 The final v2.6 *.bin file can be installed, but needs 32-bit libraries Since ia32libs is deprecated, one must do some hacking to get the whole thing to work   So, I've been following along here, which seems to me to give the clearest directions:   I also found a .deb somewhere, but run into essentially the same problem, which I will describe below.  # ./AdobeAIRInstaller.bin  /tmp/air.otFPvM/setup: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory   I cannot get the 32-bit libraries required for the solution, and I don't know how to acquire them. They are needed for the Adobe Air installer to proceed properly. I need to be able to execute this command to get the .deb to work, which should also give me what I need for the normal installer as well:  sudo apt-get install libgtk2.0-0:i386 libnss3-1d:i386 libnspr4-0d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386   However, doing so yields a mystifying error about not being able to find said packages:  $ sudo apt-get install libgtk2.0-0:i386 libnss3-1d:i386 libnspr4-0d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package libgtk2.0-0 E: Couldn't find any package by regex 'libgtk2.0-0' E: Unable to locate package libnss3-1d E: Unable to locate package libnspr4-0d E: Unable to locate package libxml2 E: Unable to locate package libxslt1.1 E: Couldn't find any package by regex 'libxslt1.1'   I apologize if this isn't very clear, I've been working at this most of the day. Basically, I have two possible solutions -- the .bin installer or the .deb file -- but I can't get either to work because of the unavailable 32-bit libraries.  I'm afraid this is beyond my skills, and I would kindly ask your help in solving this problem. Feel free to ask for clarification.  Cheers,  Preston


Let $\{u,v\}$ be a linearly independent set in $\Bbb R^3$.  Show that the plane $\{su+tv\mid s,t \in\Bbb R\}$ through the origin in $\Bbb R^3$ is equal to the null space of some element of $(\Bbb R^3)^{*}$. (Where $(R^3)^*$ is the dual space of $R^3$).   Can we define a linear functional, say $L:R^3 \rightarrow R^2$?


Netflix 2009-2012 animated TV show about a guy who uses runes to summon creatures in another world

There was this series on Netflix around 10 years ago about a child who had an ill grandfather.  He gets sucked into another world and has to collect runes which are like guardians and has monsters that are summoned from runes. I remember the monsters are more beast-themed and he was accompanied by a female, however the last gem/rune was in the other world.  There was also this book that they put the gems from the guardians into, and in one of the episodes they have to identify the right book and they do it by finding a coffee stain on it.  It’s not Yu-Gi-Oh, Digimon, Shadowhunters, Monster Rancher or Di-Gata Defenders.


What is the intuition behind the Independent Spacings Theorem?

The IST states: Let X1, X2, ,,, Xn be iid Exponential(μ). Then the random variables (where Xsubscript(0) = 0) Ysubscript(j) = (n - (j-1)) (Xsubscript(j) - Xsubscript(j-1)) for j = 1, 2, 3, 4, ,,, n - 1, n are iid Exponential(μ).


I started working on a blog from last month. My blogs URL was quite big (for ex. http://my-old-long-url-blog.blogspot.com). I used it because I thought having 2-3 keywords in my URL will help me (I am not really sure that it really helps?).  My blog was getting 22-25 visitors everyday. I changed it's URL 4 days ago & added new URL. http://autohippo.blogspot.com. In blogger, there is a provision to edit & take any URL, anytime we want.  Now:   My old URL posts are still indexed (they appear in Google for particular keywords). My new URL posts are indexed but not ranked (i.e. when I searchsite:http://autohippo.blogspot.com they appear but i haven't received single visit from Google yet. I added this URL to my webmasters & even submitted sitemap.


Is it possible to use general "is" contractions with regular nouns?  Like "The car's white", or "everyone I know's cool". It seems like this could be a logical extensions of the normal rules of contractions, and informally online I find myself typing these out.