I would like to create this sheet which was made it by adobe indesign   Could someone create it with latex ?     Here's my code:  \documentclass[12pt,a4paper,twocolumn]{report} \usepackage[margin=0.5in]{geometry} \usepackage[french]{babel} \usepackage{fontspec} \usepackage{graphicx} \usepackage{amsthm,amssymb,amsfonts,mathtools} \usepackage[utf8]{inputenc} \usepackage{multicol} \usepackage{multirow} \usepackage{amssymb} \usepackage{array} \usepackage{graphicx} \setlength{\columnseprule}{0.5pt} \thispagestyle{empty} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} %%%%%%%%%%head%%%%%%%%%%%%%%%%%%%%%%% \twocolumn[    \begin{@twocolumnfalse}  \begin{center}  \fbox{\Large Exercise Sheets} \end{center}     \hrulefill \end{@twocolumnfalse}   ]  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \fbox{ Exercise $1$:}\\  Compute the following limits \begin{multicols}{2} \begin{enumerate} \item $\lim_{x\to 2}\dfrac{4x^{3}-5x-22}{x^{2}-x-2}$ \item $\lim_{x\to 0^{+}}\dfrac{x-\sqrt{x}}{x+\sqrt{x}}$ \item $\lim_{x\to 1}\dfrac{\sqrt{x+3}+\sqrt{x}-3}{x-1}$ \item $\lim_{x\to 2}\dfrac{x^{2}\sqrt{x+2}-8}{4-x^{2}}$ \end{enumerate} \end{multicols}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \fbox{ Exercise $2$:}\\ Let $n\in\mathbb{N}^{*}$ \begin{enumerate}     \item calculate : ${\displaystyle \lim_{x\to 0}\dfrac{1-\cos(x)\cos(2x)\ldots+\cos(nx)}{x^2} }$     \item b     \item c     \item d     \item e     \item f \end{enumerate} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \end{document}


How to get rid of if-else conditions in code

I want create some console application. This application will work by parameters from input args[] array.   Like this: > app.exe -arg1 -arg2 -arg3:str3 -arg4:str4 -arg5 etc.  Where -arg1, -arg2, -arg5 the parameters for initialization variables in my app. The -arg3:str3 and -arg4:str4 the parameters with any string.  For example, if I sent the -arg1 then in my app I need initialization the var1 by any string. Like this:  foreach (string s in args) {     if(s.contains("-arg1")) someString1 = "someVal1";     if(s.contains("-arg2")) someString2 = "someVal2";     if(s.contains("-arg5")) someString5 = "someVal5";     if(s.contains("-arg3")) someString3 = s.split(':')[1];     if(s.contains("-arg4")) someString4 = s.split(':')[1]; }   I think that my solution is bad, because I need to test every argument in a loop and if I want to pass more new parameters I have to add new conditions.  Tell me please, maybe there are specific approaches to solving my problem? Or maybe there is some design pattern for such tasks?  EDIT: I can't use any libraries


I am using texmaker and I include eps figures. The code is very long but I will include some of it.  \documentclass[draft, 12pt, onecolumn]{IEEEtran} \usepackage{graphicx} \usepackage{epstopdf}  \begin{document}  \begin{figure}[!t] \centering \includegraphics[scale=0.4]{./Figures/RL_NE.eps} \caption{Percentage of playing good} \label{fig_1} \end{figure}  \end{document}   When I open my compiled file I will get the following:   I do not know where is the problem. I am compiling with PdfLatex.


Is the method of calculating determinant of $3\times 3$ matrix by diagonals, apply also on $4\times 4$ matrix?  for example:  $$\begin{matrix}2&2&1&3|\\1&4&4&5|\\5&1&1&6|\\7&1&4&5|\end{matrix}\begin{matrix}2&2&1\\1&4&4\\5&1&1\\7&1&4\end{matrix}$$  $\det = 2\cdot4\cdot1\cdot5+\dotsb+3\cdot1\cdot1\cdot4 - 7\cdot1\cdot4\cdot3-\dotsb-5\cdot5\cdot4\cdot1 = 171$  Is this valid?


game data transfer from on account to another

I play clash of clan on my mom s account now I have my own account so I want to transfer the game data from my moms account to my account I am using android so google+ please help.


How to reinstall Ubuntu over my old installation?

I have a machine that came with 12.04 LTS pre-installed. After working seamlessly, it sat unused for a bit and now will not boot properly. I've searched for fixes, but none has worked. I'd like to just do a "clean install" of 12.04.3.  I have created a bootable DVD. Once I'm in the boot menu and boot from the DVD, is there anything else I need to do? Will the installer "overwrite" what is already installed or do I need to remove the old OS first? I won't end up with two partitions, one with the old broken OS and one with the newly installed one, will I?  Please use as simple as language as possible when answering.


If $\gcd(a,b)=d$, then $\gcd(a/d, b/d)=1$

So, I think that I understand the proof.   The idea is that we want to establish the inequality that says that $c\leq 1$ and with the idea that the $\gcd$ of two numbers is always greater or equal than $1$, then we will know that can't be negative or zero, thus $c=1$ (correct me if my understanding isn't correct).   The idea of how I understand a proof is that we must say only what is necessary, any excess verbose is bad. So, the part of the proof that I find weird it's when it says: "We will do this by showing that $c\leq 1$ and $c\geq 1$." Where did the author prove that the inequality $c\geq1$? Is there something that I'm missing?     Thus $cd \leq d$. Since $d$ is positive, this gives $c \leq 1$. Hence $c = 1$, as was  to be proved.


Getting a regex to validate EVERY email address

I am doing  exercise on CodeEval. I have submitted my code a number of times but the maximum score I seem to get each time is 95. There are 20 test cases(email addresses) that the site runs against a submitted code. This means that there is one particular email in which one my code is giving the wrong answer to. Below are my 2 functions (which have given me the highest score yet, of 95) for checking a valid email. The difference with each is that each time I'm trying out a different regex:  FUNCTION 1  private static boolean isValid(String str) {     Pattern pattern = Pattern.compile("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$", Pattern.CASE_INSENSITIVE);     Matcher emailAddress = pattern.matcher(str);     return emailAddress.matches(); }   FUNCTION 2  private static boolean isValid(String str) {     Pattern pattern = Pattern.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$", Pattern.CASE_INSENSITIVE);     Matcher emailAddress = pattern.matcher(str);     return emailAddress.matches(); }   I have tried to do some research on regex on here and with some books and it seems like the concept of regex is not necessarily exact when it comes to validating email addresses. The hope is to validate ALMOST all email address. However, CodeEval seems to think otherwise. I tried using the regex from  but their online editor/compilers complained of 100+ errors with that regex. My question is, is there some other regex that surely validate EVERY single email under the sun? Thank you in advance for any comment(s)/answer(s)


What are the strengths and weaknesses of each follower?

I've been playing mostly multiplayer so far, so I haven't had much experience with using followers. But now that I started a new character that I will be playing solo, I will surely need a follower to keep my squishy self out of harm's way. This has got me wondering: Which follower should I choose?  What are the strengths and weaknesses of each of the followers?  Which followers would you suggest for each of the character classes, and why?


Hyperref package isn't coloring url links

