How to force a specific entry to be first in the bibliography?

I'm writing a paper and I need a specific entry in the bibliography go first in the list. The rest of entries should be sorted as usual. I use plain bibliography style and an external .bib file.  For example: there are three authors: Jack Alien, John Bravo and Ally Complex and their papers will be sorted in references as [1] Alien, [2] Bravo, [3] Complex. But I'd like it to be: [1] Complex, [2] Alien, [3] Bravo.  I know, that I can do something like in , but the single .bib file is used in many projects and in those projects the references should be sorted in standard way.  So, how to accomplish, that a specific reference will be placed first in the bibliography?


Extremizing sum and difference of lengths using triangle inequality

We have three points $P=(2,3)$, $Q=(4,-2)$ and $R=(\alpha,0)$. We need to find the value of $\alpha$ such that:    Part 1: $|PR+QR|$ is maximized.  Part 2: $|PR-QR|$ is minimized.  I have  the solution for both. I have understood the solution for case 1 but not for case 2.  Case 1's solution :    Case 2's Solution:   I have understood case 1 completely but in case 2 why was there a need to take the image of point Q? I fail to understand this.


What is the easiest way to resolve apt-get BADSIG GPG errors?

I frequently cross this issue, and always have to google for an answer. Does anyone have a permanent fix for BADSIG errors from apt-get?     W: GPG error:    lucid   Release: The following signatures were   invalid: BADSIG 54422A4B98AB5139   Oracle Corporation (VirtualBox archive   signing key)


Lose reputation when downvoting without a comment

One of my answers was downvoted three times and no one has left a comment, I have no idea why the answer sucks. I would like to know so that I can change it and avoid doing it in the future.  When someone downvotes an answer or question without leaving a comment as to why they think it needs be downvoted, can they lose a point? If they leave a comment then give them back their point.


How can I label an inline math formula/sentence/word?

I tried to label a specific inline math formula in the paragraph. For a simple example,  \section{This is the third section} $a^{2}+b^{2}=c^{2}$\label{formula:1} Formula \ref{formula:1} is useful!   However, I found that \ref{formula:1} corresponds to the number of the section.  So the output by the above codes is 'Formula 3 is useful!' But What I want to label is $a^{2}+b^{2}=c^{2}$, and what I want to get is 'Formula 1 is useful!'. How can I realize it?


Can spilling water on an old PS2 keyboard cause system crash, malfunction and BIOS problems?

I leaked some water in my PS2 keyboard while it was connected. I turned my keyboard upside down to let the water out and didn't think much of it. Within 15 minutes my PC hard disk starts rattling and my monitor says 'no signal'.   When I tried to reboot (multi-boot Windows 7 and 10) the first time it said 'resuming Windows 7' but my PC became so slow and there was a huge delay on typing, if any keypress came through at all.  When I rebooted again it was stuck in a loop, rebooting as soon as it passed the BIOS checks (all HDDs found, no memory problems everything seemed fine).  When I enter the BIOS to check if there is anything wrong the BIOS is almost completely unresponsive. The BIOS screen is messed up as soon as I start pressing keys. It does not respond to most keypresses and instead starts replacing the text on the screen with blank space.  Is there any chance that this is caused by the water spilled on my keyboard? What is the suggested course of action?


Finding the catenary curve with given arclength through two given points

I need to find a general way of expressing a catenary, and I couldn't find anything online.  Is it possible to explicitly find an explicit equation of a catenary which goes through $P_1 = (x_1,y_1)$ and $P_2 = (x_2,y_2)$ (assuming $x_1 \neq x_2$) so that the length of the curve between the two points is $l$ (assuming $l> d(P_1,P_2) = \sqrt{(x_1-x_2)^2+(y_1-y_2)^2}$)?


Toshiba Satellite laptop with Windows 8, I am trying to install Ubuntu 14.04.  I set the Boot mode to CSM boot, turning off secure boot.  The computer boots up on my USB stick to the Ununtu menu, but when I select install or try live the screen goes blank and that's it.  I've tried several times.  So far not a fan of UEFI ;-P  Thanks in advance Jake


What additional thumbnailers are available and how do I install them?

Question:  Ubuntu's file manager, Nautilus, comes with a wide support for file previews. These thumbnails are handled by helper programs called thumbnailers.  The number of thumbnailers that come preinstalled with Ubuntu are limited and thus some more exotic file types aren't rendered by default.   What additional thumbnailers can I install to activate previews in these cases?     Related Q&As:      Note:   Feel free to contribute to this list by editing the community wiki answer. If you do so please follow the guidelines in  and use the preexisting pattern to keep the answer consistent.


Answering users with a space sign in their name

When I write comments to users with a name that does not contain a space I can type:  @Part   And then I would be offered to complete the whole name.  For example if I answer Martin, I can just type:  @Mart   However, if the user name contains spaces like Martin The Great this wont work, and the system will swallow my @Martin The Great in the comment body.   Does anyone know how to overcome this little annoyance?


Function pointer to function with argument of different pointer type. Undefined behaviour?

I couldn't quite find a definitive answer to this one. My function pointer points to two functions that both take a pointer as an argument. Pointers in the same program are all the same size. Is the following still undefined behavior? The key part here is that the pointer argument in the function pointer signature points to an object with a different type.  #include <stdio.h>  struct Test {   int value; };  int func1(void *userData) {   struct Test *test = userData;    printf("func1: %i\n", test->value);    return 0; }  int func2(struct Test *userData) {   printf("func2: %i\n", userData->value);    return 0; }  int main() {   int (*func)(void *) = func1;   struct Test test = {0};    test.value = 9;    func(&test);   func = (int (*)(void *))func2;   func(&test);    return 0; }   It compiles and runs fine on all compilers I have tried. Func1 is certainly correct (albeit not type safe because dealing with void*). However I am not sure about Func2 when being used / casted in this way.  I am basically looking at writing a callback system and want to avoid dealing with void* for safety and avoid code generation for maintenance.  Thanks!


How can I prevent 'grep' from showing up in ps results?

When I  search for some process that doesn't exist, e.g.  $ ps aux | grep fnord                           wayne    15745  0.0  0.0  13580   928 pts/6    S+   03:58   0:00 grep fnord   Obviously I don't care about grep - that makes as much sense as searching for the ps process!  How can I prevent grep from showing up in the results?


Can we drop the requirement of a smooth manifold to be a topological manifold from the definition?

I've seen a definition of a manifold as a set $M$ with an atlas, that is, a collection of pairs $(U_\alpha,\phi_\alpha)$ where all $U_\alpha$ cover $M$ and the coordinate maps $\phi_\alpha$ are compatible. The only notion of topology in this definition is that $\phi_\alpha(U_\alpha)$  is an open set in $\mathbb R^n$ (I guess using the standard topology). In this definition we could identify $U_\alpha$ as an open set, so this defines a topology in $M$.   But most definitions require $M$ to have a topology previously defined so $U_\alpha$ are open sets from the beggining.  How are these two definitions related? It seems that the second definition allows many possible manifolds if we change the topology. Maybe the former is a particular case of the latter?


How to read/view the content of bash function?

We can always view alias value by using alias command. wolf@linux:~$ alias al='grep "$1" file.txt' wolf@linux:~$ alias al alias al='grep "$1" file.txt' wolf@linux:~$   Unfortunately, grep doesn't work with alias. Not sure what was the problem. If you know the problem and solution, please let me know. wolf@linux:~$ al random text abc def jkl random text abc ghi jkl random text wolf@linux:~$   wolf@linux:~$ al abc file.txt:random text file.txt:abc def jkl file.txt:random text file.txt:abc ghi jkl file.txt:random text grep: abc: No such file or directory wolf@linux:~$   So I decided to use function. wolf@linux:~$ func(){ grep "$1" file.txt; } wolf@linux:~$ func random text abc def jkl random text abc ghi jkl random text wolf@linux:~$   It works. wolf@linux:~$ func abc abc def jkl abc ghi jkl wolf@linux:~$   But there is another problem now, I've defined a few functions and forgot their content. Is there a way to view the content of the function, probably something similar with alias al command above?


How do I delete frames that have been place by the auto key frame insertion tool thingy?


Can I configure a Redstone Energy Cell to emit a redstone signal if it is full?

I have  powering a . Is there a way to configure the cell to emit a redstone signal once it's full, so I can use said signal to rurn off my engines so they dont waste lava?


In-line graphics in text to represent a loading bar for language skills in a CV

I would like to add my language skills to my CV in the following manner:    I could of course create an image in Inkscape for every language, and put it in in a most straightforward way, maybe as described in:   But from that thread it looks like it could be automated, so that one maybe could write \loadingbar{4.5,5} and get 4.5 filled circles out of five. Maybe also with some optional parameters for size or colors.  I know it reads a little bit like "solve this problem for me", but especially the part with colors I have no idea how to even approach, and also how to do loops in Latex properly. So if anyone wants to take it on as a challenge I would be more than happy :)


Can I legally obtain a second passport as a US citizen?

I am a US citizen living in the US. Though I am a legal adult and financially independent, I sometimes travel internationally with my parents. Once we arrive at our destination, my parents demand that I turn over my passport and withhold it from me until it is time to return home. This is unsafe because they can stop me from leaving the destination country. Moreover, as a matter of principle, I don't want anyone else to have possession of my passport. (If I refuse to turn over my passport, they will steal it while I'm sleeping or showering, etc.)  Is it possible to legally obtain a second, fake passport to satisfy my parents that I have turned over my passport to them, while keeping my real passport in my possession?  If not, is it possible to obtain a second, real passport in a fully legal fashion? (This is my preference if possible.)


How does the syntax "${foo##*.}" work to get file extensions?

