How to search for files and file contents with a GUI?

When I use the search function in  it only returns files with matching file names. It doesn't even support wildcards. For example, "*.txt" doesn't return anything. I would expect it to return all .txt files.  Anyway, is there a way, without using the command line, to search the contents of files, including all plain text files (.txt, .html, .css, .js, .c, .csv, .sh, .py, ...), archives (.zip, .7z, .rar, .tar, ...), office/libreoffice files (.doc, .docx, pptx, .odf, .ods, ...), and media (.mp3, .mp4, ...) meta data? The search should also have the option of setting file size, date, type, and being case insensitive.


Tangential component of electrostatic field on a charged surface?

This is a question from class 12 Physics NCERT Part I:      Show that the tangential component of electrostatic field is continuous from one side of a charged surface to another. [Hint: Use the fact that work done by electrostatic field on a closed loop is zero.]   I understand that a charged surface (which is not necessarily a conductor) can have a tangential component to the electric field. I have two questions:  a) I know there's some concept I'm completely forgetting here, but does this not mean that there's a force now that can move the charges along the surface, which isn't possible in electrostatics?   b) Also, can anyone help me understand how the 'work done in a closed loop is zero' fact proves that the tangential component is continuous? Where do I take the closed loop to be?  Any help is appreciated, thank you so much.


I was wondering is there a way to run an android websever via usb? I can find lots of wifi version of this but I would like to use this locally only while the pc is connected to the wifi and have it undetectable. eg via usb.  Does anyone know of any apps/software that this would work on?  Thanks  Paul


How do I log in to a different Gmail account?  We have three Gmail accounts and every time I try to open a Gmail account the same one is opened.  Why can't I enter the Gmail account that I am trying to access?


I'm writing an assignment on how a poem of my choosing represents a person in my life. I'm trying to use the word "my crush" in the essay, but I looked it up in a dictionary and it's an informal word. Is there a formal word for "a crush"?  An example sentence would be:      "The speaker of the poem describes a person that closely resembles my   crush".


What does RESTful Authentication mean and how does it work?  I can't find a good overview on Google.  My only understanding is that you pass the session key (remeberal) in the URL, but this could be horribly wrong.


How do I get my 6-month-old to sleep better at night?

So our 6-month-old boy still doesn't sleep through the night. He still wakes up at least once and wants to eat.  He takes 3 naps during the day, ranging from 30 minutes to 1.5 (sometimes 2) hours.  We usually put him down for the night at least 2 hours after his latest nap, but we haven't been able to get him down to 2 naps per day because he gets pretty cranky during the evenings. Depending on the duration and times of his naps, his bedtime ranges between 10 and midnight.  We have started feeding him a small amount (2 tablespoons dry) of rice cereal after his morning and evening naps in the hopes that he'll have a fuller stomach through the night, but he still wakes up hungry after sleeping between 3 and 6 hours. I can handle the 6 hours, since that means I get 6 hours of pretty much uninterrupted sleep, but it's usually more like 3-4.  Any suggestions?


I was thinking of this problem.  I believe the solution and I think I understand it, but if I take the following approach I'm completely confused. Problem 1:  I will offer you the following game. You pay me \$10 and I will flip a fair coin. Heads I give you \$5 and Tails I give you \$20. The expectation is \$12.5 so you will always play the game.  Problem 2:  I will give you an envelope with \$10, the envelope is open and you can check. I then show you another envelope, closed this time and tell you: This envelope either has \$5 or $20 in it with equal probability. Do you want to swap? I feel this is exactly the same as problem 1, you forgo \$10 for a \$5 or a \$20, so again you will always switch.  Problem 3:  I do the same as above but close the envelopes. So you don't know there are $10 but some amount X. I tell you the other envelope has double or half. Now if you follow the same logic you want  to switch. This is the envelope paradox.  What changed when I closed the envelope?? EDIT: Some have argued that problem 3 is not the envelope problem and I'm going to try and provide below why I think it is by analysing how each views the game. Also, it gives a better set up for the game. Providing some clarification for Problem 3: From the perspective of the person organising the game:  I hold 2 envelopes. In one I put \$10 close it and give it to the player. I then tell him, I have one more envelope that has either double or half the amount of the envelope I just gave you. Do you want to switch? I then proceed to flip a fair coin and Heads I put \$5 in and Tails I put \$20. And hand him the envelope. I then ask him. The envelope you just gave me has twice or half the amount of the envelope you are holding. Do you want to switch?  From the perspective of the player:  I am given an envelope and told there is another envelope that has double or half the amount with equal probability. Do I want to switch. I think sure I have $X$, hence $\frac{1}{2}(\frac{1}{2}X + 2X) > X$ so I want to switch. I get the envelope and all of a sudden I am facing the exact same situation. I want to switch again as the other envelope has either double or half the amount.


I've seen some previous questions about transferring points between sites. They are usually quite unequivocally answered that points should not be transferrable, for fairly obvious reasons such as reputation as a programmer not being equivalent to that of a cook.  However, I would like to request that it be possible to bounty points on any site. When setting bounties, there doesn't seem to be a good reason not to allow points from other sites to be used because you are not misrepresenting your own reputation.  I could imagine a problem if it was possible to accumulate disproportionate reputation on some sites and use that as currency elsewhere. I do not think this is generally the case - it is easiest to accumulate points on the larger sites anyway, where the points themselves are most 'trusted'.


If you like sour and the water is not rancid is there any danger in drinking the water? If so what is the danger? I grew up drinking it and it was delightful. There were never any warnings against drinking it. If the water is unsafe to drink then in my opinion the coconut meat is also unsafe. Please be specific.


Can I avoid travelling to the Schengen country whose embassy issued me the visa?

I am a non-EU resident currently residing in London, UK. I hold a multiple-entry Schengen visa holder issued by the French Embassy. Unfortunately my entire itinerary has changed and I am not visiting any countries submitted to the French Embassy.  My Paris trip got postponed and I will be visiting Paris, France in the subsequent month and not in the first trip.  My query is are there any serious consequences or any repercussions if I visit any other countries and not the one in the itinerary given to them. How should I tackle this situation?   Thanks in advance.


Short story about specialization and a poet?