Forgive me if this question has been answered elsewhere, but my googling was unable to find the solution.  Below is a MWE. The issue is that the link which I am trying to include on the copyright page is not being colored. I would like it to be colored. I think the issue might be due to the fact the I am using \input to include the content of the copyright page. I prefer to do this because I need to make several PDFs of this content but in different formats and keeping the content separate from the formatting is just easier for me. When I compile this with pdflatex the link for the url is black. The workaround  is an option, however I would prefer to set this through the hypersetup environment.  document.tex:  \documentclass[12pt, letterpaper, draft]{memoir} %% Packages \usepackage{graphicx} \usepackage{xcolor} \usepackage{hyperref} \usepackage{hyperxmp} \usepackage{lipsum}  %% Package Configuration \graphicspath{{../}} \makeatletter   \AtEndDocument{\hyxmp@find@metadata\hyxmp@embed@packet} \makeatother \hypersetup{     colorlinks=true,     linktoc=all,     urlcolor=blue,     pdfauthor={An Author},     pdftitle={A Title},     pdfcopyright={Copyright © 2017 by An Author. Rights reservation statement.} } %%%% The documet \begin{document} \title{A Title} \author{An Author}  \frontmatter %% Copyright \input{copyright.tex}   %% Table of Contents, Introduction \tableofcontents*  \mainmatter \part{A Part} \lipsum \backmatter \end{document}   copyright.tex:  \begin{titlingpage} \centering Copyright \copyright ~ 2017 An Author.  Rights reservation statement. \url{https://tex.stackexchange.com/questions/} \end{titlingpage}


Is Multiplying the Inverse Better or Worse?

When dealing with double data types is multiplying by the inverse better or worse? Which way is faster? Which way uses less memory? Which way is preferred? How does MSIL handle this? SquareInches = MMSquared / 645.16  SquareInches = MMSquared * 0.0015500031000062000124000248000496    NB: 10K users will note that this is a duplicate of , which was deleted because the original question asker decided to berate everyone in the 'comments' section of the question.  This question was reposted because it is a 'good' question. Please 'uncheck' Community Wiki for your answer, as I'm only posting this as CW so that it's not seen as a 'reputation' grab. Related Question:


Why is a statement "vacuously true" if the hypothesis is false, or not satisfied?

Why isn't a conditional statement said to "not apply" instead of be "vacuously true" if the hypothesis is not satisfied? That would seem more appropriate.


Change Mozilla settings globally on internal network

We have a network in our company and I want to set network.automatic-ntlm-auth.allow-non-fqdn parameter to True in Mozilla FireFox for all clients,how can I do this?


My MacBook Pro with Retina display has the following problem:   Left Shift Key not functioning Sometimes Shift is on automatically and when restarting, will restart in safe mode   What I've done:   Try using USB keyboard, the problem persist (always in Shift e.g press 8 will output *) Restart holding OptionCommandRP, get option to reinstall and three others Restart holding OptionCommandOF, the problem is gone but not for long (first time, it takes a day to happen again.. now, every 30 minutes or so) Install Karabiner-EventViewer, the press the Left Key definitely give no response; when my MacBook Pro in Shift, the log shows Shift flags for every key pressed. Reinstall macOS, seems not solving my problem   How can I stay out of safe mode, and use the functionality of shift keys?


Don't restart my app if already it is open

I have a JavaFx App, packaged and installed on my desktop, but I have a problem when I open two instances, the second one gives me a database blocking error. My idea is to launch the application only once, and if the user tries to open another copy of the app that is already open to show the original instance and not open another (prevent it from running twice if it is already open).


I created PHP function to list all users from table and want to sort it according the column (click on column name to sort ASC/DESC)  function getAllUsers($order_by, $format) {   global $conn;   $result = array();   try {     $query = $conn->prepare("SELECT * FROM user ORDER BY ?, ?");     $query->execute(array($order_by, $format));     $result = $query->fetchAll(PDO::FETCH_OBJ);   } catch (PDOException $e) {     echo $e->getMessage();   }   return $result; }   The PHP page is like this:  $order_by = array(1 => 'group', 'name', 'email', 'user_last_login'); $how = array(1 => 'ASC', 'DESC'); $sorting = 2; $format = 1; if(isset($_GET['format'])){   if($_GET['format']==1){       $format=2;   } else {       $format=1;   } } foreach(getAllUsers($order_by[$sorting], $how[$format]) as $user) {   echo $user->name. " ". $echo->user_last_login. "<br />"; }   The code returns me data, but it is sorted wrong (always according to the first column in the database. If I add particular name of the column to the function to be sorted data by, I get correct result. I would like to solve it by using variables in the function.  Thanks for help.


Are the "umbles" etymologically related?

From      And we show telltale signs of early hypothermia, what the doctor and   the National Institutes of Health and other cold-weather cognescenti   call the "umbles."      First we lose some fine motor skills, McLaren says, "and we start to   fumble. And tumble. And stumble."      Then our cognitive abilities are compromised. "We mumble and we   grumble."   Are the "umbles", such as fumble, tumble, stumble, mumble and grumble, etymologically linked, either in terms of sharing a common ending, or entire words having a common ancestor?  Trying to do a search of the etymology of the umbles ended up giving the etymology of the word  instead.


I apologize if this is too obvious, but I crave for a reasonable definition/explanation - why is  $(-1)(-1)=1$?  Something akin to the reason $a^{-1}=\frac{1}{a}$, I.e. because $a^{-1}a^1=a^{1-1=0}=1$, so we get $a^{-1}=\frac{1}{a^1}=\frac{1}{a}$ by dividing both sides by $a^1$.  That sort of stuff.


C# - Sort list containing alphabetic entries and alphanumeric entries

I have a list similar to this: List<Item> myList = new List<myObj>(); myList.Add(new Item({ val = A1, text="A1 - Alpha1"}); myList.Add(new Item({ val = A2, text="A2 - Alpha2"}); myList.Add(new Item({ val = A10, text="A10 - Alpha10"}); myList.Add(new Item({ val = A, text="A - Alpha"});  I'm looking to order this list alphabetically by their values so: "A", "A1", "A2", "A10"  would be the desired order but I end up getting: "A", "A1", "A10", "A2"  when using Linq's .OrderBy(x=>x.val) method. I have tried some answers on Stack Overflow using custom ordering but these answers don't account for a mixture of values where it may or may not contain a numeric entry. Some of these orders are involving conversions to ints which won't satisfy all the values in my list. How would it be possible to obtain the correct ordered result?


Workaround how to use expl3 functionality in tikz

What I want to do  I want to create a command \planfigur{<edges>}{<angles>} which draws a triangle using TikZ. \planfigur should have 2 mandatory arguments, which let me specify edges and/or angles (where a = alpha, b = beta and c = gamma) of the triangle, which are drawn in red instead of black color.   E. g. \planfigur{ab}{bc} draws a black triangle, where the edges a and b and the angles beta and gamma are red.    I use expl3 and xparse. I already have read (), that there are problems in using expl3 and tikz together (which makes sense).  So I played around and tried to outsmart TikZ. I had the following idea, which unfortunately doesn't work (1:0 for TikZ :-)). The approach is to move all expl3 code into a new command, where I can use \tl_if_in:nnT to check the arguments.  Code  \documentclass{article}  \usepackage{expl3, xparse}  \usepackage{tikz} \usetikzlibrary{calc}  \ExplSyntaxOn  \tl_new:N \__edu_planfigur_temp  \DeclareDocumentCommand \planfigurLines { m } {    \tl_clear:N \__edu_planfigur_temp    \tl_if_in:nnT {#1} {a} {     \tl_put_right:Nn \__edu_planfigur_temp {\draw (b) -- (c);}   }    \tl_if_in:nnT {#1} {b} {     \tl_put_right:Nn \__edu_planfigur_temp {\draw (a) -- (c);}   }    \tl_if_in:nnT {#1} {c} {     \tl_put_right:Nn \__edu_planfigur_temp {\draw (a) -- (b);}   }    \tl_use:N \__edu_planfigur_temp }  \DeclareExpandableDocumentCommand \planfigurAngles { m } {   \tl_if_in:nnT {#1} {a} {     \tl_put_right:Nn \__edu_planfigur_temp {\draw ($(a) + (0:1)$) arc (0:40:1) ($(a) + (20:0.7)$) node {$\alpha$};}   }   \tl_if_in:nnT {#1} {b} {     \tl_put_right:Nn \__edu_planfigur_temp {\draw ($(b) + (120:1)$) arc (120:180:1) ($(b) + (150:0.7)$) node {$\beta$};}   }   \tl_if_in:nnT {#1} {c} {     \tl_put_right:Nn \__edu_planfigur_temp {\draw ($(c) + (220:1)$) arc (220:300:1) ($(c) + (260:0.65)$) node {$\gamma$};}   }    \tl_use:N \__edu_planfigur_temp }  \ExplSyntaxOff  \DeclareExpandableDocumentCommand \planfigur { m m } {   \begin{tikzpicture}[scale=0.65, line join=round, thick]      \coordinate (a) at (0,0);     \coordinate (b) at (5,0);     \coordinate (c) at (3.37, 2.83);      \draw (a) -- node[below] {$c$} (b) -- node[above right] {$a$} (c) -- node[above left] {$b$} (a) -- cycle;      \draw (a) node[left] {$A$};     \draw (b) node[right] {$B$};     \draw (c) node[above] {$C$};      \begin{scope}[color=red, fill=red!25, very thick]       \planfigurLines{#1}       \planfigurAngles{#2}     \end{scope}  \end{tikzpicture} }  \begin{document}  \planfigur{ac}{a}  \end{document}   Error     ! Package pgf Error: No shape named 0:1 is known.      See the pgf package documentation for explanation. Type  H     for immediate help.  ...                                                      l.70 \planfigur{ac}{a}


How do I create El Capitan installer on a Catalina (or post-El Capitan) installed Mac for use on USB boot installer

I have downloaded the El Capitan dmg file (InstallMacOSX.dmg) provided by Apple. The expanded dmg image contains the package "InstallMacOSX.pkg" which should be run to create the El Capitan installer but fails with the following message "This version of OS X 10.11 cannot be installed on this computer." presumably because quite reasonably it would not make sense to install on top of a later version of the OS. However in this case I want to create a boot USB drive for an installation on another Mac.  I am stuck in a chicken and egg situation where I need another machine running El Capitan or earlier to create and El Capitan boot installer.


Convert epoch time to dd/MM/yyyy using JAVA

I need to convert a String which is a epoch (Unix time) format to a Date class an after a String formatted (dd/MM/yyyy).  Thank you for your help !


How to write a script to sudo the last command

Usually, for some commands such as apt-get install xxx, I forget to add sudo first, then I need to retype it. What I want is in such cases, I just type a simple command, for example resudo. It will sudo my last command sudo apt-get install xxx. Is it possible in bash?


Munkres: Compact subsets of Hausdorff Space

Claim:If $A,B$ are compact disjoint subsets of the Hausdorff space $X$, then there exists disjoint open sets $U,V$ containing $A,B$ resp.   Would I be on the right track in saying that since $A,B$ are compact subsets of $X$ then choose $\{\mathbb{A}_\alpha \}$, $\{\mathbb{B}_ j \}$ to be open covers for $A,B$ resp. Then since $X$ is Hausdorff we have that for each $x$ in $\{\mathbb{A}_\alpha \}$ and $y \in \{\mathbb{B}_j \}$ there exists disjoint open sets $U,V$.  Now if we take $U = \cup_{x \in \mathbb{A}_\alpha} U_x$ and $V = \cup_{y \in \mathbb{B}_j} V_y$ we have our disjoint open sets.  Comment: However, I didn't uses the fact that $A,B$ were disjoint, or that they are closed, since every compact subset of a Hausdorff space is closed.  Can someone give me some useful hint? This is hw, so I don't want and answer. Thanks in advance.


As late as last week my setup for biblatex worked fine. Going back to the same project today not even a minimal file compiles:  \documentclass{article}   \usepackage{biblatex} %\addbibresource{biblatex-examples.bib}   \begin{document}  test%foo\nocite{*}    %\printbibliography  \end{document}   but breaks off with   /usr/local/texlive/2017/texmf-dist/tex/latex/biblatex/biblatex.sty:3776: LaTeX  Error: Missing \begin{document}.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.3776   australian,newzealand} ?  /usr/local/texlive/2017/texmf-dist/tex/latex/biblatex/biblatex.sty:3776: Math f ormula deleted: Insufficient symbol fonts. \expandafter ->american|  l.3776   australian,newzealand}   And keeps repeating the last one until    (That makes 100 errors; please try again.)   when I ignore it.  Files without biblatex work as expected.  Using tlmgr to go my two backup versions of biblatex back in time to 1st Jan I still get the same errors.  Could this be another update from the last week or so that causes this?  If I swich back to TL 16 things work as expected. (For my work I need TL 17 because of packages.)


How can I find out a researcher's current affiliation?

What is the best way to find out a researcher's current affiliation? Let's say I know a name and a field, but not much more.   A google search seems like the most obvious approach, but unfortunately university personnel or research group pages often seem to be quite poorly maintained, and it is not uncommon that someone is listed even if they left more than a year ago.  Early-career researchers are particularly difficult to track down since they often have less of a "presence" on institution webpages and are likely to be moving relatively frequently.


Usage of *what* for *that* or *than* in BrE

Occasionally, when watching British television or movies, I've come across a construct that isn't used in AmE. Using what as a replacement for that or than as a determiner or comparison. Here is an example from the classic :  C: Never mind that, my lad. I wish to complain about this parrot what I purchased not half an hour ago from this very boutique. O: Oh yes, the, uh, the Norwegian Blue...What's,uh...What's wrong with it? C: I'll tell you what's wrong with it, my lad. 'E's dead, that's what's wrong with it!  In AmE we would always say ... parrot that I purchased ... I've also heard it used as a replacement for than in a comparison:  He thinks he's got bigger balls, what I got!  I'm guessing that in this case it's merely a colloquial deletion of than and should be than what I've got. My question:  Is this considered a colloquial usage in BrE?  Or is it fairly standard in the Queen's English? It seems to me that it might be colloquial based upon John Cleese's accent and intonation, but I don't have the ear for the British accent to pinpoint a regional vs. a socio-economic class of accent.


Automate the downloading of Data Export zip files

After a Data Export has completed there can be a large number of zip files to download.  If there are 80+ files at 130 MB (In Summer 12 the limit has been increased to 512 MB) each and each file takes several minutes to download it can be a time consuming process to do manually.  Is there a way to automate the retrieval of these zip files?


How do I prove $2 \binom n2 + 4 \binom n4 + 6 \binom n6 + \cdots = n 2^{n-2}$  I thought about using known $\sum k\binom nk = n2^{n-1} $ and then just dividing it by 2. But is it possible you can help me with writing the full solution, because for the first known theorem you need to derivate $(a+b)^n $and also $a=1, b=x$. But for this one it won't work. maybe I can just prove that known theorem I presented, prove it, and then just divide it by 2. because the known theorem is  $1 \binom n2 + 2 \binom n4 + 3 \binom n6 + \cdots$ (co efficients are divided by two than the presented question)  Edit: I posted a solution.


I was trying to update my Ubuntu 14.04 system using terminal but I got this result  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/restricted/binary-i386/Packages  407  Proxy Authentication Required   Also in the top-right corner of my PC there is a red triangle which says the update information is outdated. Again when I tried to download something from software repository there comes a window which says untrusted package ,then when I select ok then another window pops out which says check your Internet connection. But I am well connected to the Internet(under proxy network),so what should I do?


How to write the word 'smart phone' in a research article?

Smart phone Smartphone Smart-phone   I am really looking for some help regarding hyphen (-) issue in text found in research article. Is there any standard method how to use it?


While starting MariaDB I got [Warning] Could not increase number of max_open_files to more than 1024 (request: 4607)  $ sudo systemctl status mysqld ● mysqld.service - MariaDB database server   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)   Active: activating (start-post) since Tue 2014-08-26 14:12:01 EST; 2s ago Main PID: 8790 (mysqld);         : 8791 (mysqld-post)   CGroup: /system.slice/mysqld.service       ├─8790 /usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid       └─control     ├─8791 /bin/sh /usr/bin/mysqld-post     └─8841 sleep 1  Aug 26 14:12:01 acpfg mysqld[8790]: 140826 14:12:01 [Warning] Could not increase number of max_open_files to more than 1024 (request: 4607)   I tried unsuccessfully to fix the problem with max_open_files inside this file:  $ sudo nano /etc/security/limits.conf  mysql           hard    nofile          8192 mysql           soft    nofile          1200   I even restarted the computer again, but I got the same problem.  The /etc/mysql/my.cnf looks like this:  [mysql]  # CLIENT # port                           = 3306 socket                         = /home/u/tmp/mysql/mysql.sock  [mysqld]  # GENERAL # user                           = mysql default-storage-engine         = InnoDB socket                         = /home/u/tmp/mysql/mysql.sock pid-file                       = /home/u/tmp/mysql/mysql.pid  # MyISAM # key-buffer-size                = 32M myisam-recover                 = FORCE,BACKUP  # SAFETY # max-allowed-packet             = 16M max-connect-errors             = 1000000 skip-name-resolve sql-mode                       = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY sysdate-is-now                 = 1 innodb                         = FORCE innodb-strict-mode             = 1  # DATA STORAGE # datadir                        = /home/u/tmp/mysql/  # BINARY LOGGING # log-bin                        = /home/u/tmp/mysql/mysql-bin expire-logs-days               = 14 sync-binlog                    = 1  # CACHES AND LIMITS # tmp-table-size                 = 32M max-heap-table-size            = 32M query-cache-type               = 0 query-cache-size               = 0 max-connections                = 500 thread-cache-size              = 50 open-files-limit               = 65535 table-definition-cache         = 1024 table-open-cache               = 2048  # INNODB # innodb-flush-method            = O_DIRECT innodb-log-files-in-group      = 2 innodb-log-file-size           = 128M innodb-flush-log-at-trx-commit = 1 innodb-file-per-table          = 1 innodb-buffer-pool-size        = 2G  # LOGGING # log-error                      = /home/u/tmp/mysql/mysql-error.log log-queries-not-using-indexes  = 1 slow-query-log                 = 1 slow-query-log-file            = /home/u/tmp/mysql/mysql-slow.log   How is it possible to fix the problem with max_open_files?


Looking for a particular book, and all I remember is the cover

I first read this book around 1983-1985 (no actual idea of when it was first printed), and, while I can't remember all that much from the book itself (other than enjoyable), I do remember the cover of the book.  The cover prominently featured and depicted a robot, silver in color, sitting down (maybe in a field of some sort?), drinking a cup of tea in a very posh 'pinky extended' fashion.  I've brought this fact up to friends, who have also read the book (and who are also trying to remember the book), and they always come back with 'Douglas Adam's: The Long Dark Teatime of the Soul.'  I am pretty sure this is not correct, for a quick GIS of that book, shows no covers bearing what I remember.  A small, small part of me, thinks it was a Heinlein book, but, none of the covers look familiar, I imagine it's possible the changed cover on a re-print, but, none of the titles stick out to me either.  Any help, and all the internets to you, if you find this book!


I have a French residence permit. Do I need a visa if I transit in the UK?

As said in the title, I have a French residence permit and I would like to know if I need a UK visa if I transit there?  Thank you!


I am working in python and i am trying to create a database and then a table to populate data everything works but when i try to insert the data in that table it does not populate in table.  Here is my code:  db = MySQLdb.connect(host="localhost", user="root", passwd="123edcde") c = db.cursor()  c.execute('create database if not exists testMovies') db.select_db('testMovies')  sql = '''CREATE TABLE `testMovies`.`moviesDB` (          `cinema_id` INT(20) NULL DEFAULT "0" ,         `movie_id` VARCHAR(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,         `added` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,         `showtime` VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,         `theatre` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ,         `lang` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL     ) ENGINE = InnoDB;''' try:     c.execute(sql) except:     pass  sql = '''INSERT INTO `moviesDB`(`cinema_id`, `movie_id`, `added`, `showtime`, `theatre`, `lang`) VALUES ("1","why is","it","not","working","?")''' print c.execute(sql)   When i tried to print as well as execute the insert statement, it returns "1", means it was successful but when i try to check the row, i find table stays empty. I have manually tried executing this insert command and it works but i do not know why it is not working with python script in my development ubuntu 14.04 server.


This is from a recent article:     He was rushed to the hospital immediately and a battery of tests was   conducted.   Now shouldn't it be     He was rushed to the hospital immediately and a battery of tests were   conducted.   Which is correct and why is it correct? :)


Is there a way to change the destination of a link with a click with jQuery?

Something like  Click here.
Button
 /* when pressed, "href" link changes */   And when the button is pressed. the "www.somewhere.com" gets changed to a differend URL?  Thanks.


I have a problem that I cant solve it alone even I have read several threads here. The goal is to have 2 tables side by side with subcaption (a) and (b). However, I dont know where my mistakes are, because the tables wont appear as I would like to. Here is the code:  [![\documentclass{article} \usepackage{adjustbox} \usepackage{graphicx}  \begin{document}  \begin{table}\[!htb\]     \caption{Global caption} %   \resizebox{10cm}{!}{     \begin{minipage}{.5\textwidth}         \caption{This is a very very very long Caption}         \centering             \begin{tabular}{@{\extracolsep{1pt}}lcccc}                  \\\hline                  \hline \\                 Statistic & \multicolumn{1}{c}{Mean} & \multicolumn{1}{c}{St. Dev.} & \multicolumn{1}{c}{Min} & \multicolumn{1}{c}{Max} \\                  \hline \\                  A & 1.000 & 0.000 & 1     & 1 \\                  B & 0.968 & 0.76  & 0.138 & 1.000 \\                  C & 0.969 & 0.009 & 0.917 & 1.000 \\                  D & 0.966 & 0.070 & 0.495 & 0.83 \\                  \hline \\             \end{tabular}      \end{minipage}%      \begin{minipage}{.5\textwidth}         \centering         \caption{This is a very very very long Caption}         \begin{tabular}{@{\extracolsep{1pt}}lcccc}          \\\hline          \hline \\         Statistic & \multicolumn{1}{c}{Mean} & \multicolumn{1}{c}{St. Dev.} & \multicolumn{1}{c}{Min} & \multicolumn{1}{c}{Max} \\          \hline \\                  A & 1.000 & 0.000 & 1     & 1 \\                  B & 0.968 & 0.76  & 0.138 & 1.000 \\                  C & 0.969 & 0.009 & 0.917 & 1.000 \\                  D & 0.966 & 0.070 & 0.495 & 0.83 \\          \hline \\         \end{tabular}      \end{minipage} %}   \end{table}   \end{document}][1]][1]   Thank you so much for your time. I really appreciate.  Best, Christine


"Unable to locate package python-pip" When trying to install from fresh 18.04 install

I was following a tutorial online for python and it had me do this:  akclark@enceladus:~$ pip install virtualenv    But I got the following:  Command 'pip' not found, but can be installed with:  sudo apt install python-pip   Easy enough, right? So I try it..  akclark@enceladus:~$ sudo apt install python-pip    But I get an error...  Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python-pip   What am I doing wrong?  EDIT: Per Comments I have tried sudo apt update  EDIT2: I tried apt-cache madison python-pip and got   N: Unable to locate package python-pip   EDIT3: grep '^deb ' /etc/apt/sources.list showed  deb http://archive.ubuntu.com/ubuntu bionic main  deb http://archive.ubuntu.com/ubuntu bionic-security main deb http://archive.ubuntu.com/ubuntu bionic-updates main


Search Engine Optimize a photography website?

Because most photography websites are mostly photo galleries, I'm at a loss on how to code my new site.  You can choose a friendly url, use alt tags for every image, include language set, meta tags, add a sitemap, doctype, maybe throw a H1, favicon, and robots.txt. There are a few things you can use microdata for, but not many.   The low amount of text makes it unique in SEO (navbar and footer texts, more or less) which means the standard guidelines of current optimization do not apply because it leaves hardly anything for search engines to grab, though it may rank higher by having less trashy code in the page itself and maybe alt text counts as much as paragraph text for keywords, though I doubt it.  All that said, what's the best way for me to design and optimize a photography website other than the techniques I listed in the second paragraph?  Image sliders? Gallery of thumbnails? What are the SEO pros and cons of each method? Page loading time may be a factor of rank, but what of large or small numbers of alt text versus faster loading time? Which is better ranking?


Find $\lim_{x\to \infty} \ln(x+1)/(\ln(x))$

I have to solve: $\lim\limits_{x\to \infty} \frac{\ln(x+1)}{\ln(x)}$. Can you give me any hints to go? Thanks a lot!


Complicated FOR loop nesting. Having trouble cleaning up legacy code

I am trying to tidy up some really bad legacy code from an old developer and I'm trying to get rid of these nested for loops. The code below shows what I'm currently working with. I've fixed this before with nested SOQL queries but nothing like this. How would this need to look to remove these for loops (except Trigger.New)? Would I use Maps? How would I do that?  map<Id,SObject> mapProperyIdBudDetail = util.GetObjFields(setPropertyId, 'Property'); map<Id,SObject> mapSpaceIdBudDetail = util.GetObjFields( PropertyMap.keyset(), 'Space');  for ( Lease__c l: Trigger.New ) {      if(mapProperyIdBudDetail.get(PropertyMap.get(l.space__c))!=null) {          lProperties = new List<SObject>{mapProperyIdBudDetail.get(PropertyMap.get(l.space__c))};              for ( SObject p: lProperties ) {                  for ( String fm: FieldMap.keyset() ) {                      if ( p.get(FieldMap.get(fm)) != Null) {                         l.put(fm,p.get(FieldMap.get(fm)));                     }                  }             }     } }


uniqueness of solutions of $ax=b$ and $ya=b$ in a semigroup .

Suppose $G$ is a semigroup in which every equation of the form $ax=b$ or $ya=b$ has a solution. Does this solution have to be unique?


How can I see the permissions of a specific directory?

I know that I can use ls -l to list all the files in a directory including their permissions, but how do I see the permissions of a specific directory. For example if I wanted to see the permissions for my /etc directory?


Insertion of perpendicular symbol at intersection of two perpendicular lines

This provides good details on . What I would like to do is to extend this somehow to add the usual geometry symbol to indicate that the two lines are indeed perpendicular. I could code a manual solution for each situation, but would like a macro, one that would draw it of an appropriate size, and allow me to choose the orientation (i.e., select one of the four quadrants) for this symbol.


I like to  find the following limit:     $\lim\limits_{n\to\infty}\sin^2(\pi\sqrt{ n^2+n})$.   Any ideas or insight would be greatly appreciated.


Moment generating function for $\frac{1}{2\theta}e^{-|x|/\theta}$

Let $X$ be the random variable with pdf $\frac{1}{2\theta}e^{-|x|/\theta}$ with $\theta>0$.  I want to find its moment generating function.  I think I’ve found it but when I try to use it to find the second moment something must have gone wrong.  I calculate it as: $$\int_{-\infty}^\infty e^{-tx}\frac{1}{2\theta}e^{-|x|/\theta} = \frac{1}{2\theta}\left( \int_{-\infty}^0 e^{-tx+x/\theta}dx+ \int_0^\infty e^{-tx-x/\theta}dx \right)$$ $$ = \frac{1}{2\theta}\left( \left[ \frac{ e^{ x(1/\theta-t) } }{1/\theta-t}\right]_{-\infty}^0 + \left[ \frac{ e^{ -x(1/\theta+t) } }{-(1/\theta+t)}\right]_0^\infty \right) $$ $$ = \frac{1}{2\theta}\left(\frac{1}{1/\theta-t}-\frac{1}{1/\theta+t}(0-1)\right) $$ $$ = \frac{1}{2}\left(\frac{1}{1-t\theta}+\frac{1}{1+t\theta}\right) $$ I justify that this all works out if $t$ is chosen in an interval about 0 no larger in radius than $1/\theta$.  Now Evaluating at $t=0$ tells me the expectation of $X$ is 1, sounds good.  But if I compute the derivative to find the second moment, $$M_X’(t)=\frac{1}{2}\left(-\frac{1}{(1-t\theta)^2}(-\theta)-\frac{1}{1+t\theta)^2}(\theta)\right) $$ $$ = \frac{1}{2}\left(\frac{\theta}{(1-t\theta)^2}-\frac{\theta}{(1+t\theta)^2}\right)$$ Evaluated with $t=0$ this gives that $E[X^2]=0$ which cannot be correct.  Yet the MGF seemed valid in a domain around 0, and infinitely differentiable in that domain, no?


What should I do if my Facebook account is taken over by another person?

My daughter's account has been taken over by an other person. It is the second time in four days, What to do?   She already asked twice for a new log in way, she logged in successfully, but the next day the account was again taken over.


Contour integration of $e^{i\lambda z}\frac{\sinh(az)}{\sinh(\pi z)}$

For $-\pi<a<+\pi$ the integral $$\int_{-\infty}^{+\infty} e^{i\lambda x}\frac{\sinh (ax)}{\sinh(\pi x)}dx$$ is expected to return $$\frac{\sin(a)}{\cos(a) + \cosh(\lambda)}$$ but I am getting $$\frac{\sin(a)}{e^{\lambda}+\cos(a)}$$ by considering a rectangular contour. Please help.


:) I need some help with calculating the limit $$\lim_{n\to\infty}\dfrac{\ln(n!)}{n\ln(n)}.$$ I think that it's easy to see that we can find it using d'Alembert (square root) criterion, because, obviously, $\forall n\in\mathbb{N}_{\geqslant 2}:\phi_n>0$, where $\left(\phi_n\right)_{n\in\mathbb{N}_{\geqslant 2}},\,\phi_n:=\dfrac{\ln(n!)}{n\ln(n)}$, so I did the following observation: $$\dfrac{\ln(n!)}{n\ln(n)}=\dfrac{1}{n}\cdot\dfrac{\ln(n!)}{\ln(n)}=\dfrac{\dfrac{1}{n}\ln(n!)}{\ln(n)}=\dfrac{\ln(n!)^{\frac{1}{n}}}{\ln(n)}=\dfrac{\displaystyle\sqrt[n]{\ln(n!)}}{\ln(n)}=\displaystyle\sqrt[n]{\dfrac{\ln(n!)}{\ln^n(n)}}.$$ Ok. d'Alembert tells me that I should do the limit $$\ell:=\lim_{n\to\infty}\bigg\lvert\dfrac{x_{n+1}}{x_n}\bigg\lvert=\lim_{n\to\infty}\dfrac{x_{n+1}}{x_n},$$ where $\left(x_n\right)_{n\in\mathbb{N}_{\geqslant 2}},\,x_n:=\dfrac{\ln(n!)}{\ln^n(n)}$. We have, then: $$\ell=\lim_{n\to\infty}\dfrac{\ln[(n+1)!]}{\ln^{n+1}(n+1)}\cdot\dfrac{\ln^n(n)}{\ln(n!)}=\cdots=\lim_{n\to\infty}\left[\dfrac{\ln(n)}{\ln(n+1)}\right]^n\left[\dfrac{1}{\ln(n+1)}+\dfrac{1}{\ln(n!)}\right]$$ but what about the next?


Question about bolding math and text simultaneously

Let me preface this by saying I am fairly hack-and-slash when it comes to LaTeX and so my solutions aren't generally very elegant. Also I will try to be specific with my question, but if you need more information feel free to ask. I am currently writing up solutions to worksheets and was wondering if there was a way I could bold the entire question (formulas and all)? My current set up is something like this:  \begin{document}  \item %The question  \Sol{% Here goes the solution, this personalized command changes the margins a bit}  \end{document}   So basically what I would like to do is have the question number and the question in bold. I believe there is a way to change all math to bold and so I figured I could rig up something like:   \newcommand{\Q}{#1}{*Start-Math-Bold* {\bftext{\item{#1}}}*End-Math-Bold*}   and just use \Q{The question} to achieve desired result. Any thoughts?


I have these 2 scripts, one is writing to the file:  #!/usr/bin/env bash  while true; do    sleep 1;    echo "$(uuidgen)"  >> /tmp/cprev.stdout.log done;   the other is reading the last 10 lines and overwriting the file with those 10 lines:  #!/usr/bin/env bash  while true; do    sleep 5;    inotifywait -e modify /tmp/cprev.stdout.log | tail /tmp/cprev.stdout.log > /tmp/cprev.stdout.log done;   for some reason the tail command is truncating the file - what I want to do is write to the file only when the tail command finishes getting all 10 lines from the file, how can I do that?  what actually happens:   tail truncates file tail reads 0 lines   but what I want to do:   tail reads 10 lines tail truncates files tail writes 10 lines from above   how can I do that?


What are the best algorithms (and explanations) for representing and rotating the pieces of a tetris game?  I always find the piece rotation and representation schemes confusing.  Most tetris games seem to use a naive "remake the array of blocks" at each rotation:    However, some use pre-built encoded numbers and bit shifting to represent each piece:    Is there a method to do this using mathematics (not sure that would work on a cell based board)?


Is 80 bits of key size considered safe against brute force attacks?

I came across the  family of ciphers for small domain input blocks. They cipher arbitrary block lengths: 32, 48 and 64, but their key size is 80 bits only.   Is 80 bits of key size considered safe against brute force attacks with current state of the art processors?


cloudflare for joomla website and how to make it more optimized

In our office somebody told to use cloudflare for better website browsing at client end.!!  I've put our company's website on cloudflare, now.. what other changes should i make to make my website faster accessible by client end. The developer before me made our company's website in Joomla.. I'm not a good developer in Joomla either. Is joomla itself a faster kind of stuff producer???  And what other stuff should i follow to make my joomla website faster?


Since light beams carry momentum, why would a person holding a flashlight not feel a recoil similar to that of a rifle being fired?


i want to compare String array with String array but i not successful

String [] abcd={"A","B","C","D","E","F","G","H","I","J","K","L","N","M","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; JButton [] efgh = new JButton[abcd.length]; String [] secretWord={"S","W","I","N","G"}; JTextField [] input= new JTextField[secretWord.length]; String assign; String [] content = new String[5];  for(int a=0;a<abcd.length;a++)     {         if(e.getSource()==efgh[a])         {             efgh[a].setEnabled(false);             if(i<input.length)             {                 input[i].setText(abcd[a]);                 i++;             if(i==input.length)             {                    for(c=0;c<input.length;c++)                     {                         assign=input[c].getText();                         content[c]=assign;                         System.out.print(content[c]);                      }             }         }     }         if(c==4)         {             if(content[0] == secretWord[0]) && content[1]==secretWord[1] && content[2]==secretWord[2] && content[3]==secretWord[3] && content[4]==secretWord[4])             {                 output1.setText("You are right!!!!");             }             else             {                 output1.setText("Try again!!");             }         }      }      when user click the button at all , i want to proceed the step content[value] with secretWord[value], but always got "Try Again".. where are the statement i have been wrong??please me thank you very much..


How to cross-reference an inequality with \cref?

I have inequalities being cross-referenced by \cref as equations.  1-) How can I change that? (and still have inequalities with the same numbering as equations)  2-) How can I change that and have inequalities with their own numbering?  \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{cleveref} \usepackage[letterpaper]{geometry} \begin{document}  \begin{flalign} &f(x) \geq g(x)& \label{i:positivity} \end{flalign}  Admitting that \cref{i:positivity} has a solution, ...    \end{document}


