so I've made made an addon for blender, tested it and installed it on the target computer. On the dev computer, the script still is just loaded into the scripting Worspace and executed. But now I've made some improvements. Do I have to uninstall the addon on the target system and install new version? Or can I just update the *.py files in the addon directory?


lstlisting environment with UTF-8 encoding

I have a problem using lstlisting environment with utf8 encoding. I got this error    Package inputenc Error: Unicode char \u8:�\expandafter not set up for use wit     MWE  \documentclass{article} \usepackage[frenchb]{babel} \usepackage[utf8]{inputenc} \usepackage{listings} \begin{document} \begin{lstlisting}   {entête}.{informations}.{signature}  \end{lstlisting} \end{document}


If $f$ and $|f|$ are analytic on a domain(open and connected) $D \subset \mathbb{C}$ , then show $f$ is constant on $D$. What I did: Since $|f|$ is analytic and since it is a real valued function then its derivative is zero in the domain and hence $|f|$ is constant. Thus we must have the derivative of $f$ is $0$ ( which I know how to prove). Thus $f$ must be constant. Is my logic correct? Thanks


Install 0bda:f179 Realtek Semiconductor Corp. (rtl8188fu), or Netgear rtl8812au USB WiFi adapters

19 DEC 2019 - I really, really wanted to use the Cinnamon desktop to set up a new system my 83-year-old Dad could navigate. I struggled to get any USB WiFi device working with Debian using Cinnamon, gave up and installed Ubuntu, but still struggled (I think) because I had immediately changed to the Cinnamon desktop before attempting to get the WiFi device set up.  It just kept prompting for the password, no matter what fixes I tried. Not sure if Cinnamon was the problem, or if I just hadn't found the right solution online.


Edit: Pretty much all conjectures in my question have been proved to be incorrect. I started fresh with a new approach. New question is .    Original question:  I'm having an issue with a touchscreen LCD assembly.  The touchscreen normally works fine, but if I mount it in a housing with a gasket the taps sometimes register in the wrong location.  The incorrect taps only seem to occur when I'm tapping the screen. They don't occur on their own.  This is the screen I'm using:  (note the thumbnail is inaccurate)  I've tried different gasket materials such as neoprene rubber, and foam but the issue occurs with all of them.   Inside view (without LCD)   I placed the gaskets so that there is an ~1mm gap between the LCD active area and the gasket on all sides. The datasheets for this part don't have a recommendation for the gasket material or geometry.  Can anyone suggest a solution for this problem, or design guidelines I might use to come up with a solution?  The housing the screen will be mounted will be injection molded, so it's difficult to modify at this point. It doesn't really have any features besides an aperture, and screw holes for the bracket.  EDIT: New discovery, it doesn't seem to be the gasket after all. I realized that when the touchscreen is not installed, I'm holding it by the bracket and thereby grounding myself. If I set the touchscreen on the table and touch it with only 1 finger, the same problems occur. So, new question why does the touchscreen only work when I'm grounded? The RH is 65% in my office, so I don't think it's static.  EDIT2: I thought the power supply had negative connected to earth, but it doesn't. So I manually connected it, and that fixed the problem. ..But I still don't know why. Why does the touchscreen not work correctly when the supply is floating?


Notify close voters when a closed question gets edited

As mentioned in , a question closed because it was not well-phrased is currently very unlikely to be reopened after an edit clarifying the issues. Those who voted to close should at least be asked to reconsider and reopen the question after such an edit.


How can I see what ports are open on my machine?

I would like to see what ports are open on my machine, e.g. what ports my machine is listening on. E.g. port 80 if I have installed a web server, and so on.  Is there any command for this?


Volume material disappear when I move further

I was trying the volume material and when I move my view further, volume disappear. My camera will set further than this so this is a problem to me, I googled about this issue but I couldn't find answer. Is there a way to display volume material from further away? About 5000m ~ 10000m. close  far  fog node  I am using 2.91 and this is my file:  THX! Edit: volume has its own distance clip.


At the end of Avengers: Age of Ultron, Thor says:     The Mind Stone is the fourth of the Infinity   Stones to show up in the last few years.   It's not a coincidence.   Although all these Marvel-films are intertwined somehow, how did Thor know about what happened in Guardians of the Galaxy?


I have problem with proxy requests. I need to enable apache mod_proxy for my subdomains but i forgot to set Allow from mydomain.com, it was Allow from all...Yes, i created open proxy for all world... So, now when i set Deny from all, Allow from mydomain.com i am getting errors that some clients have been rejected because of server conf which is good, and in access.log i have get request for some urls with return code 403 which is also good. This is one of requests.  e.g.   GET http://www.google.com HTTP/1.1 403 462 "-"Mozilla/4.0 (compatible; MSIE 6.0;)   My question is can i modify urls that is comming to me to some another url?  Can i change this url "google.com" to "mydomain.com"?


Formula for the sum of $\ n\cdot 1 + (n-1)\cdot 2 + ... + 2 \cdot (n-1) + 1\cdot n$

I'm looking for a simpler formula to calculate this sum:  $$n\cdot 1 + (n-1)\cdot 2 + ... + 2 \cdot  (n-1) + 1\cdot n$$ Alternate representation (but should be equal to the above): $$\sum \limits_{k=1}^{n}(n+1-k)\cdot k$$  Rationale behind requested formula  When  implementing a , the problem of how many substrings exists within a long text, and how many characters will the sum of all these substrings be came up. I found that the number of substrings is:  $$ n + n-1 + n-2 + ... + 2 + 1 = \frac{(n+1)\cdot n}{2} $$  Reasoning for finding number of substrings is that you have $n$ substrings of length $1$, $n-1$ of length $2$, and so on until the end where you only have $1$ substring of length $n$.  Using the same logic, to sum up the length of all these substrings, we arrive at the formula at the top, which I would like to have simplified. That is, multiply the count of substrings with the length of the substring, and sum all these.  I have found the article "", which seems to produce the number I want in the column for c3, with the $n$ enumerated as $rN$. But I can't read out of this article how the column is calculated, and what formula to use.


My npc truffle will not spawn in Terraria

As seen above, I built a surface mushroom biome with several house but the truffle won't spawn. Is there something else I need to do?


Idempotents in a ring of fractions of the tensor product of Gaussian integers

Let $S=\{x^0,x^1,x^2,...\}\subset \mathbb{Z}$ be the multiplicatively closed subset generated by $x$. What are the nontrivial idempotents in the total quotient ring $S^{-1}(\mathbb{Z}[i]\otimes_{\mathbb{Z}}\mathbb{Z}[i])$?    I came across this question reading about the Chinese remainder theorem, and would like to see concrete examples of how to find the idempotents. Presumably one would find them using the isomorphism given by CRT. Could you show me the cases for $x=2$ and $x=3$?


Question on simplification of $\sum_{n=1}^{\infty}\frac{2}{(2n+1)(2n+3)}$?

I am having trouble seeing how $\sum_{n=1}^{\infty}\frac{2}{(2n+1)(2n+3)}$ equals $\sum_{n=1}^{\infty}\frac{1}{2n+1}-\frac{1}{2n+3}$. I can see $\sum_{n=1}^{\infty}\frac{1}{2n+1}+\frac{1}{2n+3}$ but not $\sum_{n=1}^{\infty}\frac{1}{2n+1}-\frac{1}{2n+3}$. All help is appreciated, thanks.


Trying to install Steam ERROR: You are missing the following 32-bit libraries, and Steam may not run: not

I've already installed Steam, but when I click on the program I get this message  ERROR- You are missing the following 32-bit libraries, and Steam may not run: not   I don't know what to install or even do.


