Are black holes totally black and formed?

Good morning, I know some similar questions have been asked but I don't find a convincing answer in these. Excuse me if I have missed the answer.  My question is:  I have learned that some black holes are formed by contraction of stard ( the exact processus does not matter here ). The problem is that the time dilatation due to gravitation is increasing with the contraction being infinite when all the matter pass inside the horizon.   But for an external observer it will take an infinite amount of time so that the black holes we see today are nearly perfect black holes but not totally since all the matter have not passed the horizon. Am I wrong here?   Furthermore, these black holes could not be totally black since all the matter of the original stars do not pass the horizon. So it would be possible for them to emit a bit of light no?   But this is not what I read so if someone could explain me, I would be grateful to him ;)


Code only works with old school onclick events. Why?

For some reason, I can only get my code to work with old school onclick events. I suspect the following attempt failed because I am actually building a string, inserting it into results div and hoping that these onclick bindings work and they don't.  This should be the right way to do it but nothing happens..  $( "a.collection-item" ).on("click", function(e) { console.log('test click event fired.'); });   Here's a link for the  so that you can visualize it better. It's a live search.  Here's the  file I am searching...  [   {     "name":"Sarah Connor",     "client_id":"111"   },   {     "name":"John Travolta",     "client_id":"222"   },   {     "name":"Tom Cruise",     "client_id":"333"   } ]   The complete JS code.    $(document).ready(function() {    $('#search').keyup(function(){  // the search input var searchField = $('#search').val();  // if at least one char is typed... if (searchField.length > 0) {  // A. Empty results div. $('#results').empty();  // "i" = ignore case var regex = new RegExp(searchField, 'i');  var output = '
';  // get JSON from PHP... $.getJSON('data.json', function(data) {  // loop through JSON array of key/value pairs... $.each(data, function(key, val){  // Returns a Number, representing the position of the first occurrence  // of the specified searchvalue, or -1 if no match is found  // Here we search and compare against the -1 condition. // Example... val.name.search(regex) different than NOT FOUND...  // If we got a match on name OR client_id.... if ((val.name.search(regex) != -1)) {  output += ''; output += val.name; output += '' + val.client_id + ''; output += ''; console.log('match!');  } // end if  }); // end each  output += '
'; // close ul tag  // output to results div $('#results').html(output);  }); // end getJSON   } else {  // clear results div $('#results').empty();  } // end search field length condition  }); // end keyup    }); // end document ready   function js_redirect(el, event) {  // Prevent the actual link redirect event.preventDefault();  // Got to href location via Script instead. window.location = el.href;  } <!DOCTYPE html>    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">  <link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css" rel="stylesheet"/>    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

 <input id="search" type="text" class="validate" placeholder="at least 1 character..."> Search


this statement in my javafx program is causing a nullpointerexception and I don't know why

import javafx.application.*; import javafx.geometry.*; import javafx.scene.*; import javafx.scene.layout.*; import javafx.scene.text.*; import javafx.stage.*;  public class Drawing extends Application{ private BorderPane mainPane; private HBox statusBox; private Text statusText;  public void start(Stage primaryStage) {      statusText = new Text("OFF");     statusBox = new HBox(statusText);     statusBox.setAlignment(Pos.CENTER);     mainPane.setTop(statusBox);          //nullPointerException here      Scene scene = new Scene(mainPane, 1000, 1000);     primaryStage.setTitle("Draw Something");     primaryStage.setScene(scene);     primaryStage.setResizable(false);     primaryStage.show(); }  public static void main(String args[]) {     launch(args); } }   I want to create a BorderPane and set the top portion for some text. I created an HBox to put inside. I don't know why this error occurs.


Beamer Overlays within a tikz node has growing indent

I am using beamer overlays within tikz nodes, which yields the  expected result, except for a growing indent.   Here is a minimalistic example showing the behaviour.  \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{blindtext} \begin{document} \begin{frame}   \begin{tikzpicture}     \path[draw] (1,0) -- (1,2);     \node [text width=3cm, anchor=west] at (1,1) {       \only<1>{Here}       \only<2>{There}       \only<3>{Away}     };   \end{tikzpicture} \end{frame} \end{document}   This results in the text moving across the slides:    I did not expect or intend this. Any help towards avoiding this behaviour is appreciated.


I am trying to write a method that receives two arrays and concatenates them. Right now I am getting the error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2." I do not understand why this is happening. Can someone explain why I am getting this error?   public static int [ ] concat (int [ ] nums1, int [ ] nums2)      {         int length = nums1.length+nums2.length;         int nums3 [] = new int [length];         for (int i=0; i<nums1.length; i++)         {             int value = nums1 [i];             nums3 [i]=value;         }         for (int i=0; i<(nums1.length+nums2.length); i++)         {             int value=nums2 [i]; //It says I have an error on this line but I do not understand why.          length = nums1.length+1;             nums3 [length]= value;         }         return nums3;      }


is terminal code in lubuntu and ubuntu the same?

I am a new linux user and i installed Lubuntu on my old pc. I found that learning codes of lxterminal is quite rewarding. Codes of Ubuntu are quite easily found. Are the codes for Ubuntu and Lubuntu same? and  What are the best sites to learn those?


Are there $A,B, C, D$ vector spaces such that $A \oplus B \cong C \oplus D$, and $A\cong C$, but $B\not\cong D$?

I remember an exercise from Roman's Linear Algebra, but now I can't locate it in the book. Anyway, I think it asked to give examples of $A,B, C, D$ vector spaces such that $A \oplus B \cong C \oplus D$, and $A\cong C$, but $B\not\cong D$.   I feel like I must be forgetting some additional part of the problem, because the above is impossible, right?


Struggling to work out how to make a depth AND height pass, so I can use them in compositing an animation of a city.  Depth is easy...height, not so...  Is there some way to mix a vertical gradient with a mist pass to get this result? Or is there a different way?  I am trying to get the effect of a denser mist at lower levels.  Let me know if i need to clarify further.


Does casting Lightning Bolt in melee provoke an Opportunity Attack?

Our Sorcerer wanted to cast a Lightning Bolt as their attack on a monster that had made it into melee with that Sorcerer.  DM said could make the attack, but it would provoke an OA (that would likely kill the sorcerer).   Player argued that as a magic-using character they would be as adept as a Fighter doing a melee attack. The range being Self was integral to the issue. What lies beyond the initial target was not in question. AoE was not relevant.  DM ruled (and yes, whatever he decides is what we go with, I'm here looking for discussion of rules and logic of the situation), that it took enough time summoning the magic that the monster would get a free shot. Player countered that a successful attack would stop the spell anyway.  Player maintained that it was essentially a melee attack he was making as the range was less than 5 feet (starting with the caster) and should not provoke OA.  Which position is correct though? Does casting Lightning Bolt within an enemy's reach provoke an Opportunity Attack?  @Rubiksmoose This question is different enough from your provided generic answered question. Those who are versed in earlier version rules will benefit from the specifics of this question. As well as the specific differentiation between ranged attacks and the lightning bolt characteristics.


Tab completion not always working for ls command

If I stand in my home directory, press ls and then press Tab then I get a list of files. But if I try that with /etc/elasticsearch then I don't get a list of files.   Is there some way to achieve what I want or some explanation why it can't be done?    The permissions are  root@ubuntu:~# ls -l /etc/|grep lastic drwxr-s--- 2 root elasticsearch  4096 May 18 09:55 elasticsearch


Is there any convention on how to name your interfaces? I do not mean the implementations, just the interface!  What about the suffix '-able'? Like Runnable, Closeable, Serializable? When to use this?


I am attempting to install pgAdmin4 on 20.10  When I do the first step: curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add  I get this message: Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).  Moving to the second step: sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'  I get this message: E: The repository 'https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/groovy pgadmin4 Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.```   I have encountered this issue with two or three other public repositories recently. At first I thought it was just a problem with the repository, but I'm beginning to think otherwise.


Can I use the soldier's old v_model hand instead of the c_model in TF2?

For the past couple of years I have been playing TF2. After the LaW update there was a change in the player models and animations. In this question, I am referring specifically to the soldier model.  My question is if there is a way to use the old v_model instead of the newer c_model, since the model's hands are dramatically different. These two pictures compare them:  Old (v_model) soldier hand:   New (c_model) Soldier hand:   This has been bugging me for a while as I feel the newer model's hand is terrible.


Restrict Auto case-number field to specific record type

I've a custom auto case-number field for one of my case record type (Quality Report). Every time a new case is created, the auto case number is generated (ex: QR-1287). However, the auto number field is generated even when a case is created in other record types (QR-1288, QR-1289....) . How do I avoid it? I want the auto case number field to update only on a single case record type, the case number should QR-1288 only if the record-type is of Quality Report. Please help.


Difference between baking a cake in cooking range and microwave oven

I don't know much about the difference between cooking range and oven. But I just want to know what difference must be made to bake a cake using a cooking range.  I used to bake cakes in a microwave oven in micro+convection mode at 200 degree celsius. For that I preheat the oven at 200 degree for 15 minutes and then place the cake batter in the oven for another 15 minutes. And that cake used to come out really good.  But now I am using an electric cooking range that uses a gas cylinder. It has a knob to adjust the temperature and an option to grill. And inside it has holders at three different heights to place the tray. I don't know the exact word to describe my cooking system. Anyway all I want to know is what should be done to make the exact cake recipe which I tried in micro+convection mode at 200 degree?For what duration should I bake and at which height should I place the tray?


How do we control which 3d View the render result is displayed in when multiple 3d views are visible?

I'm rendering some simple 3d shapes to an isometric perspective (orthographic cameras etc) using the Blender internal.  The render is lightning fast so I dragged out another 3d view so Blender is divided into two 3d Views, one on the left one on the right. (Properties editor is on the far right as usual).    When I press F12, initially Blender displayed the render result on the right hand view.  This was great as I could make small changes to the camera (on the left) and immediately see changes in the full render just by pressing F12 again.  However every so often when I press F12, Blender seems to randomly decide to put the render result in the left hand view and the right view now returns to the 3d View.      This a a real pain as I then have to re-open the tool and information panels and select the camera again etc.  It then also happens in reverse after a while (right now I'm rendering to the right window again).  I thought it may depend on which view I last selected an object in, but in my testing it seems to make no difference.    Does anyone know how I can lock the render result to a specific 3d view when there are multiple 3d views visible?


Showing a Sequence and its Limit are Closed

Let $(X, d)$ be a metric space, and $(x_n)_{n \in \mathbb{N}}$ a sequence in $X$, with $x_n \rightarrow x$ w.r.t. $d$ for some $x \in X$. Show that the set $\{x_n : n \in \mathbb{N}\}\cup\{x\}$ is closed in $(X, d)$.   I figured I should use $\overline{F} = F \cup F'$ to show the above set is closed. Let $(x_n)_{n \in \mathbb{N}} = F$. Then, all elements of the sequence are in  $F$, which is equal to $\{x_n : n \in \mathbb{N}\}$. Clearly, the sequence (or $F$) has only one accumulation point, $x$. So, $F' = \{x\}$. This shows $\{x_n : n \in \mathbb{N}\}\cup\{x\} = \overline{F}$, and thus is closed.  Is this sufficient in proving the problem? Or would I have to show that $x$ is the only accumulation point as well (figured I don't have to because we know limits are unique)? Any advice would be very helpful. Thank you.


Consequences of Einstein's Equivalence Principle

"For a person located inside a hermetically sealed box, there is no difference between being in space with the box accelerating and another person located in a similar box resting in a gravitational field."  What are the implications of Einstein's equivalence principle for physics? And why is it so important to us? I really appreciate your time.


Bringing a desktop computer to Germany in hand luggage

I am going to study abroad in Germany, my current location is Malaysia. I am bringing my personal desktop computer (without monitor) as carry-on luggage. The computer chassis size is .  Are there any rules or regulations I need to follow?


suppose X  has normal distribution with $\mu=\sigma^2=1$. how can calculate $E(\Phi(X-1))$


Comparing two equal strings but get incorrect result

So I need to compare my string with string that user inputs in EditText. I input same string but Java thinks that this is two different strings. I checked on spaces and didn't find them.  private void checkEditTexts(){     ...     String userAnswer = editTextAnswer.getText().toString().toLowerCase();     String rightAnswer = getResources().getString(R.string.question3_answer1).toLowerCase();      Log.v("checkET.userAnswer", "userAnswer = [" + userAnswer + "] rightAnswer = [" + rightAnswer + "]"  );      if(userAnswer == rightAnswer) {         points++;         Log.v("checkEditTexts()", "POINTS++: " + points);     }else{         points--;         Log.v("checkEditTexts()", "POINTS--: " + points);      }     ... }   Logcat:  08-29 16:47:27.494 16583-16583/....V/checkET.userAnswer: userAnswer = [song 2] rightAnswer = [song 2]  08-29 16:47:27.494 16583-16583/... V/checkEditTexts(): POINTS--: 2  08-29 16:47:27.494 16583-16583/....V/checkEditTexts(): POINTS--: 1  08-29 16:47:27.494 16583-16583/....V/checkEditTexts(): POINTS: 1   You can see that userAnswer and rightAnswer are equal and it should perform points++, but instead it does points--  Sorry for bad English.


While reading the documentation of endnotes I have found the following line:  \let\footnote=\endnote   Until now I always wrote \let without a =, so I would have written  \let\footnote\endnote   And both methods seem to achieve the same. So is there any difference in using the = and if yes, what is it?


Choosing only one contour line to label in QGIS?

Is it possible to select only one contour line for labelling?   I have numerous labels for each line and I'll prefer to label only the main ones, such as 1000 m and 1500 m


Product or sum of invertible matrix give an invertible matrix?

I can't find out if the product of two invertible matrix is an invertible matrix or if the sum of two invertible matrix is an invertible matrix.  Can anyone suggest an answer/counterexample?  Thanks a lot in advice


How can I find an element $x\not\in\mathfrak mM_{\mathfrak m}$ for every maximal ideal $\mathfrak m$

Let $R$ be a commutative ring with finitely many maximal ideals $\mathfrak m_1,\ldots,\mathfrak m_n$. Let $M$ be a finitely generated module. Then there exists an element $x\in M$ such that $\frac{x}{1}\not\in\mathfrak m_iM_{{\mathfrak m}_i}$ for every $i=1,\dots,n$.    I cannot prove that such an element there exists. I was trying to prove it by induction on $n$. If $n=1$ it is true by Nakayama, so suppose it is true for $n-1$. Then for every $i$ I can find an $x_i\in M$ such that $\frac{x_i}{1}\not\in \mathfrak m_jM_{\mathfrak m_j}$ for every $j\neq i$. If $\frac{x_i}{1}\not\in \mathfrak m_iM_{\mathfrak m_i}$ for some $i$ we are done, so suppose $\frac{x_i}{1}\in\ m_iM_{m_i}$ for every $i$. I don't know how to go on, could you help me?


How to use \ref{} command with a list of figures?

I need to use \ref{} command with a list of figures. So, instead of using the command multiple times as follows: Figures \ref{fig:1}, \ref{fig:2}, and \ref{fig:3} %the output will be Figures 1,2 and 3.  I need to use it one time to refer to a list of figures, so the required output looks like Figures 1-3.


Why do people use __ (double underscore) so much in C++

I was taking a look through some open-source C++ code and I noticed a lot of double underscores used within in the code, mainly at the start of variable names. return __CYGWIN__;  Just wondering: Is there a reason for this, or is it just some people's code styles?  I would think that it makes it hard to read.


Can I use my maiden name professionally if it isn't my legal name anymore?

My bachelors lists my maiden name. I took a 4 year break - during which I got married and took my husband's last name - and will soon be starting my masters and eventually PhD in a STEM field. I would like to use my maiden name on my degrees and professionally. I have not published and am not yet established in my field. My married name is extremely ordinary in the US and shared with a well known celebrity. My maiden name is very unique. It may seem arbitrary, but when I do eventually publish and become established in the field, I would like to do so with distinction. I'd like to use my maiden name consistently throughout my professional life, not just in publications but on resumes, staff, in person, etc. Is this legally possible since I didn't retain my maiden name at all? Hyphenating would be way too long and sound weird. I like my middle name, but I would consider adding my maiden name as a second middle name if that is my only option. Thoughts? Comments?


Passing variable as parameter to json_query function

I am getting error:     The argument 2 of the "JSON_VALUE or JSON_QUERY" must be a string literal   ...while trying to pass variable as parameter to JSON_QUERY function. Please help me to resolve it.  DECLARE @cnt INT = 1; DECLARE @cnt_total INT = 1; DECLARE @json NVARCHAR(MAX); DECLARE @json1 NVARCHAR(MAX); declare @str  VARCHAR(200);  WHILE @cnt <= 10 BEGIN     set @str = '$.Seasons[0].Products['+convert(varchar,@cnt)+'].ProductChannels';     set @str = char(39) +@str+ char(39);     PRINT @STR     select @json = json_query(jfile,@STR) from Import.tstjson; --MORE CODE         SET @cnt = @cnt + 1; END   Sample data:  {   "Seasons": [     {       "Season": "12321231",       "Products": [         {           "ProductId": "211",           "ProductChannels": [             {               "ChannelId": 1,               "WeekQuantities": []             }           ],           "ccc": 3,           "Tttt": 4         }       ]     }   ] }


Should I use "\r\n" or "\n" when generating text files in Java?

So I wrote a Java program that writes a text file using the FileWriter class. In the write() there are some "\n". When I run the class file in my computer (W10) it works as intendend and the text is separated by line breaks. However, if I run the class in my friends computer (also W10), the text file is created without any line breaks, all in a single line, and no spaces between lines. However, if he runs a version of the program where all the "\n" are replaced with "\r\n", it works as intended. The CMD of my friend's computer is using chcp 932 while mine is 850, if that helps.  That makes me wonder... even if it works for me just with "\n", should I use the "\r\n" form to ensure compatibility?  Thanks!


Show off-topic reasons for currently selected site instead of Software Engineering

Let's say I'm . The CloseAsOffTopicReasonTypes table has a nice 'show contents' icon, which saves me from having to execute SELECT * FROM CloseAsOffTopicReasonTypes:    but when you click it, you always see the contents of the table on .    I'd like for it to show the contents from the database of the currently selected site.  Another table which has this problem is PostNoticeTypes, though it's less severe here; there are a few sites like ,  and  which have their own custom post notices.


How do you calculate this sum $\sum_{n=1}^\infty nx^n$?

I can not find the function from which I have to start to calculate this power series.  $$\sum_{n=1}^\infty nx^n$$ Any tips?. Thanks.


For starters, let me say that although the Casimir effect is standard textbook stuff, the only QFT textbook I have in reach is Weinberg and he doesn't discuss it. So the only source I currently have on the subject is . Nevertheless I suspect this question is appropriate since I don't remember it being addressed in other textbooks  Naively, computation of the Casimir pressure leads to infinite sums and therefore requires regularization. Several regulators can be used that yield the same answer: zeta-function, heat kernel, Gaussian, probably other too. The question is:     What is the mathematical reason all regulators yield the same answer?   In physical terms it means the effect is insensitive to the detailed physics of the UV cutoff, which in realistic situation is related to the properties of the conductors used. The Wikipedia mentions that for some more complicated geometries the effect is sensitive to the cutoff, so why for the classic parallel planes example it isn't?  EDIT: Aaron provided a wonderful Terry Tao ref relevant to this issue. From this text is clear that the divergent sum for vacuum energy can be decomposed into a finite and an infinite part, and that the finite part doesn't depend on the choice of regulator. However, the infinite part does depend on the choice of regulator (see eq 15 in Tao's text). Now, we have another parameter in the problem: the separation between the conductor planes L. What we need to show is that the infinite part doesn't depend on L. This still seams like a miracle since it should happen for all regulators. Moreover, unless I'm confused it doesn't work for the toy example of a massless scalar in 2D. For this example, all terms in the vacuum energy sum are proportional to 1/L hence the infinite part of the sum asymptotics is also proportional to 1/L. So we have a "miracle" that happens only for specific geometries and dimensions


Define $S^1 = \{ z \in \mathbb{C^*} \: : \: |z| = 1 \}$. My question is, does there exist some ring $R$ such that $(R, + )$ is isomorphic to $S^1$? My intuition says no but how would I go about showing that.


Why isn’t “It’s” a complete sentence, but “It is” is?

I’m a native English speaker, so I understand that     It’s.   is not a complete sentence, whereas the sentence     It is.   is a complete sentence.  What linguistic mechanism prevents “It’s.” from being a complete sentence in English?


How many associative binary operations are there on a 2 element set?

We can easily find commutative binary operations on a 2 element set from the truth table (if ab=ba then the operation is commutative, thus there are 8 commutative binary operations in a 2 element set).  Is there a similar method or algorithm to find how many and what are the associative binary operations in a 2 element set?  If there isn't a way to quickly check, we would need to test all 8 possible inputs independently (if not commutative) and only 4 (if commutative) - which is still a lot for a 2 element set - 96 total (16 operations, 8 are commutative, so 8*4+8*8=96).  A generalization to an n-element set be very helpful.


Spoilers for The Last Jedi:   An explosion caused General Leia to be flung into space. We then see her hand move and the  plays, implying some sort of Force use.  That much is clear. What is not very clear is   what exactly she is using the Force to do.  I assumed she was simply guiding herself towards safety. People don't actually immediately explode/implode/freeze/etc. when in space so to me it makes sense that all she would need to do is use the Force to nudge her body in the right direction and the inertia would carry her to the intended destination (because there's no friction in space).  However I've seen others claim she was creating a force bubble of air or something, while still others say she pulled the rebel ship to her, and so on. So my question is do we know for sure what Leia used the Force to do?   I prefer official sources that shed new light on the subject (like scripts/novelizations/interviews/etc.) rather than answers that just say "well I watched that scene and to me it looked like she was doing ___" (but I guess I'd accept either kind if the argument is compelling enough).   I'd argue that my question is different from the 'dupe' one. That one basically asks "How did she do it? Was that the force?" and its answer is essentially "Yes, it was the Force".  My question is "What did she do? Did she Force pull? Force push? Force-not-need-to-breathe? Force cocoon/shell/shield-filled with air? See what I'm saying? I think that makes my question sufficiently different. :D


The following sentence sounds incorrect to me when read aloud.  "Eating and playing like the locals are important for enjoying the festive atmosphere."  I tried diagramming it and am clear on the "are" (linking verb), "important" (adjective) and the "for enjoying the festive atmosphere" (prepositional phrase).  "Eating" and "playing" are gerunds and that's when it gets confusing for me. The "and" suggests a compound subject, which would make the use of plural "are" correct, but the addition of the "like the locals" makes me feel like the entire section before the verb is a gerund phrase and is therefore singular. Which, if any, of the two is correct? Please help.


Unable to zoom or pan away from a certain point

I am using Blender 2.91, and have found that there seems to be some "point" unrelated to the selected object, that I simply can't zoom away from. How can I fix this? I have seen a lot of similar questions that deal with being unable to zoom closer to a selected object, but this issue is not that. There is just some arbitrary point that I can not zoom more than a certain distance away from in any direction, regardless of what I might have selected. If I go into Top or Front view, I can move just fine, but when I go back to User Perspective, wherever I was when I left Top View seems to become my new "prison".


Maximum log level exceeded in Developer Console

Recently I have regularly been getting the error message below when opening the Developer Console:     The Developer Console didn't set the DEVELOPER_LOG trace flag on your   user. Having an active trace flag triggers debug logging. You have 316   MB of the maximum 250 MB of debug logs. Before you can edit trace   flags, delete some debug logs.   It happens in sandbox and scratch orgs. Haven't tried in production.  This only started happening recently. It goes away after clearing the logs but comes back after a few test runs.  Also: the Debug->Clear->Log Panel action is not working for me -- the logs stay put. I can remove them using the Query Editor as described , but it's pretty tedious.  Two questions:   Does anyone know a way to prevent the logs from exceeding the max level? Perhaps by having old logs cleared out automatically? Is there a known issue with the Clear Log Panel action? I am using Chrome btw.   Thanks!


Is there a way to control what the physical power/reset buttons do?  I'd like the power button to "hibernate", instead of "shut down" to save my session.


I currently have python2 installed on my machine. Is it possible to have both python2 and python3 installed on the same machine? If so, how?  Thanks!


Is there a playable githyanki available?

Are Githyanki a playable race in D&D 5e?


How to clean up the files left by deleted VirtualBox VMs?

I am running OS X Sierra on a 2016 Macbook Air.  I installed VirtualBox recently, and had 48 GB of free space after installation. I then set up an Ubuntu VM with a 10 GB hard drive. After 20 minutes of playing around, I deleted the VM.  Upon checking my free space, I saw that I now have only 46 GB left. Undoubtedly, VirtualBox left some files undeleted because I did not install/download/transfer anything else in that time. I even went to the path where the VMs are stored on my real hard drive and deleted that directory, but it still didn't help.  I can't afford to lose 2 GB every time I delete a VM. I am on a lightweight Macbook Air and memory space is very valuable to me. Any help would be appreciated, thanks.  EDIT: This eating up of space is most definitely due to VirtualBox. I created and deleted another Ubuntu VM instance and sure enough, lost out on another 2 GB.


How to execute a script in shell when a shortcut key is pressed

How could I execute a script in Shell when a shortcut key is pressed.   Essentially what I need is when a shortcut key is pressed the script should read from a file and display that content in the terminal.


Where was the historic six point programme declared? Where the historic six point programme was declared?   I know the first one is 100% correct. Is no 2 correct? Is any special rule with no 2?


Inconsistent spacing when using paragraphs in lists

If you do something like this:  - This - Is   Some  - Text   You end up with some inconsistent spacing:    Is this a bug or is this a feature request to change this so the spacing above is the same?  This is similar to , but not a duplicate as there aren't nested lists here and the spacing differences between these two makes me think the underlying cause is different.


This is a really basic question, but it is one I never really thought about until now.   Let $\mathscr{G}$ be a tree. Then every pair of vertices in $\mathscr{G}$ is connected by a unique walk.   We are asked to prove the converse which is worded as:  If any two vertices of  $\mathscr{G}$ are joined by a unique walk, then $\mathscr{G}$ is a tree.   My question is whether the author means that if we can find a single pair of vertices that are joined by a unique walk in a graph (that may not be a tree), then we know $\mathscr{G}$ is a tree (which obviously is not true), or if he means something more a long the lines of "for all pairs of two vertices in $\mathscr{G}$".   Similarly, he asks us to prove:  If $\mathscr{G}$ is connected but becomes disconnected by the removal of any one edge, then $\mathscr{G}$ is a tree.   Again, in one case it is easy to find counterexamples of graphs with cycles (not trees) that can become disconnected by the removal of one of their edges, but if he wants us to prove that "if, for every edge, the removal of that edge will result in a disconnected graph, then the graph is a tree", the proof while also simple is very, very different.   I come from a more applied background and am not used to this kind of wording. Any insight would be much appreciated.


Prove by induction that $\sum_{i=1}^{2^n} \frac{1}{i} \ge 1+\frac{n}{2}, \forall n \in \mathbb N$

As the title says I need to prove the following by induction: $$\sum_{i=1}^{2^n} \frac{1}{i} \ge 1+\frac{n}{2}, \forall n \in \mathbb N$$   When trying to prove that P(n+1) is true if P(n) is, then I get that:  $$\sum_{i=1}^{2^{n+1}} \frac{1}{i} = (\sum_{i=1}^{2^n} \frac{1}{i} ) +(\sum_{i=1}^{2^n} \frac{1}{2^n+i} ) \ge 1+\frac{n}{2} + (\sum_{i=1}^{2^n} \frac{1}{2^n+i} )$$ using the inductive hypothesis. And for P(n+1) to be true it would be sufficient to prove that  $$1+\frac{n}{2} + (\sum_{i=1}^{2^n} \frac{1}{2^n+i} ) \ge 1+\frac{n+1}{2}$$  or rewriting $$\sum_{i=1}^{2^n} \frac{1}{2^n+i} \ge \frac{1}{2} $$ and here I'm a bit stuck  Thank you for your help!


One of my first models from several months ago, when I began with Blender, doesn't work with a mirror modifier properly. While tabbing between Edit and Object modes, the object origin remains in place, while the mesh location is different on the x-axis by a half a blender unit. In Edit Mode the mesh favors the right as in +5, while in Object Mode it is -1! I did try clearing scale, rotation and location. Any ideas?  Here is the blend file:


CNAME alias from named SQL instance to default instance

I know I can use CNAME alis to point from one SQL Server to another for upgrade or such log shipping, but what if one is named instance and other is default instance?   Do I need SQL alias?  Do i need such like this answer?    .thanks


Can we define vector space on $\mathbb Z$ over any field? Intuitively, think that we can not, but how to prove that?


Change width of modal using overlayLibrary

I have a component that uses the overlayLibrary to pop up a custom modal with a component inside of it.  I extend this component via other components so that I can reuse the overlay library feature and have my function calls all in one place.  I want to be able to set the width of the modal within the context of the component I am dynamically creating inside of it, however, I can't seem to make that happen.  If I set the width within the component I'm creating, the "container" modal window does not expand to show the entire component.  I create the component and modal like this:  showComponentInModal :  function(component, c, params, header, showCloseButton, cssClass, closeCallback){     // component = reference to the view     // c = component to be created within the modal.     // params = the component parameters to pass     var modalBody;     $A.createComponent(c, params,                        function(content, status) {                            if (status === "SUCCESS") {                                modalBody = content;                    component.getSuper().find('overlayLib').showCustomModal({                                    header: header,                                    body: modalBody,                                    showCloseButton: showCloseButton,                                    cssClass: cssClass,                                    closeCallback: closeCallback                                })                            }                        }); }   Is there a way in my cssClass definition that I can tell the modal window to be set at a specified screen width?


How to not totally suck at minecraft pvp?

And I really do mean totally suck.  In game modes like uhc or classic duels (sword + bow + rod on mostly flat terrain), I find that I struggle to even hit opponents - typically the server says that I have a melee accuracy of 5-10%, compared to about 50% for the people I get matched with.  Usually these games wind up with me and the other guy exchanging a few bow shots (which I do okay at) and then running at each other; I click the mouse a lot and then die after landing almost no hits.  I get that the usual answer to this is practice, but these abysmal results make me think that there's some fundamental game mechanic that I just don't get.  How can I actually do damage to the opponent in pvp?


How to accept USB as audio input for New Macbook Pro Retina?

I would be very grateful if you could help me clarify - I used to use a software program for recording vinyl mixes on my old Macbook called - Audacity. Recently I've replaced this old Mac with a new Macbook Pro which does not have a phono jack, "line in” port, only a USB port and the same software does not pick up the sound any more, from my vinyl mixes.   Do you know a way to get my new Mac to accept the sound from the original phono outputs of the same mixer to the new USB port? I've already bought the generic cable and can't get it to recognise the new USB port as an official input.   Your guidance is greatly appreciated, as there is no current USB input availabilty option within the generic Mac settings - under "sound" settings. This basically means I can not work out how to accept input, via USB & I can not record, until I solve this problem?


Jointly Gaussian uncorrelated random variables are independent

Let $X,Y$ be jointly normally distributed and uncorrelated. Why are they independent?


Using SHA512 to store login passwords instead of MD5

I have been reading a lot online that MD5 is not very secure, i have decided to switch my site over to use SHA512, i have never done this before so really i am just asking you to check to see if i have done it correctly, or is there an alternative more secure hash method which i can use to store the password ?   $upass is the users password which i need to hash.   Here was my origional PHP with MD5 :   $uname = mysql_real_escape_string($_POST['uname']);  $sname = mysql_real_escape_string($_POST['sname']);  $email = mysql_real_escape_string($_POST['email']);  $upass = md5(mysql_real_escape_string($_POST['pass']));   Here is my new PHP using SHA :   $uname = mysql_real_escape_string($_POST['uname']);  $sname = mysql_real_escape_string($_POST['sname']);  $email = mysql_real_escape_string($_POST['email']);  $upass = mysql_real_escape_string($_POST['pass']);   $upass = hash('SHA512', $upass);   Here is also the hashed string for the word "password" just to make sure the hashing is working.  SHA512 :  b109f3bbbc244eb82441917ed06d618b9008dd09b3befd1b5e  MD5 :  5f4dcc3b5aa765d61d8327deb882cf99  Thanks for any help / advice in advance.


How can I remap the volume buttons for custom use?

First of all, I only want to disable the standard volume buttons - I do not want to disable the buttons to change brightness, launchpad...   I need this because I want those buttons to trigger  using .


Show that there exists a non-trivial automorphism on $G$.

Let $G$ be a finite group with at least four elements such that $g^2=e$ for all $g \in G$. Show that there is a non-trivial automorphism on $G$.      How do I proceed to prove it? Please help me in this regard.  Thank you very much.


optexp environment error when compiling with XeLaTeX

I have troubles with optexp environment. There is a code  \documentclass[pstricks,margin=12pt]{standalone}  \usepackage{pst-optexp}  \begin{document} \begin{pspicture}(3.2,5) \pnodes(0,3){A}(1,3){BS}(3,3){M1}(1,5){M2}(1,1){PD} \psset{mirrortype=extended, mirrordepth=0.2}  \begin{optexp} \beamsplitter[bsstyle=plate, compname=BS](A)(BS)(PD) \mirror[compname=M1](BS)(M1)(BS) \mirror[compname=M2, variable](BS)(M2)(BS) \lens[compname=L](BS)(PD) \optdetector[compname=Det, dettype=diode](BS)(PD) \addtopsstyle{Beam}{beamwidth=0.2, fillstyle=solid,fillcolor=green!20!white} \drawwidebeam(A){BS}{M1}{BS}{M2}{BS}{L}{Det} \end{optexp} \end{pspicture}  \end{document}   and the result is this    and I get "MiKTeX GPL Ghostscript 9.19: Unrecoverable error, exit code 1" error. When I remove optexp environment, so  \documentclass[pstricks,margin=12pt]{standalone}  \usepackage{pst-optexp}  \begin{document} \begin{pspicture}(3.2,5) \pnodes(0,3){A}(1,3){BS}(3,3){M1}(1,5){M2}(1,1){PD} \psset{mirrortype=extended, mirrordepth=0.2}   \beamsplitter[bsstyle=plate, compname=BS](A)(BS)(PD) \mirror[compname=M1](BS)(M1)(BS) \mirror[compname=M2, variable](BS)(M2)(BS) \lens[compname=L](BS)(PD) \optdetector[compname=Det, dettype=diode](BS)(PD) \addtopsstyle{Beam}{beamwidth=0.2, fillstyle=solid,fillcolor=green!20!white} \drawwidebeam(A){BS}{M1}{BS}{M2}{BS}{L}{Det}  \end{pspicture}  \end{document}   the result is     which is correct but optical components are behind beam. I use XeLatex. What am I doing wrong? Which packages are missing? Thank you (example is from manual "Drawing optical experimental setups" where the code works correctly).


for unetbootin, on Ubuntu 19.04, PPA: gezakovacs does work

When I attempt to install unetbootin on my Ubuntu 19.04 system, I get: "E: The repository ' disco Release' does not have a Release file."  message ---- what PPA can I use to get unetbootin to work properly?


Is there a word for a person who believes themselves to be smarter than others, but  frequently betrays that the opposite is true. For example, when dumb-shaming someone, this person uses their big words incorrectly, but confidently. Know-it all isn't quite right, because there's a chance a know-it-all  might actually know quite a lot.


Is it possible to convert a switched light into an unswitched outlet?

I am installing an overhead automatic garage door opener. My only power source close to where I will be hanging the motor is an overhead light socket that is operated by a switch on the wall next to the house entry door.   I wanted to know if it is possible to rewire the light socket with a standard electrical plug outlet AND to remove the switch & wire it to provide constant power to the new outlet. The overhead light is on my 15A garage GFI circuit & the opener lists 120V/6A as its power requirements.  I live in the US.


QML at the moment lacks the ability to execute basic system commands. What libraries or functions can be imported to add this functionality to a .qml file?


Can anyone tell me about the -t option when invoking bash?   I found the following  handy command to use a    urxvt -geometry 80x3 -name 'bashrun' -e sh -c "/bin/bash -i -t"   Through a little investigation of its behavior, I see that the -t essentially makes bash exit after executing one command, but I am curious if there is any more to that specific -t option. I can't actually find any documentation about it, and I've looked through the following docs:   man bash     I find it odd that -t is not as clearly laid out as the rest of the options.


What does the typical workflow of a journal look like?

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


Basic question about isomorphism of $O_X$-modules.

Let $X$ be a scheme. Suppose I have two $O_X$-modules $F$ and $G$ and a homomorphism $\psi: F \to G$. As sheaves of rings on $X$ we know that $\psi$ is an isomorphism if and only if  $\psi_x: F_x \to G_x$ is an isomorphism. What is the equivalent statement if I want $\psi$ to be an isomorphism of $O_X$-modules? Thank you.


How to find the query that is still holding a lock?

Querying the sys.dm_tran_locks DMV shows us which sessions (SPIDs) are holding locks on resources like table, page and row.  For each lock acquired, is there any way to determine which SQL statement (delete, insert, update or select) caused that lock?   I know that the most_recent_query_handle column of the sys.dm_exec_connections DMV gives us the text of the last query executed, but several times other queries ran before under the same session (SPID) and are still holding locks.  I already use the sp_whoisactive procedure (from Adam Machanic) and it only shows the query that is on the input buffer at the moment (think DBCC INPUTBUFFER @spid), which not always (and in my case usually never) is the query that acquired the lock.  For example:   open transaction/session exec a statement (that holds a lock on a resource) exec another statement on the same session open another transaction/session and try to modify the resource locked at step 2.   The sp_whoisactive procedure will point out the statement at step 3, which is not the responsible for the lock, and thus not useful.  This question came from doing an analysis using the Blocked Process Reports feature, to find the root cause of blocking scenarios in production. Each transaction runs several queries, and most of time the last one (that is shown on input buffer at BPR) is rarely the one holding the lock.  I have a follow-up question:


Logitech MK850 Macbook pro Catalina Fn key

Recently bought a . It has Ctrl, Fn, Opt, Cmd buttons on the left. I'm trying to switch the Ctrl and Fn keys so that it's the same as the Macbook keyboard (which has Fn then Ctrl). Tried the Keyboard preferences but no luck - it doesn't seem to let me modify the Fn keys. Any idea how to map keys? (FWIW: recently switched to Mac and trying to get used to the new key layout)


By what % does monster HP increase in multiplayer?

In Diablo 3, when a player joins your game it says the monsters get stronger. What is the amount of increased HP when playing with 2, 3 or 4 people?


Is there a monotonic function discontinuous over some dense set?

Can we construct a monotonic function $f : \mathbb{R} \to \mathbb{R}$ such that there is a dense set in some interval $(a,b)$ for which $f$ is discontinuous at all points in the dense set?  What about a strictly monotonic function?   My intuition tells me that such a function is impossible.  Here is a rough sketch of an attempt at proving that such a function does not exist: we could suppose a function satisfies these conditions.  Take an $\epsilon > 0$ and two points $x,y$ in this dense set such that $x<y$.  Then, $f(x)<f(y)$ because if they are equal, then the function is constant at all points in between, and there is another element of $X$ between $x$ and $y$, which would be a contradiction.  Take $f(y)-f(x)$.  By the Archimedean property of the reals, $f(y)-f(x)<n\epsilon$ for some $n$.  However, after this point, I am stuck.  Could we somehow partition $(x,y)$ into $n$ subintervals and conclude that there must be some point on the dense set that is continuous?


In an exercise I'm asked the following:  a) Find a formula for $\int (1-x^2)^n dx$, for any $n \in \mathbb N$. b) Prove that, for all $n \in \mathbb N$: $$\int_0^1(1-x^2)^n dx = \frac{2^{2n}(n!)^2}{(2n + 1)!}$$  I used the binomial theorem in $a$ and got: $$\int (1-x^2)^n dx = \sum_{k=0}^n \left( \begin{matrix} n \\ k \end{matrix} \right) (-1)^k \ \frac{x^{2k + 1}}{2k+1} \ \ \ + \ \ C$$ and so in part (b) i got: $$\int_0^1 (1-x^2)^n dx = \sum_{k=0}^n \left( \begin{matrix} n \\ k \end{matrix} \right) \ \frac{(-1)^k}{2k+1}$$ I have no clue on how to arrive at the expression that I'm supposed to arrive. How can I solve this?


Is there a way, using javascript, to detect if there are multiple monitors connected to the device?

Is it possible to tell if a device is connected to more than one monitor? I looked up everywhere but couldn't find anything useful.


I am removing extra space using trim method which is working fine in all browser except IE8.
   test
 pick test


How do I get full permission to my files?

I have run into this problem too many times. Sometimes when I'm trying to run a command on the terminal it will say "Permission Denied." How can I get that permission??


View all site moderators, past and present

I am not aware of any way to see all mods a site has had.   and the  lists only the current mods. There should be a page that displays all the moderators a site has had. On my  we are having an election now and three of our four mods are not running. In the not too distant future users will forget, and new users will never know that these users served as moderators. We have already replaced a mod, and many users do not know who he was. SE need a place to recognize the service of all mods, not just during their term. I propose adding a link to the  that goes to a new  moderator page. Where all moderators that have served that site will be listed along with the time of their service.


Python, how to get first list element in reversed order?

Please consider below code, I want to reversed the first two elements. That is target string is  "abcd", the first two elements is "ab", and i need "ba". How can i use below code to do it? (I know i have alternative ways to do, but how to do in below way?)      r = "abcd"     t = r[1:0:-1]     print(t)     # print b   Another way:      r = "abcd"     t = r[1:-1:-1]     print(t)     # print NOTHING!


New version of gnome-initial-setup causes Java problems

I just did a minor upgrade, and then I suddenly started having Java Problems.    The stack trace looks like:   java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper     at java.desktop/java.awt.Toolkit.newAWTError(Toolkit.java:472)     at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Toolkit.java:488)     at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)     at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)     at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1608)     at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)     at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)     at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)     at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)     at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)     at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)     at java.desktop/java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:532)     at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:613)     at java.desktop/java.awt.Window.getToolkit(Window.java:1375)     at java.desktop/java.awt.Window.init(Window.java:518)     at java.desktop/java.awt.Window.(Window.java:549)     at java.desktop/java.awt.Frame.(Frame.java:423)     at java.desktop/java.awt.Frame.(Frame.java:388)     at java.desktop/javax.swing.JFrame.(JFrame.java:180)     at rga.hack.SlideShow.(SlideShow.java:293)     at rga.hack.SlideShow.main(SlideShow.java:674) Caused by: java.lang.ClassNotFoundException: org.GNOME.Accessibility.AtkWrapper     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)     at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)     at java.base/java.lang.Class.forName0(Native Method)     at java.base/java.lang.Class.forName(Class.java:374)     at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Toolkit.java:485)     ... 19 more   I have both openjdk-11-jre and openjdk-11-jre-headless installed as well as libatk-wrapper-java and libatk-wrapper-java-jni installed.  The java code I'm using is an old program I wrote myself, but it was working fine until the last update.  I can make the problem go away by commenting out the line in /etc/java-11-openjdk/accessibility.properites, but I suspect that there is a broken dependency in one of the packages I recently installed.  The following packages were installed in the update:   Upgraded the following packages: accountsservice (0.6.45-1ubuntu1) to 0.6.45-1ubuntu1pop2 console-setup (1.178ubuntu2.3) to 1.178ubuntu2.6 console-setup-linux (1.178ubuntu2.3) to 1.178ubuntu2.6 gir1.2-accountsservice-1.0 (0.6.45-1ubuntu1) to 0.6.45-1ubuntu1pop2 gnome-initial-setup (3.28.0-2ubuntu6.16.04.1) to 3.28.0-2ubuntu6.16.04.2system76.1 keyboard-configuration (1.178ubuntu2.3) to 1.178ubuntu2.6 libaccountsservice0 (0.6.45-1ubuntu1) to 0.6.45-1ubuntu1pop2 palemoon (27.9.4~binaryrepack-1) to 28.0.0~repack-3   As the error is gnome related, I'm blaming the gnome-initial-setup package, but I'm wondering if anybody knows more about this than I do.


Will wolves attack and kill ocelots in Minecraft? I know they kill sheep. I just don't want my cats being eaten.


Software level architecture of Stack Overflow

I was going through this video:  where he says there are few projects in the Stack Overflow solution. And this made me curious.  What is the architecture of Stack Overflow Solution directory and since the video isn't clear about the projects inside the solution, can anyone tell me what they are? And how each project is dependent on the other.   EDIT This is not the same question as "what is stackoverflow built with". This question is specific to the software side of it, basically the Layered architecture of StackOverflow and the Visual Studio Solution directory.


How do I get useful SQL Server database performance statistics?

We currently have several shared SQL Server servers and instances in our organization. They are going with a different architecture where business units will get their own SQL Server instances. We have SQL Server 2008R2.  In the past, databases were put on servers in a more or less random fashion -- business use and disk space were the main drivers.  I've been tasked with coming up with a plan for allocating our 50+ databases across 3 servers (one instance per server). My criteria for divvying them up is as follows:   Business critical db's should be spread across the servers. i.e. avoid lumping a bunch of business critical db's all one server.   For the remainder of the non-mission critical db's, consider: a. Disk space usage b. I/O usage -- memory, CPU, etc.     1 and 2a are easy for me to figure out. I know how to get data file sizes.   My question is with that last bit - 2b. I do not know how relevant this is, what specific stats to look at, or how to get them.   Frankly, I'm not 100% sure how to phrase this question! I think I basically want to know is, "How 'busy' is this db -- however you define 'busy'?" Or maybe, "How does this db impact the performance of the server?"  I mean, disk space is important -- but it could (in theory) have a ton of rows or binary objects in there that are not written very often, so it has little impact on the performance of the server. I think I would want to know how much impact a db within a date range.  Is there a way to get these kind of general stats? I'm not looking for expensive queries, detailed user stats, or query optimization here. I'm aware of the SSMS reports, but they seem to be more real-time. The end goal is to divide up our current databases into evenly balanced buckets, and I would think performance is one way to do that.  Thoughts? Wisdom? Any other ideas on how to divvy up the db's?  Thanks! Tom


Are split infinitives grammatically incorrect, or are they valid constructs?

Mark's generosity in this crisis seems to more than make up for his earlier stinginess.   Should those sentences always be avoided, or are there cases where they are valid?


I have made a cog wheel and am trying to animate it into a full 360 degree spin. Since I am only spinning the wheel across the Y axis I didn't feel that any armature or bones were necessary.  I'm having issues, though, with getting the animation cycle to be fluid. The keyframes and rotations are as follows:  1: 0 degrees  1/4: 90 degrees  1/2: 180 degrees  3/4: 270 degrees  last: 0 degrees  This has the unwanted result of ending on the same rotation that the animation starts, which as you can guess causes a 1 frame glitch in the animation where the frames are the same. I don't know exactly what the rotation should be 1 frame from being back to the start.  This seems like a very common problem, and I would presume occurs in walk cycles or any other animation sequence. What is the fix for this?   Can you ignore the last frame in the animation cycle, but use it to set the values (IE: define the last frame to be 0 degrees, causing the animation to animate to that end, but never reach it, as the last frame would become the first frame of the next iteration)?


How to suppress scientific notation from a float value in python. Here I tried the following code but it's not working  r_val[v].append('%.2f' % val.get("closing_balance"))   Thanks in advance


I have attempted to set these up but want to make sure I'm on the right track. Any help is appreciated!      Dante can only invite 8 people to his birthday, but has 13 friends he’d like to invite. Eight of his friends are boys and five are girls. If Dante randomly selects 8 people, determine the probability for each scenario.   Dante does not invite any girls $\binom{13}{8}$ Randomly selecting 8 people $\binom{8}{8}$ not girls = $\binom{13}{8}$   $\binom{8}{8}$  Dante invites an equal number of boys and girls This would mean out of the 8 people, 4 need to be boys and 4 girls. $\binom{13}{8}$ Selection $\binom{8}{4}$ boys $\binom{5}{4}$ girls = $\binom{13}{8}$ ? $\binom{8}{4}$ * $\binom{5}{4}$


I have Windows 10 installed in my laptop, and today I created a partition and installed Ubuntu 18.04 Desktop LTS.  Everything went well until the end of the setup process. Then I got a message telling me to reboot the computer and after rebooting, grub does not appear and even in the Windows bootloader I don't see Ubuntu as a choice. Windows are loading but I cannot access Ubuntu.  I've tried to use the following solution:  and when I reboot the problem is still not solved.


Abelianization of free product is the direct sum of abelianizations

I define $\text{Ab}(G)=G/[G,G]$ where $[G,G]$ is the commutator subgroup. I want to show that $$\text{Ab}(G_1*G_2)\cong \text{Ab}(G_1)\oplus\text{Ab}(G_2)$$   gives a categorical proof, but I don't know much category theory. Can someone give a purely group-theoretic proof of this (I know the universal property of abelianizations)? By the universal property, it would suffice to show that the RHS is an abelianization of $G_1*G_2$.


where to type command sudo apt-get install-f?

Since I've never run into this kind of problem before with an error message, this broken count<0.  Left clicking on package manager is no different than right clicking. (what error message says to do)  What this site says to do is put in command sudo apt-get install-f. Where do I put that command as I have tried different places without anything happening.  I'm just into basic computer use so this is a problem for me.


I am using the latest updated Ubuntu 12.04 and I would like to know how I can stream my second monitor to an RTMP address. (Twitch.tv)  Is there any kind of streaming on Linux I can set up, or an up to date guide that shows how to do it in 12.04?


EDIT: I see from this  and from elsewhere on the Web that a bubbling airlock is apparently not an indicator for fermentation, as there could be a leaky lid. Regardless, doesn't a non-bubbling airlock indicate that something is wrong, as there could be a leaky lid? I'm under the impression we use an airlock in the first place to keep air out as it would oxidize the alcohol into vinegar.   This was my seventh extract batch. For the last 4 batches I've done a yeast starter and aeration with an aeration stone. This has moved my lag time from 24 hours max to 12-16 hours max. For all my other batches I get a vigorous airlock for 4 days. Normally I pitch the yeast in the middle of the fermentation bucket and do NOT stir the yeast around. I normally order the Wyeast over the internet which takes 5 days to ship to me. I use a swamp cooler. Normally I wait until the airlock starts to bubble before I add frozen water bottles to the swamp cooler.  I bought the Creme Ale from NB which uses Wyeast 1056 (American Ale).  However, this was the first time I didn't order the Wyeast from NB; instead I purchased it from the LHBS because I figured the 5 day shipping from NB was harmful.  I also ordered a Dead Ringer IPA which uses the same yeast.  I made two yeast starters. The one for the Creme Ale had an OG of 1050 and the one for the IPA had an OG of 1040. The IPA definitely was a better yeast starter.  I aerated the creme ale wort (1040 OG) with an areation stone and pitched the entire 1050 yeast starter into it. This time I decided to stir up the yeast in the wort. This time I decided to put 6 frozen water bottles into the swamp cooler immediately instead of waiting until the airlock started bubbling. Using a temperature probe I kept the swamp cooler at 60*F by adding frozen water bottles. The lid was completely sealed.  After 24 hours the airlock was not bubbling, so I purchased another Wyeast 1056 from the LBHS and pitched it without a yeast starter at 48 hours. However when I opened the lid to the bucket I saw the following: (Is this fermentation activity or simply a result of me stirring the wort/yeast from 48 hours before?)   Around 2 hours later (50 total) the air lock started bubbling, so I figured that I was safe and that either the 1050 og of the yeast starter somehow destroyed the yeast (even though I successfully pitched 1060 og yeast starters before) or the Wyeast I bought was bunk. I then added 6 frozen water bottles to the swamp cooler to take it to 60*F.  When I woke up 10 hours later (60 hours total) the airlock stopped bubbling.  I only did three things differently this time:  1) The LBHS sold me bad yeast. 2) The frozen water bottles somehow stopped the fermentation. 3) Stirring the yeast into the wort somehow did something.  Questions:  What is the problem (if it is possible to diagnose over the internet), and what should I do now?  I am in the middle of brewing the IPA with a 1040 og yeast starter so I will report back. This time I will simply pitch the yeast starter and not stir it, and I won't add frozen water bottles until I see the airlock bubbling.


How to measure area of polygons generated from gps data in qgis?

Somebody classified my question as a duplicate. But applying the answer doesn't work for me. Here is what I did: - I made sure that my layer is in a projected coordinate system (UTM30N, WGS84) - I used the field calculator - I used the area command. - I get 0. - And I don't know where to adjust the units...    I have gps data from around 200 farm areas and I want to compute the correct area of each polygon. What I did so far is this:  I imported the data from around 10 garmin devices to basecamp, gave them IDs and exported them in one gpx-file (around 2 MB). Than I imported the GPS data to qgis and used the "line to polygon" tool to generate shapefiles.   My coordinate system is WGS 84 and UTM 30N for the south west of Burkina Faso. The whole project in qgis as well as the layers have this coordinate system.  When I create a new column in the attribute table, open the field calculator and use the "area" command, I get a "0" for each polygon. When I use the measure tool I get very small figures (f.e. 0.024 m2 instead of 43.635 ha).  I use QGIS 1.7.0 (Wroclaw) on a MacBookPro Mac OS X (10.5.8).  Best, Martin


How many ways are there to distribute 5 balls of different colours among three persons with additional conditions?

Problem:     The total number of ways in which 5 balls of different colour can be   distributed among three persons so that each person gets at least one   ball?   Source:  A book on combinatorics. Was asked in an entrance exam.  My try:  To simplify the problem, we can distribute $3$ of the $5$ balls beforehand so we can get rid of the constraint. Let us select 3 balls and permute them within these three persons, so the number of ways of doing so $$ N_1 = C(5,3) + P(3,3) = 60$$  Now that we have done so, we have two balls left. Let them be $B_1$ and $B_2$ These can be distributed as below:   Let both the remaining balls be with one person, so we have  $$(B_1 B_2, 0, 0)$$ and there are $3$ ways of doing so.  Let the remaining balls be distributed one by one, so we have $$(B_1, B_2, 0)$$ and there are $3! = 6$ ways of doing so.  We can take the total number ways ($N$) by: $$N = N_1 \times 3 + N_1 \times 6$$ $$N = 60 \times 3 + 60 \times 6$$ $$N = 540$$  This approach seems correct to me but still it gets the wrong answer...  The right answer is $150$ ways  Please guide me and correct me if I'm wrong. All help appreciated!


This is a two part question  Given $\gcd(a,b) = 1$  consider  $$\gcd \left( \frac{a^n - b^n }{a-b}, a- b\right) $$  It appears that the value of this is always equal to $n$ or $1$. How to prove it?  And with that show  $$\gcd \left( \frac{a^n - b^n }{a-b}, a- b\right) = \gcd \left( n \frac{a^{n-1} - b^{n-1}}{a-b}, a- b \right) $$  I began with tackling the first part  I trie to use an Inductive Proof at first by noting:  $$\frac{a^{n+1} - b^{n+1}}{a-b} = a\frac{a^{n} - b^{n}}{a-b} + b^{n} = b\frac{a^{n} - b^{n}}{a-b} + a^{n} $$  But this didn't pan out any sort of solution since it doesn't become immediately apparent that $n+1$ divides this new quantity or some linear combination of this quantity with $a - b$  I could attempt a combinatorial approach and ty to use the binomial theorem I was thinking. But no apparent way to match terms become apparent.  What should I do for the first part?


XSS javacript indication after redirection

I am working on an assignment on bWAPP (xss - stored (blog)) and we were asked to redirect every user that enters the blog, and after each successful redirection, the attack should receive an indication. how can I do the indication after redirection part on javascript? (we can use Netcat and Wireshark to check our assignment)


T-test with sample standard deviation of zero. Possible?

The formula for a one sample t-test, as given by  is  $t = \dfrac{\bar{x} - \mu_0}{s\big/\sqrt{n}}$  However, in this equation, if the sample standard deviation, $s$, is zero, $t$ will be undefined. Is there any reasonable way to get a $t$ value in this case?


"Who's going to the movies?" "[Person] and I." or "[Person] and me."

This is weird.  I always heard the rule about removing the other person's name, but what's the deal in this case? "[Person] and I." would be the subject, so that seems like it is right, but I don't think I would just say "I." in response to the question.  Edit: My question was flagged as maybe a duplicate. I suppose it is different because I am asking if I were to include another person in the answer.


Add delay between function calls in main

In my main function (Form1_Load) i'd like to call 3-4 functions to initially setup the program. Problem is that im getting an error when trying to do this (one function is not running properly). I am able make a button for each function call and press them in the right order using the Windows Form and the program works fine. So i'm thinking that the program is not connecting properly to the server , execution of functions are too fast or something causing problems with threads, so I need to add some delay between the function calls. How do i do this the best way in C#? Idea:    Form1_Load(object sender, EventArgs e) {          callfunction1();          add_delay();          callfunction2()          add_Delay();          etc.  }   This is one of my first times programming in C# so im sorry if the answer is obvious.


After making u substitution two times, I am getting indefinite integral as $$\int\limits\dfrac{dx}{1+2\sin^2x} = \dfrac{\arctan(\sqrt{3}\tan(x))}{\sqrt{3}}+ C$$  I am stuck at working the bounds because I am getting $0$ but the answer needs to be $\pi/\sqrt{3}$.  I think $\arctan(x)$ is defined in $-\pi/2 \lt x\lt\pi/2$ while making u substitution. However I don't see how to use this observation to my advantage. Can anybody help in getting the answer and understanding whats going on. Thanks !


Can I install Ubuntu 13.04 on ibm thinkpad a31

I have an IBM Thinkpad and want to install Ubuntu. These are my specs:   512mb ram ATI mobility radeon 7000 graphics card   I don't know the rest  Is it possible to install Ubuntu 13.04 on it?


zsh function: maximum nested function level reached

Consider this simple function I am trying to add in my .aliases (dnf is Fedoras newest replacement of Yum):  function abc() {     dnf search something }   It works well on Bash but I get the following problem on zsh:  dnf:1: maximum nested function level reached   What can be the cause of this problem?    $ type -a dnf dnf is /usr/bin/dnf dnf is /bin/dnf


Is there an idiom/phrase for the situation where people hang out in a foyer saying goodbye, but not leaving?

The situation is after some event, like a dinner or a party, and the last people to leave are saying their goodbyes.  Then, just as they're at the door, they start chatting with the host, and before anyone realizes it, they've been standing in the foyer for about 1-2 hours and still haven't left.  I've been in this situation often, and for some reason I thought it had a name or phrase, like "suck in the foyer saying goodbye" or something.  I tried googling it, and I got results like "long goodbye", when someone says goodbye to someone they know they won't see for a long time, which is not at all what I'm looking for.


Why do the ending anchor points appear disconnected after I apply a brush to a single stroke in Illustrator?

I would like to know a solution or workaround to avoid having the stroke appear disconnected after applying a brushstroke. Please see before and after applying a brush to stroke. I have already tried the alt/option method of connecting the path as well as "join" to make the connection; however, when applying the brushstroke, there is still a "pinch" along the path. Is the tapered brush stroke part of the problem? Or is there a better way to achieve a more seamless result when using an art brush? Thank you!


Is that proper to get messages about your work from your lab head at the early dawn?

Is that proper to get messages about your work (almost critique no constructive feedback) at the early dawn, I freaked out from my sleepings not the first time to expose that besides the high pressure to get results as soon as possible. I feel my body is exhausted and sick and sometimes crying, is this behavior normal in academia?


Prove that if the real-valued function $f$ on the interval $[a,b]$ is bounded and is continuous except at a finite number of points then $\int^1_0f(x)dx$ exists.   I know that I can break up the interval $[a,b]$ into subintervals where each subinterval has one discontinuity point. Then if $f$ is integrable on each subinterval then it is integrable on $[a,b]$. So if I let $c$ be my point of discontinuity in the subinterval $[a_1,b_1]\subset [a,b]$, where $c\in[a_1,b_1]$. Then how can I show this subinterval is integrable?


Why would Kylo Ren even want the Skywalker lightsaber?

In The Force Awakens, Kylo Ren makes it very clear that he wants .     That lightsaber belongs to me!   My question is, why did he want it?  It belonged to two people, Luke, who he considered an enemy, and Anakin, who unlike Vader, .  Vader did briefly use the lightsaber, but would Kylo even know that?  Why would Kylo want the lightsaber of two men he didn't respect?


How to Ask a question which is a continuation

How to ask a question if it is a continuation of a question I asked before?  Should I edit my question and ask, or ask that as a new question?


How does the following code actually work?

I am currently working on a rather simple Windows Form that lets me type in information such as name and number into text fields and then add that to a list view. The information is entered in another Form and I had some issues figuring out how to access the listView in Form1 from Form2. I found the following code to work just fine Form1: private void button1_Click(object sender, System.EventArgs e) {      Form2._Form1 = this;      Form2 form2 = new Form2();      form2.Show(); }  Form2:     public static Form1 _Form1;  Now, I simply wonder 2 things. What does this actually do? and do I HAVE to use static? Sorry if this is a very vague question, just wanna know what I'm actually doing.


How long system has been awake / running / since restart

First and foremost I want to know how long my laptop (unix, apple, OSX 10.9 mavericks) has been 'awake' (i.e. how long its been open, or since it last 'slept').  I' also be interested in how long since the last restart, and time since the last shutdown (if those two things can be differentiated).  I've tried the who and w commands, which seem to show me time for the whole system, and for individual processes (terminals?) since the system last restarted.  Is there a way to tell how long the system has been awake, explicitly? Does the reported process times include sleep-time (i.e. when my laptop is closed)? Is there a way to distinguish between restart and shutdown?


Weighted projective space and projective space are isomorphic

From Vakil's book: Exercise 8.2.N Show that the weighted projective space $\mathbb{P}(m, n) = Proj(k[x, y])$ (where $x$ and $y$ have degrees $m$ and $n$ respectively) is isomorphic to $\mathbb{P}^1$. Can anyone give an outline of the solution to this? Edit: For convenience I identify $k[x, y]$ with $k[u^m, v^n]$. I tried to see if there is any graded isomorphism between $k[u^m, v^n]$ and the graded ring  ${k[w, z]}^{(d)}$ for some $d$ that divides the gcd of $m$ and $n$. Then it would follow from the fact $\mathbb{P}^1 = Proj(k[w, z]) \cong Proj({k[w, z]}^{(d)})$. But I see that it isn't the case.


SQL Server - Combining OUTER and INNER joins

I have 3 tables and I have to inner join Table A with Table B but a left outer between Table A and Table C.   Can I combine outer and inner join in the same query? I can nest queries and attain the desired result but I am unable to do both the joins in the same query. It appears that in other SQL languages, the order of joining is important. Is this the case in SQL Server as well?    Ok, here's the scenario.  Consider 3 tables. Table A, Table F, Table D.  I will need the recordset to contain all rows in D irrespective of whether it exists in F (after it's inner joined with A). So, a outer join comes to mind. What I would need is:   First do a inner join between A and F to get a set (this may be a null set) Then do a outer join with the recordset in (1) with D


first Stack post :D  I see there's a lot on topic already, but I'm still struggling with Tikz picture margins in LaTeX.  Code (PDFLaTeX):  \documentclass{amsart}  \usepackage{tikz}  % Custom Commands %buffer window around unit (total window is 1+2*twindow) \newcommand{\twindow}{0.2}  \begin{document} \title{Pandemic Legacy: Season 1\\Salt Report Zero} \author{Noriko ``Dr. Salt'' Shio} \maketitle  % Tanith Lee quote \emph{Narasen, the leopard queen of Merh, stood at her window and watched Lady~Plague walking about in the city.}\\{\flushright -\textsc{Tanith Lee}, Tales From The Flat Earth: Death's Master  \begin{tikzpicture}[scale=10.5] \draw(-\twindow,-\twindow)rectangle(1+\twindow,1+\twindow); \end{tikzpicture}  \end{document}   Result:    1) Topic question is: Simplest way to horizontally center this tikzpicture square?    Bonus Question:  2) can I control the text margin independently from the picture margin?


Breaking spaghetti and conservation of energy

For the past few days there have been news about scientists solving the old problem of bending a piece of spaghetti and breaking it into exactly two halves. Earlier it was already determined that the spaghetti breaks into several pieces because when it breaks at one spot, mechanical waves travel along the piece. Initially one would believe that such vibrations would dampen without breaking the piece, but opposite was found to be true. In reality, the waves cause heavy bends at several spots that are sufficient to cause further fractures.  I'm wondering how is it possible? If we first beld the piece we "store" potential energy in the bent piece. When we release it, how can it again bend FURTHER at some other spot? Would this require more potential energy than we initially put in the bend?


Is there a hot-key to jump between markers in the timeline?

I want to be able to cycle through the frames I set markers on (I have cameras bound to each marker so these are usually the first frame in a shot). Is there a hot-key for this?


Expected Value and Random variables for Uniformly Random Permutation Sets

Question      Let $n$ and $k$ be integers such that n is even, $n\ge2$ and $1\le k\le n$. You are having a party where $n$ students attended.       a) $k$ of these $n$ students are politically correct and, thus, refuse to say Merry Christmas.   Instead, they say Happy Holidays.      b) $n - k$ of these $n$ students do not care about political correctness and, thus, they say Merry Christmas.      Consider a uniformly random permutation of these n students. The positions in this permutation are numbered as $1,2,…,n$.       Define the random variable $X$,       $X$ = the number of positions with $i$ with 1<=$i$<=$\frac{n}{2}$ such that both students at positions $i$ and $2i$ are politically correct.       What is the expected value $E(X)$ of the random variable $X$? (Use indicator variables)      Options:      a) $n$ $.$ $\frac{k(k-1)}{n(n-1)}$      b) $n$ $.$ $\frac{(k-1)(k-2)}{n(n-1)}$      c) $\frac{n}{2}$ $.$ $\frac{k(k-1)}{n(n-1)}$      d) $\frac{n}{2}$ $.$ $\frac{(k-1)(k-2)}{n(n-1)}$      answer is c).   Attempt:  Indicator Variable:  $X$ $= 1$ if  $i$ with 1<=$i$<=$\frac{n}{2}$ such that both students at positions $i$ and $2i$ are politically correct.   $X=0$ for all other cases  We need $E(X)$ = $\sum_{k=0}^{n/2} k . p(k)$   We have $\frac{n}{2}$ positions? but I can’t seem to find $p(k)$  There’s so much information given in this question that Im confused on how to break it down beyond the basic initial expected value steps.


How do I get breading to stick to pre-cooked chicken for pan frying?

I tried pan fried chicken and pre-cooked the chicken sous vide. This meant that the chicken just needed to be crisped once it went in the pan. I dredged in flour then egg and then panko (Japanese bread crumbs). The chicken was cooked perfectly and the crust was really nice, but the two didn't stay together when cut. The breading would shear right off.   I did not dry the chicken after removing from the sous vide, so it was a little damp.   How can I get the breading to adhere better to the chicken? Flour, egg, Panko works great for raw chicken. How can I get it to stick to the pre-cooked stuff?


A doubt regarding Maxwell correction for Ampere's law

I am reading the book Introduction to Electrodynamics by David J Griffiths. Given a magnetic field $\bar{B}$ and volume current density $ \bar{J}$ by Ampere's law we have $$ \nabla \times \bar B = \mu_0 \bar J $$ It seems Maxwell modified it using continuity equation and Gauss law in the following way $$ \nabla . \bar J = -\frac{\partial \rho}{\partial t} = -\frac{\partial}{\partial t} (\epsilon_0 \nabla. \bar E) = -\nabla . \left ( \epsilon_0 \frac{\partial \bar E}{\partial t}\right) $$ and by which we have $$ \nabla . \left( \mu_0\bar J + \mu_0\epsilon_0 \frac{\partial \bar E}{\partial t}  \right) = 0 = \nabla . ( \nabla \times \bar B) $$ Till here everything is perfectly fine and then the author concludes that $$ \nabla \times \bar B = \mu_0\bar J + \mu_0\epsilon_0 \frac{\partial \bar E}{\partial t} $$ But atleast I know that $ \nabla . F = \nabla . G$ doesn't imply that $F = G$ but what is the reason here to conclude like this? Is it because of any further mathematical analysis or just the above equation fits into experimental data? Is it reasonable to avoid mathematical rigor in such case (if it is the case)? Edit:  question was suggested but it does not really answer the question. Moreover the answer is not accepted. (If possible) I  want some intuitive explanation also if the concepts (such as relativity) are really sophisticated to understand this.


I installed wps 2019 office from  on ubuntu 20.04 but it takes more than 20 seconds to start.  It could start very fast before upgraded to 20.04 (but I forgot the version of wps i was using before upgrade).  Do you get the same problem?


I have a problem with float in Python...  I have this in a variable:  i = 9.600000000000001   And I would transform in this:  i = 9.60000   with five numbers after the decimal point and rounded.


Conformal Transformation and angle preserving

For general co-ordinate transformation $V^\mu$ transforms as $V^\mu \rightarrow V'^\mu= \large\frac{\partial x'^\mu}{\partial x^\alpha}\ V^\alpha $ therefore the inner product between two vectors transforms as $   V^\mu W^\nu \large g_{\mu\nu}\rightarrow   V'^\alpha W'^\beta \large g'_{\alpha\beta}= \large\frac{\partial x'^\alpha}{\partial x^\mu}\ V^\mu\large\frac{\partial x'^\beta}{\partial x^\nu}\ W^\nu  \large\frac{\partial x^\gamma}{\partial x'^\alpha}\ \frac{\partial x^\sigma}{\partial x'^\beta} g_{\gamma\sigma}   = V^\mu W^\nu \large g_{\mu\nu}   $ i.e it is invariant therefore it appears that the angles are preserved as they depend on inner product, but i know it is not true for general co-ordinate transformation, only for conformal it is true. I have refered other texts that prove that conformal transformation leaves angle invariant but they only transform metric $\large{g_{\mu\nu}}$ and not the vectors $ V^\mu $ and $ W^\nu   $ in the inner product $  cos(\theta)=\large{ \frac{V^\mu W^\nu \large g_{\mu\nu}}{||V|| \space||W||}}\     $ $ ||V||=\sqrt{  V^\mu V^\nu \large g_{\mu\nu}}      $ similarly for $||W||$


Network simplex method, leaving and entering variables

Could someone give me a hint on this question, which is a past exam question:     Under what circumstances will an entering variable in the network simplex method be the same as the leaving variable?   Thank you for your help.


What can go wrong using the same sequence across multiple tables in postgres?

We are considering using a shared sequence to assign ids to primary keys for all of the tables in our database. There are about 100 of them. Only a couple are inserted to frequently and regularly. We want to rule out it being "a terrible idea for an obvious reason" before we moved to the phase of actually trying it and testing it at load.  Our peak load is of the order of 1000 inserts a second, across a couple of tables.  Our research thus far indicates that  - sequence generation speed shouldn't be an issue - sequence fragmentation (gaps) will happen, but shouldn't be an issue - id exhaustion won't be an issue  We're not sure if we're missing other big things. We'd be grateful for people's opinions, especially from people who have tried it before and had either positive or negative experiences.  For context - we have two main motivations for doing this.  One motivation to do this is so that we can define a bunch of dictionaries (we call them scopes) and have human readable words assigned to those ids, so we want to make sure that ids in different tables never overlap. So, in one scope, id 12345 might be assigned the value "Green" and in another it might be assigned "Verde". (Actually, we don't use it for internationalisation, but we might one day).  The other motivation is to make it easy to have several deployments in the field and know (by uniquely setting each deployment's sequence couple of most significant digits) that our deployments won't overlap primary keys. (Like a GUID lite).


Word for small plastic takeaway cups for dressings, salsa, etc

What is the name for the tiny clear takeaway/to-go cups with snap-on lids they give you at a restaurant for your entree's sauces?  The waitress told me like 10 times but I can't remember the next day.  I believe it would be a French derivation.  They are also used for samples at the grocery store.  One word.     Images from Amazon: .


Does a bestow creature falling off trigger Impact Tremors?

If I cast a  for its Dash cost and Bestow a  on it, will the Rollicker still become a creature and trigger  upon the Imp returning to my hand?


Made spring rolls but still got loads of wrappers left, they came frozen so can I refreeze them?


How does digital ISO work electronically? One amplifier or many?

As I understand the way ISO boosting works in a digital sensor, is that the voltage coming from each pixel is boosted (or suppressed) by an analog amplifier. So, for example, if the native sensitivity of the sensor is 100 ISO and the photographer asks for 400 ISO, then the voltage is amplified 4X before being sent to the ADC.  So, my question is whether there is one such amplification circuit for every pixel, or is there only one circuit and the output from each pixel is sent to the circuit in turn, or middle-of-the-road, is there a bank of amplifiers and pixels are sent in rows or columns to the amplification bank?


Adding localhost entry to Windows\System32\drivers\etc\hosts file with port number

I have set up a local site under IIS 7.5 under port 900. to access it I should type localhost:900 in the address bar. I'm a little bit familiar with the System32\Drivers\etc\hosts file and I know I can define my custom name with IP adderss there. For example I can add: 127.0.0.1 MyLocalSite and whenever I type in http://MyLocalSite in the browser, The DNS resolves its IP as 127.0.0.1. Is there anyway that I can specify port number in that file as well? (e.g. 127.0.0.1:900 MySecondSite and the DNS resolves it correctly) I tried 127.0.0.1:900 and 127.0.0.1::900 with no luck.


How to increase max open files limit on Ubuntu 18.04?

I've run ulimit -n 65536, added the following lines to /etc/security/limits.conf:  *    soft nofile 65536 *    hard nofile 65536 alix soft nofile 65536 alix hard nofile 65536 root soft nofile 65536 root hard nofile 65536   And added session required pam_limits.so to both:   /etc/pam.d/common-session /etc/pam.d/common-session-noninteractive   And fs.file-max = 65536 to /etc/sysctl.d/60-file-max.conf.  Still, after restarting and running ulimit -n on my session, I only get 4096 (was 1024 before).  What am I missing?


Could somebody provide some references on the application of logistic regression for modelling rare events?   So far I've come across three methods with the main references below:   Exact logistic regression () Firth method () King and Langche approach ()


I have an answer on  that gets 2-3 spam edits a day. The other   also receive near daily spam edits when the posts are not locked.  The question has been protected however this just seems to stop new answers could the protection be changed to stop edit suggestions by those with <10 rep as well as new answers etc.  The issue is that for each suggested edit two reviewers have to clean up the mess. The original poster also gets their inbox spammed with edit review notifications.  The previous question did not answer this as steps were taken to stop this which this question showed were not enough


Are any two uncountable sets similar to each other?

Two sets $A$ and $B$ are called similar $\iff$ thee exists a one to one function $F$ whose domain is the set $A$ and whose range is the set $B$.  We know that two countably infinite sets should be similar to each other but what about uncountable sets?   Attempt: Let $a_1,a_2,a_3,\cdots$ be elements in $A$ and $b_1,b_2,b_3,\cdots$ in $B$.  Then, can we say that this mapping : $a_1 \rightarrow b_1, a_2 \rightarrow b_2, \cdots$ is a one one onto correspondence between $A$ and $B$?  I am a little confused.     EDIT: My query actually arose from this problem : If $B$ is uncountable and $A$ is uncountable, then we need to prove that $B$ is similar to $B-A$. I proved that $B-A$ is uncountable and $B$ is already uncountable. Now, I should prove that $B$ and $B-A$ are similar. Could you please give me a hint?   Thank you for your help.


In The Phantom Menace, Anakin talks about having a bomb inside of him and, should he try to escape, Watto can simply blow him up.     SHMI: All slaves have transmitters placed inside their bodies somewhere.       ANAKIN: I've been working on a scanner to try and locate them, but no    luck.       SHMI: Any attempt to escape...       ANAKIN: ...and they blow you up...poof!   Did they ever remove this bomb or device from Anakin? Did Watto still retain the ability to blow up Anakin?


Merging objects back after applying boolean difference modifier

I've difference booleaned part A from part B, which is fine but, I was wondering if theres anyway to merge the two now separate objects back to make them as one rather than editing them separately?


I've been writing in English for many years, but there are certain recurring issues that come up in my writing, which I can't seem to resolve permanently. Primarily I have a problem with punctuation. In my native language, commas are very commonly used. One would place a comma to separate any portion of the sentence that serves a specific grammatical role. At least, this is the case according to the rules I was taught in school. I can see when I write in English that there are extraneous commas, but I can't always figure out which ones, and why. When dependent clauses require commas, when do they allow them, and when are they definitely incorrect?


Blender 2.7 Background image not working

I've watched a video on background images, and I can only see the background image that I add in the camera view. I can't see it in any other view.  How do I fix this?


When it comes to writing code for a question that asks about a procedure, would it be better to write pseudocode, or to write general code in the language they ask for?  Some questions, like comparing strings or some such, would obviously require exact code.  Outside of that, is it better to provide a text answer saying what is wrong and how to fix it, or to provide code saying it?


I wanted to update my Ubuntu 13.04 OS to 14.04 Os. I downloaded the 32-bit (.ISO) file for the 14.04. Since, i run both Ubuntu and windows on my laptop, i was wondering if i can just update Ubuntu without losing all my current win and Ubuntu files. Is it possible? or do i need to install it fresh?  if, in fact, update is possible, can anyone tell me how to do it? Also, i have tried to mount the .ISO file using various software, but my software center has gone nuts; it doesn't let me install any software.


How do I remove duplicate elements in an arraylist while keeping track of the number of duplicates? JAVA

Edit: I notice that it is possible to use hashset to stop duplicate elements, however, I don't think using that can count the duplicate elements, please correct me if I am wrong. I'm trying to store items in an array list. Then after storing, scan through for duplicates and mark how many of each unique duplicate there is. I tried to use a nested for loop to scan through an arraylist for each element, and comparing it to every other item, however, it didn't remove duplicates correctly or keep track of the number of duplicates correctly. ArrayList<Integer> itemQuantity = new ArrayList<Integer>();         for(int i = 0; i < array.size(); i++) {             int quantity = 1;             for(int j = 1; j < array.size(); j++) {                 if(array.get(j).equalsIgnoreCase(array.get(i))) {                     array.remove(j);                     quantity++;                 }              }             itemQuantity.add(quantity);         }  This is what I had. I am open to answering any questions about my code and sorry if I'm unclear. This is my first time using this website. I made arraylist itemQuantity to store the amounts of duplicates for each unique element. Then first for loop is checking through each element, then nested for loop is comparing it to every other element, if an element is the same as another, remove it from the list and increase one to the duplicate count.


How to set correct displays setting at login screen before login (Ubuntu 20.04)?

I am currently using a dual-monitor display setup for my desktop. My left screen (DP-4) is configured as normal landscape and my primary screen, whereas my right screen (DP-0) is configured to rotate 90-degress for portrait viewing. The display settings are automatically setup correctly after I login. However, each time after I restart the computer AND before I login, I would have incorrect display configurations such that (1) my right screen (DP-0) becomes my primary screen instead to show the login information, and (2) my right screen information (DP-0) does not rotate 90-dgree (ie. leaving everything appearing vertical) To provide more clear info on my setup, this would be the command I use for "xrandr" (please ignore DP-1, DP-2, DP-3, DP-5 as I am not using them as display output): xrandr --output DP-0 --mode 2560x1440 --pos 2560x0 --rotate right        --output DP-1 --off --output HDMI-0 --off         --output DP-2 --off        --output DP-3 --off        --output DP-4 --primary --mode 2560x1440 --pos 0x560 --rotate normal        --output DP-5 --off  I was able to save my permanent display settings by modifying monitors.xml at /home/myname/.config/monitors.xml. However, the display settings work automatically only AFTER I login. I also added a simple shell script file at /etc/profile.d folder as I read somewhere that this could help. The bash script includes the xrandr command that I shared above. However, it did not change or help the situation. Would appreciate so much if anyone can enlighten me on how to make the display settings at login screen (before logging in) to be same as post-login's display settings? This relatively silly issue really cause slight loss of joy of using Ubuntu every time I startup my computer, and thus just thanks much in advance for any help or advice:)


I accidentally deleted /etc/apt/apt.conf.d/20auto-upgrades

I deleted this file /etc/apt/apt.conf.d/20auto-upgrades. I thought it was a swap file. What should I do? Reinstalling the unattended-upgrades apt didn't work.  /usr/sbin/dpkg-reconfigure: unattended-upgrades is broken or not fully installed root@****:/var/log/unattended-upgrades#


How can I know what fonts a website is using?

How can I find out what font or fonts a website is using? Are there any tools or browser extensions that can make the job easier?


I would like to have a decoration for math symbols that is a \bar - only with parenthesis around it. Consider this example:  \documentclass{standalone} \usepackage{amsmath} \begin{document} \newcommand\barparen[1]{\overset{(-)}{#1}} $p\bar{p}\barparen{p}$ \end{document}   Here's how it looks:    Clearly, this is not very nice - the spacing is very different to the standard \bar command. Of course, I can try to fiddle with \raisebox and \scalebox until it looks about right, but isn't there some nicer way to do this?


Enums: Retrieve enum value from enumeration name string

The enum:  public enum EnumName {     Gary = 1,     Dave = 2 }   The input:  string inputValue = "Gary";   What is the best way to retrieve the value from the enum for this string? I.e. return the value 1.


Let $R,S$ be two rings with identity. Prove that every ideal of $R\times S$ is of the form $I \times J$ where $I$ is an ideal of $R$ and $J$ is an ideal of $S$ .  Obviously $I \times J$ is an ideal of $R\times S$. Conversely let us assume that $M$ is an ideal of $R\times S$.   To show $M=I\times J $. How to proceed?


Hermitian Matrix M(x) is continuous on x. Is its eigenvalue also continuous on x?

Each element of matrix $M(x)$ is a continuous function of $x$. Does this imply that all the eigenvalues are continuous function of $x$ too?


Seeking shapefile of city boundaries in US?

Where can I find a shapefile that contains boundaries for the major cities in the United States?  I have tried the census website but could not find anything.


Send response and continue executing script - PHP

I'm wondering if is it possibile to send reponse to the reqeust before finishing executing script?  For example, there is server A that is sending request to my server B (server2server request). Beside sending response to server A, I need to do some curl reques to other apis and save some data to DB. I don't want to force server A to wait for this additional tasks, because it can timeout connection.  There is a workaround using queues (like Beanstalkd) but I'd like to know if it is possible in a way I described and if there are any dangers using this approach.


I don't know why Google jumped to having a desktop version but is there away to go back to the mobile version? I have the iPhone 5s with the new update I prefer the mobile version better then the desktop one on my iPhone


Task Manager shows thousands of processes named "ls", how do I find out what is causing this and stop it?

Recently when trying to find out why my computer was slowing down, I saw on Task Manager (which is taking several seconds to open, if it opens correctly at all) that there were thousands of entries under the Processes tab named "ls":  How can I track down what is causing this many "ls" processes to open? As a temporary fix, my computer goes back to normal after a reset. Currently I have no reason to believe it is any kind of malware. Windows' Virus and Thread protection didn't find anything after running a full scan.


Can we paint the plane in two colors such that there is no square of the same color?

We have our every day plane $\mathbb{R}^2$ which we want to paint using two colors in such a way that no four points form a square of the same color. This means that for any square on the plane its vertices have different colors.  Is it possible to paint a plane in such a way?


I have seen  question and I have downloaded TI calculator.   But now how after extracting the file how to install it.