If Anger of the Gods kills a creature, does it still trigger death effects?

Let's say I control  and my opponent casts an . I'm fairly sure any creatures I own that die this turn are just exiled without Athreos' ability triggering, but I can't bring to mind a concrete explanation of exactly why that's the case.  Can anyone explain how abilities that trigger when a creature dies interact with effects along the lines of "If X would die this turn, do Y with it instead"?


Where can I find a good JavaScript/HTML AutoSuggest example

I am looking for a good example implementation of a JavaScript/HTML AutoSuggest input box to get me started. What I am trying to implement will behave "Exactly" like the Tags input box here on stackoverflow.   If it helps I am using jQuery to perform Ajax request.   I am finding examples to help me implement this however I am concerned what about best practices in the area and would love to get opinions also.


Tier 2 and Tier 3 ISPs always connect to a higher up Tier (from what I hear). But how do the Tier 1 ISPs get their connectivity to the Web?  Do they just have a bunch of cables connected to other web servers and download data to their own servers then send anything back that the user requests?  Or does all of the web servers connect in a Web like manner and the ISPs connect to one of them?


I recently upgraded to Ubuntu 20.04. After this, my system is not detecting my Wi-Fi. My wireless adapter is an Intel 7265. I watched some YouTube videos about this issue, which all suggested that I should update my drivers using Software & Updates. But just like others, I did not get this option Installable from CD-ROM/DVD.  As you can see I didn't get any options.   After I tried to update, GNOME Software shows: The repository 'cdrom:/Ubuntu 18.04.4LTS _Bionic Beaver_ - Release amd64 (20200203.1) bionic Release' does not have a Release file.  the above title message. What should I do?


