I want to add the ADMIN2_CODE from the dataset FAO/GAUL/2015/level2 to a featurecollection I have created to get information on some forests in Wales. I have added the elevation to the polygons but I can't work out how to add the (first) ADMIN2_CODE. My code doesn't work - can someone help please - I know I am doing something blatantly wrong!  var fromList = ee.FeatureCollection("FAO/GAUL/2015/level2");  var filter = ee.Filter.inList('ADM2_NAME', ['Gwent']); var filteredArea = fromList.filter(filter);  Map.setCenter(1.1, 51.5, 8); Map.addLayer(filteredArea, {}, 'Regions');  var gfc2018= ee.Image('UMD/hansen/global_forest_change_2018_v1_6').clip(filteredArea);  var lossImage = gfc2018.select(['lossyear']).gte(7); var lossBand = lossImage.and(gfc2018.select(['lossyear']).lte(20)); var zones = lossBand.updateMask(lossBand.neq(0));  // Add the loss layer in red. Map.addLayer(lossImage.updateMask(lossBand),             {palette: ['FF0000']}, 'Loss 2007 onwards');  var area_threshold = 300; // about 30 hectares?  // Define whole county as a region var geom = filteredArea.geometry();  // Convert the zones of the forest loss areas to vectors. var vectors = zones.addBands(zones).reduceToVectors({   geometry: geom,   crs: lossBand.projection(),   scale: 30,   geometryType: 'polygon',   eightConnected: true,   labelProperty: 'zone',   reducer: ee.Reducer.count() }).filterMetadata("count","greater_than", area_threshold);  // Make a display image for the vectors, add it to the map. var display = ee.Image(0).updateMask(0).paint(vectors, '000000', 1); Map.addLayer(display, {palette: '000000'}, 'vectors');  var SRTM = ee.Image("USGS/SRTMGL1_003"); // exampleelevation image  var slope = ee.Terrain.slope(SRTM);  // add min, max and mean elevation of each geometry var reducers = ee.Reducer.median()                 .combine(ee.Reducer.min(), 'Elevation', true)                 .combine(ee.Reducer.max(), 'Elevation', true)                 .combine(ee.Reducer.mean(), 'Elevation', true);  vectors = SRTM.reduceRegions(vectors, reducers, 30);  // Get Admin Districts var fromList = ee.FeatureCollection("FAO/GAUL/2015/level2"); var filter = ee.Filter.inList('ADM0_NAME', ['Romania']); var filteredArea = fromList.filter(filter);  var AreaName = filteredArea.aggregate_first("ADM2_CODE")  reducers = ee.Reducer.first();  // This next line is wrong! vectors = AreaName.reduceRegions(vectors, reducers, 10);  // Export the FeatureCollection to a CSV file. Export.table.toDrive({   collection: vectors,   description: 'Forest',   fileFormat: 'CSV' });


How long was Luke Skywalker's training with Yoda?

From the answer to the question  :     We also don't know how much time Luke spent training.   I tried to check some references like  and  related section on their Wookieepedia articles, but there is not even a clue of the amount of time he spent there.  Is there any canon information on the subject? Or any extrapolation of how long Luke's journey on Dagobah was? Was it a day? Several weeks? Some months?


Mutate Variables with String Names (Python)

If I have Bag(a=1,b=2,c=3) and I want to change the individual values. I can call self.a = 10 so my updated output would be: Bag(a=10,b=2,c=3).   If k = a and I have the code:  temp = ("self." + str(k)) print(temp) --> self.a   How can I do something like:  temp = 10   So it updates the bag (not temp itself to 10)?  Thanks


How do I change 'A' to 'Appendix A' in both TOC and title?

I wanna display A as Appendix A in TOC, as shown below.     I tried to add \backmatter before \appendix as shown in , but cref{label} will display as Section 1. I also used \renewcommand as suggested in the most posts on this site, but it doesn't make any changes. Here is the source code.  \documentclass[twoside,12pt]{article}  \usepackage{cleveref}  \usepackage[english]{babel} \usepackage[toc, title]{appendix} \renewcommand\appendixname{Anexo} %\renewcommand\appendixpagename{Anexos} \renewcommand\appendixtocname{Appendix}  \begin{document}  \tableofcontents  \section{The main body of the text} Refer to \cref{appendix} for more information.  \appendix \section{A complete table.} \label{appendix} Some text.  \end{document}


If you click on any tag, it opens up the main page for that tag. One of the options on that page is a link to the "top users" of that tag. If you follow that link you get various statistics relating to the top users of that tag. On the side of that page, though, is a list of "related tags". For some reason, the top related tag is always the tag itself. E.g. if you are on the "top users" page for  the first tag displayed under "related tags" is .  This seems a bit odd — the point of "related tags" is to show other similar tags, not the very tag that you are already viewing. Can this be fixed so that "related tags" only displays actual related tags and not the current tag itself?  Note, It is apparently only under the "top users" page the "synonyms" page, the "hot" page, and the "new" page that the tag itself appears as a related tag; on other pages that display related tags, such as the main page of a tag, the tag itself does not appear.   I checked various tags on various sites, and the issue appears to be the same on all of them. Here is a sample screenshot:


A question on ring homomorphisms and maximal ideals.

Let $A,B$ be commutative rings, and let $\phi: A \to B$ be a ring homomorphism where $B$ has finitely many elements. Prove that if $I \subset B$ is a maximal ideal then $\phi^{-1}(I)$ is also a maximal ideal in $A$  I've tried to construct a proof by contradiction but with no success, im not looking for answers but rather hints.


Can we use the use frontdoor link to redirect to a salesforce record directly by passing parameters?

I am currently able to login inside salesforce using just a session id   I now want to be able to redirect to a record page by passing 1 additional parameters &retUrl=/0032400000GRVvYAAX  Can anyone help with this?


How to identify progressive waves by their equation

From my understaning, a simple progressive wave is written in the form: $y(x,t)=A \sin(kx \pm wt)$ (or its cossine equivalent) and it is a solution to the equation: $$\frac{\partial^2 y}{\partial x^2}=\frac{1}{c^2}\frac{\partial^2 y}{\partial t^2}$$   In simple examples, the equation can usually be written as a sum of solutions $y(x,t)=A \sin(kx \pm wt)$, and in that case, since the wave equation is linear, the outcome is still a wave (progressive or standing). But what about more complex equations, such as $y(x,t)=A \sin(kx - wt)^2$ or $y(x,t) = \exp(kx - wt)^2$?  Is there any "method" to determine wether they are progressive or stationary waves? Is it sufficient to show that they solve the wave equation and whether they have nodes/antinodes? Or is  there a better way to identify them?


Do I need a transit visa to stay airside in Heathrow, as a Bangladeshi going to the British Virgin Islands

I am a Bangladeshi student. I have got student visa from British Virgin Island immigration.   Do I need a transit visa to stay airside in Heathrow, as a Bangladeshi going to the British virgin Islands?


Proof that $A \subseteq B \Leftrightarrow A \cup B = B$

I want to proof that:  $A \subseteq B  \Leftrightarrow  A \cup B = B$  At the moment I have no idea on how to start. Please give me a hint.  Thx in advance!


Looking for young adult book about boy who wishes to be a farmer/gardener

I am looking for a young adult book, probably written in the late 60's to mid 70's, it was a dystopian future where people seemed to be set in for specific roles.  The main character, a boy, wanted to be a farmer or gardener, while society was dictating he should be something else.  There was something about a food shortage, or control of food, such that him being a farmer or gardener was somehow forbidden.  I can't really recall more than that.  Mostly the story was about how the boy learned secretly how to raise plants and with another (perhaps a girl) escaped the place he lived.  I know not much to go on, but it's one I recall liking when I was young but can't remember more of the story.


How to make table-responsive in drupal views

I have created the views which renders table. I want to make table responsive without any contrib module. Is it possible?


star * in ptd = (double *) malloc(30 * sizeof(double))

I read such an example： double * ptd; ptd = (double *) malloc(30 * sizeof(double));  It explains that  malloc() allocates memory but it doesn't assign a name to it. However, it does return the address of the first byte of that block.  Since malloc return the the address of the first byte of that block, I assume the correct way is assign the address to ptd directly without star(*). ptd = malloc(30 * sizeof(double));  The extra * would dereference the address. What's wrong with my assumption?


How to copy files from Ubuntu18.04 drive to Windows drive?

I am getting problem while read and write data in Ubuntu 18.04 LTS to Windows drive... Its usually error-ed of the destination is only read-able. Anyone can help me to get rid of it.


Is there a viable melee Demon Hunter build for Inferno?

Is there a viable Demon Hunter build with melee weapons that I can still use in Inferno? I need a new challenge for my third character :)


Macbook Pro Upgrade - 16GB RAM or 128GB SSD

I am asking myself which constellation is better: should I stock up my RAM up to 16GB (from 8GB), or should I buy a SSD with 128GB??   I really dont know :/  Cheers!  BTW: My macbook supports 16GB RAM, i already checked this ;)


Prove that if $x,y,z$ are integers such that $x^2+y^2=z^2$, then $xyz \equiv o \pmod{60}$.

My approach:  let $x=3 \lambda, y=4 \lambda,z=5 \lambda $ where $\lambda \in \mathbb Z$ ,then $x^2+y^2=z^2 \implies $ $(3 \lambda)^2+(4 \lambda)^2=(5 \lambda)^2$  Since $xyz=60 \lambda^3$ & $60 \lambda^3 \equiv0 \pmod{60}$ $\implies xyz \equiv0 \pmod{60}$  Hence proved!  Is it correct?  Is there any alternative method of doing this?


How do I change my nickname or display name on Google Docs?

How do I set a different display name to show on in the revision history of a Google Docs document?  When I look at the revision history of a shared document that I've edited, all my edits are showing up as having been done by the username on my Google login email, which I want to change.  How can I change the nickname or display name Google Docs uses to label my edits?   For example, if I log into Google as jd1234@example.com, all my revisions show up as having been performed by jd1234, when I really want my co-editors to see "John Doe."  I've already tried setting a nickname on my Google+ account, and that didn't work.


computing the series $\sum_{n=1}^\infty \frac{1}{n^2 2^n}$

$$\sum_{n=1}^\infty \frac{1}{n^2 2^n}$$  I am new in series thus I tried a pair of methods to compute but I couldn't


I am studying the ring theory and I got some point like $(2+3i)$ divides $(-1+5i)$ in the Eucledian domain $\mathbb{Z}[i]$. I do not know that how it can be possible. Please let me know about this.


Launcher, top Panel, and window decorations missing after 12.04 upgrade

I upgraded from 11.10 to 12.04 and now my launcher is missing. I opened terminal using CTRL+ALT+T and the menu shows but the GUI (bar) window decorations above that is missing.  Things like CTRL+TAB and image previewer don't work. I've tried whats mentioned  but no luck.  Another Screenshot of my GUI looks :


When using GLM to fit data, how do we select which family the data belongs to

