SOLVED: How can you set high priority on "games" permanently?

I had question to ask, and is if there is a way to set steam games (more specifically the games themselves, that shows up as launchers or releases; example: payday2_release) in high priority permanently, or at least to set it on high priority every time i launch the game without having to manually open the system monitor.


About $ \lim_{x\rightarrow 0}\frac {\sin x}{x} = 1$

I do not understand how $$\lim_{x \to 0} \frac{\sin x}{x} = 1$$ As if $$ x = 0, \frac{\sin (0)}{0} = \frac {0}{0} $$  So if someone could explain this I would appreciate it! Thanks!


Is it necessary or worth to use post id in url structure?

Im using wordpress . I have seen many websites that use combination of numerical id and slug (postname) on their URL Structures ( hybrid URL ) : site.com/id/post-name and similar structure for their products like : site.com/product/id/product-name I think they are using this structure to make their website routing system 100% failure free ( in cases the url get truncated or something like this) Now ,I'm thinking to change my website URL structure to this combination . but i have doubt that am i really thinking right and making a good decision . considering I’m using wordpress, and sometimes i have none ascii and international words in my urls, Is it really worth to have ID in URls ? Is it useful enough to accept the Presence of id in urls instead of simple and beautiful ? I'm very Confused about this topic , so please guys help me to make the right decision . Thanks in advance


How to find the number of subgroups of $S_4$ and list them?   For order $1$ it is {${e}$}, order $2$, we will consider   $<(12)>$, $<(23)>$, $<(34)>$, $<(13)>$, $<(14)>$, $<(24)>$, for order $3$ we will consider $<(123)>$, $<(124)>$, $<(143)>$, $<(234)>$, for order 4 we will look at $<(1234)>$, $<(1324)>$, and so on. $A_4$ will also be there. I don't think these will be all ...


How/Where to discuss a best design strategy?

I'm primarily a web developer (Cold Fusion / HTML, JS, CSS etc).  I want to develop a part of my application that will be written in coldfusion. It's a scoring system and, much like this site (coincidentally), certain privileges are unlocked at certain thresholds.  The system will be written in cold fusion, but the cf community isn't very large, so I'd honestly welcome a bit more feedback on the method to do it. I can handle the code itself.  Would such a question perhaps belong in Programmers?  I'm not sure that it really counts as a 'best practice' question, since I'm not talking about things like properly naming variables, or thread-locking, or table schema.  I do have a few ideas in mind, but this isn't the site for going into question details. I know that the best questions show effort on the part of the asker and not just a "Do this for me!", so when I ask, wherever I ask, I'll list out the ways I see for doing it and the pros and cons that I see for each.  So, while I provided details for the question I want to ask, this question boils down to: Where should a person ask about the best method to achieve something?


Why "./" is used to run ".sh" scripts in Unix?

I am executing a .sh script today. It is executed with prefix "./.sh,I am a bit confuse because it is also executed without ./.but why this is required to use ./  Could you please explain me that why ./ is used to run .sh scripts?


How to use a variable type in angle brackets in C#

I'm working on a database abstaction for mongodb in .NET Core 2.1. For this I use the mongo driver from Nu-Get.   Now I'm working on a simple generic extension method to include referenced objects in a similar way like other database abstractions for relational databases do that.  The following example shows how I plan to get a customer collection and include the  related job offers:  //get the customer collection and include the related job offers var result = Database.Customers.Find(x => x.Id != null).Include(x => x.JobOffers);   And this is the code of the Include extension method:  public static IList<T> Include<T>(this IFindFluent<T, T> result, Expression<Func<T, object>> filter)     {         var propertyName = filter.Body.ToString().Split(".")[1];         var idFieldName = typeof(T).Name.Substring(0, typeof(T).Name.Length) + "Id";          var list = new List<T>();         foreach (dynamic item in result.ToList())         {             try             {                 var type = item.GetType().GetProperty(propertyName).PropertyType.GenericTypeArguments[0];                 var builder = Builders<JobOffer>.Filter;                 var queryFilter = builder.Eq(idFieldName, (string)item.Id);                 var prop = item.GetType().GetProperty(propertyName);                  var relatedItems = _database.GetCollection<JobOffer>(propertyName).Find(queryFilter).ToList();                 prop.SetValue(item, relatedItems);              }             catch (Exception e)             {              }             list.Add(item);          }         return list;     }   So far it works but as it is now it just works for the object with the type JobOffers and it should work for any type of objects.   So my Question is: In the try {} section there is a variable type where the needed class is stored as Type.  How can I use this type in the angle brackets? I 'd like to do something like this:  var type = item.GetType().GetProperty(propertyName).PropertyType.GenericTypeArguments[0]; var builder = Builders<type>.Filter; var relatedItems = _database.GetCollection<type>(propertyName).Find(queryFilter).ToList();   But I get the error: type is a variable but is used as a type.  How am I suppost to solve this?


Is there a word for being addicted to words?

I don't know... I just thought it might sound really pretty, or "deep" in some way. I've been compiling a list of beautiful and rare words and I'm pretty sure I am addicted to words so I thought "why not?". I would appreciate an answer, and thank you in advance!


Does voting count work on mobile site of stackoverflow?

I have gotten the  on Stack Overflow, and I visited a lot of downvoted and upvoted posts on Stack Overflow on the mobile site, but I can't see number of upvotes and downvotes.  Does the mobile site not support it?


Fubini's theorem for series with dependent indices

As a part of a proposition about power series that I am trying to prove I have to show that  $$ \sum_{m=0}^{\infty} \left(\sum_{n=m}^{\infty} \frac{n!}{m!(n-m)!}(b-a)^{n-m}c_n\right)(x-b)^m = \sum_{n=0}^{\infty}c_n(x-a)^n$$  Proof: What I have done so far is to show that  $$\sum_{m=0}^{n} \frac{n!}{m!(n-m)!}(b-a)^{n-m}(x-b)^m = (x-a)^n $$  So the next idea is to use Fubini's rearrangement theorem for infinite series (I have also shown that the series are absolutely convergent). However, the theorem does not accomodate for dependent indices. Intuitively (using triangular summation), I think that the proper way to interchange series would be \begin{equation*} %\begin{array}{ll} \sum_{m=0}^{\infty} \sum_{n=m}^{\infty} \frac{n!}{m!(n-m)!}(b-a)^{n-m}c_n(x-b)^m = \sum_{n=0}^{\infty} \sum_{m=0}^{n}\frac{n!}{m!(n-m)!}(b-a)^{n-m}c_n(x-b)^m %\end{array} \end{equation*} and thus  $$=\sum_{n=0}^{\infty} c_n(x-a)^n$$ However, I do not know how to perform this step rigorously in case of infinite summation.


Did Snape create/discover the spell "Sectumsempra"?

Harry Potter and the Deathly Hollows:     "He lost his hood during the chase. Sectumsempra was always a   specialty of Snape's. I wish I could say I'd paid him back in kind,   but it was all I could do to keep George on the broom after he was   injured, he was losing so much blood."   I always thought that Snape discovered/created this spell. The spell was handwritten in the Half Blood Prince's textbook. I also thought I remembered reading it somewhere.   Also in the movie Snape criticizes Harry when he tries to use it against Snape and tells Harry, "You dare try to use my own spell against me?" This implies it's Snape's spell.  But the passage above implies that it was a prefered spell of Snape's as opposed to something he created.  Was this a generally known spell that Snape used, or was it something that he created?


