RE: I am installings a basement bath (toilet, shower and sink) Saniflo macerating  pump system. The house has a 3" vent pipe going from the basement ceiling thru the roof to vent the pump system into. However, there are 2 vanities on the first floor above the basement using this 3" vent pipe for both their drains and vents.  Question 1:  Since the vanities use the vent as a drain (for about 2 feet) from the first floor (above the basement), can the pump system be workably vented into it. Question 2:  Is the only possible drawback being the fact that the basement pump vent may be impeded when the vanities are draining?(not asking about any codes) Thanks


French, Spanish accented characters does not display correctly in Excel

I am trying to generate reports in different languages like French, Spanish, etc. The report is being viewed using MS Excel 2007, It displays OK in English but not in French nor in Spanish when executed in Linux environment.  All languages works in Windows Server but when running it in Linux, I am experiencing the problem I described above.  The code is in Java and, I started like this:    String contentType = "text/csv; charset=utf-8";   // resp is HttpServletResponse   resp.setCharacterEncoding("utf-8");   resp.setHeader("Cache-Control", "max-age=0,must-revalidate");   resp.setHeader("Pragma", "cache");   resp.setDateHeader("Last-Modified", System.currentTimeMillis());   resp.setHeader("Content-disposition", "attachment; filename=\"Report.csv\"");   resp.setContentType(contentType);   OutputStream os = resp.getOutputStream();    os.write(new byte[] { (byte)0xEF, (byte)0xBB, (byte)0xBF });    //os.print("\uFEFF".getBytes()); <<- tried this too, did not worked!    //where sb is StringBuffer sb = new StringBuffer();   //and string values were added by sb.append("\"" + someString + "\",");    os.write(sb.toString().getBytes());   Please help and thank you in advance.


After a reboot it keeps asking for wifi password and doesn't connect to any networks, it can list networks. After a few reboot it sometimes works but usually doesn't.  lspci -knn | grep Net -A2 04:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter [10ec:b822]     Subsystem: AzureWave Device [1a3b:2950]     Kernel driver in use: rtw_pci   uname -r 5.0.0-37-generic   It didn't managed to connect during installation either. (it works in windows every time so its not a hardware issue)   It is a completely different problem I get a loop to type in the password and just can't connect to a network (I'v tryed the suggested fix anyway but didnt worked):


I have a 12-hour layover in Istanbul. Will I be able to leave the airport to do some sightseeing in the city?

I'm flying to Barcelona from Israel via Istanbul. The layover in Istanbul is 12 hours, and I'm thinking about leaving the airport and entering the country for a couple of hours. Would that be possible? Are there any Border/Airline restrictions?  I'm Traveling with Turkish airlines, and hold a passport which does not require a visa to enter Turkey.  I've done this in the past, but only inside the Schengen area, so this question is Turkey-specific.


Can I run a second wordpress site as a subdomain without using multisite?

I have an two wordpress sites that I would like to host on the same domain. One is already up and running, the other is sitting in waiting.  Can I get the second as a subdomain, or simple within a folder, to run on the same domain (different DB) without converting to multisite?


Scp files to multiple server simountaneously

I have file called server.txt  Suppose it has below servers , there could be more servers  server1  server2 server3 server4  how can I copy file (file.txt on all servers using scp command) at /tmp/ location .


Find p is the prime number which $\frac{p+1}{2}$ and $\frac{p^2+1}{2}$ both are square number.

Find p is the prime number which $\dfrac{p+1}{2}$ and $\dfrac{p^2+1}{2}$ both are square number.  I do not know how to use "p is prime" assumption given. I just know  $p=7$ is satisfied.  If $\dfrac{p+1}{2}=X^2$ and $\dfrac{p^2+1}{2}=Y^2$ then $(X^2;X^2-1;Y)$ is Pythagorean triple


Do all starred commands have anything in common?

\section* produces an unnumbered section, align* , which is comparable in a way. \newcommand* , which is different.  Stefan Kottwitz :     Commonly, a star symbol * means a version of a command that behaves differently from the original. That often means suppressing numbering but could also refer to special features.   This might answer my question, but perhaps there's more to say (and it's nice to have it as a separate question).  Is there anything all starred commands have in common? Why would one define a starred command as opposed to another, differently named command indicating their semantic difference in the names? It seems that their definitions are usually entirely independent from each other.  Further reading:


I hear the word architect used as a verb in the technical field and now more often in other industries and groups, for example:     We need to architect a better solution to the problem.   I am interested if this is considered acceptable usage, as I see this word being used more in published technical documents (not necessarily books, but corporate publications).  I can see how a conductor can conduct, a typist can type, but can a scientist "science"?  A scientist might research, analyze, and so forth, as an architect might design, create, build, etc.  Merriam-Webster , however, I have been told that other dictionaries exist that define architect as both a noun and a verb — is there a credible reference or source that authoritatively answers this question?


I have a problematic question for which I have been unable to attain a satisfactory answer. What is  truly?   -  I have read about how potential energy can be seen as the "highering" of an object within a field, be it gravitational, electromagnetic, etc.   In a way, an object is lifted to a higher position, and when it eventually falls down again energy is released back.  The object does not even have to be "lifted" beforehand, as with the case of asteroids.   However, since energy cannot be destroyed, it must somehow be stored, yet how does energy truly store itself within a field? It seems hard for me to grasp that energy can physically be stored within the positioning of an object?  I can't really get my head around how a field conserves energy within it. Kinetic energy on the other hand, can be, for me, intuitively understood, as the object really is "moving" and energy manifests itself through motion.  Can anyone elaborate on this, perhaps give reasoning as to why a field can in fact "store" energy? Please point out any fallacious or naive views I seem to hold.


avoid auto-plagiarism in publishing results from PhD thesis

I'm currently writting my thesis, where are exposed unpublished results that I would like to publish (may be after my PhD defense). Can I directly re-use text from my thesis ?


Limit of a function with powers (L'Hopital doesnt work)

I have a little problem with limit of this function:  $\lim_{x \to \infty} x^2(2017^{\frac{1}{x}} - 2017^{\frac{1}{x+1}})$  I have tried de L'Hopital rule twice, but it doesn't work. Now I have no idea how to do it.


Do not say that you are 'sorry for' something

Page 390 of Collins English Usage reads  When you are apologizing to someone for something that has happened, you can say that you are sorry about it. She was very sorry about all the trouble she'd caused. Note that you do not say that you are 'sorry for' something.  Isn't it contradictory? A common counterexample: We are sorry for any inconvenience caused


Union of subgroups is a subgroup if and only if one subgroup is a subset of the other

Let $H$ and $K$ denote two subgroups of a group $G$.  Prove that the union $H \cup K$ is a subgroup of $G$ if and only if $H \subset K$ or $K \subset H$.


Book with a labyrinth that allows travel to parallel worlds

This book featured something called "The Labyrinth" that was a kind of maze that opened into other worlds.  There was one world where all the men were stupid and used as sex objects.  There was a drug that had to be taken regularly by pressing/popping a bead of it onto your skin, and it got into one woman's brain and corrected her eyesight.  I read this book in about 2005.  Does anyone recognise this book?


How should I understand "$A$ unless $B$"?

The statement is from the book  by Rainer Kress:     A compact operator cannot have a bounded inverse unless its range has finite dimension.   Here are my questions:   How should I understand the word "unless" here? If one interprets the statement in the form of $A\rightarrow B$, what should be $A$ and $B$ respectively? Is there an operator such that its range has finite dimension, but it does not have a bounded inverse? There can be two cases for "not have a bounded inverse":  It does not have inverse.  It has an inverse but the inverse is unbounded.       For the first question, I think  we can translate a statement of the form "$P$ unless $Q$" as "if not $Q$, then $P$", or: $\neg Q → P$, according to this  for formal logic. But I'm not sure if the "unless" above is the same as the one here, which is the very reason why I ask the second question.


Is it possible to formulate the Schrödinger equation in a manner that excludes imaginary numbers?

In the most general sense, the Time Dependent Schrödinger Equation (TDSE) reads  $$\hat{H} \Psi = i \hbar ~{{\mathrm d} \over {\mathrm dt}}\Psi $$  Is it possible to get rid of the $i$ entirely? Does it need to be there?   Let me be clear on the type of answer I am looking for. I am aware that the spatial wave functions can be written entirely real (by a theorem, whose name i do not recall), and that complex constants can be chosen such that the the time dependent part cancels out.   What I am instead asking is, is it possible to get an equivalent TDSE that does not deal with imaginary numbers in any sense? Or is it impossible because the $i$ is required for Hermitian operators?


I have gotten one upvote for a question, but 10 points were awarded. How come?

Look here:    And now here:    Can you see what I mean? One upvote, 10 points. I can remember though that at first 5 points were awarded, which changed into 10. Why?


Easily reversible hash functions as a method of data transmission

I've been looking through the literature because I want to see if anyone has implemented this idea I have. I know data compression algorithms work by removing redundancy in data. I was wondering though if this scheme I have would work.   Ordinarily the idea of a hashing function $H$ is designed so that $H(x)$ (where $x$ is the message) is easy to compute in the forward direction, but difficult to compute in the reverse direction (computing $H^{-1}(x)$ is intractable). But I also notice another thing about $H$. In practice the length of $H(x)$ is can be as large as 512 bits (I'm referring to the SHA-512 hash). This means that $H$ can map $2^{512} \approx 1.34 \times 10^{154}$ hashes to theoretically an infinite number of pieces of data. It's just that in practice the message space of all possible messages are not necessarily messages that have any meaning to humans. The number of total human readable messages may be on the order of say $2^{520}$ (meaning the total number of unique messages in the entire history of mankind).  So now let us suppose we have a hashing function $h$ which is easy to compute in both directions. We could compress our large data file $D$ into a short hash $h(D)$ that maps to $D$ and several other unintelligible "messages." So now to transmit $D$ all we have to do is to transmit $h(D)$ (which is short) and then the receiver would reverse $h(D)$ until they find a possible intelligent message and they could reconstruct $D$. If such a thing could work it would be possible to compress large amounts of data into short messages.  Does anyone know if such a thing has been done before?


Where does the laplace Kernel come from?

Where does $e^{-st} $ kernel come from in a laplace transform?


Is there any maximum limit to number of running threads in Linux? Is it possible to count total number of threads from all classes in java?


Prove that when AC matrices are multiplied and equal the identity matrix the solution of Ax=b is consistent for all real numbers

Continuing on my newbie dive into linear algebra I have this problem:  Suppose that $A = [a_{ij}]$ $m×n$ and $C = [c_{ij}]$ $n×m$ and $AC = I$ . Prove that the system Ax = b is consistent for every $b\in\mathbb{R}^{m}$


Are there any disadvantages to unusual RAM amounts for virtual machines?

This is going to seem like a silly question, but many many years ago I somehow got it into my head, perhaps from reading an article or speaking to people 'in the know' that a computer should not be run with 'odd' amounts of ram, such as 3,  5, 7 etc...    Is there any truth in this whatsoever?  I have a vmware environment with many servers in it.  I want to go through and alter the amounts of ram to reduce the overall ram usage and in many cases I want to give a server 3gb of ram as opposed to 4 or 2.