How does GLM source code analyze data, and when we do not know what kind of data exactly belongs to, how to select the best family to fit and get the best result


How to make \ref references include the word 'Figure'?

Possible Duplicate:             I'm using the package hyperref. When referencing my figure, I currently use code like  Figure \ref{fig:chorus-overview} gives an overview of the basic concept.   because \ref will just yield a single integer 1, as opposed to Figure 1.  However, the word Figure is auto-generated for the figure environment caption, so when using a package such as [ngerman]{babel}, it's Abbildung instead, and I need to fix the text before my reference.  Is there any way to directly get the Figure 1 text via \ref or a similar command?  EDIT  Additionally to the steps described in Sveinung's answer (using \autoref from hyperref or \cref from cleveref), I needed to make sure to place the label before the caption in the figure environment, as pointed out by Werner, and to include babel before hyperref/cleveref.  \nameref does not do what I need, since it copies the text of the caption instead.


I  have curve and array modifier. Rotation and scale is applied to mesh and curve. The mesh is not following the curve (Square). Mesh getting mess with the geometry. As soon as curve modifier added the mesh get mess. Any suggestion or help. Thanks


Probability of a dot in a square to have larger distance from sides compared to distance with diameter

We have a square. The length of a side is 1. We pick a random dot on it. Should find the probability that of the distance between that dotes and the side lines of a square is smaller than the distance between the dot and the diameters of that square.  I tried to view it geometrically and found no matching case. Is the probability 0? Or is this a NULL event?


I've included the problem from Royden and my attempted solution. Hopefully, someone can let me know if my solution is correct or not. If not, can help! Problem: $E$ nonmeasurable such that $m^*(E) < + \infty$. Given that $G$ is a $G_{\delta}$ set such that $E \subseteq G$ and $m^*(E) = m^*(G)$. Show that $m^*(G \setminus E) > 0$. (my) Solution: By way of contradiction, assume that $m^*(G \setminus E) \leq 0$, meaning we have  $m^*(G \setminus E) = 0$. Since $E \subseteq G$ we can write $$G \cap E = G \implies m^*(G \cap E) = m^*(G). \quad (i)$$ We can also rewrite $G \setminus E$ as $$G \setminus E = G \cap E^c \implies m^*(G \setminus E) = m^*(G \cap E^c) = 0. \quad (ii)$$ By (i) we can write $$m^*(G) = m^*(G \cap E)$$ $$m^*(G) = m^*(G \cap E) + 0$$ By (ii) we can replace $0$ by $m^*(G \cap E^c)$, hence, we get $$m^*(G) = m^*(G \cap E) + m^*(G \cap E^c).$$ Therefore, $E$ is measurable, a contradiction. Hence, our assumption that $m^*(G \setminus E) \leq 0$ was flase. Hence, $m^*(G \setminus E) > 0$. My concerns about the solution is that this holds only for $G$, i.e. only for $G_{\delta}$ sets, whereas for $E$ to be measurable it needs to holds for every subset of $\mathbb{R}$.


Three points are selected randomly on the circumference of the circle. We need to find the probability that there will be a semicircle on which all the three points lie.  I tried as follows :   We first fix a point on the circle on the positive X-axis. (Circle is assumed to be centered at the origin).  Let $X$ denotes the position of the second point. Now two cases arise :   (i) $\:0<X<\pi$   (ii)  $\pi\leq X\leq2\pi$  Let $A$ denotes the event that the three points are on the same half circle. So we need to find $P(A)$.  $P(A) = \int P(A|X=x)f_X(x)dx$ , where $X$ is uniformly distributed over $(0,2\pi)$.  When (i) is true , $A$ is possible if and only if the third point belongs to the interval $(\pi -x , \pi)$.  Thus , $P(A|X=x) = \dfrac{(\pi - (\pi-x))}{2\pi}=\dfrac{x}{2\pi} , $ ( when (i) is true ).  Similarly when (ii) is true the third point must lie in the interval $(x-\pi,\pi)$.   Thus , $P(A|X=x) = \dfrac{(\pi-(x-\pi))}{2\pi}=\dfrac{2\pi-x}{2\pi}$, ( when (ii) is true ).  So , $P(A) = \int_0^{2\pi}P(A|X=x)f_X(x)dx=\int_0^{\pi} P(A|X=x)f_X(x)dx + \int_{\pi}^{2\pi} P(A|X=x)f_X(x)dx $ which comes out to be $\frac{1}{4}$.  But the solution says its $\frac{3}{4}$. What am i doing wrong ?  I've checked the calculations twice , but still the same. Can anyone help ?


need help to prove euler's problem on prime numbers in gelfand algebra text.

if  $P(x) = x^2 + x + 41$  compute for $x = 1,2,3..10$ and check if the values are prime.  I have solved this by trial division. Might it be that P(1), P(2), P(3)... are all primes? This one is out of my depth. I vaguely suspect that proof by induction is the way to go but i do not know how. Please guide me through the proof or to relevant readings that will help me.


Does riding bicycles reduce sperm count?

I have heard this many times before. Is there scientific evidence for this fact? Or have any of you come across this in your lives?


can't make a main using c++ templates with definition and declaration separated

p.h  #ifndef NODE #define NODE  #include <iostream>  template <class T> class Node { public:   Node (T e);   T& getKey();  private:   T _key; };  #endif   p.cc  #include "p.h"      template <class T> Node<T>::Node(T e){   this->_key = e; }  template <class T> T& Node<T>::getKey(){   return this->_key; }   main.cc  #include <iostream> #include "p.h" using namespace std;  int main () {   Node<int> n (100);   std::cout << n.getKey();   return 0; }   g++ --std=c++0x -o main main.cc p.cc  /tmp/ccrIX2he.o: In function `main': main.cc:(.text+0x19): undefined reference to `Node<int>::Node(int)' main.cc:(.text+0x25): undefined reference to `Node<int>::getKey()'   I can't instantiate any object from main, but if I include p.cc from main it works or simply if I put together all files also works. How can I make it work this way?  Thanks in advance


KDE Wallet keeps popping up whenever try to add or remove connections in the Network Manager. I would like to disable the KDE Wallet system altogether.  In Kubuntu 14.04 I could disable KDE Wallet from System settings → Account Details → KDE Wallet. However, in Kubuntu 15.04 I can't find any option to disable KDE Wallet anymore.  I've removed the wallet from KDE Wallet's interface and now it crashes upon launching it. I have already tried deleting the ~/.kde/share/apps/kwallet/kwallet.kwl file, but that didn't work.


After upgrading Windows 8 Enterprise to Windows 8.1 Enterprise (RTM), the store app won't launch anymore, hanging on the splash screen forever. Is there a trick to reset the store app or something? Restarting or killing the app didn't work. There are no error messages in the event logs (TWinUI/Operational etc.).


I am running 18.04LTS but I cannot upgrade to 20.04LTS using either the updater or the command line.


I am doing a coding exercise to simulate contacts list in a mobile phone, you can search existing contact and add new contact from system input,however, I ran into some problems dealing with scanners and don't know why: (I would really appreciate your help, so thanks in advance!)  Here is my code: First of all a class for Contacts:  public class Contacts {  private String contactName; private String phoneNumber;  public Contacts(){  }  public Contacts(String contactName, String phoneNumber) {     this.contactName = contactName;     this.phoneNumber = phoneNumber; }  public String getContactName() {     return contactName; }  public String getPhoneNumber() {     return phoneNumber; } }   Then I created a MobilePhone class to hold the contact ArrayList, with addContact() and searchContactByName() method:  public class MobilePhone {  private ArrayList<Contacts> contactList = new ArrayList<Contacts>();  //searchContactByName() method takes the contact name you want to search and  //return the contact object with that contact name if it's in the list, and return null if the contact is not on the list  public Contacts searchContactByName(String contactName){         Contacts returnContact = new Contacts();         boolean contactExist = false;         for(int i = 0; i < contactList.size(); i++){             if(contactList.get(i).getContactName() == contactName){                 System.out.println("Contact " + contactName + " found");                 contactExist = true;                 returnContact = contactList.get(i);                 break;             }         }          if(contactExist == true){             return returnContact;         }else{             System.out.println("not found");             return null;         }     }  //addContact2() method use the searchContactByName() method to make sure //that the contact you add does not already exists in the list  public void addContact2(String contactName, String phoneNumber){         Contacts newContact = new Contacts(contactName,phoneNumber);         if(searchContactByName(contactName) != null){             System.out.println("This contact is already in the contact list.");         }else{             contactList.add(newContact);             System.out.println(contactName + " has been added to the list");         }     }   However, in the main method when I try to implement the function:  public class TestMain {     public static Scanner myScanner = new Scanner(System.in);     public static void main(String[] args) {      MobilePhone jolenePhone = new MobilePhone();     //First add a contact object with contactName "Rish" in the list:     jolenePhone.addContact2("Rish","1234");      //Then use searchContactByName() function to search the contact object with name "Rish" in the list:     jolenePhone.searchContactByName("Rish");     }     }   This would work normally with the output at the console:   However, if I use the scanner function:  MobilePhone jolenePhone = new MobilePhone();         //First add a contact object with contactName "Rish" in the list:          jolenePhone.addContact2("Rish","1234");         System.out.println("Please enter search name: ");         String searchName = myScanner.nextLine();         jolenePhone.searchContactByName(searchName);   Then the searchFunction would return not found for the contact name "Rish" I input through the console:  I don't understand why would it make a difference at all whether I pass the contactName parameter "Rish" directly, or I use the scanner.nextLine() function to input from the console, what did I miss here?


Hi i am getting the error below when i try and update my ubuntu server through command line:     Reading cache      Checking package manager      Cannot upgrade      An upgrade from 'zesty' to 'bionic' is not supported with this tool.   i used the following commands to try and update:  sudo apt update  sudo apt dist-upgrade  sudo apt autoremove do-release-upgrade   im trying to upgrade from 17.04  my sourcelist content is:  ## EOL upgrade sources.list # Required deb http://archive.ubuntu.com/ubuntu/ artful main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ artful-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ artful-security main restricted universe multiverse  # Optional deb http://archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse


Why does it take more time for a login to fail than to succeed?

When logging in to my PC, and the password is correct, the login takes place nearly instantaneously. When the password is wrong, it takes a few seconds of waiting until the hint "The password is not correct." shows up.  The same thing happens on the terminal with sudo. But why?    I am pretty sure that the passwords hashes are saved and get compared to the hashes of entered passwords. But wouldn't it take longer to confirm the hashes are identical?


Which phrase is correct on Canaries or in Canaries when it's about group of islands.


Creating a captioned figure, but with a place exactly where I put it

So I'm trying to add figures and I've tried few codes.  I liked the results that I get with  \begin{center} \includegraphics{img/imgfile} \end{center}   But  \begin{figure} \centering \includegraphics{img/imgfile} \caption{somecaption} \end{figure}   Enables me to add a caption.  However the latter one also seems to place the figure at the start of the page, rather than to the location, where the \includegraphics command is located.  I need to control, where the figure is placed, rather than have it placed automatically.  I also need captions.    Or is it reasonable that figures would always be placed on top of the page. I'm writing an academic text.