Why does this command work in successfully retrieving file extension name?  file_ext=${filename##*.}


I want to use Python and Flask to serve static html pages which will read arguments from the URL parameters.  I don't know how much data will be passed in with the query strings, and I would like to know what kind of limits there are on Flask's handling of URL parameters? Can I have as many URL parameters as I want, and send as large strings as I want with them?  (The HTML will primarily be requested by a Chrome/Chromium browser)


Krull dimension localization with coefficients

Let $A[x_1, \ldots, x_n]$ be a polynomial ring over an integral domain, $A$. Let $s = a\prod_{1\leq i \leq n}{x_i}^{\alpha_i}$, $a \in A$. What is the Krull dimension of $A[x_1, \ldots, x_n]_s$?


Why is the top bar showing too much rep?

Help! What is happening!?  Here on Meta today I have been having a very strange issue with the top bar. It has been showing 10 more rep than I really have, on all pages which have not been refreshed in a while. When I reload the page however, it goes back to the correct value. Take a look at this screenshot. It says on the top bar that I have 91 rep, but if you look on the dropdown menu or my profile you will see that I only really have 81 rep. (My rep level has already changed, but long after I began writing this.)  This also happened in the dropdown menu of other sites under the Stack Exchange icon. The circled item in the list (Raspberry Pi SE) showed 2 too much rep (in this shot it is the correct value) but all the others had the right value!    I haven't been downvoted, or had anything deleted take a look at this screenshot of my rep history.     I have absolutely no idea what is going on here. What is happening? Has anyone else seen this?


How do I modify my boot options in Windows 8?

How do I modify the boot menu in Windows 8?  There's an entry that I want to remove for a "boot from VHD" option that no longer exists.


To get 128-bit security for RSA, the modulus should be 4096 bits. How was that determined?

My understanding of security level is that for a crypto scheme to have n-bit security means it would take $2^n$ operations to break it.  For something like AES with a 128-bit key, it's straight-forward to see why it has 128-bit security.  What I don't understand is how 4096-bit RSA is estimated to have 128-bit security. How was that estimation determined?


Meaning of see in the following sentence

What is the meaning of see in the following sentence?  With the legislation now before a parliamentary inquiry, Friday's launch of News Showcase in Australia will see it pay seven domestic outlets, including the Canberra Times, to use their content.  does it mean to make sure something happens?


Iphone 4S jailbroken stucked in respring logo

I wanted to free some space on my Iphone 4S and I deleted the fonts folder from system. When I want to restore .ipsw with the iTunes gave me the error 3194 with internet, and 3004 without internet connection. I edited the host filed and nothing worked. I try to use TinyUmbrella but this doesn't work and said something about Java error like "please define exe4j_java_home 32-bit jdk or jre download". What can I do now?


Is there a class of LaTeX that does not divide the pages?  I contextualise a bit the question. Some time ago I was talking with some colleagues and we were discussing that most of the time, nowadays, we look at mathematics articles on screen, instead of paper, and the division in pages sometimes feels "weird", while the structure of a webpage (just scrolling without changing pages) would feel more natural, especially on touch devices and small papers.  So, is there a way to produce such a thing in LaTeX, so a long PDF or DVI that is just a very long page with everything inside?  EDIT: The  is not a duplicate of this, since the solution there renders a document with more than one page.  EDIT 2: It is indeed a duplicate of .


How to automatically shorten names in a folder and its subfolders?

I'm trying to do a backup on my Dropbox folder but I get the following message:  Source Path Too Long The source file name(s) are larger than is supported by the file system. Try moving to a location which has a shorter path name, or try renaming to shorter name(s) before attempting this operation.  My Dropbox folder contains 115752 files, so I wonder if there's a way to automatically shorten the names that are too long? I'm running on Windows 7.


This is a longstanding confusion of mine without a clear answer. Why do we complete measure spaces? Certainly, it is nice to have the property that if some set is of measure zero, then a smaller set also should be so. However, when I looked up the mathematical literature, I am unable to find a single theorem that works better for complete measures. So, the only reasons in support of completing the measure seem to be: 1)., it agrees with our intuition of what can be neglected, 2)., the Caratheodory extension process automatically gives a complete measure.  I was also surprised to realize that in probablity theory, very little use is made of the Lebesgue $\sigma$-algebra. Almost always the Borel $\sigma$-algebra is used. This prominence of Borel $\sigma$-algebras also seems to be the case in ergodic theory, where one considers for instance the space of all probability measures on a given measurable space(usually equipped with a Borel $\sigma$-algebra), and the null sets might differ from one measure to other(for example, consider Dirac measures concentrated at different points).  So, what are some better mathematical reasons to argue for complete measures? Are there some theorems that I do not know, which are true only for complete measures? There ought to be some, to give credence to all W. Rudin's going-on about the process of completing a measure being as significant in analysis, if not more than, the process of completing the rationals into the real numbers. One can readily find a number of theorems in analysis that would break without the least upper bound property of real numbers. Such does not seem to be the case with completing the measure space, with a superficial look.


How to set the Linux terminal NOT to scroll down automatically when a running program outputs data to the terminal?

Is it possible to set the terminal NOT to scroll down to the last line when the program that is currently running outputs data on the standard output ?  I have a program that is running and is constantly outputting data to stdout thus updating the terminal and the terminal automatically scrolls down to the last line and does not let me read the data that was outputted before or other commands that I have previously run.


User can sudo from terminal but not when logged into gnome

I just finished re-installing Ubuntu 18.04 on my Dell Lattitude E-6420 and logged in to re-install the apps I need. When trying to run sudo apt install <app>, I see the following error: bash: /usr/bin/sudo: Permission denied  I see the same when running sudo ls /etc. Permissions on /usr/bin/sudo are: -rwsr-xr-x 1 root root 149080 Oct 10  2019 /usr/bin/sudo  and I am in adm and sudo groups. What makes this even more odd is that when I log out from GNOME, then hit Ctrl+Alt+F2 or from the log-in screen and log into the terminal, I can now use sudo as that same user. Any ideas what could be happening or even better, how to fix it?


RewriteRule preserving path across environments

I'm trying to come up with some redirect rules that'll work on my local working directory and production. The problem being my local dev env works via "localhost/exp" where as the production works from the root of the domain "www.lorem.com".  Doing:  RewriteEngine On RewriteCond ^rec.php /core/rec [R=301,L]   Works on production no worries, but on my local it redirects to : "localhost/core/rec", where as I want it to to be "localhost/exp/core/rec"  I'd prefer not to have to hardcode "exp" in there, so far I found the only way todo it is have seperate rules per environment, I could make it work on my local using:  RewriteEngine On RewriteCond %{REQUEST_URI} (.*)/exp/(.*) RewriteRule ^rec.php /exp/core/rec [R=301,L]   Appreciate any help on this one. Thanks!


How to teach my self Biology and Chemistry?

Long story short I'm a American dreamer (a immigrant brought to the USA as a child but is illegal) and recently returned to my home country and not knowing the language here have had a hard time at school I am now 22 and think I can finally get somewhere I just need to teach my self Biology and Chemistry (Childhood dream was to be a biologist of some sorts) but I don't know where to start.  Can anyone recommend and books how how I should start my studying? I need to learn this stuff to be able to get into a university here. I wan't to start from the start and work my way up to University level.   Any sort of help would be greatly appreciated  Thank you in advance  Edit: TLDR: Basically I'm asking how I can home school my self to learn Biology and Chemistry to be able to get into a University and learn Biology and Chemistry on a University degree.


Incorrect syntax highlighting with non-ASCII characters

The C# highlighter (and possibly others) chokes on non-ASCII characters in class names, as can be seen in this post:      EDIT: .


How to call method with generic type parameter dynamically

