How can I reset a mysql table auto-increment to 1 in phpMyAdmin?

I know that in MySQL at the command line I can reset a table's auto-increment field to 1 with this:  ALTER TABLE tablename AUTO_INCREMENT = 1   I am curious if there is a way to do this from within phpMyAdmin.  Something like a check box to reset the auto-increment or something else along those lines?  Not that there is anything wrong with the command line approach.  More one of those curiosity things I keep thinking on...  Thanks in advance!


I'm using the titling package to allow me to have multiple \maketitle tags in a document.   I also want to have headers telling me which "section" (as given by the title) I am in.   However, the header changes before the chapter changes, see page 2 of the minimal example below.   \documentclass{article} \usepackage[pagestyles]{titlesec}  \usepackage{titling} \usepackage{lipsum}  %% header \makeatletter \newpagestyle{main}{ \sethead[\@title][][] % even {}{}{\textsl{\@title} % odd \setfoot[\thepage][][] % even {}{}{\thepage} % odd }} \pagestyle{main}  \renewcommand{\@maketitle}{\flushleft\LARGE\bfseries \@title \par} \makeatother  \begin{document}  \title{First Title} \maketitle  \lipsum   \title{Second Title} \maketitle   \end{document}


What are the special features of the recently announced Circle K Power Cube

Niantic has just announced a new type of power cube called Circle K Power Cube to be released soon. What are the special features of Circle K Power Cube?


I would like to add author information on a page which is not the title page.  Something like  \documentclass[12pt,a4paper]{book} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage[left=2.00cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry} \title{} \author{} \begin{document}     \date{}     \maketitle       \chapter{New Chapter}     Authors      Institutions \end{document}   The author information will need to go on a chapter page underneath the chapter heading.  How can I accomplish this?


Creating "oblique bounding box" with maximum width/height ratio?

I would like to create a surrounding rectangle with maxiumum width/height ratio ("oblique bounding box") from a set of input features as shown in the image below:    E.g. the PostGIS functions ST_Envelope and ST_Box2D as well as FME Transformers BoundingBoxReplacer and BoundingBoxAccumulator generate axis parallel bounding boxes.  Any suggestions using approaches with PostGIS, QGIS or FME greatly welcome!


I was wondering if it is possible to apply the method of hypothesis testing to real life. For example if someone can use it for decision making. I have always used this method for homework problems but maybe we can use this method as an aid in decision making. Therefore we could somehow know for example the probability of rejecting wrongly an alternative decision. What do you think on that? And it would be nice if someone can give an example if he thinks that this can be done.


How do you get more gems without having to buy them? It is a pain trying to complete the building with only two builders huts.


SQL Server 2008 Windows Auth Login Error: The login is from an untrusted domain

When attempting to connect to a SQL Server 2008 Instance using Management Studio, I get the following error:     Login failed. The login is from an   untrusted domain and cannot be used   with Windows authentication.   (Microsoft SQL Server, Error: 18452)   I can login using SQL Authentication without problem.  I've been getting this error all of a sudden.  I have Mixed Mode Authentication turned on.    Does anyone have any experience with this?  Additional Info: 64-bit version of SQL Enterprise Edition On Windows 2003 Server


I want to use juju to deploy openstack.   I want to install - mysql,rabbitmq,quantum,glance,cinder,opnestack-dashboard,keystone and etc. on two nodes /the one is bootstrapped/.   I install the juju-gui on the bootstrapped node -machine"0" and the elements of openstack on machine"1"   I make the relations with the GUI but when I try to enter in the horizon dashboard I get   "internal error 500"    Is it because I used only one machine ?   What should I do to resolve the problem?


What is the relationship between the spectrum of a matrix and its image under a polynomial function?

Clearly if $\lambda$ is an eigenvalue of $A$ then $p(\lambda)$ is an eigenvalue of $p(A)$ where $p$ is a polynomial. And there are cases where $A$ may have eigenvalues other than these.   Is there a general rule for finding all eigenvalues of $p(A)$? Does it depend on the field from which the elements of $A$ are taken? Are their any partial solutions to this problem?


In harry potter, Bellatrix is one of Voldemort's most beloved and loyal Death Eaters. Voldemort even trained her himself.  "trained in the dark arts by the dark lord himself"  She is married to Rodolphus Lestrange, but (as far as I can find) never shows any affection towards him. She shows much more interest in Voldemort. one of the best examples I can find of this is :  " 'My Lord... my Lord...' It was Bellatrix's voice, and she spoke as if to a lover."  and then:  "Voldemort seemed to be getting to his feet. Various Death Eaters were hurrying away from him, returning to the crowd lining the clearing. Bellatrix alone remained behind, kneeling beside Voldemort."  and a few lines later:  " 'My Lord, let me. . .' 'I do not require assistance," said Voldemort coldly, and though he could not see it, Harry pictured Bellatrix withdrawing a helpful hand. "The boy... Is he dead?' "  So, did Bellatrix really love her husband, who she shows no affection to (that I can find), or does she truly love Voldemort?


How can I disable the ocean sim modifier's symmetry?

I have started experimenting with the ocean sim modifier, but I am noticing how "symmetrical" the resulting mesh is. No matter how I adjust the parameters, a wave in one corner will appear in the opposite as well, which leads to unrealistic water like this:    I understand this is to allow seamless tiling, but in my case I am only interested in one single tile, and am finding the symmetry to be visually disruptive. Is there any way to disable it?


I'm using Blender 2.81 and I can't find halo rendering or anything except surface even after changing the rendering engine to Cycles.


Check the properties of the eigenfunction corresponding to the distinct eigenvalues of an integral equation

Let $\lambda_1, \lambda_2$ be eigenvalues and $f_1 , f_2$ be the corresponding eigenfunctions for the homogeneous integral equation \begin{align}  \phi(x) - \lambda \int_0^1 (xt +2x^2) \phi(t) \mathrm{d}t = 0  \end{align}  We are given that $\lambda_1 = -18 - 6 \sqrt{10} , \lambda_2 = -18 + 6 \sqrt{10}$.   Check: Which of the following properties are satisfied    $\displaystyle\int_0^1 f_1(x)f_2(x) \mathrm{d}x  = 0$ $\displaystyle \int_0^1 f_1(x)f_2(x) \mathrm{d}x = 1$


Cannot execute UPDATE statement on SQLite DB: database is locked

I cannot execute UPDATE statements in my Flask App deployed to Azure App Service (Linux). It says:     Database is Locked.   SELECT statements are executed as expected. On the local machine work UPDATE statements as expected.  I have tried to change the isolation_level (DEFERRED, EXCLUSIVE, IMMEDIATE). I have also tried to CHMOD on the data folder but that looks right.  with sql.connect(connstring) as con: cur = con.cursor() cur.execute("Update INNOVATIONPOWER_MESSAGES SET innovative = 0 WHERE id = 21187") con.commit()


h:inputText allow only numbers during input

I have a field in JSF2, I tried execute a validation in this way:  <h:inputText value="#{manutencaoContratoBean.contrato.nuContrato}" style="text-align: left; width: 90%; "> <f:convertNumber pattern="#######" maxFractionDigits="0" maxIntegerDigits="16"/>     And thus:  <h:inputText value="#{manutencaoContratoBean.contrato.nuContrato}" style="text-align: left; width: 90%; ">   <f:convertNumber integerOnly="true"/     However, my field only makes a validation and show me a message, I would like just the insertion of numbers, not Strings, this is possible ?  Is possible a insertion only of numbers ? I'm using RichFaces 4, if that's relevant.  I found this, it´s work well:  onkeypress="if(event.which &lt; 48 || event.which &gt; 57) return false;"   But this not allow a click on the backspace button, in case the user make a mistake.  Thanks in advance for all !


Playing online with same PSN on PS3 and PS4

I have a PS3 and a PS4 with the same PSN account. Given from the information released by Sony with one PSN account I can have up to two PS3s and one PS4. Am I able to play online simultaneously with both consoles? Is it also possible to play online against each other?


I recently purchased an iPhone 4S from Craigslist that had been reset when I bought it.  When I try to activate the phone with the Apple ID that the previous owner gave me I receive an error saying that the account provided couldn't be used to unlock the device.  I know that it needs to be associated with the correct account but how do I even tell what account the phone was activated with originally?  The only thing I can see on the activate phone screen is the following:     This iPhoneis currently linked to an Apple ID (xxxxx@gmail.com).  Sign in with the Apple ID that was used to set up this iPhone.   Is there a way to show or reveal the Apple ID that is associated with the account?  At the very least I want to contact the original owner to see if it was stolen from them but I can't even do that.  Very frustrating.


Android app does not order the sites on "Your Sites" in a correct way

When reorder the "Your Sites" list on the Android app, the list doesn't get refreshed accordingly. Sites are shown in correct order on computer but not in Android app.  My phone model is HTC One, Android 4.2.2, app version 1.0.31  Steps to reproduce problem:   Pull the left panel. Click on "edit" next to the "Your sites" label. Reorder your sites. Press back button to go back. Check if the ordering of your sites on the left panel are updated.   In my experience, sites are always listed by the time of pinning. It doesn't change when I manually reorder them.  I believe the reason why no one could reproduce this problem is because the problem occurs only if you add more than 10 sites.  I first thought that the app does not refresh the list but later I found out that there could be a problem in the ordering algorithm because it adds the 11th, 12th, 13th, etc. item right after the first item. And if you add more than 20 sites, it puts 21st, 22nd, etc under the second item on the actual list.


I am from South Africa and we are currently having what our main energy supplier is calling loadshedding. Basically various municipalities have their electricity cut at relatively random times to lift the load. The news did not report any shedding for today, but as I finished making my banana loaf batter, the power went out. It will be out for anything between 1 and 6 hours. Do I leave the batter out while waiting or in the fridge? Contains baking powder, butter and eggs, so my questions are: Will putting the batter in the fridge for that amount of time effect the outcomes of the baking? We are in Africa, so atmospheric temperatures are high, about 36 Celsius today. Is it more risky to leave the batter out, in terms of food poisoning, or in the fridge in terms of outcomes of the baking?! 😂 Also: had I already put the baking in the oven, what would have been the best course of action? Take out and wait, put in fridge or leave in oven? (recipe asks for 50 minutes in the oven)


Find $\lim_{x\to 0^+}(\sin x)^\frac{1}{\ln x}$

$\lim_{x\to 0^+}(\sin x)^\frac{1}{\ln x}$  I was trying to change it to $\lim_{x\to 0+}\frac{(\sin x)^\frac{1}{\ln x}}{x^\frac{1}{\ln x}}{x^\frac{1}{\ln x}}$, but I don't know what to do next.  Any help would be appreciated.