Why is the main() function always an int and not a long?

I was recently coding in C++ when I realized that the int main() function works fine as a long main() and can support larger numbers (up to 2^63) so why is that not the normal way it is coded?


Im creating a Login using a window control to allow a user to login into a WPF application that I am creating.   So far, I have created a method that checks whether the user has entered in the correct credentials for the username and password in a textbox on the login screen, binding two properties.   I have achieved this by creating a bool method, like so;  public bool CheckLogin() {     var user = context.Users.Where(i => i.Username == this.Username).SingleOrDefault();      if (user == null)     {         MessageBox.Show("Unable to Login, incorrect credentials.");         return false;     }     else if (this.Username == user.Username || this.Password.ToString() == user.Password)     {         MessageBox.Show("Welcome " + user.Username + ", you have successfully logged in.");          return true;     }     else     {         MessageBox.Show("Unable to Login, incorrect credentials.");         return false;     } }  public ICommand ShowLoginCommand {     get     {         if (this.showLoginCommand == null)         {             this.showLoginCommand = new RelayCommand(this.LoginExecute, null);         }         return this.showLoginCommand;     } }  private void LoginExecute() {     this.CheckLogin(); }    I also have a command that I bind to my button within the xaml like so;  <Button Name="btnLogin" IsDefault="True" Content="Login" Command="{Binding ShowLoginCommand}" />   When I enter in the username and password it executes the appropriated code, whether it being right, or wrong. But how can I close this window from the ViewModel when both username and password are correct?  I have previously tried using a dialog modal but it didn't quite work out. Furthermore, within my app.xaml, I have done something like the following, which loads the login page first, then once true, loads the actual application.  private void ApplicationStart(object sender, StartupEventArgs e) {     Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;      var dialog = new UserView();      if (dialog.ShowDialog() == true)     {         var mainWindow = new MainWindow();         Current.ShutdownMode = ShutdownMode.OnMainWindowClose;         Current.MainWindow = mainWindow;         mainWindow.Show();     }     else     {         MessageBox.Show("Unable to load application.", "Error", MessageBoxButton.OK);         Current.Shutdown(-1);     } }   Question: How can I close the Login Window control from the ViewModel?  Thanks in advance.


Is the speed of gravitational waves lower in a medium?

The speed of light in a medium is often lower than in the vacuum but does the same apply for gravitational waves. Is the speed of gravity in all media the same as light in that medium?  This question  has already a answer but it is not clear what the cause is that GW are not slowing down. Compared with EM-waves, which are in contrary slowed down, the reason for that wasn't dipole density but 'Its just the electrons not moving "instantly" with the changing electric field.' But is it sure that there isn't any particle of a medium in case of GW which also doesn't move instantly with the change of GW?


How do you do a headless install of linux? No monitor, no keyboard. Machine has floopy and cd drive. Can I configure a live cd to run sshd with a preconfigured pass or something similar and manage it via that?  Instructions for fedora 8+ would be ace but anything else also welcomed.  Cheers.


Proving $r!$ divides the product of r succesive positive integers

I have to prove the following theorem:     Prove that the product of $r$ consecutive positive integers in divisible by $r!$   I am having a hard time getting a generalization down for the full set of real numbers, if I start from 1 and work up to r, I have the following:  $$r!k=\prod_{i=1}^{r}n_i$$  Can easily prove the base case of this, (n=1), and then go in to prove:  $$(r+1)!k=\prod_{i=1}^{r+1}n_i$$  Expand that out and get:  $$(r+1)r!k=n(n+1)(n+2).....(n+r)(n+r+1)$$  Can say that the product of the first $r$ elements in equal to $r!k$ by our base case. Leaving using with:  $$(r+1)k=(n+r+1)$$  Not sure where I can go from here, n is the integer that we start at, so how can I get it to work out to be equal to our induction hypothesis?


How to merge multiple json objects into a single json object using python

I have a list which contains multiple JSON objects and I would like to combine those JSON objects into a single json object, I tried using jsonmerge but with no luck.  My list is:  t = [{'ComSMS': 'true'}, {'ComMail': 'true'}, {'PName': 'riyaas'}, {'phone': '1'}]   The desired output is  t = [{'ComSMS': 'true', 'ComMail': 'true', 'PName': 'riyaas', 'phone': '1'}]   I put the list in a for loop and tried json merge and I got the error head missing expected 2 arguments got 1  Can someone help me solve this issue


How do I use an if statement to search an array

I have this challenge which in my head seems easy enough, but I can't seem to get my function right.  The challenge is as follows:  Create a function that determines if a given name is amongst the names.  So here is my array and function -   var family = ["Steve", "John", "Dani", "Bob"];   function searchName(f){    for (i=0; i<family.length; i++){      if ((family.lastIndexOf(f) != family[i]))        {family[i]}    }  }   searchName("Moe");   Now all this returns is undefined. Which is better than errors I suppose. What I want it to do is when I pass through a name that is not in the array to have it return a false statement, and if a name that is in the array, true. I also know that I need to throw in .toUpperCase and .toLowerCase in there as well to account for the case sensitivity. My assumption is that rather than just an if statement, I need an if/else if/ else.


Find the limit without use of L'Hôpital or Taylor series: $\lim \limits_{x\rightarrow 0} \left(\frac{1}{x^2}-\frac{1}{\sin^2 x}\right)$

Find the limit without the use of L'Hôpital's rule or Taylor series  $$\lim \limits_{x\rightarrow 0} \left(\frac{1}{x^2}-\frac{1}{\sin^2x}\right)$$


find: combining -path and -prune to exclude files and directories

I have a directory /srv/tftp/pxelinux.cfg and a file /etc/mtab. I want to exclude both from find. But whatever I do, either one always is not excluded  find /etc /srv -path /srv/tftp/pxelinux.cfg -prune -o \! -path /etc/mtab find /etc /srv \( -path /srv/tftp/pxelinux.cfg -prune -o -print \) -a \( \! -path /etc/mtab \)   Note: I find the -path /foo -prune -o -print syntax highly confusing and unintuitive


My Fussy 14 month old REFUSES to eat any type of food at home EXCEPT her baby bottle!

My daughter is 14 months old and her appetite has not been any better since she turned almost 11 months old i want to say. Its been an on going struggle at home. She will drink her bottle more often than she will eat. In addition when she's with her babysitter she will eat whatever the lady makes her (ex.: cheerios with milk, pieces of chicken, soup, rice, mashed potatoes etc.) I've tries giving her the same and she just won't eat…its a constant fight.   However if it's not a cracker or a couple cheerios for her to eat with her hands she will not eat. If she sees me eating a bag of chips she will ask for some - but I simply cannot give her something that does not benefit her health as a growing baby. And what she does eat isn't enough - at most it will be two or three bites of her food or mine. Other than that I am unable to get her to take anymore bites or mouthfuls.  Now she's 14 months and the struggle continues. Even if she sees me eat - she will look, smack her lips but when I offer her food she turns away. If I attempt to feed her she tightens her jaw shut and presses her lips closed. Or she'll press her lips and make a spitting sound to show me she refuses to eat.   I've tried different things from finger foods to changing her food to making the same food her babysitter feeds her. Moreover she has lost weight but still seems very energetic and playful as usual. At this point I have no clue what else to do?   Sorry but the solutions to a similar questions simply do not work for me. Therefore I need a BETTER solution. Thanks!


JavaScript caret in regex not working as expected

I need to convert markdown URL's to the <a href="" /> links. But, the same regex that is working in PHP is not working in JavaScript. What I'm doing wrong?  Regex: \[([^]]*)\]\(([^\s^\)]*)[\s\)]  Here is the demo link where you can see for your self:   It seems that the caret has a different meaning in JavaScript.  Any help is appreciated.


$x_{n+2} = x_{n+1} + 20x_n + n^2 + 5^n \text{ with } x_0 = 0 \text{ and } x_1 = 0$  How would I find the inhomogeneous solution for this since the homogenous solution is 0 given initial conditions?


FB_Graph auth.from_cookie(cookies) works on IE , Opera only on localhost:3000 . works just fine on Chrome , Safari and Firefox

Here's a weird one: I use FB_graph to pick up the auth user from the cookie:. Intiate FB normally:  window.fbAsyncInit = function() {  FB.init({   appId      :  <%=@appid%>, // App ID    status     : true, // check login status   cookie     : true, // enable cookies to allow the server to access the session   oauth      : true, // enable OAuth 2.0   xfbml      : true  // parse XFBML });   Then I pick up the users on the controllers of each page:  config = YAML.load_file("./config/facebook.yml")[Rails.env]    appid = config['client_id']    secret = config['client_secret']    auth =FbGraph::Auth.new(appid, secret)    auth.from_cookie(cookies)    all browsers works great on localhost:3000, I get my user no problem only chrom, safari and firefox works when actually hitting Facebook.com; IE8 and Opera fails.   I suspect some cookies restriction from IE and Opera. Any ideas?


Using 'grep' to search for a specific pattern

I'm playing with the Linux terminal and I have to do a exercise which states that I have to find inside a file for any line that contains at least an a, b and c, it doesn't matter it the lane has 2 a, 1 b and 1c or 1 a, 55 b, and 3 c. Like I said it needs to have at lest one a, one b and one c.  Example:  Input:  aaaaaaaaaaaa bbbbbbbbbbbb cccccccccccc abcabcabcabc hhahhhbhhhhc aabbccpppppp thisisrandom nononononono aandbandcnoo dddddddddddd   Output(valid):  abcabcabcabc hhahhhbhhhhc aabbccpppppp aandbandcnoo   All the content are inside a .txt file.  Edit: It needs to be done with a regular expression and metacharacters


I was playing with some graphs and I noticed that $\frac{1}{x}-\frac{1}{x+\pi}+\frac{1}{x+2\pi}$ looked similar to $\csc x$.   I then plugged in (to desmos.com) $\sum_{n=-500}^{500}\frac{(-1)^n}{x+nπ}$ and found that it was pretty much $\csc{x}$ on the interval near $(-500π,500π)$.   So, my question is, why is it that $\sum_{-\infty}^\infty \frac{(-1)^n}{x+nπ} = \csc x$


How to prove that $n^{-2}[x+g(x)+g\circ g(x)+\cdots +g^{\circ n}(x)]$ converges when $n\to\infty$

