This question is a narrowing of one  of the questions I asked in . html4.4t contains this statement:  \Configure{float}    {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}    {\:xhtml{\IgnorePar\EndP}\HCode{

}}    {\ifvmode \IgnorePar \fi\EndP     \HCode{

}\csname par\endcsname\ShowPar}   I tried copying this code into my .cfg file, removing the hr tags. This created an error "Missing $ inserted" right before the \begin{center} when I run tex4t. I then just pasted this verbatim into my .cfg file, but still get the error.   Here's all it takes to see this problem:  \documentclass{book} \begin{document} \chapter{Simple Example} \begin{table} \begin{center} \hbox{ \begin{tabular}{|l|c|c|}\hline entry1&entry2&entry3\\ entry4&entry5&entry6\\ \hline \end{tabular}} \end{center} \caption{a caption} \end{table} \end{document}   How do I override this Configure statement to remove the hr tag?

I'm trying to prepare html for conversion to an epub and have encountered a couple of problems that I would appreciate help with. Hope mixing a couple of related questions in a single post is OK.  The easiest is the quotation environment doesn't indent both margins (and not enough on the left). I've written a .cfg file and think I have that one solved. Here's what I'm using:  \Preamble{html} \begin{document} \Css { .quotation { margin-bottom:0.25em; margin-top:0.25em; margin-left:4em; margin-right:4em } } \EndPreamble   The next is figures and tables. tex4ht inserts an hr tag before and after the table. This is not part of the css, it's a separate tag generated by tex4ht. I haven't found where one customizes this. I can delete these in emacs from the html, but that doesn't seem the right way to do this. Here's a fairly minimal example showing the rules (and the quotation indent as well).  \documentclass{book}  \begin{document}  \chapter{Simple Example}  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla.  \begin{quotation} Default book style icreases the left and right margins for quotations by a noticeable amount. The css generated by tex4ht only increases the left margin by one em. The attached .cfg increases this to 4 em.  \end{quotation}  Sed lectus. Integer euismod lacus luctus magna. Quisque cursus, metus vitae pharetra auctor, sem massa mattis sem, at interdum magna augue eget diam. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi lacinia molestie dui. amet mauris.  \begin{table} \begin{center} \hbox{ \begin{tabular}{|l|c|c|}\hline entry1&entry2&entry3\\ entry4&entry5&entry6\\ \hline \end{tabular}} \end{center} \caption{a caption} \end{table}   Morbi in dui quis est pulvinar ullamcorper. Nulla facilisi. Integer lacinia sollicitudin massa. Cras metus. Sed aliquet risus a tortor.   \end{document}   [Edit 2] I'm pretty sure the hr tag is being generated for all floats. By trial and error I found my way to the html4.4ht file, which contains this code:  \Configure{float}    {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}    {\:xhtml{\IgnorePar\EndP}\HCode{

}}    {\ifvmode \IgnorePar \fi\EndP     \HCode{

}\csname par\endcsname\ShowPar}   On the assumption that the \HCode macro defines the html output, I removed the hr tag:  \Configure{float}    {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}    {\:xhtml{\IgnorePar\EndP}\HCode{
}}    {\ifvmode \IgnorePar \fi\EndP     \HCode{
}\csname par\endcsname\ShowPar}   When I run htlatex with this config file, I get an error on a \begin{center} that is within a begin{table}. Without this change to the config file it runs fine, it has something to do with the edit, but since I don't really understand what's going on here, I'm utterly baffled as to how to fix it.  [End Edit 2]  [Edit 3]  The problem is not the change to the \Configure statement, but the presence of the \Configure statement in the .cfg file. Even if I copy the \Configure statement verbatim, I still get an error when \begin{center} is encountered. The error is "Missing $ inserted"  [End Edit 3]  The captions for figures and tables are not on the float page, but follow immediately on the next page after conversion to epub. Is this an html problem that can be fixed in tex4ht, or is it a problem in how Calibre is interpreting the html?  (updating to the current version of Calibre fixed this)  Should I be producing xhtml instead of html?  I'd be grateful for a pointer to good documentation about customizing tex4ht.


I followed some online instructions for installing StarCraft II from  and then it was trying to download eurofixi.exe from an FTP site and not getting any response and having to repeat itself over and over with no success.   The game seems to have downloaded, but there's no executable file to run with Wine.  When I try to redownload the game to play it on Ubuntu 14.04, it gives me the option press play, and when I do this it loads the game in part, asks me to login to  (not giving me the option to play offline) and then goes pear-shaped.  In the last paragraph in the  Installing StarCraft II on Ubuntu 14.04 tutorial it said.     If you encounter any other issues, check out the blog posts I mentioned previously for some tips. If those don't help you and Google fails you, head over to Ask Ubuntu and try to find help there.

I am looking for a step by step instruction to guide me in the ways of installing, configuring and debugging many of the issues new users have when dealing with Wine in Ubuntu.  What is the recommended way of installing Wine, some of the key issues that it has and how to solve them?  If I have a specific problem with an App in Wine, how do I go about solving it? What are the recommended steps to ensure that I can fix a problem related to an app I wish to use?


Missing as in, if I do find it and try to do something with it, iTunes will say "The file is not there; want to look for it?"  I suspect there are two of them, because every time I sync iPad, I get two pop-ups of "one item failed to sync, ask iTunes for the reason"  But there are never any pop-ups on iTunes.

I recently had a mishap with my music library, resulting in the untimely termination of hundreds of innocent music files. These songs were not removed from iTunes, so there are many tracks that are seemingly normal, but upon closer inspection are actually gone, never to be seen again.  Is there any way I can make a smart playlist or something that'll show me only tracks whose source file can't be found?


I hold a China main-land passport.  I am doing study abroad from the US to France and Spain. With all the confusion and my poor judgement, now I end up with a short stay visa in France (Schengen visa). This only covered my stay in France but not long enough for my classes in Spain. Is it possible for me to extend my stay in Spain?

My daughter applied at the Italian Consulate in Philadelphia, and they gave her two entries for 20 days (we thought it was for 20 days each entry). She was in Italy 12 days, then went to England for 1 week and flew to Venice to take a 10-day cruise. She couldn't make it because they said she has only 8 remaining days, but she still has a land tour already paid this week.  What can she do? Can she extend the Schengen visa for 12 more days? Right now, she is in Madrid, but next week she has to fly from Barcelona to Paris to start with the tour. What would happen if she decides to take the tour with the expired visa? She is a US permanent resident.


I got always the error "latex error something's wrong--perhaps a missing item" in the two first items of my bibliography. In the output, the first item is not taken and the second one has two reference as you can see on this screenshot:    This is a code snap of the bibliography:  \phantomsection               \addcontentsline{toc}{chapter}{\bibname}  \bibliographystyle{bib/bmc-mathphys}   \begin{thebibliography} \bibitem{b1} .....  \end{thebibliography}

I was reading the explanation about  and was totally confused:     The thebibliography environment has an argument which should be a string at least the length of the widest entry label in the source list. Instead of using the numbers generated by the environment as entry labels, you can specify your own by using an optional argument to \bibitem, but remember to increase the length of the argument to the thebibliography command.    What does "widest entry label" mean? Practically, what should I put as the argument in   \begin{thebibliography}{?}   or is the argument not necessary?


I'm trying to trigger an event attached to a html  tag  This table is builded insde a function       function detail(id){       console.log(id)     }  function search(data){                 $.post(url, {valorBusqueda: textoBusqueda}, function(data) {                      data = JSON.parse(data);                          $.each(data, function(i, val){                                  id = val.id;                                   html += '<tr onclick="detail('+id+')">';                                 html += '<tr>';                             }                         });                         });  }   But when I click the  element I get this err:   Uncaught ReferenceError: detallePaciente is not defined  when is actually defined in my file  any idea how could I solve this?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Let $\Gamma$ denote the positively oriented circle of radius $2$ with center at the origin. Let $f$ be an analytic function on $\{z\in\mathbb{C}\ |\ |z| \gt 1\},$ and let $$\lim_{z\to\infty} f(z)=0.$$ Prove that $$f(z)=\dfrac{1}{2\pi i}\int_{\Gamma}\dfrac{f(\zeta)}{z-\zeta}\ d\zeta$$ for all $z\in\mathbb{C}$ with $|z|>2.$  By the given condition it is clear that $\lim\limits_{z \to 0} f \left ( \dfrac 1 z \right ) = 0.$ Now define a function $g : B(0,1) \longrightarrow \Bbb C$ by $$ g(z) = \left\{         \begin{array}{ll}             f \left (\dfrac 1 z \right ) & \quad 0 \lt |z| \lt 1  \\             0 & \quad z = 0         \end{array}     \right. $$ Then $g$ is analytic on $B(0,1).$ Let $\Gamma' (t) = \frac {1} {\Gamma (t)},$ where $t$ varies over the parameter interval of $\Gamma.$ Then $\Gamma'$ is a circle of radius $\frac {1} {2}$ traversing in the clockwise direction. Since $g$ is analytic on and inside of $\Gamma'.$ So by Cauchy's integral theorem it follows that for all $z \in \Bbb C$ with $|z| \lt \frac {1} {2}$ we have $$g(z) = - \dfrac {1} {2 \pi i} \int_{\Gamma'} \dfrac {g(\zeta)} {\zeta - z}\ d\zeta.$$ Hence for all $z \in \Bbb C$ with $|z| \gt 2$ we have $$f(z) = g \left ( \frac 1 z \right ) = - \dfrac {1} {2 \pi i} \int_{\Gamma'} \dfrac { g (\zeta) } {\zeta - \frac 1 z}\ d\zeta.$$ Can it be shown that $$-\displaystyle { \int_{\Gamma'} \dfrac {g(\zeta)} {\zeta - \frac 1 z}\ d\zeta = \int_{\Gamma} \dfrac {f(\zeta)} {z - \zeta}\ d\zeta}$$ for all $z \in \Bbb C$ with $|z| \gt 2\ $? Any help in this regard will be highly appreciated. Thanks in advance.

Let $f$ be analytic in $|z|\ge1$ and  $\lim_{z\to\infty}f(z)=0$. Then is $f(z)=\frac1{2\pi i}\int_{\Gamma}\frac{f(\zeta)}{z-\zeta}d\zeta$,$\forall |z|\ge2$, where $\Gamma$ is the circle of radius $2$ with centre at the origin.   I think yes, by the Cauchy integral formula. But, how do we ensure that the non analyticity of $f$ in $|z|<1$ dosent affect the formula? Thanks beforehand.


I echo a whole table to the div and then I can't access the id of it by some reason via jquery, what should I do?  I don't know how to ajax the datatable so I echo the whole table with post and it all work fine.  No error just can't access ID of button In the table I echo  I don't know what line of code I should provide here because everything work fine except I can't access the id of the button in the datatable that I echo from fetch.php to index.php   I checked with inspect mode and the ID are there with everything (ex. $(#'PROID112').click(function() ) <- the id of the buttons was all in place  Solution: I fixed it myself by changing  $('#id').click(function())  to  $(document).on('click', '#id', function()  thank you everyone for your answer ;)


