Square of a diagonal matrix with real entries

Is there a $3\times3 $ matrix with real entries which when multiplied with itself gives the matrix  \begin{pmatrix}   1&    0&    0\\     0  & -1 &   0\\     0&    0  &  -1\end{pmatrix}  Can such a matrix be found.  My Attempt: I tried finding the square root which came out to be \begin{pmatrix}   1&    0&    0\\     0  & i &   0\\     0&    0  &  i\end{pmatrix}  But I think we are not required to find the square root.Moreover this matrix does not have all real entries.


Understanding proof of $a\equiv b\pmod{n}\implies r_n(a)=r_n(b)$

Prove that $$a\equiv b\pmod{n}\implies r_n(a)=r_n(b),$$ where $r_n(h)$ means the remainder of $h$ in the division by $n$.     I have seen this proof:  By the division algorithm, $a=qn+r_a$ and $b=cn+r_b$. Then $$a-b=qn+r_a-cn-r_b=(q-c)n+(r_a-r_b).$$ By hypothesis $a\equiv b\pmod{n}$ i.e. $n\mid a-b$, so it must be $r_a-r_b=0$ i.e. $r_a=r_b$. $\square$    My problem is in the last part: "so it must be $r_a-r_b=0$".  If $n\mid a-b$ (I understand this) then there exists a $k\in\Bbb{Z}$ such that $a-b=kn$. Hence we would have: $$a-b=\;\;\;\underbrace{kn=(q-c)n}_{\color{red}{\text{How can be equal $k$ and $q-c$?}}}+(r_a-r_b).$$ Thanks!


How to convert local time string to UTC?

How do I convert a datetime string in local time to a string in UTC time?  I'm sure I've done this before, but can't find it and SO will hopefully help me (and others) do that in future.  Clarification:  For example, if I have 2008-09-17 14:02:00 in my local timezone (+10), I'd like to generate a string with the equivalent UTC time: 2008-09-17 04:02:00.  Also, from , note that in general this isn't possible as with DST and other issues there is no unique conversion from local time to UTC time.


My question is basically what exactly is electricity? I've simply been told before that it's a flow of electrons, but this seems too basic and doesn't show that electricity is instant.  What I mean is turning a switch has no delay between that and a light coming on. Is it really instantaneous? Or is it just so fast that we don't notice it?


Trying to unsubscribe from weekly newsletter leads to... YouTube 10 hours show