Let $f:\mathbb R\to\mathbb R$ be a periodic function with period $1$. We assume that $f$ is Lipschitz continuous, and in particular, we assume that there exists an $L\in (0,1)$, such that $$ |f(x)-f(y)| \le L|x-y|, \quad \text{for all $x,y\in\mathbb R$.} $$ Let also $g(x)=x+f(x).$ Show that the limit $$\lim_{n\to +\infty}\frac1{n^2}[x+g(x)+g(g(x))+\cdots +g^{\circ n}(x)]$$ exists and is independent of $x$, where, for every $n\ge1$, $g^{\circ n}$ is $g$ composed with itself $n$ times, thus $g^{\circ 1}=g$ and, for every $n\ge1$, $g^{\circ n+1}=g\circ g^{\circ n}$.  My attempt: Since $$f(x+1)=f(x),\forall x\in R$$ then $$g(g(x))=g(x+f(x))=x+f(x)+f(x+f(x))$$ $$g(g(g(x)))=g(x+f(x)+f(x+f(x)))=x+f(x)+f(x+f(x))+f(x+f(x)+f(x+f(x)))$$ $$\cdots\cdots $$ and  I have $$|g(x)-g(y)|=|x-y+f(x)-f(y)|\le |x-y|+|f(x)-f(y)|<(L+1)|x-y|$$ where $L+1>1$.  So $g$ is also Lipschitz continuous, and that's all I can do.  Thank you for you help.


So I have a question where it says to find the last non zero digit of $20!$  I proceeded in the following way:  Found the prime factorization of $20!$ by calculation the greatest powers of $2,3,5,7,11,13,17,19$ in $20!$ using the following formula....for 2....as follows...  $$\left[\frac{20}{2}\right]+\left[\frac{20}{4}\right]+\left[\frac{20}{8}\right]+\left[\frac{20}{16}\right] = 18$$ and did the same for 3,5,7,9,11,13,17,19  This turned out to be $$20! = 2^{18}\times3^8\times5^4\times7^2\times11\times13\times17\times19$$  From here, multiplying in my head with just the unit digits gave me the answer that is, 4.  Is there any way to do it easier? I was able to do this as 20 is relatively small and it would have a max prime of 19, but what if, for example, the question was asked to find the last non zero digit in $77!$? Then this wouldn't be possible.   Any help would be appreciable


Batch process for displaying date & name stamp on photos

I could not find a dedicated photo-editing section, hence posting here. Apologies if wrong place.  Query:  I have thousands of photos, which I need to show time/date/custom-text on all photos.  Editing all individuals photos will be impossible!   Is there any way to do this in batch-mode?


You may schedule a meeting vs You can schedule a meeting

Which of the following sentences is more accurate?  You may schedule a meeting as per your convenience.  vs  You can schedule a meeting as per your convenience.  Or is there a better sentence to convey the same meaning?


Im doing a monthly payment project and I cant get the dollar amount to go to two decimals. I'm new to coding and dont know if theres something obvious I'm missing here. Heres my code: double monthlyP = (1 + monthlyRate);//P = Payment double power = Math.pow(monthlyP, numMonths);        monthlyP = power * monthlyRate; double monthlyP2 = power - 1; double FmonthlyP = (monthlyP/monthlyP2) * principle;//F = final        FmonthlyP = (FmonthlyP * 100)/Math.round(100);  It keeps outputting 1319.0 insted .23. I've tried putting the Math.round in the front of the multiplication part and behind it and I cant get it to work.


Why does assigning a role from the role hierarchy page bypass validation rules?

I set up a validation rule that prevents our delegated admin users from creating/updating a user to not have a role. The validation rule works exactly as expected when creating/updating the user directly from a user record.  AND(  ISPICKVAL(UserType, "Standard"),  ISBLANK(UserRoleId))   Today, I found that some of our delegated users have inadvertently removed roles from some of our users via the Setup | Manage Users | Roles | and then using the assign link by removing the user from the list.    Why does this area ignore validation rules and is there a non-programmatic way to enforce removing a role from a user?


Creating raster layer from numpy array using pyqgis?

I am working on a plugin for Qgis to calculate spatial Kernel density maps. I have all the calculations working, all I am missing is a way to turn a Numpy Array, with density values into a multiband raster layer.  Do I have to create a geotiff on a temp file using Gdal and then load it?  Or is there a direct way to create the layer from data in memory?  if so, how to do it?


Can't mkdir events No space left on device - EC2 Linux

After put about 5 millions files on a EC2 instance, I can no longer mkdir because inodes are all used. I still have 40Gb space on this EBS! Is there a way to overcome this? Thanks.   Filesystem      Inodes   IUsed  IFree IUse%   /dev/xvda1     5242880 5234036   0     100% /   Can I add another volume to the EC2 instance and put other 5 million files there? ( I have 10 mil files).


this is my first electronics project that i am doing so my understanding is pretty basic. I am using an ESP8266 connected to a L293D motor driver to power a bipolar stepper motor. The issue I am having is the pin connections.    This is the microcontroller that i am using. It has 9 GPIO pins at 3.3V.    This is the driver I am using.  My first question is whether I can use the 3V out of the micro controller to power the EN pins? On the data sheet, on Recommended Operating Conditions, the High-level input voltage is a minimum of 2.3V so I guess this would be ok?  Secondly, I am trying to drive a 12V bipolar stepper motor so I am unsure whether I would need to use a second motor driver due to the lack of available pins on the driver.


How could one build connections with professors at a potential graduate program?

I emailed the director of a graduate program I'm planning on applying to, and while the program isn't accepting a new cohort of students until next year, they suggested that I reach out to other faculty members with whom I'd be interested in working with. On the one hand, I wasn't sure if that meant the professor I had initially contacted wasn't interested (No, I didn't write to the dept. chair :P), or if one's supposed to contact multiple professors, but I wanted to ask how best to proceed. Would it be acceptable to present project ideas that I want to work on and ask them for support, explaining that I plan on applying to the program? If not, what should I say? Also, would it be awkward to reach out to others when there's a specific advisor that I hope to work with. (If they don't want to work with me, I don't want to close myself off to others. But I don't want them to think that I changed my mind about working with them.) How can one build connections in a potential department?


How to display node details and call function in *.html.twig

I work in D8, I create a custom module first_module. By modules create a url and display all nodes by *.html.twig file.  Write code in controller.php  public function contentthree() {    $connection = Database::getConnection();    $query = $connection->select('node', 'n');   $query->fields('n', ['nid', 'type']);    $groups = $query->execute()->fetchAll();    foreach ($groups as $group) {     $events[] = [$group->nid, $group->type];   }    return [     '#theme'  => 'first_module_display',     '#events' => $events,   ]; }   In *.module  function first_module_theme($existing, $type, $theme, $path) {    return [     'first_module_display' => [       'variables' => ['events' => NULL],       'template'  => 'first-module-list',     ],   ]; }  function _get_node_details() {    $output = 'Welcome D8';    $output .= 'Node Details';    return $output; }   and create templates first-module-list.html.twig and display data  {%for key, data in events %}  {%for key1, data1 in data %}     {{ data1 }}  {% endfor %}  {% endfor %}   work fine and showing data correct. But, my question is how to call function _get_node_details() and how to render node details in first-module-list.html.twig files?


How to Select All Pop3 Messages in Gmail?

I am using Gmail application in Android 6.0. I have > 777 messages in my inbox. I would like to Select All and Delete them from the pop3 account.     How can you Select All Pop3 messages in Gmail Android Application?


U.K Visa How to Re-Apply visa which got refused

I have applied for a UK visa and the refusal letter states the reason as below.     I have refused your application for a visit visa because I am not   satisfied that you meet the requirements of paragraph V4.2 of Appendix   V: Immigration Rules for Visitors because:      You state that you wish to travel to the UK for one week as part of an   incentive trip with your company. I acknowledge that you have   submitted a letter of employment from your Employer dated 28 Feb 2016   that states that they are responsible for all the expenses of the   visit. The onus however is on you to qualify for entry clearance based   on your own circumstances and your own intentions. Whilst I am   satisfied that your employer is willing and able to cover the expenses   associated with your visit that is only one aspect of the visitor   rules and this does not satisfy me of your own intention to leave the   United Kingdom on completion of your visit.      You state that you have 1,500 GBP available for this trip. In support   of this you have submitted a bank statement in your name covering a   period from 27 July 2015 to 18 February 2016 which shows a final   balance of 4.916 OMR (8.95 GBP). I am therefore not satisfied that you   have sufficient funds to cover any additional costs whilst in the UK   without working or accessing public funds. Your application for a   visit is therefore refused under paragraph V4.2 (e).      Given the above I am not satisfied that you have accurately presented   your circumstances and therefore your intentions in applying to enter   the United Kingdom. This undermines the credibility of your   application to the extent that I am not satisfied that you are   genuinely seeking entry as a visitor or intend to leave the UK at the   end of your visit. Your application is therefore refused under   paragrah V 4.2 (a) and (c) of the Immigration Rules.      Future Applications      Any future UK visa applications you make will be considered on their   individual merits, however you are likely to be refused unless the   circumstances of your application change.      In relation to this decision there is no right of appeal or right to   administrative review.   Please find below my doubts and help me for re-applying the Visa.  1) How do I prove my intention to leave the UK on completion of visit. 2) If I Deposit the money 1,500 GBP and take a new statement will that be sufficient. 3) I had actually got a credit of 3,600 GBP via Salary & Bonus on 24Th Feb 2016. As of today I have a balance in my A/C of 400 GBP. Now If I deposit some amount equivalent to 1,500 will be that be enough. Or what as of what date should I take the statement. 4) And for the 3rd Paragraph how to prove the Credibility.


Why did all of my holiday stuff disappear from Tiny Death Star?

Why did my holiday stuff all disappear? I was using it earlier  and then I opened up TDS and it was gone.


Is There A Single-Word For Describing Someone Who Sticks To Their Guns?

My question is this: Is there a single-word to describe my actions or to describe a person who sticks to their guns? I recently encountered an issue with a seller online. The goods were shipped over two months ago. I did a shipping inquiry through USPS and received a formal letter from them two days ago stating that they lost the package and that since it's lost it will still display as being in transit. I contacted the seller asking for a refund and attached a copy of the letter from USPS. Their response: "Dear, why they think lost? Still in transit." I asked for a refund and they refused. So, I opened a dispute. The sellers response to the dispute: "Dear, close dispute bad for business logistics in transit. Sob sob sob" My response: "I will close the dispute when you provide me with a guarantee in writing that I will receive a full refund when the package hasn't arrived by a specified date. USPS has already informed me that they lost the package, please see the attached letter that I provided two days ago." The sellers response: "Dear, why they think lost? Still in transit. Please close dispute. Sob sob sob" My response: "As previously stated, I will close the dispute when you provide me with a guarantee in writing that I will receive a full refund when the package hasn't arrived by a specified date. USPS has already informed me that they lost the package, please see the attached letter that I provided two days ago." The sellers response: "Dear, please close dispute wait patiently for logistics. Sob sob sob"


Strange counting problem of variable in bash script