Show that the polynomial $h(x)=(x-1)(x-2) \cdots (x-n)-1$ is irreducible in $\mathbb{Z}[x]$ for all $n \geq 1$.   This problem seems to be hard to solve. I thought I could use Eisenstein in developping this polynomial, but it is a bad idea. Another idea would be to suppose the existence of $f(x)$ and $g(x)$, and suppose that $f(x)g(x)=(x-1)(x-2) \cdots (x-n)-1$. In this direction, we could analyse the roots of $h(x)$ I guess.  Is anyone could help me to solve this problem?

Question is to prove :   Irreducibility of $(x-1)(x-2)\cdots (x-n)- 1$ over  $\mathbb{Z}$ for all $n\geq 1$ Irreducibility of $(x-1)(x-2)\cdots (x-n)+ 1$ over  $\mathbb{Z}$ for all $n\geq 1$ and $n\neq 4$   Hint for first bullet is      If the polynomial factors consider the value of the factors at $x=1,2,\dots,n$   For second bullet :  Suppose $p(x)=(x-1)(x-2)\cdots (x-n)-1$ is reducible we have:  $p(x)=q(x)r(x)$ with $\text {Max {degree of p(x), degree of r(x)}}<n$  Hint is suggesting me to use that $p(i)=-1$ for all $1\leq i\leq n$   i.e., $q(i)r(i)=-1$ for all $1\leq i\leq n$  i.e., $q(i)=-1; r(i)=1$ or $q(i)=1;r(i)=-1$  for all $1\leq i\leq n$  For second bullet :  Suppose $p(x)=(x-1)(x-2)\cdots (x-n)+1$ is reducible we have:  $p(x)=q(x)r(x)$ with $\text {Max {degree of p(x), degree of r(x)}}<n$  Hint is suggesting me to use that $p(i)=1$ for all $1\leq i\leq n$   i.e., $q(i)r(i)=1$ for all $1\leq i\leq n$  i.e., $q(i)=r(i)=1$ or $q(i)=r(i)=-1$  for all $1\leq i\leq n$  I am getting some vague ideas but could not bind them to prove this.  I would be thankful if some one can help me to clear this.  Thank you.  P.S : Please give "just hints". Do not write whole answer at once. This is a "request". Thank you :)  Edit : I have changed the title from   Irreducibility of $(x-1)(x-2)\cdots (x-n)\pm 1$ over $\mathbb{Z}$  to   Existence of Irreducible polynomials over $\mathbb{Z}$ of any given degree  for two reasons :   Irreducibility of $(x-1)(x-2)\cdots (x-n)\pm 1$ over $\mathbb{Z}$ for any $n\geq 1$ implies Existence of Irreducible polynomials over $\mathbb{Z}$ of any given degree The title looks atractive


what is the use of static variable in this program   /* program to find the addition of n numbers without using recursion:*/ #include<stdio.h>  int main(){      int n,sum;      printf("Enter the value of n: ");     scanf("%d",&n);      sum = getSum(n);      printf("Sum of n numbers: %d",sum);      return 0; }  int getSum(n){      static int sum=0;      if(n>0){          sum = sum + n;          getSum(n-1);     }      return sum; }

I've seen the word static used in different places in C code; is this like a static function/class in C# (where the implementation is shared across objects)?


Show that any non-negative rational integer of the form   -- where the $p_1,p_2,...,p_m$ are all primes congruent to 1 mod 4, the $q_1,q_2,...,q_n$ are all primes congruent to 3 mod 4 and $i,k_1,k_2,...,k_m,j_1,j_2,...,j_n$ are all non-negative integers -- may be written as the sum of two squares.  My Work So Far:   I showed that if x and y may both be written as the sum of the squares of two integers then their product may also be written as the sum of two integers squared I showed that if p is an integer prime congruent to 1 mod 4 then p is not a prime in Q[$\sqrt{-1}$] I showed that if p is an integer prime congruent to 1 mod 4 then there are rational integers a and b for which $p=a^2+b^2$   I'm just not sure how to combine these results. Any help would be welcome, thank you!

Show that any non-negative rational integer may be written as the sum of two squares if it is of the form $$2^ip_1^{k_1}p_2^{k_2}\cdots p_m^{k_m}q_1^{2j_1}q_2^{2j_2}\cdots q_n^{2j_n}$$ where the $p_1,p_2,\dots,p_m$ are all primes congruent to $1\bmod 4$, the $q_1,q_2,\dots,q_n$ are all primes congruent to $3\bmod 4$ and $i,k_1,k_2,\dots,k_m,j_1,j_2,\dots,j_n$ are all non-negative integers.   I am completely blank on how to form a solution, so help would be much appreciated.


I have a code where in there is a for loop and inside for loop I have a SOQL with 'LIKE' operator, its like this  for() { schemes=[SELECT id, name from somecustom object LIKE :name ] }   and name is being evaluted everytime for each iteration over for loop I need to pull soql out of for loop How do i achieve this? Any ideas would be of great help

I have a need to replicate SOQL's LIKE behaviour in Apex:  The % wildcard matches zero or more characters The _ wildcard matches exactly one character Case insensitive  including for cases where characters that have special meaning in regular expressions are used e.g. ( and ). What code do I need?


A video I came across in youtube recently had mentioned how Einstein perceived time. It said he thought of all moments, the present, past and future to exist together and how it is not like one follows the other. I did not quite understand the concepts mentioned in the video, although I have a basic understanding of relativistic effects. I understand that time slows down as you approach the speed of light, not to you, but to people observing you and the length contraction and everything. But I am still unable to wrap my head around concepts like light does not experience time and the past, present and future co-exist etc. Can someone give me a detailed explanation? You can include math too if required. The link to the video can be found below.    Edit 1 : Can someone explain the concept of block universe? Analogies will help.

According to special relativity, a photon traveling at the speed of light, does not “experience” time. It is traveling into the future at an infinite rate, right?  That would mean that everything that could ever happen (my death, Trump winning the election, death of sun, end of the universe), has already happened (from the frame of a photon). We're just too "slow" to experience this.  Is this correct? Because that would bring some weird implications about free will, and the very nature of our existence. If everything has already happened, then we're just following a predetermined path.  Edit 1: I'm genuinely fascinated by this topic, however, I am also an idiot with very superficial knowledge, gained mostly from youtube videos and Wikipedia. Bear that in mind :)  Edit 2: The nature of my question seems to leave the realm of physics and cross into a philosophical issue. I was seeking physical explanation, to help answer something of philosophical nature, as both these realms seem to coincide for this particular topic.   Some have pointed out that thinking about the frame of a photon doesn't make sense. Instead, one could assume a spaceship traveling at $0.9999c$.


I found a Mass Effect 2 game in one of the stores in the Philippines, but they said that my Xbox must be a US Version, and that it won't work as my Xbox is a Japanese Version. I later found out on the internet that Mass Effect 2 is region free. Is it true?

I have an unused copy of Mass Effect 2 Collector's Edition bought via Amazon.com in the US, including a special code for Inferno Armour (also unused).  Will it work fine if I install and start playing the game in the UK? Does geographical location matter?  Thanks!


The  states     Section 3 – License Conditions.      Your exercise of the Licensed Rights is expressly made subject to the following conditions.      a. Attribution.         If You Share the Licensed Material (including in modified form), You must:      A. [...]      B.           indicate if You modified the Licensed Material and retain an indication of any previous modifications; and      However when moderators edit user's comments, there is no indication that a comment was modified by a non-Licensor.  Thus SO violates the Section   of the CC BY-CA 4.0.  Fix this ASAP.

As far as I know according to CC BY-SA 3.0 if someone edits any question/answer of a user then proper attribution is given that someone edited such and such content at say 12 P.M 1 January 2015. The CC BY-SA 3.0 license is for any kind of contribution from any user. I've recently noticed that if a moderator changes the text of someone's comment then no proper attribution is given, that is its not mentioned that text is not modified by the OP but by the moderator.    So my question is, isn't it a violation of CC BY-SA 3.0?


Let $T \in B(X)$ and $\lambda  \in \sigma (T)$, why is there a sequence like $\left\{ {{x_n}} \right\}$  in $X$ with $\left\| {{x_n}} \right\| = 1$ such that $\mathop {\lim }\limits_{n \to \infty } \left\| {T{x_n} - \lambda {x_n}} \right\| = 0$?

This is a problem from Conway’s Functional Analysis:     Definition An approximate eigenvalue for $ T \in B(X) $ is a scalar $ \lambda $ such that there is a sequence of unit vectors $ x_{n} \in X $ such that $ T(x_{n}) - \lambda x_{n} \rightarrow 0 $.    Show that any eigenvalue for $ T $ is an approximate eigenvalue for $ T $, and that any approximate eigenvalue for $ T $ lies in the spectrum of $ T $, which we denote by $ \sigma(T) $. If $ X $ is a Hilbert space, show that $ \lambda \in \sigma(T) $ if and only if either $ \lambda $ is an approximate eigenvalue for $ T $ or $ \overline{\lambda} $ is an eigenvalue for $ T^{*} $.


i want to set php session value from javascript i know it is not possible to do from javascript so i made this code  javascript:   window.open("test.php?s=1");   php:  session_start();     if(!empty($_GET['s'])) {         $_SESSION['test']= $_GET['s'];     }   it is working and all but only problem is that it opens new window and user have to close it  is it possible to do something like that without opening new window? i know it is possible to do with xmlhttp.open but it didn't really worked for me + i have no idea how to use it, tried to understand it by searching info in google but couldn't so i figured out that this way i am doing is the simples for me just need to do it without opening new window

I need to do an  request in JavaScript. What's the best way to do that?  I need to do this in a Mac OS X dashcode widget.


I just installed 16.10 today and it's made using my computer nearly impossible. I want to reinstall 16.04 and just get rid of 16.10 and never touch it again. I tried looking it up how to do it and the help page led me to  but I can't find the ubuntuinstaller. Can anyone else suggest something?

I would like to see a full how-to guide on how to install Ubuntu.