can't install software-center on kali linux 2.0

I've just installed Kali linux 2.0 and when I tried to install software center by typing apt-get install software-center it didn't work so I did some googleing. And the only answer I found is to update and upgrade by apt-get update apt-get upgrade apt-get dist-upgrade it shows me this:    any help


JFrame Bank Account Null Pointer Exception

I am working through some basic java tutorials online, and I have been stuck for the past few hours on a Null Pointer Exception in a Bank Account program. Usually when I encounter these, I can pretty quickly resolve the bug, but in this case the error always points to the line of the button where I call a method (deposit or withdraw). I'm not sure what precisely the issue is, since I have initialized all the variables I am using in both classes, but I am still encountering this exception. Any ideas what is going wrong?  BankAccount.java  import javax.swing.*;  class BankAccount { private int accountBalance; private JTextField stateTextField, balanceTextField;  public BankAccount(JTextField stateField, JTextField balanceField) {     stateTextField = stateField;     balanceTextField = balanceField;     accountBalance = 0; }  public int getBalance() {     return accountBalance; }  public void setBalance(int balance) {     accountBalance = balance; }  public void withdraw(int amount) {     accountBalance = accountBalance - amount;     displayState(stateTextField);     displayBalance(balanceTextField); }  public void deposit(int amount) {     accountBalance = accountBalance + amount;     displayState(stateTextField);     displayBalance(balanceTextField); } public void displayState(JTextField field) {     if (accountBalance>=0) {         field.setText("Ok");     } else {         field.setText("Overdrawn");     } }  public void displayBalance(JTextField field) {     int balance = accountBalance;     field.setText(Integer.toString(balance)); } }   And the interface where I use BankAccount.java:  BankAccountInterface.java  import java.awt.*; import java.awt.event.*; import javax.swing.*;  public class BankAccountInterface extends JFrame implements ActionListener { private JLabel balanceLabel, stateLabel, withdrawLabel, depositLabel; private JTextField balanceField, stateField, withdrawField, depositField; private JButton depositButton, withdrawButton, clearButton; private BankAccount account;  public static void main(String[] args) {     BankAccountInterface demo = new BankAccountInterface();     demo.setSize(750, 400);     demo.setLocationRelativeTo(null);     demo.createGUI();     demo.setVisible(true); }  public void createGUI() {     setDefaultCloseOperation(EXIT_ON_CLOSE);     Container window = getContentPane();     window.setLayout(new FlowLayout() );      stateLabel = new JLabel("State:");     window.add(stateLabel);      stateField = new JTextField(10);     stateField.setEditable(true);     window.add(stateField);      balanceLabel = new JLabel("Balance:");     window.add(balanceLabel);      balanceField = new JTextField(10);     balanceField.setEditable(true);     window.add(balanceField);      depositLabel = new JLabel("Deposit:");     window.add(depositLabel);      depositField = new JTextField(10);     depositField.setEditable(true);     window.add(depositField);      withdrawLabel = new JLabel("Withdraw:");     window.add(withdrawLabel);      withdrawField= new JTextField(10);     withdrawField.setEditable(true);     window.add(withdrawField);      depositButton = new JButton("Deposit");     window.add(depositButton);     depositButton.addActionListener(this);      withdrawButton = new JButton("Withdraw");     window.add(withdrawButton);     withdrawButton.addActionListener(this);      clearButton = new JButton("Clear");     window.add(clearButton);     clearButton.addActionListener(this);      BankAccount account = new BankAccount(stateField, balanceField); }  public void actionPerformed(ActionEvent e) {     if (e.getSource() == depositButton) {         int depositVal = Integer.parseInt(depositField.getText() );         account.deposit(depositVal);     } else if (e.getSource() == withdrawButton) {         int withdrawVal = Integer.parseInt(withdrawField.getText() );         account.withdraw(withdrawVal);     } else {         depositField.setText("");         withdrawField.setText("");         stateField.setText("");         balanceField.setText("");     } }  }


How to make the style of title in @online biblatex non-italic