I'm using XeLaTeX with the dblfnote package for two columns of footnotes and a modified footnote command to use letters instead of numbers. Currently my footnotes seem to be in a paragraph format, but I want them all aligned where the first line of text starts (aligned with text, not with the footnote marker). This is what it does currently:    I'd like it to behave like this, with the same indent it currently has inititally:  a Sed at urna vitae libero pulvinar aliquam. In hac    habitasse platea dictumst. b Curabitur luctus leo in nunc tempus, eu fringilla quam    porttitor. c Vivamus semper rhoncus nisl, vitae tempus tellus tris-   tique vel.   Here is a MWE:  % !TEX TS-program = xelatex \documentclass[11pt]{article}  \usepackage{fontspec} \usepackage{libertine} \usepackage[margin=1.25in]{geometry} \usepackage{dblfnote}  \newcommand{\cv}[2]{\textsuperscript{#1:#2}}  \makeatletter \def\@makefnmark{\hbox{\@textsuperscript{\itshape\@thefnmark}}} \renewcommand{\thefootnote}{\alph{footnote}} \makeatother  \begin{document}  \begin{center} {\huge Title} \end{center}  Lorem ipsum dolor sit amet, consectetur adipiscing elit.\footnote{Sed at urna vitae libero pulvinar aliquam. In hac habitasse platea dictumst.} Integer a eros quis nibh pharetra pellentesque. Mauris molestie purus ut arcu ullamcorper, ut mollis ligula molestie. Ut auctor et augue ac ultrices.\footnote{Curabitur luctus leo in nunc tempus, eu fringilla quam porttitor.} Nulla aliquam quis nunc et aliquet. Nullam eu ligula at leo scelerisque euismod.\footnote{Vivamus semper rhoncus nisl, vitae tempus tellus tristique vel.} Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin at eros at leo sagittis viverra.  \end{document}


Say I have a sequence that looks like this:  0 0 0 0 0 1 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0   In general terms, I am interested in determining when there is an over-abundance of 1's in close proximity.  Not necessarily in a row, but within a sliding window.  In this example, the 0's and 1's represent whether a system is stable or unstable at regular time intervals.  Currently, I don't have any fixed notion of what exactly should constitute a significant or meaningful change in the sequence from 0's to more 1's, I am trying to work that out from some exploratory analyses.  I appreciate that this is somewhat general - however, if anyone has any ideas as to what literature to look at I would be grateful.


What is the order of the Crisis on Earth X episodes in the Arrowverse?

There seams to be some crossover and I'm unsure of the order of which the episodes are supposed to be watched.


What am trying to run batch from developer console but getting System.StringException: Invalid id: SUPPLIER_LEVELS-LEVEL_2

i am trying to count account and contact record from campaign object by grouping by external unique field and created campaign account member junction object which has look up relationship with campaign and account .Below is batch class which sending me exception email  (Apex script unhandled exception by user/organization: xxxxxxxxxxxz7Tb/xxxxxxxxxxxCqPg Source organization: xxxxxxxtmhf (null) Failed to process batch for class 'BatchCountCampaignMember' for job id '7070S00000HnM0U' caused by: System.StringException: Invalid id: SUPPLIER_LEVELS-LEVEL_2   global class BatchCountCampaignMember implements      Database.Batchable<sObject>, Database.Stateful {          // instance member to retain state across transactions     global Integer recordsProcessed = 0;     public Map<Id,Integer> mapExternalIdToNumberOfRecord = new Map<Id,Integer>();     public  Set<String> setExternalIdsUniques = new Set<String>();      global Database.QueryLocator start(Database.BatchableContext bc) {         return Database.getQueryLocator(             'select Id,Campaign_External_Id__c,(Select Id,Campaign__c,Customer__c  from Campaign_Account_Members__r) '+             ' from Campaign');     }      global void execute(Database.BatchableContext bc, List<Campaign> scope){         // process each batch of records           Map<Id,Integer> mapAccountIdToNumberOfContact = new Map<Id,Integer>();         Set<String> setExternalIds = new Set<String>();         Set<Id> setAccountIds = new Set<Id>();         for(Campaign  objCamp : scope){             for(Campaign_Account_Member__c objCampaignAccountMembers : objCamp.Campaign_Account_Members__r){                 setAccountIds.add(objCamp.Campaign_External_Id__c);                   setAccountIds.add(objCampaignAccountMembers.Customer__c);             }            }                  List<Account> listAccounts = [Select Id,(Select id from Contacts) from Account Where ID IN : setAccountIds limit 50000];         for(Account objAccount : listAccounts){             if(!mapAccountIdToNumberOfContact.containsKey(objAccount.Id)){                 if(objAccount.Contacts.size() != 0)                 mapAccountIdToNumberOfContact.put(objAccount.Id,objAccount.Contacts.size());                 else                 mapAccountIdToNumberOfContact.put(objAccount.Id,0);                 }           }         list<Campaign> listCampaignUpdate = new list<Campaign>();         for(Campaign  objCamp : scope){             Set<Id> setTempAccountIds = new Set<Id>();             Integer numberOfContacts= 0;                          for(Campaign_Account_Member__c objCampaignAccountMembers : objCamp.Campaign_Account_Members__r){                 setAccountIds.add(objCamp.Campaign_External_Id__c);                   setTempAccountIds.add(objCampaignAccountMembers.Customer__c);                 if(mapAccountIdToNumberOfContact.containsKey(objCampaignAccountMembers.Customer__c))                     numberOfContacts =  numberOfContacts + mapAccountIdToNumberOfContact.get(objCampaignAccountMembers.Customer__c);             }             objCamp.Number_of_Account__c = setTempAccountIds.size();             objCamp.Number_Of_contacts__c = numberOfContacts;             listCampaignUpdate.add(objCamp);         }         if(!listCampaignUpdate.isEmpty())             update listCampaignUpdate;             }          global void finish(Database.BatchableContext bc){         System.debug(recordsProcessed + ' records processed. Shazam!');         AsyncApexJob job = [SELECT Id, Status, NumberOfErrors,              JobItemsProcessed,             TotalJobItems, CreatedBy.Email             FROM AsyncApexJob             WHERE Id = :bc.getJobId()];         // call some utility to send email             }       }


How do I set a variable in the configuration file setting.php and use it from code?


Where does Windows 10 store file association?

When I create a new local user on Windows 10, the .pdf file associations are inconsistend. According to ftype .pdf files (AcroExch.Document.11) are associated with AcroRd32.exe.  But if the user doubleclicks on a .pdf file, Windows opens it with Edge. Its possible to change the default program on the Windows GUI via properties-open with..., but I need to find a way to do it by commandline. Setting the file associations via GPO as rules out, since the computer is not member of a domain. I tried HKEY_CLASSES_ROOT\.pdf but this is ignored too.


Finding constant to make integrals converge

Find the value of the constant C for which the following integral $$\int_{0}^{\infty} \bigg(\frac{x}{x^2+1} - \frac{C}{3x+1}\bigg)dx$$  converges. Evaluate the integral for that value of C. Make sure to fully justify your answer.  \  My solution:   $$\lim_{A\to\infty}\int_{0}^{A} \frac{x}{x^2+1} dx - \lim_{A\to\infty} \int_{0}^{A} \frac{C}{3x+1} dx$$  $$= \lim_{A\to\infty} \frac{1}{2} ln(x^2+1) \bigg|_{0}^{A} - \lim_{A\to\infty} \frac{C}{3} ln|3x+1| \bigg|_{0}^{A}$$  $$= \frac{1}{2}(\infty + 0) - \frac{C}{3} (\infty + 0)$$  Idk how to make it converge.


Windows.old directory after Win8.1 upgrade

I've recently upgraded to Windows 8.1 from 8 and have noticed a Windows.old folder - this is pretty big (about 10Gb) and could use the space - would I have any issues in the future by simply deleting this folder?


Everytime I make meatballs they fall apart during cooking them. I used a several recipes such as a chinese lionshead meatballs and an indonesian recipe  and even a recipe from  a michelin 3-star restaurant. Always they fall apart. please give me tips. I like to make lions heads or indonesian meatballs. But they fall apart all the time. it drives me nuts. I use the recipes to the letter so it must be technique or something.  The meatballs look oke when i construct them, but during cooking they all apart.


I have a Schwinn Skyliner bicycle for my wife

I need to replace a quick release skewer that came out of the front wheel of the bike. What specific Skewer do I need? How long is the skewer and how thick is the rod of the skewer?  Thank you very much.


Are there any legitimate reasons for adding more than one answer to a question?

Sometimes, but rarely, when I post an answer that turns out to be incorrect and it makes more sense to just start over, I delete it and re-post a second. Of course, the first is still there, although it's deleted.  Other than something like that, though, are there acceptable reasons for adding more than one answer to a question?


Requirements for long-term UK Standard Visitor Visa (2, 5, 10 years)

My friend and his wife visited UK during the year 2015. And they came back on time we want to know one information as they same couple want to visit UK again  For how many years or months can multiple entry visa can be given for a couple who have already visited UK?


Recursively Move All MP3's in a Directory

I have a lot of mp3 files located at various levels of subdirectories inside a single folder and I want to move them all to a single directory, what command could I use to do this?  Thanks!


Can an Action be used for an ability that specifies it requires a Bonus Action?

For instance, Mood Druids can spend a Bonus Action to spend a spellslot and heal [D8*S]hp while in wild shape. If the druid wants to use a feature that normally requires a bonus action (such as sustaining/retriggering the effect of a spell), and also use this feature in the same turn, can the druid spend his action and bonus action to do both bonus-action abilities?


Equivalence of universal condition and existential condition on factoring termination in intergral domain

I encountered this doubt while studying unique factorization domain (UFD): In the definition of UFD , there is a condition that every nonzero element can be written as a product of irreducible elements and a unit in the integral domain, which can be interpreted as the existential condition on factoring termination. However, in Algebra by Artin, page 364, the condition described above is replaced by that "factoring terminates", by which the author means the factoring will terminate if an element keeps being properly factored. This amounts to the universal condition, and it is equivalent to , namely ACCP. So my question is, are these two conditions equivalent, in other words, can the first (existential) one imply the second?


unmet dependencies while installing wine

Hello I am new here and I have been trying to install wine:  $ sudo apt-get install wine1.7 Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  wine1.7 : Depends: wine1.7-i386 (= 1.7.4-0ubuntu4) but it is not installable E: Unable to correct problems, you have held broken packages.   what should I do ?


strange modeling issue in simple modeling (blender 2.80Beta)

I am getting this weight artifacts on some edges while modeling a simple horse - I have tried deleting the the whole patch and redoing it but it keeps coming back - could anyone tell what I am doing wrong?    Here is the Blender file (2.80Beta)


Every radical ideal in a Noetherian ring is a finite intersection of primes

Prove that if $I$ is a radical ideal and $ab\in I$, then $I=\operatorname{rad}(I+(a))\cap \operatorname{rad}(I+(b))$.      Deduce that every radical ideal in a Noetherian ring is a finite intersection of primes.   I've done the first part (showing the sets are equal), but don't know how to do the second.


import java.io.*;  class Main0 {     public static void main(String args[])     {         String onoma, epitheto, key01;         short AriMit, EtosEis, AM, key02;         int i, pos;         Foititis pinakas[] = new Foititis(3);         for (i = 0; i < pinakas.length; i++)         {                    System.out.println("Ola ta stoixeia na einai taksinomimena symfwna me ton Arithmo Mitroou." + "\n" + "Dwste Onoma.");             do             {                 onoma = FUserInput.getString();                 if (onoma == "x")                     System.out.println("Mh egkyrh timh. Epanalagete");             } while (onoma == "x");              System.out.println("Dwste Epitheto.");             do             {                 epitheto = FUserInput.getString();                 if (epitheto == "x")                     System.out.println("Mh egkyrh timh. Epanalagete");             } while (epitheto == "x");              System.out.println("Dwste Arithmo Mitrwou.");             do             {                 AriMit = FUserInput.getshort();                 if (AriMit == -1)                     System.out.println("Mh egkyrh timh. Epanalagete");             } while (AriMit == -1);              System.out.println("Dwste Etos Eisagwghs.");             do             {                 EtosEis = FUserInput.getshort();                 if (EtosEis == -1)                     System.out.println("Mh egkyrh timh. Epanalagete");             } while (EtosEis == -1);              pinakas[i] = new Foititis(onoma, epitheto, AriMit, EtosEis);         }         pos = 1;         System.out.println(Foititis.toString(pos, pinakas));     } }  class Foititis       {     private String onoma, epitheto;     private short AriMit, EtosEis;      public Foititis (String on, String ep, short AM, short EE)     {         onoma = on;         epitheto = ep;         AriMit = AM;         EtosEis = EE;     }      public String getEpwnymo()      //alles klaseis     {         return epitheto;     }      public String toString(int j, Foititis b[])     {         String emf;         emf = b[j].onoma;     } }  class FUserInput          /*dedomenwn kateli3a na xrisimopoihsw thn "FUserInput" gia ola ta dedomena, anti na kanw "catch" to "exception" gia kathe scanner ksexwrista, kathws eixa skopo na xrisimopoihsw mono scanner)*/ {     static String getString()      {          String line;         InputStreamReader eisodosDouble = new InputStreamReader(System.in);         BufferedReader br = new BufferedReader(eisodosDouble);         try         {             line = br.readLine();             return line;         }         catch(Exception e)          {                return "x";         }     }      static short getshort()      {          String line;         InputStreamReader eisodosDouble = new InputStreamReader(System.in);         BufferedReader br = new BufferedReader(eisodosDouble);         try         {             line = br.readLine();             short i = Short.parseShort(line);             return i;         }         catch(Exception e)          {                return -1;         }     } }   This is not a duplicate of anything, I am not asking about my string equations but about the toString method that I want to use!!!!  So I have this code... all it does is to create an array of objects of type Foititis, named pinakas and having the four attributes. If you look at class named Foititis you will notice a toString method, all I want to do is to use the toString method to show something on the screen (at this example it is simplified to the onoma attribute of the array-object). Note that I also want to send the certain position of the array that I want to be seen(pos -> j), at this example the position is fixed (set to 1) but in the actual code it won't.  I try to compile it and I get these 2 errors, the second one is probably justified because I haven't written the code in the proper way, but what about the first? I have done the same thing again and I had no problem (at creating an array of objects).


Algebraic uncertainty principle and the particle on a ring

I'm reading about the uncertainty principle formulated in the language of $ C^*$ algebras. It states that for any state $\omega: A \rightarrow \mathbb{C}$ on a $C^*$ algebra and for any self-adjoint $a, b \in A$, we have $$ \sigma_{\omega}(a)^{2} \sigma_{\omega}(b)^{2} \geq \frac{1}{4} \omega(i[a, b])^{2} $$ So, what about the particle on a ring (one can read about it on wiki)? LHS vanishes here. In contrast to this formulation, in usual QM we have condition for domains of operators. Should this principle be reformulated because of this case?


Can we use the event's attribute "path" in Lightning?

I've been working on a pretty complicated component, and I've had all kinds of trouble simply trying to identify which element is currently being used. After all sorts of experiments, I found a really nifty property on event, the "path" attribute. It seems to be a list of all elements that the event has gone through, and actually includes the data I'm looking for. However, I don't see this in the documentation anywhere, so I want to know if this attribute is reliable.  Here's some demo code:  <aura:application extends="force:slds">     <aura:attribute name="items" type="Integer[]" default="[1,2,3]" />     <aura:attribute name="currentIndex" type="Integer" />     <aura:iteration items="{!v.items}" var="item" indexVar="index">         <div data-value="{!index}" >             <lightning:input onfocus="{!c.focused}" name="demo" label="Text" />         </div>     </aura:iteration>     <lightning:input disabled="true" readOnly="true" type="number"                      value="{!v.currentIndex}" label="Last Focused Item" /> </aura:application>     ({     focused: function(component, event, helper) {         var index = event.path.reduce(             (a,c) => c && c.dataset && c.dataset.value !== undefined?              c.dataset.value: a, null);         component.set("v.currentIndex", parseInt(index));     } })     Does anyone know where I can find the documentation for this, or otherwise figure out if this supported behavior? I'd rather not use a feature that will be patched out of existence later, and it would finally solve  about how to actually use a supported method that doesn't involve using a class, style, or name attribute, which should ideally be used for their intended purpose.


What contour and integrand do we use to evaluate $$ \int_0^\infty \frac{x^3}{e^x-1} dx $$  Or is this going to need some other technique?


I'm trying to plot some recursively defined sequence with tikz and am encountering some behavior I can't understand, here is my code:  \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \pgfmathsetmacro{\f}{1} \foreach\i in {1,...,10} {   \pgfmathsetmacro{\ff}{\i*\f}   \draw (0,\i) node {\ff};   \pgfmathsetmacro{\f}{\ff}   } \end{tikzpicture} \end{document}   I would have expected this to print the sequence of the factorials of the first ten integers (going down) but what I get is 10,9,...,1. What is happening ? How can I handle such recursively defined functions in Tikz ?


Importing only certain rows between spreadsheet documents

Document 1 has many rows of data.  How do I import into document 2 only those rows that have a certain value in column C?


I'm wondering why Nautilus is very slow when opening a directory containing lots of files. My /usr/lib dir for example has 1900 files and it takes approximately 5+ seconds to show everything. It has been like this since I installed Ubuntu few months ago and it's really quite annoying sometimes. I don't have powerful hardware but I know that Windows Explorer is so much faster than this.   Is there anything that can be done to speed it up?  Ubuntu 10.04


Recently I stumbled across a, to me, rather strange idea. I was messing around with the proof of $0.999... = 1$, when I figured that what $0.999...$ means is that those are all nines. That way I came upon a weird idea. Say $a = 0.999...$, then $a = 1 - x$. Yet, how do we define what $x$ is? It should say $x = 0$, but my theory did not. If $0.999...$ is just an endless sequence of nines, then why can't we say $x$ just is an endless sequence of zeroes, ending with a 1, like $\frac{1}{10^\infty}$? If we take the equation $$n = 0.9$$ for example, then, what would $1 - n$ be? Yes indeed, $0.1$. Following that theory, can't we say that $$0.999... = 1 - \frac{1}{10^\infty}$$Now, if $0.999... = 1$ this would be impossible. Go figure. $$1 = 1 - \frac{1}{10^\infty}$$ then $$\frac{1}{10^\infty} = 0$$ but that is impossible, because we cannot say $$10^\infty * 0 = 1$$When I came to this point, I really got stuck, because, in my head everything I did was right, however, it is impossible. Can somebody please explain to me what mistakes I may have made, and enlighten me about what else I did wrong?  Thanks in advance. Sjoerd Dorrestijn.  EDT: I prefer $\frac{1}{10^\infty}$ to use as an indication of $0.000...01$, even though $10^\infty = \infty$ in some way, I just seem to find this more clear.  EDT2: Just to be clear, I read a proof that $0.999...9 = 1$ because it'd be $1 - 0.000...0 = 1 - 0 = 1$. What I tried to prove here is that it is not  equal to $1$, because otherwise maths would collapse. My question was whether I am right or wrong. Since the original statement uses infinity (an infinite amount of nines) I think it is a must to use infinity as well. So, the question is if either the original statement is false, or if I made a mistake somewhere.


Is there a package (or command) to escape filesystem paths?

I see this is one option:  c:$\backslash$subd1$\backslash$subsubd1   for representing   c:\subd1\subsubd1   is there something that leaves the TeX a bit more human-readable, such as   \escape{c:\subd1\subsubd1}


What's the proof that the polarization occurs to the electric field of the light?

What's the proof of the light polarization that it happens to the electric field and not the magnetic field? How did Malus discover that the light is polarized although he didn't see the waves polarizing!


What command will create a profile for use with NetSH WLAN?

netsh wlan connect demands a profile, but netsh wlan show profiles shows 0 profiles. So I need to find a command that will create a profile, but netsh wlan add profile only allows adding an existing one from a file, not creating from scratch.  This question is not about whether a profile is optional, it is about creating a profile from scratch on the command line.


There exists a prime ideal not containing non-nilpotent element

I've been trying to solve the following problem.  Let $A$ be a commutative ring with identity and $a \in A$ a non-nilpotent element, i.e., $a^m \neq 0$ for all $m \in \mathbb{Z}^+$. Prove there exists a prime ideal that fails to contain $a$.  I've been trying to somehow define a partial order on the prime ideals of $A$ to apply Zorn's lemma and proves the existence of such a prime ideal, but I am not sure this approach would work. Any ideas?


How to define caption width in longtable?

I have a longtable within a landscape environment. Not sure the landscape is relevant but ...  \begin{landscape} \begin{longtable}{lll}  \caption{bla bla bla long ...}  table & table & table \end{longtable} \begin{landscape}   I would like to change the width of the caption that is too narrow for my taste.   I tried with the caption package that is supposed to work within the table environment   \captionsetup{width=5cm}   I also tried to put my caption in a parbox  \parbox{5cm}{\caption{Lorem ipsum dolor sit amet...}}   As proposed here   But it does not change anything or throws out an error.   Would you have an idea?


Could the Architect design a better choice mechanism to trick Neo into making a choice in the machine's favor?

In The Matrix Reloaded, the Architect reveals to Neo that Trinity is about to die. I can't help but wonder if Neo would still choose the left door if the Architect had withheld that information.  The Architect could have designed a better choice mechanism so as to trick Neo into making a choice in the machine's favor rather than a highly risky one.   Did I miss anything important in the movie?


I want to get the ASCII value of characters in a string in C#.  If my string has the value "9quali52ty3", I want an array with the ASCII values of each of the 11 characters.  How can I get ASCII values in C#?


Distinction between "if any" and "if every".

Today in my math class I presented a counter example to the theorem: "if any infinite sequence in X has an adherent point in X, then X is compact."  Let $X=(-1,2)$. Choose $\{X_{n}\}= \frac{1}{n} = \{1,\frac{1}{2}, \frac{1}{3},\cdots \}$. Then $0$ is an adherent point of $\{ X_{n} \}$ in $X$. But X is not compact.   My professor told me that "if any" is synonymous with "if every" in this instance so my counter example doesn't work but I can't see how that is the case. Can anyone give me some insight into how these statements are equivalent?  Sorry about any poor formatting I am on mobile.


What improvements I could expect upgrading from Canon EF 55-250mm IS to a Canon 70 - 300mm?

I enjoy taking photos with my current telephoto (55-250) but I wonder if the 70-300 could be a worthwhile upgrade. As of November 2013, it would be around a $350 investment if I deal hunt and sell my current lens.  I believe that I would benefit from the USM, for achieving focus quikcly as I am usually shooting moving subjects and my current lens is a bit slow.  How can I assess if the upgrade would be worthwhile? What improvements I could expect (with regard to quality of the pictures, AF, quietness, build quality....) stepping up to the 70-300 lens? Are there any downsides to consider?


This question is similar to   and  except that I am a retiree.  I intend to submit a paper to a journal without mentioning any affiliation because I am no longer employeed. I have been thinking about a footnote in the paper indicating I am a retiree from my former employer for two reasons: I am receiving pension from the company pension fund and it is a well-known company in U.S. Using their name may make me look good. On the other hand, I feel like it's cheating because I am not their employee anymore.


How to show that $\bigcup_{i\in \emptyset} A_i=\emptyset$ and $\bigcap_{i\in \emptyset}A_i=X$?

It was probably asked multiple times before which is about basic logic. But I couldnt find any.  let X a set and I is index set. for $i\in I$, $A_i$ is a subset of X. if $I=\emptyset$, how can we show   $$\bigcup_{i\in \emptyset} A_i=\emptyset\quad\text{and}\quad\bigcap_{i\in \emptyset}A_i=X$$  is it because from the definition if $x\in\bigcap_{i\in \emptyset}A_i\iff\forall i(x\in \emptyset\Rightarrow x\in A_i) $ which equals to $\forall i(x\notin \emptyset \lor x\in A_i)$ which is true for all $x\in X$ because  $x\notin \emptyset$ is always true.  similarly if $x\in\bigcup_{i\in \emptyset} A_i\iff\exists i(i\in \emptyset \land x\in A_i) $  right statement is wrong because $i\in \emptyset$ is wrong always. that is, for all $x \in X, x\notin\bigcup_{i\in \emptyset} A_i$ so $\bigcup_{i\in \emptyset} A_i=\emptyset$  is this sufficient?


@Override                 protected void onHandleIntent(Intent intent) {                     if (intent != null) {                         final String action = intent.getAction();                         if (ACTION_UPDATE_SERVER.equals(action)) {                             final Server server = (Server)intent.getSerializableExtra(SERVER);                             handleActionUpdateServer(server);         [...]     }     } }   server is a model class I made where I override toString().  In the line   final Server server = (Server)intent.getSerializableExtra(SERVER);   I get this error   [package].[app] Java.lang.NullPointerException exception: cannot evaluate server.toString()   it seems like it is unable to retrieve the serialized extra because of this error.  but if I remove my implementation of toString() then there's no error. Problem is I need to override toString for a listView to use when displaying objects of the server class in the list. (there's no problems with the toString() method when being run to populate the list.  my implementation of toString looks like this:   @Override         public String toString() {             StringBuilder strb = new StringBuilder(serverTitle);             strb.append(" | Monitored: ");             strb.append(isMonitored);             strb.append(" | Online: ");             strb.append(isOnline);             return strb.toString();         }   why is it unable to evaluate server.toString when I override it myself and why is it even trying to?  don't mark this as duplicate of nullPointerException questions as this doesn't help me at all. The app doesn't crash after this error, it keeps running and to me the error seems to have to do with my implementation of toString()


Query complexity of identifying a subset

Fix an ambient finite set $X$, without loss of generality $X = \{1, \ldots, |X|\}$. You wish to identify some subset $B \subseteq X$ hidden to you. You can gain information about the subset as follows: you can choose any subset $C \subseteq X$, and you receive the number $|B \cap C|$.  In terms of $|X|$ (and possibly $|B|$), what is the least number of queries required to determine $B$? How about a special case, for example when $|B| \leq \log_2(|X|)$?    Some observations:   The case $|B| = 1$ allows binary search, and thus can be done in $\lceil\log_2(|X|)\rceil$. Already for $|B| = 2$, a way with fewer than $2\log_2(|X|) + C$ queries is not clear to me (although I can see how to do $\frac32 \log_2(|X|) + C$ on average). Trivially $|X|$ queries always suffices: just start with $C = X$ and remove one element for each query. This question was inspired by a recent Google Code Jam problem: there your query consists of a bit for each element of $X$, and you get $|X| - |B|$ bits back. However, in the Google Code Jam problem the returned bits are still ordered correctly, just with missing values. This allows you to match up the responses of multiple queries. Then $\lfloor\log_2(|B|) + 1\rfloor$ queries suffice.


Casting a cantrip on a higher level when multiclassing

Some cantrips such as 'Thunderclap' says in higher level(not in higher spell slot), we can give more damage.  Thunderclap Casting Time: 1 action Range: Self (5-foot radius) Components: S Duration: Instantaneous You create a burst of thunderous sound, which can be heard 100 feet away. Each creature other than you within 5 feet of you must make a Constitution saving throw. On a failed save, the creature takes 1d6 thunder damage. At Higher Levels. The spell’s damage increases by 1d6 when you reach 5th level (2d6), 11th level (3d6), and 17th level (4d6).  When we are multiclassing, does the overall level of the character effect this, or is it about the individual level of the class that is used to cast this spell?


Sum of Poissons is Poisson with adding parameters

I am studying probability and statistics recently, in section multidimensional random variable and its distribution, I encountered a problem:  Let $\pi(\lambda)$ denote the Poisson distribution with parameter $\lambda$ and let $X$ and $Y$ be independent Poisson random variables, $X\sim \pi(\lambda_1), Y\sim \pi(\lambda_2)$. Prove that $X+Y\sim \pi(\lambda_1 + \lambda_2)$.


How to prove with double counting technique that $1+2+\dots+2^n=2^{n+1} -1$?   I can see, for example, that the right-hand side of the equation counts the cardinality of the powerset of a set with n+1 elements (excluding the empty set): could this be a good idea? Because I don't seem to be able to make the left-hand side fit this idea...


Are there integer solutions for $x$ in the equation $n^2+9n-2=(n+11)x$ for $0\le n\le 11$?

I want to know a general efficient solution for determining whether there are solutions for $x$ in the equation $$n^2+9n-2=(n+11)x$$ for $n\le 11$.  I tried solving for $n$ as a quadratic equation but didn't really learn anything from that. $$ n = \frac{9-x\pm \sqrt{(9-x)^2 -4(-2-11x)}}{2} $$ Obviously I could brute-force search all choices of $n$, and did, and found that $n=9$ yields an integer solution. But I feel like I must be missing the point of the problem if I had to brute-force search it. This occurs in the context of learning the Euclidean algorithm for finding the GCD and some concepts of modular arithmetic.  I thought about computing both sides of the equation mod 12, but I don't see anything helpful from that. I also thought about ways to factor the square, but completing the square either involves getting a fraction or is just equivalent to the quadratic equation, so that doesn't seem productive.


Let $G$ be a multiplicatively written group and let $g\in G$.   Show that $g^k=e$ if and only if the order of $g$ is finite and divides $k$.  Solution  Suppose $\operatorname{ord}(g)$ divides $k$ and let $\operatorname{ord}(g)=n.$  So $k=tn$ for some $t\in\mathbb{Z}.$  Thus $g^k=g^{tn}=(g^{n)^t}=e.$  Now suppose $g^k=e.$  Where do I go from here?  Edit:  Suppose $g^k=e$ and suppose $\operatorname{ord}(g)=n.$   Now $k=nq+r$ for some $0\leq r<n.$  This now gives $e=g^k=g^{nq+r}=g^{nq}g^r=g^r.$ However, we have a contradiction as $n$ is the smallest integer for which $g^r=e.$ Thus $r=0$ and so $n$ divides $k$.  Is this correct?


Can a familiar from the Find Familiar spell use a Ring of Spell Storing?

Based on other similar questions, I've determined that a familiar can attune to magic items. But can a familiar cast spells from the Ring of Spell Storing? The description of Find Familiar states "A familiar can't attack, but it can take other actions as normal." Does this mean if it could cast spells, it could only cast non-attacking spells?


I want to start publishing my D&D 5e campaigns, but I dont know how

I've made quite a few campaigns that my party has enjoyed quite a bit. I was thinking that since I am too young to have a job I could publish some of my campaigns. I have them all written in Google Docs but I dont know where and how to publish them.


I'm having a huge lapsus. Let $\alpha \in [0,1]$. From one point of view we have  $e^{2 \pi i \alpha} = (e^{2 \pi i})^{\alpha} = 1$  But I could also write  $e^{2 \pi i \alpha} = \cos(2 \pi \alpha) + i\sin(2 \pi \alpha) \neq 1$  What's wrong? I feel like i'm missing something REALLY obvius.


Physical Interpretation of Planck's Constant

Planck's constant ($ h = 6.63 \times  10^{-34}~{\rm J \cdot s} $ ) represents the smallest amount of action that is possible in a system.  Is this value simply a lower bound, or do all dynamic systems have action equal to an integer multiple of $h$?


When an object is rubbed against another object, it transfers electrons, that much I know.  But what determines the way it's going? Against the object that's being rubbed against, or the object that's rubbing?  I tried searching on the internet for a while, but nothing popped up.


Why is my Ubuntu 18.04 distribution asking me to upgrade to Pop!_OS 19.10?

I have Ubuntu 18.04 and I just received a notification that I can upgrade to Pop!_OS 19.10. Why in the world would this happen? Did I break my system? Has anyone else had something similar happen?  The only thing I have installed from Pop!_OS is their icon theme. Could it be because I have their ppa on my system? How can I clear this notification and request to update?


How would you convince the child-me this is false: $0.\bar{9} = 1 \implies \bar{9} = - 1$?

So I remember as a child when I was taught: $ . \bar9 =1 $ The proof was taught as:  $$x = 0.\bar{9} \\ 10x = 9.\bar{9} \\ 10x - x = 9.\bar{9} - 0.\bar{9} \\ 9x = 9 \\ x = 1 \\ \therefore 0.\bar{9} = 1$$  I was found the whole thing quite counter-intuitive and created my own "analog proof" of why it "must" be an absurd statement:  Let us "assume" $\bar 9$ can exist the same way we assumed $. \bar 9$ can exist.  $$x = \bar{9} \\ \frac{x}{10} = \bar9.{9} \\ x - \frac{x}{10} = \bar{9} - \bar{9}.9 \\ .9 x = -.9 \\ x = -1 \\ \therefore \bar{9} = - 1$$  Hence, by the same set of logic if $. \bar 9 = 1$ then $\bar 9 = -1$. I remember the maths teacher being really frustrated with me because of these kind of "stunts." I kind of sympathize with him that it would be really difficult to explain to a child without using "radius of convergence", etc.   Question  Is it possible to make sense to the "child version" of me without using the words "radius of convergence"?


getting input from user always falls short by 1

I'm trying to get n lines of input (Strings) from the user   The n is set first I initialize an array of Strings to save the input and for loop to save them.   The problem is that it always falls short meaning   if n=1 the program is terminated  if n=2 it takes only 1 input  if n=3 it takes only 2 inputs and so on ......   What is wrong ?  Scanner sc = new Scanner(System.in); //how many lines should be taken int lines = sc.nextInt();  // initialize input array String[] longWords = new String[lines] ;  //set the input from the user into the array for (int i = 0; i < longWords.length; i++) {     longWords[i] = sc.nextLine() ; }


Prove continuity/discontinuity of the Popcorn Function (Thomae's Function).

I have to prove that a function $f:]0,1] \rightarrow \Bbb R$ : $$ f(x) = \begin{cases} \frac1q,  & \text{if $x \in \Bbb Q$  with $ x=\frac{p}q$ for $p,q \in \Bbb N$ coprime} \\ 0, & \text{if $x \notin \Bbb Q $} \end{cases} $$  is discontinuous in every point $x \in \ ]0,1] \cap\Bbb Q$.  And then to consider $x \in \ ]0,1] \backslash \Bbb Q$ and prove that it is continuous.  For now I learned different ways to prove continuity (epsilon-delta, sequences), but I'm never sure what would be better to use in each different case.  I wanted to prove the discontinuity by using sequences: $$\forall x_n \quad x_n\rightarrow a \quad \Rightarrow \quad f(x_n) \rightarrow f(a)$$  I tried creating a sequence $ x_n=\frac1n + a$, we know it converges to $a$ but $f(x_n)\ $ doesn't  converges to $\ f(a)$ because there would still be some points not in our set (irrational numbers that creates gaps).  But I don't think it works, so I'm asking you if you could help me solving the two questions.