I am trying to make a tic-tac-toe game. I made this function which supposed to update the board values (insert 'X' or 'O') but the struct simply doesn't update, it shows that the values stay the same as initialized.  #include <iostream>  struct Board {//initializes a struct     char A1 = ' ';     char A2 = ' ';     char A3 = ' ';     char B1 = ' ';     char B2 = ' ';     char B3 = ' ';     char C1 = ' ';     char C2 = ' ';     char C3 = ' '; };  struct Board InputSignInStruct(char num, char letter, struct Board b,char sign) {//a function which is supposed to update values in the struct     if (letter == 'A')     {         if (num == '1')             b.A1 = sign;         if (num == '2')             b.A2 = sign;         if (num == '3')             b.A3 = sign;     }     if (letter == 'B')     {         if (num == '1')             b.B1 = sign;         if (num == '2')             b.B2 = sign;         if (num == '3')             b.B3 = sign;     }     if (letter == 'C')     {         if (num == '1')             b.C1 = sign;         if (num == '2')             b.C2 = sign;         if (num == '3')             b.C3 = sign;     }     return b; }  int main() {     struct Board b;     char letter,num;     std::cin>>letter>>num;     char sign;     std::cin>>sign;     b = InputSignInStruct(letter, num, b, 'X');//should return the updated struct but it doesent update }

What is the difference between    a parameter passed by reference a parameter passed by value?   Could you give me some examples, please?


I am struggling with using Python to export an mxd to PDF. The final PDF would have 4 pages, each with the same extent but with a different layer displayed. Below is the code I entered into the ArcMap 10.4 Python console and at the bottom is the runtime error I received. There is a lot happening in the runtime error and I don't know which are the key errors, which makes it hard to Google and fix. I can't tell if there is something wrong with my python installation or if there is something wrong with my code.   Can you help me breakdown what this runtime error means (referencing specific snippets from the error message) and how I resolve it?      >>> import os, arcpy ...  ... #Specify output path and final output PDF ... outPath = r"C:\Users\Tony\Desktop\"" ... finalPdf = arcpy.mapping.PDFDocumentCreate(outPath + "mapbook.pdf") ...  ... #Specify the map document and the data frame ... mxd = arcpy.mapping.MapDocument("CURRENT") ... df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] ...  ... #Turn on visibility for each theme and export the page ... lyrList = ["5ft Contour Intervals", "Satellite Imagery", "Percent Slope", "Aspect (compass degrees)"] ... for lyrName in lyrList: ...      lyr = arcpy.mapping.ListLayers(mxd, lyrName, df)[0] ...      lyr.visible = True ...  ...      #Export each theme to a temporary PDF and append to the final PDF ...      tmpPdf = outPath + lyrName + r"\"temp.pdf" ...      if os.path.exists(tmpPdf): ...           os.remove(tmpPdf) ...      arcpy.mapping.ExportToPDF(mxd, tmpPdf) ...      finalPdf.appendPages(tmpPdf) ...  ...      #Turn off layer visibility and clean up for next pass through the loop ...      lyr.visible = False ...      del lyr, tmpPdf ... del mxd, df, finalPdf ...  Runtime error  Traceback (most recent call last):   File "<string>", line 21, in <module>   File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\utils.py", line 182, in fn_     return fn(*args, **kw)   File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\mapping.py", line 1156, in ExportToPDF     layout.exportToPDF(*args) AttributeError: Invalid destination path >>>

Based on my understanding of the ArcGIS path structure, a feature class inside a feature dataset inside a geodatabase can be accessed by the following:  C:\Menu\Lunch.gdb\Sandwich\Cheese   Where Sandwich is the feature dataset and Cheese is the feature class.  In a python script, I want to construct this full path, so that I can check it using arcpy.Exists(x). I have the following variables (pseudocode):  WSpace = C:\Menu\Lunch.gdb\ FDSName = Sandwich FCName = Cheese   Concatenating WSpace and FDSName gives the correct path to the feature dataset. What I need help with is tacking FCName onto the end. I would think the following code would work, but it renders a space instead of the backslash character:  fullPath = WSpace + FDSName + r"\" + FCName   Instead of r"\", I have also tried "\\", and "/", but they all render a space. This seems like a simple syntax problem.


Let's see this example C# code:  List<int> numbers = new List<int>() { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; int numCount = numbers.Where(n => n < 3 || n > 7).Count();   I'm insterested in cloesest equivalent in Java, obviously without need to write fancy for/foreach loops to iterate in collection.  As far as I know, there is no exact linq equivalnet in Java, however I'm still beginner in Java programming, so is there anything you could recommend for me? I'm actually looking for most compact and elegant way to achieve the same result in Java  [added] So, thanks for all reponses. However, I need to use it on Android and it seem I can't. Is there any solution for that?  (sorry it it's duplicate)  [added] Have anybody tried this?

I want to filter a java.util.Collection based on a predicate.


My .cache folder is occupying over 6GB of space. It is safe to delete it? The contents of my .cache are:  bazel  dconf  fontconfig  jedi  matplotlib  motd.legal-displayed  pip

When I use disk usage analyzer and scan my home folder, the .cache folder in my home directory always shows up with a decent bit of things in it.   Would it be okay for me to delete the contents of this folder or would it damage something?


I was looking back on complex analysis and asked myself: ''Why is there no complex number in 3 dimensions ?''. To place this question let me define with what I mean with 3 dimensions in the following.  When we first explore the  we start by looking at roots of negative numbers where we define (in order to solve equations with negative roots):$$i=\sqrt{-1}.$$ Using this imaginary unit we can define a complex number as $$z=a+ib,\text{ with } z_1z_2=(a_1a_2-b_1b_2)+i(a_1b_2+a_2b_1),$$ or written as a 2-tupel:$$z=(a,b),\text{ with } z_1z_2=(a_1a_2-b_1b_2,a_1b_2+a_2b_1).$$The complex number has one real variable and one imaginary variable, so it can be represented as in a 2-dimensional plane.  If we make it more complex (no pun intended), we arrive at the , which are an extention of the complex numbers, here we have 3 imaginary units $i$, $j$ and $k$ with the property: $$i^2=j^2=k^2=ijk=-1.$$This number can be represented in a 4-dimensional space (so I say it has 4 dimensions).  Now I was wondering if there might exist some kind of complex number with only 2 imaginary units $i$ and $j$ which might be represented as a number in the 3 dimensional plane ?  If i look at the way the quaternions are constructed I think the answer is maybe, the reasoning I have for this is that given 2 imaginary numbers $i$ and $j$ we could construct it analogous and state that $$i^2=j^2=-1,$$ but what to do with the product $ij$? The product should square to one so it should be minus one or one:$$ij=-1\quad\text{ or }\quad ij=1.$$If it squared to minus 1 it would be a new complex number, and then we would get that one of the numbers $i$ or $j$ is redundant (unless we itroduce a third one of course), so we continue with the demand that the second relation holds.  Doesn't this give a valid way of constructing 3D-complex numbers ? Now for the quaternions itself you could argue the same and you could also choose that $ijk=+1$, is there a reason that the $-1$ is chosen (maybe this coincides with rotations in 3D ?)?

Why are the only (associative) division algebras over the real numbers the real numbers, the complex numbers, and the quaternions?  Here a division algebra is an associative algebra where every nonzero number is invertible (like a field, but without assuming commutativity of multiplication).  This is an old result proved by Frobenius, but I can't remember how the argument goes.  Anyone have a quick proof?


The problem is like this:  A standard deck contains $52$ cards, $4$ each of $2,3,4,5,6,7,8,9,J,Q,K,A$. Now start the following process. Pick a random card from the deck, show it, and then return it to the deck. Continue repeating this process, stopping when each type of card, $2,3,4,5,6,7,8,9,J,Q,K,A$ has been seen at least once. What is the expected number of cards that you will have drawn?  My idea is that as each type of card have the same number of cards ($4$), the problem can be converted into a deck wich contains $13$ cards only with $1-13$. However, I have no idea about the next step.

What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die?  The order in which the numbers appear does not matter.  I had this questions explained to me by a professor (not math professor), but it was not clear in the explanation.  We were given the answer $(1-(\frac56)^n)^6 = .5$ or $n = 12.152$  Can someone please explain this to me, possibly with a link to a general topic?


I saw this cartoon only once, about 10-15 years ago, and since middle. There was a character called "space fly" or so – the glowing flying ball which help the main character – a man with sword hilt. Main character searching for the blade for that hilt to assemble a weapon with which he can kill the main villain who is a cyborg, but it shows (that he is a cyborg) only in the final battle in the end of the movie. Through the cartoon, main character fights with the enemies (robots whitch serves the main villain) with his sword hilt (in the moment of hit the enemy, from hilt grows red glowing blade, something like jady blade). In the final battle, main character loses his hilt, but space fly tell him, that blade never exist, and he should to believe in his own forces. After that, he can grow the glowing blade from his hands, and win.  Forgive me my broken English, but help me to find how called this cartoon. It's memories torture me more then 10 years and I must see this film=).  P.S. It's not He-man. Drawing more similiar with "Transformers: the movie" 1986, and I think cartoon was USA or USA/Japan.

Though at the time I saw it I did not know it, this would be called "anime" today. It was in English, and I don't remember if the characters lips matched the audio track. I couldn't have been older than about 3rd grade, so that puts it around 1985ish I believe.  It was released theatrically in the United States, I do not know if it was a limited release. I saw it in Cincinnati, Ohio. No idea what movie theater chain.  The story was rather typical, young man who goes on the hero's journey. Definitely science fiction elements (flying vehicles, maybe spaceships). He comes across or is given a sword hilt without a blade. He learns to use it, and when he does it acts as if the blade is there. At the finale, he has lost the hilt entirely and, thinking that he has lost, almost gives up. But a (voice in his head, his mentor, can't remember what) something tells him to try despite this, and it's as if he has the sword even without the hilt. He then triumphs.  Can anyone identify this movie?


Is it possible to install the Creative Cloud on WINE? I tried to run it using default settings and it crashes instantly. Was hoping someone got this working. Right now I dual boot Win and Ubuntu, and my whole workflow is so much faster, except when I have to do Video Editing and I need both After Effects and Premier Pro. Both of which are on my Windows boot.  I Tried using Open shot, and its too buggy, not enough features, and crashes my desktop when trying to do anything with it.

I am looking for a step by step instruction to guide me in the ways of installing, configuring and debugging many of the issues new users have when dealing with Wine in Ubuntu.  What is the recommended way of installing Wine, some of the key issues that it has and how to solve them?  If I have a specific problem with an App in Wine, how do I go about solving it? What are the recommended steps to ensure that I can fix a problem related to an app I wish to use?


How should I calculate the below limit  $$\lim_{n\rightarrow \infty} \frac{1^n+2^n+3^n+...+n^n}{n^n}$$ I have no idea where to start from.

I can show that the following limit exists but I am having difficulties to find it. It is $$\lim_{n\to \infty} \sum_{k=1}^n \frac{k^n}{n^n}$$ Can someone please help me?


Does anyone know what is the font/style used in this article    PS: No font information included in the properties of the pdf file (File->Properties->Fonts).  Best regards

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