That's the weirdest bug I have ever encountered or reported... and there were many. First spotted in Science Fiction & Fantasy site, clicked "example newsletter" and in :    The "Subscribe to more Stack Exchange newsletters" is still fine, but all following links marked in red are leading to: (in order of appearance)    (removed)   This is the case in the newsletter for all sites, though I didn't yet check the actual email. (guess it's the same though) Is this a dev-joke forgotten in the source code? Has Friday arrived in Iceland? P.S. Turns out  since it's only preview thus can't be unsubscribed from. Fair enough, but can the removed vid be replaced then?


I have just install Ubuntu 12.04 and I want to install uTorrent. It's was easy on Windows. As you can see on the , there is no GUI version for Linux.     So how can I install uTorrent on ubuntu 12.04   NOTE: if I have to use command line(Terminal) for it, please tell me how to open it.  Thanks.


$||x|-|y|| \leq |x-y|$  when $(x,y \in R^k)$  In Principles of MA(Rudin), the author said one sees easily that      $||x|-|y|| \leq |x-y|$  when $(x,y \in R^k)$ (p.88, Rudin)   from the triangle inequality. But I'm not sure how to use the triangle inequality to show this. Can you help me show this?


I'm trying to list the latest destination (MAX departure time) for each train in a table, :  Train    Dest      Time 1        HK        10:00 1        SH        12:00 1        SZ        14:00 2        HK        13:00 2        SH        09:00 2        SZ        07:00   The desired result should be:  Train    Dest      Time 1        SZ        14:00 2        HK        13:00   I have tried using  SELECT Train, Dest, MAX(Time) FROM TrainTable GROUP BY Train   by I got a "ora-00979 not a GROUP BY expression" error saying that I must include 'Dest' in my group by statement. But surely that's not what I want...  Is it possible to do it in one line of SQL?


What are the different types of codings available for categorical variables (in R) and when would you use them?

If you fit a linear model or a mixed model there are different types of codings available to transform a categorical or nominal varibale into a number of variables for which paramaters are estimated, such as dummy conding (the R default) and effects coding.  I heard that effects coding (sometimes called deviation or contrast coding) is preferred when you have interactions, but what are the possible contrasts and when would you use which type of contrast?  The context is mixed modeling in R using lme4, but I think broader responses are fine. Sorry, if I missed a similar question.  EDIT: Two helpful links are:  &  explained.


Incorrect indentation for tag listing questions loaded via AJAX

I am seeing a weird indentation for questions loaded via AJAX (i.e., by clicking the n question(s) with new activity link). The following screenshot was taken before I clicked the link:  And this is after the new question was loaded:  A browser refresh resolves the problem (as can be expected). It was tested with Chrome 88 and Firefox 85 on  (Catalina).


Disable caching when serving static files with Nginx (for development)

We are using Nginx to serve static files on a development platform. As it is a development platform, we'd like to disable caching so that each change is propagated to the server. The configuration of the VHost is quite simple:  server {   server_name  static.server.local;   root /var/www/static;    ## Default location   location / {     access_log        off;     expires           0;     add_header        Cache-Control private;   }  }   When we access an HTML file (http://static.server.local/test.html), we have no issue: the server returns a code 304 Not Modified as long as the file is not changed, and a 200 OK response with the modified file when the file is changed. However, it seems to behave differently with a Javascript or a CSS file. Once the file is changed, we get a 200 OK response as expected, but with the old text. Is there an internal cache mechanism in Nginx that could explain this behaviour? Or some configuration that we should add?    As a side note, here is the header returned by Nginx when the file has been modified (it seems correct):  Accept-Ranges:bytes Cache-Control:max-age=0 private Connection:keep-alive Content-Length:309 Content-Type:text/css Date:Fri, 13 May 2011 14:13:13 GMT Expires:Fri, 13 May 2011 14:13:13 GMT Last-Modified:Fri, 13 May 2011 14:13:05 GMT Server:nginx/0.8.54   Edit After trying different settings with the expires directive and Cache-Controlheader, I made some further investigations. In fact, the server is installed on a VirtualBox guest Ubuntu, and data are read from a shared folder that is on the Mac OSX host. If the file is edited from an IDE (NetBeans) on the host, it seems that changes do not appear whereas if I edit it directly on the guest (using VIM), it is refreshed. The strange thing is it does not behave similarly with HTML files. Quite puzzling.  Edit 2 (ANSWER) Indeed, the origin of the issue was more on the VirtualBox side. Or rather a conflict between VirtualBox and the "sendfile" option of the server. This link  gave me the solution: switch the sendfile flag in the server configuration to off:  sendfile  off;   Hope this could also help other person using VirtualBox for development. :) There are some additional information on the .


Why does the list of Ignored Tags disappear in the sidebar after page refresh?

I was setting up some ignored tags today, and I noticed that after adding an ignored tag through the sidebar UI, the Ignored Tags section disappears after you refresh the page, and won't show up again until you click the "edit" button to edit your favorite/ignored tags again (see screenshots).  Before (after adding ignored tag)    After page refresh    I've reproduced the behaviour in both:   Chrome 45.0.2454.101 m Opera 31.0   so I assume that this isn't specific to a particular browser. I've also reproduced the behaviour here on MSE, as well as Stack Overflow, so I assume that it's not specific to a particular exchange site either.  So is this a bug, or is this the intended behaviour? If intended, what's the rationale behind it?


Chat FAQ text is unreadable with the beta theme

The text says  Only users nominated by the room owner may talk here. See the  for more information.  I think it needs to have its color changed, because I need to highlight the text or squint up close to read it.  Image as seen on the


Getting this error "Could not find or load main class com.liveqos.superbeam.desktop.SuperBeamApp" while trying to run a .sh file on linux

I am a new linux user and I am struck while attempting to run Super Beam. Whenever I use the commands:    chmod +x SuperBeam-5.0.3-linux.sh sudo ./SuperBeam-5.0.3-linux.sh   to run the program, I get an error on terminal:  Could not find or load main class com.liveqos.superbeam.desktop.SuperBeamApp


Functions in ~/.bash_profile not found in an interactive shell

I thought that whatever lies in .bash_profile(or .profile) which is sourced in a login-shell, is available in an interactive shell.  My goal is to have available a list of functions, either in a login shell or in an interactive shell.  I am using Ubuntu 14.04.1, and i don't use .profile, but instead .bash_profile.(.profile has been renamed)  So currently what i have done, i have inserted the functions in .bash_profile, but when opening an interactive terminal they are not available, only if i use bash -l.


How can I display the full text of a query created by PDO?

I'm creating a SQL query with PDO in PHP.  Unfortunately, there seems to be an error in my query.  I've tried $query->errorInfo(), but that only gives me a little bit of the error message ("There is an error in your syntax near...").  How can I display the entire query that PDO is passing to my database?  TIA.


Let $X$ be a set. If $X$ is finite then all ultrafilters on $X$ are principal, i.e. have the form $\{A \subseteq X : x \in A\}$ for some $x\in X$.  But now suppose $X$ is infinite, say $X=\mathbb N$. Is there any concrete example of a non-principal ultrafilter on $X$? And does one need the axiom of choice to prove their existence?


Checking a string for numbers less than a and greater than b

Again, I have no idea what is going wrong here. I tried debugging but it just returns false no matter what I do. It is supposed to check for a number in the input string, then check if that number is greater than the input variable A and less than the input variable B. function ageCheck(string, a, b) {     const found = string.match(/\d{2,3}/gm)     let containsNumber = false     for (let i = 0; i < found.length; i++) {         const number = parseInt(found[i])         if (number > a && number < b) {             let containsNumber = true         }     }     return containsNumber }


Openlayers using Google Maps as base layer: possible to zoom out farther than max extent?

See attached picture. This is how it is when the page loads. I'm currently using  map.zoomToMaxExtent();     Everything is working pretty well but I'd like to zoom out more/see the whole world using OSM/Google Map Layers: is this even possible?  Note that the zoom bar on the left is set to the lowest bar when the page loads (if you can't see the map well, just right click the image and paste into a new browser tab).   This  but even when I do MIN_ZOOM_LEVEL that doesn't do much.  Also note I am not setting any bounds, extents, or resolutions. Toying with those did not seem to do the trick either.   Any input is appreciated.   Edit: here's a codeshare if you want to take a look:   UPDATE:  This is not perfected yet (and it makes me think something may be wrong with my OL code itself) but currently I am using this   var extent = new OpenLayers.Bounds(-1.32,81.71,-1.18,-61.80).transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:3857"));   I tried   var extent = new OpenLayers.Bounds(-20037508.34279,-10018754.17139,20037508.34279,10018754.17139);   (both with and without transform) but this did not do anything.   UPDATE 2:   wrapDateLine: false works fine for now: can zoom out farther, pan around, etc etc.  Now I would like to cut off everything to the left of the date line on the left side of the map (the 'first' portion), and cut off everything to the right of the date line on the right side of the map (the '3rd' portion) WHILE still keeping the map full screen. I've tried bounds, resolutions, but no go. Is this even feasible?  Something like this but it should take up the full screen: possible to do? See below:


I have a problem with my paths in tikz, as I try to show in the picture :   By using my path as -| or |- I can obtain the two green paths, but I would like to have the red one, and neither |-| or || are defined.  Here is my code    \documentclass{article} \usepackage{tikz}  \tikzstyle{block4} = [rectangle, draw, fill=cyan!8, text width=6cm, text centered, rounded corners, minimum height=4em] \tikzstyle{through} = [rectangle, fill=white, text width=6cm, text centered, rounded corners, minimum height=4em] \tikzstyle{block5} = [rectangle, draw, fill=yellow!8, text width=6.5cm, text centered, rounded corners, minimum height=4em] \tikzstyle{block6} = [rectangle, draw, fill=green!8, text width=6cm, text centered, rounded corners, minimum height=4em] \tikzstyle{block7} = [rectangle, draw, fill=blue!8, text width=6cm, text centered, rounded corners, minimum height=4em]  \begin{tikzpicture}[node distance = 2cm, auto] \centering % Place nodes \node [block4] (Foyer)          {\emph{table foyer.foyer} \\         \begin{itemize}         \item sous-table par département         \item suppression doublons         \end{itemize}         };  \node [block4, right of=Foyer, node distance=7cm] (Pote)          {\emph{table pote.dep} \\         \begin{itemize}         \item  choix anrev correct         \item  doublons dirindic         \end{itemize}         };   \path (Foyer) -- (Pote) node[through, pos=.5,below=1cm] (Merge1)          {\textbf{Fusion par dirindik}         };   \node [block5, right of=Merge1, node distance=14cm] (Indrev)          {\emph{table foyer.indrev}         \\ \begin{itemize}         \item détermine, via MDS, âge, persfipd             \begin{itemize}             \item dirindik(N-1)                 \begin{itemize}                 \item valeur                 \item "inconnu anprec"                 \end{itemize}             \item persfip(N-1)             \end{itemize}         \end{itemize}};   \node [block4, below of=Merge1, node distance=1.5cm] (FoyerPote)          {\emph{table Travail.FoyerPoteDEP} \\         \begin{itemize}         \item  on empile chaque département         \end{itemize}          \emph{table Travail.FoyerPoteFR}         };  \node [block7, below of=FoyerPote, node distance=2.5cm] (IRFoyer)          {\emph{table Travail.FoyerPote nationale} \\         \begin{itemize}         \item  On récupère les variables idoines             \begin{itemize}             \item les MDS année précédente             \item l'impôt             \item les var pour REVDISP(N)             \end{itemize}         \end{itemize}          };   \path (Merge1) -- (Indrev) node[through, pos=.5,below=6cm] (Merge2)          {\textbf{Fusion par dirindik}         };  \node [block6, below of=Merge2, node distance=1.5cm] (IndivPote)          {\emph{table Travail.FoyerPote par dep} \\         \begin{itemize}         \item  on empile         \end{itemize}          \emph{table Travail.FoyerPote nationale}         };           % Draw edges \path [line] (Foyer)  -|  (FoyerPote); \path [line] (Pote) -| (FoyerPote); \path [line] (FoyerPote) -- (IRFoyer); \path [line] (IRFoyer) -| (IndivPote); \path [line] (Indrev) -| (IndivPote);  \end{tikzpicture} \end{document}


Event dispatcher in bash (Ubuntu Gnu/Linux)

Are there any methods or bash tools that can observe some events (such as creating a folder) and then do another actions?


What form of energy was the energy of the universe before the Big Bang?

It is said that all the energy of the current universe originated from the Big Bang. The first law of thermodynamics states that energy can neither be created nor destroyed simply converted from one state to another but if that is so then what form of energy was the energy before the Big Bang?


Best way to parse RSS/Atom feeds with PHP

I'm currently using  but it sometimes falls over when the RSS or Atom feed isn't well formed. Are there any other options for parsing RSS and Atom feeds with PHP?


I just got finished reading the "Ringworld" series by Larry Niven (Ringworld, The Ringworld Engineers, The Ringworld Throne, Ringworld's Children). Should I now read the "Fleet of Worlds" series (Fleet of Worlds, Juggler of Worlds, Destroyer of Worlds, Betrayer of Worlds) and then read "Fate of Worlds" as I've heard that it's a conclusion to both the Ringworld series and the Fleet of Worlds series. I'm new to the Known universe as you can tell.


How to show this equation below is true?  $$\int_{0}^{\infty}e^{-x}\ln^{2}x\:\mathrm{d}x=\gamma ^{2}+\frac{\pi ^{2}}{6}$$  Where $\gamma$ is the Euler-Mascheroni constant....


How can I take pictures of active children with a DSLR in low light?

I am not an expert. I am shooting images of children mostly in indoor conditions when the lighting is not perfect and keep getting the message subject is too dark. Also the pictures come as very dark.   I am shooting with a Nikon D5100 but that shouldn't make much difference.   I noticed speed of less than 1/100 sec makes the images blurry. So I can't go any lower than that on the speed.   Also I noticed the ISO of more than 400 makes the images grainy.   Another problem is that most children don't react well to flash light and they close their eyes. My desired mode of taking pictures is continuous. I take 3-4 continuous shot so I can later pick the best posture. So even because of that flash is not appropriate since I can't capture continuous shots.   These are my findings so far, and I was thinking to try a bright light source, but I am not sure whether children reaction to the light source would be also that great.   Any suggestion how I can have a better experience for indoor shooting. I know I am asking for a bit much here but maybe there are some tips I can follow to enhance the experience. Afterall I noticed with my iphone camera can take bright pictures (and not blurry). So I really like to do the same with my DSLR.   Update:  I am shooting in S mode, so aperture is automatically set by the camera, and when I receive the warning subject is too dark, the aperture is at its widest set by the camera.   I noticed my widest aperture is 5.6. Maybe as some people suggested changing the lens to one with a wider aperture can help.


Proof that $\sum_{i=0}^n {n\choose i}2^{i}=3^{n}$

The following sum came up in a combinatorial argument. I know what it equals thanks to Wolfram Alpha, but I'm not sure how to show it  $$\sum_{i=0}^n {n\choose i}2^{i}=3^{n}$$


So I'm using an app that stores images heavily in the DB. What's your outlook on this? I'm more of a type to store the location in the filesystem, than store it directly in the DB.  What do you think are the pros/cons?


Cyrillic and microtype: pdfTeX error (font expansion): auto expansion is only possible with scalable fonts

I have a rather huge document and everything worked fine. The problems started when I tried to insert some Russian text. I was able to resolve some issues, but now I'm stuck with the following error:  ! pdfTeX error (font expansion): auto expansion is only possible with scalable fonts.   It was really hard to produce a MWE, but it looks like it has something to do with microtype package. I don't fully understand what it does, but it's part of the template, so I'd like to keep it.  Here comes the MWE:  \documentclass{article} \usepackage[T2A, T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[russian,english]{babel} \usepackage[protrusion=true,factor=900]{microtype}  \newcommand{\ru}[1]{{\begin{otherlanguage*}{russian} #1 \end{otherlanguage*}}}  \begin{document}  Here is a Russian text: \ru{Здравствуйте! Как у вас дела? Меня зовут Калеб. Как вас зовут?}  \end{document}   I've introduced the \ru command for convenience. However, it also produces the error without this command. But if somebody wants to suggest a good way of inserting text in a different language - feel free :).  Edit 1  Added \usepackage[T2A, T1]{fontenc}, added missing part of error message.  I'm using TeX Live from Ubuntu 12.10: pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)


How can I change the name of a windows user on my computer without creating a new local user?

I've been trying to find a way to change the name of a windows user on my windows 10 computer. I want to do this because it cut off the last letter of my name. Just say my name is "George", it named the user as "georg". How can I change the name of the user without making a new local user?


Hi 2 all i am using jQuery .On method to append rows , when i click add row button first time it append row but when second and next time it will do nothing . I need to know why my .on method is not working  Here is my Code
 <?php $form = $this->beginWidget('CActiveForm', array(     'id' => 'productoption-form',     'enableAjaxValidation' => false, )); ?>
Fields with * are required.
 <?php echo $form->errorSummary($model); ?>
     <?php echo $form->labelEx($model, 'title'); ?>     <?php echo $form->textField($model, 'title', array('size' => 60, 'maxlength' => 255)); ?>     <?php echo $form->error($model, 'title'); ?>

Add Product Options

Name

Price

             <input style="width:100%!important;" type="text" name="option_name" placeholder="Name" required />

             <input id="pricetext" type="text" name="option_price" placeholder="Price" required />

<input type="button" class="btn btn-primary addrowbtn" value="Add Row" name="addrow" />

     <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
 <?php $this->endWidget(); ?>


How to prove absolute summability of sinc function?

We know that $$\int_0^\infty \left(\frac{\sin x}{x}\right)^2 dx=\int_0^\infty \frac{\sin x}{x} \, dx=\frac{\pi}{2}.$$ How do I show that $$\int_0^\infty \left\vert\frac{\sin x}{x} \right\vert \, dx$$ converges?


Looking for a name for this flawed argument "tactic"

What is it called when you're in an argument with someone about some relatively small thing, and they bring up an overarching out-of-your control thing that if things go wrong, the smaller argument is moot? Something something blah blah fallacy? It's on the tip of my tongue.  For example: arguing with a coworker about respecting personal space, and the one who doesn't care about it (trying to argue against the need for it for some other value like organization/cleanliness) brings up "well, if we don't have enough sales and lose our jobs and can't afford this office it's not going to matter!"


A counterexample to theorem about orthogonal projection

Can someone give me an example of noncomplete inner product space $H$, its closed linear subspace of $H_0$ and element $x\in H$ such that there is no orthogonal projection of $x$ on $H_0$. In other words I need to construct a counterexample to theorem about orthogonal projection when inner product space is not complete.


Short story or book about a space crew on a broken ship who were capturing alien animals for a zoo

I would like to know the title and author of a short story I read a long time ago. It's about 3 men in space. They were sent to different planets to catch other organisms on different planets. Presumably to bring back to Earth and put in zoos. The ship they are on breaks down. They notice that the animals on the planet, instead of running away, curiously walk up to them. The animals are too friendly and easy to capture. They cannot fix the spaceship and after a few days, one of the men attempts suicide by slitting his wrists. His attempt fails. They look outside on the planet and they find their homes that they had on earth. The men realize that they were captured by aliens and that they were meant to live on this "alien zoo."


When did "two and thirty" construction fall out of common usage?

In "The Red-Headed League", one of Sir Arthur Conan Doyle's Sherlock Holmes stories, a character named Jabez Wilson remarks, "It was a pretty expensive joke for them, for it cost them two and thirty pounds." This [singles place]-and-[tens] place construction occurs frequently in these stories, and is employed by the uneducated and tradesmen such as Mr Wilson as well as by the better educated, better heeled Holmes and Watson. As far as I can tell, however, no one today employs this construction; doing so would sound extremely strange. Around what time did this usage disappear from common parlance, and why? It seems to me that it is more efficient to say, "thirty-two" than it is to say, "two and thirty"; but if this is really the explanation, why did such a construction ever enjoy currency to begin with?


Let $(1+x+x^2)^n=a_0+a_1x+a_2x^2+\cdots+a_{2n}x^{2n}$ be an identity   in $x$. Find $a_0 +a_2 +a_4+ \cdots +a_{2n} $ in terms of $n$.   I honestly don't know how to get started with this one.  I know this problems calls for the Binomal Theorem but the $2n$ index of the last term is making this difficult for me to get in some kind of nice form where it's clear what $a_1 +a_2+\cdots +a_n$ stands for in terms of $n$.  Can you guys give me some hint ?


I want to power off multiple Macs everyday at 23:30 (11:30 pm)?

I have this problem in my office that multiple Macs always run 24/7 and my boss said that I need to make it stop. Now I don't have much experience with Macs, I'm more the Windows type.   I have one Mac who acts as a server and would like to run a script or something like that to orchestrate the power status of several computers if that helps.  How can I shut down all of those 7-8 Macs remotely at 11:30pm?


Find $\int_0^1 \mathrm{\frac{x-1}{ln(x)}}\,\mathrm{d}x$  I tryed this:  $\int_0^1 \mathrm{\frac{x-1}{ln(x)}} = \int_0^1 \mathrm{\frac{x}{ln(x)}} - \int_0^1 \mathrm{\frac{1}{ln(x)}}\,\mathrm{d}x$  To $\int_0^1 \mathrm{\frac{1}{ln(x)}}\,\mathrm{d}x$  Let $t=lnx $ then $\frac{dt}{dx}=\frac{1}{x}$ and $dx=e^tdt$  $\int \mathrm{\frac{1}{ln(x)}}\,\mathrm{d}x \equiv \int \mathrm{\frac{e^t}{t}}$$\mathrm{d}t$ and well  $e^t=\sum _{n=0}^\infty \frac{t^n}{n!}$   $\frac{e^t}{t}=\sum_{n=0}^\infty \frac{t^{n-1}}{n!}$   $\int \mathrm{\frac{e^t}{t}}\,\mathrm{d}t=\int \mathrm \sum_{n=0}^\infty{\frac{t^{n-1}}{n!}}\,\mathrm{d}t=\sum_{n=0}^\infty\frac{t^n}{n*(n)!}$  How can I solve $\int_0^1 \mathrm{\frac{x}{ln(x)}}$ ?  Thanks for your help :) have a nice day


Biber + classicthesis: Package inputenc Error: Unicode char ́ (U+301): How to find symbol

My problem develops as following.   I delete the .bbl .bcf .blg files. I run pdflatex without errors. I run biber without errors. I run pdflatex again, and I get the error  "Package inputenc Error: Unicode char ́ (U+301) (inputenc)                not set up for use with LaTeX │l.15 \printbibliography[heading=bibintoc]   As I use classicthesis, my configuration for biber looks as following:    \PassOptionsToPackage{backend=biber, bibencoding=utf8}{biblatex}  \usepackage{biblatex}   How can that problem arise?    edit: Like the comments' links to other problems outlined, biber--output-safechars worked for me.


View which apps have accessed location data recently

I've heard that Android 5.0 (Lollipop) provides a way that users can view which apps have recently accessed location data.  I'd like to list all apps that have collected my location information recently, so I can keep an eye on them.  How do you do that?  Where in the user interface is this available?  What screen is this information on?  Is this available on any version before Lollipop?  (Alas, I don't have a phone with Lollipop handy to test it myself, or I'd look for it myself.)


"THIS" keyword conflict, when event function is nested inside the object

I have an idea to create an object Shout, which should take keyboard messages onkeypress event from the input element. When the user presses a key, there should appear alert box with shout exclamation.  The problem arises, when I want to access object properties inside the new onkeypress function, because keyword this refers to the input element itself and not to the Shout object.   Is there any way how to work around it?  I am not sure, if this concept is optimal, but I take it like an experiment.   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>main</title>  </head> <script> var Shout;  function ShoutObj(_shout){     this.shout = _shout;     this.onkeypress = function(event){                alert(this.shout); // shout is undefined, because "this" refers to input element         } }   function DoItFirst(){     var selector = document.getElementById("s1");     Shout = new ShoutObj("ouch");     selector.onkeypress = Shout.onkeypress; }  </script>  <body onload="DoItFirst()">   <input id="s1" type="text"/> </body> </html>


Graduated symbology shows borders between matching categories

I'm using graduated symbology on a vector layer in QGIS and i do not want lines between polygons of the same color. I tried making the border outline transparent, and also setting the border outline to match the fill color and set the border width to 1. I can still see a thin grey border regardless of the settings.   I should add, i'm trying to do this in python. This worked in QGIS but not python:   for actmin, actmax, myLabel, myColor in ranges:     mySymbol = QgsSymbolV2.defaultSymbol(maplayer.geometryType())     mySymbol.setColor(myColor)     mySymbol.setAlpha(myOpacity) mySymbol.symbolLayer(0).setDataDefinedProperty('color_border','color_rgba'+str(rgbacolors[i]))           myRange = QgsRendererRangeV2(actmin, actmax, mySymbol, myLabel)         myRangeList.append(myRange)         i+=1  myRenderer = QgsGraduatedSymbolRendererV2('', myRangeList) myRenderer.setMode(QgsGraduatedSymbolRendererV2.Quantile) myRenderer.setClassAttribute(mappingcol) maplayer.setRendererV2(myRenderer)


I am reading the book Development Economics through the Decades: A Critical Look at Thirty Years of the World Development Report by Shahid Yusuf (2008). I struggle to understand the meaning of " functional" in the following sentence:     They are at best functional and at worst weak.   Here is the full context:      The interest of policy makers lies not in whether the state should be large or small or more or less interventionist; the interest is in what specific forms of intervention over a period of time yield the best results under similar external circumstances. The same is true regarding institutions. Everyone can see that market institutions in successful East Asian industrializing countries are at best functional and at worst weak and minimally supportive.   I would be grateful if anyone could explain meaning of the phrase in that last  sentence.


How much detail needs to go into my campaign before it starts?

I'm designing a homebrew campaign for me and my friends, where I'll DM. I've decided basic things and written down basic notes of important things I want to happen, etc.   These are only scattered notes, and not at all structured or detailed.  The campaign is going to be open, allowing 5 or 6 different options of what the party needs to do/go at the start and they can be done in any order. I also want it to be possible for them to partly shape the story by their actions rather than force them along a path, which is a reason I don't want my notes to be overly detailed because they could no longer be useful depending on what the party does.   As for my DM experience I'm still fairly new, only making some basic, simple adventures back in 4th Edition and not much in 5th. I've got the grasp on how to do it, just not how deep to go into it.   So my question: How detailed and specific should my notes be before I'm ready to start the adventure?  Do I write grand descriptions about the hallway down to read word for word or just list features about it?  Do I flesh out important NPC's just enough to do what they are in the campaign for or create a character with deep personality even if they won't be in the adventure for a long time?  Etc.


Is $\{n \sin n | n \in \mathbb{N}\}$ dense on the real line?  If so, is $\{n^p \sin n | n \in \mathbb{N}\}$ dense for all $p>0$?  This seems much harder than showing that $\sin n$ is dense on [-1,1], which is easy to show.  EDIT: This seems a bit harder than the following related problem, which might give some insight:  When is $\{n^p [ \sqrt{2} n ] | n \in \mathbb{N}\}$ dense on the real line, where $[\cdot]$ is the fractional part of the expression?  I am thinking that there should be some probabilistic argument for these things.  EDIT 2:  Ok, so plotting a histogram over $n \sin n$ is similar to plotting $n \sin(2\pi X)$ where $X$ is a uniform distribution on $[-1,1].$ This is not surprising, since $n$ mod $2\pi$ is distributed uniformly on  $[0,2\pi].$  Now, the pdf of $\sin(2\pi X)$ is given by $f(x)=\frac{2}{\pi \sqrt{1-x^2}}$ in $(-1,1)$ and 0 outside this set.  The pdf for $n \sin(2\pi X)$ is $g_n(x)=\sum_{k=1}^n \frac{1}{nk} f(x/k)$ so the limit density is what we get when $n \rightarrow \infty.$ (This integrates to 1 over the real line).  Now, it should be straightforward to show that for any interval $[a,b],$ $\int_a^b g_n(x) dx \rightarrow 0$ as $n \rightarrow \infty.$  Thus, the series $g_n$ is "too flat" to be able to accumulate positive probability anywhere. (The gaussian distribution on the other hand, has positive integral on every interval).


A and B are natural numbers. Prove that there are prime numbers such as $p_{i}$ such that   $A = p_{1}^{a_{1}}*p_{2}^{a_{2}} * ... * p_{k}^{a_{k}} , a_{i}> 0 $  Then we consider $ B = p_{1}^{b_{1}}*p_{2}^{b_{2}}*...*p_{k}^{b_{k}}$ , prove that $ (a,b) = p_{1}^{c_{1}}*...*p_{k}^{c_{k}} --- c_{i} = min (a_{i} , b_{i})$ , and $[a,b]=p_{1}^{d_{1}}*...*p_{k}^{d_{k}}--- d_{i}= max(a_{i},b_{i})$ . for all : 1<= i <= k  notice: The first part of the proof originates directly from the Fundamental Theorem of Arithmetic, but I have no idea for the second part of the prove, thanks for your help


Possible Duplicate:        It used to be that defragmenting a hard drive gave a significant boost to performance. In the DOS days I would even defragment floppies if I wasn't going to make more changes to the files (it took a LONG time, but was well worth it).  Now... I don't know anymore. I know the theory, but over the last few years I've had a "fuzzy feeling" that not only it doesn't seem to help, but things actually get slower after the first defragmentation of a "virgin" hard drive. I'm not talking about flash drives -- I'm talking good old-fashioned hard drives.  Also, I've used third party tools that are able to defragment more files (MBR on boot, etc) or have more fancy features, and I don't know that it makes a difference in performance either. They run prettier, sure, but that's not enough for my pocket.  I don't know if I'm dreaming it. Is there any hard data on this? Does defragment still help in modern Windows?  My experience has been 99% on Windows XP. How about Vista or Windows 7? Is defragmentation more effective in those versions of Windows?


I have to solve for the integral: $$\int \sec^3 x \ dx$$ I used integration by parts, letting: $$u=\sec x$$ $$du = \sec x \tan x \ dx$$ $$dv=\sec^2 x$$ $$v=\tan x$$ Integration by parts formula: $$\int u \ dv = uv - \int v \ du$$ Using integration by parts: $$\sec x \tan x - \int \tan x \sec x \tan x \ dx$$ $$\sec x \tan x - \int \tan^2 x \sec x \ dx$$ Using the identity $\tan^2 x = \sec^2 x -1$: $$\sec x \tan x - \int \sec x \left(\sec^2 x - 1\right) \ dx$$ $$\sec x \tan x - \int \sec^3 x \ dx + \int \sec x \ dx$$ $$\sec x \tan x + \ln|\sec x \tan x| - \int \sec^3 x \ dx$$ What do I do now? If I integrate $\int \sec^3 x \ dx$ again, I will just continue going in an infinite loop and end up with $\int \sec^3 x \ dx$ again. Can someone please point me in the right direction? Thanks


Can you check if a PSN code is valid without redeeming it?

I have a code for additional content on a Playstation game, and I want to know whether it is still valid, but I don't want to redeem it for myself.  If I enter it in the Playstation Store (on PS3, PS4 or the website), does it get redeemed to my account automatically, or can I enter it without redeeming? If it gets redeemed automatically, is there another way to check if it is valid?


Partitioning Line into Segments using ArcGIS Desktop?

I have a shapefile of U.S. states.  I extracted the boundary between two states, resulting in a line segment.  For example, the boundary between Georgia and North Carolina.    Is there a way to further divide this boundary into, say, units of 25 mile segments?  Similarly, is there a way to segment the line into equal length segments.  For example, taking this border segment, and dividing it into 3 segments of equal length.  I use ArcGIS 10.1 and ArcMap.  And if we have several lines to split (a few thousands)?


Can I use different Apple ID for Music on Catalina?

I just got a new 16" MBP at work. It runs Catalina of course.  I use a work based Apple ID for this machine. I have a personal Apple ID that I use on my iPhone which recently just got an Apple Music subscription. Is there a way to have the Catalina music app use a different Apple ID than the (work based) one that the rest of macOS knows about?


How to install dependencies when packages are missing 20.04

How can I install dependencies on 20.04 when required packages versions are missing from ? I'm stuck in situation when I need to install network drivers for PC, but I can't download needed dependencies to make make/gcc work, because there is a package libgcc-9-dev which needs bunch of packages (libitm1, libatomic1, libasan5, etc) from version 9.3.0, but those package no longer exist with that version, they have version 10.2.0, and when I want to install any of them, they have a dependency on gcc-10-base and when I want to install that one, apt wants to remove a lot of packages and prompts "You are about to do something potentially harmful", which obviously should not be done.


Replacing polygon within composite relationship without deleting tabular record?

I have a geodatabase that contains a table, a point feature class, and a polygon feature class.   Each record in the table has both a related point and a related polygon, so all one-to-one relationships. The geodatabase is currently set up with composite one-to-one relationships. My issue with this is that we sometimes need to replace the polygons with better data. If a user deletes the old polygon before adding the new one, the corresponding table record is also automatically deleted.  It is important that there is referential integrity in this dataset, but I'm wondering if it might make more sense to maintain the relationship classes as simple, and then explicitly test for referential integrity during the QAQC process. We will eventually be allowing partners to edit replicas of this database, and my concern is that this will cause some problems with users.   Is there an efficient way to replace a polygon within a composite relationshp without deleting the tabular record?


Inheritance vs class as a member of another class

This is a theoretical question, I haven't figured a straight well explained answer yet, about object oriented design. Let's say we have a class of a Music Event, and we would like to implement a Rating class with maybe one int member(stars 1-5) and maybe one getter and one setter function. Maybe I haven't thought some bigger picture yet?  If we want our Music Event class to have ratings (just one not an array), why is it better -if it is- to inherit from the Rating class, and not to add a Rating class member inside the Music event class?  in coding:  //why is this better... class MusicEvent:public Rating {   string name;   string duration;   //and other stuff here }   //...than this  class MusicEvent {   string name;   string duration;   Rating rating;  //and other stuff here }


Did Umbridge get a punishment for Death Eater collaboration?

As seen in Deathly Hallows, Dolores Umbridge actively supports the Ministry anti-Muggle doctrine endorsed by Voldemort. So, she was not an 'innocent bystander' by any means.   Is there any canon information if she was punished for that? Or did she get away as usual?


MobileMe services has stopped working message in Outlook 2006

I have Windows 7 and use Microsoft Office Outlook 2006 and every time that I open it pops up a screen that says mobile me services has stopped working.    I use iCloud to merge my contacts and calendar from my iPhone 4S. What can I do to stop this from happening.  Should I uninstall iCloud and reinstall it?  What suggestions do you have?  I want to keep icloud.  If I delete mobile me will it delete icloud?


Get files in a directory sorted by last modified?

In Java 7 with the new I/O APIs, is there an easy way to list a directory's content by last modified date? Basically I only need to get the file the wasn't modified for the longest time (sort by last modified ascending, take first filename).


How to control four 10-pin 7 segment display

I'm a student trying to make a device for our research project so I'm quite (if not entirely) new to electronics.  I'm planning to make a 4 digit display using four 7seg display using arduino and each one of these 7 seg display has 10 pins, 8 of which i have to connect to the digital row of arduino and I cannot fit all 32 pins to the 13-pinned digital row of the arduino. I'm sure there is a way including using ICs or something, I just don't know what to do it. Sorry if I seem too knowledgeable. Thanks :)


Inspired by question :  When do I need to invoke \phantomsection?  In what condition is invoking \phantomsection necessary?


I have problem with cloning List item.  Class Item { String Name; Int Age; }   Than I have a List<>  List<Item> Items = new List<Items>();   now if i do this action  Item val= Items[i];   Now if I change val's age,it will also change Items[i] age. How to clone item from List,so when changing values in cloned item,values wouldn't change in List? This if for examle,but my class im bigger,it contains more than 20 values.


Autodesk Maya 2016 not openning due to libtiff.so.3 dependecy error

While installing Autodesk Maya, I'm stuck at this error  "/usr/autodesk/maya2016/bin/maya.bin: error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory"   If anyone has any idea about how to solve this one, please help :)  I am using x64 bit PC


Prove that g is equal to a constant a.e.

Suppose $g : [0,1] \to \mathbb R$ is bounded and measurable and $$\int_{0}^{1} f(x)g(x) dx=0$$ whenever $f$ is continuous and $$\int_{0}^{1} f(x) dx=0$$. Prove that $g$ is equal to a constant a.e.  I know for every measurable function g there is a continuous h in a compact support such that $$\int_{0}^{1}\mid(x)-h(x)\mid dx =0$$.I got stuck to go further.


How to list all manually installed packages?

I want to list all packages that are not automatically installed as dependencies.    E.g. I've installed build-essential, whose dependencies include gcc.  I want to output a list that contains build-essential, but not gcc.


Let $H$ be a complex Hilbert space, let $A,B$ be bounded linear operators on $H$. I want to show $\forall x \in H$ $(x,Ax) = (x,Bx) \implies A=B$.  I can show that  $\forall x,y \in H$ $(y,Ax) = (y,Bx) \implies A=B$, pretty easily.  Is there a way to show that   $\forall x \in H$ $(x,Ax) = (x,Bx)$ $\implies A=B$  implies   $\forall x,y \in H$ $(y,Ax) = (y,Bx) \implies A=B$ to finish, or another method?


Removing Part Page & including bibliography leads to wrong arrangement in TOC

I have encountered a weird problem (in my eyes) to do with bibliographys in included chapters and the structure of a document and I just cannot find out whats the cause...   In the final document, I want to include a table of contents structured as follows:    I would like NOT to have the page for stating "PART 1 - Introduction", which I want to exclude using this command:   \renewcommand{\part}[1]{\addcontentsline{toc}{part}{#1}}   However, if I include this into my document, I end up with the following TOC:    --> The "Introduction" part moves to the bottom of the TOC  I have already figured out using a MWE, that it has something to do with including the bibliography inside a chapter that I am including, as a MWE with the bibliography in the main file was fine as well as including a chapter without a bibliography was fine - but the combination of those somehow triggers this?  This works:  \documentclass{book}  \usepackage{lipsum} \renewcommand{\part}[1]{\addcontentsline{toc}{part}{#1}} %removes pages with part headers  \begin{document}  \tableofcontents \cleardoublepage  \part{Introduction} %\include{MWE_Chapter} \chapter{Wabbadabbadupdup} % (fold) This is just a test and a citation \citep{Carmichael2008} -   \section{Hey ho Lets go} \lipsum  \bibliographystyle{jneurosci} %apalike, abbrv \bibliography{library}  \end{document}   This doesn't:  \documentclass{book}  \usepackage{lipsum} \renewcommand{\part}[1]{\addcontentsline{toc}{part}{#1}} %removes pages with part headers  \begin{document}  \tableofcontents \cleardoublepage  \part{Introduction} \include{MWE_Chapter}  \end{document}   with MWE_Chapter being:  \chapter{Wabbadabbadupdup} % (fold) This is just a test and a citation \citep{Carmichael2008} -   \section{Hey ho Lets go} \lipsum  \bibliographystyle{jneurosci} %apalike, abbrv \bibliography{library}   I would really like to know what causes this behavior and if someone can reproduce it? Or if there is another possibility to remove the pages created by the \part syntax without changing the TOC! Thanks!  The same by the way happens if I use   \addcontentsline{toc}{part}{<Header of the part>}    instead of the renewcommand to remove the part page


Prevent xhr results from being cached, CORS problem

I'm making 51 XMLHttpRequest calls to receive 161.3 MB of data for a mapping project. Every time I reload the page, these calls go out again, and it seems like they are all being cached, because the memory of the web browser (Firefox) continues to rise on every page reload until the tab crashes. I'm trying to prevent these results from being cached.  The original code returns the result fine:  var xhr = new XMLHttpRequest(); var url = 'http://briennakh.me/accessibility-maps/data/census tracts/geojsons/Alabama.json'; xhr.addEventListener('load', function() {     console.log(this.response); }); xhr.open('GET', url); xhr.responseType = 'json'; xhr.send();   When I add the request header xhr.setRequestHeader('cache-control', 'no-cache'); below xhr.open('GET', url); to specify no caching, it throws the following error  Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote  resource at http://briennakh.me/accessibility-maps/data/census%20tracts/geojsons /Alabama.json. (Reason: CORS request did not succeed).   How can I stop these results from being cached?  Note: My site is served on Github pages. I do not have access to the backend code.


Getting free apple certificate outside of xCode

I am building an app using phonegap. Since im on ubuntu i have to build my app each time using build.phonegap.com.  Now i want to test my application on my Iphone. And here comes the problem.  I need a certificate for it to build on IOS. So i went and created an account but quickly found out that i have to pay 99$ for the certificate.   Im not a professional app builder (yet) and all i want to do is to test my very unfinshed app.   Looking around the internet i found that i am able to get a certificate if i use xCode. However since i am on an ubuntu machine i am unable to download the program.  So my question is: is there another way around?


How can I stop Gnome Shell's drive pop up notifications?

I have an NFS drive mapped in Ubuntu 11.10 using autofs which automatically mounts a drive on every boot. But if I use the Gnome Shell interface, a pop up notification keeps popping up from the bottom-centre of the screen saying the name of the mapped drive and an Eject option.  It pops up about every 5 minutes even though the NFS drive is already always mounted. Any way to stop this?


Preprocessor directive: Why Identifier for header file with #define is not same as header file name

Why inside myheader.h, we write:  #ifndef MYHEADER_H #define MYHEADER_H ... #endif   Since, Identifiers are case-sensitive (lowercase and uppercase letters are distinct), and every character is significant. How the above is valid? It should be   #ifndef myheader.h #define myheader.h ... #endif   What is the purpose of the underscores? What if I have 2 separate header files with names: MyHeader.h and myheader.h, How does the preprocessor distinguish between these?


Explanation of Gallant-Lambert-Vanstone method / Endomorphism speedups

Can someone explain how the Gallant-Lambert-Vanstone method works (or which literature explains it)?  It is also unclear to me how the Frobenius endomorphism can be used in some cases for a speedup.  Also: how does it make sure that an attack remains infeasible (by using this method)?  (I am especially interested because of the sec256k1 curve which uses the method)


I have two domains named www.example.com and www.example-alias.com , Both domain are pointing same location in the server. I need to do 301 redirection for www.example.com to www.example-alias.com  <IfModule mod_rewrite.c> RewriteEngine On         RewriteCond %{HTTP_HOST} ^(www\.)?example\.com [NC] RewriteRule ^(.*)$ http://www.example-alias.com/$1 [R=301,L] </IfModule>   It is working only for www.example.com home page, not for any inner page. How do I redirect www.example.com inner pages to www.example-alias.com. Similar   www.example.com/service to www.example-alias.com/service


"no public key available" on apt-get update

When performing apt-get update, I get the following error:   root@ADS3-Debian6:/home/aluno# apt-get update Atingido http://sft.if.usp.br squeeze Release.gpg Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-en Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-pt Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-pt_BR   (...)  Obter:10 http://security.debian.org squeeze/updates/non-free i386 Packages [14 B] Baixados 612 kB em 4s (125 kB/s)                     Lendo listas de pacotes... Pronto There is no public key available for the following key IDs: 8B48AD6246925553


How can I configure zsh to let it explain to me where I can retrieve an executable instead of saying file not found?

In the default configuration of bash in ubuntu, when you type the name of a software which is not installed, bash explains how to install it if  the executable if it exists, or how to install an executable with a really close name if it does not exist. For example with emacs (which is not installed on my machine):  $ emacx No command 'emacx' found, did you mean:  Command 'emacs' from package 'emacs23-lucid' (universe)  Command 'emacs' from package 'e3' (universe)  Command 'emacs' from package 'emacs23-nox' (main)  Command 'emacs' from package 'emacs24' (main)  Command 'emacs' from package 'emacs24-nox' (main)  Command 'emacs' from package 'emacs23' (main)  Command 'emacs' from package 'jove' (universe)  Command 'emacs' from package 'emacs24-lucid' (universe) emacx: command not found $ emacs The program 'emacs' can be found in the following packages:  * emacs23  * emacs23-nox  * emacs24  * emacs24-nox  * e3  * emacs23-lucid  * emacs24-lucid  * jove Try: sudo apt-get install <selected package>   With my current configuration of zsh I obtain:  $ emacx zsh: command not found: emacx $ emacs zsh: command not found: emacs   There is also a difference of behavior when making a mistake in the name of an installed software. Say I want to launch gedit instead of kedit. With bash, I obtain:  $ kedit No command 'kedit' found, did you mean:  Command 'xedit' from package 'x11-apps' (main)  Command 'edit' from package 'mime-support' (main)  Command 'nedit' from package 'nedit' (universe)  Command 'gedit' from package 'gedit' (main)  Command 'jedit' from package 'jedit' (universe)  Command 'medit' from package 'medit' (universe)  Command 'ledit' from package 'ledit' (main) kedit: command not found   While with zsh I obtain:  $ kedit zsh: correct 'kedit' to 'edit' [nyae]?   So, my questions are:   Is it possible to have a similar behavior in zsh as with bash when trying to launch an executable not yet installed? If yes, how? Is it possible to display all the possibilities when there is a typing mistake, instead of giving  one correction which can be wrong?


I am writing some thesis in Latex and I use some template, which I placed at the bottom. I have got problem with references. I would like to put the links to references in order of appearance, not in alphabetical order. The first link to reference should have [1] the second [2]. Now I have got situation that reference is ordered in alphabetical order, e.g. the first link to reference is not [1], but e.g. [4], because of fact that this follows from the alphabetical order.  Below a simple visualization:  Now: text text[3] text text[1] text text[2] reference: [1]Adam Simson [2]David Johnson [3]Jessy Hoffman   I would like to have:  text text[1] text text[2] text text[3] reference: [1]Jessy Hoffman [2]Adam Simson [3]David Johnson   This is the template, which I am using:    In folder Classes there is a file "PhDThesisPSnPDF.cls" and there is something like is printed below. I tried to modify it, change style to "plain", but it didn't help. How can I solve it? Very thanks for help.  % ******************************* Bibliography ********************************* \ifPHD@authoryear \ifPHD@biblatex \RequirePackage[backend=biber, style=authoryear, citestyle=alphabetic, sorting=nty, natbib=true]{biblatex} \setBiBLaTeXtrue \else \RequirePackage[round, sort, numbers, authoryear]{natbib} %author year \fi \setBibtrue \else      \ifPHD@numbered      \ifPHD@biblatex      \RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=none, natbib=true]{biblatex}      \setBiBLaTeXtrue      \else      \RequirePackage[numbers,sort&compress]{natbib} % numbered citation      \fi      \setBibtrue      \else          \ifPHD@custombib          \setBibfalse          \ifPHD@biblatex              \setBiBLaTeXtrue          \fi          \else              \ifPHD@biblatex                  \RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=none, natbib=true]{biblatex}                  \setBiBLaTeXtrue              \else                  \RequirePackage[numbers,sort&compress]{natbib} % Default - numbered              \fi          \setBibtrue      \ClassWarning{PhDThesisPSnPDF}{No bibliography style was specified. Default numbered style is used. If you would like to use a different style, use `authoryear' or `numbered' in the options in documentclass or use `custombib` and define the natbib package or biblatex package with required style in the Preamble.tex file}          \fi      \fi \fi


Possible Duplicate:             How to format a pen drive in Ubuntu? I have this pen drive which I made bootable using some other system (OS). But I need to format it from my Ubuntu 12.04. Please guide me.


If you are disarmed and leave the zone will your weapon be there when you return?

I was in labyrinthian and was disarmed, as I had never been disarmed before I just thought my Mehrunes Razor had been Unequipped I promptly pulled out chillrend and continued on to get the staff I was there for. Upon arrival at winter hold I realized it was not in my inventory  I am now crawling through labyrinthian trying to find it.  If you are disarmed, and leave the area without retrieving your weapon, will it still be there when you return?


Short story as a letter to original colonisers of earth

I am trying to track the title of a short story which is written as a message from an alien race to the original colonisers of earth apologising for the collapse of the experiment and advising the colonisers they will be rescued soon. It turns out the message is meant for a particular race of people. Any help greatly appreciated.   Thanks


The largest number to break a conjecture

There are several conjectures in Mathematics that seem to be true but have not been proved. Of course, as computing power increased, folks have expanded their search for counterexamples ever and ever upwards.  Providing a counterexample to a conjecture with a very large number would be interesting, but I cannot think of any non-trivial examples where a really large number has been found to disprove a (non-trivial) conjecture. I've seen plenty of large numbers serving as bounds to some value, but usually this is something known to be bounded (i.e. finite) anyway.  Out of curiosity, what's the largest counterexample you've seen to disprove a conjecture?


Allow the creation of links in formatted code through markdown or the GUI

As pointed out in  it is possible to create a link in formatted code. But, only by using explicit HTML. Since I think creating a link to documentation within a code block is a fairly common use case, it should be possible to do this using the GUI.   I should be able to highlight some code. Press the  code formatting button. Then highlight some code within that and press the link button and create a link.  Today this results in:  [parseInt][3]("01", 10);   it should result in:  ("01",10);


Automate the Boring Stuff - Table Printer

I'm trying to do one of the practice projects of How to automate the boring stuff. But I'm stuck. Essentially, when given a list like: tableData = [['apples', 'oranges', 'cherries', 'banana'],          ['Alice', 'Bob', 'Carol', 'David'],          ['dogs', 'cats', 'moose', 'goose']]  the program is supposed to print out the following table, where each column is right justified:     apples Alice  dogs    oranges   Bob  cats   cherries Carol moose     banana David goose  This is my code: tableData = [['apples', 'oranges', 'cherries', 'banana'],                  ['Alice', 'Bob', 'Carol', 'David'],                  ['dogs', 'cats', 'moose', 'goose']]          def printTable():         colWidths = [0] * len(tableData)         for index in range(len(tableData)):             colWidths[index] = len(max(tableData[index], key = len))              for index in range(len(tableData)):             for element in tableData[index]:                 print(element.rjust(colWidths[index]))          printTable()       My problem is that each one of the lists gets properly right justified, but everything is printed out in a single column, not a table, like this:   apples  oranges cherries   banana Alice   Bob Carol David  dogs  cats moose goose  Is there any way I can add a new column after each iteration of the for loop? Or how would you improve my code? Thank you for your help!


Give $\ker(\phi)$ for $\phi: \mathbb{Z} \to \mathbb{Z_7}$ such that $\phi(1)=4$

Give $\ker(\phi)$  for $\phi: \mathbb{Z} \to \mathbb{Z_7}$ such that $\phi(1) = 4$  So the generator of $\mathbb{Z}$ maps to $4$ and $\langle 4 \rangle = \{0,1,2,3,4,5,6\}$ so it has order seven.  so $\ker(\phi) = 7\mathbb{Z}$ because every seventh element will map to the identity under the given map. Is that the correct reasoning?


for-loop not modifying a global variable?

I wrote a for-loop that for some reason refuses to modify a global variable. Instead, it seems to create a local variable that it modifies temporarily. A condensed version of my code is as follows.  var clubsArray = [obj, obj, obj];  //each obj contains a property of "goalsFor" which holds an integer  var madridTotalGoals = 0; var barcaTotalGoals = 0;  function findTotalGoals(clubsArray, totalGoals) {      for(var i = 0; i < clubsArray.length; i++) {          totalGoals += clubsArray[i].goalsFor;     } }  findTotalGoals(clubsArray, barcaTotalGoals);  // this loops properly and does the math, but it never changes the value of barcaTotalGoals   In the full code there are numerous arrays that hold "club" objects; each contain a property key "goalsFor", which hold an integer as a value. There are also numerous "totalGoals" variables (two are specified here) that have been declared globally.  Does anyone know why the global variable (e.g. barcaTotalGoals) is not being modified when passed through this function? When I console log each step of this loop, the math is taking place but the result is not being stored. I apologize if this has been asked before but I've searched thoroughly.


some movie, book and game title have a title. And sequels often have the title a number and some more words what are the extra words called?

The best example would probably be most of the star wars movie titles phantom menace, attack of the clones, revenge of the sith, return of the jedi, rogue one, empire strikes back, and the last jedi just to name a few.  The termninator movie series comes to mind also. the title have 2 parts instead of 3 like start wars Terminator 2: judgement day, Terminator 3 rise of the machines.  Lastly  have to mention what i seen that made me post this question the Ace combat video game series. Yes I am a fan of the series and i seen a youtube video for ace combat 7 with the proper title in the thumbnail. but the title mentioned the "extra words" from Ace Combat 5 title  Ace Combat 3: Electrosphere Ace Combat 4: Shattered Skies Ace Combat 5: The Unsung War Ace Combat 6: Fires of Liberation Ace Combat 7: Skies Unknown  what is the term for the second part of the title?


Prove by Mathematical Induction: $1(1!) + 2(2!) + \cdot \cdot \cdot +n(n!) = (n+1)!-1$


What's with the designation of planet KS7-535?

The SGC gives planets in the Milky Way  (there are around 200 of them).  But one starts with a K:    which occurred in Season 8, episode 3.  Yes, this planet is very cold, but does that explain why it is named uniquely?   It seems they are named before they are even visited, so that doesn't make sense.


Order of operations using Object Initializer Syntax

Does the order in which I set properties using the object initializer syntax get executed in the exact same order?  For instance if I do this:  var s = new Person { FirstName = "Micah",                      LastName = "Martin",                      IsLoaded = true                    }   will each property get set in the same order?


I got parameter and argument kind of mixed up and did not really pay attention to when to use one and when to use the other.    Can you please tell me?


Minecraft and FTB crashing on windows 8.1

So... I have reacently installed windows 8.1 on my pc. Now i dual boot it with windows 7 and Ubuntu.On windows 7 i play minecraft and FTB with no problems. But, on windows 8.1 minecraft and FTB crashes before it even shows the Mojang logo it just crashes. The first line in the crash report is this: "org.lwjgl.LWJGLException: Pixel format not accelerated" I have updated java to 64bit. Also if i enter device manager in windows 8.1 after my graphics card it says microsoft Corp. Could that me the problem ?  PC: CPU: AMD Athlon 64 X2 Dual Core processor  6000+ @3.01 GHz  RAM: 5 GB DDR2  Graphics: ATI Readon HD 2600 PRO Memory: 2559 MB total aviable graphics memory  Windows 7 Profesional  and Windows 8.1 as OSs  If anything else is required for anyone, comment below.  Thanks in advance.


Are numbers of the form $n^2+n+17$ always prime

Someone claimed that a number, multiplied by the number after it plus 17 is always prime, and showed several cases. I'm not a complete amateur in Number Theory, and I know that $17*18+17=17*19$, so it does not work for $n\equiv0(\mod17)$ but does it always work for other $n$ values? If not, can someone give me a counter example that I can show that person so they can correct their statement?


What are the anime censorship laws in Japan?

I know that there are censorship laws in Japan (which is why you end up with things like tentacles instead of genitalia). What are the laws, and are they the same as the laws for live-action television programming?


Unions and Intersections of Open Sets are Open

Let $(X,d)$ be a metric space.  Prove:   the union of any open sets in $X$ is open in $X$ the intersection of a finite number of open sets in $X$ is open in $X$   I could prove the first one but how do we prove the second one?


How do I bind a WPF DataGrid to a variable number of columns?

My WPF application generates sets of data which may have a different number of columns each time.  Included in the output is a description of each column that will be used to apply formatting.  A simplified version of the output might be something like:  class Data {     IList<ColumnDescription> ColumnDescriptions { get; set; }     string[][] Rows { get; set; } }   This class is set as the DataContext on a WPF DataGrid but I actually create the columns programmatically:  for (int i = 0; i < data.ColumnDescriptions.Count; i++) {     dataGrid.Columns.Add(new DataGridTextColumn     {         Header = data.ColumnDescriptions[i].Name,         Binding = new Binding(string.Format("[{0}]", i))     }); }   Is there any way to replace this code with data bindings in the XAML file instead?


All of my data, files and settings in application are missing after removing Wine and re-installing Wine 4

I'm really in a bad situation here. I uninstalled and purged all instances of Wine in my system, including the .wine directory, and proceeded to install the latest Wine Stable 4. However, after the setup, I went to access my Documents folder, and other folders where I had data, and everything was empty, including the Trash, Downloads, etc. My Thunderbird and Firefox were all set to default, meaning I had a profile that was like it's first time use and completely empty.   Please help me to find a way to restore all of the data in my profile regarding settings and documents, files, images, etc.  I totally blew it, and now I realized that Ubuntu doesn't have a built-in System Restore feature. Any and all assistance you can offer will be greatly appreciated.  @ThomasWard: I ran these commands to uninstall Wine: sudo apt-get purge wine wine-* AND sudo apt-get autoremove --purg. All my data from the Documents, Downloads, Pictures, Music, etc is gone. It's like a brand new profile -- blank -- Is there a way to restore the profile using the /etc/skel/ "skeleton" directory? (I was advised to append the @ to your name to ensure you receive notice of my response)   @K7AAY -- I don't believe another user was created. I went to logoff, and when I was prompted to logon, my same username was displaying for me to login. I used the same password and let me in. I also changed between the different Ubuntu Desktop options, but the same situation -- all data was gone.   From a Post no longer available as of today, Dec 20, 2019  Actually, there are few things in Ubuntu et al. that will allow you to roll-back changes. Brief below:  /var/backups/dpkg.status.*: this directory keeps a set of log of the last system state prior to an install as follows; /var/backups/dpkg.status.0 is the most recent log prior to a state change (e.g. package install/remove/update ...etc); /var/backups/dpkg.status.?.gz are compressed, archived versions of the logs at various points in time, rotated monthly. /var/lib/dpkg/status: this is the current state of installed packages. Manually backing this up, or providing a logrotate script in /etc/logrotate.d will ensure schedule snapshots of your system state to your liking.  Roll-back: the corner stone is your previous state /var/backups/dpkg.status.0. Here is a brief step-wise procedure to restore previous package state (note brief and not exhaustive).  a. cp /var/backups/dpkg.status /var/lib/dpkg/status (will revert back the package state one version back).  b. dpkg -l | grep ii (will give you a list of supposedly installed packages based on the rolled-back /var/lib/dpkg/status file achieved in step a. above).  c. dpkg -l | grep ii | awk '{print "apt-get --reinstall -y install", $2}' > /tmp/reinstall && sh /tmp/reinstall (will create a simple one-liner shell script and runs that to reinstall packages determined to have been on the system prior to an apt-get operation)  d. apt-get --reinstall install ucf (will take care of sanitising /etc config files et. al)  e. Repeat step c. if/as necessary   Is this still relevant although the old post was from 8yrs ago?  Output from History  ersalabert@ersalabert-Lenovo-ideapad-320-15IKB-Touch:~$ history     1  wget -nc https://dl.winehq.org/wine-builds/winehq.key     2  sudo apt-key add winehq.key     3  sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'     4  nordvpn c     5  sudo apt-get purge wine wine-*     6  sudo apt-get autoremove --purge     7  rm -rf ~/ .wine/     8  rm -rf ~/.wine/     9  rm -rf ~/.local/share/applications/wine*    10  sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'    11  sudo apt install --install-recommends winehq-stable    12  wine --version    13  winecfg    14  sudo apt autoremove wine-devel wine-devel-amd64 wine-devel-i386 winehq-devel winetricks    15  sudo apt-get remove --autoremove wine-*


Ubuntu 18.04 sudo apt update doesn't work (Failed to Fetch)

I have tried quite many solution to this like prioritizing IPv4 and disabling IPv6 or adding Google DNS server, fix the sources list and some other suggestion on AskUbuntu but nothing worked.  I have also tried with different wifi networks (I can get no access to LAN unfortunately since I am living in a dorm and work in a common workspace with organization internet).   Another thing is that I cannot ping also.  I am quite new to Ubuntu so if anyone can help me I would be really grateful. When I enter sudo apt update the output is this :  Err:1 http://archive.getdeb.net/ubuntu xenial-getdeb InRelease           Temporary failure resolving 'archive.getdeb.net' Err:2 http://packages.ros.org/ros/ubuntu bionic InRelease                Temporary failure resolving 'packages.ros.org' Reading package lists... Done       Building dependency tree        Reading state information... Done All packages are up to date. W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/xenial-getdeb/InRelease  Temporary failure resolving 'archive.getdeb.net' W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'packages.ros.org' W: Some index files failed to download. They have been ignored, or old ones used instead.


Is there a sum of an uncountable set of Real numbers?

The addition of Real numbers is commutative, so instead of saying we can find the sum of a sequence $\{a_1,...,a_n\}$ of real numbers that are pairwise not equal, we can say that there is a sum of a finite set $A=\{a_i:1\leq i \leq n\}$ of real numbers, since the order of summation does not matter.  The same thing is true for infinite sequence. Instead of saying we can find the sum of a infinite sequence(series) $\{a_1,...\}$(i.e. $\sum_{i=1}^\infty a_i$) of real numbers that are pairwise not equal, we can say that there is a sum of an infinite set $A=\{a_i: i \in \mathbb{N}\}$ of real numbers, since the result of summation is NOT changed if we put $a_i$ in different order.  Question: Can we define a sum of a uncountable subset of real numbers? Does the order of summation matter in this case?


Debug a java application without starting the JVM with debug arguments

Normally to attach a debuger to a running jvm you would need start the jvm with arguments such as the following:  > java -Xdebug -Xrunjdwp:transport=dt_socket,address=1000,server=y,suspend=n   Now if I want to debug a process that wasn't started in debug mode, what can I do?  This situation arrises when a production system (i.e. started without debug args) exhibits a 'random' (I use the term loosely) bug. So I can't restart the jvm with the appropriate arguments, because nobody knows how to reproduce the bug again. Is it impossible to attach to the JVM in this situation?  Just to clarify it is not possible to use tools like jdb to attach to already running JVMs unless they were started in debug mode  from the JVM man page     Another way to use jdb is by attaching it to a Java VM that is   already running. A VM that is to be   debugged with jdb must be started with   the following options:


How to Replace the MSB bit with some Number in Assembly language?

I have an task to generate an Random numbers in assembly language just like rand function in c Language but in assembly language i had to extract the B0,B5,B6 bit from the 8 bit data number and perform the following tasks on that bit   EOR B5 and B6 EOR B0 and result of (B5 ^ B6) And result of task 2 will be replace to MSB bit of the 8 bit data.   I've done the first 2, but can I replace the MSB bit with the result of task 2?


Make it easier for close-voters at target site to contact those who voted for migration

Background: ...Migrations were never meant to simply shuttle off-topic question to the next “closest fit” (source: )  At target site, display who voted for migration in order to make it easier for  (alternatively: for , or for ) to  them. The feature I think about could look like as marked green at below sketch      Side note. Before asking here, I also tested an option to use the list of close-voters shown at original site, using one of the off-topic migrations recently .   Unfortunately it didn't do the trick - original site has shown me just plain list of close-voters, including those who attempted to prevent erroneous migration.  update For the sake of completeness need to mention that later on I also tested flagging the problematic question (inspired by )    Moderator action on the flag was as follows: "I recognized the problem (another bad migration), but took no action because..." (if needed, refer here for full reply: )


Question about probable fixed use of "what do you do?" and "how do you do?"

Do we always have to use the question how do you do? fixed in greeting people? Can we ask it in other situations rather than greetings? Like when we are wondering how someone is doing the given task.  Do we always have to use the question what do you do? for asking about sojeone's job? Can we use it sonetimes instead of ** what are you doing?**


Radius of convergence of $\sum_{n=0}^\infty a_nz^{n^2}$

Suppose that the power series $$\sum_{n=0}^\infty a_nz^n$$ has a radius of convergence of $R\in (0,\infty)$. How can we find the radius of convergence of $$\sum_{n=0}^\infty a_nz^{n^2}$$


How to order a list of objects using a list of object attributes

I have a list of objects with ids (object.id) and a list of ids. What is the most efficient way to use the list of ids to order the object list? I have the following solution... just wondering whether there is a faster one?  Input:   result = list of user objects with user ids (user.id)  list_of_ids = list of user ids e.g. [3, 2, 5, 8, 9]   Output:    list of user objects ordered according to list_of_ids   Code:  ordered_result = [] for user_id in list_of_ids:     for user in result:         if user_id == user.id:             ordered_result.append(user)             break


Power set of $\{\emptyset,\{\emptyset\}\}$

For writing the power set of $\{\emptyset,\{\emptyset\}\}$, do I have to consider $\emptyset$ as null set or as a member of the given set? If I consider $\emptyset$ as a member, then the power set is $\{\{\emptyset,\{\emptyset\}\}, \emptyset, \{\emptyset\}, \{\{\emptyset\}\}\}$. If my assumption is right, is there a better way to present the answer? Thanks in advance!


when I press 'N' I'm supposed to find a 'shadeless' option under shading, but I cant seem to make it appear. I've tried hard to find a solution but there doesn't seem to be one.   Here's how it's supposed to look like      and here's how mine looks like     Thank you in advance.


How do I output all properties of an object?

var test={   dha1:'Boolean',   dha2:'Boolean',   dha3:'Number',   dha4:'String' }  for(x in test){   console.log(test.x); }   Here i want my output as  Boolean Boolean Number String  But its return undefined for all four properties


Why don't you have downgrade tool?? I know it's a challenge but that's what LINUX is to accept the challenge. See I have installed Ubuntu 14.10 and I am very happy from it but I am not getting any software updates because its not LTS. So now I want to downgrade it, because I want my softwares up to date and security too. Now to go back to 14.04 LTS, I have to install again with cd or USB stick, it's tedious job. So u can make a downgrade tool.


Processing list of files variable in bash

Using myscript mydir/* I don't understand why bash is processing only the first element with the code below. #!/bin/bash  files="$1"  for f in "$files"; do   echo "Processing $f" done  What do I miss so that I can process a list of files given as an argument to the script?


What is the best way to bake a hi poly model texture to low poly model?

I have a high rise detailed model and I wish to bake the high poly textures to a low poly model version of the building


ubuntu 18.04 LTS bluetooth [0cf3:3004] discovery not working

I have upgraded ubuntu 16.04 LTS to ubuntu 18.04 LTS and since then bluetooth is not discovering any devices.  Here are the steps I performed:  Turned bluetooth on from settings (seems lag to moving towards bluetooth option rather then other settings).  It's still not discovering any devices and also toggle of on off takes too much time to turn on device to discover but anyhow it's not discovering devices.  Before downgrading I have tried to run live ubuntu 18.04 LTS and this is what I get as in snapshot:    So according to bluetooth toggle it should be turned on but it still says bluetooth is off and not scanning any nearby device.  tried to run some of the below commands:  ubuntu@ubuntu:~$ bluetoothctl Agent registered [bluetooth]# list [bluetooth]# devices No default controller available [bluetooth]# scan on No default controller available [bluetooth]# power on No default controller available [bluetooth]#    Laptop: Lenovo Z50-70    Update  jarvis@jarvis:~$ lspci -knn | grep Net -A3; lsusb 02:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter [168c:0036] (rev 01)     Subsystem: Lenovo QCA9565 / AR9565 Wireless Network Adapter [17aa:4026]     Kernel driver in use: ath9k     Kernel modules: ath9k 03:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce 840M] [10de:1341] (rev a2) Bus 001 Device 002: ID 8087:8000 Intel Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 004: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0 Bus 002 Device 003: ID 174f:14b2 Syntek  Bus 002 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 002 Device 006: ID 093a:2532 Pixart Imaging, Inc.  Bus 002 Device 005: ID 0781:5583 SanDisk Corp.  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub jarvis@jarvis:~$ dmesg | grep -i blue [   27.147743] Bluetooth: Core ver 2.22 [   27.147759] Bluetooth: HCI device and connection manager initialized [   27.147761] Bluetooth: HCI socket layer initialized [   27.147764] Bluetooth: L2CAP socket layer initialized [   27.147769] Bluetooth: SCO socket layer initialized [   27.160218] Bluetooth: hci0: don't support firmware rome 0x31010000 [   31.361588] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   31.361590] Bluetooth: BNEP filters: protocol multicast [   31.361593] Bluetooth: BNEP socket layer initialized jarvis@jarvis:~$


On the usual argument for a derivative not being defined at an endpoint

In elementary calculus, a usual argument for the derivative not being defined at an endpoint is that one of the lateral derivatives not being defined. See for example  page 3. Central to the definition of the derivative is that of a limit.   $$\lim_{x\rightarrow a}f(x)=b \Leftrightarrow \forall_{\epsilon}\exists_{\delta}\forall_{x}(x\in D \ \land \ x\in N_{\delta}(a)\ \Rightarrow \ f(x) \in N_{\epsilon}(b) )$$  I fail to see why they say that for an endpoint the derivative is not defined, when clearly using this definition of limit we can speak of continuity at an endpoint... For the left endpoint of a closed interval, the left limit would be defined for any $b$, since the premiss of the implication is false, making the whole implication true for whatever b.


How to enhance details (like freckles) in lightroom?

I searched over the web but all pages offers solutions via Photoshop. Is there a way to do it in lightroom or is PS the only solution? I'd think something like levels would help, but there are no levels in LR, or am I missing something?


Is it possible to prove that a triangle has 180 degrees, without using parallel line properties?

Please make the proof as simple as possible; I'm still a beginner. Or rather, it's fine if you make it complex, but try to explain it using layman's language.


Windows 10 Uefi removes Ubuntu Grub after each boot

After installing Kubuntu, if I boot into windows 10, I can no longer see Grub and only can boot into the windows. I reinstalled Kubuntu but the same thing happened.  Also Using Boot repair didn't fixt it :   Any help? thanks


Is there a way to define css rules dynamically via Javascript/jQuery?

With my question I suspect a lot of people may get confused between dynamic styling (what you can achieve by jQuery's .css() function and dynamic CSS rules. The first is where it only changes the styles of existing elements matching the selector. But what I am after is adjusting the rule so any new elements matching the selector will also use that (dynamic) rule.  As an example let's take a set of DIVs with class "pane".  I can change the background color of existing panes using $(".pane").css({"background-color": "#00f"});  But if I then add a new pane $("body").append("

"); it won't use this new style because it isn't a rule.  I don't understand why adding/changing CSS rules isn't the default behaviour? Was this ever discussed by a W3C working group to anyone's knowledge?  Does anyone know if it is possible to add or change CSS rules dynamically client side (ie without communicating with the server)?


Is hoard of bugs to be treated as singular or plural?      ...and what we mean by that is that a hoard of bugs were squashed relentlessly in this release     ...and what we mean by that is that a hoard of bugs was squashed relentlessly in this release


About $\frac{\partial^n f}{\partial x^n}$ ,for $f(x)$,What should I think, when $n[\in (\mathbb R\backslash \mathbb Q)^+]$ or $(\in \mathbb C)$?

About $\frac{\partial^n f}{\partial x^n}$ ,for $f(x)$,What should I think, when $n[\in (\mathbb R\backslash \mathbb Q)^+]$ ,pozitive irrational? or  $(\in \mathbb C)$  For example;  $f(x)=x^2+3x\quad$  and $\quad n=\sqrt2\quad\to\quad \dfrac{\partial^{(\sqrt 2)} f}{\partial x^{(\sqrt2)}}=?$  and,  $f(x)=x^2+3x\quad$ and $\quad n=\sqrt i\quad\to\quad\dfrac{\partial^{(\sqrt i)} f}{\partial x^{(\sqrt i)}}=?$  And I think,I did grammar mistakes in the tittle, sorry about this.


I've tried to understand why $\displaystyle\sum_{k=0}^{\infty} \frac{k^x}{k!}$ for lets say $x = 4$ equals $15e$.  It's clear why $\displaystyle\sum_{k=0}^{\infty} \frac{x^k}{k!} = e^x$ and that $\displaystyle\sum_{k=0}^{\infty} \frac{1^k}{k!}=e$   It's also unclear for me why $\displaystyle\sum_{k=0}^{\infty} \frac{k}{k!}=e$  I've tried to argue that $\displaystyle\sum_{k=0}^{\infty} \frac{e^k}{k!}= \displaystyle\sum_{k=0}^{\infty}\frac{k}{\ln(k!)}$ but that doesn't bring me further.  Hope someone here has got an idea for me  Thanks.


I have this form.js code. Please help me to redirect back to contact.html form after successful or error message.  $(function() {   function after_form_submitted(data) {     if (data.result == 'success') {       $('form#reused_form').hide();       $('#success_message').show();       $('#error_message').hide();     } else {       $('#error_message').append('

');       jQuery.each(data.errors, function(key, val) {         $('#error_message ul').append('
' + key + ':' + val + '
');       });       $('#success_message').hide();       $('#error_message').show();        //reverse the response on the button       $('button[type="button"]', $form).each(function() {         $btn = $(this);         label = $btn.prop('orig_label');          if (label) {           $btn.prop('type', 'submit');           $btn.text(label);           $btn.prop('orig_label', '');         }       });     } //else   }    $('#reused_form').submit(function(e) {     e.preventDefault();     $form = $(this);      //show some response on the button     $('button[type="submit"]', $form).each(function() {       $btn = $(this);       $btn.prop('type', 'button');       $btn.prop('orig_label', $btn.text());       $btn.text('Please Wait Sending ...');     });      var formdata = new FormData(this);      $.ajax({       type: "POST",       url: 'handler.php',       data: formdata,       success: after_form_submitted,       dataType: 'json',       processData: false,       contentType: false,       cache: false     });   }); });


$\sum_{n=1}^{\infty} a_n$ converges absolutely and $\sum _{n=1}^\infty a_{kn}=0 ,\forall k \ge 1 $ ; then $a_n=0 , \forall n \in \mathbb N $?

Suppose that the series $\sum_{n=1}^{\infty} a_n$ of real terms converges absolutely and $\sum _{n=1}^\infty a_{kn}=0  ,\forall k \in \mathbb N $ , then how to prove that $a_n=0 , \forall n \in \mathbb N $ ?


construction of linear independent local section in vector bundle

Let $X_1,\ldots,X_k$ be lineary independent local sections of a vector bunlde $V$, $rank(V)>k$, defined on some open set $U$. Can I construct a local section $X_{k+1}$ on a (maybe smaller) open subset of $U$, such that $(X_1,\ldots,X_{k+1})$ are lineary independent on the smaller subset?  edit: I know that answer, however I would be interested in a more "elementary" argument.


Connecting to a remote server through a VPN when the local network subnet address conflicts with a remote network

This is a  about solving IPv4 subnet conflicts between a VPN client's local network and one across the VPN link from it.   After connecting to a remote location via OpenVPN, clients try to access a server on a network that exists on a subnet such as 192.0.2.0/24.  However, sometimes, the network on the client's LAN has the same subnet address: 192.0.2.0/24.  Clients are unable to connect to the remote server via typing in its IP because of this conflict.  They are unable to even access the public internet while connected to the VPN.  The problem is that this subnet 192.0.2.0/24 needs to be routed by the VPN, but it also needs to be routed as the client's LAN.  Does anyone know how to mitigate this issue?  I have access to the OpenVPN server.


Difference between "I have got to study on weekends" and "I have to study on weekends"?

What is the difference between "I have got to study on weekends" and "I have to study on weekends"?


latex symbol for covering relation in posets

Is there a package with LaTeX symbols for the poset relations "covers" and "is covered by", as seen in ? I've tried creating ⋅> and <⋅ symbols on my own using \cdot, <, and >, but the spacing between the two symbols tends to vary, as does the surrounding space, in ways that don't look good.


When we send mails to AOL accounts, they are rejected and bounce back. After checking our IP on blacklists, there seems to be two lists on which our IP appears blacklisted. This comes as a surprise to us as we never spam and only mail our clients when necessary.   I have contacted our hosting provider and they are trying to delist our IP from the blacklist.   Is this realistically achievable, i.e. how do hosting providers go about doing this?


Why is the isometry of It\^o integral called so?

For functions $f$ satisfying appropriate (good) conditions, the following property is called to be isometric.     $$ E\left[\left|\int_{a}^{b}f(t,\omega)dB_{t}(\omega)\right|^{2}\right]=E\left[\int_{a}^{b}|f(t,\omega)|^{2}dt\right] $$   Here $B_{t}(\omega)$ is the Brownian motion.  Why is this called to be isometric?  If one defines the $L^{2}$-norm by $$ \|f\|_{L^{2}(P)}=(E[|f|^{2}])^{1/2}, $$ then the above equality is rewritten as $$ \left\|\int_{a}^{b}f_{t} dB_{t}\right\|_{L^{2}(P)}^{2}=\int_{a}^{b}\|f\|_{L^{2}(P)}^{2}(t)dt $$ provided that Fubini theorem is valid. However I don't look isometry as in functional analysis in Hilbert space, i.e., $\|Tf\|_{H_{1}}=\|f\|_{H_{2}}$ for some operator $T$. What I don't connect between Ito integral and Riemann integral is also a reason that I don't know why it's called to be isometric.  I'm glad if you tell me a reason.


Simple question I own a domain and from that domain i want to redirect users who opens my old domain URL to my New Domain URL.


How to install pygame in python 2.7.6 on ubuntu 14?

How can I install pygame in python 2.7.6 on Ubuntu 14? I've used sudo apt-get install python-pygame, but it does not work and gives me the following message: unable to locate package python-pygame. What shall I do now?


Which article should I use to refer to a noun in general. Is it “a car”, or “the car”?

I have a simple question. I wondered what article I should use to refer to a noun in general. Which one is the right form?   The story of the inventor of a car. The story of the inventor of the car.   And I'm not sure other usages of definite articles in the sentences above were right, either. Thanks in advance


Infinite universe, big bang = no singularity?

If we traced an infinite universe back in time towards t=0(ish) would a singularity still be formed?   Would the singularity be infinite in size? (To me it seems it would have to be) This reminds me of infinity x zero=....   Would an infinite singularity have some very unusual properties?  Also, how could an event horizon still exist if the singularity (at t=0) was spacially infinite?


Single word for "a word that can have different interpretations"

The importance of a factor depends on how importance is defined.   The word importance has a fuzzy nature open to different   interpretations and the importance of a factor depends on how   importance is defined.      In other words, importance is ...   How can I complete this sentence with one word?   Edit:  I prefer to use a neutral word without negative connotations, since I'm not against having different interpretations in this case. Rather, I mean depending on how importance is defined, we need a different method.


Possible Duplicate:          How can I be sure when to use 'all that' or 'all what' in making sentences. Is there any differences in their meaning. I've tried googling but the results just didn't match. For instance:      All that the president said was published in the dailies.    or     All what the president said was published in the dailies.


How can I see who the attendees/invitees are in a calendar event that I was invited too?  Is there a way for me to see who else is invited to a calendar invite that was sent to me?


Python: call a function from string name

I have a str object for example: menu = 'install'. I want to run install method from this string. For example when I call menu(some, arguments) it will call install(some, arguments). Is there any way to do that ?


Tabular with p type columns to fill page width

I wish to be able to have a table (using tabular) that fills the page horizontally with each column using a fraction of that space, for now assume that they are equally sized.  I wish to be able to use enumerations inside of the tabular, so I am using parabox's to achieve this.  Currently I have got:  \begin{tabular}{ | p{0.25\linewidth} |                    p{0.25\linewidth} |                    p{0.25\linewidth} |                    p{0.25\linewidth} | }  %content here after   except this uses all the space from the first margain to the end of the page. Which looks awful. I really want to avoid hard coding in any dimensions because I will want to play around with margins and orientation later.   If I could get it so that I can use a proportion of the text width for each column that would be great.


What happens if a Muggle born wizard/witch can't afford Hogwarts supplies?

What happens if a Muggle-born wizard/witch receives a Hogwarts acceptance letter but their family is very poor and doesn't have money to buy the school things on the shopping list? Would Hogwarts give them some kind of financial help?


Why do Linux world use the term i386 instead of x86?

I see the term i386 instead of x86 in many places related to Linux. As of my knowledge, they are not interchangeable. x86 is a family of instruction set architectures where i386 is a specific one of the x86 processors. But why do Linux world uses the term i386 instead of x86 ?    References:


Computing $\lim_{n\rightarrow \infty} \frac{1+\sqrt{2}+\sqrt[3]{3}+\cdots+\sqrt[n]{n}}{n}$.

I have a problem with the calculation of the following limit. \begin{equation} \lim_{n\rightarrow \infty} \frac{1+\sqrt{2}+\sqrt[3]{3}+\cdots+\sqrt[n]{n}}{n} \end{equation} I do not know where to start! Thank you very much


after installing ubuntu, can't start windows

After a difficult installation of ubuntu on a win 8 asus n56v, now I only can get ubuntu running... On starting computer I get different options including some win 8 (eg on sda2). I tried boot repair but didnt work. after choosing win8 i get message: "cant find command drive map" and "invalid efi file path". more info:  and here:   thanks, yoeri


How to change delete function on Photoshop?

I just upgraded from CS6 2018 to 2020. Now whenever I select a white background and press delete, a fill popup shows up instead of making the image transparent. How do I change this?


Missing text on toolbar buttons in LibreOffice Writer

For some reason the text is missing on all the toolbar buttons in LibreOffice Writer.     I have tried to uninstall and install it again, but it hasn't worked. Any idea what could be wrong?


How can I hide the Windows taskbar when I run my C# WinForms application?  I tried some code, but it opens in maximized view with the taskbar.  Do you have any sample code or suggestions?


When I download the ISO file, my system shows the file as a zip file and not as an ISO. I have tried to burn the file as an image to a DVD but my laptop will not bootup from the CD.  Setting in the BIOS are ok. So I guess the problem is with the ISO file or the way I burned the CD.  I have follwed the instructions on the site for downloading and burning an ISO image to CD. And I guess that my problem is with the file association in windows Vista.  Any ideas and suggestions are welcome  Thanks


Attempting too make things like 100 Sharpness swords in minecraft bedrock

So I have tried too make a sword with 100 sharpness using this command /give @s netherite_sword 1 0 {ench:[{id:16,lvl:5}]}  I seem to be getting an error that says  Line 1, Column 2, Missing '}' or object member name  That's pretty much the only thing I have tried since I'm not great at json, I'm not even sure this is possible on bedrock but I hope it is


Should I use IPv6 only or both IPv4 and IPv6 in my web server?

My web server (Ubuntu, Nginx) have both IPv4 and IPv6 addresses assigned by the host. For my website, shall I bind it to only an IPv6 address? Is it the standard recommended way? Or, shall I use both IPv4 and IPv6 addresses?


accessing files outside of /home in snap apps

I have just upgraded to a recent version of Ubuntu that uses snap apps, and I have trouble understanding how I'm supposed to use them to work with files outside of /home. I have three disks in my machine, a large photo library on sdb, backup drives, and other things; as snap apps are thus confined, they can not access any of them.  Only solution I can think of, is to bind mount everything to some folder under /home but that seems like a terrible thing to do every single time I want to look at a file. Searching the web brings up blog posts about snap interfaces and snap connections but it is unclear to me if that could be helpful.  So the question is: what is the intended method for using snap apps to work with files stored outside of /home?


Does a current workaround for babel and indexing Roman-numeral page numbers exist?

Until recently, one could redefine \textlatin to expand to its argument in order to allow index entries using Roman numerals and babel when a non-ASCII encoding is loaded together with ASCII encodings.  The recent changes to babel now make that obsolete. If any non-ASCII encoding is present, an encoding selection is made, along with a font switch. This is done via \AtBeginDocument and the process related to \ensureascii.  Consider this MWE:  %!TEX program=pdflatex  \documentclass{memoir}  \usepackage[utf8]{inputenc} \usepackage[LGR,T1]{fontenc} \usepackage[greek,english]{babel} \usepackage{makeidx} \makeindex  \begin{document} \frontmatter \meaning\thepage  \index{\string\thepage}  \mainmatter \meaning\thepage \index{\string\thepage}  \backmatter \printindex \end{document}   The .idx file will have:  \indexentry{\string\thepage}{{\fontencoding  {T1}\selectfont  i}} \indexentry{\string\thepage}{1}   That will not play well with makeindex for similar reasons as the former use of \textlatin. One will lose all one's index entries in the front matter.  Is there any elegant workaround that anyone has discovered? Or perhaps stick with an old version of babel?  I hesitate to use sed to stroke the .idx file in conjunction with latexmk, which otherwise does a marvelous job at creating the document on which I am working.  Although I understand why this design decision is quite helpful in many places, it does complicate indexing.


Cannot communicate between two VM on the same physical machine using NAT IP Addressing

I have one physical machine, on it there are 2 virtual machines. One of the VM is the application machine, another is the db machine. All are running Windows XP.  I am using Sun Virtual Box for virtualization purpose.   One thing I notice is that on both virtual machines, the IP address is exactly the same.   The problem with this is that I can't connect to the db machine, using MySQL Administrator from my application machine, because I will have to specify the IP of server host, which, in this case, is exactly the same for both db machine and application machine!  I also try to use Hamachi address ( because the Hamachi address is different for different VM), but I always get a "cannot connect" problem, even though I can, from one VM, ping the Hamachi address of another VM.  Any idea how to solve this?  Edit: Dave has a . Here is  on how to configure Sun Virtual Box 2.2 bridged connection.