Proving $\phi(m)|\phi(n)$ whenever $m|n$

Show that $\varphi(m)|\varphi(n) $ whenever $m|n$.  I  am stuck after writing the formula. I know that if $m$ divides $n$, that means one of the prime factors of $n$ would include $m$ or a multiple of $m$.  $$ \varphi(n)=n\prod_{i=1}^{k}\Bigl(1-\frac{1}{p_{i}}\Bigr)  $$


The official theorie says that they don't need a medium, it states that:   EM waves are a disturbance in the field  First of all, what field?? An electromagnetic one ? I mean, I consider that field as a medium, and from where does the field come, it is the ones that electrons in atoms create??, because that's a charge flowing and that should make a  electromagnetic field.  But here comes the question:  If we could create a total vacuum without any single atom or thing inside there, and with no electromagnetic field outside it affecting the vacuum, do EM waves would propagate??  PD: Wait for more "mindblowing" questions relative to my tastes.


Why do-release-upgrade does not show 14.04 even if it was officially released?

I do have 12.04 LTS and hearing that 14.04 LTS was released I (wrongly) assumed that I will be able to upgrade machines using the standard distribution upgrade path.  Still it seems that 'sudo do-release-upgrade' does not see any new release.  Why it doesn't show it and when is this going to be visible?  Obviously, I do not want to force the usage of development / unstable versions.   Also, considering the 14.04 was released on April 17, why it was released when it was not considered "stable" yet? ... there is something in the release process that doesn't make sense to me :p


