I have a 74HC595 shift register that I shift bits into from an 5v Arduino. The pins on the shift register is connected to the base of 2N3904 BJT's through a 4.7kOhm resistor. I have noticed that if I include the base resistor, my current to the base is 12.8uA and if I don't the base current is 13.1uA.  Since the figures are so small, do I even need a base resistor?  I should mention that I am trying to build a circuit for one of those fancy . On the schematics are shown 2 diodes, but that will be expanded to 8 LEDs for each shift register.         – Schematic created using


How fix a malformed entry in this apt file

Here is the error message:  E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros-latest.list (Component)   This is what's written in my file:  deb http://packages.ros.org/ros/ubuntu $ (lsb_release -sc) main   What is wrong?


I entered /var/www and I ran sudo find / -type d -exec chmod 755 {} ;, thinking that this will only affect folders in /var/www. This changed permissions of all system folders.   How can I restore every folder to its default permissions?


BibLaTeX escaping URL to %xx, but I want to write Unicode address

I'm using biblatex with biber.  When I want to write into .bib url, for example url = {ru.wikipedia.org/wiki/Ветроэнергетика}, into the output pdf the link looks like ru.wikipedia.org/wiki/%B0..., so, link is encoded.  I want the link into the bibliography looks like into the .bib file with UTF-8 symbols ru.wikipedia.org/wiki/Ветроэнергетика.  How this could be done?


When is the new Improving Feedback for All Users message coming?

In August,  was made with an exciting update on a new closed question view for both the author and for public users.  I was wondering if there is any word on when this new view is coming?


How to calculate the integral $\int_{-\infty}^{\infty} \frac{dx}{(\exp(x)- x)^2 + \pi^2} = \frac{1}{1 + W(1)}$

On  one finds without proof the integral     $$\int_{-\infty}^{\infty} \frac{dx}{(\exp(x) - x)^2 + \pi^2} = \frac{1}{1 + W(1)}$$   where $W$ denotes the Lambert W function. How can one show this? The link given on Mathworld is broken.


"Show more comments" link doesn't disappear when clicked on deleted question

See this question:   Below the question, there is the link to show more comments: "show 1 more comments"  Putting aside the issue with  since that will never change, the link still stays shown after clicking it.


Enable fail2ban to send out emails without installing too much extra software (like postfix)

I need fail2ban to send out email notifications to myself. It runs on a Debian 10 minimal install  All of the tutorials I found simply install the full email packages like Postfix or Sendmail, and move on. Moreover (and if I got it right) for the mail command to be available, I also need to install mailutils.   With merely those two, here's what I'm looking at:  root:~# apt-get install --no-install-recommends sendmail mailutils Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   guile-2.2-libs libgc1c2 libgsasl7 libkyotocabinet16v5 liblockfile1 libltdl7 liblzo2-2 libmailutils5 libmariadb3 libntlm0 libpython2.7 libsigsegv2 lockfile-progs m4 mailutils-common make mariadb-common mysql-common procmail   sendmail-base sendmail-bin sendmail-cf sensible-mda Suggested packages:   m4-doc mailutils-mh mailutils-doc make-doc sendmail-doc rmail logcheck resolvconf sasl2-bin The following NEW packages will be installed:   guile-2.2-libs libgc1c2 libgsasl7 libkyotocabinet16v5 liblockfile1 libltdl7 liblzo2-2 libmailutils5 libmariadb3 libntlm0 libpython2.7 libsigsegv2 lockfile-progs m4 mailutils mailutils-common make mariadb-common mysql-common procmail   sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda 0 upgraded, 25 newly installed, 0 to remove and 1 not upgraded. Need to get 2525 kB/12.1 MB of archives. After this operation, 63.4 MB of additional disk space will be used. Do you want to continue? [Y/n] n   (For Postfix the list is quite similar)  Sure enough I can continue, but my concerns are all the extra packages that I otherwise wouldn't install on this server (e.g. the database software), and the  that I otherwise wouldn't have faced. (Sure, I can block port 25, but it's still a few extra things to maintain on the system, times several systems; not having any of that at all seems like a much easier and safer option)  Aliasing Sendmail to go to an external SMTP isn't an option either, because I need this on multiple servers, and delivering and configuring SMTP passwords on each may be a hassle.  Is there a way to make fail2ban send out emails without this much overhead? I don't care if the email looks spammy; I will whitelist the sender server in my inbox to make sure it doesn't go to junk mail. That server will not be sending emails to anyone else.  Apparently, . I was hoping there's a way to have fail2ban be able to do something similar easily - either with a script, or a tiny utility available with apt-get install. Am I asking for something realistic, or shut up and get Sendmail is my only option?


What does a relativistically moving capacitor "look" like?

Suppose I have a parallel plate capacitor with a vacuum between the plates, a voltage $V$ across them and a capacitance of $C$.  What will this arrangement look like to an observer in a uniformly moving frame of reference with velocity $v$ at right angles to the capacitor plates? Obviously the apparent plate separation is changed, so presumably the capacitance changes, but what about the electric field between the plates and the stored energy?  (Not a homework question - though I'm exploring whether it could be...!)


In Pgfplots, how can I prevent points from hiding lines

When I plot two curves on the same graph with Pgfplots, I would like the second to be placed above the first. However, if the first has lines+points and the second only lines, then the point from the first go above the lines of the second. Here is a MWE  \documentclass[crop,tikz]{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}     \begin{axis}[]         \addplot[red,mark=*,line width=2pt] coordinates {(0,0) (1,1) (2,2)};         \addplot[blue,line width=2pt] coordinates {(0.5,0) (1.5,2) (2,0)};     \end{axis} \end{tikzpicture} \end{document}   The output is    As you see, the blue lines goes above the red one, but the red point is above the blue line. I would like all that is in red to be placed below the blue.  I think I can do what I want with two axis environments overlaying, each one with one curve. But is there a solution in the same axis environment?


What actually happens when you touch the screen on pokemon go?

When you are on the GPS screen, showing the roads and that etc. you can tap any where on the screen and a blue ring appears with a strange noise at the same time, what does this actually mean? has it got anything to do with locating/revealing Pokemon or the leaves that move about occasionally?


I understand from this question -    that the R squared value of a linear regression model can be negative if the intercept is constrained. And this makes sense if you define R squared as -   $$R^2 = 1-\frac{SSE}{SST}$$  One says $SSE>SST$. But then,  $$SST = SSA + SSE $$ Total Sum of squares  = Sum of squared errors + Sum of squared residual. And with this we get -  $$R^2 = \frac{SSA}{SST}$$ And now it is hard to imagine how $R^2$ can be negative. Aren't SSA and SST >0 always?


pattern of moving electrons in wire under AC

when we use a DC battery into a circuit the flow of electrons in wire creates a clear picture as they flow from negative terminal to positive terminal. under AC(Alternating current) we know how energy flows and what does it mean by $I_{rms}$ or average current etc. But what about the pattern in which electrons move?


If R is a Principal Ideal Domain and let a and b be two non-zero elements of R. Prove that lcm(a,b)*gcd(a,b)=uab, where u is unity of R.

Kindly help me up with this proof. I have been to this statement with the many of books which prove using summation of power series method. I have been through many books they all pose this as the proposition but no proof is being discussed.


RDBMS: Proper way to store data - comma separated variables or in different fields or tables?

Fundamental question that I cannot seem to find an answer on. I have a database that stores line items from receipts along with the username and receipt number.   Right now the lineItem column is just a long string of data separated by commas (original file appears to have been just an Excel file). This information is parsed in a PHP script for viewing on the front end.   The table looks like this:  |----------|----------|----------| |lineItem  |receiptID |customerID| |----------|----------|----------| |CD, DVD,  |001       |User01    | |----------|----------|----------| |CD, CD,   |002       |User02    | |DVD, usb, |          |          | |----------|----------|----------|   Ultimately, is this bad practice? Should the lineItem values be linked to related values in another table instead maybe?


how to make special program run with different version of java from system?

My system need to use java 1.7. However, I need to run some old apps which require java1.6. Can I use shell script to let the old apps use correct java version? Could the  $JAVA_HOME work?  I try to set export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64 However, it does not has any effect.


I need to draw a nonuniform text bubble and fitting the text inside of it.


Wants to directly shift to the previous active tab in Chrome

I have multiple tabs open in the chrome browser and I wants to shift to the previous active tab is there any shortcut for that or can I define any shortcut for that.  Scenario :  Working on multiple tabs more then 10 , I google some thing and now I am on that tab, I wants to go the facebook tab were I was last in. Its not the previous tab its in the middle of the tabs.


Can I install Ubuntu touch on my phone?  My phone is galaxy s3.


Unable to update the system on Ubuntu 12.4

Showing message:   E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


Action of angle-preserving linear transformation on basis vectors

Call a linear map $T: \mathbb{R}^n \to \mathbb{R}^n$ angle preserving in case $T$ is injective and the angle between $Tx$ and $Ty$ is equal to the angle between $x$ and $y$ for all $x, y \in \mathbb{R}^n - \{ 0 \}$, where the angle between $x$ and $y$ is $$\arccos \frac{x \cdot y}{||x||||y||}.$$ Suppose that $\{ x_i: 1 \le i \le n \}$ is a basis of $\mathbb{R}^n$ and also that $Tx_i = \lambda_i x_i$ for some $\lambda_i$. I'm trying to prove that $T$ is angle preserving if and only if the $|\lambda_i|$ are equal, but the "only if" direction is proving a pain. I'd guess it boils down to choosing $x$ and $y$ cleverly in the angle preservation condition, but no luck so far.  Can anyone offer some guidance? Thanks.


Intersection of a closed set and compact set is compact

I've been stuck on the following problem for several days: Let $(M,d)$ be an arbitrary metric space and $S, T$ be subsets of $M$.  If $S$ is closed and $T$ is compact, then $S \cap T$ is compact.  I know that if $T$ is compact, $T$ is  closed and bounded. That would imply that $S \cap T$ is also closed and bounded since $(S \cap T) \subseteq T$. Also since $S$ is closed, $S$ contains all its accumulation points.  Other than writing down the definitions, I really don't know how to proceed. Could someone give me a hint?


Need today's date to auto fill in a cell when data is entered into another cell

I would like to have cells C5-C39 auto fill today's date whenever data is entered into cells B5-B39.  I have tried to get it to work using =TODAY() but don't how to structure the formula.


Bash: Why doesn't * return empty string in case of no match

I don't understand why * returns itself when there's no match. This  states that this is the case, but I don't understand the rationale for this behaviour. Why doesn't *, or any generic pattern, just return an empty string in case of no match?  $ls      # Look, no files $touch a # Add a file $echo *  # Works as expected a $rm a    # Remove the file $echo *  # Will output a '*'. Why not ''? * $*       # Ok, * will fail, but how come the previous output? -bash: *: command not found $


Restore plan cache and buffer pool after database restore?

When restoring a database, is there a way to restore the plan cache so it doesn't have to be re-created during production use?  Similar question: is there a way to pro-actively restore the buffer cache during or after a database restore?,…. other than to create and run select statements on the tables previously in the buffer cache, a solution which would be time-consuming to create, and inevitably inaccurate.    This is a followup to this question:  "".  edit:  This question is a follow-up because I want to know if there is a workaround to get the plan cache and buffer pool back to their source state.


I'm trying to suppress the rendering of location and authors in a bibliography of patents, but an unable to find documentation on how to accomplish this.  The example below, is my attempt, based on the logic of  here, but is having no effect.  How do I suppress author and location in a patent bibliography?  \documentclass{article}  \usepackage[]{biblatex-chicago}  \AtEveryBibitem{% \ifentrytype{patent}{     \clearfield{author}%     \clearfield{location}% }{} }  \usepackage{filecontents}  \begin{filecontents}{test-lit.bib} @patent{lens.org/072-791-597-282-659,     number = {US 8574659 B2},     type = {Granted Patent},     title = {Healthcare Information Management Evidence},     author = {Author A, Author B},     date = {2019-09-03},     location = {United States},     url = {https://lens.org/072-111-222-333-444} }  @patent{lens.org/179-367-355-357-993,     number = {US 0195811 B2},     type = {Granted Patent},     title = {Food Supply  Automation Grocery Method},     author = {Author A, Author B, Author C},     date = {2019-08-27},     location = {United States},     url = {https://lens.org/777-111-888-333-000} }  @patent{lens.org/117-614-886-875-323,     number = {US 114252345 B2},     type = {Granted Patent},     title = {Methods And Systems For Methods And Systems},     author = {Author A, Author B, Author C},     date = {2019-08-27},     location = {United States},     url = {https://lens.org/444-111-555-333-666} } \end{filecontents}  \addbibresource{test-lit.bib}  \nocite{*}  \listfiles  \begin{document}  \printbibliography


What do you call a person who loves facts?

Someone who loves learning and knowing and saying random facts??


Illustrator: Is there an efficient and accurate way to join two circles by their tangents (and keep it editable)?

It's easy to join two circles if they are the same size and horizontal/vertical, into a pill shape:    If the circles are at an add angle then it's still possible but you can no longer rely on smart guides.     You can add lines roughly where the tangents should be and then use the scissors tool on the circles, cut out the inner area and then join the two crescents into one shape.    Is there a better way to do this? Is there a way to do this that is still editable afterwards too?  There are some other questions that cover the same area as this but don't cover editability or joining circles that are not in line with each other (where smart guides can't help).


