Finding a bound on a sequence defined as ratios of the Fibonacci sequence

I have a sequence $(a_n)$ defined such that $a_n = F_n/F_{n+1}$, where $F_n$ is the $n$th Fibonacci number. I want to show that there exists a real $b \in (0,1)$ such that: $$|a_{n+2} - a_{n+1}| \leq b |a_{n+1} - a_n|$$ holds for all $n \geq 1$. I've been able to rearrange this inequality to: $$\frac{1}{|(1+a_n)(1+a_{n+1})|}\leq b$$ but here I get stuck. I recognize that the terms in $(a_n)$ are not uniformly increasing or decreasing, i.e. the subsequence $(a_{2n})$ is increasing and the subsequence $(a_{2n+1})$ is decreasing, but I don't know if this is useful. Any help?


What tool to use for vertex intersection of three lines? Stuck on this

I hope this puzzle here finds you well. I hear tell this question has been asked and answered. If you are aware of that, please point me to a link that demonstrates as such. I can't find anything close. So here goes again:  I have three lines that need to intersect into a single vertex, but each line has a position on a circle that must also move without distorting the shape of the circumference. The picture shows a planar shape. There is no volume. I intend to extrude that later on.   Going backwards with boolean operations has proven unreliable because later artifacts interfere with the next steps in the design. There has to be a tool method or math function that will let me do this. I have tried loop cuts, knife tool, etc and then reduced down to planar space, but I still get a slight goof in the circle or straightness of the lines no matter how I approach this.  Has anyone encountered this kind of sub-d surface modification before? In AutoCad there is a trim utility where you can select a line segment as a knife edge (so to speak) and then the target segment gets split where they cross...  But I can't figure this one out and I bet it is something simple.


Compute $$\lim_{n\to\infty}\sum_{k=1}^n\arcsin\left(\frac k{n^2}\right)$$   Hello, I'm deeply sorry but I don't know how to approach any infinite sum that involves $\arcsin$, so I couldn't do anything to this question. Any hints/tips would be appreciated. I know I have to make it somehow telescopic but I don't know how to use formulas like   $$\arcsin x-\arcsin y=\arcsin\left(x\sqrt{1-y^2}+y\sqrt{1-x^2}\right)$$  My knowledge level is 12th grade.  I tried to put it in between $$\arcsin\frac 1{n^2}< \sum_{k=1}^n\arcsin\frac k{n^2} <\arcsin\frac n{n^2}$$ so then $L=0$, but it's wrong.


The  (ESC), states that for every natural number $n \geq 2$, there exists a set of natural numbers $a, b, c$ , such that the following equation is satisfied:  $$\frac{4}{n}=\frac{1}{a}+\frac{1}{b}+\frac{1}{c}\tag{1}$$  The basic approach to solving this problem outlined by Mordell [Ref1] is described below  By defining $t$ and $m$ as positive integers greater than zero and $q$ a positive integer greater than one we can observe that  a) There is always a solution for even $n$, since if $n=2^qt$ we have the trivial solution $$\frac{4}{4t}=\frac{1}{t}$$  In the remaining case $n=2(2t+1)$, a solution in the form of two Egyptian fractions can always be found  e.g. $$\frac{4}{2(2t+1)}=\frac{2}{2t+1}=\frac{1}{t+1}+\frac{1}{(t+1)(2t+1)}$$  b) If $(1)$ is a solution for some particular prime $n$ then all composite numbers $mn$ divisible by $n$ are also solutions, thus  $$\frac{4}{mn}=\frac{1}{ma}+\frac{1}{mb}+\frac{1}{mc}$$  will also be a solution. This means that we can simplify the analysis to the cases where $n$ is a prime greater than 2.  Using Mordell's approach we have just shown that we only need to consider the cases where $n$ is prime and where $n \equiv 1 \pmod{2} \;\;[meaning \;\;n=2t+1]$  The argument continues...  Mordell goes on to show in turn that the search can be reduced further to the cases when $$n \equiv 1 \pmod{4} \;\;[meaning \;numbers \;\;n=4t+1]$$ $$n \equiv 1 \pmod{8} \;\;[meaning \;numbers \;\;n=8t+1]$$ $$n \equiv 1 \pmod{3} \;\;[meaning \;numbers \;\;n=3t+1]$$ $$n \equiv 1,2,4 \pmod{7} \;\;[meaning \;numbers \;\;n=7t+1,n=7t+2 \;or\;n=7t+4 ]$$ $$n \equiv 1,4 \pmod{5}  \;\;[meaning \;numbers \;\; n=5t+1 \;or\;n=5t+4]$$  Assembling these results together, Mordell showed that the conjecture can be proved in this context except for the cases when $$n \equiv 1,11^2,13^2,17^2,19^2,23^2 \pmod{840}$$  Mordell stated that since the first prime meeting this condition is 1009, this is proof that the conjecture holds for $n<1009$.  This basic approach can be pursued further. Other workers have shown that the conjecture holds for much higher values of $n$ using similar methods as can be seen on the above Wikipedia page.   Note that other intermediate results can be constructed from the above congruence's, e.g. $n \equiv 1 \pmod{24}$.  The question is:  Are there any other elementary approaches to solving this problem than the one outlined by Mordell (and described above)?  [Ref1] Louis J. Mordell (1969) Diophantine Equations, Academic Press, London, pp. 287-290.


Can you tell the system which boot partition to boot into before you reboot in Ubuntu-Win Dual Boot?

I have a dual boot system Windows 7 64-bit and Ubuntu 14.04 LTS 64-bit freshly installed today and running. GRUB 2 is in charge of partition selection upon booting but I was wondering if there is a way to tell ubuntu which partition to boot into upon performing a reboot rather than having to wait for GRUB to load.


What are the minimum system requirements for QGIS 3.0 Desktop?

What are the minimum system requirements for QGIS 3.0 Desktop, as speed of CPU and how many cores, how much disk space is needed for installation, size of HDD and swap space, minimum RAM memory, display and screen resolution, graphics memory, etc ?


Family science fiction movie where aliens chew gumballs to turn into monsters

What is the scifi family movie where aliens(?) have these gumballs that whomever chews it turns into an alien/monster/creature thing.   The government is trying to capture the aliens for study and a family is trying to help them escape.  I vividly remember a scene towards the end that the mom chews a gumball that turns her into a big kraken type of monster. It has to be from the 90s, maybe 80s.


I have file like this called Sample.txt:  [Sat Sep 10 06:31:41 2016]!Node2!Node1!Node3 [Sun Sep 11 23:31:41 2016]!Node2!Node1!Node3   I need to modify it so it looks like.I need to change the date format to this format    2016-09-10 06:31:41!ER_DEV!Node2!Node1!Node3   2016-09-11 23:31:41!ER_DEV!Node2!Node1!Node3


Calculate time spent on each stage on case record and report it

I want to report on time spend on each stage on a case (created to its closed). I believe i have to first create a formula field on case object which can show   time stamp (days,hours and mins) , it also need to stop calculating time once the case is closed and have to stick with business hours (Monday - Friday, 8AM - 6PM) Any help would be really appropriated. Many thanks.


Does GOP tax reform bill require selling earliest shares first?

An early draft of the GOP tax reform bill contained this provision, as reported by :     The Senate draft of the Tax Cuts and Jobs Act would require sellers of stock in any one company to dispose of shares in the order they were acquired. Sellers could no longer designate which blocks of their shares they wished to sell to minimize capital gains taxes. The new rule would be “first in, first out” (FIFO).   Did this provision survive in the final bill, and if so, does it apply to ETFs as well as company stocks?


I have this code to draw a mass on a spring and now I want to have a curly brace below the spring to denote the distance: x_0. How do I do this?  \begin{tikzpicture} \tikzstyle{ground}=[fill,pattern=north east lines,draw=none,minimum width=0.3,minimum height=0.6]  \node (wall1) [ground, minimum height=2cm] {}; \draw (wall1.north east) -- (wall1.south east); \node [draw,minimum width=0.5cm,minimum height=0.5cm] (mass) at (2,0) {m}; \node (fix) at (0,0) {}; \draw [snake=coil,segment amplitude=5pt,segment length=5pt] (fix) -- (mass);  \end{tikzpicture}


Regex, PHP and Wordpress plugins - Can't make my regex work

I'm using a regex pattern to locate a string to be deleted, which is delimited by two strings (say, "START" and "FINISH"). So it's STARTsome_string_to_deleteFINISH  Problem is that START and FINISH strings are html tags which have < > characters.  When I use online regex testers, they pattern works fine but when I insert the expression in Wordpress plugins that I use (e.g. WPEMatico that handles RSS to New Posts), I keep getting errors.  I tried escaping special characters with backslash. Doesn't work.  Any advice?  Here's an example of the string I used:  ========================================== (\<!-- Facebook Comments Plugin for WordPress).+?(<\/comments>) ==========================================


gdal_grid with CSV file and VRT "No point geometry found on layer"