What are the two lines for on top of this tower?

I have seen other towers with the same lines.


Let $X$ be a topological space. I want to show that the cone $CX$ is contractible. Here we construct a deformation retraction from $CX$ to  the tip point of the cone  $$H_t: CX\to CX;\; (x,t')\mapsto (x,t'(1-t))$$ is this correct?


I don't know how, but there's a . I don't have to explain how incredibly handy that would be.  Unfortunately, Stack Exchange is unable to get the images from that site, not even by direct URL, so I have to create a file like an idiot every time.  It appears like this is just due to Stack Exchange , could this feature please be added?


Consider the integral equation $\phi(x)-\frac{e}{2} \int_{-1}^{1} x e^{t} \phi(t) d t=f(x) .$ Then  there exists a continuous function $f:[-1,1] \rightarrow(0, \infty)$ for which solution exists there exists a continuous function $ f:[-1,1] \rightarrow(-\infty, 0)$ for which solution exists for $f(x)=e^{-x}\left(1-3 x^{2}\right)$, a solution exists for $f(x)=e^{-x}\left(x+x^{3}+x^{5}\right),$ a solution exists  what I tried $f(x)=f(x)+\frac{e}{2} \int_{-1}^{1} x e^{t} \phi(t) d t$ $\phi(x)=f(x)+\frac{e x}{2} \int_{-1}^{1} e^{t} \phi(t) d t$ $ \begin{array}{l}L e t \quad c=\int_{-1}^{1} e^{t} \phi(t) d t \\ \Rightarrow \phi(x)=f(x)+\frac{x e}{2} c\end{array} $ $c=\int_{-1}^{1} e^{t}\left(f(t)+\frac{c e}{2} t\right) d t$ $c=\int_{-1}^{1} e^{t} f(t)+\frac{\operatorname{ce}}{2} \int_{-1}^{1} t e^{t} d t$ $c=\int_{-1}^{1} e^{t}f( t)+\frac{\operatorname{ce}}{2}\left[t e^{t}-e^{t}\right]_{-1}^1$ $c=\int_{-1}^{1} e^{t} f(t)+\frac{c e}{2}\left(2 e^{-1}\right)$ $c=\int_{-1}^{1} e^{t} f(t) d t+c$ $\int_{-1}^{1} e^{t} f(t) d t=0$ Option (3) and (4) satisfies this Relation so, (3) and (4) seems true  to me.is i am right? I am stuck  for option (1) and (2)  is there any result or theorem ?