I have the following bash script which works fine until I get to number 9 (/dev/sdj) where it does not produce the expected output.  hdd1="$(sudo fdisk -l | grep "Disk /dev/sd" | awk '{print$2}' | sed 's/://g')" counter=0 function check {     i="0"     while [ $i == "0" ]     do         hdd2="$(sudo fdisk -l | grep "Disk /dev/sd" | awk '{print$2}' | sed 's/://g')"         hdd1_count=$(echo "$hdd1" | wc -l)         hdd2_count=$(echo "$hdd2" | wc -l)         # Check if added or removed         if [[ "$hdd1_count" < "$hdd2_count" ]]         then             echo -e "\e[32mHDD ADDED\e[0m"             counter=$((counter+1))             echo "Total HDD: $counter"             echo "HDD1: $hdd1"             echo "HDD2: $hdd2"             hdd1=$hdd2             echo "HDD1 is now: $hdd1"             # Get last disk in var             last=$(echo "${hdd1##*$'\n'}")             echo "LAST: $last"         elif [[ "$hdd1_count" > "$hdd2_count" ]]         then         echo -e "\e[32mHDD REMOVED\e[0m"             counter=$((counter-1))             echo "Total HDD: $counter"             echo "HDD1: $hdd1"             echo "HDD2: $hdd2"             hdd1=$hdd2             echo "HDD1 is now: $hdd1"             # Get last disk in var             last=$(echo "${hdd1##*$'\n'}")             echo "LAST: $last"         fi     done }  check   Here is the output:  HDD ADDED Total HDD: 1 HDD1: /dev/sda HDD2: /dev/sda /dev/sdb HDD1 is now: /dev/sda /dev/sdb LAST: /dev/sdb   This works until /dev/sdi as followed:  HDD ADDED Total HDD: 8 HDD1: /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh HDD2: /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi HDD1 is now: /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi LAST: /dev/sdi   Then I get to insert disk 9 and the output changes but I cannot find the problem why it isn't going on like expected. Here is the output:  HDD REMOVED Total HDD: 7 HDD1: /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi HDD2: /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj HDD1 is now: /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj LAST: /dev/sdj   I have changed the script now for 2 days in a row but I keep getting the same result. Can someone spot the problem?   EDIT:  -lt and -gt did the trick, thanks!


$X_n \to X, Y_n \to c$ in distribution implies $X_n Y_n \to Xc$ in distribution

I am trying to prove $$X_n \xrightarrow{d} X, Y_n \xrightarrow{d} a \implies Y_n X_n \xrightarrow{d} aX$$ where $a$ is a constant. What I tried: Let $g:\mathbb R\to \mathbb R$ an arbitrary uniformly continuous, bounded function. It suffices to show $\mathbb E[g(Y_n X_n)] \to \mathbb E[g(aX)]$. We have  $$\left \lvert \int g(Y_nX_n) - g(aX) \,dP \right \rvert \leq \left \lvert \int g(Y_n X_n) - g(aX_n) \, dP \right \rvert +\left \lvert \int g(aX_n) - g(aX) \, dP \right \rvert,$$ where the right summand goes to $0$ by assumption as $a$ is constant. Now I want to use uniform continuity of $g$ to estimate the left summand: Choose $\delta > 0 $ such that $$\left \lvert g(Y_n X_n) - g(aX_n) \right \rvert < \epsilon,$$ whenever $|Y_n X_n - aX_n| < \delta.$ Since convergence in distribution to a constant implies convergence in probability, we have can control $P(|Y_n - a | > \delta)$. But is it possible to get a bound on $|X_n|$? I assume that probability in distribution does not imply some form of boundedness... Any help is appreciated.


Squares of polynomials with all nonzero integer coefficients

For polynomials of one variable with only and all nonzero integer coefficients, do there exist any where the polynomial consists of more than one term, and the square of the polynomial has the same number of terms or fewer than the polynomial?  For instance (to contrast), $(x + 1)^2 = x^2 + 2x + 1$  The polynomial in parentheses has two terms, but the square of the polynomial has three terms.  Another instance, $(x^2 - x + 2)^2 = x^4 - 2x^3 + 5x^2 - 4x + 4$  The polynomial in parentheses has three terms, but the square of the polynomial has five terms.  Note:  This is not a duplicate of another question.  That merely requested that that [p(x)]^2 had to have fewer nonzero terms than p(x).  Mine requires that p(x) 1) must have all of its terms' coefficients be nonzero and integers, and 2) the number of terms could be equal, not just fewer.


How much did Tolkien write about the worshippers of Sauron? The Easterlings, the Harad, the Khand

Watching The Lord of the Rings movies I was really captivated by the   elephant riders and the men in brazen scale armor who aided the orcs   against the forces of Gondor and Rohan. From what I know they are from   the cultures that worship Sauron. I'd like to know what Tolkien wrote   about them, their religion, their way of life, and so on.   From


Random forest “certainty / likelihood score” - how to score records in RF mode in R?

My question is similar to this link   I am trying to build a random forest for a binary response (1 & 0). Let's say we have 10,000 different records and I am building 500 trees. Is there a way to score the records in terms of the certainty / confidence / likelihood of being categorized in category 1 (for example)? The link above suggests using the number of votes among all 500 trees, but this way can only give me up to 500 different scores, how can I differentiate further for these 10,000 records? (Like regression, the scores can be easily obtained).   One solution is to average the score of each tree in the forest. the tree is the probability of 1s in the final node. Anyone know how to produce that average in R? I couldnt find this in the randomForest package. I think if I write my own codes to do that it , the run time may not be as fast as a built-in function.


Negation of the definition of continuity

