Which of the grammatical constructions above is (or are) more typical of what is commonly said and heard in colloquial AE?  If all three options work, is there any difference to them meaningwise?  Also -- excluding grammar rules and switching to nonstandard -- what would be the typical response(s) from John & Jane Doe in casual speech to the question:  [FYI I'm asking this question in consideration of the following source  focusing on the various ways to respond to a present tense question starting with "Have you got..." in casual speech, and so I wish you could tell if the same ungrammatical "rule" might also apply with present perfect questions.]     Have you ever been (or gone) to France?      Would it be:         Yes, I have/No, I haven't.   Yes, I do (have been to...)/No, I don't (have been to...).   Yes, I did/No, I didn't.      -     How about if I say: Have you been to the dentist?      Would the usual, most commonly heard response(s) be:         Yes, I have/No, I haven't.   Yes, I do (have been to...)/No, I don't (have been to...).   Yes, I did/No, I didn't.      If all of these options are possible, is there any difference to them?

Both are in the present perfect, but one uses the verb 'to go' and the other 'to be'. Is there a rule for this?  Is there any chance that the differences between "I have been" vs. "I have gone", are differences in English dialect (I don't know if this is the right word).  Edit Could I say that North American English speakers use "I have gone", and maybe U.K speakers say "I've been"? Or vice versa.


I want to use residue theory to integrate   $$\int_{-\infty}^{\infty}\frac{\sin(x)}{x}dx$$  What would be a good contour to use?   I plan to take the imaginary part of this integral:  $$\int \frac {e^{iz}}{z} dz$$  The integrand has a simple pole at the origin, so that is a bit problematic.  So, I thought of choosing an upper semicircular contour, with a small semicircular indent going over the origin.  The estimate over the big semicircle is easy to give and the integral on it goes to zero, as the radius $R$ grows to infinity.  The integration over the two half lines are the desired integrals.  And the integration should be set equal to zero, since this choice of contour avoids the pole at the origin, and by Cauchy's Theorem, the integration of an analytic function over a closed contour is just zero.  Now the only trouble is evaluating the integral over the small semicircular indent, call it $C_{\epsilon}$.  Parametrizing, we have that $z= \epsilon e^{i\theta}$ for $\pi \ge \theta \ge 0$.  Then the contour integral is (after a bit of simplification):  $$\int_{\pi}^0  e^{\large i\epsilon e^{i\theta}}i d\theta$$  $$=-i\int_0^{\pi}  e^{\large i\epsilon e^{i\theta}} d\theta$$  I'm not sure how to evaluate this integral, so any hints or comments are welcome.  Also, if you think a completely different approach would be better, please feel free to comment.  Thanks,

This refers back to $\int_{-\infty}^\infty \frac{\sin x}{x} \mathrm{d}x = \frac\pi2$ already posted. How do I arrive at $\frac\pi2$ using the residue theorem? I'm at the following point: $$\int \frac{e^{iz}}{z} - \int \frac{e^{iz}}{z},$$ and I would appreciate any help.


I am very much new to regex and I need to create one to parse logs into a shorter subset of that log message.   For instance, I have the log:  System trap received SystemString=Mon Jan 07 15:36:07 2017. System 1464333684: Type: Timing Quality le-5 System, Class: Timing, Level: None, Action: Clear System, Flags: 0x15   And I would like to parse and retrieve from it:   Timing Quality le-5 System, Class: Timing   At first this looked really trivial to me, but after watching many tutorials on regex... I am confused on how to approach such a task. Where do I begin?   Thanks in advance.

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


I'm using the master-flow detail template in android studio, and I keep getting a null pointer error when I try running my code when I call the following method in the onCreate() method of a Fragment class:      private void setUpMapIfNeeded() {     fm = getActivity().getSupportFragmentManager();     if (mMap == null) {          mMap = ((SupportMapFragment) fm.findFragmentById(R.id.mapFragment)).getMap();     } }   My layout is the following:  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="1"> <fragment     xmlns:map="http://schemas.android.com/apk/res-auto"     android:id="@+id/mapFragment"     android:name="com.google.android.gms.maps.SupportMapFragment"     android:layout_width="match_parent"     android:layout_height="0dp"     class="com.google.android.gms.maps.SupportMapFragment"     android:layout_weight="0.9"     tools:context=".CategoryDetailFragment"/>  <LinearLayout     android:orientation="horizontal"     android:layout_width="match_parent"     android:layout_height="40dp">      <Button         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="@string/record_audio"         android:id="@+id/recordaudiobutton"         android:onClick="displayLongitudeLatitude"/>     <TextView         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:id="@+id/longitudeTester" />  </LinearLayout>      java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mark.markmaptester2/com.example.mark.markmaptester2.CategoryDetailActivity}: java.lang.NullPointerException         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2367)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2419)         at android.app.ActivityThread.access$800(ActivityThread.java:151)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1342)         at android.os.Handler.dispatchMessage(Handler.java:110)         at android.os.Looper.loop(Looper.java:193)         at android.app.ActivityThread.main(ActivityThread.java:5323)         at java.lang.reflect.Method.invokeNative(Native Method)         at java.lang.reflect.Method.invoke(Method.java:515)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)         at dalvik.system.NativeStart.main(Native Method)  Caused by: java.lang.NullPointerException         at com.example.mark.markmaptester2.CategoryDetailFragment.setUpMapIfNeeded(CategoryDetailFragment.java:177)         at com.example.mark.markmaptester2.CategoryDetailFragment.onCreate(CategoryDetailFragment.java:72)         at android.support.v4.app.Fragment.performCreate(Fragment.java:1766)         at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:917)         at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1138)         at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:740)         at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1501)         at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:551)         at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1174)         at android.app.Activity.performStart(Activity.java:5353)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2340)                 Perhaps it is a simple fix however I can not identify the problem Thanks

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have a *.sh script that's missing the shebang from the first line. Can I fix it with sed?

I've been looking around sed command to add text into a file in a specific line. This works adding text after line 1:  sed '1 a\   But I want to add it before line 1. It would be:  sed '0 a\   but I get this error: invalid usage of line address 0.  Any suggestion?


For Photons, their 'waves' are oscillating electromagnetic fields. From what I've heard, electrons are also some kind of wave. So what 'field' is exactly oscillating for electrons, which makes them a wave? It can't be the electromagnetic field, I think?  Sorry if the question is stupid.

If an electron is a wave, what is waving?   So many answers on the internet say "the probability that a particle will be at a particular location"... so... the electron is a physical manifestation of probability? That doesn't sound right.   This page  seems to suggest that the spherical wave pair is what gives the electron the properties of a particle. I could be misinterpreting, but this answer makes more sense to me - if only I understood what was waving!


I've been trying to copy a entire folder to another and this it's simply adding the -r option  cp -r sourceFolder destFolder   But now i need exclude some files from sourceFolder. How achieve this?

Is there a way to use command 'cp' to copy a directory and exclude certain files/sub-directories within it?


For example, to calculate a specific exponent E, I need to read book A on summation, book B on multiplication, book C on exponent. After that I can do E.    C is surely cited, but is it required A and B to be cited too? If not, should they be cited? If both A and A' are excellent resources to understand what's summation is, is it fine to cite both of them? C' is also about exponent, but C is the one actually makes me understand what the exponent is. Should C' be cited?

I am writing my undergrad Bachelor's thesis in computational physics where I do C++ programming. In some C++ books, I read some things that were quite useful during programming, but they do not have a direct connection to the physics.  Since I was proficient with LaTeX before I started the thesis, I do not see a point in adding anything about that in the references. That is rather a skill than specific facts, and I did not really read about it during my research.  Another thing are resources that I consult for an introduction into a topic when I do not understand something in a paper. After reading that introduction material, I often understand the paper to a sufficient extent. When I then write the text, I think I could get by by only referencing the paper since it contains virtually everything needed. But it also seems wrong to omit that I read introduction material.   Should I cite sources like the C++ book? Should I cite introduction material like Wikipedia, websites or easy books?


Hi im trying to make it so I can generate a random number 1-35 so for example if the number is 25 it will write out in a string 25 equal signs. How can I do that?  Random r = new Random(); r.next(1, 35); R's result = 25 string result = 25 equal signs

What it's the best way to generate a string of \t's in C#  I am learning C# and experimenting with different ways of saying the same thing.    Tabs(uint t) is a function that returns a string with t amount of \t's  For example Tabs(3) returns "\t\t\t"  Which of these three ways of implementing Tabs(uint numTabs) is best?  Of course that depends on what "best" means.     The LINQ version is only two lines, which is nice.  But are the calls to Repeat and Aggregate unnecessarily time/resource consuming? The StringBuilder version is very clear but is the StringBuilder class somehow slower? The string version is basic, which means it is easy to understand.   Does it not matter at all?  Are they all equal?   These are all questions to help me get a better feel for C#.     private string Tabs(uint numTabs) {     IEnumerable<string> tabs = Enumerable.Repeat("\t", (int) numTabs);     return (numTabs > 0) ? tabs.Aggregate((sum, next) => sum + next) : "";  }    private string Tabs(uint numTabs) {     StringBuilder sb = new StringBuilder();     for (uint i = 0; i < numTabs; i++)         sb.Append("\t");      return sb.ToString(); }    private string Tabs(uint numTabs) {     string output = "";     for (uint i = 0; i < numTabs; i++)     {         output += '\t';     }     return output;  }


I am trying to configure my Z shell to not show duplicate history entries with 'setopt HIST_FIND_NO_DUPS'.  HIST_FIND_NO_DUPS When searching for history entries in the line editor, do not display duplicates of a line previously found, even if the duplicates are not contiguous.   However, it does not work in the expected way. When I have this history:      1  history     2  cd /bin     3  cd /bin     4  cd /bin   I expect to press UP twice (which is set to 'up-line-or-history') and get 'history' in my prompt. However instead I get 'cd /bin'. If I press UP four times it goes to 'history' command, which is basically the default behaviour without HIST_FIND_NO_DUPS set.  I know that I could use other options that would prevent duplicate commands from getting saved in the first place (such as HIST_IGNORE_ALL_DUPS), but that is not the behaviour that I want.

HIST_FIND_NO_DUPS          When searching for history entries in the line editor, do not display duplicates of a line previously found, even if  the  duplicates  are  not contiguous.    However, when I use Ctrl-p repeatedly, same command appears.  $ ls $ pwd $ ls $ <Ctrl-p> => ls    <Ctrl-p> => pwd   <Ctrl-p> => ls  again!   zsh 5.0.5 (x86_64-apple-darwin14.0)


I'm currently studying university level statistics and I'm struggling to wrap my head around the concept of variance as a function of the mean. How does this affect linear regression and why does it violate the assumption of constant variance? How can you visually assess stable variance?

I am plotting a residual plot to test for heteroskedasticity. The Breusch-Pagan test is significant and therefore I am suspecting there is evidence on heteroskedasticity.  The question is:  (a) How can I interpret such graph? I know some points seem to be on top of each other etc. is it as simple as that?  (b) Also the data has a lot of binary dummy variables. Could this be the reason for heteroskedasticity?


Normally, if I want to build a question about someone's verb, then I know the following formula.    building of statement.  Adding auxiliary verb in the beginning of the sentence and make it question.  adding WH question word before the auxiliary verb   For example:      It makes him happy > Does it make him happy? > What does make   him happy?   Now my question is why do when we use the verb "weights" then we don't use the auxiliary verb in the 3rd stage (wh question word):      He weights 80 kg > Does he weights 80 kg? > Who weights 80 kg?   I found just a few results for: "who does weights" and a pretty much of them are not relevant. Maybe it's not about the word "weights" but it's about the wh question "who" that behaves as exceptional for the mentioned formula, and I see it a lot in the spoken language, but I don't have enough knowledge to say it confidently.

What did you say?  What you said?   What did you wear? What you wore?    Where did you go? Where you go?    I know that sometimes in English, people do not use “do” in “wh-” questions. I have heard somewhere that people do not use “do” when the answer is a proper noun or a unique thing. Am I right?


I am new-ish to SQL queries and I'm trying to write a query properly which displays an event, its information, and the categories to which it belongs.  I want a result which looks like this:     TITLE: Band Battle!      WHEN: 7:00pm      VENUE: Parkland School      CATEGORIES: Music, School, Public   In my example, I have an event with three categories and I'm having trouble displaying this properly. I can get it to display all information including ONE category, or repeat three times displaying one category for EACH repeated listing. I also notice that if I have the same row in two tables, it'll only display the one it loads last. Is there a way I can tell it which row cell to load?  I've done this successfully in the past by having multiple SQL queries, but I know that's not proper. I'd have a query which displays all items, and each time one displays, have another query go out and get associated data, and then another for that data, etc. I'd run several hundred queries on each page load!  I'm sure that's not the best approach, so I'm trying to write one query to handle everything. I think JOINS are the way to go, specifically inner joins.   The information I need to display is spread across a few tables: an Events table, which has info regarding the event, including IDs associating it to the Venues table and EventCategories list.  Here's my SQL query:  from     `Events` e         inner join     `EventCategories` c         on e.ID = c.EventID         inner join      `Venues` v         on e.ID = v.ID   In my PHP, I call each data cell like this:  $row["Title"]   or   $row["CategoryID"]   It works, but there are a couple problems. I can only display one category at a time. Also, if I call something like $row["image"], and I have this row in both my Events and Venue table, it displays the wrong one.  I don't get any error messages, but I think I know the problem and solution, and I just don't know how to write it.  I THINK I have to say which table from which to call when I put a variable down, like $row["v.Title"] will call from Venue (but it won't). I also think I have to take a variable like the $row["Categories"] and break it down in to components, but I can't seem to find any information on how to do that either.  Any help would be much appreciated!  Here's my data, showing relevant parts only:  EVENT ID    Title         Time     Image      VenueID 20    Band Battle!  7:00pm   band.jpg   1  VENUES ID    Address      Name             Image 1     123 Street   Parkland School  school.jpg  EVENT_CATEGORIES ID    EventID    CategoryID 1     20         54 2     20         12 3     20         84  CATEGORIES ID    Name 12    School 54    Music 84    Public     Not a duplicate:   This might not be the solution to my problem (though it may be a part of it) and it doesn't seem to address how to grab multiple pieces of information from another database, which is the main part of my question.

Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?


I would like to start an activity only if the string I pass with putExtra from another activity equals 'search' like so:         action = intent.getStringExtra("cause");         Button btnBack = findViewById(R.id.btnBack);          btnBack.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 if(action == "search") {                     Intent intent2 = new Intent(profiloutente.this, ricerca.class);                     startActivity(intent2);                 }              }         });  But, the condition always seems to be false (so the activity doesn't start) even if the variable containing the get Extra equals "search". I don't understand why this happens. Could someone help me?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I'm looking for a way to describe the thing that finally triggers something after rising tensions. For example, some isolated incident triggers massive protests, but the protests are really due to decades of rising tensions.  The isolated incident itself is somewhat arbitrary and could have been one of many things, but the rising tensions were already ready to explode.  Preferably the expression wouldn't trivialize the triggering incident.  Any ideas?

I would use rope-a-dope, but it's got connotations of pretending to lose that I don't need. I'm trying to describe the behavior of someone who sends twenty detailed emails a day about various projects, and the recipient of his emails has finally gotten tired of trying to parse them, so the recipient just agrees to whatever he proposes. I'd like an expression that evokes both outward earnestness and hidden creepiness, like Uriah Heep, Dickens's "Humble servant" with veiled ambition, who overdoes it with professions of humility until he's in power. Water torture would work, but comes too close to a more racist expression that I'm not comfortable with.


I am designing a multiple choice question exam and I would like for the correct answer to be emphasized in the standardized bold way. The issue is that some of the answers contain only mathematics.  Here is a MWE:  \documentclass[addpoints]{exam} \printanswers  \begin{document}  \begin{questions} \question Which of these guys invented time?     \begin{choices}         \choice Stephen Hawking          \choice Albert Einstein         \choice Isaac Newton         \correctchoice This makes no sense     \end{choices}      \question     What is the way to write down the function for cubic power?     \begin{choices}         \choice  $f(x) = x$         \choice  $f(x) = x^2$         \correctchoice  $f(x) = x^3$         \choice  $f(x) = x^4$     \end{choices} \end{questions}  \end{document}   This, however, leads to the math option not being bolded:   I've tried to redesign the appearance of the correct option using \CorrectChoiceEmphasis{\boldmath}, but this does not provide the appropriate solution for two reasons: 1) I have to redefine it before every question with mathematical answer and then return back to the original definition, 2) The option mark (in this case "C.") is not bolded:    Is there a way to set the emphasis automatically so that both text and math are bolded in the correct solution?

I'm using the exam package to create a mathematics question paper. When printing answers, the \correctchoice command makes the choice letter as well as the text in the choice bold. However, it does not make any mathematic expressions bold.  Is there a way to add this to the document? I think the commands \boldmath and \unboldmath when put around the text will make both normal text and mathematic expressions bold, but I do not know how to "merge" it with the \correctchoice command.


With Java, I need to detect whether a given key (using it's keyCode) is pressed down or not at a certain moment in time.  You might suggest for me to create an event listener for all keys for a certain component and store all keys' states (pressed down or not). However, I need to know whether a key is pressed down in general, and not for a certain Java component.  For example, if my Java application is running in the background and a user has a key pressed down inside OpenOffice, I need to be able to detect so.  How would I accomplish this isKeyDown() functionality that is independent from java components within Java?  Any feedback is appreciated.

A Java6 application sits in the system tray. It needs to be activated using a hotkey (e.g. Super-G or Ctrl-Shift-L etc) and do something (e.g. showing an input box).  How do I do that on:   Windows (XP or Vista) OS/X Linux (Gnome or KDE)


If you try to delete an answered question, the site asks if you are sure about it. However, even if you click yes, it will just tell you that you can't delete it because it's an answered question. Why is there a prompt in the first place if it can't be deleted anyway?

So I tried deleting a question, my question. I'm not a mod, but I have reputation above 10k. I received this message after hitting delete, asking me to make sure I wanted to:    But after clicking Delete Question, I saw this:    It turns out that because the question has answers, I'm prohibited from deleting it. If I can't actually delete this question at all, could it just tell me immediately, and only show me the warning if I can actually delete it?  This is akin to the following analogy.     You see a flyer in your local paper stating there's a new burger shop   opening.  Great, you think to yourself, and rush over to get yourself   some burgers.  On your way into the parking lot, you see a huge banner   proclaiming one of their newest burgers. You see some employees walk   in and out of the restaurant, with T-Shirt with pictures of burgers on   them.  Great, you think to yourself, and walk in.   You get in line,   and after what seems like ages, you finally make it to the front.  You   look up at the menu.  You see that they also sell sandwiches. No, you   tell yourself, I'm looking for burgers.  You see that they also sell   burritos! No, you tell yourself, I'm looking for burgers.  Then you   see that they sell burgers. Great! You pick out a burger, then tell   the employee at the register, "Sir, I'd like to get a regular burger   please." Immediately, the employee looks up, with a quizzical look on   his face, saying "Sir? We don't sell burgers here.".   It's the same situation. I've come to that prompt so that I can delete a question.  After repeated messages and windows letting me know the consequences of deleting, what will happen after I have it deleted, I am told that the option of having it deleted by my own hand never existed in the first place.


i have decent pc ryzen 9 3900x 32 gb and gtx 1660 super. now i modeling turntable and have some problem not just now but often when i worked on complex shape blender start work very slow or even crash...here is example of object

Essentially, my problem is that i am trying to render a scene, however, blender crashes on me early during the render. I only have about 14 total objects in the scene. (It's not that complex) I tried to render a different blender file which was bigger than the one that i am having problems with, and the scene renders just fine. There is no difference in the render presets for both of these files. However, i still cannot render the other scene. It gets to preparing scene data, but then it crashes.  Thank you.


I want to run this command in background because the process could take a long time. How can I send it to a background process?  find /tmp/ -type f -mtime +3 | xargs rm -Rf   This does not work:  find /tmp/ -type f -mtime +3 | xargs rm -Rf &   How can I do this instead?

When I start a program from a terminal I can't use that terminal instance again until I close the program.  Is there a way to execute a program/application from a terminal without blocking the terminal until the program ends?


The field of study "English" should be capitalized but should "language arts" be capitalized?

Do I say "I study computer science," or "I study Computer Science"? Similarly, "I really liked that computer science course," vs. "I really liked that Computer Science course."


Meaning of wait on somebody/something is to wait for something to happen before you do or decide something  So I think its usage is correct in the following sentence     It was barely midnight when I arrived home but I found them both sitting at the table waiting on me.   But according to my book it should be waiting for me.  Although waiting for is also correct but I don't think waiting on is wrong.

Officials are waiting on autopsy results for Oscar-winning actor Philip Seymour Hoffman. New York police suspect a drug overdose, possibly heroin.   I am curious about the preposition on in the sentence, because I usually say "wait for" instead of "wait on". Does it still have the same meaning if I change on to for? Just as follows:     Officials are waiting for autopsy results for Oscar-winning actor Philip Seymour Hoffman. New York police suspect a drug overdose, possibly heroin.


I am logged into a remote shell and I had root access to this. I was trying to edit my .bashrc and .bashrc_profiles files when suddenly my connection snapped, leaving the files open. I suspect something went wrong. How can I restore these files from the command line?   I tried copying from /etc/skel, however my cp command is also not working. Neither do nano or vim work.

I've been trying to install Android developer tools on Eclipse, and I followed the information in .  Like the video said, I added the following two lines of code to the .bashrc file:  export PATH=$(PATH):-/android-sdk/tools/ export PATH=$(PATH):-/android-sdk/platform-tools/   It seems, however, that this did not help me to install the Android files on Eclipse, as I am still having problems with that. What's more, it seems that I can't make any command in the terminal without getting a major error now! Every time I try to make a command in the terminal I get the following message:     The command could not be located because '/usr/bin' is not included in   the PATH environment variable.   Is there away to restore .bashrc to its default?


Today during Arsenal vs Crystal Palace, Pierre Emerick Aubamayeng's boot came out after a tackle and he couldn't retrieve the ball, but in case if he managed to retrieve the ball, is he allowed to continue to play immediately, without the boot?

We had an incident during a recent game where a player was tackled causing him to loose his boot. The referee deemed the tackle fair and failed to award a free kick. Our player indicated to the referee that he had lost his boot by waving it in the air. The referee indicated to our player that the play should continue. The opposing player continued, clear on goal and scored with our player chasing the opponent with only 1 boot on.  This does not seem fair. Can somebody indicated if any laws of the game have been broken? I have looked at law 4, but can only find mention of a goal being allowable if a boot has been immediately lost.


This is NOT a question based on aiming problems, it is another intrinsic bug that I seek the solution to.  Whenever I equip a bow and shoot (any type of arrow), even with a full charge, the arrow leaves the bow, only to land just a few inches away from my face. It has made bows quite useless in my game, as the arrows fired drop down as soon as they leave the bow. (This problem is on vanilla, i.e. NO MODS USED)  I completed the game, without even picking bows once, and thus did not notice the bug until now. Restarting the game sometimes fixes the issue, but is not a permanent solution. I have tried the unofficial patches and have updated syrim to its latest version, so it is not mended that way. Anyone up with a solution?

I'm playing as a khajit in skyrim, going to assassinate Beitlid in Dawnstar. Now, the first time I did it on her porch and just killed her with the Blade of Woe. I got caught somehow, whatever, so I loaded a previous save because mid-jailbreak the guards decided to just attack instead of attempt an arrest.  Then I tried sniping her... and now my arrows have FED, Flight Erectile Dysfunction. They fly... like two feet before suddenly dropping off. It's weird. It doesn't matter how long I hold the trigger, it just droops.


How do i get the block machine name $block_id programmatically in Drupal 8?  $block_id = 'machine_name_to_determine';  $block_config = \Drupal\block\Entity\Block::load($block_id);

In Drupal 8, is there a way to figure out what current block or view machine name you should use?  For example, with the following code, I noticed that 'machine_name_to_determine' could change depending on how many times you have used your block.  $block_id = 'machine_name_to_determine'; $block_config = \Drupal\block\Entity\Block::load($block_id);   I need a way to retrieve this at run-time. How can I retrieve it?


I'm running Kubuntu 17.10, and I've noticed that there doesn't appear to be any swap space available. This is a system upgrade from 17.04. I'm running an encrypted home folder, but no full disk encryption (I'm pretty sure about the full disk encryption, but I'm not 100% sure, and I'm not sure how to check if I am). How can I restore the swap system? I know that Kubunu 17.* changed how the swap system works, so I don't think previous solutions (Such as ) are applicable.  Note the swap space notification on the lower right   EDIT 0:  Output of cat /etc/fstab  # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name     devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> # / was on /dev/sda2 during installation     UUID=4498e4cd-fef7-4d1f-843b-60054064dea9 /               ext4            errors=remount-ro 0       1 # /boot/efi was on /dev/sda1 during installation #UUID=C7BD-3586  /boot/efi       vfat    umask=0077      0       1 /swapfile                                 none            swap    sw                  0       0     #/dev/mapper/cryptswap1 none swap sw 0 0 UUID=C7BD-3586  /boot/efi       vfat    defaults        0       1`   EDIT 1: Output of ls -lah /swapfile  -rw------- 1 root root 2.0G Aug 19 15:04 /swapfile  EDIT 2: This question is distinct from () due to the nature of the swap space. On diagnostic tools, there doesn't appear to be any swap space, as seen in the lower right hand corner of the System Monitor picture. The swap space is not reluctant, it simply doesn't exist according to the system diagnostic tools. Additionally, the behavior of the swap space varies as well. The system will never put RAM to the disk, ever. As the system RAM becomes more saturated, system performance degrades, and as it hits the limit, the system seizes, and never returns. This is clearly divergent behavior from

A weird problem has appeared on my laptop running Ubuntu 16.04. I have 8 GiB RAM and 10 GiB swap area. It worked fine, programs were swapping fast from the SSD, the swapped memory were mostly memory leaks and forgotten mmap anyway... but then something broke it. I have no idea what, I have not noticed it immediately. But now, it swaps incredibly rarely.  The swap space is almost unoccupied, I can have 95% RAM usage and swap space is only 5% full. If RAM fills up, it rarely swaps anything out, it freezes instead, sometimes it recovers after killing a program, but way too often, I have to do a hard reset.  I have checked the swappiness property, but it is set to 60 and setting it to 100 changes nothing. I upgraded Ubuntu to version 17.04, but it didn't help.  If I run a process that takes a lot of memory and uses it actively, it appears to swap out the memory of this process (that just allocated it!), making the process freeze again soon to get back the memory shortly aferwards, in a never ending loop. Almost none of the swapped out memory remains swapped out for long, although I am pretty sure there is enough leaked memory and unused programs to swap.  Any ideas what might be wrong?


this problem comes under the topic Baye's theorem. I have no clue how to solve this.  I found this answer from one book,but not sure whether its correct

A bag contains $4$ balls .Two balls are drawn at random and are found to be white.  What is the probability that all the four balls in the bag are white?.  The options are $\large\frac{1}{5}\space ;\frac{2}{5} ;\frac{3}{5} ;\frac{4}{5}$  My work: It's given that two balls are white.So the rest of the balls could be    all white One of them white none of them white   So among the three above possibilities only one satisfies our conditions so the probability is $\frac{1}{3}$.But it not even the options given. What's wrong with my work?


I searched with Google, but could not find how to show line numbers in TeXstudio 2.10.8. I thus request this community's help.

How do I show line numbers in the editor? According to the picture in the doc (e.g. about bookmarks) there should appear by default.  I'm using Texstudio version 2.7, win8.1.


some people have made distributions based on Ubuntu and they're charging a price for it. Is this legal?

What license does Ubuntu fall into (GPL, MIT, a mix)? Would it be legal to modify it and redistribute my modified version?


I want to find out if a  program - Chromium for example - is installed on Ubuntu or not. Manually or as a package.  How do I know if a program is installed via command line?

At our university we can get almost any ubuntu package installed we want, but we are not superusers ourselves (we need to request packages being installed).  With some libraries it is not always easy to know whether the package is already installed or not. Is there a simple way/command to check this?


I'm struggling to get my head around the relationship between UFD, PID and Euclidean Domain. I've seen in a theorem in my notes that Euclidean Domain ⇒ PID ⇒ UFD ⇒ ID. Is it possible for UFD ⇒ ED?

Could someone please provide an example of a unique factorization domain that is not a principal ideal domain?  Furthermore, is there some way to determine whether a UFD is a PID?


Short question: I've been very stupid and accidently commited a file with a password (in plain text) in it that I really do NOT want on the SVN server. So I panicked, deleted the password and commited again, but it's still in the log...  I permanently want to delete this password from the server, so it can't be retrieved by anyone anymore.  Is this possible?  If I revert to a version before the password and commit again, will it be deleted forever?

I was just thinking of writing a shell script to implement the obliterate functionality in an easy to do way (externally, using the suggested way, but automated).  Here's what I had in mind:  On the client   svn list -R > file-list. filter file-list in several ways like grep to create a file "files-to-delete", something like a set of grep XXX  file-list>>files-to-delete. transfer files-to-delete to the server using scp.   On the server   Dump the repository svnadmin dump /path/to/repos > repos-dumpfile, this can be kept as a backup too. Filter the dump file, for each word in "files-to-delete", do: cat repos-dumpfile | svndumpfilter exclude $file > new-dumpfile Create a new repository and load the new file to it svnadmin create new-name; svnadmin load new-name < new-dumpfile   Would this work? How can it fail? Any other ideas?


What is the most appropriate hyphenation for this term for a person who seeks approval from others?   "social-approval seeker" "social approval-seeker" "social-approval-seeker" "social approval seeker" something else?   EDIT: To clarify, I mean to describe "a seeker of social approval", rather than "an approval seeker who is social".

Some compound words are written without hyphens (nonaggression, nonbeliever), some with hyphens (well-intentioned), and others with spaces (post office).  Is there a rule or good guide as to which option should be used?


My Debian 7 is with letters tty terminal text mode are very small. How to increase?   I know that Fedora 20 is possible to install in a troubleshooting installation.   Thanks!

I have a Unix-like OS installed without a windowing environment; i.e., just a text-mode console and no GUI.  Is it possible to change the font used by the console?  To be clear, I am not talking about the terminal emulator that comes with a desktop environment like KDE or GNOME.


I am writing a paper for a Elsevier journal in optimization field. I was curious to ask, Do the reviewers ask the authors to send their Matlab or,.. codes of paper to proof their validness or honesty? And If yes under what conditions this decision is usually made?

I just started reading some papers (Computer Science, specifically Computer Vision) and thought "now let's look at the source code" and was quite astonished that most of the papers don't have any source code implementing the described methods to look at, while claiming some performance or being better than other papers.  How do these papers get accepted in journals / conferences? Do people have to submit their source code privately to the reviewers at least, so that they can reproduce the experiment if possible.  Do most journals / conferences just "trust" that people who submit the paper really implemented the theory and got those exact results?  I always had this idea that any experiment should be reproducible by others else it's not scientific justified. Been wondering about this the last few days.


I want to receive import and export path from user. From  I've known I can give the string property a sub-type which turns it to a file or directory selector, the problem is that they give a wrong path, some parts are replaced by ".." and some parts are not typed at all. I want to receive those paths from user to use them later when the user executes an operator (by clicking a button when everything is ready).  this is my code: class myPaths(bpy.types.PropertyGroup):     @classmethod     def register(cls):         bpy.types.Scene.myPaths = bpy.props.PointerProperty(type=myPaths)      @classmethod     def unregister(cls):         del bpy.types.Scene.myPaths      fileExportPath: StringProperty(         name="export path",         subtype="DIR_PATH",         description="some description"     )     jsonImportPath: StringProperty(         name="import path",         subtype="FILE_PATH",         description="path of .json file to import."     )     fileName:StringProperty(         name="output file name",         description="Write file name without any file extension."     )  How can I receive correct file and directory paths form user?

What's the best way to get the full directory of the current Blender file in Python?  It should be cross-platform.


When I was about 10 I read a great comic hardback.  the story based around the discovery on earth of a crashed alien ship, with a giant human pilot.  I clearly remember a scene where the giant humanoid was on display and scientists on earth were discussing his biology.  There was also a book which needed to be translated and when one of the scientists finally managed to do it, it told the story of three brothers who formed a great city but ultimately fought each other.  The strip had a 1930 to 40s feel and it may have been European, I would love to be able to read it again.

When I was a kid I had a book that I loved, as I think about it I'm pretty sure it would be characterized as a graphic novel although I was unfamiliar with that term at the time. It was a large hardcover comic book but a full-length story, probably a few hundred pages long.  This would have been about 25-30 years ago.  I recall a little about the plot: It starts with a spaceship crashing somewhere, I remember one of the first panels had the phrase that the ship "yawed wildly". I always remembered that because I had to look up the word "yawed".   The rest of the story is told in flashback form, with the rise of an empire, and I'm pretty sure there's a guy who's a slave or otherwise in the lower strata of society who rises to be the ruler of the world or something like that.    I thought that the title had the word "titan" or "empire" in it (Empire of the Titans, or Rise of the Titans, or something similar), but Google searches have been unfruitful.


I don't mean to start a[nother] civil war over this issue, but should nullification be enforced or not?  While trying to fix a bug (that was fixed elsewise, as can be seen ), I added code like this in a couple of places to immediately and explicitly set some objects to null:  List<String> XMLFiles = CCRUtils.GetXMLFiles(fileType, @"\"); foreach (string fullXMLFilePath in XMLFiles) {     RESTfulMethods.SendXMLFile(fullXMLFilePath, uri, 500); } XMLFiles = null;   Now that I know that did not solve the problem I was having, should I just leave it, or remove this type of code?

Should you set all the objects to null (Nothing in VB.NET) once you have finished with them?   I understand that in .NET it is essential to dispose of any instances of objects that implement the IDisposable interface to release some resources although the object can still be something after it is disposed (hence the isDisposed property in forms), so I assume it can still reside in memory or at least in part?  I also know that when an object goes out of scope it is then marked for collection ready for the next pass of the garbage collector (although this may take time).  So with this in mind will setting it to null speed up the system releasing the memory as it does not have to work out that it is no longer in scope and are they any bad side effects?  MSDN articles never do this in examples and currently I do this as I cannot  see the harm. However I have come across a mixture of opinions so any comments are useful.


I have a sack of 1000 sticks. The length of the sticks are normally distributed. I randomly take out 5 sticks and measure them to be [40; 30; 60; 20; 30] mm long. How can I now calculate, with a confidence interval of 99%, the minimum and maximum length of the sixth stick?  I have managed to calculate the population mean standard deviation accurately using t-table but it really doesn't help me here.

Prediction intervals seem to be talked about most in the context of regression, but I want to reduce it to one random variable to understand the reasoning. Assume you are sampling from a normal distribution $N(\mu ,\sigma ^{2})$. Wikipedia says the prediction interval for a new observation $X_{n+1}$ will be $\overline {X}_{n}+s_{n}{\sqrt  {1+1/n}}\cdot T^{{n-1}}$. I am wondering specifically about the $s_{n}{\sqrt  {1+1/n}}$ part of the equation. If you square it to get the variance, it's $s_{n}^{2}{({1+1/n})}$. Why is the variance $s_{n}^{2}{({1+1/n})}$ instead of just $s_{n}^{2}$? Isn't $s_{n}^{2}$ supposed to be an unbiased estimator of $\sigma ^{2}$ in $N(\mu ,\sigma ^{2})$, from which all the samples (including a hypothetical $X_{n+1}$) are drawn? So why wouldn't a new data point $X_{n+1}$ also have variance of $s_{n}^{2}$? If I had to guess, it's something to do with the uncertainty around $\overline {X}_{n}$, hence the extra $s_{n}^{2}/n$ term. Intuitively, it doesn't make sense to me that there is more uncertainty around a new data point i.e. variance of $s_{n}^{2}{({1+1/n})}$ when you already have same sample data to go off, compared to if you just blindly drew a new data point without any prior sampling i.e. variance of $s_{n}^{2}$. Would appreciate corrections to my thinking and reasoning about this.


It is known that DES has the key-complementation property. That is, given any key $k$ and any message $m\in\{0,1\}^{64}$ $$\operatorname{DES}_k(m)=\overline{\operatorname{DES}_\overline k(\overline m)}$$  By using this property, show that the key search of DES can be sped up by a factor of two.

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


I've setup Gmail to use my own email address, like info@mycompany.com. When using this address as from-address, sometimes I want it to prefix with my personal name, and sometimes my company name. I mean the possibility to use either: John Doe <info@mycompany.com> or Acme Inc <info@mycompany.com>. Same from-address, but prefixed with a different name.  However, if I add one (in Accounts and Imports) and then add the other, it says: address already exists. Yes, that's right, but I want to use the same address with different names.  How do I go about this, or is this impossible in Gmail?

I can add me@mydomain.com under "send mail as" email address in Gmail settings.  But can I choose between two different names to use with it, like I can in e.g. Mac Mail?  For instance, can I set it up so when emailing I have the choice between sending mail as either Bob <me@mydomain.com> or Agent Black <me@mydomain.com>?


I am trying to prove that $2^{2^{1/2}}$ is irrational, but I am having a hard time doing that. Any hints?

Is $2^\sqrt{2}$ irrational? Is it transcendental?


I am trying to create a small program where I can have the program read in a word. If the word has 6 letters, display the word backwards.  If not, tell the user how many letters the word has. Do this until the user enters “japan”.   The example output is:     Enter a word > chess      chess has 5 letters      Enter a word > google      Magic six! ELGOOG      Enter a word > japan      Goodbye!   The if statement and the for loop are bypassed for some reason and I'm not sure why. My current code is as such:  import java.util.*; //imports the utilities public class WordPyramid {     public static void main(String[] args) {         String n;         Scanner kb = new Scanner(System.in);         System.out.println("Enter a word: ");           while ((n = kb.nextLine().toLowerCase()) == "japan" ) {             int y = n.length();             {                 if (y == 6) {                     String reverse = "";                      for (int i = y - 1; i >= 0; i--) {                         reverse = reverse + n.charAt(i);                         System.out.println(reverse);                     }                 }                 else {                     System.out.println(n + " has " + y + 1 + " letters ");                 }             }         }     } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


The other day, my soldering iron tip accidentally touched a plastic cable, so I quickly tried  to remove the plastic stuck to my tip using a tester lying nearby. I Soon discovered that the tip was live as the bulb in the tester glowed. I then disconnected the power supply and then check the connectivity of each of the plug to the tip, there was no short between the plug and the tip. I tried to touch the tip when it was on and I couldn't feel anything. I tried hooking up a multi-meter as well which showed about 9V between the tip and ground. Should I be worried about using my soldering iron? Is it safe to use it?

I discovered that my soldering iron has voltage at the tip and it seems to increase the hotter the iron gets. Should I be worried? I've been trying to repair an old CRT monitor and I'm worried the issues I've been having are due to this cheap iron damaging something.  How to meassure voltage of an soldering iron tip? Where to put probes?


I don't understand why in my code I get a :     null reference object   when i try to click on my buttons.  buttonMenuOption = findViewById(R.id.buttonOption); Button[] buttonsOption = new Button[nbObjects]; buttonsOption[0] = findViewById(R.id.buttonOption0); buttonsOption[1] = findViewById(R.id.buttonOption1); buttonMenuOption.setOnClickListener(new View.OnClickListener() {     public void onClick(View v) {         setContentView(R.layout.graph_option);             for (int i = 0; i < nbObjects; i++) {                 final int j = i;                     buttonsOption[i].setOnClickListener(new View.OnClickListener() {                         public void onClick(View v) {                             //Do stuff                           }                     });              }      });   To resume my code, there is an option button in my main activity, when I press it, it changes the layout then there are multiples buttons to activate a color picker.  Why is my buttonsOption[0] a null reference?  Update  buttonMenuOption = findViewById(R.id.buttonOption) buttonMenuOption.setOnClickListener(new View.OnClickListener() { public void onClick(View v) {      setContentView(R.layout.graph_option);      Button[] buttonsOption = new Button[nbObjects];         for (int i = 0; i < nbObjects; i++) {             final int j = i;             buttonsOption[0] = findViewById(R.id.buttonOption0);             buttonsOption[1] = findViewById(R.id.buttonOption1);             buttonsOption[i].setOnClickListener(new View.OnClickListener() {                     public void onClick(View v) {                         //Do stuff                       }                 });          }  });

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have searched the site and found numerous posts on this issue, but none really answer what I am experiencing.  Background  ( I know shrinkfile is bad, but in this case, it makes sense)  Our client has an .mdf file that is 1.65 TB in size, 1.26 TB is used, and about 390 GB is available in that file.  This data file is not intended to grow much at all, and should only contain the system objects. Unfortunately there are large tables created in that file by mistake totalling about another 800 GB that need to be moved to a different file group in order to take advantage of multiple files in the correct file group and a faster disk subsystem.    I wanted to test the shrinkfile before moving the clustered indexes to a new file group so we didn't end up with 800 GB larger DB if the shrink didn't work, which is exactly what is happening.  We are doing this on a new Prod server they will be migrating to shortly, and are using SA credentials with Sysadmin rights.  No matter what commands we run to shrink the file, the command takes about 10-15 seconds to execute it successfully. No errors show up, but the file does not shrink. I have tried the below commands in SSMS, tried to use the GUI shrink file directly, scripting out the GUI commands, and straight T-SQL with no movement on the data file size. Initially I had thought that truncate option was the problem, as their might not have been free space at the end of the file.  But even after running the notruncate keyword first, then using truncate, the file still did not shrink.  The following query shows that the database file does indeed have space available in the file:   SELECT [Segment Name] = RTRIM(name) ,AllocatedMB = CAST(size / 128.0 AS DECIMAL(10, 2)) ,UsedMB = CAST(FILEPROPERTY(name, 'SpaceUsed') / 128.0 AS DECIMAL(10, 2)) ,AvailableMB = CAST(size / 128.0 - (FILEPROPERTY(name, 'SpaceUsed') / 128.0) AS DECIMAL(10, 2)) ,PercentUsed = CAST((CAST(FILEPROPERTY(name, 'SpaceUsed') / 128.0 AS DECIMAL(10, 2)) / CAST(size / 128.0 AS DECIMAL(10, 2))) * 100 AS DECIMAL(10, 2)) FROM sysfiles ORDER BY groupid DESC   Result:     Segment Name    AllocatedMB UsedMB  AvailableMB PercentUsed   Prod1            1657703.06 1269089.75  388613.31   76.56   ShrinkFile commands Run:    DBCC Shrinkfile (N'Prod1', 0, Truncateonly)   Result: (file did not shrink)     DbId FileId CurrentSize MinimumSize UsedPages   EstimatedPages   5       1              212185992        384         162439904       162439904   Additional ways I've tried running the shrink file:  DBCC SHRINKFILE (N'Prod1' , 0, TRUNCATEONLY)   DBCC SHRINKFILE (N'Prod1' , 1396001)   DBCC SHRINKFILE (N'Prod1' , 0, NOTRUNCATE)   DBCC SHRINKFILE (N'Prod1' , 1600000) -- done to try a smaller shrink amount   Questions   I would expect if this was indeed shrinking the file by almost 400GB, SSMS would take more than 10-15 seconds to run, it would take hours before they query completes correct?    Is there some sort of data type issue that might prevent a shrink from working?  I found this article:  and it mentions LOB data (there is LOB data in that file) but this should just take a longer time to complete, nor prevent a shrink as I see it.   Anything else I am missing here? The syntax works correctly when I try it on my laptop, albeit with my small test DB, so its not the syntax of the commands from what I can tell.

We have a 2008R2 production DB in full recovery mode.  To produce a minimised dev version, for SQL Server 2014, the following steps are run:  RESTORE DATABASE BigDB FROM  DISK = N'C:\Share\BigDB.bak' WITH  FILE = 1,   MOVE N'BigDB_Data' TO N'C:\Database\BigDB_Data',   MOVE N'BigDB_Audit]' TO N'C:\Database\BigDB_Audit',   MOVE N'BigDB_Log' TO N'C:\Database\BigDB_log.LDF',  NOUNLOAD,  REPLACE,  STATS = 5  alter database BigDB set recovery simple with NO_WAIT alter database BigDB set compatibility_level = 120  go  -- {truncate / delete statements.. with no additional 'go'}  DBCC SHRINKFILE (N'[BigDB_Audit]' , 500) DBCC SHRINKFILE (N'BigDB_Data' , 1000) DBCC SHRINKFILE (N'BigDB_Log' , 1000) DBCC SHRINKFILE (N'BigDB_Data' , 1000) -- Without this repeat, file remains same DBCC SHRINKFILE (N'BigDB_Log' , 1000) -- Without this repeat, file remains same   I've observed that without the repeat of the shrinkfile on the main data file, and the log, one or both does not actually shrink.  Can this behaviour be expected, and if so why?


Suppose I have a DB2 database instance that manages a single database with 2 Schemas, say A and B What would be the benefits (if any) of having the instance instead manage 2 databases with one database containing Schema A and the other containing Schema B?

In several database systems (e.g., PostgreSQL and MS SQL Server) there is a concept of schema. There are many questions out there asking what schema are and how they are used; here is a . Usually the answer boils down to "namespace" and "permissions". However, what remains unclear to me is why a schema has any advantage over just adding a new database. A different database allows one to have both separate namespaces and permission assignments.  Can someone provide an example in PostgreSQL where multiple schema in a single database provide an advantage over multiple databases without schema? From a purely organizational perspective they appear equivalent.


Expected output: 56.00 and my output: 56.0 from statistics import mean if __name__ == '__main__':     n = int(input())     student_marks = {}     for _ in range(n):         name, *line = input().split()         scores = list(map(float, line))         student_marks[name] = scores     query_name = input()     marks_list=list(student_marks[query_name])     ans=(mean(marks_list))     print(round(ans),2)    My answer is 56.0 for the input, so is there any short way to do this?

I want a to be rounded to 13.95.  >>> a 13.949999999999999 >>> round(a, 2) 13.949999999999999   The  function does not work the way I expected.


Red Skull had survived his encounter with the Space Stone in Captain America: The First Avenger after all and was transported to Vormir to become Keeper of the Soul Stone.   What happened to him after Thanos took the Soul Stone he was keeping in Avengers: Infinity War?

Presumably, the massive sacrificial altar and a guide like the Red Skull is no longer needed once someone obtains the Soul Stone.  So what happens to the Red Skull?


I had to completely disassemble a laptop to get at the hard drive. While I was taking the screws out, I dropped one into the closed part of the laptop that can't be accessed. The screw is floating somewhere in the motherboard now. I am actually using the laptop right now and nothing seems to be wrong, but I am afraid to leave the laptop on and unattended because I am afraid that it could start a fire or something.  Are these concerns legitimate? Should I keep turning off my laptop whenever I leave it unattended? What is the worst that could happen? What dangers should I be aware of?

I am not very good with electricity so I can only guess. So should i be careful with screws and stuff when the pc is on?


I recently saw a disabled edit link on question on a meta, hovering over which showed this message.    I would like to know, why are suggested edits on non-tag wiki post on other Stack-exchange meta sites not allowed? Any particular reason ?

When you click "edit" on a meta site as a non-edit-privileged user, the error message appears:  Suggested edits are not allowed on non-tag-wiki posts on meta sites.  Right as I was going to post this as a possible bug, I finally found  which says that per-site Metas don't have suggested edits by-design because it's "not needed". However, I've been participating a lot over at  where there is a lot still to be figured out in terms of site guidelines.  The Meta is one of the most active I've seen and a lot of the questions are really trying to gather community-built suggestions.  So maybe more of those need to be Community Wiki, but it still brings me to ask why don't per-site-metas "need" suggested edits? Adding bounty: The more betas I participate in, the more I don't get this.


This came up in a game the other night, it seems broken but I can't find anything that says it's not allowed.  A party member has "Find Greater steed" and casts it into a spell storing ring. Another party member then attunes, casts from the ring, and has their own Pegasus.  Repeat for the whole party and now they all have their own Pegasus to ride, until they dismiss it/it dies.    Obviously this assumes they have time to repeatedly re-attune and regain spell slots, but still seems a little OP. Have I missed something?

Say a Wizard casts  for himself, and then casts it again into a Ring of Spell Storing. The Ring is then given to another person, let's say a Rogue, who uses the Ring to cast Find Familiar.   The description of Find Familiar says     If you cast this spell while you already have a familiar, you instead cause it to adopt a new form.   but the description of the Ring says      The spell has no effect, other than to be stored in the ring.   What happens? Does the Wizard's familiar change when the spell is cast into the Ring? Does it change when the spell is cast out of the Ring? Does the Rogue get a Familiar, since the Rogue is considered to be casting the spell?


My mom recently bought a new laptop it came with windows 10 and runs like S***. I think it's probably because of windows 10 and all the bloatware shipped with the pc. (really it's packed)  Here are the specs  Intel Celeron n3060 2gb of ram 500gb hdd  I'm hoping to get Ubuntu up an running on it, but wondering if Fedora or Elementary OS might be a better option. Anyway will Linux run well on here? And if so which flavor would you suggest?

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


If I want to order a list based on more than one property, I can't see a good way of doing that other than forming those properties to numbers and then using OrderBy, for instance:  int someArbitraryNumber = 1000;  List<Tuple<int, int>> test = new List<Tuple<int, int>>() {   new Tuple<int, int>(1, 3),   new Tuple<int, int>(1, 4),   new Tuple<int, int>(1, 5),   new Tuple<int, int>(2, 3),   new Tuple<int, int>(9, 15) };  var orderedTest = test   .OrderBy(x => x.Item1 + x.Item2 * someArbitraryNumber);   Here I'd be looking to for the resulting list to be:      (1, 3),     (2, 3),     (1, 4),     (1, 5),     (9, 15)   That is to say, first ordered by the second item, then by the first.

I have two tables, movies and categories, and I get an ordered list by categoryID first and then by Name.  The movie table has three columns ID, Name and CategoryID. The category table has two columns ID and Name.  I tried something like the following, but it didn't work.  var movies = _db.Movies.OrderBy( m => { m.CategoryID, m.Name })


I have one file with a scene containing animation in one file and in the other file I have an object with armature. Is there any way I can bring the object with the armature into the file with the animated scene?

I have created several designs for a particular project and they are related, but I don't want to have to keep recreating any similar elements, such as shared materials or textures.  How can I use the existing data in a new Blender file?


Example: public readonly struct Vector3 {     public readonly float x;     public readonly float y;     public readonly float z;      public Vector3(float x, float y, float z)     {         this.x = x;         this.y = y;         this.z = z;     }      public static readonly Vector3 oneField = new Vector3(1f, 1f, 1f);     public static Vector3 oneProperty => new Vector3(1f, 1f, 1f);      public static Vector3 operator +(Vector3 lhs, Vector3 rhs) =>             new Vector3(lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); }  How exactly does the behaviour differ when doing: var v = Vector3.oneField + Vector3.oneField vs var v = Vector3.oneProperty + Vector3.oneProperty From my understanding the content of the field is loaded and stored in the Heap/RAM when the (relevant part of the) program is loaded, the value is then copied from there into the stack twice when the + operator is called. While the property will allocate the memory directly on the stack twice when the + operator is called. Is that correct? And which one would be 'technically' faster? (just curious about the details) EDIT I think technically its not a property but just an "expression-bodied member", however thats irrelevant for the question, but I will correct it for clarity if necessary.

In C#, what makes a field different from a property, and when should a field be used instead of a property?


Usually When you ping a website (e.g Google.com) it replies with a specific Ip My question is: Is there anyway where you can call a website and replies with an IP you have set manaually like 1.2.3.4  meaning if I ping google.com from my pc it will reply with 1.2.3.4

I have a small home network that just got larger (new roommate, my existing roommate got a laptop (on top of her computer), my friends coming over with laptops, etc.).    I'd like to run a local DNS server for lookups of my local network stuff (fileserver.local, windowsTV.local, machineA.local, machineB.local, appletv.local).   I used to have a business line with a static IP, and run bind/named internally.   However, now I have a normal account.  My ISP's DNS servers are constantly changing (for whatever reasons my ISP doesn't like to keep the same IP range for long).  I need my local DNS to be automatically updated to use my ISP's DNS for external traffic, but be able to maintain an internal DNS server (getting to update the hosts file is being a hassle with every new machine on top of rebuilding existing machines with win7 or Ubuntu 9.04).  Additionally, My ISP's DNS servers often crash or become unresponsive.  Are there any open DNS servers that are reliable (I don't want to reconfig every day) that I could use as my primary, then if those fail, then use my ISP's?  UPDATE:  Also looking for each workstation to be able to use dhcp to connect, but instead of getting ISP DNS servers, getting my internal one....


Is there a mechanism that counts the total number of flags raised by each user, and calculates the percentage of those flags that get rejected? If not, may we have one?  If the rejection number is too high — say, ten flags rejected in a day, 25 rejected in a week or 50 rejected in a month — the system should revoke the user's ability to cast more flags for a specific, pre-determined period of time, or even forever.  This would help moderators because they wouldn't have to review as many spammy flags — in other words, flags that are themselves spam, not to be confused with flags reporting spam posts — or as many instances of users getting flagged for no good reason.

Currently, users can get stuck in a permanent flag hellban from which there is no recovery.     I've asked around before and it doesn't look like recovery is possible. To recover, you'd need to gain flag weight, and to gain flag weight you need someone to handle your flags. Since your flags now go into the void, you can't get any of them marked helpful via any means. – Adam Lear♦    Users can enter this hellban even if they have many more helpful flags than declined flags. Subsequently, their future flags are never reviewed, despite the likelihood of being helpful.  I suggest allowing users to recover from this ban in the following way:   User must have more helpful flags than declined flags (perhaps somewhere in the 1.5:1 to 3:1 range?) Hellban flags are tracked silently. If another user flags the same post (and that flag is marked helpful), or if the post is deleted, the flag counts as "helpful" (not actually marked helpful until the user is unbanned). Once the user reaches a certain threshold (perhaps related to measurments that trip the hellban) of "helpful" flags, and at least 2/3 of their hellbanned flags are "helpful", the ban ends.   This allows good users who get hellbanned because of a bad streak to come back from it.


I have a laptop with Ubuntu that has Broadcom BCM43142 network controller. I intend to use my laptop as a wifi-hotspot. The available drivers for BCM43142 do not support creation of access points hence my attempts at creating a wifi access point have failed.  Is there any other way I can create a wifi-hotspot using my laptop like writing some short script and running it. If yes then, could somebody help me with that?   (PS: I wish to use the created wifi-hotspot on android devices and Kindle)

I want to create WiFi hotspot for android device using Broadcom BCM43142 chipset. OS : 14.0.4but I am stuck at a STEP which says your Wireless card should support AP mode!The current  driver: wl0 which I am using does not support AP(access point) mode.     iw list    Result :  Supported interface modes:        * IBSS        * managed   I found many drivers for other broadcom chipset like BCM4312 that support AP mode ex : b43 driver but failed to find for BCM43142.  Is their any driver available for Broadcom BCM43142 that support AP mode? OR  Is their any other way I can create hotspot for my android device using Broadcom BCM43142 card (os : Ubuntu 14.0.4)?  Thanks.


I'm a university student currently studying real analysis. I'm working down my problem sheet and I've been asked the question above. I've had to edit it down because of the character limit so for clarity here is the whole question.  Q: Suppose that $f: [0,1] \rightarrow \mathbb{R}$ is a continuous function with range $[0,1]$. Prove that the equation $f(x) = x$ has at least one solution x in $x \in [0,1]$  I'm still getting the hang of these kinds of questions. I'll consider first the function $g(x) = x - f(x)$. The usual method seems to be, once a function like $g(x)$ is created i.e some function that is a relevant function minus another relevant function, variable or constant, then one says they apply the intermediate value theorem. Is that all you have to do? or are there additional logical steps you need to make a sound argument? Any feedback would be much appreciated!

Theorem: Let $f:[0,1] \to [0,1]$. Assume $f$ is continuous. Then there exists   $c \in [0, 1]$ such that $f(c) = c$.         For any function $f$, let $g(x) = f(x) − x$. If the theorem is true, what does that say about $g(c)$?   Write a proof of the theorem. Do it by applying the Intermediate Value Theorem   in the appropriate way to the function $g(x) = f(x) − x$ with $a = 0$ and $b = 1$. Clearly state why the hypotheses of the IVT are satisfied here.        Well if the theorem is true, then there exists $c$ such that $f(c) = c$. Then $f(c) - c = 0$. Then $g(c) = 0$. Intermediate Value Theorem: Let $I$ be an interval and $f$ a function whose domain contains $I$. If $f$ is continuous, then for all $a, b \in I$ with $a < b$ and all real numbers $k$, if $k$ is strictly between $f (a)$ and $f (b)$, then there exists $c$ such that $a < c < b$ and $f (c) = k$.   Proof Attempt: Take $a = 0$ and $b = 1$. Then $a,b \in[0,1]$ and $a < b$. Since $f:[0,1] \to [0,1]$, it follows that for all real numbers $k$ such that $f(a) < k < f(b)$, then there exists $c$ such that $a < c < b$ so $0 < c < 1$ and $f(c) = k$. Then $f(c) - k = 0$. Thus, since $g(x)=f(x)-x$, it follows that $g(c) = 0$.   Looking to see if I did this correctly and/or if there is a more elegant way to prove problem 2. I am a little confused why the first theorem is true, but I went with it.


I tried to look at similar threads. I don't understand the answers. How do I simply install this?  The recommended way would be to build from source, download  and run simple_make.sh  I don't understand how to run make.sh, where to direct it at etc. This OS is so darn difficult to use.

I tried to compile qTox, but nothing to do.   I tried using , but they are only for uTox, not qTox.  Could you help me?


I have a HashMap groups which maps to ArrayList objects for its values. I wanted to re-assign the values given they meet a particular condition (i.e. in this case, they are present in another list) and came across the forEach method. Here's how I implemented it. I could not find any documentation as to whether it is able to transform my data hence my question.  Here's the code:  groups.get(request.getGroup()).forEach(           member -> {                int updatedMemberIndex = request.getGroupMembers().indexOf(member);                if (updatedMemberIndex != -1)                      member = request.getGroupMembers().get(updatedMemberIndex);           } );   And here are the method signatures for the relevant methods in request object:  List<GroupMember> getGroupMembers() Group getGroup()

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


Copied all my local notes to Apple's iCloud notes.  It's been a few days and they haven't indexed yet.  I found if I edit a notes file then it gets indexed.  I don't want to edit all my notes apps as they maintain the date of last usage.  How can I force an index of all the Apple notes?

I am using my notes app on OSX 10.11.5 and iOS 8. For the most part, things are working, but I am noticing that many of my older notes are not searchable. When I type something in the search box, these older notes do not appear in search results even if there is a match. However, if I edit a note or create a new one, it is fully searchable.  My guess is that somehow the search indexes for my notes got corrupted. Is there any way to fix this or rebuild the indexes?


I have a shell script that prints the first argument passed to it in the command line. I was experimenting with $1 and "$1". Interestingly to me, when I pass "John Doe" I get different outputs. hw Version1 #!/bin/bash printf "Hello %s\n" $1  Result is the following. Seems like it loops through strings separated by space: $ hw "John Doe" Hello John Hello Doe  hw Version2 #!/bin/bash printf "Hello %s\n" "$1"  Result is: $ hw "John Doe" Hello John Doe  what is the difference between $1 and "$1" when the argument in the command line is something like "string1 string2 ... stringn"?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


Give a cubic polynomial, defined on the open interval (-5,4), which reaches both its min and max values.  I don't know if there is a direct approach to solving this but I have been stuck on it for a while and I don't know what the answer is. Any help is appreciated.

my high school teacher asked this question today, and I am struggling to find an answer that will work. The question is outlined below:  Give an example of a cubic polynomial, defined on the open interval (-3,3), which reaches both its maximum and minimum values.


When I render with the camera in blender, no matter how high the render samples are or that the sampling is final rendering it still looks blurry.(unless it's the grass)

I know that this question is a bit old or maybe overdone, but I'm running the latest edition of Blender and when I use the Cycles engine I get really fuzzy results and I can't find a simple, non-compromising solution to the quality.  I don't know exactly what I'm doing wrong here, but I'm sure others share my frustration.  Leaving everything in default settings, I started a new project and switched to the Cycles render.  I duplicated the cube and set colors for two Diffuse BSDF shaders, then went ahead and made walls and a floor all sharing the same diffuse shader.  I made two windows to emit blue light.  The screenshot has gaps between the walls because of the setup:  I'm aware that it's considered very incomplete and many have come to terms with some amount of noise, but is this normal?  Furthermore, with default settings or not, I can't change the amount of noise produced.  Supposedly, using "progressively refine" in the rendering tab should make it refine itself indefinitely, however Cycles only counts to 10 refines and then stops, creating a render which is a pixel-perfect match of the ordinary rendering method when it's completed.  I understand that there are tricks that can be used to reduce noise, but at the cost of extra processing time and usually small quality conflicts, like blurring.  My question essentially boils down to is this Cycles' current limit?


I do not get the Activities icon on bottom left instead Trash icon is fixed and the Settings are not able to change my dock but System Settings do change it. What is happening here?    I installed Ubuntu 16.04 from a USB and then upgraded to Ubuntu 18.04. These settings do nothing:  but these do work:   Also notice the Trash icon on bottom left, I was trying to follow articles on GNOME in Ubuntu 18.04 which have Activities icon instead.

I just upgraded to Ubuntu 18.04 but the UI did not change at all. For example I don't have the full screen app launcher; it's the same as it was back in 16 and 17. No notification center etc.   Do I need to somehow opt in?


It is given in a question that $\vec x+\vec a=(\vec a\cdot \vec x)\vec b$ and it is stated that $\vec a$, $\vec b$ and $\vec x$ are vectors.  It is also stated that $\vec a\cdot \vec b\ne 1$.  The question asks to express $\vec x$ in term $\vec a$ and $\vec b$.  How do you this?

It is given in question that $x+a=(a.x)b$ and it is stated that a,b and x are vectors.It is also stated that $a.b$ not equal to $1$.The question ask to express $x$ in term $a$ and $b$,how do you this?


Why does my code skip straight to the else statement? It returns the values inputted correctly if asked. But cant figure out why it just skips to "ERROR!" as opposed to proceeding to the relevant calculator. Here is my code:  package easy2; import java.util.Scanner; public class Calculator {  public static void main(String[] args) {      float force, mass, acc;     String answer = null;     Scanner in = new Scanner(System.in);      System.out.println("Force = Mass x Acceleration Calculator");      System.out.println("Please state which variable you wish to work out: force, mass or acceleration");     answer = in.nextLine();      if(answer == "force"){               System.out.println("What is your mass in killograms?");         mass = in.nextFloat();         System.out.println("What is your acceleration in meters per second?");         acc = in.nextFloat();          force = mass * acc;          System.out.println("The force of this equation in Netwon Meters is " + force);         }     else if(answer == "mass") {             System.out.println("What is your force in Newton Meters?");             force = in.nextFloat();             System.out.println("What is your acceleration in meters per second?");             acc = in.nextFloat();              mass = force / acc;              System.out.println("The mass of this equation is equal to " + mass + "kg");     }     else if(answer == "acceleration"){          System.out.println("What is your force in Newton Meters?");         force = in.nextFloat();         System.out.println("What is your mass in killograms?");         mass = in.nextFloat();          acc = force / mass;          System.out.println("The acceleration of this equation equals " + acc + "m/s");      }     else{System.out.println("ERROR!");     } }   }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I have used Jquery file picker plugin, and i tried to upload file using jquery ajax call with php..  HTML  <form >    <input id="" data-label="Upload" class="form-control txtbx filepicker-custom"     name="media_src" type="file" placeholder="Pick Media src" multiple="" style="position: absolute; visibility: hidden;">      <input type="text" name="src" class="form-control txtbx " placeholder="Ex: http://www.eventmagazine.co.uk/sky-broadband-launches/article/1424403">  <button type="button" class="btn btn-cls" id="addbtn">Submit</button> </form>  <script>         $(document).ready(function(){             $('#addbtn').click(function(){                  var data1 = JSON.stringify( $('form').serializeArray() );                  $.ajax({                     method: "POST",                     url: "addToDB.php",                     //dataType: "json",                     //contentType: false,                     //processData: false,                     data: {EData: data1},                     success: function(reqResult){                         alert(reqResult);                     }                 });               });         });     </script>   addToDB.php  if(isset($_POST['EData'])){      $FormDataArr = json_decode(stripslashes($_POST['EData']));      file_put_contents("FORMDATA.txt", print_r($FormDataArr, true));      echo 1; }   FORMDATA.txt  Array (     [0] => stdClass Object         (             [name] => src             [value] => www.sample.com         ) )   In FORMDATA.txt file i got only one filed (name and value pair), so how to handle File upload action in php in this sutiation.. How to upload multiple file in jquery ajax ?

I would like to upload a file asynchronously with jQuery.     $(document).ready(function () {     $("#uploadbutton").click(function () {         var filename = $("#file").val();          $.ajax({             type: "POST",             url: "addFile.do",             enctype: 'multipart/form-data',             data: {                 file: filename             },             success: function () {                 alert("Data Uploaded: ");             }         });     }); });  File <input type="file" id="file" name="file" size="10"/> <input id="uploadbutton" type="button" value="Upload"/>     Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?


I was inspired by this interesting question on this forum:     Say you're stranded on an alien planet without any significant tools. How would you recreate the SI system of units with some accuracy?   The meter is fairly easy within less than 1% since most people know their height to within a cm or less than an inch.   How about the second? Given the unreliability of biological clocks, I'd have to measure it. But I can't use a pendulum because I don't know $g$. I can't build a mechanical mass-spring system because I don't know the stiffness of materials (in general). To measure stiffness I'd have to re-create the SI Newton, which is a derived unit from seconds.    How could you re-create the SI second? The least technically complicated answer the better (pendulums beat RC circuits which beat atomic clocks and radioactivity measurements).  Is the only way to re-create the second is to measure $c$ or build an RC circuit (basically the same things since I can use $\varepsilon_0 =\frac {1}{\mu_0 c^2}$)? If point 2 is correct, how would you measure $c$ or build an RC circuit in the most simple manner?    Myself, I believe that (1) is not possible with mechanical systems, because (2) is true for classical mechanics so I'll have to build an optical interferometer, a radio/receiver to measure c, or an RC circuit. For point (3) given copper wire and iron (which are thousand year old technology) it's possible to build a magnetic amplifier radio and try to measure the time to bounce off an obstacle.   Thoughts?   EDIT: This is different from . That question assumes I'm still on Earth, and I'm possibly a member of civilization. Then I can re-create the meter fairly accurately from it's original definition as a fraction of the circumference of the Earth, and for the second I can build a pendulum of period 1s, since g has not changed.   The challenge here is, given a facts that a reasonably educated person would know (their height, the value of c and how it relates to other values. I know some basic astronomical facts but don't know the names and position of all the uncatalogued  stars), excellent physics knowledge (i.e. I understand special relativity, lie grouops, ect) and perfect mathematical ability (I can derive any known mathematical result I need) can I recreate the SI system within a reasonable margin of error?   Also, people have asked if they can assume certain things (i.e. can I see Jupiter, does the planet have an earth). Assume away, you'd be answering interesting specific cases and exploring other techniques. However, the more general the answer, the better.   Finally, if there are any doubts read the original question at the very top. I'm ultimately trying to get a satisfying answer for that scenario.

Assume the time standard clocks and any memories about the time standard are destroyed. Can we recover the time standard again exactly?  Recovering the time standard again means we can determine the date  and time that are exactly the same as the destroyed time standard clocks will show (if they are not destroyed).


This seems obvious: faster long-distance runners hit ~20 km/h () while fastest cyclists can do ~40 km/h ().  But on the physical/biological level this doesn't seem obvious for me. To move we need to perform work on our mass. And for cycling there is an additional mass of the bike which should make it even slower.  So what causes the difference?   different cardiac activity? different power output during these activities? more energy loss for running? friction? impact of the bike gearing? something else?   Of course I would like to discuss running/cycling on a flat terrain, as downslopes would be a something completely different.

Most people can ride 10 km on their bike. However, running 10 km is a lot harder to do. Why?  According to the law of conservation of energy, bicycling should be more intensive because you have to move a higher mass, requiring more kinetic energy to reach a certain speed. But the opposite is true.   So, to fulfill this law, running must generate more heat. Why does it?  Some things I can think of as (partial) answers:   You use more muscles to run. While running, you have more friction with the ground; continuously pouncing it dissipates energy to it. While you move your body at a slow speed, you need to move your arms and legs alternately at higher and lower speeds.


I posted a question on Home Improvement, then it is migrated to Super User and get downvoted due to off topic there. It's my fault to be off topic on HI but not on SU. HI rep should change but not SU.  Can SE be changed to prevent such thing, like no off topic close on the new site, and it can only be kicked back to the original site (I guess rep change get reset during this process) and get down voted and closed there?

I posted a question which was closed as off-topic and it seems like it could fit on another site in the network. How can I go about moving it there?   What is migration? When can a question be migrated, and who can migrate it? When should I consider migration, and when is it inappropriate? What causes a migration to be blocked and what happens after? What causes a migration to be rejected and what happens after? Anything else I should know about migration?


For an object's rotation in the sidebar of 3d viewport(or in the 'Object Properties' tab of the object in the properties editor), using the Y slider gives strange results which neither matches local or global axis when the initial rotation values of other two axes are not 0(I've seen that X and Z sliders always matches the local X axis of the object and global Z axis of the object respectively). Why this happens? What is the logic of such rotation? My Blender version is 2.81.

I have read , and am still confused about the entire matter.  My understanding is that, using a local coordinate system, if you rotate a model about its X axis then its Y and Z axes experience gimbal lock, and become "locked" together.  However, my understanding is that if you rotate the X axis, then both the Y and Z axes rotate with it, and as such remain separate.  Wikipedia, as always, while a good resource is difficult to understand on this topic.  Could someone please endeavor to explain this to a person who does not have a Master's in physics or mathematics?


I need to be able to convert labels to Annotation feature classes at multiple scale levels for both address and street data. Similar in concept to generating tiled layers for a web service, I have 5 to 10 pre-defined extents that I need to export annotation for. The resulting annotation will be used in an ArcEngine application that is restricted to those zoom levels. When done manually, I turn on labels for the layers I want labeled, right-click each layer and choose 'Convert Labels to Annotation, save them to an annotation feature class, then repeat for each scale level. Does anyone know of a way of accomplishing this programmatically? All of my code so far has been in Python, but if necessary I'm open to other languages.

how could I do the following steps with arcpy:   right-click on the layer with the features Label Features Convert Labels to Annotations ...   The annotions should be saved in a new shapefile.  How could I do this in python?


The question:  Suppose that $f: \mathbb{N} \to \mathbb{R}$. If $$\lim_{n \to \infty}[f(n+1)-f(n)] =L$$ prove that $\lim_{n \to \infty}\frac{f(n)}{n}$ exist and equals $L$.  My answer:  Define $g(n):= f(n+1)-f(n)$ then $g(n-1)=f(n)-f(n-1)$ and so $f(n) = g(n-1)+f(n-1)$. We can recursively apply this to get $f(n)=g(n-1)+g(n-2)+ \cdots +g(0) +f(0)$.  Then for $k \ge N_0$ we can  make $|g(k) - L| < \epsilon_0$ which gives $L-\epsilon_0 <g(k)<L+ \epsilon_0$. Also note that $f(N_0) = f(0) + g(0) + \cdots + g(N_0 -1)$ is just some number say $d \in \mathbb{R}$.  Now $f(N_0 + n) = d + g(N_0) + g(N_0 +1) + \cdots + g(N_0+n-1)$ and so using the above bound for $g(k)$ with $k \ge N_0$ we can bound $f(N_0+n)$ as follows:$$d+n(L-\epsilon_0) < f(N_0+n)<d+n(L+\epsilon_0)$$ $$\frac{d}{n} +L-\epsilon_0 < \frac{f(N_0+n)}{n}<\frac{d}{n} +L+\epsilon_0$$ $$\frac{d}{n} -\epsilon_0 < \frac{f(N_0+n)}{n}-L<\frac{d}{n}+\epsilon_0$$  We can take $n$ large enough so that $|\frac{d}{n}| < \frac{\epsilon}{2}$. Also take $\epsilon_0 = \frac{\epsilon}{2}$ and we have shown that the limit of $\frac{f(N_0+n)}{n} = L$.   If we define $h(n) = \frac{f(N_0+n)}{n}$ then $h(x_n)$ will go to $L$ for every $x_n$ that goes to infinity as $n$ does. So take $x_n = n-N_0$ and we have $\lim_{n \to \infty}h(n-N_0) =L= \lim_{n \to \infty}\frac{f(n)}{n-N_0}$ dividing top and bottom by $n$ we see that: $$\lim_{n \to \infty}\frac{\frac{f(n)}{n}}{1-\frac{N_0}{n}}=\lim_{n \to \infty} \frac{f(n)}{n} =L$$   I feel like I have missed something because this question is a lot more involved than all of the others I have done so far in the book. Is this correct? Is there a nicer way to do this? Or have I just wasted two days and rambled nonsense ;-)

Here's the problem in full. I've stared at it for hours and can't get anywhere, so a hint would be nice.  Suppose that $f:\mathbb N\rightarrow\mathbb R$. If $$\lim_{n\rightarrow\infty}f(n+1)-f(n) = L$$ prove that $\lim_{n\rightarrow\infty}f(n)/n$ exists and equals $L$.  This problem is marked with the word "Cauchy", so I'm guessing Cauchy sequences or something related to them will be necessary, but I can't figure out what.  Edit: It appears as if the Stolz-Cesaro Theorem makes this quite easy. Unfortunately though, we have not discussed this, so I won't be able to use this.


I have seen at least 3 different ways to calculate the perspective matrix and I'm confused as to which one I should be using and what the differences are?  OpenGL says to do it this way:  f = cotangent(fov * 0.5)  f / aspect, 0, 0, 0 0, f, 0, 0 0, 0, (far + near)/(near - far), (2 * far * near)/(near - far) 0, 0, -1, 0   glm does it this way:  range = tan(fov * 0.5) * near;   left = -range * aspect; right = range * aspect; bottom = -range; top = range;  (2 * near) / (right - left), 0, 0, 0 0, (2 * near) / (top - bottom), 0, 0 0, 0, (far + near) / (far - near), -1 0, 0, (2 * far * near) / (far - near), 0

documentation page says that this method uses the following formula to build a perspective projection matrix.  [w, 0, 0, 0] [0, h, 0, 0] [0, 0, zFar/(zFar - zNear), 1] [0, 0, -zNear * zFar / (zFar - zNear), 0]   where  h = cot(fovY / 2) w = h * aspectRatio   DirectXMath's DirectX::XMMatrixPerspectiveFovLH uses the same formula but with a difference. It calculates w as w = h / aspectRatio therefore creates a different matrix.  There is a difference between orthogonal projection matrix building too.   Why are there such differences or am i missing something?


Following is the code for a self-defined list environment "Miscellaneous Examples"  \usepackage{amsthm} \usepackage[inline]{enumitem} \usepackage{xifthen} \newtheoremstyle{mydefnstyle}{3ex}{3ex}{}{}{\bfseries}{:}{.5em}{} \theoremstyle{mydefnstyle} \newtheorem*{misc}{Miscellaneous Examples}  \newenvironment{Misc}[1][] {%     \ifthenelse{\isempty{#1}}{\begin{misc}}{\begin{misc}[#1]}     \leavevmode\vspace{-1ex}     \begin{enumerate}[label=\thechapter.\arabic*., font=\bfseries, ref=\thechapter.\arabic*, itemsep=1.5ex]         }         {     \end{enumerate}     \end{misc} }   While writing a book, this environment is called a number of times. What I need is to continue the numbering over different appearances in the same chapter. Precisely what I want is the following:  \chapter{title} \begin{Misc}     \item Bla \end{Misc}  \begin{Misc}[continued]     \item Bla \end{Misc}   should generate     Miscellaneous Examples      1.1. Bla      Miscellaneous Examples (continued)      1.2. Bla   The presence of the note/comment [continued] should not have any effect on the numbering. How do I achieve this?

I'd like to be able to resume an enumerated list, continuing the old numbering, after some intervening text which should not be formatted like a list item.  Is there a nice way to do this?    In particular, I don't want to start a second list with a hard-coded initial counter value, because that will break if I change the number of items in the first list.


public class GroceryList {     //variables     private int count;     private Item list[];     public final int MAX = 30;      //default     public GroceryList(){         Item placeholder1 = new Item();         Item placeholder2 = new Item();         list[0] = placeholder1;         this.count = 0;     } }  I want to assign the Object placeholder1 to list[0] but I get a NullPointerException.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I don't get a grip of what that exactly means. What IS an abstract singlet, doublet,... under $SU(N)$ or other groups?

In the context of group theory (in my case, applications to physics), I frequently come across the phrase "the ${\bf N}$ of a group", for example "a ${\bf 24}$ of $\mathrm{SU}(5)$" or "the ${\bf 1}$ of $\mathrm{SU}(5)$" (the integer is usually typeset in bold).  My knowledge of group theory is pretty limited. I know the basics, like what properties constitute a group, and I'm familiar with simple cases that occur in physics (e.g. rotation groups $\mathrm{SO}(2)$, $\mathrm{SO}(3)$, the Lorentz group, $\mathrm{SU}(2)$ with the Pauli matrices as a representation), but not much more. I've got a couple of related questions:   What is meant by "${\bf N}$ of a group"? Is is just shorthand for an ${\bf N}$ representation? If so, what exactly is an ${\bf N}$ representation of a given group? How can I work out / write down such a representation concretely, like the Pauli matrices for $\mathrm{SU}(2)$? I'd be grateful for a simple example. What does it mean when something "transforms like the ${\bf N}$"?