Same object with modifiers in different layers

How to use the same object with modifiers  applied in different layers ? I don't want to duplicate object and move it in another layer. I want Blender to use same amount of memory for that object. So that I could use different compositing in another layer but memory and CPU computing should stay optimized as possible.


Whenever I open my documents, all the folders in it are displayed with a lock icon. Therefore, I cannot delete any file or folder in it.and also can't change folder permission.so, give me solution how to fix this problem


I have bought new linode (1GB).   On this page :  Linode says:     Below are the suggested values for a 1GB Linode:   File:/etc/apache2/mods-available/mpm_prefork.conf  <IfModule mpm_prefork_module>         StartServers            2         MinSpareServers         6         MaxSpareServers         12         MaxRequestWorkers       39         MaxConnectionsPerChild  3000 </IfModule>   But I'll plan to upgrade 2GB OR 4GB machine. What should be above values for 2GB or 4GB machine and WHY?  OS: Ubuntu 16.04 LTS


Unable to update JTextArea from another thread

I'm not sure what I was wrong in the code below. It doesn't let me update JTextArea from the extraThread. I can see the status value updated in console windows but it doesn't work for the JTextArea.  Errors  java.lang.NullPointerException     at test.UI$4.run(UI.java:77)     at java.awt.event.InvocationEvent.dispatch(Unknown Source)     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)   Code  package test;  import java.awt.EventQueue;  import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.SwingUtilities; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent;  public class UI {      private JFrame frame;     private JTextArea txtArea;      public static void main(String[] args) {         EventQueue.invokeLater(new Runnable() {             public void run() {                 try {                     UI window = new UI();                     window.frame.setVisible(true);                 } catch (Exception e) {                     e.printStackTrace();                 }             }         });     }      public UI() {         initialize();     }      private void initialize() {         frame = new JFrame();         frame.setBounds(100, 100, 171, 334);         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         frame.getContentPane().setLayout(null);          JTextArea textArea = new JTextArea();         textArea.setBounds(10, 11, 133, 239);         frame.getContentPane().add(textArea);          JButton btnStart = new JButton("Start");         btnStart.addActionListener(new ActionListener() {             public void actionPerformed(ActionEvent arg0) {                 process();             }         });         btnStart.setBounds(10, 261, 133, 23);         frame.getContentPane().add(btnStart);     }      private void process() {         Thread extraThread = new Thread(new Runnable() {             public void run() {                 int i = 0;                 for(;;) {                     try {                         Thread.sleep(500);                     } catch (InterruptedException e) {                         e.printStackTrace();                     }                     String status = "Cnt " + i;                     System.out.println(status);                     updateTextArea(status);                     i++;                 }             }         });         extraThread.start();     }      private void updateTextArea(String i) {         SwingUtilities.invokeLater(new Runnable() {             public void run() {                 String prev = txtArea.getText();                 txtArea.setText(prev + "\n" + i);                }         });     } }


Why is there a /bin/echo and why would I want to use it?

I noticed that there is a binary executable /bin/echo on my Ubuntu MATE 17.04 system.  I thought, that's odd, because  $ type echo echo is a shell builtin  Cursory testing suggests that /bin/echo does the same sort of thing as the Bash builtin echo:  $ /bin/echo foo foo $ /bin/echo $USER zanna   So, why is there another version of echo separate from the Bash program, and why or when would I want to use it?


Find all $x \in \mathbb{R}$ for which $10^x+11^x+12^x = 13^x+14^x$

Find all $x \in \mathbb{R}$ for which $$10^x+11^x+12^x = 13^x+14^x$$  Testing couple of values one can quickly see that $x=2$ satisfies the equation. Also dividing by $13^x$ the $LHS$ becomes a decreasing function of $x$ and the $RHS$ becomes an increasing function of $x$, hence $x=2$ is the only solution. I tried the same problem using calculus, but couldn't get it to work. I tried subtracting the $RHS$ from both sides and then differentiating, but this didn't lead anywhere. Could this be solved with calculus?


Unity3D: generating a random colour combinations - colour switch wheel

I'm creating a game similar to the colour switch game, I've created this script to generate a random colour combination out of 8 colours. I've split my wheel into . I want each part to have a different colour when I press the button, however, after many attempts, I'm still getting my issue of two or more parts having the same colour. Can this be done? A gif to demonstrate:  (In the example, I click the button 5 times, in two cases, the same colour repeated twice, aka the purple and the pink.) My code:  public SpriteRenderer[] colorWheels;  public Color[] colorcombination;  public int uniqueRandomInt(int min, int max) {     int result = Random.Range(min, max);      if(result == lastRandomNumber) {          return uniqueRandomInt(min, max);      }          lastRandomNumber = result;     return result; }  public  void switchColour() {     for(int i = 0; i < colorWheels.Length; i ++)     {       colorWheels[i].material.color = RANDcolorcombination[uniqueRandomInt(0,8)];     } }  Thank you!


Singular or Plural in conjunction with OR condition that could include one or more objects

Which one is accurate?  ...when one or two individuals do not have [an ID] or [IDs]  another example:   ...this is the case when one or two students [are] or [is] missing  Theoretically, if one individual is missing, then it's an ID (first eg), and it should be "are" (second eg). We don't know, so which one should we choose?


Proof of Sets involving the Cartesian Product

The question goes: Let $A,B,C,D$ be sets. Prove that $\big(A\times B\big)\bigcup \big(C\times D\big)=\big(A\bigcap C\big)\times \big(B\bigcap D\big)$ I started with the definition of the cartesian product $A \times B=\left\{\big(a,b\big): a\in A \wedge b \in B\right\}$ The union of $A\times B$ and $C \times D$ would be a set of coordinates where $\big(x,y\big): x\in A\bigcup C \wedge y\in B\bigcup D$ I am stuck here because the union of the two cartesian products on the left doesn't seem to imply that $x\in A\bigcap C$ and $y \in B\bigcap D$. Could anyone give me a hint or a possible step I might not be seeing? Please and thank you.


I solved it using AM, GM inequalities and reached to $[(1+a)(1+b)(1+c)]^7 > 2^{21}(abc)^\frac72 $ please help how to get $7^7(abc)^4$ in the inequality.


Find $E(|X-Y|^a)$ where $X$ and $Y$ are independent uniform on $(0,1)$

Let $X,Y$ be independent $Uniform(0,1)$ random variables. Find $E(|X-Y|^a)$ where $a>0$.  My working:  Define $W=1$ if $X>Y$ and $W=0$ if $X<Y$. We seek $E(|X-Y|^a)=E[E(|X-Y|^a|W)]=E(|X-Y|^a|W=1)P(W=1)+E(|X-Y|^a|W=0)P(W=0)=E((X-Y)^a)P(X>Y)+E((Y-X)^a)P(X<Y)$. Now $P(X<Y)=\dfrac{1}{2}$ and $P(X>Y)=\dfrac{1}{2}$ by symmetry. $E((X-Y)^a)=\int_{0}^{1}\int_{0}^{x}(x-y)^af_{X,Y}(x,y)dydx=\int_{0}^{1}\int_{0}^{x}(x-y)^adydx=\dfrac{1}{(a+1)(a+2)}$. Similarly $E((Y-X)^a)=\dfrac{1}{(a+1)(a+2)}$ by symmetry when $Y>X$. Required expectation=$\dfrac{1}{(a+1)(a+2)}\dfrac{1}{2}+\dfrac{1}{(a+1)(a+2)}\dfrac{1}{2}=\dfrac{1}{(a+1)(a+2)}$  But correct answer is $\dfrac{2}{(a+1)(a+2)}$. Where am I going wrong?


What does the hidden layer in a neural network compute?

I'm sure many people will respond with links to 'let me google that for you', so I want to say that I've tried to figure this out so please forgive my lack of understanding here, but I cannot figure out how the practical implementation of a neural network actually works.   I understand the input layer and how to normalize the data, I also understand the bias unit, but when it comes to the hidden layer, what the actual computation is in that layer, and how it maps to the output is just a little foggy. I've seen diagrams with question marks in the hidden layer, boolean functions like AND/OR/XOR, activation functions, and input nodes that map to all of the hidden units and input nodes that map to only a few hidden units each and so I just have a few questions on the practical aspect. Of course, a simple explanation of the entire neural network process like you would explain to a child, would be awesome.   What computations are done in the hidden layer?  How are those computations mapped to the output layer?   How does the ouput layer work? De-normalizing the data from the hidden layer?   Why are some layers in the input layer connected to the hidden layer and some are not?


Can you use a Bonus Action on a turn other than your own?

The rules for Bonus Actions (PHB, pg.189) state;  You can take only one bonus action on your turn...  Which to me can be read in two ways.  You can only take a bonus action if it is your turn. You can take only one bonus action on your turn but can take one or more on someone else's turn.  As an example, if I were to ready an attack action could I also use a bonus action for Two-Weapon Fighting when the trigger is met?


Showing the following coordinate rings are not isomorphic

How do I show that $\frac{k[x,y,z]}{\langle xz-y^2\rangle}$ is not isomorphic to $k[x,y,z]$? (I want to understand the coordinate ring of this surface) Is there a 'natural' evaluation map that realizes $\langle xz-y^2\rangle$ as its kernel?


Materials do not show in material preview mode

I'm kinda new to blender so don't know a lot, but I apply a material to my object I can't see it in material preview mode. It seems to just show a grey highlight. I've done some searching and my driver is up to date and I have the latest version of blender. I have a Radeon RX 560 graphics card. I just have no idea why I can't see my materials. Any help is appreciated thanks. This is what it looks like in material preview mode.


Assume f and g are Riemann integrable on [0,1].  Determine if f(g(x)) is Riemann integrable.  Find a counterexample if you answered no. I'm pretty sure that they aren't Riemann integrable but I'm having trouble coming up with a counterexample.


To find product $\cos{\theta}\cos{2\theta}\cos{3\theta}...\cos{999\theta}$

How to find out value of product   $$\cos{\theta}\cos{2\theta}\cos{3\theta}...\cos{999\theta}$$ where   $\theta=\frac{2\pi}{1999}$  i tried to multiply and divide by sin\theta to convert to sin2A, but couldnot do it. i would like to know many methods, if possible, to do this question  thanks


&> is running the command in the background instead of redirecting stdout/err?

I'm looking at a pre-commit git hook script. Here's the part I'm struggling with: #!/bin/sh ... testcmd="go test -race ${godirs} " failed= ${testcmd} &> /dev/null # problematic line if [ $? -ne 0 ] ; then     failed=1     ${testcmd} fi  godirs is a list of folders built earlier in the script. When I run this, I see the output of testcmd running slightly delayed (it prints over my next prompt). It seems that &> isn't redirecting 2 outputs. It's running the go test in the background and not even redirecting output. I'm no good at shell scripting. I know I could rewrite it as > /dev/null 2> /dev/null but this is a learning opportunity. How can I fix this so I can still use &>?