I have a book with @online biblatex url whose title will be appeared in italic. I want to make it non-italic for @online but for@book italic title is fine. Do you know how to do it? To run : I run pdfLaTeX first, then Biber then pdfLaTeX again:  \documentclass{book} \usepackage[style=authoryear]{biblatex} \usepackage{filecontents}  \begin{filecontents}{\jobname.bib} @book{mybook, author       = {Herlastname, Herfirstname M}, date         = {2010}, title        = {company for him}, publisher    = {City: publisher}, } @online{myurl, author       = {Hislastname, Hisfirstname M.}, date         = {2019}, title        = {company for her}, organization = {Wikibooks}, url          = {https://helping_each_other_and_i_help_u.com}, } \end{filecontents}  \bibliography{\jobname}  \begin{document} like to see \textcite{mybook} try \citeauthor{myurl}. \printbibliography \end{document}


Is there a phrase or word for a problem that appears simple but is in fact full of complexities?  A few situations come to mind:   Painting a room Breaking up with a boyfriend or girlfriend Eating a pomegranate   ... and a million more. What to call these?


Using PTSerif-TLF for Cyrillic with TeX Gyre Pagella

I want to include some Cyrillic with a TeX Gyre Pagella text and math font document. I'm using TeXLive 2019.  As indicated in , running pdflatex on the following source works just fine:  \documentclass{article}  \usepackage[T1,T2A]{fontenc} \usepackage[russian,main=english]{babel} \usepackage{paratype} \usepackage{tgpagella} \usepackage{substitutefont} \substitutefont{T2A}{\rmdefault}{PTSerif-TLF}  \usepackage{amsmath}  \usepackage[math]{blindtext}  \begin{document}  The topologist is {\Russian Алекс\'{а}ндров}.  \blindmathpaper  \end{document}   However, running xelatex on the following surce produces output from which the indicated Cyrillic just disappears:  \documentclass{article}  \usepackage[T2A,T1]{fontenc} \usepackage[russian,main=english]{babel} \usepackage{amsmath} % load here to avoid \dddot clash \usepackage{fontspec} \usepackage{paratype} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \usepackage{substitutefont}% \substitutefont{T2A}{\rmdefault}{PTSerif-TLF}%  \usepackage{unicode-math} \setmathfont{TeX Gyre Pagella Math}  \usepackage[math]{blindtext}  \begin{document}  The topologist is {\Russian Алекс\'{а}ндров}.  \blindmathpaper  \end{document}   Question: How should this second source be fixed so as to allow the Cyrillic to appear, too?  (I did put Map paratype-truetype.map into my local updmap.cfg file and did run updmap-user.)


Probability of photoelectric effect for gamma rays

Why is the probability of the photoelectric effect occurring higher for low energy gamma rays? I'd like a physical answer not just equations.


Using article "THE" in writing scientific papers

I have a question on the use of article "the" in scientific paper. The following is my paragraph that includes my question. ... This process is given by x+ y + z = 1.                                                    (10) It was proved that: (a) the equation (10) has two solutions. (b) Equation (10) has two solutions. (c) equation (10) has two solutions. ... My question is that (a), (b) or (c) is written correctly. More clearly, we use “the” before “equation” or not? I think (a) and (b) are true but many people also used (c). Could you please let me know an explanation for that question. Thanks.


Is it okay to stay an extra day than my Schengen visa validity if I pass through immigration before midnight?

I have a Schengen visa valid from 15 August 2017 to 9 September 2017, but my duration of stay is only 10 days.    I'm travelling to Europe from the 15th to 24th of August. I'm getting a ticket for a flight that leaves on the 25th August, for very low price since it departs must after midnight at 00:35 hours.I have to check in airport on the 24th Aug by 10 pm.  With this itinerary, am I going to have any issues at the Consulate?


Select specific files in explorer with PowerShell

I want to select specific multiple files in windows explorer, to do that I used this:     explorer.exe /select, "c:\path\to\file.txt"   In PowerShell I made this:   $filenames = @("D:\imgs\a.jpg", "D:\imgs\b.jpg") foreach($fl in $filenames)  { Start-Process -FilePath C:\Windows\explorer.exe -ArgumentList "/select, ""$fl""" }   it works good, but two explorer.exe are running at the same time for each files in the $filenames array. I want to get selected files in single explorer.


How can it be proved that the Euler constant equals the limit of the sum of all $\frac{1}{k!}$ when $k$ goes from $0$ to $+\infty$ ?


How to show that $\mathbb R[x]/\langle x^2+1\rangle\simeq\mathbb C$ and $\mathbb R[x]/\langle x^2+1\rangle$ contains a zero of $x^2+1$      Due to the division algorithm, $\mathbb R[x]/\langle x^2+1\rangle=\{ax+b+\langle x^2+1\rangle:a,b\in\mathbb R\}$  Indeed I'm having problem to interpret, $\mathbb R[x]/\langle x^2+1\rangle$ contains a zero of $x^2+1.$ Does it mean $\exists$ $ax+b+\langle x^2+1\rangle\in\mathbb R[x]/\langle x^2+1\rangle$ such that $$(ax+b+\langle x^2+1\rangle)^2+(1+\langle x^2+1\rangle)=\langle x^2+1\rangle?$$


$G$ of finite order $2p$ ($p$ is prime). Prove that $G$ abelian.

I have a group $G$ of order $2p$, where $p>2$ and prime. The additional thing that I also know, that $\exists a\in Z(G)\mid O(a)=2$.  I need to prove that G is abelian.  But first, before that, tell me please, isn't here (in my next direction of thinking any objection to the given information).   So, I look at two sub-groups of $G$ (the order isnt prime so they exist and their order devides the order of the group) of order $p$, $A,B\le G\mid O(a)=O(b)=p$  They are cyclic because of their order (is prime). And their elements are the total elements in $G$ (because they are sub-groups and there are totally $2p$ elements, and here I look at different sub-groups with $p$ elements each).  So left to prove that any $a\in A$ abelian with any $b\in B$. Now I think about the second data that given.  The center of $G$ is in $G$, so there is $g\in G\mid g^2=e$. But must $g\in A$ or $g\in B$, but their order is $p$ and $2$ does not divide any of them. Isn't that an objection ?  Otherwise, which of the step is wrong, what can't I conclude from what I wrote?


I want to change an icon of a specific theme. Where do themes save their icons?


any one know what's causing this? not the frist blend/mesh this happen to. displays fine suddenly when i change to front, side, camera. this persists in every veiw. this was a perfectly proportioned  earth.


A simple question about normal closure of field extensions.

Let $K / F$ be a finite and separable extension of fields and let $L$ a normal closure of $K / F$. Can I state that $L / F$ is also finite and separable?


Searching for books in the careers profile section throws JS errors for me. Inspecting it seems like the AJAX call is fine, just the JS parsing is throwing errors:   Uncaught Error: Syntax error, unrecognized expression: <div class="book">


can you guys show me the most considerable differences between the meaning/usage of excuse me and I'm sorry?


SQL Server 2012 Powershell script to generate database with schema and data

Using Sql Server 2012, could somebody be so kind and show me a simple powershell 3 script that generates my entire database (schema and data)?  I tried this one:  $Filepath='d:\b\t' # local directory to save build-scripts to $DataSource='HH' # server name and instance $Database='HMovies'# the database to copy from # set "Option Explicit" to catch subtle errors set-psdebug -strict $ErrorActionPreference = "stop" # you can opt to stagger on, bleeding, if an error occurs # Load SMO assembly, and if we're running SQL 2008 DLLs load the SMOExtended and SQLWMIManagement libraries $ms='Microsoft.SqlServer' $v = [System.Reflection.Assembly]::LoadWithPartialName( "$ms.SMO") if ((($v.FullName.Split(','))[1].Split('='))[1].Split('.')[0] -ne '9') { [System.Reflection.Assembly]::LoadWithPartialName("$ms.SMOExtended") | out-null    } $My="$ms.Management.Smo" # $s = new-object ("$My.Server") $DataSource if ($s.Version -eq  $null ){Throw "Can't find the instance $Datasource"} $db= $s.Databases[$Database] if ($db.name -ne $Database){Throw "Can't find the database '$Database' in $Datasource"}; $transfer = new-object ("$My.Transfer") $db $transfer.Options.ScriptBatchTerminator = $true # this only goes to the file $transfer.Options.ToFileOnly = $true # this only goes to the file $transfer.Options.ScriptData = $true; $transfer.Options.Filename = "$($FilePath)\$($Database)_Build.sql"; $transfer.ScriptTransfer() "All done"   But I get an error  Exception calling "ScriptTransfer" with "0" argument(s): "This method does not support scripting data."   If I disable the ScriptData option it works but then I get the schema only of course. I have googled for hours but I just can't find a simple script (no bells and whistles for stored procedures, etc) that performs this simple task.  My time is running out. Please help.


Archive SharePoint list items with attachments to another site collection

I have a SharePoint list having more than 2,00000+ records. Its an email enabled list. I got a requirement to move items which are of DateModified > 60 to another list having the same template in another site collection.All the items are having attachments, so i couldn't find a way to batch insert items to the target list keeping attachments using ProcessBatchData method. I am currently iterating through the source items and inserting it in the target and it takes enough time to complete operation for some 5000 items. Could you please help if you know any better way to handle this situation.


What proves that speciation is a pairwise process?

I have been asked this questions by many biology students and even non-biologist without a pretty straightforward answer to give. We are quite accustomed to phylogenetic trees where a common ancestor becomes two different species and these new species become, each one, two more. But, Why is not possible that a species might divide in three different species? Or four? Or more?  What arguments support this conception of the evolutionary process? Also, if somebody has a good article explaining this, please provide me with the link or citation so I can refer my fellow biology students to it.


"Deleted by {owner}" vs "Deleted by owner" in self deleted answers

I've stumbled across an inconstancy in the display of who deleted an answer.  In  on Programmers.SE there are currently two deleted answers.      The display of these two questions - one has the name of the owner, the poster, the other has the string "deleted by owner".  The differences that I can see are:   that one is a 10k+ user and the other is not and maybe the code for how it handles deletes of answers for these two is different. the dates are about a day apart, there might be different versions of the software (yet, its still rather short of a timeframe)   So... it just looks like a minor cosmetic bug that most never see, though may be hinting at duplicated code that could lead to a different bug some time down the road.  Or it could just be that two different releases of SE software put two different strings in the delete message and thats it, never mind, and everything is working as intended.    Of note, there was some tinkering of the self deleted code and display name back on July 17th - .  This isn't the discrepancy seen (neither of these are deleted users), but it might help those with access to the code to look in the area of the code.


As far as I can tell, suggested apps show themselves based on location.  There are two places where these suggested apps show themselves to me:   At the bottom left of the multitask screen when I double press the home button At the bottom left of the lock screen    article describes how to get rid of the small app icon appearing in the bottom left. However, this method is for iOS 8, and I am now on iOS 10, where I am unable to find iTunes and App Store > Suggested Apps.   How can I get rid of these (in my opinion) annoying little things?


How do people in the Federation know how much they own if there is no money?

If there is no money being used inside the Federation, how do they distribute goods or determine how much one can own, eat, or possess?  As an example, someone who really likes food would want to consume more than the "average" person and therfore his montly spendings on food would be much higher (let's throw away really specific and weird situations and focus on general rule). Today, we'd work to get money, we get money and have it to be more or less able to buy food, more elaborate living quarters, or other essentials and luxuries.  How do they handle this in the Star Trek universe, if there is no money to mediate that distribution of goods? What prevents one person from getting much more food than an "average" one, while working much less than him?


Options to move the school rucksack during the trip

If to commute to school by bike, how is the school rucksack usually transported? I can see the following options:   Keep it on the back. It is quite heavy, gravity center will be high and in case of falling over head it may add to the injury. Put into basket above the rear wheel. The form of the usual rucksack does not fit well to secure it from falling. Use specialized bicycle container for luggage. But the models I have used so far are time consuming to remove and not adapted at all to carry on hand when full.   Are there special equipment for that? Which approaches are usually taken?


I encountered a problem: calculate $\lim\limits_{x\to\infty} x^{1/x}$  My solution is quite weird and I find no document explaining whether I am right or wrong!  My solution:  As $\lim\limits_{x\to\infty} 1/x = 0$  then $\lim\limits_{x\to\infty} x^{1/x} = \lim\limits_{x\to\infty} x^0  = 1$  My question is: Whether I am right or wrong, and could you please explain why?


How to get the serial number of the hard drive on which I am working?

For get the serial number of all hard drives in my computer, I use:   wmic diskdrive get serialnumber   But, I want to get the serial number of the hard drive where I am working.  I explain: I have 2 hard drives, one of them has 2 partitions C and D. The other has one partition E. With the command line, if I am working in C partition, when I type the wmic command, I want to get only the serial number of the hard drive which has this partition, not the serial of the hard drive with the E partition.  I want to make a license code for my software. you can install the software in any partition. i want the serial number of the hard drive that contains these partition specifycally. the volume serial number of the partition changes when you format, reinstall, etc, but the serial number of the hard drive not. i know there are softwares to change the serial number, but my possible clients are not so smarts.


I have used debug log of previous releases. But the winter '16 release debug log has new terms like Traced Entity and Debug Level. Help for this page does not give much clarity.     can you help me out with this???


how to remove New line character using Sed or perl

I have a huge file of XML data containing the lines like  <fonts> some of the data </fonts> <fonts> some of the data </fonts> <fonts> some of  the data </fonts> <fonts> some of the data </fonts> <fonts> some of the data </fonts>   In between I am getting the newline character...  $>uname -a SunOS ******* 5.11 SunOS_Development


Is the function $f(x,y)=xy^{\frac{1}{3}}$ differentiable at $(0,0)$?  I'm trying to find the limit of $$ \lim\limits_{(x,y)\rightarrow(0,0)}\frac{xy^{\frac{1}{3}}}{\sqrt{x^2+y^2}} \;, $$ but when I use the inequality $x^2+y^2\geq 2|x||y|$, I get stuck at $$ 0 \leq \lim\limits_{(x,y)\rightarrow(0,0)}\frac{|x||y|^{\frac{1}{3}}}{\sqrt{x^2+y^2}} \leq \lim\limits_{(x,y)\rightarrow(0,0)}\frac{(x^2+y^2)|y|^{\frac{-2}{3}}}{2\sqrt{x^2+y^2}} = \lim\limits_{(x,y)\rightarrow(0,0)}\frac{1}{2}\sqrt{x^2+y^2}|y|^{\frac{-2}{3}} =\ ? $$


How to compare a program's version in a shell script?

Suppose I want to compare gcc version to see whether the system has the minimum version installed or not.  To check the gcc version, I executed the following  gcc --version | head -n1 | cut -d" " -f4   The output was  4.8.5   So, I wrote a simple if statement to check this version against some other value  if [ "$(gcc --version | head -n1 | cut -d" " -f4)" -lt 5.0.0 ]; then     echo "Less than 5.0.0" else     echo "Greater than 5.0.0" fi   But it throws an error:  [: integer expression expected: 4.8.5   I understood my mistake that I was using strings to compare and the -lt requires integer. So, is there any other way to compare the versions?


How to draw 2 or 3 piles of matches (or bean seeds)?

I learned  from enzo83130 and percusse to draw a match stick, but I do not know how to draw a pile yet:  \documentclass{article}  \usepackage[svgnames]{xcolor}  \usepackage{tikz}  \begin{document}  \begin{tikzpicture} \newcommand\allumette[2]{     \fill [yellow] (#1,#2) rectangle (#1+4,#2+0.2);     \fill [yellow!60!black] (#1,#2) -- ++(4,0)-- ++(0.1,-0.05) -- ++(-4,0) -- ++(-0.1,0.05);     \draw (#1,#2) -- ++(0,0.2) -- ++(4,0) -- ++(0,-0.2) -- ++(0.1,-0.05) -- ++(-4,0) -- ++(-0.1,0.05);     \shade[ball color=red] (#1+4,#2+0.1) ellipse (0.25cm and 0.22cm);     \draw (#1+4,#2+0.1) ellipse (0.25cm and 0.22cm); } \allumette{0.1}{0.2} \end{tikzpicture}  \end{document}


I only have 1GB of ram, what can I do to improve the performance on my 32-bit 14.04 system?

I'm running a fresh install of Ubuntu on an old iMac. It was going painfully slow on OSX so I wiped that and installed Ubuntu overtop of it hoping it would speed things up a bit.   I'm not going to be doing any hardcore gaming or anything, but I just wish it wouldn't become almost unresponsive whenever an album of gifs starts loading.   What are some tricks to speed up the computer and use less ram? Thanks in advance.  Specs:  Memory: 983.1 MiB Processor: Intel Core 2 Duo CPU T7300 @ 2.00GHz x 2    Graphics: Gallium 0.4 on AMD RV610     OS type: 32-bit    Disk: 245 GB


How do I add multiple values to one key in a dictionary and display the duplicates?

I am working with an input file that has a list of guild names and then guild servers for those guild names. My problem is that for some guilds there is a duplicate, meaning that the same guild exists on different servers. So I need the guildName, read from my input file, to display the different server it is on. Here is the code I have so far:  private void buildGuilds()     {         using (StreamReader inFile = new StreamReader("guilds.txt"))         {             string str = null;             char[] delimiters = {'-', '\t'};              //while the buffer isn't empty             while ((str = inFile.ReadLine()) != null)             {                 SortedList<string, string> guild = new SortedList<string, string>();                 string[] Buffer = str.Split(delimiters);                 guildName = Buffer[1];                 guildServer = Buffer[2];                       if (!dictGuilds.ContainsKey(guildName))                     {                         dictGuilds.Add(guildName, new List<string>());                     }                     dictGuilds[guildName].Add(guildServer);   So my program reads the data into 2 variables and then determines what values go where but I cannot get it to print when using the conventional foreach pair.Key pair.Value method. Here is my print method as well.   private void printGuilds()     {        foreach (KeyValuePair<string, List<string>> pair in dictGuilds)         {             Guilds_List.Items.Add(pair.Key + pair.Value);         }     }   any help i could get would be great. Thank you so much


How to obtain a confidence interval for a percentile?

I have a bunch of raw data values that are dollar amounts and I want to find a confidence interval for a percentile of that data.  Is there a formula for such a confidence interval?


The union of powersets is contained in the powerset of union

Prove or Disprove: For any family of sets $\{A_n\}_{n\in\mathbb N}$  $$\bigcup_{n=1}^\infty\mathcal P \left({A_n}\right)\subseteq \mathcal P \left({\bigcup_{n=1}^\infty A_n}\right)$$  How do I approach proving this? I know how to unpack the definition of powersets ($\mathcal P \left({A}\right) = \{x | x \subseteq A\}$) but I'm not sure what else I can do. I've done powerset proofs before but none involving indexed family of sets.


Let $K$ be an arbitrary field. I want to prove that the maximal ideal of $K[x,y]$ is generated by two elements. If $K$ is algebraically closed, maximal ideals are of the form $（x-a,y-b）$ because of Hilbert's Nullstellensatz. But if $K$ is not algebraically closed, I cannot specify the form of maximal ideals, so I cannot go further.Thank you for your help.


Flask how to redirect to new page after ajax call

I try to redirect to a new page after ajax post but I have not been successfull yet.  My template looks like this:      Html part:       response1        response2   <form  action="/receiver" method="post" id="form1" name="form1">     <textarea type="text"  rows ="3" name="reply1" id="reply1"></textarea>     <button type="submit"  name="submitButton1" id="submitButton1">Submit</button> </form>   And on the server side flask application looks like this:  #!flask/bin/python  import sys  from flask import Flask, render_template, request, redirect, Response, url_for import random, json  app = Flask(__name__)  @app.route('/') def index():     return render_template('index.html')  @app.route('/somepage') def somepage():     return 'Success'   @app.route('/receiver', methods = ['POST']) def worker():      data = request.get_json()     result = ''     result = str(data)      print(result)      return (redirect(url_for('somepage')))   if __name__ == '__main__':      app.run(debug=True)   When I open Chrome developer tools and click network it looks fine and I may see success message but stil browser doesn't redirects to /somepage


I am doing a proof for my logic class.   The goal is to prove:$$\exists x(P(x)\implies\forall yP(y))$$ from no premises.   I have come to:$$\forall y(P(x)\implies P(x))$$ in my main proof, but I don't know if i have gotten my goal formula in disguise....  What are the rules for moving quantifiers and is my goal sentence implicit in my proven sentence?


I just bought a house built in 1984 it has PEX plumbing. I need to remove a toilet to install a new floor and I noticed the water supply line to the toilet connects to a water shut off valve that I’ve never seen before. It looks like a PVC bonnet or nut cap thing With a half crescent ring that you turn left or right to turn the water on or off.   Are these reliable or should I replace with a quarter turn ball valve. I really don’t want to do anything unnecessary but a PVC shut off valve gives me anxiety as an inexperienced DIY homeowner


this is a subject that time and again shows up, and I've read old postings. Still: I am taking an intro class in statistics from a Math department (Junior/Senior level). It is pretty intense (it's statistics and probability) and has a strong math component (calculus as well as linear algebra are required and used throughout the class). Exercises are done using R most of the time. The book we follow is an unedited book from the lecturer, and it's OK, but even though it's strong in the math part, it doesn't give a lot of examples nor tackles the very important aspects of why we do some things or what's the importance of this or that. I read here that a lot of people love Sheldon Ross' books, but when I looked at them, the equation parts are way below what we are doing. Is there a book like that, but more in depth in the math part?  Thank you so much for any suggestion and why.


I've got a highlight section on the header of my website which shows the title and the thumbnail of the last X posts having a thumbnail.  Is there any custom query which allows me to retrieve only the last X post having a thumbnail?  At the moment I'm retrieving the last X * 10 posts (because not all the posts have a thumbnail) hoping that in this result I'll have X posts having a thumbnail. After doing my query I add a condition: if (has_post_thumbnail()).  This solution is really uncertain and ugly, a custom query with a thumbnail parameter would be great but I couldn't find any hint about it.


So I just got a city out of an ideological revolt, its been annexed and yatta yatta. For whatever reason, I traded the city back to its original owner before telling it to produce something. Only now I can't end the turn because the city still needs me to tell it what to build, which I can't because it's not mine anymore. I've tried the shift+enter trick to no success. Any help is greatly appreciated!


When I create  alias wd='ps -ef | grep java | awk {'print $2 " " $9'} | egrep "(A|B|C|D)"'   or  function wd () {     ps -ef | grep java | awk '{print $2}' ... }   in my .bashrc file, I get errors.  Interestingly, if I source my .bashrc file with the function, it 'compiles', but when executing, gives me:   context is      >>> \ <<< {\print     missing }   Can someone help me with this, and also answer when its better to put something in a function versus in an alias?


After reading this question:  I think the reason for deleting all comments is when so much of them are rude or offensive.  But this question:  didn't have any rude or flagged comments so why are all comments deleted in it?


How can I hang a framed picture onto a wallpapered concrete wall without damaging the wall surface?

I have a framed picture about two feet by three feet in size that weighs about one pound (not a sheet of paper). I want to hang it onto a wall that is of full-blown hard concrete and covered with paper wallpaper (not vinyl - just paper).  The default way would be to drill the concrete and insert an anchor but that would damage the wall surface.  Is there a way to hang such picture onto such wall without damaging the wall?


I have a 500 gb ssd and a 8 tb hd.  I would like to have linux boot off the ssd so that its super fast and such, but use my 8 tb physical hard drive to store all the programs and such on.  This way I do not run out of space, as many of the games I play are like 100 gigs each.  Is there a way to do this?


Prove that $\sum_{k=0}^r {m \choose k} {n \choose r-k} = {m+n \choose r}$

Prove that $$\sum_{k=0}^r {m \choose k} {n \choose r-k} = {m+n \choose r}.$$  This problem is in the chapter about discrete random variables, but I have no idea what to go about substituting.  I can't get it to be a featured formula without screwing stuff up, sorry about that.


I'm looking for a roughly equivalent tool in QGIS to the Repair Geometry Tool in ArcGIS Desktop. When I run some common vector processing tools in QGIS, I occasionally run into invalid geometry errors and have yet to find a quick/easy fix that doesn't involve manual editing.   Is there an automated process that I can use?


What is the relation between computational security and provable security?

I read the book "Introduction modern cryptography". It gives the notion of computational security of private-key encryption at first which comes from perfect security and statistical security.     Let $(E,D)$ be an encryption scheme that uses $n$-bits keys to encrypt $l(n)$-length messages. $(E,D)$ is computationally secure if    $$E_{U_{n}}(x_{0}) \approx E_{U_{n}}(x_1)$$   And then it introduces the secure game (e.g. CPA, CCA)? I think it is a part of provable security.  "Unconditional security" (or "information-theoretic security" or "perfectly secrecy") and "computational security" are two opposite classes of security. But I do not think "computational security" and "provable security" are two independent classes of security. I know that computational security emphasizes the power of attacker is bounded (polynomial-time algorithm). And the provable emphasizes the mathematical assumptions or cryptography primitives. But it also related to the computational power.


I was trying to install Linux dc++ in my Ubuntu 14.04 using terminal. But the following was shown in terminal:  Reading package lists... Done  Building dependency tree         Reading state information... Done  Package linuxdcpp is not available, but is referred to by another package.  This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'linuxdcpp' has no installation candidate   What should I do to install Linuxdc ++?


How do you report percentage accuracy for glmnet logistic regression?

I am using glmnet where my dependent variable is binary (class 0, class 1). I want to report percentage accuracy of the model. So I use the predict function for my test dataset. However, the values returned are in decimals instead of being 0 and 1. So I set a threshold of 0.5, meaning if the predicted value > 0.5, I consider it as 1 and if predicted value <= 0.5, I consider it as 0. Next I create a confusion matrix by comparing the predicted and actual values of my test data. From this I find the accuracy. I have pasted my sample code below. I am not sure if this is the right approach for reporting the accuracy percentage for a glmnet model predicting a binary dependent variable.  data <- read.csv('datafile', header=T) mat  <- as.matrix(data) X    <- mat[, c(1:ncol(mat)-1)] y    <- mat[, ncol(mat)]  fit  <- cv.glmnet(X, y, family="binomial", type.measure="class", alpha=0.1)  t                             <- 0.2*nrow(mat) #20% of data t                             <- as.integer(t)  testX                         <- mat[1:t, 1:ncol(mat)-1] predicted_y                   <- predict(fit, s=0.01, testX, type='response') predicted_y[predicted_y>0.5]  <- 1 predicted_y[predicted_y<=0.5] <- 0 Yactual                       <- mat[1:t, ncol(mat)] confusion_matrix              <- ftable(Yactual, predicted_y) accuracy                      <- 100* (sum(diag(confusion_matrix)) / length(predicted_y))


Hypothetically, let`s say that one day our Sun is suddenly removed from the galaxy. For us, on earth, would take up to 8.3 minutes to notice that the sun was removed, since the distance from the earth and the sun is approximately 8.3 light-minutes.   However, what about gravity? Would we feel immediately here on earth?  Could we say then that, if gravitons really exist, they travel faster than the photons?


Correlations between continuous and categorical (nominal) variables

I would like to find the correlation between a continuous (dependent variable) and a categorical (nominal: gender, independent variable) variable. Continuous data is not normally distributed. Before, I had computed it using the Spearman's $\rho$. However, I have been told that it is not right.  While searching on the internet, I found that the boxplot can provide an idea about how much they are associated; however, I was looking for a quantified value such as Pearson's product moment coefficient or Spearman's $\rho$. Can you please help me on how to do this? Or, inform on which method would be appropriate?  Would Point Biserial Coefficient be the right option?


Continuity and the definition of a function.

I am reading through one of my maths textbooks at the moment and the following example is given.     Determine whether the following functions are continuous at $x=2$      $f(x) = \frac{x^2 - 4}{x - 2}$   It then goes on to say     The function $f(x)$ is undefined at $x = 2$ and hence is not continuous at $x = 2$   I am very confused by this statement. When they define $f(x)$ is it referring to strictly that expression and asking me to simply replace all $x$ with $2$ without simplifying?  If $g(x) = x + 2$ then is $f(x)$ not equivalent to $g(x)$ and as $g(x)$ is continuous at $x = 2$ then $f(x)$ is also?


Visa refused - V4.2 (a) (c) - Incorrect Decision

I have received the refusal latter today apparently the ECO has refused the visa citing reasons due to economic circumstances. They mentioned that the salary payments were not sourced by the debits to my employers account and gave example for a month; per them the amount deposited into my account on a certain date was not reflected in my employers account debits.  When I checked this after getting home, all the check numbers were reflecting in company’s bank statement - every single one!  Second reason they stated regarding payments being irregular in amount but that could have been easily verified through the pay slips that I had submitted; the variance details for extra payments were mentioned such as overtime, leave encashment OPD payment etc.  I strongly believe they have overlooked these details and made a hasty decision probably it being a "priority visa application"  Is there a way I can make them realize they made a mistake and if they could revisit this decision?


How much time do I have to go to my visa issuing country?

I got the “C” category multiple-entry visa for Portugal. I want to visit several Schengen countries during 15 days. Can I visit other countries before Portugal? e.g. go to Portugal in 10th day or so.  This is because arriving from my country directly to Portugal is way more expensive than other countries.


Are fractions with prime numerator and denominator dense?

So the question is in the title. And I mean dense in positive real numbers ofcourse. Somehow I cannot grasp if this is very trivial or not. The prime numbers aren't that dense, but are there enough of primes to make the fractions constructed from them dense?


What do newcommand, renewcommand, and providecommand do, and how do they differ?  I think \newcommand overwrites any previously existing command, while \providecommand creates the command only if it does not already exists.  Does \renewcommand only work on already extant commands?


Recommended Nginx Configuration for High Traffic Website on Wordpress

We have a Wordpress based website that gets about 1.5 million pageviews per day. Maximum concurrent sessions reach up to 5000 users per minute at times.  We have one web and one database server. Specs for both machines are as follows:  CPU: 2 x Intel(R) Xeon(R) CPU X5650 @ 2.66GHz 12M Cache / 6 Cores / 12 Threads (x2) Memory: 24GB Drive(s)(size/GB) - 4x240gb SSDs RAID 10   We run on Nginx, use FastCGI, and also use APC for caching, along with simple page caching with WP Super Cache.  Current Nginx configuration is as follows:  worker_processes  24; worker_rlimit_nofile 200000; worker_connections  4000;   FastCGI settings are as follows:  FcgidMaxProcesses 200 FcgidProcessLifeTime 3600 MaxProcessCount 100 FcgidIOTimeout 400 FcgidIdleTimeout 600 FcgidIdleScanInterval 90 FcgidBusyTimeout 400 FcgidBusyScanInterval 80 ErrorScanInterval 3 ZombieScanInterval 3   Server fails and we get Nginx errors (502-504) during high traffic. I am wondering if this is related to a bad configuration.  Your assistance is much appreciated.


When I try to install .net 3.5 I get the follwing message:     The following feature couldn't be installed:      .NET Framework 3.5   (includes .NET 2.0 and 3.0)      Error code: 0x800F081F   I tried with a standalone package and through Windows Features.  Update: Internet connection is fine.


I have a settings page under a custom post type menu.  The url for the page is like this - /wp-admin/edit.php?post_type=movies&page=movies_settings  How do I load the stylesheet just on that page?  Thanks in advance.


I'm thinking of developing a bot like system which will be able to answer questions posted by users, such as      How will be my future?      Will I find a girlfriend tomorrow?   These are general questions which my system users will post and based on the subject matter there will be a random answer from my back-end. Kind of a psychic service thing.  I know this is a very vast subject to expect a complete answer here, but it would be great if you guys can direct me in the right direction.  Thanks in advance!


Suppose I have a locally compact group $G$ and a quotient map $f:G\to G/N$. Is it true that for every Borel-measurable function $f : G → [0, +∞]$, $$\int_{G} f(g) \, \mathrm{d} \mu_G (g) = \int_{G/N} \int_{N}    f(gn) \, \mathrm{d} \mu_{N} (n) \mathrm{d} \mu_{G/N} (gN),$$ where $\mathrm{d} \mu_{G}$, $\mathrm{d} \mu_{N}$ and $\mathrm{d} \mu_{G/N}$ are the Haar measures on $G$, $N$ and $G/N$ respectively?  In particular, is it true that if a subset $A\subseteq G$ is such that its intersection with $\mathrm{d}\mu_{G/N}$-almost every coset $gN$ is of full measure in $gN$ (w.r.t. to the measure on $gN$ obtained by shifting the measure of $N$, which is independent of the choice of $g$), then $A$ is of full measure in $G$? (This is implied from the equation above by taking $f$ to be the characteristic function of $A$).  I wanted to use the  in Wikipedia, but I'm not sure if it applies here. I'm not sure I understand the definition of a Radon space and I don't know which locally compact groups satisfy it.  I know of a more specific disintegration result, which appears in many/most introductions to Haar measures (e.g. Raghunthan's book), but it is only stated for continuous $f$ with compact support. I suppose it's not hard to get rid of the continuous part by using some Luzin argument (although I am not sure how to do it myself), but the compact support bothers me.  In any case, if this is not true for general locally compact groups, for which groups it is true? I have a reference for second-countable compact groups (Halmos's book Measure Theory; his definitions are a bit out-dated, but coincide with the modern ones for second-countable compact groups).  I don't mind assuming separability. Compactness is not awful either, but I prefer not to assume metrisability.  Thanks.


I have 2 classes and both of them hold a reference to the other.  class A {     private B b;      public A(B b) {         this.b = b;     } }  class B {     private A a;      public B() {         a = new A(this);     } }   If it leaks memory, then how I can achieve what I want without leaking?


Articles' titles like "Facebook to buy Whatsapp"

I am new here. I am a Brazilian learning english and I'd like to understand these articles' titles:  Examples:  Bethesda to release Dishonored 2  Facebook to buy Whatsapp  Donald Trump to build solar panelled wall on the border  I mean, I can understand them, but when to use this type of sentence construction? For me it seems like something is missing.


Do i need a transit visa for a flight that goes from Belgium to Ecuador and has a stop on London? I have a Belgian Residence Permit valid for a year because I'm a student, I have only the Residence Permit card and the visa in my passport is expired.


Nothing can travel faster than the speed of the light, but could this be an exception?

I often show off by asking people how fast electrons flow through wires. Then I tell them it's actually only a few millimeters per second. To clear the disbelief off their faces and boost my ego, I make the analogy as follows:  If I have a 10 meter long stick, and I poke them with it, the effect is nearly instantaneous, I can poke them well under one second, yet the stick is moving far less than 10 meters per second.   Now what I want to know, is if I had an extremely long stick, made of something lighter and stiffer than say carbon nanotubes, whacked one end with a hammer, would it be possible for the effect to be detected at the other end faster than light could get from the hammer side to the other?  I'm guessing it wouldn't, and I'm guessing I won't be able to understand the answer, but I'll ask anyway! Perhaps someone can give a simple and also a suitably comprehensive explanation?


The number $\frac{1}{\sqrt{5}}\left[\left(\frac{1+\sqrt{5}}{2}\right)^{n}-\left(\frac{1-\sqrt{5}}{2}\right)^n\right]$ is always an integer

For each $n$ consider the expression $$\frac{1}{\sqrt{5}}\left[\left(\frac{1+\sqrt{5}}{2}\right)^{n}-\left(\frac{1-\sqrt{5}}{2}\right)^n\right]$$  I am trying to prove by induction that this is an integer for all $n$.  In the base case $n=1$, it ends up being $1$.   I am trying to prove the induction step:   if $\frac{1}{\sqrt{5}}\left[\left(\frac{1+\sqrt{5}}{2}\right)^{n}-\left(\frac{1-\sqrt{5}}{2}\right)^n\right]$ is an integer, then so is $\frac{1}{\sqrt{5}}\left[\left(\frac{1+\sqrt{5}}{2}\right)^{n+1}-\left(\frac{1-\sqrt{5}}{2}\right)^{n+1}\right]$.   I have tried expanding it, but didn't get anywhere.


Recursive Function - $f(n)=f(an)+f(bn)+n$

I've got this recursive function $f(n)=f(an)+f(bn)+n$, and I need to find $θ$ on $f(n)$, as $a+b>1$.  Using a recursive tree, I managed to bound it by $n\log(n)$ from the bottom and by $n^2$ from the top, but I can't seen to find the $θ$ bound.  I'd be glad for some help.  Thanks in advance, Yaron.


Fetch currency symbol from mysql database in php

Create new database with CHARSET=utf8 and in that i insert currency symbols. When i try to fetch data with symbol using mysql_fetch_object but it can't display properly. I already add utf8 charset at header as below.   &ltmeta http-equiv="Content-Type" content="text/html; charset=utf-8">  But it's not display currency symbol.when i write that symbol on page than it's display but not from database.


display tty1 on one monitor and display tty2 on second monitor (usb terminal)

I have Debian 7 in console only mode; is there a way I can display different programs on 2 monitors?  example:  Screen one is the primary screen and this is to display my PoS application Screen two is the one that is facing the customer so I would like this one to display the "Customer graphical" program (basically it lists all items that have been brought so far plus a running total and item count)  Can this be done or have I managed to find something that is easier on Windows then Linux? (It is impossible on DOS as it only can handle one screen)


Which programs are using my USB flash drive?

Sometimes when I follow the process to safely remove a USB flash drive, I get told that I can't remove the drive because some programs are using it. However I'm unable to tell which programs these are, so I end up having to close programs - sometimes even randomly.   How do I find out which program is using my USB flash drive?  I've searched the Internet but have found nothing promising; one solution might be via Process Explorer since it shows handles, but I don't know how to use it to solve my problem.  The best solution would be to have a program that can automatically close these programs for me, or at least tell me which programs these are.


I just created a resume in Overleaf using LaTeX and saved it as a PDF. The tex file was somehow deleted from my Overleaf account and now I want to make some edits. Is there a way I can make changes in LaTeX to my pdf file?


Why did Killua kill the opponent of Leorio?

I'm currently watching the anime series Hunter x Hunter. I'm currently on the episode 30. But looking back, I get confused why exactly did Killua kill the opponent of Leorio.  Before the fight, his brother was seemingly hypnotizing him that he will need to step back if he know that his opponent is stronger than him, thus making him protecting Killua.   His brother also stated that a certain day will come that Killua will leave Gon to die. I don't get the point why such action will be done to Kill the opponent of Leorio.


I am planning to add Disqus to my WordPress site. Now will my comments will be indexed by the Google as earlier or do I have to add any extra plugins or sitemap for comments.


I was just trying to compare the speed of filtering a List between Java and C++. Just for fun, because I've seen that C++ has std::vector.erase() which removes elements of a vector in place, so I was expecting it to be a lot faster than Java's equivalent, here's the code in Java:  public static void main(String[] args) {      List<Integer> ints = new ArrayList<>(100000000);     long t1, t2;     int i;     t1 = System.currentTimeMillis();     for (i = 0; i < 100000000; i++) {         ints.add(i);     }     t2 = System.currentTimeMillis();      System.out.println("Initial array generated in " + (t2 - t1) + "ms");      t1 = System.currentTimeMillis();     List<Integer> result = ints.stream().filter((e) -> e % 2 == 0).collect(Collectors.toList());     t2 = System.currentTimeMillis();       System.out.println("Result: " + result.size() + " in " + (t2 - t1) + "ms."); }   And the output:  Initial array generated in 21859ms Result: 50000000 in 3135ms.   Here's the C++ equivalent:  #include <iostream> #include <vector> #include <algorithm> #include <sys/time.h>  long gettime(){     struct timeval time;    gettimeofday(&time, NULL);     long microsec = ((unsigned long long)time.tv_sec * 1000000) + time.tv_usec;     return microsec / 1000;  } int main(int argc, char **argv){    std::vector<int> ints;    long t1 = gettime();   for(int i=0; i< 100000000; i++){     ints.push_back(i);   }   long t2 = gettime();    std::cout << "Initial array generated in " << (t2-t1) << "ms\n";     t1 = gettime();   ints.erase(std::remove_if(begin(ints), end(ints),                [](const int i){ return i%2==0;}), end(ints));    t2 = gettime();   std::cout << "Result: " << ints.size() << " in " << (t2-t1) << "ms.\n";   return 0; }   And the C++ output:  Initial array generated in 1357ms Result: 50000000 in 1323ms.   Ok, so the array filtering is x3 faster in C++ (I was expecting more, to be honest). The question though is, why is Java so slow at populating the List (22sec)?


$R=R_1=R_2=R_3=R_4=R_5=R_6= 10 \Omega$ $R_2 \quad and \quad R_3 \quad with \quad R_4 \quad and \quad R_5 \quad are\quad in \quad series$  Therefore, $\frac{1}{R_{tot}} = \frac{1}{R_1}+ \frac{1}{R_2+R_3}+\frac{1}{R_4+R_5}= \frac{1}{R}+\frac{1}{2R}+\frac{1}{2R}= \frac{2}{R}$  $R_{tot} = \frac{R}{2}$    What I don't get is, why we can ignore $R_6$?


Case-sensitive keywords "int" and "string"

Why in the code below, string keyword seems not to be case-sensitive while int does (Int c brings error).  String x= "string x"; string y= "string y"; int z = 1; Int c = 1; Console.WriteLine(x +" "+ y +" "+ z +" "+ c)


Minimal Distance Between a geometry and a layer on PostGIS

I am working on PostGIS where I have a two tables. Let's call them A and B. A is coming from a multi polygons layer. B is coming from a multi points layer.  I have created a new column "min_distance" in A. I would like this column to take the value of the distance between the current polygon (eg the own of the row) and the closest point in the table B.  I am thinking about a "for" loop and using the ST_Distance() function but I am honestly lost about how to implement it. My question is : How can I do this ?  By the way, I am also searching for a clear tutorial about PostgreSQL programing.


Not able to install gnome-control-center on ubuntu 19.04

If I run sudo apt install gnome-control-center Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  gnome-control-center : Depends: gnome-control-center-data (< 1:3.29) but 1:3.32.2-0ubuntu1.1 is to be installed                         Depends: network-manager-gnome (>= 0.9.8) but it is not going to be installed                         Recommends: gnome-online-accounts (>= 3.25.3) but it is not going to be installed                         Recommends: libnss-myhostname but it is not going to be installed E: Unable to correct problems, you have held broken packages.   Not able to install its dependencies also.


I am having a very hard time understanding the , from an intuitive level. I've had a lot of people trying to explain this to me, including my professor and my brother, who is a graduate statistics student. However, I can only understand up to the part that the host's door choice is not random, but cannot wrap my head around the fact that this non-randomness makes the probability to win, if the player switches doors, jumps from 1/3 to 2/3. Note: I am a maths graduate student who doesn't have much experience with everyday life's statistics situations. Learning statistics/probability to me has always been challenging, not because of the maths, but because of the (intuitive) meaning of the equations. This Monty Hall problem is an example of my inability to comprehend a real-life statistics situation. While answering the question, please keep in mind that I hope to relate this Monty Hall problem to something intuitive that I can experience in real life.


How can I setup emacs to change space to TAB character for indent?

I am writing code for Linux kernel driver.   The    The first rule that everyone needs to follow is to use the Tab character rather than spaces, to indent code. Also, the Tab character should represent eight spaces. Following along with the eight-character Tab indentation, the code should not flow past the 80 character line limit on the right of the screen.  Can you please tell me how can I change to use TAB character to space in emacs for indenting?  And use a eight character tab indentation?


Why $I$ is a proper ideal implies $1\notin I$?  The definition of proper ideal only requires $I\neq R$. I don't get it.


Find: $ \lim_{n \to \infty}S_n= \log \cos\left( \frac x 2\right)+\log\cos\left(\frac x 4\right) + \cdots + \log\cos\left( \frac x {2^n}\right)$

Find: $$ \lim _{n→∞}S_n= \log\cos\bigg( \frac x 2\bigg)+\log\cos\bigg(\frac x 4\bigg) +\dots+ \log\cos\bigg( \frac x {2^n}\bigg)$$ Writing as : $$S_n=\log\Bigl(\cos\frac x 2\cdot\cos\frac x 4\dotsm\cos\frac x {2^n}\Bigr)$$ makes it more complicated. There must be an easier way.


Hey all,  CUDA error: Out of memory in mem_alloc_result, line 850  I'm unable to render a model I quickly put together (Is it considered simple?) When I attempt to render the scene, my system will completely crash/lock up or blender will force quit.  I'm using blender 2.8 with cycles as my render. I have GPU + CPU selected underneath CUDA in the user prefs and am trying to render at 1080x1920.  My hardware specs: GeForce GTX 1070 8gb, 16gb ram, Intel i7-7700 @ 3.60ghz  I'm confused because I feel like my model is basic. I have a sunlight lamp and materials using only a diffuse.    Can anyone point me in the right direction on getting this solved? I've uploaded the blend file here if anyone would be kind enough to inspect what's going on. I'm new so I'm just trying to figure out if this is user error, or if I need a better computer!? Thank you so much! -K


If you go to 'tags' and click a tag, you get questions filtered by that tag.  How can you refine the filter with another tag (without having to type the tag name into the search bar)?  Clicking another tag from inside the search results resets the filter.  Found the answer - in the sidebar on the right is 'related tags'. Click on one of these and you get a double tag search.


Jquery .click() function on a checkbox does not run when I click it

I'm trying to add a checkbox to header of my table . For this purpose I've written the following lines of codes:   tableHead+=' <input type="checkbox" id="select_all"/> 	';  $("#select_all").click(function(){     alert('clicked!'); })   html

Results - Table
     <button id="download-json" class="btn" style="float:right;"> Get JSON</button>     <button id="download-csv" class="btn" style="float:right;"> Get CSV</button>

Execute a query first!

   Unfortunately, Altough checkbox appear on my table, when I clicked on it, nothing happens. I mean there is no alert message. What should I do to fix it?


Using ArcMap I want to add new Fields into a gdb using Python

I'm new learning as I go, I have read some of the Answers posted, and I've gotten this far, I was able to add a new field to a GBD, I wanted to have the Length be 50, but it created a field with 255, so I didn't get something quite right  the code I used  below  the feature class is wax_ru the Field name is HN_AW  Text is the Type of Field, and 50 is the Default Value I wanted, but as I stated it created the field with 255  import arcpy from arcpy import env env.workspace = "C:\Users\angelaw\OneDrive - TomTom\Resources\Australia\PSMA_MAY_2018\PSMA_Deltas_test\PSMA_MAY_deltas.gdb"  arcpy.AddField_management ("wax_ru", "HN_AW","TEXT",50)


Show that $\overline{f(\overline{z})}$ is holomorphic on the domain $D^*:=\{\overline z: z\in D\}$ using Cauchy Riemann equation.

Please do not vote to close it as I want to find errors in my proof, which cannot be rectified on previously answered question.  I want a different proof using Cauchy Riemann equation.  Let $D\subset \mathbb C$ be a domain and suppose f is holomorphic on $D$.  Show that $\overline{f(\overline{z})}$ is holomorphic on the domain $D^*:=\{\overline z: z\in D\}$.  Attempt:   let $z= x+i y$ and $f(z)=u(x,y)+iv(x,y)$  $f$ is holomorphic on $D \Rightarrow u_x=v_y$ and $u_y=-v_x$  To show: $\overline{f(\overline{z})}$ is holomorphic on the domain $D^*$  Let $w\in D^* \Rightarrow w=\overline z$ for some $z \in D$  To show: $\overline{f(\overline{w})}$ satisfy Cauchy Riemann equation.  i.e. To Show: $\overline{f({z})}$ satisfy Cauchy Riemann equation.  $\overline{f({z})}= u(x,y)-iv(x,y)$  Let $v_1=-v$  $\overline{f({z})}= u(x,y)+iv_1(x,y)$  i.e. To show: $u_x={v_1}_y$ and $u_y=-{v_1}_x$  But $-v_y={v_1}_y$ and $-v_x=-{v_1}_x$  $\Rightarrow u_x=-v_y$ and $u_y=v_x$  which is not what I want.  Where I go wrong ?


Is the below Javascript function being passed arguments by value or by reference? I'm not sure how to distinguish between the two

I can't figure out what passing by reference and passing by value looks like (I know what they mean in theory). Can you tell me whether the below function is passing arguments by value ore reference? BTW this is my first post :)   var number_1 = 32; var number_2 = 43;  function addition(num1,num2) {     alert (num1*num2) ; }  addition(number_1,number_2); /*is this passing by reference?*/


What is the purpose of tiny "bumps" on LED legs?

A lot (if not most) LEDs have some kind of small thickenings on their legs. Sometimes they are almost as wide as the leg itself and barely visible, sometimes they are twice as wide and instantly noticeable. When present they seem to be the same on all legs, so I doubt they are used to indicate anode or cathode. The only explanations that come to mind are:  They are a manufacturing by-product, possibly a place for holding LEDs during manufacture.  They are designed to provide a bigger soldering surface.   Here's an image that shows them on both legs (sized 1 x 0.6mm):  They might not be specific to LEDs alone, but are commonly seen on them.


Change the precision of a .csv file attribute table

I have imported a .csv file containing unique identifiers with two decimal places (e.g. 53500001.00, 53500001.01 etc.). I am joining this file to a vector file with the same identifiers. However, when I import the .csv file the identifiers ending with .00 have been reduced to integers in the attribute table and the join returns null values in those instances.  It is census data so I can't go back through and manually change this as it's hundreds of thousands of lines. Is there a way to change the precision of the attribute table similar to in excel?


How to decide whether to use 'that' or 'which'?

I understand the principle behind choosing either 'that' or 'which' but I still find myself struggling to know in certain situations whether to use it or not. For example, "Here is a link to the article, which can be found on the Environment section of the website". Would it be that or which? I would use assume 'which'.  Do any of you have tips/strategies for knowing when to use 'that' or 'which' when writing a sentence?  Thanks


How find this value $\frac{a^3}{(a-p)(a-q)}+\frac{b^3}{(b-p)(b-q)}+\frac{c^3}{(c-p)(c-q)}$

let $p,q$ is a  $$(x-a)(x-b)+(x-b)(x-c)+(x-c)(x-a)=0$$ roots,find this value $$\dfrac{a^3}{(a-p)(a-q)}+\dfrac{b^3}{(b-p)(b-q)}+\dfrac{c^3}{(c-p)(c-q)}$$ where $a,b,c$ is give numbers.  I know this  Lagrange interpolation $$\dfrac{a^3}{(a-b)(a-c)}+\dfrac{b^3}{(b-a)(b-c)}+\dfrac{c^3}{(c-a)(c-b)}=a+b+c$$  But my problem is different.so how find it?


What's wrong with "I'll open you the door"?

When I call the buzzer outside my girlfriend's flat, she sometimes says *"I'll open you the door". I correct this to "I'll open the door for you".  I've never heard a native speaker say it the first way, which is why I think it's wrong. But I can't explain why.  There is a pattern in lots of English phrases that would suggest both are correct. A few common examples:   Give the keys to me before you go — Give me the keys before you go I'll buy a coffee for you at the cafe — I'll buy you a coffee at the cafe We sent a text to Martin on his birthday — We sent Martin a text on his birthday   The left-hand side is more formal, and the right-hand side is more common in everyday speech.  What do you call this pattern?  What makes the 'open-the-door' sentence an exception?


I want to play Minecraft with my friend in my world but it always says unable to join world on their screen

I am using an iPad and they are using an iPhone.I tried a lot of things.


In what order should I read the X-men comics?

is about 2000-2010, but I want to start from the very beginning.  I know that  is the first one, but there are so many after them.  In what order should I start reading them?


How to interpret numerous processes with exact same RAM usage

I have a VM that processes files, parses the information and saves it to a database. I've been monitoring the resource usage and noticed /usr/sbin/console-kit-daemon --no-daemon.. Below you see a screenshot of HTOP, when connected via ssh. Does each of these, as they all have different PIDs, use 124MB of RAM, or do they share it?


Getting file type to be stored in to database

Is there any way to get the type(format) of the uploading file in java.?   iam able to upload the file of any format .now want to get the file type to be stored into database.  One more thing i dont have file_type field column in the upload form.Have file_type field column only in the database..please help me  thanks all..


Does anyone have any hints on how to describe the following partition?     Describe a partition of $\mathbb{N}$ that divides $\mathbb{N}$ into $\aleph_0$ countably infinite subsets.


Why do we need to use special versions of voltage regulators on negative rails when the input is isolated from the positive rail?

Take the example of the well-known LM78XX voltage regulators: there is the LM7812, and the LM7912. The latter should be used to generate -12V from, say, -24V whereas the former is used to generate +12V from +24V. I must be missing something because I do not understand why we should use the 7912 instead of the 7812 on -24V rails generated by tying the positive pin of an isolated power supply to GND and the return pin of the same supply to the -24V net. Since the supplies are isolated, why would the 7912 be "aware" that it is in fact handling negative voltages or very loosely said that it is "upside down" with respect to the positive rail? In a nutshell, why couldn't we use two 7812 to generate +/-12V from two +24V isolated wall adapters tied back to back?


How to disable Dell trackpad when mouse plugged in to usb port?

When in Windows 7 I have the option to have the touchpad automatically be disabled when a usb mouse in plugged in. Then when the mouse in unplugged the touchpad automatically becomes enabled. There is even a light at the top of the touchpad the comes on when it is in disabled mode! Is there a way to duplicate this functionality under Ubuntu 13.04? (I have a Dell Inspiron 15r with Hybrid AMD/Intel graphics.)


I am using AngularJs, html to show table and display the records in the table. Demo:   I am trying to click on the number's hyperlink present in the second column. Currently I'm splitting the numbers using the comma (,) delimiter and used the  link to pass the associated number I have clicked on (can see working on first row links).  Sometimes as the data is dynamic, I may get semicolon (;) or colon (:) as the separator, and then the code breaks, passing multiple associated numbers when clicked on the link.          {{associateNum}};   How to support the above  link even when the associated numbers in the same row are having , or ; or : as the separators?  js code:  app.controller('MainCtrl', function($scope) {   $scope.players = [{     "name": "Robert C",     "associatedNumber": "21,10,133",     "standing": true,     "result":"Delivered,shipped,shipped" }, {     "name": "Joey C",     "associatedNumber": "55,2:22;33",     "standing": false,     "result":"To be delivered,Delivered" }, {     "name": "Bobby A",     "associatedNumber": "15;22:11",     "standing": true,     "result":"TO be delivered" }, {     "name": "John A",     "associatedNumber": "1,33,34",     "standing": true,     "result":"To be delivered,shipped" }]; });


Singleton Design Pattern in a web environment

I'm using in my asp.net web site, a singleton class to the users information.  I would like to know, if I put this web site online, when the users start to login, this this class will store the data to only one user.  This is my class:  public class User {     private static User instance;             private User(){}      public static User Instance     {         get         {             if (instance == null)             {                 instance = new User();             }             return instance;         }     }      public Institute LoggedInstitute { get; set; }     public List<Institute> Institutes { get; set; } }


How can I block html and urls in my input form

I have a website that has an input form that submits to a php page and adds a players username to a database and counts the views of that player's name to a top 10 list.   My friend tried out inputting other stuff such as html code and javascript. it get's displayed on my top 10  list.  do you have any suggestions how I can make my form more secure? I have been searching for ages and haven't found anything yet.  all help would be highly appreciated :)  <form method="get" action="player.php">

           <input name="user" type="text" class="form-control" placeholder="Steve" aria-describedby="sizing-addon2">                       <input type="submit" class="btn btn-success" value="View Skin">
 </form>


I was wondering if there was any photo management software out there that could auto detect and "rate" images on how in focus they are. This comes up for me quite commonly when i am looking through a large series of macro images of the same subject. In a perfect world, Light Room (or whatever program) could highlight in focus and out of focus areas the same way that it detects burned out areas of an image. Also the algorithm I am hoping exists would be smart and would not be distracted by blurred backgrounds and only seeks that some sufficient area is in enough focus. Anything like that out there?  As another thought for people talking about pictures being in focus on the wrong spot, and that camera focus models already look into this. Another large factor for a lack of clarity in a macro image is blur from camera movement.  This damages all points on an image, and is not something the camera accounted for when focusing.


What is progression in test automation? What open source tool could be used to design automation framework for that?

I 've been working in automation for the last 8 years. Recently, I have come across the term "Progression" in test automation. I've learned basics but still, I am not sure how to implement this concept in our DevOps test automation pipeline. As it's suggesting automation test case is ready before code deliver to QA & which tool to consider for designing front end web-based & API automation framework?  Reference links:  ?


Evaluate $\int_0^1\frac{x^3 - x^2}{\ln x}\,\mathrm dx$?

How do I evaluate the following integral?  $$\int_0^1\frac{x^3 - x^2}{\ln x }\,\mathrm dx$$


Which one is the suitable Debian iso for desktop?

There are so many iso files in Debian website that I am really getting confused. How do I choose from them?   I used Ubuntu before. I want to install Debian to my desktop I want Gnome or KDE to be my DE I downloaded a version called xxxxxxx-CD-1.iso but it doesnt seem to have a GUI


I was curious about the independence of justice and moderation with those that embody them on the forums: the moderators.   I wasn't asking on the way the community, its users, such as me, can control moderators.  This is only an example but for instance if a moderator becomes rude on a forum and is flagged, who will moderate? Would he take part to his moderation case? Does it implicate his moderator qualification?


How do I install a coat rack on drywall over concrete?

Ok, here's the problem. I have a coat rack that was installed poorly by the previous owner, who firstly installed it upside down and then secondly didn't use any drywall mounts. It came right out of the wall. I purchased some toggle bolts and some dry wall anchors only to discover what I believe is concrete behind the drywall (the back side of the wall is the elevator shaft).  Given that I cannot damage the concrete (it belongs to the condo's common property), and all of the drywall hangers I've seen are either too long or rely on the backside of the drywall being open, is there any way to mount the coat rack safely?  Any attachment should probably be able to take at least 50 lbs of weight, given I live in Canada and it will be holding up to five winter coats, mitts, hats, scarfs and it has a shelf above it where I occassionally put books and the like. Also the coat rack only has two holes for screws.


Geometric interpretation for sum of fourth powers

Summing the first $n$ first powers of natural numbers: $$\sum_{k=1}^nk=\frac12n(n+1)$$ and there is a  involving two copies of a 2D representation of $(1+2+\cdots+n)$ that form a $n\times(n+1)$-rectangle.    Similarly, $$\sum_{k=1}^nk^2=\frac16n(n+1)(2n+1)$$  has a  (scroll down just a bit til you see the wooden blocks) involving six copies of a 3D representation of $(1^2+2^2+\cdots+n^2)$ that form a $n\times(n+1)\times(2n+1)$-rectangular solid.     And similarly, $$\sum_{k=1}^nk^3=\frac14n^2(n+1)^2$$ has a proof involving four copies of a 4D representation of $(1^3+2^3+\cdots+n^3)$ that form a $n\times n\times(n+1)\times(n+1)$-rectangular hypersolid in four-space. I can't find a resource to demonstrate this last one better, but I've sketched it out for $n=3$, sketching the four dimensions using a $4\times4$ grid for two dimensions, and within each cell a $3\times 3$ grid for the other two. (Try it - it's fun!) Here's a smaller $n=2$ version. Note that $1^3+2^3$ is represented by some 4D blocks $1\times1^3+1\times2^3$ that are configured in a way that makes use of all four dimensions. $$\begin{array}{c|c|c} \begin{array}{cc} {\color{red} \bullet} & {\color{red} \bullet}\\ {\color{red} \bullet} & {\color{red} \bullet} \end{array} & \begin{array}{cc} {\color{red} \bullet} & {\color{red} \bullet}\\ {\color{red} \bullet} & {\color{red} \bullet} \end{array} & \begin{array}{cc} {\color{blue} \bullet} & {\color{blue} \bullet}\\ {\color{blue} \bullet} & {\color{blue} \bullet} \end{array} \\\hline \begin{array}{cc} {\color{green} \bullet} & {\color{green} \bullet}\\ {\color{green} \bullet} & {\color{green} \bullet} \end{array} & \begin{array}{cc} {\color{red} \bullet} & {\color{blue} \bullet}\\ {\color{green} \bullet} & {\color{magenta} \bullet} \end{array} & \begin{array}{cc} {\color{blue} \bullet} & {\color{blue} \bullet}\\ {\color{blue} \bullet} & {\color{blue} \bullet} \end{array} \\\hline \begin{array}{cc} {\color{green} \bullet} & {\color{green} \bullet}\\ {\color{green} \bullet} & {\color{green} \bullet} \end{array} & \begin{array}{cc} {\color{magenta} \bullet} & {\color{magenta} \bullet}\\ {\color{magenta} \bullet} & {\color{magenta} \bullet} \end{array} & \begin{array}{cc} {\color{magenta} \bullet} & {\color{magenta} \bullet}\\ {\color{magenta} \bullet} & {\color{magenta} \bullet} \end{array} \\ \end{array}$$ This is a $2\times2\times3\times3$ rectangular hypersolid made up of four copies of $1\cdot1^3+1\cdot2^3$.    So we move on to fourth powers: $$\sum_{k=1}^nk^4=\frac1{30}n(n+1)(2n+1)(3n^2+3n-1)$$ This time the polynomial does not completely factor. I would like to know if anyone can find a similar geometric proof. It would involve 30 copies of a 5D representation of $(1^4+2^4+\cdots+n^4)$ forming a 5D hypersolid, one of whose 2-faces somehow works out to have area $3n^2+3n-1$, with the orthogonal edge lengths being $n$, $n+1$, and $2n+1$. I know it seems hopeless...30 copies? $3n^2+3n-1$? But it would make for some nice art.  It would be a nice start if there were some sort of connection between $30$ and a symmetry group of $\mathbb{R}^5$. For instance, if there were a subgroup of $\operatorname{SO}_5$ whose order was some large divisor of $30$, then that might help place the $30$ blocks of volume $1^5$ into their configuration.


Does the $0.\overline{9} = 1$ proof show that the gap between numbers adjacent numbers is $0$, and so are infinitesimal values equal to $0$ ? Would $10^{-\infty}=0$ ?  Edit: I feel like the smallest non-zero number would be $0.0...1$, which when subtracted from $1$ would 'appear' to be $0.999...$ , but it can't since $1 = 0.999...$


How to use If Else for check validation is number in Javascript

This is my code  else if(form.txtPrice.IsNumber){     alert("Price must be number") form.txtPrice.focus();     return false;   I can not check validation must be number in Javascript, everybody help me please, thank you so much!


The date in my UK passport isn't in the usual format (day, month, year) it shows as-  Date off issue 20 DEC /DEC 10 Date of expiration 20 DEC /DEC 20  bit confusing but I'm guessing it means it expires in Dec 2020..can anyone confirm this?


Possessive form of Mrs. (with full-stop/period)

Let's assume I have a text talking about Mrs. Jones and I want to start a section talking about her childhood. Which of the following forms, if any, is valid?     Mrs.'s childhood   or     Mrs.' childhood   or     Mrs'. childhood   Is there a rule for the possessive of "Mrs." whose last letter is an s but not the last character? Or should this simply be avoided and     Mrs. Jones's childhood   has to be spelled out?


Get error when trying to perform delete query

I want to perform 2 query when button is clicked in adapter class, first is select data from table A and insert to Table B, the other is delete row from table A.  Adapter   mdb = new MyDatabaseHelper(v.getContext());  database = mdb.getReadableDatabase();  deleteTask = new DeleteTask();  Cursor cursor = database.rawQuery("SELECT * FROM " + MyDatabaseHelper.TABLE__TASK + " WHERE ID = ? ", new String[]{id+""}, null);  if (cursor != null && cursor.getCount() > 0) {         while (cursor.moveToNext()) {               String allTask = cursor.getString(cursor.getColumnIndex("Title"));              String name = cursor.getString(cursor.getColumnIndex("Name"));              String allTime = cursor.getString(cursor.getColumnIndex("Time"));              String allDate = cursor.getString(cursor.getColumnIndex("Date"));              insertDataToCompleteTab(id, name, allTask, allTime, allDate); //insert to Completed table              deleteTask.deleteData(id); // delete the row of data from Task Table        }  }   DeleteTask    public void deleteData(int id)     {         database = mdb.getWritableDatabase();         database.delete(MyDatabaseHelper.TABLE__TASK, MyDatabaseHelper.ID1 + "=" + id,null);         database.close();     }   Error  java.lang.NullPointerException             at com.example.seng.healthyapp.DeleteTask.deleteData(DeleteTask.java:124)             at com.example.seng.healthyapp.adapter.AllAdapter$1.onClick(AllAdapter.java:139)             at android.view.View.performClick(View.java:4230)   The error pointing to the deleteTask method. But I have done initialized them, why I still getting such error ?


Fermat numbers are shown by: $F_m = 2^{2^m} + 1$.   How can I prove that for any $m ≠ n$, I can have $(F_m, F_n) = 1$?


I've been trying to do it, but it's not working, my object has 2 elements, and it returns 1 element only :/  Here's the code I have  var jumbo = document.getElementsByClassName("jumbotron"); var button = document.getElementById("changebg");  var tiles = {   tile1 : {     header : "header1",     desc : "desc1"   },   tile2 : {     header : "header2",     desc : "desc2"   } };  function getObjectLength(obj){   var count = 0;   for ( var i in obj) {     if (obj.hasOwnProperty(i)) {       count++;     };   };   return count; };  function changeBackground(){   document.getElementsByClassName("jumbotron")[0].innerHTML = getObjectLength(document.getElementsByClassName("jumbotron")); };


Missing vertical lines in the latex table

I am trying to create a \multirow and \multicolumn table in Texmaker. I have specified to put vertical lines in the code but somehow my last column is missing partially the vertical line. I have posted my code below. Could someone help me out to understand where am I wrong? Thanks a lot in advance.   \begin{table}[h]  \centering  \begin{tabular}{|p{3cm}|p{3cm}|p{3cm}|} \hline  Macrophase & \multicolumn{2}{|c|}{Activity} \\ \hline  \multirow{8}{*}{} & Description & \\ \cline{2-3}  & Macrophase Actors  \\ \cline{2-3}  & Duration and Frequency \\ \cline{2-3}  & Inputs \\ \cline{2-3}  & Software Utilized \\ \cline{2-3}   & Outputs \\ \cline{2-3}   & Criticalities \\ \cline{2-3}   & KPIs \\ \hline    \end{tabular}    \caption{caption}    \label{table:sample}    \end{table}


We all use mathematical induction to prove results, but is there a proof of mathematical induction itself?

I just realized something interesting. At schools and universities you get taught mathematical induction. Usually you jump right into using it to prove something like   $$1+2+3+\cdots+n = \frac{n(n+1)}{2}$$  However.  I just realized that at no point is mathematical induction proved itself? What's the mathematical induction's proof? Is mathematical induction proved using mathematical induction itself? (That would be mind blowing.)


Is it valid to ask a question about code style/structure?

I have a code that is badly disorganized. I wish to receive input from experts regarding how I can make it more understandable for me and for others.   Is that a question suitable for SO or is it 'too vague/not a real question' ?


Parallel execution of sh script in multiple servers

I am trying to execute action in multiple servers in my loop but I would like to launch my actions in the first server and go directly to the second one without waiting for the first one to complite .  HOSTS="host1 host2"     For hostname in ${HOST} ; do ssh -tt ${USERNAME}@${hostname} << EOF actions exit EOF Done    Anyone has an idea hos to do that in linux sh bash ?  Thank you in advance.


Page URL Modifications and Google response

I need to change the address of one of the pages of my site. I will create a new page with absolutely the same content and the same structure of the page (no changes to the content of the page at all, 100% copy), and then I will do 301 redirect from the old page to the new one.  So for example: example.com/somegoodpage (the old page) Will 301 redirect to: example.com/goodpage (the new page, exactly the same as the old one, except the URL).  How will Google respond to this kind of URL change in terms of search result positions?  Maybe this shouldn't be done at all because Google does not like this kind of redirect and heavily punishes for it? If so, maybe there is another way to do this?


Does the OGL let me write D&D 5e compatible rulebooks legally?

In the D&D 5th Edition Dungeon Master's Guide, there are two magic items named The Book of Exalted Deeds and The Book of Vile Darkness. In their description, under "Vile Lore" it says that the DM could include magic spells, rituals, curses, etc. As such, I was wondering if I would be crossing copyright boundaries if I were to take the 3.5 Rulebooks for both of these books which completely give all the information a DM would ever need for that "Vile Lore" optional rule and translate them into 5th  Edition compatible rules.  I will probably do this regardless if only just for my own benefit as a DM, but...   Am I allowed to distribute this translation of rules to other people for free, for donations, or for profit? Am I allowed to create an entirely new set of 5th Edition compatible rules for something entirely new (such as a Neutral version of those books) and distrubute in the same way?   I would likely be using Chapter 9 in the DMG, the "Dungeon Master's Workshop", to balance the 3.5 rules into 5th Edition gameplay.  I'm aware of the , but I don't know what it means for what I want to do. It seems to say that I can design all of this, publish, and sell it using 5th Edition rules.


What do I have load to watch movies, netflix and such?

what do I have load to watch movies netflix and such.  by other questions posted there may be another site i should ask my question.  got to start somewhere  thanks  jj


I have created a DEM, DSM, and nDSM from a LiDAR Point Cloud using SAGA-GIS.  I extracted the appropriate returns from the point cloud, then converted to grid, and then closed gaps to fill in any nodata regions.  I'm finding that my resultant rasters are still pretty noisy. For example, a region of pixels in the DSM that is obviously a tree or cluster of trees has several pixels with a very similar value to ground instead of the surrounding higher value pixels.  I've tried doing a majority filter on the DSM, but it didn't help.  Any suggestions for other filters that might help create more contiguous regions of pixels?


There are disagreements between/among......?

There are disagreements between/among them(more than two people).  Should I use between or among in the sentence?


shell environments: PREpend a path to my PATH environment variable in both bash and zsh, for scripts as well as interactive shells?

I'm using macOS 10.15.6 Catalina, which uses Zsh as its default shell, however I have a lot of scripts that use Bash and I want to prepend /Users/rocketnuts/bin to my PATH environment variable.  I want this to affect all Zsh and Bash contexts, both when running scripts and in manually opened interactive shells; for example, currently echo $PATH returns: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin  Whereas I want it to be: /Users/rocketnuts/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin    How or where do I do this exactly?


how to display webview current url stored in string in dialog box - android

I am trying to get Web View current URL in dialog box.  I used following code, but its giving error  String webUrl1 = web.getUrl(); builder.setMessage(webUrl1);   here is full code.  i am trying to match url in if condition. but it doesn't giving any error nor working properly.      //setting up web view     setContentView(R.layout.main);     web = (WebView) findViewById(R.id.webView1);     setUpWebView();     web.loadUrl("http://www.example.com");      String webUrl1 = web.getUrl();      if (webUrl1=="http://www.example.com"){     //do something.     }


type(train_x) numpy.ndarray  train_samples = train_x.tolist()   When I print the index of my samples, you can see that there are duplicates that are out of order. Why might this be happening?   It is messing up my pipeline downstream... but sometimes it runs fine when the index decides to preserve itself.   for tr in train_samples:     print(train_samples.index(tr))  ... 11 12 13 14 # here 15 ... 39 40 41 42 14 # here ...     Proving answer about duplicate entries:


Searching for a short story against entropy

I'm trying to identify a short story which I recall reading many years ago.  A series (i think) progressing into the future, similar to Harry Harrisons "One step from earth" but details the progress of a computer type device over millennia. The story I recall ends with the "computer" after many calculations works out how to reverse entropy and ends with a Biblical quote.


Why are time stamps missing from recent questions?

As I've looked through questions Stack Overflow recently, I've noticed that recently asked questions use relative time (posted yesterday or last edited 2 days ago), which is fine. Yet if I find an older question, I'm given a fuller date range like Sep 20 '11 at 20:55.  Why is the specific time given on older questions but not on newer questions? Couldn't the time stamp use relative time plus the hour, minute it was posted? An example would be posted yesterday at 12:05pm.