How prove this inequality $I=\int_{0}^{\sqrt{2\pi}}\sin{x^2}dx>0$

show that $$I=\int_{0}^{\sqrt{2\pi}}\sin{x^2}dx>0$$  follow is my methods: let $$x^2=t$$ then $$I=\int_{0}^{\pi}\dfrac{\sin{t}}{2\sqrt{t}}dt+\int_{\pi}^{2\pi}\dfrac{\sin{t}}{2\sqrt{t}}dt=\int_{0}^{\pi}\dfrac{\sin{t}}{2}\left(\dfrac{1}{\sqrt{t}}-\dfrac{1}{\sqrt{\pi+t}}\right)dt$$ since $$\dfrac{1}{\sqrt{t}}-\dfrac{1}{\sqrt{\pi+t}}>0$$ so $$I>0$$  My quuestion: have other methods? Thank you


Welcome/home page in Ruby on Rails - best practice

My homepage (or welcome page) will consist of data from two models (lets call them authors and posts). I am new to rails and not sure what is the best way to accomplish this.  Should I create a new controller called welcome which gathers data from the authors and posts and then display them in the welcome index view? Or should I have a welcome view under the post model which also gets data from authors? Or any other way to accomplish this?  I understand how to do all this technically but just unsure what is the best practice method using the rails framework.


compute maximum number of black rectangles in a cutome given black and white board

ATTENTION: this is not maximal rectangle problem. this is about number of rectangles.  look at this picture:   I am looking for an algorithm to compute total number of blue rectangles(not maximal rectangle). this algorithm must be O(n^2) and we have a constraint that the board is Square(n*n) or in this picture m=n.  thanks in advance


How to explicitly discard an out argument?

I'm making a call:  myResult = MakeMyCall(inputParams, out messages);   but I don't actually care about the messages.  If it was an input parameter I didn't care about I'd just pass in a null.  If it was the return I didn't care about I'd just leave it off.    Is there a way to do something similar with an out, or do I need to declare a variable that I will then ignore?


My wifi goes in and out on Ubuntu; I do not have this issue in OSX Yosemite (dual-boot). There is no message saying that it disconnected from the router. Sometimes it will just hang and other times it will say it cannot find the page or I am not connected to the internet in chrome (this takes 10-30 seconds when it happens, and happens every 5-10 minutes). After this it loads the page fine. Here is my wifi info (pastebin link below), any help is greatly appreciated.  wifi:   lsmod:   Thanks in advance for any help!  edit: updated pastebin link after making changes suggested by chili555 edit: updated pastebin again to reflect recent changes - also added lsmod pastebin


Expectation on the difference of 2 random variable

It is a question listed on Glassdoor of DRW. Link for reference:  Question:  Let $x$ ~ Uniform$(0,1)$ and $y$ ~ Uniform$(0,2)$ be independent random variable. What is the expected value of $|x-y|$  I thought it is will be just an application of Linearity where the expectation of the sum is equal to the sum of the expectation. So $E[|x-y|] = |E[x] - E[y]| = |0.5 - 1| = 0.5$ But apparently, the answer from glassdoor is quite different with an answer of $\frac{1}{4}$ and another being $\frac{3}{4}$, with integrals and what not. I wonder what is the correct approach here?


How to display legacy text with smart quotes. etc with HTML

The answers to the suggested duplicate go a bit over my head. The text with the smart quotes, etc is old and extremely difficult to get changed. T modify the PHP/MySQL setup I am using is also hairy for me. If I use charset=iso-8859-1 everything echo's fine. Any problem with that? English only with a few html img links to image files.  "I have a MySQL database with legacy text in blob columns (lots of smart quotes, long dash, etc.) I am developing a new website and when PHP pulls out the text the browser echo's a question mark inside a black diamond for the smart quotes, etc.   I currently have meta charset="utf-8" in the HTML source."


The pdfsync homepage states that:     At the end of this summer (2007), pdfsync is slowly migrating to pdftex itself. We are working at giving pdftex all the pdfsync ability and more...   The pdfsync README file discourages people from using pdfsync:     pdfsync uses extremely sensible code. You should not use pdfsync on final documents because it can change the layout rather significantly.   From your knowledge and experience, what is the actual status of pdfsync?   Is it safe to use pdfsync? Is there an alternative for pdfsync that is built into pdftex? Is there a different tool for pdflatex that offers DVI-like functionality (forward and backward search)?


Win8: The program can't start because MSVCR71.dll is missing from your system

I am trying to install Office 2007 Standard on Windows 8.  When I attempt installation, I get an error saying "The program can't start because MSVCR71.dll is missing from your system."  I've looked and the DLL is not in either the System32 or the SysWOW64 folder.  I've tried downloading the DLL and rebooting, but I got the same error.  I've tried running regsrv32 msvcr71.dll in a command prompt, but I get an error saying "The module msvcr71.dll failed to load.  Make sure the binary is stored at the specified path or debug it to check for problems with binary or dependent .DLL files."  Google told me that the DLL is part of Visual C Runtime.  I've tried reinstalling that, but the DLL did not appear.  I do have DLLs called msvcr100.dll and msvcr110.dll, so it is probably an old version.  I'm not sure what else to try, and Google hasn't been much help.  Office 2007 is listed as  with Windows 8.


Java: notify() vs. notifyAll() all over again

If one Googles for "difference between notify() and notifyAll()" then a lot of explanations will pop up (leaving apart the javadoc paragraphs). It all boils down to the number of waiting threads being waken up: one in notify() and all in notifyAll().  However (if I do understand the difference between these methods right), only one thread is always selected for further monitor acquisition; in the first case the one selected by the VM, in the second case the one selected by the system thread scheduler. The exact selection procedures for both of them (in the general case) are not known to the programmer.  What's the useful difference between  and  then? Am I missing something?


What do eigenvectors of a data matrix consisting of house features/prices tell us?

I know this is one of the most repetitive question but bear with me please. I am trying to gain an intuitive understanding of eigenvectors. I had this example in my mind where there is a matrix A, the columns correspond to features of house such as floors, rooms etc and rows correspond to houses. Now if I compute the eigenvectors of this matrix what information will those eigenvectors give me ?


I got a hp/compaq presario c751nr, this laptop is a older computer with 2gb of ram i think it has a 64 bit processor but i believe it came with 32 bit vista,correct me if im wrong. im a tech savy linux newbie (coming from windows). what is a good distro for me, should i get the 32 or 64 bit version.


Unable to update: failed to refresh cache:E:The repository 'http://ppa.launchpad.net/gnome-shell-extensions/ppa/Ubuntu disco release'

I am using Ubuntu 19.04 and getting this error.    How to fix this?


Show that for each irrational number $x$ the set of limit points of the sequence  $(a_n)_{n\in\mathbb{N}}=nx-[nx]$  is the interval $[0,1]$.  ($[x]$ is the largest integer $\leq x$)  Any ideas how to prove that?


$|a_{n+1}-a_n| \leq \frac{1}{2} |a_{n}-a_{n-1}|$. I'm trying to show that $(a_n)$ is convergent by showing that $(a_n)$ is Cauchy.  let $|a_2 - a_1 |  =x$.   $|a_3-a_2| \leq \frac{1}{2}x$  $|a_4-a_3| \leq \frac{1}{2}|a_3-a_2|\leq \frac{1}{4}x$  In general, for every $n$:  $|a_{n+1}-a_n| \le \frac {1}{2^{n-1}}x$  Let $\epsilon >0$  for every $m,n > 0 $, say $m>n$ the following holds:  $$|a_m-a_n| = |a_m-a_{m-1} + a_{m-1} - a_{m-2} \dots a_{n+1}- a_n| \le$$  $$|a_m-a_{m-1}| + |a_{m-1} - a_{m-2}| + \dots |a_{n+1}-a_n| \leq \frac{x}{2^{m-2}} + \frac{x}{2^{m-3}} + \dots + \frac{x }{2^{n-1}}$$.  I can say that for big enough $n,m$, $|a_m-a_n|<\epsilon$ and therefore, this sequence is Cauchy? It sounds not good enough to me yet I don't know what else to do here.


I withdrew a lot of cash every month so far, do I need to wait until salary day to apply UK visa?

I’m working in Singapore, my salary is 3000 SGD per month. But I usually use cash for living costs (shopping, meal expenses, travel, rental) and my home is quite far away from the ATM, so I withdrew a lot of cash on salary day so far, my account balance is around 100 SGD every month. If I wait until I receive the next month of my salary to apply for a UK visa, is it possible? Because my salary isn’t too low in Singapore and I just visit the UK for 6 days.


If I want to kill a process as careful and politely as possible, which signals should I use in a kill command, in which order?   I would like to give the programm any kind of time to clean up, if it likes to, so just sending a SIGTERM will be to harsh, I think?   I'll use SIGKILL ("-9") last, that's clear.    But which to start? SIGHUP? Which signals are just a waste of time?     The relevant signals for reference, from     man 7 signal    Signal     Value     Action   Comment    ──────────────────────────────────────────────────────────────────────    SIGHUP        1       Term    Hangup detected on controlling terminal                                  or death of controlling process    SIGINT        2       Term    Interrupt from keyboard    SIGQUIT       3       Core    Quit from keyboard    SIGKILL       9       Term    Kill signal    SIGPIPE      13       Term    Broken pipe: write to pipe with no                                  readers    SIGTERM      15       Term    Termination signal