Is there high-dimensional complex numbers?

Complex numbers are essentially 2-dimensional vectors with product defined such that the set is a field and extends real product. So, is there an analogous definition for 3, or higher, dimensional vectors such that the Euclidean space becomes a field also?


Do trees really get a large share of their mass from the carbon in the air?

I remember hearing that trees and other plants actually obtain a large amount of their mass from the carbon floating in the air, not the ground beneath them. Does the makeup of air actually contain enough carbon to support this theory, and is a tree's surface area actually large enough to obtain the amount of carbon it needs directly from the air?


Added: The Wilson reflection formula is natural tool but how to simplify for case $n = 4$ ? $2 [(p-3)!-\frac{(p-1)}{2}] = (p-3)!2! - (p-1) = (p-3)!2! +1 -p$. We see easily this satisfy $\mod p = 0$. Let's go: $(p-4)!3! - (p+1) = 6 [(p-4)!-\frac{(p+1)}{6}]$. Then, the new term should be $(p-4)!-\frac{(p+1)}{6}$. But $p+1$ is not always divisible by 6. The aim is to keep $(p-n)!$ free but is it unavoidable get rid of 3 in $(p-4)! 3 -\frac{(p+1)}{2}$ ? For example by subtractor $-k\frac{(p+1)}{2}$ ? -- original question Let $p$ be a prime and $p > n$ (sequencer) and for all the cases: $(p-n)!+1 \mod p = 0$, when $n=1$ $(p-n)!-1 \mod p = 0$, when $n=2$ $(p-n)!-\frac{(p-1)}{2} \mod p = 0$, when $n=3$ ... How to find the next step? Is $(p-n)!$ part based on $n=4$ or $n=5$ i.e. is it necessary for $n$ being a prime too?


Is it OK to only ask questions? What is the percentage of users always asking questions, and users always answering?

Ethics:  I started really programming 94 days using Mathematica. I learned with 2 friends and SO. I asked 74 questions yet all answered with generosity.   Sometimes I feel guilty only "asking". Then I thought that it depends on what others do.    Data:  I would be greatly interested to see some data of users behavior in that regard. From always asking to always answering, how are users distributed? This, along with data on time spent on SO, votes attributed, etc.  I would then like to see how that compare to Wikipedia Editors/Readers statistics.


Skin doesn't change after I edit and upload it

Half of my custom skin doesn't change when I edit it and save and upload it and it's frustrating because I'm just trying to make that half black... Can anyone help me out? It's only the legs and arms that aren't turning black when I want them to...  I'm using 1.7.10, but it let me change my skin before but not now, so it's just weird.


Can my familiar use a Ring of Spell Storing?

Can the familiar options from the Pact of the Chain warlock (quasit, imp, sprite, pseudodragon) attune with a ring of spell storing?  If so, can I cast a spell requiring concentration into the ring and then have the familiar maintain concentration on the spell?


I just ran across this, and I'm curious about whether it can be replicated in TeX...    Ideally one would have the spiral getting tighter and tighter as one got to the centre, as in    I know TikZ has the ability to fit text along a path, but I'm not sure how one might make text get smaller and smaller.  The closest I can find is , but that uses manually inserted font commands.  Edit: I got what I wanted using mwibrow's answer:


I am making a website and am confused as I don't know where to place the RSS button. Considering this is my website:   Should I place the RSS button only on post pages? Or should I place it throughout the website? I'd like to clarify that I know where to place the RSS button in terms of layout(planning to place it on the top right corner), I'm asking where is it deemed useful and not annoying?


Is the first hyphen in "Anti- and pro-American", "bi- and tri-monthy", "country- and state-specific" correct?

Those prefixes "Anti", "bi" etc would look odd as separate words, but then, even complete words like "country" or "state" ending with a dangling hyphen look odd. So what is the correct rule for this? Should I play safe and use it like "Anti-American and pro-American"? Please suggest the correct way to do it. Wikipedia article on English hyphens was of little help over this.


Comparing last character of string not working in Android studio

I am making an android app for easier time encoding, I programmed it so that whenever I put numbers it outputs time in A.M. and if I put a "p" at the end of those numbers it adds a P.M. at the end.  sat_amin.setOnEditorActionListener(new TextView.OnEditorActionListener() {         @Override         public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {             EditText sat_amin = (EditText) findViewById(R.id.asd);             TextView dsa = (TextView) findViewById(R.id.dsa);             String satamin = sat_amin.getText().toString();             int satamln = satamin.length();             String last = satamin.substring(satamin.length() - 1);             String p = "p";              switch(satamln) {                 case 1:                     sat_amin.setText("12:0" + satamin + " AM");                     break;                  case 2:                     if (last == p) {                         sat_amin.setText("12:0" + satamin + " PM");                     } else {                         sat_amin.setText("12:" + satamin + " AM");                     }                     break;                  case 3:                     if (last == p) {                         sat_amin.setText("12:" + satamin + " PM");                     } else {                         sat_amin.setText("0" + satamin.substring(0, 1) + ":" + satamin.substring(1) + " AM");                     }                     break;                  case 4:                     if (last == p) {                         sat_amin.setText("0" + satamin.substring(0, 1) + ":" + satamin.substring(1, 3) + " PM");                     } else {                         sat_amin.setText(satamin.substring(0, 2) + ":" + satamin.substring(2) + " AM");                     }                     break;                  case 5:                     if (last == p) {                         sat_amin.setText(satamin.substring(0, 2) + ":" + satamin.substring(2, 4) + " PM");                     } else {                         sat_amin.setText(satamin.substring(0, 1) + ":" + satamin.substring(1, 3) + ":" + satamin.substring(3, 5) + " AM");                     }                     break;                  default:                     sat_amin.setText("");                     break;             }                return false;         }     });   When I run the app the AM part of the code works just fine, but when I add a "p" it doesn't get compared in the if statement and the "p" gets outputted as if the whole string didn't have a "p" in the end.


Let's say there are   List<string> a1 = new List<string>();  List<string> a2 = new List<string>();   Is there way to do like this?  if (a1 == a2)  {  }


Gender neutral singular “they” in the first person singular

Can I use they in the following fashion when referring to oneself?     [Name] is a Web Developer at [company Name]. They holds a B.S. in Computer Science.    The emphasis here is when one tries to refer to themself without using she/he or her/him.      [Name] is a Web Developer at [company Name]. They hold a B.S. in Computer Science.    Turns it into an Illeism and sounds somewhat pompous.   Is there any way to use they in a singular form to refer to oneself? Something along the lines of      Name is a Web Developer at companyName. Xe holds a B.S. in Computer Science.   but that is more recognized.


Will a site URL with repeating keywords get penalized by search engines?

I have an URL structure like the following:     sitename.com/cellphone/nokia/galaxy-5678-nokia-cellphone-from-abc/   For more example:     sitename.com/cellphone/motorolla/new-motorolla-gta800-cellphone-from-zxy/   The directory structure is like the cellphone is the main directory of the module and the words like Motorolla and Nokia are subdirectories which are categories and then comes the title of the cellphone.  Here the word cellphone and Nokia in the first link and cellphone and Motorolla in the second link are repeated.  Is it any kind of keyword stuffing? will it be penalized by Google?


How to check if an email address exists without sending an email?

I have come across this .  Has anyone tried anything similar or does it work for you? Can you tell if an email customer / user enters is correct & exists?


TextView doesn't show the translated text parsed from the JSON Object

I'm trying to parse the json object using Google Cloud Translation API but the translated text did not show in my TextView. I'm not even sure whether my parsing was done correctly but there were no errors shown indicating that my parsing went wrong. I thought I did not have connection to the internet as I could not surf the net using chrome through my Android Emulator but I have already added the INTERNET permission in my Android Manifest file.   Below is my "TRANSLATE" button to show the parsed JSON Object in TextView.  //Button to translate         translatebutton = (Button) view.findViewById(R.id.translatebutton);          mQueue = Volley.newRequestQueue(getActivity().getApplicationContext());          translatebutton.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 textView = (TextView) getView().findViewById(R.id.translatedtext);                 texttotranslate = (EditText) getView().findViewById(R.id.translatetextinput);                  jsonParse();              }         });    Below is the code for the jsonParse() function.  private void jsonParse () { String url = "https://translation.googleapis.com/language/translate/v2?key=APIKEY&q=cheese&target=es&source=en";      JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {         @Override         public void onResponse(JSONObject response) {             try {                 JSONArray jsonArray = response.getJSONArray("translations");                  for (int i = 0;  i < jsonArray.length(); i++ ) {                     JSONObject translations = jsonArray.getJSONObject(i);                      String translatedText = translations.getString("translatedText");                      textView.append(translatedText);                 }             } catch (JSONException e) {                 e.printStackTrace();             }          }     }, new Response.ErrorListener() {         @Override         public void onErrorResponse(VolleyError error) {             error.printStackTrace();         }     });      mQueue.add(request); }   Below is the JsonObject I'm trying to parse. Did I parse it wrongly?  {       "data": {         "translations": [           {             "translatedText": "queso"       }     ]   } }   Below is the logcat after I clicked on the "TRANSLATE" button. I have already added the INTERNET permission in my Android Manifest file if that helps.       09-26 21:39:56.086 19811-19811/project.myapplication W/System.err: org.json.JSONException: No value for translations 09-26 21:39:56.088 19811-19811/project.myapplication W/System.err:     at org.json.JSONObject.get(JSONObject.java:392)         at org.json.JSONObject.getJSONArray(JSONObject.java:587)         at project.myapplication.Translator$3.onResponse(Translator.java:139)         at project.myapplication.Translator$3.onResponse(Translator.java:135)         at com.android.volley.toolbox.JsonRequest.deliverResponse(JsonRequest.java:65)         at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)         at android.os.Handler.handleCallback(Handler.java:790)         at android.os.Handler.dispatchMessage(Handler.java:99)         at android.os.Looper.loop(Looper.java:164)         at android.app.ActivityThread.main(ActivityThread.java:6494)         at java.lang.reflect.Method.invoke(Native Method) 09-26 21:39:56.089 19811-19811/project.myapplication W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)


What is the minimum number of data points required for kernel density estimation?

What is the minimum number of data points required for a kernel density estimation to be considered non-misleading/acceptable/adequate?  Is there a some rule based on how dispersed the data is?  For example, if the inter-quartile range is "small enough", do you need less points than if the inter-quartile range is "larger"?  Alternatively, you may have encountered a situation where a certain size of dataset was "enough" or "not enough" and can share the reasons why KDE worked/didn't work in that specific case?  Criteria to assess accuracy:  If you had two samplesfrom the same population and you do a KDE on each one, then the two resulting densities are very similar.


How to set the number of neurons and layers in neural networks

I am a beginner to neural networks and have had trouble grasping two concepts:   How does one decide the number of middle layers a given neural network have? 1 vs. 10 or whatever. How does one decide the number of neurons in each middle layer? Is it recommended having an equal number of neurons in each middle layer or does it vary with the application?