Looking for a short story, potentially by Kurt Vonnegut, about a world in which people's jobs are increasingly specialized which leads to a lack of poets and other artists.  At some point there's a general who realizes that what is needed is a poet, which leads to the realization that none exist (or potentially there's only one?)


Usage of “when” or “while” in this context

He left the house _ I was still sleeping   Would this sentence be better completed with when or with while?


How can I bend a mesh so that it curves around other object?

I have base of the machine and the button separate model. I want the button to be bend and shrink so that it fix on the top of the machine.          I tried shrinkwrap and bend option but its not working.  With bend option i got this result    With shrinkwrap option i got this result    I want to achieve this result


Is it possible to set the width in Adobe illustrator to 45m?

It's for printing in a scaffold sheeting roll and client wants me to format it in three different sizes:  3m x 45m – 2m Height Print 3m x 45m – 1.8m Height Print 2m x 45m – 1m Height Print  I'm not really sure how to go around with this. Can anyone help me or explain what they meant? They also asked me to download a different software just so I can set the width to 45m for printing.


Having trouble accessing updated Contact.Histories in unit test

I have a custom object to manage patient (Contact) status changes, which affect product shipments.  I'm adding a process to roll back changes based on receiving a cancelled form, based on a common form.Id from an external system.  Patient_Status__c is tracked in field history, and I created this method to retrieve the most recent past values for a group:       public Map<Id, Contact> mapPatientsById(Set<Id> setPatientIds) {     mapPatientsById = new Map<Id, Contact>(         [Select Id, AccountId, Name,                  Patient_Status__c,                 (SELECT NewValue, OldValue FROM Histories                  WHERE Field ='Patient_Status__c'                  ORDER BY CreatedDate DESC LIMIT 1)          from   Contact          where  Id in :setPatientIds]);      return mapPatientsById; }   and this one to return either the previous value, or the current value if there's no history on the field      public static String getPriorPatientStatus(Contact c){     if (c.Histories == null || c.Histories.isEmpty()) return c.Patient_Status__c;     return (String)c.Histories[0].OldValue; }   In the UI, cancelling a status change seems to be working as intended.  In my test(s), I insert both a Contact and associated status change record before test.startTest(), which should create field history data, and then insert my cancel form after.  If I check Contact.Histories[] when I insert the cancellation, I'm not finding them, so there is no 'prior status' to restore, and the test fails.    Here's my test scenario:      patient = UT_Utils.reGetContact(patient.Id);     patient.Patient_Status__c = 'Active';     Utils.DatabaseUpdate(patient);      statusForm = new Status_Form__c();     statusForm.Form_Id__c = formId;             statusForm.Contact__c = patient.Id;      insert statusForm;     patient = UT_Utils.reGetContact(patient.Id);     System.assertEquals('On Hold (Trans/Hosp)', patient.Patient_Status__c, 'Incorrect interim status for Patient Status ');      Set<Id> setPatientIds = new Set<Id>{patient.Id};     Map<Id, Contact> tmpMap = sc.mapPatientsById(setPatientIds);     Contact tmpC = tmpMap.get(patient.Id);     Utils.debug(tmpC.Histories.size() + ' Patient Status changes found for Patient ' + tmpC.Full_Name__c);      test.startTest();          // Create & submit the cancellation         cancelForm = new Status_Form__c();         cancelForm.Form_Id__c = formId;         cancelForm.Error__c = true;         cancelForm.Contact__c = patient.Id;         cancelForm.Account__c = null;         insert cancelForm;      test.stopTest();              patient = UT_Utils.reGetContact(patient.Id);     System.assertEquals('Active', patient.Patient_Status__c, 'Incorrect final Patient Status ');   I haven't tried to insert the field history data in the test; that feels like bad juju on the face of it.  Any thoughts on how to structure this differently to get access to field history from that test setup data?


Prove $2^{(n+1)}>n^2$, for all $n \in \mathbb{N}$.   I started by verifying the condition for $1$.   $$P(1):2^{1+1}>1^2$$ $$P(1):4>1$$  That is true.  Then I supposed $P(k)$ true, for some $k \in \mathbb{N}$. Now I've to prove $P(k+1)$:  $$2^{k+1+1}>(k+1)^2$$ $$2\cdot 2^{k+1}>(k+1)^2$$  By the hypotesis one known that $2^{k+1}>k^2$ so,  $$2\cdot2^{k+1}>2k^2$$  Now one needs to prove that $2k^2\geq(k+1)^2$ to conclude that $2^{k+2}>(k+1)^2$. But I'm having some trouble to prove this inequality.  Thanks for the help.


How does one compute the limit of the sequence:  $$\sum_{k = 0}^{n}\frac{1}{3k+1} - \frac{\ln(n)}{3}$$  I would apreciate a hint.


How to phrase a question to know a person's current number in a particular position?

I'm trying to figure out how to phrase a question to know a person's current number in a position.  For example:       Mr. X is the 15th prime minister of India.   What is the correct question to ask about Mr. X to receive an answer of "15th"?


How to sync Faces between devices in iCloud Photo Library?

I just synced my library from iCloud, and I realised that there is no faces.What I did wrong? How to sync faces between devices? I really need them in iCloud also.  NOTE I know that I can create another albums with specific faces, but it is not expected.


Say I have a Python function that returns multiple values in a tuple:  def func():     return 1, 2   Is there a nice way to ignore one of the results rather than just assigning to a temporary variable? Say if I was only interested in the first value, is there a better way than this:  x, temp = func()


How should I correctly install clang's c++ library (with STL) on my lubuntu machine? I want to use clang and its c++ library because it offers better support for the upcoming c++14 standard.  When trying to install libc++:  sudo apt-get install libc++   I get:  <!-- Fairly large amount of installed/up-to-date packages which I removed from the post--> 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:  libcgi-application-plugin-captcha-perl : Depends: libdata-random-perl but it is not going to be installed  libcloog-isl-dev : Conflicts: libcloog-ppl-dev but 0.16.1-5 is to be installed  libclutter-gst-2.0-doc : Conflicts: libclutter-gst-doc but 1.6.0-2build1 is to be installed  libcuda1-304 : Conflicts: libcuda-5.0-1  libcuda1-304-updates : Conflicts: libcuda-5.0-1  libcuda1-331 : Breaks: libcuda-5.0-1                 Breaks: libcuda-5.5-1  libcuda1-331-updates : Breaks: libcuda-5.0-1                         Breaks: libcuda-5.5-1  libcunit1-ncurses : Conflicts: libcunit1 but 2.1-2.dfsg-1 is to be installed  libcunit1-ncurses-dev : Conflicts: libcunit1-dev but 2.1-2.dfsg-1 is to be installed  libcurl4-gnutls-dev : Conflicts: libcurl4-nss-dev but 7.35.0-1ubuntu2 is to be installed                        Conflicts: libcurl4-openssl-dev but 7.35.0-1ubuntu2 is to be installed  libcurl4-nss-dev : Conflicts: libcurl4-gnutls-dev but 7.35.0-1ubuntu2 is to be installed                     Conflicts: libcurl4-openssl-dev but 7.35.0-1ubuntu2 is to be installed  libcurl4-openssl-dev : Conflicts: libcurl4-gnutls-dev but 7.35.0-1ubuntu2 is to be installed                         Conflicts: libcurl4-nss-dev but 7.35.0-1ubuntu2 is to be installed E: Unable to correct problems, you have held broken packages.   I am running lubuntu 14.04 on a Samsung Series 9 Ultrabook. I don't understand the conflicts, especially the ones related to CUDA, which is supposed to be only for systems with an NVidia GPU.  Please let me know what other information I need to provide.    EDIT:  After some trying around, I installed the libc++-dev package:  sudo apt-get install libc++-dev   This installed the header files which clang now finds and uses. This doesn't answer the original question of why apt-get attempted to install libc++ which apparently doesn't exist and why it got into conflicts (whith CUDA of all things!).


Unusual (to me) Phrasing of Power Analysis Objective; Interpretation Requested

I am reading a field biology manual that is directing me to do a power analysis, and I find the phrasing very confusing. It says: Determine sampling requirement to be 80% confident you are within 10% of the objective. (More concretely: how many survey plots do I need to be 80% confident of whether I am within 10% of having 65 trees per hectare?) It's phrased like a power analysis, but is confidence a synonym for power, and is being with 10% an indication of the alpha? *Can anyone suggest what the statement means mathematically (e.g., B = 0.8)? *Can anyone recommend an R package for this?


Any prime ideal of $R[x]$ properly containing $M[x]$ is a maximal ideal of $R[x]$

Let $M$ be a maximal ideal in a ring $R$. Prove that any prime ideal of $R[x]$ properly containing $M[x]$ is a maximal ideal of $R[x]$.   Help me some hints


How do I get the numbers for theorems, lemmas, examples, etc. before the type?

I am using the article document class with amsthm. I would like number the theorems/corollaries/examples, etc., consecutively as follows:  1.1 Theorem 1.2 Example 1.3 Example 1.4 Proposition  However, what my LaTeX renders is  Theorem 1.1 Example 1.2 Example 1.3 Proposition 1.4  How do I get a numbering as in the first?


In the STL library some containers have iterators and it is commonly held that they are a superior way of iterating through these containers rather than simple for loops e.g.  for ( int i=0; i < vecVector.size(); i++ ) {  ..  }   Can anyone tell me why and in what cases I should use iterators and in what cases the code snippet above please?


Showing a construction verifies the $\Omega$-axiom for monoid action

I have a difficulty showing that the characteristic function $\chi_k $ presented in Exercise 4.6.1 in Goldblatt's Topoi satisfies the $\Omega$-axiom. I have been able to show that $\chi_k $ verifies the pullback condition, but I am stuck for the uniquness part : if another function verifies the condition then I have shown that it has to be identical with $\chi_k$ over X, but not over all Y ($ X \subset Y$). More profoundly, I wonder how the definition of $\chi_k$ in the first place can make intuitive sense (besides the fact that it works), because at face value it seems that it comes out of nowhere.


Note: Actually there's no error in the book and the manual. I actually misread it. The answer is of a different question : True or False: {0} ⊂ {0}  This question is from Discrete Math Book by Rosen.     {{∅}} ⊂ {∅,{∅}}   Answer in the manual is:     This  is false. For one set  to  be  a  proper  subset  of  another,  the  two sets  cannot  be  equal.   How is {{∅}} is equal to the set {∅,{∅}} ? I know the two sets have different cardinal numbers. So they cannot be equal.


How does the mass of black holes become so much larger than an average star

How does the mass of black holes become so much larger than the mass of an average star? Since black holes are formed from the collapse of large stars, how come the mass of black holes is of astronomical scale. (If I am  right, i heard there must be a limit to how big a star can become, beyond that it wont be stable?). so this scale of size of mass of super massive black holes does not seem to add up to me, unless they devours many stars nearby it. Any explanation?   Can there be a possibility a more than one larger black holes compete to be for center of a galaxy?


My current username is mpatil, how can I change that to algo without losing data or causing problems?


Symbol "represented by" from quantum mechanics

The symbol I'm referring to is a standard equal sign with a dot right above it. I've looked around, but cannot seem to find the LaTeX code for the symbol used by Sakuri to represent operators in his Quantum Mechanics text.   Thanks!


For an integer number $a$  $$x^a=\{(x)(x)(x)...(x)\} (a\,times)$$  $$x^{\frac{1}{b}}=n\rightarrow\;\{(n)(n)(n)...(n)\}(b\,times)=x$$  For rational number $m=\frac{a}{b}$  $$x^m=x^\frac{a}{b}=(x^a)^\frac{1}{b}$$  And can be though of as a combination of the situations before   What about   $$x^e$$  How would one calculate or picture this from more basic operations?


Dirichlet's Approximation Theorem shows how it is possible to find a rational approximation as close as required to any real number. Has it been proved whether there always exists a ratio of two primes as close as required to any real number?


$X$ has the Poisson distribution with parameter $λ$.  I want to find the average of $(1+X)^{-1}$  Some steps-of-thought would be appreciated.


Members divided by remainder series diverges

We have a series $a(k)$ with positive (real) members. We know that $\sum_{k=0}^{\infty}a(k)$ is convergent. Let $r(k)$ be $\sum_{j=k}^{\infty}a(j)$. Show that $\sum_{k=1}^{\infty} \frac{a(k)}{r(k)}$ diverges.  I have tried the ratio, root and condensation tests but none of them yielded anything.


On the genealogy site one often needs to include scanned image of old documents for clarity and interpretation. This is fine when working with JPEG files, but I have been working with a source that insists on downloading images as PDF files. I have no way to convert those to JPEG files locally. Is there a way to get Imgur to store these files, so that I can include a link in my questions?


Solving $\int\limits_0^\infty\frac{\ln x}{\left(x^2+4\right)^2}\text{d}x$ using residues.

How can you evaluate the following integral using residues? $$\int\limits_0^\infty\frac{\ln x}{\left(x^2+4\right)^2}\text{d}x$$


Deleting items in arrayList: trying to delete from Index that is not there?

I am implementing logic within a for-loop that will remove any dog objects with status "ACCEPTED" from a kennel Object.   Note that a Kennel can have a List of many dogs.   Loop:   allDogsInKennel = kennel.getDogsList(); for (int i = 0; i < allDogsInKennel.size(); i++) {    //delete any dog object with a status of Accepted    if (allDogsInKennel.get(i).getStatus() == "ACCEPTED") {      kennel.removeDog(allDogsInKennel.get(i));    } }   removeDog method   public void removeDog(Dog d) {         this.dogList.remove(d);  }   The problem I have is e.g. all 6 dogs in the list should be removed, but at present only 3 are being removed.   Example:  original size of list = 6 items  Item removed from index 0 = 5 items  Item removed from index 1 = 4 items  item removed from index 2 = 3 items   Now in the next iteration the loop tries to remove from index 3 due to i++ condition, but the array will only go to index 2 as it now has only 3 items at indexes:   0, 1, 2   How can I change my logic above to ensure that all items are removed from the array?


Cause of 180 degree phase shift of reflected light

When light originating from a medium of lower refractive index reflects off a surface of higher refractive index, why does the phase shift by 180 degrees? Stokes relations show that the reflection coefficients at the surface are equal but of opposite signs depending on direction (i.e. from lower to higher refractive index versus higher to lower); but this relation does not say exactly which one is shifted by 180 degrees. Can someone please provide an explanation for this. I have researched the internet with no success.


Where can I find Paladin Danse after dismissing him to Boston Airport?

Light spoilers ahead, be advised.   I killed Kellogg in the main story and had the Brotherhood of Steel arrive in the Prydwen. Paladin Danse became a companion and I was tasked to wipe out a castle full of super mutants. Now I've dismissed Danse and I'm fairly certain I send him to Boston Airport. When I glance at the map, both the Airport and the ship have one person living there. Though when I look around, I can't find him. Anybody know where I can find him? Or what area, where to look for?   I'm on PC, though would like to avoid using commands, if possible.


Unsure of what to think about negation of Continuum Hypothesis, a need of clarification

It is written on Wikipedia:  In mathematics, the continuum hypothesis (abbreviated CH) is a hypothesis about the possible sizes of infinite sets. It states: There is no set whose cardinality is strictly between that of the integers and the real numbers.  Suppose that CH is not true, that is that there is such a set, call it $C_1$, so, $|\mathbb Z|<|C_1|<|\mathbb R|$ But, does some principle "forbids" us to suppose that there are also sets $C_2$ and $C_3$ so that we have $|\mathbb Z|<|C_2|<|C_1|<|C_3|<|\mathbb R|$, and $4$ more sets with cardinalities between those $5$, and so on and so on...  That is, if CH is not true, can there be an infinitely countable number of sets $S_i$ between $\mathbb Z$ and $\mathbb R$ so that we have $|\mathbb Z|<| S_1|<...<|S_{\infty}|<|\mathbb R|$. And, if there cannot be an infinitely countable number of sets between $\mathbb Z$ and $\mathbb R$, all with different cardinalities, can there be a finite number of them (a finite number greater than $1$)?


Prove that for infinite set $A\setminus B$ and countable set $B$, $ |A\setminus B|= |A|$

Prove that for infinite set $A\setminus B$ and countable set $B$ it is true that  $A\setminus B$ and $A$ are equinumerous.  Have tried to apply fact that every infinite set contains countable one, however don't understand what to do with elements enumeration needed for bijection.. P.S First came up with this problem here: , however referenced solution seems to be for different task..


Sudo su setting default password automatique

I'm a newbie linux (Ubuntu) user and i have a question to sudo su, I always like use the root in the shell for no annoying privilgies errors :)  But the problem is sudo su always ask me for a password and this is also annoying to me, because i'm on studying about linux so i open alots of shells and close them in short time :D  For that i tried write this little bash script :  #!/bin/bash echo "My_Password" | sudo su   And make a symbolic link to it for executing it each time i open a shell, this is less annoying, because sudo always ask me for the password and sometimes i do some mistake in it :)  But the problem is the bash script doesn't work :( Does anyone know how to this??, or setting my password in sudo config file and it doesn't ask me anymore for the password?? :)  Thank you all


I am new to ubuntu. I downloaded the iso file but when I open it - it opens a virtual cd drive instead of installing on my USB - I need help. detailed help. my pc is windows 10. thank you


Accidental upgrade of iPhone SE to iOS 10, any way to go back to 9?

I'm fairly sure this is not possible but had to ask anyway.  My wife's iPhone SE was on iOS 9 which she loved, and she hates iOS 10 (has tried it on my phone and can't stand it).  Today her phone popped up a dialog to upgrade and her finger slipped just enough to hit "OK" rather than "Cancel" (or whatever the precise wording, I forget).  Now she's on iOS 10 and is absolutely miserable.  Is there any possible way to revert?  I'm aware of the new "prometheus" option but as she's never jailbroken or had any interest in such things, she has no saved blobs for her phone from any prior OS version.  I know this is a long shot but... fingers crossed.


I am having problems installing drush 8 in ubuntu 16.04. when i insert the following command in the terminal  composer global require drush/drush:dev-master   i get the following error   I have also tried the documentation from drush.org  php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > drush   but i get the following error msg     bash: drush: Is a directory   I am currently stuck.


Where can I get older versions of Lubuntu?

I have an old Compaq NC6000 computer, and the newest kernels don't work.  I need to use an older version of Lubuntu.  Where can I download the older versions lf Lubuntu?


How can I model AI Interactions across the entire game world without computing them individually?

I'm making a 2D top-down tile-based game in C++ using SDL2. The game uses a very large world map (think Dwarf Fortress).   My world terrain is generated using a noise function, another function is then used to build towns, model NPCs, etc. which are then saved to a local SQLite database (I'm using a database because NPC states, for example, are quite complicated - the database models their relationships with other NPCs, changing personalities, goals etc., and can be affected by player interactions with them as well).   At any point in time during play, the player is in some 'sector' of the world map. Currently, only interactions in the player's current sector are modeled (e.g. NPCs talking to each other, NPCs fighting each other etc.).  How can I model interactions across the entire world map, without the obvious computational problems of modelling every single interaction that occurs?   Is there some pattern which can generalise interactions?   The game uses time heavily (where a minute of game-time is a second in real-time, and thus in-game minutes, hours, days, months and years can be used). Could I somehow compute large-scale estimations of changes overtime? Some of these changes could be computed on player entry into the sector, based on how long it has been since the player has been in that sector (e.g. NPC getting older, dying of age etc.), but some changes should occur as they actually 'happen' (e.g. cross-sector things like an army or a trader travelling across the map).


How to calculate relative error when true value is zero?

How do I calculate relative error when the true value is zero?  Say I have $x_{true} = 0$ and $x_{test}$. If I define relative error as:  $\text{relative error} = \frac{x_{true}-x_{test}}{x_{true}}$  Then the relative error is always undefined. If instead I use the definition:  $\text{relative error} = \frac{x_{true}-x_{test}}{x_{test}}$  Then the relative error is always 100%. Both methods seem useless. Is there another alternative?


Ubuntu 20.04 snap installed Chromium - Impossible to read Nextcloud folders

Since Ubuntu 20.04 has switched to snap package, I can't upload/download anymore files inside ~/Nextcloud/ Obviously, everything works normally using the OS file browser, command line and Firefox.


Get position of the first solid crossing limits line of a camera

I am working on a Python script for a scene of a movie project where no Depth of Field is used by the active camera (no dof_distance neither dof_object).  However there is a character crossing the limits line of the camera and I need the character position or at least, the location of the first point which cross the line (red point on my illustration). Could someone help me find a solution ?  I give you a simple illustration of my problem :


Why do we rarely see recumbents and almost never see velomobiles?

are more efficient than ordinary upright bicycles, and  are even more efficient. Then why do we see them so rarely on the road? Is it because they are expensive, or are there some non-financial, significant disadvantages?


I have a data set with tens of thousands of observations of medical cost data.  This data is highly skewed to the right and has a lot of zeros.  It looks like this for two sets of people (in this case two age bands with > 3000 obs each):   Min.  1st Qu.   Median     Mean  3rd Qu.     Max.   0.0      0.0      0.0   4536.0    302.6 395300.0  Min.  1st Qu.   Median     Mean  3rd Qu.     Max.   0.0      0.0      0.0   4964.0    423.8 721700.0    If I perform Welch's t-test on this data I get a result back:  Welch Two Sample t-test  data:  x and y t = -0.4777, df = 3366.488, p-value = 0.6329 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval:  -2185.896  1329.358 sample estimates: mean of x mean of y   4536.186  4964.455    I know its not correct to use a t-test on this data since its so badly non-normal.  However, if I use a permutation test for the difference of the means, I get nearly the same p-value all the time (and it gets closer with more iterations).  Using perm package in R and permTS with exact Monte Carlo      Exact Permutation Test Estimated by Monte Carlo  data:  x and y p-value = 0.6188 alternative hypothesis: true mean x - mean y is not equal to 0 sample estimates: mean x - mean y        -428.2691   p-value estimated from 500 Monte Carlo replications 99 percent confidence interval on p-value:  0.5117552 0.7277040    Why is the permutation test statistic coming out so close to the t.test value?  If I take logs of the data then I get a t.test p-value of 0.28 and the same from the permutation test.  I thought the t-test values wold be more garbage than what I am getting here.  This is true of many other data sets I have like this and am wondering why the t-test appears to be working when it shouldn't.  My concern here is that the individual costs are not i.i.d.  There are many sub-groups of people with very different cost distributions (women vs men, chronic conditions etc) that seem to voilate the iid requirement for central limit theorem, or should I not worry about that?


Computing $\int^1_0 \frac{p^2-1}{\text{ln } p}dp$

Does anyone know the exact value of this integral?   $$\int^1_0 \frac{p^2-1}{\ln p}dp$$   I know that the approximate value is $1.09861...$. But I can't seem to get a figure on the exact value, or an antiderivative.


Is there difference between "by then" and "until then"?

Is there difference between "by then" and "until then" in the following sentence?     "I'll call you around 9 o'clock. By then (or "until then"),  sweet dreams!"


Modular formula for binomial coefficients?

Inspired by  and my answer.  The standard formula for binomial coefficients is well-known: $$\binom{n}{r} = \frac{n!}{r!\cdot (n-r)!}.$$ And the binomial theorem is one of the more prominent uses of binomial coefficients: $$(x + y)^n = \sum_{r = 0}^n\binom nr x^{n-r}y^{r}.$$ However, when using the binomial theorem modulo some integer $k$ (i.e. when working with polynomials over $\Bbb Z_k$ rather than $\Bbb Z$), one encounters a problem putting these two things together. Specifically, if $n$ is large enough, the fraction in the formula for binomial coefficients is invalid, as the denominator will not be invertible modulo $k$.  Now, one could argue something along the following lines: $\binom nr$ as given in the formula represents an integer. One uses the formula over the integers to find the integer value of the binomial coefficient, and then reduce it modulo $k$. This approach will give the correct answer.  However, this doesn't sit entirely well with me. When expanding $(x + y)^n$ in $\Bbb Z_k[x, y]$, in any intermediate step as well as in the final answer, all coefficients are in $\Bbb Z_k$. The integers never really enter into this1.  So my question is this: Is there a (relatively) compact formula2 for $\binom nr$ modulo $k$? Every arithmetic operation the formula describes ought to be valid modulo $k$, so most importantly there should be no factors of $k$ in any denominators.  A first attempt might be to clear away factors from the original formula. This way we get then: $$ \binom nr = \frac{n(n-1)(n-2)\cdots(n-r+1)}{r!} $$ Once we get to this point, though, any more simplification of factors seems to be very difficult. And while this formula is a bit more robust (its validity is independent of the size of $n$, for one thing), it still won't work for large enough $r$.    1 Many (most?) people, on some level, actually do the modular addition and multiplication required for this expansion the way described above: think integers first, then reduce modulo $k$ afterwards. But my point is that one does not have to do it that way.  2 Say it should be simple enough that using it to calculate binomial coefficients up to around $n = 10$, or with $r$ close to $0$ or to $n$, with pen and paper should not be tedious, whatever that means. And while I don't expect there to be something as short as $\frac{n!}{r!(n-r)!}$, I don't want there to be any problems fitting it in a single line.    Edit: I was made aware of  in the comments. This neatly solves the problem for prime $k$ (and by the Chinese remainder theorem for square-free $k$). I guess my remaining question is this: Can something be done for $k$ being the power of a prime? And if I'm being greedy, I personally think using the Chinese remainder theorem for calculations is a bit tedious at times. Can one make do without it? (This is in no way a requirement; a full solution using the CRT is completely fine. It might also be just me not having found an algorithm I'm comfortable with, which is another issue enteirely.)


First, i initialized my ArrayList to null, then I tried to initialize it with a String, but it doesn't overwrite the String. Now I initialize my ArrayList with another ArrayList containing a String and it works, can someone explain it? (implementation is done in java)


Can we get a flag history for chat's moderator attention flags?

I checked my  to see whether I can find something similar to the main-site flag-history for chat-flags, but didn't find anything. I recently had the (dis)pleasure of regularly having to deal with a user, that has been deleted multiple times. Whenever they show up (with the same nick-name) again I have to flag them again. I'd like to get an overview of how often I had to do that, and whether my flags were helpful for the moderators. As such I propose the implementation of a flag-history as it is already in place for the main-site for chat-flags, that request moderator intervention. To be completely clear I am not talking about the 10k user flags, which are acted on in a matter of sometimes seconds with instantly visible results, but about moderator attention flags from this menu:


Applying sorted sequential numbers to only certain features using ArcPy

I would like to take sequential numbers up a level and only apply it to features of a certain type. Say I have two feature types, black and white features, and it's denoted by the field "Type". I want my sequential numbers code to skip all white features and pick up where it left off with the last black feature. I'm sure it's some type of If/Then statement but i can't figure it out. Here's the basic code where it returns sequential numbers by my sort field, which works just fine:   import arcpy  sortFeat = r"P:\path\Receivers.shp" #featurepath sortField = 'Ycoord' #Base Field to sort, which is  idField   = 'R_ID' #Field to populate sequential numbers rec=0  def autoIncrement():     global rec     pStart = 36 #number of features     pInterval = 1      if (rec == 0):          rec = pStart      else:          rec -= pInterval      return "R" + str(rec)  rows = arcpy.UpdateCursor(sortFeat, "", "", "", sortField)  for row in rows:     row.setValue(idField, autoIncrement())     rows.updateRow(row)  del row, rows  print "Finish"    So how can i make this only apply to certain attribute type and not all within the layer?  I am using Python 3, but this currently only works in a 2.7 environment.


It's pretty complicated and sometimes the system freezes when I try to download and install wps office. I think it is much more convenient to use the terminal. But I never used installed WPS Office from the command line. That would be great if I could update it using software manager or terminal. Third party deb files are from separate locations. I specifically want to know about WPS


What's the etiquette when a comment leads me to an answer?

I posted a question on Stack Overflow and another user's ("User Y") comment led me to a solution.    I replied to User Y and asked them to submit their comment as an answer, in which case I'll happily accept it. However, after several days, the only answer (from another user) is a (polite) version of "your question is silly, you should just do X instead. If you really must do what you asked, User Y's comment is the way to go."  I could now write out a detailed answer, inspired by User Y's comment. However, I feel that User Y should get credit for this answer. A generally useful answer would require a little more detail, but not really all that much.  What's the etiquette here? My question has a few upvotes and favourites, so it seems I'm not the only one who thinks it's useful to the community. How long should I wait before answering my own question?


bash Script - find: invalid predicate `-newermt' error

I have a scenario where i have to I need to find the files for a specific year for eg- 2012 and empty the files. Trying to use the below command which is throwing   #!/bin/bash find . -type f -newermt 2012-01-01 ! -newermt 2012-01-01 -exec truncate -s 0 {} \;  find: invalid predicate `-newermt' error Below is the command   Strange thing is this command works for some people.Found that there may be some version compatibility issue for the find with the predicate 'newermt' for my system.  So just wanted to check   1. So how can i resolve the above error 2. Is there any way by which i can perform my task i.e, - find the files for a specific year for eg- 2012 and empty the files.


I am given that $${n \choose a}={n \choose b}$$ I need to show that $n=a+b$ or $a=b$.  Now I am left with $a!(n-a)!=b!(n-b)!$.  I don't know what to do next. I checked there on google to solve the above, it says:- "On comparing, we get the required result." But it makes no sense to me.


I've read that abelian categories can naturally be enriched in $\mathbf{Ab}.$ How does this actually work?

Wikipedia defines the notion of an abelian category as follows ().     A category is abelian iff         it has a zero object,   it has all binary products and binary coproducts, and   it has all kernels and cokernels.   all monomorphisms and epimorphisms are normal.      It later explains that an abelian category can naturally be enriched in $\mathbf{Ab},$ as a result of the first three axioms above.  How does this actually work?


Does anyone have a quick method of denesting square roots?     Problem: To quickly denest $\sqrt{5+2 \sqrt{6}} \qquad \tag{1}$   As an aside, this comes from solving the polynomial     $$x^4-10x^2+1=0$$   Since the elements of the Galois group must send an element of the kernel to another element of the kernel, we can show that four different permutations give us exactly the four-group of Klein.  The roots of the $(1)$ can be shown to be $\{\sqrt{2}+\sqrt{3},\sqrt{2}-\sqrt{3},-\sqrt{2}+\sqrt{3},-\sqrt{2}-\sqrt{3}\}$ all of which arise from the denesting of $\pm \sqrt{5\pm2 \sqrt{6}}$.  Other than brute force, does anyone have a quick way to denest square roots, I find this part of the the solution to Galois problems takes a long time, and detracts from the most fun part, the permutations of the symmetries of the roots.


Java beginner code snippet help. Code not working?

I am currently writing a simple java text game in witch you play the computer in rock paper scissors.   I cant figure out why my code is not working right. im sure i did something stupid or something. please help.          System.out.println("Welcome to rock paper scissors! select 'Rock', 'Paper', or 'Scissors'");      Scanner scan = new Scanner(System.in);      while(playerscore <2 && computerscore <2 ){         String player = scan.next();         System.out.println("you chose "+player+".");          //convert lowercase to capital         if(player.equals("rock")){                   player = "Rock";         }         else if(player.equals("paper")){             player = "Paper";         }         else if(player.equals("scissors")){             player = "Scissors";         }          Random ran = new Random();         int computer = ran.nextInt(3);          if(computer == 0){             System.out.println("Computer chose rock.");             if(player.equals("Rock")) {                 tie();             }             else if (player.equals("Paper")){                 lose();             }             else if(player.equals("Scissors")){                 win();             }          }         else if(computer == 1){             System.out.println("Computer chose paper.");             if(player.equals("Rock")){                 win();             }             else if (player.equals("Paper")){                 tie();             }             else if(player.equals("Scissors")){                 lose();             }}          else if(computer == 2){             System.out.println("Computer chose paper.");             if(player.equals("Rock")){                 lose();             }             else if (player == "Paper"){                 win();             }             else if(player.equals("Scissors")){                 tie();             }}         }           }    public static int playerscore = 0; public static int computerscore = 0;  public static void tie(){     System.out.println("You and the computer tied!");     return;  } public static void win(){     System.out.println("You won that round!");     playerscore++;     System.out.println("you now have "+playerscore+" points");     return; } public static void lose(){     System.out.println("You lost that round!");     computerscore++;     System.out.println("The computer now has "+ computerscore + " points"); }   `


Let $n$ be a natural number such that $n \ge 2$ and given complex number $z_1, z_2, \ldots, z_n$ that is contained in an open unit disk centered at origin. Prove that there exists $\epsilon_l = \pm 1$ with $l = 1, 2, \ldots, n$ such that  \begin{align*} \left|\sum_{l=1}^n \epsilon_l z_l\right|\le\sqrt{3} \end{align*}


What's the best way to keep line breaks from a form entry to mysql and handle mysql escapes

I have a question I have been pondering for a while.  What is the best way of keeping line breaks to a MySQL db and handle the escapes so that the query doesn't fail.  I came up with a function to do this but I am not sure this is the right way to handle the string.  function nl2br2 ($string){     $sqlescapes = array("'", ";");     $string = str_replace($sqlescapes, "", $string);      return str_replace( "\n", '
', $string );  }   This function will replace PHP line breaks and replace them with
 so html can recognise them if I use mysqli_real_escape_string it removes the line break and this is the predicament.  Are there any other functions I could utilise, as the above removes grammar from the string?


I would like to check which driver is being used by the kernel for the eth0 interface. Is lspci eth0 the correct command ?


How can we prove that $\mathbb{Z}$ is not isomorphic to $\mathbb{Q}$?  Both of them have a countable number of elements, so cardinality doesn't help. $0$ is the identity and $-x$ is the inverse of $x$ in both case. What to use then?


Java typical usage of Void autoboxing type

What is the practical usage of Void reference type in java? How can it help me in practical programming?


While running sudo apt update I received warnings

I got this error:  W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/vscode.list:3


I tried creating a little programm, that randomly puts chars together (in this case 2 to keep it simple) until it gets the requested combination (here: "ab"). But unfortunately I seem to have trouble adding the char "rand" onto the string "string", because the comparison in the while-loop doesn't seem to work even though it has the right combination. Could it be, that Java adds invisible characters when you create a String? How can I add the char properly?  public static void main(String[] args) {     // TODO Auto-generated method stub     String string = "";     String comp = "ab";     int counter = 0;     char rand;      while (string != comp) {         string = "";         for (int i = 1; i <= comp.length(); i++) {             rand = (char) Math.floor(Math.random() *26 + 97);             //JOptionPane.showMessageDialog(null, rand);             string += rand;             //JOptionPane.showMessageDialog(null, string);         }         //JOptionPane.showMessageDialog(null, string + ", " + counter);         counter++;         System.out.println(string + ", " + counter);     }      JOptionPane.showMessageDialog(null, string);     JOptionPane.showMessageDialog(null, "Achieved after " + counter + " tries"); }


I want to make a translation of a grib file to tif with gdal, I use the python script, and I have always error "the specified file not found '  import subprocess  src ="donnee1.grib2" dst ="donnee2.tif" subprocess.call(["gdal_Translate -of Gtiff -b 1",src,dst])


How to set systemwide "XP style DPI scaling" in Windows 8.1?

I run my ThinkPad with a system DPI setting of 140%. In Windows 7 and 8, I enabled the "Use Windows XP style DPI scaling" checkbox in the Custom DPI Setting dialog. When this setting is off, non-DPI-aware applications get DPI virtualization via bitmap stretching, which results in large but fuzzy text. Turning on the checkbox disables this bitmap stretching, so non-DPI-aware apps get smaller text but without the fuzzy stretching. I find most apps to be more readable with the smaller crisper text, so I enable XP style scaling (i.e. disable DPI virtualization).  Windows 8.1 RTM has removed this option completely. After upgrading, all of my non-DPI-aware apps are running with ugly bitmap stretching. I'm able to fix this by going into the Properties for each app and setting the "Disable diplay scaling on high DPI settings" box in the Compatibility tab, but that is a bit of a pain.  Is there any way to restore the systemwide XP-style DPI scaling in Windows 8.1?


Obtaining remote host name in bash script

Sorry my knowledge of Linux bash commands is pretty basic, I've been searching for a while but I'm not 100% sure what I need to search for.  I was wondering if there's a way to grab the current logged in users remote host name in a Linux bash script? I have a script in which I need to log each time a user runs it. I'm obtaining the date like so:  cdat=`/bin/date +%a' '%d' '%h' '%Y', '%H':'%M`;   I now need to add the users remote host (not the username they logged in with). I'm not 100% sure I'm using the right terminology here either, just to clarify; by 'remote host name' I mean the same output that prints on the screen on most servers I've logged into over ssh, for example:  Last login: Mon Jul 22 16:35:09 2013 from win7-i7-stuart.my.domain.com   I'm looking for the win7-i7-stuart.my.domain.com bit.


If X is a binomial random variable, find $E(X(X - 1) (X - 2))$

If X is a binomial random variable, how do you find $E(X(X - 1)(X - 2))$?   Here's my approach:  $E(X(X - 1)(X - 2)) = E(X^3 - 3X^2 + 2X)$  $E(X) = np, Var(X) = np(1 - p)$  $Var(X) = E(X^2) - (E(X))^2$  $E(X^2) = np(1 - p) + (np)^2$  So, $E(X^3 - 3X^2 + 2X) = E(X^3) - 3E(X^2) + 2E(X)$  How should I deal with $E(X^3)$?


The new gym update , including a limit of 50 coins earned per day. How does this limit work? Is each pokemon limited to accruing 50 coins per day? Are all my pokemon limited to a collective 50 per day? My teammates keep feeding my Dragonite and she has been at the gym for almost a week; will she return with 50 coins for each day she was there? Fewer than 50 for the days I had other pokemon in the gym? Or will she accumulate vast sums of coins over the week, but only deliver me 50 (or fewer) when she comes back based on what I have collected from returning pokemon that day?


Can I bring my desktop computer as check-in baggage on a flight?

I am moving from Malaysia to the US, and planning to bring my desktop computer with me. I plan to pack it in my checked-in luggage. Will the computer risk being damaged? Any precaution should I take to reduce this risk? Will there be any trouble with the airline or immigration about bringing computer?


Does anyone have any bright ideas for how to open a drawer that has become jammed shut because it has been filled up too much? I've had a look at the underside and can get at the bottom of the drawers but unscrewing the rails etc. is not an option because I can't get at them. Currently my best plan is to try and remove or cut out the hard board base of the drawer which would then need to be replaced. Any better ideas much appreciated.


Handling several acceptance letters from different schools

If an institution tells you, look here is an admission offer, and you should let’s know if you accept it or reject it by the day after tomorrow. Meanwhile, you are still waiting for a word from other places that you applied to.  So, what is the most diplomatic and tactful way to communicate “Hey, I can not  accept/reject the current offer right now. That's because i am waiting to hear back from other schools, and I need time to decide upon that”? At the same time, I do not want to sound like careless about the offer.


System directly booting to Windows without showing GRUB menu

I have a hp pavillion 15 n203tx with preinstalled Windows 8.1.   I installed Ubuntu 14.04 in it, and then it used to show a GRUB menu every time I turned on the machine. The menu said something like:  1. Ubuntu  2. Advanced options for Ubuntu  3. Windows Boot Manager(on /dev/sda2)  4. System Setup   Everything was working well. If I wanted to run Ubuntu I chose the Ubuntu option and if I wanted to boot Windows then I chose the third option of Windows Boot Manager.  Out of curiosity once I tried that last option-system setup, and a new menu loaded up, a startup menu showing the following options-   1. f1 system information  2. f2 system diagnostics  3. f9 boot device options  4. f10 bios setup  5. f11 system recovery  enter- continue setup   then I pressed enter and Windows started booting. Since then, my system is booting directly to Windows without showing the GRUB menu.   If I want to see that grub menu, I have to press the esc key on starting my system. Then the startup menu appears (which I have mentioned above) and I have to press f9. Then I am presented with a boot menu options screen with the following options:  1. OS boot manager 2. Ubuntu 3. Boot from EFI file   I have to select the second option to get to the GRUB menu.   I want my system to work as it did earlier.


Refactoring existing code.      They are trying to collapse any series of spaces in string passed in to a single space.     Surely there is a better way.              for (int i = 0; i < 25; i++)         {             str = str.Replace("  ", " ");         }


Creating a Custom Properties Tab in Blender 2.80

I have a suite of several addons that I grouped together in a custom tab in Blender 2.7x, assigning the bl_category to the name of my custom suit:  class Panel1(bpy.types.Panel):  # Blender 2.7x     bl_label = "Panel 1"     bl_space_type = "VIEW_3D"     bl_region_type = "TOOLS"     bl_category = "MyToolSuite"   In Blender 2.80, I would like to group the tools together in a new properties tab.  How can I create a custom properties tab?  The following works to put my panel inside an already-existing tab, but does not work to create a new tab to hold all my panels:  class Panel1(bpy.types.Panel):     bl_label = "Panel 1"     bl_space_type = "PROPERTIES"     bl_region_type = "WINDOW"     # bl_context = "object"     # this puts my panel in the Object tab     bl_context = "MyToolSuite"  # this does nothing?   What else needs to be done to create a new tab in Blender 2.80?  Thanks!


How to make my flashdisk write-protected so no one can format it?

Can you help me? I want to make my flashdisk write protected. So no one can format my flashdisk because the data inside the flashdisk is important.


wifi is not coming up in network connections in xubuntu 15.04

I have no problem with wired connection, but wifi is not even an option on my newly installed xubuntu 15.04. I found similar question (Wifi not detected Xubuntu 13.10) and run the commands in terminal, here is the output:  op@op:~$ lspci -knn | grep Net -A2 06:02.0 Network controller [0280]: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller [14e4:4318] (rev 02)     Subsystem: Hewlett-Packard Company Broadcom 802.11b/g WLAN [103c:1355]     Kernel driver in use: wl op@op:~$ lsmod | grep -e wl -e b43 wl                   6152192  1  cfg80211              462848  1 wl   This is what I have after running it again:  op@op:~$ lsmod | grep -e wl -e b43 b43                   401408  0  bcma                   49152  1 b43 mac80211              626688  1 b43 cfg80211              462848  2 b43,mac80211 ssb                    57344  1 b43  op@op:~$ sudo apt-get remove --purge bcmwl-kernel-source [sudo] password for op:  Reading package lists... Done Building dependency tree        Reading state information... Done Package 'bcmwl-kernel-source' is not installed, so not removed  op@op:~$ sudo apt-get install linux-firmware-nonfree Reading package lists... Done Building dependency tree        Reading state information... Done linux-firmware-nonfree is already the newest version. The following packages were automatically installed and are no longer required:   dkms linux-headers-generic linux-image-generic thermald Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.  No files to remove, no files to install and still no wifi.   Any ideas???  Here is what I tried and collected as much info as I could. Please look: Uninstalled all wifi drivers from the system:  sudo apt-get remove --purge bcmwl-kernel-source sudo apt-get remove --purge linux-firmware-nonfree sudo app-get autoremove   Restart. Restart hangs forever. Power Down. PC comes back up with “System program problem detected” Installing linux-firmware-nonfree  sudo apt-get install linux-firmware-nonfree Looks good so far:  Preparing to unpack .../linux-firmware-nonfree_1.16_all.deb ... Unpacking linux-firmware-nonfree (1.16) ... Setting up linux-firmware-nonfree (1.16) ... op@op:~$    Unplug Ethernet cable and restart. no wifi please see screenshot:  Plug Ethernet cable back removing linux-firmware-nonfree installing bcmwl-kernel-source and it hangs after installing no prompt available system is workable just terminal hanging. Please see bellow: Loading new bcmwl-6.30.223.248+bdcom DKMS files... First Installation: checking all kernels... Building only for 3.19.0-28-generic Building for architecture i686 Building initial module for 3.19.0-28-generic Done.  wl: Running module version sanity check.  - Original module    - No original module exists within this kernel  - Installation    - Installing to /lib/modules/3.19.0-28-generic/updates/dkms/  depmod....  DKMS: install completed.  NO PROMPT! RESTARTING. Hangs on the Xubuntu logo, Doesn’t restart. Power down. Comes back same story. No wifi. Since this was not an issue in Xubuntu 14 should I downgrade?


Does there exist a formal statement of the Multivariable Factor Theorem?

I've been searching around for a formal definition, but I haven't found one yet. There are a few examples of how to use it, namely . I've been playing around with possible statements myself, and I've come up with two candidates, the second a generalization of the first. I'll phrase each in terms of polynomials in $\mathbb{C}[x,y,z]$ because they're easily generalizable to $n$ variables if true.     If $f(x,y,z)$ is a polynomial, and $P(y,z)$ is a polynomial satisfying $f(P(y,z),y,z)=0$ for all complex $y$ and $z$, then $x-P(y,z)$ is a factor of $f(x,y,z)$.   This one I think I've successfully shown, just by using the remainder theorem where the remainder is designated to have smaller $x$-degree.     If $f(x,y,z)$ and $P(x,y,z)$ are polynomials such that for any $x,y,z\in\mathbb{C}$ the following implication holds:   $$P(x,y,z)=0\Longrightarrow f(x,y,z)=0,$$   then $P(x,y,z)$ is a factor of $f(x,y,z)$.   This I have less of an idea how to show, because the remainder theorem is trickier for multivariable polynomials. It still looks true to me.


<form action="test.aspx" method="post"> <input type"text" name="test[0].myitem" value="computer" /> <input type"text" name="test[0].quantity" value="1" /> <input type"text" name="test[0].price" value="US$10.5" /> <input type"text" name="test[1].myitem" value="printer" /> <input type"text" name="test[1].quantity" value="1" /> <input type"text" name="test[1].price" value="US$15.5" /> </form>   this it html source,  How can I get and use this post data in asp.net c#  Request.Form["test"] and Request.Form.getValues("test") didn't work. Request.Form["test[0].myitem"] not work also


How do I experimentally measure the surface area of a rock?

I hope this is the right place to ask this question. Suppose I found a small irregular shaped rock, and I wish to find the surface area of the rock experimentally. Unlike for volume, where I can simply use Archimedes principle, I cannot think of a way to find the surface area. I would prefer an accuracy to at least one hundredth of the stone size. How can I find the surface area experimentally?


French spacing disappears within commands

I am preparing a document in French, using the "babel" package with option "french" and using commands that include colons and semicolons. My problem is, the French spacing before colons and semicolons disappears when the commands are printed. I do not understand why, have not been able to find an answer. Below is a MWE.  \documentclass{article} \usepackage[french]{babel} \newcommand\deuxpoints{Texte: texte} \begin{document} \deuxpoints\ \endgraf Texte: texte \end{document}


When you suggest an edit to a tag wiki the suggested edits counter is increased

When you (that is, you and not somebody else) suggest an edit to a tag wiki the counter on the suggested edits tab on the review page is increased by one. This seems to be wrong if the function of the counter is to inform of the number of edits you can act on. When you suggested an edit of a tag wiki then you cannot, and rightly so, review that very edit (when you enter the suggested edits page your suggested edit does not appear there).


How can i transfer phone memory apps to external SD card

I am getting very low space please help. I want to install or transfer apps on external SD card completly.


Importing a file in Python runs the entire file

I have imported a function from file main.py in the same directory as my current file from main import locate_reference_point  print("exited")  The above code executes the entire main.py file and them prints "exited". This is how the code was run from the terminal [python -u "c:\Users\Aadithya\Documents\GitHub\whatsapp_bot\unread_messages.py"] This is not how its supposed to work, right? Why is this happening and how to rectify this and execute only the imported function only when it is called for? Thanks a lot for your help.. P.S I have verified many times.


How long will bottled beer last without refrigeration?


Were the three nazgul of Numenorean origin black Numenoreans?

Were know that three of the Nazgul are of Numenorean origin, Khamul was an Easterling, the origin of the other 5 are unknown.  Considering the black Numenoreans rebelled against the faithful, is it more likely that the three Nazgul of Numenorean origin are probably black Numeanoreans from the southern regions of middle earth?


I accidentally deleted python3 on Ubuntu from /usr/bin. Now every time i install python it gets installed in /usr/local/bin instead so i took python3.5 and placed it in /usr/bin and created a symlink for it from python3 as it was in the original. Somehow this doesn't work and I do not know what to do anymore.        sudo apt-get install *anything* returns        dpkg : error processing package python3 (--configure)             Errors encountered while processing              python3             python3-distupgrade             ubuntu-release-upgrade-core             ubuntu-release-upgrade-gtk   As a result even terminal doesn't work so have to use xterm.   My /usr/bin looks as below - it looks good so I don't know what is wrong           ls -l *python    in /usr/bin returns           python -> python2.7          python2 -> python2.7          python2.7          python3           python3 -> python3.5          python3.5    and some symlinks to config files.              dpkg -l    reveals Python in pFR state. Which I read as purge, failed, reinstall. Just not sure how to do this?


Where to find resources on tablet heatmaps?

I need heatmaps on tablet usage to see what regions users make use of on tablets.  The reason that I need to do this is that I need to do a recommendation on what gestures I can use the best, to do certain actions on tablets (for example: closing articles with only your thumbs).  Any resources on that topic would be great as well.


How can I introduce a new method of encryption to the world?

The cryptography algorithm I designed is a completely new algorithm and has no similarity to other existing algorithms. But because I am an ordinary person, I have no facilities and the ability to introduce this algorithm except through my website .   Given the fact that there are no absolutes, this algorithm may also have weaknesses that would affect its validity. Therefore, the website was created solely for testing this algorithm, so that the algorithm will be publicly released if approved by experts in the field. But despite repeated attempts and correspondence with reputable technology websites, nobody was willing to help me. Please guide me and help inform this.


The equation is : $$     -x^3-2x^2-4x-5.4+K=0 $$ and I want my solutions in terms of $K$. How do I simplify this polynomial?


Dell Vostro 3568 model ubuntu 17.04 touch-pad left and right click behaving same way

I'm using Dell Vostro 3568 model, recently installed ubuntu 17.04. My touch-pad left and right click working same way.   If left radio button selected in my settings( All Settings->Mouse & Touchpad->General->Primary button) then left and right click behaving like left click always no matter even I clicked left or right.  If right radio button selected in my settings( All Settings->Mouse & Touchpad->General->Primary button) then left and right click behaving like Right click always no matter even I clicked left or right.  Can some one help me to get this fixed, please?? Thanks in advance.


If I push a body with f =5N.The body also exerts a force of 5N on me(Action reaction pair).If the resultant is zero , how does the body move at all.


Dimensional aspects of the imaginary unit $i$ in physics

From a real world perspective each dimension in the 3-D Cartesian System can be represented by an axis that is perpendicular to 2 other axes. I read somewhere else that the effect of ${i}$ is to reorient data 90 degrees on the "imaginary" axis. I guess my question is this: What role ( if any)   does $i$ serve in everyday or even quantum physics?  ${Edit}$  To clarify, I am more concerned with the dimensional aspects of $i$. If for instance you were to consider a 3-D location to be a "point" with length width and height in a complex graph representation with three additional mutually perpendicular axes?   PS. I know this thread is getting a bit hair brained. But in my defense, I did look for a "specualation" tag before I posted this thread here.  $EDIT$  I changed $\sqrt{-1}$ back to $i$, because I am concerned with the hypothetical real world effect of the entity. Not the mathematical representation.


(QGIS) Splitting vector polygon layer with vector line layer

In QGIS, I have a layer of polygons (land parcels) and a layer of lines (outline of planned street). Can I slice the polygons along the line, creating new polygons from the "detached" parts?  If the street were a polygon, I could intersect both layers. Unfortunately, the street is a line layer that cannot be easily transformed to a polygon, since it has open ends, there is no defined "inside" or "outside". I have searched StackExchange and Reddit, have tried all the QGIS vector tools, the SAGA vector tools, the Digitizing Tools plugin and the Clipper plugin, but no luck. My Python knowledge is near-nonexistent. What am I missing? Using QGIS 2.18.24 (standard in my org, no chance of update for now).


how can i delete a file with wrong path, created by java program

How can I delete a file made up of a java program. I have a file named con.txt located in a directory, this file is made up of before, when I learned java language. But something is wrong (probably the path) when I try to open the file then notepad display 'can not file \\. \ con.txt, do you want create new file ''. I try to create a new file but create a new one and the old file still exists. Can you show me how to delete this file, thank you very much


Is there a way to get correctly aligned print export with OpenLayers plugin?

I am a beginner using QGIS (1.8.0 Lisboa) on a Mac (OS X 10.6.8 Snow Leopard). I work on a file with two layers in the following sequence (top to bottom):    a vector polygon layer with a few outlines of various buildings in France and Italy (CRS: EPSG:4326 - WGS 84 - "on the fly" re projection is activated ) a Google satellite layer uploaded via open layer plugin.   Sometimes when changing the scale (scrolling in and out) the Google layer updates a little wrong in size or position compared to the polygon layer. But as soon as I "pan" the map everything reconstructs right. Now the problem I have concerns the print composer.  The result of any kind of export - pdf, or image or svg - of my map (vector layer + Google layer in the background) differs from what is shown in the preview of the print composer: the vector layer and the Google layer positions are mismatching and in a different scale. I can send some pictures showing screenshots of the print composer preview and the final results if required.  I tried almost everything:    new files with different CRS settings "cache" update preview "render" update preview different paper sizes,  different scales,   The problem appears only using an open layer map (Google, OpenStreetMap...). If I try the same using two vector layer (shapefile) - one with the buildings, another one with the city in background - everything works out great.  ...exasperating! Since it is a real important research project I would be very grateful for some help and tips.


How can I draw a coloured concave lens without using PSTricks?

How can I draw a coloured concave lens in pdflatex?


What's the best way to gain reputation points on Stack Overflow?

I'm relatively new to this site and love it! I want to contribute, but I can't until I get more reputation points. What is the best way to legitimately gain reputation points here on Stack Overflow?


Xampp: How to Make a Clean Uninstall to Get Old MySQL Installation Back?

I have since months a working version of MySQL on Ubuntu 14.04 LTS.  I installed Xampp from  and now my old MySQL installation does not work anymore (e.g.: my existing databases are not visible anymore in MySQL workbench, the password seems to be another one).  How can I get my old version of MySQL working again?  It would be ok, if I loose Xampp.  (I see my databases in the filesystem at: /var/lib/mysql/ and know that the old MySQL configuration is in /etc/mysql/)  I posted this question elsewhere, too.


How to prevent automatic justification of references?

I have a reference entry in the bibliography that appears as follows:  [50] AB MySQL.    MySQL:  The  world's  most  popular  open  source  database,      http://www.mysql.com/, 2005.   How to prevent auto-justification for specific references?


Let $p$ be a polynomial over the set of positive integers such that $p(n) > n$  for all positive integers $n$. It is also known that for every positive positive integer $m$, there exists a term of the sequence $1,\, p(1),\, p(p(1)),\, p(p(p(1))), \dots$ divisible by $m$. Then it is easy to see that $p(n) = n + 1$ satisfies all the criteria, cause then $p(n) > n$ and the sequence becomes $1, 2, 3, \ldots$ just the sequence of all positive integers. Does there exist any other polynomial which satisfy all the criteria ?


How do I add packages to my system when I'm not using the Server edition?

I have current Ubuntu Desktop for 32-bit installed and want to add apache and some other packages.  I've found some instructions but they are all written for Server where I have a prompt.  How do I do install in a workstation?


People say yes, and give a wonderful example of vacuum tubes, CRTs. But can we really say that vacuum (..as in space)  is a good conductor of electricity in a very basic sense?


Normally, portrails of Spiderman  that are realisticly drawn, or live-action, have him wearing foot skins inspired by martial art fighters; sometimes it has a clearly separate big toe.  It's difficult enough to suppose that Spiderman covers his skin at all, if his power is explained by gecko-like hairs with microfiber tips.  Perhaps they go through thin spandex or special glove material.  But in The Amazing Spiderman 2, he was very clearly wearing athletic shoes with a thick sole, with a thick layer covering the bottom of his feet.  Why did they design his costume that way? What is the rational for its ability to work for him?


My BSc thesis was on general relativity MY MSc thesis was going to be on modified theories of gravity and cosmology, in hope of pursuing a PhD in this area or similar one day.  I know replies are going to be why would you want to do a PhD in an area you don't want to do master's level research at.  However, modified theories of gravity and cosmology would be my second choice right now, just from brief reading around, I don't think it's going to compare to the excitement of first learning general relativity and I did some reading around for PhD interviews- I got short-listed a fair amount and was told my academia and project description were strong and good enough, but really my lack of enthusiasm let me down-which is the story of my life because I'm a bit shy, anyway, so I just fancy a bit of a break from it, and I was thinking of a topic that involves a bit of pure maths as well as mathematical physics.  I guess pretty much my question is can you get a PhD in an area you didn't do your masters thesis?  Would it significantly lower my chances.  Could it perhaps be the case that I really enjoy my master's thesis and want to pursue a PhD in this instead?  Thanks


Evaluate $\int\int_SF.dS$ where $F=(xz,yz,x^2+y^2)$  Where $S$ is the closed surface obtained from the surfaces $x^2+y^2\leq 4,z=2,x^2+y^2\leq 16,z=0$ on the top and the bottom and $z=4-\sqrt{x^2+y^2}$ on the side.  How we can solve such integrals?I need your help.  Edit: without using the Gauss Divergence theorem.


Let $G$ be a finite group. Let $I(G)$ be the set of elements of $G$ that have order 2. Suppose $|I(G)| \ge \frac 3 4 |G|$. Let $x \in I(G)$. We note $I_x(G)$ the subset $\{xg \in I(G)\}_{g \in I(G)}$. Show that $|I_x(G)| \ge \frac 1 2 |G|$.  I have shown that $I_x(G) \subset C_G(x)$ but I have no idea how to continue from there.. Can somebody please give me a hint (I'm not asking for the answer, I'd like to find that myself).


Interestingly I couldn't find a similar existing question here, so I'll ask. Why is "pronunciation" spelt thus if the root word is "pronounce", with an "o"? In other words, why is it not "pronounciation", as some people are inclined to write (and say)?


OS X 10.6: Cant unbundle VMWare software with git: does not look like a v2 bundle file

So I am using Mac OS X 10.6.8, I'm trying to download VMWare Player, there was no OS X specific bundle, only linux. I tried to unbundle the 32 bit linux with:  jdd:VMWare Me$ git clone VMware-Player-6.0.1-1379776.i386.bundle -b master ./VMWare Cloning into ./VMWare... error: '/Users/Me/VMWare/VMware-Player-6.0.1-1379776.i386.bundle' does not look like a v2 bundle file fatal: Could not read bundle '/Users/Me/VMWare/VMware-Player-6.0.1-1379776.i386.bundle'. jdd:VMWare Me$    and git version:  jdd:VMWare Me$ git --version git version 1.7.5.4 jdd:VMWare Me$   I was trying to google, unsuccessfully, what a v2 bundle file is, what the expected type on OS X and linux are, to see the difference, and to see if there was a conversion tool. Any Ideas?


Where can I ask about citing a legal statute?

I have a law I wish to cite in an article. I know the Act/Chapter/Section/Subsection/sub-subsection, etc. But, I don't know how to write this in a way that doesn't span 3 lines. What Exchange would be the appropriate place to ask such a question?  This is a State law, in the United States and the law relates to education within the state.


My external hard drive has been formatted. No backup on Time Machine. How can I recover my files?

I lent my hard drive to a friend and he has formatted it as he couldn't get his PC to recognise it. I have no Time Machine backUp. Is there any way of recovering this data?


Can I use CouchSurfing as as proof of accommodation for a Schengen visa?

Can one use CouchSurfing to prove accommodation for a Schengen visa to Iceland from India?


Is it normal to "extract a paper" from a master thesis?

I have finished my master thesis and now a couple of colleagues who were involved (one of which was the supervisor) are interested in "extracting a paper" from it. We have already written one paper on a topic covered in the thesis, but in a bit more detail. I am worried that this would be considered self-plagiarism since I have already done the thesis and am only really summarizing one part of the thesis.


Possible Duplicate:             Let $A$ and $B$ be two $n\times n$-matrices over some field of characteristic $0$. If $A$ and $AB-BA$ commute, show that $AB-BA$ is nilpotent.   My brother asked me for help on this but I quite embarrassingly can't figure it out. I vaguely recall solving a similar problem in school, but with the added condition that $B$ also commutes with $AB-BA$.   Any help would be appreciated.


How to make a sticky footer in Bootstrap 3?

Here is the current situation of my theme:    . I don't want a fixed footer, and I don't want a sticky footer with position absolute , I just want to fill the horrible section with footer color , I think that display:table-row will do the trick, but don't know how to use it. Can anyone help me please?


Ruby Group regular expression to match only first occurence

I am trying to extract a specific pattern from a string using a regular expression group. My pattern is   '*-to:' 'anything as a text but not an email' 'email'   eg.   send-to: Firstname Surname something@email.com   I am using  /(^.*-to:)(.*[^*@*])(\s[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4})/i   which works fine when the exact pattern is matched but if I get   send-to: Firstname Surname something@email.com somethingelse@email.com    it returns both mails which is not the desirable result. How I could get only the exact matches of this specific pattern?


sizeof is used to calculate the size of any datatype, measured in the number of bytes. Doesn't it mean that number of bytes is an integer?

When I run these two programs which uses sizeof() operator produces the following output. The only difference between 2 codes is that d is initialized to 0 in first code and -1 in second one. Why second program is not entering in the loop body?   1)   #include<stdio.h> int main() { int d; printf("Before loop\n");  for(d=0;d<=sizeof(int);d++)  {     printf("sizeof operator\n");  }  printf("After loop\n"); return 0; }   Output:   Before loop sizeof operator sizeof operator sizeof operator sizeof operator sizeof operator After loop   2)   #include<stdio.h> int main() { int d; printf("Before loop\n");  for(d=-1;d<=sizeof(int);d++)  {     printf("sizeof operator\n");  }    printf("After loop\n");   return 0;  }   Output:  Before loop After loop


Connecting computer to old tv via hmi - dvi-i. No Audio

I moved to an apartment with an older TV. There was a DVI-I to HDMI converter with the TV already so I just plugged the HDMI from my video card to that adapter. The question is what is the best way to transfer audio in my situation? It had a AUX to some light(maybe transmitter?) left in a drawer but I’m really not sure for what is it. There are Beolabs 6000 connected to the TV too.


Inline elements denoted by {{}}? Cartesian product of these inline elements?

What does it mean when you have a set like A = {1, {2}, 3, 4}? Is {2} a subset within A?  Say I have the following:  A = {1, {2}, 3, 4}, B = {1, 2, {3}}, C = {1, 2}  How many elements are in $A \cap B \cap C$? 1 or 2?  What if I want to find $A \times B$, is there 6 elements or 12?


how to calculate the sum of $1^k+2^k+3^k+\dots+n^k$

how to calculate this？I have some indistinct memory that it can be solved by induction, but I forget how to do it.


Lightning Cancel Enqueued Server Side Action

Is there a way in lightning to keep track of enqueued server side actions and cancel them if some event happens on the client before the action completes?


How to randomly pick half* of the item of a list with equity**?

How to pick exactly* half of the item of a list with equity**?  (*)Half is n/2, the int part of this is enought.   The number of item in the list is more than 10^9. So n/2-1 is not close enought to n to be a noticable approximation.   (**)The principe of equity and fairness mean that every items of the list have the same probality of beeing pick.   I had a Equity Picker like this:   myList.Where(i => rand.NextDouble() >= 0.5);   but with this I can have more/less than half, with a slight chance of all /none of them.  Disclaimer: this is not an home work more a reflexion and modelisation around Thanos Random Picker. The ability to pick half of every population with equity.


Does Barren Glory require its trigger condition to be satisfied when the ability resolves?

I was watching the most recent episode of  in which Richard manages to pull of a win with . I believe the win wouldn't actually have worked out if not for MODO rules engine doing something funny.  We see that before Richard combos off with Barren Glory, when he doesn't meet the conditions, Barren Glory does not trigger at all. But once he satisfies the requirements, the trigger does happen and even though Tomer 's Richard in response to the trigger it appears that as long as Richard was able to satisfy the condition when the ability triggered he would have won. I'm just wondering how this would have worked out in paper with a judge and whether MODO did anything funny or I just don't understand how Barren Glory works.


I'm trying to install Windows as a dual-boot. The iso file is the last Windows release: Windows_10_Oct_It and I've tryed so many softwares but everyone says: There's a file too big to burn into a usb. The file is install.wim, what can I do?


How can I access the keychain remotely from the command line?

I am storing various passwords (e.g. for remote email servers) in my keychain. From the command line, when logged in locally, I can retrieve these via:  security unlock-keychain ~/Library/Keychains/login.keychain <enter password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com <dumps keychain attributes, not including password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com -g <dumps keychain attributes, including password>   However, the results cannot be achieved when run remotely (ssh'ing in to the box from somewhere else):  security unlock-keychain ~/Library/Keychains/login.keychain <enter password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com <dumps keychain attributes, not including password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com -g <nothing printed, to stdout or stderr>   Moreover, the return value of the final command (using -g) is 36.  I've dumped the output of set from a local login and compared it to a remote one, and the missing environment variables are:  Apple_PubSub_Socket_Render GPG_AGENT_INFO SECURITYSESSIONID TERM_PROGRAM TERM_PROGRAM_VERSION TERM_SESSION_ID XPC_FLAGS XPC_SERVICE_NAME   What am I missing?  I do have SSH_AUTH_SOCK set to a valid value (returned from ssh-agent).


Will changing my Geometry Dash username affect my levels?

I would like to change my Geometry Dash username. I know how, but will all my posted levels still have my old name and will changing the username negatively affect them?  I have changed my name and waited, but it still lists me as my old name when commenting, and viewing my name on levels. The only place it shows my updated name is when you are actually on my profile. Is there a way to get it to display my new name and not my old name?


In one of the final scenes of Star Wars: The Force Awakens, C-3PO is heard to exclaim "Thank the Maker!" My question is, who is the Maker? Is this in reference to some religious figure or deity, perhaps one he heard about on Tatooine? Or is he referring to Anakin Skywalker, his own "maker"? Any clarification here would be much appreciated.


How do I create RAW TCP/IP packets in C++?

I'm a beginning C++ programmer / network admin, but I figure I can learn how to do this if someone points me in the right direction. Most of the tutorials are demonstrated using old code that no longer works for some reason.   Since I'm on Linux, all I need is an explanation on how to write raw Berkeley sockets. Can someone give me a quick run down?


Is there a way to feed commands to ubuntu at runtime?

what I want is way to feed commands to Ubuntu at runtime that is to so that i don not have to wait for resources that gets locked to be free for example during during update  we get this error messsage while trying to execute other commands with sudo access   E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   what i want is way to execute my scripts at like batch processing but i could remove any batch jobs any time i want  I would like a dynamic script/program with root access to do all my jobs.


What user should an application pool bound to a Wordpress site use in IIS?

I've installed a wordpress site in a dedicated server with Windows 2008 server running IIS7 but I'm a little confused on what's the most secure way to set the appropriate file settings.  The thing is the automatic update and automatic plugin installation only works if I give Full Control permission to the Everyone user in the root folder where wordpress is installed.  I'm not sure how dangerous this setting is, but I can imagine it's not the best scenario. That being said, what's the user I should use in the application pool used by this site, so that I can set a more restrictive security permission in the folders used by wordpress?


Max RAM for 32 bit windows on 64 bit machine?

I have read many posts about maximum RAM with 32 and 64 machine systems/machine and still not clear on the answer. It is not clear if systems mean hardware or windows itself. Soooo... Can i use more than 4 gig of RAM on a 64 bit architecture computer that is running 32 bit Windows 10 ?


What's the best way to add columns to large production tables on SQL Server 2008 R2? According to Microsoft's books online:     The changes specified in ALTER TABLE are implemented immediately. If the changes require modifications of the rows in the table, ALTER TABLE updates the rows. ALTER TABLE acquires a schema modify lock on the table to make sure that no other connections reference even the metadata for the table during the change, except online index operations that require a very short SCH-M lock at the end.   (http://msdn.microsoft.com/en-us/library/ms190273.aspx)  On a large table with millions of rows, this can take a while. Is taking an outage the only option? What's the best way to handle this kind of situation?


How to Enable /etc/rc.local with Systemd 18.04 LTS

i tried to install /etc/rc.local and i am stuck in this step


What is the term that describes a group of animals; gaggle of geese, murder of crows

I'm looking for the term, word and or phrase that describes groups of animals. I'd like to know all the words that refer to all groups of animals.


I remember a story that deals with humans on Earth having some sort of long-term, long-distance interaction (perhaps war/conflict, but I think they were benevolent in some way; but I can't remember) with aliens, but over the course of those years or decades, no human ever saw one of the aliens. I remember the end being sort of a twist ending:  The story ends with the aliens landing on Earth and when the first one disembarks from their ship, we see they look a whole lot like the traditional image of a red devil with horns and a tail. They stayed hidden for so long because they were aware of the iconic devil image and didn't want us to associate them with the devil.  I don't know if this was a short story or novel. It may have been part of a collection of books a friend loaned me during the early to mid 1990's to broaden my SF/F perspectives; he included a lot of military fiction and some fantasy, both of which I hadn't read much. I've tried searching online using key terms but I have been unable to identify the story.


Is it possible to check if ip is free with a script  pseudo code would look something like this  if [ip is available]    echo "IP is available" else    echo "IP is not available" fi   Can ping be used for this perhaps?


The interval between to numbers $[a,b]$ includes all the real numbers between and include $a$ and $b$. Is there a similar notation for a discrete interval, lets say for $\{a,a+1,a+2,\cdots,b-2, b-1, b\}$?


Something's eating my disc space - Mac OS X

So something's swallowing about 800gb of disk space on my mac.   I've ran Disk Inventory X and Omni Sweeper, and both show that my main OS drive only houses 30 GB worth of data. 10GB of that is Home folders from the network share, and the rest I'm guessing is OS based guff.  But where the hell is the other 200 or so?!   Any ideas?  Thanks.


Java: creating a date object from a string and inserting into MySQL

Anytime I have to handle dates/times in java it makes me sad   I'm trying to parse a string and turn it into a date object to insert in a preparepared statement. I've been trying to get this working but am having no luck. I also get the helpful error message when I go to compile the class.  "Exception in thread "main" java.lang.Error: Unresolved compilation problem:  The method setDate(int, Date) in the type PreparedStatement is not applicable for the arguments (int, Date)"  Eh WTF?  Here is the offending code.  for(int i = 0; i < flights.size(); i++){      String[] details = flight[i].toString().split(":");      DateFormat formatter ;      formatter = new SimpleDateFormat("ddMMyyyy");     Date date = formatter.parse(details[1]);       PreparedStatement pstmt = conn.prepareStatement(insertsql);     pstmt.setString(1, details[0]);     pstmt.setDate(2, date);     pstmt.setString(3, details[2] + "00");     pstmt.setString(4, details[3]);     pstmt.setString(5, details[4]);     pstmt.setString(6, details[5]);     pstmt.setString(7, details[6]);     pstmt.setString(8, details[7]);     pstmt.setString(9, details[8]);     pstmt.executeUpdate();  }


How would one prove that  $$(n+1)^{n-1}<n^n \ \forall n>1$$  I have tried several methods such as induction.


Why should I ever use equation when I can always use align?

Possible Duplicate:          Is there any reason why I should use equation when I align seems to produce the same output?  The reason I am asking is that I like solving math using LaTeX. Sometimes I write a single equation using the equation environment, but later realise I need to include more equations aligned to the first in that same environment. Then I need to change the   \begin{equation} \end{equation}   to   \begin{align} \end{align}   and include the &s as appropriate.  I am thinking then: why not always use align, maybe even including the & before the equal sign, just in case I need to include more stuff there later? If they behave the same, and one is more flexible, why use the other at all? Or are there differences and reasons why I should avoid using align when there is a single equation?


Technically, why is the out of focus area blurred more when using a bigger aperture?

I'm wondering, technically, why and how does the out of focus areas blur more when using a bigger aperture. I think it'd help a lot if I presented a problem that's been driving me nuts for a long time:  I've read that the f-number of the human eye varies from about f/8.3 in very bright light to about f/2.1 in the dark. But from what I've tested, I always see out-of-focus areas with the same amount of blur.  Which leads me to ask: how does this aperture thing work, why does it create a blur from the technical point of view, and does it also apply to eyes, or is it just a "failure" in the camera lenses we've come to like and never wanted to "fix"?


Can editors review a manuscript and make a decision if they cannot find any reviewers?

I had submitted a manuscript to an International Journal few months before. It is already 5 months. But the status is still showing "under review". Since it is getting late, so I contacted to the Journal stating the current status. I got a reply that they have contacted a number of reviewers, but no one shows interest to review it. At present they have sent the manuscript to the editor.   So whether an Editor can reject it most probably? or can review my manuscript to make a proper decision?


Does javascript closure have access to it's outer outer function

I am trying to understand closure and I understand that a function closes over the variables of its outer scope. But it seems like, it's not just outer scope but any scope outside the function. For example this code function func (arg) {     return function f1() {         return function f2(){             console.log(arg)         }     } }  var t1 = (func("test1"))(); var t2 = (func("test2"))(); t1(); t2();  works and anytime you call t1 or t2, they print out test1 and test2 respectively. So my question is this, does function closure work for any scope outside the function?


How to distinguish first-order Feynman diagrams from the rest?

On what basis is it determined to what order the given Feynman diagram belongs? Does it depend on the number of interaction vertices? For example, two vertices are first order, four vertices are second order, and so on? It is clear that order zero is a diagram without vertices.


file sharing from ubuntu 16.04LTS to Windows 7

How can I share my windows pc files to Ubuntu 16.04 LTS pc using network sharing?