Is it possible to have a node value correspond to how much light is hitting that pixel?

The puzzle I'm facing comes from when I was participating in , so although I can think of ways to manage this by using baked image sequences or sync'ing up a mask to roughly match the movement of the light source, I'd rather achieve this purely using nodes.  In my scene, I have only a single light source that moves around and this means that the camera can sometimes see the dark side of the object.  I want the dark side of the object to become an emission shader and the side with light hitting it to be a diffuse shader.  I've tried having both shaders cover the whole object and turning the brightness of the light up very high so the emission is barely visible over the reflections from the diffuse shader on the side where the light hits but they are still visible.  Is there any way to add a node that outputs a value based on how much light hits it?  In the image below, both shaders cover the whole object, the light source is off to the right, the emission shader is emitting blue for the land, yellow for the cities and nothing for the oceans in the left half of the earth which is in darkness but you can see the yellow cities on the right, daytime half and the whole thing is tinged a bit blue.


proof of McMillan Theory using probability

let $C =\{c_1,...,c_n\}$ be a prefix-free code and let $l_i =\vert c_i\vert ,L = max\vert c_i\vert$, consider $X$, a random binary string of length $L$,  let $E_i$ be the event that the codeword $c_i$ is a prefix of $X$, what is the value of $\mathbb P(E_i)$, the probability that $E_i$ occurs, use this to provide an alternative proof of McMillans Theorem.  I can calculate $\mathbb P(E_i) = 2^{-l_i}$ for $c_i$ with $l_i<L$, but its all a little messy and unclear how to do this is a clean structured way