Given the following .vrt file which I manually created:  <OGRVRTDataSource>     <OGRVRTLayer name="DGM5_BE">         <SrcDataSource>DGM5_BE.txt</SrcDataSource>         <SrcLayer>DGM5_BE</SrcLayer>         <LayerSRS>EPSG:25833</LayerSRS>         <GeometryType>wkbPoint</GeometryType>         <GeometryField encoding="PointFromColumns" x="x" y="y" z="d"/>     </OGRVRTLayer> </OGRVRTDataSource>   and the associated DGM5_BE.txt - here are the first lines:  x;y;d 397200;5837250;59,15 397205;5837250;59,04 397200;5837245;59,03 397205;5837245;58,94 397195;5837240;58,93 397200;5837240;58,9 397205;5837240;58,86 397210;5837240;58,9 397190;5837235;58,98   I run the following command to convert the DGM5:  $ gdal_grid -of GTiff -ot Float32 -l DGM5_BE DGM5_BE.vrt DGM5_BE.tif   This fails with the following error message:     ERROR 1: Failed to open datasource `DGM5_BE.txt'.   No point geometry found on layer DGM5_BE, skipping.


How to swap Escape and Caps Lock for tty and X11

I have done quite a lot of research on how to swap the Escape and Caps Lock keys. I achieved it while using X11 via my .xinitrc file and the following line of code: setxkbdmap -option caps:swapescape However, when I start a tty, it doesn't work. How can I get this to work while using a tty? Is it possible to use some kind of global option, like a custom keyboard layout that does not depend on X11? I'm using Arch Linux, if that helps.


Modify JavaScript object variable from function

I have a problem with modify variable transfered as function parameter. For example:    function fun() {    this.a = 1;    this.b = 2;    this.show = function() {       this.increment(this.a);       this.increment(this.b);       console.log(this.a); // expected 2       console.log(this.b); // expected 3    }    this.increment = function(elem) {      elem += 1;    } }  var funObj = new fun(); funObj.show();     How can I change this.a and this.b variables in this case?


Subset $A_1,..A_m$ of $\{1,2,...n\}$ where $|A_i|$ is even $\forall i$ and $|A_i \cap A_j|$ is odd when $i \neq j$, prove $m \leq n$

I'm struggling to figure out the best way to prove some extremal combinatoric ideas. If I have a set $\{1,2,...,n\}$ a collection of subsets $A_1, A_2,...A_m$ where $|A_i|$ is even $\forall i$ and $|A_i \cap A_j|$ is odd when $i \neq j$, then how should prove that $m\leq n$? I understand the proof that uses linear algebra to prove that if I had two subsets $A_1,..A_m$ and $B_1,..B_m$  and the same constraints but for $|A \cap B|$ but I am struggling to see how I can leverage this proof to show it for just $A$.


Is there an analysis of the construction "my friend she is nice."

I am researching syntactic idiosyncrasies of verbal communication and am interested in a construction in which a noun is reiterated with a pronoun. As children, we're all taught to avoid constructions that introduce a subject and follow it with a pronoun. But while this is forbidden in prescribed grammar, it is also ubiquitous in spoken English.  My friend Jane, she ate half the cake in one sitting.  This example is a simple one, where the speaker places the pronoun "she" after "my friend."  But this construction appears more frequently in complex forms.  It's not hard to find examples in speeches by public figures.  They’re saying the obstructionists, how do we get them to vote for us?  In this example quote, the message conveyed is as follows.  They're saying, how do we get the obstructionists to vote for us?  This is not as simple as the example in the question, where the pronoun comes immediately after the noun.  But the concept is the same, in that the noun is introduced first, and then referred to with a pronoun later.  It seems similar to the difference between these sentences.  The obstructionists, they will vote for us. The obstructionists will vote for us.  Is there any term for this bit of verbal linguistic flair or any sort of analysis that explains why it is common in speech and taboo in prescriptive grammar?


If $ax^2+(c+b)x+e+d=0$ has real roots greater than $1$, show that $ax^4+bx^3+cx^2+dx+e$ has at least one real root

If $a, b, c, d ,e$ are real numbers such that the equation $ax^2 +(c+b)x+e+d = 0$ has real roots greater than $1$, show that the equation $ax^4 + bx^3 + cx^2 + dx + e$ has at least one real root.


How can I set the maximum draw type for multiple objects?

I'm currently working on a scene containing 1000+ objects which all need to be set to a different draw type to save on computationally expenses in the viewport. But doing this for every object separately is really tedious. Therefor I'm wondering if there's a way to change the maximum draw type of multiple objects simultaneously. Preferably only the selected objects.


Creating map book series with blank pages between maps using ArcMap?

I am looking to create a series of maps each one highlighting the camping pitch. I would like to put the number of the pitch highlighted on either page before or after to allow duplex printing of map on one side and pitch number on the other side.  Is this possible using ArcMap with or without python?  See image of camping pitches:


passing values from a listbox to another using click

I am new using Jquery. I've been working around this matter without any solution, So I will appreciate any help.  I have two listboxes (lstbox1 and lstbox2) in HTML and I am using Jquery to pass values from one listbox to another. The problem with this code, is that once I moved an option from lstbox1 to lstbox2 and I click over the option again to return it back nothing happens. Once, I move an option from lstbox1 or lstbox2, I can't return it to its previous position.    $(document).ready(function() {      $("#lstBox1 option").click(function () {    var selectedOp1 = $('#lstBox1 option:selected');    $('#lstBox2').append($(selectedOp1).clone());         $(selectedOp1).remove();     });      $("#lstBox2 option").click(function () {    var selectedOp2 = $('#lstBox2 option:selected');    $('#lstBox1').append($(selectedOp2).clone());         $(selectedOp2).remove();     });       }); #lstBox1 {  width: 200px;  height: 200px; } #lstBox2 {  width: 200px;  height: 200px; }

                      Group 1:
            <select multiple="multiple" id='lstBox1'>               <option value="1">Ajax</option>               <option value="jquery">jQuery</option>               <option value="javascript">JavaScript</option>               <option value="mootool">MooTools</option>               <option value="prototype">Prototype</option>               <option value="dojo">Dojo</option>         </select>     	                   Group 2:
         <select multiple="multiple" id='lstBox2'>         <option value="C#">C$</option>         <option value="Java">Java</option>         <option value="HTML">HTML</option>          </select>


How to tell which device? "The device, \Device\Harddisk4\DR4, has a bad block."

Running Windows 10 home.  I have six identical hard drives in the machine and I am getting a lot of errors like this from one of them:     The device, \Device\Harddisk4\DR4, has a bad block.   How do I find which drive letter this drive is?


How to identify an iOS hotspot from the command line?

Is it possible from the command line to identify whether the current Wi-Fi connection, or a detected SSID, is an iOS personal/instant hotspot?   I know OS X can detect this, as it shows a specific "hotspot" icon in the topbar when scanning the list of SSIDs or when being connected to an iPhone (see screenshot)   I tried using /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I and ifconfig but I'm not able to find information that helps me identify an iOS hotspot.


Can i remove the virus from website scripts from unix shell

My website is infected with iframe injection and some javascript virus.  There is some JS code which is present in all the files.  Is there any way that i can paste that JS code in a text file and make shell script which matches that pattern and rmoves from the pages  I have vps server centos with cpanel whm


edit: the duplicated result was great! thanks for finding it for me. I couldn't get the right key-word to search for that but you find it for me after I could not find for 10 minutes. thanks verymuch it works well.  I'm having a weird issue where the referenced label and the actual number displaced on the document do not match. A picture probably help:    I cannot provide a minimal viable example as I am using some template file which probably is causing this issue, so if I start fresh this issue obviously do not manifest.  If anyone is interested here is a link to the template file, maybe there's something that can clue you to help with this issue?    thanks in advance. I am very very perplexed why it happens.


Why can't a pyramid stay balanced on a vertex?

A pyramid, such as a tetrahedron/3-simplex, or any other isohedron, falls from some height and lands on a vertex. It will eventually end up with a face to the ground.  Why can't it stay balanced on a vertex?  EDIT: this is not the same question as  because there symmetry is assumed. For this question I am not making any assumptions about symmetry. Also, in my situation the object is falling from a height. The issue there is assuming it starts on the ground.


What does $# mean in shell?  I have code such as  if [ $# -eq 0 ] then   I want to understand what $# means, but Google search is very bad for searching these kinds of things.


Is the timing of badge awards documented?

Some badges are awarded instantly (like the early badge awards designed to inspire a pavlovian reaction), some seem to be awarded in some kind of late night batch job (the harder to reach ones?) - is there any way of telling which is which?    So that if you are due a badge, there is a visual clue to suggest how long you should wait before yelling "where's my ^&%&%$(& badge!".  Perhaps a little icon with the letter 'i' in it, next to the instantly awarded badges along with a textual note at the bottom of the badges page would be enough.  ADDENDUM As noted below there appears to be a third badge timing, certainly for the 'Tenacious' badge.


How can I make Photoshop not change colors on export?

I have a color #840608 somewhere on my web page and it is coded as #840608 by HTML and it displays as #840608 by all browsers plus it is recognized as #840608 by screen analyzing utilities.  Now in Photoshop I am creating image, and make rectangle there. I am painting this rectangle with #840608 color. It is displayed as #840608 by eyedropper tool.  When I export it as a PNG the color turns to #920203.  How can I make Photoshop keep it's creative potential inside and be just a computer program?


Integral of $\int \frac{dx}{\sqrt{x^2 -9}}$

$$\int \frac{dx}{\sqrt{x^2 -9}}$$  $x = 3 \sec \theta \implies dx = 3 \sec\theta \tan\theta d\theta$  $$\begin{align} \int \frac{dx}{\sqrt{x^2 -9}} & = \frac{1}{3}\int \frac{3 \sec\theta \tan\theta d\theta}{\tan\theta} \\ \\ & = \int  \sec\theta d\theta \\ \\ & = \ln | \sec\theta + \tan\theta| + c\end{align}$$  $x = 3\sec \theta  \implies \sec\theta = \frac {x}{3}$  $\tan\theta = \frac{\sqrt{x^2 - 9}}{x}$  I have have confused x with 3 but I cannot get the proper answer which is  $$\ln | x +  \sqrt{x^2 - 9}| + c$$  I always get $\dfrac{x}{3}$ or $\dfrac{\sqrt{x^2 - 9}}{x}$ or some variation of that, I can't eliminate them to get their answer.


Minecraft Error Java runtime? Problematic Frame: ig75icd64.dll

Completely ignored arguments: [--nativeLauncherVersion, 301] [08:39:10] [Client thread/INFO]: Setting user: WizardIMP [08:39:12] [Client thread/INFO]: LWJGL Version: 2.9.4 [08:39:13] [Client thread/INFO]: Reloading ResourceManager: Default [08:39:13] [Sound Library Loader/INFO]: Starting up SoundSystem... [08:39:14] [Thread-5/INFO]: Initializing LWJGL OpenAL [08:39:14] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org) [08:39:14] [Thread-5/INFO]: OpenAL initialized. [08:39:14] [Sound Library Loader/INFO]: Sound engine started [08:39:15] [Client thread/INFO]: Created: 1024x512 textures-atlas [08:39:19] [Client thread/INFO]: Connecting to node265.minecraft.toomanynodes.com., 41690 [08:39:21] [Client thread/INFO]: [CHAT] Welcome, WizardIMP to PvP-Dimensions Open Beta! [08:39:21] [Client thread/INFO]: [CHAT] [mcMMO] Running version 1.5.05-SNAPSHOT-b136 [08:39:21] [Client thread/INFO]: [CHAT] [mcMMO] www.spigotmc.org/resources/mcmmo.2445/ - mcMMO Website [08:39:21] [Client thread/INFO]: [CHAT] WizardIMP joined the game [08:39:21] [Client thread/INFO]: [CHAT] Welcome, [Donator]WizardIMP! [08:39:21] [Client thread/INFO]: [CHAT] Type /help for a list of commands. [08:39:21] [Client thread/INFO]: [CHAT] Type /list to see who else is online. [08:39:21] [Client thread/INFO]: [CHAT] Players online: 1 - World time: 9:03 AM [08:39:21] [Client thread/INFO]: [CHAT] You have no new mail. # # A fatal error has been detected by the Java Runtime Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffc1e3db7c, pid=8484, tid=6112 # # JRE version: Java(TM) SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops) # Problematic frame: # C  [ig75icd64.dll+0x55db7c] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # C:\Users\Anirudh\AppData\Roaming\.minecraft\hs_err_pid8484.log # # If you would like to submit a bug report, please visit: #   http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release


Punctuation inside or outside quotations

I was taught that punctuation goes inside quotes. For example, this would be wrong:  Mama opts to give Maggie the quilts because “Maggie knows how to quilt".  But someone was reading my essay and told me I'm wrong. Please clarify. I'm confused :(


I was wondering if there is any way to stop the magnetic field, without having the insulator turned into magnet. Let me present this as a simple case, there is a magnet to the left and a piece of iron to the right, is there anything that I can put in between to stop the magnet from attracting the iron piece, provided that the insulator won't turn into a magnet as well?  I am open to all possibilities, any materials, electric fields or anything that can stop the magnet field without harming the magnet or the iron piece are welcome.


Is my NN underfitting? If yes how should I improve it?

Very similar to the situation in this problem:  but I don't have enough reputation to comment so I'm asking here again. The NN I implemented has 9 inputs, 15 hidden units in 1 layer and 1 sigmoid output. The dataset I was using is about (1) if the annual income of ~50K people $\geq$ or $<$ a certain amount and (2) their education, gender, ethnics, etc (total raw features < 20). I tried altering the regularization coefficient, no. of iterations, adding 1 more hidden layer (a lot slower smh) and even tried swapping the training and test sets but the 0-1 accuracy always topped at around 83%. Is the networks underfitting my data? What else can I do to improve my NN? Straightforward logistic regression gives around 81% accuracy, so I bet NN is the way to tackle this prediction problem. Btw, yes, I'm learning this topic from Prof. Andrew Ng as many others did.


Writing HTML-String to new window from Javascript in JSP

How can I write a HTML-conform String to a new window using a JSP with inner Javascript?   Our Situation:  - Theres a .jsp-File used by a Tomcat-Server  - The .jsp contains a <script language="Javascript>-Tag - this script needs to write a complete, HTML-5-valid-String to a new Window using window.open and 'window'.document.write(htmlString)    Our .jsp-File (schematic):      <%@ include file = "..." %>      <...some page imports...>      <...some scripts...>                     (e.g. <script type = "text/javascript" src="...."> </script>)      <%       String strMethod = "foo_Method_Bar";      String strOutput = "";      strOutput = someJavaBean-Call_that_brings_valid_html5_string_with_script-Nodes;      %>     ...      <script language="Javascript">      var strHTML = "<%=strOutput%>";      var win = window.open('','','width=...,height=...');      win.document.write(strHTML);      top.close();      win.focus();      </script>   Our Problem (schematic):  - .jsp-File gets called.  - .jsp-File calls a JavaBean and sets a global String-Variable to the HTML-String (including  <script>-Tags, DocType-Declarations, etc.)  - .jsp-File replaces all occurrences of the Variable with the obtained String  - javascript (<script>-Tag in the .jsp-File) gets Executed  - <script>-Tag of Javascript is already closed, before 'window'.document.write(strHTML) gets executed, because theres a </script>-Tag in the Javascript e.g.      <script language="Javascript">     var strHTML = "<!DOCTYPE html> <html> ... <script> ... </script> ... </html>;     var win = window.open(...);     win.document.write(strHTML);     </script>   - I've searched for quite some time now and I don't have a clue how to solve this issue.  - Writing the HTML-Sourcecode into the Server-File-System and accessing it later on or something like that would be really, really dirty.  - Part of the Problem is that we (of course) have to use this type of javascript-call in the .jsp-File for historical reasons...;-)  - Is there maybe a way to assign the strHTML-Variable in the .jsp-File by Reference only (e.g. without replacing the <%=strOutput%>-Variable)?    Additional Info:  The HTML-String-Generation is used at various places of our programs, multiple times, so i hoped not to have to escape any special CharacterSequences for this particular Call to work.    Appreciate all your help and ideas on this...;-)  Solved: See also  on this issue.


How to capture "$?" before tee smashes it?

I've got a test script that repeatedly builds a library under different configurations. It also tee's the output for postmortem failures:  $MAKE" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" if [ "$?" -ne "0" ]; then     echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" fi   The script is not working as intended because the test is capturing tee's return code, and not make's return code.  I looked at the man pages for tee(1), but I don't see an option to have it restore a return code.  How can I capture the return code from make before tee smashes it?


Lost partition after ubuntu install attempt

I have 500gb HDD with two partitions C and D with the same size (232gb)  I have Windows 10 installed on C  I wanted to install Ubuntu on D  During the installation process I changed the D partition filesytem from ntfs to ext4.  Right after the changing process ended I stopped the installation.  When I boot my pc with windows the D partition does not occur.  When I run Ubuntu from usb the partition mounts empty.  Are my files on D lost?  Is there a way to recover them?


Can you have the same Pokemon with different names

I was thinking about a character in the TV show during one episode of sun and moon Ash meets a trainer who just loves Pikachu and I wanted to make a deck baced on her so I understand you can only have 4 with the same name but what if they had a different name like "Pikachu libre" or "detective Pikachu" or ex and gx


What paper pauper cards on not legal in MTGO

I am trying to collect most cards relevant to pauper. Because MTGO pauper is more popular than paper pauper, and because it is so easily available electronically, it is easy to find data and analysis on the most frequently used cards in pauper. I did this.  The problem is that there are some cards (most notably Hymn to Tourach and High Tide) not available on MTGO but are essential paper pauper commons. Other popular pauper cards include Goblin Grenade, Desert, Pyrotechnics, and Sinkhole. So they are easy to miss when starting a paper pauper collection, though I suppose you'd eventually come across them in pauper tournaments.  The question:  Is there a list maintained of cards printed at common for paper, but not MTGO? If so, please provide link. If there is no such list but it turns out to be very few cards, then the answer should contain the list of cards.


Projection mapping closed in compact space

Consider a topological space $(X, \mathcal{T})$. Suppose $X$ is compact and $(Y, \mathcal{T}_Y)$ is Hausdorff. Let $\Phi: X \times Y \rightarrow Y$ be the projection map. We show that $\Phi$ is a closed mapping. Suppose $A \subset X \times Y$ is closed. Consider an arbitrary $y \notin \Phi(A)$ i.e $(x,y) \notin {A}$  for all $x \in X$. It follows that $X \times {y} \subset (X \times Y) - A$. As $X$ is compact, by the Tube Lemma there exists an open set $V$ of $y$ such that $X \times V \subset (X \times Y) - A$. This implies that $V \subset Y- \Phi(A)$. Since $Y- \Phi(A)$ is open, $\Phi(A)$ is closed.  Is this correct? Is the Hausdorfness of Y relevant?


Suppose that the vector [1, 1] is an eigenvector of a matrix A corresponding to the eigenvalue 3 and that [2, 1] is an eigenvector of A corresponding to the eigenvalue -2. Compute $A^2$ [4, 3].   Can someone please guide me on where to start?  Thank you


Short story where aliens observe new colonists and find out they are male/female

A rather old short story... maybe the 70's or 80's... possibly the 90's but I doubt it... that has two aliens sitting on a hill, watching some new aliens arrive (humans). They watch the aliens struggle for a while and cannot figure them out as their behavior seems very strange, and can't decide whether or not to help them. Eventually one of the aliens has an idea: he figures out that the new aliens reproduce sexually (male/female), that is why they have such bizarre behavior, and so he decides they should help them.


The sounds in Minecraft will not work in any version of MC I have tried. Playing with mods, the mods' sounds will work but not the vanilla sounds. I have tried multiple things including:   Restarting my computer Reinstalling Minecraft Using the F3 key method Looking at the sound files on my PC Making sure MC isn't blocked by an antivirus


Shouldn't it be "he was the most famous fighter to have ever lived"?

I came across a line in a movie:     You told me your dad was some fighter. You didn't say he was the most famous fighter to ever live.   This is a line spoken by a girl to a guy, and the guy's father is dead. Shouldn't it be:     You didn't say he was the most famous fighter to have ever lived.   Or     You didn't say he was the most famous fighter who ever lived.   What about     You didn't say he was the most famous fighter who has ever lived.


I have a function that sits in one of my React components that's starting to get a bit long. I've decided to keep it in a separate file to keep my component a bit tidier. The issue is that the component has to refer to this in order to get functions and states that are mapped to the props through Redux. Here's how I call it in my component:  import {myFunction} from './functions/myFunction';  handleMyFunction(event) {     myFunction(event).bind(this) }  componentDidMount() {     this.handleMyFunction() }   Here is the function itself in './functions/myFunction':  export const captureSnapshot = (event) => {     console.log(this.props.someState) }   I would have thought that bind this would make all the props available in the imported function but instead I get:     Cannot read property 'props' of undefined   when I try to run the function. How can I pass "this" to the function properly?


Volume generated by revolving the region in the first quadrant bounded by the parabolas $y^2=x$, $y^2=8x$, $x^2=y$, $x^2=8y$ about the $x$-axis.

I came across this question from Schaum's Outlines of Advanced Calculus:     Show that the volume generated by revolving the region in the first quadrant bounded by the parabolas $y^2=x$, $y^2=8x$, $x^2=y$, $x^2=8y$ about the $x$-axis is $\dfrac{279\pi}{2}$.   My solution was to divide the region into three parts:    $$\pi\int_{1}^{2}(x^2)^2 - (\sqrt{x})^2\;dx = 4.7\pi$$  $$\pi\int_{4}^{8}(\sqrt{8x})^2 - (\sqrt{x})^2\;dx = 42\pi$$  $$\pi\int_{2}^{4} (x^2)^2 - \left(\frac{1}{8}x^2 \right)^2\;dx = 44.9\pi.$$  Hence the total volume will be  $$\pi(4.7 + 42 + 44.9) = 91.6\pi$$  which is wrong.  Can someone point out my mistake?


Is it grammatically correct to use the word "do" twice in a row? Examples: We do do what you are talking about. instead of... We do what you are talking about.  or  Our process does do what you are talking about. instead of... Our process does what you are talking about.  Is the meaning any different?


This Java file-finder code using java.nio.* package is throwing null pointer exception?

package filefinderusingglobpattern;  import java.io.IOException; import java.nio.file.FileSystems; import java.nio.file.FileVisitResult; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.PathMatcher; import java.nio.file.Paths; import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; import java.util.Scanner;  public class FileFinderUsingGlobPattern {      public static class Finder extends SimpleFileVisitor<Path> {          private FileVisitResult CONTINUE;         private final PathMatcher matcher;         private int numMatches = 0;          Finder(String pattern) {             matcher = FileSystems.getDefault().getPathMatcher("glob:" + pattern);         }          // Compares the glob pattern against         // the file or directory name.         void find(Path file) {             Path name = file.getFileName();             if (name != null && matcher.matches(name)) {                 numMatches++;                 System.out.println(file);             }         }          // Prints the total number of matches to standard out.         void done() {             System.out.println("Matched: " + numMatches);         }          // Invoke the pattern matching method on each file.         @Override         public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {             find(file);             return CONTINUE;         }          // Invoke the pattern matching method on each directory.         @Override         public FileVisitResult preVisitDirectory(Path dir,                 BasicFileAttributes attrs) {             find(dir);             return CONTINUE;         }          @Override         public FileVisitResult visitFileFailed(Path file, IOException exc) {             System.err.println(exc);             return CONTINUE;         }     }      static void usage() {         System.err.println("java Find <path> -name \"<glob_pattern>\"");         System.exit(-1);     }      public static void main(String[] args) throws IOException {         /*         if (args.length < 3 || !args[1].equals("-name")) {             usage();         }          Path startingDir = Paths.get(args[0]);         String pattern = args[2];          Finder finder = new Finder(pattern);         Files.walkFileTree(startingDir, finder);         finder.done();          */          Scanner sc = new Scanner(System.in);         //System.out.println("C:\\Users\\Ashish Jain\\Desktop\\Test_smsbroadcaster");          System.out.println("Enter the <path> where you want to look for the files: ");         String inputPath = sc.nextLine();          Path startingDir = Paths.get(inputPath);          if (Files.notExists(startingDir)) {             System.out.println(startingDir + " does not exist.");             return;         } else {             System.out.println(startingDir + " exists (validation successful).");         }          System.out.println("Enter the glob pattern for the files you want to search: ");         String pattern = sc.nextLine();         Finder finder = new Finder(pattern);         Files.walkFileTree(startingDir, finder);         finder.done();     }  }   This piece of Java file-finder code from Oracle is throwing null pointer exception in main method, don't know why, please help. It is throwing exception at line 104 "Files.walkFileTree(startingDir, finder);"  Exception in thread "main" java.lang.NullPointerException at java.util.Objects.requireNonNull(Objects.java:203) at java.nio.file.Files.walkFileTree(Files.java:2699) at java.nio.file.Files.walkFileTree(Files.java:2742) at filefinderusingglobpattern.FileFinderUsingGlobPattern.main(FileFinderUsingGlobPattern.java:104)   Check this out:  Unfortunately, this code is erroneous.


Can a Russian apply for European visa twice if he didn't go to the countries he applied to in the first?

My girlfriend applied for a 1 year Italian visa because they had already given it to her before for some weeks so now they would give her the whole year.  What ended up happening is that life got in the way and we ended up not going to Italy, but going to several other European countries (specially Portugal, where I'm from).  She is very worried that she will have difficulties applying for European Visa again.  Should she be? What's the worst case scenario and how can it be remedied?


How important is a character's sexuality when it come to audience appeal

I ask because I came across this comment about putting gay characters in games:  The necessity of exposing the larger playerbase to the homosexual tendencies of two of its cast mates is never really expounded upon by ScreenRant. That’s not to mention that only a tiny percentage of people even identify as on the LGBTQ spectrum, even according to Gallup, which puts the national average at 4.5%. So why exactly would Blizzard force the majority of their straight players to have to engage with the homosexual tendencies of two of its non-straight characters? ()  And here:  So what better way to get back at the core gamers who dropped one-liners and zingers that have become memes of legend, than to strip away from gamers the last remaining normal character in Overwatch? Most people figured Soldier 76 would be safe. He’s a patriotic military man, a hard-fighting soldier with undying loyalty, and a code of honor. He’s the perfect representation for what the majority of gamers like to see out of a hero. And besides, you need at least one normal sized, healthy, properly muscled straight, white male with all of his limbs intact to cater to the majority of your playerbase. Right? … RIGHT?! The average male gamer typically gravitates toward a game where there’s a character who looks like he can kick butt and take names, and Soldier 76 was that guy.  ....  The last bastion for masculinity in a game that’s constantly bleeding testosterone faster than the Overwatch League bleeds viewership, ()  It's obvious that this guy thought that 76 was straight before this. So his outrage that his face character was revealed to be gay when there was no evidence to say otherwise beforehand is pretty sad. Beyond this there is a point he makes that is interesting. Is a characters sexuality really that important? Yes most gamers are straight, but does that automatically mean that every game character needs to be straight? Or is this an appeal to the majority fallacy?


Took hard drive out of older 386 machine and installed it in newer with AMD FX4300. System will not let me uggrade to latest install due to 386 limitation . How do I fix that and write out the 386 limit?


$\lim\limits_{i \to \infty}a_i=a$ prove $\lim\limits_{N\to \infty} \sum\limits_{i=1}^N \frac{a_i}{N}=a$

So The question is like in the title I tried some algebra of limits, but Frankly speaking I really have no clue where to start especially, because if $a\neq 0 $ then $\sum\limits_{i=1}^{\infty} {a_i} = a$ diverges. So just a hint where to start, what to look at would be great.


What's wrong with my question on Stack Overflow?

I cannot understand what's wrong with my last question. Is there some thing I said?  Why are people downvoting? Is it not a interesting question, or is it not appropriate for this kind of questions here?  Question:   I just need to know feedback from people who have used this kind of reporting tools.


Is it possible to enter Bulgaria with a valid single entry Schengen visa? I plan to travel from Kenya to Bulgaria then to Greece. I know it is not possible to go to Greece then Bulgaria because the visa will be invalid but would like to know if I can travel to Bulgaria then Greece on the single entry Schengen visa.


A conductor shaped like a square, what's the force between the two long wire segments?

In a conductor shaped like a rectangle, a current I=0.3A flows. The lenght is l=4.5m and the width is b=9cm.  a) Determine the absolute value of the force between the two long wire segments.  b) Determine the direction of the force.  I am only used to problems such as "calculate the force between two infinite long wires" and am a bit lost on how to set up the integrals when it is shaped like a square. I know that I am supposed to use $$F= \int (I\vec{d}l \times \vec{B}) dS$$  Since $b\ll l$, can you neglect the force from the short sides of the rectangle?  Otherwise, how do you set up the integral?


How to check if a value already exists to avoid duplicates?

I've got a table of URLs and I don't want any duplicate URLs. How do I check to see if a given URL is already in the table using PHP/MySQL?


I am trying to reduce the contrast of my monitor by using xcalib. This is the output of my xrandr.  Screen 0: minimum 8 x 8, current 3840 x 1200, maximum 32767 x 32767 DVI-D-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm    1920x1080     60.00*+    1680x1050     59.95      1600x900      60.00      1440x900      59.89      1280x1024     75.02    60.02      1280x720      60.00      1024x768      75.03    60.00      800x600       75.00    60.32      640x480       75.00    59.94   HDMI-0 connected 1920x1200+1920+0 (normal left inverted right x axis y axis) 518mm x 324mm    1920x1200     59.95*+    1920x1080     60.00      1680x1050     59.95      1600x1200     60.00      1280x1024     60.02      1280x960      60.00      1024x768      60.00      800x600       60.32      640x480       59.94   DP-0 disconnected (normal left inverted right x axis y axis) DP-1 disconnected (normal left inverted right x axis y axis) DP-2 disconnected (normal left inverted right x axis y axis) DP-3 disconnected (normal left inverted right x axis y axis) DP-4 disconnected (normal left inverted right x axis y axis) DP-5 disconnected (normal left inverted right x axis y axis)   I could till now proportionally change the contrast of both the monitors by using this command -   xcalib -co 80 -a #reduces contrast by 80 percent.   How do I specify the monitor name?  xcalib -co -80 -d DVI-D-0   throws an error - Can't open display


Exercise 5.5.F. on Ravi Vakil's Notes related to associated points

Let $A$ be a Noetherian ring and $M$ a finitely generated $A$ module. In Ravi Vakil's notes he first states that the associated points of $M$ satisfy the following:  (A) The associated points of $M$ are precisely the generic points of irreducible components of the support of some element of $M$ on Spec $A$.   I am working on the following exercise: Assuming (A) show that the associated points of $S^{-1}M$, where $S$ is a multiplicative subset of $A$, are precisely those associated points of $M$ that do not meet $S$.  I was able to show that: given $m/s \in S^{-1}M$ there is a bijective correspondence as sets between Supp $m/s$ and the the points on Supp $m$ that do not meet $S$. From here I think I can use (A) somehow to complete the exercise, but  I am having difficulties with it. I would appreciate any assistance! Thank you very much!  PS I asked this question also  working on this exercise. It might be helpful here, but I couldn't quite complete the exercise...


Why Negative refractive index is negative

$n=\sqrt{\epsilon \mu }$  Negative refractive index happens when permittivity ($\epsilon $) and permeability ($\mu  $)of a material is negative. My question is, if permittivity and permeabilitity of a material is negative then the end product, according to the above equation, should be positive. If two negative numbers multiplied  should give a positive number. Then why in here two negative numbers ($\epsilon $ and $\mu  $) gives a negative refractive index?


Show that the series of $f(n)/n^2$, were $f$ is an injective function, diverges.

Consider an injective function $f: \Bbb N \rightarrow  \Bbb N$  Show that the series given by:  $$\sum_{n=1}^{\infty } \frac{f(n)}{n^2}$$  diverges.   I'm really not sure how to use the injectivity hypothesis, so any suggestion or any answer would be well received.


Is "flu" the only disease usually accompanied with "the"? From what I understand, you don't usually use "the" with diseases / illnesses / disorders ("have Alzheimer's / diarrhea / claustrophobia / dyslexia, etc." not "have the..."), but it's perfectly normal to say "have the flu". Is the flu the only exception?   Edit (this is only a side part, and can be glossed over if you will, so it's not a duplicate imo): What's so significant about the flu that other conditions don't have, so that it's entitled to "the"?


Python 2.7: GoTo "Next" if some condition is met

I would like to know if there is an elegant way to create a GoTo LABEL structure with Python such as it is possible on Visual Basic. I have read that it kind of depends on case to case, but let's assume that I have a loop like the following (executable):   for i in range(0,10):     print "LOOP", i, "- DO SOMETHING ALL TIMES"     print "LOOP", i, "- DO SOMETHING SOME TIMES"     print "LOOP", i, "- DO SOMETHING ELSE ALL TIMES"     print ""   What I would like to know is if it's possible to skip the middle instruction, namely print "LOOP", i, "- DO SOMETHING SOME TIMES", with a construction like the following that (badly simulating the Visual Basic syntaxis) should allow the script to skip the instruction "do something some times" if i is equal to  3:  for i in range(0,10):     print "LOOP", i, "- DO SOMETHING ALL TIMES"     if i == 3: (GoTo SECONDPART)     print "LOOP", i, "-DO SOMETHING SOME TIMES"     SECONDPART:     print "LOOP", i, "-DO SOMETHING ALL TIMES"   I know that I could write if i != 3: and indent the instruction "do something some times", but I'd really like to know if possible to have (or himitate) the GoTo structure of other languages. Thanks a lot, I hope it's clear (if not don't hesitate to ask!)


In Ubuntu 14.04, my Kyocera P2040dn printer prints only from the user that installed the driver. How to make it print under other users?


One of my Minecraft worlds suddenly disappeared and I tried copying the whole file and going to my saves in Finder to replace it to see if it worked, it would always just be gone when I opened Minecraft again. the file was still in the saves, but I can't see it when I open mMinecraft. I tried using an older version of Minecraft to see if that worked, but it didn't. I tried to put in the items into a new world in my saves folder one by one to check what was making the world disappear when opened, but that didn't work at all. I don't know what to do, me and my friend worked super hard on that map, we had a ton of stuff in it , I'd just really hate it if the world was just gone. Can anyone help?


How does a pinhole aperture convert incoherent monochromatic light into coherent light?

Textbook suggests that before conducting a double slit experiment, incoherent light is first passed through a single slit to make a coherent point source of light; the point source can be explained by Huygen's Principle. However, how would incoherent light before the slit become coherent if the point sources are created unperiodically (at uneven intervals)? Diagrams seen on text books seem to assume a conherent light source before the slit, so the conversion to coherent light is not explained. Thanks in advance.


How to run tkinker while I have a different loop running

So in my program I'm using tkinter to handle my key presses  However my program runs in a tick loop and I've found out that my programs tick loop and tkinters main loop are clashing with eatch other. Is there a way to fix this? Dose tkinter have a function that dose a single loop that I could call on eatch of my ticks? If not then what would you recommend replacing tkinter with to handle key pressing?


Can't update iPhone to a specific version : "iphone could not be restored device isn't eligible for the requested build"

Have iPhone 4 with iOS 5.1.1 Trying to update to 6.1.2 (not the latest) via downloaded IPSW but unfortunately getting error:     iphone could not be restored device isn't eligible for the requested   build   After searching for fix all over the internet found some suggestion like putting # in hosts file in line gs.apple.com but not helped.  Have you any idea why I'm getting this error and can't restore iphone?


How i can delete Evolution email completely?

Reason is i have configured my official account in Evolution last day and and it stuckedup, then i tried to reconfigure its not working even the removed account is showing SEND& RECV  Pls help ma friends


Why do things move from Higher potential level to lower potential

Why do things(it may include positive charges or just water kept at height etc) move from Higher potential level to lower potential level Is that a law or there is some special reason behind it...or probably it is just  the behaviour of nature


I torrented a bunch of movies last week, but there was one within the group that didn't have a name. I did not think much of it as it was downloading, since I was torrenting a few obscure titles. When I went to open it earlier this afternoon, it would not play on any program on my laptop. It was saved as an MPEG file, so I downloaded a codec from the Microsoft store to play it, and still, no dice. I googled the title it provided - movie 65923 - to try and see what movie it even was, and it said that it was probably malware and I should get rid of it. However, when I go to delete it, a message comes up saying another program has opened the file, so I should close that program and try again. I closed every program on my laptop and still, no success. I even did the Windows key + R + %temp% trick, deleted everything there, and nothing changed. What can I do? I appreciate your help :)


Abstract Class Constructor: Possible to Inherit?

I have tried the following:  public class OuterClass {     abstract class abstract AbstractInnerClass     {         final Object member;         public Abstract InnerClass(Object member) { this.member = member; }     }     public class InnerClass extends AbstractInnerClass { } }   However, this gives me a compile fail:     Parent class has no 0-argument constructor for implicit construction   However I can change InnerClass to:  public InnerClass extends AbstractInnerClass {     public InnerClass(Object member) { super(member); } }   Another change I can make indicates at least some constructors inherit:  public class AbstractInnerClass {     Object member;     public AbstractInnerClass() { }     public AbstractInnerClass(Object member) { this.member = member; } }   Thing is, I do not care about the 0-argument constructor and don't foresee ever having any use for it. I tried to make an abstract constructor:  public class AbstractInnerClass {     Object member;     public abstract AbstractInnerClass(Object member) { this.member = member; } }   Unfortunately the above also results in a compile fail:     Constructors cannot be abstract   Is there no way to inherit constructors?


Under mac and Windows, the updates can be done automatically. For certain people, this is great. In Linux Mint 17, I can't find an option to enable the updates automatically.   I know there is a trick, based on Ubuntu, with command line to enable the autoupdates, but the security levels of Mint in updates manager are not respected (i.e.: unattended-upgrades).   Please, could you tell us how to, or which way can, enable the updates automatically with respect of the security levels of the updates manager (levels 1,2,3,4,5)?


In July 2015, I have been granted Multiple entry Schengen Visa valid for 5 years, with duration of stay : 90 days. My job requires me to frequently travel In and Out of Schengen countries, and have almost consumed 40 days by now, and I am afraid I will soon exhaust these 90 days stay limit.  Question 1: If by chance I exceed 90 days before the expiry in year 2020, what will happen ?  Question 2: Is there any way I can apply to Consulate who issued me this Visa and extend my limit of stay in Schengen, or do I need to apply for another type of Visa for my frequent travel to Schengen?


How to fix array returning null in one method when values where set in previous method?

I'm trying to use a single array across multiple methods; when I try to print the values of the array after I have defined them in another method I get the error Exception in thread "main" java.lang.NullPointerException     at shop.main(shop.java:130)  public static int[] discount; public static double[] price; public static String[] name;  public static void setup(Scanner input, String[] name, double[] price, int[] discount) {     System.out.print("Please enter the number of items to setup shop: ");     do {         CheeseNum = input.nextInt();         if (CheeseNum < 0) {             System.out.print("Invalid Input. Enter a value > 0: ");         }     } while (CheeseNum < 0);     System.out.printf("\n");      discount = new int[CheeseNum];     price = new double[CheeseNum];     name = new String[CheeseNum];      for (int i = 0; i < CheeseNum; i++){         System.out.print("Enter the name of the " + numSuffix(i + 1) + " product: ");         name[i] = input.next();         System.out.printf("Enter the per package price of " + name[i] + ": ");         price[i] = input.nextDouble();         System.out.printf("Enter the number of packages ('x') to qualify for Special Discount (buy 'x' get 1 free) for " + name[i] + ", or 0 if no Special Discount offered:");         discount[i] = input.nextInt();     } }  public static void buy(Scanner input, String[] name, int[] purchased) {     purchased = new int[CheeseNum];     for (int i = 0; i < CheeseNum; i++){         System.out.printf("\nEnter the number of " + name[i] + " packages to buy: ");         purchased[i] = input.nextInt();         shopBuyIns = shopBuyIns + purchased[i];     } }   So whats happening is the user inputs the values for the array in setup, and when I try to use those values in buy it tells me the arrays are null.


It's very common to use L_{1} as norm symbol. But it doesn't look like as nice as "ℓ 1". I'm wondering how can I get "ℓ1" using Latex.


Is there experimental evidence that massless particles such as photons attract massive objects?

For instance evidence that a highly energetic laser beam attracts objects nearby?  In the framework of Einstein's general relativity all energy curves spacetime and hence exerts an attraction, but my question is whether it is an experimentally verified fact that energy that doesn't come from mass (such as photons) indeed attracts massive objects?


How do i show that the below sequence is convergent ? $$\gamma_n=1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\frac{1}{5}+...+\frac{1}{n}-\log n$$ I was solving some rearrngement problems where the premise was the above mentioned . Can't apply $\epsilon $ $\delta$ , can't apply squeeze also .Any leads are appreciated!!


In my book I found a few of weird symbols:        They are used as mark of ellipse, parabola and hyperbola, respectively (E-like, P-like and H-like letters in these images). How to get them in LaTeX (and by the way, what's their name)?


Product of bounded and convergent to $0$ sequence is a convergent to $0$ sequence

Let $a_n$ be a null sequence and let $b_n$ be a bounded sequence. Prove that $a_n \cdot b_n$ is a null sequence.  I tried using the product rule of sequences but cannot because $b_n$ is not necessarily convergent and may not have a limit. How do I go about answering this?


eyes blinking error Bone Heat Weighting: failed to find solution for one or more bones

I have a 3d face and i need to animate it like blinking eyes, and i do not know how to do it using bones. I tried to set weights to the mesh and an error appears. .


I have a folder with lots of images,I want to move all images which  filename contains "cover" and size is bigger than 100K to /root/img. Below command can move all the files that filename contains "cover" but without size condition.My questions is how to combine with condition that image's size is bigger than 100K.thank you!  find . -name '*cover*' -exec mv '{}' /root/img  \;


I have multiple harddisks which get connected to my server and I'm not sure which one is what in the view of sdXY . If I can see the serial numbers of my harddisks from terminal, I can easily identify them.  Is there any way I can see them from terminal?


Why don't wizards and witches just apparate everywhere?

Why walk to class when you can simply apparate?  Why run from a pursuant instead of just apparate somewhere else?


Update a field without changing the node

I need to change a field in a node without altering the 'changed' timestamp. I know this was possible in Drupal 7 using field_attach_update(), but that has been removed since then.  I could use an update query and change the field directly in the database, but I was wondering if there is a better way (or a replacement for field_attach_update()).


Install RealtekRTL8723DE On Ubuntu 16.04LTSon an HP 15-BW005LA

The output to uname -rs is:  Linux 4.16.0-999-lowlatency   The output to iwconfig is:  enp2s0    no wireless extensions. lo        no wireless extensions.   The output to sudo modprobe 8723de is:  [sudo] password for chinodroid:  modprobe: FATAL: Module 8723de not found in directory /lib/modules/4.16.0-999-lowlatency


Is there a concise term for a vector field where each component is a function of its own variable?

Some simple vector fields have components that are just a function of their own variable. for example, $$F(x,y,z)=\begin{bmatrix}x^2+1\\\sin y\\3\end{bmatrix}$$ as opposed to: $$F(x,y)=\begin{bmatrix}5x+y^2\\4\sin x\end{bmatrix}$$ They feel somewhat special, and they are easier to work with in general. Is there a formal name for these? How would I refer to such a vector field concisely?


How to restrict access to private files to members of an organic group?

I have an organic group with a file field that stores its files in a private directory (sites/default/files/private/). These files are visible only to members of that group. But, as is commonly known, if someone guesses the Drupal path even if he is not a member of that group or not even logged in, he can access that file by using the correct file link directly.   How can I restrict file access to group members?


What actually happen here when you have your local variable called outside the global variable in python?

Here in this code, the fourth line(print(i)) is a little bit confusing. When I print it, I am getting the value of 10. Can someone explain what actually happened? def ranges2():     for i in [1, 3, 5, 7, 9, 10]:         print(i, ":", i ** 3)     print(i)  ranges2()  #result is 10................ why?🤔 ranges2()


Magsafe to USB-C converter for charging Macbook Pro 2016

I have a few standard MagSafe 2 chargers left and want to use it with my new MacBook 12.  Are there any adapters I can use to convert these Magsafe chargers into USB-C chargers that work with the MacBook 12" or 2016 Macbook Pro?


What rule forbids "To boldly go where no man has gone before"?

I heard in an old British TV program (it was a funny sitcom, not an English teaching program) that it should be "To go boldly", due to some grammar rule about infinitives     Is it incorrect to say "To boldly go where no man has gone before"? What is the grammatical rule behind it if it is incorrect?


How to identify faces associated with a material?

I'm just wondering how one would go about viewing faces assigned to a particular material? In 3DS Max you can just, from my experience, do it pretty easily. It'll just highlight the faces associated with that material ID. So is there a way to, in the outliner, select the material and then have those faces highlight in the 3D view? I'm asking because I'm making custom LOD's for modular pieces and, as you can imagine, a lot of faces get deleted in the process and I accidentally delete the only face left using a material that the main model is using. LOD's need to have the same materials and same number of materials applied to them. So I'm trying to work this out, for future reference, so I can identify which material has no geometry associated to it and then fix that. Thanks!


Change computer name after installing Ubuntu 14.04

I wanted to change my computer name after I installed Ubuntu 14.04 LTS. How can I do this? Your help and information will be greatly appreciated.


How do I install an Asus USB-N53 WiFi adapter?

I bought an ASUS USB-N53 wireless-N Dual-band USB wifi adapter. It does not install on my Ubuntu 11.10 system automatically. I cannot figure out a way to get it installed.  Any advice?


What does Webdriver driver concept means in Selenium?

I understand that webdriver is an interface of which driver is a reference variable. But in Java the reference variable holds a reference to the object. It does not hold the memory address of the object but a reference. Now webdriver is an interface and it's reference variable is driver which will refer the object of Chrome driver. So if it is only going to point to the chromedriver object, then a chromedriver object reference variable can do that. It's not like it will hold the properties of webdriver interface, chrome driver class is already doing that. Can someone explain this concept to me and please don't post interface or top casting links? I am aware that this is top casting i am just trying to understand the purpose of this line here.


keeping a function always running in django

I am working on a django project where I'm suppose to check a date with today's date and if it's difference is of 1 month then there should happen something. Is there any method or any thing that can help me pls do help me.


When to write two-lettered words with capital?

Let's say I have a few titles here:     Fire in Our Hands   Who am I   Land of Dreams      Do I write the italic words with capitals like the other words,  or is it properly written the way it is?


I have two tables: CITY (~50000 rows) and COUNTRY (~220 rows). THere is a task, to provide which city is in which country via VIEW? And if you are able to use materialized view, is it better?  I wrote current query:  CREATE VIEW cc as SELECT ct.NAME AS "country", c.NAME AS "cty" FROM CITY c JOIN COUNTRY ct ON cnt.CODE=c.COUNTRY;   It gives me the information I need, but I didn't realize any difference bitween normal view and materialized one. Which is relevant?


First of all, I'm actually making a fictional race track mod for a racing simulator, and I already finished the main terrain modelisation and now I'm having some other issues.  One of them is: How to make a separate object respect (snap to) the elevation of the terrain?    Like the screen shot above, I started to make circuit fences using the array modifier, but the pieces of the fence don't automatically match the terrain. Some constrains may help, but they seem to only be useful in specific situations with simple objects. Is there a easier solution to make the objects match the terrain elevations?


How to find all possible combinations from a list with only two elements and no duplicates with Python?

I have the following:  list = ["player1", "player2", "player3"]   I want to find all possible combinations of two elements of that list, but with no duplicates. I have tried to work with the itertools.combinations() but without the desired result.  I'm looking for a result like this:  player1, player2 player1, player3 player2, player3   Can someone help me in the right direction?  Thanks in advance


convert time to local time given city/state/country

I'd like to write a function that can convert a time in EST (USEast Standard Time) to a time in another local timezone.  The inputs will be "time in EST" in the form 'Y-m-d H:i:s' (i.e. 2011-08-23 05:05:35), "City" "State", and "Country"  The function should return the local time (i.e. if the city, state, country is San Francisco, California, USA, and time in EST is 2011-08-23 05:05:35, function should return 2011-08-23 02:05:35)  I tried to figure it out from php.net but it seems like I need a continent to specify a timezone...and I didn't know how to convert a country to a continent.  Thanks


How to find a D&D group when you are around 12

I am around 12 and I want to play D&D but I have no group. I can't find anyone in school and i need other ways. So if you can help I would appreciate it.


What is less bad for SEO: to have a  with no heading, or to hide the heading with CSS?

I have my document outlined in several <section>s, but according to the spec      The theme of each section should be identified, typically by including a heading (h1–h6 element) as a child of the section element.   What if I don't need a heading in a specific section? What would be a good advice, not to have a heading at all or to hide it with CSS?


I'm trying to execute a script from a different server using ssh   Here's the command I'm using from server 1 to launch a query on server 2:  ssh -t user@xxx.xxx.xxx.xx "cd /var/www/vhosts/xxxxx/subdomains/preprod/; sudo ./replace.sh";   but the problem is that when I do sudo the $home = /root while the script is under: /var/www/vhosts/xxxxx/subdomains/preprod/  How can i tell sudo to preserve the environment?  I tried sudo -P - , sudo -H, without any luck.


I have encountered an statement several times while proving determinant of a block matrix.      $$\det\pmatrix{A&0\\0&D}\; = \det(A)\det(D)$$   where $A$ is $k\times k$ and $D$ is $n\times n$ matrix. How to prove this?  Thanks in advance.


There are some guys who seem to be flooding or spamming me. Is there a way to ignore or block a user, like what can be done in Facebook, for example?


Which is right about a text on life 2000 years ago:"The house must have had a cosy roof of turf." or "It would have a cosy ..." or "It had a cosy..."

I have seen this sentence in an article on bbc, which is about how people lived thousands of years ago. "When this Neolithic home was built, it would have had a cosy roof of turf.." When I read it, I got confused. Because the fact seems as a simple past situation or guessing/assumption about something in the past. I have been making a lot of research on whether or not this structure "would+have+past participle" could be used instead of the simple past or "must+have+past participle", but I could not find any satisfying explanation. Almost all grammer contents cover this structure is used when we imagine the opposite of what actually happened in the past eg. "referring to a missed opportunity" (eg. "if you had come to the party, you would have seen Tom."), But, in the case of this sentence, "type 3 conditional" is irrelevant. It simply gives information about what roof this house had in the past or what the roof was probably like when it was built long ago. Just like it would be If and old lady would want to tell about "how she was like when she was a child years ago. she would simply say **"when I was a child, I had long curly hair.****. So "when I was a child, I would have had long curly hair." would be wrong. So, my question is: 1-Does this structure "would+have+past participle" completely replace "must+have+past participle" or "might+have+past participle" 2- If this structure was simply used because the author was not %100 sure about the fact as it was a long long time ago -so he wanted to make a guess or assumption, why did he not simply use "must+have+past participle" or "it was likely that blah blah" which must be used for guessing or assumptions about past happenings. Would it not have made more sense if it was like: "When this Neolithic home was built, it must have had a cosy roof of turf. 3-If this structure is used in historical texts, is it not a must to replace all scientific texts on pre-historic times which was written in simple past with this structure "would+have+past participle", because no writer can ever be %100 sure about anything that happened or must have happened 10 or 50 thousand years ago.? Perhaps any scientific texts (eg geography, history, anthropology etc) about how the world or life was like thousands of years ago.?


How can you type in Minecraft enchantment table font?

So me and my friend want to message each other in the Minecraft enchantment table lettering and it would be great if someone had an idea on how to do it.


“All you have to do is read” vs. “All you have to do is to read”

I was speaking to an English learner and said, “All you have to do is read a lot.” And they thought that sentence wasn’t grammatically correct because I dropped the word to between is and read.  They thought it should be “All you have to do is to read a lot.” That sounds weird to me.   How do I explain to them the reason you drop the to? Or am I incorrect and it really should have a to?


How do I start with fresh installs of Ubuntu and Windows such that I can choose OS from boot without going into BIOS?

I would like to install both Ubuntu and Windows on the same PC. I would like to use Ubuntu as my primary OS, and have Windows available to run things that only run on Windows.  I would like to start fresh on both OSs and I have no data that I need to keep. I also would like to have it so that when I boot, I can choose which OS to run, without having to go into the BIOS/UEFI settings. Is this possible?  Available storage   I have a 1TB spinning hard drive I have a Samsung EVO 850 SSD hard drive (500GB) I have a Samsung EVO 950 M.2 SSD hard drive (500GB)   Ideally each OS will reside on it's own SSD but I am not sure if I can avoid going into the BIOS to pick an OS that way, so if it needs to be on the same SSD with a partition then so be it. I would like the 1TB HDD to be visible to both OSs for general purpose usage.  So the questions are   How do I do this? (admittedly a broad question) Do I put both OSs on the same SSD or on different SSDs? Which OS do I install first?   I noticed that when I installed Windows 10 on the M.2 SSD a few days ago, I had to disconnect all other hard drives or Windows got confused. Maybe the easiest way to do this is to disconnect all drives except the M.2, install Windows using the whole SSD. Then run the Ubuntu installer (without reconnecting the the rest of the drives) and adjust the partition and let the installer do it's thing. Hopefully nothing will get confused when I reconnect the drives again.  As an aside, ever since installing Windows on the M.2 (EVO 950), the previous installation of Ubuntu (which resides on the EVO 850) now boots to a purple blank screen. And the  trick does not resolve the issue.  Advice please.


Regex to capture everything except the previous capture

I'm trying to parse some strings where the values could be given like:     stuff "Something" stuff   or     stuff 'something' stuff   I solved this bit easily with:  (?<quote>"|')(?<quoted_value>[^'"]+)\k<quote>  However I've come across a problem where I have:     stuff "Today's Top 10" stuff   And I thought I could use the captured quote as the argument for the quoted_value pattern like so:  (?<quote>"|')(?<quoted_value>[^\k<quote>]+)\k<quote>  But I get         Unrecognized escape sequence \k   How can I use the first quote capture value as a condition to capture everything until that value is found again?


Evaluate $ \sum_{n=1}^{\infty} \frac{\sin \ n}{ n } $ using the fourier series

I am a beginner with Fourier series and I have to evaluate the sum   $$\sum_{n  =1}^{\infty}{\sin\left(n\right) \over n}$$  I don't know which function I have to take to evaluate the fourier series ... Someone can give me a hint ?  Thanks in advance!


why bash prompt won't update unless I call bash again

I have this function that echoes the recent directory  funtion prompt_oldpwd() {   local oldpwd="";      # check if the $OLDPWD is set and not empty     if [ ! -z "${OLDPWD}" ]; then         # truncate $OLDPWD value and set it to oldpwd        oldpwd="${OLDPWD##*/}";      else      return;      fi  echo "${oldpwd}";  }   if the $OLDPWD variable is set and not null it prints the truncated value.   It works fine when I call the function inside the terminal but when use in a prompt like this:  export PS1="$(prompt_oldpwd)"   it actually prints the value in the prompt but if the $OLDPWD change it won't update the prompt unless I run bash again.. Why is it like that? and how do I make it that when the $OLDPWD change it should also update?


Should I include my StackExchange profile in my CV?

I've been thinking that sometimes here on Stack Exchange, people make very good questions and give very good answers, in my case, I have learnt a lot from the community and when I post a question I try to make an effort to formulate it in a proper manner to avoid downvoting, so, when applying for a job or an academic position, would be correct to also make a reference of your Stack Exchange profile? I believe that people that are hiring you, may have a better glimpse of you interests, what you know and what you don't know from the answers and questions that you make, so, is it a good idea to also show it?


What are the pros and cons of CPU frequency control on a laptop?

What are the pros and cons of controlling (lowering, or even overclocking) the CPU frequency on a laptop? How can I do it in Ubuntu and will it increase my battery life (as I never play games and stuff)  And do fan speed and CPU frequency have any correlation?


Is it possible to thank Stack Overflow without writing it as a question?

I would like to thank all of Stack Overflow for already having solutions to so many of my problems that I almost never have to post a question.


Why didn't Harry himself drink Polyjuice Potion instead of all others in Deathly Hallows Part 1?

In Harry Potter and the Deathly Hallows Part 1, it is shown that members of the Order of Phoenix come to rescue Harry from his house at Privet Drive. There, they all drink Polyjuice Potion and assume the form of Harry to confuse death eaters in identifying who is the real Harry.  An obvious, more safe, better choice would be to change Harry into someone else. Maybe a muggle, like his cousin Dudley. And then, safely take him to the Weasleys, maybe apparating. That way, death eaters won't ever find out. Isn't that correct?  Why didn't they take this path, and follow a rather complicated and risky one?


How can I copy the output of a command in the terminal to my clipboard?

I have a script that operates on enormous files and outputs an enormous amount of content (almost 7000 lines). I need to copy the output of this to my clipboard so I can then paste it into paste2.org and make a paste. Is there a way for me to directly copy the output to my clipboard? Some operation like that of redirection for the clipboard?


Do I need to add "the" to a plural noun?

I am confused by whether or not to add "the" before a plural noun. For example, do the following two sentences mean something slightly different from each other?  (1) We analyzed the potential implications of such practices for consumers.  (2) We analyzed potential implications of such practices for consumers.


Evaluation of Differentiation and Integration

I was having some thought about what would be the syntax to make the end point evaluation of derivatives or integrals. Such as making the | with the two end points of evaluation on the top an bottom of the line. Any suggestions would be wonderful.


How to read json file online client-side javascript

I have a JSON file on my website, and I want to access it from client-side vanilla javascript. How do I do that? I don't want any HTML involved, like linking to the JSON file in the HTML and then accessing it via JavaScript. I need it to be in JavaScript and JSON, nothing else.


How can I add explanations to previous edits?

I made an edit to my post while leaving the "explain the reason for your edit" part empty. But now I want to add the reason without re-editing the question. Is there a way for this?  Discussion : If not, should there be a way to do this? I think it might be nice, but I'm not sure if it would cause any bug or vulnerability or something.  Edit: Now I think and see one downside of this feature would be that it would require to save the previous edits, so maybe a little bit more database burden. However SE might already be saving them, with edit reviews and such. So it might not be a big deal at all. So I'm adding the "feature-request" tag to the question, also writing my edit reason :)


Is the "an" rule applied when a sum of money is in between?

Possible Duplicate:          I have recently seen this image:    Should "a" have been used instead of "an" in the "...an $100,000 apartment" part?


Shared network location in Availability Groups configuration

I am configuring Availability Groups feature in azure virtual machines nodes. In the below screen wizard, it's asking me for shared location. where and how I need to create this shared location?    Do I need to have new VM with disk attached, which can be used as shared location?  OR  Do I have to create FILE SHARE feature in azure storage?


Is there an easy way to print an int without removing leading zeros?

My program basically takes an int studentID from a file and outputs it to a new file, but the problem is when the ID is entered as "00000" it is stored and prints as "0".  Is there an easy way to keep the leading zeros when printing it?


Should I use salted or unsalted butter if the recipe doesn't specify?

When recipes call for “butter” but doesn’t specify “salted” or “unsalted”, which should I use? Does it matter?


How Long Does a Usability Study Take from Start to Finish?

This question will likely have no single correct answer, but I'm looking for personal estimates on how long it takes you to complete a usability study from start to finish, including research, writing the plan, recruiting users, conducting the tests, and analyzing/reporting the data.  I've read a number of articles on the web (this one seems to have the most science behind it: , but I'm looking for your input based on your own experience with usability testing.


How do we remove an ex-girlfriend from a car loan?

My son is currently in boot camp, and his ex-girlfriend is threatening to go to court because she wants her name off a car loan they got when together. She is the primary borrower, but my son is the one that kept it and is paying it after splitting up. Of course she wants him to refinance the loan, but we do not have the credit. How can we get her off the loan?


I like to get a toc at beginning of some of my sections, like in beamer where I can use \tableofcontents[currentsection] is there a possibility in scrartcl?  Something like this:  \documentclass[10pt,a4paper]{scrartcl} \usepackage[ngerman]{babel}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \begin{document}  \tableofcontents %complete  \section{First}  \section{Second} \tableofcontents %just subsection and subsubsection \subsection{SecondSub} \subsubsection{please} \subsection{this} \subsection{SecondSub2} \subsection{parts}  \section{Third} \subsection{another}  \end{document}   Looks like:  Inhaltsverzeichnis %complete  1 First  2 Second 2.1 SecondSub.......................2 2.1.1 please........................2 2.1.2 this..........................2 2.2. SecondSub2.....................3 2.2.1 parts.........................4  3 Third 3.1 another ........................5   1 First  2 Second  Inhaltsverzeichnis %just subsection and subsubsection 2.1 SecondSub.......................2  2.1.1 please........................2  2.1.2 this..........................2 2.2. SecondSub2.....................3  2.2.1 parts.........................4  2.1 SecondSub  2.1.1 please   2.1.2 this  2.2. SecondSub2  2.2.1 parts   3 Third  3.1 another


How can I actually adjust the brightness of my display?

I'm on a fresh installation of Ubuntu and planning to install i3wm. Unfortunately, the brightness is completely stuck on the maximum, rendering it basically torture to use during the night. Neither the brightness keys on my keyboard nor the brightness slider on the top right dropdown do anything. The brightness keys do show that the brightness is decreasing on the slider but it doesn't actually change at all. Please help! I'm using a Lenovo Flex 5 14. Edit: It's definitely not the laptop itself's problem because the brightness buttons worked when I was on Windows and when I shut down the computer, the space around the Shut Down prompt is darker.


I have the below data and I have to concatenate the long text column and make it as a single row. The challenge part is only one row has the notification number and other rows are null. You cannot group by the notification number.    I need the output as 2 rows  row number  Notification Number Plant   Creation Date   Language    Lineno  Tag Long Text 1           10014354914         A057    43466            EN            1     >X  aaabbbcccdddeeefffggghhhjjjkkklll 2           10014354915         A057    43466            EN            1     >X  aaabbbcccdddeeefffgggpppqqqrrrsss   I have used cursor for this. But it is taking much time.


What exactly is the cosmological constant?

I know that the  was developed as an addition to the Einstein Field Equation as an anti-gravity force: $$R_{\mu \nu} - \frac{1}{2} R g_{\mu \nu} + \Lambda g_{\mu \nu} = \frac{8 \pi G}{c^4} T_{\mu \nu}$$  so that he could get a static universe. But later it was discarded. And now it is related to dark energy.  But what exactly does the cosmological constant mean. Is it a measure of the amount of dark energy? If so, how can we measure it? Please note that I want to know the physical meaning of the constant in our universe (but some mathematical exposure can be helpful anyway)  NOTE: The answer given here:  is more inclined towards the fact that the cosmological constant was developed as a tool to keep the universe static, or that it represents curvature where $T_{\mu \nu} = 0$, but what I am looking for is what do we think of the cosmological constant today? I am not asking how or why it crops up in the EFE, or why it was developed to make sense of a solution to the EFE, but simply what it really is, physically?


Upload csv files from ftp into SF via Apex (without insertFile Tag)

I want to automatically upload csv files into Salesforce on a regular basis, doing a scheduled job. I want to have this job centralized so that everybody has access to the code and the process. I want to do proper error handling so that the users get notified in case an upload fails. Due to company policies, we cannot access the database directly, only the csv on a ftp server. Can the upload be done without middleware?


If $f$ is a real valued differentiable function satisfying   $|f(x)-f(y)|<(x-y)^2$ for all real $x$ and $y$   and $f(0)=0$   then $f(1)$ equals:


The point of inflection on the curve $𝑦=𝑥^3−𝑎𝑥^2−𝑏𝑥+𝑐$ is a stationary point of inflexion. Show that $b=8a^2$.

The point of inflection on the curve $𝑦=𝑥^3−𝑎𝑥^2−𝑏𝑥+𝑐$ is a stationary point of inflection. Show that $b=8a2$.  Thank you for your help.  Edit: The solution to this question drafted in another post is wrong, according to the book. That is why I post it again, in a separate post.   Edit 2: I am not sure, then, why some of you still mark it as a duplicate.


Find the number of solution in $\sin^5 x+\cos^3x=1$ in $(0, 2\pi]$.  My approach is as follow  I am using the concept   $T=\sin^5 x+\cos^3x-1$ in $(0, 2\pi]$   $T'=5\sin^4 x \cos x-3\cos^2x \sin x$   After this step I am not able to proceed


I have a query for a small program that I am running. I was wondering if there was any way to pause a while loop in python for an amount of time? Say for example if I wanted it to print something out, then pause for say (1) second, then print it out again?   There is not really a point to this program I am more doing it for something to do while bored. I have checked other questions and none seemed to really answer what I was asking.


I'm using Ubuntu-Mate on a USB flash drive for some testing. I'm making some changes to the startup using dconf-editor but would like to somehow make these changes 'stick' when I reboot. Does anyone know if this is possible?


I have created a script to read 15 pcap files from a folder and merge then into one file using mergecap command. I want the merged file to have the creation time same as the first file of the 15 files and the last modified time same as the last 15th file. W.R.T   I have got how to modify the file times, but this will change all file times to that of the first file. touch -m command needs to be used here , but I cant see how to save the last modified time from the last file and put this to to the merged file.


Will many downloads render my server unresponsive?

For example if I have a web server with 512 MB of RAM and my server is for downloads, will many downloads make my server unresponsive? By unresponsive I mean server error 508(Resource limits has reached). Please help, I am going to choose best hosting.


Functional Analysis for Quantum Mechnanics

I have completed three sequences of courses in QM, and I'm very much eager to to do the functional analysis of QM on my own in my spare time.  Can someone suggest some books? I like books with mathematical rigor, and I'm taking this step to understand the mathematical foundations of Hilbert Spaces used in QM.  Also, please do let me know the pre-requisites to study the book(s) you're mentioning.


Local colormaps in global coordinate system

I am trying to get a surface graph with two colormaps.  Instead of using the full Z range i want to give the first surface its own colormap  and the second surface should receive its own colormap too (it may be even the same)... however the current version takes the full range of Z-Data and calculates the colormap. Is there any way?  \begin{tikzpicture}     \begin{axis}[grid = major, colormap={bw}{gray(0cm)=(0); gray(1cm)=(1)}, view={-30}{15}]   \addplot3[surf]    table     {DATA1.dat};   \addplot3[surf]    table     {DATA2.dat};  \end{axis} \end{tikzpicture}   Right now it looks like that:   I want each of the surface to be scaled individually... just to see more clearly how the amplitude changes :)  Any ideas?  Thanks, Alex


Please, please help me install Ubuntu as a UEFI

I have been working at this for easily 15 hours now and nothing works. First I had linux installed and I wanted to install windows as a dual boot, which took 8 hours because of all the issues. It finally worked but I had windows as UEFI and Linux as Legacy. So I followed multiple websites on how to convert linux to UEFI and nothing worked so I thought, hey maybe I'll reformat all the drives that I have Linux on and just do a fresh restart. Well in order to create a UEFI boot loader I have to switch legacy mode off in my bios. However anytime I try to run my USB drive with Ubuntu loaded in UEFI mode, I get multiple errors saying, ACPI BIOS error (bug) Faliure creating named object[_SB.PCI0.XC.RHUB.8809._UPC], AE_ALREADY_EXISTS, During name lookup/catalog (2019086/psob.ject-220) Over and over again along with weird colored lines streaking all across the black background and it just sits there. I tried loading it up many times, I made multiple ISO. files on multiple flash drives with different tools and trying GPT, FAT32 etc and nothing works. Now I have no linux and a slow working windows 10 on my HDD and my SSD is empty waiting for linux to get reinstalled. Please help! I don't care what I have to delete I just want this working. Thank you!


Let $A = (a_{ij})_{n\times n}$ such that $AB = BA$ for every square matrix $B$ of order $n$.  (i) Prove that $A$ is a diagonal matrix.  (ii) Prove that $A$ is a scalar matrix.   How to solve it? I actually started by letting $B$ also be $B_i$ where the $(i, i)$ entry is $1$ and $0$ elsewhere. How do I continue?


I am reading some preliminary material to develop a good background in order to study PDE and I came across the following fact  The dual space of $L^p$ is $L^q$ where $q$ is the Holder's Conjugate of $p$, so in other words $\frac{1}{p}+\frac{1}{q}=1$. Can someone please explain to me how to prove this fact or indicate where can I read something about this that is understandable from somehow who doesn't have much knowledge of functional analysis.  I know the definition of dual space and I was reading on wikipedia that there is a natural isomorphism from the space of linear functionals of $L^p$ to $L^q$, but I can't really reason on why so, and the intuition behind this.


Unable to install mongodb on ubuntu 15.10

There is an errors when executing,the error as follows.  pccs063@pccs063-System-Product-Name:~$ mongo MongoDB shell version: 2.4.14 connecting to: test Fri May 13 13:03:55.501 Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145 exception: connect failed


$|N| = |N \times N|$ ($N \times N$ countable)  I tried to build a bijective function $f(n,m) \to n$. I saw some posts about this question but there wasn't any example nor a good explanation.


Change easily how figures, tables, equations.. are cross-referenced based on what is recommended in style guides such as MLA, APA, IEEE

Context  Many writing and referencing styles, as you know, require certain specific guidelines when cross-referencing images, tables, equations, sections etc...  Per example, in the APA style you would adopt the following examples when cross referencing tables and images:  "As shown in Table 2 ..." or "As illustrated in Figure 3 ..."  For the MLA style: you would use: "As illustrated in Fig. 1"  For the IEEE style: "Fig. 4. Intercomplex crosstalk characteristics"  etc...  I am writing a thesis and I want to know kindly what package(s) & what cross-referencing commands should I use in order to make cross-referencing very easy to change between different styles in the future (following exact styles' guidelines), surely the \ref{XYZ} won't do it as this would mean I had to go and change all the instances of figures, tables, equations etc...  I want kindly a very easy way to switch between APA, MLA, Chicago, Harvard, IEEE etc.. at least not more difficult that adding a couple of lines in the preamble of the thesis. I would be hopeful of not doing the whole thing manually.  Kindly can I know how to do that in APA (Figure 3, Table 4) and in MLA (Fig. 1). What lines of LaTeX code can do that?  I apologize if this seems like a neophyte question, I do not know what is the best approach that would lead to the least headache in the future.   The question has some similarities in terms of pros and cons of cross-referencing packages to the question:  but is not duplicate since non of the answers explain how to transform automatically a Figure 1 to Fig. 1 or Table 1 and Tab. 1 or Chapter 1 and Chap. 1 or vice versa depending on specific styles (referencing/Writing styles) such as IEEE, APA, Chicago, Harvard etc...  In other words, is there a package which allow me to plug in something like APA and then all cross-referencing of figures, tables, equations and chapters are changed accordingly to the style? Then later I might decide to switch to MLA, can I easily do that?   Or at least if no package exist that takes into consideration styles: and let us say cleveref is the best option for customization, can anyone kindly tell me how to "marry" [if we can say that :-) ] cleverref package with the APA or with MLA or with IEEE.   There are many who are interested in such answers which this question provide an opportunity to elucidate these solutions.   So you use BibLaTeX APA style, you definitely want to follow also the same exact style in cross-references.  Any suggestions are greatly appreciated.


Mongodb-PHP: File download doesnt download expected file

I am using mongodb with php. I have agreement download option on which when user clicks user get the agreemment downloaded. On click i have navigated to script where file download code in php is there code is  $mongoDbA = $mongoDb->findOne(array("agency_id" => new MongoId($_GET['id']))); $filename = '../../images/upload/'.$mongoDbA['file'];  if (file_exists($filename))  { header('Content-Description: File Transfer'); header('Content-Type: text/pdf'); header('Content-Disposition: attachment; filename='.basename($filename)); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($filename)); readfile($filename); exit; }   I have allowed to upload only pdf files so only pdf files are there in database  When i click then it gives me error & gives me white colored file that has no extension & size is 1 kb hardly....what is happening???


Has the Thomas Wayne Batman ever Appeared Outside the Flashpoint storyline?

One of the main things that was changed during the events of the DC storyline Flashpoint was Thomas Wayne becoming Batman after the deaths of Martha & Bruce. This Batman was much darker and I was wondering if it ever made any other appearances (note: I am excluding the animated film Justice League: The Flashpoint Paradox, as it is basically the same storyline).


java.lang.OutOfMemoryError: java heap space in websphere

I am using Websphere and trying to upload a PDF attachment with file size of 51M, it failed with java.lang.OutOfMemoryError: java heap space.   Can someone help me out to check that issue?


I am reading about KNN      So I made another example to make things clearer  In this example (Image attached)    You can see there are in total 5 Greed Circles and 20 Blue Squares  by standard KNN (k=3) , X should be a Blue Square   This is obvious 2 Blue Squares vs 1 Green Circle.  But in weighted KNN things are difference  In this case we have to calculate the weight (Likelihood) for each instance  Each Green Circle likelihood is $\frac{1}{5} $ , we have 5 Green Circles  While for Blue Squares it is  $\frac{1}{20} $ , we have 20 Blue Squares  Therefore the weights around X will be $\frac{1}{5} $  Green Circle, and $\frac{2}{20} $ Blue Squares.  which means $\frac{1}{5} > \frac{2}{20} $  Then X is Green Circle  But if try to think of it logically then there are more Blue Squares than Green Circles which means X more likely to be Blue Square than Green Circle.  My question is :  Am I doing anything wrong here? Can someone explain why the equation is showing Green Circle while logic says Blue Square?


Red's parole hearings in The Shawshank Redemption

In  Red has three parole hearings. For the first two, in 1947 () and in 1957, he tells the parole board what he thinks they want to hear, and is unsuccessful. In his third in 1967 () he takes a different approach, saying, quoting from the IMDB quotes page:     1967 Parole Hearings Man: Ellis Boyd Redding, your files say you've served 40 years of a life sentence. Do you feel you've been rehabilitated?      Red: Rehabilitated? Well, now let me see. You know, I don't have any idea what that means.       1967 Parole Hearings Man: Well, it means that you're ready to rejoin society...       Red: I know what you think it means, sonny. To me it's just a made up word. A politician's word, so young fellas like yourself can wear a suit and a tie, and have a job. What do you really want to know? Am I sorry for what I did?      1967 Parole Hearings Man: Well, are you?       Red: There's not a day goes by I don't feel regret. Not because I'm in here, or because you think I should. I look back on the way I was then: a young, stupid kid who committed that terrible crime. I want to talk to him. I want to try and talk some sense to him, tell him the way things are. But I can't. That kid's long gone and this old man is all that's left. I got to live with that. Rehabilitated? It's just a bullshit word. So you go on and stamp your form, sonny, and stop wasting my time. Because to tell you the truth, I don't give a shit.   Red is then granted parole. Why, after this disparaging and weary speech? Was it because he was being so bluntly honest? Was intimidation a factor?


When to use the Wilcoxon rank-sum test instead of the unpaired t-test?

This is a followup question to what Frank Harrell wrote :     In my experience the required sample size for the t distribution to be   accurate is often larger than the sample size at hand. The Wilcoxon   signed-rank test is extremely efficient as you said, and it is robust,   so I almost always prefer it over the t test   If I understand it correctly - when comparing the location of two unmatched samples, we would prefer to use the Wilcoxon rank-sum test over the unpaired t-test, if our sample sizes are small.  Is there a theoretical situation where we would prefer the Wilcoxon rank-sum test over the unpaired t-test, even that the sample sizes of our two groups are relatively large?  My motivation for this question stems from the observation that for a single sample t-test, using it for a not-so-small sample of a skewed distribution will yield a wrong type I error:  n1 <- 100 mean1 <- 50 R <- 100000 P_y1 <- numeric(R) for(i in seq_len(R)) {     y1 <- rexp(n1, 1/mean1)     P_y1[i] <- t.test(y1 , mu = mean1)$p.value } sum(P_y1<.05) / R # for n1=n2=100 -> 0.0572  # "wrong" type I error


Passport without citizenship of that country?

So I was looking at a travel site where when you make a booking, it asks for both your country of citizenship AND country of passport.  I have dual citizenship, and thus am eligible for both passports.  So I could I suppose put South Africa for the citizenship and New Zealand for the passport field if I'm feeling like it, but it seems pointless to have the two fields like that.    Then I wondered - is it possible to get a passport without having citizenship of that country?