Distribution of time that a flashlight can operate

The lifetimes of batteries are independent exponential random variables , each having parameter $\lambda$. A flashlight needs two batteries to work. If one has a flashlight and a stockpile of n batteries, What is the distribution of time that the flashlight can operate?  What I have so far:  Let $Y$ be the lifetime of the flashlight; $Y_1=min(X_1,...,X_n)$ where $X_i$ is the lifetime of a battery ($1\le i\le n$), and $Y_2$ the second smallest of the $X_i$ (so $Y_1\le Y_2$)  I wanted to compute: $P[Y\le t]=P[Y_2\le k+m|Y_1\le m]$ where $k+m=t$ then we have that $$P[Y_2\le k+m|Y_1\le m]={P[Y_2\le k+m, Y_1\le m]\over P[Y_1\le m]}={P[Y_2\le k+m] P[Y_1\le m]\over P[Y_1\le m]}=P[Y_2\le k+m=t]$$ (because of the independence of the random variables)  So $P[Y_2\le t]=P[min(X_1,...,X_{j-1},X_{j+1},...X_n)\le t]$ (assuming $X_j=min(X_1,...,X_n)$) hence:  $$P[min(X_1,...,X_{j-1},X_{j+1},...X_n)\le t]= 1-P[min(X_1,...,X_{j-1},X_{j+1},...X_n)\ge t]=1-P[X_1\ge t,...,X_{j-1}\ge t, X_{j+1}\ge t,... X_n\ge t]=1-e^{(n-1)\lambda t}$$  I would really appreciate if you can tell me if this is the correct approach :)


Remove Windows 7 windows decorations (non-client area)

I would like to remove the border of the windows.  I want to have all windows without their window decorations, just the content (like using a theme without borders).  I know that then I wouldn't be able to resize any window by dragging its border, but that's fine. I just want the border to be gone.  It would be also great to remove the title bar if possible.  As a note, I'm not writing an application where I need a custom UI for its windows, but I'm opened to write any kind of program if necessary.  Any help would be appreciated.  edit: all newly created windows should start without titlebar and borders.


Transforming arbitrary distributions to distributions on $[0,1]$

I was reading Robert Serfling's 1980 book "Approximation Theorems of Mathematical Statistics" and came across the following construction of the Dvoretzky–Kiefer–Wolfowitz inequality for arbitrary distributions $F$,  which DKW prove for distributions on $[0,1]$.     Given independent $X_i$ with d.f. F and defined on a common probability space, one can construct independent uniform $[0,1]$ variates $Y_i$ such that $\mathbf{P}[X_i = F^{-1}(Y_i)] =1,\forall i$.   Why? Is this true for arbitrary distributions (including discontinuous ones)?  Secondly,     Let $G$ denote the uniform $[0,1]$ distribution and $G_n$ the sample distribution function of the $Y_i$s. Then $F(x)=G(F(x))$ and with probability $1$, $F_n(x) = G_n(F(x))$.   Why?  Now I don't understand quantile functions as well I would like, and so am having some trouble following these arguments.   Edit: All of this is on page 59 of the book.    whuber, thank you so much for your careful answer. It is appreciated. The answer to my question does indeed lie in the last paragraph of your reply - now if I could only wrap my head around it.  What is throwing me off is the following example which I have recreated from Galen Shorack's "Probability for Statisticians" (page 111). Here, the Lebesgue measure of the set $[X\neq F^{-1}Y]$ is not zero. Would you agree? I am referring to the points in the interval $(2,3)$ and in $(3,3.5)$ for which the inverse transformation does not bring any points back. Thank you again for looking into this.   \documentclass[a4paper]{article} % Graphics \usepackage{graphics} \usepackage{graphicx} \usepackage{pstricks} \usepackage{pst-plot} \usepackage{pstricks-add} \usepackage{epstopdf} \begin{document}  % An arbitrary CDF \begin{figure}[htbp] \begin{center} \begin{psgraph}[arrows=<->](0,0)(-1.5,-.3)(6,1.2){.5\textwidth}{2.5cm}  \psplot[algebraic, linecolor=black]{-1}{1}{.025*x^2+.1*x+.175} % {this goes from .1 --> .3}  \psplot[algebraic, linecolor=black]{1}{2}{-.1*x^2+.4*x+.1}  % {this goes form .4 --> .5}  \psline[linecolor=black](2,.5)(3,.5)  % this stays at .5  \psline[linecolor=black](3,.6)(3.5,.6)  % this stays at .6  \psplot[algebraic, linecolor=black]{3.5}{5}{  -0.1333*(x-5)^2+.9}  % this goes from .6 --> .9  \psdots[dotstyle=*](3,.6)(1,0.4)   \end{psgraph} \end{center} \caption{Arbitrary CDF with discontinuities and flat sections} \label{fig:cdf} \end{figure}  % The quantile function \begin{figure}[htbp] \begin{center} \begin{psgraph}[arrows=<->](0,0)(-.3, -1.5)(1.2, 6){2cm}{5cm} % inverses using the Matlab finverse symbolic toolbox function \psplot[algebraic, linecolor=black]{.1}{.3}{20*(x/10 - 3/400)^(1/2) - 2}  \psline[linecolor=black](.3, 1)(.4, 1)   \psplot[algebraic, linecolor=black]{.4}{.5}{-((x-0.5)/(-0.1))^(0.5)+2}   \psline[linecolor=black](.5, 3)(.6, 3) \psplot[algebraic, linecolor=black]{.6}{.9}{-((x-.9)/(-0.1333))^(0.5)+5} \psdots[dotstyle=*](.6, 3)(.5, 2) \end{psgraph} \end{center} \caption{Quantile function of CDF in figure (\protect \ref{fig:cdf})} \label{fig:qf} \end{figure} \end{document}   PS. I could not use the comment box for the reply as I needed to use the <code> environment.


How can I have a question unmarked as a duplicate?  I have had two questions now which have been incorrectly marked as a duplicate. I have explained clearly in my response why they are different, especially where the so-called duplicate question hasn’t been successfully answered, and the responses are dated.  I think that incorrectly marking a question as a duplicate devalues the process, and makes it difficult to move the question forward.  What is the mechanism for fixing this? The message says “please edit this question”, but that doesn’t seem to help.


For SEO should there be a web page for every URL path segment?

If I have a domain with the URL example.com/section-1/abc, should there also be a dedicated web page for example.com/section-1 from a SEO point of view?   Assume that there is no bread crumb navigation or any links to this page.


jquery event are not works on ajax loaded content(html)

When i load html content by using ajax, the jquery events on loaded html is not work.  For Example-  I have a jquery function-  $('.test').on('click', function(){   alert('hi'); });   ajax response :

test data

   Now clicking on ajax loaded data is not firing jquery On click event as i defined.


Downgrade a new Mac from OSX 10.14 to 10.11?

Ive got a Macbook Pro which i think is life expired. This Macbook Pro is running OSX 10.11 which is the highest OSX version i can go, as i need to run some specific software which only works on 10.11  Im looking at buying a new Macbook Pro, but presume they will come pre installed with OSX 10.14 is there anyway i can downgrade the new Macbook Pro to 10.11 ?


Oddities with AT TIME ZONE and UTC offsets

I don't understand the difference between these two columns. America/Chicago timezone is UTC-6, so I expect both to return the same result:  select timezone('America/Chicago', '2017-01-01 12:00:00'::TIMESTAMP AT TIME ZONE 'UTC'),        timezone('UTC-6'          , '2017-01-01 12:00:00'::TIMESTAMP AT TIME ZONE 'UTC');   However, the result is:  2017-01-01 06:00:00 | 2017-01-01 18:00:00   Also, this behavior is highly awkward,  SELECT '1:00 -1'::time with time zone AT TIME ZONE '-1';    timezone    -------------  03:00:00+01   Can anyone explain this?


Confusion about general cartesian products

My textbook defined general cartesian products as: Let $\{A_\alpha| \alpha\in\mathbb{A}\}$ be a family of sets. The the cartesian product $\prod_{\alpha} A_\alpha$ is the set of all maps $c$: $\mathbb{A}\rightarrow\cup_{\alpha} A_\alpha$ having the property $\forall\alpha\in\mathbb{A}: c(\alpha)\in A_\alpha$.  Since the cartesian product $A*B\neq B*A$, I was wondering is index set $\mathbb{A}$ always has some order to make sure the general product, for example, is $A_{\alpha 1}*A_{\alpha 2}*A_{\alpha 3}*\dots$ not  $A_{\alpha 2}*A_{\alpha 1}*A_{\alpha 3}*\dots$, or the general cartesian product includes both the cases $A_{\alpha 1}*A_{\alpha 2}*A_{\alpha 3}\dots$ and $A_{\alpha 2}*A_{\alpha 1}*A_{\alpha 3}*\dots$.   It somehow seems in either case the map $c(\alpha)\in A_\alpha$ is defined. Thanks!


How to decrypt aes-128-ecb data in postgresql?

