JQuery .append() and make a "on click" in the new element

I'm tried to .append() a new radio type, then if I clicked in new radios, start a new function, but I can't do this. this is my code:  HTML:  Where take the photo?         <input type="radio" id="MX0" name="wherePhoto" value="MX0"> México         <input type="radio" id="EX0" name="wherePhoto" value="EX0"> Foreign

       Add photo
   JS:  var id = 1; function addPhoto() {   var $newPhoto='
Where take the photo?<input type="radio" id="MX' +id+ '"name="wherePhoto' + id + '" value="MX"> México<input type="radio" id="EX' +id+ '" name="wherePhoto' +id+ '" value="EX"> Foreign
';    $('#newPhoto').append($newPhoto);     id++; }  $('[id^=MX]').click(function() {   alert("hello MX");         });  $('[id^=EX]').click(function() {   alert("hello EX");     });   So I try to send a alert when click on the new Radio (MX1)  Thanks to any help


Let $\{ a_{n}\}$ be a sequence of positive real numbers such that $a_{n}=\sqrt{a_{n-1}a_{n-2}}$ for $n≥3$, then $\{ a_{n}\}$  converges to $(a_{1}a_{2}^{2})^{\frac{1}{3}}$.  My attempt:-  I multiplied the all new terms and simplify the terms based on the recursive relation   $a_{n}.a_{n-1}...a_{2}.a_{1}=\sqrt{a_{n-1}.a_{n-2}}.\sqrt{a_{n-2}.a_{n-3}}...a_{2}.a_{1}$  Cancel the like terms,  I get $a_{n}\sqrt{a_{n-1}}=a_{2}\sqrt{a_{1}}$.  Limit , I am getting the result. How is my steps? Does it have any mistakes? How to prove the existence?. I am not able to judge whether it is monotonically decreasing/ increasing. How to prove the sequence is bounded?


click event is not triggered, when an element is inserted in the dom from a js variable

Could any one explain me, why does a click event is not triggered, when an element is inserted in the dom from a variable    Consider  HTML

 <input type="button" value="clickme" id="cme"/>   jQuery  $("#cme").click(function(){     var inside = '<input type="button" value="clickme again" id="sme"/>';     $("#disp").html(inside); });  $("#sme").click(function(){     alert("clicked me");   });   When you click clickme button, new button clickme again is added inside the disp and when clickme again button is clicked, it does not fire the click event attached to it. it does not alert clicked me ? why ?  But when I have tried this way, it works   $("#cme").click(function(){     var inside = '<input type="button" value="clickme again" id="sme"/>';     $("#disp").html(inside);     // when i put here , it works     $("#sme").click(function(){         alert("clicked me");       }); });   I want to put the $("#sme").click outside. Any help is greatly appreciated. Thanks


Let me give a bit of background to my question. I am using a terminal RSS reader newsboat which allows for the usage of macros to operate on links. For example, I have a macro running cd ~/videos && youtube-dl %u, which will download a youtube video to ~/videos. However, the output of youtube-dl will be printed in my terminal until the download is complete and for this time I cannot continue using newsboat.  I am wondering how I could phrase the command so that it is executed “somewhere else” so that I can immediately continue using the terminal from which it is run.


Extracting gamefiles from a game, modify it, then use it commercially, would it be illegal?

I kinda get a chance to extract gamefiles from the game fortnite(assets, sounds, etc), and then I want to use them for my animation, would that be illegal.  If it is illegal, what if I alter the assets, like modifying it to a voxel, and use it commercially, is it still illegal?


Is there any fast way to create multiple copies of the same image with a different number on every single image?

I have to create a lottery "ticket" design and generate 1000 print cards with a different number on every single picture. Is there any quick way of doing that using Photoshop?


Integrating $\int_0^\pi \frac{x\cos x}{1+\sin^2 x}dx$

I am working on $\displaystyle\int_0^\pi \frac{x\cos x}{1+\sin^2 x}\,dx$  First: I use integrating by part then get   $$ x\arctan(\sin x)\Big|_0^\pi-\int_0^\pi \arctan(\sin x)\,dx $$  then I have $\displaystyle -\int_0^\pi \arctan(\sin x)\,dx$ because $x\arctan(\sin x)\Big|_0^\pi$ is equal to $0$  However, I don't know how to integrate $\displaystyle -\int_0^\pi \arctan(\sin x)\,dx$  Can someone give me a hint?  Thanks


Evaluate Current User for Flow - 15 - 18 digit User ID

I need to evaluate the current user running a flow. Someone suggested I use the Global Variable {!User.Id}, but it's returning a 15 digit Id. I need to compare the current user with the Account owner. The Account Owner field is returning an 18 digit id. Is there another way to evaluate the current user in my flow and compare it to an Account owner?   The above resolution doesn't really work for my purposes for evaluating a user if I can't compare the user to the Account Owner ID. In the above example, the Account Owner will never = the current user as it is comparing a 15 digit id to a 18 digit id.  Is there a way turn the User ID from the Global Variables into 18 digits? Or vice versa, make the Account Owner ID return as 15 digits? Thanks so much!


I have to prove the next 3 numbers are composite numbers  $500^{27}-123^{12}$ $12^{75}+21^{75}$ $58^{32}-49^{32}$   I have no idea where to begin, if anyone can give me a hint I will be grateful. Thank You Very Much!


Using tokens in code to indicate listings linerange

I'm aware of how to include specific lines from a file such as:  \lstinputlisting[firstnumber=3,firstline=3,lastline=6]{file.c}   but I was wondering if there is a way to insert tokens in my code that the listings package can find and determine the linerange from. This way if I add new lines of code to my file the section I want to include wont change.  For example, I would rather do something like  \lstinputlisting[token=$--$]{file.c}   and have file.c look like:  some code $--$the code I want$--$ other code   rather than writing:  \lstinputlisting[firstnumber=3,firstline=3,lastline=6]{file.c}   that way, if file.c changes to:  some code with more code added $--$the code I want$--$ other code   it still only displays:  the code I want


How to diagnose constant high cpu usage from cron

Just noticed this, cron is constantly maxing out my cpu on Ubuntu under the user sabnzbd. Sabnzbd isn't doing anything active. Stopping Sabnzbd doesn't kill that process.  How do I get to the bottom of what's causing this?  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                1736 sabnzbd   20   0   76344   8408    752 S 399.7   0.1  20:46.45 cron


Hard Drives shows up in Finder, but not Desktop

In the past when I have plugged in external hard-drives they would always show up on the desktop. I'm not sure if it is because of a software update or the drive itself but it's no longer showing up.  The drive is working because if I go to Finder I can access the drive.  How can I change the settings so that drives show up on the desktop when they are plugged in?  I'm using OSX version: 10.7.3.


How to initialise a std::string when data ends in a binary zero

I am writing a unit test where a string has to end in a binary zero.  Consider const char * data_c = "1234"; , here data_c contains 5 characters including a zero. std::string removes that zero and tracks the size like a vector. std::string data_cpp = "1234";  The string I need to create has a binary zero at the end. Initialising std::string with simple means seems problematic. std::string data_cpp{"ABC\0"}; Gives back a string of size 3;  The following minimal example show passing and not passing examples to illustrate my problem further:  #include <iostream> #include <string>  void testString(std::string name, std::string str) {     int e = 0;     std::cout << name << "\n";     std::cout << "----------------------" << "\n";      if (4 != str.size())     {         std::cout << "Size was not 4" << "\n";         e += 1;     }     char testvals[] = {'A', 'B', 'C', '\0'};     for (size_t n = 0; n < 4 && n < str.size(); ++n)     {         if (str[n] != testvals[n])         {             std::cout << "Character " << std::to_string(n) << " '" << str[n] << "'" << " did not match" << "\n";             e += 1;         }     }     std::cout << "ERRORS: " << std::to_string(e) << "\n";     std::cout << "----------------------" << std::endl; }  template<size_t N> std::string CutomInitString(const char(&str)[N]) {     return std::string{str, str + N - 1}; }  int main() {     std::string one{"ABC\0"};     testString("ONE", one); //FAILS      const char two_c[] = "ABC\0";     std::string two{two_c};     testString("TWO", two); //FAILS       const char three_c[] = "ABC\0";     std::string three{three_c, three_c + (sizeof(three_c) / sizeof(char)) - 1};     testString("THREE", three); //PASS, also ugly      const char four_c[] = "ABC\0";     std::string four{CutomInitString(four_c)};     testString("FOUR", four); //PASS, also ugly }   An example for simple would be std::string one. Is there a simple form that I can use?


Question about the value of the Infinite series

I tried all day long to get the value of the following infinite series..  $\displaystyle \sum_{k=1}^{\infty} \dfrac{2^{k}}{{2k+1}\choose {k}}$  which seems to be $\dfrac{\pi}{2}$ by my matlab iteration.   Can anyone help me to get this value?


Anakin isn't really the most likable guy of all time. Padme had a lot of opportunity to see him go crazy, such as when he just went and murdered a bunch of sand people.  It seems... even a naive young woman who never dated might see this and other things as clear warning signs to not marry him.  Other than a plot device (if you can call it that... ?), are there any in universe reasons why she married him?


In the context of a discussion of consistency of an estimator $\hat{\theta}_n$ (where n is the sample size), what is the meaning of its pdf? Is it the same as its likelihood function?


So after running the sudo apt upgrade, my (/) root partition is running low on space. I have around 3.5GB of space left out of 20GB. I have no un-allocated space on my SSD. Is there a way I can shrink my /home partition and give that space to (/) root partition?


Exposed filter for file field on filename

I have a content type with a file field.  Is there a way to create an exposed filter in a view for the filename of a document in a file field?  I can get the filename to display in the view by using a file formatter or PHP, but I can't figure out how to allow the user to filter on the document filename.  I also need the filtering to be a contains, not an equal to, so they can enter partial filenames and get results.


How can I extract text from images?  I am not talking about scanned files, but garden variety images, such as when you take a high-def picture of a blackboard at class, and it is nicely handwritten; or when you photograph a page from a recipe book and want the recipe in text format.  Any free and open software for that?  I tried tesseract, and the results were awful.


Set Object Key/Value pair after a list item has been clicked

I'm trying to set an Object property equal to the value of a clicked list item (0, 1, 2, 3).  I am able to console.log the correct value, but the object property is not being set.  Could someone please explain how to set my gameObject property to the correct list item value?    var gameObject = {   questions: [     {       title: "What color is the sky?",       answers: [         "blue",         "green",         "red",         "purple"       ],       correctAnswer: 0,       userSelection: ''     },     {       title: "What color is UNC blue?",       answers: [         "Duke blue",         "Sky blue",         "red",         "purple"       ],       correctAnswer: 1,       userSelection: ''     },     {       title: "What color is UNC blue?",       answers: [         "Duke blue",         "Sky blue",         "red",         "purple"       ],       correctAnswer: 1,       userSelection: ''     },   ],   currentQuestion: 0,   userCorrect: 0,   userIncorrect: 0,   userBlank: 0,   timer: 30,   timerRunning: false };  var triviaAnswerSection = $('#answers');  function renderGameAnswers() {   var html = '';   html += `<ul class='question'>`   html += `<li class='answer' value='0'><a href='#'>${gameObject.questions[gameObject.currentQuestion].answers[0]}</a></li>`   html += `<li class='answer' value='1'><a href='#'>${gameObject.questions[gameObject.currentQuestion].answers[1]}</a></li>`   html += `<li class='answer' value='2'><a href='#'>${gameObject.questions[gameObject.currentQuestion].answers[2]}</a></li>`   html += `<li class='answer' value='3'><a href='#'>${gameObject.questions[gameObject.currentQuestion].answers[3]}</a></li>`   html += `</ul>`   triviaAnswerSection.html(html);   $('.answer').on('click', function() {     var answer = $(this).attr('value');     gameObject.questions[gameObject.currentQuestion].userSelection = answer;   }); }  renderGameAnswers();


I'm using a PHP script to get some data from a MySQL database table. I can see the table has the collation utf8mb4_general_ci  When the text is displayed on the page, I get:  Cust�ias   Instead of:  Custóias   This is what I'm trying:  echo ''.iconv('utf8mb4_general_ci', 'UTF-8', $row['address_city']).'', "
";   And:  echo ''.converter($row['address_city']).'', "
";   With:  function converter($conteudo){     return iconv( 'utf8mb4_general_ci', 'UTF-8', $conteudo ); }   And also:  header('Content-Type: text/html; charset=utf-8');


after ssh connecting to ubuntu server, cannot do anything

I was working on a server I have access to for a school project, which I am not an admin of it, and everything was working fine until recently, when  suddenly began to happen after I logged in using the normal ssh command.  Now, every time that I log into the server, the above occurs and I cannot use any command or anything else; anything I type is written, but nothing happens, and the normal command line does not appear either (the ..... $ before you type something in normal ubuntu server).  Is this something I did or would anyone know why this happened and why I can't use any commands or do anything once I'm logged into the server anymore? I looked for this problem and I found nothing related to this (the problem is not with ssh, I am able to connect to the server, but once I'm in it, I can't do anything).  Since I am only a user of the server and not an admin, the solutions on  do not seem to work for me. I'm connecting from a windows machine.


How to put some "\usepackage''s into one package?

Since I learnt to use LaTeX 1 month ago, I have never used other software. But every time I begin to write a latex file, I will have to type:   \documentclass{article} \usepackage{geometry} \geometry{left=2.5cm,right=2.5cm,top=1.0cm,bottom=2.0cm} \usepackage{graphicx} \usepackage{subfigure} \usepackage{color} \usepackage{amsmath} ...   So when you are writing C++ code, you just need to include some head files like parameter.h. So is there a way to write those \usepackages in a file and then include it?


How do red blood cells obtain energy without mitochondria?

RBCs don't have mitochondria so there is no Respiratory chain in them. But how does they get energy from Lactate. Because Lactate produce NADH which gives energy only in respiratory chain.


Creating distributive flow line map showing movement of passengers from bus terminal to several destinations?

I'm writing my final year B.Sc thesis on transportation (pattern of passenger flow from a bus terminal to several destinations).   I intend to use a distributive flow line method of spatial movement analysis in ArcMap, now that I have the software and flowline tool all ready. I also have a raster map showing the defined source region and defined destination regions of passengers. I was able to add a point to signify the source point and several other points to signify the destination points.   I also have a record of number of passengers moving to all the various destinations from the defined source point.   What I don't know is how to make flow lines of different widths to link the source point to the several destination points. I want to make the width of the lines to be defined by the number of passengers moving through them (i.e the higher the number of passengers, the thicker the lines and vice-versa).


Python/Sqlite - How to calculate age with given date in DB

I am testing around with SQL at the Moment. I noticed that getting values out of the DB and messing around in python is pretty slow. So i try to calculate inside my SQL update function. Way faster. Now i have the problem that i have a date, created with datetime.utcnow(), in my DB and i want to calculate/update the Age inside the update function.   This is the error message i get with my Code:  ValueError: parameters are of unsupported type   Date is as Text in my DB, maybe this is my mistake?  Here is my Code so far:  import sqlite3 from datetime import datetime  def database_create():     conn = sqlite3.connect('Age_Calculation_in_SQL.db')     c = conn.cursor()      c.execute("INSERT into Test (ID, Date, Age) values (?, ?, ?)",                 ("1", datetime.utcnow(), 1))              conn.commit()    def database_calculate():     conn = sqlite3.connect('Age_Calculation_in_SQL.db')     c = conn.cursor()      c.execute("UPDATE Test SET Age = Date-? Where ID = 1", (datetime.utcnow()))          conn.commit()       database_calculate()


In baking chocolate marshmallo logs, the recipe calls for 3 sq of semisweet chocolate.  In the  new packaging box, how many  squares do I now use?


Prevent include another file from making a new page

I want to have main project file main.tex and import other sections in it. I used to put everything in one file but I am trying now to use elegant way using either include or input commands. I chose include because it does not produce pdf of sections (Only I want main.tex is the one is compiled and then pdf is generated from it). I do the following:  main.tex  \documentclass[10pt, conference, compsocconf]{IEEE_format/IEEEtran}  % Paper Title goes here \title{Later \vspace{-0.5cm} }  \begin{document} \maketitle  \include{sections/Intro} \include{sections/Background} \include{sections/Problem_statement}   \end{document}   However, every section goes to a new page! how can I avoid that (i.e.,  every section follows the previous one)? The command input does that but it generates pdf of each section which I don't want that.   Thank you


I have a decimal variable with following values  a = 99.9999 b = 88.423766 c = 11.896589   Here I am trying to convert with 4 decimal points.  And I used   a = Math.Round(Convert.ToDecimal(a), 4); b = Math.Round(Convert.ToDecimal(b), 4); c = Math.Round(Convert.ToDecimal(c), 4);   However I get values like   a = 100 b = 88.4238 c = 11.8966   Though the preferred values are with out rounding,  a = 99.9999 b = 88.4237 c = 11.8965   How can I achieve it.


I am working on calculaitng the size [memory used] of a java object [hashmap] . It contains elements of different data types [at runtime] so [ no-of-elem * size-of-element] is not that good an approach. The code right now does it by series of   if (x)   do something else if (primitives)   lookup size and calculate   However this process is a CPU hog and in-efficient.   I am thinking of following 2 approaches instead:   Serialize the object to a buffer and get the size.  Look into  java.lang.instrument to get the size   I am looking for anyones experience with these approaches for performance , efficiency, scaling etc OR if you know any better way.  P.S: This is a background utility that I am building so the size need no be super accurate though it should be about correct. So I am willing to trade accuracy for performance  I am not interested in the deep-size [the size of objects that are refered by this object will not be computed.]  I am looking for a performance comparisons and understanding how getObjectSize() works internally ..so that I do not messup something else to improve the performance  Thanks


Inequality with absolute values |x+y|/(1+|x+y|) <= |x|/(1+|x|) +|y|/(1+|y|)

$$\frac{|x+y|}{1+|x+y|}\leq \frac{|x|}{1+|x|} +\frac{|y|}{1+|y|}$$  How can i solve this inequality? I have solved it in a long way but i guess there should be an easier way


Limit inferior of the quotient of two consecutive primes

I have recently read an article about the prime number theorem, in which Mathematicians Erdos and Selberg had claimed that proving $\lim \frac{p_n}{p_{n+1}}=1$, where $p_k$ is the $k$th prime, is a very helpful step towards proving the prime number theorem, although I don't know how, primarily because I have not gone through the proof of the theorem even once.  Anyway, I was trying to prove the result $\lim \frac{p_n}{p_{n+1}}=1$ by really elementary methods, as is always my habit, and quite recently I learned of a theorem that the sum of the reciprocals of the primes diverges (I am only a beginner). The idea that suddenly struck me is that this theorem implies $\limsup\frac{p_n}{p_{n+1}}=1$, by a simple application of the ratio test and the fact that $\frac{p_n}{p_{n+1}} < 1$ for all $n$. So, is there any simple way to show that $\liminf\frac{p_n}{p_{n+1}}=1$ or at least $\ge1$, so that the result is proved?  Another beautiful result that came to me, follows from the theorem on divergence of $\sum\frac{1}{p}$, that given any $h > 1$ there are infinitely many $n$ such that $p_n < h^n$. Are there any other results with really simple proofs (easy to understand even for beginners like me) having deep consequences in the theory of the distribution of primes? I'd really like to hear them!


Epimorphisms from a free group onto a free group

Let $f:F_n\to F_m$ be an epimorphism ($n\geq m$). Then it is true that there is a basis $X=X_1\sqcup X_2$ in $F_n$ such that $f$ maps $\langle X_1\rangle$ isomorphically onto $F_m$, and maps $X_2$ to identity. One can probably deduce this statement from the Grushko-Neumann theorem, but somehow I cannot get an elegant proof of it.   I can see that by the Grushko-Neumann we can assume that $m=1$, and hence our epimorphism factors through the abelianization. And then an ugly linear algebra appears... Any suggestions how to make the proof slick?


Shape of accretion disk surrounding the black hole in Interstellar (film)

There is a black hole, called Gargantua, featured in the recent blockbuster Interstellar. I understand why the accretion disk is bright (friction), but why does it seem to be flowing in two perpendicular directions?   I acknowledge it may just be a design-based decision made by the special effects team to make things look pretty, but perhaps there is an in-universe explanation I cannot conjure.


F-stop and behaviour of aperture with change in focal length in a zoom lens

I have two related questions regarding behavior of aperture area/diameter with respect to various focal length in a zoom lens, like, Canon EF-S 18-135mm f/3.5-5.6 (with variable aperture and variable focal length).  Please note this question is not for "constant aperture" zoom lens rather it is for a zoom lens with variable aperture.   In case of zoom lens, for example, Canon EF-S 18-135mm f/3.5-5.6 (with variable aperture and variable focal length). At any particular F-number (F-stop), for example at f/5.6 , does the diameter of the aperture increase with increases in the focal length? I mean, will the diameter of the aperture at 18mm and f/5.6 would be smaller than that of at 135 mm and f/5.6? In the above case (i.e. Canon EF-S 18-135mm f/3.5-5.6 ), What is amount of light that would enter the camera at 18mm and f/5.6 compared to that of at 135 mm and f/5.6? Will the amount of lights be same or different?


Can I run a second cable to add another hot conductor for a range?

I have a range that needs 10/3 wiring w/ ground, and the wire in place is a 10/2 w/ground.  My question is can I just run an additional 10/2 wire and use the black in that 2nd run for the "red" wire, and just cut back the white and ground in the 2nd run.  Or do I need to run a new 10/3 wire.


Process Builder - Breaking Production Deployments?

I have a Process Builder flow set up and I am running some tests around the InvocableMethod Apex code. The tests pass fine in my staging and production environments. Yet, when I try to deploy to production, I get a strange error.  CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow.  Thankfully I received a somewhat more informative error email.  UPSERT FAILED ---  ERRORS :  (CANNOT_EXECUTE_FLOW_TRIGGER) The record couldn’t be saved because it failed to trigger a flow. common.exception.AssertionException: ORA-20070: Cannot read from apex_class and apex_trigger while running tests ---  for SFDC record with ID : null,  Unfortunately, the deployment has nothing to do with the flow and it is unclear why it is failing. What is the root cause of this error and how can I fix it? EDIT: I found out this is a . The other claimed workaround is to deploy via the Metadata API. UPDATE: Because I was subscribed to the Known Issue, I received the following confirmation this issue is resolved.  We are pleased to notify you that the following Known Issue has been resolved: Executing an InvocableMethod during an apex test run from a change set can cause Errors. Thank you for being patient while we worked to address this issue. Please feel free to reach out to Customer Support if you have further questions. Sincerely, Salesforce Success Team


How to insert characters to a file using C#

I have a huge file, where I have to insert certain characters at a specific location. What is the easiest way to do that in C# without rewriting the whole file again.


How to make a footer be at the bottom anywhere on the page?

I know how to create a simple header:

My Website

   then in the css:  #footer { bottom: 0px; }   This code makes a footer be at the bottom of the page. What I want to do is make a footer that no matter how far up the page you are, it is displayed. For example, if I scroll right to the top of the page, my footer is shown at the bottom of the screen. No matter where I scroll to, the footer will be pinned to the bottom section of my screen. Thanks for the help.


Communication between Apache and glassfish

We are currently using HTTPD server (apache) to handle client request. The requests are further proxied to a Application Server (glassfish) which provides the content. The content are static files (software images). Below is the ProxyPass directive used.  ProxyPass /access/sw http://localhost:8080/access/sw   We would like Apache to handle static contents as its frees up the glassfish to do other jobs. The only issue with this is the request still needs to be directed to the glassfish to check for business logic. The glassfish server after running the business logic should send a response back to Apache confirming that the client is allowed to download the software image. It can also send a negative reponse back to Apache to reject the clients request.   How can this be achived? Are there any apache modules to handle this? Just to reiterate, is the below achieveable?  Request from client -> Apache -> Glassfish (runs the business logic) -> responds back to Apache if client should be allowed to download -> Apache serves the static file depending on glassfish response   P.S - Client cannot handle redirect requests. Client sends a single GET


Is there anything which can hide the character(But not by generating space)

Actually my question is-- just like in microsoft word suppose I am writing a word "horse" and I want "ho se", in this I do not need any space, here "r" is hide now. The simplest solution is make the "r" as white letter. Similar thing I need in latex---which command does this?


How do I switch to a closer Ubuntu mirror?

After I have performed one of sudo apt-get install eclipse eclipse-cdt g++ procedure I found that Ubuntu is planning to download more than 400Mb and it will take more than 2 hours. It is too long. I also found that it downloads from the US:  Get:21 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libservlet3.0-java  all 7.0.52-1ubuntu0.3 [294 kB]   I'm in Europe, maybe should I somehow tell Ubuntu to download from a source located closer. How should I do that?


Recover & Verify MFT from a repartitioned harddrive

After accidentally repartitioning my external harddrive (I still maintain that I clicked "No", the computer was just out to get me), I began looking for a way to recover my data.  (The repartitioning was done using Windows 10 media creation tool, using quick partition/format. The process created a new, 32-GB partition, and wrote some data to it).  Since not all my files are common, I don't want to rely on software that scans for known file signatures.  Luckily for me, I discovered (using Active partition recovery) that there are some MFTs which seem intact, and considering their size (932 MB), I expect they contain references to the backup of my previous laptop. However, I've been unable to extract the MFT using this tool.  Seeing as the MFT is (hopefully) all there, I was hoping it can be used to find some of the data on my harddrive, and verify which files are intact, and which are missing/corrupt (since some data was written after the repartitioning).  So bottom line, is there a way to:   Recover the MFT, and Find the surviving files and list those that did not survive?   Being a layman, I can only forsee one possible problem, which is the tool not knowing where to start searching for the files, if the previous partition tables are gone and the pointers in the MFT are relative to the start of the partition...


Who and That : Pronouns or Relative Pronouns

I read a submission in a newsletter about grammar. Part of the article discussed the use of who and that. The reader is told to use who as a pronoun for references to people and that as a pronoun for references to inanimate objects. The author provided examples: “Phoebe is the person who lives next door to my daughter.” and “It’s the grocery store that is closest to my house.” In closing of this section the author provides the statement, “When did people become objects?”  Aren't who and that relative pronouns? Also, I don't believe the use of  who or that are needed in the author’s examples. Composing in plain talk, I would compose the author's examples as: “Phoebe lives next door to my daughter.” and “It’s the grocery store closest to my house.”  Comments please...?


What fallacy is this that I see all the time?

What is this fallacy? I see it all the time. Someone will say something like “it’s so good to see these animals released from captivity” and then another will reply with a response along the lines of... “so you care about animals in captivity but not about the millions of slaves in Africa” or something. They reply like you can only care about one or the other and not both. But also, the initial comment is relevant to the context and so progresses the conversation while the response seems completely unrelated.


How to scale a tikzpicture including texts?

It seems that the scale option scales only the length of lines, but not the size of texts. For instance, 1 and true and not scaled in the following code.  \begin{tikzpicture}[thick, scale=0.6] \draw [dashed] (1,12) -- (11,12); \node[above] at (4,11) {1}; \node[above] at (8,11) {true}; \end{tikzpicture}   Could anyone tell me how to scale everything together within a tikzpicture? Thank you very much!  PS: It is a picture in a presentation with Beamer.


Why can terminators (T-8XX) only run when they have flesh on their endoskeletons?

Never really got the reason, it seems that when they only have their endoskeletons they are super sluggish and can only walk... I don't see how putting flesh on that would actually help.  When did it happen: Well when Pops (in Salvation) shoots the other supposedly T-800 the one who came asking the clothes of the junkies and then started running towards Pops.


Do you get a bonus action from dual wielding?

I have been playing D&D 5e for a while now and I recently made a new Fighter with 2 weapons. I already read many things and the PHB but I can't figure out if I get a bonus action from my first attack so I can make a second attack or if I have to already have a bonus action. If so wouldn't it be really bad on a fighter, at least in the early game? And how do I get this Dual wielding thing so that I get to wield normal weight weapons?


I have my plugin which works for QGIS 2.8.2. I want to migrate the same for QGIS 3.0. I resolved initial error of pyqt4 to pyqt5 and so on.  Now I get following error for resources file.  TypeError: qRegisterResourceData(int, bytes, bytes, bytes): argument 2 has  unexpected type 'str'   My existing resource file is compiled with pyrcc4 command. I need to compile it again with pyrcc5 command.  I went to my plugin folder from command prompt and did  pyrcc5 -o resources.py resources.qrc  'pyrcc5' is not recognized as an internal or external command, operable program or batch file.   I have pyrcc5.bat in "C:\Program Files (x86)\QGIS 3.0\apps\Python36\Scripts" When I try to run this batch file I get:    pyrcc5.exe not found anywhere in the folder.


How to integrate $\int\frac{\sin(kx)}{e^x}dx?$

How would one integrate $$\int\sin(kx)e^{-x}dx, k\in\mathbb{R}?$$ I have tried integration by parts  $$\int\sin(kx)e^{-x}dx=$$


When you just want to do a try-except without handling the exception, how do you do it in Python?  Is the following the right way to do it?  try:     shutil.rmtree(path) except:     pass


What's the formula for partitions where each group has a different size?

I am looking at this formula  My understanding is that the number of partitions is equal to that formula, but only when the order of the partitions matters. eg, That's right, if you can only have $n_1$ in the first group and $n_2$ in the second group and so on.   My understanding is that if the order of the groups does not matter, then it is the same formula except you add $r!$ to the denominator because you need to account for the different orderings that can achieve that result.  Is that right?


What are some examples of negative effects on a career for boycotting Elsevier journals?

I fully support the Elsevier boycott, and came from mathematics (BS and MS) into my current PhD program in an engineering subdiscipline. I'm finishing up my PhD now and starting a post-doc soon.  I've already refused to review an article a few years ago for an Elsevier journal, and the editor seemed quite angry about it.  Once again I have been asked to review an article for an Elsevier journal, only this time the journal editorial board has a prominent researcher who I have had personal contact with, is a recently retired Emeritus Professor from my department, and if he became angry about my refusal he could potentially harm my career.   Does anyone have any specific examples of, or even better statistical data showing that boycotts of Elsevier journals had negative career impacts on early career/junior scientists?


I'm looking to understand bad request to my server

So, I host a website from home on Ubuntu Server 18.04 with mariadb apache2 and up to date PHP modules. I run UFW and fail2ban. My website is built with WordPress and the admin page is hidden behind a secret slug. SSH is only allowed through the firewall from my IP at work and at home. SSH is running on a non-standard port, root access is not allowed via SSH. (These are my hardening measures) I still see a lot of bad requests in logwatch and would like to gain a better understanding of exactly what is going on. are they trying to see if they can gain access to files via the URL or what? I'm new to a lot of this. Thanks in advance. Note: it says "4 sites" one of the bad requests was from me from an improperly entered slug so I removed my personal IP. Connection attempts using mod_proxy:     163.152.3.141 -> facebook.com:443: 1 Time(s)   A total of 4 sites probed the server     161.35.52.125     61.219.11.153     80.82.70.118   Requests with error response codes     400 Bad Request        /: 5 Time(s)        null: 2 Time(s)        HTTP/1.1: 1 Time(s)     403 Forbidden        /: 1 Time(s)     404 Not Found        /boaform/admin/formLogin: 6 Time(s)        /.env: 2 Time(s)        /app/.env: 2 Time(s)        /Telerik.Web.UI.WebResource.axd?type=rau: 1 Time(s)        /core/.env: 1 Time(s)        /cron/.env: 1 Time(s)        /hudson: 1 Time(s)        /laravel/.env: 1 Time(s)        /owa/auth/logon.aspx?url=https%3a%2f%2f1%2fecp%2f: 1 Time(s)        /portal/redlion: 1 Time(s)        /sitemaps/.env: 1 Time(s)        /student-resources/: 1 Time(s)        /vendor/.env: 1 Time(s)        /wp-admin/admin-ajax.php: 1 Time(s)     408 Request Timeout        null: 34 Time(s)     503 Service Unavailable        /: 22 Time(s)        /%0Anoitcejniflrc%0A%0Dnoitcejniflrc%0Dnoi ... 0Dnoitcejniflrc: 2 Time(s)        /?XDEBUG_SESSION_START=phpstorm: 2 Time(s)        /?a=fetch&content=<php>die(@md5(HelloThinkCMF))</php>: 2 Time(s)        /HNAP1/: 2 Time(s)        /admin//config.php: 2 Time(s)        /index.php: 2 Time(s)        /index.php?s=/Index/\\think\\app/invokefun ... ]=HelloThinkPHP: 2 Time(s)        /solr/admin/info/system?wt=json: 2 Time(s)        /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php: 2 Time(s)        /TP/html/public/index.php: 1 Time(s)        /TP/index.php: 1 Time(s)        /TP/public/index.php: 1 Time(s)        /api/jsonws/invoke: 1 Time(s)        /cgi-bin/mainfunction.cgi: 1 Time(s)        /elrekt.php: 1 Time(s)        /html/public/index.php: 1 Time(s)        /phpmyadmin/: 1 Time(s)        /public/index.php: 1 Time(s)        /thinkphp/html/public/index.php: 1 Time(s)        facebook.com:443: 1 Time(s)   ---------------------- httpd End -------------------------


How to use Cauchy sequence on $|a_{n+2}-a_{n+1}| \le q|a_{n+1}-a_n|$

I want to apply Cauchy prinicpal on the following question:  If exists constant $$0<q<1$$ such that $$|a_{n+2}-a_{n+1}| \le q|a_{n+1}-a_n|$$ for any $n$ then $a_n$ converges.    Now if I just think about it what I see is that as $n$ goes up the distance between his members becoming smaller and smaller since even if i take the last 2 elements and multiple them by a small number ($<1$) the distance is still smaller.  My conclusion is that the sequence will probably converge because of that, but my method is not math is just some logic which may be wrong.    I feel like Cauchy can help me here but I have no idea how to apply it


(Discrete Math) I'm having a really hard time with this problem as I'm new to the subject. Any help is appreciated.

Using the pigeonhole principle, prove that among any n+ 1 integers you can find two integers so that their difference is divisible by n.  You will want the “holes” to be the remainder when you divide a value by n.


Possible to Host LAMP VirtualBox for Internet Site

Can someone explain briefly, or point me to, how to host a LAMP server on a Linux-based VirtualBox (Oracle) such at the web site on the VB are accessible to the outside world?  The Host itself would be a windows machine that is connected to the internet through cable modem.  I'm already familiar with using VirtualBox as a development LAMP. But, the networking aspects of how this works are what I am asking about.


How is light emitted by an incandescent lamp

I am looking for better understanding of how light is produced in an incadescent lamp. More specifically: how is the kinetic energy of electrons converted to light?  Are we dealing with interband transitions or with intraband relaxation involving photons? Is this Bremsstrahlung (electrons lose their energy as light when colliding with crystal impurities/defects)? Or is this a thetmal radiation resulting from Joule heating? How is the emission affected by presence of impurities and imperfections of the crystal lattice? Do phonons play a role? What properties make a material more suitable for use as a filament: should it be a metal? Should it have a crystalline structure? Will any metal produce light, if a high current is passed through it in vacuum?  Update The term describing the processes in the incadescent lamp is , see the posts on this subject  and .


I have tried to use long double type in my program to print out more digits of pi. But it only shows 5 digits decimal.  Here is my code.  int main(int argc, char** argv) {      long double pi_18 = acos(static_cast<long double>(-1));     cout << "pi to 18:" << pi_18 << endl;      return 0; }   and this is my output:  pi to 18: 3.14159   How can I fix this problem?


PreparedStatement IN clause alternatives?

What are the best workarounds for using a SQL IN clause with instances of java.sql.PreparedStatement, which is not supported for multiple values due to SQL injection attack security issues: One ? placeholder represents one value, rather than a list of values.  Consider the following SQL statement:  SELECT my_column FROM my_table where search_column IN (?)   Using preparedStatement.setString( 1, "'A', 'B', 'C'" ); is essentially a non-working attempt at a workaround of the reasons for using ? in the first place.    What workarounds are available?


Is there a utility to replace one block type with another within a region?

I'd like to be able to select a region (either with a graphical utility or command line) and be able to switch one block type with another, e.g. change all cobblestone in the region to stone. Does a program/mod exist that can do this?


Geometric representation of the sum of a Geometric Series

Here is a geometric proof of why $\sum ar^{n}=\dfrac{a}{1-r}$ (|r|<1)-  which I find is quite intuitive.  Can someone give me a hint to prove $\sum_{k=0}^{n-1} ar^{k}=\dfrac{a(1-r^{n})}{1-r}$  (k is finite,|r|<1) using similar geometric interpretation.


How to limit budget for public AWS S3 or Google Cloud Storage?

I would like to upload public images for a web app to a service like AWS S3 or Google Cloud Plateform. This is going to be public images like user profile picture, homepage images... so there is not point making a private bucket (I guess).  Is there a way on AWS or Google Cloud Plateform to prevent a user to do a kind of DDOS attack and kill my budget? A sort of rate limiting? Or something like "after $100 a day I want to block my bucket from access and stop being billed." ?


Page number and name in the header of each page

How do you enter a page number on the right-hand side of each page?   Also, is there a command so that "My name" is on the top left corner of each page except the first page?   And maybe put a bar below the two above items?   I am using document class resume.    \documentclass[margin,line]{resume}   \begin{document}  \name{\Large My name}   \begin{resume}   This is page 1.    \newpage     This is page 2.    \newpage    This is page 3.      \end{resume}  \end{document}    Thank you.


Proper way to remove saliva from motherboard

Saliva came into contact with my CPU. I cleaned the majority off with 99% isopropyl alcohol, but shelved it for later. Now I am once again in the process of cleaning it, as the motherboard I bought to replace it is partially faulty. From what I can tell, a lot of the contacts are blackened, including some pins of the monitor display connector, and areas around that section. I have tried cleaning again with isopropyl alcohol, but in some places the corrosion doesn't budge. What can I safely use to clean the pins of various parts of the motherboard with corrosion?


Consider this  dict1={} dict2={} dict2["first_d2"]="Yes" dict1["first_d1"]=dict2 print dict1 print dict2 dict2={} print dict1      ===>Here's the doubt print dict2   The Output:  {'first_d1': {'first_d2': 'Yes'}} {'first_d2': 'Yes'} {'first_d1': {'first_d2': 'Yes'}}   ===>Why is this not resetting?Its referencing to dict2 {}   Now python dictionaries are mutable.So dict1 is referencing to dict2.Now after first operation dict2 is reset,why is the value of dict1 not resetting?  As per my understanding mutable object change the contents in memory and do not return a new object.So why is this not happening here?What am i missing?  I am confused from the point of view of mutable and immutable!


Automate downloads from password protected website

I need some help with a work project I have been assigned. At the moment we manually go to the site, logon and then download 2 excel files from a supplier's website every month. The files are then loaded into SQL.    We want to automate this process. Now the loading of the files into SQL I can do, but I am not sure how I can automate logging onto the website entering my user details and collecting the files. I mostly deal with SQL and have very little .NET experience, so any code samples would be most appreciated.  Just to confirm. The logon form is on a aspx page. just a basic form with a table containing the username & password fields, the forgotten password link and the logon button


Online story about virtual pets and a woman who crusades to save them

I remember the main protagonist being female. She works with artificial intelligences in a virtual world, which I think was a bit like . There are no ways to build an artificial intelligence from scratch, so instead she is essentially raising them like children. Results are promising, but take years, and eventually, the platform starts shutting down. She and I think a handful of other people struggle to save these artificial intelligences, complicated by a lack of laws protecting them (I remember there being a subplot involving her learning that someone had copies of the AIs on a dark server where a clown was essentially performing torture porn on them). I also remember that, somewhere near the end, she and others have a way to save the artificial intelligences, but only by severely compromising their principles.  I read the story somewhere in the last decade, I think, on a website.


How can I know if a game from an NTSC region can be run on a PAL console?

On a PAL xbox system - I can run some NTSC games. Is there a way to know which NTSC game will run on the PAL console just by its cover?


How to put the variable "user" in this array. The way it is not it doesn't work sadly. The $user variable should be john.smith for example.  I have the following output:  curl --header "Authorization: Bearer XXXXXXXX" --request POST --data '["$user@test.com"]' "https://mattermost.test.com/api/v4/teams/$team/invite/email"


American tourist here. I understand the 180 day scheme, 90 days in (non-consecutive), 90 days out (consecutive).   Here’s the question: I enter the Schengen area on Jan 1st and leave the Schengen area on Jan 31st (30 days) leaving me 60 Schengen days unused. Can I wait outside the Schengen for an extended amount of time, say 5 or 6 months, and then arrive in the Schengen area with my 60 days still usable?


How to test if 2 binomial samples are equivalent?

Problem:  Let $X_1,..., X_{n_1} \stackrel{iid}{\sim} \text{Binomial}(n, p_1)$ and $Y_1,..., Y_{n_2} \stackrel{iid}{\sim} \text{Binomial}(n, p_2)$. I want to test the following hypotheses:  $$ H_0: p_1 = p_2 \\ H_A: p_1 \neq p_2 $$  My approach so far:  Let $\hat{p}_1 = \frac{ \sum_{i=1}^{n_1} X_i/n }{n_1}$ and $\hat{p}_2 = \frac{ \sum_{i=1}^{n_2} Y_i/n }{n_2}$. Test if these proportions are equal using a chi-squared test of homogeneity (see  for details).  My questions:   Is there a better way to do this test? Letting $p_1$ and $p_2$ be the averages of all individual proportions feels silly because it ignores the distributions of the proportions. Could I let $\hat{p}_1 = (X_1/n, ..., X_{n_1}/n)$ and $\hat{p}_2 = (Y_1/n, ..., Y_{n_2}/n)$ and use a non-parametric ANOVA (like the Kruskall-Wallis test) to test if the vectors of proportions are different? Would this approach be better than my initial proposal?


Why the relation is called TRANSITIVE where the required information is missing

Consider a relation $R$ = {$(a, b), (c, d)$}. This relation is transitive. Since transitive pair $(a, b)$ and $(b, c)$ is absent, We cannot prove that this relation is TRANSITIVE or NOT TRANSITIVE. What we say is that it is transitive "by vacuity“ or "vacuously true". My questions are:-   Why did we define vacuous statements as true rather than false? Cannot we say that there are not enough facts available to determine the transitivity of the relation? Is it necessary that a relation must be called either TRANSITIVE or NOT TRANSITIVE?   Thanks.    Edit(added 11:27 PM, 23 March 20): I know that the relation in my question is transitive and I also know how. That is not my question. My question is, here we have an if-then statement, $P⇒Q$, (the condition of transitivity), now when the transitive pair (a, b) and (b, c) is absent, P becomes false, then it implies every Q statement. It means that this implies (i) relation is transitive, as well as (ii) relation is not transitive. Then why do we define this type of relation  as transitive (vacuously true) rather than not transitive (vacuously false)?    Edit: I am surprised, why this question is marked as duplicate. I saw the mentioned question and observed that they are different. The mentioned question is interested in whether the relation is transitive or not, whereas in my question I have admitted from the beginning that the relation is transitive and questioned the logic behind it. Do you people think they are same?


directing Ubuntu install to correct device

Sorry to ask what must be an oft-asked question but I am not seeing another thread with the solution. I am trying to install Ubuntu 13.10 for a dual boot setup on a system that has two HDDs on it, one 149Gb the other 249Gb .      Windows 7 is already installed on the 149Gb drive. When I just run the Ubuntu installation from USB, it defaults to the 249Gb drive.  WHen I restart, my system goes straight into Windows 7, no Dual Boot option on startup.  From my reading I think I need to push the Ubuntu install to the same device as Windows now occupies. I started down the last option in the Install (something along the lines of "manually install by specifying partitions") but that leads me to a partitioning type screen that I don't feel like messing with. can someone advise or direct me to the step by step instructions I need.  Or, does this problem have nothing to do with the fact that I have two physical HDDs with one OS on each?


Let $f: \mathbb{R} \to \mathbb{R}$ and $\exists  \ \ b \in \mathbb{R} : f(x+b)=\sqrt{f(x)-f^2(x)}+\frac{1}{2}$   then find the :      $$\lim_{x \to \infty} f(x)=?$$   My Try : $f^2(x+b)+\frac{1}{4}-f(x+b)=f(x)-f^2(x)$ and let $b=0$ then $f^2(x)+\frac{1}{4}-f(x)=f(x)-f^2(x)$ so $b \neq 0$  now what do i do ?


In the tcolorbox manual we see the following toc format    I would like to reproduce it however I have no idea how to do it. I don't even know where to begin from. I am not familiar with the packages presented in the tcolorbox manual.   I would appreciate your  help.


How to get rid of the special characters getting from the database using smarty?

Some of my contents which are coming directly from MySQL database are displayed like  â€™ , â€” characters.    I guess while inserting the data into the database, I mistakenly used SET NAMES utf-8 instead of SET NAMES utf8. For which the special characters are not converted properly and showing as it is.    In order to avoid these I used the follwoing in the page between <head> tag .. <meta http-equiv="Content-Type" content="text/html";charset=UTF-8" /> .    But it didn't work.    How to convert these into its original characters while showing in the page ?


Can a text read itself or can it only be read?

Is it correct to write or say for example that  As it reads on the first page of the book, ...  or only the following sentences are acceptable?  As it can be read on the first page of the book, ... As one can read it on the first page of the book, ...  (Maybe i'm mixing up English with some other language in which the verb read can be used like this or I don't know... Though this usage of "read" sounds quite strange to me but as if I've already heard or seen it somewhere, and also the Google seems to give some results on that, so that's why I'm asking.)


Which set is more dense: set of irrational numbers or set of rational numbers?

Is the infinity of irrational numbers equal to the infinity of rational numbers? Or is one is greater than other? And what is the proof? I could not find out a rigorous proof about this.  P.S. I am interested in which set of numbers is more dense - rational or irrational. Other similar questions do not consider the density of the numbers.


A word meaning a word you need to look up

Often you'll see someone write a "" online.  I'd really like to have a word on hand that has the meaning "A word you don't know so you have to look it up", or something to that effect.  So when someone else reads it and googles it, they hopefully have a little smack of self-awareness.  Example uses would be some sort of parody of their writing, or something like "Must you use a [...] just to sound smart?"


Style Guide: Bold, Italic, or Quotes When I Want to Emphasize Something

Let’s say I have many lists of this kind on a page:   Click on the Foo button. Tick the Bar box. Click on the Save button.   How should I emphasize Foo, Bar, and Save?   Bold?   Click on the Foo button. Tick the Bar box. Click on the Save button.  Italic?   Click on the Foo button. Tick the Bar box. Click on the Save button.  Quotes?   Click on the “Foo” button. Tick the “Bar” box. Click on the “Save” button.    NOTE: I want the lists to be read as easy as possible.


Photoshop "Export > Export As" or "Export > Save For Web" in size 600px + auto suffix in filename

When working with an image in Photoshop, I'd like to have a simple keyboard shortcut, like in , that automatically does:   Export > Export As or Export > Save For Web  Resize to biggest dimension = 600px (either width or height) Add suffix _600.jpg to filename   How to do that?  I'm not sure how to edit a recorded macro to do that (add the suffix and choose 600px for the biggest dimension).  Example: you open myphoto.png, you press F6 and then you automatically get myphoto_600.jpg.


How to hide the check boxes dropdown by clicking outside the dropdown

I had created a sample check boxes dropdown, I facing an issue in hiding the dropdown by clicking outside the dropdwon. Below is the code    var expanded = false;  function showCheckboxes() {   var checkboxes = document.getElementById("checkboxes");   if (!expanded) {     checkboxes.style.display = "block";     expanded = true;   } else {     checkboxes.style.display = "none";     expanded = false;   } } $('#checkboxes').click(function(e) {   e.stopPropagation(); }); $(document).click(function() {   $('#checkboxes').style.display = "none"; }); .category {   width: 250px; }  #checkboxes {   width: 250px;   display: none;   border: 1px #aaa solid;   overflow-y: scroll;   background-color: white; }  #checkboxes label {   display: block; }  #checkboxes label:hover {   background-color: #bbb; } <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <select class="category" onclick="showCheckboxes()">   <option value="">Select cities   </option> </select> <div id="checkboxes">   <label>      <input type="checkbox" /> Bangalore   </label>   <label>       <input type="checkbox"  /> Hyderabad   </label>   <label>       <input type="checkbox" /> Delhi   </label>   <label>       <input type="checkbox" /> Mumbai   </label>   <label>       <input type="checkbox" /> Chennai   </label>   <label>       <input type="checkbox"  /> Panaji   </label> </div>     I want the drop down to get close by clicking outside any where. kindly help me on this i tried the script to make the display style none, but its not working


The degree of splitting field of $X^4-2$ over $\mathbb Q$

Is the following reasoning sound?  Note that $$X^4 - 2 = (X^2-\sqrt{2})(X^2+\sqrt{2}) = (X+i \sqrt[4]{2})(X - i\sqrt[4]{2})(X+\sqrt[4]{2})(X - \sqrt[4]{2}) ∈ ℂ[X],$$ so the zeroes of this polynomial generate $$ℚ(-i\sqrt[4]{2}, i\sqrt[4]{2}, -\sqrt[4]{2}, \sqrt[4]{2}) = ℚ(\sqrt[4]{2}, i) = ℚ(\sqrt[4]{2})(i).$$ Now $X^2 +1 ∈ ℚ(\sqrt[4]{2})$ has $i$ as a root, so $[ℚ(\sqrt[4]{2})(i):ℚ(\sqrt[4]{2})] = \deg(X^2+1) = 2$. Also $[ℚ(\sqrt[4]{2}): ℚ] = \deg(X^4-2) = 4$, so we conclude   $$[Ω^{X^4-2}_{ℚ} : ℚ] = [ℚ(\sqrt[4]{2})(i):ℚ(\sqrt[4]{2})][ℚ(\sqrt[4]{2}): ℚ]= 4 · 2 = 8. $$  (I believe there is a less 'ad hoc' way to do this (not using our knowledge of ℂ, bascially), which I would be interested in seeing.)


How to open a directory and view images if it contains a large number of image files (~70,000)?

I am working on an image processing project. For that I have a directory which contains around 70,000 images. As I process them in multiple stages I save the intermediate images in another directory. But when I want to see it I can't, as when I open the directory, due to the number of files the file manager stops responding. Even if I somehow manage to open it, I fear that the image viewer will not respond, as I am under the impression that they try to put a few images in cache to load faster. I tried to open the images from terminal. I can open one image at a time in this case but I can't view it as a gallery, which is equally bad as I need to view many images to know that the results are satisfactory.


Why did Barty Crouch Jr. teach Harry to resist the Imperius Curse?

I just finished The Goblet of Fire for the fourth time, but this time I read it while watching out for "Professor Moody"s behavior during school. One piece that stands out is the Defense Against the Dark Arts lesson where Barty Crouch Jr. shows all of the students the Unforgiveable Curses.   This alone wouldn't be weird, as we know it was important that Barty played the eccentric/paranoid character of Mad-Eye well. However, he makes it a point during the lesson to continue using the Imperius Curse on Harry until Harry can resist it. Ignoring the fact that Harry learned to resist one of the most dangerous curses in the magical world in an hour-long class (Aurors should sign up for that, huh?) - what possible motivation would Barty have to teach/train Harry Potter how to resist a very useful Dark spell? Voldemort, later in the same book, even tries to use the Imperius Curse on Harry and can't (one would assume this is due to the earlier training).   The argument of "fitting in" doesn't seem to apply here, as merely demonstrating the curses at all was already straining the limits of Mad Eye's eccentric reputation; plus he only repeatedly targeted Harry. He could just as easily have not aroused suspicion by showing them the curses, or Imperius-ing all of the students equally. The only thing Barty accomplished was strengthening Harry's chances against Voldemort.  There's also the possibility that he simply hated the boy who defeated his master, and as such, wanted to torture him. But in that case, why not "teach them to resist/experience" the Cruciatus Curse? It has just as flimsy of an excuse (i.e. "showing them how it works") but with far more effective results. Furthermore, making a student jump on top of a desk would hardly qualify as torture, even someone as loony as Barty.


I have classes which aim to contain many attributes of different types. I would want to automatically deep clone all of them rather than writing an instruction for each of them:  class AttributesContainer implements Cloneable {     Type1 a1 = new Type1(...), a2 = new Type1(...);     Type2 b1 = new Type2(...);     ...      public AttributesContainer clone() {         AttributesContainer ac = (AttributesContainer) super.clone();          // Regroup that like using a loop         ac.a1 = a1.clone();         ac.a2 = a2.clone();         ac.b1 = b1.clone();         ...          return ac;     } }   I have thought about adding the fields in a table each time but I could not change the reference of the fields:  class ContainerAbstract implements Cloneable {     public <T> T add(T t) {         // adds the reference into a list         return t;     }      public ContainerAbstract clone() {         ContainerAbstract ca = (ContainerAbstract) super.clone();          // copy the attributes          return ca;     } }  class AttributesContainer extends ContainerAbstract implements Cloneable {     Type1 a1 = add(new Type1(...)), a2 = add(new Type1(...));     Type2 b1 = add(new Type2(...));     ...      public AttributesContainer clone() {         AttributesContainer ac = (AttributesContainer) super.clone();         return ac;     } }   I have also thought that I could return a wrapper in the add() method but it would introduce an extra method get() to call each time I want to access an attribute:  AttributesContainer ac = new AttributesContainer(); ac.get()...;   It there a way to change the fields to there source, like we could achieve that in C using a pointer?  NB: I already checked ,  and .  EDIT: One of the reasons I don't use the serialization is that in fact, I have a final property for which I just want a fresh new instance.  I thought about making it transient and then giving it a new object but I can't, since it is final:  class A {     private Double d = new Double(2);     public final transient B b = new B();      public A copy() {         A a = (A) DeepCopy.copy(this);         a.b = new B(); // Error, b is final         return a;     } }


Installation of Ubuntu 13.10 desktop from ISO file

I downloaded ubuntu-13.10-desktop-i386.iso from my Ubuntu 10.04 LTS. How to install ubuntu-13.10-desktop-i386.iso from my Ubuntu 10.04 LTS


How to run SuperHot at full screen on a Mac?

I have SuperHot downloaded through Steam, and am attempting to play it on my 1080p external monitor. It launches , and I don't see a setting to adjust the resolution or switch out of windowed mode.  I'm running a 15" retina Macbook Pro with OS X 10.11.3.


Is there any special features in anonymous classes when compared to normal classes as I don't see anything special in those classes?


Is the sub-field of algebraic elements of a field extension of $K$ containing roots of polynomials over $K$ algebraically closed?

If I have a field $K$ and an extension $L$ of $K$ such that all (non-constant) polynomials in $K[X]$ have a root in $L$, is the set of algebraic elements  of $L$ over $K$ (the sub-field of all the elements of $L$ which are roots of a polynomial in $K[X]$) algebraically closed ?  Do you have a counterexample ?


Homebrew always updating before installing packages

On macOS Sierra every time I run brew install Homebrew tries to update itself, and it takes around 10s.     I found this waste of time frustrating, compared to Ubuntu command apt install, which straight installs the required package. Is there any particular reason for this difference? Or any way to at least increase the times before the update. Because by default it is several times a day.


How to do a javascript button in Lightning?

We depend on a javascript button to allow our salesforce screens to interact with another web application. We read some elements from the salesforce contact, and then call a js func hosted on another web site to pass that contact info to the other web site. The js func has a call back, so when the other web site is finished, our js in salesforce can save some data to the salesforce contact.  But.... as lightning lacks javascript buttons, we have been locked out of lightning.  I just found this:    But it is not clear: Can I do a javascript button now in lightning, or do I still need to wait for more pieces from salesforce?  We would love to have a path forward with lightning.


How to construct a Lebesgue measurable set which is not a Borel set?

How to construct a set $E \subseteq \mathbb{R}^n$ satisfying the following two conditions:  (i) $E$ is Lebesgue measurable;  (ii) $E$ is not a Borel set.  (Here a Borel set is a member of Borel $\sigma$-algebra, which is defined by the $\sigma$-algebra generated by the collection of all open sets in $\mathbb{R}^n$.)


I apologize if this question has already been asked but I've searched high and low and not found an answer. Commonly, on SO and many other Stack Exchange sites, when I see a post flagged as a duplicate, spam, off-topic, and so on, someone will post a comment like "Off-topic; belongs on Server Fault or possibly Super User". Is this good practice? Should this be done? Is this something the flagger should do after submitting a flag? To me it seems a bit offensive and could garner dispute from an argumentative poster, but that's just my opinion.   As a quick example, a comment like this can be found here:  posted by a Mr. Jim Garrison.


How is a pitch supporting fast bowlers or spin bowlers?

I've heard some pitches will support only fast bowlers and some pitches only spin bowlers. What is the mechanism behind this? How can a pitch support either one? What will be difference between these two pitches?


The question  (and answers therein) involve using the extract package to produce a LaTeX file that contains all the text within in a specified environment.  My question is if it is possible to do the reverse?  I am forced to work with Microsoft Word users.  Due to Word's stability issues we usually maintain a .docx file containing all the text for a paper (or in this case my thesis) and one containing all of the figures and captions.  Some journals require this approach as well. The endfloat package gets part of the way there by placing figures at the end of the PDF that is generated.  I've had trouble using TeX4ht or latex2rtf because all of my figures are PDF.  Figures in PDF format work great with pdftex, which I use to generated the PDF files.   Being a chemist, I use a lot of superscripts and subscripts, in particular with the mhchem package.  I was hoping that if I could the text into HTML or RTF I could import to word without have to redo every subscript and superscript in the text.  I've tried placing all of the \includegraphics commands within a comment environment (like textonly below) using the comment package:  \begin{figure} \begin{textonly} \centering \includegraphics{figurefile} \end{textonly} \label{fig:figure} \end{figure}   This approach broke all of my references (\ref{fig:figure}) to figures - they typeset as ??.  Is finding a way to compile the LaTeX code into a more Word friendly format the way to go or is converting the PDF generated by pdftex the best approach?  I find that I have to manually fix the subscripts and superscripts to be recognized by Word.  Additionally, all of the \refs work in the final output PDF, where that may be a problem in a split file approach.


Make every other page a float page (or empty)

I would like to be able to make every other page in a double-sided document be a float page or empty (apart from header w/page number). Ideally this would be the verso page and all floats (unless there are too many, of course) of the facing recto page would be there.  If this works, what is the best way to make the margin of these pages smaller?  (This is for course notes: the empty pages can be used by students for their own notes.)


How do I remap a key in macOS Sierra, e.g., Right Alt to Right Control?

I used to use  to remap Right Alt to Right Control (as an Emacs user I use Control MUCH more that Alt) but updating to Sierra broke this.  Downgrading is not an option.  How do I manually remap keys in Sierra?  I specifically would like to remap Right Alt to Right Control.


I'm working on a highly detailed "random building generator". It's working so far, with a variable to pick the # of floors. 10 floors takes about 10 seconds 20 floors takes about 70 seconds 100 floors... after 5 minutes, I closed it out.  The thing I noticed is it's only using one thread.  Each floor can be created with it's own thread without interfering with other threads. Within the loop that'll execute 100 times, how do I put "buildLayout" function call into threads, without breaking my PC?  Would this work?  (Don't want to generate more threads than my PC can actually handle) import threading for floor in range (0, 100):   thread = threading.Thread(target=buildLayout(self, context, offset,                  outsideWallObj, outsideDoorObj, outsideWindowObj))   threads.append(thread)   thread.start()  for thread in threads:     thread.join()  My biggest concern is I only want 1 thread running per core.  Does python handle this automagically, or do I need to find the core count?  If I need core count, how do I obtain it?  Current code listed below.              for floor in range (0, bpy.context.scene.user_vars.buildingHeight):                 xPos = 0                 yPos = 0                 zPos = floor*4-1                   offset = (xPos, yPos, zPos)                 offset = Vector(offset)                 buildLayout(self, context, offset, outsideWallObj, outsideDoorObj, outsideWindowObj)


This might sound like a very trivial question but I found different answers on the web.     Assume one has a rational function $$\frac{f(x)}{g(x)} ,$$ where $f(x)$ and $g(x)$ are polynomials. What is the degree of the rational function?   Is it the maximum degree of $f$ and $g$? Or is it $\deg(f) – \deg(g)$?  Thanks


In which file directory are the desktop background wallpapers kept?

I'm just here to ask which file directory I can find my desktop background wallpapers in 14.04 so I can copy them onto a USB and take them over to my Windows 8 PC so I can use them there.


Count how many number are there from $1$ to $N$ who have all $10$ digits in it at least once.       Can we have a generalized method to solve this problem?


I've spent all my morning trying to get rid of all fireflies in the final render, but the result still shows too much noise. How can I fix it (without changing materials)?  Thank you.


DES with the bitwise complement of a key

I was reading upon Biham and Shamir's paper and a fact has been presented over there: if $ P_1 = \bar P_2$ and I choose a key $K_1 = \bar K_2$ then in that case  $$T_1 = DES(P_1, K_1)$$ $$T_2 = DES(P_2, K_2)$$  then $T_1 = \bar T_2$ . Does this hold for only that particular combination of S-box or it will be same for any S-box combination. I mean if I change S-boxes randomly then will it still be same?  Also there is one more thing mentioned on the paper, but I am not able to get it. PFB the image.   Here output $T$ will be $\bar T_2$ only if I $P_2$ was inserted with $\bar K$. And clearly I am entering $P_1$ (which is $\bar P_2$) hence the output can never be $T_2$. Please correct.


Please help me fix this code  HTML
Test1

Test2

Test3
   JavaScript  imgclassElements = document.getElementsByClassName('imgclass'); for (var i = 0; i < imgclassElements.length; i++){     imgclassElements[i].onmouseover=function(){alert(i);}; }   In browser onmouseover elements with class .imgclass appear alertbox only with text "3". How fix this? I want to pop-up alert window with values appropriate .imgclass elements order.


Whats the status for OSM in print composer QGIS 2.0?

I have a Stamen Toner OSM background on a report am doing. It seems impossible to use "Print" or "Save as image" functions since the OSM is being projected wrong with 10 km or so.. Right now I'm taking screenshots from there as a work around but it feels kind of wrong?  Screenshot with correct OSM projection:   Save from print composer with wrong OSM projection: (Buffers should be located at the lower right corner


Nationalities - When do we use the singular or plural form

I always have doubts whether to use a singular or a plural noun when I refer to certain peoples.  For example, we say Americans, Italians, Brazilians, Russians and Austrians.  But we say The British, The English, The Portuguese, The French, The Spanish, The Chinese, and The Irish. When it comes to those nationals I rarely hear of, I'm never sure. These would include people from countries such as Azerbaijan, Armenia or Kenya. Is there any rule as to whether we should use singular or plural ?


Sorting multiple columns, with the second column being sorted by numerical order

file: nameslist.txt  Emily 0 Emily 1 Emily 5 Joe 0 Joe 10 Joe 5 Joe 6   This is the command I ran:  cat nameslist.txt | sort -k1 -k2   The result:  Emily 0 Emily 1 Emily 5 Joe 0 Joe 10 Joe 5 Joe 6   It looks like it's sorting by the first number, but how can I get the second column to sort numerically?  The result I want is:  Emily 0 Emily 1 Emily 5 Joe 0 Joe 5 Joe 6 Joe 10


Many statistical papers or articles present very nice draws of graphical models.  Example: this on LDA from wikipedia    or this, pg 7, directly from the paper:    I am now writing a paper where I have to introduce a new graphical model. If I try to draw it, say with paint, something very horrible comes out (see my other posts)  So I am wondering: which tool use statisticians to draw such nice models in their papers?


1st hour, 2nd hour, 3rd hour... But how to say "zero"-th hour?

E.g. in School we have 5-7 or 8 hours every day (Math, History, Biology, Chemistry, English etc.).  The first hour starts at 8:00 A.M.  But every Thursday we have an hour that stars at 7:10 A.M.  In the table it will look like this (just random picture from the web):   In Czech language we call it:  nultá hodina which is something like zero-ish hour  and then 1st, 2nd and 3rd: první, druhá, třetí hodina  How is nultá hodina (the hour that is before the first hour) called in English?  And how do you write it "shortly"? As 0th ? Or somehow else?


Selecting good replacement resistors for SW-12's R87, R88, R89, and R90

Related questions I have posted here so far:      Thanks to those who answered or commented on the questions above, I'm ready to order replacement resistors for R87, R88, R89, and R90 highlighted below:    The main objective of replacing the current resistors with ones with different values is to help the amplifier run as cool as possible because the originals seem to get hot enough to make the amplifier unstable. (I wouldn't mind some reduction in the output power, etc.) So, with this objective in mind, what would be the best and the second best choices as.45 the replacement resistors, among the following? (They all fit in the originals' locations, and they're all available for immediate shipping in the US today.)  Choice 1:  5W 1.5K ohm (same foot print, volume, surface area as the original's)  Choice 2:  5W 1K ohm (same foot print, volume, surface area as the original's)  Choice 3:  7W 1k ohm (same foot print, but volume and surface area bigger than the original's)  Choice 4:   7W 750 ohm (same foot print, but volume and surface area bigger than the original's)


Im testing the async client/server example on MSDN. It works fine. The server example , and the client example   I'm trying to check if I can add some custom server "version" tag. So the client need to specify the version number in order to get a valid connection. It's not the default TCP Three Way Handshake I need. It's a extra custom version number added on the server and specified in the connection string on the client I am looking for.  Can I add some "version" object to the socket?  // Establish the remote endpoint for the socket.   // The name of the remote device is "host.contoso.com".   IPHostEntry ipHostInfo = Dns.GetHostEntry("localhost"); IPAddress ipAddress = ipHostInfo.AddressList[0]; IPEndPoint remoteEP = new IPEndPoint(ipAddress, port);  // Create a TCP/IP socket.   Socket client = new Socket(ipAddress.AddressFamily, SocketType.Stream, ProtocolType.Tcp);  // Connect to the remote endpoint.   // TODO: How to add custom version object? client.BeginConnect(remoteEP, new AsyncCallback(ConnectCallback), client);


Android 7.1 certificates are going to expire, anyway to renew them?

starting from September android 7.1 and below users are going to have issues with the internet so is there anyway to renew those certificates so i can use my phone properly?


Changing symbology of selected features in PyQGIS?

In QGIS selected features are normally highlighted in a different color to draw user’s attention on the selection. The default color can be changed programmatically. As a nice to have my standalone app (QGIS 2.8.2) should draw selected features with different stiles: points with another symbol or a greater size, maybe with a flashing effect, areas with hatch pattern drawn in a different orientation.  Any ideas on how to implement this?   My first idea was to switch between True and False in a hidden field whenever selectionChanged signal is emitted, but I am afraid of running in inconsistency and performance problems this way.


How do I load a javascript file dynamically?

I have this code:      <script type="text/javascript">     function js() {         var getJs = document.getElementById("jogo");          if (JS == true) { //if button JS is pressed - it is correct?              < script type = "text/javascript"             src = "file1.js" >           } else < script type = "text/javascript"         src = "file2.js" > </script> } </script>   it doesn't work. I gave two buttons, if the first is pressed, file1.js should be loaded. In case the second one is pressed, file2.js should be loaded.  How can I do that?


I am reading and following along the appendices of , and trying to learn how he derives Schrödinger's Equation from his Matrix Mechanics, but I have run into a bit of trouble. It seems like for his derivation to work, it must be necessary for the integral of a function times the Dirac Delta Function's derivative be: $$\int^{\infty}_{-\infty}f(\xi)\delta'(a-\xi)d\xi=f'(a). \tag{36}$$ But the actual identity is $$\int^{\infty}_{-\infty}f(\xi)\delta'(\xi-a)d\xi=-f'(a).$$ Does anybody care to explain why it is like this in Heisenberg's book, or provide a derivation along the same vein, but with the correct identity for the delta function?


What is the relationship between force and kinetic energy?

I have learned that $$\mathbf{F} = m \mathbf{a}$$ where both the force $\mathbf{F}$ and acceleration $\mathbf{a}$ are vectors. This makes sense, since both force and acceleration have a direction.  On the other hand, the kinetic energy $$K = \frac12 mv^2$$ looks completely different. It doesn't seem to depend on the direction. How are these two concepts related?


Hosting HTML5 video on Youtube/Vimeo, without using player

I use the following <video> tag to play an HTML5 video as a background on my website:  <video autoplay loop mob-hide>     <source src="../Images/myvideo.mp4" type="video/mp4" />     Your browser does not support the video tag. I suggest you upgrade your browser.</video>   At the moment, I am hosting this on my web server, but would ideally like to host it on one of the freely available video sites, e.g. YouTube or Vimeo. Is it possible to do this, without embedding one of their players? NB: this doesn't need to work on mobile


Surjectivity implies injectivity and conversely

Let S be a finite set.Let F be a surjective function from S to S.  How do I prove that it is injective?


I am having hard time understanding this

I have been giving two header files with the template for each and it asking Write a bag member function with two parameters. The two parameters are Items x and y. The function should write to the console all Items in the bag that are between the first occurrence of x and the first occurrence of y. You may assume that items can be compared for equality using ==. Use the following header for the function:     void print_value_range(const Item& x, const Item& y);  print_value_range can be interpreted in a number of ways, but use the following points.  This should make the implementation a little easier.  Print the Items from x to y including the start but not including the end. If there is no element in the bag that has value x, print nothing Otherwise, if there is no element in the bag, after x, that has the value y, then print from x to the end of the list Print the values on one line separated by space. Put an end of line after the values are all printed.  Remove Repetitions Write a member function that deletes all repetitions from the bag. In your implementation, assume that items can be compared for equality using ==. Use the following header for the function: void remove_repetitions() Here is a brief outline of an algorithm:  A node pointer p steps through the bag For each Item, define a new pointer q equal to p While the q is not the last Item in the bag ◼ If the next Item has data equal to the data in p, remove the next Item ◼ Otherwise move q to the next Item in the bag   Write a new test program to test the above two member functions. Submitting Assignment  The giving headers are node2 and bag5 with each one template bag5.h has include node2.h in it and it has these lines   void print_value_range(const Item& x, const Item& y); //<-- Implement this!!!!!     void remove_repetitions(); //<-- Implement this!!!!!  my question is where do i implement these in which header or in another file or in template or what


Formatted and lost 6 years worth of photo memories.. any way to get this back?

I usually back up before formatting and doing a re-installation of Ubuntu, it was in the process and then obviously stopped prematurely but I was thinking all my data was transferred.  After installing formatting the drive and sticking a fresh Ubuntu on there I proceed to transfer the files from my memory stick to my hard drive, some files are there but most of my 6 years worth of pictures are gone. Is there any way I can get these back? I don't know what to do, I feel absolutely crap :/  Any help would be very appreciated.


When I zoom out they look like faces eat each other. (also when rendering)    But when I zoom in they are normal... I don't know why?


How to build a hand out of a UV circle and Cylinder?

I've tried to build this hand with uv circle and ciylinder but I just get nowhere... Can someone give me any tips oh how making those different shapes?  What I have so far is this shameless try... I'm planning in bevels + alt e to extrude into the shape.  It's really 'shapeless'...


Performance evaluation of auto.arima in R and UCM on one dataset

I started evaluating and comparing some methods in forecasting. I used Price of dozen eggs in US, 1900–1993, in constant dollars in the R software FMA package. I held out the last 10 years for assessment of forecast. Below are the results:  I used auto arima method in the R software. Obviously the results are way off. Am I doing something incorrect ? Below is the forecast. It does not recognize the declining trend.     I also used an unobserved components model (UCM) and obtained a good forecast,  as below.   Without outliers/level shifts there are very large standard errors and therefore wide confidence bands.  After some iterative work, below is the output with outliers/level shifts (I know I'm overfitting here) but it did a pretty good job in forecasting; there are also narrow confidence bands.    In looking at just this example the UCM seems to predict the hold-out sample more accurately than auto.arima.  Why is auto.arima not providing a reasonable forecast?  Are state space models/UCMs better for forecasting long range?  Are there any benefits of using one method over other?


Is it true that $|x|-|y|\leq|x-y|\leq|x|+|y|$?

I am trying to understand if it is true that: $$|x|-|y|\leq|x-y|\leq|x|+|y|$$ I know that this is a topic maybe discussed already many times...maybe I am not so good on searching for question already done..so in case this is a question already done can you tell me if the inequality holds and eventually can you give me the link of the that question?


Cron Job is not sending output of script as email, while same script is sending email if being run from cli

I have a script which gives output in a file and doing few awk operations on that output file and mixing the output of two files using paste -d and then sending the email of newly created file to email. If i run same script from command line, its giving output and sending email as well, but if i use same command for cron job. Its not sending email and /var/log/cron gives this message. "CROND[6235]: (root) MAIL (mailed 125 bytes of output but got status 0x0043#012)". No info for message code (0x0043#012). Please suggest.


If there are total 500 pages, and i have to see some content on page no. 250 , i should be able to jump to that direct, using Next <> Prev is annoying


It will be very nice to add job search feature in iOS app or do another standalone app for that like "linkedIn jobs".


UK visitor visa allows you to stay for 180 days for say a 2-year period between 01/01/2018 to 31/12/2020. Does this mean you need to leave the UK on or both 31/12/2020?  I know that on a Chinese visa the "to" date is the last day you are allowed to enter China. You can for 90 days afterward. I presume this is not the case for a UK visa?


Command substitution declaration syntax in bash - which of these two is better practice?

This is part of a bash find loop, and I wondered which is more correct syntax and why?  filename="$(echo "$i" | cut -c5-)"; filename=`echo "$i" | cut -c5-`;   Both function for the purpose of getting the file name.


Upper bound on complex integral of real-valued function, estimation lemma too loose

I've encountered the following problem in a set of course notes on complex analysis, but I can't seem to solve it:     Prove that if f is a continuous real-valued function with $|f(z)| \leq 1$, then $\left|\int_{|z| = 1} f(z)\,dz\right| \leq 4$.   This is my work so far:     \begin{align*} \left|\int_{|z| = 1} f(z) \,dz \right| &= \left|\int_0^{2\pi}f\left(e^{i\theta}\right)ie^{i\theta}\,d\theta\right| \\ &= \left|\int_0^{2\pi}f\left(e^{i\theta}\right)\cos\theta\,d\theta + i\int_0^{2\pi}f\left(e^{i\theta}\right)\sin\theta\,d\theta\right| \end{align*}   I initially tried to use the triangle inequality at this point and then bound the real integrals, but this gives me an upper bound of $4\pi$. Using the estimation lemma on the initial integral gives me an upper bound of $2\pi$. I can't manage to get it any tighter.  The emphasis on real-valued makes it seem that this is a key point. Any ideas?


Do carboxylesterases, arylesterases and acylesterases count to the enzyme class of lipases?

I am currently examining the acyl transfer catalysis activity of several enzymes that I was told are all lipases. Through reading a couple of papers including these enzymes I found out that all of them are hydrolases with promiscuous acyltransfer activity. Specifically one of the enzymes is a carboxyl-esterase, one is an aryl-esterase and the third one is an acyl-esterase. I know that esterases are part of hydrolases and lipases are basically fat-splitting esterases. Lipases also catalyze transesterification = acyl transfer, just like all of the enzymes I am working with do. I just don't understand the classification of all these enzymes as lipases. Can someone explain the connection to me?


I want to use old camera api in android M, but when I run my app I get this null pointer exception:  java.lang.RuntimeException: Unable to resume activity {com.in.ri.instacam/com.in.ri.in.Camera.ActivityCamera}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.hardware.Camera$Parameters android.hardware.Camera.getParameters()' on a null object reference     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3328)     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3359)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2549)     at android.app.ActivityThread.access$900(ActivityThread.java:150)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1394)     at android.os.Handler.dispatchMessage(Handler.java:102)     at android.os.Looper.loop(Looper.java:168)     at android.app.ActivityThread.main(ActivityThread.java:5845)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.hardware.Camera$Parameters android.hardware.Camera.getParameters()' on a null object reference     at com.instacam.riatech.instacam.Camera.ActivityCamera$CameraLoader.setUpCamera(ActivityCamera.java:715)     at com.instacam.riatech.instacam.Camera.ActivityCamera$CameraLoader.onResume(ActivityCamera.java:700)     at com.instacam.riatech.instacam.Camera.ActivityCamera.onResume(ActivityCamera.java:320)     at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1326)     at android.app.Activity.performResume(Activity.java:6323)     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3311)     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3359)      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2549)      at android.app.ActivityThread.access$900(ActivityThread.java:150)      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1394)      at android.os.Handler.dispatchMessage(Handler.java:102)      at android.os.Looper.loop(Looper.java:168)      at android.app.ActivityThread.main(ActivityThread.java:5845)      at java.lang.reflect.Method.invoke(Native Method)      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)    My code is    private void setUpCamera(final int id) {         mCameraInstance = getCameraInstance(id);         Parameters parameters = mCameraInstance.getParameters();         // TODO adjust by getting supportedPreviewSizes and then choosing         // the best one for screen size (best fill screen)         if (parameters.getSupportedFocusModes().contains(                 Parameters.FOCUS_MODE_CONTINUOUS_PICTURE)) {             parameters.setFocusMode(Parameters.FOCUS_MODE_CONTINUOUS_PICTURE);         }         mCameraInstance.setParameters(parameters);          int orientation = mCameraHelper.getCameraDisplayOrientation(                 ActivityCamera.this, mCurrentCameraId);         CameraHelper.CameraInfo2 cameraInfo = new CameraHelper.CameraInfo2();         mCameraHelper.getCameraInfo(mCurrentCameraId, cameraInfo);         boolean flipHorizontal = cameraInfo.facing == CameraInfo.CAMERA_FACING_FRONT;         mGPUImage.setUpCamera(mCameraInstance, orientation, flipHorizontal, false);     }   Can I use an older camera api in android M? The same code works fine in below M(API 6) versions of android.


In Minecraft, I put the Nether portal exactly how it should be but it won't light why?

I've been trying to light my nether portal but it doesn't work. I have the portal set up correctly but it still won't work. The portal doesn't show up. Can anyone tell me why?


I am trying to prove that all analytic bijective map from $\mathbb{C}$ to $ \mathbb{C}$ has the form of $f(z)=az+b$ where $a$ is nonzero.  I tried to approach this problem by using taylor series and Cauchy integral formula, but how do I use the property of bijection?


Export separate objects as separate .obj

I want to export a selection of objects as .obj. I want each object as its own .obj. Is there a way to export individual .obj for each object selected? There does not seem to be an python reference for exporting, nor is a command echoed when I export a single .obj


Fifth edition seems to have removed any means of healing undead.  The positive/negative energy duality of 3rd edition seems to be gone. Negative energy spells now do necrotic damage; some undead are resistant or immune to necrotic damage, but it isn't listed as healing them. Classic negative energy spells like inflict wounds and harm don't list undead healing as a possible effect.  For zombies and skeletons it might not matter, but liches and vampires would never risk their necks if they didn't have some way to recover hit points. What is it?


How can you reliably and dynamically load a JavaScript file?  This will can be used to implement a module or component that when 'initialized' the component will dynamically load all needed JavaScript library scripts on demand.  The client that uses the component isn't required to load all the library script files (and manually insert <script> tags into their web page) that implement this component - just the 'main' component script file.  How do mainstream JavaScript libraries accomplish this (Prototype, jQuery, etc)?  Do these tools merge multiple JavaScript files into a single redistributable 'build' version of a script file?  Or do they do any dynamic loading of ancillary 'library' scripts?  An addition to this question: is there a way to handle the event after a dynamically included JavaScript file is loaded?  Prototype has document.observe for document-wide events. Example:  document.observe("dom:loaded", function() {   // initially hide all containers for tab content   $$('div.tabcontent').invoke('hide'); });   What are the available events for a script element?


How do I become a better League of Legends player

I think the most commonly asked question in League of Legends is "How do I escape Elo hell?" or "How do i gain Elo fast" Because most players are in silver or bronze.   Now I play this game since Beta and I also have played in every Elo except challenger. I want to share some of the things I know that can help everyone to escape "Elo Hell" In Q&A Style.  So really simple Question with Huge background:  How do I get better??  (I know about the  by the way, but this isn't really about escaping elo hell only, it's about improving your skills to become a better player in every aspect of the game)


How to make text labels appear in pgfplots xbar stacked

I'm trying to have a stacked bar chart work like a pie chart, with the percentage and label appear in each rectangle. I can get the values appear with a percentage sign, but not the actual text. Maybe there's something else that needs to go as the argument to nodes near coords, or some other way entirely. Here's my mwe:  \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \begin{document} \begin{tikzpicture} \begin{axis}[width=1.19\linewidth, axis lines=none, xbar stacked, nodes near coords={\pgfmathprintnumber\pgfplotspointmeta\%}] \addplot+[black,fill=white,xbar] plot coordinates {(10,0) [Homework]}; \addplot+[black,fill=white,xbar] plot coordinates {(10,0) [Quizzes]}; \addplot+[black,fill=white,xbar] plot coordinates {(20,0) [Midterm 1]}; \addplot+[black,fill=white,xbar] plot coordinates {(20,0) [Midterm 2]}; \addplot+[black,fill=white,xbar] plot coordinates {(40,0) [Final]}; \end{axis} \end{tikzpicture} \end{document}   I want the text labels ("Homework", "Quizzes", etc) to appear inside or below each rectangle, perhaps rotated by some angle so that they fit in the available width.


If I run along the aisle of a bus traveling at (almost) the speed of light, can I travel faster than the speed of light?

Let's say I fire a bus through space at (almost) the speed of light in vacuum. If I'm inside the bus (sitting on the back seat) and I run up the aisle of the bus toward the front, does that mean I'm traveling faster than the speed of light? (Relative to Earth that I just took off from.)


How to merge vertices by distance or delete faces with zero area?

There is that mesh where we can see there are faces on the edges with zero area.    I guess there should be a function to remove faces with zero area or merge vertices/edge with distance threshold (like in Maya).


Can I login to Whatsapp Web without scanning the QR code?

My camera doesn't work. I already tried downloading different camera applications but none of them worked. Problem is physical not software-related. How can I login to Whatsapp Web without scanning the QR code?


Disable Two-Factor Authentication for macOS?

How to disable Apple’s Two-Factor Authentication for macOS?   Older Macs do not support Two-Factor Authentication. As a side-effect, a user cannot access their iTunes account in iTunes on any older Mac, and cannot buy music.


How can I tell Notepad++ to always use a particular language with a particular file extension

I've associated .xul with Notepad++ so if I double-click on a .xul file, it will open in Notepad++. But Notepad++ doesn't know that XUL is just a particular type of XML, so I then have to manually click on "Language > XML" to get XML syntax highlighting. Is there a way that I can tell it: "every time you open a file with the extension .xul, automatically switch to the XML language"?


Can i use the following code or it's incorrect?

Well first i'm using language c i still a beginner.  char S[20]; S ="ewer" ;   is that correct.


We have a polynomial $x^2 + 3x + 1$. There are 2 zeroes of it,  $\alpha$ and $\beta$  Now, what we need to find out is(What I couldn't) is as follows:  $$ \alpha^{2016} + \beta^{2016} + \alpha^{2014} + \beta^{2014} \over \alpha^{2015} + \beta^{2015}$$  Any ideas on how to do it?  Thanks a lot! -bone


Should UI be phrased positively or negatively?

I was discussing with a workmate whether user interfaces should be phrased in a positive or a negative manner. I've observed positive sentences are clearer than negative ones to the average user.  I've heard some discussions on this matter and most people seem to agree that phrasing positively yields better results in user experience than negative ones. But is there a UX recommendation on this?  EDIT:  to be clearer: should I notify my user that his/her input data is invalid by saying "input is invalid" or "input is not valid"? Or does it not affect UX at all?  Is it better to negate a positive verb or use a verb that has a negative meaning in itself?


What can I do when my parents want a divorce?

My mum and dad want a divorce and I don't know what I can do. My dad likes another woman and my mom already asked three lawyers for the divorce. My BFF has heard some things about this. My life is already a dark, gloomy cloud, and I am very very unlucky! I don't know what to do. Please Help Me!


How can I boot into Ubuntu after installing Win7 on the side?

Ubuntu 16.04 is installed on my laptop.    Yesterday I installed Windows 7 in unallocated space. When I restart my laptop, I don't get any menu to choose what OS to boot into. It just automatically boots into Windows.   I thought I might have accidentally removed Ubuntu and so I wrote Ubuntu on a USB and tried reinstalling. That installer says I already have Ubuntu and is making me choose whether or not I want to erase and reinstall, so it isn't removed.  How can I boot into it?


I can't seem to find a way of asking a sub-question in relation to , which is in itself too generic a question for my purposes. Could someone please confirm or deny my understanding that the following:   $$\left\langle \sum_{n=1}^\infty x_n, y\right\rangle =\sum_{n=1}^\infty \langle x_n, y\rangle $$ is always true in a Hilbert space equipped with the norm induced by its inner product, where the convergence on the LHS is convergence in the said norm and the convergence on the RHS is convergence in the norm of the scalar field.  Thank you very much.