Given the following example, I get the following compiler error:  Cannot apply operator '==' to type 'TEnumerable' and 'TEnumerable'  class MyClass<TEnumerable, TItem> where TEnumerable : IEnumerable<TItem> {   public void DoSomething(TEnumerable item)   {     if (item == default(TEnumerable)) return; // Compiler error here   } }   When I add the class constraint  class MyClass<TEnumerable, TItem> where TEnumerable : class, IEnumerable<TItem>   it compiles as expected.  According to MSDN, the class constraint means:     The type argument must be a reference type; this applies also to any   class, interface, delegate, or array type.   But IEnumerable<TItem> is already a reference type (all interfaces are reference types), so the class constraint adds no further restriction. So my question is: Why do I need this constraint at all?


If something is halfway in a bag of holding... what happens to it?

If I put something in the bag of holding and get attacked, and drop it, so it's laying half in and half out of the bag.. what happens to the item?   Meaning if I'm putting a long piece of lumber inside the bag of holding, and drop it before I finish putting the lumber inside, does the lumber get bisected? Or does it just hang out there. Is there a spot in the center not in the portal, but not out of it?


Can someone please explain me the climax of Silicon valley 1

I had watched the silicon valley season 1 but i did not understood the climax. I don't know what is Weissman score, is it good to be more or less. I had went through the technical same question asked but still i am confused. I want to know in detail.


Hey everyone! I'm beginner to python. Please help me to loop this code , like: asking the user about further calculation

This is the faulty calculator code. which prints wrong answers for some questions whereas gives the right answer to other all computations. I want this code to loop so that the user can do more than one calculation. num1 = int(input("Please  input first number: ")) num2 = int(input("Please input second number: ")) ope1 = input("What would you like to perform:    "             " +    "             " -    "             " /    "             " *    "             " %    :")  if ope1 == "+":     ans = num1+num2 elif ope1 == "-":     ans = num1-num2 elif ope1 == "/":     ans = num1/num2 elif ope1 == "*":     ans = num1*num2  if ans == 4*2:     print("Your calculation is 9.") elif ans == 2+4:     print("Your calculation is 7.") elif ans == 5-3:     print("Your calculation is 1.") else:     print("Your calculation is:", ans)


How to install GCC 5 on debian jessie 8.1

I tried many solutions to install update for my gcc compiler on debian server. None of them worked. I need the compiler update to use new features of c++11, as this provides a stable libcxx11 ABI, and stable support for C++11 (refer ). Specifically getting version `GLIBCXX_3.4.21' which is not included in my current compiler gcc version 4.9.2 (Debian 4.9.2-10).   Some pointers to solution will be helpful. Thanks in advance.  Some links to forum related to my issue which I already tried:      (not entirely related solution is for ubuntu, but I couldn't find gcc-5 in ftp server of debian yet)


Cannot "cd" or change directory using bash script in WSL

I installed Ubuntu bash on my windows machine, so I can test linux scripts away from work.  I created a very simple script with basic "hello world" and a change directory (cd), but when executing it displays the hello world.  It errors out on the cd to directory line.   Here is the error:  $ ./test.sh hello world zipping away ./test.sh: line 6: cd: $'/home/fjaffer/temp\r\r': No such file or directory ./test.sh: line 7: $'\r': command not found ffr@DP-PC:~$   My script test.sh is below:     #!/bin/bash echo "hello world" echo "zipping away" dir=/home/fjaffer/temp cd $dir   Please advise? Thank you.


It seems that a lot of emphasis is given to both the Hobbits and the Dwarves in regards to their diet, but I don't recall much being said about the Elves. (It has been about 15 years since I read LOTR and the Hobbit, and I've never read any of the other works in the Legendarium)  Other than Lembas what do Tolkien's Elves eat?


I've seen sugarcane in Minecraft PE free version, but I cannot collect it, even in survival mode. Can you collect sugarcane in the free version of Minecraft PE ?


Is there a way to find pattern in Spark Dataframe column for numbers? [SCALA]

I have a Column of ip addresses which look like xxx.xxx.xxx.xxx:PORT_NUM. I want to get that ip which is xxx.xxx.xxx.xxx using regex or equivalent. This is a column of type string. If it was Pandas, then one option was to do column_name.iloc[0:12].   Is there anything similar for Spark Data Frame? I am using Scala.  I tried like, rlike but realized that they are only for Characters. I am unable to Index string on Scala DataFrame. I tried regex for ip address in Scala and it didnt work too.  Any other ideas?


What happens when a caster targets an object that looks like a creature with a spell that targets only creatures?

There are many spells which explicitly target creatures:     Choose one creature within range   The target creature is normally supposed to make a saving throw in this case.  What happens when the caster chooses a creature, that is actually an object? For instance, a scarecrow, a mannequin, an illusion, or a corpse.  Examples:   An evil mage is hiding in the bushes. He casts an illusion of himself on the road, using the Silent Image spell. A PC sorcerer walks down the road, sees the illusion and casts Magic Missile on it. A cleric is standing near a pile of dead bodies. He has suspicions that a few corpses are actually undead creatures. He casts Sacred Flame on every corpse, see which if them succeed, hence, reveals the undead. A wizard casts Acid Splash on a mannequin, trying to damage it with acid.   Possible outcomes I can think of are:   The caster cannot even try to cast the spell, regardless of their information about what the target actually is. The caster tries to cast the spell, the casting fails, not expending the spell slot. The caster casts the spell, it expends the spell slot, then fails. The caster casts the spell, but it hits the original and not the illusion. The caster casts the spell, it flies to the target illusion but deals no damage to it (passes through it).   References in the rules and Sage advice  I was trying to investigate, but it didn't make things clearer:    has an answer, that Magic Missile won't hit. It says nothing about if it can be targeted at all, it leaves it up to the DM. Magic Missile automatically finds the original, even when the caster targets an illusion. At least . Now . This supports the counter-intuitive option 4.   on the other hand   , if there were no perceivable effects (let's say you can try to cast the Command spell on an illusion). That assumes that casters can waste their spells on illusion, which means they at least can target it. This supports options 3 and 5.


How can I move Steam games to another disk?

How can I tell Steam to put games on another disk?  They are currently on C: but I'm getting a little short on space.


Let $G$ be a group, $H$ be a subgroup of $G$ and $h$ be a fixed element of $G$. Show that the subset $gHg^{-1}=\{ghg^{-1}:h\in H\} $ is a subgroup of $G$.  I know of the one and two-step tests for subgroups but I'm at a loss on how to implement either of them as I'm not sure what the inverse is.


Piping contents of multiple files between programs while keeping contents separate

I would like to read in a number of files and pipe their output to subsequent programs while still maintaining them as individual pipelines of data.  program1 *.txt | program2 | program3 folder   I know what the above syntax can accomplish for single streams of data, but I am looking at keeping the files separate throughout the entire operation. The above would translate to the following:   program1 reads text files and pipes to program2 program2 processes data individually and pipes to program3 program3 writes data to files in folder with the same file names as the original   This kind of operation is currently the domain for build tools like Gulp, but I am trying to see if a shell can fully replace them. Since programs are written to handle only one stdin, it doesn't seem feasible.  The reading and writing of multiple files isn't an issue as I will just handle that within the programs themselves.  I have looked into the following, but they don't seem like the correct solution:   the tee command file descriptors substitutions   One possible way is to create a process for each individual file, and maintain a list of file names somewhere, but I am hoping for something more elegant.


How to center a div (Also why i should not use )?

I got 2 questions. 1st one is, how to center a div in HTML5. And why i should not use ? It still works   this is my code
     Share


I am reading the Oracle tutorials about multithreading programming in Java. I don't understand why should I create a new object to sync the some part of code? For what reason does the creation of new dummy object serve?  I do understand that creating these two objects will prevent compiler from reordering the code segment guarded by the construction syncronized(lock1){}  However, I would like to know can I use any other objects (except MsLunch) in the construction syncronized(lock1){} ?  What is the motivation behind introducing such construction syncronized(lock1){} ?  Here is the piece of code, I am concerned with:  public class MsLunch {        private long c1 = 0;        private long c2 = 0;        // what is the purpose of these two objects? how do they serve as locks?        private Object lock1 = new Object();        private Object lock2 = new Object();         public void inc1() {               synchronized(lock1) {                    c1++;               }        }         public void inc2() {               synchronized(lock2) {                    c2++;               }         }  }


I was reading about growing single crystals and I'm a little confused about this -  In most crystal growing processes, a "seed crystal" is used, and the rest of the material crystallizes on the seed crystal (for example the ).   But thinking about entropy, wouldn't it be more favourable for the vapour/liquid to not crystallize and hence maintain a larger disorder?   A similar process occurs in supersaturated vapour as well, where a small liquid droplet acts as a "seed" for more condensation to occur. So I suspect I'm missing something, but I can't figure out what.


What are the strategies for getting feedback on articles?

As an academic, one has to publish. Often, an article is drafted, and you need feedback of a colleague.  I see that quite often some perspective articles are often written by long-term collaborating pairs of authors.  What are some strategies people use to get feedback on their articles  (outside of immediate boss; and in the case that none of the friends in the field of work in the specific domain of the article, and one needs specific (not general) feedback)?   How do you approach a colleague to simply read your article. Or do you just mention it at a conference to the most suitable colleague - would you like to read an article and give me feedback? How do handle the co-authorship or acknowledgement? Do you establish the limits at the "approach time"?  What are some strategies to establish a "publishing" duos (buddies).


Close option for questions that can be answered with a simple research

I think that close options on Stack Overflow aren't complete. Ok, in off-topic options there's still an "other" option, but it's too bad that other users don't see the reason, but just see a comment posted below.    I think that there should be more options like: "this question can be answered with a simple research", maybe written in a more elegant and gentle way but that explain the concept.


Prove that (0,1) ⊆ R and (4,10) ⊆ R have the same cardinality

Hows does (0,1) and (4,10) both existing as real numbers make it have the same cardinality?


no connection with Broadcom BCM4311 802.11b/g WLAN wireless card

I've had no wireless connection since I installed Lubuntu 18.04.3 recently (on a Lenovo 3000 N-100 notebook with a BCM4311 802.11 b/g WLAN [14e4:4311] (rev 01) hardware).  I've read several Ask Ubuntu questions. For example,   and followed the section titled Installing The Package (Online), but there is still no wireless connection even after doing a sudo apt-get purge bcmwl-kernel-source and after installing the correct driver with sudo apt install firmware-b43-installer and then rebooting.  I am told that all is OK with the driver, as the response to sudo lspci -knn | grep Net -A3; rfkill list command is   03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4311 802.11b/g WLAN [14e4:4311] (rev 01)  Subsystem: Broadcom Inc. and subsidiaries BCM4311 802.11b/g WLAN [14e4:0465]  Kernel driver in use: b43-pci-bridge  Kernel modules: ssb   0: phy0: Wireless LAN  Soft blocked: no  Hard blocked: no   I was indeed connected to the internet while installing firmware-b43-installer.  Command 'sudo modprobe b43' does not work.  The output of 'dmesg | tail' is [   15.327311]  excluding 0x60000000-0x60ffffff [   15.327343] pcmcia_socket pcmcia_socket0: cs: IO port probe 0xa00-0xaff: [   15.331876]  clean [   16.005244] intel_powerclamp: No package C-state available [   16.044635] intel_powerclamp: No package C-state available [   23.255005] 8139too 0000:05:01.0 enp5s1: link up, 100Mbps, full-duplex, lpa 0xC1E1 [   23.431486] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07) [  727.137035] perf: interrupt took too long (2502 > 2500), lowering kernel.perf_event_max_sample_rate to 79750 [ 1173.265545] perf: interrupt took too long (3136 > 3127), lowering kernel.perf_event_max_sample_rate to 63750 [ 2237.034712] perf: interrupt took too long (3929 > 3920), lowering kernel.perf_event_max_sample_rate to 50750  As I'm rather new to Ubuntu, please be clear and provide exact instructions to follow...  POSTSCRIPT TO MY QUESTION  THE WIFI CONNECTION IS NOW WORKING !!!!!! Thanks to combined effort from @Pilot6, @Fabby, and @chili555  After @chili555 advised me as follows: *"Your device requires the driver b43 and firmware and NOT bcmwl-kernel-source Check if the firmware is present and loading: sudo modprobe b43 && dmesg | grep b43  If there are no complaints about firmware, then the hardware switch must be set to airplane mode disabling the wireless; check: rfkill list all If you see Hard block:yes then you need to find the switch and switch it."*  I toggled the wifi hardware switch again (for about the 10th time). Then I ran the commands that chili555 suggested.  Then I noticed that THE WIFI CONNECTION IS NOW WORKING.  Here are the results of the commands that chili555 suggested.  The output from 'sudo modprobe b43 && dmesg | grep b43' is  '[ 4.275681] b43-pci-bridge 0000:03:00.0: Sonics Silicon Backplane found on PCI device 0000:03:00.0 [ 14.725274] b43-phy0: Broadcom 4311 WLAN found (core revision 10) [ 14.767477] b43-phy0: Found PHY: Analog 4, Type 2 (G), Revision 8 [ 14.767488] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2050, Revision 2, Version 0 [ 23.431486] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07) [10967.655484] b43-phy0: Radio hardware status changed to DISABLED [10972.807505] b43-phy0: Radio hardware status changed to ENABLED [10972.983536] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)'  The output from 'rfkill list all' is  '0: phy0: Wireless LAN Soft blocked: no Hard blocked: no'


You place a bell jar on a scale and the scale registers x grams. You then trap y grams of flying, non-landing fruit-flies in the bell jar. What does the scale register? x grams? x+y grams? Something in between? Assume that the weight of the fruit flies is significant enough that it wouldn't be lost in the error of the scale's output.  My intuition is that it registers something in between. Clearly the fruit flies are exerting downward force on the air around them and that force is at least in part being transmitted down to the floor of the bell jar and thus to the scale. However I feel like some of those air molecules will lose this coherent downward movement on their way down and energy will be lost to heat.  edit: Although this looks like homework, it isn't. I just tried to state it in a clear way. I was asked this by someone and found that I couldn't answer with confidence.


Is there any difference between "foo is None" and "foo == None"?

Is there any difference between:  if foo is None: pass   and  if foo == None: pass   The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter.  None is an instance (and the only instance, IIRC) of NoneType, so it shouldn't matter, right?  Are there any circumstances in which it might?


Should I use in, on or at for locations like this: "I am {on/at/in} the railway station"?

Which prepositions are correct?       I am {on/at/in} the railway station.   I am {on/at/in} square.


Get at underlying executing query inside stored procedure using SqlCommand

Assuming i have a stored procedure (example as follows)   CREATE OR ALTER PROCEDURE test AS BEGIN     SELECT * FROM sys.tables;     WAITFOR DELAY '01:00'     SELECT * FROM sys.tables END GO;    and I have a c# invocation of a SQLCommand that runs a stored procedure as follows  using (var connection = new SqlConnection(connectionString)){         connection.Open();         using(var command = new SqlCommand("test", connection)){             command.CommandType = CommandType.StoredProcedure;             command.ExecuteNonQuery();         }     }   Is there a way for me to get at the underlying sql statement currently being executed within the stored procedure?   What I would like to get is the ability to log, "SELECT * FROM sys.tables", "WAITFOR DELAY '01:00'", etc.


I.e., can two photons completely overlap and propagate in the same direction?


Using Regular Expressions to Extract a Value in Java

I have several strings in the rough form:  [some text] [some number] [some more text]   I want to extract the text in [some number] using the Java Regex classes.  I know roughly what regular expression I want to use (though all suggestions are welcome). What I'm really interested in are the Java calls to take the regex string and use it on the source data to produce the value of [some number].  EDIT: I should add that I'm only interested in a single [some number] (basically, the first instance). The source strings are short and I'm not going to be looking for multiple occurrences of [some number].


Can we implement a dead time on answers for high reputation user

Summary: High reputation users on SO come swooping in the second a simple question is posted, and get the first answer in before I've even opened my Python interpreter to test my idea out.  This actually is a problem because it prevents use lower users who aren't as good  at programming from getting any answers in.  This makes it very hard to build up reputation.  Thus, I propose a short dead time for high reputation users where their answers do not appear.  The Problem: This isn't just reputation.  By answering questions and having discussions with OP, we all get better at our language.  Teaching is one of the best ways of learning, and a more well versed population is absolutely good for SO.  (If anyone wants to argue that, go home)  While its nice to have folks who can quickly answer nearly all questions in a jiffy, its a little frustrating for those of use who simply aren't as fast, but still want to contribute.  The result is that many people do not answer questions because they feel like they just can't get an edge in.  SO should aim to incentivize as many answers by as many users as possible.  The most answers from the most users is the most beneficial situation for the site and the community. Once we accept this idea, it is clear that something needs to be done to address the issue at hand    The Solution: Luckily, this is an easy problem to solve; we use a dead time.  High reputation users can post answers whenever they like, but they won't appear until after the dead time is completed.  The trick is balance, a dead time which is too long will harm the OP as the question will remain unanswered, however, a dead time which is too short won't actually fix the problem.  There definitely needs to be a discussion about what "high reputation" means and what dead time to use, but it should be independent of whether y'all agree that this is a problem.  So, what do you think?  EDIT: Wow, -18, I leave for lunch for 30 minutes and this is what happens!  I guess y'all think this is a bad idea, but let me try to clarify a few things on which I was unclear earlier.  This is not about reputation.  This is not about getting the first answer just for the sake of getting to say "in before..."  This is about learning.  By getting a shot at answering questions before the high reputation users, people learn. Think of it as doing an example problem in class before the teacher does it. You get a chance to try it yourself, test your knowledge, and if you fail, then the teacher is right behind you to show the correct solution.  This is what I'm trying to accomplish. However, seeing the solution, and then trying to answer the question, is not very helpful. This is how I view the status quo.    In response to Mr. Pieters' answer and comments: You're absolutely right, this is not about quantity, its about quality.  The fastest answer isn't always the best.  But asking the high reputation users to take a step back for a few minutes is a means of getting there.    Hopefully this clears things up a bit.


What is the logical form of the definition of validity?

My text book gives the definition of validity as "An argument is valid IFF if the premises are true, then the conclusion must be true". Using a conditional elimination on the RHS of the IFF yields "An argument is valid IFF the premises are false or the conclusion is true".   Yet, this seems strange to me. Am I doing something incorrect with my manipulation or is this definition actually true? Surely the criteria for a valid argument goes beyond a false set of premises or a true conclusion.


I have installed opencart 1.5.6.1 on Digital ocean ubuntu14.04 I have used "demo" as username and login by tightvnc  opencart requird "www-data" as owner and group:  $ sudo chown -R www-data:www-data /var/www/html   $ sudo chmod -R a=r,a+X,u+w /var/www/html $ cd /var/www/html/  $ ls -la   drwxr-xr-x+  6 www-data www-data  4096 Aug 17 07:19 catalog -rw-r--r--+  1 www-data www-data     0 Aug 15 13:14 config-dist.php $ sudo getfacl /var/www/html/ # file: var/www/html/ # owner: www-data # group: www-data user::rwx group::r-x other::r-x     Then I change the ACL by adding demo as owner as well:  $ sudo setfacl -R -m u:demo:rwx /var/www/html/ # file: var/www/html/ # owner: www-data # group: www-data user::rwx user:demo:rwx group::r-x mask::rwx other::r-x   which allowed demo the edit the files and folders in vnc.  but this has also changed the permission of those files:  $ ls -la drwxrwxr-x+  6 www-data www-data  4096 Aug 17 07:19 catalog -rw-rwxr--+  1 www-data www-data     0 Aug 15 13:14 config-dist.php   the group has been chhanged to rwx....  If I change the group permission by:  $ sudo chmod -R g-x /var/www/html   The ACL mask changed....  # file: var/www/html/ # owner: www-data # group: www-data user::rwx user:demo:rwx                   #effective:rw- group::r-x                      #effective:r-- mask::rw- other::r-x   If I change the mask:  $ sudo setfacl -R -m m:rwx /var/www/html/   the group returned to rwx!  So the question is: Whenever I changed using chmod, ACL changed! When I changed using ACL, group permission changed!  It may be related to :   may need to use -n  sudo setfacl -nR -m u:demo:rwx /var/www/html/  may be" The group class permission bits that would be displayed by ls -dl mydir now correspond to the mask entry."  which mean the rwx displayed is referred to the mask permission instead of the group permission


If a problem has worst-case lower bound Ω(n^2) and there is an algorithm  with W(n) ∈ O(n), What can we say about the possibility, importance and order of optimality about this problem and algorithm?


What formally means when physicists say "relativity theory is inconsistent with quantum theory"?

I hear this sentence sometimes: "quantum theory is inconsistent with relativity theory". Is it possible to interpret this really in a formal system logically? I tried to understand the term "to be consistent with" to be implying that all the first order theory extension of these two in mathematical proofs gives a contradiction. However, when I think that this theory has to be formalized on some mathematics like ZFC, it seems to have consistency relative to that. But this doesn't seem to be right. And also, what kind of a theoretical framework should resolve these inconsistencies between the two?


Show that the sum $\sum_{k = 0}^n 2^k \binom{n}{k}$ is equal to $3^n$

How can I show that the sum   $$ \sum_{k = 0}^n 2^k \binom{n}{k}$$  is equal to $3^n$?


How can we travel back to time if we go with a speed $>> c$?

I have read      "If something attains the speed more than that of light then it can travel back to time."   I want to know how it happens.  Also, in relativity why can nothing acquire velocity beyond $c$?


First of all, sorry for catchy title, my question is not that broad as it suggests.  I just came to conclusion that I don't need parametric tests. Instead, I need some feedback if my reasoning makes sense. Here it is:  To use some parametric test (like t-test or ANOVA), we have to check assumptions of it (normality, heterogeneity of vaiance). But all the tests for assumptions (Shapiro-Wilk, Kolmogorov-Smirnov, Anderson-Darling, Bartlett, Snedecor's F and so on) test null hypothesis of assumption being met against alternative that it is violated.  So I can only reject null (conclude that assumption is violated) or say that I don't have enough evidence to do that. Typically, in later situation, I use parametric tests. This means that I use it when I do not actually know if assumptions are met.   My conclusion: I should use nonparametric test anyway.  My conclusion 2: I can use parametric test only when I have some "external" knowlegde about assumptions being met (like I somehow know exact distributions of my data).   That's all. I'll be greatful for any suggestions if above makes sense.  Edit: I know that parametric tests are more powerful when their assumptions are met. My concern is that we can never know that this is the case (unless we have "external" knowlegde). So, I think, using parametric tests is pointless since we don't know if we have data appropriate for them.  Analogy that comes to my mind: Imagine two stain removers: Parametric Remover is perfect for cherry juice stains and Nonparametric Remover is OK, but not perferct, for all the stains. Since I can never confirm that my stain is cherry juice, I should always use Nonparameric Remover.


An elementary approach using the divisor function definition:

Proof conclusion: Let m,n,s $\in$ $\mathbb{N} $\ $\{0\}$. Prove that $s| \tau(m^{s}) - \tau(n^{s})$, where $\tau$ is the divisor function.  Hello so my question is that, I've gotten to the point in the proof where I had used the divisor function definition and have $\tau(m^{s})$ = $\prod$ something +1 , and $\tau(n^{s})$ = $\prod$ something +1.   I know, that since the last terms of both polynomials are equal to 1. Somehow this results that $s| \tau(m^{s}) - \tau(n^{s})$.   But I don't understand why the +1 would indicate that: $s| \tau(m^{s}) - \tau(n^{s})$ holds.


$$\int_0^{\infty} \frac{x^8-4x^6+9x^4-5x^2+1}{x^{12}-10x^{10}+37x^8-42x^6+26x^4-8x^2+1}\,{dx} $$  The answer is $\pi/2$ (). How does one calculate this?  EDIT: I don't know complex analysis. I traced the problem back to a book but the book used complex analysis. I should have said that from the start, sorry.


Can we add a simple search to the "vote to close as duplicate" feature on the iOS app, like on desktop?

On my phone right now, so very briefly...  VTC (e.g. as dupe) on mobile iOS app has no simple search like the regular desktop site.    That would be a nice addition.


Let $f : \mathbb{R} \to \mathbb{R}$ be a twice differentiable function and $\alpha, \beta > 0$. Assume that for all $x \in \mathbb{R}$, $|f(x)| \le \alpha$ and $|f ''(x)| \le \beta$. Prove that $|f'(x)| \le 2\sqrt{\alpha \beta}$. I've tried using Taylor's theorem and the mean value theorem, but not luck. Any hints to point me in the right direction?


Why does the default copy constructor ignore the virtual method override of derived class?

#include <iostream> #include <vector>  class A {     public:         A(int n=0) : m_n(n) { }     public:         virtual int f() const { return m_n; }         virtual ~A() { }     protected:         int m_n; };  class B : public A {     public:         B(int n=0) : A(n) { }     public:         virtual int f() const { return m_n + 1; } };  int main() {     const A a(1);       //create A m_n=1     const B b(3);       //create B m_n=3      std::vector<A> V y({a, b});      V::const_iterator i = y.begin();     std::cout  << i->f() << (i+1)->f()      //13               << std::endl;      return 0; }   I am trying to understand why the above code prints 13 and not 14. Is it related with implicit copy of m_n of a and b objects? For b object does it copy only from class A members thus getting only the function f() of class A?


SHRINKFILE best practices and experience

Preamble: In general it's a big no-no, but believe me that are rare cases when space is really needed. For example Express Edition is limited to 10GB. Imagine that you discovered that with a data type conversion (a blob column) you can free up significant amount of space. But after that the DB file still has the same size as we know, and the 10GB limit also didn't change magically. So some kind of SHRINK is needed. That was an example.  In my test environment I performed:  DBCC SHRINKFILE (DBFile, NOTRUNCATE) DBCC SHRINKFILE (DBFile, TRUNCATEONLY)   That did the trick (I know that that minimizes the free space, in real world I would leave free space). it took many-many hours to finish. As we know it's a single threaded process , "it works as a series of very small system transactions so there is nothing to rollback." - Paul Randal . We also know that it messes up the index fragmentation big time  and I can confirm that. I didn't experience log file grow though described in   I issued some INDEX REBUILD and REORGANIZE and those finished within seconds.  My questions:   What's the big deal about shrink if I can just fix the index fragmentation after the shrink within seconds? I don't understand. Here on DBA stackexchange the "shrink" topic () says "Pretty much the worst thing you could do to a SQL Server database. In short: It sacrifices performance to gain space." plus refers to another popular article about it. But index fragmentation can be fixed. Why I didn't experience any log file growth? What if REBUILD the index first after the space free-up operation. Can that substitute the first DBCC SHRINKFILE (DBFile, NOTRUNCATE) so I just need to DBCC SHRINKFILE (DBFile, TRUNCATEONLY)? I have a feeling that the two work on different logical level but I have to ask this.   Bottom line: I promise I won't do shrink regularly or anything. But this is a situation where a cap is hit and shrink is needed.    Answer to my 2nd question: I didn't experience transaction log file growth, because I was fiddling in a developer test environment. The transaction log file would grow in a production environment (assuming Full Recovery Model). You should mimic that in your testing environment too. The tr log file growth is actually bigger than the space you can free up inside the database file. In the end you not only want to shrink the database file, but also the transaction log (how and when to do that depends on the recovery model). Production environments I saw had so screwed up index fragmentation that it can be just better. My script reindexes every index which fragmentation level is above 30%.  To handle the growth, you may have to switch from full recovery to simple while you are doing the once-in-a-lifetime conversion. But that will break the backup chain.    Answer to my 3rd question: do the reindex/index rebuild after the DB file shrink, because the shrink messes up index fragmentation.  I haven't experimented how all of this affects query statistics.    Script for reindexing: see Example D of . An article on incremental shrink, which will lead to other valuable content:


Prove that $\int_{0}^{1}\frac{\log(1+x)}{1+x^2}\, dx=\frac{\pi}{8}\log 2$  I have tried to sole the problem, but failed. Any one can help me to sole the problems.      Here, I have tried to solve this using integration by parts : Let $I=\int_{0}^{1}\frac{\log(1+x)}{1+x^2}\, dx$.  Then $I=\left[ \tan^{-1}x\,\log(1+x)\right]_0^1-\int_{0}^{1} \frac{\tan^{-1}x}{1+x}\, dx$     How can I integrate the second term?


<img src="assets/img.jpg" id="imgElement" #imageElement  width="50%" height="50%" />  How to get resolution of an image from image and how to reduce the resolution in percentage with javascript or typescript  My Actual task is to show original image in my site on mouse hover of an element, but while showing that image, because of the higher resolutions image is crossing the browser window, so I want to reduce the percentage of image.  Guys please help me on this.


I want to update my splash screen (when I boot or logoff), logo etc... to use the solar theme.  I did:  sudo apt-get install plymouth-theme-solar   then I went to the themes folder to customize it:  /lib/plymouth/themes/   and I updated logos and other images:  sudo update-initramfs -u   I think this command is the right one to run but when I run it, nothing is updated  What am I missing?


Why does do-release-upgrade on Xubuntu running version 18.04 not offer to update to 20.04.1?

I've understood that when I run the Software Updater GUI program, or when I execute do-release-upgrade on the command line, it should offer to upgrade to the latest LTS release if (1) I've got the release update behaviour set to lts, and (2) if the first point release of a newer LTS release is available. I have a couple of machines running the Xubuntu LTS release 18.04. The contents of file etc/update-manager/release-upgrades on all these machines is [DEFAULT] Prompt=lts  That satisfies condition (1). Also, it seems that Xubuntu 20.04.1 is already released, satisfying condition (2). However, neither do-release-upgrade nor the Software Updater offers to upgrade to that release. Why? Edited to add: It seems this question is a duplicate of .


Why do elements on the Binding Energy per Nuclear Molecule after Iron (most stable) even form?

So I was reading about the stability of elements based on Nuclear Binding Energy, and I saw that the 'Iron group' of elements were most tightly bound and hence most stable, and that is why the graph peaks there. Why do elements that come after Iron, which are less stable even exist? And if they do, why do they not constantly strive to achieve Iron-like stability?


natbib: combining chicago style and sorting by appearance

I would like my citations to be formatted according to the Chicago style, and at the same time numbered by order of appearance.  The sort&compress option does work as expected using unsrt bibliography style, with citations numbered by order of appearance. However, they get automatically sorted alphabetically as soon as I replace unsrt with chicago for the bibliography style:  \usepackage[numbers, sort&compress]{natbib}  ... document...  \bibliographystyle{chicago}   \bibliography{main}   Is it possible to get citations styled according to chicago but sorted according to unsrt (that is, by order of appearance)?


Optimal number of folds in $K$-fold cross-validation: is leave-one-out CV always the best choice?

Computing power considerations aside, are there any reasons to believe that increasing the number of folds in cross-validation leads to better model selection/validation (i.e. that the higher the number of folds the better)?  Taking the argument to the extreme, does leave-one-out cross-validation  necessarily lead to better models than $K$-fold cross-validation?  Some background on this question: I am working on a problem with very few instances (e.g. 10 positives and 10 negatives), and am afraid that my models may not generalize well/would overfit with so little data.


Mechanism by which a single electron moving at constant speed produces a magnetic field

What is the mechanism by which a single electron, moving at a constant speed relative to an observer, produces a magnetic field observed by the observer? This question is a fundamental one for electromagnetism, is clear and well-framed, and deserves an answer, even if that answer is "no one really knows".


how to do partition in ubuntu after installation?

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x344916fc     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048  1945391103   972694528   83  Linux /dev/sda2      1945393150  1953523711     4065281    5  Extended Partition 2 does not start on physical sector boundary. /dev/sda5      1945393152  1953523711     4065280   82  Linux swap / Solaris shivam@shivam-Inspiron-5521:~$


No search terms can be added on facebook.stackoverflow.com

When landing on  ( redirects to this URL) the search bar at the top is pre populated with   [facebook] or [facebook-graph-api] or [facebook-like] or [facebook-javascript-sdk] or [facebook-fql] or [facebook-php-sdk] or [facebook-c#-sdk] or [facebook-opengraph] or [facebook-apps] or [facebook-ios-sdk] or [facebook-android-sdk] or [facebook-login] or [facebook-page] or [facebook-comments] or [facebook-social-plugins] or [facebook-oauth] or [facebook-access-token] or [facebook-authentication] or [facebook-iframe] or [facebook-canvas]   and no further search terms can be added. :-(


Java Error & Initialization: java_lang_NullPointerException

below is an app im working on:   MainClass Employee Manager QATester Devloper   This is the  Example Scenario:  1) For the given hierarchy:     Manager A  $300         Manager B  $300             Developer $1000             QA Tester $500  2) Manager A’s allocation should be: $2100   The issue I am currently having is when I run the code I get the following Error:  Exception in thread "main" java.lang.NullPointerException at expenseApp.Manager.add(Manager.java:28) at main.MainClass.main(MainClass.java:15)   I am a little confused as to what is going on and how it can be fixed.  Could you please help?  I'm relatively new to programming so examples of suggests do a lot for me. In Manager I left in some commented out code which represents a few of my attempts to fix.   Thank you.  package main;  import expenseApp.Developer; import expenseApp.Manager; import expenseApp.QATester;  public class MainClass {      public static void main(String[] args)      {         QATester tester1 = new QATester();         Developer dev1 = new Developer();          Manager managerB = new Manager();         **managerB.add(tester1);**         managerB.add(dev1);          Manager managerA = new Manager();         managerA.add(managerB);      }  }     package expenseApp;  public abstract class Employee  {     public abstract int getExpenses(); }     package expenseApp;  import java.util.ArrayList;  public class Manager extends Employee {          private ArrayList<Manager> managerList; //= new ArrayList<>();         private ArrayList<Employee> employeeList; //= new ArrayList<>();          // public Manager(ArrayList<Manager> managers, ArrayList<Employee> employees)          // {         //    this.managerList = new ArrayList<>(managers);         //    this.employeeList = new ArrayList<>(employees);         // }      public void add(Employee employee)      {         if(employee instanceof Manager)          {             //managerList = new ArrayList<>();             managerList.add((Manager) employee);          }         else          {             //employeeList = new ArrayList<>();             **employeeList.add(employee);**          }     }      @Override     public int getExpenses()      {          return 300;     }      public int getTotalExpenses()      {         int totalExpenses = 0;          for(Manager manager : managerList)         {             totalExpenses += manager.getTotalExpenses();         }          for(Employee employee : employeeList)         {             totalExpenses += employee.getExpenses();         }          return totalExpenses;     } }     package expenseApp;  public class QATester extends Employee {      @Override     public int getExpenses()      {         return 500;     }  }   package expenseApp;  public class Developer extends Employee {     @Override     public int getExpenses()      {         return 1000;     } }


Error in generated comment when using the tool: Move comments to chat

I used the moderator tool  for the first time today, on , and the comment that was created did not work properly.  The comment that was created:  Comments are not for extended discussion; this conversation has been moved to chat.     Additional examples from other users:      Not only does the link appear malformed but it is also broken.  Note that the <a href= form is used rather than the [name](url) markdown that works in comments.  I had to edit the comment to correct the problem.


Number of solutions of $x_1 + x_2 + x_3 + x_4 = 14$ such that $x_i \le 6$

Let $x_1, x_2, x_3, x_4$ be  nonnegative  integers.      (a) Find the number of solutions to the following equation:                $$ x_1 + x_2 + x_3 + x_4 = 14 $$   I got $17 \choose 3$ for this. Is that correct?     (b) Find the number of solutions if we add the restriction that $x_i \le 6$ for        $1 \le i \le 4$


Prove exists consecutive integers $s,s+1,\dots,s+i$ such that $m_{i}|s+i$, if $m_{0},\dots,m_{r}$ are positive integers coprime

If $m_{0},m_{1},\dots,m_{r}$ are positive integers with $(m_{i},m_{j})=1$ for $i\neq j$, prove that exists consecutive integers $s,s+1,\dots,s+i$ such that $m_{i}|s+i$ for all $1\leq i \leq r$.  I really don't know how to approach to this problem. Any tips?


Why would Google Rich Snippets work for one site author but not another?

I'm using the Rich Snippets with two of my websites:  and another one.  They both have the same two authors: Jordy and Jing. What is amazing is that the Google+ profile picture is shown for Jing but not for Jordy (which is me). I have NO CLUE why, it's beyond my understanding. And Jing is lucky because she didn't set a thing ;)  Please check this Google result:    Check the first page, the second, the third... basically, she has a badge for all her articles, but there are none for mine.  I have no idea what to check, everything seems to be in order. There could be something wrong with my Google+ account but what? I don't know. Google is full of mysteries.  Of course I tried the Rich Snippets Tool which works perfectly for every pages.


Is "performance" singular or also plural?

When I have to use information and performance I'm always confused.  However, I'm asking whether when I'm referring to more than one piece of information of performance I should use "information/performance is" or "information/performance are."


How to scroll up in terminal window while new input is generated without being thrown back to the bottom (Linux)

In Ubuntu, I want to scroll up while a command is running in my terminal window and generates new output (the command that is running is rspec). I can scroll up, but each time rspec generates a new line of console output, it throws me back down to the bottom. Is there a way to scroll all the way up? I'm using terminator on Linux Mint/Ubuntu 12.04 LTS. I found a possible workaround.  says that with stty ixon  you can turn on "XON/XOFF flow control for terminal output. Being able to pause output by typing ^S and resume it by typing ^Q [...]" This it not totally what I wanted though, without having to pause the output (and maybe wondering when forgetting to turn it on again), I thought there might be a simple modifier key like shft-alt with mouse wheel scroll-up. Are there better solutions?


How can I print directly to a local printer from a webpage

I’m looking for a way to print directly to a local printer from a webpage.  I can achieve this with no problems locally (if I’m viewing the page in my browser using localhost).  I click on a button and the page prints with no printer dialog box used.  What I want to be able to do is achieve this from a live internet webpage.  I'm using VB.net / ASP.net  Here is my question / problem: - Can this be done?  I see other posts about this but they don't deal with a button click and are more geared towards avoiding the printer dialog box.  Ideally I too would like to bypass the printer dialog box.  However, if that is not possible I will go through the printer dialog box.   The error I get is:  Settings to access printer 'Star TSP100' are not valid.  This is for private, internal use so I will know the exact location and specs of the printer.  Currently, when using the page on the localhost,  I set my printer with:  printer.PrinterSettings.PrinterName = "Star TSP100"   Print Code:  Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click   Dim prn As New Printing.PrintDocument   prn.PrinterSettings.PrinterName = "Star TSP100"   AddHandler prn.PrintPage, AddressOf Me.PrintPageHandler   prn.Print()   RemoveHandler prn.PrintPage, AddressOf Me.PrintPageHandler End Sub   Private Sub PrintPageHandler(ByVal sender As Object, ByVal args As Printing.PrintPageEventArgs)   args.Graphics.DrawString(“Hello World”, New Font(FontFamily.GenericSansSerif, emSize:=10, Style:=0), Brushes.Black, 4, 4)   args.HasMorePages = False End Sub


Expandable/collapsible paragraphs in the compiled PDF file

I'm using Gummi on Ubuntu 14.04. I like Gummi because it gives me a live preview as I type lots of maths equations. But this is besides the point.  My question: Is there a way to "attach" an expandable\collapsible [+] / [-] type button to a given paragraph so that when the button is clicked within the PDF the associated paragraph either appears or disappears?  When writing up my maths notes this would be a very useful feature as it would allow to either display or hide proofs. Sometimes, it's nice just to have the results shown, without the proofs. On the other hand, it would be desirable to have the proofs to hand when required.  Please note I would like this functionality within the compiled PDF, not the actual tex code.  EDIT  As suggested by Martin Schröder in the comments .


Prove the divergence of $\sum_{k=0}^{\infty}{\frac{1}{10k+1}}$. By the ratio test:$$\frac{\frac{1}{10(k+1)+1}}{\frac{1}{10k}}=\frac{10k}{10(k+1)+1}=\frac{10k}{10k+11}=\frac{10k}{k(10+\frac{11}{k})}=\frac{10}{10+\frac{11}{k}}\overset{k\to \infty}\longrightarrow 1$$ thus it diverges for almost all $k\in \mathbb{N}$  Is that correct?


What is the standard way to add N seconds to datetime.time in Python?

Given a datetime.time value in Python, is there a standard way to add an integer number of seconds to it, so that 11:34:59 + 3 = 11:35:02, for example?  These obvious ideas don't work:  >>> datetime.time(11, 34, 59) + 3 TypeError: unsupported operand type(s) for +: 'datetime.time' and 'int' >>> datetime.time(11, 34, 59) + datetime.timedelta(0, 3) TypeError: unsupported operand type(s) for +: 'datetime.time' and 'datetime.timedelta' >>> datetime.time(11, 34, 59) + datetime.time(0, 0, 3) TypeError: unsupported operand type(s) for +: 'datetime.time' and 'datetime.time'   In the end I have written functions like this:  def add_secs_to_time(timeval, secs_to_add):     secs = timeval.hour * 3600 + timeval.minute * 60 + timeval.second     secs += secs_to_add     return datetime.time(secs // 3600, (secs % 3600) // 60, secs % 60)   I can't help thinking that I'm missing an easier way to do this though.  Related


Could Thanos have created more resources rather than kill half of the population? MCU

How powerful are the Infinity Stones when they are all combined in the Infinity Gauntlet? Thanos states that he wants to kill half of the population in order to ensure that there are enough resources to go around. Could he have made more resources instead of killing half of the population or is the combined power of the stones limited in what they can create? I thought maybe he could have changed the structure of uninhabitable worlds into viable worlds for beings to live on but then that would only be a short term solution depending on how many planets can be made viable. Or possibly even broken down some of those uninhabitable planets/stars/asteroids into their elements and distributed "more resources" to the planets with living beings.


Saving and re-using value of a footnote counter twice - how?

I am trying to put the same footnote on to two different places - saving and re-using the footnote counter. Here is what I want to do (part of a larger doc - a paper out of my dissertation):  %Start LateX snippet%  $\Delta$ Age\footnote{\FNTabAge}         \newcounter{savetmp01} \setcounter{savetmp01}{\value{mpfootnote}} %Save "a"%  Grade\footnote{\FNTabGrade} \newcounter{savetmp02} \setcounter{savetmp02}{\arabic{mpfootnote}} %Save "b"%  Grade\footnotemark[\arabic{savetmp02}] x Non-English %Reuse "b" - works%  $\Delta$ Age\footnotemark[\arabic{savetmp01}] x Non-English %Reuse "a" - does not work. Instead it shows "b"%   I want to save the footnote counter first when defining $Delta$ Age, and then again when explaining Grade.   The first re-use works perfectly well (both show the same footnotemark "b"), but the second re-use does not work - I am getting "b" again, instead of "a" as I want it.  Any ideas? Already tried using \thesavetmp01 or \value{savetmp01}, but no luck.


I use this charset because it is the most complete one  <meta charset="UTF-8" />   but actually I still see the character � for example for the word menù  Why?


The first homology group $ H_1(E(K); Z) $ of a knot exterior is an infinite cyclic group which is generated by the class of the meridian.

I'm trying to solve the following exercice :  Prove that the first homology group $H_1(E(K); Z)$ of a knot  exterior is an infinite cyclic group which is generated by the class of the meridian.   With $ E(K) $ is the closure of the complement of a tubular neigborhood $ N(K) $ of $ K $ and the merdian is just the boundary of a meridien disk of $ K $ .  Here is the adequate formulation :  Let $K$ denote a knot in $S^3$. $ N(K) $ is the image of an embedding $ S^1 \times D^2 \longrightarrow S^3  $ whose inverse $ f : N(K) \longrightarrow S^1 \times D^2 $ is called a trivialization. A meridien disk of $K$ is $ f^{-1} (D^2 \times \lbrace y \rbrace ) $ for a point $ y \in K $ . $ E(K) = cl(S^3 \setminus N(K)) $ .  I proved that $  E(K) $ is a submanifold with boundary of $ S^3 $ and that $ E(K) \cup N(K) = S^3 $. Then I used the known fact that the Mayer-Vietoris sequence still relevant for a cover of a manifold consisting of two submanifold with boundary to conclude that indeed $ H_1(E(K); \mathbb{Z}) = \mathbb{Z} $.  The issue is that I was not able to get the information on the generator by applying this method.  So my question is how can I exhibit the generator ( knowing that normally there is two generators since the boundary of $ N(K) $ is a torus, a meridien and a longitude ).  Thanks in advance.


Simple Random Number Generator Infinite Loop

I am having trouble with my program in class, as it is infinitely choosing a new random number when I am trying to use the srand() function. I would appreciate some help as I am stuck on this. I am trying to get the code to randomly select one number, and then the user has to guess what the number is. However, my programs random code changes everytime the user is incorrect.  // Game Module  void header(); int menuchoice(); void storytime(); int enter = 0; int number = 0; void exit();  void Game2(); int Random_Number(); int selection = 0;  int main() {   // Declarations   int game1 = 0;   int game2 = 0;   int game3 = 0;   int choice = 0;    header();    menuchoice();    return 0; }  void header() {   cout << "Welcome to the Sprengel Game Emporium!" << endl << endl; }  int menuchoice() {   int choice;    cout << "Press 1 and Enter to Play Game 1 - Story Time" << endl;   cout << "Press 2 and Enter to Play Game 2 - Guess the Random Number!" << endl;   cout << "Press 3 and Enter to Play Game 3" << endl;   cout << "Press 0 to EXIT" << endl;    cin >> choice;    if (choice == 1) {     storydata();   } else if (choice == 2) {     Game2();   } else if (choice == 3) {     Game3();   } else if (choice > 3) {     cout << "Invalid Option, please choose again." << endl;     menuchoice();   } else if (choice == 0) {     exit();   }   return 0; }  // GAME 2  void Game2() {   cout << "Welcome to Game 2!" << endl;   cout << "This game randomly generates a number! To win, you have to "           "correctly guess the number between 1 and 10!"        << endl;   cout << Random_Number(); }  int Random_Number() {   srand(time(NULL));    int selection = 0;   int number = rand() % 10 + 1;   cout << number << endl;   cout << "Please guess a number between 1 and 10!" << endl;   cin >> selection;    if (selection == number) {     int choose = 0;     cout << "You are correct!" << endl;     cout << "Press 1 to Play Again, Press 2 to return to the Game Menu, and "             "Press 3 to Exit the Game"          << endl;     cin >> choose;     if (choose == 1) {       Random_Number();     } else if (choose == 2) {       menuchoice();     } else if (choose == 3) {       exit();     }   } else if (selection > number) {     cout << "Incorrect! Try guessing lower." << endl;     Random_Number();   } else if (selection < number) {     cout << "Incorrect! Try guessing higher." << endl;     Random_Number();   }   return choice; }  void Game3() { cout << "Welome to Game 3!" << endl; }  void exit() {   cout << endl << endl;   cout << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << endl << endl;   cout << "Cya Later! Thanks for Playing!" << endl << endl;   cout << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << endl; }


I want to print an array with a toString() method in java, but without brackets and commas (so, not with Arrays.toString())

I have a toString() method that goes through a for loop and is supposed to print each element in the array, but I'm still getting the location when I call the toString() method.  How could I fix this? public void toString(String[] num) {             for (int index = 0; index < num.length; index++) {         System.out.println(num[index]);     } }  public static void main(String[] args) {     //test negative number, output should be -10000000     int largeNum1[] = {-2, 0, 0, 0, 0, 0, 0, 0};     int largeNum2[] = {1, 0, 0, 0, 0, 0, 0, 0};     int numSize1 = (largeNum1.length + largeNum2.length) + 1;     int[] sum1 = new int[numSize1];     int[] answer1 = sumNumbers(largeNum1, largeNum2, sum1);     System.out.println(largeNum1.toString() + " + " + largeNum2.toString() + " = " + answer1.toString()); }  Instead of -20000000 + 10000000 = -10000000, my output is [I@182decdb + [I@26f0a63f = [I@4361bd48


I am not a native speaker myself and would like to inquire about a particular usage of "this".   Here's an example from the Corpus of Contemporary American English  : "Anyway, the first mistake I made was I thought the finger bowl was the soup. So I went to get my spoon and to go to the finger bowl and this lady nicely said, that's not the soup. I said, oh, OK.".    My question is: how is "this" understood in the context above (highlighted with bold)? It seems, from the broader context, that it occurs for the first time in the narration, so is it correct that it can be substituted with "a/an" in this context? How frequent is this phenomenon? Is there a special condition for using "this" in that way in narration?


I'm attempting to install Gentoo through VirtualBox. Well, technically I've already installed it, but I still need a WM. While trying to emerge Xorg , I ran out of space, and so I resized the /dev/sda3 (main) partition by deleting it and creating a new one, but unfortunately, the /dev/root partition(?) doesn't resize with it, and I can't modify it with fdisk (can't open/detect it). I've read it's a symlink, so I guess it's not technically a partition? I don't know. I'm using Systemd rather than OpenRC if that matters (probably doesn't but I felt like I should mention it). With df -h I'm getting Filesystem    Size  Used  Avail  Use%  Mounted on /dev/root     3.7G  3.5       0  100%  /  (Can't post whole thing since I don't have mouse support installed)


Possible to import a python file without knowing it's name?

quick question here about if this is possible or not. For a command line script I'm writing, I want the user to be able to enter a .py file as an argument, and I would like the script to import the .py file and seek out a specific variable contained inside.   My problem is that python expects an import statement to have the actual filename as the variable, which in my case I can't do (since I don't know the name of the .py file before the user inputs it):      elif training_file.suffix == '.py': # we expect partially annotated text here         import training_file   This doesn't work, and if I try to open it like I would a regular file, like so...      elif training_file.suffix == '.py': # we expect partially annotated text here         with open(training_file, 'r') as training_file:             for line in training_file:               ...   ... it just reads the raw text (as would be expected), and doesn't register python formatting. Is there a way to import and interact with a python file without knowing the name of that python file before starting the program? Is there a different way of doing this?  Thanks so much for any tips or guidance.


help you do (or) to do something - difference

I know that generally native speakers say it usually like this (without the to):     These exercises will help you get better at math.   Can you help me move these boxes outside?   But sometimes, though very rarely, I see it used with the to. Like in this example:     This is just so that you won’t forget that you shouldn’t change these values after you first create them. It’s purely optional, but in the pages ahead you’ll see how useful all-capped constants can be to help you to better read and understand your programs.   I still don't really understand the deference between the two usages and don't know when we should use one over the other. Could you please help me get this straight once and for all?


over my latest 2-year UK visa, I traveled 4-5 times to UK. My son is a permanent resident in the UK. Im applying for a new UK visa and only 3 years are left in my passport before it expires. Can I apply for a 10 year UK visa? I am a female Egyptian University professor. I am over 60 years old.


Why is the summer, in the temperate latitudes, in average, hotter that the spring?

It is common knowledge that the transition from the Spring to the Summer season occurs in the Summer Solstice when the "Sun reaches its highest excursion relative to the celestial equator on the celestial sphere" (as stated in ).  It is also stated in Wikipedia'  page: "Days continue to lengthen from equinox to solstice and summer days progressively shorten after the solstice, so meteorological summer encompasses the build-up to the longest day and a diminishing thereafter, with summer having many more hours of daylight than spring."  My question is: why is the summer, in the temperate latitudes, in average, hotter that the spring?


I have two files   file A  >TCONS_00000075 gene=XLOC_000030 CCGCCGGCTGCTGCGCGCACCGACTTGTCACCACCCCAGCACGTCCTCCACGTATACAAGCGCTACGGTC CACCGCGGCAGCGTCGACGTCCTTGTCCGCAAACATGGTGGTGGCAGCTTCCTCATCGAGCAGCAGCAAC TCATCCTCGAGGGGAAGGGCCCAGAGCTTCTAATCCTACACGGCAACAACACTTTATACTTGTGTATAAT >TCONS_00013830 gene=XLOC_006942 AAACACGGTTAGCTTGATATCACTGATGATCGATGGGATAGAGTCAGAGAACATCTTGTTCCTTAATTAT CTCAATTCGTGAGATGTTGGACGATATCTCGATAGGGAGAGAAGGCGTTGTTCTGGATCATCACCGTGCT CAGGGGTCAATTTTACACTGAGCAGGGGCAAAGACGTAAATTTTTACTTCCTTACTTGAGTAAGAGCAAG TTTAATACTACAACCAACTACTACAAACTCCAATTCATTTATAACCAATCTAATAACTTATTCATACAAT AGTTACCTATAAGCATATACTACACACACAACGTATTGGAATCCTCCGTGCTGCTGCTGGCTACAGATCT   file B  XLOC_000030 XLOC_000059 XLOC_000210   FileA is a FASTA sequence file. Each line starting with > is a sequence name and the lines beneath it are the sequence. I want to extract the sequences of those IDs mentioned in FileB. In this case:  file C  >TCONS_00000075 gene=XLOC_000030 CCGCCGGCTGCTGCGCGCACCGACTTGTCACCACCCCAGCACGTCCTCCACGTATACAAGCGCTACGGTC CACCGCGGCAGCGTCGACGTCCTTGTCCGCAAACATGGTGGTGGCAGCTTCCTCATCGAGCAGCAGCAAC TCATCCTCGAGGGGAAGGGCCCAGAGCTTCTAATCCTACACGGCAACAACACTTTATACTTGTGTATAAT   I tried this command:  perl -pe 's/\n//; s/>(.*)/\n>$1\t/' A |grep -f <(awk '{print $1}' B) |sed 's/\t/\n/' | fold -w 60 > C   but it's not working.


My understanding of "is" is that it checks if the two operands point to the same structure. I am unsure why this is true   x = 1 y = 1 y is x   and why this is false  l1 = [1,2,3] l2 = [1,2,3] l1 is l2   Similarly, why is the first not false as well? Is it saying that when I initialize x, it creates the object with int value "1", and from now on, whenever I initialize variables to have "1", it will point to the first object.    If so, I am curious why its not the same with the second example.


Where does the output of a script that was run at startup go?

I have a script which is run at startup from rc.local, I don't redirect the output anywhere.  When I first wrote it, I ran it in a shell, it worked as I expected and continually poured characters out of stdout to the screen so I added path/to/myscript to rc.local and didn't think anything more of it.  Recently when I ran a php script at the command line via an SSH shell I noticed when there were connection issues (between my terminal and the SSH server) this meant that stdout from the point of view of the php script had no where to go and the script would get 'stuck' until the connection improved and stdout once again started to flow.  This made me wander if I should actually be directing the output of my startup script somewhere, at least to /dev/null if I'm not interested in the output.  But the main question is what are the consequences of not doing so? is there some buffer that will become 'clogged' and prevent the script from working or will the output just be ignored?


please, someone, solve this recurrence relation $$T(n)=T(n-1)+2n+3T(n-3)$$ if $$(T0=1,T1=2,T2=3)$$


How to check whether the value of binomial coefficient nCr is even or odd ?


How do I make a Theme from scratch for Unity?

I'd like to make a theme from scratch for Unity.  What knowledge and information/skills are needed? Are there any tools or templates out there for something like this already? I don't have any Python experience so tools biased towards beginners are preferable.


I wrote code below where I use the Id to fill in the name. namespace ConsoleApp1 {     class test     {         public int Id { get; set; }         public string Name { get { return Name; } set { Name = Id.ToString(); } }     }     class Program     {         static void Main(string[] args)         {              List<test> t1 = new List<test>();              t1.Add(new test() { Id = 1 });             t1.Add(new test() { Id = 2 });             t1.Add(new test() { Id = 3 });             t1.Add(new test() { Id = 4 });             t1.Add(new test() { Id = 5 });              Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(t1));         }     } }  When the code runs, an exception is raised:  Exception of type 'System.StackOverflowException' was thrown`.  How resolve problem?


My sister-in-law's parents arrived from China on tourist visa last December.  Due to worldwide concerns about the coronavirus, she filed i539 to extend their stay by 6 months.  The application is still pending, and it will probably be a while before they get to it.  Because she is still concerned about them traveling during this pandemic, she wants to know if it's feasible to apply for another 6 month extension while the current one is still pending. Also, do they have any other options in the current situation?  Under the current circumstances, would it be possible to apply for green cards for them, without them having to go back to their home country, if she sponsors them?


Display other SE site links in the linked questions sidebar

Maybe using a different font or a small site-icon.    Hijack edit: ~~~~ jco - Based on this discussion:   Example. In the  is a link to a Super User post. The current "linked questions" box doesn't show the SU link, but it could. In addition, that site should have a linked question to this question across the intra-site network. This opens a few new possibilities.  One example is when  links back to questions on Stack Overflow, with enough time we can start to see where the actually hottest "resource" questions are, not just from within SO proper, but from across the network. This adds some new insights on how the links are farmed across the network, and within the site itself.  Obviously this requires some specific data processing, such as "this thread has a link to another SE site" but those can be updated per-post-update, in the already present process queue. Chat has already shown that there's some API for grabbing the related site information, so that could be put to use here for fetching the right slug and favicon, and the process that requests can insert a slug-like link into an arbitrary non-site-specific DB that could be used for cross-network lookups on post update (aka: update on SO Q causes it to briefly check that table for the SO Q #, if found, spawn off updates for each record in that table to the other sites).  These are all just ideas on how to accomplish it, given what is known about the SE architecture.  Here's the benefits, as best I can figure them now:   promotion of related sites in a totally organic fashion determining how-referenced a question really is (think English Language and Usage vs English Language Learning or GameDev vs Arqade or SO vs Programmers) determining if one person is engaging in spammy behavior by constantly linking to their own questions (this can be a useful mod-tool at times, I expect) determining what meta questions get linked to from non-meta sites frequently (potential about-page changes or the like) potential traffic spike or other behavioral analysis in a longer term (possible example: most linked topics come within the first 24 hours or after more than 1 month?)   Note I would like to stress that this request is not about extra-network links, this is strictly for in-SE-network links, which we already have some auto-title-slug-recognition-generation for in posts and this would only extend the existing process a little bit.   Scouring other sites for useful information and including in the sidebar / analytics is beyond the scope of this request.


Error: Extra }, or forgotten \right while keeping the correct hight of brackets

The following works fine,  \begin{equation*}     \begin{aligned}         \begin{split}             \left\| \left(a - c\right) - \frac{|b|^2\cdot |d|^2}{|b \times d|^2} \left[                                      \left(\left(a - c\right)\cdot \left(\frac{b}{|b|} - \frac{b \cdot d}{|b|\cdot|d|} \cdot \frac{d}{|d|}\right)\right) \cdot \frac{b}{b} \right.\right. + \\             \left.\left. \left(\left(a - c\right)\cdot \left(\frac{d}{|d|} - \frac{b \cdot d}{|b|\cdot|d|} \cdot \frac{b}{|b|}\right)\right) \cdot \frac{d}{d}              \right] \right\| = \frac{|(a - c) \cdot b \times d|}{|b \times d|}           \end{split}     \end{aligned} \end{equation*}   but if I add &, it throws an error   \begin{equation*}     \begin{aligned}         \begin{split}             \left\| \left(a - c\right) - \frac{|b|^2\cdot |d|^2}{|b \times d|^2} \left[                                      & \left(\left(a - c\right)\cdot \left(\frac{b}{|b|} - \frac{b \cdot d}{|b|\cdot|d|} \cdot \frac{d}{|d|}\right)\right) \cdot \frac{b}{b} \right.\right. + \\             & \left.\left. \left(\left(a - c\right)\cdot \left(\frac{d}{|d|} - \frac{b \cdot d}{|b|\cdot|d|} \cdot \frac{b}{|b|}\right)\right) \cdot \frac{d}{d}              \right] \right\| = \frac{|(a - c) \cdot b \times d|}{|b \times d|}         \end{split}     \end{aligned} \end{equation*}   According to many posts, I tried several combinations of \begin{equation*}, \begin{aligned}, \begin{split} and \begin{multline*} but without success. What do I miss?  Expected result    (Without & the first square bracket is also ok, but the alignment is destroyed)  Comment, why this is not a duplicate of other questions: To me, the crucial point of the answer is, that you need an extra \vphantom{\frac{b}{b}}\right.\right. and you have to add another & \left.\left. line.


How do i get rid of my vertices and make my model just a blank model

I want to know how i can make my model just a blank model with no vertices so that it will be easier for me to create other parts. i already checked this tread and it didnt help: Here is a pic of what it looks like right now:


What is the usefulness of cycles of f(x) in Pollard's rho factorization?

I've been getting myself acquainted with the Pollard Rho factorization from this page: .  I think I understood well almost everything that has been said, but one thing I'm confused about - the fact that we use f(x) = x^2 + a mod N to generate pseudo-random numbers for checking.  What is the usefulness of iterating f(x) and it's cycles?


I have below method that does work Okay but I believe we can make it better by some how getting rid of these if conditions, but not sure how?   protected void SaveSession<T>(T sessionProperty, Management management) where T : class         {             string propertyType = typeof(T).Name;              if (propertyType.Equals(typeof(A).Name))             {                 management.A = sessionProperty as A;             }             else if (propertyType.Equals(typeof(B).Name))             {                 management.B = sessionProperty as B;             }             else if (propertyType.Equals(typeof(C).Name))             {                 management.C = sessionProperty as C;             }              Session["mysession"] = management;         }   I am using latest C# version 7.0


Java - How to change a method variable in the calling class?

I'm trying to implement this mergeSort() method without a return, but it fails to store the variable to the calling method. For example, when I call mergeSort(head) on the first head: {3, 2}, the method will print {2, 3} meaning list actually is sorted correctly, but in the method that called mergeSort(), head remains {3, 2}. Is there any way in which I can update the variable in the calling class as well?  Comments on the algorithm itself are appreciated as well, but please keep those in the comment section.      @Test     public void testMergesortUnsortedList() {         List<Integer> sequence = new ArrayList<>(Arrays.asList(3, 2, 1, 5, 4));         MergeSort.mergeSort(sequence);         System.out.println("final: " + sequence);         assertEquals(Arrays.asList(1, 2, 3, 4, 5), sequence);          sequence = new ArrayList<>(Arrays.asList(3, 2, 1, 6, 5, 4));         MergeSort.mergeSort(sequence);         assertEquals(sequence, Arrays.asList(1, 2, 3, 4, 5, 6));     }      import java.util.ArrayList;     import java.util.List;      public class MergeSort {          public static <E extends Comparable<E>> void mergeSort(List<E> list) {             if (list.size() > 1) {                 // the first half of the list (always smaller than or equal to tail)                 ArrayList<E> head = new ArrayList<>(list.subList(0, list.size() / 2));                 // the second half of the list                 ArrayList<E> tail = new ArrayList<>(list.subList(list.size() / 2, list.size()));                 //temporary list                 ArrayList<E> temp = new ArrayList<>();                  if (head.size() > 1) {                     mergeSort(head);                 }                 if (tail.size() > 1) {                     mergeSort(tail);                 }                  // while either head or tail still has a member                 while (head.size() > 0 || tail.size() > 0) {                     // if both head and tail still have members                     if (head.size() > 0 && tail.size() > 0) {                         // if head is smaller than tail                         if (head.get(0).compareTo(tail.get(0)) < 1) {                             temp.add(head.get(0));                             head.remove(0);                         } else {                             temp.add(tail.get(0));                             tail.remove(0);                         }                         // if only head has members                     } else if (head.size() > 0) {                         temp.add(head.get(0));                         head.remove(0);                         // if only tail has members                     } else {                         temp.add(tail.get(0));                         tail.remove(0);                     }                 }                  // overwrite the old list with the sorted list                 list = temp;                 System.out.println(list);             }         }      }


How to add items to a collection while consuming it?

The example below throws an InvalidOperationException, "Collection was modified; enumeration operation may not execute." when executing the code.   var urls = new List<string>(); urls.Add("http://www.google.com");  foreach (string url in urls) {     // Get all links from the url     List<string> newUrls = GetLinks(url);      urls.AddRange(newUrls); // <-- This is really the problematic row, adding values to the collection I'm looping }   How can I rewrite this in a better way? I'm guessing a recursive solution?


If $m$ varies then find the range of $c$ for which the line $y=mx + c$ touches the parabola $y^2 = 8(x+2)$ .  My Attempt:  Put the value $y = mx + c$ in the parabola equation and then done $\Delta = 0$ or $\Delta >0$  I am getting $16/(m^2 + 8m) >0$  But in this, how do I neglect $m$?


Reviving someone who died due to a reduction of his maximum hit points

Some creatures, such as the Specter (MM, p. 279), have a feature that reduces a victims maximum hit points:     Life Drain. Melee Spell Attack: +4 to hit, reach 5 ft. , one   creature. Hit: 10 (3d6) necrotic damage. The target must   succeed on a DC 10 Constitution saving throw or its hit point   maximum is reduced by an amount equal to the damage taken.   This reduction lasts until the creature finishes a long rest. The   target dies if this effect reduces its hit point maximum to 0.   Say someone dies from this effect, and his/her companions want to revive the victim. What would, therefore, happen if they tried this with a spell such as Revivify, Raise Dead or Resurrection, neither of which mention a removal of such an effect? (True Resurrection would remove the effects, but that's a 9th level spell. Dying from max hit point reduction when you have access to level 9 spells seems unlikely).  Raise Dead in particular states:     This spell doesn’t, however, remove magical diseases, curses, or similar effects; if these aren’t first removed prior to casting the spell, they take effect when the creature returns to life.   Hit points can only assume a value between  0 and the maximum value (PHB, p. 196).  Would a creature with 0 maximum hit points that is revived therefore return with 0 hit points - alive, but unconscious? Or is it impossible to revive the creature?


Showing that an indefinite integral of a function with a jump discontinuity is not differentiable at the jump discontinuity

I was trying to help this person with his question.    Showing continuity was relatively easy, but I'm having trouble with showing that the function is not differentiable at $c$.  I tried using the hint and using one-sided derivatives, but all I got was that $F'(x) = f(x)$ for all $x\neq c$, and all I managed to show from that was that $\lim_\limits{x \to c} F'(x)$ does not exist. But all that showed was that the derivative of $F$ wasn't continuous at $c$, not that $F$ wasn't differentiable at $c$.   So I tried going down to Riemann sums. But I got stuck when showing that the last bit was a contradiction, since the absolute value of an integral is at most the integral of the absolute value of the integrand, not the other way round. I was wondering if it's salvageable, or if there are other errors I didn't see. Thanks!


How can i select value id from a tr inside of a iframe?

I need to get value id from a tr inside of a iframe but i cant do that because i cant get values from a iframe.   I have the next iframe:

   I need to get "value_1" when I clicked above tr.   Any ideas?


$f[A\cap{B}]\subseteq{f[A]}\cap{f[B]}$ but show proper inclusion

I've been working these set theory problems for homework and I think I'm getting the gist of them, but there seem to be little nuances that are giving me issues.  For example, as mentioned in the title i'm trying to prove $$f[A\cap{B}]\subseteq{f[A]}\cap{f[B]}$$ So I say let $f$ be a function on sets $A$ and $B$ and let $x\in{A\cap{B}}$.  Then $f(x)\in{f[A\cap{B}]}$.  But $$f[A\cap{B}]=f[\{x|x\in{A} \text{ and } x\in{B}\}=\{f(x)|x\in{A}\text{ and }x\in{B}\}=f[A]\cap{f[B]}$$ Hence, $f(x)\in{f[A]\cap{f[B]}}$, and therefore, $f[A\cap{B}]\subset{f[A]}\cap{f[B]}$.  I believe this is right, but the remainder of the question asks me to show that proper inclusion can occur.  I can't use the iff scenario with because that would show equality not the proper subset case.  What am i missing?


I want to extract the total page range of a pdf using using bash commands. Is it possible to do.


biblatex remove space after serie in reference

I´m creating a new bibliography style by customizing the standard.bbx file for my master thesis. So far I had no big troubles but now I want to adjust the macro series number since this should be in parentheses. Due to the lack of information I somtimes only have a seriesor the number.   So far it works out well, unless I only have the series. Then a space between the last word of the series and the closing parentheses appeares.  Here is my new macro  \newbibmacro*{series+number}{%     \iffieldundef{series}% Überprüfen ob series vorhanden         {}         {   \setunit{\addspace\bibopenparen}             \printtext{Reihe \addcolon\space}%             \printfield{series}             \iffieldundef{number} % Überprüfen ob noch Bd kommt                 {\printtext{\bibcloseparen}}                 {\setunit{\addcomma\space}}         }%     \iffieldundef{number}%         {}         {   \iffieldundef{series}%                 {\setunit{\addspace\bibopenparen}}                 {}             \printtext{Bd \adddot}             \printfield{number}%             \printtext{\bibcloseparen\space}         }   \newunit}   And here is the MWE  \RequirePackage{filecontents}  \begin{filecontents*}{my_bibfile.bib}     @incollection{Akyar.2008,         author = {Akyar, Bedia},         title = {Dual Quaternions in Spatial Kinematics in an Algebraic Sense},         pages = {373--391},         bookpagination = {page},         publisher = {T{\"u}bitak},         isbn = {1010-7622},         editor = {{Scientific and Technological Research Council of Turkey}},         booktitle = {Turkish journal of mathematics},         year = {2008},         abstract = {},         shorthand = {AKYA08},         location = {Ankara},         edition = {32},         number = {4}     }      @book{Angeles.2007,         author = {Angeles, Jorge},         year = {2007},         title = {Fundamentals of Robotic Mechanical Systems},         url = {http://site.ebrary.com/lib/alltitles/docDetail.action?docID=10229254},         edition = {Third Edition},         publisher = {{Springer Science+Business Media LLC}},         isbn = {0-387-29412-0},         subtitle = {Theory, Methods, and Algorithms},         shorthand = {ANGE07},         language = {eng},         location = {Boston, MA, USA},         series = {Mechanical Engineering Series},         abstract = {},         doi = {10.1007/978-0-387-34580-2},         file = {http://gso.gbv.de/DB=2.1/PPNSET?PPN=546653987},         file = {http://external.dandelon.com/download/attachments/dandelon/ids/DEAGI363052149B0CFDDDC125715B0045ACDA.pdf},         file = {http://zbmath.org/?q=an:1140.70001}     } \end{filecontents*}  \documentclass[fleqn]{scrreprt}  \usepackage[scaled]{helvet} \renewcommand{\familydefault}{\sfdefault}  \usepackage[T1]{fontenc}  \usepackage[utf8]{inputenc}  \usepackage[style=alphabetic, % Use this style  isbn=false, doi=false, url=false, maxbibnames = 4, minbibnames = 3, language = ngerman, giveninits=true]{biblatex}   \bibliography{my_bibfile}  \begin{document}  \nocite{*}  \printbibliography  \end{document}   The first reference only has a number (Here (Bd. 4)). The second has a series. But bevor the closing parentheses there is a unnecessary spacing.


I'm trying to answer the following question from the book :  Let $X_1,X_2,\dots$ be a sequence of sub-gaussian random variables, which are not necessarily independent. Show that   $E\bigg[ \max_i \frac{|X_i|}{\sqrt{1 + \log i}} \bigg] \le CK$,  where $K = \max_i \|X_i\|_{\psi_2}$. Deduce that for ever $N \ge 2$ we have   $E\bigg[ \max_{i \le N} |X_i| \bigg] \le CK \sqrt{\log N}$.  I've tried to figure out what is the distribution of the maximum of Gaussians, but I'm reaching only inequalities that that don't help me answer the question.   I've also seen a similar question .  Does anyone have a clue or something to start with in order to answer this question?  Thanks!


Proving that a number is divisible by $2$

How can I prove that: $$\frac{1}{2} \left(3 n^2-2\right) \left(3 n^2-1\right) \left(3 n^3-3 n+1\right)\in\mathbb{N}$$ When $n\in\mathbb{N}$?


If Diary Tom Riddle Had Succeeded, How Would He Have Strengthened the Present Day Voldemort?

Specifically, if diary Tom Riddle had succeeded, how would he have strengthened the present day Voldemort?   In , @Pearsonartphoto gives a quote from J.K. Rowling in his answer regarding what would have happened if Tom Riddle had succeeded in fully manifesting from his diary memory form to a full human form.     Q: In Harry Potter and the Chamber of Secrets, what would have happened if Ginny had died and Tom Riddle had escaped the diary?   J.K. Rowling: I can’t answer that fully until all seven books are finished, but it would have strengthened the present-day Voldemort considerably.    - FAQ - Wayback Machine   As well, I've read all seven Harry Potter books many, many times and I haven't been able to ferret out any overt details regarding exactly how the present day Voldemort would've been strengthened by co-existing with diary Tom Riddle.  Specifically, how would the reincarnation of 16-year-old Tom Riddle have strengthened the 67-year-old present-day Voldemort at the time of Chamber of Secrets?  ★ I would love an answer from canon, any of J.K. Rowling's interviews, or Pottermore, or an answer constructed within the spirit of canon.


Use of "an" for a word not starting with a vowel

I've encountered this quite a few times now. I'm aware that usually words, starting with a vowel require an "an", words not starting with a vowel are preceded by an "a".  Sometimes words start with a consonant, but when spoken out loud, it sounds like a vowel, for instance an hour.  Is the use of "an" in this case correct due to the sound it would make when spoke out loud?


Why sphere minimizes surface area for a given volume?

I was studying surface tension recently. Rain drops or bubbles of any kind which form are always of a spherical shape.   This is because the liquid tries to minimize the surface area as the molecules on the surface have higher potential energy. The shape which most efficiently manages to do this is a sphere. This is the part I didn't understand; how exactly do we reach the conclusion that a sphere would be the most efficient shape? Why couldn't it be any other shape?


While browsing some physics websites, I saw that to make an object reach the speed of light, it requires infinite energy and talked about its relation with Einstein's famous equation $E=mc²$. However, they didn't show how they reached the conclusion that it requires infinite energy to reach the speed of light. I would like to know how it was proved.


SQL Server 2019 Always On using Distributed Network Name

We're running a couple SQL servers in Azure that are set up with an Always On availability group and Windows Failover Clustering. The servers are Windows 2019 and we're running SQL Server 2019. When we set up the cluster, it was set up to use a Distributed Network Name instead of a static cluster IP address. Thanks to this we shouldn't need an internal load balancer according to these notes: .  I'm struggling to understand exactly how this works though. Based on what I read, it seems like our connection strings will point to the DNS name of the cluster (let's call it AgCluster). If I look in DNS, there is an A record for AgCluster pointing to sql1 and another pointing to sql2. When I use AgCluster in my connection string it seems to always connect me to the primary server, even if I have ApplicationIntent=ReadOnly set. When I query @@SERVERNAME I always get the same server.  So with the Distributed Network Name setup, what should I use in my connection strings to make sure read/write queries go to the primary and read only go to a secondary? Any guides on setting this up in general would be helpful. Thanks!


Is having a good yearly GPA (over 3.0) for 2 years useful for Masters even if my overall GPA is low (under 3.0)

I am going to graduate in 6 years from a 4 year major (Applied Mathematics) due to health reasons (diabetes, depression etc.)  I passed 70 credits so far, with 79 more to go. Average of my 70 credits is 2.45 (22 CC/2.0 and 16 DC/1.5 due to low performance) and to achieve something over 3.0, rest should be 3.5 on average and maximum GPA I can reach is 3.25 if all 79 credits are 4.0 on average.  Not impossible now that I am all better and more organized, it just stress me out to think it is all over if I don't do perfect, and I really want to do Masters especially abroad (I am in Turkey)  I am in a good school, have a good relation with teachers and do well when I apply myself to classes.  Problem is all I hear is "3.0 or nothing" for Masters in a good place.  If it is essential I can try to increase my GPA even more by taking classes next years first semester (I will likely pass all first semester classes this year but second semester will be left) for classes I passed with lower grades (1.5-2.0)


what is the maximum level of reputation earned per day?

is there any limits on maximum number of reputations earned per day. if there is limit, what happens if the user crosses that limit. Will it be given on the next day or it will cancelled ?


Issues with ajax and JavaScript function

I got this problem where my JS-functions won't work/run after i rebuild my HTML page with some new values from my XML-file. To not make this post too long i gathered the HTML/CSS in jsfiddle:  (I'ts not fully functional since i don't know how to add xml/ajax stuff to jsfiddle)  Basically, there is an image and a checkbox, when the checkbox is checked then the image gets the class "markedImg" which have a opacity value of 1. This doesn't work when i try to rebuild the html with values from an XML file.  I do the request like this:  function doRequest(target) {     if (XMLHttpRequest) {         request = new XMLHttpRequest();     } else if (ActiveXObject) {         request = new ActiveXObject("Microsoft.XMLHTTP");     } else {         return false;     }     request.open("GET", target, true);     request.send(null);     request.onreadystatechange = function () {         if ((request.readyState === 4) && (request.status === 200)) {             createHTML(request.responseXML);         }     }; }   Sending "target" parameter from an addeventlistener  categoryMenu.addEventListener("change", function () {     if (categoryMenu.value === "Flower") {         doRequest("categories/imgcat0.xml");     }     if (categoryMenu.value === "Buttefly") {         doRequest("categories/imgcat1.xml");     } });   And then i run the function "createHTML", which rebuilds the html using the values from XML files  function createHTML (XMLcode) { var imgURL = XMLcode.getElementsByTagName("image"); var title = XMLcode.querySelector("title"); var html = ""; imgForm.innerHTML = "";  html += '
' + title.firstChild.data + '
';  for (var i = 0; i < imgURL.length; i++) {     html += '
';     html += '<input type="checkbox" align="middle">';     html += '
';     html += '
';     html += '
'; } imgForm.innerHTML = html; }   And so far everything works, but when i add the function to add the "markedImg" class, it doesn't run on the newly created HTML elements. Nothing happens with this function basically. The function itself works, which you can see in the jsfiddle example, but it's after you change the category and the "doRequest" functions runs that it doesn't work.  checks.forEach(function (checkbox, index) { checkbox.onchange = function () {     if (this.checked) {         unmarkedImg[index].classList.add("markedImg");     } else {         unmarkedImg[index].classList.remove("markedImg");     } }; });   The XML is very simple, just a title and source to the images:  <imagecategory>     <title>Butterfly</title>     <image>         <url>http://i.imgur.com/LY1Mq8k.jpg</url>     </image> </imagecategory>   Sorry if the post got a bit long.. Hopefully this makes sense to someone. Thanks!


Extra page while using simultaneously minitoc and float

I have a problem for a while now: there is always an extra page at the end of my documents. I notice that this happens when I use simultaneously minitoc and float.  I track this issue down to this minimal code :  \documentclass{report} \usepackage{float} \usepackage{minitoc} \begin{document} \end{document}   I can compile this without any error and it generates an empty page with page number 1. (I use TeX Live 2013 on Linux, and I happens both with LaTeX and pdfLaTeX).  How can I simultaneously create tables of content by chapter and use the [H] option in \begin{figure}[H] ?  Update after egreg answer: here is a new minimal example with some text, that creates always a new page.  \documentclass{report} \usepackage{float} \usepackage{minitoc} \begin{document} \include{ch01} \end{document}   You can put anything in ch01.tex and an extra page will be created.


Do you stop earning reputation points for editing a post

Do you stop earning reputation points for editing at a certain point?  Today I finally made it to 2000 points on StackOverflow, enough to review suggested edits.  Shortly afterwards, I edited a post, which was approved, but didn't receive the usual 2 points.


Does The Character of Jar-Jar Binks Serve An Actual Purpose in Star Wars?

I'm not asking about just an in-universe explanation.  I'm talking about from the point of view of a writer or of someone analyzing a film or written story.  I recently re-watched all six Star Wars movies and the only actual act Jar-Jar performed was when he filled in for Padme in the Senate and supported giving emergency powers to Palpatine.  This isn't an action that had to come only from Jar-Jar.  Any of a number of Senators could have been bribed or blackmailed into doing this.  He does not work effectively as a foil to other characters since he is too extreme and doesn't really contrast directly with anyone.  (And if he's a foil for the Jedi, then having Qui-Gon act as his foil by grabbing his tongue really breaks that possibility up.)  I know he's the most reviled character in Star Wars, so I don't want to get into hate speeches or anything.  I just want to know: Does the character of Jar-Jar Binks serve any actual purpose in Star Wars?


Secure Download (HTTPS) for Ubuntu Desktop

I know this a similare question was already asked in 2016 but I feel that the answer is quite insufficient:   There should be very clear path to securely acquire ubuntu instead of the now default of downloading it from http source.  Even MD5 checksums for the images are only accessible through http. Torrent link, same problem.  Maybe I am missing something, but it really looks like there is no way of getting a proper ubuntu copy securely.  Even with https mirrors, without a secure way of getting the MD5 from canonical, how can we trust that the image has not been tampered with?


How can a belief in God be reconciled with modern science?

My question is this: How can someone living in such a world and age possibly believe in God?   To elaborate, I think I understand where religion and the belief in supernatural stems from. It was our way of explaining things, and perhaps controlling humans. We didn't know how the Sun rises and sets, or what causes the tides, or where rain comes from, etc. So we attached a supernatural to them and did all sorts of crazy things.   Fast forward to 2015 and still so many believe in God. As a scientist, I would like to think humans will eventually switch to a belief purely based on empirical evidence one day. Even religious people must see how there is zero evidence that supports God existing and how science dominates our lives.   Are there philosophers who have attempted to explain how belief can possibly still persist even in the face of the advance of modern science?


Many of the Ringbearers (particularly those who carried it longer) used the word "precious" to describe it. Isildur described it as:     "But for my part I will risk no hurt to this thing: of all the works of Sauron the only fair. It is precious to me, though I buy it with great pain."   Bilbo himself used it at least once, when arguing with Gandalf about leaving it behind when he was leaving Bag End (this exchange and the lines were different in the movie, but the word is still there):     "Well, if you want my ring yourself, say so!" cried Bilbo. "But you won’t get it. I won’t give my precious away, I tell you."   And Gollum used it incredibly frequently, almost as if it was the ring's name. It was even his last words:     "Precious, precious, precious!" Gollum cried. "My Precious! O my Precious!"   So my question: Why "Precious"? It wasn't part of the inscription. It wasn't part of the poem that included the inscription. Was it somehow part of Sauron's crafting spell? Did Tolkien ever indicate why the Ringbearers would use that word in particular, other than that it sounded good?


Evaluating $\int_{-\infty}^{\infty} e^{-{(x-1)}^2} dx$

$$\int_{-\infty}^{\infty} e^{-({x-1)}^2} dx$$   I tried polar coordinates but couldn't apply the right  variable transformation...


Obtain the joint PDF of $\theta_{1} - \theta_{2}$ and $\theta_{1}$ where $\theta_{1}$ and $\theta_{2}$ are i.i.d $\text{Uniform}[0, 2\pi)$

I have 2 i.i.d Uniform random variables $\theta_{1}$ and $\theta_{2}$ on $[0, 2\pi)$. Here the problem pushes us to consider that all operations are made modulo $2\pi$. My question is how to obtain the joint PDF of $\theta_{1} - \theta_{2}$ and $\theta_{1}$ and then obtain the conditional PDF of $\theta_{1}$ given $\theta_{1} - \theta_{2}$??. For the second part It can be deduced from the first by writing it as the joint PDF divided by the PDF of $\theta_{1}$. But for the first part, A common idea that I saw is to derive the $\text{CDF}(x, y) = P(\theta_{1} - \theta_{2} \le x$, $\theta_{1} \le y$) and then perform derivations respect to $x$ and $y$. Is this a right approach? If yes, how to proceed with CDF especially with our uniform distribution restrictions?


Should bounty be returned if there is NO answer at all? Or your contribution (to the bounty) only?  This is similar to many questions like  (which was a duplicate itself), but I am referring to only when there is no answer at all. Not no upvotes - no answer.


In Minecraft I have a Blast Protection 4 on a diamond chest plate and another diamond chest plate with Protection 3. Which one is better? By the way this armor is going to be used Battling the Wither, the Ender dragon, and the Elder guardian.


How to prove positive semidefiniteness of two matrices through Schur Complement?

Let matrices $X$ and $Y$ be positive semideﬁnite. Show that $X \succeq Y \succ 0$ is equivalent to $Y^{-1} \succeq X^{-1}$.   The teacher tells me that it is easy to prove via the Schur complement. But I could not get his idea. Could anyone help me and give me some intructions? Thanks in advance!