I am looking for a way to decrypt aes that was encrypted earlier in mysql and then migrated to postgresql. In mysql I used standard aes_encrypt with block encryption mode aes-128-ecb, but I can't seem to be able to decrypt that in postgresql.  I am currently trying my luck with the decrypt function from pgcrypto module of postgresql 12, but I cannot make it to use 128-bit key length. The documentation listed aes-128 as possible, but didn't say how to enable it.  I was trying CAST(decrypt(cc_data, '...key here...','aes-ecb') AS VARCHAR but this shows wrong result. Choosing 'aes-128-ecb' results in 'No such cipher algorithm' error.


Prove that a subset of a linearly independent set is a linearly independent set

Let $S$ be a linearly independent subset of a finite dimensional space $V$.  Let $S_1 \subset S$, then prove that $S_1$ is linearly independent.   I have looked all through my textbook, but I have no idea how to solve this proof, or for that matter, even where to start.


Allow certain guests to execute certain commands

I would like to create a new user on some of my Debian/Ubuntu hosts that is able to update the server using the commands apt-get update and apt-get dist-upgrade, but I do not wan't to give them full sudo access to be able to do anything else. Is this possible? Perhaps there is a way to create a script that they can't edit but can execute, which will get executed as the root user?


Say I'm a federal employee and as far as retirement and healthcare, everything is smooth sailing, I'm well on track to retire comfortably with a pension in lets say 2045. Also consider zero debt, no car payment, and the typical 3-month security fund.  I'm supposed to do some work overseas in the next year, and conservatively I will come back with 50-80k in hand tax-free. During this time I will not hold residence in the US so will not be paying any mortgage or rent during that time.   Question is, if you essentially have this money and no immediate thing to purchase or put money towards, what is the best way to build wealth with that kind of liquidity?


How can I convert a text string to hour format with python

I need to convert a text string '2017-08-09T15: 00: 39.000Z' to hour format, to do operations with it


How to know the path of a particular software?

Context: I'm trying to make an application automatically start when I login. For this I need to select the path for the application.     Here are the paths I already looked into:   /sbin /usr/sbin /usr/local/bin /usr/share/   If this may help, the application I'm trying to find is called "" and I downloaded it from the Ubuntu Software Center.  But I cannot find it, is there any way I can know where is installed a particular software? Because even if I found for this one, I would like to avoid having the same issue in the future.


Evaluating a general solution to $5\cos \theta -12\sin \theta = 13$ using vectors

Given that   $$5\cos \theta -12\sin \theta = 13$$   I'm trying to evaluate a general solution for this equation. It appears I'll be using vector product.    My equation is equivalent to  $$\langle (5,12), (\cos\theta, \sin\theta)\rangle = 13$$  which yields (by Cauch Schwarz Inequality) $$|\langle (5,12), (\cos\theta, \sin\theta)\rangle| \le \|(5,12)\|\|(\cos\theta, \sin\theta)\| = 13$$  This is where I'm stuck.  Regards


Which two operator overloading methods can you use in your classes to support iteration in python?

Which two operator overloading methods can you use in your classes to support iteration?


Expectation maxmisation algorithm increases true likelihood at each iteration

I've heard that the EM algorithm ensures that the true likelihood is non-decreasing at each iteration of the algorithm, but I'm not sure why this is the case. I've provided a basic plot which I believe to illustrate the difficulty I have in understanding this.  To frame the question, let's first consider the EM algorithm decomposition, where $x$ is the observed data, $z$ is the missing data, $\theta$ represents the parameter set.  $$ L(\theta) \equiv \text{ln}P(x|\theta) = \text{ln}\left[\sum_{z}P(x|z,\theta)P(z|\theta)\right] $$  Multiplying by $\text{ln}\left[\frac{P(z|x,\theta\prime)}{P(z|x,\theta\prime)}\right]$ and adding and subtracting $L(\theta\prime) \equiv \text{ln}P(x|\theta\prime)$ yields  $$ \text{ln}\left[\sum_{z}P(x|z,\theta\prime)\frac{P(x|z,\theta)P(z|\theta)}{P(x|z,\theta\prime)}\right] - \text{ln}P(z|\theta\prime) + L(\theta\prime) \\ \geq \sum_{z}P(x|z,\theta\prime)\text{ln}\left[\frac{P(x|z,\theta)P(z|\theta)}{P(x|z,\theta\prime)P(z|\theta\prime)}\right] + L(\theta\prime)\ldots (\text{by Jensen's inequality}) \\ = \sum_{z}P(x|z,\theta\prime)\text{ln}\left[\frac{P(x,z|\theta)}{P(z,x|\theta\prime)}\right] + L(\theta\prime) \equiv B(\theta,\theta\prime) $$  This represents the expression we want to maximize in the EM process; from this, we can see that $L(\theta\prime)$ is a lower bound for $L(\theta)$ (this bound is realized when $\theta$ is equal to $\theta\prime$).  Now assume two possible entry points (theta$\prime$1 and theta$\prime$2) to the EM process exhibited in the plot below. In this plot, the true likelihood is given by the L(theta) (blue) line whilst the function to be maximised is given by the B(theta,theta$\prime$) (orange) line.  The local maximum corresponding theta$\prime$1 (which corresponds to the lower bound scenario mentioned above, L(theta) = L(theta$\prime)$) does indeed increase L(theta); however, the local maximum corresponding to theta$\prime$2 doesn't increase L(theta). What's to prevent the theta$\prime$2 scenario from happening?    Also, I've also heard that the role of the expectation step is to equate $P(x,z|\theta)$ and $P(z,x|\theta\prime)$ which would achieve the lower bound scenario above, but I'm not sure how this works. I suspect that this property is linked to the answer to the above question. Perhaps somebody could elaborate on this.


Do I need a transit visa for a technical stop in Australia?

I'm travelling to New Zealand, and my itinerary mentions a technical stop in Australia.  Will I need to apply for an Australian transit visa for this?


Can we slow down light? And then travel faster than it?

Well, first of all, I am not a physics major, just a high school student. Watching a bit of cosmos and some physics at school got me thinking about this.  Well, the earth exerts acceleration due to gravity of magnitude $9.8\;\mathrm{m/s^2}$ which causes deceleration in everything that we throw up, correct?  And if we assume light to be made of particles (photons), it should theoretically exert some acceleration on them as well, but I presume it would be very minimal so as to not cause any significant change.  But if we imagine an imaginary celestial body (and every celestial body has a finite gravity field, correct? beyond which gravity cannot act and henceforth exerting no acceleration towards it on any body) that has the gravitational force strong enough, so that it exerts a very strong acceleration on everything. If it's also luminous, a ray of light will escape from its surface at $3\times 10^8 \;\mathrm{m/s}$.  Now this time, imagine the acceleration due to gravity being so strong that by the time the light has reached the end of the gravitational field of that celestial body, the speed of light (or the photons, which should theoretically get slowed down) is now, let's say $20\;\mathrm{m/s}$.  The light, after escaping the gravitational field, considering there's no neighboring celestial body to exert a gravitational force on it, will maintain its speed of $20\;\mathrm{m/s}$. We can then send a satellite into space that can easily hit that speed, therefore traveling faster than what is still technically light.  Also, when we say it's impossible to travel faster than the speed of light, do we refer to a numerical value of $3 \times 10^8\;\mathrm{m/s}$ or the speed of photons? Because we can theoretically travel faster than photons? And if it's the numerical value, what are the basis to which we arrived at the cosmic speed limit?


How can I achieve a domed or "hangar" type cross-section shape?

Warning: I'm a day-two Blender user.  Specifically, I want the long, straight edges on the top face of the mesh to sort of "merge down" with the same edges on the bottom face (essentially, reduce it to one edge instead of two), with the curved ends ending up with flat bottoms and topsides curved in an even arc.  This shape was imported as an SVG, extruded and then converted to a mesh, but the geometry of it is super janky and overcomplicated-- WAY too many triangles and vertices. Ideally, the top face would simply be a series of long thin faces that line up with the sides. I tried to simplify the mesh in a couple of ways, but it didn't pan out and now I'm stuck. Should I just be reconstructing this shape some other way, or is this shape I've imported salvageable?    EDIT: I've been asked to clarify the end shape I'm talking about.


Chat misses some words when oneboxing Wikipedia info

Did you know Australia was home to megafauna 40-50,000 years ago? They were huge! Our , which is very appropriately named, was a wombat that stood taller than an adult. So too did our largest kangaroo, the . If these facts are terrifying to you, it's okay. They went extinct around the time humans arrived here, so they have your back. So does the chat onebox mechanism, which will handily erase all terrifying facts.  But really, the chat probably shouldn't do that. They are extinct, and we can handle it.


How can I disassociate "Esc" from "Exit full-screen view" in Safari?

When I press Esc in Safari, it exits from full-screen mode. There is another shortcut for that: CTRL-CMD-F and I'd rather keep only that one active. Is it possible to disable the Esc keybinding? I've looked at the Keyboard shortcuts and gestures in Safari on Mac page on the Safari User Guide. It says  To turn off or change keyboard shortcuts, see Create keyboard shortcuts for apps. [A page on macOS user guide]  But the Create keyboard shortcuts for apps page explains how to add a keyboard shortcut in the macOS settings section Apple menu  > System Preferences > Keyboard > Shortcuts > App Shortcuts. Obviously, I could remove a setting if it was listed there, but the default settings are not available. I thought of binding the Esc key with an undefined menu item, but in some contexts that keybinding executes actions that I'd keep configured as they are, ideally. In particular, it will perform the following (as presented in the Safari User Guide):   "While typing in the Smart Search field, restore the current web page address" "Close Reader" "Cancel editing a bookmark name in the sidebar"   I've also tried inspecting the situation with CheatSheet. The app is really cool, it displays (almost) all the keyboard shortcuts for an app and allows to edit them via another app (not tested), but the "Esc" is not on the list so I guess it also can not be edited.


Remove Sender name ( not email address) from outgoing Mac Mail

Instead of "from" showing (Name,Name)blablabla@hjgy.xxx  -  just show   blablabla@hjgy.xxx.  Only want my email address to show on certain outgoing emails from certain servives, ex. show Name and email address from Verizon service but (no name) email address only when sent from Gmail service.  Thanks


Solutions of Diophantine equations in Natural numbers

The one of solution of $x^4 - 2y^2 = -1$ is $x = 1$ and $y = 1$. However, the solution $(1, 1)$  of $x^4 - 2y^2 = 1$ is failed. We know $x = 1$ and $y = 1$ is small integers and we can check by trail method. In case more solutions are existing or not how to check? What are the solutions of $x^4 - 2y^2 = 1$?


How do I know my rank among all Stack Overflow users?  Where can I see a list of top users according to their rank on Stack Overflow?


Using any minecraft command that requires a entity to run (like /tp /testfor and etc) requires a entity piece, you can do it with players using the playername, and you can do with @e, @r, @p and @a, providing arguments or not.  That is my question: What are all Minecraft selector arguments (in 1.8) The ones I currently know are score_scorename=value, score_scorename_min=value.


Does gravity weaken by the square of the distance because the energy is dispersed over the square of the distance

The area of a circle is $\pi r^2$ if you increase $r$ the area will increase by the square so if this area was of energy and you increase the area it is dispersed you would expect its energy to weaken by the square. Is this the intuition behind gravity weakening be the square of the distance?


Can bounties be awarded after expiration?

At  I was able to award the bounty 25 minutes after it expired. Unfortunately I forgot to screenshot this, there was a message like "This question had a bounty ... that has expired 25 min ago", but the award bounty icon was clickable and so I did successfully. Is this a bug or the answer to the "I missed awarding my bounty in time" problem? The question did not show up under featured questions, so being able to award the bounty within some grace period actually seems sensible.  edit since bounties are now :


Why is Euclid's proof on the infinitude of primes considered a proof?

I've expressed Euclid's proof on the infinitude of primes on Mathematica:  f[x_] := Product[Prime[n], {n, 1, x}] + 1 TableForm[Table[{f[x], PrimeQ[f[x]]}, {x, 1, 20}]]   Which results in:  $\begin{array}{ll}  3 & \text{True} \\  7 & \text{True} \\  31 & \text{True} \\  211 & \text{True} \\  2311 & \text{True} \\  30031 & \text{False} \\  510511 & \text{False} \\  9699691 & \text{False} \\  223092871 & \text{False} \\  6469693231 & \text{False} \\  200560490131 & \text{True} \\  7420738134811 & \text{False} \\  304250263527211 & \text{False} \\  13082761331670031 & \text{False} \\  614889782588491411 & \text{False} \\  32589158477190044731 & \text{False} \\  1922760350154212639071 & \text{False} \\  117288381359406970983271 & \text{False} \\  7858321551080267055879091 & \text{False} \\  557940830126698960967415391 & \text{False} \\ \end{array}$  The proof flaws for all those values, how is it considered a proof then? I guess that there might be infinite prime numbers according to the proof, but what is the guarantee that at some point it won't fail indefinitely?


What is difference between "made in" and "made at"? The example sentences are:   This thing was made in a factory.  This thing was made at a factory.    Are they both correct? Do they mean the same thing?


Prove that there is no uniqueness of factorisation in $\mathbb{Z}[\sqrt{10}]$.

Consider $\mathbb{Z}[\sqrt{10}] = \{x + \sqrt{10}y; x,y \in \mathbb{Z} \}$.  We want to show that there is no uniqueness of factorisation.  I think that it's better to consider $9 = 3 \cdot 3 = (\sqrt{10}-1)(\sqrt{10}+1)$. But now we need to show that $3$ and $\sqrt{10}-1$ are irreducibles in this ring.  There is a problem with this. My attempt : let's say $3 = (a+\sqrt{10}b)(c+\sqrt{10}d) = \sqrt{10}(ad + bc) + (ac +10bd)$, now we have that   $ad + bc = 0$ , hence $3 = (a-\sqrt{10}b)(c-\sqrt{10}d)$ is appropriate too. So we have that $9 = (a^2 - 10 b^2)(c^2 - 10d^3)$ which give us 4 possibilities : $9 = 1 \cdot 9 = (-1)\cdot(-9) = 3 \cdot 3 = (-3) \cdot (-3)$. It's easy to see that the las two cases are invalid.  But what about first scenario. There will be some solutions for $a^2 - 10b^2 = 1$ and $c^2 - 10d^2 = 9$, but how can I show that these solutions doesn't hold equation $ad + bc = 0$? Any hints?


If $h : Y \to X$ is a covering map and $Y$ is connected, then the cardinality of the fiber $h^{-1}(x)$ is independent of $x \in X$.

In "Knots and Primes: An Introduction to Arithmetic Topology", the author uses the following proposition   Let $h: Y \to X$ be a covering. For any path $\gamma : [0,1] \to X$ and any $y \in h^{-1}(x) (x = \gamma(0))$, there exists a unique lift $\hat{\gamma} : [0,1] \to Y$ of $\gamma$ with $\hat{\gamma}(0) = y$. Furthermore, for any homotopy $\gamma_t (t \in [0,1])$ of $\gamma$ with $\gamma_t = \gamma(0)$ and $\gamma_t(1) = \gamma(1)$, there exists a unique lift of $\hat{\gamma_t}$ such that $\hat{\gamma_t}$ is the homotopy of $\hat{\gamma}$ with $\hat{\gamma_t}(0) = \hat{\gamma}(0)$ and $\hat{\gamma_t}(1) = \hat{\gamma}(1)$.  The author then follows with; "In the following, we assume that any covering space is connected. By the preceding proposition, the cardinality of the fiber $h^{-1}(x)$ is independent of $x \in X$."   I am not sure why this results is true. This is my attempt at explaining it to myself. Take two different $x_1, x_2$ and their fibers $h^{-1}(x_1), h^{-1}(x_2)$ such that $y_1 \in h^{-1}(x_1)$ and $y_2 \in h^{-1}(x_2)$. Take two paths $\gamma_1, \gamma_2$ such that $\gamma_1(0) = x_1$ and $\gamma_2(0) = x_2$. Then we get two lifts $\hat{\gamma_1}, \hat{\gamma_2}$ with $\hat{\gamma_1}(0) = y_1$ and $\hat{\gamma_2}(0) = y_2$. Now, since our covering space is connected we can continuously deform $\hat{\gamma_1}$ into $\hat{\gamma_2}$ and conclude that every elements in $h^{-1}(x_1)$ is also in $h^{-1}(x_2)$ and vice versa. I feel that this is wrong but cannot figure out the right way to see this. Any help would be appreciated.


How can I change the names of items in the EFI/UEFI boot menu?

I use Ubuntu 18.04 on my computer. This Ubuntu installation appears as ubuntu at system EFI boot menus.  I also have a external USB storage that has a EFI Ubuntu installation. This external USB storage also appears with the name ubuntu at system EFI.  I see two ubuntu menus at system EFI boot menus when external USB storage is attached. This makes it hard to figure out which ubuntu menu item points to the Ubuntu installation on the computer, and which one points to the Ubuntu installation on the external USB storage.  How I can change the EFI boot label to something different?  For example, how can I change ubuntu EFI boot label on the external USB storage to appear as External Ubuntu at system EFI boot menus?   The Ubuntu on my external USB storage has its own EFI partition.  This question is different from   This question is about how to change the Efi Boot name that appears in the EFI Firmware setup and not in the GRUB boot menu.


Prove that $x^n/n!$ converges to $0$ for all $x$

Prove that $a_n=x^n/n! \to 0$ for all $x$  Here is what I tried, but it seems to lead to nowhere.   Choose $\epsilon > 0$. We need to show that there exists $N\in \mathbb{N}$ such that for all $n>N$ we have $|a_n| < \epsilon$  So, $|(x^n/n!)| < \epsilon \implies |x^n| < n!\cdot \epsilon$ (since $n!$ is positive we ignore the absolute signs). So $|x|/(\epsilon^{1/n}) < [n!^{(1/n)}]$. Now I am stuck in solving this for $n$, and hence finding $N$ ...


So this might be a bit specific of a question, but I need BibLaTeX to output dates in the long DMY format - dd.mm.yyyy that is.  BibLaTeX documentation states that one can achieve dd/mm/yyyy by using the date = terse setting.  However, I'd like to have the date separator to be a dot instead of a slash. I didn't find any easy way to do this while browsing through the documentation.  Here's an MWE (and its output) on what I'm working on, roughly. I have been modifying the style = chem-rsc package to fit my needs (or rather my Uni's requirements), but I've omitted those changes here for they are irrevelent in this case.  \documentclass[a4paper,12pt,british]{article}  \usepackage[T1]{fontenc}  \usepackage[utf8]{inputenc} \usepackage[labelfont=bf]{caption} \usepackage[british]{babel} \usepackage{filecontents} \usepackage{csquotes}  \usepackage[backend=biber,     style     = chem-rsc,     autocite  = superscript,     autopunct = true,     sorting   = none,     sortcites = true,     eventdate = terse,     datezeros = true,]{biblatex}  \begin{filecontents}{viitteet.bib} @inproceedings{othusitse2015,     author      = {Nhlanhla Othusitse and Edison Muzenda},     title       = {Predictive Models of Leaching Processes: A Critical Review},     booktitle   = {7th Int. Conf. on Latest Trends in Engineering \& Technology},     location    = {Irene, Pretoria, South Africa},     eventdate   = {2015-11-26/2015-11-27},     pages       = {136--141}, } \end{filecontents}  \addbibresource{viitteet.bib}  \begin{document}  \section{Section}  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\supercite{othusitse2015}  \printbibliography  \end{document}     EDIT:  I tried tinkering with something like this...  \DefineBibliographyExtras{british}{%     \renewrobustcmd*{\bibdatesep}{\adperiod} }   ... but to no avail.


Can my laptop's Hard Disk be cloned and loaded to another laptop?

I bought an Asus X202E laptop and installed Ubuntu on it and then completely formatted it which deleted everything including the recovery partition. So i could not restore it. Then I installed Windows 8.1 update 1 complete raw and now I am not having those original Asus programs and drivers (I downloaded some but i am not satisfied).  My friend bought a new Asus X202E the same model. So I am planning to migrate his hard disk to an external hard disk then install it on my hard disk. By which i might get the same experience of a new asus X202E. Is it possible and if yes please tell me how? Will my friend's laptop be harmed?   thank you!


What are the exclusive pokemons of each region on 2nd generation?

Are there pokemons on the 2nd generation that only appear on specific continents? Which ones are those and from which regions?


Sufficient condition(s) for $f'$ to be Riemann integrable

Let $f:[0,1]\to \mathbb{R}$ be differentiable on [0,1]. We know that the derivative of $f$ denoted by $f'$ may not be Riemann integrable on [0,1].  We know that a necessary condition for $f'$ to be Riemann integrable is boundedness of $f'$ on $[0,1]$.  My question:   Is boundedness of $f'$ on [0,1] also a sufficient condition? What are other sufficient conditions of $f'$ to be Riemann integratble on [0,1]?


mask Dollar, brackets and quotes in remote ssh command

I want to do some script on a remote mashine through ssh:  ssh Server  "V=\$\(lua -e 'print\(require\(\\\"platform_info\\\"\).get_image_name\(\)\)'\); echo \$V"   But this echo $V at the end gives me no output.  I tried a lot of different masking with backslashes, but I cannot get this right.  How do I mask the command correctly and get the output of the lua command?


Do non-$\ell^2$ sequences have an $\ell^2$ functional that takes them to infinity?

Suppose $\{a_n\}_{n=1}^{\infty}$ is a sequence of real numbers (suppose also positive for simplicity) so that $$\sum_{n=0}^{\infty} a_n^2 = \infty$$ i.e. the sum diverges.  Can you necessarily find a square summable sequence $\{b_n\}_{n=1}^{\infty}\in\ell^2$ so that $\sum_{n=0}^{\infty} a_n b_n = \infty$ ?


How to make the switch from LaTeX to ConTeXt

I've heard and read much about ConTeXt and Metafun and there are tempting arguments to switch. But i still feel intimidated thinking about switching from my current LaTeX-environment, which includes heavy use of the KOMA-Script classes, Biblatex and a few other neat packages that i feel are hard to let go!  Will it be easy for me to switch? What would be a good starting point? Is there anything i can do in LaTeX/ Lualatex, that i can't do in ConTeXt just as easy? Will it even be worth it?


Chapter Opener Image is full page image. I have need to mask half page image and frond-end would like to put some text. I'm expecting the output (see screenshot). How do achieve this in LaTeX/XeLaTeX. I had searched and found only figure caption .   1Half-Page Image is BackEnd.  a) Put the Chapter Number and Chapter Title in Front End of the Half-Page Image. After Half-Page Image, Yellow Color box is back-end. 2Half-Page Image is BackEnd.  a) list text put in front of the second-half page in front-end text.     My MWE is:  \documentclass[11pt,twoside,openany,svgnames,x11names]{book} \usepackage{wallpaper} \usepackage{changepage} \usepackage[explicit]{titlesec} \usepackage{fancyhdr} \usepackage{tikz} \usetikzlibrary{shapes,positioning} \usepackage{lipsum} \usepackage{geometry} \geometry{    paperwidth=216mm, paperheight=303mm,    left=23mm,    right=18mm,    top=23mm, bottom=23mm,    headheight=\baselineskip,    headsep=7mm,    footskip=10mm } \definecolor{chapopcolor}{cmyk}{.18,0,1,0}  \newcommand\chapterillustration{}  \titleformat{\chapter}{}{}{0pt}{ \ThisULCornerWallPaper{1}{\chapterillustration} \tikz[overlay,remember picture]   \fill[chapopcolor,opacity=1]   (current page.north west) rectangle    ([yshift=-3cm] current page.north east);   \strictpagecheck\checkoddpage   \ifoddpage{     \begin{tikzpicture}[overlay,remember picture]     \node[anchor=south west,       xshift=20mm,yshift=-30mm,       font=\sffamily\bfseries\huge]        at (current page.north west)        {\fontsize{16}{18}\selectfont\textcolor{white}{\chaptername}\     \thechapter};     \node[text=blue,       font=\fontsize{32}{34}\selectfont,        inner ysep=12pt, inner xsep=20pt,       rounded rectangle,anchor=east,        xshift=-20mm,yshift=-30mm]        at (current page.north east) {#1};     \end{tikzpicture}   }   \else {     \ThisLLCornerWallPaper{.35}{fern_mo_01}     \begin{tikzpicture}[overlay,remember picture]     \node[anchor=south east,       xshift=-20mm,yshift=-30mm,       font=\sffamily\bfseries\huge]        at (current page.north east)       {\chaptername\ \thechapter};     \node[fill=Sienna!80!black,text=white,       font=\Huge\bfseries,       inner sep=12pt, inner xsep=20pt,       rounded rectangle,anchor=west,       xshift=20mm,yshift=-30mm]        at ( current page.north west) {#1};     \end{tikzpicture}   }   \fi } \titlespacing*{\chapter}{0pt}{0pt}{135mm}      \begin{document} \pagestyle{headings}  \renewcommand\chapterillustration{six-computers-chips-circuits}  \chapter{Chapter TeXt Here}  \section*{What you will learn} \section*{Asian curriculum}  \begin{itemize} \item[1A] Number Systems \item[1B] Place value \item[1C] Addition and subtraction \item[1D] Addition and subtraction \item[1E] Multiplication \item[1F] Multiplying larger numbers \item[1G] Division \item[1I] Estimating and rounding Order of operations \end{itemize}  \section*{Statistics and Probability}  \begin{itemize} \item Data measures Determine mean, median, and range and use these measures to compare data sets explaining reasoning \item Data investigation Investigate questions involving the collection of univariate and simple bivariate data \item Sample space Construct sample spaces for single- step experiments \item Relative frequency Calculate relative frequencies, and recognise variation between results \end{itemize}  \end{document}


Why does Google Analytics show more users than sessions?

My Google Analytics page shows almost twice as many Users than Sessions. It really doesn't make sense to me, does anybody know what's the reason for this?  Here is a snapshot from my GA dashboard:


How to stop Skype from starting automatically?

I close the Skype app in my Android phone (samsung s3 mini)  If Skype is open on my pc and I receive a call it also starts automacically in my phone without my input!   How can I avoid such a strange behavior? Thank you


I know Serre gave a way to convert a nice enough scheme over $\mathbb C$ to a complex manifold in his famous GAGA article but is there a way to go back? Here are a few thoughts.   Let $M$ be a noncompact complex manifold, then we can define a locally (maybe not locally, I don't know?) ringed space X to be the set of points on $M$ with the topology defined by letting the sets $f^{-1}(0)$ be closed for all holomorphic functions $ f: M \rightarrow   \mathbb C$ and structure sheaf given by $$\mathscr O_X(U) =  \mathscr O_M(U)$$  Letting $\mathscr O_M$ be the sheaf $\mathbb C$-valued holomorphic function on M.  Is X a scheme? If so, M obviously cant be compact since then any holomorphic function to $\mathbb C$ is constant but are there other constraints or does all such M define a scheme?  Or would it perhaps be wiser to follow the construction made on p.78 in Hartshorne. Consider t(M) to be the set of all nonempty closed complex submanifolds of M (M is now possiby compact).  The resulting locally (again not sure if its local) ringed space has topology given by defining closed sets to be of the form $t(N')$ for all closed submanifolds N' of M.  Then there is a continuous function $$\alpha : M \rightarrow X, p \mapsto cl\{P\}$$and we let the structure sheaf on t(M) be the sheaf $\alpha_* \mathscr O_M$.  Is t(M) a scheme?  Edit: I just realized that Chows theorem is important for the case where M is a closed submanifold of some $\mathbb{CP}^n$. I think it shows that for such M, t(M) is indeed a scheme.  Second edit: Someone has identified a possible duplicate of my question but this similar question does not answer my very specific question of is X or t(M) schemes for complex manifolds M?


JQuery on() method in native javascript for dynamically generated elements

I'm looking for native JavaScript code for this example with jQuery:   $("#parent").on("click", ".child", function(){     alert("clicked"); });   What I did so far works with the elements that come with the page but not the dynamically generated ones:   var children = document.getElementById("parent").getElementsByClassName("child"); for (var i = 0, l = children.length; i < l; i++) {     children[i].onclick = foo; } function foo(el) {     alert("child clicked"); }   How can I make this code work for the dynamically generated elements?  If you are looking for the answer, here it is:


Higher order function question involving closure

In chapter 5 of Eloquent Javascript () there is an example that I'm having a hard time wrapping my head around.     function greaterThan(n) {   return m => m > n; } let greaterThan10 = greaterThan(10); console.log(greaterThan10(11)); // → true     I get the initial call of the function and assigning n to 10. It's when it's called a second time I don't understand how 11 would get passed to the variable m (wouldn't the parameter still be n? I almost want to think it would overwrite 10 with 11).   When I do alert(greaterThan10) it shows m => m > n which I was also confused as to why it wouldn't show n as 10.


Merge an arbitrary number of dictionaries of lists

How could dictionaries whose values are lists be merged in Python, so that all of the keys are moved into one dictionary, and all the elements of each list moved into a single list for each key?  For example, with these dictionaries:  x = {'a': [2], 'b': [2]} y = {'b': [11], 'c': [11]}   ... the result of the merging should be like this:  {'a': [2], 'b': [2, 11], 'c': [11]}   How could this be done with any number of dictionaries, not just two?


"The toy train is made of plastic."   Or     "The toy train is made from plastic."   Which one is correct? Why?


Seeking three Schengen (tourist) entries with travel to US for 5 weeks and Croatia for 3 days in between

I am travelling from India with the following itinerary:   India -> Germany (April 1, 2018- April 21, 2018) = 21 days Germany -> USA (April 21, 2018- June 30, 2018) = 39 days [not Schengen - I already have a 10 year US visa] USA -> Italy (July 1, 2018- July 15, 2018) = 15 days Italy -> Croatia (July 15, 2018- July 17, 2018) = 3 days [not Schengen - but requires a multiple-entry Schengen visa] Croatia -> Germany (July 18, 2018 - July 20, 2018) = 3 days Germany -> India (July 20, 2018)   I can see I will need a multiple-entry Schengen visa valid for at least 6 months or so. But I'm confused what the number of days permitted for my "Duration of Stay" in Schengen will be. i.e. What should I seek in duration of stay? Will they grant 90 days or an exact number of days?


Is hardware support for virtual memory necessary to install Linux Operating system on that hardware (processor)?

Is hardware support for virtual memory necessary to install Linux Operating system on that hardware?  Is it true that Linux Operating System cannot be installed on devices (processors) that do not have MMU (Memory Management Unit) ?


Can someone please explain Lovasz softmax loss? as its a bit difficult to understand why it works well from the original paper

Lovasz Softmax is used a lot these days for segmentation problem and the original paper is really bad at explaining why it works.


Too much information can be a bad thing.  If a stack trace isn't helpful to the answer, all it serves to do is clutter up the entire question and deter people from even wanting to read the question.  Other times, the stack trace may hold the answer, but it was omitted because posting it would harm the aesthetic value of the question.  I for instance am admittedly biased towards questions that make me have to read an entire novel to answer a question -- even when the question might be simple.  I open up the question, see 10 pages worth of routines and markup, and quickly go back to find a more condensed question.  I would like to suggest having a collapsible panel tag on a question that would allow an extremely long region of code to be condensed.  Then, if I cared about the stack trace, for instance, I could expand the panel to see the entirety of the code.  While newer users wouldn't be versed into doing this, administrative users could easily wrap long code in a region and then collapse it.  It would attract more users to the question and allow more information to be added without having too much information  For instance, the first line the a code example could be a special collapse tag, e.g.  ::Collapsed [Long Stack Trace]   Then, if you actually cared about reading a stack trace, you could just click on the + to expand it.  Otherwise, if you knew the answer without needing a drawn out version of the question, you could just answer it.


Why can't horcruxes in Harry Potter be destroyed by Avada Kedavra?

In the Deathly Hallows book/movie, Voldemort 'kills' Harry with the avada kedavra curse. But if Harry was a Horcrux, then why can't the other horcruxes be destroyed by Avada Kedavra? It might be because they're not alive, but then why didn't Harry die with the Horcrux?


So we have arithmetic mean (AM), geometric mean (GM) and harmonic mean (HM). Their mathematical formulation is also well known along with their associated stereotypical examples (e.g., Harmonic mean and it's application to 'speed' related problems).  However, a question that has always intrigued me is "how do I decide which mean is the most appropriate to use in a given context?" There must be at least some rule of thumb to help understand the applicability and yet the most common answer I've come across is: "It depends" (but on what?).  This may seem to be a rather trivial question but even high-school texts failed to explain this -- they only provide mathematical definitions!  I prefer an English explanation over a mathematical one -- simple test would be "would your mom/child understand it?"


How can I connect two different DC power sources together?

How can I connecting two different DC power sources together? for example 15Vdc(5Amp) with 5Vdc(2Amp). I want to make one DC source (20Vdc,7Amp) by more powerful supplies.


package com.example.android.appname; import android.app.Activity; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.view.MotionEvent; import android.view.View; import android.widget.Button;  public class SampleActivity extends Activity {  Button b1;  MediaPlayer player=MediaPlayer.create(Activity.this,R.raw.sound);   @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);      setContentView(R.layout.activity_screen);     b1 = (Button)findViewById(R.id.button1);     b1.setOnTouchListener(new View.OnTouchListener() {          @Override         public boolean onTouch(View v, MotionEvent event) {            if (event.getAction() == MotionEvent.ACTION_DOWN);             player=MediaPlayer.create(DisplayActivity.this,R.raw.sound);             player.start();             else if (event.getAction() == MotionEvent.ACTION_UP)                 player=MediaPlayer.create(DisplayActivity.this,R.raw.sound);                 player.stop();                 return true;         }     });}  public void onClick(View view) {     Intent intent = new Intent(this, Activity.class);     startActivity(intent); }   }   When I try to open a screen with the button playing sound, app crashes and in logcat appears something like this:  java.lang.RuntimeException: Unable to instantiate activity    ComponentInfo{com.example.android.appname/com.example.android.appname.'NAME'Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference   Also 'else' in 'else if' goes redlined and says: 'else' without 'if'  Please tell me what should I do to make this work :)


Select an element after another element in JavaScript

How can I select the element after an element in JavaScript? As example I need to add a class to the element after an element when hovering over it


I am not sure where this question fits, something like "culture?"

In England there are Yorkshiremen who know "aught from naught" and in general have the reputation of being hard to fool or cheat. Years ago I wrote to the editors of The New Scientist and asked if Yorkshiremen were anything like Missourians (from The Show Me state) and while they seemed intrigued, I never got an answer. So, where would I ask this so that someone who knows England and the USA folk culture might see and answer this?


According to Euclidean lemma it is defined that if $p$ is prime then $$p|ab\Rightarrow p|a\lor p|b$$ How to prove by descending induction that if $$p|a^n \Rightarrow p|a $$  knowing that $a^n = a \times a^{n-1}$  If there is an easier solution don't hesitate to post


Do I need an airport transit visa through Switzerland (Schengen) if I have no Schengen visa?

Do I need an airport transit visa through Switzerland if I have no Schengen visa? Am traveling from Cairo to Moscow via Swiss Air


Alternate methods to prove $(1+a)(1+b)(1+c)(1+d) \geq 16$ if $abcd =1$.

I found this question some time ago in an Elementary Olympiad book:  If $a, b, c, d$ are positive integers such that $abcd =1$, then prove that $(1+a)(1+b)(1+c)(1+d) \geq 16$.  Evidently this was a direct consequence of Hölder's inequality, so I merely gave the following proof. $$(1^4+(a^{\frac{1}{4}})^4)(1^4+(b^{\frac{1}{4}})^4)(1^4+(c^{\frac{1}{4}})^4)(1^4+(d^{\frac{1}{4}})^4) \geq (1+(abcd)^{\frac{1}{4}})^4 $$ $$(1+a)(1+b)(1+c)(1+d) \geq (1+1)^4$$ $$(1+a)(1+b)(1+c)(1+d) \geq 16$$ QED.  However, I was requested by my instructor to try the problem again using only the AM-GM inequality or the Cauchy-Schwarz inequality, because it is supposedly solvable using only those two. At this point I expanded the expression believing that all the terms so formed would be of the degree $4$, and would, when taken together in groups, yield a power of $abcd$ on the GM side, which could then be added. Doing so, however, I only get the weaker result that $(1+a)(1+b)(1+c)(1+d) \geq 14$. I would appreciate a hint for this tantalizing problem.


Where can I find stock Android for Samsung Galaxy Note 2?


Closed form for $\int_0^\infty\frac{1}{(1+x^2)^s}\,dx$ when $s\in (0.5,\infty)\setminus\mathbb{N}$

I know that the improper integral  $$ \int_0^\infty\frac{1}{(1+x^2)^s}\,dx $$ is convergent for $s>0.5$ and divergent otherwise. Furthermore, it has a closed form for $s \in \mathbb{N}$ (this can be obtained using the Residue Theorem). My question is to know whether it has a closed form for any non-integer $s >0.5$.


I am looking for Melbourne shape file map (boundaries or suburbs or roads). Just for Melbourne.   Any one knows where I can download it?


no reputation increase on my stackoverflow account

I am not getting +2 reputation for every approved edit. I can see in my activity that all the edits that i suggested are approved. plz let me know, why is it so. is there some limit on edits??  Thanks


Why doesn’t the equation "break" when we put a value $x$ while solving partial fractions?

Let’s suppose we want to decompose $\frac {9}{9-x^2}$ by partial fractions. I was taught that we proceed by writing $$ \frac{9}{9-x^2} = \frac{a}{3+x} + \frac{b}{3-x}, $$ where $a$ and $b$ are unknown constants.  Clearing the fractions, we get $$(3-x)a + (3+x)b = 9.$$ To find $a$, we assume that $x=-3$ and solve the resulting equation; and similarly, to find $b$, we assume that $x=3$ and solve.  But when we assume it we are diving by $0$ in the original fraction which isn't possible!  I am confused.  How does this procedure give the correct result?


Update off Windows 10, But Auto start again

My windows 10 updated was off. But some day's later, It automatically taken update.I also remove from service.It's happens several times.How can I off permanently updated from my pc.


Why do I get dropped into a GRUB rescue console?

I've been setting up my environment on a fedora 20 64bit, the last week. After a restart tonight I am unable to boot into my system. It boots into this terminal/prompt and it says:   [ Minimal bash-like editing is supported. For the first word, TAB lists possible completions of a device/filename. ]  grub>   I've tried to rescue the system, with the dvd, but no luck. I have installed a lot of software and I would rather not have to do it for the third time this week, last crash was because I installed grub2 and made some configurations, to include xen hypervisor support in the bootup  forgetting to turn "Secure boot" off in the bios.  Can anyone tell me what to do? What I can do.


How to set up the matrix in data generation in R?

I am trying to generate two continuous predictors and one continuous outcome from mvrnorm. Now, I am trying to set up both standardized slopes at 0.3. This is my R code. n.tr=10 mu = c(3, 3, 3) Sigma = cbind(c(0.91,0,0.3),               c(0 0.91,0.3),               c(0.3,0.3,0.91) dat =  as.data.frame(mvrnorm(n=n.tr, mu=mu, Sigma=Sigma,                       empirical=TRUE)) colnames(dat) = c('z', 'w','y')  I want both of the standardized slopes to be 0.3, and 0 correlation between z and w. I also want the variance of y to be 1, so the residual variance of y is 0.91. If i want the diagonal of the matrix to be residual variance, how can I set up the matrix?


Can't install Bastille on ubuntu saucy 13.10

I followed the .  I enabled universe repository. But apt-get and aptitude both fail with "no candidate found".  I assume this means Bastille is not available for Saucy?  Any assistance would be appreciated.


How do I change how often the Mac App Store in High Sierra checks for updates or notifies me about them?

I feel like I constantly get notifications from the Mac App Store. I find this distracting and stressful and would like to change how often the Mac App Store checks for updates, or how often it notifies me of these updates.   I know I can go into System Preferences and disable the automatic checking for updates, but I don’t want to do this as I’m not likely to remember to manually check for updates myself.  Is it possible to check for updates less often or to get notified less?


Absolute ident of section heading text but not number

I'd like to (resp. have to) ident the text of all section headings in a document (+ the abstract and quote enviornments, but that should be easy--by comparison) to 0.4" from the left margin of the page (like using a tab in a word processor).  The headings should look like this:    So far, I have:  \def\@seccntformat#1{\csname the#1\endcsname.\quad}   My guess is that there should be a way to replace \quad with something that works like a \absoluteposition or \tabto? Is there any onboard way to do this in Latex  I'm also using the sectsty package for some other reason but couldn't find anything about this in the documentation.


Statics Banner Content Consider as Duplicate?

One Quarry!!   Suppose if I have site having 10 pages (with 3 different categories) and all pages have one static banner which is running in all pages. Now let say it 3 categories be A, B , C defining 3 services and having few content on the banner representing the service then condition of duplicate content will arise or not??


Windows 8.1 multi monitor setup with a vertical taskbar grabs mouse when moving across border

So I'm having a problem with what I believe to be a recent Windows 8.1 update (probably ). I use a vertical taskbar on the right side between two monitors. When I move my mouse across the split at a slow enough speed, the mouse ends up "sticking" to the current monitor. This catches me off guard several times a day at least and I find it intensely annoying. I haven't found any option to turn it off.  It also happens when the taskbar is on the left on the other monitor. It does not happen when there are no taskbars on that edge. It may also happen with a horizontal taskbar in a multimonitor layout with screens stacked vertically, but I haven't tested this.    Any ideas on how to disable this behavior?


Is there any way to install linux on a T2 chipset equiped laptop?

I would like to install Linux on a MacBook but Linux won't be able to detect the Chipset T2 and interact with it. And the SSD is behind so that'd required. I am talking about installing it in the bare metal, i.e. no virtual machines.  Anyone knows a workaround for that?


Show that $\overline{x}\in\Bbb Z/(n\Bbb Z)$ is invertible iff $\gcd(x,n)=1$

Be $n$ greater than 2 integer and is $\bar x\in\mathbb{Z}_n-\{\bar0,\bar1,\bar2,\ldots,\overline{n-1}\},$ $\;0\leq x<n$. Show that $\exists\; \bar y\in\mathbb{Z}_n$, such that $\bar x\cdot \bar y=\bar y\cdot \bar x=\bar1\Longleftrightarrow gcd\{x,n\}=1$ (i.e., the elements $\bar x$, $0\leq x<n$, invertible in $\mathbb{Z}_n$ são aqueles tais que $gcd\{x,n\}=1$)


Converting X,Y coordinates to lat/long using pyproj and Proj.4 returns the wrong coordinates

I'm writing a python script that reads multiple XML files containing x and y coordinates and combines them all into a single csv file.  Latitude and Longitude are required fields in the csv, but I am having difficulty converting the x,y coordinates in Ohio North State Plane usFt to WGS84.  >>> p = Proj(r'+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=us-ft +no_defs') #Nad83 State Plane Ohio North US Feet Proj object using parameters >>> p(739400.91,2339327.3,inverse=True) (-80.138057868777224, 60.278230707978487) >>> p1 = Proj(init="epsg:3734") #Nad83 State Plane Ohio North US Feet Proj object using EPSG code >>> p1(739400.91,2339327.3,inverse=True) (-80.138057868777224, 60.278230707978487)   Both methods above return the same result, however this lat long is somewhere in Hudson Bay.  When I plot the coordinates in ArcMap, the correct lat long is: -81.142311,41.688205.  *Notice all lat longs are provided long,lat as this is the order Proj uses  Does anyone know why I would be getting the wrong coordinates from Proj.4 and pyproj?


I'm having a little trouble with this problem -   Find all z such that $z^7=(z+1)^7$.  I've moved $(z+1)$ to the other side to obtain $(\frac {z}{z+1})^7=1,$ but I'm not sure how to carry on. I've tried converting to complex exponential form, but how would I simplify and solve? Thanks!


How to properly configure jQuery for Views Slideshow/Flexslider displays in blocks

I've been playing with a slider/slide implementation for my site. But don't know how to configure jQuery properly.  My research suggests that this is an issue with the implementation of a jQuery version, but there's conflicting information on how to resolve the problem in the various documentation. I'm aware of both jquery_update and jquery_plugin modules. My current setup have manually loaded libraries for jquery.cycle and Flexslider per their individual documentations. Earlier posts suggest this was a jQuery version conflict.  The issue I have is that the slideshow only cycles in the preview on the page view of the slider. It doesn't cycle in the block view, and it doesn't cycle when it's placed on my page. This the case with both Flexslider and with Views Slideshow. I have the correct modules and libraries, I just don't understand why it works in preview and not when placed on the page.  This post addresses a similar issue , but doesn't really elaborate on how the jquery update conflicts, or how to solve the problem. This post was was flagged as a duplicate so I am trying to articulate what I think I need help with here.   I have searched the documentation on Views Slideshow and Flexslider, and I haven't found an obvious solution to the problem, or a definitive way to address the problem. What seems to be the case is that this is a jQuery versioning issue, where for some reason the javascript isn't initialized from the block itself, but only a page view. I don't know enough about the behavior of javascript in Drupal to understand exactly why one will make the js call, and the other won't?


Group presentations and the Dihedral Group

I'm going through Dummit and Footes Abstract Algebra book, and have a question on their characterization of group presentations.  They state that:      In general, if some group $G$ is generated by a subset $S$ and there is some collection of relations, say $R_1, R_2, \ldots , R_m$ (here each  $R_i$ is an equation in the elements rom S $\bigcup$ {1} ) such that any relation among the elements of S can be deduced from these, we shall call these generators and relations a presentation of G and write $G = \langle S | R_1, R_2, R_3, ... , R_m \rangle$.     He goes on to give the dihedral group presentation as:      $$  D_{2n} = \langle r,s | r^n = s^2 = 1, rs = sr^{-1} \rangle \space\space (1)   $$   The authors had shown geometrically that $D_{2n}$ has order $2n$ but they went on to say that as a result any group with only the relations in (1) must have order at least $2n$.  They also claim that any any group with the (1) presentation must also have order at most 2n ( the author states that using the relation $rs = sr^{-1}$ accomplishes this). Hence the order must equal $2n$.  Edit: To quote the others directly from page 27, chapter 1.2:       " This kind of collapsing does not occur for the presentation of D$_{2n}$ because we have showed by independent (geometric) means that there is a group of order 2n with generators r and s satisfying the relations in (1). As a result, a group with only these relations must have order at least 2n. On the other hand, it is easy to see (using the same sort of arguments for X$_{2n}$ above and the commutation relations rs = sr$^{-1}$) that any group defined by the generators and relations in (1) has order at most 2n. It follows that the group with presentation (1) has order exactly 2n and also that this group is indeed the group of symmetries of the regular n-gon."    Can someone please provide the details behind this argument for why the presentation guarantees the order to be equal to $2n$? Why do we have that if a group $G$ ONLY has the relations in (1) then we must have $|G| \ge 2n$? If such an argument works to show $|G| \ge 2n$, why doesn't that same argument work for showing $|G| \le 2n$?


Why don't we keep evolving until we are super-human?

Humans (homo sapiens) have been on the earth for thousands of generations, and we have kept evolving throughout that time. Why don't we just keep evolving so that, let's say, we live for an average of 300 years? Or why don't we evolve so that we don't need to sleep?  This could also apply to many other species.


Capacitors on a voltage regulator? Or just in general

In a very concise description, what does a capacitor do for a voltage regulator (for example a 3.3v).  I have used the regulator with and with out the capacitors and no difference (that I can tell).  Also what does a Capacitor do in general?  I understand why most electronics work, but I don't really understand the uses that I have seen for the Capacitors for.    I am hoping others can also use this to understand it a bit more.


Throughout the entire game, I have sold all the treasure-type items I got. Do they serve any purpose other than profit?


Where to ask a question about future version numbers of Clang vs. Apple Clang?

I would like to ask where to ask a question like this:     I'm just curious if there are any known plans about what happens when the LLVM version numbers eventually catch up to Apple's ridiculous version numbers.  It's close if not has already happened.   Does such a question belong anywhere on the Stack Exchange network, or should I reach out to the mailing lists?


Bootstrapping still requires outside support

I've heard of the idea of bootstrapping a language, that is, writing a compiler/interpreter for the language in itself.  I was wondering how this could be accomplished and looked around a bit, and saw someone say that it could only be done by either   writing an initial compiler in a different language. hand-coding an initial compiler in Assembly, which seems like a special case of the first   To me, neither of these seem to actually be bootstrapping a language in the sense that they both require outside support.  Is there a way to actually write a compiler in its own language?


Flagged emails keep returning and won't synchronize between Apple Mail and Gmail

I've had this problem before and can't recall how I managed to fix it last time. I use Apple Mail to access my Gmail and normally flagged emails show up correctly. Starred emails in Gmail equate to flagged emails in Apple Mail and I can unflag an email in either Gmail or Apple Mail and it works.  But now I've got four emails that I can't unflag. They're not flagged in Gmail at all (although they used to be). When I see them in the Flagged folder in Apple Mail, they don't even have flag icons next to them but they're still counted in the number showing next to "Flagged". If I manually re-flag them and then unflag them, they disappear from the Flagged box. But then if I click into Inbox and then back into Flagged they show up again.  Any ideas about how to make these guys disappear for good?!


Confused about the assignment method in Ruby (defined method with equal sign)

I am really confused about the assignment method in Ruby. In the documentation, it says:     Methods that end with an equals sign indicate an assignment method.   For assignment methods, the return value is ignored and the arguments   are returned instead.   I know this can be use as setter method in Class. However, I still feel confused about the concept. In the code below:  class Foo   # setter method   def foo=(x)     puts "OK: x=#{x}"   end end f = Foo.new f.foo = 123 # OK: x=123  def a=(value)   puts "value is #{value}" end a = 123     # why there is no output? p a         # 123, why this only return the argument? p a = 123   # 123, why this only return the argument?   Why the method with equal sign run differently in the Class and outside the class?


Short story about a test subject pioneering with robot help that becomes less helpful

About 50 years ago I read a short story about a person sent to live on the moon with a robot helper.  Rather than a traditional high IQ athletic astronaut, the man is an average guy in every way.  The project is a test to learn how an ordinary person could cope with the rigors of colonizing a new world, thus aiding in planning future interstellar colonizations by ordinary pioneers.  At the beginning the man makes many mistakes and suffers a variety of accidents and injuries caused by his own clumsiness and other short-comings.  Without the robot helper he would not have survived.  However, as time passes the man becomes much more physically fit and competent in all aspects of survival.  However, at the same time he notices the robot seems to be less and less helpful, making its own mistakes with increasing frequency, often resulting in injury to the man.  The man finally realizes that the scientists who designed the project anticipated that with experience his competence would increase, thereby decreasing his value as a test subject representing ordinary and inexperienced pioneers on a new planet.  Therefore, the scientists programmed the robot to compensate for the man's increasing competence by becoming less competent itself thereby preserving the desired test environment.  The man decides he would be better off without the robot and pushes it into a deep crater, presumably destroyed by the fall.  For a few months everything goes well.  Then, without warning, the robot reappears, having climbed out of the crater.  The robot seeks to inflict on the man at one time all the many problems and injuries it should have caused during the months the robot was absent - which of course would kill the man.  The man outwits the robot (I forget how) and destroys it for good.  I would be very grateful if someone can identify the author and title of this story.


Dell Latitude E6430, that originally came with Windows 7 Pro from Dell. COA says "Windows 7 Pro OA". Successfully updated to Windows 10 Pro when the update was available freely. I now have reasons (don't ask) to want Windows 8.1 on that computer.  Do I have a legit Windows 8.1 Pro license?  Bonus questions:    Assuming yes to the main question, would it be easier to do with the official media from Microsoft, or with a Dell DVD? Since the Windows 7 DVD from Dell doesn't require activation due to the license being stored in the BIOS, I'm assuming that it might be the same for 8.1, therefore making it easier with a Dell DVD? Is there a tool to check what license(s) are stored in a laptop's BIOS, to figure out which versions of Windows can be installed without installing them?


Is this true? 2 does not divide 1? Does a proof exist for this? Is it because the outcome will be a fraction and that is not allowed in discrete mathematics? I am new to this.


Buy new VPS just for Mysql or upgrade current one and keep the whole stack on the same server

This is not a question about capacity planning, its about mysql performance over local network vs on the same virtual machine (where it needs to share cpu with other processes)  I have a wordpress+woocommerce site hosted on a VPS with 2 cores, 4gb of ram and local nvme storage, configured with ubuntu 18.04, nginx, php7.3 and percona mysql 8. Hosted on Hetzner in Germany.  Lately traffic on my site grew and so did my cpu usage. mainly by mysql ( roughly 2/3 of the cpu is used by mysql and the other 1/3 by php-fpm). Sometimes when i have many people visiting my site at the same time it takes a lot of time to load because my cpu is at 100% for many seconds    I'm now facing a decision to make: buy another VPS like this and move mysql onto it or upgrade this VPS and double its specs?   Either way it will cost me the same, certainly having 2 separate machines means disaster recovery would be easier/faster, if one of the servers crashes I would have to recover only half of the services to put the site back online and it could also be easier to setup a load balanced system in future.   But how much will it cost in terms of TTFB having to contact another machine on the private network everytime wordpress needs to query the database?  Or might my load times improve because I'm dedicating 2 cores to php and 2 cores to mysql so they can work more in parallel on the same request with less queueing?  My priority is to make my site's TTFB as short as possible, without php cache because I can't use it for technical reasons right now.


I'm kinda new to Python and I need help. So basically I want to make a function that will run a specific file (.vbs, or some app). How do I do that? Thanks.


How do I re-use a previously-collected Word dictionary

I regularly add some words to my MS Word dictionary. When I install a new copy of it on my computer, it's painstaking to add all of them manually again. Is there a way to automate that?


Why are standing waves produced in an open organ pipe if the medium is same after all?

I've been taught that the densities of air inside and outside the pipe differ slightly. Why should this happen. And let the densities vary, then during reflection from the ends, the reflected wave must have a slightly lesser amplitude than the incident wave and nodes won't be produced on superposition. But,we know standing waves form.Why?


Cycles. Image sequence used as texture renders pink

I add to texture as image sequence on plane I set up first and end frame. Auto refresh and cyclic activated.It works well in rendered mode but texture goes pink when I render it.It seems like texture is missing.  Blender v275 OS Windows 8.1 64 bit Cycles render


How do you add a comment form on your user profile in Drupal 7? I have installed panels but I don't know how you add the comment form on the users profile


Div 100% height works on Firefox but not in IE

I have a container div that holds two internal divs; both should take 100% width and 100% height within the container.  I set both internal divs to 100% height. That works fine in Firefox, however in IE the divs do not stretch to 100% height but only the height of the text inside them.  The following is a simplified version of my style sheet.  #container {    height: auto;    width: 100%; }  #container #mainContentsWrapper {    float: left;     height: 100%;    width: 70%;    margin: 0;    padding: 0; }   #container #sidebarWrapper {          float: right;     height: 100%;    width: 29.7%;    margin: 0;    padding: 0; }   Is there something I am doing wrong? Or any Firefox/IE quirks I am missing out?


I am very lost in this, can anyone explain this to me please?   Let $U = \{1,2,3,4,5,6,7,8,9,10,11,12\}$, and $f$ be a function from $U$ into $U$. Finally, let $F : P(U) → P(U)$ be the function defined by $F(X) = \{f(x)\> |\> x \in X\}$ For instance, if $f(x) = 13 − x$, and $X = \{1,3,4,7\}$, then $F(X) = \{f(1),f(3),f(4),f(7)\} = \{12, 10, 9, 6\}$.  a. Prove that for every two subsets $A$, $B$ of $U$, we have $F(A ∩ B) \subseteq F(A) ∩ F(B)$.  b. Give an example that shows that $F(A- B)$ is not necessarily a subset of $F(A)- F(B)$.


I am trying to type two or three lines using big parenthesis inserting some sentences. I am  using this but it does not work for me.  \documentclass{12 pt}{article}   \begin{document}  \begin{eqnarray} & & (product of (A\times_{c} B) by C)\nonumber\\ & &\times_{c}  D) by E. \end{eqnarray}  \end{document}    I want to use the parenthesis are big not the small usual one.


In the anniversary update to Windows 10, Microsoft got rid of regular Skype and only has Skype Preview. Is there a way I can get back regular Skype?


Can I include the completion of Udacity and Coursera classes I have attended in an academic CV?

Can I include in my academic CV that I have attended and completed the  and  classes I have been taking? I understand that these are not anything major, but the courses definitely gives a good overview and starting formal study on the subject becomes less cryptic. If I can include them without any negative impacts, then under what section should I include them?


Working with .war files. The files were associated with the Archive Manager. However, I installed a tool called Astah professional. Now .war files are associated with Astah. How can I change this behavior?


How do I remove objects from an array in Java?

Given an array of n Objects, let's say it is an array of strings, and it has the following values:  foo[0] = "a"; foo[1] = "cc"; foo[2] = "a"; foo[3] = "dd";   What do I have to do to delete/remove all the strings/objects equal to "a" in the array?


Can't add space in my Ubuntu 20.04.1 LTS partition

I have done dual boot on my laptop. And I have these partitions as shown in the figure.  In this 25 GB partition, I have ubuntu 20.04.1 LTS installed, and the 22 GB is Linux swap type and is empty, I want to add this 22 GB in my 25 GB partition because whenever I use ubuntu it shows a message of low storage. Tell me is there any way to perform this task? This is my output of swapon --show:


Is it best to put a link in signature, forum profile, or in a post to get backlinks?

Which is the best place to post a URL to get a backlink?   Signature Forum profile Answering a question and giving a related post URL as the answer   Do Google's algorithms consider all of these to be spam/blackhat?