One of the cops escorts Tim out of the house and toward a police car. Curious neighbors have gathered outside. Tim spits on the cop (who's) escorting him.   Is "escorts" the more natural choice of verb to use in this context?  Is the emboldened sentence phrased naturally without adding "who's"?


Suppose $A$ be an $n×n$ real matrix be such that $A^k= O$ for some $k  \in \Bbb N$ then prove that $I+A$ is invertible.  Please do not use eigenvalues.


Red Hat 7.1 'udev' rules changes – "SYMLINK+" and "NAME"

I am trying to install  on Red Hat Linux (RHEL) 7.1, and for that I am trying to configure  rules. I have noticed there is a new attribute in udev rules, SYMLINK+, which seems to be a replacement for the NAME attribute. Working rules: SUBSYSTEM=="block", KERNEL=="powerae",  SYMLINK+="ORAdisk1", OWNER="grid", GROUP="oinstall", MODE="0660"  Not working rules: SUBSYSTEM=="block", KERNEL=="powerae",  NAME="ORAdisk1", OWNER="grid", GROUP="oinstall", MODE="0660"  I have searched in the Red Hat release note, but I could not find any details regarding udev rules. Are RHEL 6 udev rules compatible with RHEL 7?


Continuity of the Characteristic Function of a RV

Defining the Characteristic Function $ \quad  \phi(t) := \mathbb{E} \left[ e^{itx} \right] $ for a random variable with distribution function $F(x)$ in order to show it is  uniformly continuous I say  $$ |\phi(t+u) - \phi(t)| = \left |\int e^{itx}(e^{iux} - 1) dF(x) \right| \le \\ \int 1 \cdot|e^{iux} -1|dF(x) \to 0 \quad as  \quad u\to0 $$  Now my question is, does the convergence I state in the last line follow directly, or do I need to be a little carful before I conclude it is true ? (i.e. can I directly use that $|e^{itu} -1| \to 0 ? )$


Is $\left\{ \frac{1}{n}: n \in \mathbb{N} \right\} \cup \left\{ 0\right\}$ closed set?

Is it true that $\left\{  \frac{1}{n}: n \in \mathbb{N} \right\}  \cup \left\{ 0\right\}$ is closed set? I suppose that yes, but I have no idea how can I prove it.


Total ram usage more than sum of ram usages


How to get the filename without the extension from a path in Python? For instance, if I had "/path/to/some/file.txt", I would want "file".


Adding scripting functionality to .NET applications

I have a little game written in C#. It uses a database as back-end. It's  a , and I wanted to implement the function of the cards as a script.  What I mean is that I essentially have an interface, ICard, which a card class implements (public class Card056: ICard) and which contains a function that is called by the game.  Now, to make the thing maintainable/moddable, I would like to have the class for each card as source code in the database and essentially compile it on first use. So when I have to add/change a card, I'll just add it to the database and tell my application to refresh, without needing any assembly deployment (especially since we would be talking about 1 assembly per card which means hundreds of assemblies).  Is that possible? Register a class from a source file and then instantiate it, etc.  ICard Cards[current] = new MyGame.CardLibrary.Card056(); Cards[current].OnEnterPlay(ref currentGameState);   The language is C# but extra bonus if it's possible to write the script in any .NET language.


What are the effects of enzyme exposure to high temperatures?

Question: After enzymes are exposed to high temperatures and undergo denaturation, then returned to their optimal temperature and renatured, can the enzyme's active site return to it's original shape and will it function at the same level of efficiency as it did before being denatured and renatured?  Some background I wrote to the question: I am just beginning to learn Cell Biology, I hope what I've written is correct.  When you raise the temperature of an enzyme, at first it will increase the efficiency of the enzyme's activity, but eventually as the temperature rises, the enzyme with stop functioning and undergo denaturation, which means that the 3D formation of the protein is unraveled, so it doesn't function anymore. From what I've managed to research, the high temperature changes the shape of the active site in the enzyme, which is what allows the enzyme's activity in the first place.  I know that some proteins cannot be renatured (like adding heat to an egg will fry it and there is no way to unfry it), but some can be renatured (like heated milk, when it cools down the protein bonds will reestablish themselves).   But will the enzyme's active site return to it's original shape and manage to function at the same level of efficiency as it did before? Or is the damage permanent?


Find the password for the currently connected wireless network

I want to find the password for the wireless network that I am currently connected to (and I entered the password when connecting to the network). How can I do this in Ubuntu?


How can I map the Esc key to the Caps Lock key?

I would like to remap the Esc key to the Caps Lock key. How can I achieve this?


Should a note be addressed with "Hi all" or "Hi All"?

It is common to begin an email with the greeting "hi all" when the note is addressed to multiple recipients.  What, however, is the correct capitalization of "all" in this context?  Does it become a proper noun?


Is scope of variables same in both Java and JavaScript. I have a variable in javascript and assigned when onLoad Page. but while keep on adding functions in my project, I got this variable as NULL. I checked multiple times this variable not assigned again but few places (In functions) used local variables with the same name. I am doubt that this will effect my global variable value. I have now huge functions I don't want to touch them. Please help me to resolve.   Code here:  in   <script> // other variables goes here.     var BUSINESS_CODE_CUSEUR = "<%=BusinessLine.BUSINESS_LINE_CODE_GLOBAL_CUSTODY_UK%>";     var branchId = null; //on Refresh branch, function refreshByBranch(){             branchId = dijit.byId("branchList").attr("value");          // other functions calling here who ever is depending on branch.                         searchTeamList(branchId);             searchCustomer(branchId);             searchClientRelationshipFsList(); //and so on. }  //my function is here: calling on an image click. function showSelectRootCauseDialog(){     var br = dijit.byId("branchList").attr("value");     console.info("showSelectRootCauseDialog - branchId:" + branchId);     console.info("showSelectRootCauseDialog - br:" + br); // getting null on line 2. }  </script>   -- Problem solved here like this. we made changes in every function.       function refreshByBranch(){                 branchId = dijit.byId("branchList").attr("value");                 var url = contextPath + "/" + servlet + "?cmd_query_for_user=1&branchId=" + branchId;                 originatorUserStore.url = url;                 ownerUserStore.url = url;                 resolverUserStore.url = url;                 searchTeamList(branchId);                 searchCustomer(branchId);                 searchClientRelationshipFsList();                 if(currentBusinessLineCde == gcBusinessLineCde){                 //  var branchId = dijit.byId("branchList").attr("value"); ////-- Problem solved here. by making comment.                      searchGroupList(branchId);                       searchLocationList(branchId);                     searchClientList(branchId);                     searchAccountManagerList(branchId);                 }             }


Getting raw SQL query string from PDO prepared statements

Is there a way to get the raw SQL string executed when calling PDOStatement::execute() on a prepared statement? For debugging purposes this would be extremely useful.


How to make a safe in vanilla Minecraft that locks and unlocks with a key?

How can I make a safe/vault or something to lock my door that is very easy (as I am not that advanced with redstone) to keep people out of my house? Without mods?


Java program to identify whether a given line is a comment or not

I'm creating a java program to test if the given string is a comment or not and here's my code so far:  public class comment { public static void main(String args[]){     String[] com = new String[50];     Scanner scan = new Scanner(System.in);     int i = 2 ,a=0;     System.out.println("Enter comment");     com[i] = scan.nextLine();       if(com[0].equals("/")){          if(com[1].equals("/")){              System.out.println("comment");          }          else if (com[1].equals("*")){          for(i=2;i<=50; i++){              if(com[1].equals("*") && com[i+1].equals("/") ){                  System.out.println("comment");                  a=1;                  break;              }              else{                  continue;}}          if(a==0){System.out.println("not");}              }          else{System.out.println("not");          }          }       else{System.out.println("not");          }          }      }   I'm getting an error on this line of code:    if(com[0].equals("/"))   Error says: java.lang.NullPointerException  Any explanation on why is this occuring ?


What Canon lenses do you suggest for wedding photography on a tight budget?

I am new to photography. I have Canon 1000d (with 18 -55 mm lens). My basic interest is wedding photography.  I am planning to get a prime and a telephoto lens. So, my dilemma is:   Should I go for 50mm f/1.8 or 50 mm f/1.4 or 85mm f/1.8 For a telephoto zoom... should I consider 55-250mm IS??   kindly suggest.  ps: Please note that I am mainly interested in shooting weddings....


need to find if a specific number is existing or not in a JavaScript array

I am new in javascript and maybe the below code has some return error. what I trying to do is find a specific number in a JavaScript array.    const numberList = [1, 2, 3, 4];  function includes(arrays, searchElement) {   for (let elements of arrays) {     if (elements === searchElement) {       return true;     } else {       return false;     }   } } console.log(includes(numberList, 3))


One of the strings I want to pass into a function contains {0}, which is a placeholder escape character in c#.  What is the correct syntax to get c# to ignore this?  i tried encasing it in single quotes ('), but no good


Android app "Unknown error" when uploading photo

Spent a half hour on this. Android 5.1.1 latest version SE app (Play Store won't let me update so latest).   Tried to upload photo into an answer. "Something went wrong".  Did tricks to reduce photo size to 275k -- same.    45k rep on the stack.  Here is the photo..... oh wait.  How do I solve?


I am doing something very simple. I'm trying to retrieve a node from a small XML file.   <?xml version="1.0"  encoding="UTF-8" ?> <SAMLConfiguration xmlns="urn:componentspace:SAML:2.0:configuration">   <IdentityProvider Name="IdpNameInSPForIsuer"                     Description="SecureAuth"                     LocalCertificateFile=""                     LocalCertificatePassword=""/>    <ServiceProviderProfiles>     <ServiceProvider NameIdentifier ="SPIssuerName"                      ExpectsSignatureVerification="true"                      ExpectsSignedResponse="false"                      Certificate="sharedpubliccsert.cer"                      DigestMethod="SAMLIdentifiers.DigestMethods.SHA1"                      SignatureMethod="SAMLIdentifiers.SignatureMethods.RSA_SHA1"                      SingleLogoutServiceUrl="https://serviceprovider/slo"                          SendResponseBy="HTTP-Redirect" />    </ServiceProviderProfiles> </SAMLConfiguration>   I am trying to get the ServiceProvider. Below is the C# code I have:     string parent = "ServiceProviderProfiles";    string children = "ServiceProvider";      var nodePath = string.Concat(@"//", parent, @"/", children);   var xmlNode = xmlDocument.SelectSingleNode(nodePath);   When I debug, the xmlNode is null. What problems with my code is causing the xmlNode to be null?


How can I make the Ubuntu dock smaller vertically?

I am on GNOME 3.28, Ubuntu 18.04 LTS. I want to go from the default 18.04 dock which spans the full vertical of the screen, to no wasted space like the following:    Is it possible to do this in Ubuntu 18.04?


Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition); transform.LookAt(mousePos);   This will actually make the camera follow the mouse, but it goes crazy, the camera seems to spin in circles rapidly : here is actually a gif of what is happening.  Could anyone help me figure how how to fix it?


If every object in math can be reduced to sets, how are tuples explained via sets?

It seems to me that tuples are just as elementary as sets. Can tuples be reduced to sets?


Export objects to separate files in Illustrator

Is there a way to export objects to separate files in Illustrator?    The output I want is AI or vector files, not raster images. The objects are not on separate artboards, and I am looking for a solution that does not require them to be. (Putting the objects into separate art boards would take as much time as copying and pasting them into separate documents, which is what I am trying to streamline.)   My use case: I am designing characters in a font, and each font contains upwards of a hundred characters. I need to get each character into a separate file in order to bulk import them into my font program.


jQuery click event not firing when clicking on newly appended list items

My click event handler is not firing on newly appended list items.  Here are my list items markup:

product colour 1

product colour 2

product colour 3

product colour 4

   My styling for the above list items:  .product-colours li {      cursor: pointer;      padding: 5px; }  .product-colours .available {      border: 2px solid #999; }  .product-colours .selected {      border: 2px solid #333; }  .product-colours .not-available {      border: 2px solid #f00;      cursor: not-allowed; }   I am playing around with these list items. When I click on a list item, I then execute some server code in C# and return a JSON result. This result I take and add additional items to the above already created list items.  Here is my jQuery code for the click event handler:  $('.product-colours li').click(function () {      if (this.id) {           $.ajax({                data: { sku: this.id },                dataType: 'json',                url: '/MyWebsite/Product/Test'           }).done(function (data) {                var productColours = $('ul.product-colours');                $.each(data.Products, function (i, productColour) {                     if (productColour.IsAvailable) {                          if (productColour.IsSelected) {                               productColours.append('
' + productColour.Name + '
 ');                          }                          else {                               productColours.append('
' + productColour.Name + '
 ');                          }                     }                     else {                          productColours.append('
' + productColour.Name + '
 ');                     }                });           }).fail(function () {                alert("error");           });      } });   After a new list item is added by doing productColours.append() it displays correctly. When I go and click on the appended list item the click is not picked up by the event handler. The event handler is fired from the items added when the page loaded, but it is not firing on the newly added items. Why is this?


Groups of order 12 that aren't isomorphic

Give examples of four groups of order 12 no two of which are isomorphic.   So far I've thought of $Z_{12}$ and $D_6$.   Thanks!


This might have some duplicated inquiry that   had, and while I think I have some of  about it, I would like to ask the community here for more opinions.  So referring to  or , one might still beg the question: Why is the speed of light 299792458 m/s? Don't just say "because it's defined that way by definition of the metre." Before it was defined, it was measured against the then-current definition of the metre. Why is $c$ in the ballpark of $10^8$ m/s and not in the order of $10^4$ or $10^{12}$ m/s?  A similar questions can be asked of $G$ and $\hbar$ and $\epsilon_0$.  To clarify a little regarding $c$: I recognize that the reason that $c\approx10^9$ m/s is that a meter is, by no accident of history, about as big as we are and a second represents a measure of how fast we think (i.e. we don't notice the flashes of black between frames of a movie and we can get pretty bored in a minute).  So light appears pretty fast to us because it moves about $10^9$ lengths about as big as us in the time it takes to think a thought.  So the reason that $c\approx10^9$ m/s is that there are about $10^{35}$ Planck lengths across a being like us ($10^{25}$ Planck lengths across an atom $10^5$ atoms across a biological cell and $10^5$ biological cells across a being like us). Why? And there are about $10^{44}$ Planck times in the time it takes us to think something. Why?  Answer those two questions, and I think we have an answer for why $c\approx 10^9$ in anthropometric units.  The other two questions referred do not address this question.  gets closest to the issue (regarding $c$), but he does not answer it. I think in the previous EDIT and in the comments, I made it (the question) pretty clear. I was not asking so much about the exact values which can be attributed to historical accident. But there's a reason that $c \approx 10^9$ m/s, not $10^4$ or $10^{12}$.  Reworded, I suppose the question could be "Why are the anthropometric units (which are about as big as we are) as large as they are relative to their corresponding Planck units?" (which is asking a question about dimensionless values). If we answer those questions, we have an answer for not just why $c$ is what it is, but also why $\hbar$ or $G$ are what they are.


how to find a specific string in a vector and use it in an if statement

This is what my vector starts as:  vector<string> inventory; inventory.push_back("sword"); inventory.push_back("armor");   the player of this game will be able to choose two of three items with this code block:  while(paid < 2) {     cout << "choice: ";     cin >> equip;     ++paid;     inventory.insert(inventory.begin(), equip); }  if(paid == 2) {     cout << "\nYou are out of money\n"; }   then there is a character that will interact with one of the inventory items if you purchased it.   if((bazaar == "woman") || (bazaar == "WOMAN")) {     cout << "you approach the woman, and she gives you a look.";      if(...)     {      } }   in that second if statement, I want to be able to check for a string in the inventory vector, and have two separate things happen, depending on whether or not that string is in the vector somewhere.  (as a side note, this is code for a text based game played in the console window)


Install Incrontab (file system watcher) on Ubuntu 18.04.1 LTS

Can someone please help me to install Incrond on my Ubuntu server, I tried all possible ways as I found on the web but nothing works.  sudo apt-get install incron  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package incrond   I need to install the file system watcher for some of my automization scripts to work.  Thank you in advance.  Info: Yes the solution was the universe repository but in my case I wasn't aware which repository is responsible for incron, so it will be helpful to keep it separate.


suppose you reading a PDF with document viewer now you want to search a word in PDF you press CTRL + F search your word.the list appear you click on one of them see the passage . So now you want to come back and countinue reading pervios part . Is there any way in document viewer ? If not do you know a PDF reader from repository to do that?


How to PERMANENTLY disable mouse accelleration in 17.04?

I've managed to disable mouse acceleration in 17.04 with the following command:  xinput --set-prop 8 'libinput Accel Profile Enabled' 0, 1   However! As soon as I restart the computer, the setting is no longer in effect. How do I make it permanent?


Latex acronym package: english terms with german translation

im writing an german text with latex where im using the acronym package where it looks like this:     Situation Awareness (SA)   But when i have english terms i have to declare them with the german translation like this:     Situationsbewusstsein (SA, engl. Situation Awareness)   Does somebody know if that is possible?


List of Tables can be obtained by using listoftables commands. I wonder how to skip listoftables output if the document doesn't contain any table. Thanks  \documentclass[11pt]{article}  \begin{document}  \tableofcontents \listoftables  \clearpage  \section{Dummy section 1}   \begin{table}[ht] \caption{Dummy table 1} \begin{center} \begin{tabular}{|c|c|}  \end{tabular} \end{center} \label{tab:dum1} \end{table}   \end{document}


Should "a" vs "an" be chosen based on an expanded abbreviation?

The indefinite article "an" is used when the following word starts with a vowel sound. For example one write "an adjective" but "a noun".   However, when an abbreviation is used, should this be based on the expanded meaning, or on the letters of the abbreviation.  Specifically, one writes "a noun phrase". However, here on ell.se, the abbreviation "NP" for 'noun phrase" is commonly used. If this were pronounced by sounding out its letters, as "En-Pee" it would call for "an". If it were read as "noun phrase"  it would call for "a". Should one write "a NP" or "an NP" here on ELL?  I incline to "a NP" and i used that in  just a few minutes ago, but I am not at all sure.


Present or Past tense to describe a past condition which is still present?

Scenario: My friend John has a personality disorder, intensely paranoid for example.  Can I say:     There were three events last year that told me John had a problem.   or can I say:     There were threee events last year that told me John has a problem.


StackExchange-like LaTeX editor - with live preview/rendering and control/formatting syntax not required

For some time I've looking for a simple editor, for writing mathematics, like the one I'm using right now on StackExchange.  My needs are as follows:    live preview/rendering of what you are typing (you shouldn't press a 'compile' button for seeing the result of your markup) no control syntax needed like 'include' and other stuff that goes into categories meta/preamble/formatting.   I need something simple, where I can type in a problem without going through a lot of steps. It should be as fast as typing a question here on StackExchange.  Got any ideas?


I am travelling via Greyhound through the border at Windsor/Detroit. I plan on bringing a sandwich, some fruit, and non-alcoholic drinks with me on the bus. Will I be able to take them through?


Maximum likelihood estimation of p in a Binomial sample

Assuming I need to find the ML estimator for p, p being the chance of success in a Binomial experiment $Bin(N,p)$, I would expect my density function to be:  $$ f(y) = {{N}\choose{y}} p^y(1-p)^{N-y} $$  And so my likelihood function should be:  $$L(p) = \prod_i^n(f(y_i)) =  \prod_i^n({{N}\choose{y_i}})p^{\sum_i^n y_i} (1-p)^{nN-\sum_i^n yi}$$  However, the last exponent, $nN-\sum yi$ seems to be wrong because when I derive the log likelihood and isolate $p$, I get $p = \frac{\sum_i^ny_i}{nN}$, while it should be $p = \frac{\sum_i^ny_i}{N}$. Indeed, when checking online, I find different exponents:   they have $N-\sum yi$, for no obvious reason to me (last time I checked, $\sum_i^n(N-y_i) = nN-\sum y_i$ !)   as well, but there they start from the likelihood function of a Bernoulli experiment. It makes sense that $\sum_i^n(1-y_i) = n-\sum y_i$, but what is more obscure to me is why they take the likelihood function of a Bernoulli while the problem is clearly about a Binomial. I am aware of the link between the two, but not enough to see why their likelihood functions seem to be substitutable to estimate p, especially since it doesn't give me the same result.


how to combine CSV files using cat .csv when one of the files has an NA value in cell A1

I'm using the command line to combine hundreds of CSV files (with identical columns) in the manner described in  . The problem is that some of my CSVs have an NA value in cell A1. In these cases, the values from the first row of the file are added to the last row of the previous file. Here is a simple example. csv1 col1,col2  csv2 ,16 17,18  cat *.csv >merged.csv yields this output col1,col2,16 17,18  my desired output col1,col2 ,16 17,18  One option is to modify the source files so that the first column never contains missing values. Due to the quantity of data involved, I'd like to avoid that if possible. Is it possible to fix this behavior within the cat command?


/states/louisiana/ or just /louisiana/ in the URL path for SEO of a restaurant site based on WordPress?

Hoping to find a site structuring best practice for a Wordpress site that features restaurants by state, that is still readable enough to Google's bots so as to not be detrimental to the SEO.  Is it better for SEO to use the category base "states" Example – example.com/states/louisiana/restaurant-name or just example.com/louisiana/restaurant-name  If I include the base, should I make a page with all of the states listed? At that point does it make more sense to do "states" as a parent category with each state as a child?  I know this seems really simple at first glance, I just want to make sure I'm heading in the right direction – what do you think?


How to fix a cross-thread exception in C#?

I'm trying to use System.Timers.Timer on a UI control.   The error: System.Timers.Timer "Cross-thread operation not valid: Control 'txtOutput' accessed from a thread other than the thread it was created on."  My code is the following:  System.Timers.Timer timeRandomEvent = new System.Timers.Timer(10 * 1000);   // timer for random events   timeRandomEvent.Elapsed += new ElapsedEventHandler(timeRandomEvent_Elapsed); timeRandomEvent.Start();  void timeRandomEvent_Elapsed(object sender, ElapsedEventArgs e)  {     wl("Adding some text to a text box.");   // Exception occurs here }   Is there a way to allow it, or another alternative that's hopefully easy?


Prove that every positive integer $n$ is a unique product of a square and a squarefree number

I am trying to prove that for every integer $n \ge 1$, there exists uniquely determined $a > 0$ and $b > 0$ such that $n = a^2 b$, where $b$ is squarefree.  I am trying to prove this using the properties of divisibility and GCD only. Is it possible?  Let me assume that $n = a^2 b = a'^2b'$ where $a \ne a'$ and $b \ne b$'. Can we show a contradiction now?


How to update Galaxy S4 to Lollipop or Latest Android version?

How to update this Galaxy Not rooted S4 GT- I9505 from Android 4.3 to Android 5.0 or 6.0? Currently not getting or not showing any updates either in this device or from Samsung Smart Switch/Samsung Kies.      Additionally, Not showing latest android version in SamMobile website () against the above device specifications. Currently it is still showing Android version as 4.3  Now how can we update it to Lollipop version?


Consider the random walk $S_n$ given by: $$ S_{n+1}=  \left\{  \begin{array}{ll}   S_n + 2  & \mbox{w.p } p\\   S_n -1   & \mbox{w.p } 1-p  \end{array} \right. $$ Assume that $S_0=n > 0$ with certainty. What is the probability of eventually reaching the origin (the point 0) ?  Now I know the derivation for the same problem but when it's symmetric and unbiased namely the additions are $1,-1$ with probability $\frac{1}{2}$ for each. Can I use this result or that I need to make the derivation from the start?


How can I convert a string of a small integer? In my code below, I check whether a string is a member of a list, which returns a string of "0" or "1". I am trying to use this returned value in \fpeval to make a decision using if-statement in the macro \processNum.   Could someone kindly please help me?  \documentclass[tikz, border=0mm]{standalone} \usepackage{tikz,xfp}  \usepackage{xstring} \newcommand\IfStringInList[2]{\IfSubStr{,#2,}{,#1,}} % Adapted from https://tex.stackexchange.com/a/260909/23594  \newcommand{\convertStringToInteger}[1] {      % I am trying to find a convertor }  \newcommand{\singleBox}[4]{%     \fill(\fpeval{#1}mm,\fpeval{#2}mm) rectangle     (\fpeval{#1} mm + \fpeval{#3} mm,\fpeval{#2} mm - \fpeval{#4} mm); }  \newcommand{\processNum}[5] % {     \fpeval{        \convertStringToInteger{           \IfStringInList{#1}{1,17,130,109}{1}{0}} ? #3 + 39 + (#4 + #5) + (#2-1) : 0 } }  \begin{document}     \IfStringInList{17}{1,17,130,109}{1}{0} % Works just fine. [for debugging purposes].     \IfStringInList{16}{1,17,130,109}{1}{0} % Works just fine. [for debugging purposes].      \begin{tikzpicture}         \draw[draw=black] (0mm,0mm) rectangle (300 mm, 400 mm);         \singleBox{100}{200}{24}{13} % This works just fine. [for debugging purposes]         \singleBox{\processNum{1}{1}{0}{2}{1.46}}{200}{24}{13} % Fails at this line.     \end{tikzpicture}  \end{document}


Why is the NFC in the Galaxy Nexus battery?

Why is the NFC in the Galaxy Nexus embedded in the battery?  Wouldn't it make more sense to separate the two things? Is there any hardware advantage of being this way?  Disadvantages I can see several, like replacing the battery with another, without NFC...


I have a question on how a statistician would normally interpret an anova output. Say I have anova output from R.  > summary(fitted_data)  Call: lm(formula = V1 ~ V2)  Residuals:      Min       1Q   Median       3Q      Max  -2.74004 -0.33827  0.04062  0.44064  1.22737   Coefficients:             Estimate Std. Error t value Pr(>|t|)     (Intercept)  2.11405    0.32089   6.588  1.3e-09 *** V2           0.03883    0.01277   3.040  0.00292 **  --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 0.6231 on 118 degrees of freedom Multiple R-squared: 0.07262,    Adjusted R-squared: 0.06476  F-statistic:  9.24 on 1 and 118 DF,  p-value: 0.002917   > anova(fit) Analysis of Variance Table  Response: V1            Df Sum Sq Mean Sq F value   Pr(>F)    V2          1  3.588  3.5878  9.2402 0.002917 ** Residuals 118 45.818  0.3883                     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1    From the above, I guess the most important value is Pr(>F), right? So this Pr, is less than 0.05 (95% level). How should my "explain" this? Do I explain it in "association", ie, V2 and V1 are associated (or not) ? or in terms of "significance"? I always felt that I couldn't understand when people say "This value is significant....". So what is "significant"? Is there a more intuitive form of explanation? like "I am 95% confident that ...." .   Also, is the Pr value the only important piece of information? or can i also look at residuals and the rest of the output to "explain" the result? thanks


A complex number $z$ is said to be algebraic if there are integers $a_0, ..., a_n$, not all zero, such that  $a_0z^n+a_1z^{n-1}+...+a_{n-1}z+a_n=0$. Prove that the set of all algebraic numbers is countable.  The Hint is: For every positive integer $N$ there are only finitely many equations with $n+|a_0|+|a_1|+...+|a_n|=N$.  Here is a proof I have. The problem though, is that I did not use the hint provided in the text, so maybe this proof is invalid or that there is an alternate (simpler) proof? Please help me out here. Thanks in advance.  Proof:  The set of integers is countable, we have this following theorem:  Let $A$ be a countable set, and let $B_n$ be the set of all n-tuples $(a_1,...,a_n)$, where $a_k \in A, k=1,...,n,$ and the elements $a_1,...,a_n$ need not be distinct. Then $B_n$ is countable.  So by this theorem, the set of all $(k+1)$-tuples $(a_0,a_1,...,a_k)$ with $a_0 \neq 0$ is also countable.   Let this set be represented by $\mathbb Z ^k$. For each a $a \in \mathbb Z ^k$ consider the polynomial $a_0z^k+a_1z^{k-1}+...+a_k=0$.  From the fundamental theorem of algebra, we know that there are exactly $k$ complex roots for this polynomial.  We now have a series of nested sets that encompass every possible root for every possible polynomial with integer coefficients. More specifically, we have a countable number of $\mathbb Z^k s$, each containing a countable number of $(k + 1)$-tuples, each of which corresponds with $k$ roots of a $k$-degree polynomial. So our set of complex roots (call it $R$) is a countable union of countable unions of finite sets. This only tells us that $R$ is at most countable: it is either countable or finite.  To show that $R$ is not finite, consider the roots for $2$-tuples in $\mathbb Z^1$. Each $2$-tuple of the form $(-1, n)$ corresponds with the polynomial $-z + n = 0$ whose solution is $z = n$. There is clearly a unique solution for each $n \in \mathbb Z$, so $R$ is an infinite set. Because $R$ is also at most countable, this proves that $R$ is countable.


Prepending "Chapter" except for appendix entry, and other requirements

A more apt title to this is question may be "Jumping through hoops". My question is similar to .  I have the following requirements for the table of contents in my thesis:   The title "Table of Contents" must be centered Every chapter, section, subsection, and appendix must have dots between the chapter/section/etc name and the page number The chapters must start out "Chapter #" for each entry in the ToC.   Following the second answer in the link above, I can get all three of these requirements using Tocloft, however it also puts "Chapter Appendix" which is not correct (see MWE below). Following the first answer, I no longer have this problem, but I can't get #2: there are no dots between the chapter name and the page number. Looking at the documentation for titletoc, it doesn't seem possible to include them (but maybe I'm missing something).  I would like to satisfy all three requirements but not have "Chapter Appendix". I am willing to use any package(s) to meet these.  MWE:  \documentclass{report} \usepackage{titlesec,tocloft,calc}  \renewcommand{\cftchappresnum}{Chapter } \AtBeginDocument{\addtolength\cftchapnumwidth{\widthof{\bfseries Chapter }}} \renewcommand\cftchapdotsep{\cftdotsep} \renewcommand{\contentsname}{\vspace*{-1.75in}\hfill\bfseries\Large Table of Contents\hfill}    \renewcommand{\cftaftertoctitle}{\hfill}  \begin{document} \tableofcontents  \chapter{Asdf} \section{Foo} \chapter{Jkl;} \section{Bar}  \addtocontents{toc}{\protect\setcounter{tocdepth}{0}} \titleformat{\chapter}[display]{\centering\Huge\bfseries}{\thechapter}{0pt}{} \appendix \renewcommand{\thechapter}{} \begin{chapter}{APPENDIX} \renewcommand{\thechapter}{A} \end{chapter} \addtocontents{toc}{\protect\setcounter{tocdepth}{2}} \end{document}


I read Kenton Warda's post that the exploit in SSL in most Linux OS's have been patched. Has Ubuntu been patched? What should I avoid doing if it isn't?


Why is it true, that if you have a system of two stars for example, moving around the centre of inertia of the system due to gravitation, these stars can be replaced by a single star of mass  $$\mu=\frac{m_1m_2}{m_1 + m_2}$$ where $m_1$ and $m_2$ are the masses of the initial stars?


Tokyo ghoul's Kaneki's change in hair color

When Kaneki's hair turned from brown to white, was it because because of the stress ? Or maybe because of his change of heart. A lot of anime and manga use hair-colors to describe someones personality, so maybe it was symbolic like, his hair turned white because he admitted that he has to change his personality.. Does someone know the real reason or?


Can't boot without Flash Drive plugged in

I had Ubuntu 12.04 Beta installed on my computer. When 12.04 was finally released, I made a bootable USB Flash Drive using Startup Disk Creator.  Then I decided to check if this drive works properly and to reinstall the system on my desktop. I must add, my desktop behaves a bit strange when it comes to bootable USB's, it recognizes them as HDD.  In BIOS I changed priority of boot so USB Flash Drive (recognized as HDD) was first. Successfully booted, I installed Ubuntu. Everything worked fine, but...  Now I cannot boot from my real HDD. Every time I want to boot, I put the USB Flash Drive into my computer, boot, safely remove it and everything works.  What do I need to do to repair boot?


Why did Anakin join Palpatine in the dark side if Palpatine did not have the power to cheat death?

In Revenge of the Sith, Palpatine states to Anakin (when Anakin became Palpatine's apprentice):  To cheat death is a power only one has achieved but if we work together I know we can discover the secret.  So right there Anakin knows Palpatine doesn't know how to cheat death.  Padme is a few months pregnant when this happens. So Anakin really thinks he can join the dark side, become Palpatine's apprentice, AND learn how to cheat death all before Padme gives birth in a few months? As Palpatine said, "cheating death is a power only one has achieved" so this means it could take YEARS to learn-- but Padme is giving birth in only a few months-- so what was Anakin's plan here?


I accidentally set an object as camera, how do I undo this?

I have a problem with rendering in cycles. In blender render my object is rendering fine, but in cycles when I pushed F12 I got only this:    One more thing: when I click 0 on keyboard I'm not in camera persp, but in object as camera, it looks like invisible layer, I don't know how to undo this, and be in camera persp again.  Does anybody have any idea how to fix this?


Not able to login to chat.stackoverflow.com

I have an account in stackoverflow.com, today I tried to join a chat room for some technical discussion and help. But I am not able to login to it. chat.stackoverflow.com is throwing "Something bad happened error" and If I directly click the link to join the chat room. It is showing that I need to be login to chat, but I am already logged in. I don't unerstand why it is happening to my account. Any solution for this?


Printing the user's IP address using javascript

I got this question in my interview and I have no Idea how to proceed. I have search net but not got any satisfactory answer. The question is:-  Write a Javascript that gives a pop-up alert shows the IP address of the user, and outputs a file as follows in the pop-up alert:                   My IP address:    10.123.123.43  Kindly help me out. Thanks


I can't get Jquery Hover (or click, etc.) to work with generated s

I am having trouble with a seemingly simple Jquery function.  Basically, the small/med/big etc. buttons create a grid of >div>s within a >div>. They all have a class of .colorblock I want to add a class or change the background color upon hovering over these divs.  I've included the jsfiddle (but I'm creating this on my own computer - ignore the fact that the button box butts into the grid on jsfiddle, I can fix that...eventually), and copied the 'problem areas' below. The grid is created successfully, but I can't get anything to interact with the <\div class="colorblock"> after that.   Also - is there a way to use a variable defined earlier in jQuery directly in the    .append('

')   ? It's simpler to calculate the size and put it in the loop instead of making different loops for each div. I tried changing all the divs after they were created but it kept lagging/freezing.  HTML____________

  CSS____________  .colorblock {   float: left;   outline: 2px solid blue; }  .black {  background-color: black; }  .smallcolorblock {   width: 21.875px;   height: 21.875px; }  JQUERY____________  var smallH = '

'  $('#small').click(function(){     $('.colorblock').remove();     for (var i = 1; i <= 32*32 ; i++) {              $('#colorspace').append(smallH);         };  $('.colorblock').hover(function(){     $(this).css("background", getRandomColor()),     function(){         $(this).css("background", "white");     };   $('.colorblock').hover(function() {      $(this).addClass("black");    });


How to get the browser to navigate to URL in JavaScript

What is the best (correct, modern, cross-browser, safe) way to get a web browser to navigate to a URL of your choice using JavaScript?


Registering PL/SQL stored function out parameters from Java

I have been given PL SQL stored Function with the following signature and body description.  Create or Replace function Get_Employee(user_id in Number, res_out out sys_refcursor) return  sys_refcursor is v_result sys_refcursor; begin //here goes function body return v_result end;   Basically, I need to call this function from Java. I have tried all possible ways to register out parameter as well as return value which both are refcursor type. Here is the way which I believe is the most correct way.      String employeeSQL = "{ ? = call Get_Employee(?,?)}";             CallableStatement statement = null;             Employee employee = null;             ResultSet result = null;     try{     statement = conn.prepareCall(employeeSQL);     statement.registerOutParameter(1, OracleTypes.Cursor); //registering return value     statement.registerOutParamter(2, OracleTypes.Cursor); // registering out parameter     statement .setLong(3, userId); // setting input parameter     statement.execute();     resultSet = (ResultSet) statement.getObject(1); // getting return value     }finally{     statement.close();     trsultSet.close();     }   The problem is whenever the statement is executed, it throws NullPointer Exception. So I suspect I do not register parameters in a correct way. Any help appreciated!


Problems with BibLaTex and Biber on MacOS

I'm currently writing a seminar paper with TexMaker (Version 5.0.4) on macOS Catalina (10.15.5). I tried to switch from BibTex to BibLaTex due to formatting issues for my bibliography (I need APA style in German). With BibTex and the \apalike style, the bibliography is in English while I (obvs) need it to be in German. So, with the help of a friend who is more familiar with the program, we encounter a problem switching to BibLaTex. The following is an example for the preamble + a sample citation: \usepackage[ngerman]{babel}  \usepackage[utf8]{inputenc} \usepackage{csquotes} \usepackage[T1]{fontenc} \usepackage{color} \usepackage[a4paper,lmargin={1in},rmargin={1in}, tmargin={1in},bmargin = {1in}]{geometry} \usepackage{microtype} \usepackage{amssymb} \usepackage{amsthm} \usepackage{graphicx} \usepackage{titlesec} \usepackage{caption} \usepackage{subcaption}  \usepackage[backend=biber, style=apa]{biblatex} \DeclareLanguageMapping{german}{german-apa} \addbibresource{Bib} \listfiles   \newcommand{\source}[1]{\caption*{Quelle: {#1}}}  \expandafter\def\expandafter\quote\expandafter{\quote\small} \usepackage{hyphenat}  \begin{document}  This is my citation 1 \cite{clasen2012instrument}.   \addcontentsline{toc}{section}{Literatur} \printbibliography  \end{document}  If I try to run pdfLatex --> Biber --> pdfLatex I get the following error: INFO - This is Biber 2.14 INFO - Logfile is 'BibLaTex-Test.blg' INFO - Reading 'BibLaTex-Test.bcf' INFO - Found 1 citekeys in bib section 0 INFO - Processing section 0 INFO - Globbing data source 'Bib' INFO - Globbed data source 'Bib' to Bib INFO - Looking for bibtex format file 'Bib' for section 0 ERROR - Cannot find 'Bib'! INFO - ERRORS: 1 The .log file: biblatex.sty    2019/12/01 v3.14 programmable bibliographies (PK/MW)  The .blg file: [0] Config.pm:304> INFO - This is Biber 2.14   [0] Config.pm:307> INFO - Logfile is 'BibLaTex-Test.blg' [102] biber-darwin:322> INFO - === Wed Jul  8, 2020, 19:00:42 [123] Biber.pm:415> INFO - Reading 'BibLaTex-Test.bcf' [278] Biber.pm:943> INFO - Found 1 citekeys in bib section 0 [297] Biber.pm:4256> INFO - Processing section 0 [298] Utils.pm:75> INFO - Globbing data source 'Bib' [298] Utils.pm:91> INFO - Globbed data source 'Bib' to Bib [310] Biber.pm:4455> INFO - Looking for bibtex format file 'Bib' for section 0 [506] Utils.pm:320> ERROR - Cannot find 'Bib'! [506] Biber.pm:132> INFO - ERRORS: 1  This is the best it's been for a few hours now after we tried it in a new "test" file. I am a newbie to LaTex, my friend is a bit better but at his wits end too. Why do I get this error? (Is it Biber, MacOs, am I dumb?) If you need any more infomartion I'm happy to help. PS.: If anyone has another solution for my bibliography formatting problem with German APA citation style, I'm happy to hear that too! Thanks in advance!


Is an X-Series Certificate from edx useful for graduate school?

I saw a similar question posted on the website, but in my opinion this one is different enough to deserve its own space.  Currently, I'm working on a self-paced online course on edX called ANUx: The Greatest Unsolved Mysteries of the Universe. The course seems to be a great introduction to aspiring astrophysicists, and does a great job of explaining and testing the core concepts.  I've read many articles that talk about the relevance of these courses on a CV/Résumé, and most come to the conclusion that it is "better than nothing", or it is simply "coursework on a CV/Résumé.  My question is, would completing a sequence of online courses related to the same material be more appropriate to be included in a CV? For example, Australian National University is offering 4 core courses on Astrophysics (The Greatest Unsolved Mysteries of the Universe, Exoplanets, The Violent Universe, and Cosmology). For those interested, you might find this useful:   These four courses together form a single certification in Astrophysics. Anyone can complete a single course and list them on their CV. But, completing 4 courses in the same subject shows a dedication towards learning, and also self-motivation. Also, the one who completes these doesn't risk résumé padding because the 4 courses would form one point on a CV, not two.


How to Install AMD ATI Radeon Graphics HD 6770M

Please help me install my AMD ATI Radeon Graphics HD 6770M on Ubuntu 13.04 64bit.  I have Hybrid Graphic card:  AMD ATI Radeon Graphics HD 6770M + Intel HD Graphics 3000  My laptop model: HP Pavilion DV6 6050EE  Hardware is listed as supported here:   The laptop fan is always running.


Prove every continuous $f$ can be written as $g-h$ where $g,h$ are continuous, non-negative functions

let $f$ be a continuous function.  I want to show that $\exists$ continuous non-negative functions $g$ and $h$ such that $f = g - h$.  My attempt: define  $$g(x) =  \begin{cases} f(x), & \text{for $x$ such that $f(x)>0$} \\ 0, & \text{for $x$ such that $f(x)\leq 0$} \end{cases}$$ and  $$h(x) =  \begin{cases} 0, & \text{for $x$ such that $f(x)\geq0$} \\ -f(x), & \text{for $x$ such that $f(x)<0$} \end{cases}$$ The trouble I was having was in showing that $g$ is in fact continuous.  This was what I tried:  let $a \in \mathbb{R}$.  Suppose $a$ is such that $f(a)>0$.  Then since $f$ is continuous, $\exists \delta_0 >0$ such that $\forall x: |x-a|<\delta_0 \implies f(x)>0$.  Then within this delta interval, $g(x)=f(x)$ and so it can be shown that $\lim_{x\to a}g(x)=f(a)=g(a)$. Hence $g$ is continuous for $a$ such that $f(a)>0$  How do I finish off?  I think I'm most confused about showing continuity for piecewise functions like these.


How do you loop through currently loaded assemblies?

I've got a "diagnostics" page in my ASP.NET application which does things like verify the database connection(s), display the current appSettings and ConnectionStrings, etc.  A section of this page displays the Assembly versions of important types used throughout, but I could not figure out how to effectively show the versions of ALL of the loaded assemblies.  What is the most effective way to figure out all currently referenced and/or loaded Assemblies in a .NET application?  Note: I'm not interested in file-based methods, like iterating through *.dll in a particular directory.  I am interested in what the application is actually using right now.


Plural or singular subject-verb agreement

My question is in regards to the sentence below:  Take advantage of free editing tools like Grammarly, which helps pinpoint small typos, or Hemmingway App, which shows you how to increase readability.  Would it be "which helps/which shows" or "which help/which show"? I'm leaning towards the former (as written in the sentence), but am wondering if it might be the latter, considering I'm talking about "free editing tools," plural.


maximum server memory setting in SQL Server

Just had a memory issue on a 64GB of RAM machine with SQL Server 2012 SP2. 3 running db engine instances, each limited to 16GB (16384). But noticed in Task manager that sqlservr.exe was at over 30GB memory for one of them.  What is the cause ? And is there any way to see what's eating up the RAM, next time it happens ?  Can anyone explain if there's any way to limit the memory used by one instance, besides the "Maximum server memory" setting ?


How can i print a database query to a javascript array?

I want to display some information in a  and get the information out of the database with these code:  $query = db_select('location', 'l')     ->condition('l.lid', 0, '<>')     ->fields('l', array('country'))     ->range(0, 50);  $result = $query->execute(); $arr = [];  while($record = $result->fetchAssoc()) {       $arr[] = $record;        } print_r($arr);   For the fields i use the location modul in Drupal 7 and i get these array:   Array (      [0] => Array (          [country] => de      )      [1] => Array (          [country] => de      )      [2] => Array (          [country] => fr      )  )   But, how can i take out these information, count the countries and display it as a javascript display like: var gdpData = { "de": 2, "Fr": 1, ... }; for the jvector map?


How do I Jailbreak my iPhone 5. It is running the latest supported release of iOS (10.3.3).


echo huge text giving arument list too long error

Struggling with outputting huge text (around 500 KB) to a file on linux. Text contains spaces, special characters and other.... Getting error /bin/sh : argument list too long  #!/bin/bash txt="---huge text separated by line and containing special characters---" echo $txt   or  #!/bin/bash txt="---huge text separated by line and containing special characters---" echo $txt >> filename.txt


How to return back Ubuntu 18 default GNOME desktop?

After thousands Gnome Tweaks options changing and hundreds Extensions i want to return back my Desktop back to default view. I mean get back panel, dash, apps menu, hot corners and shortkeys.


\documentclass{article}  \usepackage{graphicx}  \begin{document} \begin{table}[h!] % \resizebox{\textwidth}{!}{% \begin{tabular}{|p{1cm}*{4}{|p{\dimexpr(\textwidth-1cm)/4\relax}}|}%{|l|l|l|l|l|} \hline \textbf{Contenidos} &\textbf{Criterios Evaluaci\'on}& \textbf{Est\'andares Aprendizajes} &\textbf{Est\'andares B\'asicos} &\textbf{Competencias} \\  \hline Movimiento   &  Justificar el car\'acter relativo del movimiento y la necesidad de un sistema de referencia y de vectores para describirlo adecuadamente, aplicando lo anterior a la representaci\'on de distintos tipos de desplazamiento  &  Representa la trayectoria y los vectores de posici\'on, desplazamiento y velocidad en distintos tipos de movimiento, utilizando un sistema de referencia & blabla & CMCT, CAA \\ \hline  Velocidad instant\'anea y velocidad media & Distinguir los conceptos de velocidad media y velocidad instant\'anea justificando su necesidad seg\'un el tipo de movimiento   & a) Clasifica distintos tipos de movimientos en funci\'on de su trayectoria y su velocidad. b)Justifica la insuficiencia del valor medio de la velocidad en un estudio cualitativo del M.R.U.A, razonando el concepto de velocidad instant\'anea.   & blablabla   & CMCT  CAA \\ \hline   Aceleraci\'on & Expresar correctamente las relaciones matem\'aticas que existen entre las magnitudes que definen los movimientos rectil\'ineos y circulares  & Deduce las expresiones matem\'aticas que relacionan las distintas variables en los M.R.U., M.R.U.A., y M.C.U., as\'i como las relaciones entre las magnitudes lineales y angulares.  &  blabla   & CMCT\\ \hline  Movimientos rectil\'ineo uniforme & Resolver problemas de M.R.U., M.R.U.A., y M.C.U., incluyendo movimiento de graves, teniendo en cuenta valores positivos y negativos de las magnitudes, y expresando el resultado en unidades del SI.   & a) Resuelve problemas de movimiento rectil\'ineo uniforme (M.R.U.), rectil\'ineo uniformemente acelerado (M.R.U.A.), y circular uniforme (M.C.U.), incluyendo movimiento de graves, teniendo en cuenta valores positivos y negativos de las magnitudes, y expresando el resultado en unidades del SI. b) Determina tiempos y distancias de frenado de veh\'iculos y justifica, a partir de los resultados, la importancia de mantener la distancia de seguridad en carretera. c) Argumenta la existencia de vector aceleraci\'on en todo movimiento curvil\'ineo y calcula su valor en el caso del movimiento circular uniforme.    & With IM graph should start higher, converging into without IM towards expiry.   & CMCT CAA\\ \hline   Movimiento rectil\'ineo uniformemente acelerado & Elaborar e interpretar gr\'aficas que relacionen las variables del movimiento partiendo de experiencias de laboratorio o de aplicaciones virtuales interactivas y relacionar los resultados obtenidos con las ecuaciones matem\'aticas que vinculan estas variables. & a) Determina el valor de la velocidad y la aceleraci\'on a partir de gr\'aficas posici\'on-tiempo y velocidad-tiempo en movimientos rectil\'ineos. b)Dise\~na y describe experiencias realizables bien en el laboratorio o empleando aplicaciones virtuales interactivas, para determinar la variaci\'on de la posici\'on y la velocidad de un cuerpo en funci\'on del tiempo y representa e interpreta los resultados obtenidos.   & blablabla   &  CMCT, Cd, CAA\\   \end{tabular}% % } \caption{Perfil Competencial.}  \label{table:PerfilCompetencial} \end{table}   \end{document}


Making youtube fullscreen will freeze Unity (the whole desktop)

I never had this problem until today. When I watch a youtube video everything is fine, until I make the video fullscreen. It actually continues to play perfectly when fullscreen, but when I then exit fullscreen my sidebar and topbar are gone, and the screen is just frozen. Also my cursor is gone. It does seem to respond to ALT-F4, but it takes about 15 seconds to even close the window, and after that everything is unusable (basically frozen). What's strange though, when I re-enter fullscreen after exiting (and unity being frozen) the video plays perfectly still.   For now my workaround is opening tty1 and executing pkill -u username which logs off the user. I have looked at /var/log/syslog but it seems to be empty.  Is this freezing a common problem, if not, how can I make steps to fix this?    EDIT with specs:  I'm on a simple Samsung laptop with:  Ubuntu 14.10 64-bit,  Intel® Core™ i5-3210M,  Intel® Ivybridge Mobile (So integrated intel hd graphics 4000),  8GB ram. I don't think i've ever changed my video drivers, but it's reported as i915.  Ubuntu is up to date, and my browser is Chrome 40.0.2214.91 (64-bit). (Will test out now with firefox, but already posting this because my pc might freeze again)     EDIT 2: It doesn't freeze on Firefox. Will try reinstalling chrome now... EDIT 3: Reinstalling chrome didn't help. Will try chrome 32-bit too now...


how to replace multiple strings together in Oracle

I have a string coming from a table like "can no pay{1},as your payment{2}due on {3}". I want to replace {1} with some value , {2} with some value and {3} with some value .  Is it Possible to replace all 3 in one replace function ? or is there any way I can directly write query and get replaced value ?   I want to replace these strings in Oracle stored procedure the original string is coming from one of my table I am just doing select on that table   and then I want to replace {1},{2},{3} values from that string to the other value that I have from another table


I'm trying to create a points in the middle of polylines. The data is now in the form of shapefile. Is there an easy way to do this?


Can you use a plural of Life as Life's when using as "Life's Boat" or "Life's Boat's"

Hi I am trying to understand the if it is ever possible to use Life's. I know technically the plural for the word life is Lives but I am still curious.   Sorry maybe I am not to clear on it. I would use the term Life's Boats not in the typical manner of a Life Boat. But in the descriptive manner for a boat that fits every aspect of life.


Are the hats available on per-site metas?

I have voted on a number of posts, both on main sites and on their per-site meta's. This has resulted in the Sufganiyot hat for the main sites, but not for the per-site metas.  From a discussion in the Tavern on the Meta, it seemed that one did not get the secret "Hairboat's revenge" hat for activities on a per-site meta, either.  A  was asked in 2013, but not answered.  So - does this mean that only activity on the main site will earn you hats?


Is an ability score improvement better than crossbow expert in combination with extra attack?

i am making a level 5 ranger with 16 dex, a normal longbow shot would be:  1d8 + 3 (dex) * 2(extra attack)  I was wondering if my level 4 trait should be crossbow expert or a ASI.  with crossbow expert i can use the heavy crossbow with extra attack:  1d10 + 3 * 2  with ASI and a longbow:  1d8 + 4 * 2  what choice would be better for DPR?


What is the Javascript equivalent of writing 'If not"

Python programmer here.   I don't know how to write this. I tried using 'if !in' and '!if in', but I don't know how. Tried to Google it but got no results.


I just upgraded from Debian Squeeze to Wheezy and mysql stopped working. Blindly following  without any understanding of what I was doing, I removed ibdata1 in an attempt to solve the problem. Unfortunately, it was only after doing so that I realised this was a terrible idea, especially as I was missing this option in my.cnf: innodb_file_per_table = 1.  I found the cause of my problem and now my DB server is working again. However, now, I am left with a mess. My problem is that some (but not all) of my tables, which appear when I do show tables;, are giving me this error:  ERROR 1146 (42S02): Table 'db.tablename' doesn't exist   I have since enabled the setting innodb_file_per_table = 1 (perhaps this was a bad idea?) and before I came to realise that I probably didn't have a chance, I was trying out the innodb_force_recovery flags.  I'm fairly confident that these tables are gone for good so I'm trying to restore my database from earlier dumps. The problem is that the import breaks on these tables that "do but don't" exist. I have tried dropping the database before doing the import but there are clearly some other files lying around. Needless to say I'm reluctant to do any more speculative deletion of files...  Any advice on how to clean up this mess?


Is Overchanneling announced before or after determining if a spell hits?

School of Evocation Wizards in 5E gain Overchannel at level 14. It states:     When you cast a wizard spell 1st through 5th level that deals damage, you can deal maximum damage with that spell. The first time you do so, you suffer no adverse effect.    If you use the feature again it gets progressively worse.    Do you have to announce that you are using Overchannel before or after determining if a spell hits or the target fails their save?  Something like: First, declare "I'm Overchanneling Chromatic Orb" (or hopefully something more flavorful)... Then, if it hits, it deals max damage but if it misses the Overchannel is wasted.  Alternatively, can you wait to see if the Chromatic Orb hits and then say, "Seeing its effectiveness I channel all of my energy to enhance it -- Overchanneling" (or again some other flavorful speech)


Discriminant of a monic irreducible integer polynomial vs. discriminant of its splitting field

Let $f\in\mathbb{Z}[x]$ be monic and irreducible, let $K=$ splitting field of $f$ over $\mathbb{Q}$. What can we say about the relationship between $disc(f)$ and $\Delta_K$? I seem to remember that one differs from the other by a multiple of a square, but I don't know which is which. On a more philosophical note: why are these quantities related at all? Is there an explanation for why they can be different, i.e. some information that one keeps track of that the other doesn't?


C++ - static Template no matching function

Before posting this, as I know It's may be a common problem, I've already read posts on StackOverflow and read about templates but I'm still not able to solve my problem.  I have a class Tool with one function inside.  .h file  class Tools{  public:     template<typename T>     static std::string tostr(const T& t);    };   .cpp file  template<typename T> std::string Tools::tostr(const T& t) {     ostringstream os;     os<<t;     string res= os.str();     return res; }   The purpose of this function is to transform a number into a string (I know that the c++ 11 has already a function who does that but I would like to learn and to be more familiar with the concept)  In a another class, I use the function as the following:   string resStr= Tools::tostr<string>("7.12341");   But I got this error:     error: no matching function for call to 'Tools::tostr(float)'   Then I also tried this line:   string resStr= Tools::tostr("7.12341");   And I got also an error :     error: undefined reference to `std::string Tools::tostr(float   const&)'   I don't understand because I did the following verifications:   I defined static in the .h file the function I put the template<typename T> to define the template (I also tried with template<class T>) The return type string is well defined The class Tool.h is well included in the class when I call the function   Any ideas ?  Thanks you all.


Which is correct  it is not that big a deal  or  it is not that big of a deal  Why does "of" need to be added ?


I will be arriving in Sweden for 2 days, followed by 2 days in Denmark and finally 5 days in Germany.   With that itinerary, I should apply Schengen at German Embassy, however, there are no time slots available for my appointment before I leave.   What should I do? Apply to the Sweden Embassy instead?


I need help in black body radiation. I know quantitative equations of black body radiation. what I need to know is what is happening inside a black body at atomic level. What I mean is, if light photons is colliding with electrons, then electron is going to the next energy level and then, when come back to the original level it emits the energy. From black body theory we know that if we heat up a black-body with infrared light up to 5000k it will emit all short of visible light. That is colliding by low energy photon we get high energy photon. Doesn't it disobeys the rule that a photon's energy is completely taken by an electron while jumping to high energy level and given off totally when coming back. Then how more low energy photon can produce high energy photon? please explain.


What happens to garbage aboard the Enterprise D?

I'm curious about how trash disposal is handled aboard a starship. Specifically the difference (if any) between one with a replicator or not.   Is there any mechanism to turn the trash back into energy, reverse-replicate so they can recycle that material? Or do they just shoot it our into space?


Is the duplicate answer flags raised for exact copies of answers of different users?

In the  there are flags for duplicate answers. For users without the rep, this is what it looks like:      In  Martijn states that those flags are system generated to help in detecting undesired behaviour. There is also  that guides how to handle those flags.   Looking at the current flags I conclude that answers that are an exact copy of the same user are detected. Shouldn't that same flag also be automatically raised if an exact copy of an answer by another user is found? I assume 'almost' exact copies will generate to much false positives?


Marketing Cloud Connect: impact of changing or refreshing core Salesforce org

I have a connection between Salesforce sandbox and Marketing Cloud instance. There are some journeys configured in Journey Builder. In the documentation I see  Disconnecting does the following:  Removes the connection between your Marketing Cloud account and Sales or Service Cloud org. Removes the Salesforce system user’s credentials and resets the connection at the account level. Removes user mappings in the disconnected business unit and synchronized data extensions. Cancels tracking subscriptions. Any tracking for previous sends is not pushed to the previous Sales or Service Cloud org. Tracking is not affected in the Marketing Cloud   I have two questions. The first question is: Will work my journeys and other configured functionality if I disconnect my Sandbox org, connect Production org and configure synchronized data extensions? Or I need to create all my functionality again? The second question is: Will work my journeys and other configured functionality if I refresh Sandbox org?


please look at below output  [     {         "id": "8",         "title": "windows",         "subtitle": "win"     },     {         "id": "8",         "title": "windows",         "subtitle": "win"     } ]   I only want to display  [     {         "id": "8",         "title": "windows",         "subtitle": "win"     } ]   how can i do this? I have tried array_unique() but it is not giving me proper results.  Thanks in advance! please help me.


Will my troops being researched in the laboratory keep going if I upgrade my laboratory? Or will they stop?


AFAIK the correct grammar for "speak slow" is "speak slowly" (slowly being an adverb). Please correct me if I am mistaken.  But in daily life I have not heard anyone saying "Speak slowlier".  I think I heard folks saying "Speak slower" but I also think it is incorrect.  Which is the best or correct form to convey the message?  Could that be the longish "Speak more slowly?"


Proving ${n \choose p} \equiv \Bigl[\frac{n}{p}\Bigr] \ (\text{mod} \ p)$

This is an exercise from Apostol, which i have been struggling for a while.  Given a prime $p$, how does one show that $${n \choose p} \equiv \biggl[\frac{n}{p}\biggr] \ (\text{mod} \ p)$$ Note that $\Bigl[\frac{n}{p}\Bigr]$ denotes the integral part of $\frac{n}{p}$.  I would also like to know as to how does one try to solve this problem. Well, what we need is to show is whenever one divides ${n \choose p}$ by a prime $p$ the remainder is the integral part of $\frac{n}{p}$.  Now, $${ n \choose p} = \frac{n!}{p! \cdot (n-p)!}$$ Now $n!$ can be written as $$n!= n \cdot (n-1) \cdot (n-2) \cdots (n-p) \cdots 2 \cdot 1$$  But i am really struggling in getting the integral part.


Subgroup of finite abelian group $G$ isomorphic to $G/H$

Let $H$ be a subgroup of a finite abelian group $G$. Show that $G$ has a subgroup that is isomorphic to $G/H$.  My approach: Let's try to prove by induction on $o(G)$.  If $o(G)=1$ then the result is obvious. Suppose it is true for all groups with order less than $n$.  Suppose that $o(G)=n$ and $H\neq \{e\},G$ because otherwise the result is trivial.  Let $x\in H$ s.t. $x\neq e$ and consider subgroup generated by $x$, i.e. $\langle x\rangle$ then $H/\langle x\rangle\leq G/ \langle x\rangle$. Note that $(G/\langle x\rangle)/(H/\langle x\rangle)\cong G/H$. Since $o(G/\langle x\rangle)<o(G)=n$ then by induction hypothesis there exists subgroup $\bar{K}\leq G/\langle x\rangle$ such that $\bar{K}\cong (G/\langle x\rangle)/(H/\langle x\rangle)$ $\Rightarrow$ $\bar{K}\cong G/H$.  Then I was trying to find subgroup of $G$ which is isomorphic to $G/H$ but no results. I've considered the surjective mapping $\pi: G\to G/\langle x\rangle$ which does give any useful results.  I would be very thankful if anyone can show how to complete my approach?


update pci.ids file to check for CUDA compatibility

I'm going through CUDA's documentation and following this page () to see whether or not my machine and distro can support it. To verify if i have a CUDA capable GPU, i had to enter this command      lspci | grep -i nvidia   upon entering this command i got no result, and i followed it up by entering this      update-pciids   ^^i got the following result upon entering the aforementioned command      update-pciids: /usr/share/misc/pci.ids.new is read-only   any ideas on how to verify the compatibility of my card with CUDA?


Prove equation with binomial coefficient

Prove $$\sum_{k=0}^s{\frac{\binom{s}{k}}{\binom{t}{r+k}}} = \frac{t+1}{(t+1-s)\binom{t-s}{r}} $$ for  $r + s \le t$


Understanding Hazard Function Values Exceeding 1

I keep running into problems in understanding hazard rates. I know, for example, that in a strict sense a hazard rate is not a probability and it is continually mentioned that because of this the hazard rate has no upper bound.   Am I right in understanding that hazard function values can be interpreted as instantaneous failure rates? Given this interpretation, I still have trouble seeing how this could exceed 1.  I've seen derivations of the constant hazard rate $\lambda$ for the exponential distribution, so I see that for $\lambda \geq 1$ my question seems to have an obvious answer. But even then, is $\lambda$ not techincally a rate? I know we often just simplify and say, for instance, $\lambda = 3$. But don't we really mean $\lambda = 3$ per 1000 or 3 per 100? And if that is the case, can we really say the hazard rate is exceeding 1 in this case?  If someone could provide alternative examples where $h(t)\geq 1$ or help me understand my misconception it would be much appreciated.


I don't know yet what database I'll use in the future - MySql, Postgresql, Sqlite3 or anything else. At the moment I'm using a database N.  What's more or less universal approach for storing latitude & longitude? Varchar? Or big integer? Or float?   Should I store them in 2 columns or one?


how to type in malayalam in ubuntu 17.04?

i could install malayalam language from system settings>language support. but then when i go to system settings>text entry, malayalam is not showing up in the "select an input source to add"


Why does amsrefs do a pagebreak after the header?

I am using the document class amsbook and generate the amsrefs bibliography by  \begin{bibdiv}   \begin{biblist}     \include{bibcode}   \end{biblist} \end{bibdiv}      Now, there is a page that only says Bibliography, and the first actual reference appears on the next page.   I have no idea how this problem occurs. Can anyone help out?


I have been copying from class text to a blade on Sharelatex, and it seems the teachers use the symbol (\!) a lot.  \sin\!\left(x\right)=\frac{-1}{\sqrt{2}} \cos\!\left(\frac{\pi }{12}\right)   Why do they need to use the symbol for exclamation mark(!) ?


Eigenvalues of an idempotent matrix can be $0$ or $1$

Let $A$ be an idempotent matrix and $c$ be an eigenvalue of $A$. Then there exists a nonzero vector $v$ such that     $Av=cv \Rightarrow A^2v=cAv \Rightarrow Av=c^2v \Rightarrow cv=c^2v \Rightarrow (c-c^2)v=0 \Rightarrow c-c^2=0 \Rightarrow c=0,1$     Is there something wrong with my proof?


I was tryng to track my scene. I made and image sequence then exported all the jpg pictures. To get tracing points I used the "Detect Features" option to create keyframes. When I was ready I pushed the button "Solve Camera Motion" And it displayed that: Atleast 8 trackers...  Can someone help me find out why it says that and could help me fix it? Video:


Why does the use of \begingroup, \endgroup negate the effect of centering in the MWE? The MWE below yields a left aligned figure (not desired), with subsequent text on the left (desired):  But if I remove the \begingroup, \endgroup, then things work as desired as far as the \centering goes, but then the subsequent text is also centered?  Question:  I thought the entire purpose of grouping was to localize the effect. So, what is the subtlety of grouping that results in this behavior? How do I keep the grouping, yet also have the centering?  I would like to ensure that any settings that are changed via the inserted figure are kept local to that figure.  Code: \documentclass{article} \usepackage{showframe} \usepackage{pgfplots}  %\usepackage{filecontents}% Commented to prevent overwriting myFig.tex \begin{filecontents*}{myFig.tex}     \def\YLabel{$f(x) = x^2 - x +4$}     \begin{tikzpicture}     \begin{axis}[ xlabel=$x$, ylabel=\YLabel]         \addplot {x^2 - x +4};      \end{axis}     \end{tikzpicture} \end{filecontents*}  \newcommand*{\InsertFigure}[1]{%     \IfFileExists{#1}{%         \begingroup%             \centering%             \input{#1}%         \endgroup%     }{}% }%  \begin{document}     \InsertFigure{myFig.tex}  \textbf{Text on left.} \end{document}


how to run HP9015 printer via USB in ubuntu 18

Using ubuntu 18.04lts here and trying to hookup a HP 9015 printer but not getting any results using USB cable.  have tried downloading HP 3.19.3 driver but it comes up with an error all the time.  Am lost on what to try next? Gary


Spotify not starting since updating to 15.04

Since updating to to 15.04 my spotify will not open. Any thoughts? I have tried the lib 11 solution but that has not worked


What was Gandalf's plan for getting the Ring to Mt. Doom?

I'm currently re-reading Lord of the Rings for the umpteenth time, and a question occurred to me.   When Gandalf hears from Faramir that Frodo and Sam were heading for Cirith Ungol, he is shocked. Obviously, he hadn't planned to take them that way if he had survived Moria. So, what was his plan? We know he couldn't have got into Mordor via the Morannon. Is there any clue anywhere of the route he had been planning to take to get to Mount Doom?


How can I tell the difference between early Magic: The Gathering card editions?

I have a few Magic: The Gathering cards whose editions I'm having trouble identifying. They are obviously from either Alpha or Beta, since they have black borders and the same design as the Unlimited edition, but how can I distinguish between both editions?


How do I get 0-padded numbers in {} (brace expansion)?

I'm trying to write a simple script to retrieve mem and swap usage from a list of hosts. Currently the only way I've been able to achieve this is to write 3 seperate scripts:  for a in {1..9}; do echo "bvrprdsve00$a; $(ssh -q bvrprdsve00$a "echo \$(free -m|grep Mem|/bin/awk '{print \$4}';free -m|grep Swap|/bin/awk '{print \$4}')")"; done > /tmp/svemem.txt; for a in {10..99}; do echo "bvrprdsve0$a; $(ssh -q bvrprdsve0$a "echo \$(free -m|grep Mem|/bin/awk '{print \$4}';free -m|grep Swap|/bin/awk '{print \$4}')")"; done >> /tmp/svemem.txt; for a in {100..218}; do echo "bvrprdsve$a; $(ssh -q bvrprdsve$a "echo \$(free -m|grep Mem|/bin/awk '{print \$4}';free -m|grep Swap|/bin/awk '{print \$4}')")"; done >> /tmp/svemem.txt   The reason for this is that the hostname always ends in a 3 digit number and these hosts go from 001-218 so I've needed to do a different for loop for each set (001-009, 010-099, 100-218). Is there a way in which I can do this in one script instead of joining 3 together?


Why aren't leftmargin and rightmargin values (in mdfdefinestyle) having any effect on my theorem box?

I changed the value of leftmargin and rightmargin below from 1 cm to 15 cm, but there is no output change. My theorem box remains with the same width.  \documentclass[a4paper,10pt]{book}  \usepackage{mdframed} \usepackage{amsmath} \usepackage{xcolor}  \mdfdefinestyle{definitionSty}{  backgroundcolor=blue!20,  linewidth=1pt,  innerleftmargin=1ex,  innerrightmargin=1ex,  innertopmargin=0.5ex,  outerlinewidth=2,  outerlinecolor=blue,  innertopmargin=\topskip,  splittopskip=\topskip,  skipbelow=\baselineskip,  skipabove=\baselineskip,  ntheorem,  leftline=true,  rightline=true,  leftmargin=1cm,  rightmargin=1cm,  frametitlerule=true,  frametitlerulecolor=green,  frametitlebackgroundcolor=yellow,  frametitlerulewidth=2pt}  \newcounter{definitionCounter}[chapter] \numberwithin{definitionCounter}{chapter}  \newmdtheoremenv[style=definitionSty]{definition}[definitionCounter]{Defini\c{c}\~{a}o}  \begin{document}  \begin{definition}{Medição, grandeza e medida}   \begin{itemize}   \item medição: \textit{processo} pelo qual se mede algo   \item grandeza: \textit{propriedade} quantificada por medição   \item medida: \textit{resultado} do processo de medição  \end{itemize}  \end{definition}  \end{document}


I love how Microsoft products have built-in customer feedback (click the smiley face) and wish I could do the same with Apple products, especially macOS.  What is the fastest way to provide feedback on macOS features and bugs?


Possible Duplicate:          I have recently read about  and , and why physicists think it must exist (dark matter: mass of galaxies are far bigger than expected, its gravitational effect on visible matter; dark energy: the force that causes the accelerated expansion of the universe).  I however don't find the case for dark matter or dark energy particularly strong, and I have a couple of questions regarding this:   Why do so many physicists accept the existence of dark matter and dark energy?  Are there any good alternative theories to explain these phenomena without the use of dark energy and/or matter?  Is the field of study regarding dark matter and dark energy (and possible alternative explanations) 'alive' or not so much? I still am young, but I find this interesting and if it has good prospects (like for example string theory does) I might like to work in it in the future.


The link  says that I should use qtmultimedia 5.0.  Is there a tutorial or example that I can use that shows how to do it?


"There is a number of" versus "There are a number of"

As a native speaker, this sounds correct:     There are a number of cows in that field.   whilst this sounds totally wrong:     There is a number of cows in the field.   But arguably the second form might be technically correct, because "a" indicates "a number" is singular.  Some examples support this hypothesis: "There is a collection of cows in that field."  Whilst others contradict it: "There are a lot of cows in that field."  Can you confirm which is correct, and is there a good justification which can be generalised to other situations?


What set theory axioms do I need to believe in uncountable ordinals?

Math people:  The title is the question. I am convinced that uncountable sets exist, thanks to Cantor's diagonal proof.  It is not intuitively clear to me that uncountable ordinals or cardinals should exist.  What axioms of set theory are needed to accept their existence?  I think I have read here that the Axiom of Choice is not necessary.  I am reluctant to accept as "true" any theorems that rely on the Axiom of Choice.  EDIT: This question may be a duplicate: I just found  .  I apologize if this is so.


I'd like only to replace the data of the href-attribute in an a-element. Can this be done with a regex?  Example  8196887620   I imagine you'll have to make a regex for  then apply another regex for the href and then another to only grab the data between the ". Is that correct or is there a better way to do this? Maybe a library in python?


SQL to display both month and year between two dates

I have four variables CurrentMonth, CurrentYear, Month, year. I want to have a SQL statement which displays all the months and years between (Month,Year) to (currentMonth,CurrentYear). The below displays months but I need months and year and I dont have dates but only month and year of start and End.  DECLARE @StartDate  DATETIME,         @EndDate    DATETIME;  SELECT   @StartDate = '20110501'                 ,@EndDate   = '20110801';   SELECT  DATENAME(MONTH, DATEADD(MONTH, x.number, @StartDate)) AS MonthName FROM    master.dbo.spt_values x WHERE   x.type = 'P'         AND     x.number <= DATEDIFF(MONTH, @StartDate, @EndDate);


How can I do development on my Android device?

I have a pretty long commute to work and own an android phone. I figure it would be nice to do some simple programming on the way. I'm not picky on which language to code on. I usually have an internet connection on the train.  I've been looking through the android market but haven't found any apps that offer a "development environment" or an editor with a compiler. Is any development ON the Android possible? Does an app for this exist?


How to remove element from a list using other list?

I have two list a =[72,82,955,55,.....] and b=[5,7,8...] I want to remove the element from a. list b specifies the indexes from where elements to be removed.


Issue with addition decimal values in java script

I'm not getting the correct value if i add 2 decimal values in java script,  if i add 19.67 and 34.70 i should get 54.37 instead i'm getting the value 54.370000000000005. Can anyone help me out, Thank you. below is my code  <script type="text/javascript">     $(document).ready(function () {         $('#btn').click(function () {             var a = 19.67;             var b = 34.70;             var c = parseFloat(a) + parseFloat(b);             alert(c);         });     }); </script>


Number of functions from naturals to reals (${\aleph_1}^{\aleph_0}$)

The number of functions from $\mathbb{N}$ to itself is $|\mathbb{N}|^{|\mathbb{N}|}={\aleph_0}^{\aleph_0}=\aleph_1$. The number of functions from $\mathbb{R}$ to itself is $|\mathbb{R}|^{|\mathbb{R}|}={\aleph_1}^{\aleph_1}=\aleph_2$. Finally, the number of functions from $\mathbb{R}$ to $\mathbb{N}$ is $|\mathbb{N}|^{|\mathbb{R}|}={\aleph_0}^{\aleph_1}=\aleph_2$. My question is whether the number of functions from $\mathbb{N}$ to $\mathbb{R}$ ($|\mathbb{R}|^{|\mathbb{N}|}={\aleph_1}^{\aleph_0}$) is $\aleph_1$ or $\aleph_2$. Thanks! EDIT: Please note that I assume the generalised continuum hypothesis.


Would a PC with no or limited ability to speak (like a character born deaf or mute) be able to use spells with Verbal components?


How can I check if my SQL update has gone through?

Here is my prepared statement   $stmt = $db->prepare("UPDATE user SET :property=:value WHERE `id`=:id");  $stmt->execute([':property' => $property, ':value' => $value]);  $row = $stmt->fetchAll(PDO::FETCH_ASSOC);   How can I quickly verify that the query has gone through successfully?  I was thinking maybe an if() around the execute part?


If I take the Magic Initiate feat and choose a different class, but pick a spell that's also on my class's list, can I cast it using spell slots?

If I take the Magic Initiate feat and choose a different class's spell list, but pick a spell that's also on my class's spell list, can I cast it using my class's spell slots?  I have read this question and answer:   If a Druid takes the Magic Initiate feat, choosing the Cleric list, and takes a spell that's on both lists (such as Healing Word), can they cast that shared spell taken from the Cleric list with their class's spell slots?  The following leads me to think this is subtly different: the previous question dealt with a wizard taking a spell that was not a wizard spell. It was Not On His List. The Druid is taking a Druid spell off the Cleric list; it is still a Druid spell and available for the Druid to prepare.


TeXstudio - Make recognition of bibliography changes work with output_directory parameter

I have a problem regarding TeXstudio (on a Windows machine, using MiKTeX) and the output_directory parameter of biber. I changed this parameter together with the pdflatex parameter aux-directory, so that the entries in the configuration menu looked like this:   pdflatex.exe -synctex=1 -interaction=nonstopmode -aux-directory=temp %.tex biber.exe  --output_directory=temp %   This worked great so far. All the aux and biber processing files were stored in the subfolder "temp". Today though, I noticed that some TeXstudio specific functionalities are missing:  If I include a new entry in my bib-file, the program does not recognize the change. That means, no new entries are suggested through the auto-complete feature. Additionally, the compiling process after pressing the F1 key does not include biber compilation.  If I set the preferences back to normal, everything works fine again. Does anyone know how it is able to use these features, but with the possibility of a tidy folder structure?


How do I represent the following equations

I am having trouble drawing the right hand side. Any ideas?


Linux: What is the right way to configure the HOSTNAME directive in /etc/sysconfig/network?

There's a (quiet) argument between me and my boss in regard to the right way to configure HOSTNAME directive in /etc/sysconfig/network file:  As far as I know, in the HOSTNAME directive you should specify the machine host name and not fully qualified domain name as my Boss says.  Why do I think that this is how it's supposed to be?  Because when you run:  hostname   The output should be your machine's host name and when you run:  hostname -f   The output should be hostname.dns.suffix  So in most servers in the production environment the /etc/sysconfig/network file is configured with HOSTNAME=FQDN and when you run hostname you get FQDN and I would like to change it to hostname rather than FQDN.  So now my boss wants a proof in regard to it but when I Google about it, I see in some sites that it's ok to set it as FQDN and in some it says that it must be only hostname.  In  they say it should be configured with FQDN but in  they say it should be configured with just hostname.  So my question is, what is the right way to configure HOSTNAME in /etc/sysconfig/network?


How to calculate pressure using flow rate and pipe guage

On my farm I have a high pressure spring coming from the ground.it exits the ground from a 1 & 3/4" pipe.the water flows at a constant rate of 1 gallon per second (60 GPM.) Is it possible to approximately calculate the head or psi from these figures. I would like to use this spring to power a small water turbine but am unable to calculate head as the water comes upwards under pressure and if psi is calculated, how can that be converted to a 'metres head' number which most turbines are rated in. Many thanks


Prove that the set of all $n \times n$ orthogonal matrices is a compact subset of $\mathbb{R}^{n^2}$.   I don't know how it can be done. Thanks.


I just installed Ubuntu Gnome 16.10 on my Acer Inspire M laptop but it could not detect the wireless card. I found my earlier post:     but it did not completely help me here.  Upon trying:  sudo dpkg -i *.deb   I get:  dkms depends on gcc; however: Package gcc is not installed. dkms depends on make | build-essential _ dpkg-dev; however Package make ... is not installed.   The results of   sudo lshw -class network   are:      *-network                         description: Network controller        product: BCM4352 802.11ac Wireless Network Adapter        vendor: Broadcom Limited        physical id: 0        bus info: pci@0000:04:00.0        version: 03        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: driver=bcma-pci-bridge latency=0        resources: irq:18 memory:b0600000-b0607fff memory:b0400000-b05fffff   *-network        description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0.1        bus info: pci@0000:05:00.1        logical name: enp5s0f1        version: 14        serial: c4:54:44:69:85:14        size: 10Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8411-2_0.0.1 07/08/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s        resources: irq:45 ioport:3000(size=256) memory:b0704000-b0704fff memory:b0700000-b0703fff   The results of   lsusb   are:  Bus 001 Device 002: ID 8087:8000 Intel Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 011: ID 0781:5575 SanDisk Corp.  Bus 002 Device 010: ID 04f3:0085 Elan Microelectronics Corp.  Bus 002 Device 003: ID 04ca:200a Lite-On Technology Corp.  Bus 002 Device 002: ID 04f2:b3f6 Chicony Electronics Co., Ltd HD WebCam (Acer) Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   and the results of   lspci   are:  00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) 00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09) 00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04) 00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04) 00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4) 00:1c.2 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4) 00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4) 00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04) 04:00.0 Network controller: Broadcom Limited BCM4352 802.11ac Wireless Network Adapter (rev 03) 05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01) 05:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 14)


Which File-system to install on external device to store files from both Win10 and Mac?

I have a 4 TB USB3 external storage device from WD. I need to store and read files on this device from BOTH Windows 10 x64 and from Mac Catalina. Which is the best FILE-SYSTEM to format this device for this purpose?


I'm trying to deform a "chain" to follow a NURBS curve, but there's a weird inversion at the bottom of the loop.     I've tried various applies, scales, subdivisions, but the basic issue remains.  Thanks for any insights, I'm stumped.


Is it true that if $3|x$ and $3|y$ and $3|z$ then $3|(x+y+z)?$ If yes how do I prove it? If not how do I work through a problem like this?