Why is Math.round() not rounding up when the value is 0.5?

Currently have a formula which essentially looks like this:  Math.round((20.49-14.99)*5);   The resulting number is 27.5 and AFAIK, Math.round() should round UP if the number is 0.5 and above and round down if it is below. Unless I've misunderstood, I was assuming the result would be rounded up to 28 (as it does in Microsoft Excel, for example), but instead, it rounds down to 27.  At first I assumed it had something to do with my code, but when I console logged it, the result was exactly the same.   Am I missing something and if I have, how would I round-up from 0.5 onwards?


When running invalid commands without any parameters or options, in my experience we get only two kinds of messages which are exemplified below:  ~$ Date No command 'Date' found, did you mean:  Command 'yate' from package 'yate' (universe)  Command 'date' from package 'coreutils' (main)  Command 'late' from package 'late' (universe)  Command 'kate' from package 'kate' (universe) Date: command not found ~$ fjldjflsk fjldjflsk: command not found ~$   I'm interested in knowing more about how this works. Specifically, when can I know which of these two kinds of messages I'm going to get prior to running the command? Is there some kind of environment variable or any other device that would allow me to alter this behavior easily? I'd like to get only the second kind of message.


How can I install an .exe file (Avast Internet security) in Ubuntu?

I cannot find a way to install Avast Internet Security 6.0.1367.exe from the exe file directly.  I would like to know how to install it on my computer, to know the right commands to install it from terminal.


I retrieve data from java then insert into Oracle, problem is oracle took "" values then convert it into NULL into the table.  this is unwanted behaviour, and it cause problems when I retrieve it from the oracle again, which  I am expecting a "" rather than NULL  I prefer a elegant solution setting something on the oracle server side. a global config or something rather than putting millions of if statements into my Java code.