i.e. I have 2-step inherited class, and have access  only Parent_1 class:  public class Base {     public virtual void hello (){} }  // public class Parent_1 : Base {     public override void hello (){ Print("Hi 1"); } }  public class Parent_2 : Parent_1 {      public override void hello (){ Print("Hi 2");  xyz =123; }  }   I don't have access to any code other than Parent_1. I want, when Parent_2's hello is executed, my Parent_1's hello was also fired.    I think there should exist some way, so when Parent_2 is executed, somehow I got notified (event handler or whatever) in Parent_1 , is not that possible?  I know xyz is "changed" there, so maybe a "property change observer" ?

I have two classes:  public class MyBase {     public virtual void DoMe()     {      } }  public class MyDerived:MyBase {     public override void DoMe()     {         throw  new NotImplementedException();     } }   And I have the following code to instantiate MyDerived:          MyDerived myDerived=new MyDerived();   The thing is how to call DoMe of the base class? If I use myDerived.DoMe(), then the derived method wil be called, resulting in an exception. I tried to cast myDerived to MyBase, yet it is still the derived version of the method that gets called.   Edit: As mentioned in the below comment, I can't change eitehr MyDerived or MyBase because they are not my code.


I have the following question.  When $x > 0$, $f(x)$ is differentiable and satisfies that $$f(x)=1+\frac{1}{x}{\int_{1}^{x}}f(t)dt.$$  Then What is $f(x)$?  Thanks for your help.

Find a continuous function $f$ that satisfies  $$ f(x) = 1 + \frac{1}{x}\int_1^x f(t) \ dt $$  Note: I tried differentiating with respect to $x$ to get an ODE but you get one that contains integrals - likely difficult to solve.


Trying to reference cells A1, then + 5 columns so F1, then + another 5 columns K1, and so on...... Is there a formula I can use which when i drag automatically references +5 columns each time?

How can I get Excel to increment ranges arguments by more than one row when I fill down a formula?  For example, if I want Excel to keep averaging the next five numbers in a column, how do I set the average function to keep it in a pattern throughout, without changing it from an increment of one from the first and last number of the previous formula?  Excel keeps giving me this when I fill down:  =Average(A1:A5) =Average(A2:A6) =Average(A3:A7)   I want Excel to do this instead:  =Average(A1:A5) =Average(A6:A10) =Average(A11:A15)   How can I do this by filling down?


In my maven project, I have module A that is dependent on module B. In my module A test case, I am trying to extend one of module B's test case, however I encountered the following trouble whereby Caused by: java.lang.ClassNotFoundException: module-B.TestCase.  Is the reason because the tests themselves are not packaged into the jar? Any idea how to solve this?

How can you depend on test code from another module in Maven?    Example, I have 2 modules:   Base Main   I would like a test case in Main to extend a base test class in Base.  Is this possible?  Update: Found an , which involves creating a test jar.


I just installed Ubuntu 13.10 desktop, I would like to know can I install Apache, MySQL and PHP on Ubuntu desktop version or do I need to install on the Ubuntu server version?

I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be tweaked, if any, etc.).


Observation: I have an executable named foo, located in /b/foo. It is compiled against an old header of a dynamic library, causing it to segfault when executed:  $ foo Segmentation fault. // Expected behaviour.   Now, I compile a new version of foo to /a/foo against the new dynamic library that should execute just fine. Directory a/ is in my $PATH before b/, so /a/foo should be selected:  $ which foo /a/foo   When I execute foo, the following happens:  $ foo Segmentation fault.   Therefore, it seems that /b/foo gets executed, whereas "which" tells me that /a/foo should be executed. To make things weirder, when I run the full path $(which /a/foo), things run fine:  $ /a/foo OK!  $ cp /a/foo . $ ./foo OK!     To go yet one step further, if I now delete /a/foo:  $ rm /a/foo   Then /b/foo must surely be chosen, right?  $ which foo /b/foo $ foo bash: /a/foo: No such file or directory $ $(which foo) Segmentation fault. // Expected result.   Nope!  Fix: Source .bash_profile and .bashrc and the problem disappears.  Reproducibility: Every time. Just remove /a/foo, source ~/.bash_profile, create /a/foo, and the above observation re-occurs.  Question: Does anyone have an idea what went wrong here?  Hypothesis: "which" is up-to-date, but the system chooses based on "what was used to be the case". In my example above, /a/foo did not yet exist when the terminal was opened: I had only just created it. Therefore, when /a/foo was created, "which" did detect /a/foo, but the system still chose /b/foo, because it was somehow out of sync? But why is the system out of sync?

When looking for the path to an executable or checking what would happen if you enter a command name in a Unix shell, there's a plethora of different utilities (which, type, command, whence, where, whereis, whatis, hash, etc).  We often hear that which should be avoided. Why? What should we use instead?


I am using perl and CGI,where i am accumulating data and placing it in url.Like below  data in 'bf' and 'cx'&psite=bothwork. Here in this url in description their is single quotes if it comes, then my button is not working. If we remove single codes manually then button is working. I am taking this url in one variable my $durl=http://acv.farm.com/devpm/tiber/tiyu.cgi?sid=$id&region=$reg&description=$desc&psite=$pwork also i am formatting this with $durl =~ s/\+/\%2B/g And then I am passing this variable in href like this <a href=\"$durl\"> I am looking for the logic to handle single and double quotes if it comes in url.

This question is somewhat related to .  Before making the request via LWP::Simple I have a hash of query string components that I need to serialize/escape. What's the best way to encode the query string? It should take into account spaces and all the characters that need to be escaped in valid URIs. I figure it's probably in an existing package, but I'm not sure how to go about finding it.  use LWP::Simple; my $base_uri = 'http://example.com/rest_api/'; my %query_hash = (spam => 'eggs', foo => 'bar baz'); my $query_string = urlencode(query_hash); # Part in question. my $query_uri = "$base_uri?$query_string"; # http://example.com/rest_api/?spam=eggs&foo=bar+baz $contents = get($query_uri);


Even though I’m familiar with quantum mechanics, I’m unfamiliar with general relativity, so I hope for an explanation simple enough that I can understand. As far as I know the following three (contradictory?) statements are correct, how do they coexist?  Light is described as a reservoir of photons, which are massless.  Gravitational forces are proportional to mass, which would mean massless particles should not participate in gravitational interactions.  Light bends due to gravitational pull.   My questions are:  If photons are massless why do they interact with mass? My understanding is that it has to do with curvature of spacetime. Does it mean that slower massless particles, which should be less susceptible to relativity, don’t interact with mass?

Light is clearly affected by gravity, just think about a black hole, but light supposedly has no mass and gravity only affects objects with mass.  On the other hand, if light does have mass then doesn't mass become infinitely larger the closer to the speed of light an object travels. So this would result in light have an infinite mass which is impossible.  Any explanations?


I want to test whether men or women are higher risk takers. In the data, I have a likert scale for risk (strongly agree to take risk, agree to take risk, uncertain, disagree to take risk and strongly disagree to take risk). The data has a gender variable but I want to know whether men or women are high risk takers. which test should I use?

I need help on determining what tests to use in SPSS. Let me provide some background on my research:   I am doing a research on system automation of leave management in a company (which is still using a manual paper form to apply for leave). My hypothesis validates the automation of the different processes (independent variables) on the overall improvement of the leave management process (dependent). My control variables are age, gender and dept. I have developed a prototype of a system and provided a questionnaire in the form of a 5-point Likert scale to the participant. (Strongly Agree, Agree, Neutral, Disagree, Strongly Disagree). The questions measures their response on the statement provided on the test evaluation of the system. These questions are categorised based on the hypothesis.   Where do I start?


The statement is stated by our teacher as follows :  Suppose $$\lim_{x\rightarrow x_{0}}f'(x)=a\in{\mathbb R} $$ then $$f'(x_{0})=a$$  , here we do not assume $f'(x)$ is continuous at $x_{0}~.$ The statement is so strange to me . But our teacher claims that this exercise can be found in the text book of Apostol

Let $f$ be a real-valued function continuous on $[a,b]$ and differentiable on $(a,b)$. Suppose that $\lim_{x\rightarrow a}f'(x)$ exists. Then, prove that $f$ is differentiable at $a$ and $f'(a)=\lim_{x\rightarrow a}f'(x)$.    It seems like an easy example, but a little bit tricky. I'm not sure which theorems should be used in here.    ==============================================================  Using @David Mitra's advice and @Pete L. Clark's notes I tried to solve this proof. I want to know my proof is correct or not.  By MVT, for $h>0$ and $c_h \in (a,a+h)$ $$\frac{f(a+h)-f(a)}{h}=f'(c_h)$$ and $\lim_{h \rightarrow 0^+}c_h=a$.    Then $$\lim_{h \rightarrow 0^+}\frac{f(a+h)-f(a)}{h}=\lim_{h \rightarrow 0^+}f'(c_h)=\lim_{h \rightarrow 0^+}f'(a)$$   But that's enough? I think I should show something more, but don't know what it is.


is there a way to find out if a drive can be ejected and removed (since it is a drive connected via USB) programatically?  If yes: how can this be done?

How do I remove a USB drive using the Win32 API? I do a lot of work on embedded systems and on one of these I have to copy my programs on a USB stick and insert it into the target hardware.  Since I mostly work on the console I don't like to use the mouse and click on the small task-bar icon hundred times a day.   I'd love to write a little program to do exactly that so I can put it into my makefiles, but I haven't found any API call that does the same thing.  Any ideas?