I am trying to install some packages but i receive message error:  E: Unable to locate package libodbcinstq4–1  E: Unable to locate package libodbcinstq4–1:i386 E: Unable to locate package libzthread-2.3–2 E: Couldn't find any package by glob 'libzthread-2.3–2' E: Couldn't find any package by regex 'libzthread-2.3–2'   As repository, I added:  echo ‘deb http://cz.archive.ubuntu.com/ubuntu precise main universe’ >> /etc/apt/sources.list.d/extra.list   with the response of N0rbert, I have the following output:  libodbcinstq4-1 is already the newest version (2.3.0-4). libodbcinstq4-1:i386 is already the newest version (2.3.0-4). You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  libodbcinstq4-1:i386 : Depends: odbcinst1debian2:i386 (>= 2.2.14p2) but it is not going to be installed  libqtcore4 : Breaks: libqtcore4:i386 (!= 4:4.8.7+dfsg-5ubuntu2) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 is to be installed  libqtcore4:i386 : Breaks: libqtcore4 (!= 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1) but 4:4.8.7+dfsg-5ubuntu2 is to be installed  libqtgui4:i386 : Depends: libqt4-declarative:i386 (= 4:4.8.7+dfsg-5ubuntu2) but it is not going to be installed                   Depends: libqtcore4:i386 (= 4:4.8.7+dfsg-5ubuntu2) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1 is to be installed                   Depends: libtiff5:i386 (>= 4.0.3) but it is not going to be installed                   Depends: libxext6:i386 but it is not going to be installed                   Depends: libxi6:i386 (>= 2:1.2.99.4) but it is not going to be installed                   Depends: libxrender1:i386 but it is not going to be installed                   Recommends: libcups2:i386 but it is not going to be installed                   Recommends: qt-at-spi:i386 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   I tried apt-get -f install to correct the problem, but among the results I got this error message:   Errors were encountered while processing: /var/cache/apt/archives/libqtcore4_4%3a4.8.7+dfsg-5ubuntu2_i386.deb  E: Sub-process /usr/bin/dpkg returned an error code (1)


What does the expression     [x] for the money   mean?  I remember hearing the topic title in a rap song (can’t remember which, might be Eminem), and there seem to be movies named after this pattern:  with Al Pacino and , an upcoming comedy.   does not seem to know this expression, neither does  give a proper translation.  What does it mean and where does it come from?


why is standard deviation a biased estimator

In this post: , I am having difficulty understanding some of the steps. We have : (a) $s^2=\frac{1}{n-1}\sum_{i=1}^{\infty}(x_i-x\bar)^2$ and further down, (b) $E(s)= \sqrt\frac{\sigma^2}{n-1} E(\sqrt\frac{s^2(n-1)}{\sigma^2})$ I understand the 2nd and 3rd lines, but how do we get from (a) to (b)? (My knowledge of maths is basic)


Proof for a general integer solution of the equation 𝑎𝑥+𝑏𝑦=𝑁

Given $a,b\in\mathbb{Z}-\{0\}$ and $N\in\mathbb{Z}$, it is easy to show that if $x_0,y_0\in\mathbb{Z}$ are a particular solution to $ax+by=N$, then $x=x_0+\frac{b}{d}t$ and $y=y_0-\frac{a}{d}t$, where $d=gcd(a,b)$ and $t\in\mathbb{Z}$, are also solution to $ax+by=N$. But may I ask how to proof that they are actually the general solution to $ax+by=N$ if we restrict the solutions inside $\mathbb{Z}$? (i.e. all integer solutions have been counted) Thanks!


I was wondering if, by making some changes, e^x \overline{e^x} would produce something that actually aligns the exponents horizontally (currently the exponent under overline is a bit lower than the other one). My intuition is that \phantom might help, but I'm not sure how to use it with a command that requires an argument. Thanks in advance!


If $x^m=e$ has at most $m$ solutions for any $m\in \mathbb{N}$, then $G$ is cyclic

Fraleigh(7th ed) Sec10, Ex47. Let $G$ be a finite group. Show that if for each positive integer $m$ the number of solutions $x$ of the equation $x^m=e$ in $G$ is at most $m$, then $G$ is cyclic.   I tried it a few hours but I couldn't solve it. So I read the solution. But I narrowly understood the solution, and it's still unclear to me. How can I solve it?


Centering two subfigures with relative to the page

I am attempting to center two subfigures relative to the page. However due to \setlength\oddsidemargin{15mm}, the figures are slightly shifted to the right. I have uploaded the current output in the first output below. The second figure is the output I wanted. Thank you for your help.


I'm wondering how to achieve a neon-light type effect. For example, in :    Or in :    Is that a Bloom Effect? Or what techniques would I have to look for?


Sharing internet from PC (reverse-tethering) with hotspot mode

I have a HTC One V which runs the default HTC-supplied Android 4.0, not rooted. I occasionally come across situations where I've got a dialup (or non-GSM mobile internet) or other non-wireless network and wireless would be really useful.  Can I connect my phone to a computer on the internet through USB with USB passthrough - , then share that through ?


Is adjusting p-values in a multiple regression for multiple comparisons a good idea?

Lets assume you are a social science researcher/econometrician trying to find relevant predictors of demand for a service. You have 2 outcome/dependent variables describing the demand (using the service yes/no, and the number of occasions). You have 10 predictor/independent variables that could theoretically explain the demand (e.g., age, sex, income, price, race, etc). Running two separate  multiple regressions will yield 20 coefficients estimations and their p-values. With enough independent variables in your regressions you would sooner or later find at least one variable with a statistically significant correlation between the dependent and independent variables.   My question: is it a good idea to correct the p-values for multiple tests if I want to include all independent variables in the regression? Any references to prior work are much appreciated.


What is "SysWOW64" and how does it work?  Are SysWOW64 and System32 both used/loaded into RAM during the Windows 7 boot?


I try to use two texture in the same material.This material is for a jacket, and one texture containing the default leather material texture, and the other someting like a decorative stripes. My question is, how to blend the two textures together in the same output. I tried the "Mix" node with not too much success.


I have an ec2 instance and I'm trying to update all packages.  But the problem is when I execute "yum update" it shows the message:  Transaction Check Error:   file /usr/lib64/perl5/vendor_perl/Cwd.pm conflicts between attempted installs of perl-Cwd-2.21-1.2.el6.rf.x86_64 and perl-PathTools-3.40-3.4.amzn1.x86_64   file /usr/lib64/perl5/vendor_perl/auto/Cwd/Cwd.so conflicts between attempted installs of perl-Cwd-2.21-1.2.el6.rf.x86_64 and perl-PathTools-3.40-3.4.amzn1.x86_64   file /usr/share/man/man3/Cwd.3pm.gz conflicts between attempted installs of perl-Cwd-2.21-1.2.el6.rf.x86_64 and perl-PathTools-3.40-3.4.amzn1.x86_64   My Linux version is: 3.4.48-45.46.amzn1.x86_64 Red Hat 4.6.3-2  I tried to exclude "perl" from the updates, but the problem is that nginx need this perl update.  Any help how to handle this? Thanks in advance!


Tag wildcard search compiles into an incorrect search