"Assist someone do" vs. "assist someone to do (or "in/with" doing)"

I just recently came across "assist someone do" searching Google for examples to my previous question, and would like to check with you whether it is an acceptable option to "assist someone to do (or "in/with" doing)", or a snapshot of language in transition -- analogous with "help someone do" -- that I caught here.  Please consider the following examples for this:     NAFDAC is to assist you do your business right.      Our company will assist you do your assignments...      (Go down to bottom of page and look up "Transtec Inc.,    Robert Rasmussen PE") We are a specialty engineering company with award-winning expertise in pavements and pavement materials. We can assist you do your job better.


Kernel driver not installed (rc=-1908) verr_vm_driver_not_installed

I use Ubuntu 17.10,but i can't run anyone VM. Here is my problem's screenshots.    Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing '/sbin/vboxconfig' as root. where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.  I have ran "sudo /sbin/vboxconfig", but nothing happened.


How overloading methods affects their time to execute

I want to know how overloading methods affects their execution time. I made a simple project with method add() public static double add(double a, double b){         return a+b;     }  Next step I overload this method with new parameters. public static double add(double a, double b, double c){         return a+b+c;     }  public static double add(double a, double b, double c, double d){         return a+b+c+d;     }  The results I'm getting are really strange. Method with 2 parameters takes much longer to execute than method with 4 parameters. I have no idea why it's happening because I thought more parameters = longer execution time. public static void main(String[] args) {         double avg1 = 0;         double avg2 = 0;         double avg3 = 0;         int a = 10000000;          for(int i = 0; i < a; i++){             double startTime = System.nanoTime();             add(1,1);             double endTime   = System.nanoTime();             double totalTime = (endTime - startTime)/1000000;             avg1 = avg1 + totalTime;         }         for(int i = 0; i < a; i++){             double startTime = System.nanoTime();             add(1,1,1);             double endTime   = System.nanoTime();             double totalTime = (endTime - startTime)/1000000;             avg2 = avg2 + totalTime;         }         for(int i = 0; i < a; i++){             double startTime = System.nanoTime();             add(1,1,1,1);             double endTime   = System.nanoTime();             double totalTime = (endTime - startTime)/1000000;             avg3 = avg3 + totalTime;         }         System.out.println(avg1/a);         System.out.println(avg2/a);         System.out.println(avg3/a);      }  Here is example result what I'm getting: 2.0166120000545003E-5 1.9719660000539676E-5 1.9088180000519356E-5  And it seems that running method with 2 param takes longer to run then method with 3 parameters. And method with 3 parameters takes longer to run then method with 4 parameters. Any ideas what I'm doing wrong?


Show that if $ab$ has finite order $n$, then $ba$ also has order $n$. - Fraleigh p. 47 6.46.

Attempted proof based on  and .  Given: $a,b$ elements of $G$, and $ab$ has finite order $n$.   Hence $\color{magenta}{|ab| = n} \iff (ab)^n = e$.   I must prove that $n$ is the smallest positive integer        such that $(ba)^n = e.$ Notice:  $\begin{align}(\color{darkorange}{a}\color{darkcyan}{b})^n &= e \implies \color{darkorange}{a}\color{darkcyan}{b}(ab)^{n-1} = e \implies  \color{darkcyan}{b}(ab)^{n-1}\color{darkorange}{a} = e \implies (ba)^n = e \end{align} $ $\implies |ba| \le n$.  Now I must prove that there's no positive integer $m$ such that $m<n$ and $(ba)^m = e.$ For a proof by contradiction, suppose $|ba|<\color{magenta}{n}$. Then we could apply the same reasoning to find that $ |ab| ≤ |ba| < \color{magenta}{|ab|}$,  which is absurd. So $|ba| = |ab| = n. \quad \blacksquare$  Questions   Whence does $ |ab| ≤ |ba| $ arise, in the second last line?   What's the intuition of the claim proved?    How do you prognosticate that $|ba|<\color{magenta}{n}$ is impossible, and that you should prove it by contradiction?


How to have the system run a bash script to remap keys after login?

I've got a setup-notebook-keyboard.sh script that I run everytime after logging in because I like my keyboard with the    CapsLock -> Esc,  CapsLock+Key -> Ctrl+Key    setting.  I've tried to set this up before, but wasn't able to. I think I've tried setting it up in init.d and also with ubuntu "run on startup". I guess both cases didn't work because they are not run on a shell environment or something...   But anyway, I got stuck with running the script every time after startup and after closing the lid of the Notebook. Can somebody help?  Edit: I don't think this is a duplicate of 'how to persistently remap keys in Ubuntu', I have a script which does two things and I'm happy with it since I've been using it since last year, I just wasn't able to get it to run automatically and I have researched and tried it in different ways.  Edit 2: Please remove the duplicate tag. I've tried the suggestion on the question and none of them worked. I've now tried just adding a simple echo "(profanity) (location)" >> ~/file in:   ~/.profile ~/.xinitrc ~/.xsession ~/.gnomerc   The machine is just not doing nothing on the files, or I've done something very wrong.  I've tried adding a (profanity).desktop entry in ~/.config/autostart, tried using the full paths, tried /etc/X11/Xsession.d/00_xx file, tried 00 and 100, closing the lid and opening, rebooting, etc.  I test it by checking if the CapsLock key lights up or not when I press it, because after I execute setup-notebook-keyboard.sh it doesn't light up anymore.  Aditional info that may be important: I'm using gnome shell and it's a graphic user interface.  Version: 10:37:34 ~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 16.04.4 LTS Release:    16.04 Codename:   xenial   Ps.: Now I tried adding echo "(profanity)" >> file on ~/.bashrc, it runs when I open a terminal(and sorry in advance if you thought I was running ubuntu on a terminal in the first place). So... Why is it so hard to just have a script execute after I log in? No wonder I gave up on it 1 year ago x(


How to increase Pagesize of REST API call response using SSJS in Cloudpage

I am using REST API call to get history data. For this I am writing SSJS in Cloud page and am trying to store the data in a data extension. The result of REST API call is more than 100 records. But by default it is giving me page 1 , page size = 100. How to set page size to maximum? I am using a for loop, if condition in the body to get specific activity details for all Id's


Should I use Welch's (1947) approximate degrees of freedom or Satterthwaite's (1946)?

I'm confused as to the correct formula for approximate degrees of freedom to use for Welch's t-test. Satterthwaite's (1946) formula is the most commonly cited formula, but Welch gave an alternative in 1947. I'm not sure which is preferable (or used by most statistical software).  Satterthwaite's formula: $$\frac{\left(s_x^2/n_x +s_y^2/n_y\right)^2}{(s_x^2/n_x )^2/(n_x-1)+(s_y^2/n_y )^2/(n_y-1)}$$  Welch's formula: $$-2+ \frac{\left(s_x^2/n_x +s_y^2/n_y\right)^2}{(s_x^2/n_x )^2/(n_x+1)+(s_y^2/n_y )^2/(n_y+1)}$$  References:   Satterthwaite, F.E. (1946). "An Approximate Distribution of Estimates of Variance Components". Biometrics Bulletin, 2, 6, pp. 110–114.  Welch, B.L. (1947). "The generalization of "Student's" problem when several different population variances are involved". Biometrika, 34, 1/2, pp. 28–35.


Do single speed/fixed bicycles come with machined rims?

I recently purchased a Masi Fixie Riser with a flip/flop hub (gearing on both sides) and brakes, but the rims aren't machined. Is this common on $700+ single speeds?


Let $r(s)$ be a curve parametrized by arc length, and $\kappa,\kappa',\tau$ are non-zero. Show that $r$ is a spherical curve iff $(1/\kappa)^2+((1/\kappa)'(1/\tau))^2$ is a constant.    The teacher gave the hint "center = $r+(1/\kappa)N+(1/\kappa)'(1/\tau)B$". I know how to get the proof from this, but how can we show that this is the center? Please help. Thanks.


population and sample standard deviation-differences?

What is the statistical mathematical argument for the population standard deviation to be divided by N and the sample standard deviation to be divided by N-1? I have searched several places and they take it for granted, but do not offer a deeper explanation. That of accepting the formulas because that is the way it is done does not suit me.


A tool to create a color scheme for printing

I'd like to have a color scheme for printing plots, that would look 'nice'. So, I need as set of, say, 10 easily distinguishable colors that would stay different when printed.  If I use only four CMYK colors they are easily distinguished. If I print ten, like blue, light blue, green, lime..., they may turn out very similar.  What tool (something like Adobe Kuler) can I use?


Ksplice: Skipping acquire of configured file

I installed  for Ubuntu 17.10 to enable kernel live patches but now I am getting the following message when running apt update.  N: Skipping acquire of configured file 'ksplice/binary-i386/Packages' as repository 'http://www.ksplice.com/apt artful InRelease' doesn't support architecture 'i386'   I assumed a misconfiguration of /etc/apt/sources.list.d/ksplice.list but it looks fine to me:  deb http://www.ksplice.com/apt artful ksplice deb-src http://www.ksplice.com/apt artful ksplice


How to disable win10 shrink window when put a window to left edge

I have dual monitor.  In windows 7, I usually like put two or three windows in left monitor, the quick way is :   move window 1 to left edge, Windows auto resize it to haft window size move window 2 to left edge, Windows auto resize it to haft window size, move window 2 to right part of left monitor. (if need three, need adjust their width)   But in windows 10:   move window 2 to left edge would happen:     Here, window 2 replace window 1, and window 1 be shinked. Need one more click to restore window 1 and two more movements to make window 1 in left part of left monitor, window 2 in right part of left monitor.  You should know, because of dual monitor, move window 2 to right edge of left monitor would not auto resize itself to half window size.  How can I disable this shrink in windows 10 ??? I'd like the windows 7 style, no shrink, don't swap window 1 and window 2 position


Who introduced the Sandworms to Arrakis?

This question explores if the , which we know to be untrue.  This then raises a question. Who introduced the Sandworms to Dune?      This  indicates how it may be done by humans, is there any mention in the prequels etc. of who put them there? A really nice bonus would be what species originally introduced the Sandworms.


It seems to me combining "a-"and "rhythmic" would intuitively be spelled "arhythmic".  Is there a rule or some other practical reason that it's spelled arrhythmic?


How do I use a user-given string from HTML/PHP to query a MySQL database without the user putting the input in double quotes?

In my program I have an html form that takes in a name as user input:  <form action ="view_process.php" role = "form" method = "post">     ....     <input type="text" name="name_in" class="form-control" placeholder="Name here" maxlength = "30">     .... </form>   and then I have php code that puts the user input into a variable  $name_in = trim($_POST['name_in']);   All of this is working, but when I issue the following query to a MySQL database,  $query = "SELECT * FROM students WHERE SID = $id_in AND name = $name_in;";   it only returns the database entry/tuple if the user inputs their name in quotes. What is causing this and how can I fix it? I realize I could write a function to add quotes to the input but I want to understand why this is happening and that does not seem like a good solution. I did some research and tried using addslashes(), stripslashes(), and turning on magic quotes, but nothing fixed it.  EDIT: I don't think this is a duplicate of:  because I am using mysqli and not prepared statements.


Reducing an indicator function summation into a simpler form.

I want to simplify the following:  $\sum_{n=0}^x 1 - (1 - I[a \ne 0] * I[a \ge b]) * (1 - I[b \ne 0] * I[b \ge c]) * (1 - I[c \ne 0] * I[c \ge d]) * (1 - I[d = 0])$