I'm so confused with GNU sed, POSIX sed, and BSD sed's myriad of options.  How do I replace literal \n with the newline character using these three sed types?


I've always found it a bit peculiar that Apple's marketing refers to iPhone without an article. There is a question  which discusses why it feels more natural to use an article, but I'm wondering what the actual grammatical status of the word "iPhone" would be.       Buy iPhone at your favorite Apple Retail Store.   My initial impression after reading this would be to interpret "iPhone" as its own plural, like "deer".     Now iPhone is even bigger on productivity.   Now it can't be exactly like "deer", as you would expect to see "iPhone are", "the iPhone" or "an iPhone".  So looking at both examples together, my next thought would be that perhaps "iPhone" is a mass noun, like "data". Substituting "data" in either sentence seems acceptable.     ...we could have sold many more iPhones...   Now they've made "iPhone" plural. I'm not sure how you could fit "data" into this sentence other than the slightly odd "datums".     The new iPhones include iOS 8...   ...and now "iPhone" finally has an article. The only word I can think of that can go in all of these sentences now is "coffee", but I'm not sure this is actually the same. "Coffee" seems to have the odd property that "a coffee" is different from "coffee", "a coffee" always means "some coffee in a vessel", and "coffees" is always the plural of the "a coffee" form even if you omit the article (as in "Coffees are expensive.", which is distinct from "Coffee is expensive.").    (All quotes were taken from official Apple correspondence,  and .)  So what category does the noun "iPhone" fall under? Is it equivalent to "coffee"? (And if so, what exactly is going on with the different forms of "coffee"?)


When I shutdown/restart  get a black (shell-like) full-screen with some large text saying stuff like:  ubuntu 10.10 [129.171175] Restarting system. eco nds ... [OK] ... Unmounting weak filesystems ... [OK] will now restart   Then nothing happens and I have to physically hit the reset button.


How can we set custom image as background for desktop and login screen

If we select default wallpapers in Ubuntu as desktop background image it will automatically set the same image as login screen. But if we use a custom image as a wallpaper it will only change the desktop background but the login screnn will change to a default wallpaper. Why this is happening and how can we set a custom image as background for both desktop and login screen


Wacom issues with the Fujitsu T4220 & T4210 Tablet PC

Could someone take a look at the wacom issues? aparently I am not the only one having these issues but on my Fujitsu T4220 & T4210 tablet PCs I can't unplug the wacom to reset it. Everything works great if not a bit slow; but when it comes back on from suspend the OS says there is no tablet device, I have to reboot for it to see the wacom tablet again. It is slightly annoying and has caused me to reconsider going back to ubuntu 12.04 (wacom works perfect on there) or switching to another distro after using ubuntu for several years now.


How secure is my contact form using JS fetch and PHPMailer?

I'm currently building a small website with no real backend using vue-cli. As I'm a real potatoe when it comes to php (and backend in general), I was wondering how secure was my contact form on this website, and what to do if it's not secure enough. To summarize, I'm making a fetch() call from my vue app to a mail.php file on my server. This mail.php file uses PHPMailer to send an email from one of my domain's email addresses to another of my addresses. And up to now it works fine. Here is my JS related to sending mail :   sendMail () {     this.sendRequest()       .then(r => {         if (r.mailSent === 'ok') {           // mail sent callback         }       })   },   async sendRequest () {     const response = await fetch('./mail.php', {       method: 'post',       headers: {         'content-type': 'application/json'       },       body: JSON.stringify({         subject: 'Message de ' + this.firstNameInput + ' ' + this.lastNameInput + ' via mysite.com',         body: '' +           '' +           '
De : ' + this.firstNameInput + ' ' + this.lastNameInput + '
' +           '
Email : ' + this.mailInput + '
' +           '
Message :
' + this.messageInput.replace(/\n/g, '
') + '
' +           '' +           '',         altBody: 'De : ' + this.firstNameInput + ' ' + this.lastNameInput + ' /// Email : ' + this.mailInput + ' /// Message :' + this.messageInput       })     })     return response.json()   }  And here is the content of my mail.php file : <?php  use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception;  require './PHPMailer/src/Exception.php'; require './PHPMailer/src/PHPMailer.php'; require './PHPMailer/src/SMTP.php';  header('Content-Type: application/json');  include './mailSettings.php'; // contains $site, $mailFrom, $mailTo, $senderName and $recipientName  if(@isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] == $site) {   $contentType = isset($_SERVER["CONTENT_TYPE"]) ?trim($_SERVER["CONTENT_TYPE"]) : '';    if ($contentType === "application/json") {     $content = stripslashes(trim(file_get_contents("php://input")));     $decoded = json_decode($content, true);      if(!is_array($decoded)) {       echo '{"status":"error"}';     } else {       $mail = new PHPMailer(TRUE);       try {         $mail->setFrom($mailFrom, $senderName);         $mail->addAddress($mailTo, $recipientName);         $mail->Subject = $decoded['subject'];         $mail->isHTML(TRUE);         $mail->Body = $decoded['body'];         $mail->AltBody = $decoded['altBody'];         $mail->send();       }       catch (Exception $e) {         echo $e->errorMessage();       }       catch (\Exception $e) {         echo $e->getMessage();       }       echo '{ "mailSent": "ok"}';     }   } else {     echo '{"status":"error"}';   } } else {   echo '{"status":"no call accepted from this adress"}'; } ?>  I guessed that I still have stuff to do in order to make this secure, but can you guys help me find out what and why ?


<50 reputation users can't delete comments that were posted on their behalf

Some preface: I have an alternate account that I'm using to gain rep in order to help test/build bots for the  community on stackoverflow. Bot accounts are essentially users, and they need 20 rep to talk in chat, and 50 in order to add comments.  On this account (with 23 rep), I flagged a question as a duplicate of the wrong post by accident:        When I retracted the duplicate flag, I noticed that the comment was not removed. When I attempted to remove it, there was no [x] icon to the right of the post, and I had no recourse other than to leave the comment up (Which was 100% a wrong duplicate for that post). Additionally, I couldn't even flag it for mod attention, because it was my comment!


how to stop coldfusion from adding single quotes in string