Find all natural numbers n such that $\phi(n)$=12

I need help finding all natural numbers n such that $\phi(n)$=12.  My professor told us to use $\phi$(mn)=$\phi$(m)$\phi$(n).  I know that $12$ can be factored into $3 \times 4$,  $12 \times 1$ and  $6 \times 2$.


OpenLayers low resolution and/or shifts in QGIS print composer?

I'm having trouble with the OpenLayers Plugin of Qgis and the map composer:  If I create an OSM-background layer and if I want to export this, the OSM-Layer looks perfectly all right in the normal qgis program window. But in the map composer and after export the layer has shifted relatively to my other shape layers (EPSG:32633 - WGS 84 / UTM zone 33N).  The second thing is that the output resolution of the exported osm-layer is very, very poor.   A really bad way of getting around this whole trouble would be to increase the screen resolution and make a screenshot of the map composition window of qgis. But I don't think this would be very professional. It also would cause a lot of pain :)   I'm using Qgis 1.8.0-Lisboa under Linux. The openlayers plugin is version 0.92.


In the following code, I take a class T as generic "argument" and I need to return something like "T.class" in one of the methods. How do I do it?  public abstract class GenericLogPartitioner<K, V, T extends FileInputFormat<K, V>> extends LogPartitioner {        @Override     protected Class<? extends FileInputFormat> getInputFormatClass() {         return T.getClass(); //what should be here. I need to return T     }


Can you give a simple intuitive explanation of IRLS method to find the MLE of a GLM?

Background:   I'm trying to follow .  I understand the basics of MLE estimation: likelihood, score, observed and expected Fisher information and the Fisher scoring technique. And I know how to justify .    The question:   I can't understand even the first line of this method :(   What's the intuition behind the $z_i$ working variables defined as:  $$ z_i = \hat\eta_i + (y_i -\hat\mu_i)\frac{d\eta_i}{d\mu_i}$$  Why are they used instead of $y_i$ to estimate $\beta$?   And what's their relation with the response/link function which is the connection between $\eta$ and $\mu$  If anyone has a simple explanation or can direct me to a more basic-level text about this I would be grateful.


How to convert a Date to the first of next month in JavaScript?

I have an HTML file and it has a field to input the date and this html file is interacting with a JavaScript file. So, what i want to do is as soon as i enter the date input it should get converted to the first date of next month. for example: if I am providing the date input as 21/05/2020 (dd/mm/yyyy format) it should get converted to 01/06/2020 (dd/mm/yyyy format) i.e, first date of next month. can anyone help with the JavaScript logic to do this?


Change Add comment form but not Edit comment form, and vice-versa

I have a comment type named "reviews" (it happens to be a field in a node that's displayed alongside webform submissions).  I'm trying to differentiate between the add comment form and the edit comment form so I could, for example, alter the submit button text (value) on one but not the other.  I'm currently using HOOK_form_comment_form_alter(&$form, &$form_state)  In both cases (add and edit):   $form['form_id']['#id'] = edit-comment-reviews-form $form['#id'] = comment-form $form_state->getFormObject()->getOperation() = default   Is there anything in $form I'm missing?  Solution:  $entity = $form_state->getFormObject()->getEntity(); if ($entity->isNew()) {    ...


I need to calculate possible point location based on its speed and some other factors. For example, there is a man in the middle of the forest and I need to calculate his possible location at some time periods. There are few facts about his movement:   His speed differs at certain periods of time - it can be raining, or it can be super hot - speed lowers / increases; Some objects in space - swamps, rocks - can lower his speed as well; At some time periods the man does not move at all.   So, here is the question - is there any algorithm that can calculate possible location of the man based on following parameters? The output should be a polygon for every given time_period.  {   time_periods: [{     from: 2012-12-12T20:00:00,     to: 2012-12-12T22:00:00,     speed: 5   }, {}],   objects: [{     geodata: POLYGON(...),     speed_modifier: 0.5   }, {}] }   Generated polygons will be visualized on the map afterwards.


Partition of a set, definition not clear

From wikipedia:     Equivalently, a set P is a partition of X if, and only if, it does not contain the empty set and:         The union of the elements of P is equal to X. (The elements of P are said to cover X.)      The intersection of any two distinct elements of P is empty. (We say the elements of P are pairwise disjoint.)      I clearly understand that the intersection between partition is empty (point 2), but how can the union of a partition can be the all elements in the set?  If it is a partition, shouldnt they be just a part?  I imagine a set divided in 3 and the elements in the first part are not all the elements of the second part.  How do you explain this?


Is it possible to insert multiple records in Salesforce using cURL at the same time?

I am using cURL to insert data into salesforce. It works with single record but I need to insert multiple records at a time. Is it possible to do so and is it possible via a REST interface?


Which is more correct: "preferred that he do" or "preferred him to do"?

I would like to know which form of this question is “more correct” than the other:   What would you have preferred (that) he do? What would you have preferred him to do?


Different content in different countries : subfolders or subdomains?

My company wants to launch a new website for a new offer in 4 different countries : France, Germany, Netherlands, Poland.  I was asked for advice about what kind of URL organisation to choose for international targeting.   First, I thought this was the same website, same content, in 4 different languages, managed centrally.  So I advised subfolders, for better link equity sharing. So let's call the domain "mob.com": we would have mob.com/fr, mob.com/de, etc.  Then I learned that actually the websites will have different offers and content pages depending on the country, and that each would be updated by a local team. So I advised ccTLDs : mob.fr, mob.de... Since it's different languages, different content and different teams, let's go for different websites as well.  But for reasons that are beyond my control, they refuse ccTLD.  So i'm left with 2 options : back to the subfolders (mob.com/fr, mob.com/de...), or subdomains (fr.mob.com, de.mob.com...).  For SEO, I tend to prefer subfolders (for link equity and global SEO authority), but I wonder if it's right since these are in the end quite different websites. For different content, aren't subdomains more relevant ?   Moreover, subdomains allow to have one dedicated Search Console account for each. So I can set up the International Targeting in SC differently for each website.  With subfolders, I will have only one website, so one Seach Console account, so I can't use the International Targeting set up for each country can I ?   Thank you very much if you have insights about these questions


Why does dust stick to rotating fan propeller?  Intuitively, most people (including I) think of the dust will not stick to rotating fan propellers.


How to Find the Square Root of Numbers That Aren't Square Numbers

Instead of trying to find the square root of square numbers, I try to find the square root of numbers that aren't square numbers like 12 and 35, but it seems hard to do it with pencil and paper, so I use a calculator to figure those out.  I wonder how I can find the square root of a not-square number ONLY with paper and pencil.


Why is it example-based methods but machine learning?

I was wondering what the exact rules are concerning hyphens, I know that they should be used to combine words that are used together but I'm not sure why for example "example-based methods" use a hyphen but machine learning does not.   So for what reason do these words have different rules and can this in any way be generalized?


Begin{equation} works better with \ than $$

I am relatively new to LateX, and am a bit confused with the \begin{equation} command. I use $$...$$ to enter the math mode in a new environment. However, I find that when I combine $$..$$ with \begin{equation}, the equation is not centered. However, for some reason, \begin{equation} seems to work with the ..\ method of writing equations better. Is there any reason for this? Thanks!


Can I rent a car in the UK with a new driving license less than one year old?

I'm a UK citizen visiting the UK over the Christmas period. If possible, I'd like to rent a car - but I've only had a full UK driver's license for less than a year. I gather that there is no longer a legal requirement that car rental drivers have had a license for more than 12 months, but every car rental company I can find enforces a 12-month minimum anyway.  I understand that as a new license holder I'd be viewed as a riskier customer. I don't mind paying extra.  Is there any UK car rental company who'll accept customers who held their license for less than a year?  I'm well over any age limits (over 25) and have no blemishes on my license. I have another international license, but I've held that for even less time than my UK license.


Will Java 17 arrive to Ubunu 18.04 LTS (Bionic Beaver)?

I can see that Ubuntu 16.04 (Xenial Xerus) did not get Java 11 packages through official updates. However Ubunu 18.04 LTS (Bionic Beaver) got Java 11  even though 18.04 release date is earlier than Java 11 release date?  I was wondering if Ubunu 18.04 LTS (Bionic Beaver) will get Java 17? or if it does not exist in release, it is not included ever?  Is there an official document describing this for Java LTS releases? I found the SRU but it seems to have somewhat conflicting information.  For example the  (SRU) clearly explains in 2.2. Other safe cases     In the following cases a stable release update is also applicable as   they have a low potential for regressing existing installations but a   high potential for improving the user experience, particularly for   Long Term Support releases.   in the same heading, it also says:     For Long Term Support releases we sometimes want to introduce new   features. They must not change the behaviour on existing installations   (e. g. entirely new packages are usually fine).   Now Java 17 would be a discrete update, as it would not effect existing Java 8/11 installations. Because for example providing openjdk-11-jdk package does not do any changes to systems where openjdk-8-jdk package is installed. Therefore, logically thinking the Ubuntu documentation says that newer LTS Java updates should gladly be included in 18.04 when Java 17 is available.   However this was not the case for 16.04 so why isn't Java 11 included with 16.04? I don't quite understand this.  In addition, for example 14.04 was released with . This is much more disruptive update compared to adding a new Java XX version package to repository.  Thanks!


Why is quantum entanglement considered to be an active link between particles?

From everything I've read about quantum mechanics and quantum entanglement phenomena, it's not obvious to me why quantum entanglement is considered to be an active link. That is, it's stated every time that measurement of one particle affects the other.  In my head, there is a less magic explanation: the entangling measurement affects both particles in a way which makes their states identical, though unknown. In this case measuring one particle will reveal information about state of the other, but without a magical instant modification of remote entangled particle.  Obviously, I'm not the only one who had this idea. What are the problems associated with this view, and why is the magic view preferred?


How do I quickly switch between weapons and spells?

When  I see him quickly change his weapons and spells during combat. When he later goes inside his items, you can see a second smaller arrow next to the weapon that you can quickly change to in combat. How can I set such an alternative so that I can quickly switch weapon?  The screen doesn't seem to intuitively explain what key I need to use to do that...


One derivation I was verifying holds true if:  $$Q^{-1}\left(Q^{-1}+P^{-1}\right)^{-1}P^{-1}=\left(Q+P\right)^{-1}$$  where Q and P are positive definite matrices.  I've done some numerical tests and I incline to believe that.  But, where does this come from? I could not derive it from .


What's so speculative in rationalists metaphysics?

From Loux's: Metaphysics: A Contemporary Introduction.     The metaphysical theories of the rationalists, by contrast, were   anything but conservative. In their hands, metaphysics results in   abstract speculative systems far removed from any recognizably   commonsense picture of the world. Here, one has only to skim the works   of a thinker like Spinoza or Leibniz to appreciate the extravagance of   rationalist metaphysics.   I'm still in the beginning of the book and I've read this in the introduction, so what's so speculative in rationalists metaphysics?


run a certain file (e.g. a .py) when a certain image, .wav or excel file get opened

Recently, me and my friend have purchased a . the goal was using it in a mini-project as a new door lock system. we are connecting it to a Raspberry Pi to run the software on it. raspberry pi runs Raspbian, a spin-off of Debian.   After receiving the Scanner, we realized that not any type of SDK or software libraries came with it, and buying the SDK or development bundle costs like 2.5K/7K$  However,the driver and a small demo file came with it. it's closed-source so we cannot add any modification to it. all we need is to add few lines of codes, so we send a small electrical signal to the door lock to open it. anyway, this seems to not be possible.  The demo file updates a small Excel spreadsheet every time someone uses the scanner. it adds a new raw that have the time, and whether the access has been granted or denied.  Can i use this in anyway possible? i was thinking of finding a way to run a .py file (that sends the signal to the door lock) every time the excel gets updated with ACCESS GRANTED.  or an easier way, a small .wav file gets loaded when access is granted! can i find a way to activate the .py file every time the .wav file gets played?  using bash scripts maybe?  Generally, in Linux,  how to make a certain file auto-execute when another audio file or image are opened or played?


Display Commas in Large Numbers: JavaScript

I'm working on a customized calculator, which is working pretty well except that I can't figure out how to get the generated numbers to display commas within the number. For example, it might spit out "450000" when I need it to say "450,000".  gives a number of suggestions on how to create a new function to deal with the problem, but I'm rather new to JavaScript and I don't really know how to make such a function interact with what I have now. I'd really appreciate any help as to how to get generated numbers with commas! :)  HTML:

         Percentage:	         <input id="sempPer" type="text">

         Price:	         <input id="unitPrice" type="text">

         <input id="button" type="submit" value="Calculate">

     Market Share	     Partner A	     Partner B

     1%

      </form>   JavaScript:


How to evaluate $\int \frac { \sin x+\cos x }{ \sin^4 x+\cos^4x}\, dx$?

How can one find $$\int  \frac { \sin x+\cos x }{ \sin^4 x+\cos^4x}\, dx?$$


Showing that $\mathbb{R}$ is compact with respect to the cofinite topology.

We can define the cofinite topology as the following $\mathcal{T}_{cofinite} = \{U \subseteq X| U = \emptyset, X-U  \mbox{is finite}\}$. Let $\mathcal{U}= \{U_{\alpha}\}_{\alpha \in I}$ be an open cover for $\mathbb{R}$. But where can we take this argument. We want to find a finite sub cover for $\mathbb{R}$ and then we are done. We can also included that since $\mathcal{U}= \{U_{\alpha}\}_{\alpha \in I}$ is an open cover for $\mathbb{R}$ that $\mathbb{R} = \cup_{\alpha \in I} U_{\alpha}$.


There are plenty of good answers here about how reverse DNS works, but why is it used?  It seems that all reverse DNS proves is that the person sending the email has access to the DNS records for the IP. For an end user on a residential connection I find outgoing mail getting blocked by the SMTP server because there is no reverse DNS record. Since I am not trying to spoof some other domain, but using the domain for the SMTP server, how does this check add any security? It seems like the first check should be if there is a large volume of mail coming from the IP before considering rejecting.


How to avoid spammy links affecting us before SERP rankings going down

We have recently discovered a host of spammy links pointing to our website been put up in last 1 month through webmaster tool We have not engaged any seo agency/link building and have never created these links  Worst, these are spammy forum sites and almost some-one seems making an attack to our site as the link and keyword is same in all these sites Till not Have not received any warning, however as it has come to our notice - before any SERP getting down - we want to action this out  One thing we have observed is that - All these spammy links points to a single inner page of website  Pl suggest as have   a) Will Google disvow tool will work by stating to disvow these links  or  b) Is it a good way if we make this specific page 'nofollow' and even 'noindex' The reasoning behind this is like if the page is not followed and not indexed - the negative links pointing to the page of the site is already no follow and may be out from google serp  or what's the best alternate way to tackle this. Pl suggest in urgent help and advise required


If $f$ is measurable, then support of $f$ is measurable?

Could someone please check if I'm saying something that make sense? I am trying to check the following:     If $f$ is a measurable function, then $\text{supp}(f)$ is measurable set?   Is it simply because, if we consider $E_1 = (0,\infty)$ and $E_2 = (-\infty,0)$, since they are open, they are measurable. So their union $\mathbb{R}-\{0\}$ is measurable as well. Since $f$ is measurable, then the preimage $f^{-1}(\mathbb{R}-\{0\})$ is measurable. But the preimage is just the support?


What is the difference between Ad-Hoc and Mesh Network? (also with p2p)

According to the ,  Ad-Hoc means peer-to-peer while mesh means bridge-to-bridge or router-to-router, meaning in a mesh every node has the capability to route.  So would mesh networks be subparts or subcases of ad-hoc networks?


I want to view a .osm file that was generated from an Overpass API query.  I tried the steps given in  on OSM wiki. The tutorial says        Start QGIS Desktop   Go to: Vector (menu) → OpenStreetMap → Import Topology from XML.   Select the .osm file, and it'll suggest a name for the SpatiaLite database that will be created from this data.      But when I opened the QGIS, the vector menu does not give drop-down submenu.  Am I missing something in the steps or the QGIS tool on my machine is not installed correctly? Any suggestions?   is the most related question I could find. But it was not very helpful when it comes to my problem.


I have had a question since childhood.  Why do we always get circular waves (ripples) in water even when we throw irregularly shaped object in it?


Should we need to consider time dilation effect when travel in a very fast rocket?

How long does it take for a rocket to reach a planet 10 light years away if the rocket's speed is just near the light speed?  If the speed is 1 c, the folks will answer it will take 10 year to travel to the planet.  Rocket Speed      Travel Time (without time dilation) 1c                10 years   That is correct for the clock on the earth.  But, due to the time dilation effect, the clock of the rocket will be much slower and the astronauts in the rocket will then take much less time to travel to the planet. Is it correct?  Rocket Speed      Lorentz Contraction       Travel Time 0.9c              0.436                     4.36 years 0.99c             0.141                     1.41 years 0.999c            0.045                     159 days (0.45 years)   The human life is about 100 years. So, does it means we can travel much more than 100 light-year distance if there is a near-light-speed rocket?


I set up dd to clone a smaller system 40.00GB hard drive (/dev/sda) to a new bigger 111.00GB one connected via a USB reader (dev/sdb) and Its been going for two hours now. The activity meter on the new hard drive shows it's doing something. But the CPU is only about 20%. When is this thing going to complete? Should I re-start the process?


How can I recover a missing body part without using wish?

I recently had my nose bitten off by a berserker and smell is surprisingly hard to live without.   I have had some past trouble with wishes (from a ring of three wishes) so I'm reluctant to make another wish. Also I don't think this is worth wasting my last wish over anyway.  My DM is evil so I'll probably end up with a Mephit's nose or something if I wish for it back.   Can anyone tell me another way of regaining body parts?


Find all subgroups of $\mathbb{Z}\times\mathbb{Z}$.   I can find all the infinite subgroups of the form $n\mathbb{Z}\times m\mathbb{Z}$, where $n,m$ run over $\mathbb{Z}$. But I don't know how to write out all the finite subgroups in a uniform expression.  Any suggestions? Thanks in advance.


I have struggled throughout the years to get a solid understanding on iptables.  Any time I try and read through the man pages my eyes start to glaze over.  I have a service that I only want to allow the localhost to have access to.  What terms (or configuration, if someone is feeling generous) should I Google for to allow only localhost host to have access to a given port?


Shorter method for getting the name of the current method dynamically

I'm looking for a way to get the name of the current method without having to create a blank object. Is there a way to do this? This would tidy up our logging code.  Here is what we do now:  new Object() {}.getClass().getEnclosingMethod().getName(


How to get all the pages inside a site? I will pass the parameter of a site in a site collection example: http://www.category.com/en,using powershell code in sharepoint server 2013.  when i  try below command i can not get all sites under a site  Get-SPSite  https://xxxx/xx  -Limit All | Get-SPWeb -Limit All | Select -ExpandProperty AllWebs


Derivation using reduced mass for electron orbitals in the Bohr model

Recently in my class, we used the Bohr model to consider the motion of the nucleus about the center of mass of the electron-nucleus system. I understand that this also happens in the Earth-moon system, where the Earth is kind of wobbling along a point, i.e. the COM is actually inside the surface of the Earth. Our teacher told us to quickly calculate the radius and speed of the electron, and that we can simply substitute the reduced mass of the electron in the electron-nucleus system in the original equation (which didn't consider nuclear motion).  I have tried my best to derive it using four equations (centripetal force on electron and nucleus, angular momentum conservation, and com) but I can't get the expression.


WIFI speed is too slow in ubuntu gnome 16.04

I am running ubuntu gnome dual booted with windows 10. In windows I can stream 1440p videos on YouTube without buffering, In ubuntu the signal strength is too low and even at a close distance 720p video still buffers.  result for lspci -knn | grep Net -A3  08:00.0       Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE  PCIe Wireless Network Adapter [10ec:b723]  DeviceName: Realtek RTL8723BE 802.11b/g/n 1x1Wi-Fi + BT4.0 Combo Adapter  Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter  [103c:804c]  Kernel driver in use: rtl8723be Kernel modules: rtl8723be   09:00.0     Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.  RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 0a)


When setting the collision to the bowl I initially was seeing some of the pieces of rice sliding to the bottom and falling out. Now that I've updated the scene with a different bowl I'm unable to get the rice to collide with the bowl and it goes straight through. The end result that I'm going for is simply to fill the bowl with rice.


Noise in rendered image even with 1000 samples

Rendered with 1000 samples in cycles. What can i try to get rid of it without losing the quality of the image?


Python: unusual result with rounding numbers. Is this a quirk that can be fixed?

I'm trying to round in Python, but I can't get the correct result each time, which should be  [3.24, -0.16, 0.24, 0.36]  First, I used round(number, 2)      [3.24, -0.16000000000000003, 0.24, 0.36]   The second number in the list is not rounded whatsoever...  Then, I used decimal  from decimal import * getcontext().prec = 2      [Decimal('3.2'), Decimal('-0.16'), Decimal('0.24'), Decimal('0.36')]   This fixes the original errant number, but now the first number in the list is  not rounded correctly, it should be 3.24.  So, I tried a precision of three out of curiosity to see what happens  from decimal import * getcontext().prec = 3      [Decimal('3.24'), Decimal('-0.160'), Decimal('0.240'),   Decimal('0.360')]   ... now the first item in the list is doing in three-digit precision what it was supposed to do with two-digit precision.  So I tried, based on another answer, to use math.ceil    math.ceil(number*100)/100 for number in list_of_numbers]      [3.24, -0.16, 0.25, 0.37]   Now the first two numbers in the list are perfect, but the last two numbers in the list, which were supposed to be 24 and 36, are now 25 and 37.  Is it a fool's errand to try and get them all to be exactly right at the same time?   Edit due being marked as duplicate  I'm asking if there's a fix for this. It's not just a question on Python and its quirks. I've seen other answers and they say use decimal, which doesn't work for me, or to format it and output it as a string, but I don't want a string, I need to use these numbers further, as numbers.


Couldn't append svg in html document using d3.js

I want to append an svg image in a html document using d3.js but I don't know why it is not working.  Here's what I wrote in my hello.js:   const w = 600; const h = 600; let dataset = []; let x; let y; //Creating SVG Element let svg =  d3.select("body").append("svg").attr("width",  w).attr("height", h);   index.html  <html> <head>     <meta charset="utf-8">     <title>Hello, D3</title>     <script type="text/javascript" src="js/d3/d3.js"></script>         <script type="text/javascript" src="js/hello.js"></script>   </head> <body> </body> </html>   When I view the source code of my page, I can see that the svg was not created.  I'm using simpleHTTPServer to create a local server and then load my page so I don't think that the browser blocked the script.  EDIT: here's what I see when I inspect the page


The current format of showing review history works fine without bug. But, we should intend to change the format of that page to add some more precise.  We are showing the reviewer name in the review history. I think there is no need of showing that, as the reviewer is seeing his/her own history.    We should remove that and get some more space for other reasonable details. We can also have titles for the details showing on like post, action, time, etc. Provided screenshot is for suggested edit review history. We can have unique format changes for each review type.


How to create a ubuntu bootable USB to run on Windows using a MAC

How can I create an Ubuntu bootable USB to boot on a Windows 10, using a MAC running El Capitan? I tried using Unetbootin running on Mac (El Capitan), however my USB is not recognized! Also tried Disk Utility with no success. How to do it?


Do settlers need access to the ground to farm?

I usually make a tree house sort of thing, get my settlers in it, and cut off access to the ground.  Do I need someone on the ground to farm, or can they do it from the tree house?


How to fix external hard disk NTFS READ ONLY?

On reinstalling MacOS Mojave, my NTFS hard drive became read-only. Previously, before reinstalling the OS I used to use applications like NTFS for MAC to be able to Read and Write on the disk, however this no longer works even though it shows I'm the admin and I have "read and write permissions" I can copy stuff to another hard drive or to the mac, but I am not able to write anything on the disk or make changes to the existing hard drive. I want to be able to access the hard drive without formatting as I have two years worth of documentary footage which I cannot lose or copy because I do not have a backup hard drive with the same amount of storage space.


'all the following are' OR 'the following are all'

Which of these is grammatically correct?  "The statement is incorrect when the following are all true:" "The statement is incorrect when all the following are true:"


Problems with material preview, wireframe and rendered modes

Viewport shading (material preview) is not working, and Viewport shading (wireframe) works only in edit mode, in object mode does not work, but should work in both. Viewport shading (rendered) also does not work, it fixes by switching from eevee to cycles. The blender has been reinstalled several times, the video card driver too, and Windows has reinstalled a bunch of times. Please help solve the problem! P.S. Video with glitches is available on Google Drive at the link below


Pros and cons of this.myVar vs. var myVar

var MyFunction = function () {     this.myVar = 'something';     var myVar = 'else'; };   What are the pros and cons of the two above, I see them being used.


Alternative to backticks for keyboard without backticks?

I'm using an Italian keyboard so I do not have backticks. The problem for me is not when I'm writing a question, because I can use the UI of course, but when I'm writing a comment I have to use the keyboard to format my text.  I know the Ctrl+K shortcut, but it's not working on comments, to me at least. I was wondering if there is an alternative char?


Can I take a Power Armor Frame from a corpse?

In Fallout 4, Power Armor Frames are an essential item for any hoarder. From reading the  it appears you can only buy them, apart from one (as well as the one you get from the Preston Harvey mission).   But after a few hours of gameplay, I encountered a Bandit boss in Power Armor. I managed to salvage the shell, but I was unable to take the frame. Is it possible to loot Frames?


Subtracting very small probabilities - How to compute?

This question is an extension of a .  Suppose you have log-probabilities $\ell_1 \geqslant \ell_2$, where the corresponding probabilities $\exp(\ell_1)$ and $\exp(\ell_2)$ are too small to be distinguished from zero in the initial computational facility being used (e.g., base R).  We want to find the log-diffference of these probabilities, which we denote by:  $$\ell_- \equiv \ln \big( \exp(\ell_1) - \exp(\ell_2) \big)$$  Questions: How can you effectively compute this log-difference?  Can this be done in the base R?  If not, what is the simplest way to do it with package extensions?


Let $x = (x_1, x_2,...,x_n)\in\{0,1\}^n$ for $n\in\mathbb{N}$. Prove that if one-way functions (OWFs) exist, then there exists a one-way function $f$ such that for every bit $i\in[1,n]$ there exists an algorithm $A_i$ such that: $$\Pr[A_i(f(x)) = x_i] \geq \frac{1}{2} + \frac{1}{2n}$$ I'm having trouble understanding this.


I am trying to to center text over multiple images using bootstrap and css. Most googling says i need to use position: absolute; However the most i am able to do is center the text in the middle of the screen but not over the image. I believe its something with bootstrap but i cannot find what is blocking it The goal is for the text to have animation over the image moving forward like fading in and such  I have already checked multiple post about this but they all seem to only work if its one image. Trying to do with with multiple images seems to require a different approach  EDIT: Since this got marked as a duplicate i would like to point out that the other post only show this working with ONE image. The other post do not work when it comes to multiple images  The portion of the code in question:                 .imgText {         position: absolute;         z-index: -1;       }              .imgList {         z-index: -2;       }

           test text

           test text

     You can see the live results here


for a project I need to get a mean each time, this mean I then use it to compare it to a distribution under the null hypothesis H0. However sometimes some values (few) are much larger than all the other values, so if I use a basic arithmetic mean these values will greatly impact the final mean. Here is an example  Here if I do an arithmetic mean I get about 90, while in reality we can see that the vast majority of values on the axis are around 50. Do you have an idea of an average that would be used in this kind of case?


How do I create a batch file and run it?

should I use the text editor? the extension should be .sh or .bat?


Locally continuously differentiable implies locally Lipschitz

I am interesting in the following result:     Let $X$ be a normed space and $f : X \to \mathbb{R}$. If $f$ is continuously differentiable in a neighborhood $V$ of a point $x_0 \in X$, then $f$ is locally Lipschitz at $x_0$.   Using mean value theorem, for all $x,y$ in an open ball $B \subset V$, there exists $z \in [x,y]$ such that $f(x)-f(y)= \langle f'(z), x-y \rangle$ so $|f(x)-f(y)| \leq \max\limits_{z \in B} ||f'(z)||. ||x-y||$.  In finite dimension, we can suppose that the closure of $B$ is in $V$ so that $\max\limits_{z \in B} ||f'(z)|| < + \infty$ because $z \mapsto f'(z)$ is continuous and the closure of $B$ is compact.  But what happens in infinite dimension? Is the result still true?


Special Relativity: Time dilation paradox

Two spaceships, A and B, travelling rapidly through space, pass each other on a parallel course. According to special relativity: A observes B speeding past, and perceives that time on B's ship is running more slowly than his own.  B observes A speeding past, and perceives that  time on A's ship runs more slowly than his own.  How is this possible?


I've done a big update on my PC. He asked me if I want to upgrade from 16.04 to 17.10 but I don't know if I can lose some data or something..can someone explain me this situation? Thanks in Advice!


How Can I Encourage Google to Read New robots.txt File?

I just updated my robots.txt file on a new site; Google Webmaster Tools reports it read my robots.txt 10 minutes before my last update.  Is there any way I can encourage Google to re-read my robots.txt as soon as possible?  UPDATE: Under Site Configuration | Crawler Access | Test robots.txt:     Home Page Access shows:      Googlebot is blocked from    FYI: The robots.txt that Google last read looks like this:  User-agent: * Allow: /<a page> Allow: /<a folder> Disallow: /   Have I shot myself in the foot, or will it eventually read: http:///robots.txt (as it did the last time it read it)?  Any ideas on what I need to do?


There is no video thumbnail for Dolphin file manager on Ubuntu 16.04

I have installed "ffmpegthumbs", "mplayerthumbs", "kffmpegthumbnailer", "kio-extras", and set up everything for Dolphin which used to work on OpenSUSE 42.1, but there is still no thumbnail for videos, how to fix it?


Automatically power on Android when the charger is connected

Is it possible to automatically power on the device once the charger is connected given that the device is initially turned off?


Discontinuous function proof using $\epsilon - \delta$

$f:\Bbb R \to \Bbb R$  Showing $f(x)=\left\{\begin{array}{cc} 3x,&x\in\Bbb Q\\-3x,&x\in \Bbb I\end{array}\right.$    I want to show that $f(x)$ is discontinuous for all $x\ne0$ using $\epsilon - \delta$    So I want to show:  $$\exists \epsilon \gt 0 , \forall \delta \gt 0| |x-l|\lt \delta, |f(x)-f(l)|\gt \epsilon$$  Now I believe I should pin this to four cases: 1)$x,l\in \Bbb Q$,$\quad$2)$x\in \Bbb Q,l\in\Bbb I$,$\quad$3)$l\in \Bbb Q,x\in \Bbb I$,$\quad$4)$x,l\in \Bbb I$  So case $1)$:  $$|x-l|\lt \delta, |2x-2l|\gt \epsilon$$ $$|x-l|\lt\delta,2|x-l|\gt\epsilon$$ $$\implies 3\delta \gt |xl| \gt \epsilon$$    Now I have no idea what to do for case 1 and I haven't attempted other cases yet since I assume a similar problem will occur.  I put my delta after my epsilon, so I can't choose an epsilon relying on my delta, hence I am confused.