Dynamically deciding the type parameter of a generic method

How do I determine the type parameter of a generic method dynamically if I have the Type object.  For example -   Type typeObject = dataTable.Columns[columnName].DataType; List<typeObject> values = dataTable.SampleMethod<typeObject>(param1, param2);   How do I achieve this?


Math notation to define the operator that extract component of a vector?

Say $\mathbf{x} \in \mathbb{R}^n$, what is the common notation to extract the first component as an operation?  Something like $\mathcal{P}_j = \mathbf{x}_j$? $\mathbf{x}_j$ is the j-th component.   I need this because I have a function $f(\mathbf{x}) \approx \mathbf{x}$, so I need something like $\mathcal{P}f(\mathbf{x}) \approx \mathbf{x}_j$ since my metric is defined for a single component of $\mathbf{x}_j$.


I am a French citizen. My sister booked a flight on easyjet to Poland for both of us, and she used my maiden name only as my surname.  However, on my passport, the surname reads like this : maiden_name ép. marital_name.  Is it ok or do I have to make the change on my booking ?


Wash Sale Treatment Using Different Tax Advantaged Accounts

As a follow-up to this question:   Do HSAs and 401k's fall under the same treatment as IRAs when computing tax losses?  For instance, your HSA and 401k are set to allocate biweekly contributions and reinvest dividends for a Fund X resulting in a total of 50 shares purchased during the 30 days before and 30 days after a sale of 100 shares of Fund X in your personal brokerage account. Does the loss in the personal brokerage account only apply for 50 shares of Fund X?


I re-installed Minecraft after deleting it and now I can't find my minecraft folder to install mods on. I'm on a Mac.


Script does not working for loaded element