I would like to find the negation of this statement of continuity of a function $f \colon \mathbb{R} \to \mathbb{R}$ at a point $y$:  $\forall \epsilon > 0$, $\exists \delta > 0$, such that $\forall x$ if |$x-y$| < $\delta$ then |$f(x)-      f(y)$| < $\epsilon$  So, when considering the negation of this statement I would want to consider negating the following components of the statement:  [$\forall \epsilon > 0$] becomes [$\exists \epsilon < 0$]? (I am a little confused because not($\forall x, P(x)$ becomes $\exists \epsilon$ such that not$(P(x))$, but would the statement that $\epsilon > 0$ be considered the predicate P($\epsilon$) in this instance? If it is then I assume what I wrote above is correct then?)  [$\exists \delta > 0$] becomes [$\forall \delta < 0$] (similar reasoning as above)  [$\forall x$] becomes [$\exists x$] (here I am a little confused because I see the universal quantifier and want to negate it into the existential quantifier but the definition of the negation of the quantifiers includes a not statement of the predicate, but there is no predicate in this component. $x$ is used in a subsequent implication, which I am assuming is a separate negation on its own. Is this correct thinking?)  [if $|x-y|$ < $\delta$ then $|f(x)-f(y)| < \epsilon$] would become [$|x-y| < \delta$ and $|f(x)-f(y)| > \epsilon$]. Here I am just using the definition of the negation of the implication, which is $\text{not}(A \Rightarrow B) = (A \text{ and not}(B))$.   so that my negation of the statement of continuity here is:  $\exists \epsilon < 0, \forall \delta < 0$ such that $\exists x,  |x-y| < \delta$ and $|f(x)-f(y)| > \epsilon$  Looking at the statement as a whole it seems like the first two components should only have their quantifiers changed and not their inequalities, but the rest of the statement seems to make sense to me as describing a point of discontinuity  on the function. Is my reasoning here correct? Or am I missing something entirely. I appreciate any help with this problem.


I want to do something like this using chemfig. I watched the chemfig guide but I can't find a solution.   Can you help me?   (Sorry, my english is not very good)


lenovo g480 blank screen while booting ubuntu

i love Ubuntu very much but i cant install it on my laptop whenever i try to boot it form CD the screen just went blank and DVD spins so fast like its installing to many files but it was some sort of problem.i try it so many times but it didn't worked.  please help me   thanks in advance   Shahzad


Reference request for introductory Field Theory.

I am looking for books, notes, video lectures and other resources that cover the following topics in Field Theory and Galois Theory (taken from Basic Algebra: Groups, Rings and Fields by P. M. Cohn.):  Field Theory  7.1 Fields and their Extensions  7.2 Splitting Fields  7.3 The Algebraic Closure of a Field  7.4 Separability  7.5 Automorphisms of Field Extensions  7.6 The Fundamental Theorem of Galois Theory   7.7 Roots of Unity   7.8 Finite Fields  7.9 Primitive Elements; Norm and Trace  7.10 Galois Theory of Equations   7.11 The Solution of Equations by Radicals   Cohn itself is a bit too dense for me, so I'm looking for something more introductory with proofs of even the "obvious" results that are skipped there and more solved examples.  Related:


Why do some use "$\;\stackrel{\text{def}}{=}\;$" for definitions?

Why do some use the equality symbol "$\;\stackrel{\text{def}}{=}\;$" for some definitions? For instance, $$\varepsilon \;\stackrel{\text{def}}{=}\; \frac{\Delta(L)}{L}$$


I can not change this value, I establish zero but when you start your pc grub menu appears for 15 seconds until it self-select.  GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="splash intel_pstate=disable quiet" GRUB_CMDLINE_LINUX=""   I do wrong?  $ lsb_release -r Release:    14.10


HP Notebook - 15q-ds0017tu laptop with 802.11b/g/n (1x1) Wi-Fi® and Bluetooth® 4.2 combo.   I have installed ubuntu 19.10 in this. But i am unable to connect to any wifi network nor any bluetooth device.   Wifi option always shows that there is no network adapter even though the wifi is on. Same case with bluetooth. It always shows that bluetooth is off even if i turn on the bluetooth.   This is what i got after running lshw -C network in command prompt.   WARNING: you should run this program as super-user.   *-network                         description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:01:00.0        logical name: eno1        version: 15        serial: 00:68:eb:5a:f9:9a        size: 100Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.3 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:16 ioport:4000(size=256) memory:b1104000-b1104fff memory:b1100000-b1103fff   *-network UNCLAIMED        description: Network controller        product: RTL8723DE 802.11b/g/n PCIe Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: bus_master cap_list        configuration: latency=0        resources: ioport:3000(size=256) memory:b1000000-b100ffff WARNING: output may be incomplete or inaccurate, you should run this program as super-user.


How do you change the current keyboard layout from the terminal?

I'm trying to create a script to assign each keyboard layout to a different keyboard shortcut, seeing as to how I'm using way too many of them to go through them one at a time whenever I need a specific one. How should I go about this?


101 positive integers placed on a circle

A Pigeonhole Principle problem:     101 positive integers are placed on a circle whose sum is 300. Prove   that it is possible to choose from these numbers some consecutive   numbers whose sum is equal to 200.   (I don't know if the word 'consecutive' is appropriate in this case ,I mean that these numbers follow each other on that circle)


What to do with questions that had their content erased?

From time to time, I run across questions . When I do, I usually vote to close (as I did here), but actually that does not seem sufficient to me.  I thought about whether it made sense to rollback the last edit to at least restore the question that was asked? Or maybe just leave a comment noting that you can delete your own questions? Or maybe flag it as very low quality? Or maybe just do what I did and wait till the question is deleted some time in the future?  Since I ran across some of these already, there probably is some consensus on how to deal with these.


What am I missing to vertically align this text?

I can set line-height to 85px and it will vertically align it, but I won't always know how tall the element is.  I'm sure I'm missing something simple here... but what can I modify in the .content class to make the text vertically centered?    .tile {   position: relative;   width: 100px;   height: 85px;   display: inline-block;   border: 1px solid red; } #container1 {   position: absolute;   top: 0;   left: 0;   right: 0;   bottom: 0; }  #container2 {   position: absolute;   top: 0;   left: 0;   right: 0;   bottom: 0; }  .content {   margin: auto;   height: 100%;   vertical-align: middle;   text-align: center; }

Test


What's the different between with a ~ and without a ~ in a string variable in Bash?

I'm using a dotfile manage software, named . Using a config file named .env, contents like: git_folder="~/code/Git".  Also use a script to setup this dotfile tool before the first use of it, as follows,  #!/bin/bash  env1="~/Dropbox/.env" env2="/mnt/d/Dropbox/.env"  if [ -f $env1 ]; then     echo "Found dotdrop env file, installing dotfiles..."     source $env1     eval $(grep -v "^#" $env1) dotdrop --cfg=${git_folder}/dotfiles/config.yaml install elif [ -f $env2 ]; then     echo "Found dotdrop env file, installing dotfiles..."     source $env2     eval $(grep -v "^#" $env2) dotdrop --cfg=${git_folder}/dotfiles/config.yaml install else echo "Pls sync environment files first!" fi   If I store my config file at ~/Dropbox/.env, when I run the script, I just got "Pls sync environment files first!"(run in if condition is expected). If config file stored at /mnt/d/Dropbox/.env, the script will go through the elif condition, which is expected.  Find the reason until I run the script in dubug mode, and get the difference:  ➜  scripts git:(master) ✗ bash -x dotdrop_setup.sh  + env1='~/Dropbox/.env' + env2=/mnt/d/Dropbox/.env + '[' -f '~/Dropbox/.env' ']' + '[' -f /mnt/d/Dropbox/.env ']' + echo 'Pls sync environment files first!' Pls sync environment files first!   So, I think the difference between ~ and /home/user is the reason.   After I change ~ to /home/roach(roach is user name), it works.  ➜  scripts git:(master) ✗ bash -x dotdrop_setup.sh + env1=/home/roach/Dropbox/.env + env2=/mnt/d/Dropbox/.env + '[' -f /home/roach/Dropbox/.env ']' + echo 'Found dotdrop env file, installing dotfiles...' Found dotdrop env file, installing dotfiles... + source /home/roach/Dropbox/.env ++ git_folder='~/code/Git' ++ grep -v '^#' /home/roach/Dropbox/.env + eval git_folder='~/code/Git' ++ dotdrop '--cfg=~/code/Git/dotfiles/config.yaml' install      _       _      _   __| | ___ | |_ __| |_ __ ___  _ __  / _` |/ _ \| __/ _` | '__/ _ \| '_ |  \__,_|\___/ \__\__,_|_|  \___/| .__/  v0.22.0                                |_|   0 dotfile(s) installed.   The debug shows '' surround + env1='~/Dropbox/.env' is removed which I think is the reason.  But, WHY?    Additional question,  alias dotdrop="eval $(grep -v "^#" $env1) /usr/bin/dotdrop --cfg=${git_folder}/dotfiles/config.yaml install" is a config add to bashrc, zshrc, etc. It doesn't work if I add it to my script directly!  Finally, found I have to add source $env,  So WHY it works in a bashrc file?


What prevents a CD-R from being rewritten?

I know it's kind of a dead / dying technology, but I was wondering what stops a CD-R from being rewritten like a CD-RW.   Is it some sort of firmware on the disc, essentially in place to make people buy more CDs?  Or is there a more technical reason, ie. CDs store their data magnetically (correct?) but CD-Rs have less magnetism, so once it has been written to, that's it? (Sorry if that's completely wrong; I have no idea how CDs work.)


I can't find a masters thesis advisor. Can I publish independently in a math journal and get my MSc degree that way?

Is it possible publishing original work in math research without having an adviser?  I had some thought of matrix multiplication which I posted in this forum which wasn't welcomed that well, I plan to publish it in the arxiv.org but I also want to publish in a journal.  I tried looking for advier for my MSc thesis in PDE but with no success so I am thinking of publishing an article by myself, will that be sufficient with providing me with my Msc degree?  I heard once that Saul Kripke published during his Bsc studies, I am not sure if he were granted his PhD without an adviser, but I hope it's possible.  P.S my case is different than the other case as I don't even have an adviser to discuss my paper.


Faces appear to have an underlying mesh in edit mode

Using blender 2.79 here. One of my file has this issue where faces appear to have an underlying mesh in edit mode, even with a freshly added cube. Any clue?


Rank of matrix products is never greater than what

If I have a product of matrices of rank 1, the product is not going to have rank greater than 1. why?


Why is voltage added when batteries are connected in series but not in parallel?

As I understand, the different voltage between two object is caused by the total different charged between two object. Thus, the higher extra electron between two opposite charged object, the higher voltage between them, isn't it? So if i have two battery or capacitor connect in parallel, the negative connect to negative, the positive connect to the positive. Caused the charge from each plate to be double. So that's as my expected, it must be double voltage, but ironically why it's out of my expected and the reality is vice-versa?


How To uninstall Ubuntu 13.10 from pc having no other OS and Install Windows 8.1?

I had windows 7 in C drive and windows 8.1 in D drive. But I installed Ubuntu 13.10 and the system got formatted. I wanted to have 3 OS. But lost the other two. I didnt make any partitions.Now I want to uninstall Ubuntu and install windows 8.1, How to do it?> P.S : I dont know much about partioning.


If you have two complex numbers $a,b$ how can you find the QR factorization of   $ M = \begin{bmatrix}        aI_n\\          bI_n \end{bmatrix} $,  I can't seem to be able to do it. I tried an earlier trick, but I now know it's not necessary true for complex numbers. Is there anyway to do this?  I think if I use a Givens algorithm I should be able to reduce it to a QR factorization.


The new profile "Member for..'s" icon is unrelated

The following icon in the new profile:    feels like a refresh icon in a browser's address bar, not a "member for.." icon. It does not represent that, I suggest an icon similar to the "users" icon in some SE sites, something like:     but with one person in the icon. I know it is way too silly to be considered, but just saying it.


Are non-citizens of the Capitol permitted to permanently immigrate?

Reading  got me thinking about permitted citizenship.  Are citizens of other districts allowed to permanently move to, or become citizens of the Capitol?   My gut says, "No." The citizens of the other districts are being punished, so it makes little sense to allow them a true, legal escape from their punishments. Even victors are only given new homes in their own districts, keeping them there.


On Visual Studio 2005 C++ compiler, I get the following warning when my code uses the fopen and such calls.  1>foo.cpp(5) : warning C4996: 'fopen' was declared deprecated 1>        c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen' 1>        Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'   How do I prevent this?


Error while installing reaver-1.4 "no acceptable C compiler found in $PATH"

I'm trying to install reaver-1.4 in my Ubuntu 18.04 system, but it shows this error:  root@rashedul-ubuntu:~/Desktop/reaver-1.4/src# ./configure checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/home/rashedul/Desktop/reaver-1.4/src': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details.   How can I fix this?


Can we get the Result of @InvocableMethod method in Process Builder or use that output for further decision?

I am calling the @InvocableMethod from the Process Builder and @InvocableMethod method is returning the result, how can I take the result and use in Process Builder?  public class GetAccountUsingPhone {      @InvocableMethod     public static List<Account> getAccountsUsingPhone(List<String> phones){         System.debug('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');         System.debug('Phone Values :: '+phones);         List<Account> accounts = [select Id, Name, AccountNumber, Phone from Account where Phone=:phones];         System.debug('Accounts :: '+accounts);         return accounts;     } }


Position an image to touch edges of page?

I'm trying to position an image to touch the right and bottom edges of the page. It's for a subtle background image. Any ideas on how to do this?


Disable screen turn-off during phone call

I know this might be a possible duplicate question but I haven't found an answer yet.  phone>call settings>proximity sensor is not available in my version of android.  Is there another way to disable the screen turning off when i dial or receive a phone call?  Is there an app i can install that does it?  Regarding the duplicate question: This question is different because i'm targeting android 4.x and beyond and because I want to disable the proximity sensor completely, it's broken on this device but even if it did work, I would like to override it somehow, preferably without having to install an app with ads etc.


What is the ls option to list entries by lines instead of by columns?


Let B be a set, and let * be a binary operation in B. Suppose * satisfies the associative law. Let  $$P=\{b \in B : b * w = w * b \quad\forall\, w \in B\}$$  Prove that P is closed under *.


Showing formulas in the text editor - Texstudio

Is there an option to show the formulas in the text editor (not the PDF on the side) so that the text can be edited while the compiled formulas appear. This option exists in emax-auctex. Does it exist in editors like TeXstudio?


Lost SF Story: Survival Training, Team abandoned due to Nova

A group of Humans as part of their survival training are dropped on the surface of a planet. They are supposed to be picked up after a few weeks, this doesn't happen. They eventually discover that the reason is a Nova.


DO I need to have Airport transit visa if my US F1 visa is expired and I have H1b approval notice?

My F1 visa expired in June 2018. My OPT is valid till Jan 30, 2019. I got my H1b approved this year, so officially from Oct 1st, 2018 I am on H1 now and I have H1b approval notice. I am travelling from the USA to India (where I will be going for H1b stamping) from 17th November to 10th Dec 2018 through Lufthansa and have 4 hr layover in Frankfurt, Germany. Would I need Airport transit visa? I am an Indian citizen.


Solve for a parabolic diff. eq:  $$ \frac{\partial{}G(x,t)}{\partial{}t}=a\frac{\partial{}^2G(x,t)}{\partial{}x^2}+\delta(t)\delta(x)$$  Using the result, write the general solution of:  $$\frac{\partial{}T(x,t)}{\partial{}t}=a\frac{\partial{}^2T(x,t)}{\partial{}x^2}+f(x,t) $$


how to get from this:   id   foo_name 1        A 2        A 3        A 4        A 5        B 6        B 7        B 8        A 9        B 10       A   to this: 1 row only   foo_names A,B   I tried using GROUP_CONCAT but it give me this:  A,A,A,A,A,A,A,  B,B,B,B


How to write formally and tersely that someone's work is utter nonsense and overly complicated?


Best algorithm to strip leading and trailing spaces in C

What is the best approach in stripping leading and trailing spaces in C?


I'm starting my experiment with LaTeX, i'm writing an article and all that I want is to embed an algorithm inside normal text, this is my code:  \documentclass{article} \usepackage{algorithmic} \begin{document} \section{Lettura file .gpx}  Lorem ipsum ...  \algsetup{indent=1.7em} \begin{algorithm} \caption{Alg capt} \label{alg1}  \begin{algorithmic}[1] ... algorithm here... \end{algorithmic} \end{algorithm} \end{document}   This is fully working but algorithmic uses a pagebreak automatically, how can I avoid this break and show the algorithm immediately after "lorem ipsum" part?


I have some sensitive data in RAM that I prefer not to be on disk. How do I disable swap?  I have more than enough RAM. If RAM consumption gets too high I have no problems with processes being terminated. How do I disable swap?  Note: I do not have a swap partition and this is running in a VM ()


How to check whether an integer is a perfect square or not without using sqrt

Also only use the loop while and if else statement to determine whether an integer is perfect square.


Analyzing the given condition for a twice differentiable function $(f(0))^2 + (f'(0))^2 = 85$.

We are given that a twice differentiable function, $f:\Bbb R\rightarrow[-2,2]$ satisfies the condition $$(f(0))^2 + (f'(0))^2 = 85$$  We are asked if exists a value of $x$, say $α \in (-4,4)$, for which $f(α) + f''(α) = 0$ and $f'(α) \neq0$.  (Please note we are merely asked about the existence of such value and not the value itself)  My attempt:   Suppose I take a function  $$p(x) = (f(x))^2 + (f'(x))^2$$ Taking the derivative I obtained,  $$p'(x) = 2f(x)f'(x) + 2f'(x)f''(x)$$ Which can be rewritten as  $$p'(x) = 2f'(x)[f'(x)+ f''(x)]$$  So if I can somehow prove that p'(x) = 0 at some point and f'(x) is not zero at that point, I know that there is a value of α. But not sure how to proceed any further. Can I apply LMVT somewhere? Have I missed something? Any help would be appreciated!


Dimensions of finite-dimensional vector space and its dual

Suppose $V$ and $W$ are finite-dimensioanl vectors spaces. Suppose $T\in\mathcal{L}(V,W)$ and $T'\in\mathcal{L}(W',V')$ where $T'$ denote the dual map of $T$ as defined in Axler (2015).     $\textbf{My Question}$: Are the dimensions of $W$ and $W'$ the same? If so or not so, what is the basic intuition behind this?   Reference: Axler, Sheldon J. $\textit{Linear Algebra Done Right}$, New York: Springer, 2015.


How can I use the compositor on the result of the sequencer?

I recently ran a renderfarm on a file with some compositing setup, but I forgot to set the composite output back to the Composite node instead of the Viewer I was temporarily using. Since the node setup didn't require anything besides the image data (i.e., no Z-buffer, object IDs, etc.) I figured that I could just run the compositor on each frame individually. However, this proved to be somewhwat difficult.  It seems that the sequencer is run after the compositor (despite their non-exclusivity in the Post Processing panel), so my idea to use an image strip in the sequencer for all the images that I already rendered didn't work—the render just copied the images into a new directory.  The Movie Clip node doesn't seem to accept an image strip as input, either, so that was not an option.  What I ended up doing was sequencing the animation to a movie file, then piping that into the Movie Clip node in the compositor. However, this required extra time, extra storage, and it rendered the default scene every frame before compositing, only to ignore the result.  Is there a way to use Blender's compositor either directly on an image sequence, or in conjunction with the video sequencer?


Calculus 2 integral $\int {\frac{2}{x\sqrt{x+1}}}\, dx$

Make a substitution to express the integrand as a rational function and then evaluate the integral  $$\int {\frac{2}{x\sqrt{x+1}}}\, dx$$  What is the substitution that I have to make?


Formal explanation for this change of integration

Formally, why is true that $$\int_0^\infty \int_{x}^\infty f(x,y)dy dx =\int_0^\infty \int_{0}^y f(x,y)dx dy $$ ?  I know and understand perfectly the geometric interpretation, and with that, I´m well satisfied that this is true, but, what about the formal explanation? is a merely use of change variables theorem? or Fubinni´s Theorem? or a use of both?


Given specific requirements one usually has a very wide choice of matching microcontrollers. Other than avoiding tags like "not for new designs" and such, is there anything one can do to ensure that the product one chooses is still available several years from now? Are there some manufacturers that are known to have longer lifecycles than others, or is that completely unpredictable in advance? Or is it just that I would have to order huge amounts of the part I plan to use for a long time?


Nominate equations like subequation (1.a, 1.b, 1.c) on a system of multiple equations with a curly bracket and label them for later

I am doing a physics project report. I want to write a system of multiple equations and nominate them as if they were subequations. I need to label them separately to make references to them later, like the following : \documentclass{article} \usepackage[french]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb} \begin{document} \begin{subequations} \label{syst3d}     \begin{gather}         \partial_t \Delta v_z - \mathcal{P}(\Delta^2 v_z + \Delta_\mathrm{h}\theta) = 0 \label{syst3d1} \\         \partial_t \theta = \Delta \theta + \mathcal{R} v_z \label{syst3d2}     \end{gather} \end{subequations} \end{document}  If I do that, I have indeed the two equations labelled 1.a and 1.b. But there are not aligned and there is not a bracket { . So I did some research and I found a code like this : \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation}     \begin{cases}       \partial_t \Delta v_z - \mathcal{P}(\Delta^2 v_z + \Delta_\mathrm{h}\theta) = 0 \\       \partial_t \theta = \Delta \theta + \mathcal{R} v_z\\     \end{cases}        \end{equation} \end{document}  In this I have indeed the { but not a nomination like in subequations, just a (1) for all the system. I also can't label them, there is a package error "multiple labels". I tried to replace "\begin{equation}" by a "\begin{subequations}" but the nomination disappears and there is an error "missing $ inserted"... I hope it is not a question already asked by someone. If there is, may you give me the link because I didn't find it ?


Move world AND switch single player user

I have bought a new laptop PC for the family and transferred Minecraft (Java edition, versions 1.13 and 1.14) save files over from other machines, one of which which I used to run as a server for my daughters for us to play together, and where I played using my own Mojang account.   Transferring world data is just a matter of finding the mincraft app data (e.g. %appdata%\.minecraft\saves on a Windows machine), and copying it to matching location on the new machine. I used a USB memory stick for this, and it was very straightforward. The worlds look correct, no missing chunks or other glitches.  The worlds transferred over from places that used my daughters' Mojang accounts work as expected. On these worlds, they use the same accounts now as before, and when they start the games they have all the equipment, experience etc that they had before.  The problem is that when a world has essentially transferred "owner" - the single player or server owner used to be me, but they are logged in as their own account - they start the game with my character's equipment.    Oddly, if I join the game remotely as myself, I also get my old character's equipment, effectively duplicating it, but losing the new owner's stuff somehow.  I would like to set things on the new machine so the players get to continue the games exactly as they were, using their own accounts.  I have found the playerdata folder and looked at the files there, but not quite sure if manipulating them works. I tried a few things and managed to get it working using my Mojang account to host the server on the new machine with my daughter connecting from another machine and seeing the correct equipment etc. So I know the data is still there, but requiring this setup is not what we want - specifically I'd like her to be able to run the game in single player mode on the new machine, and be able to access her character's stuff.  Searches for how to do this on the internet just bring up transferring worlds in the saves folder again. That part is working already though, and I cannot find any advice about switching single player data files around with remote player ones.   I have tried switching the files in playerdata around in all combinations I could think of - using the date/time stamp to guide which file is being loaded in single player. But all of them result in loading the original single player data, not the was-remote-but-now-local player data that we want. I guess there is some other file or setting that needs changing, but I don't know how to find out what it is or how to change it.


Is it normal to not be indexed in Google after a month?

I started 2 new sites at pretty much the same time.  They are both small blogs, running the exact same blogging software (even the same template).  The content is different, of course.  One of them was indexed in Google 3 days after launch.  The other one has not been indexed at all.  It gets visited by Googlebot 1-2 times a week, but it won't show up in search results, even if I do a "site:www.example.com" search.  Is this normal?


Regular Expressions and negating a whole character group

I'm attempting something which I feel should be fairly obvious to me but it's not.  I'm trying to match a string which does NOT contain a specific sequence of characters.  I've tried using [^ab], [^(ab)], etc. to match strings containing no 'a's or 'b's, or only 'a's or only 'b's or 'ba' but not match on 'ab'.  The examples I gave won't match 'ab' it's true but they also won't match 'a' alone and I need them to.  Is there some simple way to do this?


On sharelatex.com the Russian em dash works fine in document body, but does not work when used in macros. I tried to ask the support, they sent me here.    Code:  \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[russian]{babel} \pagestyle{empty}  \def\foo{ qwe "--- rty }  \begin{document}  \foo  asd "--- fgh  \end{document}   Result:


How do I install joomla 1.7 on a lamp server?

I have a joomla 1.7 business live site and would like to know how to install wamp server and joomla 1.7 on ubuntu 11.1. I use it to work on site locally, then back it up and upload it to the live site root and install it with kickstart.php. I would like to do all this thru ubuntu instead of windows 7 ultimate.


I am no expert with excel so any help is appreciated!   I am trying to make one cell do multiple searches within another.  I know that to search one cell for a specific word you would use  =FIND(Blue,C2)   But I need to find multiple different words in one cell. Heres an example of what im trying to do:    I need to show all the allergens in the ingredients cell eg peanuts, gluten, milk, sesame seeds etc   How do I get the result to list all the allergens?   I know that I can do a single find function in separate cells and then concatenate them, but there must be a more simple way?  Thanks


g++ linking error when filename at the end

I am trying to compile a test.cpp file which uses the opencv library. I run the g++ command as follows: g++ test.cpp -o test -I/usr/local/include/opencv4 -L/usr/local/lib -lopencv_core -lopencv_imgproc -lopencv_imgcodecs -lopencv_highgui  This successfully generates an executable named test which works the way I want it to. However, when I try to compile like this(which is also the way makefile compiles given CFLAGS and LDFLAGS as variables): g++ -I/usr/local/include/opencv4 -L/usr/local/lib -lopencv_core -lopencv_imgproc -lopencv_imgcodecs -lopencv_highgui test.cpp -o test  it gives me the following error: /usr/bin/ld: /tmp/cc58r16w.o: in function `main': test.cpp:(.text+0x62): undefined reference to   `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' /usr/bin/ld: test.cpp:(.text+0xc0): undefined reference to `cv::namedWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' /usr/bin/ld: test.cpp:(.text+0x139): undefined reference to `cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)' /usr/bin/ld: test.cpp:(.text+0x170): undefined reference to `cv::waitKey(int)' /usr/bin/ld: test.cpp:(.text+0x181): undefined reference to `cv::Mat::~Mat()' /usr/bin/ld: test.cpp:(.text+0x256): undefined reference to `cv::Mat::~Mat()' collect2: error: ld returned 1 exit status  I apologize in advance if this is a silly mistake I am overlooking, but I can't seem to find a solution. Help appreciated. Thanks


In classical waves, there is always something that is'waving Thus in water waves the water surface moves up and down, in sound waves the air pressure oscillates and in electromagnetic waves the electric and magnetic fields vary. What is the equivalent quantity in the case of matter waves? Or the is no physical quantity that corresponds to this?


Let $X=(0,\infty)$. Define two metrics on $X$ by   $d_{1}(x,y)=|x-y|$ and   $d_{2}(x,y)=|x-y|+|\frac{1}{x}-\frac{1}{y}|$   for all $x, y \in{X}$.   Let $(x_{n})$ be a sequence in $X$ and $x\in{X}$.   Show  $d_{1}(x_{n},x)\rightarrow{0}$ if and only if $d_{2}(x_{n},x)\rightarrow{0}$.  Note: $d_{1}$ and $d_{2}$ are then said to be equivalent metrics on $X$.  Since $d_{1}$ and $d_{2}$ are equivalent metrics, will it be sufficient to show $c*d_{2}(x,y)\leq{d_{1}(x,y)}\leq{C*d_{2}(x,y)}$?  So far I have the following: $d_{1}(x,y)=|x-y|\leq{|x-y|+|\frac{1}{x}-\frac{1}{y}|}=d_{2}(x,y)$. Therefore, $d_{1}(x,y)\leq{C*d_{2}(x,y)}$ where $C=1$. Is there a $c$ that would satisfy the left-hand side of the inequality?  Any help would be appreciated. (this is not homework)


I'm struggling to get my picture to appear straight after the text. I have used the following code:   \begin{figure}[h]   \includegraphics[width=\linewidth]{"Interaction Plot - Data1".png}   \caption{Interaction Plot for Data Set 1}   \label{fig:Interaction Plot for Data Set 1} \end{figure}   It currently appears several pages later after all sections.


Specific question about the proof Law of total expectation

Can someone please explain me just the yellow part? Why is the first step is equal to the second?  Proof:


trying to install add-on but not working

I recently found out about a program called Fspy. to use it with blender it requires an add-on. I tried installing the addon and blender said modules installed successfully, but I couldn't find the add-on in the preferences. I tried manually installing the add-on (by unzipping it and putting it in this file destination: C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons. I can see the folder in the destination but not n blender.  does anyone know how to fix this?


Do images really have to fill the entire page width?

On  on tex.SE (and on many, many other posts on several sites) I once again noticed that pictures uploaded are always made full page width.  This is often way too much for the image. For example in the linked question, I uploaded a math-formatted equation. That would fill the whole width and become enormous. So I have to append white-space on either side of it and upload it like that.  Is there no way to set image sizes? At least to set the sizes to the original image sizes - I would understand issues with users setting their own dimensions, but at the very least the picture should not be shown in larger dimensions that what it is uploaded in.


So I have all but two planes. The ones I have are:   Model 2004.  Ambulance.  ??? Enforcer.  Iron clad.  Swift justice.  Limp berserker.  Ace of spades.  ???   Anyone have any others and if so how did you get them? Was it random or was it in some level or by doing something specific?


I developed a Python plugin to import a PostgreSQL project organized in QGIS with one click. The problem is that I don't put the layers it in the correct "tree scheme" in the layer panel.  I enclose a photo of the piece of instruction.


How to find the sum of the series:  $\sum _{n=0}^{\infty}a_nx^n$  where $a_0=0,a_1=1,a_{n+1}=a_{n-1}+a_{n}$  Please give some hints on how to find the sum


How to put whole of a text on a single page?

I want to put whole of a text on a single page. I don't have constraint on the text font. So if the text was too long, the text font should be small. How can I do this automatically using LaTeX? For example, if I write the \lipsum, the printed document should contain exactly one page.


Is $p(x) = x^4+2x-2$ reducible in any of the following rings: $\mathbb{Q}, \mathbb{R}, \mathbb{C}, \mathbb{F_9}$ ?  How do you show this for all the individual rings?


New Mac Machine is asking apple id on start up of machine is it really required or mandatory to have an apple id to start with this? if so can i create an apple id without providing any credit card info?. Please guide this newbe...


How to split a partition on an almost full drive? (install windows dual-boot)

How to split a partition on an almost full drive? I want to also install windows as dual-boot, but my hard drive is almost full. I'll free 20 GB and try to install windows on this. Any pitfalls to avoid?  Loader should be on first partition? How to restore windows and Linux loader if something goes wrong?


How to handle a deliberate duplicate question

I got  question in review. First sentence is:     I know there is a  question, but no answers.   And indeed the two questions are virtually identical. I started to flag as duplicate - but the original question had no answer at the time, so it wouldn't be correct and apparently . (I didn't go so far as to try to submit the flag).  What is the proper action here? How do we want such a question to be handled? Should both (or more) questions stay open indefinitely until either is answered and somebody gets the good idea to do the duplicate linking?   As the new question is essentially a bump to the front page (perhaps with re-tagging), especially in the case where the OP knows that a previous question exist, perhaps something should be done to enable bumping re-emphasizing without writing the new question.  As I wrote this,  actually got an answer. So the old one should now be closed as a duplicate of the new - but my question remains for the case where all known/found duplicate questions have no answer?  Ironically, just before asking this, the "Questions that may already have your answer" gave me ... (Although the suggestion has no answer). So it has been asked before - the comment there even suggest the ability to re-emphasize.


How do I print an IFrame from javascript in Safari/Chrome

Can someone please help me out with printing the contents of an IFrame via a javascript call in Safari/Chrome.  This works in firefox:  $('#' + id)[0].focus(); $('#' + id)[0].contentWindow.print();   this works in IE:  window.frames[id].focus(); window.frames[id].print();   But I can't get anything to work in Safari/Chrome.  Thanks  Andrew


How to write these formulas and equations

How can I write this formula:  1)  I have tried to use $ \stackrel {}{}$ but it does not give the right form.  And how to align these equations   2)  3)


Why did Q show the Enterprise-D the Borg when Jonathan Archer's Enterprise had already encountered them?

In Star Trek: The Next Generation, the first Borg were shown to Jean Luc Picard because Q decided to tamper with the fate of Humanity and show them how grosly unprepared they are for what lies in the unknown. If Jonathan Archer had an encounter with the Borg, Jean Luc Picard should've already had prior knowledge or at least had some reference to go on when encountering the Cube.  So how is it that the Federation has no information on the Borg in TNG? It's been said that Star Trek: Enterprise was not in an alternate timeline.


I have Ubuntu installed on an old pc and want to wipe the hard drive so I can sell it. Any suggestions without having to burn a cd? (it doesn't work...)


Built-in (or recommended safe) way to post a link to an image inside a comment?

Screenshots are so useful. Is there a built-in way to upload an image that produces a link that can be shared inside a comment (since images can't be put into comments directly)? If not, what is a recommended fallback service that could be recommended that is trustworthy for Stack Overflow users to click on? I don't want to share links that won't be clicked on due to users not recognizing the URL as a safe site to visit. EDIT: Someone suggested this might be a duplicate of  - however it is a different question. I'm aware that embedding images isn't possible within comments and wasn't asking about that. I'm clearly asking what the preferred/trustworthy way of sharing links to images is inside of comments, hence, a different question.


My scope detects a 50Hz signal when the probe is not connected to a circuit, is this normal?

Having no prior experience with scopes, it seems strange to me that when the probe is not measuring anything (~ not connected to a circuit) it measures a small 50Hz (~ my mains are running at 230V 50Hz) signal instead of some random noise. Is this normal behaviour (my scope is a Rigol DS1052E)?


How to make the first line of equation level up with question number?

I have a multi-line equation as follows:  \begin{enumerate} \item  \begin{enumerate}  \item   \begin{align*}    A \cap (B \cup C)     & =  x \in A \cap (B \cup C) \\     & =  x \in A \wedge x \in (B \lor C)\\     & =  x \in (A \wedge B) \lor x \in (A \wedge C) \\     & =  x \in (A \cap B) \cup x \in (A \cap C) \\     & =  (A \cap B) \cup (A \cap C)   \end{align*}  \end{enumerate} \end{enumerate}   But I can't get the first line to level up with the question number (please see image below). How can I achieve that?


Is it possible to soft reset to a shiny Yveltal/Xerneas/Zygarde?

I want to gain some rare and valuable shinies, and I looked towards the games mascots, Yveltal, Xerneas, and Zygarde. I know in previous games (like Diamond and Pearl) you could soft reset the game until the game would give you a Shiny in for the legendary. Can you still do this?


Question on circle and equilateral triangles

Let $ABC$ be a triangle. Let $T$ be its circumcircle and let $I$ be its incenter. Let the internal bisectors of $A,B,C$ meet $T$ at $A',B',C'$ respectively. Let $B'C'$ intersect $AA'$ at $P$ and $AC$ at $Q$. Let $BB'$ intersect $AC$ at $R$. Suppose that the quadrilateral $PIRQ$ is a kite, i.e. $PI=IR$ and $QP=QR$: how to prove that triangle $ABC$ is a equilateral triangle?


How do I find the Mammoth Tusk Powder for the "Repairing the Phial" quest?

I have been to Stonehill Bluff several times now, and the Mammoth Tusk Powder is never there, is there anything else I can do to complete the 'Repairing the Phial' quest?


I am USA citizen and I want to sell my inherited property in India. If I bring that money to USA, do I need to pay taxes in USA?


Is there a way to convert a player character to a CR rating for the purpose of calculating combat difficulty?

I suspect my question really is, "can I calculate the CR rating for a player character generated via the PHB rules for the purposes of determining combat/encounter difficulty for a party?"  A follow up question would be "How can I scale an NPC or monster up or down in difficulty".  I have not found any direct rules to convert a player character into an NPC and calculate the CR for the purpose of combat.  In the DMG, there are rules for creating NPC monsters (p.273) and rules for calculating encounter difficulty (p.82). However, if I have a level 5 wizard player character that was generated by following character creation in the PHB, that becomes an NPC that the players decide to attack or is wanted to be used as en encounter, is there a way to calculate the CR of this NPC and apply the Encounter calculation tables to determine difficulty vs. the party strength?  Commenters may (rightly so) see my question as a duplicate, as there are similar questions:         However, the answer seems to be that there is no direct way to calculate the CR from a player character generated by the PHB rules. The most accurate way to generate and size a foe seems to be to go through the process of generating from scratch using the Creating a Monster guidelines and sizing accordingly.  I also used the Monster Manual's NPC section on Mages (MM p.347), Priests (p.348) and Veterans (p.350) as a reference to design. I could not find rules on how to scale these up or down in hit dice and AC to tailor them for a party of a certain level. ().  Maybe the real answer is always to generate an NPC with the traits of what a Nth level PHB character would have, and size according to DMG p.273?


I am seeing declines in performance.   Is there a disk or file defragmentation utility for Ubuntu?   If so, where can I get it?  Thank you.


How can I halt the spread of corruption after winning hell?

After defeating the Wall of Flesh, corruption is spreading much faster and bypasses sunflowers. Are there any other methods of halting it than hallowing?