Why do i get NullPointerException when i try to create object by POST method?

I`ve been coding some REST API tests, and i dont know either i wrote my test wrong or my POST method is invalid.  Im getting this error when i perform the test:      ERROR [2015-12-14 21:37:00,309] org.glassfish.grizzly.servlet.ServletHandler: service exception:   ! java.lang.NullPointerException: null   ! at resources.ActorResource.postActor(ActorResource.java:31) ...etc   and i have no idea where it came from. Actor object in the tests is properly initialized, it all should have worked fine.  Here is the post method :       @POST     @UnitOfWork     public Saying postActor(@HeaderParam("actorName") String name, @HeaderParam("actorBirthDate") String birthDate) {         Actor actor = dao.create(new Actor(name,birthDate));         return new Saying("Added : " + actor.toString());     }   And here is the test i wrote      @Test     public void postActor() {         when(movieDAO.create(actor)).thenReturn(actor);         final Response response = RULE.getJerseyTest().target("/actors").request().post(Entity.text(""));          assertThat(response.getStatusInfo().getStatusCode()).isEqualTo(Response.Status.OK.getStatusCode());         verify(movieDAO).create(actor);     }   EDIT Here`s Actor  initialization method      @Before     public void setup() {         actor = new Actor();         actor.setId(1L);         actor.setBirthDate("12-03-2014");         actor.setName("Karol Marks");     }   And Actor class   @Entity @Table(name="Actors") public class Actor {     private long id;     private String name;     private String birthDate;     private Movie movie;      public Actor() {     }      public Actor(String name, String birthDate) {         this.name = name;         this.birthDate = birthDate;     }      @Id     @GeneratedValue(strategy = GenerationType.IDENTITY)     public long getId() {         return id;     }      public void setId(long id) {         this.id = id;     }      @Column(name = "name", nullable = false)     public String getName() {         return name;     }      public void setName(String name) {         this.name = name;     }      @Column(name = "birthDate", nullable = false)     public String getBirthDate() {         return birthDate;     }      public void setBirthDate(String birthDate) {         this.birthDate = birthDate;     }      @ManyToOne(cascade = CascadeType.ALL)     public Movie getMovie() {         return movie;     }      public void setMovie(Movie movie) {         this.movie = movie;     }      @Override     public String toString() {         return "Actor{" +                 "id=" + id +                 ", name='" + name + '\'' +                 ", birthDate='" + birthDate + '\'' +                 '}';     }


Difficulty in partitioning after installation

I have installed Ubuntu12. While installing I haven't created any Partition. I am trying to create one now, but it not allowing me to do that, saying, 'The device is busy'. Please help.


How to override css class set in iframe?

I have third party iframe widget component on my page. This is all I have as an HTML string in the body of my page. This iframe brings some custom button with style set by that widget.jsp. Chrome inspector doesn't show anything else except <iframe> component. But FireFox shows that button inside <iframe> with style class ".button"  <iframe src='https://www.xxxxxxxx.com/aaa/bbb/widget.jsp?par1='TEST%20BUTTON'></iframe>     So how do I override that .button style class?


Does White noise has a Normal (Gaussian) Distribution?

What I know:  White noise process is random process whose power spectral density is constant for all frequencies. ( Sure about this) White noise process has mean zero. (Not sure about this)  Gaussian Distribution is bell-shaped. With some mean and variance.  A standard Gaussian Distribution has mean 0 and variance 1.  Also there is this White Gaussian Noise. Which has Gaussian in its name. But I am not sure where it actually differs with White Noise.  Any help in clearing these concepts would be appreciated.  EDIT 1: My question is about the distribution of white noise. That has become difficult for me to answer due to confusions I have mentioned above. Please be polite about it.


Is it kosher to submit an answer, then edit it repeatedly?

It irks me when I see a question on SO that I can answer, begin writing a detailed answer, and see that someone else answers with a one-liner.  Often, the other answerer will make many small edits to their answer, adding detail, so that even if I post my complete answer before they really finish theirs, it looks like I just copied their answer.  Is the answer-then-edit-repeatedly strategy acceptable/encouraged on Stack Overflow?  Should I stop letting it bother me and start doing it?


How can we write relativistic momentum without length length contraction?

We've already known that "p=γmv" . v is particle's velocity depends on our rest frame and mass too.  But shouldn't we observe particle's momentum by its displacement? for particle's view, displacement should be smaller than our observed displacement.  I read Halliday's book and it hasn't got any information.Just does say "use t = t_0.γ for particle's time dilation and you got relativistic momentum." we use lorentz transformation for time but not for x? Why? - The link that has been published by me is not an answer.It does just derivating momentum formula with relativistic mass as feynmann did it on his book.  Thanks for answers.  P.S.Forgive my syntax errors.I am not on my mother tongue.


Continuing permissions issues - ASP.net, IIS 7, Server 2008 - 0x80070005 (http 500.19) error

I created an ASP.net MVC developed web application and I am trying to set up IIS.   The Error: Http error 500.19, error code 0x80070005, Cannot read configuration file due to insufficient permissions,  config file:  C:\inetpub\wwwroot\BudgetManagerMain\BudgetManager\web.config  If I set the AppPool to use 'administrator' i have no problems and can access the site just fine. If i set to NETWORK SERVICE (or anything else including self-created admin or non-admin user accounts), i get the above error.  Things I have tried:   identity for Application pool named 'test' is 'NetworkService' Set full access privs for wwwroot and all children files/folders verified effective permissions and NETWORK SERVICE has full access. Authentication on my site is set for anonymous and running under Application Pool Identity I do not have any physical path credentials set on the website confirmed website is set to run under the application pool named 'test'   using Process Monitor, here is a summary of what i found on the ACCESS DENIED event  EVENT TAB:   Class: File System Operation: CreateFile Result: Access Denied Path: ..\web.config      Desired Access: Generic Read Disposition: Open Options: Sybnchronous IO Non-Alert, Non-Directory file Attributes: N ShareMode: Read AllocaitonSize: n/a   PROCESS TAB  ...lots of stuff that seems irrelevant  User: NT AUTHORITY\NETWORK SERVICE


How to make my HP LaserJet 1000 printer work with Ubuntu live CD and save the settings?

I just want my LaserJet 1000 printer to work with Ubuntu live CD and save the settings.  I am using Ubuntu 12.04 and I thought Ubuntu already had hplip to work with LaserJet 1000 little box. But when I connect the printer it causes an error and won't download the required plugin for my printer.  Any help will be appreciated.


What's the best practice to round a float to 2 decimals?

I'm using eclipse + Android SDK.  I need to round a float value to 2 decimals. I usually use the next "trick" using Math library.  float accelerometerX = accelerometerX * 100;     accelerometerX = round(accelerometerX);     Log.d("Test","" + accelerometerX/100);   But I feel it is not the best way to do it.  Is there a library to do these type of operations?


What does this apt error message ("Download is performed unsandboxed as root...") mean?

I get it after updating in Synaptic Manager  I recently did a clean install of Ubuntu 17.04 from 16.10.  error message:-  W: Download is performed unsandboxed as root as file '/var/cache/apt/archives/partial/samba-libs_2%3a4.5.8+dfsg-0ubuntu0.17.04.1_i386.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)


The relationship between the Hubble Constant and cosmological time

I am a first year student at varsity and I am new to Astronomy. A question came up in my tut asking about the Hubble constant and cosmological time. I couldn't answer it because I have not understood the relationship between the two.  What I've heard is that H is constant for space(although I don't understand what that implies), and is not for time. What does this all mean?!  Please help...and please keep things simple.


C programming: How to program for Unicode?

What prerequisites are needed to do strict Unicode programming?  Does this imply that my code should not use char types anywhere and that functions need to be used that can deal with wint_t and wchar_t?  And what is the role played by multibyte character sequences in this scenario?


I've tried to search this topic in google, but without any significant results.  I need to start some GUI app from terminal, but I don't care what this app is showing me. In addition, I need to start few instances of this application in different sessions. It's connected with some GUI automated tests, so I know what I want and I'm looking for an answer :).  I think the proper steps should be:   Init new X window session Get my new session id export it to env variable (export DISPLAY:13.0) run my app   but I'm stuck at first step. does anybody here had similar problem?  --- EDIT: 1) I don't care about GUI output - i need only stdout and stderr from my app. - that's why this question is not duplicate - know google well :) . I don't want to redirect output to my own GUI.


How to detect IIS version using C#?  Update: I meant from a winapp (actually the scenario is developing a custom installer that wants to check the version of the installed IIS to call the appropriate api's)


Will upgrading to a faster server make my videos load / stream quicker for users?

General question that even a godaddy tech couldn't really answer for me. Im making a website with lots of video on it, most are embedded from youtube. I know, to stream videos, I should upgrade to a faster / better server. I just don't know why, or what that means. Will the videos actually load faster for the user? If I upgrade to a dedicated server should I host the videos on my server or will they still run faster being embedded from youtube(since youtube probably spends lots of money on its servers and streaming quality).   I know, on the users end, it really depends on how fast their internet connection is, but will upgrading my server allow the users computer to receive the files from the server at a higher rate therefor making the videos actually load quicker, or something... lol?   Also, if upgrading a server helps with streaming video, my jpg's / png's should download to a users computer quicker as well right? So a full page image might not flash, as it loads, as it would with a default / starter godaddy server (just as an example)...?


Varnish cache with Nginx SSL termination

How can I use varnish cache with nginx SSL termination for my SSL-Only (Https only) website? I use ubuntu 18.04 and I am currently running a wordpress site on my server.