I created a form with checkbox + wrapper, i.e :  <form>
       <input type="checkbox" name="item[]" value="1">   </dv>
       <input type="checkbox" name="item[]" value="2">

       <input type="checkbox" name="item[]" value="3">
 </form>   and this toggle check is working:  $(".input-wrapper").on("click", function () {         var $checkbox = $(this).find(':checkbox');        $checkbox.prop('checked', !$checkbox[0].checked);  });   But when I load other checkbox from ajax, i.e:  $.post(      '/my/url',      {...my data...},       function(data){            if(data != 'failed'){                //return new checkbox + wrapper too and append it at the end of the form                 $('form').append(data);            }       }  );   the Toggle check is not working just for the loaded/appended element.  How to fix this ? how to properly create a script that affect all the element even for the loaded one ?  thanks.


Can anybody (excluding me, of course) see my voting history?  Do moderators have access to that?


I need some tips on an assignment that I am currently working on. I need to create a program for converting time specs (n1y n2n n3d n4h n5m n6s -- note the amount of whitespace can vary between the different inputs) to seconds. One of the functions that I need to create is a function to validate the time spec input (as a const char*). The function header looks as follows:  // is_legal_time_spec: //      Checks if ctime_spec is a valid time spec // In: //      ctime_spec != NULL // Out: //      return -- true if the ctime_spec is a valid time spec //                false if otherwise bool is_legal_time_spec( const char *ctime_spec ) {     return false; }   Ive had some ideas about how to use the strpbrk(3) function for this, but I was wondering if there is another easier function that I can use to check the format of the time spec input.  Thanks in advance for your help.


Filesystem Full on Ubuntu 18.04- How to move space from \home to \


Visual Studio 2013 MSVCR110d.dll is Missing

I'm not really sure if this belongs on SuperUser or StackOverflow, but it doesn't seem to be a coding problem so I'm gonna run with this.  I've started working on a C++ game using Visual Studio 2013 utilizing FreeGLUT and FreeImage. I can compile and run it on my desktop without issue, but when I try compiling the same code on my laptop I get the error "msvcr110d.dll is missing from your computer." After which there is about a 50% chance that Visual Studio freezes, and I'm forced to restart the computer as Task Manager cannot stop the process (another problem I'm still working on).  Google searches have told me to install Visual C++ Redistributable 2012, however this was already installed on this laptop (both x86 and x64), and reinstalling (from ) has not helped at all. I also tried installing Visual C++ Redistributable 2013 (x86 & x64, from ), but to no avail. Both of those links do feature an ARM download. I'm not sure what that is, and attempting to install it results in a pop-up saying I can't install it on this version of Windows (Windows 8 that is), so I'm assuming I don't need that.  Looking in the C:\Windows\SysWow64 folder, I can see msvcr110.dll but not msvcr110d.dll. It looks like the release version was installed, but not the debug. I do see msvcr120d.dll, which should be the 2013 version right? So shouldn't Visual Studio 2013 be using that, instead of msvcr110d.dll?  Running a standard C++ HelloWorld project doesn't have this issue, so I imagine it must have something to do with FreeGLUT or FreeImage. However it compiles and runs on my desktop without issue, so I believe everything is coded & linked correctly. I've added the include directories, library directories (both of which were debug), and added opengl32.lib & FreeImaged.lib as additional dependencies.  Installing Visual C++ Redistributable hasn't helped, so is there another way of solving this issue? Should Visual Studio 2013 be using msvcr110d.dll at all, or it should be using msvcr120d.dll? Do I need that ARM install from the MSVCR download page? I'm using Windows 8 64 bit (brand new laptop as well so I don't think there's any corruption issues). Thanks in advance for your help.  Doug


Could someone go through a step-by-step proof of:     Let $\theta:R\to S$ be a surjective ring homomorphism. Show that if every ideal of $R$ is principal, than every ideal of $S$ is also principal.   I really just have the assumptions.  Take an ideal $I$ in $S$ and show that it is principal.  Could someone help please?


Use the PMI to prove the following for all natural numbers: $3^n ≥ 1+2^n$. I have already verified the base case but am having trouble doing so with the inductive case. Thanks!


How flexible is my Schengen multi-entry visa?

I am Chinese and I have a UK spouse residence visa. I recently applied to the Netherlands visa office for a Schengen visa to visit Holland, this visit is only for two days. They then issued me with a 6 months multi-entry visa. I wish to visit Spain for 2 weeks in December, can I use the visa for this trip?


Sci fi show about a boy with powers with rays coming out of a prism

I watched this show when I sass a kid (80-90s) about a boy that has some kind of powers. It’s set in the UK I think, in a cabin/lodge. It has a spooky theme where you see a prism slowly making taking position as the center piece. I think it has the ray of light hitting it and it goes through the prism and out comes more rays. And I think you can see the boys face as the prism becomes hes third eye at his forehead. And the main color is greenish I think. The episodes is about the boy, maybe 10 years old. He is been taking care of by a woman I believe. And not every episode was something sci fi in it. I think the series was about the boy trying to figure out his powers.


Let $A$ be an $m\times n$ matrix. Prove that $A^*A + I$ is invertible.   I'm not sure what to do because everything I try ends up at $A^*A$ again and not $AA^*$.


"Type 'gpg' is not known" error while running 'sudo apt update'

I have a problem when I run command sudo apt update it doesn't work:  E: Type 'gpg' is not known on line 1 in source list /etc/apt/sources.list.d/brave-browser-release.list E: The list of sources could not be read.


I now have an ubuntu server with a user called rvdutchman, I also have a LAMP server running on that server. with using apache2 the dir where you can put your website on is /var/www/html. So I login to the site with the rvdutchman user with ftps. I am in the root, sudo and www-data group. but when I go to that dir I only can copy things from it. when I try to rm or add a dir/file I dont have permissons. Is there anyway I can give the user rvdutchman that permessions?


I have been watching some LinkedList videos to try and understand what it is. But I see a lot of people having code like   for(String x : model)   Can anyone help me understand what ":" does in this code besides attaching x to "model" or is that all it does?


Illustrator: what is this black dotted box? How can it be disabled?

It's not part of the artwork and doesn't seem to be hurting anything, but I get this on a lot of client logos and I'm wondering how to get rid of it.   I think it's part of the artboard, but can't find anything to select/change/remove it.


What's the connection between console.log and HTML?

Beginner here, so I might not be using the correct terms to describe this. I have a for Loop, else if statement that produces the result via console.log.  What I want to do is have those results (basic fizzbuzz problem) display on an HTML page. I have been reading high and low, and getting a little discouraged that I can't figure this out on my own. My guess is it should be something with .append but I don't know if that's right, or what the event(?) should even be. (e.g.; .click, .hover, etc.)  Let me know if you need any more info. My head is jumbled from all the code I've gone through. Any help would be greatly appreciated!  Here is my js code:  var choice = prompt("What number should we count up to?");  for (var i = 1; i <= choice; i++) {     if (i % 15 === 0) {         console.log('FizzBuzz');     } else if (i % 3 === 0) {         console.log('Fizz');       } else if (i % 5 === 0) {         console.log('Buzz');     } else {         console.log(i);     }    }   And html:  <!DOCTYPE html> <html>    <head>      <link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all'>     <script src="js/jquery-1.11.1.js"></script>             <script src="js/fizzBuzz.js"></script>      <title>FizzBuzz!</title>     </head>       <body>    <ol id="log">    </ol>   </body> </html>   The  tag is a placeholder of sorts right now...


Why are there so many console messages from GTK+ applications?

I tried to open Software Center using the command line   software-center   and it did work. I mean, Software Center opened and works fine, BUT, at the same time, in the Terminal window I see a lot of strange errors. How can that be? I'm puzzled.   Is there any explanation for this (and a fix for it)? I repeat, the app does open and it works fine, is only the lines in the background that show that something is not all right.  Here are the screen-shots with all the lines.


Show the Christoffel symbol satisfy this condition

$$\Gamma^{\mu}_{\mu v} = \frac{\partial_{v}(|g|)^{0.5}}{(|g|)^{0.5}}$$ I am trying to show this equality, but I'm only getting through: $ \Gamma^{\mu}_{\mu v} = 0.5*[g^{\mu\mu}(\partial_{v} g_{\mu \mu}) + g^{\mu v}(\partial_{\mu} g_{vv})] $ I would appreciate any tip to go on


Is there a word for someone who has others do all their work for them?

In a way like a slave master. More though like say someone who had robots do all their work and they were never themselves productive and had no drive. If you've read R.U.R. you'll understand the question better. I'm looking for a word with more definition than just lazy.  Update 1: It think I may actually go with drone if anything. I think that definition fits what I'm looking for the best. I also liked the definition of the British term layabout that one person mentioned, but I will probably use drone. Thanks for all the help and sorry if I was confusing or unclear.  Update 2: I needed this word for use in an essay I was writing which I have now handed in. Thanks for the help guys. No more suggestions needed.


Find the Probability that the Largest Outcome of $3$ Fair Die Throws is a $3$

A fair die is thrown 3 times. Find the probability  that the largest outcome of the three throws is a 3.    I understand that the problem isn't as simple as $ \frac{3^3}{6^3}=1/8$, being the answer. That would mean getting any of the values from $1-3$ for all of the throws is favorable, which includes series of throws that do not even have $3$ as an outcome.  What's the solution to ensure that there is at least one throw with $3$ as the outcome, with the $2$ other throws being anywhere from $1-3$?


Force \includegraphics use specific file extension for all document

What is the way to force \includegraphics to use specific file extension for all document?  If I have in the folder figure.pdf and figure.png  \includegraphics{figure} command will use figure.png, if I need *.pdf I could force to use it by typing: \includegraphics{figure.pdf}  But if I need sometimes to compile document with all figures with png extension or pdf, what should I change in graphics package settings?


How does an electron jump from one lobe to another of the same hourglass-shaped $2p_x$-orbital?

Imagine an electron in the  hourglass-shaped $2p_x$-. It has two lobes. The probability of it being in the centre of the orbital is zero. This is the point that connects the two lobes of the orbital.  Now if I make an observation I find the electron in the right lobe of the orbital. I make another observation and still it's in the right lobe.  Now when I make the third observation the electron is in the left lobe. How did it go into the left lobe without passing through the centre of the orbital. The probability of it being at the centre is zero!


Nginx+varnish (SSL termination by Nginx) shows 502 bad gateway (the website is not using wordpress)

I configured nginx as SSL terminator for varnish according to this guide:   I need http to https redirection too as i only want my site to be accessible over https.  my nginx website configs:  HTTP config of nginx site:      server { listen  8080; listen  [::]:8080; server_name  www.arcadesite.io; return       301 http://arcadesite.io$request_uri; } server { listen 8080;l listen [::]:8080; server_name  arcadesite.io; root /var/www/html; port_in_redirect off; index index.php; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$;    include fastcgi_params;    fastcgi_index index.php;    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;    fastcgi_pass unix:/var/run/php7.2-fpm.sock;    } error_log /var/www/html/error.log notice; }   My HTTPS config:  server { listen  443 ssl; listen  [::]:443 ssl; server_name  arcadesite.io; port_in_redirect off; ssl                  on; ssl_certificate /etc/letsencrypt/live/arcadesite.io/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/arcadesite.io/privkey.pem; # managed by Certbot ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; ssl_prefer_server_ciphers   on; ssl_session_cache   shared:SSL:20m; ssl_session_timeout 60m; add_header Strict-Transport-Security "max-age=31536000"; add_header X-Content-Type-Options nosniff; location / {  proxy_pass http://127.0.0.1:80;  proxy_set_header Host $http_host;  proxy_set_header X-Forwarded-Host $http_host;  proxy_set_header X-Real-IP $remote_addr;  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;  proxy_set_header X-Forwarded-Proto https;  proxy_set_header HTTPS "on";   access_log /var/www/html/access.log;  error_log  /var/www/html/error.log notice;  } } server { listen 8080; listen [::]:8080; server_name  arcadesite.io; root /var/www/html; index index.php; port_in_redirect off; location / {   try_files $uri $uri/ /index.php?$args; } location ~ \.php$ {    try_files $uri =404;    fastcgi_split_path_info ^(.+\.php)(/.+)$;    include fastcgi_params;    fastcgi_index index.php;    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;    fastcgi_param HTTPS on;    fastcgi_pass unix:/var/run/php7.2-fpm.sock;    } }   But on visiting my website, it gives me 502 error. Please help  Note: this is NOT a wordpress site


I'm trying to plot a few curves that show some singularity close to the ends of the abscissas axis. This works fine with samples=500 but it takes quite some time to create the plot. Is there a way to have "biased sampling" (say, to have a higher sampling rate close to some point of interest)? This is the MWE, and the image of the plot.  \documentclass{article} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture}     \begin{semilogyaxis}[         width=8cm,         legend style={font=\footnotesize, at={(0.98,0.98)}, anchor=north east, draw=none,                         /tikz/every even column/.append style={column sep=0.2cm}},         legend columns=2,         every axis y label/.style={at={(current axis.north west)},xshift=-10pt,rotate=0},         every axis x label/.style={at={(current axis.south)},yshift=-10pt},     ]      \addplot [mark=none, domain=0.00001:0.99999, samples=50] {1/(2*x-2*x^2)};     % E2/E1 = 3     \addplot [mark=none, domain=0.00001:0.99999, samples=50] {-((1 + 2*x*(4 + x*(-5 + 2*x)) + sqrt(1 + 4*x*(-2 + x*(17 + x*(-38 + x*(41 + 4*(-5 + x)*x))))))/(-1 - 2*x*(4 + x*(-5 + 2*x)) + sqrt(1 + 4*x*(-2 + x*(17 + x*(-38 + x*(41 + 4*(-5 + x)*x)))))))};     % E2/E1 = 9     \addplot [mark=none, domain=0.00001:0.99999, samples=50] {-((1 + 26*x - 34*x^2 + 16*x^3 + sqrt(72*(-1 + x)*x + (1 + 2*x*(13 + x*(-17 + 8*x)))^2))/(9*x*(-3 - 2*(-2 + x)*x) + (-1 + x)*(1 + 2*x^2) + sqrt(72*(-1 + x)*x + (1 + 2*x*(13 + x*(-17 + 8*x)))^2)))};     % E2/E1 = 27     \addplot [mark=none, domain=0.00001:0.99999, samples=50] {-((1 + 80*x - 106*x^2 + 52*x^3 + sqrt(216*(-1 + x)*x + (1 + 2*x*(40 + x*(-53 + 26*x)))^2))/(27*x*(-3 - 2*(-2 + x)*x) + (-1 + x)*(1 + 2*x^2) + sqrt(216*(-1 + x)*x + (1 + 2*x*(40 + x*(-53 + 26*x)))^2)))};     % E2/E1 = 81     \addplot [mark=none, domain=0.00001:0.99999, samples=50] {-((1 + 242*x - 322*x^2 + 160*x^3 + sqrt(648*(-1 + x)*x + (1 + 2*x*(121 + x*(-161 + 80*x)))^2))/(81*x*(-3 - 2*(-2 + x)*x) + (-1 + x)*(1 + 2*x^2) + sqrt(648*(-1 + x)*x + (1 + 2*x*(121 + x*(-161 + 80*x)))^2)))};     % E2/E1 = 243     \addplot [mark=none, domain=0.00001:0.99999, samples=50] {-((1 + 728*x - 970*x^2 + 484*x^3 + sqrt(1944*(-1 + x)*x + (1 + 2*x*(364 + x*(-485 + 242*x)))^2))/(243*x*(-3 - 2*(-2 + x)*x) + (-1 + x)*(1 + 2*x^2) + sqrt(1944*(-1 + x)*x + (1 + 2*x*(364 + x*(-485 + 242*x)))^2)))};          \legend{ $1$ \\ $3$ \\ $9$ \\ $27$ \\ $81$ \\ $243$ \\ }      \end{semilogyaxis} \end{tikzpicture}  \end{document}


Want Dual Boot with Ubuntu 16.04 on a USB HDD and Win 8.1 Surface Pro 2

After following endless guides and running the bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi command from windows, dual boot works!   Alas, it only works while the USB is plugged in, otherwise we get the Grub2 bash.    How can I finish the job so that the Grub2 bootloader is installed on the Win8 side of things? Is that how I want to finish the job?


How do you add CSS rules (eg strong { color: red }) by use of Javascript?


Integrate :   $$I=\int \frac{dx}{x\ln x}$$   I know this can be solved easily via substitution ($t=\ln x$) to obtain $I=\ln {\ln x} +C$, where $C$ is the constant of integration. But if we try to apply , choosing $\frac{1}{\ln x}$ as $u(x)$ and $\frac{1}{x}$ as $v'(x)$, something goes wrong: $$I=\frac{1}{\ln x}\cdot\ln x - \int \left(\frac{-1}{(\ln x)^2}\cdot\frac{1}{x}\cdot\ln x\right)dx$$ This reduces to $I=1+I$ or $1=0$. Why does this happen?


I have a simple question, but I can't find the answer I am looking for the principal angle of a minimum_rotated_rectangle polygon in relation to a latitude or a longitude. df4.minimum_rotated_rectangle  Does anyone have this in stock?


What do I get from playing a Seasonal character without RoS?

I have recently started playing Diablo 3 again, and have discovered a "Seasonal" Character choice. Upon investigation, the main focus is to reward the player after achieving certain things within the game. However, 2 of these goals require the Expansion ("Adventure Mode"); which I don't have.  Without the Expansion, what do I get from playing a Seasonal Character specifically (that is not included in the base Expansion like extra classes etc)?


After installing kde-full package at start-up nautilus automatically opens my home folder

I have installed the kde-full package on Ubuntu 12.04 in order to switch to the KDE plasma workspace as well as install the other applications. It works well with just one problem that I can't understand.  Whenever I start a new session nautilus opens up my home folder and I have to manually close it.  It's pretty annoying, but I don't want to uninstall nautilus just to stop this behavior.  I have already looked into my ~/.bashrc and I haven't seen any additions which would make nautilus do this.  I've found the answer in a similar question , I verified it and it works for me, so I will close this question.


"half the people" or "half of the people"

…"Prince Prospero was happy and dauntless and sagacious" even though that half the people in his kingdom had been killed by the Red Death.    Don't you think that after "half" should follow the preposition "of" as in the sentence  "At least half of those books can be sold".


How to approach of a child suffering from a potential sleep disorder?

My son is 17 months old with a regular routine in a nuclear family.  0700 awake 0745 in nursery Full day of nursery 1730 pick up from nursery 1800 relaxing time with mum and dad 1830 bath time 1900 story / quiet time 1920 bottle of warm whole milk 1930 bedtime  As a family we have the usual toddler tears you would expect with bedtime and handle them accordingly but the real reason for this question occurs between the hours of 2300 and 0500. Randomly, for 4 to 5 minutes, he will wake up in absolute hysterics screaming for his mother.  His eyes are closed and when picked up to be soothed he will not recognise us and continue the episode.  He is, as far as I can tell, still asleep during these periods but the screams are deafening. I don't know if this qualifies as a night terror? Sometimes the episode will manifest itself with him pushing himself away from us to the floor and running into other rooms (asleep).  Normally he will settle by the stair gate clutching it and shouting as if he has been abandoned and we (parents) are downstairs instead of next to him. The only remedy we have found is to have one or two bottles of milk on hand to give to him which normally soothe his distress until he falls back asleep. Context His mother is a fairly normal sleeper but I am a  sleeper; dreaming/hallucinating as soon as I close my eyes and not waking for any amount of noise or distraction.  Often my dreams are in full colour and my partner can have full, lucid conversations with me whilst I sleep which I cannot remember.  However, in 32 years I have never had a nightmare that I can recall so I don't know how to approach my son to help him deal with this sleeping problem.  I always found Hynagogic sleep a pleasant experience. Do any parents or medical professionals on these forums have experience and/or advice on how to support my son?


Forgotten iOS Restrictions Password/Passcode

My dad put restrictions on my phone. He put it for many things that he didn't even know about. For example, downloading and deleting apps and Safari. So now that I want to do different things on my phone, I can't because my dad forgot the password.  Is there a way that I could take off the restrictions without deleting all of my things? If that isn't possible, then how can I restore my phone so the restrictions could come off? I heard that you can use find my iPhone someway so I could take off the restrictions but I'm not sure and I don't want to do the wrong thing.


Using tee or pipe to log console output will cause my program not to start

I'm running hostapd on my raspberry PI to let it function as an accesspoint. It's working fine with the following command:  sudo hostapd /etc/hostapd/hostapd.conf  This will start hostapd and log all output to the console. Now I want to log this output using TEE or pipe. However, one the following commands will cause the program not to start.    sudo hostapd /etc/hostapd/hostapd.conf >> /home/pi/Desktop/loggin.txt sudo hostapd /etc/hostapd/hostapd.conf > /home/pi/Desktop/loggin.txt sudo hostapd /etc/hostapd/hostapd.conf | tee log.txt   The terminal will just hang and I have to use ctrl-x to terminate. Why isn't this working? And how can I possibly fix this?


Is there a compression API available for use on the iPhone? We're building some RESTful web services for our iPhone app to talk to, but we want to compress at least some of the conversations for efficiency.  I don't care what the format (ZIP, LHA, whatever) is, and it does not need to be secure.  Some respondents have pointed out that the server can compress its output, and the iPhone can consume that. The scenario we have is exactly the reverse. We'll be POSTing compressed content to the web service. We're not concerned with compression going the other way.


What are Valid feature class and table names in ArcGIS Desktop?

What are the rules for naming valid feature classes and tables in ArcGIS Desktop, and is there any supporting document which can explain all the dataset naming limitations?


What happens to my shares if a company reverse splits its stock 10 to 1, but I own fewer than 10 shares?

Company A decides to do a reverse stock split and reduces the number of shares by, say 10 to 1. Before the reverse split I only owned 7 Stocks on that company.  How will this reverse stock split affect me? Will I now own only 0.7 shares, or what will happen with my shares?


Use Python to Find duplicate values in a feature Class and populate a field

So I found this python script on another post here and was trying to adjust it for my needs.  I'm a very novice python user so I'm struggling with how to modify the script.  I have a Feature Class stored in a feature Dataset that I want to search a field for duplicate values and populate a new field with Y for duplicate or N for none.  The below script is what I found that looks like it will work once I find a way to drill down into my file geodatabase.          from arcpy import *          inShapefile = pointsShapefile          checkField = "xyCombine"         updateField = "dplicate"         #List of values found once         occursOnce = []        #list of values found twice         occursTwice = []       cursor = da.SearchCursor (inShapefile, [checkField])           for row in cursor:           #Check value is not null        if row[0]:     #If not already found to occur twice, proceed     if not row[0] in occursTwice:         #If hasn't occured once yet         if not row[0] in occursOnce:             #Add to occurs once list             occursOnce.append (row[0])         #If value has already been found once         else:             #Add to occurs twice list (duplicates)             occursTwice.append (row[0])     del cursor       cursor = da.UpdateCursor (inShapefile, [checkField, updateField])      for row in cursor:       #Check value is not null         if row[0]:            #check if value in occursTwice list (i.e. is duplicate)     if row[0] in occursTwice:         row[1] = "Y"     else:         row[1] = "N"     cursor.updateRow(row)    del cursor


Can we count the points in polygon using pyqgis code?

Does anyone know how to calculate the point in polygon from the given points and the buffer output using python qgis. I have every thing loading the data and retrieving the output. But now I want to count the points in polygon. I was checking this  but that didn't work.  Code:      from PyQt4.QtCore import *     from PyQt4.QtGui import *     QgsApplication.initQgis()     uri = QgsDataSourceURI()#4326      #loading fisrt layer with multistring     uri.setConnection("localhost","5432","db_name","postgres","password")     uri.setDataSource("schema_name","table_name","column","")     vlayer = QgsVectorLayer(uri.uri(),"LayerName1","postgres")     QgsMapLayerRegistry.instance().addMapLayer(vlayer)      #loading second layer with points around it      uri.setConnection("localhost","5432","db_name","postgres","password")     uri.setDataSource("schema_name","table_name","column","")     vlayer = QgsVectorLayer(uri.uri(),"LayerName","postgres")     QgsMapLayerRegistry.instance().addMapLayer(vlayer)      #creating buffer     mc = iface.mapCanvas()      layer = mc.currentLayer()     print layer.name()     QgsGeometryAnalyzer().buffer(layer, "C:/Users/***/aa.shp", 0.0004, False, False, -1)      #loading back buffer     layer1 = iface.addVectorLayer("C:/Users/***/aa.shp", "layer_name", "ogr")     layer1 = qgis.utils.iface.activeLayer()  #point in polygon     provider = layer.dataProvider()     provider.select()     feat = QgsFeature()     vertex_count = 0     while provider.nextFeature(feat):           geom = feat.geometry()           if geom.type() == QGis.Polygon:             layer_vertices = 0             if geom.isMultipart():               polygons = geom.asMultiPolygon()             else:               polygons = [ geom.asPolygon() ]             for polygon in polygons:               for ring in polygon:                 layer_vertices += len(ring)             print "Feature %d: Vertices %d" % ( feat.id(), layer_vertices)             vertex_count += layer_vertices             print "Total vertices: %d" % (vertex_count)     ERROR:  provider.select() AttributeError: 'QgsVectorDataProvider' object has no attribute 'select'   Also please can you guys share the link or the code for counting points in polygon. Few of them posted the same error can anyone share the code with explanation for point in polygon.


A tetrahedron inside another tetrahedron. Could the contained tetrahedron have a greater perimeter then the outside one?

Suppose you have a tetrahedron. It doesn't have to be regular. Now suppose you have another tetrahedron contained inside the first tetrahedron. Again do not assume it is regular and do not assume that both tetrahedrons are similar. Could it happen that the perimeter of the tetrahedron in the inside is larger then the tetrahedron on the outside? Whether it is or not prove it. Do a proof by contradiction.  This one is tricky. I have been thinking about this problem for a long time now and do not see any way to come up with a reasonable solution. The help would be greatly appreciated!


Rendering engine BLENDER_RENDER not installed?

When I run: render_args = bpy.context.scene.render render_args.engine = 'BLENDER_RENDER'  I get the following error: TypeError: bpy_struct: item.attr = val: enum "BLENDER_RENDER" not found in ('BLENDER_EEVEE', 'BLENDER_WORKBENCH', 'CYCLES')  I am using Blender 2.91.0 Alpha.  Why is 'BLENDER_RENDER' missing and how do I fix it?


Savings values to file form field on form submission - theme-settings.php

I'm trying to build a custom file upload field in my theme-settings.php file, but I can't seem to get the uploaded file to persist after the form is submitted. Setting the default value as it is set below causes an error 500 and the theme settings page won't load at all. With it commented out, I'm able to upload a file I see the uploaded files in my files directory but it doesn't show up in the form as a currently set value - am I missing something here?  Current code below.  use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Theme\ThemeSettings; use Drupal\system\Form\ThemeSettingsForm; use Drupal\Core\Form;  function strata_form_system_theme_settings_alter(array &$form, Drupal\Core\Form\FormStateInterface $form_state) {      $form['strata_settings']['hero'] = array(         '#title' => t('Hero Image'),         '#type' => 'managed_file',         '#description' => t('A hero image for the homepage'),         //'#default_value' => theme_get_setting('hero'),         '#required' => FALSE,         '#upload_validators' => array(             'file_validate_extensions' => array("png jpg jpeg gif"),         ),     ); }


I think there is a small loophole in review audits. It basically ignores closereason filter which I've selected.  For example when I'm selecting filter only duplicates (or any other), the audit will ignore the filter by showing non-related questions to that filter such as too broad, which obviously indicates it is audit without even looking on the question it-self. I haven't tested if the same is happening with tag filter. However I've never seen the review audit which is flagged as duplicate.


Multiple Classical Limits of a Quantum Theory

I recently learned that one of the many lessons that one can learn from the AdS/CFT correspondence is that there could be two classical limits (the bulk with gravity in $D+1$ spatial dimensions, and the boundary theory with $D$ spatial dimensions without gravity) of a quantum theory, namely the underlying quantum gravity theory. (Reference: , Page 3) Here, of course, the ''classical'' limit simply means the low energy limit and does not really mean the classical limit as far as I can understand (i.e., the boundary theory is a CFT--not a classical theory in the sense of a non-quantum theory).   I am curious if there can be more than one classical limits of a simple quantum theory (not a quantum gravity theory but a simple non-relativistic quantum theory) in the basic sense of in which one usually means classical limit (i.e. the $h\to0$ limit).


I want to find the sum function of the series  $$ \sum_{n=0}^{\infty}\frac{n}{n+1}x^{n} $$  and I would like to get your assessment of my work cause I'm really not sure about its validity?  I define the sum $$s(x) = \sum_{n=0}^{\infty}\frac{n}{n+1}x^{n}$$ and multipy with x  $$ s(x)\cdot x = \sum_{n=0}^{\infty}\frac{n}{n+1}x^{n+1}  $$  then differentiate  $$ (s(x)\cdot x)' = \sum_{n=0}^{\infty}nx^{n}  $$  divide by x  $$ \frac{(s(x)\cdot x)'}{x} = \sum_{n=0}^{\infty}nx^{n-1}  $$  then integrate and find the sum of a regular geometric series  $$ \int\frac{(s(x)\cdot x)'}{x} = \sum_{n=0}^{\infty}x^{n} = \frac{1}{1-x}  $$  differentiate again  $$ (\int\frac{(s(x)\cdot x)'}{x})' = (\frac{1}{1-x})' \Rightarrow \frac{(s(x)\cdot x)'}{x} = \frac{1}{(1-x)^{2}} $$  multiply by x and take the integral  $$ s(x)\cdot x = \int_{0}^{x}\frac{t}{(1-t)^{2}}dt = \ln(|x-1|) - \frac{1}{x-1} + C $$  To find the constant C let $x=0$ and find that $C=-1$. Lastly divide by x to get the final result  $$ s(x) = \frac{\ln(|x-1|)}{x} - \frac{1}{x(x-1)} - \frac{1}{x} $$  Can anyone verify that this is correct? Or is there another way to get the sum?  Thanks!


Proving $n! \ge 2^{n-1 }$for all $n\ge1 $by mathematical Induction

Im trying to solve the following question         In the second step  where do they get $k!=2^k-1?$


Will I still be able to use the hard drive normally?

Thus is a picture of both of my hard-drives:    My C Drive and my D drive. I want to put Ubuntu onto my D Drive. Now my question here is if i do install onto my D Drive then how should I do it in order to retain use of the drive. I intend to partition about 60 gigs from it. Now after doing that I should still have about 830 gigs left. I want to still be able to use that in Windows. So how and will I be able to retain use of the drive after Installing? I have installed once before and I believe i did it wrong because not only could Windows not recognize my D drive but I also lost all the data on it.   My computer is a Lenovo Y700 It is a UEFI (I believe i got that right).


What do term symbols with a half-integer "$L$" like $^3[3/2]_{1/2}$ mean?

Atomic  are used to notate the angular momentum content of the electronic states of an atom, and are normally written down as $$^{2S+1}L_J$$ where the state has total spin $S$, spin multiplicity $2S+1$, total angular momentum $J$, and total orbital angular momentum $L$.  Occasionally, though, one comes across term symbols which cannot fit in this scheme, because they have a half-integral "$L$", such as $$^3[3/2]_{1/2}.$$ (For an example, see  () or the ).   In addition, one can sometimes see even weirder beasts with both an $L$ letter and a half-integer in square brackets, such as () $$^1D[3/2]_{1/2}.$$  Neither of these types of term symbols are covered in normal quantum mechanics textbooks even in passing, even though the states do make an appearance now and then. What do these term symbols mean, and how does one interpret them?


Short science fiction film about a Midwest farmer who builds a bunker after finding a space plant

This was a short film about some sort of items or plants/seeds sent to Earth. I remember a guy (like a Midwest farmer-style or something like that) found one.  He starts acting strange, building sort of a bunker container and is tracked by some sort of secret agent trying to get that item.   At the end of the film he puts his daughter with another dude and that item inside it. Then it is sort of the end of the world (post-apocalyptic style) but the magical plant from space is spreading out of that built container. During the destruction of Earth that organic matter sort of spreads inside the container to protect itself and the girl by creating a sort of cocoon.  Also that space magical plant or item fixed/healed a guy with broken legs or something similar in the middle of the movie.