I have a question concerning this piece of code:  def new_field():     global field     field= [[]]*9     for x in range(9):         for y in range(1,10):             field[x].append([y," "])     return field   The way I understand for-loops, it should return a list like this: [[[1, " "], [2, " "], [3, " "], ...[9, " "]], [1, " "], [2, " "], ...  which would mean that field should have a length of 9 for every index from 0 to 8 ->   len(field[0]) should be 9. Instead the length is 81 for every index, what should be the entire list can be found in every sublist.  It looks like this:  [[[1, ' '], [1, ' '], [1, ' '], [1, ' '], [1, ' '], [1, ' '], [1, ' '], [1, ' '], [1, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [2, ' '], [3, ' '], [3, ' '], [3, ' '], [3, ' '], [3, ' '], [3, ' '], .......   Now I have a feeling that I simply dont understand how exactly for-loops work, but I just dont get what I am missing or where the problem in my thoughtprocess is.  Hope someone can help!

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


So I had my Steam game installed in H:\Games and wanted to move it to C:\Program Files (x86)\Steam\steamapps\common\.   I followed  Steam guide on how to move a Steam installation. I moved my game folder to a safe location while steam was closed. Then launched steam, right-clicked the game in the library, and deleted local content. I closed steam again, moved the backup game folder to my target location in the common folder. I opened steam and found the game greyed out as if it was not installed. I entered properties and could not verify the game cache. It prompted me to install. I installed it to the common folder and it was downloading. I tried to vertify it, but it did not vertify, just kept downloading.  The game is Borderlands 2.

I use (and have it much bigger) drive D: to store all my user data and games, but I have installed the Steam client on drive C:. When I was installing a first game (Warhammer 40000), I've chosen to place my library folder on drive D: and the game went there.  But now as I've got installed the second game (Portal), I can see that it was put on drive C: despite to the choice I've done previously. When I open Steam - Settings - Downloads + Cloud - Steam library folders, I can see both installation places in the list. Can I merge them into one?  I would even agree to use the default drive C: library (as I've replaced it with a symlink already). When I press to remove one library it says it can only remove empty ones.


Should people pronounce often with the hard "t"? I pronounce it offen.  Which is correct?

I heard people saying "Of-fen" as well as "Of-ton". Till now I have been using the first one but few days ago I had an interviewer who pronounced often "Of-Ton" while interviewing.


A photon strikes an atom in a chrome surface. An electron is elevated to a higher energy level then dissipates the energy through emitting a new photon. How does the electron remember the angle of incidence so that it can fire that new photon off in the angle of reflection? I don't even understand how the electron can know its orientation relative to the surface.  Maybe specular reflections don't involve electrons in this way? Does electrons emitting photons as they drop to lower energy levels only what happens with diffuse reflections? If so, how do specular reflections deal with these angles?  Background to question: I'm an artist and want to understand the physics of what I see but find the literature on the topic cumbersome and choked with equations I don't know how to interpret. Thank you for your kind help!

The "equal angles" law of refection on a flat mirror is a macroscopic phenomenon. To put it in anthropomorphic terms, how do individual photons know the orientation of the mirror so as to bounce off in the correct direction?


When I try to access meta.*.stackexchange.com via HTTPS, I get a warning:  meta.codegolf.stackexchange.com uses an invalid security certificate. The certificate is only valid for the following names: *.stackexchange.com, stackexchange.com, meta.stackexchange.com, stackoverflow.com, *.stackoverflow.com, stackauth.com, sstatic.net, *.sstatic.net, serverfault.com, meta.serverfault.com, superuser.com, meta.superuser.com, stackapps.com, openid.stackauth.com, *.meta.stackexchange.com (Error code: ssl_error_bad_cert_domain)  I'm using HTTPS Everywhere, but disabling it for Stack Exchange prevents me from logging in to the aforementioned meta sites—I simply get dropped back without being logged in (also, trying to ask a question causes a redirect loop). Adding a security exception does work, though. Maybe this is because I'm already logged in to other Stack Exchange sites via a secure connection? Update: It appears disabling the entry for Stack Exchange in HTTPS Everywhere then logging out and logging in again solves the problem of not being able to log in. See balpha's answer for details.

Steps to reproduce:   In Firefox (with ), visit a non-trilogy Stack Exchange site (for example, ) Get redirected to the HTTPS version Click on meta link (for example, )   What should happen:   Meta site opens   What happens instead:   "This Connection is Untrusted" message appears:      meta.movies.stackexchange.com uses an invalid security certificate. The certificate is only valid for the following names: *.stackexchange.com, stackexchange.com, meta.stackexchange.com, *.meta.stackexchange.com, *.stackoverflow.com, stackoverflow.com, serverfault.com, stackauth.com, sstatic.net, meta.serverfault.com, superuser.com, meta.superuser.com, stackapps.com, openid.stackauth.com (Error code: ssl_error_bad_cert_domain)   Notes:   It also happens if you visit  instead (you get redirected to HTTPS and the error occurs) Another random example,  Trilogy metas work,  works (but  doesn't - I am not sure what gave me that link) Replacing URL with https://*.meta.stackexchange doesn't work   Here is the screenshot:


My meatballs and pasta sauce were left out in 55F temps for 18 hours. I'm guessing I should toss the homemade meatballs with commercial pasta sauce? They were thoroughly cooked, then covered to cool before refrigeration. It didn't make it to the fridge, sadly. Can I re-heat to temps above 175F to salvage the food?

If cooking meat kills bacteria, and bacteria are responsible for problems with eating meat which has been left out, then why is it dangerous to eat meat which has been left out at room temperature and then thoroughly cooked?   mentions that "Even if the bacteria is dead, toxins can remain if the food was out too long, causing problems".  However, there's no further detail given.  Are these toxins as dangerous as the bacteria themselves?  How long does meat have to be left out to accumulate a dangerous level of toxins and thus be dangerous even if thoroughly cooked?  Are these toxins the reason for the usual guideline of keeping meat unrefrigerated for a maximum of 2 hours?  update  The revelation, courtesy of Aaronut, that e. coli is actually dangerous because of its toxins — which cannot be denatured at temperatures which will leave meat in an edible state — has pretty much answered this question.  And also given me further incentive to stop eating meat altogether :)  Our discussion (see the comments on hobodave's answer) has progressed into the realm of microbiology.  Some highlights from my ongoing research:  .  These seem to be the reason for the importance of keeping meat at a high temperature for a period of time.  .  This also provides fascinating insight into how bacteria evolved immunity to antibiotics.  Fungi.


Could we say that when saying the 'tr' in words like 'train', 'tram' etc, that the /t/ and /r/ often coalesce to make a sound which is more similar to 'tchr'?  I myself definitely do this, but I have not found it documented in any text books that I've read, tho' I'm sure I haven't read them all!  All thoughts/comments much appreciated.  Bob  PS. Apparently "Creating the new tag 'coalesence' requires at least '300 reputation." ...in case anyone is wondering why on earth I didn't tag this post properly.

Some of my students have a disagreement about transcribing the pronunciation of "trade" in American English. Some say it's (a) [t͡ʃeɪd] while others (and they point to dictionaries that support them) say it's (b) [treɪd]. I thought it was the former; the latter sounds a little like a fast "tirade". But now as I try to articulate it more, it seems like (c) [t͡ʃreɪd]. Any insights on this?


I am trying to setup an multi arch environment to cross compile armhf board. The steps I followed is quite simple.  Install ubuntu-18.04.1-desktop-amd64 on VirtualBox. sudo dpkg --add-architecture armhf vim /etc/apt/sources.list and add followings.  deb [arch=armhf] http://ports.ubuntu.com/ trusty main universe
    deb-src [arch=armhf] http://ports.ubuntu.com/ trusty main universe [And put [arch=i386,amd64] for the other lines.]   sudo apt update sudo apt install libgstreamer1.0-dev:armhf  And the installation was unsuccessful with following error. sudo apt install libgstreamer1.0-dev:armhf Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgstreamer1.0-dev:armhf : Depends: libgstreamer1.0-0:armhf (= 1.14.0-1) but it is not going to be installed                              Depends: libc6-dev:armhf but it is not going to be installed or                                       libc-dev:armhf                              Depends: libglib2.0-dev:armhf but it is not going to be installed                              Depends: libc6:armhf (>= 2.4) but it is not going to be installed                              Depends: libglib2.0-0:armhf (>= 2.40) but it is not going to be installed                              Depends: gir1.2-gstreamer-1.0:armhf (= 1.14.0-1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  I've some searching and tried following things and didn't help.  sudo apt -f install Tried install missing dependant package manually but it's recursive. I mean, if I do sudo apt install gir1.2-gstreamer-1.0:armhf, it fails with unmet dependency of libgstreamer1.0-0:armhf  Any advice will be appreciated! Thanks.

After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Euler's formula is  $$ e^{i \theta } = \cos \theta + i \sin \theta $$  If we take $\theta$ to be $2 \pi$ we get  $$e^{2i \pi} = \cos (2 \pi ) + i \sin (2 \pi ) $$  Which simplifies to  $$e^{2i \pi} = 1$$  But we also know   $$e^0 = 1$$  Therefore, can we not say  $$e^0 = e^{2i \pi}$$  and thus,  $$0 = 2i \pi$$  Which leads to being a big problem for all imaginary numbers.  Example with $25i$:  $$\begin{align} 25i &= \frac{25 (2 \pi) i}{2 \pi} \\ 25i &= \frac{25 * 0}{2 \pi} \\ 25i &= 0 \\ \end{align}$$

We know that $e^{\pi i} = -1$ because of de Moivre's formula. ($e^{\pi i} = \cos \pi + i\sin \pi = -1).$  Suppose we square both sides and get $e^{2\pi i} = 1$(which you also get from de Moivre's formula), then shouldn't $2\pi i=0$? What am I missing here?


Ladder operators, in quantum mechanics, could be used to derive eigenkets of energy with different eigenvalues (i.e. the system's energy) by raising and lowering it.  However, is there a proof that it proves a COMPLETE set of eigenkets?

Consider standard quantum harmonic oscillator, $H = \frac{1}{2m}P^2 + \frac{1}{2}m\omega^2Q^2$.  We can solve this problem by defining the ladder operators $a$ and $a^{\dagger}$. One can show that there is a unique "ground state" eigenvector $\psi_0$ with $H\psi_0 = \frac{1}{2}\hbar\omega\psi_0$ and furthermore that given any eigenvector $\psi$ of $H$ with eigenvalue $E$, the vector $a^{\dagger}\psi$ is also an eigenvector of $H$ with eigenvalue $E + \hbar\omega$.  However, it is usually stated that we now have all eigenvectors of $H$ by considering all vectors of the form $(a^{\dagger})^n\psi_0$.   How do we know that we have not missed any eigenvectors by this process? e.g. how do we know that eigenvalues are only of the form $E_n = (n+\frac{1}{2})\hbar\omega$?  Also a slightly more technical question, how do we know that the continuous spectrum of $H$ is empty?  The technical details I am operating with are that $\mathcal{H} = L^2(\mathbb{R})$ and all operators ($H, P, Q$) are defined on Schwartz space, so that they are essentially self-adjoint with their unique self-adjoint extensions corresponding to the actual observables.


I want to calculate this integral:$\int_{-\infty}^{\infty} \frac{c(\theta)}{(1 + x^2)^\theta} dx $  it's easy to do, when $\theta$ is given: For example when $\theta$ is 1, then integral is equal to $\pi$  But how to calulate integral, when \theta is not given?  And $c(\theta)$ is a constant, that is dependent on $\theta $

Does any one know the exact expression of the integral,  $$E_n(s)=\int_0^\infty \frac{r^{n-1}}{(1+r^2)^{\frac{s}{2}}}\,dr~~~~s>n, n\in \mathbb{N}$$ or more generally, $$E_a(s)=\int_0^\infty \frac{r^{a-1}}{(1+r^2)^{\frac{s}{2}}}\,dr~~~~s>a, a\in \mathbb{R}$$ For the special case $s=n, n+2$ I find out by induction that $$ E_{n-1}(n)=\frac{\omega_{n-1}}{2\omega_{n-2}}~~\text{and}~~E_{n-1}(n+2)=\frac{\omega_{n-1}}{2n\omega_{n-2}}. $$ where $\omega_{n-1} = \frac{\pi^{\frac{n}{2}}}{\Gamma(\frac{n}{2})}$ is the  surface measure of the n-dimensional sphere of $\mathbb{R}^n$. Further result is welcome


sisters and brothers are siblings.  sisters and brothers from different sibling parents are cousins.   what do you call after cousin? or in general, same level descendants, is there word for that?

I’m going to the christening of my cousin’s first son soon. What is the proper name for his relation to me?  Second nephew? Nephew once removed? Nothing?  Looking at the overall picture, what's the accepted rule for the naming of all of our various relations?


For some reason (backup system, different story) I have a bunch of PDF files without a file name extension.  It is  possible to configuere my PDF viewer as the default application for files without file name extensions (.pdf) ?  (Yes I know, this ist stupid question. It´s more a theoretical question :-) I know tools like TrID - File Identifier)

How to set the default program for opening files without an extension in Windows?


I have studied about integral element. And I am not clear about an example.  Could you please help me explain about it?  Let R is a subring of S. $s \in S$ is integral if $s$ is a zero of some monic polynomial in $R[x]$.  Example:  Every elements $s=a+b\sqrt{2} \in \mathbb{Q}(\sqrt{2})$ that is integral over $\mathbb{Z}$ is in $\mathbb{Z}[\sqrt{2}]$.

I'm facing the following problem.      Let $p$ be a prime and $ K=\mathbb{Q}(\sqrt{p}) $. I'm trying to find the integral closure of $ \mathbb{Z} $ in $ K $.   I don't really know where to start. I've managed to prove that $ \mathbb{Z}[\sqrt{p}] $ is in the integral closure and I'm almost sure $ \mathbb{Q} $ is not.   I can't think of a systematic way to approach this. I would appreciate any help.


I am from Philippines. I have worked in Moscow before with a working visa for 3 years and it is still good until August 2017.  My story is I went to Italy with my employer because I moved there for work. We made the paper and I received just a tourist visa for 3 months (90 days) but when we arrived there we try to do all for make more time in my visa for stay but we lose time because some people say "don't worry we will do for you" until the day of expiration and then did nothing.  Now I am illegal there and I really want to make legal my paper because my employer can move again country (he try all for make my paper but he is not Italian either).  I think I don't have solution to wait for the news amnesty but I don't know when.  My last solution is to go back to Moscow because I have some contact in the embassy and they can make for me a new Schengen but they told me that if I use airplane it's 99% sure that I will be banned and fined.  My questions is if I use train and I have a ticket, will they ask to see my Italian visa ? Or if they normally just ask for the ticket and sometimes the passport to see the same name ? Because after when I will arrive in Russia I will have my paper legal, and also if they ask me where did you go I will say Moscow I think they will check the most important the visa for Russia.  I have a 3 choices of way by train if you can help me for some country more easy :    choice 1 : Italy, Liechtenstein, Germany, Poland, Belarus, Russia  choice 2: Same just I need to use a postbus in Germany in Bayreuth-Berlin   choice 3: Italy, Austria, Czech Republic, Poland, Belarus, Russia

I came to Frankfurt about 5 months ago with a tourist visa that is already expired. I decided to stay more time because I met a very special person (my current girlfriend) and I had hoped to find a way to legalize my situation here but I found out that is not possible so I decided to go back to my country Colombia with her and plan to come back legal.   I know that in the airport they will let me go out, but I am afraid to get a ban for the next months/years and I really would like to minimize that. I have talked with a lawyer and he told me that Frankfurt is very strict about this issue and I can get a penal infraction. He recommend me to flight out by Madrid because there, it is only an administrative procedure. So my current plan is to rent a car with my girlfriend and drive to Spain for 16 hours and leave EU.  It is worth to do this? I am trying to minimize the possibilities to get a ban.


The below image shows what I am talking about ()

A sufficiently long comment without spaces can break the page's layout:


I'm trying to create a unique skywars in vanilla minecraft by using command blocks, but the (clone) command I'm using to reset the map will only activate when someone is within range.  For example if I use the command (setblock x y z redstone_block) to run the clone command, I have to be within a certain distance for the clone to actually do its intended job.  For a normal map, "spawn chunks" would work, but I have made my skywars in the end so the players would immediately fall to their deaths.     Is there a way to activate the command after the game is finished and no one is still near the command blocks?

I have command blocks on my adventure map, the map is partially parkour and has no ground just floating islands, I don't want people too see the command blocks so I put them 200 blocks away and they're supposed to have low render distance but if they have low render distance it won't load and the commands won't be executed, what do i do?


I don't know what's going on... I haven't (intentionally) upgraded anything, but just now I've been getting this banner over my connections here (Stack Overflow and Stack Exchange - probably more I'd guess) saying, "[whatever platform here] works best with JavaScript enabled" yet I double checked and it has been - and has been for years. (I'm a few months short of 10 years a user of Stack Overflow.)  Hell, I had no problem earlier_today! Yet suddenly it has this error.  I do have  enabled. But that hasn't been an issue before. Whitelisted are this, and all the pertinent sites, including sstatic.net. The most strange is that I was using the site earlier today, and did zero updates to anything - I was working on coding a project, could maybe use to look for some help, and whamo, problem.  IMPORTANTLY: NoScript doesn't show any sites blocked when I'm on any site here!  This has be seriously doubting my own eyes!  If, hidden to our vision the site wants to use google or some such, hell no, I say, to all the Google-crap, and so many other tracking-crap I don't want. I say, if the Stack Exchange sites want to have extra features, they should develop them themselves and NOT ask the rest of us to turn-on anything from Google or any other things we don't want for the rest of our browsing activities. Why should we be subject to unknown code "just because?!" ... I would presume that the site founders are keen to make this kind of thing optional and not mandatory. This will help kill the site if that's what's  going on.  Otherwise, I'm just clueless why this is happening now. Thanks for your help.

Google's CDN is nice, but it's not 100% reliable for all users. It occasionally fails to load for me. Other users , and some .  It's one more possible point of failure. It would be preferable if Stack Exchange didn't depend on it.  If you don't want to stop using it, consider adding a fallback if it fails to load. Something like this:  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script>   if (!window.jQuery) {     document.write('<script src="https://cdn.sstatic.net/stackoverflow/content/js/jquery-1.7.1.min.js"><\/script>');   } </script>


Theorem: Numbers $11,111,1111, \ldots$ are called repunits. No such number is a square.  All repunits are odd numbers. Therefore they must be of the form $4n+1$ or $4n+3$. And since all squares are of the form $4n+1$, one can show that no repunit is a square by showing that all repunits are of the form $4n+3$. It is this claim I would like to prove.  Repunits have the form $10^n+10^{n-1}+\ldots + 10^0$. Summing this as a geometric series one gets $\frac{10^{n+1}-1}{9}$.  The claim is that for all $n \in \mathbb{N} $  there exist $k \in \mathbb{Z}$ such that $\frac{10^{n+1}-1}{9} = 4k+3$. This can be rewritten as $10^{n+1}-28 = 36k$. Assuming $n > 1$ (case $n=1$ can be verified seperately) we get $10^2 \times 10^m - 28 = 36k$ (where $m = n-1$).   Dividing the equation by 4, we get $$25 \times 10^m- 7 = 9k.$$ Rewriting this as a congruence we have $25 \times 10^m \equiv 7 \mod{9}$.  Since $4$ is a multiplicative inverse of $25 \mod{9}$, we have $10^m \equiv 28 \mod{9}$.  So $10^m \equiv 1 \mod{9}$, which is easily verified using the power rule for congruences.  Some teachers probably wouldn't be too happy about this proof, since it is "logically backwards", but that aside, is this proof sound?

Please help me with solving this : prove that none of $\{11, 111, 1111 \ldots \}$ is the square of any $x\in\mathbb{Z}$ (that is, there is no $x\in\mathbb{Z}$ such that $x^2\in\{11, 111, 1111, \ldots\}$).


If air temperature is well above body temperature eg air temp of 50C then would a wind make the apparent temperature higher or lower.  Clearly the wind would help take away heat due to increasing evaporation of the sweating and so cool, but at the same time it would presumably be blowing air that has not been cooled down by contact with the body against the body so heating the body.      I have now been shown the q&a at  which partly answers the question but does not have a index for windspeed.    So does anyone know a graph showing the effect of heat, wind and humidity on apparent temperature to a person?  Thanks,

I was wondering about three things:   effect. Human body perceives surrounding temperature as colder, with increasing air flow:      This is understandable, as thermal transfer "consists" of convection, diffusion and radiation.   I assume that in real world example, we are being "chilled" by fan due to our skin  not being 100% dry, and thus wind speed increases convection. Is this assumption correct?   Imagine hypothetical situation with no precondition- human is standing in vast open space somewhere on earth, naked. Air temperature is exactly 36.6℃, there is no wind and for the sake of experiment I assume that sun does not shine, so basically I assume that this is near thermal equilibrium (human body generates energy from metabolic processes). I also assume that this man's body has 36.6℃ on whole surface. Will perceived temperature to this man heavily dependent on air humidity? Why, most probably, will he/she feel that it is very hot? Same situation, but air humidity is 100%, basically a sauna. Yet, wind is also extremely strong, say 110 km/h or 70 mph. Man should feel cold according to wind chill, but how it is possible(to feel cold in such conditions), since fluid (air) that has contact with his/her skin has same temperature as his body? (Assume convection/ would be relatively small because there is no thermal gradient, and diffusion would be relatively small because of high air humidity).


I have a Platform Developer 1 certification and a DEV401 certification . Currently i have applied for Platform App Builder Transition Certification .  I am unable to register for Sales Cloud exam ? do you please what might be the reason ?  So i again do Administration certification also in order to take Sales Cloud certification ?

Can someone tell me what is the prerequisite for Salesforce Sales Cloud/Service Cloud Consultant certifications ?.  I have completed DEV 401 but I am unable to register for Sales/Service Cloud certification examinations.  The webassessor is complaining that I have not met prerequisites but does not provide the information as to what those prerequisities are.


Note the following passage in the TeXbook (p. 110)     TeX breaks lists of lines into pages by computing badness ratings and   penalties, more or less as it does when breaking paragraphs into   lines. But pages are made up one at a time and removed from TeX's   memory; there is no looking ahead to see how one page break will   affect the next one. In other words, TeX uses a special method to find   the optimum breakpoints for the lines in an entire paragraph, but it   doesn't attempt to find the optimum breakpoints for the pages in an   entire document. The computer doesn't have enough high-speed memory   capacity to remember the contents of several pages, so TeX simply   chooses each page break as best it can, by a process of "local" rather   than "global" optimization.   Computer memory is now a bit cheaper than in 1984. Do any of the modern distributions compute page breaks in a smarter, more memory-intensive way than plain TeX?

I have only basic knowledge of the TeX internals, so I hope what I am saying here is not complete nonsense. If I understand correctly, in TeX, horizontal positioning / line breaking is done using a rather advanced algorithm based on a paragraph-level optimization (Knuth-Plass); it allows for concepts such as glue and line break penalties, and gives considerably better results than the more naive approach of, say, MS Word.  On the other hand, I seem to understand that nothing similar is used for vertical positioning of text. Lines are shipped out as soon as they are done and pages are filled using the obvious greedy algorithm. Widows and orphans are handled using special tricks. [EDIT: this is not entirely correct, see  below --- there is an optimization algorithm involved, although it's only local optimization over a single page and not KP]  So, a question arises naturally to me:     why isn't something similar to Knuth-Plass used also for page breaks and the vertical layout of text? Are there major complications?


Why do we say the universe has exploded in the event of big bang? When we talk about big bang there was no concept of outside with the absence of space, so should’t the universe be imploded into the big bang from the single point? Also how can we say there was point as presence of point itself means space was already present, does this imply space was already there when big bang happened?

TV documentaries invariably show the Big Bang as an exploding ball of fire expanding outwards. Did the Big Bang really explode outwards from a point like this? If not, what did happen?


So everything loads fine in the app until I click the menu button then it kills the app instead of displaying information. There is no syntax errors but I do get the below run-time error  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference         at burt.example.com.MenuItemList.onViewCreated(MenuItemList.java:48)   The code for the class I have the warning on is below  package burt.example.com;   import android.app.Activity; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTransaction; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.ListView;  import java.util.List;   /**  * A simple {@link Fragment} subclass.  */ public class MenuItemList extends Fragment {      public List<Item> items = itemDataProvider.items;     public static final String ITEM_ID = "ITEM_ID";       public MenuItemList() {         // Required empty public constructor     }       @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container,                              Bundle savedInstanceState) {         // Inflate the layout for this fragment         return inflater.inflate(R.layout.fragment_menu_item_list, container, false);     }      @Override     public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {         super.onViewCreated(view, savedInstanceState);          ItemAdapter itemAdapter = new ItemAdapter(view.getContext(), R.layout.single_menu_item, items);          ListView listView = view.findViewById(R.id.item_list);          listView.setAdapter(itemAdapter);          listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {             @Override             public void onItemClick(AdapterView<?> parent, View view, int position, long id) {                 Item item = items.get(position);                 getActivity().getIntent().putExtra(ITEM_ID, item.getId());                  FragmentTransaction transaction = getFragmentManager().beginTransaction();                  transaction.replace(R.id.item_detail_container, new MenuItemDetail());                 transaction.addToBackStack(null);                 transaction.commit();              }         });     }   }  fragment_menu_item_list  <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".MenuItemList" >      <ListView         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_alignParentStart="true"         android:layout_alignParentLeft="true"         android:layout_alignParentTop="true"         android:layout_marginStart="0dp"         android:layout_marginLeft="0dp"         android:layout_marginTop="0dp" /> </RelativeLayout>

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


what is the technical term for such pictures?  Those with the special characteristics black&white, with a single color?

There is an option to filter only one color (R,G,B,Y) in my camera. What I want to know is can this effect be achieved in photoshop? And what is this called? I tried googling monochrome and came up with nothing. My camera calls it part color.


Prove that: $$\frac{ab}{a+b}+\frac{bc}{b+c}+\frac{ac}{a+c}\leq \frac{a+b+c}{2} : (a, b, c) \in \mathbb{R}^+$$

If $a,b,c$ are positive real numbers, not all equal, prove that  $$\dfrac{bc}{b+c}+\dfrac{ca}{c+a}+\dfrac{ab}{a+b}<\dfrac{a+b+c}{2}$$  Progress: $\frac{bc}{b+c}-\frac{b+c}{2}=$


To all would-be close-voters: This question is not a duplicate, because I need to remove all scripts added by plugin using remove_action. In  used wp_dequeue_script function to remove scripts one by one, but I need to remove them all (which was added by plugin using add_action) using remove_action!  wp_dequeue_script function can't remove custom code like this: add_action('wp_head', 'print_style');  function print_style() {     echo '<style>body { margin: 0; }</style>'; }  I have installed WP Polls plugin. I am using it in some of the pages and need to deregister its styles and scripts on other pages. I found some code in the plugin which registers scripts: Function: Enqueue Polls JavaScripts/CSS add_action('wp_enqueue_scripts', 'poll_scripts'); function poll_scripts() {     // code }  So for deregistering its scripts i am using next code in my functions.php: add_action( 'wp_enqueue_scripts', 'deregister_polls_scripts_and_styles' );  function deregister_polls_scripts_and_styles() {     if ( is_home() ) {         remove_action( 'wp_enqueue_scripts', 'poll_scripts');     } }  So it must deregister polls scripts on homepage, but id does not. What i am doing wrong? P.S. 1 Scripts are removing in this case: add_action( 'after_setup_theme', 'wc_deregister_polls_scripts_and_styles' );  function wc_deregister_polls_scripts_and_styles() {     remove_action('wp_enqueue_scripts', 'poll_scripts');     remove_action('wp_head', 'poll_head_scripts'); }  But i need to remove it on some pages like this: add_action( 'after_setup_theme', 'wc_deregister_polls_scripts_and_styles' );  function wc_deregister_polls_scripts_and_styles() {     if ( is_page('developers') ) {         remove_action('wp_enqueue_scripts', 'poll_scripts');         remove_action('wp_head', 'poll_head_scripts');     } }  So in this case it does not work. I have installed another plugin and all works fine in this case. Same actions, BUT all works: add_action( 'wp_enqueue_scripts', 'wc_deregister_scripts_and_styles' );  function wc_deregister_scripts_and_styles() {     if ( !is_home() && !is_tax('brand') ) {         remove_action( 'wp_enqueue_scripts', 'uag_frontend_styles', 999 );         remove_action( 'wp_footer', 'uag_footer_scripts');     } }  P. S. 2 This is another plugin. add_action('wp_enqueue_scripts', 'uag_frontend_styles', 999); function uag_frontend_styles() {      /* main stylesheet */     wp_register_style( 'uag_style', uag_url . 'css/uag.css');     wp_enqueue_style('uag_style');     }  This is Polls: add_action('wp_enqueue_scripts', 'poll_scripts'); function poll_scripts() {     global $text_direction;     if(@file_exists(get_stylesheet_directory().'/polls-css.css')) {         wp_enqueue_style('wp-polls', get_stylesheet_directory_uri().'/polls-css.css', false, '2.63', 'all');     } else {         wp_enqueue_style('wp-polls', plugins_url('wp-polls/polls-css.css'), false, '2.63', 'all');     }     if('rtl' == $text_direction) {         if(@file_exists(get_stylesheet_directory().'/polls-css-rtl.css')) {             wp_enqueue_style('wp-polls-rtl', get_stylesheet_directory_uri().'/polls-css-rtl.css', false, '2.63', 'all');         } else {             wp_enqueue_style('wp-polls-rtl', plugins_url('wp-polls/polls-css-rtl.css'), false, '2.63', 'all');         }     }     $poll_ajax_style = get_option('poll_ajax_style');     $pollbar = get_option('poll_bar');     wp_enqueue_script('wp-polls', plugins_url('wp-polls/polls-js.js'), array('jquery'), '2.63', true); // Other same code }

I am trying to get rid of a plugin's .js file in the  but it's not working.  It's being called here {partial code):  class awqsf{    const post_type = 'awqsf';    function __construct(){            // style for front end     add_action( 'wp_enqueue_scripts', array($this,'awsqf_front_styles'), false, '1.0', 'all',1 );              }    function awsqf_front_styles(){     wp_register_script( 'awqsf-frontjs', plugins_url( 'js/awqsf-front.js', __FILE__ ), array('jquery'), '1.0' );     wp_enqueue_script('awqsf-frontjs');   }  } //end class   I have tried a lot of different versions, wp_deregister_script and remove_action, but can't seem to get rid of it:  //deregister awqsf function my_deregister_scripts() {   //wp_register_script( 'awqsf-frontjs', plugins_url( 'js/awqsf-front.js', __FILE__ ), array('jquery'), '1.0' ); // the original wp_register_script   wp_deregister_script( 'awqsf-frontjs', 'http://www.spijkerbroek.me/wp-content/plugins/advance-wp-query-search-filter/js/awqsf-front.js', array('jquery'), '1.0' );   wp_deregister_script("wp_enqueue_scripts", 'http://www.spijkerbroek.me/wp-content/plugins/advance-wp-query-search-filter/js/awqsf-front.js', array("awqsf","awsqf_front_styles"), false, '1.0', 'all',1 );       wp_deregister_script( 'awqsf-frontjs', array('http://www.spijkerbroek.me/wp-content/plugins/advance-wp-query-search-filter/js/awqsf-front.js', 'jquery'), false, '1.0', 'all',1 );   wp_deregister_script('awqsf','awqsf-front.js');   wp_deregister_script('awqsf');   //function awsqf_front_styles(){} // the function   //add_action( 'wp_enqueue_scripts', array($this,'awsqf_front_styles'), false, '1.0', 'all',1 );   // the original add_action   remove_action( 'wp_enqueue_scripts', array('http://www.spijkerbroek.me/wp-content/plugins/advance-wp-query-search-filter/js/awqsf-front.js','awsqf_front_styles'), false, '1.0', 'all',1 );   remove_action( 'awqsf', array('http://www.spijkerbroek.me/wp-content/plugins/advance-wp-query-search-filter/js/awqsf-front.js','awsqf_front_styles'), false, '1.0', 'all',1 );   remove_action( 'awqsf', array('http://www.spijkerbroek.me/wp-content/plugins/advance-wp-query-search-filter/js/awqsf-front.js','wp_enqueue_scripts'), false, '1.0', 'all',1 ); } add_action( 'wp_awqsf_scripts', 'my_deregister_scripts', 1 );   Can somebody get me into the right direction?


My screen capture program saves .bmp images, which are not usable in Google Docs, which will accept .jpg  Is there a clever way to create a set of .jpg from the .bmp files via the command line?  Bonus for use of a command that is native to Ubuntu install.  If not, please communicate line of reasoning for selecting software.  Thank you

I want to convert a batch of images, nearly 100, from jpg to png format. How can I do this without renaming them, but instead actually converting the format?


The School of Conjuration grants a Wizard the Minor Conjuration feature:     [...] you can use your action to conjure up an inanimate object   in your hand or on the ground in an unoccupied space that you can see within 10 feet of you. This object can be no larger than 3 feet on a side and weigh no more than 10 pounds, and its form must be that of a nonmagical object that you have seen.      The object disappears after 1 hour, when you use this feature again, or if it takes any damage.   Under which of the following conditions will damage cause a conjured item to disappear, rendering it useless?   Attacking with a conjured weapon? Firing a conjured piece of ammunition? Being attacked while wearing conjured leather armor? Being attacked while holding a conjured shield? Restraining a creature using conjured manacles? Consuming conjured food or drink? Conjuring a lit torch?

There are some clearly defined limitations already on the Wizard School of Conjuration's Minor Conjuration feature, however...  Does normal "wear and tear" count as damage?  (e.g. I'm in a fight without a weapon, and create, say, a dagger or club.  Will it hold up through the fight?).  How about a bottle of ink?  Does dipping my pen into it and writing a quick note "damage" the ink?  Is it one piece?  ( e.g., can I use it to make a temporary replacement for a set of Thieves' Tools (which is 'an item' on the equipment list) or is it limited to one contiguous item, such as a skillet, or a coil of rope?)


How to save null value as "N/A" with Java bean class? Every time it gives me exception as null. How to save the null form as "N/A"? I want to save null value as "N/A".     package javaonline;     import java.sql.*;     public class SavaData {       private String uname;      /**      * @return the uname      */     public String getUname() {         return uname;     }      /**      * @param uname the uname to set      */     public void setUname(String uname) {         this.uname = uname;     }     public int insertdate()     {      int i=0;     try{         Class.forName("com.mysql.jdbc.Driver");           Connection con=DriverManager.getConnection(           "jdbc:mysql://localhost:3306/test","root","root");         PreparedStatement st=con.prepareStatement("insert into nulltest values(?)");       if(!uname.isEmpty() || uname!=null)       {           st.setString(1,uname);       }       else{           st.setString(1,"N/A");             }       i=st.executeUpdate();         }     catch(Exception e)     {         e.getMessage();         System.out.print(e.getMessage());     }         return i;     }      }


In a game I made, I want to restart the game when the players presses a button.  I have an instance of a Game class, which is where most of the game happens.  I though that I could simply initialize it again, and it will be reset.  Game game = new Game(); - When the program launches. game = new Game(); - When restarting the game.  But the game uses a lot of additional classes, such as Tank and Missile. Do I have to initialize all of them too, or is initializing the Game class, which will create new Tank objects and Missile objects (with the same reference names as the previous Game instance), enough?  In general, what would be the best way to reset a game or a level in a game?  Thanks

I'm having trouble restarting a 2D game when the user presses the "New Game" button.  Structure of my game:  The game has several 'screens': Opening screen, instructions screen, main game screen, and a game-over screen.  Each screen is an instance of a class: OpeningScreen class, GameScreen class, etc.  There is a class named Main. This class has three roles.   It's the JFrame (the window) of the program. It has the main method - first class to run. It has a method that change's screens.   When the program starts, this class runs. When it first runs:   Creates a new instance of itself (it's a JFrame-type class). Creates an instance of every 'screen-class'. The constructor of each 'screen-class' takes the instance of Main as an argument: (aka: GameOverScreen gameOverScreen = new GameOver(this)). Creates a new JPanel named mainPanel, and adds it to the JFrame. Any screen to be displayed will be contained in this JPanel (The screens are also JPanel-type classes).   How the changeScreen() method works:  The signature of changeScreen() is this: changeScreen(JPanel from, JPanel to).  Whenever a screen needs to be changed, the current screen that is displayed calls this method, like so: main.changeScreen(this, main.InstructionsScreen). It removes the previous screen from mainPanel and adds the new screen to mainPanel. As said, these screens are created when the program launches.  This is the method that changes screens:   public void changeScreen(JPanel from, JPanel to){      mainPanel.remove(from);     mainPanel.add(to);      mainPanel.revalidate();     mainPanel.repaint();  }   My problem:  After a game is finished, the Game class calls the changeScreen method: main.changeScreen(this, main.GameOverScreen) .  This replaces the game screen with a game over screen. Pressing the "New Game" button in the game-over screen, calls main.changeScreen(this, main.GameScreen) .  The problem: Pressing the "New Game" button in the game-over screen, indeed displays once again the instance of the Game class. But this is the old instance, so the game is not restarted. It's already finished.  I tried to do the following changes in changeScreen():  public void changeScreen(JPanel from, JPanel to){      mainPanel.remove(from);      if(to.equals(gameScreen)){         gameScreen = null;         gameScreen = new GameScreen(this);     }     mainPanel.add(gameScreen);      mainPanel.revalidate();     mainPanel.repaint();  }   This should reset the gameScreen object. But this creates a delay of about 10 seconds when pressing the "New Game" button.  What would be a good way of restarting the game?  Thank you


I've got a Samsung Galaxy Grand Neo (Jelly Bean). It has a 5 mp camera but I'm not satisfied with the picture quality. Will it help if I use another app like Camera Zoom FX or anything? If yes, then which app should I use?

I've seen in several forums that some phones have very good cameras and the photos  taken are compressed too much and the details are lost.  I was wondering whether a 3rd party application (forgetting the post processing done by the application) have access to the full resolution image without any compression.  So can another application access the raw data from the camera or all applications gets the same raw data when they access the camera?


Can someone assist me with this doubt? In many sites I have seen it written as "IP's" and in other as "IPs". What is the correct form to refer for the plural of IP?

For example, if I wanted to write the equivalent of  There are many automated teller machines in this city.  Would it be  There are many ATMs in this city.  or  There are many ATM's in this city. (could get confused with possessive form or contraction).  or just  There are many ATM in this city. (assuming the final s is included in Machines represented by M).  Maybe something else?


I haven't found an answer yet that I can make complete sense of, so I'm asking again to try and clear it up if I have any misconceptions.   If one defines $\cap_{i\in I}\alpha_i = \{x:\forall i\in I, x\in\alpha_i\}$ then apparently if $I = \emptyset$ this definition yields the absolute universe. This is just stated as if it is clear why, though I cannot see why. If $i\notin I \forall i$ then there is no set $\alpha_i$ for any $x$ to be a member of...?  I know I must be misreading this, but I can't see how by so much...  Edit: Let this intersection be $Z$, for convenience.

If $A_\alpha$ are subsets of a set $S$ then   $\bigcup_{\alpha \in I}A_\alpha$ = "all $x \in S$ so that $x$ is in at least one $A_\alpha$"  $\bigcap_{\alpha \in I} A_\alpha$ = "all $x \in S$ so that $x$ is in all $A_\alpha$"  It is the convention that $\bigcup_{\alpha \in \emptyset}A_\alpha = \emptyset$ and $\bigcap_{\alpha \in \emptyset} A_\alpha = S$.   But if $x$ is in $\bigcap_{\alpha \in \emptyset} A_\alpha = S$ then $x$ is in all $A_\alpha$ with $\alpha \in \emptyset$ and therefore $x$ is certainly in at least one $A_\alpha$ with $\alpha  \in \emptyset$. But then $x \in \bigcup_{\alpha \in I}A_\alpha$.  Can someone help me and tell me what is wrong with this? Thank you.


Can somebody please fix my code? I keep getting an error saying:     'pygame.Surface' object is not subscriptable   on line 40 where it says   SURF.blit(Dirt[tilemap[row][column]], (column*tilesize, row*tilesize))  I'm using pygame and I'm very new to python. Thank you for any help, its greatly appreciated.      import pygame, sys     import Sprites     import random      pygame.init()      from pygame.locals import *      #DISPLAY = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)      pygame.init()      infoObject = pygame.display.Info()      print(infoObject.current_w, infoObject.current_h)      tilesize = 40      TILESX = infoObject.current_w // 40     TILESY = infoObject.current_h // 40      print(TILESX, TILESY)      WHITE = (255, 255, 255)     BLACK = (0, 0, 0)      Dirt = pygame.image.load('Sprites/Dirt.png')     textures = {        Dirt    }    tilemap = [[Dirt for w in range(TILESX)] for h in range(TILESY)]     SURF = pygame.display.set_mode((TILESX * tilesize, TILESY * tilesize))     while True:  for row in range(TILESY):     for column in range(TILESX):         SURF.blit(Dirt[tilemap[row][column]], (column * tilesize, row * tilesize))  pygame.display.update() for event in pygame.event.get():     if event.type == pygame.QUIT:         pygame.quit()         sys.exit()   input()

Which types of objects fall into the domain of "subscriptable"?


I am confused in the following questions:  If i were/was a rich man.   I was rich.  If i were a rich man sounds correct to me but were is used after plural  Please answer this question.

If I was... If I were...   When is it correct to use "If I was" vs. "If I were" in standard English?


Assume $f_n , f \in L^1 $ and almost every where we have $ f_n \to f$ then I want to show that $\int|f_n-f| \to 0$ iff $\int|f_n| \to \int|f|$  One side is abvious by trinagle inequality , for the other side I think I must use a theorem like Dominated covergence theorem but I can not reach a conclusion. Is there a modiffied form of dominated covergence theorem.   I need some hint , thanks.

Let $1\leq p < \infty$. Suppose that    $\{f_k\} \subset L^p$ (the domain here does not necessarily have to be finite),  $f_k \to f$ almost everywhere, and  $\|f_k\|_{L^p} \to \|f\|_{L^p}$.    Why is it the case that $$\|f_k - f\|_{L^p} \to 0?$$   A statement in the other direction (i.e. $\|f_k - f\|_{L^p} \to 0 \Rightarrow \|f_k\|_{L^p} \to \|f\|_{L^p}$ ) follows pretty easily and is the one that I've seen most of the time. I'm not how to show the result above though.


If $C_k$ denotes binomial coefficient of choosing $k$ objects from  a set of $n$ objects how to calculate this:  $$C_0^2+C_1^2+C_2^2+C_3^2+\cdots +C_n^2$$

I was hoping to find a more "mathematical" proof, instead of proving logically $\displaystyle \sum_{k = 0}^n {n \choose k}^2= {2n \choose n}$.  I already know the logical Proof:  $${n \choose k}^2 = {n \choose k}{ n \choose n-k}$$  Hence summation can be expressed as:  $$\binom{n}{0}\binom{n}{n} + \binom{n}{1}\binom{n}{n-1} + \cdots + \binom{n}{n}\binom{n}{0}$$  One can think of it as choosing $n$ people from a group of $2n$  (imagine dividing a group of $2n$ into $2$ groups of $n$ people each. I can get $k$ people from group $1$ and another $n-k$ people from group $2$. We do this from $k = 0$ to $n$.


Show that if G is a group with $$|G| = p ^ n,$$ where p is prime and $n ∈\mathbb N$, then Z (G) (i.e. the center of G) must have at least p elements.   It is not an assignment question I only saw a similar exercise in a book and I want to know how it would be solved.  I think it can be done with the Orbit-Stabiliser Theorem because each orbit has size a power of p, and the orbit sizes sum to $$p^n$$ So,the number of elements not in Z(G) is divisible by p, whence the number in Z(G) is also. But there is at least one element in Z(G), namely the identity; so there are at least p such elements.Now, if g is an element of order p in Z(G), then  is a normal subgroup of G of order p. I do not know if it is so, thanks in advance.  I would like to know how it would be using the class equation...

I know this is a very common corollary of the class equation. And I know how to do it by using class equation.   But can you do it bu using group action, maybe find a nice set for G to act on?