I have a dynamic sql statement that I want to fire off to SQL Server.  The base of the query is in a variable called query:  <cfset query ="select              ParcelID,             LTRIM(IIF(AddNum IS NOT NULL, ' ' + AddNum, '') + IIF(AddDir IS NOT NULL, ' ' + AddDir, '')  + ' ' + AddStreet + IIF(AddUnitNum IS NOT NULL, ' ' + AddUnitNum, '') + ' ' + AddCity + ', ' + AddState + ' ' + AddZip + IIF(AddZip4 IS NOT NULL, '-'+ AddZip4, '')) as Address         from PropertyParameters         where AddZip = '#URL.zip#'">   My problem is the areas where you see quote-space-quote plus field (ie.  ' ' + AddNum), the single quote adds more single quotes, and sends the following to sql server:  select ParcelID, LTRIM(IIF(AddNum IS NOT NULL, '' '' + AddNum, '''') + IIF(AddDir IS NOT NULL, '' '' + AddDir, '''')  + '' '' + AddStreet + IIF(AddUnitNum IS NOT NULL, '' '' + AddUnitNum, '') + '' '' + AddCity + '', '' + AddState + '' '' + AddZip + IIF(AddZip4 IS NOT NULL, ''-''+ AddZip4, '')) as Address from PropertyParameters where AddZip = 20001 and Score > 70;   as you can see, the quotes are doubled and fails in sql server. How do I overcome this?  Thanks.  UPDATE 1: I tried escaping the quote according to coldfusion instructions ('' and "") and that still didn't work. Thanks


sometimes, apt-cache give "-dev" package, for example:  libdianewcanvas2     - a gtk+2 vectorial canvas with extra features libdianewcanvas2-dev - a gtk+2 vectorial canvas with extra features   I am wondering when should I install the "*-dev" package? what is the different between libdianewcanvas2 and libdianewcanvas2-dev?


Using Unicode Zero Width Spaces allows all space comments

If you comment something on Stack Overflow, you need to enter at least 15 characters, and you can't post a comment which just contain spaces.  But if you type in zero-width spaces it will work. A zero-width space can be translated with &#8203; in HTML.  For better understanding, I have added a zero-width space comment to my question.


I'm trying to make a soundboard and I wanted to add a class to make it run easier and I get more points with a class if I use it.  However I get a NullPointerException and I would like to know why the problem happened. If someone can explain it to me that would be perfect.  The NullPointerException occurs when calling `sound1.run().  import ddf.minim.*; import ddf.minim.analysis.*; import ddf.minim.effects.*; import ddf.minim.signals.*; import ddf.minim.spi.*; import ddf.minim.ugens.*;  PImage soundboard; PImage [] array= new PImage[0];  sound sound1;  Minim minim;  AudioPlayer player; Boolean player1= false;  void setup() {     size(451,385);     minim = new Minim(this);     player = minim.loadFile("deadmau5.mp3");     soundboard = loadImage("sb.png"); }  void draw() {     image(soundboard,1,CENTER);     sound1.run(); }  void mousePressed() {     player1=!player1;     if (player1) {         player.play();     } else {         player.pause();     player.rewind();     } }  class sound {      float x = 1;     float y = 1;      void run() {         draw();     }      void draw() {         rect(x,y,100,100);          }   }     One more question that I must ask: when I rewrite code, sometimes it overwrites on my current code and I want to know how to stop that, even if I use space it still overwrites the code.   Thank you guys!


How prove this $\sum_{1\le k\le n-1,\gcd{(k,n)}=1}k=\frac{1}{2}n\varphi{(n)}$

Let postive integer $n$ is not a power of a prime. Prove that $$\sum_{1\le k\le n-1,\gcd{(k,n)}=1}k=\dfrac{1}{2}n\varphi{(n)}\tag{1}$$ where $\varphi{(n)}$ is the Euler totient function  I kown $$\sum_{1\le k\le n-1,\gcd{(k,n)}=1}=\varphi{(n)}$$But I can't prove question $(1)$


jQuery autocomplete tagging plug-in like StackOverflow's input tags?

What solutions accomplish the same auto-completion that SO uses for entering tags?  There are plugins that can handle one word but I haven't seen any that handle multiple words.


Can I download apps without having an apple id?

Is it possible to download apps on iPhone 4 without creating an Apple ID ?


Paramiko SSHClient can't execute the whole shell script on remote computer

I would like to execute remote Bash script using Python script on local computer. Bash script on remote computer # script.sh     #!/bin/bash  echo "... Options ..." echo "  1) Option 1" echo "  2) Option 2"  read -p "Enter [1/2] : " n  case $n in   1) echo "Option 1 selected";;   2) echo "Option 2 selected";;   *) echo "Invalid option";; esac  Python script on local computer # script.py import sys from paramiko import SSHClient  hostname = '10.0.0.1' username = 'u' password = 'p'  client = SSHClient() client.load_system_host_keys() client.connect(hostname, username=username, password=password)  stdin, stdout, stderr = client.exec_command('./script.sh')  for line in stdout:     sys.stdout.write(line)  I've no issue executing script.sh on remote computer. remote@computer:~$ ./script.sh  ... Options ...   1) Option 1   2) Option 2 Enter [1/2] : 1 Option 1 selected remote@computer:~$   The problem is when I try with Python script on local computer, the script seems to be hang. I don't even see Enter [1/2] :  line been executed. local@computer:~$ python script.py  ... Options ...   1) Option 1   2) Option 2  What's wrong in this code? Desired Output local@computer:~$ python script.py  ... Options ...   1) Option 1   2) Option 2 Enter [1/2] : 1 Option 1 selected local@computer:~$


Where can I get the list of Badges by points , so that I can see what next badge I am going to get

Where is the list of badges sorted by points earned, so that I can see what next badge I am going to get?  Is there any list like this?


User is not in the sudoers file.The incident will be reported

I have just set up a Remote Desktop connection on Ubuntu LTS server and whenever I tries to install something a window prompts and asks for a password. I have tried the password but it’s not accepting it. I don't know what password it is asking for but It's not the one that I have set. I tried looking on the Google and got some ways to resolve it but as soon as I follow it in the terminal I get another error stating User is not in the sudoers file. The incident will be reported. Then I looked on Internet to solve it but then they they say to write su -s in the terminal but then I get the error su:Authentication failure.


Rest API to authenticate with basic username and password

I want to expose my API to an external system, and I want to authenticate the user by only username and password. I don't want to use username password OAuth flow while authenticating the user. Can we achieve this?


I create an user using    $user_id = wp_create_user($username, $password, $email);   After creating the user I want them to auto login and so according to , I have added the following code in my functions.php.   function auto_login_new_user( $user_id ) {     wp_set_current_user($user_id);     wp_set_auth_cookie($user_id);     $user = get_user_by( 'id', $user_id );     do_action( 'wp_login', $user->user_login );//`[Codex Ref.][1]     wp_redirect( home_url() ); // You can change home_url() to the specific URL,such as "wp_redirect( 'http://www.wpcoke.com' )";     exit; } add_action( 'user_register', 'auto_login_new_user' );   But as expected, the following warning popped up.   Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/vuewordpress/wp-includes/link-template.php:3840) in /opt/lampp/htdocs/vuewordpress/wp-includes/pluggable.php on line 928   How do I get rid off this and redirect the user on the same page from they try to sign up?  I understand one thing the I need to run the code before the header is written. May be I need to somehow hook this action in init. But I dont know how to do it.   Any help is highly appreciable!!


How can I keep light mode for Google Chrome while using dark mode in Mojave?

I've just got my Google Chrome updated to Version 73.0.3683.86 and run it on  macOS Mojave 10.14.3 with dark mode set.   I prefer to use Chrome in light mode with some custom themes.   Can I revert Chrome back to the light mode in spite of Mojave operating in dark mode?


Join two files, adding values in certain columns

How can I add another 2 values after matching the values from 2 columns in another file just like VLOOKUP?  Sample below. Value in column 6 & 7 from file1, when matched with column 1 & 2 from file2, will add column 9 & 10 in file1 with the value of column 3 & 4 from file2.  file1.txt  1 1 1 1 1 5 9 1  2 2 2 2 2 7 8 2  3 3 3 3 3 7 7 3  4 4 4 4 4 8 6 4   file2.txt  5 9 A B  8 6 E F  7 7 G H  7 8 C D   output.txt  1 1 1 1 1 5 9 1 A B  2 2 2 2 2 7 8 2 C D  3 3 3 3 3 7 7 3 G H  4 4 4 4 4 8 6 4 E F   Thanks,


How do I compute the integration for $a>0$,   $$ \int_0^\pi \frac{x\sin x}{1-2a\cos x+a^2}dx? $$  I want to find a complex function and integrate by the .


Remove tag in question title for logged-in users

We all hate the tags in the html page title, but they seem to be necessary for SEO: . Scraper sites used to destroy stackoverflow in the Google rankings.  However, as it looks like we're stuck with this, this seems like a prime candidate to remove for logged-in users.  This would do away with the annoying problem of having the tags in the title and would not affect the SEO rating, because Google would still see the same page as before and logged-in users would have a much nicer experience.


I saw the  the other day and was curious why the sets were wrapped in an extra level of singleton. It might be to handle urelements? I'm not sure. $$ (a,b) \;\;\text{is defined as}\;\; \{\{\{a\}, \varnothing\}, \{\{b\}\}\} $$ Does $\{\{a\}, \{b, \varnothing\}\}$ work as a definition of an ordered pair? This is a shorter version of a Wiener pair with the $\varnothing$ moved to the second element for convenience. Here is my attempt to prove it. Let $\pi_2(p)$ be equal to $\cup \{\cup z : z \in p \land |z| = 2\}$. Note that if the second element of $(a, b)$ is $\varnothing$, then $\{\{a\}, \{\varnothing, \varnothing\}\}$ will contain no 2-element sets. Let $\pi_1(p)$ be equal to $\cup \{\cup z : z \in p \land |z| = 1\}$. If the second and first element are both $\varnothing$, then $\pi_1$ returns $\varnothing$. If just the second element is $\varnothing$, then there are two singletons, but $ (\cup \{a\}) \cup (\cup \{ \varnothing, \varnothing \}) $ is $a$. If neither $a$ nor $b$ are $\varnothing$, then there's only one singleton. Since we can defined both $\pi_1$ and $\pi_2$, this means that this definition of an ordered pair satisfies the required properties.


Disk Images no longer show up in Finder's Sidebar

I've been dealing with an issue for a very long time, I feel like it used to be a problem randomly, but at least for the last few months it's persistent. The Finder no longer lists mounted Disk Images (.dmg files) in the sidebar. Not for DMGs, nor external hard drives / external media.  The volumes are listed in Disk Utility, and I have resorted to using that to gracefully unmount the disk image. When a volume is mounted, it is possible to access it by it's /Volumes/<Volume Name> path.    In this screenshot you see Finder's Sidebar preferences. You can see that I have a DMG for Clementine open, and Disk Utility confirms that. But the volume isn't showing up on the sidebar. You can also see that the Devices list is expanded, listing my built in volume.  I've done some light searching of options to see if it could be controlled by a plist defaults setting, but I haven't found anything yet.  Why aren't mounted volumes showing up on the sidebar? How can I restore them in the list?  This problem began under Mavericks, and has persisted in Yosemite.


How do I remove the some parts of a file name for many files in Windows 7 using batch script?

I have some jsp file which need to rename. it has _h5 prefix. SO i need to remove that _h5 and make the file.  ex: Account_h5.jsp to Account.jsp


I deleted package 'python3' on Ubuntu and I have lost dashboard, terminal and Unity. Help me to restore my data please

I have uninstalled python3 via:  apt-get remove python   I lost the dashboard and terminal. Even the desktop is blank. Also the top bar which shows time and other setting options are gone. Basically I can see my desktop wallpaper when I open my laptop.   Whenever I open my laptop it shows following before showing the login. However, I can access the Ubuntu advanced options. I need to restore my data because it has my college projects.


Does awarding bounties to a feature-request actually work (i.e. change prioritization)?

So, I've noticed that in some instances, a heavily desired feature or description of an implementation will, here in meta.stackoverflow, be awarded bounties.  Presumably, the desire is to communicate to the Stack Overflow development team (and/or the community managers who lobby on our behalf) the importance of said feature to the users' well-being and happiness.  My question is simple: Does it work?  And by "work" I mean, does it actually change the prioritization of a feature request.  I am not interested in the "rightness" or "wrongness" of the practice.  I am curious about its effectiveness.  From a process perspective, is there any feedback mechanism that alerts devs to bounties awarded on feature requests.  Obviously, there is overlap between the readers of this site and the devs.  But:   Are the developers actually influenced by the bounties?   Is there any correlation between a bounty and the attention which those features are given?   Are developers even notified when a bounty is awarded on a feature request, or are the devs just responsible for checking it when they get around to it?   NOTE: This differs from  in that I am asking (a) if it is effective an (b) if there is a formal process in place for it.


Hyperlinking attribute in ArcGIS standalone tables

I have ArcGIS Desktop 10.0 and have created a 1:m relationship in a File GDB. The 1:m relationship joins a table containing a URL to a point geometry. Some points have more than one file hence the 1:m join. After successfully creating the relationship, I wanted to use the field in the table to open the Image. It seems however, that ArcGIS stand-alone tables cannot use hyperlinks. Is there a workaround to this or can ArcGIS not use hyperlinks in stand-alone tables?


Where did the Old Republic get the military hardware for the First Battle of Geonosis?

So we've determined that there wasn't a  and that . We know that Yoda went and gathered the clones from Kamino. But where did they get all of the ships/supplies to transport and equip an entire army? We know they'd been working on a motion in the Senate, but I doubt they could've gotten funding to build all of those ships let alone had time to do so.


Prove that the product space is a metric space.

I have the following problem:  Let $(S,d)$ and $(T,e)$ be two metric spaces. Their product space has underlying set $$S\times T=\{(s,t)|s\in S,t\in T\}$$ and metric $$m\big((s_1,t_1),(s_2,t_2)\big)=\sqrt{(s_1-s_2)^2+(t_1-t_2)^2}.$$ Verify that $(S\times T,m)$ is a metric space.  As for proving the triangle inequality, I made the following attempt:  \begin{align*} m\big((s_1,t_1),(s_3,t_3)\big)&=\sqrt{(s_1-s_3)^2+(t_1-t_3)^2}\\ &=\sqrt{(s_1-s_2+s_2-s_3)^2+(t_1-t_2+t_2-t_3)^2}\\ &\leq\sqrt{(s_1-s_2+s_2-s_3)^2}+\sqrt{(t_1-t_2+t_2-t_3)^2}\\ &\leq\sqrt{(s_1-s_2)^2+(t_1-t_2)^2}+\sqrt{(s_2-s_3)^2+(t_2-t_3)^2}\\ &=m\big((s_1,t_1),(s_2,t_2)\big)+m\big((s_2,t_2),(s_3,t_3)\big) \end{align*}  My friend has told me that I am making too large of logical jumps in the "less than or equal to" steps. Can anyone point out my error?  I know I need to use the established metrics, but I don't know how.


I went into Live CD and activated Terminal.  Then, I typed gksu nautilus to gain temporary access to my root directory. Once the Manager window opened, I clicked on File System and navigated to the /etc/default/grub directory. I then double clicked on the Grub file to make changes to the TIMEOUT and TIMEOUT_QUIET.  I saved the file after I made the changes. Then I went back to the terminal mode and typed:  gksu update-grub   The error message I got was:     Can not find a device for / (is /dev mounted?)   I'm not sure what to do at this point. How can I run update-grub to update the changes? Thanks in advance for your help. Please be very detailed and specific with your response as I am totally new to this environment.


PhD Math/Applied Math for Fall 22 - asking for suggestions and advice

My background: Applying for Ph.D. Math or Applied Math International student, Ukraine, female. Undergrad Institution: junior year - 20ish in Math globally (US institution), first two years - community college(US)  Double majoring in Math/CompSci  GPA 4.0/4.0, same for college Some honors classes (hopefully will graduate with honors in math), but none graduate level. Research experience - currently doing a summer research program, should result in a paper with 3 co-authors (all undergrads too) Done a literature review in statistics with a pretty general topic. I am a rising senior, planning to apply this Fall for Ph.D.  I am interested in graph theory, but I haven't done much outside of it, so I might as well become interested in something else.   My questions is: What can I do to increase my chances of acceptance as of now if:  i. my schedule for the senior year is fixed, there is no way to change or add anything  ii. I'm an international student, so any paid/compensated job outside of my uni requires a working permit, which is unnecessarily hard to get?


I just want to ask a very elementary question.  When we introduce a "definition" in a first order logical system. For example when we say   Define: $Empty(x) \iff \not \exists y (y \in x) $   Isn't that definition itself an "axiom", call it a definitional axiom.  I'm asking this because the one place predicate symbol Empty() is actually new, it is not among the listed primitives of say Zermelo, which has only identity and membership as primitive symbols.   So when we are stating definitions are we in effect stating axioms? but instead of being about characterizing a primitive, they are definitional axioms giving a complete reference to a specified set of symbols in the system.  Is that correct?  Now if that is the case, then why we don't call it axiom when we state it, I mean why we don't say for example:  Definitional axiom 1) $Empty(x) \iff \not \exists y (y \in x)$  Zuhair


How can I search for *.odt or *.doc files that contain certain text in Ubuntu?  I use grep -rl <text to search for>, but this only works for text files.  Note: a solution that uses grep (such as searchmonkey) will not work because the *.doc or *.odt files have a special format.  From    Recoll wants to index my home directory, but I want to search *.odt files in specific directories; I couldn't figure out how to do that with this tool. Searchmonkey seems to be a GUI for grep, and as I mentioned, grep doesn't work on *.doc or *.odt files. Regexxer also has the same problem.   From    Like Recoll, I couldn't figure out how to search *.odt files in specific directories with this tool.


I just finished reading Robert M. Pirsig's Zen and the Art of Motorcycle Maintenance, which I understand to be a popular-yet-important book for those looking to enter the realm of philosophical discussion and discourse.   Of course, the text features the author's long endeavor to define "quality," specifically in a philosophical context.   After re-reading chapters 19 and 20, I'm still unsure if I have understood what Pirsig claims "quality" to be. At first, I thought he meant that "quality" is essentially "reality," including all the atoms in the universe (or multiverse, I suppose), both in actuality and in theory (i.e., hypothetical situations, along with thoughts, are also included in the realm of "quality"). In other words, I interpreted "quality" to be the general domain of discourse we humans perceive as the "universe."   I wasn't satisfied with my interpretation, albeit because of a person reason: why not just say "quality" is "reality"? And if that's the case, why do we need two words to describe one thing? I thought that there must be something more significant about Pirsig's claim.  , quality is broken down into two classes: the dynamic, and the static. "Dynamic" quality cannot be explicitly defined, unlike "static quality," which can be defined (in terms of increasing morality, static quality includes non-organic forms, organic forms, social forms, and then intellectual forms).   Here is my question: is Pirsig trying to say that "quality" is the opposite of chaos/disorder? After all, dynamic quality is allegedly the "force of change" in our universe, along the continuum of increasing morality. Is it also fair to say that static quality is the result of the dynamic quality?   I would think that in this paradigm, reality now becomes an environment (i.e., "platform"), while "quality" becomes the main driver of action/evolution in this environment.  If I have this entire understanding wrong, feel free to explain it further. I really just want to make sure I'm not misunderstanding Pirsig.


In HP and PoA, why didnt they take the Minister back in time with the time turner to validate Sirius' innocence?

I reread the series every summer, and still, there are many events that continue to upset me as if it's the first time I've read them. Like when Sirius had to flee because they had nothing to prove his innocence.  I considered the use of Veritaserum, but after reading something JK Rowling said about the potion not being sufficient evidence (because highly skilled wizards would be able to fight it or something like that, i ruled it out. and the pensieve, the pensieve is out of the picture too, as well as legilimency and occlumency because it's possible to create false memories and ideas.. as stated by Slughorn in HBP. But they could've taken the Minister with them back in time, so he could witness the conversation that took place in the shrieking shack. no meddling with time. or if that would be too risky, maybe they could've hidden somewhere by the trees to see, at least, that Pettigrew is still alive. maybe someone can show me that I'm missing something so I can put my mind to rest?


The definition for completeness is that if a statistic $s(x)$ is complete, we have that for every measurable $g$, $$E_\theta(g(s(x))) = 0\,, \ \forall\,\theta\ \Rightarrow\  g(s) = 0 \text{ a.s.}$$  I've heard that we can think of completeness as saying that if we wanted to estimate the zero function using a complete $s(x)$, among the class of all zero-unbiased functions of the statistic, the only one is one which takes value 0 almost surely. This seems like a bizarre notion--why would we want to estimate the zero function?  I've also heard that in estimating parameters of a probability model $P_\theta$, one does not need any more than a sufficient statistic. I heard that having any more than the sufficient statistic provides no additional information. How does this connect to the definition of completeness above (Basu's, maybe?) ?  Is there some better intuition for the (seemingly) bizarre condition above?


How to use a variable inside a RegEx pattern?

Usage of this code is to show only the last four digits of an input.  Here I want to replace this "(/.(?=.{4})/g, '*')" '4' with variable 'mask' . Something like that.  x.value = x.value.replace(/.(?=.{+mask+})/g, '*');   Any suggestion plz    function myFunction(mask) {     var x = document.getElementById("cc");     x.value = x.value.replace(/.(?=.{4})/g, '*'); } <input type="text" id="cc" onkeyup="myFunction(4)" style="text-align:right">


How to install program to all user accounts in Windows?

I have several accounts on my home PC. I want to install a program for all user accounts, not just the one I used to perform the installation. How do I go about doing this?  I installed a program from an admin account, but it doesn't show up in the other local accounts.  I was not able to find any documentation on how to do this.  I have Windows 8.1, if that matters.


Style the first word of a sentence with CSS

I'm trying to style the first word of a specific sentence using only CSS (i.e. I can't change the HTML). I feel that I'm close to the answer but I can't seem to get it right. The CSS selector I'm using is:  main > h2:nth-child(2)+p {   color: red; }   I can't post the HTML here cause it's not getting formatted right, but it can be found on this JSFiddle:   Thanks,  brld  Again: I cannot change the HTMl, or add any sort of Javascript.


How to check if object has property javascript?

I have this function:        function ddd(object) {         if (object.id !== null) {             //do something...         }      }   But I get this error:  Cannot read property 'id' of null   How can I check if object has property and to check the property value??


Cannot upgrade to Windows Anniversary Edition unless activated

It seems you cannot simply upgrade to the Windows Anniversary Edition unless you activate your windows before. Is there a workaround which allows the upgrade while delaying the activation?


How can I change my iPhone's camera's resolution?

I know that Android phones let you change camera resolution. How can I accomplish the same on iOS?


According to Quantum Field Theory, all 'particles' are oscillations in their own fields. And according to Vacuum Zero Point Energy and the Heisenberg Uncertainty Principle, these fields have fluctuations in time and can never have 'zero' energy. If we examine a sufficiently large amount of space, why don't we see particles occasionally being formed out of nowhere? Why don't we see random flashes of light in interstellar space because of the electromagnetic field getting enough energy to form a photon?


I've had many problems that I cannot seem to solve in my VM, and I've decided to just backup the important files from the guest (ubuntu) to the host (Windows 10) and reinstall.  I can access the terminal via recovery mode, but I cannot start the VM normally.  I had a shared folder between the host and guest, but ls -a does not show it.  How can I do this? Thank you very much.


I have a command block that teleports you to another place - it is permanently on (because of redstone), so whenever I get close to the command block, it teleports me - it is really annoying. How can I deactivate it?


Is the centripetal force a pseudo force?

So I'm having a bit of struggle understanding the origin of the centripetal force. Is the  a pseudo force? Somebody told me that both the centrifugal and the centripetal forces are pseudo forces. I get it for the centrifugal one, its acceleration comes from the change of direction every dt units of time of the velocity vector. But then, it seems to me that the centripetal force is quite real. The centripetal force being the one that cancels the centrifugal, is it the tension of a rope or the reaction of a wall (depending of the motion you re imagining)? Well Im a bit confused, thank you for reading and have a nice day!


How to track the number of tag wikis I edited?

I want to see the number of tag wiki that I edited till now. Also I want to see which are accepted and which are rejected with the detail of all those tags. How can I know that? Also I want to know the progress for Research Assisstant badge.


What does “would not have been possible had I remained” mean?

What does this mean?      I am sure this would not have been possible had I remained a typical Anglophone North American.   I have never heard that before and I really find it strange.  I deduce that it means      I am sure this would not have been possible if I kept remaining Anglophone North American.   But I might be wrong in this.


Can I use Hex (Spell) and Hexblade's Curse in 1 round

Is it possible to use both Hex (Spell) and Hexblade's Curse (Hex Blade ability) in 1 round of combat? These are both bonus actions. I expect if its possible you would use up your bonus and attack action for the round, leaving movement and reaction.  I do apologise if this is duplicated, I looked high and low for previous discussion on this.


Is there a good reason to use upper case for SQL keywords?

The default seems to be upper case, but is there really any reason to use upper case for keywords? I started using upper case because I was just trying to match what SQL Server gives me whenever I tried to create something, like a new stored procedure. But then, I felt terrible for my baby (5th) finger, that always needs to hold down the Shift button, so I stopped using upper case. Any reason why I should go back to upper case?  Edit: Thanks for the answers guys. I wasn't programming yet back in the days when  was king, so I wasn't aware of this. I'll stick with lower case from now on.


I need internationalized utility that does the same thing as tr: gets character from stream and substitutes it with a corresponding character. Not a particular case solution like lower-to-upper, but a general case solution is needed. Without gorillion piped sed calls if possible.  Note that tr does not work on Linux: it translates bytes, not characters. This fails with multibyte encodings.  $ tr --version | head -n 1 tr (GNU coreutils) 8.23 $ echo $LC_CTYPE en_US.UTF-8 $ echo 'Ångstrom' | tr Æ Œ          Ņngstrom


Appending content to file gives permission denied error

I am trying to append some config to another file like this  sudo cat config/add-this.yml >> ~/docker-compose.yml   via shell script. But trying this gives me a Permission denied error.  How can I simply append some content to another file?


What is the verb after "two of something"?

I came across the below sentence but it got me thinking why there's a singular verb after a plural.     Two shots of Vodka is what I would be happy with.


How to revert to tabbed overview in Chrome?

I recently updated my Chrome for Android (currently on v68) and noticed that tapping on the box icon (next to address bar) gives a tab list instead of SystemUI type overview that Chrome used to give. See the two images below for comparison.  I know that I can get that same view by swiping downwards from the address bar but I'm habitual of getting it from that box icon.   So what can I do to get back that view from that box without reverting to a previous version of Chrome and without switching to an another browser (unless it is Chrome based)?


How to create a Windows 10 bootable USB from installed Windows (not ISO)?

I have a laptop without CD/DVD came with Windows 10 installed. Windows can be re-installed from within the Windows, but what if I want to change my HDD or hardware failure or temporarily installing standalone linux (not dual boot)?  How can I create a bootable USB from which I can re-install my original Windows?  Note that I don't have an ISO file, just the original Windows installed on my laptop.  My question is simple, I just want to have an external backup to restore my Windows installation without relying on the main HDD.


I have imported what appears to be a clean SVG into Blender (works fine for 2D) but when I try to extrude it, I am seeing spikes appear. Can anyone tell me what is the issue and how I can fix it?  Many Thanks]


I am developing MDM solution for that I need to create several certificates. For that I have following this .  When I'm firing this command, I am getting this error.  openssl rsa -in key.pem -out private.key   Error:     unable to load Private Key   4713004652:error:09FFF06C:PEM routines:CRYPTO_internal:no start line:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-47.11.1/libressl-2.8/crypto/pem/pem_lib.c:684:Expecting: ANY PRIVATE KEY   could any one guide me, how to resolve this issue?


Could somebody explain to me where these two formulas come from as applications of the binomial theorem?  $$\sum_{k=0}^n {n \choose k}(-1)^kk^r=0$$ for non-negative integers $r\lt n$. And $$\sum_{k=0}^n {n \choose k}(-1)^kk^n=(-1)^nn!$$


Can a wizard delay choosing spells for a spell book when leveling?

Imagine you have enough experience to gain two levels as a wizard.   Instead of choosing lower level spells to add to your spell book - can you delay adding spells to your spell book until your next level gain?   The reason we ask is because we notice that the tables list wizards as having x known spells - but it does not specify which level of spells they are. When we roll up a 5th level wizard - do we need to sit down and figure out the match imagining and then simulating how many spells of each level that person would have seen - or can we just look at the list of spells and pick out the x number of spells that wizard would know?


Understanding terms in Length of Degree formula?

Online calculators such as  (view page source) use the below formulas to get meters per degree. I understand in general how distance per degree varies depending on latitude location, but I do not understand how that translates to the below. More specifically, where do the constants, the 3 "cos" terms in each formula, and coefficients (2, 4, 6; 3, and 5) for "lat" come from?      // Set up "Constants"     m1 = 111132.92;     // latitude calculation term 1     m2 = -559.82;       // latitude calculation term 2     m3 = 1.175;         // latitude calculation term 3     m4 = -0.0023;       // latitude calculation term 4     p1 = 111412.84;     // longitude calculation term 1     p2 = -93.5;         // longitude calculation term 2     p3 = 0.118;         // longitude calculation term 3      // Calculate the length of a degree of latitude and longitude in meters     latlen = m1 + (m2 * Math.cos(2 * lat)) + (m3 * Math.cos(4 * lat)) +             (m4 * Math.cos(6 * lat));     longlen = (p1 * Math.cos(lat)) + (p2 * Math.cos(3 * lat)) +                 (p3 * Math.cos(5 * lat));


phpmyadmin installed but the page not rendered correctly by php

I have fresh installed apache, php7, mysql, and phpmyadmin, but when I chekout the localhost/phpmyadmin, seems like the page doesn't render by php like this.  ddJSON( 'list', PMA_RecentFavoriteTable::getInstance('recent')->getHtmlList() ); exit; } if ($GLOBALS['PMA_Config']->isGitRevision()) { if (isset($_REQUEST['git_revision']) && $GLOBALS['is_ajax_request'] == true) { PMA_printGitRevision(); exit; } echo ' '; } // Handles some variables that may have been sent by the calling script $GLOBALS['db'] = ''; $GLOBALS['table'] = ''; $show_query = '1'; // Any message to display? if (! empty($message)) { echo PMA_Util::getMessage($message); unset($message); } $common_url_query = PMA_URL_getCommon(); $mysql_cur_user_and_host = ''; // when $server > 0, a server has been chosen so we can display // all MySQL-related information if ($server > 0) { include 'libraries/server_common.inc.php'; include 'libraries/StorageEngine.class.php'; // Use the verbose name of the server instead of the hostname // if a value is set $server_info = ''; if (! empty($cfg['Server']['verbose'])) { $server_info .= htmlspecialchars($cfg['Server']['verbose']); if ($GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ' ('; } } if ($GLOBALS['cfg']['ShowServerInfo'] || empty($cfg['Server']['verbose'])) { $server_info .= $GLOBALS['dbi']->getHostInfo(); } if (! empty($cfg['Server']['verbose']) && $GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ')'; } $mysql_cur_user_and_host = $GLOBALS['dbi']->fetchValue('SELECT USER();'); // should we add the port info here? $short_server_info = (!empty($GLOBALS['cfg']['Server']['verbose']) ? $GLOBALS['cfg']['Server']['verbose'] : $GLOBALS['cfg']['Server']['host']); } echo ' ' . "\n"; // Anchor for favorite tables synchronization. echo PMA_RecentFavoriteTable::getInstance('favorite')->getHtmlSyncFavoriteTables(); echo ' '; if ($server > 0 || count($cfg['Servers']) > 1 ) { if ($cfg['DBG']['demo']) { echo ' '; echo '   etc, when I tried to create file test on var/www/html/test.php it rendered as text as well, I follow the instruction from internet, install via apt-get and set the apache.conf, am I missing something?


import java.awt.EventQueue; import java.awt.Window;  import javax.swing.JFrame; import javax.swing.JButton; import java.awt.BorderLayout; import javax.swing.JLabel; import javax.swing.JTextField; import java.awt.event.ActionListener; import java.awt.event.ActionEvent;  public class batsmen {      private JFrame frame;     private JTextField textField;      /**      * Launch the application.      */     public static void main(String[] args) {         EventQueue.invokeLater(new Runnable() {             public void run() {                 try {                     batsmen window = new batsmen();                     window.frame.setVisible(true);                 } catch (Exception e) {                     e.printStackTrace();                 }             }         });     }      /**      * Create the application.      */     public batsmen() {         initialize();     }      /**      * Initialise the contents of the frame.      */     private void initialize() {         frame = new JFrame();         frame.setBounds(100, 100, 450, 300);         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         frame.getContentPane().setLayout(null);          JLabel lblClue = new JLabel("Clue 1:");         lblClue.setBounds(20, 6, 61, 16);         frame.getContentPane().add(lblClue);          JLabel lblNewLabel = new JLabel("He is the leading international run scorer of all time");         lblNewLabel.setBounds(48, 30, 375, 16);         frame.getContentPane().add(lblNewLabel);          JLabel lblClue_1 = new JLabel("Clue 2");         lblClue_1.setBounds(20, 69, 61, 16);         frame.getContentPane().add(lblClue_1);          JLabel lblHePlayedFor = new JLabel("He played for India");         lblHePlayedFor.setBounds(48, 94, 375, 16);         frame.getContentPane().add(lblHePlayedFor);          JLabel label = new JLabel("");         label.setBounds(20, 229, 403, 16);         frame.getContentPane().add(label);         frame.setVisible(true);          textField = new JTextField();           textField.setBounds(20, 191, 290, 26);         frame.getContentPane().add(textField);         textField.setColumns(10);          JLabel lblTakeAGuess = new JLabel("Take a Guess:");         lblTakeAGuess.setBounds(20, 163, 119, 16);         frame.getContentPane().add(lblTakeAGuess);          JButton btnNewButton = new JButton("Enter");         btnNewButton.addActionListener(new ActionListener() {             public void actionPerformed(ActionEvent e) {                 String answer = textField.getText();                 answer = answer.toLowerCase();                 if(answer == "sachin tendulkar") {                     label.setText("Correct");                 }else if (answer != "sachin tendulkar"){                     label.setText("Incorrect. The answer was Sachin Tendulkar");                 }             }         });         btnNewButton.setBounds(322, 191, 117, 29);         frame.getContentPane().add(btnNewButton);       }  }   The if statement does not seem to work as even if the correct answer is inputted, it displays "Incorrect. The answer was Sachin Tendulkar". I would appreciate any help greatly. I have checked and the String answer contains the correct answer, yet the program outputs "Incorrect!". This is extremely confusing and annoying. Once again, I would appreciate any help that you are able to give me. Thanks


Possible ways to relate to a selector by its id

How to relate to the following element in a .css file by its id :   <div class="wrapper" id="wrapper-Fruits & Vegetables"> </div>   Thanks in advance.


twice in the last week all of the light bulbs in my house (those that were turned on) burned out at the same time.  What would cause this and is my house safe to stay in.


Does a Dutch citizen need a visa to visit South Korea as a tourist?

I am a Dutch citizen and want to visit South Korea.  Do I need a visa?


Object goes same color as the world color

I don't remember changed any settings, I am using Blender for a few months now, but three days ago this is suddenly happen:   It's default cube, the material color goes same color as the world color. When I change material color it still that way, but when the world color it's changed, the cube also change. This when I render the cube I tried to load factory setting, re-installing Blender and update GPU Driver it didn't solve this :( Anyone have the soulutions? Thank you.


java Exception in thread "main" java.lang.NullPointerException error

I would like to display the flags as button using GUI. however, my code is not working, the expected output should look something like this  the images of the flag are saved in the same file with file names being "USA.png", "Spain.png" etc. this is the code i have now import java.util.*; import java.lang.*; import java.awt.*; import java.awt.event.*; import javax.swing.*;  class Olympic  {     private int NO;     private String country;     private double[] score;     private int rank;          public Olympic(String country)     {         this.country = country;     }          public Olympic (Olympic oly)     {         this(oly.country);     }          public int getRank()     {         return rank;     }          public String getName()     {         return country;     } }  class OlympicFrame extends JFrame {     private JButton[] jbArray = new JButton[12];          private final String[] countryArray = {"USA", "Spain", "China", "Japan", "Italy", "Germany",      "France", "Brazil", "Netherland", "Poland", "Russia", "Ukraine"};          private ArrayList<Olympic> alist = new ArrayList <Olympic> ();          //private JLabel rank = new JLabel();               public OlympicFrame()     {         super ("Olympic 2020");         setLayout (new GridLayout (4, 3));                  constructAList();                            for (int i = 0; i<jbArray.length; i++)         {             getContentPane().add(jbArray[i]);         }                   jbArray = new JButton [countryArray.length];                  for (int i = 0; i<jbArray.length; i++)         {             jbArray[i] = new JButton(alist.get(i).getName());             ImageIcon ic = new ImageIcon (alist.get(i).getName() +".png");                          jbArray[i].setIcon(ic);          }      }          private void constructAList()     {         for (int i = 0; i<countryArray.length; i++)         {             alist.add(new Olympic(countryArray[i]));         }     }       }  class aaa {     public static void main (String [] args)     {         OlympicFrame of = new OlympicFrame();         of.setSize (300, 100);         of.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);         of.setVisible (true);     } }  i have been receiving this error message Exception in thread "main" java.lang.NullPointerException         at java.awt.Container.addImpl(Container.java:1095)         at java.awt.Container.add(Container.java:419)         at OlympicFrame.<init>(ask.java:58)         at aaa.main(ask.java:90)


"which" command not work in shell script with #!/bin/bash but work with #!/bin/zsh

I have a sh file: #!/bin/bash echo $PATH date pwd which nano  First three lines work with both #!/bin/bash and #!/bin/zsh but I got a ./script.sh: line 5: which: command not found with bash, but zsh run the file just fine. Why? If I enter a bash shell from zsh by typing bash and then type type which I got: which is aliased to `_which'  But if I am in zsh and type bash -c "type which", I got: bash: line 0: type: which: not found


Objects appear in the viewport and preview render, but not in the outliner or final render

I don't understand what happened. Before when I saved the file it worked fine, but when I came back and reopened it, this problem started happening. (It is most visible with the character's eyes.)    The object is visible in the viewport, but it appears nowhere in the outliner. (Yes, I have scrolled down through the entire outliner to check.) The objects even appear in the preview render and work fine there,(Sorry I couldn't post more than 2 pictures.) but once I press F12 for the final render the objects completely disappear.    I am using cycles render. I am hoping someone might be able to help me, I have searched a lot, but have not been able to find an answer to my problem anywhere.


Many years ago I saw a Merlin's movie where he used a proverb something like this:     Is not the sword who makes the knight!!! ( this is not the correct sentence, but similar).   Could someone tell the me movie where he says this? Or perhaps point me some other "reference" (movie/book/etc..) where the similar meaning is used?  UPDATE #1  I don't think the specific movie I remember is the . The few bits and pieces I still remember tell me that this may be a "kids/teenager" movie, and perhaps with a "recent years story line" with some kind "Merlin" or the "kid" that travels time. I am really not sure. I think I saw this movie more than 15 years ago (the movie may be older).


On chess what exactly is the "En passant" trick?

I've heard of a trick called "En passant" but what does it mean?


For $p,q$ prime and $p \neq q$ show that $C_p \times C_q \cong C_{pq}$

Here are my thoughts so far:    $C_p = \langle x \mid x^p =e\rangle$ $C_q = \langle y \mid y^q =e\rangle$ $C_p \times C_q$ has elements of the form $(x^a,y^b)$ There are $p$ possible values for $x^a$ and $q$ possible values for $y^b$. So there are $pq$ possible elements in $C_p \times C_q$. $C_{pq} = \langle z\mid z^{pq} = e\rangle$ and there are $pq$ elements in this group. For an isomorphism from $C_p \times C_q$ to $C_{pq}$ we send $(e,e)$ to $e$ to ensure that the identities are mapped to each other. However, I'm not sure how to define an isomorphism for the other elements.


I have been trying to set a 301 redirect from a non www to a www domain since yesterday but it only cause problems on my site. I first tried it from the control panel of the website, then by modifying the .htaccess file with the following:  Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^example.com [nc] rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]   My site is based on wordpress, the first problem that occurred was that I could not access my backend anymore… when I was trying to log in the page would just reload itself and then there was an endless loop and the whole site was unaccessible. After removing these few lines, everything was fine.


Should I include a citation every time I refer to the same thing from the same publication?

In my dissertation, I compare my results to the ABC model presented by John Doe.  It seems excessive to include a reference every time I have a statement such as,      Compared to ABC, our results show a much larger size distribution.   Unlike the related question, , in my situation, I am not referencing new information about the model contained in the publication describing the model; I am just referring to the model.  I am inclined to only include a reference the first time I introduce the ABC model. Should I instead include a reference every time I refer to it?    My real issue is that it seems appropriate to include a citation for some of the references but at some point it will become excessive. For example, if I only refer to the DEF model in my introduction and conclusion, but the ABC model 50 times throughout the text, do I only reference each one once, or reference both of them every time.


Execute a large SQL script (with GO commands)

I need to execute a large set of SQL statements (creating a bunch of tables, views and stored procedures) from within a C# program.  These statements need to be separated by GO statements, but SqlCommand.ExecuteNonQuery() does not like GO statements. My solution, which I suppose I'll post for reference, was to split the SQL string on GO lines, and execute each batch separately.  Is there an easier/better way?


Prove that the average of iid Gaussian random variables is Gaussian

Given $x_1, \ldots, x_N$, independent and all distributed as a   Gaussian with mean $\mu$ and variance $\sigma^2$. Then, the average   $$\bar{x} = \frac{1}{N}\sum_{i=1}^Nx_i$$ is distributed as a Gaussian   with mean $\mu$ and variance $\frac{\sigma^2}{N}.$   This is a very well-known result. Anyway, I'm looking around to find a proof for this and I'm not having luck.


I use a command line tools under windows 10. The path to the tool is set in the system PATH variable so that it can be started from the command line.  Whenever a new version of the tool comes out, I store it to a new directory and update the system PATH to point to the new location. Restart the command window and everything is fine, the new version of the tool is used.  After a ahutdown and start however, the PATH reverts back to the old value and the old version of the tool gets used. Opening the envoronment variable editor and clicking OK, without making any changes, solves the problem ... until the next shutdown. I have searched the whole registry, the old PATH value is nowhere found. It must be stored somewhere else.  After some time, (I guess after a windows update gets installed, but I am not sure about this) the problem goes away and the new PATH value is remembered.  In previous windows versions this worked without problems, I see this behaviour only after upgrade to Windows 10.  How can this be fixed? Is there some way to make the effective PATH permanent?


I know there is a find switch. but I want to know how to search a specific type of file. For example I need kind of terminal command which search for only executable files.


I'm in year 10 (9th Grade for the Americans) and I just had a question about physics. How does a battery create potential difference? It it because the electrons are gaining energy as they get pulled further away from their atoms  or it is becuase of the concentration of delocalised electrons at the negative terminal?


How do I convert a .NET console application to a Winforms or WPF application

I frequently start with a simple console application to try out an idea, then create a new GUI based project and copy the code in. Is there a better way? Can I convert my existing console application easily?


Adding a citation makes the other citations change in weird way

This is really incomprehensibly strange. Adding separate citations makes the other citations look broken. If I only have these two citations,  then the pdf result is perfectly normal.  But if I add either one of the two new citations,  then the pdf result shows "Autor" becomes "D. Autor" Why does one citation affect other citations?  And I am using "Biblatex (natbib mode)" on Lyx. So far only this option works.


On Stack Overflow:    On Area 51:    Why is there no edit communities button in Area 51?  That should be added.


My recent question on Stack Overflow was made a community wiki and was closed by some people.  Is it possible to delete that question?  I really want to do it. Would appreciate if somebody helps me out.


Interpretation of interaction and main effect in a mixed model when one is significant and the other is not

I have repeated (x4) measurements on 90 subjects. The outcome is zero inflated.  The model output gives these estimates:  Coefficients:                          Estimate Std. Error z value   Pr(>|z|)   (Intercept)               -2.2151     1.6998   -1.30    0.193  time                       0.5283     0.2167    2.44    0.015 X                          0.0791     0.3267    0.24    0.811 time:X                    -0.1525     0.0611   -2.49    0.013 Y                          1.0348     0.4488    2.31    0.021 time:Y                    -0.0037     0.0583   -0.06    0.950  Number of observations: total=342, Subject=90 Random effect variance(s): Group=Subject             Variance StdDev (Intercept)    6.302   2.51 Negative binomial dispersion parameter: 3.9265 (std. err.: 0.69723) Zero-inflation: 0.13169  (std. err.:  0.027756 )   X and Y both vary at the subject-level only, not at the time-level.  As you see, here the main effect of X is not significant, while the time:X interaction is significant. On the other hand, the main effect of Y is significant, while the time:Y interaction is not.  I believe that in the case of Y, this means that subjects with higher values of Y have higher trajectories of the outcome. Is this correct ?   However, how is the time:X interaction to be interpreted ?


Sous Vide at 165F - Air formed in the bag, is this natural? Bad?

I am cooking a pork butt roast sous vide. I am following this recipe.    My bag had no or very little air in it after sealing and when the cooking started. Since cooking for a few hours the meat has shrunk considerably in size within the bag. But the bag also has new air in it. Enough to make it float.   I am worried I could have bad bacteria and make my guests sick.   Here is more of my thoughts: 1) According to some articles I have read this could simply be vapor. At 165F the meat is hot enough to release some water to vapor.  2) Maybe while coming to temperature some bacteria did grow, but at 165F, that bacteria is now dead. Even though the air remains, the meat is safe to eat. The dead bacteria and/or their waste are not harmful.  3) I grew a bunch of bacteria and this is not safe to eat.   Here are some pictures:   FYI, This was the only other SO post I found:


Is there a death of black holes? If yes, what is the average lifetime of a black hole and what happens when a black hole dies?


I've been trying to answer this question myself by researching and searching on google but I haven't been able to come with a final answer. I have some hypothesis I would like share anyway:   The average website intends to reach the higher audience possible. User generated content by comments is an efficient way of increasing the relevance and the valuable information of the average website. Indexing comments will make any site attractive to spammers. Indexing comments is more convenient for new/low-traffic websites than it is for old/high-traffic websites. The web in general is currently choosing not to index comments in the average website because of fear to the SPAMMERS. The average author of a content-valuable comment would like his comment to be indexed Not indexing comments discourages the creation of content-valuable comments.   So, what do you think finally? Is it positive or negative for the average website to allow search engines to index user comments? Why?


What are some ways to graphically display non-normal distributions in Excel?

The ultimate goal is to show users, at a glance, if their data is normally distributed.    The first attempt is a kludge that plots the data in a frequency graph.  Then, the observed mean and standard deviation are used to build a "normal curve" graph.  The frequency chart is laid over the the normal-curve chart and put next to some key statistics.  The frequency chart also colors positive bins green and negative bins red.  It looks like this:   I understand the fallacy of this approach, but for now it's practical.   What is a better way to approach this issue?


I have a map of a city and a .csv-file containing 700 geographic coordinates pointing to locations within that city.  How can I plot these 700 locations on the map?


I'm designing a web app but can't reveal its name and its main function so let's see how this could be explained.  In this app there's a type of user that have the power to Add and Remove Team Members (Employees) so for him to do that I thought well let's make this very easy, he's just going to need to press the "+" button and fill a little form BUT to make it even more seamless let's make that a Dialog box.  Question: Is it right for an user to write stuff on a Dialog box or those are only for information display as alerts, etc.  Below you can enter the link to the Dialog section on Material Design and a screenshot of how this Dialog/Form is going to look (I need to add the lines below every line like any other form but I just stopped after this question popped right into my mind).


difference in assigning strings in javascript

In javaScript, the strings can be assigned in one of the following manner:   var str = "string"; var str = 'string';   While I don't see any visible difference between the two in practice (areas where they are defined, propagated or consumed), I would like to know the exact difference between these two methodologies. Do we have any difference internally in the architecture? If yes, Do we have any implications?  proof of documents is much appreciated


Assigning values to variables in separate scripts with Python and Pygame

I need to create a variable in a different script from the main one in my game I am working on, with  and .  For example:  def test():     a = 10 def testing():     return a   Then I run code like this:  import (script name) script name.test() script name.testing()   And after this, it gives an error. How can I fix this problem?


Textarea to resize based on content length

I need a textarea where I type my text in the box, it grows in length as needed to avoid having to deal with scroll bars and it need to shrink after delete text! I didn’t want to go down the mootools or jquery route because I have a lightweight form.


Can I share the same home (partition) and Swap for both installations; or each has to have its own ?


Proving the Laplace transform of $t^n e^{at}$ using mathematical induction

Given the problem of finding the Laplace transform of the function $$f(t)=t^ne^{at}$$ with $n\in\mathbb{N}$ and $a\in\mathbb{R}$, I realize it can be shown the transform is $$\frac{n!}{(s-a)^{n+1}}$$ by more than one direct method. However, I'd like to show this using strong induction. I began the problem by showing that \begin{align*} \mathcal{L}\{te^{at}\}=\int_{0}^{\infty}te^{-(s-a)t}\,dt&=\frac{1}{(s-a)^2},\\ \mathcal{L}\{t^2e^{at}\}=\int_{0}^{\infty}t^2e^{-(s-a)t}\,dt&=\frac{2}{(s-a)^3},\text{ and}\\ \mathcal{L}\{t^3e^{at}\}=\int_{0}^{\infty}t^3e^{-(s-a)t}\,dt&=\frac{6}{(s-a)^4}. \end{align*} I originally did this so I could personally see the pattern. Then, I began the proof as follows. $\textbf{Proof:}$ Let $P(n)$ be the statement $$P(n): \mathcal{L}\{t^ne^{at}\}=\frac{n!}{(s-a)^{n+1}},$$ for all $n\in\mathbb{N}.$ We have already shown $P(1), P(2), P(3)$ are true, so the base case has been proven. Inductive Step: Assume $P(k)$ is true for all $k$. We must then show that $P(k)\implies P(k+1).$ We see \begin{align*} \mathcal{L}\{t^{k+1}e^{at}\}&=\frac{(k+1)!}{(s-a)^{k+2}}\\ &=\frac{k+1}{s-a}\frac{k!}{(s-a)^{k+1}}\\ &=\frac{k+1}{s-a}\mathcal{L}\{t^{k}e^{at}\} \quad\text{(by the inductive step)} \end{align*} At this point, I'm not really sure where to go. I'm pretty awful at proofs, so I assume I'm probably not going in the right direction after the inductive hypothesis.


Is it better to have links open in the same window, or a new window?

Are there best practices around when it's ok to open links into a new tab and when it's best not to?


Integral of limit is limit of integral and is finite, so the integrals over subsets also match

Can someone please assist me with this question?   Let $f_n$ be a sequence of non-negative measurable functions on $(\Omega,\mathcal{A},\mu)$ that converge to $f$ pointwise. Suppose that  $$\int_\Omega f \ \mathrm{d}\mu = \lim_{n\to\infty}\int_\Omega f_n \ \mathrm{d}\mu < \infty$$  Then show that for any $A \in \mathcal{A}$ $$\int_A f \ \mathrm{d}\mu = \lim_{n\to\infty}\int_A f_n \ \mathrm{d}\mu.$$ Trivially, I can use Fatou's lemma to show that $\int_A f \ \mathrm{d}\mu \leq \lim_{n\to\infty}\int_A f_n \ \mathrm{d}\mu$. But as for the reverse inequality, I'm not sure.


I have a big problem with geometry. How I do calculate the distance between the vectorial line $r:(x,y,z)=(2,1,0)+\lambda(0,4,-3)$ and the point $A=(2,4,4)$? I tried to solve the problem but nothing...


I'm trying to fit an exponential with noise (which in this case is a constant $c$) like this one  $$ y(x) = \alpha e^{- \alpha x} + c \text{ ,}$$  having $(x_i, y_i)$ values (So $\alpha$ and $c$ are unknown and are the ones that I want to determine). Without the noise I would simply linearize the values and then apply the least squares method, but with the noise I have no idea how to do that. Are there any formulas to do it? Thank you.


Defining font color inside highlight fails

Since I wanted a better readability of highlights of a would be black & white-printed document, I needed to change both the highlighting color (gray) AND the font color (white).  Depending which command you implement inside the other will compile or not: \hl{\textcolor{white}{Fail}} does not work, compiling returns Package xcolor Error: Undefined color '{white}'.  Here's the mwe:  \documentclass{article} \usepackage{xcolor} \usepackage{color} \usepackage{soul} % Enables highlighting \sethlcolor{gray}  \begin{document}      \textcolor{white}{\hl{Success}}     %% Error:     %% Package xcolor Error: Undefined color `{white}'.     \hl{\textcolor{white}{Fail}}  \end{document}   So, in the end, the problem is sorta solved but I thought you might have an answer as to what happens.


So I killed a bunch of raiders from a settlement, now their rotting fly infested corpses are lying around clogging up the joint.  How do I dispose of their corpses?


If $\frac {\sin^4\theta}a +\frac {\cos^4\theta}b=\frac 1 {a+b}$ P.T $\frac {\sin^8\theta}{a^3} + \frac {\cos^8\theta} {b^3} = \frac1{(a+b)^3}$

The question reads if $$\frac {\sin^4\theta}  {a} + \frac {\cos^4\theta}  {b} = \frac 1 {a+b}$$   Then prove that  $$\frac {\sin^8\theta}  {a^3} + \frac {\cos^8\theta}  {b^3} = \frac 1 {(a+b)^3}$$   I know simply cubing the first equation would not work. I have also tried arriving at the solution using various identities like $ \sin^2\theta + \cos^2\theta = 1$ but to no avail. I would also like to know the approach one should use while solving such trigonometry questions.   I am an eleventh grader so sorry if this question is too silly.


How to choose a random element from a list and then find its index in the list?

I have a list of names and using random.choice(), I am able to get a random element from the list. Now I am trying to figure out at what index that given element sits in the list. This is what I have so far: import random  x = ['Jess','Jack','Mary','Sophia','Karen','Addison','Joseph','Eric','Ilona','Jason'] y = random.choice(x) print(y)


How can I generate irregular grid containing minimum n points?

Given a large (~ 1 million) sample of unevenly distributed points - is it possible to generate irregular grid (in size, but could also be irregular in shape if that is possible?) that will contain specified minimum amount of n points?   It is of less importance for me if genereted 'cells' of such grid contain exactly n number of points or at least n points.  I'm aware of solutions like  in ArcGIS or  in QGIS/mmgis however they will all create regular grids which will result in an output with empty cells (smaller problem - I could simply discard them) or cells with count of points less than n (bigger problem since I'd need a solution to aggregate those cells, probably using some tools from ?).  I've been googling around to no avail and am open to both commercial (ArcGIS & extensions) or free (Python, PostGIS, R) solutions.


What '\t' mean with 'tab' delimiter with 'cut' in BASH

In this command :  cut -f2 -d$'\t'    ('\t') what is it mean ? i saw it another question, i got the idea about "tab" delimiter but still want to know '\t' shortcut or sign or command for something


I'm trying to replicate ARIMA (1,0,1)(1,0,1) equation in excel as a formula but I am not able to understand the interpretation of white noise residual e(t) or u(t).If could help me understand the interpretation and how to derive it from raw data it'll be really great.  Thanks


In latex, I am writing a pseudocode where I want to have output (of input and output) in the following fashion:   This is my code:  \documentclass[sigconf]{acmart} \usepackage{amsmath}  \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} \begin{algorithm}\label{algo:ProclivityProp2} \caption{Graph} \begin{algorithmic}     \State Input T matrix of measurements      \State Output  $\hat X$ \quad matrix of graph signals\\                    $\hat W$ \quad matrix of outliers\\ \end{algorithmic} \end{algorithm} \end{document}   And this is my output:  When I use \Input{..} or \Output{..} in my code, I get the following error:   ! Undefined control sequence.<recently read> \Input \Input   ! Undefined control sequence \Output   How can I get the desired output (the first picture)?


