Strange interaction between `addlegendentry` and `y filter` in pgfplot

From this answer  I am using y filter to process data, all fine until I decide to put a legend entry in the plot. I cannot seem to simultaneously use the yfilter and the addlegendenty lines in the following code.  I get this error  ! Illegal parameter number in definition of \pgfplots@curplotlist.   from this code (later try commenting the two lines):  \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{axis} \addplot[     y filter/.code={\pgfmathparse{#1*10.}\pgfmathresult}% try comment ] coordinates {  ( 1., 1. )  ( 2., 2. )  ( 3., 3. ) }; \addlegendentry{Legend Entry};% try comment \end{axis} \end{tikzpicture} \end{document}   What is wrong, is this a bug?  info: pdfTeX 3.1415926-2.5-1.40.14 LuaTeX, Version beta-0.76.0-2013061217  (TeX Live 2013)


Issue in Java when using hashMap.get() in while loop's arguments

today I was doing a simple exercise in Java and I came across a pretty simple-looking issue I don't understand. I need to calculate the smallest ammount of coins in which I can divide given change.  I decided to do it this using HashMaps, I have pasted my code below.  import java.util.Scanner; import java.util.HashMap;   public static void main(String[] args) {  Scanner input = new Scanner(System.in); HashMap<Integer, Double> coinMap = new HashMap<Integer, Double>(); int index = 1; int count = 0;  coinMap.put(1, 2.00); coinMap.put(2, 1.00); coinMap.put(3, 0.50); coinMap.put(4, 0.20); coinMap.put(5, 0.10); coinMap.put(6, 0.05); coinMap.put(7, 0.02); coinMap.put(8, 0.01);  double change = Double.parseDouble(input.nextLine());  while (change > 0.00){      while(coinMap.get(index) > change){         index++;     }     change = change - coinMap.get(index);     count++; }  System.out.println(count);   When I execute the program with an input 1.23, I get the following error  Exception in thread "main" java.lang.NullPointerException at Main.main(Main.java:28)  Process finished with exit code 1   Line 32 is the nested while loop where I use the hashMap.get() method. Why does this happen?


Jack d'Aurizio's exercise on Chebyshev polynomials

I am working through Jack D'Aurizio's “Superior Mathematics from an Elementary point of view”, and I found (Lemma 61) the following lemma: $\sum_{k=1}^{n-1}\frac{1}{\sin^2(\pi k/n)}=(n^2-1)/3$. He does not provide a proof, but says that it follows by considering the roots of the Chebyshev polynomial $U_n$ or $T_n$. I know that this is about relating the roots to the coefficients, but what what bothers me is the that the sin terms (closely related to the roots) appears in the denumerator - I can solve the other problems in Lemma 61. Could someone point out (as a hint) how to reformulate the sum in a more manageable way? Thanks!


How do you get the footer to stay at the bottom of a Web page?

I have a simple 2-column layout with a footer that clears both the right and left div in my markup.  My problem is that I can't get the footer to stay at the bottom of the page in all browsers.  It works if the content pushes the footer down, but that's not always the case.


Show that $2^n < n!$ for every positive integer $n$ with $n\geq 4$.

Using Mathematical induction prove the above proposition.  Basis step can be verified easily. But how can i show that it is true for $p(n+1)$.


How do I select a question with particular tags?

I want to select questions that are only tagged as SQL, SQLServer, SQLSever 2008. I am not interested in questions that have anything more than these tags. How do i select such questions only ?


Add attributes to existing object at same time

Lets say I have this simple object:  var User = {     name: 'Hans',     get_name: function(){return this.name},      street: 'Kings',     postcode: '482932',     city: 'New York' }   For a better overview, I would like to do something like this:  var User = {     name: 'Hans',     get_name: function(){return this.name}, };  //Adress Information User.add({     street: 'Kings',     postcode: '482932',     city: 'New York' });   As expected this doesn´t work. To achieve somthing similar I could write:  User.street = 'Kings'; User.postcode = '482932'; .......   But I would like to add several attributes at the same time. Is there a handy function for it? Thanks


, the following is written on page $90$: $$dE =\delta Q + \delta W$$  This is much more natural in the language of forms. All of the terms in the first law are one-forms. But the transfer of heat, $\delta Q$, and the work $\delta W$ are not exact one-forms and so can't be written as $d(something)$. In contrast, $dE$ is an exact one-form. That's what the $\delta$ notation is really telling us: it's the way of denoting non-exact one-forms before we had a notion of differential geometry.  This raised a couple of questions:  How is $dE$ a one-form while $\delta Q$ and $\delta W$ are not exact one-forms? What does it mean that $\delta Q$ and $\delta W$ are not exact one-forms?  Possible answer for the latter: it simply means there is no $Q$ and $W$ which can be written as $Q= d\psi \to dQ=0$ and $W= d\phi \to dW=0$. But if it so, why?


Copy audio stream, while also re-encoding with filters?

I'm using this command to copy the video & audio streams while also encoding the first audio stream to a stereo AAC track as well:  ffmpeg -y -i in.mkv -map 0:v -c:v copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 aac -b:a:0 192k -ac 2 -map 0:a:1? -c:a:2 copy -map 0:a:2? -c:a:3 copy -map 0:a:3? -c:a:4 copy out.mkv   However, I'm also wanting to filter that stereo track with better channel mapping like so:  -af "pan=stereo|FL=FC+0.25*FL+0.60*LFE|FR=FC+0.20*FR+0.60*LFE"   But when I try that I get the following error:  Filtering and streamcopy cannot be used together.   Is there any way around that error? As I'd like to have the original audio stream in tact, while also encoding another version to a 'nightmode' stereo track.


I updated to Ubuntu 15.04 from Ubuntu 14.10 a few days ago, and now my Logitech G230 headphones don't receive any sound. How can I fix this? PulseAudio Volume Control detects my headphones, and says they're working, but no sound comes through.  EDIT: Using alsamixer worked at first, but now it doesn't, and I get frequent bursts of static through my headphones now.


Dual-boot Windows 7 Ultimate 64-bit and Ubuntu 14.04.1 LTS 64-bit on Crucial MX100 512GB SSD

Good evening all,  I trust you are well.  This is my first time on AskUbuntu, the first time I ask something. Nice to meet you all.  I have some questions and I hope you can help me find the answers.  I have been doing some maintenance work on my laptop, i.e. cleaning, replacing, upgrading, and I decided that it is time for me to get to know Linux.  I purchased a Crucial MX100 512GB SSD to replace my old WD HDD and, I must admit, I am already in love with the flash memory: it's super fast!  I now wish to install Windows 7 Ultimate 64-bit and Ubuntu 14.04.1 LTS 64-bit on my SSD. This is going to be a clean install, so I can do whatever I want to do. The SSD is the only storage drive I have installed.  As I previously mentioned, I am new to Ubuntu - I am now looking for some guidance and help in order to get the dual-boot working.  I own a HP Pavilion dv6500 laptop, with 4GB RAM installed.  I will be using Windows primarily, Ubuntu is going to be a learning experience only, but I intend to keep it installed and use it more in future.  I don't know how to set the partitions properly, this is where I need your help. I have been reading many topics, posts and articles about this but I couldn't find an SSD-only, specific, step-by-step instruction. The ones I found were SSD and HDD related and I got confused. My apologies.  I am currently waiting for Ubuntu media (DVD and USB key) from a OSDisc.com delivery. I only have the Windows installation disc with me.  Can I install Windows while I wait for the Ubuntu delivery? Do I need to do anything on the SSD before the Windows installation? Do I need to do a Custom Windows installation and set the partitions from the initial wizard? If so, can you tell me, more or less, the different partitions I need to create? The SSD is brand new, I only installed Windows for testing but I can do it again.  Please, let me know if you require additional information from me.  Any help will be much appreciated.  Thank you very much in advance.  PS: I don't play games on my laptop.


What is charge actually? How to define it?

Is charge of something for (e.g.) an electron related to electromagnetic space if it exists due to energy, due to which it may have mass? I don't know about quantum mechanics or advanced particle models. Can anyone just simply give an intuitive idea?   EDIT I want to mean what actually gives electron charge if it is not assumed fundamental but result of some other physical phenomenon or it is  just the quantity defined to explain physical interactions?I think now it is clear


probability that 5 square lie along a diagonal line - doubt

If 5 squares are chosen at random from a chess board, what is the probability that they lie on a diagonal line?  this is the  indeed. Answer is given by Mr.Brian M. Scott. But I got a doubt in that.  Why the answer is limited to 64 squares. Don't we need to consider the possibilities of bigger squares also (total 204 squares)?  for example, five 2*2 squares can also be on same diagonal right?


"If something was" vs "If something were"

Which of these sentences is correct, and why?   "What if the Moon was a Disco ball?" or  "What if the Moon were a Disco ball?"


Is the gravity between objects other than celestials observable?

I've always read that all matter has gravity. But, can we observe it? I mean, The Earth pulls us but what about small daily objects?  For example, if we release 2 small objects in space, do they get closer?  My point of asking this question is that, maybe the gravity comes from the rotation of the Earth, not from its mass. I know I'm wrong by saying that but I want to know about the experiment and observation (aka proof) of that concept.


Complex proof for “a curious property of regular heptagons”: $\frac{1}{A_1A_2} = \frac{1}{A_1A_3} + \frac{1}{A_1A_4}$

Greets to all. Recently I came across the following question:  Find the value of n such that a regular n-gon satisfies the property $\frac{1}{A_1A_2} = \frac{1}{A_1A_3} + \frac{1}{A_1A_4}.$  Here $A_1, A_2, A_3, A_4$ are any four consecutive vertices of the relevant figure.   I have been able to find that it is 7 through both trigonometric manipulation and Ptolemy’s theorem but the first thought that sprung to my mind when I read the words “regular n-gon” we’re to try the approach of complex roots (generally of unity). However, I have been unable to get very far with this approach.   I have gone so far as to take the $z$ to be the complex $n^{th}$ root of unity and hence rewrite the problem to find said $z$ given that $\frac{1}{|z-1|} = \frac1{|z^2-1|} + \frac1{|z^3-1|}$  Further, the idea struck to multiply both sides of the equation with |z-1| and then with |z| (which is 1) to get $1 = \frac1{|1+\frac1z|} + \frac1{|z+\frac1z+1|}$  The advantage of this is that $z + \frac{1}{z} + 1$ is purely real, and so we can lift the modulus. However I am unable to get past this stage and fear I have hit a dead end. Replacing $\frac1z$ with $z^{n-1}$ does not help me much either.   Thank you for your help.


I have FbApp class public class FbApp{ private FbServiceActivity fbServiceActivity;   public FbApp(){ fbServiceActivity = new FbServiceActivity(); }  public void highestActivityMenu() {     System.out.println("menu"); }  public void start(){ fbServiceActivity.highestActivity(); }  FbServiceActivity class public class FbServiceActivity { private FbApp fbApp;  public FbServiceActivity(){ //not connected to the question }  public void highestActivity() { //some code     fbApp.highestActivityMenu(); //some code }  In by code I call start() at the beginning. Program starts and works up to fbApp.highestActivityMenu(). The error is NullPointerException.


java arrays reverse not understanding the logic

I was trying to use this code I made to reverse a array. I don't understand why I was getting [I@7a84639c as my output in my console.   And for some reason why doesn't this method actually save my reversed array into the array? If i add a print at the bottom of x[i]=c[i]; it shows the array reversed but when i add a call for example karn[0] it shows that my array isn't actually reversed.  I want to solve this by staying true to the code i made.  import java.util.Arrays;  public class HelloWorld {   public static void main(String[] args) {       int[]karn={1,2,3};      rev(karn);     System.out.println(karn.toString());   }     public static void rev(int[]x){     int[]c=new int[x.length];      for(int i=x.length-1;i>-1;i--){       c[i]=x[i];       x[i]=c[i];     }   } }


How to get python class instance variables inside __init__?

I'd like to know if there's a way to get class instance variables that are inside an init.   I've seen something verify close what I am looking for except that I am looking for a way to get instance variables and not class variables.  Linked subject:   Say I have a class such as:  class Identity:     table = "tb_identity"     def __init__(self, id="", app_name="", app_code="", state="", criticality=""):         self.id = id         self.app_name = trigram_name         self.app_code = trigram_irt         self.state = state         self.criticality = criticality    I'd like to be able to get a list of with instance variables name like:  ["id","app_name","app_code","state","criticality"]   With something such as :  members = [getattr(Identity,attr) for attr in dir(Identity) if not attr.startswith("__")]   Im only getting "tb_identity" and not even "table". But that's not the main problem, I am looking for something like:  ["id","app_name","app_code","state","criticality"]   Is there any proper way to get these variables inside init ?  Thank you for your time.  Edit: Any way of doing this without instanciation?


Implications from $f(z)\in\mathbb{R} \Longleftrightarrow z\in \mathbb{R}$

Let $f:D(0,1)\longrightarrow \mathbb{C}$ be a holomorphic function  such that $f(z)\in\mathbb{R} \Longleftrightarrow z\in \mathbb{R}$. How to prove that $f$ has at most one zero on the disk.    By hypothesis the zeros of $f(z)$ are real and $\displaystyle f(z)=\sum_{n=0}^\infty a_nz^n$ , $a_n\in\mathbb{R}$ since $f(z)=\overline{f(\overline{z})}$.  Any help would be appreciated.


Why the power set of $\mathbb N$ is not countable?

Why $\mathcal P(\mathbb N)$ the power set of $\mathbb N$ is uncountable ? Indeed, countable union of countable set should be countable, and since $\mathcal A_n:=\mathcal P(\{1,...,n\})$ is countable, that $$\bigcup_{n\in\mathbb N}\{1,...,n\}=\mathbb N,$$ I don't really see why $$\bigcup_{n\in\mathbb N}\mathcal A_n\neq \mathcal P(\mathbb N).$$  1) So first, what would be $\bigcup_{n\in\mathbb N}\mathcal A_n$ ?  2) And secondly, why $\bigcup_{n\in\mathbb N}\mathcal A_n\neq \mathcal P(\mathbb N)$ ?


Determinant of a $2n$ square block matrix in which all blocks commute

Problem: Let $A , B , C , D$ be commuting $n$-square matrices. Consider the $2n$-square block matrix  $$M=\begin{pmatrix}  A & B  \\  C & D\end{pmatrix}$$  Prove that $|M|= |A||D| - |B||C|$, where $|M|$ means the determinant.  I should also state that this from a beginning Linear Algebra book, so I have not studied any fancy determinant formulas yet. My problem here is that everything I can try involves multiplication but there is a minus sign on the right hand side which I cannot presently handle.  Note: (this is not the same question as has been asked before here on this site as the formula here is quite different.)


Which is more important for phd? university or supervisor?

If you ought to choose a Phd program in scientific/engineering field: a top 10 university without good supervisor and almost self-guiding or a top 200 with expert in the field?


I have tried to install google earth as indicated here  but now I have this problem:   sudo dpkg -i googleearth_6.0.3.2197+1.0-1_amd64.deb Selecting previously unselected package googleearth. (Reading database ... 275020 files and directories currently installed.) Unpacking googleearth (from googleearth_6.0.3.2197+1.0-1_amd64.deb) ... dpkg: dependency problems prevent configuration of googleearth:  googleearth depends on ia32-libs-multiarch; however:   Package ia32-libs-multiarch is not installed.  dpkg: error processing googleearth (--install):  dependency problems - leaving unconfigured Processing triggers for mime-support ... Processing triggers for shared-mime-info ... Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' Unknown media type in type 'uri/mms' Unknown media type in type 'uri/mmst' Unknown media type in type 'uri/mmsu' Unknown media type in type 'uri/pnm' Unknown media type in type 'uri/rtspt' Unknown media type in type 'uri/rtspu' Processing triggers for desktop-file-utils ... Processing triggers for gnome-menus ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf-2.index... Errors were encountered while processing:  googleearth   what shoul I do next?


Is "printf("%d\n",(int)a);" undefined behaviour for unsigned int?

If I use wrong format specifier like this :  unsigned int i = -1; printf("%d\n", i);   It is invoked undefined behaviour because %u format specifier for unsigned.  C11 standard § 7.21.6.1(P9):     If a conversion specification is invalid, the behavior is   undefined.282) If any argument is not the correct type for the   corresponding conversion specification, the behavior is undefined.   But, If I write like this:  unsigned int i = -1; printf("%d\n", (int)i); // unsigned to signed    Is it also undefined behaviour?


Fantasy Short Story that appeared in an anthology about 1968-1971

I read this short story around 1971.  The basic plot is for a steward to lead the king's son to another city state.  Along the way they have a number of interactions with people/subjects that demonstrate the immaturity of the son.  Last one involves the son beating up the suitor of a innkeeper's daughter.  When confronted by the steward, the son displays his contempt and chauvinistic regard of his future subjects and the steward kills him.  Turns out the trip was a test of his suitability to assume the crown and the steward explains to the king that he was not worthy.  Been looking in all the anthologies can seem unable to find it.  Thanks for your help


800 X 600 cannot select higher resolution

Well, this is new.  In the middle of troubleshooting all of the other issues with Ubuntu 14.04.1 LTS, I rebooted and it now comes up with a resolution of 800 X 600, and there are no other resolutions available.  I've already re-installed the nvidia-current driver twice.  mobo: M4A89GTD-PRO  Bios: 2101  cpu:  AMD Athlon(tm) II X4 645 Processor  ram:  6111188 kB  hdd:  ATA OCZ-VERTEX3  gpu:  GeForce GT 440  Mouse / keyboard: M510, K350 single unifying receiver  Linux 3.13.0-43-generic (x86_64) Ubuntu 14.04.1 LTS   edit - I should point out, this is a brand new installation from a fresh download.  I have not changed or altered or installed anything at all beyond running software updater a few times, installing the latest nvidia-current driver, and doing a sudo-apt update a few times.  But everything is exactly as it was installed with all of the defaults.  edit - based on a recommendation below, I've completely wiped the proprietary driver and replaced it with the xorg.edgers driver.  Technically, it corrected the problem, so this is solved.


Objective: To separate text column from figures column in every page

I don't know if this has been asked before. But so far nothing has come up with my search.  In some books, the figures are placed at the outer side of the page like in the picture below.    Is this achievable in TeX/LaTeX? That is how does one set up the page so that all text will appear in a 'text column' and the figures appear in a 'figures column' in every page?


Malformed [tag:] elements freeze the markdown preview

Using Chrome on Windows. When I enter the following text in the editor, the markdown preview stops working, frozen, until the page is reloaded:  [tag:.]  It also happens if I precede [ and/or : with a \. Sometimes I don't need the closing ], but I cannot put my finger on the reason for that.  Additionally, if the above is entered into the editor and then posted, and then that post is edited, the markdown preview does not appear at all.


Where can I find 64bit Ubuntu OS Image for Intel core i5 processor?

I searched in ubuntu.com portal but I dont see any where about the OS image for my 64bit Intel Core i5 processor. where can I get this ? or can I use AMD64 or i386?


Using Django time/date widgets in custom form

How can I use the nifty JavaScript date and time widgets that the default admin uses with my custom view?  I have looked through , and it briefly mentions django.contrib.admin.widgets, but I don't know how to use it?  Here is my template that I want it applied on.  <form action="." method="POST">
         {% for f in form %}
  {{ f.name }}	 {{ f }}
         {% endfor %}
     <input type="submit" name="submit" value="Add Product"> </form>   Also, I think it should be noted that I haven't really written a view up myself for this form, I am using a generic view. Here is the entry from the url.py:  (r'^admin/products/add/$', create_object, {'model': Product, 'post_save_redirect': ''}),   And I am relevantly new to the whole Django/MVC/MTV thing, so please go easy...


While digging in a C++ project, I encountered a strange usage of C++'s new operator:  int arr[5]; ClassA* a = new(arr) ClassA();   Would you please help me understand this syntax?


Prevent latex from putting big figure alone on the page

I have a figure which occupies around 75% of the page and Latex keeps putting this figure alone on a page (in the middle of the page). What I want is to have some of the lines of the following paragraph right after the figure, even if there is space for only 4 or 5 lines. I tried with \nopagebreak and minipage, but nothing seems to work. Thanks!  EDIT: I fixed it by setting the [ht] parameters for the figure.


How to get  $f_{i}$ (more or less strictly)? What are the requirements for getting them, excluding $||f_{i}|| = 1$, commutational law $[f_{i}, f_{j}] = if_{ijk}f_{k}$ and hermitian nature? Is that enough?


Recently in physics news, scientists have experimentally discovered the so-called . It seems that a quantum mechanical monopole is different from a magnetic monopole. So my question is what exactly is a quantum mechanical monopole and what are the differences between the two if there are any.


Extend a non-static class with a protected constructor

I'm trying to extend Selenium's By class .  public static class SeleniumExtensions {   public static By Text(this By by, string textToFind)   {     return By.XPath("");   } }   But I can't find my extension on the By class when I do the above.


Proving that a well-ordered set with the order topology is not homeomorphic to any initial segment of it

Let $\langle X,\leq_X\rangle$ be a well-ordered set. I want to show that $X$ with the topology on $X$ relative to $\leq_X$ (the order topology) is not homeomorphic to any initial segment of $X$. And then I need to conclude that any two well-ordered sets $\langle X,\leq_X\rangle$ and $\langle Y,\leq_Y\rangle$ are homeomorphic iff they are isomorphic. I can feel both seem true, but while the first one I don't know how to proof, the second one I can prove, but not as a conclusion of the first. Any ideas on how can I show the second one as a conclusion of the first?  And on how can I prove the first?  Thanks!


How do I access files on my Windows partition from Ubuntu?

I'm new to how Ubuntu works and installed it yesterday alongside Windows 7, but in doing so I have created a few problems. I have partitions for Windows, Ubuntu, System Recovery, and storage for all my files with the intention to access them on either OS, but I don't even see all of my drives listed on Home Folder. Not to mention that  during the Ubuntu instillation I managed to screw up any chance of booting to the Windows side of things at all. I'll fix Windows once I get my hands on a copy in a couple days, but in the mean time any suggestions for accessing my files?  If you need me to find any data about my computer to help you figure out what's wrong with it, please don't hesitate to tell me what I need to show you. Thanks


Step by step establish a connection between SQL Server 2014 and Oracle 12c

I have two servers (both servers are on Windows OS):   Server_A running Oracle 12c Server_B running SQL Server 2014   I want these servers to be able to see each other, so I can SELECT anything I want in Server_A from Server_B and vice versa.  I only want the ability to run SELECT queries (not INSERT, UPDATE, DELETE or any DDL queries), and also if possible to EXECUTE procedures.  What options or technologies we have for achieving this issue and which one is better?    Tell me if any software I have to install or any configuration have to be set on each of servers. I appreciate explaining the instructions step by step.


sudo apt-get upgrade not upgrading some packages

sudo apt-get upgrade is not upgrading packages  hp@hp-HP-15-Notebook-PC:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages have been kept back:   libnss3 openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless thunderbird   thunderbird-gnome-support 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. hp@hp-HP-15-Notebook-PC:~$


How can I have bigger fontsize than \fontsize{60}{70}?

I am writing my thesis and the font size of the chapter title is defined in the class of the document. Somehow I cannot make bigger than \fontsize{60}{70}. Even if I write \fontsize{3000}{70} I cannot observe any difference.  Is there a way to change it?  Thanks  My code (in the class file):   % Numbered chapter heading style: \renewcommand{\@makechapterhead}[1]{%   {\singlespacing     \parindent \z@ \raggedleft \normalfont      \vspace*{5mm}%       \ifnum \c@secnumdepth >\m@ne     \usepackage{lmodern} \usepackage{graphicx}     \fontsize{120}{60} \selectfont \scshape \bf \textsc \space \thechapter         % Chapter followed by number     \par\nobreak     \fi     \interlinepenalty\@M     \vspace{20mm}%       \huge \scshape \bf #1\par                                                            % chapter title     \rule{\textwidth}{1pt}                                                                                %horizontontal line                          \nobreak    \vskip 40\p@   }}


If $G$ is a monoid, $e$ is its identity, if $ab=e$ and $ac=e$, can you give me a counterexample such that $b\neq c$?   If not, please prove $b=c$.  Thanks a lot.


windows command prompt change directory is now changing directory

I am trying to change directory from C drive to E drive. but the its not happening through following code.  C:\>cd E:\Program files\wkhtmltopdf  C:\>echo %cd% C:\   It says C:\ is current directory evern after changing directory. Please correct my mistake.


What are the complex solutions of $z^4+16=0$?

What are the complex solutions for $z^4+16=0$? I know that one solution is $z=a+bi=-2$. How can I figure out the other solutions?


What is the best method for determining when a roast chicken is done cooking? Many of the methods I have seen online provide approximate time ranges for cooking dependent on the weight of the chicken. I don’t usually have a scale handy when I cook, especially if I’m only cooking part of the chicken. Are there any precise approaches I can use that are easily accessible?


NullReferenceException Error For Respawning

I am making an infinite runner game, and I am having issues with killing and respawning the player. I have a coroutine setup on the GameMaster objec which is the respawn and on the player I have a method that calls that coroutine. But when ever the player hits an enemy I get a Null Reference Exception and I am not sure why this is happining.  Here is the entire error  NullReferenceException: Object reference not set to an instance of an object Player.OnCollisionEnter2D (UnityEngine.Collision2D col) (at Assets/Script/Player.cs:32)  Here is the line that when I double click on the error it goes to. This line is on the player.  StartCoroutine(GetComponent<GameMaster>().RespawnPlayer());   This is the method that the above line is in. This method is on the player.  void OnCollisionEnter2D(Collision2D col) {     if (col.gameObject.tag == "Enemy")     {         Debug.Log("HIT");         Destroy(col.gameObject);         StartCoroutine(GetComponent<GameMaster>().RespawnPlayer());     } }   Here is the coroutine that the above method is trying to call. This method is on the GameMaster GameObject and this object never gets destoryed or setActive false.  public IEnumerator RespawnPlayer() {     player.GetComponent<SpriteRenderer>().enabled = false;     player.GetComponent<BoxCollider2D>().enabled = false;     player.GetComponent<movemnt>().enabled = false;     yield return new WaitForSeconds(respawnDelay);     adMenu.SetActive(true); }   If anybody can give any suggestions that would be great!


When installing user applications, where do "best practices" suggest they be located?

Occasionally I install applications manually, rather than using apt or another package manager.   What location (/usr/, /usr/local/, /opt/, /home/, etc.) is suggested by "best practices" for the installation of user applications?


Wildcad selector with ignoring similar matches

So i want to hide all elements and use  $('[id^=option_]').hide();   And that works fine, however it is hiding things i dont want it to hide. I have dynamically generated ids such as  option_1 option_1_form option_2 option_2_form  So as you can see it will also hide the forms. So i was wondering if there was a way to either filter _form out or use a regular expression of some sort for the selector  ('[id^=option_][id$=/[^0-9 ]+/]')   Not that the example would work, but an example of what i mean! This would force the _form to be excluded since it would have to end in a numeric value. If you know of a better way, i am all for it too. I am no jQuery wiz.


Why can function declarations have const parameters in C++?

Consider the following function declaration:  void foo(const int);   This function has the signature void(int). It can be defined as follows:  void foo(int) {}   This makes sense since whether or not the parameter is const within the function body doesn't matter to the caller. But then, why are we even allowed to write const parameters in a function declaration?  EDIT: This is not a duplicate of . In that question, const was added to a parameter in a function definition. They didn't discuss const parameters in a function declaration.


C - ProcessCreation Problems with WinAPI

I am trying to fopen a file into a file buffer and then create a new process with it. I was trying ASM to goto the start of the file but sadly because of windows it wouldn't actually do anything because all of the information on the top of a windows executable. So I tried to create a new process, and I am not to good with the windows API. Can anyone tell me what I am doing wrong?  #include <stdio.h> #include <windows.h> #include <WinBase.h>  char *file0_buffer; int file0_size;  STARTUPINFO si; PROCESS_INFORMATION pi;   int main(int argc, char **argv){     ZeroMemory( &si, sizeof(si) );    si.cb = sizeof(si);    ZeroMemory( &pi, sizeof(pi) );     FILE *file0 = fopen("./input.exe", "rb");    if(file0 == NULL){printf("fopen file0 error"); getchar(); return 0;}     fseek(file0, 0, SEEK_END);    file0_size = ftell(file0);    rewind(file0);     file0_buffer = (char*)malloc(file0_size);    fread(file0_buffer, sizeof(char), file0_size, file0);    fclose(file0);     CreateProcess(NULL, NULL, NULL, NULL, TRUE, CREATE_DEFAULT_ERROR_MODE, &file0_buffer, NULL, &si, &pi);     getchar(); return 0; }


Why are my if-else statements being ignored?

I am trying to create some code that reads a textfile, splits up the text file into smaller chunks, and performs actions depending on what some of the chunks equal to. Here is my example text file.  Derek 19 12 Jake 17 1 God 5000 13   The issue that I am running into is that my if-else statements are being completely ignored and only the else statement at the end is being called upon. I would appreciate it if someone could help me to understand what i am doing wrong. Here is my code(The text file and the code shown are simplified versions of a much larger program that i am working on. I have tested the code to make sure that the error is still there). Any help that anyone could provide would be greatly appreciated.  package testProgram;  import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner;  public class IfElseStatmentTest {  public static void main(String[] args) {     String fileName = "NumberData.txt";     Scanner inputStream = ReadInputFile(fileName);     while (inputStream.hasNextLine()){         String newLine = inputStream.nextLine();         String[] data = newLine.split(" ");         if (data[0] == "Derek")             System.out.println("Hi Derek");         else if (data[0] == "Jake")             System.out.println("Hi Jake");         else if (data[0] == "God")             System.out.println("Hi God");         else             System.out.println("kaboom");     }  }  public static Scanner ReadInputFile(String fileName){      Scanner inputStream = null;     try {        inputStream = new Scanner(new File(fileName));        return inputStream;    }    //display an error message if you have trouble opening the file                 catch(FileNotFoundException e) {        System.out.println("Error opening the file " +                             fileName);         System.exit(0);        return inputStream;    }      }  }   Here is the incorrect output that I am getting  kaboom kaboom kaboom   Here is the output that i am supposed to be getting.  Hi Derek Hi Jake Hi God


Struggling with an inequality: $ \frac{1}{\sqrt[n]{1+m}} + \frac{1}{\sqrt[m]{1+n}} \ge 1 $

Prove that for every natural numbers, $m$ and $n$, this inequality holds: $$ \frac{1}{\sqrt[n]{1+m}} +  \frac{1}{\sqrt[m]{1+n}} \ge 1 $$ I tried to use Bernoulli's inequality, but I can't figure it out.


Icon for Visual Studio Code in Spotlight not working

For some reason the icon for visual studio code in spotlight doesn't work. And it's only for visual studio code. See attached picture.  Is there a way to fix this?


Does a router have a unique MAC address? Is it detectable by a website?

I found somewhere on the internet that routers also have a MAC address. Is it true? If so, how can I make it undetectable?


Should you add some salt to flour when baking?

I was always taught to add a pinch of salt to flour when baking (mainly cakes / muffins and puddings).  I have recipes that specifically mention adding salt and others that don't.  Is there a scientific reason to add salt?


I am using ubuntu to deploy a laravel project. 2 days ago my server crashed and I could not access it even via ssh. I restarted the server from AWS dashboard, but it crashed again after some time. So I restarted again and tried to debug the problem. I used htop to view processes. There is a process started by www-data user and utilizing 100% CPU. It eats up the RAM slowly and after RAM maxes out, the server dies. I could not understand how this process is starting. Here is the htop output.. Any debugging help is appreciated.


Let me get my favorite tags using data explorer

How do I get a collection of the tags I've marked as favorites?  When I hover over a tag, and click the star icon, it toggles between Favorite, Normal and Ignored. How do I find that information using the data explorer?  If not possible, I would like to add such functionality please.  Example: On the web UI, I can go to the 'unanswered questions', then select 'my tags'. I want to filter and sort that list of questions.


Can anyone tell me the subtle difference between "All we do is hide away" and "All we do is to hide away"?

I thought these 2 sentences,  "All we do is hide away" and "All we do is to hide away", meant the same. However, one day, a native English speaker told me there's a subtle difference in meaning between those two sentences. I asked for an explanation but he said it was too subtle to explain. Can anyone tell me what's the difference between those two sentences?


I and my friend used to ask programming questions on Stack Overflow, until we saw that 90% of our questions have at least 1 downvote and nobody cares to explain or at least give a clue why.  For example:        And many more on Super User... (can't see up/down count there)   It seems to me like you're allowing this kind if mingebag-ish behavior on purpose. Is it fun to click on a good question's vote count and see like +5/-3? Does it seem right to you?   It definitely doesn't seem right to me or my friend, who quit this website because of this.  Don't you think this must be stopped, possibly now?  You know, my problem here is that, when a question gets a downvote first (has overall negative reputation), it ceases to get views and thus less chances to get an answer. I came to stack overflow to get answers on my questions, not to have their quality or reason questioned.


Is "Read only routing" the only way to force the connection with ApplicationIntent=ReadOnly to connect secondary replica?

I have no problem with setup "Read-only routing".  My point is if we use "Read-only routing". We need to add the "ApplicationIntent=ReadOnly" into our application connection string. That's beyond our DBA's role.  Is there any other way to let one application such as SAS to connect to the listener and the SQL AG will point it to the secondary?  Many thanks,


I have used ModernCV template to write resumes, Beamer to prepare presentations. Likewise, is there any standard Latex template for writing Statement of Purpose (SOP) or Research Proposal?


What do you call using another method when you can't explain something

What do you call the method what you use when you know what to say but not exactly how to say it but use another method to do so?  You have an idea you have to explain to people, you know what you want to say but not how to articulate it correctly. So you end up using examples, sayings to help the person to understand what you are trying to convey, to help to get to the meat/jist of it until you get an "aha"moment that is what I'm trying to say     The  stackexchange english language user knew what he wanted to ask in an indirect way but didn't know the exact words to ask it correctly so he used examples to trying get the question in a "roundabout" way.   or     Pete wants directions to the arcade. He asks a passerby but forgot the word " arcade" so instead he asks "can you give me directions to the place in the mall where the 12-year old kids hang out?" He used  workaround way to explain where he wanted to go. He didn't say the correct word but the passerby knew the place he meant.   What method did Pete use?     For the above Pete can't explain the word succinctly so he uses a [...] way or expresses it []   Words that don't fit exactly:  convoluted means. Convoluted means difficult to understand or complex where I'm trying to instead convey it's an "other"  way to ask to get there.  non-succinct way also is similar to the above  Inarticulate method coveys he isn't clear which is untrue since he is using another method  parallel conveys the two ways that are the same, where instead I want to say the the other method is instead an out of the norm way  Roundabout,Workaround is probably the closest I can think of   This might be a better explanation of the context     The computer system user asks a question but the support ticket was closed with explanation "Your question is convoluted". The user believes the reason is unfair as he believed he question in isolation might be phrased without the correct technical terms but he additionally used a specific example to explain  what he was trying to achieve which left no room for ambiguity to understand what he was asking. He escalates it to their manager saying his question was not convoluted as he used used a [got to the jist of it] way to explain which the helpdesk should have understood and that he feels they were intentionally being pedantic.


Ignoring somebody screws up the avatar list

When I ignore a user, the avatar list looks weird.    The blank line beneath the row with the avatar of the ignoree is quite annoying.    I use Google Chrome on OS X.  There was a  tagged  but it still looks weird.


How can I set an external display (monitor) as the primary one?

Currently the MacBook's display works as primary, so every application I open gets open on the 13" and I have to drag it to the 24". I also don't have access to the dock on my 24".  Is is possible to turn off the MacBook screen and use only the one attached via DVI?  (I've just connected my 24" HP LP2475w via Mini DisplayPort to DVI to my MacBook Pro 13", which works great except for this one thing.)


Let z1,z2 be complex numbers with $|z_1|=|z_2|=1$. Prove that $|z_1+1|+|z_2+1|+|z_1z_2+1| \ge 2$.  My attempt: I started with $z_1=e^{i\theta_1}$ and $z_2=e^{i\theta_2}$ and then plugged them into the equations given but as it came to $\theta_1+\theta_2$ in the last modulus I got pretty confused regarding how to proceed.   Please help me out.


What is the difference between using different variable types to refer to the same object?

If I have a superclass named Vehicle and a subclass named SportsCar, what is the difference between these 2 codes to create an object of SportsCar? What would be the difference between car1 vs car2? SportsCar car1 = new SportsCar(); Vehicle car2 = new SportsCar();


Prove that $f(x,y)$ is a polynomial if $f(-,y)$ and $f(x,-)$ are

Let $f$ be a function on $R^2$ that is a polynomial in $y$ when $x$ is fixed and that is a polynomial in $x$ when $y$ is fixed. Is it true that $f$ is a polynomial?  The only idea I come up with is the characterization of one-variable polynomials. A function $p(x)$ is a polynomnial iff $p^{(n)}(x)=0$ for some $n$. This gives that the $m$th partials of $f$ are zero for $m \in \mathbb Z_+$. But how to conclude that $f$ is a polynomial in two variables? Is there any criterion that I can use?


How do I deal with unknown installation error code -505?

I have a Nexus 7 and it has just been updated to Android 5.    Two apps give me trouble after the system upgrade, games that my kids play. Dumb Ways to Die and VVVVVV. Both of these had icons after the upgrade but when clicked a popup appeared saying "App not installed". I attempt to install them. The download is fine. The install begins. And then an error message:      Unknown error code during application installation: "-505"   The exact same error for both apps. I've restarted the device to no avail.   I have no idea what to do next. Please could some kind soul give me advice on how I might remedy this problem.


When seeking to acquire a legacy domain from a site owner, what should I look for in the domain history?

What kinds of things should I look for when seeking to purchase a legacy domain (i.e. a domain previously owned and operated)?


Proving the universal mapping property for polynomial rings

I am studying from Patrick Morandi's Field and Galois Theory, and I am stuck on Problem 6 from Section 1 (on page 13).     Verify the following universal mapping property for polynomial rings:         Let $A$ be a ring containing a field $F$. If $a_1,\dotsc,a_n \in A$, show that there is a unique ring homomorphism $\varphi \colon F[x_1,\dotsc,x_n] \to A$ with $\varphi(x_i) = a_i$ for each $i$.       Moreover, suppose that $B$ is a ring containing $F$, together with a function $f \colon \{ x_1,\dotsc,x_n \} \to B$, satisfying the following property: For any ring $A$ containing $F$ and elements $a_1,\dotsc,a_n \in A$, there is a unique ring homomorphism $\varphi \colon B \to A$ with $\varphi(f(x_i)) = a_i$. Show that $B$ is isomorphic to $F[x_1,\dotsc,x_n]$.      The  for the book says that we must assume that all the rings are commutative and the ring homomorphisms are $F$-homomorphisms (that is, they are ring homomorphisms that fix $F$).    I have proved the first part as follows: let $\mathbf{a} = (a_1,\dotsc,a_n)$. The evaluation map $\operatorname{ev}_\mathbf{a} \colon F[x_1,\dotsc,x_n] \to A$ given by $\operatorname{ev}_\mathbf{a}(f) = f(a_1,\dots,a_n)$ is an $F$-homomorphism with $\operatorname{ev}_\mathbf{a}(x_i) = a_i$ for each $i$. Moreover, if $\varphi$ is any $F$-homomorphism from $F[x_1,\dotsc,x_n]$ to $A$ with $\varphi(x_i) = a_i$, then we must necessarily have that $$ \begin{align} \varphi\left( \sum_{k_1,\dotsc,k_n} c_{k_1,\dotsc,k_n} x_1^{k_1} \dotsm x_n^{k_n} \right) &= \sum_{k_1,\dotsc,k_n} c_{k_1,\dotsc,k_n} \varphi(x_1)^{k_1} \dotsm \varphi(x_n)^{k_n}\\ &= \sum_{k_1,\dotsc,k_n} c_{k_1,\dotsc,k_n} a_1^{k_1} \dotsm a_n^{k_n}\\ &= \operatorname{ev}_\mathbf{a}\left( \sum_{k_1,\dotsc,k_n} c_{k_1,\dotsc,k_n} x_1^{k_1} \dotsm x_n^{k_n} \right). \end{align} $$ Thus, the existence and uniqueness of $\varphi$ has been established.    I am stuck in proving the second part. From the previous result, we have a unique $F$-homomorphism $\Phi \colon F[x_1,\dotsc,x_n] \to B$ given by evaluation at $(f(x_1),\dotsc,f(x_n))$, and my intuition is that this is the required isomorphism. But I am not able to make much progress.  To show that $\Phi$ is injective, the idea I have in mind is as follows: given $0 \neq g \in \ker(\Phi)$, choose the ring $A$ and elements $a_1,\dotsc,a_n$ in such a way that $g(a_1,\dotsc,a_n) \neq 0$, thereby arriving at a contradiction. To show that $\Phi$ is surjective, my intuition is that the uniqueness of the map $\varphi$ should play a role, since we will have used only the existence in showing injectivity.  Am I on the right track? I haven't been able to convert these thoughts into a proof yet, and I would really appreciate some hints. Thanks in advance!


Cloth simulation presets are gone, how do I get them back?

I'm trying to use one of the cloth presets in the Simulations tab, but I've accidentally deleted a couple of the presets and I don't know how to get them back. I've tried restarting blender with a new file, but the cloth sim. still didn't have the Presets. And I even Tried to Load Factory Settings  as well and it still wouldn't work! If anyone can tell me whats going on, that would be great. Thanks!


Identical numbering for identical references across different documents

I'm dealing with project documentation.   For the type of projects I'm working on, that means I have a large number of individual documents, each of which cover a particular aspect of the project. But all these documents are to be read in conjunction with each other. As such, they frequently   cross-reference each other, which I know how to do thanks to  and  reference identical external documents, which is what this question is about.    Currently, the bibliography for any one of these documents (document A)  citing some external document [external S] will assign some reference ID to it, say, RD2. Another document (document B) citing the same [external S] will generally assign a different reference ID  to it, say, RD15.   I would like all documents that reference the same external sources use the same reference ID for it. So, for instance, \citep{external S} used in either document A or document B will always show up in their bibliographies as RD521, for example.   How to accomplish this?


How do I prompt a user for a name and remove that name in the array?

Even though the name I entered is in the array, this piece of code always says it's not on the list. Does it have to do with what I set searchValue equaled to?  String[] stuName = new String[MAX_ON_LIST];    int currentSize = 0;    for (int i = 0; i < stuName.length; i++) {             stuName[i] = JOptionPane.showInputDialog("Enter student name:");    }    String searchValue = JOptionPane.showInputDialog("Enter a name:");;   int position = 0;   boolean found = false;    while (position < stuName.length && !found) {      if (stuName[position] == searchValue) {         found = true;      }      else {         ++position;      }   }   if (found) {      stuName[1] = stuName[currentSize - 1];      --currentSize;       JOptionPane.showMessageDialog(null, Arrays.toString(stuName));   }   else {      JOptionPane.showMessageDialog(null, "Name not on list");      JOptionPane.showMessageDialog(null, Arrays.toString(stuName));    }


When I boot Ubuntu 14.04, Wifi works properly for few minutes, but after that I can't connect to internet.But still my Wifi status shows connected.  lshw   - *-network       - description: Wireless interface                product: RTL8723BE PCIe Wireless Network Adapter                vendor: Realtek Semiconductor Co., Ltd.                physical id: 0                bus info: pci@0000:04:00.0                logical name: wlan0                version: 00                serial: ac:b5:7d:20:cd:e4                width: 64 bits                clock: 33MHz                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless                configuration: broadcast=yes driver=rtl8723be driverversion=4.1.6-040106-generic firmware=N/A ip=192.168.1.142     latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn                resources: irq:16 ioport:3000(size=256) memory:f0c00000-f0c03fff   lspci   Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter   lspci -vvnn   Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)   Kernel driver in use: r8169  Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]   Kernel driver in use: rtl8723be


Getting insight into partitions of a table in Azure Synapse (similar to SQL Server)

I'm using  AKA Azure Synapse (which is different from serverless/on-demand Synapse that comes with Azure Synapse Analytics). And :  While the syntax of partitioning may be slightly different from SQL Server, the basic concepts are the same.   I have a table that receives ~33 million new rows per day. Column named version indicates the day on which that row arrived. E.g. all 33 million rows arriving on 2021-05-22 have same version value (2021-05-22). Currently it has ~300 million rows (9 days worth of data). Table has daily partitions.  Here is the order of things I did:  create table with 345 daily partitions (from 22-May-2021 to 30-Apr-2022). insert 9 days (33 million x 9 = ~300 million rows) worth of data into this table. I used INSERT INTO mytable SELECT * FROM some_other_table_with_300_million_rows) update statistics mytable  Question  Expectation: I have 9 partitions with ~33 million rows and 336 partitions with 0 rows. Reality: All partitions have equal amount of data.  When I run : SELECT      partition_id, index_id, partition_number, rows, data_compression_desc  FROM      sys.partitions  WHERE      object_id = OBJECT_ID('mytable')  I get this result: partition_id        index_id    partition_number    rows    data_compression_desc 72057597508452352   1           1                   868784  COLUMNSTORE 72057597508583424   1           2                   868784  COLUMNSTORE ...... 72057597553410048   1           344                 868784  COLUMNSTORE 72057597553541120   1           345                 868812  COLUMNSTORE  868784 * 345 = ~300 million  however: SELECT *  FROM sys.dm_pdw_nodes_db_partition_stats  WHERE object_id = OBJECT_ID('mytable')  returns no rows.


Would it be possible to create a wand more powerful than the Elder Wand?

According to Dumbledore, the Elder Wand was not created by Death himself but rather by Antioch Peverell. So, is it not possible for a powerful wizard, such as Dumbledore, to create a wand that equals or surpasses the Elder wand? Is it even possible for another wizard to be as knowledgeable in wandlore as Antioch?


Replace a pattern with same plus some variable contents

#! /bin/csh  # NEW PASS value will change in every run set NEW_PASS=`dyanamic generating password on everyrun`  echo $NEW_PASS  There is another conf file where we need to change the above generated password. In new.conf file corresponding line is pass=XYZ, Now above NEW_PASS value should be updated with new.conf file with replcing XYZ. I tried sed -i -e "s/^pass*/pass=${NEW_PASS}/g" new.conf  But it's not working. Not sure if there is any issues with command syntax.


My question is; $f(x)=\left\{\begin{array}{cc}x^{2} \sin \left(\frac{1}{x^{2}}\right), & 0<x \leq 1 \\ 0, & x=0\end{array}\right.$ "Show that this function is Bounded Variation on [0,1] or not. " i know , It's not a bounded variation function. Because i read a theorem from a book; where a,b>0 ; $f(x)=\left\{\begin{array}{cc}x^{a} \sin \left(\frac{1}{x^{b}}\right), & 0<x \leq 1 \\ 0, & x=0\end{array}\right.$ if a>b; f is a bounded variation if a≤b ; f is not a bounded variation. So; its clear that this function is not bounded variation. But i want to solve in different ways. I need your helps. Thanks for your answers.


How to upload or save on FTP to /www folder on Ubuntu 12.04 localhost?

I just start to use Ubuntu as OS and would like to ask what's the best practice to use apache and save my files on /www saving by programs or FTP.  Thanks a million!


Do I need a UK visa if I have a 7-hour layover in London?

I’m a South African travelling from the USA to South Africa via London. Will I need a visa or something even if I don’t go out of the airport?


Boot hangs after installing the latest driver from PPA and Ctrl+Alt+F1 keyboard shortcut doesn't work

I recently installed Ubuntu. Everything was working just fine until I wanted to change the selected driver for my laptop (Lenovo Y50) under the Additional Drivers tab in settings.   I added the ppa: graphics-drivers software source and then I selected the latest available driver. I don't remember the version. Then I proceeded to restart my computer, but now it just gets stuck at a black screen with the message /dev/sda2: clean, 290961/14106624 files, 4246276/56401920 blocks.   I can't use the CTRL + ALT + F1 (or F2...etc) shortcut, literally nothing happens when I try.


Best practice for frequent sending webSocket/Socketio/webRCT data

I already done game template for classic platformer. I use matter.js for physics and my own override draw functions. Everything works fine. Next stage is to make it multiplayer.  I interest is it good to send user input (force vector) only when play act with keyboard/mouse (apply force on remote gameplay) or to send on every change (for example) absolute x,y and then use set position method.    GamePLay is fully scaleable (In any resolution same diametric transformation). webRTC look like best solution for communication in fly.   I worry about collisions moments.  Any suggest for this question ?


How to prove connecting 3 dots to three squares without overlap is impossible?

I was given this problem to solve by a professor who promised an A if anyone could solve it. I'm nearly certain it is impossible, because at some point you have too many vertices and inevitably box yourself in, but I would like to know how to prove it.  How can you prove that it is impossible to connect every * with every 0 without overlapping lines?  *    *    *     0    0    0   EDIT: Professor said you get an A if you solve it, not prove it's impossible. I'm not even in the class, it was my friend's question, I am just curious.


Size of Visible Universe: Why now ~50Bly instead of 15?

I understand, I think, the argument that the position is based on. Said in a sentence, the 15Bly's is in the temporal dimension only therefore space drops out because the redshifting absorbs the interim expansion of space which maintains a constant $c$ throughout. When the measurement is not in terms of time but in terms of distance the redshifted component of light must be translated back to distance and added to the initial displacement.  I get the reasoning to the extent my explanation says I do (it might be wrong and if so please treat it as the first part of my question). I accept that the reasoning itself is self-consistent and that the conclusion reflects a  legitimate way to look at things.   But despite trying quite hard, I haven't yet been able to see that this view merits its advancement from supplementary/alternative view to the primary view, displacing the observable physicality in the process. Let me briefly provide a little illustration.   Currently the number given to what is explicitly described as the observable or visible universe is ~50 Bly. As it is stated surely it is a false statement, for the physicality of what we see in the telescope, across the board is the universe as if no interim expansion ever happened.   This issue is not whether a larger universe can be anticipated, but whether the interim expansion merits being moved over from the unobservable-but-anticipated universe into the actual visible universe.   Surely that is a mistake, since the interim expansion is no more visible than any other region in the unobservable universe. It's not in our light cone.   So can anyone explain what is going on for me? It doesn't appear legitimate to cite redshift as the physical justification, because for one thing it has been known since Maxwell that redshift and time are mutually small 'r' relativistic. When we look at a high redshift galaxy, time is slower in the observed galaxy relative to the observer time from the perspective of the observer. That's surely the primary physicality, and not the view that adds the interim expansion. Not because the expanding universe is not the best explanation but because the interim expansion is outside our light cone.


How do I prove this limit does not exist: $\lim_{x\rightarrow 0} \frac{e^{1/x} - 1}{e^{1/x} + 1} $

How do I prove that this limit does not exist?   $$\lim_{x\rightarrow 0} \frac{e^{1/x} - 1}{e^{1/x} + 1} $$  My attempt:  When you approach from from left towards zero , say i take -0.00000000000001 . i substitute in expression i get (-1) . But if i take 0.000000000001 and substitue i get (=1) (by applying L'Hop) . But if i dont do this and apply L'Hop straighaway i get 1 .


How would I prove this statement? I know that it's a finite series. I don't know how to approach this at all.  $$\sum_{i=1}^N i^3 = \left(\sum_{i=1}^N i \right)^2$$


1 IV with two categories and 5 DV, which statistical test to choose?

I'm wondering which statistical test to chose to find out which of my five DV is the difference between Country X and Country Y not statistically significant?   My Variables are:  1 Independent variable: Nation (Divided into two categories, Country X and Country Y)  5 dependent variables sumscores (comprised of different variables I have transformed into 5 different means)   Thanks beforehand!  - And i'm sorry if its hard to understand me, English is not my native language


Transit visa for Brussels for Indian citizens

I am travelling from India to NY in coming month.  My flight will halt for about 1 hr at Brussels, for technical checking and passenger on boarding. May I know whether I would require transit Visa-on-arrival at Brussels Airport, if for any unexpected reason passengers are asked to disembark the flight?    I am an Indian citizen.  US Visa type: F1 (Student)


How do I fix this mesh faces issue? Tried recalculating normals and all

It happened earlier but I fixed it with flip normal, but now it's there again.  I have no idea what's causing it.  I'm a beginner, help me solve it. Thanks!


Example of a finite commutative ring $R$ and an ideal $I$ where $I$ is maximal but not prime?

Example of a finite commutative ring $R$ whose maximal ideal $I$ is not prime?  Is it possible? I am not able to find such example.


Do I lose reputation on deleting my post with score -3? I just lost my reputation by 10.


Pop-in banner for "This answer has been locked or deleted"

According to , a banner pops in when a question has been locked or deleted. I'm wondering if we can do the same for answers.   Currently we see the pop-in banner if a user has made a change to their answer. But several times now I've written up long, drawn-out comment to an answer, and in the meantime the user has realized their error and deleted their own answer. Currently I don't know that anything has changed until I hit the "add comment" button. Why isn't there a pop-up to notify me of the delete when it happens, just like the way it works for edits?


Question ban – what exactly are "positive contributions"?

I asked a couple of really bad (horrible!) questions here and got hit with a question ban. No surprise there – I was a new user, and now know where I went wrong. The problem is that I can't get question privileges back. The bad questions were bad enough that I don't think I could've edited them to be better – it wasn't formatting or style – the questions themselves were just bad questions, so I deleted them.   The  said that my question privileges would automatically be reinstated once my "positive contributions" outweighed my negative ones. I realize that it's done automatically, but as an extremely new coder, I really can't do much in the way of positive contributions except upvotes (if that can even be considered a contribution). What should I do to lift the ban?


public class Exa {     public static void main(String[] args) {         Integer b = new Integer(10);         add(b);         System.out.println(b.intValue());    }      public static void add(Integer b){         int i = b.intValue();         i += 3;         b = new Integer(i);         System.out.println("b="+b+",i="+i);     } }   I wrote the above code, and run output 10. Why did it not change?  Why output 10, please give detailed instructions，thanks！


Creating a Magnetic Monopole through a torus

Could you create a magnet in shape of a hollow torus and magnetize it so that the interior is south and the exterior is north in order for it to act as a monopole?  Is that possible? Thanks


Unable to set drupal_set_message() after logout redirect

I want to show a message via drupal_set_message() after logout and redirects to page.  Code:  /*  * Implements hook_user_logout().  */ function example_user_logout($account){   $login_message = 'You have been redirected';   drupal_set_message(t($login_message));   $login_redirect = '/mypage';   example_redirect($login_redirect); }  /**  * Redirect path for logout.  */ function example_redirect($path) {   $response = new RedirectResponse($path);   $response->send();   exit; }   Tried commenting exit also, but still no luck. Any help would be appreciable.


Prove that the norms ||.||2 and ||.||infinity on a finite dimensional space are equivalent

I have to prove that the norms $||\cdot ||_2$ and $||\cdot ||_\infty$ on a finite dimensional space are equivalent. I know how to do this with two integer values for the norms where for example $\displaystyle ||x||_p= \left(\sum_{i=1}^n|a)i|^p \right)^\frac{1}{p}$ and $p$ is a constant but not with infinity since $||x||_\infty=\max(|x_1|,...,|x_n|)$. Someone please help!


Axiom of Choice: What exactly is a choice, and when and why is it needed?

I'm having trouble understanding the necessity of the Axiom of Choice. Given a set of non-empty subsets, what is the necessity of a function that picks out one element from each of those subsets? For instance, take a look at following paragraph from Wikipedia:     A sketch of the proof of Zorn's lemma follows, assuming the axiom of   choice. Suppose the lemma is false. Then there exists a partially   ordered set, or poset, P such that every totally ordered subset has an   upper bound, and every element has a bigger one. For every totally   ordered subset T we may then define a bigger element b(T), because T   has an upper bound, and that upper bound has a bigger element. To   actually define the function b, we need to employ the axiom of choice.   Using the function b, we are going to define elements a0 < a1 < a2 <   a3 < ... in P. [...]   To me it is clear that the ai's exist so why do we need singling them out? Sure enough, the binary relation representing b may not exist as a set, but what do we need it for?  Finally... if we actually need the Axiom of Choice to single out the ai's in the above paragraph, since the axiom only postulates the existence of choice functions, how do we single out the choice function itself so that we can select the ai's with it? Certainly not with another choice function, since we would need to choose this function by a third choice function.  So when and why do we really need the Axiom of Choice?


Help Understanding Why $D_{10} = C_2$ $\times$ $D_5$

I was running around the internet looking at Dihedral groups and ran into a page that claimed that $D_{10} = C_2$ $\times$ $D_5$ (I know notation for Dihedral groups is confusing - here I'm using $D_{n}$ to denote the Dihedral group of order $2n$), and was wondering as to why this is the case.  Now I've been mostly thinking about this in terms of group representations. I know $D_{10} =$ <$a, b: a^{10} = b^2 = 1,$ and $bab^{-1} = a^{9}$>, or equivalently, <$a, b: a^{10} = b^2 = (ba)^2 = 1$> ($a$ is akin to a rotation and $b$ is akin to a reflection).   I also know that $D_5 =$ <$u, v: u^5 = v^2 = 1,$ and $vuv^{-1} = u^4$>, while $C_2 = <c:c^2=1>$. Then thinking of '$\times$' as creating an ordered pair, to me it would seem that $C_2$ $\times$ $D_5$ gives us a group with 3 generators, with the relations listed as above.   I'm not quite sure where to go from here. One thing that stands out to me is the fact that we have two generators of order 2 ($v$ and $c$), and I suspect we might make use of that somehow. However, I'm still not sure how to get the group presentation to look like $D_{10}$'s. I guess thinking about it now, I'm not even really sure how to picture what $C_2$ $\times$ $D_5$ would look like (and if there even is a way to visualize it without $D_{10}$).  Any help would be appreciated, and if there is a different way to approach this problem (Isomorphism between the two groups), that would be welcome as well, though I really do want to try and figure this question out through group presentations as I feel it's a very useful tool.


Just failed my first review audit: Tried to flag an answer as a duplicate

So I just got review privileges, and I was given this answer to review:  ()  It was listed as two hours old, with no user. I opened the question, saw the answer from Chris, saw the wrong timestamp, and did not see the two-hour-old version. I thought that it was a copied answer (timestamps! you've failed me again), and concluded that "First Answers" might be hidden until it was approved in review. So I clicked "flag".  Maybe add some text saying, "Note: this answer is already up" (not in those words, obviously), or rather, have the text in the Queues page. (I already know just one audit failure won't count against me.)  Others who failed this:


I am trying to change my IP address using terminal commands.  When I use ifconfig 10.10.10.134 netmask 255.255.255.0 I can change the IP address and can still connect to my network (I can ping other devices), but I can no longer connect to the internet. Is there something else I should be doing, or even a different command I should be using?


I tried making hot cross buns over the weekend using gluten free flour. I used a standard recipe and tried substituting All purpose flour for a GF version and White bread flour for a GF version.  The recipe calls for 2 cups of each with 1/2 cup warm water and 1/2 cup warm milk and 1 1/2 tsp yeast.  However my dough just didn't rise. Can anyone give me some suggestions so as to ensure the dough rises?  Many Thanks


A geometric question involving centroid, circumcenter and altitude

I am trying to solve  in my own (Euclidean) way but was not successful. The question is interesting because the given is simple enough and therefore its solution should not be that difficult.  I think, it will be completely solved if we can prove that:-  KO extended (where O is the circum-center of ⊿ABC) meets AH extended right at the circum-circle.  Or equivalently, can we show that the mentioned intersection point is con-cyclic with A, B, and C.  I tried angle chasing and got the following:-    Alternate method that I have tried:-    Note that I am asking a different question though the given is the same.  I hope the proof need not go through showing that AK // BC.


Python has an if operator '?' like Java?  Example in Java:  String res = (2 > 1) ? "yes" : "no";


How to "grep" for line length *not* in a given range?

NOTE: This question is the complement of this Q&A:     How can we grep for lines that have less than 8 or more than 63 characters, none that contain more than eight and less than 63 characters?  So, some acceptable character counts could be...  7 6 5 4 3 2 1 0   ...and...  64 65 66 67 ...


How to understand the interface Serializable?

I know that the implementation of the interface Serializable makes an object to be serialized, but how is possible that when the interface is simply a definition of a class with their methods like:  interface Serializable {    public one();    public two(); }  public class Dog implements Serializable { private static final long serialVersionUID = 1L;   ... }   (class Dog doesn't implement any method of Serializable)  Simply I don't understand, can you explain me?


I want to filter the contents of all the views of my website. This should happen before the views pager is built. I guess I need a Views plugin then. First of all I want to create a views filter plugin, which will be recognized by Drupal.  On my way I have found an article about creating a views display extender. However this one is a display extender. I want to create a "filter extender". But I have no idea what I should specify in the annotation of the class, which resides in the      Drupal\my_module\Plugin\views\filter   namespace.   I have tried this:  /**     * Filters views content.     *     * @ingroup views_filter_handlers     *    *     * @Plugin(     *   id = "my_filter_name",     * )     */   But the filter won't get recognized by Drupal after a cache clear. I was setting a few breakpoints there and the class is never invoked. Has anybody a hint or a good tutorial about creating a custom "views filter plugin"?


How to get all elements on the viewport using jQuery?

The :visible jQuery selector says that it will select all the elements which consumes space. Is there any other selector that will get the visible elements on the viewport ?


Silverlight is enabled, yet can't watch Netflix?

My machine is 32 bit so can't use Chrome. Netflix does not work on chromium.   So I installed silver-light using pipelight:    Any solution?


Coming from a programming background, where should I start to learn web design?

I'm a web developer mainly working in front end developing. My main fields are HTML5, CSS3 and Flash ActionScript 3.0.  Here in Iran, teamwork means nothing for most of the people, but I think it's the most important aspect of our work, especially in web design.   I have poor skills in graphic design and UI design. I always have to work with graphic designers for my websites. They are usually good and skilled designers. But they are all print designers and unfortunately they know nothing about the web and designing for it.  For example, one of the designers that I work with most of the time is a great designer and he won a couple awards for his logo and poster designs. However, he knows nothing about the web and most of my time is spent explaining to him how things work on the web, i.e. in what size he should work, using pixels instead of centimeters, and so on... After all he is a print designer, not a web designer. They often think everything is static and constant, not in motion.  So the best way to work around this is to improve my skills in graphical designing. I just want to be able to design good layouts, make good color selections, and etc for my websites. I do not want to design illustrations and do heavy graphical works. Just design websites with no Photoshop illustrations like posters and etc.  What do you do for your graphic works, and if you do them yourself, which books or references do you suggest I read? Where should I start?


MLE estimator linear regression: Why inverse?

I would like to know why $ \beta = (X^T X)^{-1} X^T y $ is the solution for the ML-estimator for the linear regression.  In principle it is shown, e.g., here in  respectively in specific I would like to know where the inverse comes from?


If you are creating a 1d array, you can implement it as a List, or else use the 'array' module in the standard library.  I have always used Lists for 1d arrays.  What is the reason or circumstance where I would want to use the array module instead?  Is it for performance and memory optimization, or am I missing something obvious?


I want (object) (infinitive) or (gerund)?

I want people to enjoy the show. or I want  people enjoying the show.  Is it possible to use both?  I know it's a duplicate but the answers were not clear in the other posts.


Dimension of the space of all $m\times n$ matrices over $F$

Prove that the space of all $m*n$ matrices over the field  $F$ has dimension $mn$, by exhibiting a basis for this space.  I know that it is too easy to prove but cannot remember any basis for this space. please help me.


Why couldn't I win in this situation with ron?

I was playing riichi mahjong with the  and just before my turn when I would draw the last tile I got into this situation:    At last, it's mine! — I thought and clicked ron expecting to win the game as with the new 7 sou I would have the required 4 melds and a pair:   The two open melds: chii and pon. Chii: 5 sou, 6 sou, 7 sou. Chii: 7 sou, 8 sou, 9 sou. Pair of green dragons.   But instead of winning, this message popped in front of me:    What are multipliers, and why the lack thereof impedes me from calling ron?  Then I tried the other option, chii and selected the tiles I wanted in it, resulting in exactly the same set of melds described above, but with another one of them open.  I expected at this point that I should have win... since I got 4 melds and one pair, and my hand looks like it has 4 melds and a pair, but the game disagrees and expects me to discard something.    Being left with no other option, I click in wathever tile, for instance the 9 sou and the match ends in a draw, with me and left player in tenpai.  What happened? Why couldn't I call ron? I am missing something or is it a bug in the game? And what about using chii instead?


How to remove the ^[[1m ^[[22m ^[[4m ^[[24m characters while keeping the newline?

INPUT:   [user@notebook test]$ cat a.txt  music musicsheet sheetmusic  [user@notebook test]$ cat a.txt | cat -vte - $ ^[[1mmusic^[[22m$ ^[[1mmusicsheet^[[22m$ ^[[1msheetmusic^[[22m$ ^[[4m^[[24m$ [user@notebook test]$    NEEDED OUTPUT (after removing these interesting characters):   [user@notebook test]$ cat a.txt  music musicsheet sheetmusic [user@notebook test]$ cat a.txt | cat -vte - music$ musicsheet$ sheetmusic$ [user@notebook test]$    Question: How can I remove the interesting/unknown characters:   ^[[1m ^[[22m ^[[4m ^[[24m   what are these characters? could there be more similar?   Trying to use tr to remove non-printable characters just makes these interesting chars visible and removes newline, what is both bad:   [user@notebook test]$ cat a.txt | tr -cd '[:print:]' [1mmusic[22m[1mmusicsheet[22m[1msheetmusic[22m[4m[24m[user@notebook test]$


Crispy sweet potato (yam) fries in a deep fryer?

I bought a roto deep fryer recently. But everytime I make yam fries, they end up being soggy.   My process: I cut the sweet potato fries to about 1/4 inch. I follow deep fryer instructions of preheating to 370'F before dropping the basket. From there, I fry a full basket for about 12-14 minutes.  The yam fries always come out soggy.  Any suggestions to improve the process?


how to find nth term of different fibonacci series with golden ratio

what i know :  if i want to find  $Nth$ term of a fibonacci series like :   1   1   2   3   5   8   13  21 .......   then to find $6th$ term we use golden ratio like:    so it becomes like :     well and good.now  what i want to know :  what changes should i make in golden ratio or while applying it for different fibonacci series . For example :   1   6   7   13   20   33 .......   now if i want to find the 10th no. of above series then what changes should i do in golden ratio... now what is the value of X10's R.H.S(right hand side)  X10 = ? (for this fibonacci series)


Photoshop: how to save PDF at a particular file size?

I want to save multiple files into a PDF presentation in Photoshop. When I save it at the high pdf setting the file is much too big. when I save it at the low quality option its too small and the quality falls significantly. Can I set a Photoshop PDF presentation to set too a particular file size in between eg. 10MB


In my company we are planning to move from SuSE to Ubuntu as a distribution for development environment. Previously for Suse, we had a server hosting RPMs of our packages and a developer would download those RPMs using svn and install them.  Now, I want to create ubuntu repo of those packages so that a developer can use apt-get command to get the packages.  My question is:  How to create a repo from scratch for Ubuntu packages ?


How to show that the triangle is equilateral triangle?

If $\cot A+\cot B+\cot C=\sqrt3$ then prove that the triangle is equilateral triangle.   Trial: I can counter check that this is true as $\cot 60+\cot 60+\cot 60=3 \frac{1}{\sqrt3}=\sqrt3$.Here I also know that $A+B+C=180$. But I am unable to show it. Please help.


How to find files and directories that are taking too much space in Linux?

In Windows I could easily do this by navigating the directory tree and looking at the sizes. But in Linux, you need to run a command and, what's worse, it takes a lot of time:  $ du -sh /some/dir   I'm using a disk of 1 TB, but for some reason I only have like 50 GB left, and I can't seem to find what's taking so much space.  I remember that in Ubuntu I had to manually remove old kernel images. But now I'm on Fedora and dpkg -l | grep linux-image doesn't work, and I guess Fedora removes them automatically anyway.  Any ideas?


Viewport shading has no light even though there's light

The viewport shading is just grey, with no light even though there are a few lamps in the viewport. Can anyone explain why? As you can see, the black vertical line down the middle is the sun lamp  EDIT: I couldn't find out the problem, but I just exported the model into another blender file and it was fine there.


The difference between relative adverb and relative pronoun

What's the difference between a relative adverb and relative pronoun ?  Like in a sentence This is the place where he was assaulted. how where is modifying the verb was assaulted. I have been reading Wren and Martin for grammar it just says that the adverb modifies the verb but not how. I have also watched videos regarding the relative adverbs and in one video by KHAN ACADEMY, David who is the tutor just says "technically the adverb where is modifying the verb" but does not explains.  I want like a complete description like in this way it is modifying a verb or something like that.


I am using revtex4-1 for a Physical Review Letter. Typically when a figure is made, the caption starts out FIG. 1. <text>. I am creating a supplementary file and I would like it to say FIG. S1. <text>. How can I change that?


Markdown links to StackExchange sites and special actions

Markdown supports special links to the StackExchange sites, such as [vi.se] to "Vi & Vim" or [unix.se] to "Unix & Linux." Do these only work in comments? Or in other contexts too? (They didn't seem to work in asking this question here on Meta, at least from what Preview was showing me.) Where can I find a list of the special site Markdown links for all sites in the StackExchange network? There are also some other special links such as [edit] to link to the form that will edit the question. Are there other special links such as that one?


I would like to further alias my login to include the -X flag I find myself typing over and over again.  Current usage:  ssh -X myserver   Desired usage:  ssh myserver   Current ~/.ssh/config entry:  Host myserver   Hostname     172.18.0.17   User         root   Port         1234   IdentityFile ~/.ssh/id_rsa   ProxyCommand???   I'm reading the manpage again but there isn't a clear mapping between flags and keywords in my opinion:


Why does LaTeX impose a memory limit of 8,000,000 and can I circumvent it?

A few people have already asked the question of how to increase the maximum memory LaTeX is allowed to use (see  and ) because it is quite common for LaTeX to run out of memory when using, for example, pgfplots to plot experimental data.  Following the instructions from , I managed to successfully increase the memory limit. However, I was not able to increase the limit to an amount capable of processing a 10,000-data-points plot. When I ran fmtutil-sys --all as instructed, the process terminated with errors. The problem was that, according to texmf.cnf, I had exceeded the memory limit by using main_memory = 50000000:  % Memory. Must be less than 8,000,000 total.  I was wondering why that is the case and whether there is a way to circumvent that limit. If there isn't a limit, what are the maximum values I can set the main_memory, extra_mem_top and extra_mem_bot to? Do the latter two count towards the total memory (I assume they do!)? Is there another variable that is more closely related to the "type of memory" that pgfplots uses so that I can increase that instead?  For your information, I externalize my figures using mode=list and make and I already tried lualatex, but I'm it still complains about running out of memory (even though it uses only around 1Gb of RAM).  I understand that people will argue that it is unnecessary to plot such a large number of data points in such a short space, but I would at least to know why LaTeX imposes such memory limits, especially with memory being so cheap these days.


Exporting data from Google Earth to QGIS

I am trying to export Google Earth searches as a kml file to QGIS. How come all existing locations of a search (e.g. Walmart) in the United States only shows select locations. I'm doing a project on food deserts and want to include all major chains and their locations in the U.S.


Proving a function is continuous for a fixed variable

This is from Conway's book:  Suppse $f:G \rightarrow \mathbb{C}$ is analytic and define $\phi: G \times G \rightarrow \mathbb{C}$ by $\phi(z,w)=\frac{f(z)-f(w)}{(z-w)}$ if $z \neq w$ and $\phi(z,z)=f'(z)$.  Prove that $\phi$ is continuous...  Because $f$ is analytic, $f'$ exists for all points $z$ in the region $G \times G$.  I think I get for free that $f'$ is continuous.  But I'm not sure where to go from here.


Let $f(z)$ be an entire function such that $$|f(z)|<\frac{1}{|\text{Im}(z)|},\qquad z\in\Bbb C-\Bbb R.$$ The question asked me to prove that $f(z)=0$. At least looking at it, it really seems to have an application of Liouville's theorem lurking around somewhere, but I haven't found it.   My thoughts first led me to think about doing this by contradiction and using Picard's little theorem. So, I've considered a strip containing the real axis (say of width $2$ for simplicity). This will imply the complement maps into the unit disk, which implies that this strip has to map almost everywhere else on the complex plane. Now, on the imaginary axis, I know that $f(z)$ will vanish as $z\to\infty$, and this seems like it might be useful. I'm sort of under the impression $f(z)$ might have an essential singularity at $\infty$, which would mean $f(1/z)$ has an essential singularity at $0$. Either way, it of course can't have a pole at $\infty$ because of $f(z)$ vanishing on the imaginary axis, and if it is a removable singularity, it must be $0$, which still gives the solution. Therefore, I think it must have something to do with $f(z)$ having an essential singularity at $\infty$.   I was hoping to combine this with the above inequality and deduce a contradiction, but I haven't thought of one yet.   Any hints or suggestions? I'm studying for a prelim. exam, so this isn't homework.  Update: So, in the spirit of searching methods using the essential singularity at $z=0$, we have $$\left|f\left(\frac{1}{z}\right)\right|\leq\frac{1}{\left|\text{Im}\left(\frac{1}{z}\right)\right|}=\frac{|z|^2}{|y|}.$$ Thus, for $|y|>1$, we have $$\left|f\left(\frac{1}{z}\right)\right|<|y|\left|f\left(\frac{1}{z}\right)\right|<|z|^2.$$ Thus, if I can show that $|f(1/z)|$ is a polynomial, we'll know it can't have an essential singularity at the origin, concluding my proof.


Show: $ f(a) = a,\ f(b) = b \implies \int_a^b \left[ f(x) + f^{-1}(x) \right] \, \mathrm{d}x = b^2 - a^2 $

If $a,b$ are fixed points of $f$, then $$ \int_a^b \left[ f(x) + f^{-1}(x) \right] \, \mathrm{d}x = b^2 - a^2 $$   In the words of 2014 MIT Integration Bee Champion (Carl Lian), the above property was responsible for the champion's victory in the 2013 MIT Integration Bee. How does one go about proving this property?


How can I make my touchpad scroll either vertically or horizontally, but not both?

If I'm browsing the internet and a page has both horizontal and vertical scroll bars it becomes really irritating to scroll with my touchpad. It keeps scrolling horizontally as well as vertically!  I'm using Ubuntu 16.04  and below are touchpad settings  Device 'SynPS/2 Synaptics TouchPad':     Device Enabled (160):   1     Coordinate Transformation Matrix (162): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000     Device Accel Profile (282): 1     Device Accel Constant Deceleration (283):   2.500000     Device Accel Adaptive Deceleration (284):   1.000000     Device Accel Velocity Scaling (285):    12.500000     Synaptics Edges (286):  1769, 5431, 1652, 4658     Synaptics Finger (287): 25, 30, 0     Synaptics Tap Time (288):   180     Synaptics Tap Move (289):   242     Synaptics Tap Durations (290):  180, 100, 100     Synaptics ClickPad (291):   0     Synaptics Middle Button Timeout (292):  75     Synaptics Two-Finger Pressure (293):    282     Synaptics Two-Finger Width (294):   7     Synaptics Scrolling Distance (295): 200, 200     Synaptics Edge Scrolling (296): 0, 0, 0     Synaptics Two-Finger Scrolling (297):   1, 1     Synaptics Move Speed (298): 1.000000, 1.750000, 0.036300, 0.000000     Synaptics Off (299):    1     Synaptics Locked Drags (300):   0     Synaptics Locked Drags Timeout (301):   5000     Synaptics Tap Action (302): 2, 0, 0, 0, 1, 3, 0     Synaptics Click Action (303):   1, 1, 0     Synaptics Circular Scrolling (304): 0     Synaptics Circular Scrolling Distance (305):    0.100007     Synaptics Circular Scrolling Trigger (306): 0     Synaptics Circular Pad (307):   0     Synaptics Palm Detection (308): 0     Synaptics Palm Dimensions (309):    10, 200     Synaptics Coasting Speed (310): 21.120001, 50.000000     Synaptics Pressure Motion (311):    30, 160     Synaptics Pressure Motion Factor (312): 1.000000, 1.000000     Synaptics Resolution Detect (313):  1     Synaptics Grab Event Device (314):  0     Synaptics Gestures (315):   1     Synaptics Capabilities (316):   1, 0, 1, 1, 1, 1, 1     Synaptics Pad Resolution (317): 83, 46     Synaptics Area (318):   0, 0, 0, 0     Synaptics Noise Cancellation (319): 8, 8     Device Product ID (277):    2, 7     Device Node (278):  "/dev/input/event6"


How to change the format of biblatex references to have 3 columns (alpha, author, 'Titel and other information')?

I need to customize my references in the following style using biblatexs Alpha style having the columns Label, Author, and Title and Other Information.    Till now with your help I could already change the square brackets to slashes.   My code so far is:   \documentclass[12pt]{scrartcl}  .  .   \usepackage[% natbib        = true, backend       = bibtex8, %bibtex, biber style         = alphabetic, %citestyle     = alphabetic, maxcitenames  = 2, mincitenames  = 1, %bibstyle      = alphabetic, %authoryear, %draft, %, sorting       = nyvt, maxbibnames   = 6, minbibnames   = 6, language      = ngerman, date          = long, backref       = false, backrefstyle  = none,  % none, three, two, two+, three+, all+ firstinits=true  ]{biblatex}    \usepackage[babel,german=quotes]{csquotes}    \bibliography{input/literatur}      \newrobustcmd{\mkbibslashes}[1]{/#1/}      \DeclareFieldFormat{labelalphawidth}{\mkbibslashes{#1}}    \DeclareFieldFormat{shorthandwidth}{\mkbibslashes{#1}}     \DeclareCiteCommand{\cite}[\mkbibslashes]    {\usebibmacro{prenote}}    {\usebibmacro{citeindex}% \usebibmacro{cite}}    {\multicitedelim}    {\usebibmacro{postnote}}    \renewcaptionname{ngerman}{\refname}{Literaturverzeichnis}   .   .   .   Thanks again


France Airport Transit Visa for Indian Passport Holders

I will be traveling from India to Cuba with an connecting flight at Paris CDG airport to Cuba. The layover is 7hrs. Do I need a transit visa for the layover at Paris Airport?


Estimate confidence intervals for the P value of the Pearson's Chi-squared test

I have a contingency table where I estimate the p value Pearson's Chi-squared test, I want to take a confidence interval to validate this value P some code to do this by simulation monte carlo?         A   B   C   D      H    3   9  16  13     M   13   8  19  21       Pearson's Chi-squared test    data:  tabla1 X-squared = 4.7077, df = 3, p-value = 0.1945


Comments don't refresh when refreshing question

Comments under a question don't get refreshed in the Android app when you refresh a question.  Steps to reproduce:   Open a question in the app. Post a comment. Edit that comment. Pull down to refresh. Old comment is being displayed.   Also the comment ages don't refresh ("0 seconds ago").


Evaluating $\sum\limits_{k=0}^n\cos(kx)$ and $\sum\limits_{k=0}^n\sin(kx)$ without Complex Numbers

Alright, so the standard way to evaluate $\sum\limits_{k=0}^n\cos(kx)$ and $\sum\limits_{k=0}^n\sin(kx)$, is to respectively take the real and imaginary part of  $$\sum_{k=0}^n{\rm e}^{ikx}={\frac {{{\rm e}^{i \left( n+1 \right) x}}-1}{{{\rm e}^{ix}}-1}}$$ $$=\frac12\left({\frac {\cos \left(   \left( n+1 \right) x \right) -\cos \left( nx  \right) }{\cos \left( x \right) -1}}+1 \right) +\frac12i\left( {\frac {\sin \left(  \left( n+1 \right) x \right) -\sin \left( nx  \right) -\sin \left( x \right) }{\cos \left( x \right) -1}} \right)$$  While this is relatively simple concept and easy to remember how to derive, is there a way to come up with these results that do not rely on complex numbers? Also, do not give an inductive proof, as that is not particularly constructive, and the form of the sum values is not easy to determine by inspecting.


Sorting a list which contains dictionaries

I have a list which looks like this:  some_list = [{'id':1, 'name':'Steve', 'age':23}, {'id':2, 'name':'John', 'age':17}, {'id':3, 'name':'Matt', 'age':31}]   I would like to sort the list my the name value in the dictionary. So Instead of the above order, it would be John then Matt then Steve.  How would I go about this? Thanks.


Evaluate $a^n$ using the binary expansion of $n$

Use the following algorithm to devise an algorithm for computing $a^n$,  Hint: use binary expansion of $n$ to evaluate $a^n$. The following algorithm is based on the above algorithm to evaluate $a^n$, but I don't see that it does anything extra and I don't see it using the hint too,  Question: We can use both algorithms above to evaluate $a^n$. I don't see how algorithm presented above based on the first algorithm above does answer the question?


Prove - intersection of subgroups is a subgroup.

Since I have some similar question to this one, I'll be happy to understand how to solve it.  $G$ is a group and $A,B\le G$. I need to show that $A \cap B \le G$  (If $A, B,$ are subgroups of $G$, I need to show that $A \cap B$ is a subgroup of $G$, too.)


Chance of objects going against greater entropy?

My book uses the argument that the multiplicities of a few macrostates in a macroscopic object take up an extraordinarily large share of all possible microstates, such that even over the entire lifetime of the universe, if each microstate had an equal chance of being accessed, fluctuations away from equilibrium would never occur.  My question to this statistical proof is this: In the real world, is there really an infinitesimal but nonzero chance that macroscopic systems could access some of the more unlikely macrostates (e.g. heat transfer from a cold object to a hot object)?


Find files/folders that are filling up disk space

Possible Duplicate:          I just had an old server go belly up because it ran out of drive space. I am logged in to the shell, and I'm trying to find more unused files to remove.  Is there shell a command, script, or app that will display the largest files/folders?


How do I add commission members to the title page?

I'm trying to get my master committee on my master thesis. So I want to add in 3 names one after the other with a header of "master committee". I currently have the following:   \documentclass{report} \usepackage[utf8]{inputenc} \usepackage{comment} \usepackage{titlesec}  \usepackage{graphicx} \usepackage{amsmath} \usepackage{rotating} \usepackage[square]{natbib} \usepackage{changes} \usepackage{placeins} \usepackage{geometry} \usepackage{helvet} \usepackage{tikz} \usepackage{subcaption} \usepackage{caption} \usepackage[hidelinks]{hyperref}  \renewcommand{\familydefault}{\sfdefault}   \geometry{  a4paper,  total={120mm,227mm},  left=40mm,  top=40mm,  }  \title{Example thesis} \author{Thijser} \date{June 2018}  \begin{document}  \maketitle    \end{document}   How would I go about adding this in? If I add anything to the document it will appear before/after the title page.   Basically what I want is                       Example thesis                     Thijser                    June 2018                            master committee (different font)                    member 1's full name and titles                     member 2's full name and titles                     member 3's full name and titles


Need help with this integral $$\int\frac{1}{\cos x}dx$$ I know that the answer is $$\ln|\operatorname{tg} x+\sec x|$$ I tried transforming 1 into $\cos^2x + \sin^2x$ but it led to nothing. Need to solve it using simplest way without new variables and differential transformations.


How to remove scroll indicator in a block of code [Stack Overflow in Chrome, Mac]?

Lately I've been getting annoyed at the horizontal scroll indicator whenever there's a block of code on Stack Overflow. I think it's a bug, isn't it?  If not, is there a way to remove this or cancel scrolling? This happens especially if the block of code is a couple of lines. The only way I know to reproduce this to visit a question and just right after or before the page completes loading, scroll the block of code horizontally and hover the mouse pointer outside such block.  Screenshot #1    Screenshot #2    End of screenshots


How can I get suffix matching in a search in SharePoint 2013?

I'm new to SharePoint 2013 and I'm quite puzzled, that it seems to be impossible to search for the middle part of a string.  Simple example:  I've added a lot of documents (PDFs, ...) from our Windows Server to the SharePoint Library and I want to add metadata. I try to filter the view of the document library, to only get those documents which I currently want to edit.  The names of the documents are very systematic, composed of naming conventions with abbreviations like:  Superthing2000-b_Suppl_REF_13580_note_1108_04en which means e. g.: Document about Product "Superthing2000", variant "b", Supplement to the manual, ID "13580", from 08/2011 in english language.  Now, I'd like for example to filter out all documents containing ID 13580 or "en" for english, but no chance, as suffix matching is not possible, even if I explicitly search for e. g. *en*.  Is there a way to define a search with kind of a "contains" operator which also finds files when the search string is only a part in the middle of the file name? Even the Windows Explorer search feature is able to do that!!


Is there any reason to set an object to null in the finally block?

I'm cleaning up some C# code for my company and one thing I've been noticing is that the contractors that built this application keep setting object references to null.  Example:  get {   Object o = new Object(); // create a new object that is accessed by the reference 'o'   try {    // Do something with the object   }   finally {     o = null; // set the reference to null   } }   From what I understand, the object created still exists. There is a chance it can't be accessed now depending if there are any other references to it, but it will still exist until the GC comes and cleans it up.  Is there any reason to have this in a finally block? Are there any cases where this could possibly create an in-adverted memory leak?  Thanks!


I would like to be able to show more columns since a lot of lateral space is lost. Any ideas on how to do this?