I have code like this.  var sampleBus = BusConfigurator.Instance                 .ConfigureBus((cfg, host) =>                 {                     cfg.ReceiveEndpoint(host, "sampleQueue", e =>                     {                         e.UseScheduledRedelivery(r => r.Intervals(TimeSpan.FromMinutes(5));                         e.UseMessageRetry(r => r.Interval(5, 5000));                         e.Consumer<ConsumerClass1>();                     });                 });  sampleBus.Start();   I have a lot of consumer classes and i want to handle this with config file.How can i convert class names in config file to ConsumerClasses.  foreach(string className in consumerClassNameList){   ????  var sampleBus = BusConfigurator.Instance                     .ConfigureBus((cfg, host) =>                     {                         cfg.ReceiveEndpoint(host, "sampleQueue", e =>                         {                             e.UseScheduledRedelivery(r => r.Intervals(TimeSpan.FromMinutes(5));                             e.UseMessageRetry(r => r.Interval(5, 5000));                             e.Consumer<???>();                         });                     });  sampleBus.Start(); }   Each ConsumerClass derive from :  public class ConsumerClass1<T> : IConsumer<T> where T : class   Appraciate for any help.  EDIT  I asked question wrong.This code,  e.Consumer<ConsumerClass1>();   is not initialize a class.It is invoking a method.  public static void Consumer<TConsumer>(this IReceiveEndpointConfigurator configurator, Action<IConsumerConfigurator<TConsumer>> configure = null) where TConsumer : class, IConsumer, new();   Sorry for wrong question.Question should be "how to call method with generic type parameter dynamically". I found answer .


How to include a plugin's php file to another plugin functions file

I need to customize the output of the shortcode of plugin A by using a function of plugin B. So I alter the shortcode function of plugin A by inserting a condition to check the value of the function of plugin B but I need to include the php file that supports this function. I tried all require_once, require and include but I get the following errors:  When using  require_once('../../pluginname/pluginfunctions.php');  Error Warning: require_once(): open_basedir restriction in effect. File(../../magicmembers/core/libs/functions/mgm_misc_functions.php) is not within the allowed path(s)  When using  include(WP_PLUGIN_URL . '/pluginname/pluginfunctions.php');  Error Warning: include(): URL file-access is disabled in the server configuration  What is the correct way?


Why didn't Harry deliberately lose the Triwizard tournament?

Why did Harry play in the fatal game? He could have just participated in the game for the namesake and lost willfully. That would have amused other schools and would have saved some lives indeed.  Participation was a binding contract, not winning. All they needed was a good lawyer to interpret words for them.


What is the explicit meaning of “corresponding author”?

Problem  This question was triggered by the comments on , but comments and answers on   confirm the existence of conflicting ideas.  There seem to be two prevalent interpretations of the word corresponding author:   The corresponding author is the one who corresponds the (unpublished) paper to the journal, i.e., who performs the technical process of submitting the paper, is available for requests on the review and publishing processes, and so on. The corresponding author is the one who corresponds on the (published) paper with anybody who likes to do so, e.g., because they found an error or like some clarification.   What I found out so far  Until today, I was only aware of the first interpretation, which was confirmed by my experience: For all papers I submitted, I automatically became the corresponding author and cannot remember that I could choose one of my co-authors for this role. Some of these journals do not even indicate a corresponding author to the reader. Also, there already is a way to indicate that an author is available for questions on the paper (interpretation 2): stating the e-mail address.  On the other hand, other journals do indicate corresponding authorship, which makes little sense for interpretation 1. Also, the value put into this role by some funding agencies for its  makes more sense for interpretation 2 (not that I completely agree with it).  Looking for some guidelines from publishers covering multiple fields, I found the following  from Elsevier¹, which kind-of covers both interpretations:     Clearly indicate who will handle correspondence at all stages of refereeing and publication, also post-publication.   While there are other questions on this site touching this issue, they focus on consequences of the interpretation, such as , , or .  Actual question  What is the explicit meaning of the word corresponding author? Interpretation 1 or 2 as listed above, both, something else, or is this an extreme example of  and the answer depends on the field or publisher? Please answer only if you have more to offer than personal experience and individual journal guidelines. In particular, please address the possibility of a varying meaning.     ¹ which is separate for each journal, but seems to be identical in content for many journals


Why can't String.Empty be used when creating a const string variable?

I often use String.Empty for a placeholder, which equates to "".  So my question, why does a const not like String.Empty?  They compile identically.  // Good private const string example = "";  // Bad private const string example = String.Empty;   What in String.Empty makes it not able to be used with a const.


Is there a way I can lock my door in vanilla Minecraft? I have tried naming a tripwire hook key, but it didn't work youtube told me to do that.


I forgot my Ubuntu password so I booted into recovery and dropped into a root shell prompt and this is what happened:  root@username-PC:~# passwd username Enter new UNIX password: Retype new UNIX password: passwd: Authentication token manipulation error passwd: password unchanged


Why did Dany decide to torch King's Landing after the bells were rung?

In S08E05 of Game of Thrones, Dany decides to torch Kings Landing and all the innocent people in it. She is angry and can't seem to hold back her rage, and apparently taken with the madness that afflicts Targaryens.  But why does she attack the city and the people first?   Why not go after the cause of all her woes, Cersei, who's right there in front of her, whilst Dany looks directly at the Red Keep where Cersei is standing.  Dany knows that Cersei doesn't care about the inhabitants of King's Landing.   She can't be killing them just to cause Cersei pain. And in doing so she gives Cersei plenty of time to escape, missing her best opportunity.


I need to reproduce an animation-like effect on the browser (mobile and desktop), this effect is just a procedural changes on the background color from black to white.  The timming is important, since a black background for a short time means "0" and a longer time means "1" (is like a binary Morse code). This information is interpreted by a light sensor in front of the screen. The sensor is very fast, and if we use a lower frequency we wont have problems with the screen (assuming a maximum refresh rate of 50Hz).  This is the script im using:  var i = 0; var b0t = 100; var b1t = 3.5 * b0t; var wl = 100;  function pulses (){     bytes = "1001101010110101001000100";          bit = bytes[i];          i += 1;          document.body.style.backgroundColor = 'white';         document.body.style.color = 'white';          setTimeout(toblack, wl);          if(i <= bytes.length) {             if (bit == 1)                 setTimeout(pulses, b1t + wl);             else                 setTimeout(pulses, b0t + wl);         } }  function toblack() {     document.body.style.backgroundColor = 'black';     document.body.style.color = 'black'; }  pulses ();   And a  (Do not open if you suffer any epileptic syndrome)  The problem is, 1 out of 20 the browser mess the timing, of course in the sensor side i have a tolerance range, a very tolerant range, but again the browser some times is out by several milliseconds, and this is no surprise, if your computer of cellphone is doing something in the background the performance of the browser is severely affected.  Is there a software solution for this? I was thinking using flash to do the flickering with more precision, but i really like my app to be accessible also from IOS. Or i can make a native app that for sure will be more precise than the browser, but then again, i will like to know if i can make it work on the browser.


Setting values in ArrayList with changing variables modify values of ArrayList

I'm facing a problem using ArrayList. I'm using an ArrayList with this content :  String, int, HashTable, HashTable  The HashTables are formed with a String key and an int value.   At some point in my program I need to set the value of the two HashTable. If I set ArrayList(2) (so first hashtable) with a HashTable h_gain for example and then I clear h_gain, the value assigned before with the right content is set to null (cause h_gain is now empty).   a_j1.set(2, h_gain);  Hashtable<String, Integer> h_tmp2 = (Hashtable<String, Integer>) a_j1.get(2);   // Gives the right value - like 1000 for example System.out.println("TESSSSSSSSSSSSSST " + h_tmp2.get("En plein"));  h_gain.clear();  // Gives me null h_tmp2 = (Hashtable<String, Integer>) a_j1.get(2); System.out.println("TESSSSSSSSSSSSSST " + h_tmp2.get("En plein"));   I don't get why it acts like this. If I simply do it with a variable the behavior is more like expected  int val1 = 10 int val2 = val1 // val2 = 10  val1 = 0        // Well, val2 is still = 10   Any help on this?


Is there any benefit to manual settings when you can change just about everything with post production?

With such good post production in editors like Adobe is there any real benefit in shooting with manual settings when you can change just about everything in any shot you take?


How did the ending happen from Neil's perspective?

I am trying to figure out the scene near the finale of Tenet where Neil unlocks the door and gets shot in the face. I can't really see the flow where he opens and holds the door and the protagonist walks in and fights the bad guy. Can you tell the series of events as Neil sees them happen till he gets shot? UPDATE If I am not wrong, I see it like this: Neil was running down towards the door, both the protagonist and his mate are inside with the door locked fighting the bad guy, then, he unlocks the door and walks in and stands behind the door. The protagonist's mate comes out of the room, then the protagonist, then he closes the room, then he look back to get shot in the face. But this doesn't make sense, if he wanted to unlock the door when he was running down, they were already in fighting the bad guy!!!!!


Google Drive files opening in new window vs new tab?

This might be a duplicate of  but that question is 5 years old and unanswered.  When I'm in drive.google.com and I open a G Suite file (either double-click or select & press enter) in Firefox it opens in a new window whereas in Chrome it opens in a new tab.   Why do they do that? Is this a browser-specific quirk or a Google setting (that I haven't found)? Is there a way to control the behavior? I'd like them both to open in tabs, but presumably the same answer would be relevant in the opposite direction too.


My crossword is a table made with <td> tags. The input boxes are textboxes (input="text"), styled with CSS. My question is how do you get the focus to the next cell/textbox by using the keyboard arrows. (Up, down, right, left, and backspace)


make a translated object collide with something

//Spielfeld Größe int sizeX = 800; int sizeY = 600;  //Robo Startposition float roboX = sizeX/2; float roboY = sizeY/2;  //Robo Speed float speed = 0.03;  //Robo Acceleration float accel = 0.05;  float x1; float y1;   void setup() {   size(800, 600);   frameRate(60);   background(200); }   void draw() {   background(200);   println("x " +x1);   println("y " +y1);   robo();   x1=screenX(roboX,roboX);   y1=screenY(roboY,roboY);   stopRobot();   object(); }  //Beschleunigung zurücksetzen void mouseReleased() { accel = 0.05; }  void robo() {   rectMode(CENTER);    //RoboMovement if(mousePressed){   float zielX = mouseX;   float moveX = zielX - roboX;   roboX += moveX * speed*accel;    float zielY = mouseY;   float moveY = zielY - roboY;   roboY += moveY * speed*accel;      //Beschleunigung am Anfang   if(accel< 1) {   accel += 0.05;   } } pushMatrix();    translate(roboX, roboY);     rotate(atan2(mouseY-roboY, mouseX-roboX));   rotate(radians(90));     //Hitbox   fill(0, 0);   stroke(160);   ellipse(0, 0, 78, 78);    noStroke();    //Track Connectors   fill(129, 29, 29);   rect(18, 12, 10, 8);   rect(18, -12, 10, 8);   rect(-18, 12, 10, 8);   rect(-18, -12, 10, 8);    //Robo Body   fill(63, 82, 21);   rect(0, 0, 13, 30);   ellipse(7, 15, 20, 20);   ellipse(-7, 15, 20, 20);   ellipse(7, -15, 20, 20);   ellipse(-7, -15, 20, 20);   rect(9, 0, 16, 23);   rect(0, 17, 20, 15);   rect(-9, 0, 16, 23);   rect(0, -17, 20, 15);    //Robo Body Details   fill(120);   ellipse(0, 0, 25, 25);    fill(60);   rect(0, -18, 6, 36);   rect(0, -36, 10, 5);   ellipse(0, 0, 20, 20);    fill(255, 0, 20);   ellipse(10, 18, 5, 5);     //Robo Tracks    //Right   fill(80);   rect(25, 0, 12, 34);   ellipse(24, 20, 10, 10);   ellipse(26, 20, 10, 10);   ellipse(24, -20, 10, 10);   ellipse(26, -20, 10, 10);    //Left   rect(-25, 0, 12, 34);   ellipse(-24, 20, 10, 10);   ellipse(-26, 20, 10, 10);   ellipse(-24, -20, 10, 10);   ellipse(-26, -20, 10, 10);    //Track Details   fill(140);   for (int i = -21; i< 22; i += 6) {     rect(25, i, 12, 2);     rect(-25, i, 12, 2);   }   popMatrix(); }       float [] [] bobject= new float [][] {{250, 250}, {500, 500}, {100, 100}}; void object() {   fill(255);   stroke(0);   circle(bobject[0][0], bobject[0][1], 20);   circle(bobject[1][0], bobject[1][1], 20);   circle(bobject[2][0], bobject[2][1], 20); }   void stopRobot() {            if(dist(x1,y1,bobject[0][0],bobject[0][1])<=45){     speed=0;     if(mouseX<bobject[0][0]){       speed=0.03;}     if(mouseY>bobject[0][1]){       speed=0.03;}     }                     if ( x1<=0+45) {     speed=0;     if (mouseX>=0) {       speed=0.03;     }   }   if ( x1>=width-45) {     speed=0;     if (mouseX<=width-45) {       speed=0.03;     }   }   if ( y1<=0+47) {     speed=0;     if (mouseY>=0+47) {       speed=0.03;     }   }   if ( y1>=height-45) {     speed=0;     if (mouseY<=height-45) {       speed=0.03;     }   } }    This is the code, basically the idea is, that if the robot collides with the wall/objects it stops, independently from the position of the small circles. Somehow i cant paste in the code so heres a link to the file  If anybody could help me, that would be nice


Quadratic Objective with Second Order Cone Constraint

is there any way to solve the following problem with a quadratic objective and a second-order cone constraint in closed form? $$\min_{x\in\mathbb{R}^d} (x-x_0)^TA(x-x_0) \\\text{subject to } \sqrt{x^T\Sigma x} + \mu^\top x\leq 0 $$ with $\Sigma$ and $A$ Positive Semi-Definite matrices and $x_0,\mu \in \mathbb{R}^d$.


OK, so I haven't find any answer, only one that claims the "nvidia-updates" is newer versions, yet the driver instalator says this:  4 options:  nvidia 331.113, nvidia-updates 331.113, legacy nvidia 304.125, legacy nvidia-updates 304.125  Which one to install? What's the difference between nvidia and nvidia-updates? Since both report as the same version.  Which should I choose? Legacy or non-legacy? Both 331.113 and legacy 304.125 were released at the same day, bot are supported by my card.. Which is GT520M   AND   They have some common changelogs.. so I'm confused. And new non-legacy drivers are still being developed for this GPU.  And last question. Why the driver is so outdated? It's from 2014.


When do "well" and "good" mean the same?

I know good normally is an adjective ("[object] is good"), and well is normally an adverb ("[activity] is performed well"). But quite a few times I've seen good used in place of well. For example, you can be feeling good.  When is good applicable as adverb? Is the vice-versa situation possible?


How can I keep light from reaching the background in low key photography?

I'm now at the point where I walk around and see light; its direction, strength, softness, casted shadows etc.  Now I'm almost at the point where I also understand it; i.e. the science behind what light is for a camera and what a camera can do with it.   I'm a little confused about low key photography; for example, I read a statement like "make sure that the light of your strobe doesn't reach you background". And I'm like... light travels at 300.000 m/s?   I would like an explanation as to how the general idea of low key photography works; completely blackening the background and lighting an object in the frame. I'm especially interested in the (real world) physical distance en properties of the object and background that's being framed.


Does special relativity imply that time dilation is affected by an orientation of clocks?

Many texts about STR time dilation use as an example thought experiment with  The conclusion of this experiment is: In a frame moving relative to the clock, they will appear to be running more slowly. As I understand it, this is just a visual effect, it doesn't mean that processes in the system with clocks are affected by someone observing it from moving frame. I can't imagine any other interpretation of this, cause this would result in all sorts of paradoxes, like what if there are 3 clocks oriented: parallel, perpendicular and at 45 degree relative to direction of moving frame. If you visualise light path from moving frame perspective like it is done in wiki link above, and do analogical interpretation, this would imply that some of the 3 clocks in same frame are running slower and some are faster, depending on orientation.   According to the same wiki page this time dilations are not just visual effect and do change behavior of objects, here is a quote from 2nd paragraph:     Such time dilation has been repeatedly demonstrated, for instance by small disparities in a pair of atomic clocks after one of them is sent on a space trip, or by clocks on the Space Shuttle running slightly slower than reference clocks on Earth, or clocks on GPS and Galileo satellites running slightly faster.   So if we continue our analogy, we can take 4 pairs of atomic clocks, and send 3 of them on a space trip oriented differently, we would get different time results on them.  We can even continue this absurd, and remind "twins paradox", and conclude that the one that was perpendicular to moving frame would become older....


What does the term $\mathcal O(\epsilon^2)$ mean?

In the highest upvoted answer to   the author writes the following equation:   $$ U^\dagger U=(\mathbb I+\epsilon^* A^\dagger)(\mathbb I+\epsilon A)=I+\epsilon^*A^\dagger+\epsilon A+\mathcal O(\epsilon^2) $$  What does that last term mean? It looks a lot like the  from asymptotic analysis.


I and my friend has Ubuntu. I want to get a software from his lap to my lap. How can I copy the software? Note: I couldn't download the software from net as the software is no longer available.


How are Clash of Clans multiplayer battles determined

Are battles determined by level or trophies? Just curious.


All of the events and rewards in pokémon Sun & Moon demo?

After completing the main "story" of the demo (ending when you defeat the Skull Sister), I noticed a guy that was talking about meeting him the day after and another saying in 5 days, how many are there?   And, if datamined somewhere, what do they give for the main game?


I am looking for different ways to pause and resume programmatically a particular process via its process ID under Windows.  Process suspend/resume tool does it with SuspendThread / ResumeThread but warns about multi-threaded programs and deadlock problems.  Or Detect Threads of any process ID.  I need method deadlocks or uses another method?  Prefered languages : C#


What made the big bang start in the first place? I don't see what could have caused it. What made it burst apart?


how to change logon screen for domain user in windows 7

i am logged on as domain user to windows 7 professional and listed as administrator , i tried changing the logon screen via    change in registry in authentication logon  change in group policy for custom background   I placed the jpg in backgrounds folder in  oobe/info but still the background does not change.


If $a,b,c \in \mathbb{R+}$ and $abc=1$ Prove That  $$S=\sum \frac{a}{a+b^4+c^4} \le 1$$  My approach:  we have $$S=\sum \frac{\frac{1}{bc}}{\frac{1}{bc}+b^4+c^4}=\sum \frac{1}{1+b^5c+bc^5}$$  Now by $AM \ge GM$ we have  $$\frac{1+b^5c+bc^5}{3} \ge b^2c^2$$ $\implies$  $$\frac{1}{1+b^5c+bc^5} \le \frac{1}{3b^2c^2}=\frac{a^2}{3}$$ Hence  $$S \le \frac{a^2+b^2+c^2}{3}$$  Can we proceed with this?


I have a Lenovo x200 with an external RW drive.  When I put in a DVD, it opens to folders and the media's pieces are there but you cannot click them to get them to start.  The gnome player will not play the DVD.  I cannot figure it out.


Clearing Log Shipping config Secondary server inaccessible

We are using SQL 2012  Our Secondary server in a log shipping configuration went offline never to come back (the VM was permanently deleted before log shipping configuration was updated).   On the Primary server, I am trying to clean up the LS configuration but everything I've tried times out and/or gives me errors about having configuration still existing.  I have done the following:   Deleted the LS jobs from the primary server (Backup and Alert) Run the Stored Procedure "sp_delete_log_shipping_primary_secondary" with success Attempted to run the Stored Procedure "sp_delete_log_shipping_primary_database", this fails.   The error with sp_delete_log_shipping_primary_database is as follows:     Msg 32011, Level 16, State 1, Procedure sp_delete_log_shipping_primary_database, Line 51   Primary Database <"DB name"> has active log shipping secondary database(s). Drop the secondary database(s) first.   If I try to use the SQL management studio GUI, it tries to get me to log into the Secondary server (no longer exists) and times out/errors when it cannot communicate with it.   How do I get log shipping configuration cleaned up on the Primary server, knowing that the Secondary one doesn't exist anymore?    I have flexibility to do a backup/restore of the database during troubleshooting, if needed.


What is the difference between ∀x(p(x) →q(x)) and ∀x(p(x) ∧q(x))?

Textbook(Discrete Mathematics with Applications by Susanna S. Epp) says that  $\forall x$ in $D$, $p(x)$ can be written as $\forall x$ in $D$$\to p(x)$,  $\exists x$ in $D$, $p(x)$ can be written as $\exists x$ in $D$$\land p(x)$.  but I am wonder, does it make no sense to say that   $\forall x$ in $D$, $p(x)$ can be written as $\forall x$ in $D$$\land p(x)$,  $\exists x$ in $D$, $p(x)$ can be written as $\exists x$ in $D$$\to p(x)$?  I cannot understand why can $\forall x$ in $D$, $p(x)$ / $\exists x$ in $D$, $p(x)$ be written as    $\forall x$ in $D$$\to p(x)$ / $\exists x$ in $D$$\land p(x)$   but $\forall x$ in $D$$\land p(x)$ / $\exists x$ in $D$$\to p(x)$.


How can I formally show that a root n consistent estimator is weakly consistent?  Heuristically its clear that if $\sqrt{n}(\theta_n-\theta_0)$ is bounded in probability then since $\sqrt{n} \to \infty$ as $n \to  \infty$ clearly $\theta_n-\theta_0 \in o_p(1)$ that is it goes to zero in probability but every time I try to write it formally I get stuck. Could someone help me out?


Show unique ID on the form (before submitting)

I need an anonymous form (no names, emails etc) that shows unique ID so that if a person decided to reveal that ID to me I will be able to find his/her answers in the spreadsheet. The ID can show on the form or in the "Thank you" massage after submitting. Like mentioned before - emailing is not an option. I know of similar posts but for this particular problem I haven't found an answer.


Case  Trying to build some code which requires Kafka libraries and will be deployed to an HDP platform. Build succeeds but at runtime complains that classes cannot be found. Looking up Kafka version on HDP platform reveals something like 0.10.0.2.5.3.16-1, a quick check on mvn reveals that no such Kafka library exists for this version. The nearest version is 0.10.0.2.5.3.42-1 which I'm using.  Symptoms  Runtime errors which say that classes or methods cannot be found, for instance kafka.javaapi.consumer.SimpleConsumer.<init>(Ljava/lang/String;IIILjava/lang/String;Ljava/lang/String;)V


Importing blackboard wedge symbol from `stix` or `boisik`

I would like to use this blackboard wedge symbol without switching my current math font. I have found the symbol in both the stix and biotik package. I have also found numerous questions and answers about how to import specific symbols from packages, but despite that I haven't been able to adapt any of those answers to my spe    I have found the symbol in both the stix and biotik package. I have also found numerous questions and answers about how to import specific symbols from packages, but despite that I haven't been able to adapt any of those answers to my specific case.  Would anyone be able to help me, or suggest an alternative?  Thanks


How can I pay tolls on Japanese expressways?

I'm renting a car soon in Japan and am planning to travel on the expressways. What's the best way to pay tolls?


Why does Subtraction float from Integer return a fasle Value?

Im trying to get only the number after the dot in a number  float number; printf("Enter a real number:\n"); scanf("%f", &number); int integerPart = (int)number; int fractionalPart = (int)((number -(float)integerPart) *1000); printf("The fractional part: %d\n", fractionalPart);   when i put 256.589 i get output of 588 why?


i have written the following code with some help from google for exporting jtable to excel but i am not able to export it to excel and i am also getting null pointer .  cell.setCellValue(model.getValueAt(i, j).toString());   the whole code is   try {         HSSFWorkbook fWorkbook = new HSSFWorkbook();         HSSFSheet fSheet;         fSheet = fWorkbook.createSheet("new Sheet");         HSSFFont sheetTitleFont = fWorkbook.createFont();         File file = new File("D:\\MOHIT\\bill report\\report.xls");                   HSSFCellStyle cellStyle = fWorkbook.createCellStyle();         sheetTitleFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);         //sheetTitleFont.setColor();         TableModel model = report_table.getModel();          TableColumnModel model1 = report_table.getTableHeader().getColumnModel();         HSSFRow fRow1 = fSheet.createRow((short) 0);         for (int i = 0; i < model1.getColumnCount(); i++){             HSSFCell cell = fRow1.createCell((short) i);             cell.setCellValue(model1.getColumn(i).getHeaderValue().toString());             }         for (int i = 1; i < model.getRowCount(); i++) {             HSSFRow fRow = fSheet.createRow((short) i);             for (int j = 1; j < model.getColumnCount(); j++) {                 HSSFCell cell = fRow.createCell((short) j);                 cell.setCellValue(model.getValueAt(i, j).toString());                 cell.setCellStyle(cellStyle);             }         }         FileOutputStream fileOutputStream;         fileOutputStream = new FileOutputStream(file);         try (BufferedOutputStream bos = new BufferedOutputStream(fileOutputStream)) {             fWorkbook.write(bos);         }         fileOutputStream.close();     } catch (Exception e) {         e.printStackTrace();     }   can somebody tell me why am i getting null pointer exception how to correct it.


How define new environment in terms of existing environment?

I want to define a new environment, such as test in the example below, whose start and end arguments in turn call the begin and end of an already-defined environment.   Simple example:  \documentclass{article} \usepackage{amsmath} \usepackage{amsthm}  \newenvironment{test}{\begin{align}}{\end{align}}  \begin{document}  \begin{test*} a &b \\ c&d \end{test*}  \end{document}   That produces an error \begin{align} ... ended by \end{test}. Is there some way to accomplish this?  What I really want is a called inner environment that is more complicated, as in:  \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{empheq}  \newcommand*\widefbox[1]{\fbox{\hspace{1em}#1\hspace{1em}}} \newenvironment{\boxedgather*}{\begin{empheq}[box=\widefbox]{\csname gather* \endcsname}}{\end{empheq}}  \begin{document}  \begin{boxedgather*} a = b \\ c = d \end{boxedgather*}  \end{document}


How do I make another person be able to invite people into my Minecraft Realm?

I have a Minecraft Realm, but I cannot give others access to the configuration page, please help!


Can the Schrodinger equation describe planetary motion?

I was asked on an exam whether the Schrodinger equation can be used to describe planetary motion and my answer was "No, because the solutions are wavefunctions which give probabilities but everything can be exactly measured for large objects."  Then I read  which suggested it should be possible. What would the Hamiltonian be, and how do we get definite results instead of probabilities?


"Dear Sir (or Madam)" when gender unknown?

When writing a formal letter addressed to someone whose gender is unknown, how important is it to use "Dear Sir or Madam", instead of "Dear Sir"?  I was taught that "Dear Sir" is an acceptable gender-neutral salutation but times may have changed, is this right or wrong?


Is there a way to detect frozen video with ffmpeg? I only need to know if there are rather large regions of frozen video, say 10 seconds or more.   I'm familar with the  filter.   Maybe you could first difference adjacent frames, then use blackdetect to tell whether the difference has not changed? I'm not sure how to perform the difference though.


I'm sure you've all seen the diagrams and/or 3D visualizations of gravity; the ball sitting on a piece of fabric which makes it sink down. They've also started using it in the videos that explain gravitational waves. Two objects will be circling each other on the fabric and will emit waves.  I know this is an oversimplification of what's going on, but it is quite misleading and has left me a little bit puzzled as to why gravitational waves are infact the size of protons, not the size of planets like the videos suggest.   So I guess my question is, why are they in fact so small, and why can't we detect them from astral bodies in our solar system that we can actually detect a physical force from?


Mouse and keyboard input ignored after installing virtualbox-guest-x11

I created a 64-bit ubuntu 16.04.3 guest VM on a Windows 7 Pro 64-bit host using Oracle VirtualBox 4.3.12. (Ubuntu VMs won't even start in later versions of VirtualBox.)  However the new VM only has a max screen size of 1024 x 768 compared to my 1920 x 1080 screen resolution. It's hard to work on a VM with such a small resolution.  I tried the following steps after the install to allow me to use a higher screen resolution, but none worked:  sudo apt-get update   Restarted VM as requested.  sudo apt-get install virtualbox-guest-dkms   Restarted VM.  sudo apt-get install virtualbox-guest-x11   This failed with unmet dependencies, including xserver-xorg-core, so I did:  sudo apt-get install xserver-xorg-core sudo apt-get install virtualbox-guest-x11   Restarted VM. But now the VM starts up in an even smaller resolution (800 x 600?) and when I mouse over it the cursor disappears! Also, keyboard input is now ignored.  Does anyone know (a) how I can interact with my VM again and (b) allow me to have a larger maximum screen resolution? I don't care whether the screen re-sizes automatically; I just want a larger resolution so my VM is usable.  EDIT This isn't a duplicate of  because that says to install the latest version of VirtualBox. Here's the error I get when I installed vbox 5.1.28 and try to start one of my ubuntu VMs:    AFAIK Where I work no-one's ever succeeded in running an ubuntu VM on a version of VirtualBox > 4.3.12. Possibly due to a clash with corporate antivirus software as the error implies. Also, I first need to be able to interact with my VM via mouse or keyboard before I can install Guest Additions.


Sum of $\frac{1}{(2n)(2n+1)}$ from $1$ to infinity

Can anyone tell me about the sum of the series $$\sum_{n=1}^\infty \frac{1}{(2n)(2n+1)}?$$ This is not a usual telescoping sum in which all the terms cancel out.


What is a difference between traditional loop and for-each loop?

I wonder if there is a difference between these:  ArrayList<Example> list = new ArrayList<Example>   1-)  for(int i = 0; i < list.size(); i++) {     list.get(i).doSomething(); }   2-)  for(Example example : list) {     example.doSomething(); }   If there is not any difference which one is more common or efficient?


I have found some pretty complete lists (I think) of mathematical symbols  and , but I don't see a symbol for the word "and" on either list.  A person could easily just write the word "and" or use an ampersand, but I was wondering if there was an actual mathematical symbol for the word "and".  Also, if anyone knows any lists that are more complete than the ones I have linked to please provide a link.


Suppose that $V, W$ are closed in $X$ and that $V\cap W, V\cup W$ are connected. Show that $V$ and $W$ are connected.  My attempt: Suppose that $V=U_1\cup U_2$ where $U_i$ are open in $V$, not empty and $U_1\cap U_2=\emptyset$. This induces a separation for $V\cap W$: $$ V\cap W = (U_1\cap W)\cup(U_2\cap W).$$  $U_i\cap W$ is open in $V\cap W$  $(U_1\cap W)\cup (U_2\cap W)=\emptyset$ as otherwise $U_1\cap U_2 \ne \emptyset$.  Now, I need to show that both sets are not empty. We know that $V\cup W$ is connected and closed in $X$. So, for all $x\in V\cup W=U_1\cup U_2\cup W$ and all neighborhoods $Z$ (in $X$!) of $x$ we have that $Z\cap (V\cup W) \ne \emptyset$. We can choose $x\in U_1 \subseteq V\cup W$. But then I would have to find a neighborhood of $x$ in $X$. I can't find one... How can I complete this bullet point?   Thanks.


Getting ssh to execute a command in the background on target machine

This is a follow-on question to the  question.  If I want to execute a command on the remote machine that runs in the background on that machine, how do I get the ssh command to return?  When I try to just include the ampersand (&) at the end of the command it just hangs.  The exact form of the command looks like this: ssh user@target "cd /some/directory; program-to-execute &"  Any ideas?  One thing to note is that logins to the target machine always produce a text banner and I have SSH keys set up so no password is required.


Rule of thumb for choosing an implementation of a Java Collection?

Anyone have a good rule of thumb for choosing between different implementations of Java Collection interfaces like List, Map, or Set?  For example, generally why or in what cases would I prefer to use a Vector or an ArrayList, a Hashtable or a HashMap?


How to prove $\lim_{x \to \infty} \frac{x^k}{e^x}=0$ ? (k is any positive number)

Originally, i was trying to find the value of $$\lim_{h \to 0} \frac{e^{-\frac{1}{h^2}}}{h}$$ to find out differentiabiltiy of     $f(x) = \begin{cases} e^{-1/x^2} & \text{ if } x \ne 0 \\ 0 & \text{ if } x = 0 \end{cases}$   at 0.  In this case,  $$\lim_{h \to 0} \frac{e^{-\frac{1}{h^2}}}{h}=\lim_{x \to \infty} \frac{x}{e^{x^2}}=\lim_{x \to -\infty} \frac{x}{e^{x^2}}$$  So when I applied L'Hospital's rule, then its value was 0.  And I thought that No matter how big $k$ is,  $$\lim_{x \to \infty} \frac{x^k}{e^x}$$ will be equal to zero because exponential's increase speed is much faster than polynomial's.  Definitely, we can also apply L'hospital's rule at here, but I think it is not proper qualitative explanation for the fact that exponential is much bigger than polynomial.  Is there any other approach which explains why  about this problem?  (In fact, I tried to use $\epsilon-\delta$ but how can i show that there exist some $M$ s.t. for every $M<x$ then  $x^k<\epsilon e^x$?)  (And I also tried to use inequality like $e^x>x+1$  for all $x>0$ but it only worked for $k<1$)


How to output all elements of array after generating different random numbers different from previous one

While entering random numbers in an array, my goal is to have a random number in element [x] different from the previous one [x-1] that's the only constraint.  I believe to be achieving this but my problem is that when I run the following code my output does not display all elements.           int[] array = new int[10];         Random number = new Random();          for(int i = 0; i < array.Length; i++)         {             int randomNumber = number.Next(3) + 1;             if (i == 0)             {                 array[0] = randomNumber;                 }             else             {                 array[i] = randomNumber;                  while (array[i] == array[i - 1])                 {                     array[i] = randomNumber;                 }             }              Console.Write(array[i] + " ");         }         Console.ReadLine();


what is the maximom order of an element is $\mathbb S_{15}$

Let $S_n$ be the permutation group of order $n$. What is the maximom order of an element on $\mathbb S_{15}$.  Is there any way to find maximom order of an element in $\mathbb S_{15}$ or find the order of an arbitary element in $\mathbb A_n$ and $\mathbb S_n$


Why doesn't a commutator cause the rotation to reverse periodically or stop?

I understand the field magnets attracting/repelling the armature/coil so that it turns one half-turn and then, because the commutator is turned, its contact with the brushes has switched sides, and the current goes in the opposite direction, reversing the electromagnetic polarity. Then, because the polarity is swapped, it attracts/repels to complete the second half-turn. The thing is, isn't it a bit of a gamble that it will turn in the same direction? Couldn't the it just be pulled/pushed back, more or less undoing the half-turn?  I'm also a bit confused how the rotation doesn't just stop once the commutator is oriented so that the brushes are contacting both sides of the commutator. In other words, there's a brief period just as the commutator switches the current directions where each both the brushes are in contact with both sides of the commutator where the current is neutralized. Shouldn't this stop the motor?    For reference, I'm just talking about a simple DC motor.


Windows 10 icon has showed up once but after shutting down the computer, it is not showing

This morning after updating the windows 7 which already existed  in my pc, I saw the windows 10 icon in notification panel.  But, there was a problem when I did shut down the pc and the next time after reopening  there was no windows 10 icon. I also reserved the windows 10 for my pc. I have been using dual boot system(windows 7, ubuntu). What can I do about  the updating process?


Why does orbiting matter form an accretion disk?

Why does matter in orbital motion around a central body tend to form an , as opposed to some other configuration like a sphere? I know this has something to do with angular momentum making a disk the most stable configuration.


A question on how many doors will be open?

My friend gave me a question. The question states:  There a $100$ people named $(1,2,3,.....,100)$ and there are $100$ doors named $(1,2,3,...,100)$ .Assume all doors are closed. The first named $1$ person comes and opens the doors which are multiples of $1$. The only functions that a person can do is open a door which is already closed or closed a door which is already open. Now the person named $2$ comes and does this function(of opening or closing) on all the doors which are multiples of 2. This process similarly takes place for $3,4,.....100$ . At the end when this completed how many doors will be left which will be open and not closed.  My thoughts in this question were that I was thinking the only doors which will be open will be the squares because:  $$\begin{array}{|c|c|}   N&\text{factors}\\   4&1,2,4\text(factors)\\   9&1,3,9\text(factors)\\   16&1,2,8,4,16\text(factors)\\   25&1,5,25\text(factors)\\   36&1,3,6,18,2,12,36,4,9\text(factors)\\   49&1,7,49\text(factors)\\   64&1,2,4,8,16,32,64\text(factors)\\   81&1,3,9,27,81\text(factors)\\   100&1,2,5,4,10,25,20,50,100\text(factors)\\   \end{array}$$  So as we can see when each of these numbered people will go the doors will open and be closed respectively which will end up all of the squares being open. But how do I show that these are the only numbers?  Also this seems to be a tedious way to do it and doesn't seem like this will be this tedious. So is there any way which is better than this.


Mention post disassociation in the help center and contact form

As per §4.a of the  that all Stack Exchange posts are under,      upon notice from any Licensor [Stack Exchange] must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested.   The most obvious way for a contributor to do that is to flag their own post. This is what is mentioned by ; I couldn't find any mention in the help center. This transmits the request to moderators, who have no way to honor it and must pass on the request to Stack Exchange staff.  It would be more direct if content disassociation requests went directly to Stack Exchange staff, via the . Please mention content credit removal in the  — possibly under


Can you drive in Oregon, USA using Texas, USA Learner's Permit?

For an adult (age 24yrs), is it legal to drive using learner's permit from TX in OR state?


I know that for compact objects (black holes, neutron stars, etc ) the value of the amount of force acting on any particle can be found by solving Einstein's field equations. So my question is that what is the maximum distance up to which Newtonian mechanics is applicable to find the force near such compact objects.  In other words, what is the minimum distance around such objects from where Newtonian mechanics can not longer apply and Einstein's theory of General Relativity comes into action. Please keep the math simple. Thank You.


How to have local package override default package

I have an non-root account on a shared server which has an old version of a package available to all users, and I want to use a newer one on my account. I cannot just use $TEXINPUTS, because latex finds the shared version first. How can I get latex to use my version?  I.e. how can I get latex to use the first of these two files:  /home/fgregg/share/texmf/tex/latex/pgf/basiclayer/pgf.sty /usr/share/texmf/tex/latex/pgf/pgf.sty


How to assign click event for dynamically added span element?

html:

   javascript:    $(document).ready(function () {       $('.testSpanDiv').append('Hello');   }    $('#testSpan').on('click', function(){       $(this).parent().remove();   });   Event is not firing while giving a click to span element added dynamically. Event is firing if span element is statically added to the html. Can you give any suggestion over it.  I tried like below also, but not working.     $('#testSpan').on('click', '.testSpanDiv', function(){       $(this).parent().remove();   });


\uppercase not working with dynamic text

I've got some layout that I'm trying to make into something that can be parameterized with dynamic text:  \documentclass{article}      \usepackage{tikz}  \definecolor{spotcolor}{cmyk}{.40,0,.70,0}  \begin{document}   \begin{tikzpicture}     \node [ white, fill=spotcolor, rounded corners=4pt, inner sep=4pt, font=\sffamily] at  (-1.1in,-.7in){\tiny\uppercase { starter }};   \end{tikzpicture} \end{document}       However when I make the label dynamic text using a macro...  \documentclass{article}      \usepackage{tikz}  \definecolor{spotcolor}{cmyk}{.40,0,.70,0} \newcommand{\level}{starter}  \begin{document}   \begin{tikzpicture}     \node [ white, fill=spotcolor, rounded corners=4pt, inner sep=4pt, font=\sffamily] at  (-1.1in,-.7in){\tiny\uppercase { \level }};   \end{tikzpicture} \end{document}     The \uppercase command seems to have no effect


IS it possible to create an object of a generic class with dynamic type arguments?

Say, we have a generic class like this:  public sealed class Class1<T> {     private T _value;     public T Value     {         get { return _value; }     } }   I want to initiate an object of type Class1 but type argument T is only dynamically available using GetType(). Is that possible to use a generic class with dynamic type as follows?  Class1<anObject.GetType()> obj = new Class1<anObject.GetType()>();   I know this code even can not be compiled but I need some sort of generic usage like this.  According to  I should use MakeGenericType to infer the T argument using the reflection and create the object as follows:  Type typeArgument = anObject.GetType(); Type genericClass = typeof(Class1<>); Type constructedClass = genericClass.MakeGenericType(typeArgument); object created = Activator.CreateInstance(constructedClass);   But I don't know how to use object created, later! Because this is an implicit object and do not have access to its property Value. I also can't cast it to the Class1, If I could I didn't have to use MakeGenericType at first! How could I access the Value after I created the object ?


Tikz plots. I need to draw the intersection coordinates

I have this plot with the intersections of the functions f(x) & g(x) marked as P1, P2 and P3. How can I write its coordinates instead of the texts "P1", "P2" and "P3" calculated with tikz, without having to put them by hand? This is the latex code %% LyX 2.3.5.2 created this file.  For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage{lmodern} \renewcommand{\sfdefault}{lmss} \renewcommand{\ttdefault}{lmtt} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc}  \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \usepackage{tikz} \usetikzlibrary{intersections} \usetikzlibrary{positioning} \usetikzlibrary{calc}  \makeatother  \usepackage{babel} \begin{document}  \section*{Intersecciones}  \begin{tikzpicture}[     scale=0.5,     declare function={f(\x)=\x*\x*\x-2*\x*\x-\x+4;}, % FUNCION f(x)     declare function={g(\x)=2*\x+1;}]                % FUNCION g(x)  % DIBUJAMOS SOLO EN ESTE CUADRO %------------------------------     \clip(-10,-10) rectangle (10,10);  % REJILLA Y EJES %---------------     \draw[densely dotted, help lines] (-10,-10) grid (10,10);     \draw[<->, thick] (0,-9.5) |- (9.5,0) node[above] {$x$};     \draw[<->, thick] (-9.5, 0) -| (0, 9.5) node[right] {$y$};     \foreach \x in {-9,...,-1} {\node[below=2pt, fill=white, inner sep=0] at (\x, 0) {\tiny \x};}     \foreach \x in {1,...,9} {\node[below=2pt, fill=white, inner sep=0] at (\x, 0) {\tiny \x};}     \foreach \x in {-9,...,-1} {\node[right=2pt, fill=white, inner sep=0] at (0, \x) {\tiny \x};}     \foreach \x in {1,...,9} {\node[right=2pt, fill=white, inner sep=0] at (0, \x) {\tiny \x};}  % GRAFICAS DE LAS DOS FUNCIONES %------------------------------     \draw[blue, samples=200, name path=path1] plot(\x, {f(\x)});     \draw[blue, samples=200, name path=path2] plot(\x, {g(\x)});  % DIBUJAMOS UN PUNTO ROJO EN LAS INTERSECCIONES DE LAS DOS FUNCIONES %--------------------------------------------------------------------     \fill[red, name intersections={of=path1 and path2, name=i, total=\t}]     \foreach \s in {1,...,\t} {(i-\s) circle(2pt) node[above right=2pt, fill=white, inner sep=0] {\tiny P\s}}; \end{tikzpicture} \end{document}


Is there a better way to determine the number of lines in a large txt file(1-2 GB)?

I am trying to count all the lines in a txt file, I am using the StreamReader:  public int countLines(string path) {     var watch = System.Diagnostics.Stopwatch.StartNew();     int nlines=0;     string line;     StreamReader file = new StreamReader(path);     while ((line = file.ReadLine()) != null)     {         nlines++;     }     watch.Stop();     var elapsedMs = watch.ElapsedMilliseconds;     Console.Write(elapsedMs)     // elapsedMs = 3520  --- Tested with a 1.2 Mill txt     return nlines; }   Is there a more efficient way to count the number of lines?


Is there any ready-to-use component for JSF that allows to chose the Date + the Time of an event? All components I know only allow for date. adding time manually is tedious.


Official StackExchange app says my question is not available?

I recently posted a new question on Android Enthusiasts using the official StackExchange app for Android. Right after posting the question, the app said that my question is not available.     The question is not available, it may have been deleted.   Deleted? Already?...  Then I navigated to my user name to see my recent activity. There it was! I could see the question I just posted. But if I tapped on the link to try to open it, the app kept complaining about my question not being available.     The question is not available, it may have been deleted.   But 7 minutes after posting the question, I could see my question. Here are some screenshots that showcase this issue.      This is not the first time this happens. This appears to be more or less normal behavior of the app. I don't use the StackExchange app very often to post questions. But I had exactly the same message come up when I posted a question a few months ago (and some app version numbers earlier).  This is not a major issue, but you should try to address this nevertheless. It's a small bug, but addressing it might imply much bigger changes... which might explain why it's still present... I don't really know, I'm guessing. I just thought I would let you know about it, in case you are not aware of it.  For the record, the phone is Galaxy S4 Plus (GT-I9506) running Android 4.4.2. Version number of the app is 1.0.50.


I've been trying to prove by induction that $5^n + 2 * 3^{n + 1} + 1$, for $n  > 0$.  My first attempt was trying to prove that the difference $(5^n + 2 * 3^{n + 1} + 1) - (5^{n + 1} + 2 * 3^{n + 2} + 1)$ is always a multiple of 8.  Working this difference, I've found that the difference between consecutive terms is $4(5^{n + 1} + 3^n)$, which proves that their difference is always a multiple of 4. I could isolate an 8 instead of 4, but the inner calculations wouldn't always be integer, which I think doesn't prove anything.   Any tips on how to proceed ?


Have a look at the following code:  \documentclass[letterpaper]{article} \usepackage{amsmath,amssymb} \begin{document}  $2-\frac{2}{1-\left(\frac{2}{2-\frac{2}{x^2}}\right)}$\quad  $2-\dfrac{2}{1-\left(\dfrac{2}{2-\dfrac{2}{x^2}}\right)}$\quad  $2-\cfrac{2}{1-\left(\cfrac{2}{2-\cfrac{2}{x^2}}\right)}$\quad  $2-\dfrac{2}{1-\left(\cfrac{2}{2-\dfrac{2}{x^2}}\right)}$ \end{document}   This gives:    Evidently, the first display is not the proper way. The second and last are the same I guess. The third has a better display but there is too much space above the 2 in \left(\cfrac{2}{2-\cfrac{2}{x^2}}\right). Essentially, non of the above displays satisfies, for me, a good Mathematical typsetting. Although, it may be argued that it is the default in LaTeX. I just can't get it right? Any insights? In a book I got this example from it looks like this without the excessive bold (this is a scanned image):


Is there a page where we can see the what tags were created by the taxonomists?


Find $\arctan(x) + \arctan(y)$ in terms of $\arctan((x + y)/(1 - xy))$

Find $\arctan(x) + \arctan(y)$ in terms of $\arctan\left(\dfrac{x+y}{1-xy}\right)$.    I want to essentially prove this equation given in the textbook: $$ \arctan(x) + \arctan(y) =  \begin{cases} \arctan\left(\dfrac{x+y}{1-xy}\right),  &\text{if } xy\lt 1 \\[1.5ex] \pi + \arctan\left(\dfrac{x+y}{1-xy}\right),  &\text{if } x\gt 0, y\lt 0\text{ and } xy \gt 1 \\[1.5ex] -\pi + \arctan\left(\dfrac{x+y}{1-xy}\right),  &\text{if } x\lt 0, y\lt 0\text{ and } xy \gt 1 \\ \end{cases}$$     By now i have proven the third case where $x<0$ and $y<0$ as follows:   Let $A=\arctan(x)$ and $B=\arctan(y)$, and $A+b=\alpha$. If $-\pi<A+B<-\pi/2$, then $A<0,B<0 \iff x<0,y<0$. As $A+B<-\pi/2$ for the third case, thus:   $$A<-(\pi/2+B) \\ \arctan(x)<-(\pi/2+\arctan(y)) \\ \because y<0, \qquad \therefore -(\pi/2+\arctan(y))=\arctan(1/y) \\ \therefore \arctan(x) < \arctan(1/y) \implies x<1/y \\ \therefore xy>1 $$   I am specifically not able to find such a condition in $x$ and $y$ for the first case, that is the case where $xy < 1$. How do i prove it using a similar approach to mine? (That is no differentiation, only trigonometry). I tried using the inequality $A+B\in(-\pi/2,\pi/2)$, but am stuck.


JQuery onclick function showing same id of all anchor tags

When click on each anchor tags then show its own id. But now i am clicking on each anchor tag then show same id check1 .
         1         2         3         4         5         6         7


What regex matches invalid characters, but NOT accented characters (like the Spanish ones)? (non UTF-8 / non-ASCII)

I have tried all the ones suggested here:  (among others) in a .replace(regex, "") JavaScript function, but they either remove characters with accents too or leave other invalid non-UTF-8 characters.  Use case: I'm fetching XML data from a Spanish client and some items contain invalid non-UTF-8 characters which make the XML not parsable (even making the GET request through Chrome gives me "Input is not proper UTF-8"), but I want to keep all characters with Spanish accents ("tildes"/"acentos")  Example of invalid symbols mixed with accented and non-accented letters (for testing):     muérdago áéíóúàèìòù F̸̡̢͓̳̜̪̟̳̠̻̖͐̂̍̅̔̂͋͂͐l̸̢̹̣̤̙͚̱͓̖̹̻̣͇͗͂̃̈͝a̸̢̡̬͕͕̰̖͍̮̪̬̍̏̎̕͘ͅv̸̢̛̠̟̄̿���


How to properly format a pendrive with Ubuntu and have permissions to read/write from any computer

I want to know what is the "user friendly" solution for formatting a pendrive and do not loosing every pendrive you format with any Ubuntu (v12 onwards). Now, I have Ubuntu 16 and I just loose my pendrive and I need to look for someone using Windows for making it right. I used the "disks" tool, unmounting the unit, formatting it to ntfs. After doing it, I can not wtite on the pendrive anymore (except if I format it with Windows). SO, what is the big change? What should I do? I also tryed to format it with gparted, but I have the same result.   Please, people, this should be something easy to do, and it is not for me :(


Problem with Where, dont work in SubQuery

i need help in a sql query.  Before I did the query like this  select * from reklamation where id_marke='112' and aktiv='1' and status='0'   but now the status column ist in another table (reklamation_status).  I tried like this  SELECT id, aktiv, id_marke, (SELECT reklamation_status.status                              FROM reklamation_status                              WHERE reklamation_status.id_reklamation = reklamation.id                              ORDER BY reklamation_status.id DESC                              LIMIT 1 ) as status FROM reklamation WHERE id_marke = '112' and aktiv = '1' and status = '0'   But the where status='0' don't work.  Someone can help me? My english is not good, sorry.


I know that the roll-off of a transfer function gain is given by:  $$20\log_{10}\left(\left|\text{H}\left(\omega_2\right)\right|\right)-20\log_{10}\left(\left|\text{H}\left(\omega_1\right)\right|\right)\tag1$$  And when I have a three pole transfer function, that the roll-off tends to \$-60\space\text{dB}/\text{decade}\$ when \$f\to\infty\$.  Question: In order to calculate the roll-off accurately I must choose \$\omega_2\$ and \$\omega_1\$ much larger than the cut-off frequency. But how much larger?


What does "to squinch one's eyes closed" mean?

Please explain me the meaning of "to squinch one's eyes closed". Is it the act of closing eyes.  Example: "Squinching her eyes closed, she stepped through the archway."  Thank you!


what is the cause for sharp shadows when using strong bump?

I often have a problem when lighting where to see the sharp edges on the mesh. This happens when I add any bump & when I use Lamp as a light source. And the darker the scene & the stronger bump, the more visible these edges, even when the object is smoothed. Please help with this problem. Because of this it's impossible to make quality works.


I have a large number of images that I copied from a failing external hard drive. All of the images are fine and have no corruption, but oddly a large number of them are now missing extensions. The files are a mix of jpg, png, and gif, and are named in the following structure, all in a single folder.  1 2 3 4.jpg 5.png  etc   Some files have extensions, while many do not and are just the numbers. There are roughly 4000 images in this folder, so manually renaming is not an option.  Is there any script or program that can be used to determine the extension via meta-data and add it to the files as needed?  I have used "pyrenamer" from the software center for years for renaming files, but it doesn't appear to be able to add extensions.  Any help would be greatly appreciated, my coding sucks and I can't figure it out on my own.


Master-Master Replication: Missing PK Values

I have configured master-master replication in mysql 5.7.22 and its working fine. I am using below settings for PK values. I found issue in their ID sequence and pk values missing their sequence values    1 2 3 5 6 8   its missing 4 & 7 because its replicate latest auto increment value from one server to another server so its skip the numbers. Is there any workaround through which we can maintain this sequence  Server A: auto-increment-increment=2 auto-increment-offset = 1  Server B: auto-increment-increment=2 auto-increment-offset = 2


how to solve the java.lang.NullPointerException error (Reader.java:78)?

I download an open source file  and try to run it but I face a problem   the function that I face the problem with it listed as follows:  public class FileUtil {     private Logger logger = Logger.getLogger(FileUtil.class);      public List<String> loadDataSet(String fileName) {          List<String> stringsFromFile = new ArrayList<>();         String str = "";          //  ClassLoader.getResourceAsStream         try (InputStream is = getClass().getClassLoader().getResourceAsStream(fileName)) {             //System.out.println(is);              BufferedReader reader = new BufferedReader(new InputStreamReader(is));              if (is != null) {                 while ((str = reader.readLine()) != null) {                     stringsFromFile.add(str);                 }             }          } catch (FileNotFoundException e) {             logger.error(e);         } catch (IOException e1) {             logger.error(e1);         }          return stringsFromFile;     } }   the fileName = "/src/resources/DataSets/wiki-Vote.txt"  the runtime error showed in the following   1689 [Thread-1] DEBUG main.java.App.Datasets.DataSetController  - Start load DataSet:Facebook circles Exception in thread "Thread-1" java.lang.NullPointerException     at java.io.Reader.<init>(Reader.java:78)     at java.io.InputStreamReader.<init>(InputStreamReader.java:72)     at main.java.App.Common.Utils.FileUtil.loadDataSet(FileUtil.java:25)     at main.java.App.Datasets.DataSetController.loadDataSet(DataSetController.java:71)     at main.java.App.Common.UITasks.DataSetLoaderTask$1.run(DataSetLoaderTask.java:30)     at java.lang.Thread.run(Thread.java:745)   note:  I try different path but still the same problem  and I read many questions but I cant solve  they mention that the problem from the classpath of the jars  but really I am not expert because of that I can't figure out how to solve it by the way they told the others  please explain in  details  thank you very much


I downloaded and installed the 3.0.0-21 update to the kernel. It caused several problems including:   Firefox not asking for a folder before placing a URL into bookmarks Ubuntu 11.10 not automatically opening to the desktop (I still haven't figuring out a viable work around).    This may be an inability to hibernate and reinstall, but I believe I also had problems after shutdown and booting.   I have tried to learn how to return to the former 3.0.0-19, but I can't find anything to teach me. I would like to know how to return to the -19 configuration or how to reinstall the -21 configuration.


Statistical significance versus sample size

Statistical significance of a (variable in a) model grows with sample size. Citing :  If one uses test statistics with constant size (i.e. a constant degree of confidence), almost any simple model will be rejected given a sufficiently large data set.   ...[On the other hand] any hypothesis can be maintained by testing it on a sufficiently short time series.  From a practitioner's perspective, this is troubling. Statistical significance is often used in convincing that a (variable in a) model is relevant; but once you know it grows with sample size, the argument loses much of its power.   is a related discussion (e.g. the answer by Mark Claesen).  Questions:  (1) How to overcome the sample-size-dependence of statistical significance?  (2) Can we adjust statistical significance to make it independent of sample size?  (3) What to use instead of statistical significance?   The goal is to find out whether a given (variable in a) model is relevant and useful.


Does proper map $f$ take discrete sets to discrete sets?

Suppose $f:X \to Y$ is a continuous proper map between locally compact Hausdorff spaces. Are the following results true?  $1$. The map $f$ takes discrete sets to discrete sets.  $2$. If $f$ is injective, then $f$ must be a homeomorphism onto its image.  Edit1:Let $A$ be discrete in $X$ and let $K$ be compact in $Y$ then $f(A) \cap K=f(A \cap f^{-1}(K))$,is finite since $A \cap f^{-1}(K)$ is finite.Hence $f(A)$ is discrete. As there is a counterexample in answer below so can someone please point out the error in my proof?


Where does the phrase "Scare the Dickens out of..." originate from? And does it refer to Charles Dickens?


I would like to add an addon preference setting to the user preferences for my addon. I would like to have a list there where you can add and remove things (at first only Strings). This sets it up: class AddonPref(bpy.types.AddonPreferences):     bl_idname = __package__      FileName : StringProperty()      presets_List = ["hi", "bye"]      addRemove : EnumProperty(         items = [('one', 'add', ''),                 ('two', 'remove', '')                 ])      def draw(self, context):         layout = self.layout          box = layout.box()         split = box.split()         col = split.column(align = True)                  col.prop(self, "FileName")         row = col.row()         row.prop(self, "addRemove", expand = True)         col.operator("presets.addremove")          for x in self.presets_List:             col.label(text=x)  And now I would like to edit the list with an operator (I already have got the add/Remove Enum and the FileName String properties. Only thing missing: the operator class PresetsADDREMOVE(bpy.types.Operator):     bl_idname = "presets.addremove"     bl_label = "resets func"     bl_options = {'REGISTER', 'UNDO'}      def execute(self, context):         preferences = context.preferences         addon_prefs = preferences.addons[__package__].preferences          presets = addon_prefs.presets_List          if addon_prefs.addRemove == 'one':             presets.append(addon_prefs.FileName)         else:             presets.remove(addon_prefs.FileName)                    return {'FINISHED'}  This operator does work correctly.Though, I have got one big problem. The list is not the same in other blend files. It does not behave as an addon preference "property". So what would I have to do to fix this problem? Thanks for the help! :D


Is it proper English to say:" All you need are Rita, George and a Schnauzer"?

I carved a sign and my wife says that the message does not sound grammatically correct. Can you help?


Would an extra gigabit ethernet card improve server performance

my setup is the following:  TP-Link TL-ER5120 Gigabit Load Balance Router   The router has 2 WANs and 3 LANs connected to it:   LAN 1 Cable goes to a TP-Link SG-1024 Gigabit Switch (24 gigabit ports) LAN 2 Cable goes to a wireless router LAN 3 Cable 3 goes to a wireless router   So, my server is currently connected to the gigabit switch via 1 cable. The server is used by about 20 people for project management and ownCloud (file sharing).   Would it improve performance to add another gigabit ethernet card and connect it to the switch on another port?  NOTE: The load balancer sends all port 80 and 443 requests to the IP that the current network card has. If I add another card I wouldn't be able to redirect traffic from port 80 and 443 to it I think.


Can 'being' be omitted in this sentence?

Their work is still far from (being) finished.   Can 'being' be omitted in the sentence above?


Can I get $\cos(x)/\!\cos(y)$ if I have $\sin(x)/\!\sin(y)$?


The king and his wine combinatorics problem

A king has 1000 bottles of wine each of different brand. A man mixes poison in exactly one of these bottles and is caught and brought in front of the king.The man refuses to tell about the specific bottle. The king decides to use his men up(decides to make them drink) to find the poisoned bottle. The poison is such that even a drop of it causes instant death.How many of the king's men would have to be sacrificed before he finds out the bottle.


How do particles with different Quantum Spin Numbers interact differently with other matter? What does spin cause? I understand that electrons etc act as if they are spinning my emitting a magnetic field (I think?) but what does the spin value represent? Does it represent the rate at which a particle would have to spin at to emit an electromagnetic field of x size? If so, what is the multiplier?    (I am new to particle/quantum physics [I am just researching it for fun {I am in 8th Grade}])


Calculating proportion of area that is land within bounding box using Python

I am trying to find the proportion of land in an area specified within a bounding box (in python). The bounding box is given by min/max latitude & longitude coordinates. The initial solution I came up with was to sample N random points within the bounding box and check (for each point) whether it lies within a landmass or not. Specifically, I checked the point within a landmass shapefile (from here: ). It doesn't give an exact area answer but an estimate. This solution works but it is really slow (even with multithreading) so I was wondering if there is a better way to do this? I was thinking that you could isolate a landmass polygon within the bounding box from the shapefile and calculate the area within that. But I am very new to the osgeo package and shapefiles in general so I am not sure where to start with this problem. Is there another way that I could do this? Here is my reference code and some pictures of my initial solution (some code is missing like the bounding box calculation code, I can add it at request if needed): import numpy as np from osgeo import ogr from itertools import repeat import multiprocessing as mp import matplotlib.pyplot as plt  def is_pt_land(lat, lon):     shape = ogr.Open('./ne_10m_land_shape/ne_10m_land.shp', 0)     shape_layer = shape.GetLayer()     geo_ref = shape_layer.GetSpatialRef()     point_ref = ogr.osr.SpatialReference()     point_ref.ImportFromEPSG(4326)     ctran=ogr.osr.CoordinateTransformation(point_ref,geo_ref)     #Transform incoming longitude/latitude to the shapefile's projection     [lon,lat,z]=ctran.TransformPoint(lon,lat)      #Create a point     pt = ogr.Geometry(ogr.wkbPoint)     pt.SetPoint_2D(0, lon, lat)      # check if point exists within shape     shape_layer.SetSpatialFilter(pt)      return len(shape_layer)>0  def is_land_thresh(bounds, iters=5000, thresh=0.80):     xpts = np.random.random_sample((iters,))     ypts = np.random.random_sample((iters,))     xpts = (abs(bounds[0][0]-bounds[1][0])*xpts) + bounds[0][0]     ypts = (abs(bounds[0][1]-bounds[1][1])*ypts) + bounds[0][1]      with mp.Pool() as pool: # applying the is land function to all the random points         truth_arr = pool.starmap(is_pt_land, zip(xpts, ypts))      truth_arr = np.asarray(truth_arr) # creating a visual of the truth array to generate an estimate     plt.figure()     plt.scatter(ypts[truth_arr], xpts[truth_arr], c='green', s=2)     plt.scatter(ypts[~truth_arr], xpts[~truth_arr], c='blue', s=2)     plt.show()     return (np.sum(truth_arr)/iters) >= thresh          # Testing bbox and land threshold calc loc = GeoLocation.from_degrees(26.062951, -80.238853) # create center point bbox = loc.get_bbox(50)   # get bounding box with 50km from center point (100km x 100km roi) is_land_thresh(bbox)      # determine if area is mostly landmass  Here is a photo of the scatter plot calculation:  Here is the landmass bounding box denoted by the min lat/long as the SW coord., the max lat/long as the NE coord., and the center coordinate:


What is the difference between CMYK and RGB? Are there other color spaces I should know?

I'm a photographer, who dabbles in graphic design from time to time as well. What are the differences between the various color spaces?


I have a custom url companyname.com. I have a community with the url mydomain.force.com. Now when I enter the custom URL in the browser, it should redirect to community login page. Is there any way to achieve this scenario. Please suggest


When should I use a List vs a LinkedList


When is the Killing form $\kappa$ of a Lie algebra $\mathfrak g$ null, i.e. $\kappa(\cdot,\cdot)=0$? Surely this is true for any Lie algebra with trivial bracket, but is this the only case? I can't seem to find any nontrivial examples.


When I shut down(not sleep or standby or hibernate) the computer the is at 80%. Next morning I tried open my laptop it didn't start without plugging the ac power because the battery level is 0%. I'm sure its not my battery problem because its giving 3 hours of backup on 80%(battery life cycle extension) only and I calibrated my battery too.  I bought my laptop last year. My laptop is Samsung series 3 np350v5c Windows 7 home premium 64-bit and 8 gb ram installed. I just wanna know why this happened and a solution of course.


Capacitors and inductors are .    A transformer is made of two inductors, and transfers power through , through the magnetic  (right?)  Also, you can vary the ratio of voltages or currents by changing the ratio of turns on the core.  You could think of this as coupling a single primary loop with many secondary loops, and then stacking the secondary loops so their output voltages are summed.  Is there an electric dual of the transformer?  Something that uses capacitance and transfers power through the electric near-field over an isolation barrier?  Some way to couple a single primary capacitor with multiple secondary capacitors and then stack them to do power conversion by summing their outputs?  I know that an isolated supply can be built using two capacitors, but I'm not sure if that's exactly a dual, or if there's an equivalent to adjusting the ratio of turns:     Or maybe something related to this?      For example, there are capacitive voltage dividers, but these only reduce voltage, they can't increase it like an autotransformer.  There are charge pumps, but those require active elements like switches or diodes, which aren't present in a transformer.  More succinctly: Is there a way to transform power (1 V, 5 A on primary to 5 V, 1 A on secondary) using electric fields instead of magnetic fields, and passive components only?  If not, why not?  (Electric field screening?)


Why do Americans say "less than five people"?

I thought "people" is countable, so we should say "fewer than five people"?  Being in the US for many years, I rarely hear people saying "fewer than," even with countable nouns like "people."  I presume this usage is grammatically wrong, but idiomatic?


How to customize the font family for math

In XeLaTeX, it’s convenient to customize font families for body text through the fontspec package. But I intend that the math equations be displayed in a custom font, say Comic Sans MS. How to do that in XeLaTeX? \documentclass{article} \usepackage{fontspec} \begin{document} % I want this equation to be typeset in Comic Sans MS % Is there any command like % \setmathfont{Comic Sans MS} ? \begin{equation} p\land q \lor r \to s \end{equation} \end{document}


What are the extra features of Cave Story on the Wii?

I recently was told that Cave Story was ported to the Wii. It was an excellent game on the PC, the perfect match of excellent gameplay and story. The Wii version isn't just a straight port, is it? Are there extra features available that will provide a completely new experience to the game?


Linker Error LNK2019 & LNK2001 on templated class files

I recently started using the template-features of C++. Unfortunately, I think I did not quite understand how to write the implementation of a templated class. I got one templated class with implementation, and one templated class with a subclass that has an implementation. The compiler gives me those 2019 Linker errors on nearly all methods of both classes - And I'm pretty sure the problem lies in the way I implemented the templated classes. When I looked up those errors, most of the time it occured when someone forgot to implement a method he had defined in the header, but I'm pretty sure that this is not the case here.  My code looks as follows:  //ResourceManager.h #ifndef ResMan_H #define ResMan_H  #include "Loader.h" #include <iostream> #include <map> #include <string>  template<class Res> class ResourceManager {  private:     std::map<int, Res*> resourceList;     Loader<Res> * loader;  public:     ~ResourceManager();     ResourceManager(Loader<Res> * loader);     void load(int key, std::string filePath);     Res* request(int key);     void unload(int key);     void dispose(); };  #endif   Implementation:  //ResourceManager.cpp #include "ResourceManager.h" #include <assert.h>  template<class Res> ResourceManager<Res>::~ResourceManager(){     this->dispose(); }  ResourceManager<class Res>::ResourceManager(Loader<Res> * loader){     this->loader = loader; }  void ResourceManager<class Res>::load(int key, std::string filePath){     unload(key);     this->resourceList[key] = this->loader->loadFromFile(filePath); }  Res* ResourceManager<class Res>::request(int key){     assert(this->resourceList.find(key) == this->resourceList.end() && "Resource could not be found. Make sure to load it before requesting it.");     return this->resourceList[key]; }  template<class Res> void ResourceManager<Res>::unload(int key){     if (this->resourceList.find(key) != this->resourceList.end()){         delete this->resourceList[key];         this->resourceList.erase(key);     } }  void ResourceManager<class Res>::dispose(){     for(std::pair<int, Res*> kv : resourceList){         delete kv.second;     }     resourceList.clear(); }   Loader.h  #ifndef Loader_H #define Loader_H  #include <iostream>  template<class Res> class Loader {  public:     virtual Res* loadFromFile(std::string filePath);  };  #endif   TextureLoader.h  #ifndef TextureLoader_H #define TextureLoader_H  #include "Loader.h" #include <SFML\Graphics.hpp>  class TextureLoader : public Loader<sf::Texture> {  public:     sf::Texture* loadFromFile(std::string path);  };   #endif   Implementation  #include "TextureLoader.h"  sf::Texture* TextureLoader::loadFromFile(std::string path){     sf::Texture* texture = new sf::Texture();     texture->loadFromFile(path);     std::cout << "Texture loaded" << std::endl;     return texture; }   Sorry for the long code, but even if the body of those functions should be irrelevant I rather post it since I'm not 100% that the error doesnt lie in that code.


Neutrino Oscillations and Conservation of Momentum

I would like to better understand how neutrino oscillations are consistent with conservation of momentum because I'm encountering some conceptual difficulties when thinking about it. I do have a background in standard QM but only rudimentary knowledge of particle physics.   If the velocity expectation value of a neutrino in transit is constant, then it would appear to me that conservation of momentum could be violated when the flavor eigenstate at the location of the neutrino source is different from that at the location of the interaction, since they are associated with different masses.  For this reason I would think that the velocity expectation value changes in transit (for instance, in such a way to keep the momentum expectation value constant as the neutrino oscillates), but then it seems to me that the neutrino is in effect "accelerating" without a "force" acting on it (of course, since the momentum expectation value is presumed constant, there may not be a real problem here, but it still seems strange).   Any comments?


Can we find a Galois extension with Galois group $\mathbf{Z}$?

Let $F$ be a finite field, $\bar{F}$ its algebraic closure. A standard result in infinite Galois theory shows that $\mathbf{Z}$(corresponds to the free cyclic subgroup $\left \langle \sigma \right \rangle$ in Gal($\bar{F}$/$F$) that is generated by the relative Frobenius homomorphism) is not the Galois group of Gal($\bar{F}$/$F$) but dense in it with Krull topology. So I want to know whether there is a Galois extension with the Galois group be exactly $\mathbf{Z}$. I think the answer is false, but I don't know how to prove that...


Why are Haki attacks not effective on Marine admirals?  In the Marineford war, we see countless instances where Haki-imbued attacks don't affect Marine admirals. When Marco and Vista attack Sakazuki, he even acknowledges that they are Haki-imbued, but nothing apparently happens:    Another case is when Whitebeard attacks Aokiji:     What's with the admirals? Their Logia powers don't seem to be easily affected by Haki attacks. I mean we have many instances where Haki has touched their body, but still there are many instances where attacks on their body don't result in damage. What's the deal with Marine admirals?