Calculating circular radius given chord length and perpendicular height to arc

I was searching for a solution to a very practical problem asked by a friend of mine. The problem was that he had to lay a dropped kerb to allow vehicular access to customer's property... except the kerb was on a road bend. Since I am the closest person that he knows to qualify as a civil engineer, so he asked me to find a formula that could be used for this purpose. In the image is a diagram with workings to create the final formula for the unknown radius. My question is this: Is the formula and derivation universally correct?   My result was $$r=\dfrac{4B^2+A^2}{8B}$$ Where B is the perpendicular height from midpoint of arc to midpoint of chord and A is the length of the chord itself.  I am concerned that I introduced an error in part 2 of the 3 steps of evaluation. Can anyone refute this?


To denote non-empty subsets, I repeatedly find myself writing $A\subset S, A\neq \emptyset$. Is there any established shorthand for this, you know, like $A\subset S$ can be seen as a shorthand for $A\subseteq S, A\neq S$?


Amazon EC2 Move On Demand instance to Reserved

Am moving a Win2003 server onto Amazon.  I'd like to build it on the On Demand instance first, then if all goes well, move to a Reserved.  Question:  Is there any way to move from On Demand to Reserved, or will I have to manually rebuild the machine again.  Its not an easy build and I don't want to have to do it again :-)


I found the zenity file path dialog but I how can I get the path to a folder? Any help is appreciated.


I'm learning DES, but I have a question. When the plain text input, it gets a permutation by a table.  But, I don't know why 01 -> 58 / 02 -> 50. Is there any special rule or principle of it? or was it just set by the creator of DES?


how can i install ubuntu from one computer to other one? (in my computer there is no internet connection)

Its very important because my pc uses windows xp and i want to get ubuntu (latest version). I have tried installing it rom my computer, but for having wifi i must log in as the adminitrator, but i cant remember the password