Suppose I search with the following query:     [c#] [regex] [string*]   I would expect the results to be: any question tagged  and , as well as any tag beginning with 'string'.  However, the  turns into a giant block of or statements, and the results don't necessarily include  or . Those two tags are added onto the end, and I wonder if it ends up returning any string* tag, but only those  questions which are also tagged  .    Could this be fixed, so that a search like this will behave as expected, and include only questions with the wildcarded tags if they also match the other tags in the search query?


I want my part/section title to have underlined and be bald and increase its size. I can't find how to make the wanted setting stay as my default. How can I do this?


Is upvoting duplicate questions really following the guidelines of the all mighty alt text?     The question shows research effort; it is useful and clear   I raise this question after recently receiving this comment on a  question.     @FreshPrinceOfSO Then close-vote on that basis, please. At the same time, there's nothing wrong with up-voting a question that has already been asked. – Jonathan Sampson   I don't believe the question shows research effort because the OP would have discovered the duplicate questions. Further, I don't think it's useful being a duplicate. Given these two criteria, it seems like the question merits a downvote and a close.   In my opinion, upvoting the question just raises the question to be "valid," which I don't feel supports the principle of voting up.     Voting up is how the community indicates which questions and answers are most useful and appropriate.   ... and it should be discouraged.


Is there any PPA or repository available to install Firefox developer edition (stable and beta versions) in Ubuntu 16.04 ?


Is the following statement true ? If $L$ is a decidable language and $L' \subseteq \; L$, then $L'$ is also decidable ? Prove your answer is correct  I can't figure out this question. Any tips ?


Has this Force superpower been shown before in Star Wars?

In The Mandalorian Chapter 7: The Reckoning,      baby Yoda was shown to completely heal a wound using The Force (the final result was like the wound was never there). He even neutralized a strong poison in the system.   I didn't know that a force sensitive was capable of this. Has this Force superpower been shown before in the entire Star Wars universe (including Legends)?


I have a string like this: Monday April 27 2020, 5:14pm And I want to convert it to date time in python to become: 24-Apr-2020 5:14pm Would python be able to do that?


Effect of introducing magnetic charge on use of vector potential

It is well known that Maxwell equations can be made symmetric w.r.t. $E$ and $B$ by introducing non-zero magnetic charge density/flux.  In this case we have $div B = \rho_m$, where $\rho_m$ is a magnetic charge density.  But this means that $B$ cannot be expressed as the curl of vector potential anymore.  Does it mean that it is impossible to develop electrodynamics of non-zero electric and magnetic charges in terms of vector and scalar potentials? What happens to $U(1)$ gauge invariance then?  P.S.: I know that for the point-like magnetic charge vector potential can still be introduced, but not in the entire space. My question is related to non point-like magnetic charge densities.


New equation of function rotated 180 degrees?

Consider the graph of  If the equation was rotated 180 degrees around the point   what would the new equation be? I tried to flip it using  but I can't get the exact slope right at the point of rotation. What exactly do I need to do?


What I want to know is the relationship that lubricants have with viscosity. Is viscosity the cause of lubrication? The higher the viscosity, the more lubrication? And why not water instead of oil?


Gene located on Which strand? Want reference.

Update: Initially my question (below) was appropriately marked as duplicate/overlapping  with two other questions;  and  ; among them a specific part of an  of the second duplicate/overlap ; appropriately answer my question.      The convention is that in indicating any sequence feature† in a protein-coding gene on double-stranded DNA, a single strand‡ is represented — the one from which the amino sequence could be read using the genetic code (conceptually, with T substituted for U). Like any other nucleic acid sequence§, it is always written in the 5ʹ to 3ʹ direction in the same manner as the mRNA transcribed from it, without this being explicitly stated.    But what it does not mention (but I'm still looking for); is whether there is a standard and universal documentation for this particular convention (IUPAC/ IUBMB/ ICBN/ ICZN/ anything such); because "conventions" are human-made rules, and without "declared, universally followed, and accessible" documentation; the conventions does not make a sense.  It rather feels like a rumor or viral phenomenon.  I visited the  and  website home pages but I could not locate the documentation from there. Also google keyword search did not found the helpful.   So I specify my question that I want to get the standard/ official source of this convention. I would be highly grateful if anyone kindly mention the source hyperlink.    My Initial Question   I'm stuck at a very basic convention on notation on reading Gene sequence. *Specially when a  book (or question paper or anything) does not mention whether a  nucleic acid (usually DNA), uses a single stranded DNA  The problem appears because similar region of the 2 opposite strands of a DNA can contain different gene, i.e.      (So it is possible that if we note a stretch from gene-1 with its complementary sequence, that complementary sequence could be confused with gene-2.)   In some cases, a sequence to a stretch of nucleic acid, indeed mean the sequence directly.   For example; In the wikipedia  about  ()   the 5'to 3'Left to Right indicates the sequence of the template strand directly whereas   But at the more and more "interior chapters" I've seen a rather complicated and indirect notation (although I could not found  clear mention of a convention anywhere in books or web)... when they mean a sequence of a stretch of a gene (or a regulatory sequence), they writes the "nontemplate" or "sense-strand" sequence of the respective gene.   In the Wikipedia  on  ();     it must be a sequence from the nontemplate strand because if it was the template strand,  the "Promoter" location on the "template" strand must be on 3' side otherwise RNA polymerase would not be able to synthesize the nontemplate strand mRNA strand from 5' to 3' time-order. But it would become impossible to infer for me if the given sequence lacked labelling for relative locations of promoters and structural genes.   Now my question is If an article  provides me a single stranded  "Gene Sequence"; How can I infer it is directly the sequence of the mentioned gene stretch or it is the complementary ("sense") strand of the gene? What is the convention about it?


contour integral for $\int_0^\infty\frac{\ln x}{x^2+a^2}dx$

Prove using contour integration that $$\displaystyle\int_0^\infty \frac{\ln x}{x^2+a^2}dx=\frac{\pi}{2a}\ln a$$   I used the substitution $x=e^t$ to transform the integral to $$\int_{-\infty}^\infty \frac{te^t}{e^{2t}+a^2}dt$$ Now it is easier for integrands involving exponential terms using rectangular contour in upper half plane, and I have successfully evaluated the integral by this method. But without transforming, if I require to evaluate the integral directly, the $\ln$ term gives a branch point around $x=0$ and a branch cut along positive $x$-axis. So I chose $\displaystyle f(z)=\frac{(\ln z)^2}{z^2+a^2}$ and a contour accordingly as below :   Now integral around smaller contour and outer contour is $0$ and the poles are $ia$ and $-ia$. So the integral becomes $$\int_0^\infty \frac{(\ln x)^2}{x^2+a^2}dx+\int_\infty^0 \frac{(\ln x+2i\pi)^2}{x^2+a^2}dx=2\pi i\bigg(\frac{\ln^2(ia)}{2ia}+\frac{\ln^2(-ia)}{-2ia}\bigg)=\frac{2i\pi^2\ln a}{a} \\ \implies -4i\pi\int_0^\infty \frac{\ln x}{x^2+a^2}dx+4\pi^2\int_0^\infty \frac{dx}{x^2+a^2}=\frac{2i\pi^2\ln a}{a} \\ \implies \int_0^\infty \frac{\ln x}{x^2+a^2}dx=-\frac{\pi}{2a}\ln a \ \ \ \ \text{and} \ \ \ \ \ \int_0^\infty \frac{dx}{x^2+a^2}=0$$ which is absurd. Where am I going wrong? Any help is appreciated.


Has anyone figured out a way to toggle the function keys on and off via key board shortcut on a macbook? Even remap the fn key to work more like the caps lock where you do not need to hold it down. It would be really nice to just remap the caps lock to toggle function keys, instead of using it for capitalizing.


Is a character with the Polearm Master and Sentinel feats unbeatable in a duel?

One of the benefits of the Polearm Master feat (PHB, p. 168) is:     While you are wielding a glaive, halberd, pike, or quarterstaff, other creatures provoke an opportunity attack from you when they enter your reach.   One of the benefits of the Sentinel feat (PHB, p. 169-170) is:     When you hit a creature with an opportunity attack, the creature’s speed becomes 0 for the rest of the turn.   So if an enemy aproaches, you hit it with the opportunity attack from Polearm Master, and because of Sentinel it is now stopped 10 feet away from you. They can not hit you, you hit them on your turn and move back 5 feet. Repeat at will.  Is this unbeatable in a duel? Am I not seeing something?


Can anybody help me to prove that for all $b,c,d  \in \mathbb{N}$, $$\sum_{0 \leq j \leq d} (-1)^{j} {c + d \choose j} {b + d  - j \choose b} = {b - c \choose d}$$ I tried to do it by induction in $d$, but I think it was a bad idea. Another thing I tried to use is the fact that $${m \choose n} = \frac{1}{2 \pi i} \oint \frac{(1 + w)^{m}}{w^{n+1}}dw$$ But again, I'm stuck. I just rewritte each term by this integral but I don't know how I can proceed


From   tmp=${string//"$separator"/$'\2'}    What does $ in $'\2' mean?   Is $'\2' a parameter expansion?  Thanks.


Keyboard shortcut to hide/show Explorer navigation

Does Windows Explorer in Windows 7 have a keyboard shortcut that hides or shows the navigation pane?   It's pretty annoying each time to click Organize|Layout|Navigation pane...


How do I make a if-else statement with the string argument ( that is a string input from the user)?

I am writing a program that asks the user to input his name, address and phone number. When the data is entered the program shall print the data and ask the user to verify the data by entering YES or NO. This process shall be repeated until the user is satisfied and answers YES to the question.  Now in my case I may have put a if-else statement inside the while loop in an inappropriate way. That's why it's not working as it is expected to be. How can I solve this?  Also I only have tried the promt asking to enter the users name. But if I want to add more prompt with different question in the similiar way then how could I do that?  Code:  package userinfo;     import java.util.Scanner;  public class UserInfo {      public static void main(String[] args) {             String name;         String yes = "YES";         String no = "NO";             Scanner userInput = new Scanner(System.in);          System.out.println("Enter your name:");         name = userInput.next();         System.out.println("Please varify your name by typing YES or NO");          while (true) {             String input = userInput.next();             if (input == yes) {                 System.out.println("Your name is: " + name);             }             if (input == no) {                 System.out.println("Enter your name again");              } else {                 System.out.println("Invalid input! Enter value again:");                 break;             }             }         }     }


Where is axiom of regularity actually used? Why is it important? Are there some proofs, which are substantially simpler thanks to this axiom?   This question was to some extent provoked by 's : Would regularity ever be used in a formal development of, say, number theory or real analysis? I can't imagine it.  I have to admit that I do not know other use of this axiom than the proof that every set has  in cumulative hierarchy, and a few easy consequences of this axiom, which are mentioned in .  I remember seeing an introductory book in axiomatic set theory, which did not even mention this axiom. (And that book went through plenty of stuff, such as introducing ordinals, transfinite induction, construction of natural numbers.)  Wikipedia article on  links to Metamath page for  and says: Scroll to the bottom to see how few Metamath theorems invoke this axiom.  Based on the above, it seems that quite a lot of stuff can be done without this axiom.  Of course, it's quite possible that this axiom becomes important in some areas of set theory which are not familiar to me, such as forcing or working without Axiom of Choice. (It might be difficult to define cardinality without AC and regularity, as mentioned .) But even if the this axiom is important only for some advanced stuff - which I will probably never get to - I'd be glad to know that.


I am trying to understand why the following piece of code produces the output of 7.  int main() {     int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};     int b[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};     int c = 5;     int *p = a;      printf("%d", (c[b])[p]);      return 0; }


How is red shifting explained with quantum mechanics?

Light travels as waves through space, and since space is expanding, the light gets stretched out. This is the explanation for red shifting I learned before.  Now I know some more and that explanation isn't good enough.   The longer wavelength light that would result from red shifting has lower energy. Total energy in the system must be conserved, so the amplitude of the light must be higher after red shifting. As per quantum mechanics, light exists as discrete photons. The loss of energy must be instant, and at the same time, more photons must be created so the total energy is conserved.   So this photon "splitting" explanation sounds okay, but it still seems problematic. Photons can split (), but a photon cannot split on its own in a vacuum, as far as I know.  Perhaps some assumption I made here is wrong.  What is the explanation for red shifting that agrees with quantum mechanics?    I'm not very familiar with relativity, I may have missed some phenomenon in relativity that explains all this.


I've started by saying $a_n$=$1+a+a^2+...+a^n$=$\frac{1-a^{n+1}}{1-a}$  Now I think I need to do: $lim_{n\to \infty}$$\frac{1-a^{n+1}}{1-a}$  Should let $a=2$ and then solve the limit, then write a proof for it using $\epsilon$?  I've also considered that $1+a+a^2+...+a^n$=$1+a^n$. But I'm not sure what to do with this information.  I'd like to understand how to start this problem properly.


What was the exact purpose of Dooku with giving this information?

In Star Wars: Attacks of the Clones, why did Dooku tell Obi-wan about the Senate being under the control of a Sith Lord? Was it because Dooku had a back-stab plan for Sidious or just because Sidious had wanted him to do it?


Statement: Let $A$, $B$, and $C$ be sets. Then $(A \setminus B) \cap (A \setminus C) = A \setminus (B \cup C)$.   Proof: Let $(x,y) \in ( A \setminus B) \cap (A \setminus C)$, where $ x \in A$ and $y \in (B \cap C$ by definition of intersection. So, $(x,y) \in (A \setminus B \cap C)$ which show that $(A \setminus C) \cap (A \setminus C) \subseteq A \setminus (A \cup C)$. \ Now let $(x,y) \in A \setminus(B \cup C)$, where $ x \in A $. So, $ (x,y) \in (A \setminus B) \cap (A \setminus C)$ by definition of intersection, which shows that $A \setminus (B \cup C) \subseteq (A \setminus B) \cap (A \setminus C)$. Therefore, by the Axiom Set of Equality we know that $(A \setminus B) \cap (A \setminus C) = A \setminus (B \cup C)$ .   Am I on the right track to proving that this is a true statement or is there a better way to show this?


Does a correlation matrix of two variables always have the same eigenvectors?

I perform Principal Component Analysis using two variables that are standardized. This is done by applying a SVD on the correlation matrix of the concerned variates. However, the SVD gives me the same eigenvector (weights) irrespective of what the two variables are. It's always [.70710678, .70710678]. I find this strange. Of course, the eigenvalues differ.  My question is: How to interpret this?    PS. I wanted to conduct a total least squares regression on two variables. My statistical programme does not provide TLS, but TLS luckily equals Principal Component Analysis, as far as I know. Hence my question. The question is not about TLS directly, but why I get the same eigenvectors irrespective of which variables I use (as long as they are exactly 2).


How would I alter some rectangles to follow an existing curve

I have the following:  I created the curved side using the Spin tool.  I would like to now modify the two rectangles you can see on either side of it so that they follow around that curve, but am not sure how to achieve that.  Any help would be greatly appreciated.


When I choose Select > Modify > Border and select a 1px border - the border I get is anti-aliased, hence if I fill my selection a 3px border is affected.  Is there a way to select a 1px aliased border?


I have a problem: today at work I was told that tomorrow afternoon I have to give my pc back and take a new one just arrived. It could be a good new, but I'm a developer and I use a lot of different software to work (Visual Studio, Delphi, Eclipse, Android, Apache, MySql, etc...) and I can't think about starting to reinstall and configure everything... usually it means one week lost... and some data usually get lost too with those migrations... So, is there any way I can use my current disk as system disk on new pc? I'm afraid because motherboard and cpu are completely different...  Is there something I could do to prepare "migration"? Any kind of Sysprep command so when Windows Seven boots start recognizing new devices without getting lost with previous ones?  UPDATE: Perhaps I've just found a suitable solution here:


Unresolved External Symbol (LNK2001) when calling function with a function pointer as an argument

I created a class, ProcessQueue:  //ProcessQueue.h template<class T> class ProcessQueue{ public:     void addTask(T param);     void clearQueue();     void addSetup(void (*setup)());     void addProcess(void (*process)(T));     void addCleanup(void (*cleanup)());     void setup();     void finish(); private:     //Some private fields and functions that aren't relevant }   addSetup and addCleanup add functions that are performed when setup and finish are called (The function pointers are then stored in a vector, but that shouldn't matter). addProcess should accept a void function that inputs a variable of type T, and addTask adds a variable of type T to a processing queue.  When clearQueue is called, the class iterates over each T that has been added and calls the various "process" functions that have been added to the ProcessQueue.  In another file (kernel.cu), I use a ProcessQueue to process the results of a computation:  (Note that this is part of the host code of the cu file, so it is regular C++. runRecord is simply a c-style struct)  //kernel.cu ProcessQueue<runRecord> queue;  #ifdef PRINTTOFILE queue.addSetup(setupPrintToFile); queue.addProcess(processPrintToFile); queue.addCleanup(cleanupPrintToFile); #endif  #ifdef PRINTRESULTS queue.addProcess(printRecord); #endif  queue.setup();  //Do some computation //Add the results to the ProcessQueue  queue.clearQueue(); queue.finish();   Some other function declarations that may be relevant:  //Various .h files void setupPrintToFile(); void processPrintToFile(runRecord r); void cleanupPrintToFile(); void printRecord(runRecord rec);   When I compile this, I get a few error messages:  1>kernel.cu.obj : error LNK2001: unresolved external symbol "public: void __thiscall ProcessQueue<struct runRecord>::addTask(struct runRecord)" (?addTask@?$ProcessQueue@UrunRecord@@@@QAEXUrunRecord@@@Z) 1>kernel.cu.obj : error LNK2001: unresolved external symbol "public: void __thiscall ProcessQueue<struct runRecord>::clearQueue(void)" (?clearQueue@?$ProcessQueue@UrunRecord@@@@QAEXXZ) 1>kernel.cu.obj : error LNK2001: unresolved external symbol "public: void __thiscall ProcessQueue<struct runRecord>::addSetup(void (__cdecl*)(void))" (?addSetup@?$ProcessQueue@UrunRecord@@@@QAEXP6AXXZ@Z) 1>kernel.cu.obj : error LNK2001: unresolved external symbol "public: void __thiscall ProcessQueue<struct runRecord>::addProcess(void (__cdecl*)(struct runRecord))" (?addProcess@?$ProcessQueue@UrunRecord@@@@QAEXP6AXUrunRecord@@@Z@Z) 1>kernel.cu.obj : error LNK2001: unresolved external symbol "public: void __thiscall ProcessQueue<struct runRecord>::addCleanup(void (__cdecl*)(void))" (?addCleanup@?$ProcessQueue@UrunRecord@@@@QAEXP6AXXZ@Z) 1>kernel.cu.obj : error LNK2001: unresolved external symbol "public: void __thiscall ProcessQueue<struct runRecord>::finish(void)" (?finish@?$ProcessQueue@UrunRecord@@@@QAEXXZ) fatal error LNK1120: 6 unresolved externals   I'm not too sure where the problem is. I've tried changing the template and function declarations, but it doesn't seem to help.  The compiler is nvcc v7.5.


Restrict Access to certain objects from Global Search

I want to be able to restrict access to some of the objects from the global search.  Is this possible?


Is there a different way to define multiplication on Complex numbers?

Let $\mathbb{C}=\{a+bi | a,b \in \mathbb{R}\}$, denote the set of complex numbers, where $i$ has the property that it's square is $-1$.   We define the two binary operation, $+, *$ on this set $\mathbb{C}$, namely addition and multiplication of complex numbers as follows $$(a+bi)+(c+di)=(a+c)+(b+d)i$$ and  $$(a+bi)*(c+di)=(ac-bd)+(ad+bc)i$$  We observe that $(\mathbb{C},+,*)$ forms a mathematical object called field.  Note that $*$ has "usual" properties like distributivity, associativity and commutativity.  I have the following Question, Are there many ways of defining binary operation $*$ (or call it multiplication of complex number ), such that these above mentioned properties are satisfied.


Why if $(\mathbf B, \cdot)$ is a finite order group with prime order then $(\mathbf B, \cdot)$ is cyclic?

In the notes I'm studying from ( again =) ) I read:   If $(\mathbf B, \cdot)$ is a finite order group with prime order then $(\mathbf B, \cdot)$ is cyclic  Could someone give me a justification for this?


Why did the White Walkers not kill this person?

In the very first episode we are shown 3 nights watch men going beyond the wall. It is in this very first set of scenes that we are shown White Walkers, first they kill the man who seems to be in charge and give chase the other.  And when he stops to catch his breath, a White Walker cuts his head off from behind and throw it at the 3rd mans feet.                                  At this point there is no way he could have escaped unless the White Walkers just let him go and further into the episode he captured by Stark men as a deserter from the Nights Watch.  So why didn't the White Walkers kill him?


How does a mature Stack Exchange site get its customized design?

Is there any kind of documentation about how a Stack Exchange site that has left beta is being customized? Is this done by the people starting the new site, or by Stack Exchange itself?


How to highlight sub-matrix / nodes with tikz?

I'm trying to highlight a box of different cells of a matrix that I'm rendering. Currently, this highlights the entire matrix in green. What I would like to do is within that box highlight another series of nodes. For instance, I would like to draw a box / circle / etc around N1, N2, N3, and N4. Is there a relatively pain free way of going about doing this?  \begin{tikzpicture}[    inner/.style={circle,draw=blue!50,fill=blue!20,thick,inner sep=3pt},    outer/.style={draw=green,fill=green!20,thick,inner sep=10pt, column sep=1cm, row sep=1cm} ]   \matrix (A) [matrix of nodes, outer, nodes={inner}]{        &    & N5 & N9  \\        & N2 & N6 & N10 \\     N1 & N3 & N7 & N11 \\        & N4 & N8 &     \\    };   EDIT: I was looking for a solution that could both enclose and highlight a subset of nodes, which makes it differ from the duplicate questions a bit.


How to select the video strips at the playhead through python?

I need to select the strips at the playhead through python, so I can do different things, like delete and close the gap. I've posted an image to show that the active clip might be somewhere else, and there might be multiple strips where the playhead is. I know how to get the current frame bpy.context.scene.frame_current and I can find bpy.context.scene.active_clip but i can't see any options to select the playhead strips.


The snippet below seems very very very strange to me. The result should be -3.6.. Some rounding failure or have i missed something here?  Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AM D64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> -5.0+float(14)*0.1 -3.5999999999999996 >>>


Delete Associated Media Upon Page Deletion

Note  Use at your own risk, it is buggy and I have run across a couple instances where it would delete ALL attachments. Unsure why.  Is it possible to delete media associated with a page when that page is deleted? I know in the Insert Media page you can filter by images "Uploaded to this page" so could I get a list of those and just delete them as the page is being deleted?   Right now I'm playing around with hooking into Delete Post. Right now... it does nothing but I think I'm getting somewhere with it.  function del_post_media($pid) {     $query = "DELETE FROM wp_postmeta             WHERE ".$pid." IN             (             SELECT id             FROM wp_posts             WHERE post_type = 'attachment'             )";     global $wpdb;     if ($wpdb->get_var($wpdb->prepare($query))) {         return $wpdb->query($wpdb->prepare($query));     }     return true; } add_action('delete_post', 'del_post_media');


What are the alternative explanations for the indirect evidence of gravitational waves?

Even though the consensus is that gravitational waves almost definitely exist, it has been well documented that there is no direct evidence.  My question; what are the alternatives to gravitational waves for explaining the evidence we have?  I believe indirect evidence for their existence, such as the 'Hulse-Taylor pulsar', is either too weak for us to detect sufficiently or there is too much 'background noise', so is the only other explanation that these results are a mathematical anomaly?  Also, how and why has the validity of the evidence for gravitational waves changed over time?  i.e. Have gravitational waves always been considered the most valid explanation for the results of the 'indirect evidence'?  Are there any results which retroactively have been attributed to gravitational waves?


While inserting a DVD (which plays well in a DVD player) into my laptop, a message appears, requesting me to install gstreamer1.0-plugins-bad.  What is this? How can I solve this problem and watch my DVD?


Show that:  $$\left(\frac 3p\right)= \begin{cases} p \equiv 1, 11 \pmod {12} \\ p\equiv 5, 7 \pmod {12} \end{cases}$$  where $\left(\frac 3p\right)$ is Legendre symbol  I have done this for $\left(\frac {-3}p\right)$ and reach $\left(\frac 3p\right) = 1$ if $p=1$ and $\left(\frac 3p\right)= -1$ if $p=2$. in the case where $p=1$ the next step was to see that $p=3k+1=6l+1$ so then $p=12j+1$ and $p=12j+11$ give $\left(\frac {-3}p\right)=1$.   I'm very confused about all of this so if someone could help it'd be greatly appreciated. it would probably be better to start from the beginning with $\left(\frac 3p\right)$ or to  use the same logic used to find $\left(\frac 2p\right)$ and Gauss lemma


I have asked this question in the physics.stackexchange.com forum too - sorry if that is a no-no; I feel it straddles the boundary between the two, and similar questions have been answered rather vaguely in the past, IMO. And perhaps that isn't surprising, since I am looking for the maths that lead up to quantum mechanics rather than QM itself, it that makes sense. So, if you wil forgive:  I come from a mathematical background, but would really like to understand the mathematical reasoning behind QM. I have been through a number of books about the subject already, but they all descend into matrix groups and coordinate representations, and what I really want to find is a pure mathematical treatment of the subject - Lie groups and Lie algebra are generally much cleaner when you don't have to feel your way through a mist of matrix elements, differential geometry even more so. As an example of a style I find very helpful, look for Frederic Schuller's lectures on youtube (eg ).   So, bearing all this in mind, are there any good, abstract, mathematical treatments of the foundations of QM, which go into the reasoning and intuition behind things like quantisation, Noether's Theorems and similar, and which throughout apply rigorous definitions and proofs (which I find actually helps rather than hinders intuition)?    OK, I have now taken some time to check out the other question that is allegedly an exact duplicate, but I don't think so. I'm not looking for an introduction to QM, I am looking for a through, mathematical treatment of the foundations of QM; take a subject like quantization - so far, what I have found introduces it as a ready-made procedure into which you plug a certain equation and out of it comes, magically, 'QM'. I suppose I could go and find Paul Dirac's doctoral thesis, but I had hoped for a modern treatment; I looked at Amazon for the books mentioned in the comments, and they are expensive, I think, so I'd rather be sure they have what I'm looking for.


How to determine which `Foos` have no associated `Bars`

I want to find all Foos that do not have any associated Bars.  Here's the query I'm using.  It's returning no records:  select * from foos f where f.id not in(select b.foo_id from bars b);   However, I know that the foo with id = 1583 has no associated Bars, so there should be at least one result in my previous query.  Can somebody point out a mistake I am making?  Thanks.


How to simulate data that satisfy specific constraints such as having specific mean and standard deviation?

This question is motivated by . But I imagine that it would also be useful in teaching contexts where you want to create a dataset that exactly mirrors an existing published dataset.  I know how to generate random data from a given distribution. So for example, if I read about the results of a study that had:   a mean of 102, a standard deviation of 5.2 , and  a sample size of 72.   I could generate similar data using rnorm in R. For example,   set.seed(1234) x <- rnorm(n=72, mean=102, sd=5.2)   Of course the mean and SD would not be exactly equal to 102 and 5.2 respectively:  round(c(n=length(x), mean=mean(x), sd=sd(x)), 2) ##     n   mean     sd  ## 72.00 100.58   5.25    In general I'm interested in how to simulate data that satisfies a set of constraints. In the above case, the constaints are sample size, mean, and standard deviation. In other cases, there might be additional constraints. For example,    a minimum and a maximum in either the data or the underlying variable might be known. the variable might be known to take on only integer values or only non-negative values. the data might include multiple variables with known inter-correlations.   Questions   In general, how can I simulate data that exactly satisfies a set of constraints? Are there articles written about this? Are there any programs in R that do this? For the sake of example, how could and should I simulate a variable so that it has a specific mean and sd?


Probability of a repeatedly right answer

Suppose you forgot where the airport is on an island, north or south. You will ask people where to go. Two third of the people on the island are tourists, they give the right answer with a chance of $\frac{3}{4}$. The local inhabitants $\frac{1}{3}$ of the people always give the wrong answer. When you repeatedly ask where the airport is to the same person, the answers are independent.   Now I am investigating how the probability that an answer is right depends on the frequency of the question.   For example, the first time I will ask a random passer-by where the airport is, the probability that his answer (i.e. "south") is correct is: \begin{align} P(R)= \frac{2}{3} \cdot \frac{3}{4} + \frac{1}{3} \cdot 0 = \frac{1}{2}. \end{align} How does this change when I again ask the same question to this same person? What is the probability that the answer (i.e. "south") is again correct?  Well, since the events are independent. I will say that again the answer (i.e. "south") is correct will be: \begin{align} P(R)= \frac{2}{3} \cdot \frac{3}{4} + \frac{1}{3} \cdot 0 = \frac{1}{2}. \end{align}  Is this supposition true?  Furthermore, what can I say about the fourth time that I again ask this same person the same question, what is the probability that this answer (i.e. "south") is the correct answer?


One Binomial Equation $\sum_{i=0}^{z} {n_1 \choose i}{n_2 \choose z-i} = {n_1+n_2 \choose z}$

I saw one proof using this formula: $$ \sum_{i=0}^{z} {n_1 \choose i}{n_2 \choose z-i} = {n_1+n_2 \choose z}$$ Can anyone help explain it, thank you!


If $G$ is abelian, then the set of all $g \in G$ such that $g = g^{-1}$ is a subgroup of $G$

Prove that if $G$ is abelian then the set $H$ of all elements of $G$ that are their own inverses is a subgroup of $G$.   Naturally in an abelian group, $ab = ba$ for $a, b \in G$, however I'm not sure how to show the set elements that are their own inverses is a subgroup of $G$ using arbitrary elements.


Transfer Blend files into a different location: How to avoid missing files/textures/etc?

I need to reorganise my blender folder and move it to another PC and I am afraid that i might lose some linked texture/image sequences/etc that are used in the .blend files. What should i do to avoid that?  Pack all data into the blend files Make all paths relative  ? thank you for your help.


What are some good introductions to philosophy?

I've been searching the questions posed here, and don't seem to find one that gives the answers I am looking for. I've proposed to start a  on meta but no one proposed anything, so I feel I must ask this question: What are some books generally regarded as good for a general introduction on philosophy? By this I mean good books that can introduce you to philosophy in general and throughout the times, not to some philosophy or period in particular.   almost answers mine, except for the fact that most things proposed there are not books, thus not giving me much options to weigh upon.  regards contemporary philosophy in particular. And  has the same problem as the first one, plus the fact that it asks for layman's terms, which is not what I am looking for.  I've been tempted to buy Will Durant's , but am not sure if it is the best book to get started on philosophy (plus, the book has some mixed reviews). I also checked , which seems to be unanimously good, but has the format of dictionary/encyclopaedia, which is not exactly what I am looking for (at least as a main source).  also seems to be a good introduction regarding how to do philosophy, rather than to its history and ideals (this also interests me, but I'd rather learn about the philosophers and their theories first).   It is also important to point out that I have little notions (or none at all) on philosophy. I would like to read something that covers from classical to contemporary philosophy generally (although I do not know if there is such a book), so that from there I could pick some author, period or branch of philosophy in particular to read further on. So, to sum up, I would like to 'hear' your opinions on what are some books generally regarded as good for a general introduction on philosophy.


Series with radius of convergence 1 that diverges on roots of unity, converges elsewhere on the circle.

I recall from complex analysis a while ago that the series $$\sum_{n=1}^\infty \frac{z^{n!}}{n}$$ has radius of convergence 1, diverges on roots of unity, and converges elsewhere on the circle. It's simple enough to see that it has to diverge on roots of unity: consider $z$ such that $z^k = 1$ for some $k \in \mathbb{N}.$ Plug this into the series and you see that past the $k$'th term, $z^{n!} = (z^k)^m = 1$ for some $m \in \mathbb{N}$; hence, the series becomes harmonic and must diverge.  But I don't recall how to show that the series converges for other values on the circle. If this is simple I'd like just a hint, if it is involved I would prefer a sparse outline of the proof. Thank you!


For the testing code as follow:  #include <stdio.h> int addTen(int x, int b[]) {   b[2] =  x + b[2];   return b[2]; } void main(void) {    int a[3] = {4,5,6};    int i = 2;    printf("%i %i %i \n", a[i], addTen(10,a), a[i]); }   Why is the output is 16, 16, 6? I know that even if the compiler processes the order from right to left like  a[i] <- addTen(10,a) <-a[i]. After calling addTen(10,a), a[i] is already 16 (not 6). So why the output is not 16, 16,16? THANKS!


Sharepoint 2010 - Printing Infopath List Form

I edited the form for a list item in InfoPath, and when I print, I just want to print the form itself.  It seems when I use the browser's print function, it still pulls up some elements from the page and it cuts off the content if it's longer than the popup window. Also, some of the elements of the form are hidden when I print, so that is not a good option.  I have read that others have attempted to create a custom action that resides in the InfoPath Ribbon, but I have yet to find one that works?  Here is an answer for this but we are unfamiliar with Java Script.  Maybe it will give you some direction: what we did in this case was to add a simple Print button (we used Content web part, but you can do whatever). The print button uses JS to cut out only the relevant portion (based on DOM/CSS) and show it in a new window - basically we open the form in a new window and pass a QS parameter, the JS picks it up and cleans the form. Worked well and was very simple to do, just a few lines of javascript  Does anyone have the Java Script code for this?


Is there a point where the value of the function $g$ is greater than the length of the interval?

Prove or disprove.  Suppose that $g$ is a positive real valued function of a real number. If $a < b$ are real numbers, then there is a finite sequence $a = t_0 < t_1 \dots < t_n = b$ of real numbers such that in each interval $[t_k,t_{k+1}]$ there is a point where the value of the function $g$ is greater than the length of the interval.   Unfortunately, I am quite lost. I tried a contradiction proof, but I ran into a snag. Any help would be welcome.


While editing some ad copy, and I was given the sentence, "Defending a lawsuit can be a big cost for your business." (My italics.)  I keep thinking the proper word to use is "expense" rather than "cost" as in: "Defending a lawsuit can be a big expense for your business." But I'm just not sure I'm correct.   Can anyone help with more definitive guidance? Can "cost" and "expense" be used interchangeably in a sentence like this?   Thank you!


According to what I believe is correct, Lily Potter should be the Horcrux, not Harry. When You-Know-Who got to the Potter house, he killed James Potter first. James was trying to protect Lilly and Harry. So, when You-Know-Who killed Lily, it SHOULD have turned back on him because of James' love! That would leave Lily with the scar. So, why didn't she live? (I created an alternate story with this as the logic. So, in my story, James dies, Lily and Harry live. Then, Lily marries Snape, who abuses Harry and Harry grows up with depression, which causes him to have a lack of friends, and he never does anything great, which includes stopping You-Know-Who in his first year. He's back, and he kills Harry, his target in the first place. This gives Lily depression, and she lives an unhappy life while Snape tries to help her through her problems. I kind of see now why it's best that Harry's parents die. But tell me why it didn't happen like this.)


Conditional compilation of documents using command line options for pdflatex

Is it possible to compile two different pdf outputs from the same .tex file?  For example, let's say I have a document main.tex which contains questions for students, and answers only for teachers, which I want to hide from the students. Is it possible to compile the student and teacher versions of the document from the command line with different options?  pdflatex '\documentversion{student}' main -o student.pdf # output is student.pdf pdflatex '\documentversion{teacher}' main -o teacher.pdf # output is teacher.pdf


Single word request: something does not disconfirm the superiority of the most widely used practice

I analysed different nonoperative management practices and all of them showed worse outcomes than surgery. The sentence I am writing:  None of the nonoperative management practices disconfirms the superiority of surgery.  Is "disconfirm" the correct word to use or there are better options?


Suppose I have 30 numbers that vary between 0 and 1.0 and which sum to 1.0.  The mean is obviously 0.033.  A client wants these scaled to lie between 0 and 1.0 but to have a mean of 0.5.  By the way, I'll probably have to do this for any set of numbers (positive, negative, outside the range 0 - 1) so that they lie in the range 0 - 1 and have a mean 0.5.  Any suggestions?


Identifying tags with poorest answer rates on a site?

Is there an existing Stack Exchange Data Explorer (SEDE) query that can take a site as input and display those tags on that site with the highest percentages of unanswered questions?  There would be no need to list all tags at the site, perhaps just the top 50.  If there are multiple tags with their unanswered rate at 100% then they could be secondarily ordered by the number of questions asked.  Tag Name Questions  Unanswered Tag A       27         100%  Tag X        5         100% Tag H      234          99%   I am interested in this to try and identify the tags that are being placed on questions which seem to be a poor fit for our community's ability/inclination to answer them.  I think the results could be interesting, but have no clear idea what those results might be.


I was creating a project in blender 2.8. I unintentionally pressed the 1 button, and now only one of the objects (each object is inside a collection) appears on the screen. All other objects are hidden.  How can I see the collections again? I don't want to loose all the work of the previous hours.  Besides, something as basic as that should have documentation. One hour of search in google, stackoverflow, and the blender 2.8 documentation for terms like "unhide collections" or "show all collections" or "unhide objects" do not return any working solution. This was a basic feature of blender 2.7. What happened?  Obs: Alt+H does nothing.


Cannot login to chat.meta.stackexchange.com; server error when trying to access chat homepage

I just recreated my MSE account after having deleted it a few years ago. Now, I'm trying to log in to Meta Stack Exchange Chat, and whenever I try to do so, it just fails silently and I'm still logged out.  Additionally, in the same browser session that I'm supposedly logged out, I get a server error when accessing the chat homepage or the chat profile page of any user. I don't get any errors when trying to access any of these pages in a private session. I also was able to sign in to Stack Exchange Chat and Stack Overflow Chat without problems, since my accounts on SO and my parent site for SE chat haven't been deleted.  I think it might be because it's trying to sign me in to my old chat profile, which was not deleted, but that is associated to my old, deleted site account, which clash and thus cause it to fail.


How do I completely prevent Windows 10 from downloading updates?

In order to prevent Windows from downloading updates automatically and make my online games lag, I have set my connection as "metered connection". Yet this does not seem to prevent all updates from downloading. I was playing today and noticed that my game is lagging so I knew Windows was downloading an update. I opened "windows update" and indeed I found that "2021-05 Cumulative Update for Windows 10 Version 20H2 for x64-based Systems (KB5003173)" was being downloaded. This is very annoying and unacceptable from Microsoft. How do I prevent all windows updates from downloading?


Which application do I complete for a UK visitor visa for an 8-year old child?

I need to apply for a UK visitor visa for an 8-year old. I see there is only one type of online form available on the UK.gov website. Do I fill out the same form as I did for my own standard visitor visa for my child? I know the visa fees are all the same regardless of age.


Is there a word that describes the phenomenon, often seen on SE sites, where someone says they are asking a question "for a friend", but actually mean themselves?


Advanced search criteria for bounty questions?

All active questions with awarded bounty can be seen in the Featured tab. However, there seems to be way to make searches to the contents of any particular question tab.  I realize that this is pretty much a duplicate of  but it has no clear answer whether there are any plans of supporting bounty searching or not.  So, could there possibly be a hasbounty:1 advanced search criteria?


I am still fighting with mirroring. Doesnt matter if I use Ctrl+M or Mirror modifier. My rivets go only in bad way. I mean I want them mirrored nicely along global axis to fit the opposite site. BUT the rivets are mirroring only along local transformations corresponding their base slope face.  Check the screenshots:    From pictures you can see that rivets want to be mirrored in the face direction they were created at. I used Snapping during transform (magnet icon) on the face and I had applied "Align rotation with the snapping target".   On the other faces it all worked fine, as you can ssee they are mirrored properly. But this last face which is not perpendicular doesn't work for me. What do I wrong?  Thanks !  I must also say, that If I change GLobal transforamtion to local, or gimbal or whatever the result is still the same !  It behaves like it is a bug there?... Please help Karel


PHP simplexml_load_string / SimpleXMLElement: get only arrays as property values?

sorry, but i'm a little bit convused... The properties of the simpleXMLElement, created by the simplexml_load_string method, returns always an one-dimensional array with exactly one . It's no matter if i use one, more or no index - it's all the same result... the only exception is echo:  $xml = simplexml_load_string("<main><name>Alfred</name></main>"); echo $xml->name; //-> Alfred  print_r($xml2->name);  // -> SimpleXMLElement Object ( [0] => Alfred )  print_r($xml2->name[0]);  // -> SimpleXMLElement Object ( [0] => Alfred )  print_r($xml2->name[0][0]);  // -> SimpleXMLElement Object ( [0] => Alfred )  $arr['name'] = $xml2->name; echo(json_encode($arr)); //-> {"name":{"0":"Alfred"}}   And if i use the attribute notation, i get null:  $arr['name'] = $xml2['name']; echo(json_encode($arr)); //-> {"name":null}   But if i use any string method, i get a clear string:  $arr['name'] = $xml2->name.""; echo(json_encode($arr)); //-> {"name":"Alfred"}  $arr['name'] = strtolower($xml2->name); echo(json_encode($arr)); //-> {"name":"alfred"}   So, can me anybody explain this behavior? Should i just use strval() or what's the correct or most beautyfull way to get the property as string?


How do I covert Photoshop swatches to illustrator swatches in CS5?

I want to bring my Photoshop swatch library into Illustrator.   I've tried saving swatches for exchange and then opening them in a New Swatch Library in Illustrator, but the colors become corrupted.


I beat the game. It reset my progress. What gives?

I unlocked several of the (evidently optional) secrets, and I was definitely expecting to be able to go back and continue working toward completing the game.   However, when I finished the game,       I get flown back into the starting chamber   And all of my progress appears to be completely be wiped out and I would have to re-play hundreds of puzzles just to even get back to all of the areas in the game again.   This strikes me as being so completely wrong that I'm wondering if it is a bug or not. Maybe there's a menu option or something that I missed.   At any rate, I'm hoping that somewhere in my Steam cloud progress data there is a way for me to go back so that I can actually continue my game without actually re-playing it.


Why don't you need the Axiom of Choice when constructing the "inverse" of an injection?

Suppose $f:X\rightarrow Y$ is a surjection and you want to show that there exists $g:Y\rightarrow X$ s.t. $f\circ g=\mathrm{id}_Y$. You need the AC to show this.  However, suppose $f$ is a injection and you want show there is $g$ s.t. $g\circ f=\mathrm{id}_X$. Then, according to my textbook, you don't need the AC to show this.  This is counterintuitive to me, because it's like you need a special axiom to claim that an infinite product of big sets is nonempty, while you don't need one to claim that an infinite product of singleton sets is nonempty, which seems smaller than the former.  So why don't you need the AC to show the latter?  EDIT: $X$ should be nonempty.  EDIT 2: I realized (after asking this) that my question mostly concerns whether the AC is needed to say that an infinite product of finite sets is nonempty, and why.


Biber and Biblatex compatibility error after updating all of the packages using MikTex Package manager on Windows 10

I am trying to use biblatex and biber on texmaker. I updated all of the packages as per the post here:  but I still get the following error  INFO - This is Biber 2.12 INFO - Logfile is 'test.blg' INFO - Reading 'test.bcf' ERROR - Error: Found biblatex control file version 3.4, expected version 3.5. This means that your biber (2.12) and biblatex (3.11) versions are incompatible. See compat matrix in biblatex or biber PDF documentation. INFO - ERRORS: 1  Process exited with error(s)   I am a bit puzzled because MikTex Package manager shows that my biblatex version is 3.12 and my biber is 2.12 but the error message states that my biblatex control file version is 3.4! I'm not sure what that means.  I did update package database in MikTex after updating all of the packages.


I have a question about drawing logic circuits. How to draw these dots and two lines from the dot to nand logic gate?    I just need the part of code where you draw simple line dot line with easy solution to connect between logic gates not the whole code generating this image.  \draw (A |- (nand.input 1) %dot% -- (nand.input1);


I stumbled upon an AES implementation that uses boxes with multiples of 2 and 3 for its MixColumns operation. When inspecting the m2 box, I saw that the first line is : 0x00,0x02,0x04,0x06,0x08,0x0A,0x0C,0x0E,0x10,0x12,0x14,0x16,0x18,0x1A,0x1C,0x1E,  So nothing abnormal, but once we reach 0xFE, the next line is : 0x1B,0x19,0x1F,0x1D,0x13,0x11,0x17,0x15,0x0B,0x09,0x0F,0x0D,0x03,0x01,0x07,0x05,  Why does it become so weird ? How were those boxes computed ?


Open terminal and run scripts after system full loaded

I have an ubuntu server which I need to run a lot of commands after the system loaded, for example, I have to run the following commands:  cd /opt/tomcat/bin ./catalina.sh run  cd /.../app node index.js  cd ../another_app node start.js   And I want terminal window opened for some of the commands, for example, I would like to see the logs of the application.  Is this possible in Ubuntu 12.04?


Where does the "inertia" term come from?

Where does the "inertia" term in regard to quadratic forms (e.g. Sylvester's law of inertia) come from?  Thank you!


using image as plane - problem with given texture to glass

I have made building with "Ian Hubert's tutorial: modeling building in blender-lazy tutorial". when I adjusted the glass material to my windows,in front view everything is OK, but when I pan in the viewport the windows are fixed and get appear in incorrect location. how to solve this?


I wanted to see if anyone can confirm the following sentence reads correct, with proper agreement: "Now remember, your sales and marketing teams are the life force that keeps business flowing to you." I believe this is correct because the nearest noun to the verb "keeps" is singular, but I wanted to make sure. I also believe it is okay to say "sales and marketing teams are the life force," turning these two groups into a singular noun, but again, I wanted to be absolutely sure. Combining singular and plural always seems a little uncertain to me. Thank you all in advance!


I would appreciate your help phrasing the following:     I am looking for elements    which/whose/... size/sizes is/are relatively large.


I have a Virtualbox VM, with a .vdi that is taking 49gb in the host machine.  I may have used that much space inside the VM once, but now I'm only really using about 6gb.  I tried this command for virtualbox:  vboxmanage modifyhd /path/to/disk.vdi --compact   It started working 0%..10%.....100%. But nothing really happened, the .vdi was still 49gb.  Then I run 'df -h' in the VM and found this:  root@mypc# df -h Filesystem                  Size  Used Avail Use% Mounted on /dev/mapper/mypc-root       2.0T   38G  1.9T   2% / udev                        1.3G  4.0K  1.3G   1% /dev tmpfs                       502M  784K  501M   1% /run none                        5.0M     0  5.0M   0% /run/lock none                        1.3G  160K  1.3G   1% /run/shm /dev/sda1                   228M   31M  185M  15% /boot /home/someuser/.Private     2.0T   38G  1.9T   2% /home/someuser   I don't know why it is using 38gb there.  I cleaned the Trash but it didn't help.  Any ideas on what else I can do?  The VM has Ubuntu 12, with encrypted LVM and home (that's the .Private dir). The host has Windows 7.  UPDATE  I was able to free space for /dev/sda1, but not for /dev/mapper/mypc-root. Zerofree starts and never ends, though I can tell the disk has stopped writting because it stops doing noise after a minute.  Here's the output for 'df -ih'  root@mypc:/home/someuser# df -ih Filesystem                 Inodes IUsed IFree IUse% Mounted on /dev/mapper/mypc-root        128M  208K  128M    1% / udev                         311K   495  310K    1% /dev tmpfs                        314K   428  314K    1% /run none                         314K     4  314K    1% /run/lock none                         314K     7  314K    1% /run/shm /dev/sda1                    122K   230  122K    1% /boot /home/someuser/.Private      128M  208K  128M    1% /home/someuser


How can I programmatically find out when an accessToken expires with the OAuth Token Refresh Flow

My company is using the , and can get an accessToken and refreshToken fine using this flow.  The problem I'm having is that the responses we receive from Salesforce don't have an exp field in them, so we don't know how long an accessToken lives for.  {      "id":"https://login.salesforce.com/id/00Dx0000000BV7z/005x00000012Q9P",    "issued_at":"1278448384422",    "instance_url":"https://yourInstance.salesforce.com/",    "signature":"SSSbLO/gBhmmyNUvN18ODBDFYHzakxOMgqYtu+hDPsc=",    "access_token":"someValue",    "token_type":"Bearer",    "scope":"id api refresh_token" }   Is there a way to find out how long the accessToken lives for?   We can change our request of course to include different scopes if need be.  Note that I've noticed that  that lets you request this information, but it feels to me like something that should be returned with the accessToken and refreshToken.


Invoke Visualforce JavaScript function from LWC

I have included an LWC component inside a VF page through $Lightning.createComponent. As per my requirement I need to call a javascript function on parent VF page on click of a button on LWC component. my VF page: <apex:page>     <script>         function callMe(someParam) {}                         $Lightning.use("c:myApp", function() {             $Lightning.createComponent("c:myLWCComp",               "LightningComponentid",               function(cmp) {               });         });      </script>    </apex:page>  my LWC Comp: <template>     <lightning-button label="Call Vf Method" onclick={callVfMethod}></lightning-button> </template>  In above example. On click of "Call Vf Method" button on LWC I want to call "callMe" method on parent Visualforce page. Also I want to pass some value as parameter. Please note that I these pages and components are accessed inside community.


Get most common value for each value of another column in SQL

I have a table like this:   Column  | Type | Modifiers  ---------+------+-----------  country | text |   food_id | int  |   eaten   | date |    And for each country, I want to get the food that is eaten most often.  The best I can think of (I'm using postgres) is:  CREATE TEMP TABLE counts AS     SELECT country, food_id, count(*) as count FROM munch GROUP BY country, food_id;  CREATE TEMP TABLE max_counts AS     SELECT country, max(count) as max_count FROM counts GROUP BY country;  SELECT country, max(food_id) FROM counts     WHERE (country, count) IN (SELECT * from max_counts) GROUP BY country;   In that last statement, the GROUP BY and max() are needed to break ties, where two different foods have the same count.  This seems like a lot of work for something conceptually simple.  Is there a more straight forward way to do it?


I've been taught that a child is gender-neutral noun. But in the textbook on linguistics I've been reading, the noun is used as feminine. For example, a sentence in the book goes like this:     The child must also learn many aspects of grammar from her specific linguistic environment.   Is there an explanation for the use of the pronoun her instead of its?


Why doesn't the uncertainty principle contradict the existence of definite-angular momentum states?

We know that for a position variable $x$ and momentum $p$, the uncertainties of the two quantities are bounded by  $$\Delta x \Delta p \gtrsim \hbar$$  Now, this is usually first explained with $x$ being a simple linearly measured position and $p$ being linear momentum.  But it should apply to any good coordinate and its conjugate momentum.  It should, for instance, apply to angle $\phi$ about the $z$ axis, and angular momentum $L_z$:  $$\Delta \phi \Delta L_z \gtrsim \hbar$$  The thing is, $\Delta \phi$ can never be greater than $2\pi$.  I mean, you have to have some value of $\phi$ and $\phi$ only runs from 0 to $2\pi$.  Therefore  $$\Delta L_z \gtrsim \hbar/\Delta \phi \geq \hbar/2\pi$$  But, uh-oh!  This means it is impossible for $\Delta L_z$ to be zero, and we should never be able to have angular momentum states with definite $L_z$ values.  Of course, it doesn't mean that.  But I have never figured out how this is not in contradiction with the Schroedinger eqn. calculations that give us states with definite values of $L_z$.  Can anyone help me out?  One answer I anticipate is that $\phi$ is sort of "abstract" in that if you chose your origin at some other point you will get completely different values of $\phi$ and $L_z$, and ipso facto, usual considerations don't apply.  I don't think this will work, though.  Consider a "quantum bead" sliding around on a rigid circular ring and you get the exact same problem with no ambiguity in $\phi$ or $L_z$.  (Well, there will be some limited ambiguity in $\phi$, but still, there won't be in $L_z$.)


What is an intuitive explanation for how PCA turns from a geometric problem (with distances) to a linear algebra problem (with eigenvectors)?

I've read a lot about PCA, including various tutorials and questions (such as , , , and ).   The geometric problem that PCA is trying to optimize is clear to me: PCA tries to find the first principal component by minimizing the reconstruction (projection) error, which simultaneously maximizes the variance of the projected data.    When I first read that, I immediately thought of something like linear regression; maybe you can solve it using gradient descent if needed.  However, then my mind was blown when I read that the optimization problem is solved by using linear algebra and finding eigenvectors and eigenvalues. I simply do not understand how this use of linear algebra comes into play.  So my question is: How can PCA turn from a geometric optimization problem to a linear algebra problem? Can someone provide an intuitive explanation?  I am not looking for an answer like  that says "When you solve the mathematical problem of PCA, it ends up being equivalent to finding the eigenvalues and eigenvectors of the covariance matrix." Please explain why eigenvectors come out to be the principal components and why the eigenvalues come out to be variance of the data projected onto them  I am a software engineer and not a mathematician, by the way.  Note: the figure above was taken and modified from .


Suppose i have a login page i.e username and password and the website only uses the GET method  to transfer the credentials. But thanks for SSL/TLS certificate to make the communication secure. But In this situation to submit password "Is it really secure using GET with HTTPS?"


How did Rita realized that she has lost the power?

How did Rita realize that she has lost the power?   She said that due to another human's blood in her system she lost the power. But this doesn't explain how she was aware of the fact that she has lost the power. As to realize it you have to die and never wake up.


numpy.linalg.cholesky of correlation matrix with small eigenvalue gives error

When doing a Cholesky decomposition of a covariance matrix with very low eigenvalues, numpy.linalg.cholesky and scipy.linalg.cholesky say the matrix is not positive definite given that it is. I'm guessing this is a numerical precision issue.  In the following code, I create $25$ correlated variables as follows:   Each random variable corresponds to a cell in a $5\times 5$ grid, and the covariance between $X_i$ and $X_j$ is $\sigma^2 e^{-d^2/2\epsilon^2}$ where $\sigma$ and $\epsilon$ are given, and $d$ is the distance on the grid between cell $i$ and cell $j$. For example, the distance between cells $1$ and $25$ (assuming left-right, top-bottom numbering, i.e. cell $1$ is $(1,1)$, and cell $25$ is $(5,5)$) is $d=\sqrt{(5-1)^2+(5-1)^2}\approx 5.66$. In the code, I start by constructing my $25\times 25$ matrix $\textbf D$ where element $D_{ij}$ is the distance between cells $i$ and $j$. Then I just apply the gaussian element-wise.  import numpy as np from scipy.spatial.distance import cdist from scipy.linalg import cholesky  def gauss_rbf(d, epsilon, sigma):     return sigma**2*np.exp(-0.5*(float(d)/epsilon)**2)  x,y = np.meshgrid(range(5), range(5)) coords = zip(x.ravel(),y.ravel()) dists = cdist(coords,coords) epsilon = 10 sigma = 5 cov = gauss_rbf(dists, epsilon, sigma) cholesky(cov)   I get this: LinAlgError: 25-th leading minor not positive definite  This is because np.linalg.eigvalsh(cov) shows there's a very small eigenvalue (-8e-15). But this is a numerical error. The covariance matrix is really positive definite. How can I fix it?


Are the words "Senator" and "Representative" capitalized in a sentence?

In the following sentence are the words "senator and "representative" capitalized?  There are many special restrictions that senators and representatives must abide by.


Is it required to prove that random variables $X$ and $Y$ are not independent?

I attempted the question by showing that the correlation of $X$ and $Y$ to be zero by showing that covariance of $X$ and $Y$ is $0$ (As $E[XY]=E[X]E[Y]$).But I am confused how to show that $X$ and $Y$ are dependent (although already given in question that $Y=X^2$).


In bash, how do I check if a string variable matches a given regular expression? It should be the fastest and most portable (OS X, Linux) method possible.  Basically I want:  if [ $MY_VAR matches '[A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12}' ]; then     echo 'matched' fi


how to make partition read and write instead of read-only?

I recently installed ubuntu on my labtop (I used windows before) and a the partition that had all my data and files previously on windows is now set to read only in linux , how can I change that ?


Comprehensive list of tools that simplify the generation of LaTeX tables

Manually hacking tables in LaTeX is one of the less funny things when preparing a document. Naturally, there are quite a few tools that promise to simplify this. In fact, I have somewhat lost track of all the tools available, and I'd like to gather your valuable experience into one big post. Some of the tools are mentioned in , but I feel there's much more around.  I'd suggest that somebody starts an overview with an alphabetic list (so that I can accept this answer and it stays on top), and that everyone replies with a "community wiki" entry, one reply per tool, and inserts the tool into the list.  Personally, I use Excel2LaTeX, but I'm unhappy with having to fire up Windows in order to generate the LaTeX code. I'm thinking of a rewrite as a standalone Python tool using the xlrd library, but I'm not too inclined to reinvent the wheel.


In order to discuss with religious friends about god, I would like to know if there's some accepted objective definitions of God for main religions, even if belief is subjective.   For example, is he "a person who..."? In that case I would address features of a person, as capabilities and limitations. Is he "an entity..."? In that case I would use systems theory.   I feel lost on this, being agnostic from a religious family, where I was taught that God is a mess of things, including a beautiful bearded face, omnipotence and a mix of human defects and metaphysical powers.


$x^3+x+1$ irreducible over $\mathbb{F}_2$, $\theta$ root, compute powers of $\theta$

Problem statement:     Show that $x^3+x+1$ is irreducible over $\mathbb{F}_2$ and let $\theta$ be a root. Compute the powers of $\theta$ in $\mathbb{F}_2$.   I am having trouble computing the powers of $\theta$. $x^3+x+1$ is irreducible, since any cubic polynomial over a field is reducible if and only if it has a root in the field. Since $\mathbb{F}_2=\{0,1\}$, we see that none of these is a root of $x^3+x+1$.  To compute the powers of $\theta$, note that $\theta^3+\theta+1=0$. Hence $\theta^3=-(\theta+1)$. Is this a good enough answer for $\theta^3$?  To compute $\theta^2$, note that $\theta = -(\theta^3+1)$. Therefore, $$\theta^2=(\theta^3+1)^2 = \theta^6 + 2\theta^3 + 1 = (-\theta-1)^2-2\theta-2+1,$$ which just reduces to $\theta^2$. Any ideas for computing these powers?  Thanks!


Why is so expensive to fabricate custom IC

I had read that the fabricate a custom IC is very expensive (>10000$) but why?  For example an 555 timer cost <1$. If I design and 555 timer with an inverter at the output in some program (don't include that the license is also expensive) and then I want to fabricate that why will cost so much? What the 555 timer don't have but my IC have which makes the price >10000 times more expensive?  EDIT: I am asking the reason that the price is different between the two ICs!


seems to indirectly ask the question, but the upvoted answer says "the actual sentence is...". So my question is this: Are commands considered to be grammatically sound, complete sentences in the English language? Some examples:  Go. Add a note. Do work.


Read A Line In Text File with JavaScript

I need to read the numeric value of one line in a text file  color=7   so var color will = 7


Are the following modules free and/or isomorphic?

Are the following modules $M=\mathbb{Z^3}/\langle(2,1,0),(0,-1,0)\rangle$ and $N=\mathbb{Z^3}/\langle(1,0,0),(0,1,0)\rangle$ isomorphic? Are they free? Which rank do they have?  My attempt: I would say that they are isomorphic since when i reduce the matrix made of (2,1,0), (0,-1,0) in RREF i get (1,0,0), (0,1,0), so they would span the same space? But what are elements of these two modules? And which can be a isomorphism between them? And what about their rank and fact that they're free? They are free if they have a base, but i am not sure how can I write the base in this case. I am thankful for any sort of help or reference to literature or anything


Can we use MLE to estimate Neural Network weights?

I just started to study about stats and models stuff. Currently, my understanding is that we use MLE to estimate the best parameter(s) for a model. However, when I try to understand how the neural networks work, it seems like they commonly use another approach to estimate the parameters instead. Why don't we use MLE or is it possible to use MLE at all?


It shows..  Required plugin could not be found Video requires to install plugins to play files of the following types: 1 mpeg-4 aac decoder 2 h.264 decoder  It is show in a alert box.  Say answer like download separate and install.


How can I permanently declare a Bash function so I don't have to do it in every session?

I tried to create my own command to run Clion from terminal and I found a way to declare a function without creating a script. I run this command in terminal:   function CLion { /opt/clion/bin/clion.sh "$1"; }      So any time I want to run the app I call the function name, but when I restart my PC I have to declare it again and again, any solution?


Do I need to refit the whole training set after cross-validation?

Recently, I am very confused about this question. My understanding is that the cross validation for the machine learning methods is just to help me choose the best combination of the hyper parameters. I think I need to refit the whole training data after I decide the best parameters for my model. However, one professor said he doesn't need it in R. I used python and I use the function "best_estimator_.predict". My code: from sklearn import tree  from pprint import pprint  criterion = ['entropy','gani']  max_features = ['log2', 'sqrt']  max_features.append(None)  max_depth = [[int(x) for x in np.linspace(3, 100, num = 35)]]  max_depth.append(None)  min_samples_split = [5, 10,15, 20]  min_samples_split.append(None)  min_samples_leaf = [5,10,15,20,25,30,35,40,50,60,100,200,300,400,500.600,1000]  min_samples_leaf.append(None)  random_grid = {'criterion':criterion,         'max_features': max_features,                'max_depth': max_depth,                'min_samples_split': min_samples_split,                'min_samples_leaf': min_samples_leaf}  clf = tree.DecisionTreeClassifier()  clf_dt = RandomizedSearchCV(estimator = clf, param_distributions = random_grid, n_iter = 300, scoring = 'roc_auc' , cv = 5, verbose=2, random_state=42, n_jobs = -1)  clf_dt.fit(X_train, y_train)  cv_dt_result=clf_dt.cv_results_   Result: the roc from cross validation is: [0.6433645242811283, 0.6554538624410902, 0.6576927805477768, 0.6491496482480705, 0.6350727409329964] Then I used this code to evaluate the test data: #evalute is my function to get the model's performance  decision_tree_perform=evaluate(***clf_dt.best_estimator_***,X_test,Y_test)  Result: ROC_AUC : 0.605857133223997 Sensitivity :  0.66005291005291 Specificity :  0.5516613563950842 Accuracy : 0.5602472757753563 GMean: 0.6041379037785287 You can see the roc is worse than any result from the 5 fold cross validation. So I have some questions here:  after I got the result of the cross validation such as the best parameters, should I re-train the model based on the whole training data again with the best parameters? Or best_estimators.predict is enough here.  I also tried other methods such the logistics regression, svm and the others, the result of the testing data is always worse than the any result of the cross validation. I think I just have some overfitting problem here, but the professor said it doesn't make sense that I always have a worse result from the test data comparing with it from the cross validation? I am super frustrated about it.   Hope someone could help me out. My research actually is focused on the optimization model, but I do need some good prediction as a input in my model. Thanks!


I am having an issue while trying to show the coordinates in the print layout in QGIS. While the coordinate format is in decimal and suffix, it is ok.  I need the format in degree, minutes, and suffix. But when I had selected that option, it was showing both north and south points in the latitude, and also the east and west in the longitude.  How to solve this problem? There was a  like this one, but could not solve my problem.


Math.Round() call in .NET using negative precision

I have a requirement to perform rounding of values with negative precision. As far as I've checked, Math.Round() in .NET does not support negative precision.  For example:  ROUND(43.34566,-1)    The above returns 40.  Please suggest how to achive this.


External USB3.0 4TB HDD is not recognized by Mac OS X

I've bought an external 4TB HDD. It is this . The problem is that my Macbook Air 11" 2013 (with Mac OS X 10.9.2) does not recognize it.  The device is ok. I can use it from other computers with GNU/Linux. But I don't know what happens with my Mac. Disk utils app does not show it in the volumes list, diskutil command either.


Confirming that my own question is a duplicate by voting to close should have immediate effect

Someone voted to close my question as a duplicate. I agreed, so I cast my close vote (I have enough reputation to vote to close).  . So I expected this to happen.  But it didn't. This confused me — is this not a question I asked after all? No, it is. Maybe I need to reload the page? Nope, the question still isn't closed. Is the asker confirmation feature broken? Well, there's the “This question may already have an answer here” banner at the top. What if I click “That solved my problem!”? Ah, that does close the question.  It turns out that only clicking “That solved my problem!” instantly closes the question. Casting a close vote has a different effect, it's just an ordinary close vote.  Please make casting a close vote equivalent to clicking “That solved my problem!”.


If $A$ and $B$ are $n\times n$ matrices such that $AB = BA$ (that is, $A$ and $B$ commute), show that      $$ e^{A+B}=e^A e^B$$    Note that $A$ and $B$ do NOT have to be diagonalizable.


Why does Li+ ion move to cathode in Li-ion battery?

When Li-ion battery is discharged or being used, the positive lithium (Li+) ions move from anode to cathode through the electrolyte. Meanwhile the electrons move in the same direction through the external circuit. Why does this happen? I mean, why does a Li+ ion get attracted to the positive electrode (cathode)?


Review closed vote - "unclear what you are asking"

By now I use the filter to be more effective in reviewing close votes. So I get questions now that are months old without any activity on them. I am not sure if we really need to review questions like them. May be put them in a different queue call "Do when you are bored to death".  Even though I don't necessary see the point in answering them. There is an even worse subgroup. Questions that have an accepted answer.  Do we really need to close questions as "unclear what you are asking" if someone obviously figured it out already?


jQuery disable multiple attributes at once

I'm a beginner and I'm wondering if there is a way to remove multiple attributes once without coding for each one.   For an example, please look at my code sample below.  $(".select-us").attr("disabled",true); $(".select-as").attr("disabled",true); $(".select-eu").attr("disabled",true); $(".select-oc").attr("disabled",true);   I just want to know if there is any simpler way to do this. Thanks for your time.


Every partial order can be extended to a linear ordering

How do I show that every partial order can be extended to a linear ordering?      I think that I manage to prove that claim for finite set, how can I prove it for infinite set?  Thank you.


$f: B^2 \rightarrow B^2$ be a continuous map such that $f(x) = x$ for every $x \in S^1$, show $f$ is surjective

$B^2 = \{x \in \mathbb{R}^2; ||x|| \leq 1\}$ is the unit disk inthe plane, and let $f: B^2 \rightarrow B^2$ be a continuous map such that $f(x) = x$ for every $x \in S^1 = \{x \in \mathbb{R}^2; ||x|| = 1\}$. Show that $f$ is surjective. This my following attempt at a solution: If $f$ isn't surjective, then there exists a point $y \in B^2$ such that $f(x) - y$ is never $0$ for all $x \in B^2$. Thus $\frac{f(x) - y}{|f(x) - y|}$ is well defined and exists on $S^1$. however, I'm sure this is a dead end. Some hints would be greatly appreciated!


When doesn't the chi-squared statistic follow the chi-squared distribution?

When we do a chi-squared test (to test goodness of fit or the dependence of two variables), we assume that the the chi-squared statistic follows the chi-squared distribution.     Shouldn't we first check if the chi-squared statistic follows the chi-squared distribution in that particular case?   If yes, then how do we do that?   Or have I got it all mixed up and my question itself is wrong?


In C using strtok function we can tokenize c style string using our any delimiters list such as " ,.- ] [ ". I know from here  to tokenize c++ string by whitespace, but I want to tokenize using delimiters list (" ,.- ] [ ") in c++. How Can I accomplish this?   NOTE: I Dont want to tokenize by WHITE SPACE, rather a delimiter list. Those answer gives answer to tokenize by ws. NOT using boost.


I switched from Windows to Ubuntu. The sound level is very low in Ubuntu. Please help me to solve the problem.


From where can I download WKT files for US zip codes?  I need to plot zip code boundary on a map using OpenLayers,