My code takes a line of text from the user and attempts to encode or decode the text using a function I have created. However I am trying to print all the results of one line and also include the spaces that the user inputted so that it clearly shows that each word has been encoded. It currently just prints all the results underneath one another and does not include the spaces that the user inputted.   print ""  # To God be the Glory  text = raw_input("Please enter a line of text: ") text = text.lower()  print "" key = int(input("Please enter a key: "))  def ascii_func (text) :  for charc in text:     if charc in ['-', '+', '*', '/', '!' , "@"]:         print "Error input is not correct"  for charc in text:      if charc != " " :        charc = ord(charc)        charc = (charc - 97) + key        charc = (charc % 26)        charc = charc + 97        charc = chr(charc)        print charc  ascii_func(text)

I'd like to do it in Python. What I'd like to do in this example in C: #include <stdio.h>  int main() {     int i;     for (i=0; i<10; i++) printf(".");     return 0; }  Output: ..........  In Python: >>> for i in range(10): print('.') . . . . . . . . . . >>> print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . .  In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to "append" strings to stdout.


In profile there is a column called "profile views". Is it possible to view who all are visited my profile.. Thank you

How can I find out who are my profile visitors?


I have to show that $(z^*)^5=1$, if $z^5=1$, but how do I do that? I tried to show it by inserting $x-yi$ into the equation, so $(x-yi)^5=1$. After using the binomial formula for a power of $5$, I thought I might be able to see similarities between the imaginary and real parts but I just got a complete mess. I'd be happy if someone could help me.

If an polynomial has a complex root, is it necessary that the conjugate of that root is also a root of the polynomial? I am not sure about this. Please comment on this.


Let $A \subset B \subset C$ be commutative rings.  Suppose $C$ is a finitely generated $A$-module.  Can we conclude that $B$ is a finitely generated $A$-module?  Thoughts:   Since $C$ is a finite $A$-algebra, it is an integral $A$-algebra, hence $B$ is an integral $A$-algebra.  Thus, it remains to show that $B$ is finitely generated as an $A$-algebra. If $A$ is Noetherian, then the main claim is true by Prop 7.8 in Atiyah-MacDonald.  But what if $A$ is not Noetherian?   Note: This is not a homework question.  I'm simply trying to gain a better understanding of how finite generation works.

Let $A\subseteq B\subseteq C$ be commutative unital rings. Recall that the extension $A \subseteq B$ is finite / of finite type / integral, when $B$ is a finitely generated $R$-module / when $B$ is a finitely generated $A$-algebra / when $\forall b \in B$ $\exists$ monic polynomial $f \in A[x]$ with $f(b)=0$. Notation $_AB$ means "$A$-module $B$".  We know that $A\subseteq C$ is integral iff $A\subseteq B$ and $B\subseteq C$ are integral (Grillet, Abstract Algebra, 7.3.3).  Do we also have the following:   $A\subseteq C$ is finite $\Leftrightarrow$ $A\subseteq B$ and $B\subseteq C$ are finite. $A\subseteq C$ is of finite type $\Leftrightarrow$ $A\subseteq B$ and $B\subseteq C$ are of finite type.   I'm having problems with ($A\subseteq C$ finite $\Rightarrow$ $A\subseteq B$ finite) and with ($A\subseteq C$ of finite type $\Rightarrow$ $A\subseteq B$ of finite type). If $_AB$ is a direct summand of $_AC$ (for example when $A$ is a field), i.e. $_AC= _A B\oplus _A B'$ for some submodule $B'$ of $C$, then $C=Ac_1+\cdots+Ac_n$ implies $c_i=b_i+b'_i$ for some $b_i\in B$ and $b'_i \in B$, hence $B = Ab_1 + \cdots + Ab_n$. But what if $_AB$ is not a direct summand of $_AC$? And what about the 'finite type' case?


Although the topic about pkinfo was addressed in the question  on this occasion it does not matter about "what is a pkinfo file" but rather if there is any solution to the problem of the "error 403" message after following the instructions on the support page from esri   I tried to open a item.pkinfo file without ArcMap, following the steps detailed in Esri support page, Meaning :   Open  the item.pkinfo file with notepad and copy the URL between  tags  When I go to the specified URL, I get this message:  "You do not have permissions to access this resource or perform this operation. error 403"  Does anybody know how to solve this issue?

What is a *.pkinfo file?   Google Search results talk about Package Info files and how they contain map documents and layers, so I don't see how this is different from a .mpk file.    I also have not found anything about how to create a *.pkinfo file.


I wonder why Ubuntu won't remove the old kernels automatically.   Surely nothing is perfect and things can go wrong, so in case a update doesn't work, having a backup kernel maybe great. But it would also suffice to just keep the latest  kernel and the one before the latest and delete all the older ones.  Is there a reason why Ubuntu won't do this automatically?.

My boot partition is on a SSD, so it doesn't have room for more than about 8 installed kernel versions, and eventually some kernel update will fail to install because my boot partition is full of old versions. There are many questions out there about how to remove old versions (even how to automate the process), but my question is simply this: Why doesn't apt-get autoremove detect and remove them automatically, and is there a way I can make it do so? I mean, apt-get is what installed them anyway, so it knows about them, so why does it choose to leave all old versions around?


We all know it is impossible to keep track of which posts to review you have downvoted. The list is getting pretty long and after a day I already lost track of the post.  I had like to blatantly copy  to become a new feature request:     to have the downvotes section on one's own profile have a simple indicator when a post has been edited since the vote action   That would look like this:        Can we have this please?

Prologue:  This is an effort to follow up on  which is marked as a duplicate of  highly voted and status-declined feature request (although they seem to be different, one focusing on the OP and the other on the downvoter).   My New Year's resolution was to downvote more.  So on January 3rd or so, I saw a post that was low quality, and downvoted.  Two days later, I came back to see if it was ready to be deleted or had gotten piled with downvotes, to find it with a significant positive score!  At which point, I noticed that the answer had been significantly improved.  So I retracted my downvote, changed it to an upvote, and immediately resumed my dearth of downvoting again.  I think I have a responsibility to downvote bad posts, despite that oh-so-painful -1 rep penalty.  But if I am also going to have the responsibility to follow up on every downvote I cast, I'm not going to bother. I don't want my downvote to leave a residual penalty on posts that were once low quality, and I am not going to trouble myself to keep checking up on every post I downvoted.  Can a downvoter have an option to be notified when a post they voted down was edited?  I wouldn't make this an automatic thing, because not all downvoters want it, and it isn't applicable to all cases of downvoting (although  that this should be part of the responsibility of a downvoter).  Personally, I would make this a universal toggle on-off option on the user profile page, not a question-by-question option, but I don't have strong feelings about it.


In the android app, it would be great if you could choose if you wanted to see only hot questions from the sites you are registered on in your Feed, or (as it is the case now) to see all hot questions from all networks. I'm mainly active on StackOverflow and honestly I don't currently care that much about for example The Great Outdoors or Academia, so I think this feature would be quite welcome.

I am a registered user in ,  and several other sites, only because I had to ask 1 or 2 questions. In general, I have no interests in these sites, so I don't want to see them on my Feed. Is it possible to hide them somehow?   For now, I want to see only 4 sites (could be meta or non-meta) on my Feed. Notifications are not an issue, because I normally don't get any notifications from those not-interested-in-sites; I rarely participate there.


The input is a standard string input. Like this.  "Anand,Ramesh,Suresh#Anand,Ramesh,Suresh,Suresh,Anand"   I want to get get all the Names before the # and store it in an array. And use the names after the # to do some operation.   How do I copy the first three names before # to an array. So far I've figured out how to copy string seperated by comma. I couldn't find a solution to stop after a particular element is found.How do I stop when I encounter a #. Here is my code so far:  void findCombination(string input) {    stringstream ss(input);     string buffer;     vector<string>names;    int i=0;      while(getline(ss,buffer,','))    {          names.push_back(buffer);     }      for(int i=0;i<names.size();i++)            cout << names[i] <<endl;      //return NULL;   }

I'm trying to iterate over the words of a string.  The string can be assumed to be composed of words separated by whitespace.  Note that I'm not interested in C string functions or that kind of character manipulation/access. Also, please give precedence to elegance over efficiency in your answer.  The best solution I have right now is:  #include <iostream> #include <sstream> #include <string>  using namespace std;  int main() {     string s = "Somewhere down the road";     istringstream iss(s);      do     {         string subs;         iss >> subs;         cout << "Substring: " << subs << endl;     } while (iss); }   Is there a more elegant way to do this?


Does "Mary's Got Talent" mean "Mary Has Got Talent"? Is "has got" grammatically correct in this instance?

I see these two expressions are used almost identically in different contexts. Is there a difference between I have got and I have gotten?


I am working on trying to split my doubly linked list. But i get nullpointer exception on sublist.head = mid.next. Does it means sublist.head is pointing to null? How can i resolve this??   public void splitMid(DoublyLinkedList<T> sublist) {     Node<T> current;     Node<T> mid;     int i;     if (head == null)     {         sublist.head = null;         sublist.rear = null;         sublist.count = 0;     }     else         if (head.next == null)         {             sublist.head = null;             sublist.rear = null;             sublist.count = 0;         }         else         {             mid = head;             current = head.next;             i = 1;             if (current != null)                 current = current.next;             while (current != null)             {                 mid = mid.next;                 current = current.next;                 i++;                 if (current != null)                     current = current.next;             }             sublist.head = mid.next;             sublist.rear = rear;             rear = mid;             rear.next = null;             sublist.count = count - i;             count = i;         }  }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


When I try to play a YouTube video I just see the following message:     This operation could not be completed.   I've tried restarting my internet, resetting my iPod, HARD Resetting my iPod, and deleting some apps.  My iPod has 28 GB of memory left, so I know I'm not running out of memory. It's really frustrating to think that Apple might have disabled video playing in safari for iOS 5.1! Please help me, I cannot stand another day without my YouTube!  Device: iPod touch 3rd Gen, 2009 (iPod3,1)  OS: iOS 5.1.1

It's been some weeks now, whenever I try to used my Youtube app, it tells me it's impossible to connect to Youtube. Since it's an iPad 1, I have had trouble finding information online.  Did Google or Apple stop supporting the app? Is it finally obsolete? Is there another app I could use that works on iOS 5?  Just to be clear, I did not tinker with my device. I did not change its parameters, I did not jailbreak it, it connects to the Internet just fine and I've tried the app on different Internet connections. Also, this is not a login problem, the app just refuses to let me browse videos, whether I'm logged in or not.  Thanks for your help.


I am currently studying how to write efficient C++ code, and on the matter of function calls, a question comes to mind. Comparing this pseudocode function:  not-void function-name () {     do-something     return value; } int main () {     ...     arg = function-name();     ... }   with this otherwise-identical pseudocode function:  void function-name (not-void& arg) {     do-something     arg = value; } int main () {     ...     function-name(arg);     ... }   Which version is more efficient, and in what respect (time, memory etc.)? If it depends, then when would the first be more efficient and when would the more efficient be the second?  Edit: For context, this question is limited to hardware platform-independent differences, and for the most part software too. Are there any machine-independent performance difference?  Edit: I don't see how this is a duplicate. The other question is comparing passing by reference (prev. code) to passing by value (below):  not-void function-name (not-void arg)   Which is not the same thing as my question. My focus is not on which is the better way to pass in an argument to a function. My focus is on which is the better way to pass out a result to a variable from the outside scope.

Is it better in C++ to pass by value or pass by constant reference?  I am wondering which is better practice.  I realize that pass by constant reference should provide for better performance in the program because you are not making a copy of the variable.


I would like to type a^b in LaTeX. Note that I do not want b as superscript for a in the sense a power b, rather I want the text as is.  I have seen here () that ^ is a special character and can be written as \^.  However, a\^b yields 'a', followed by b with a hat. Somewhat like $\hat{b}$.  I have tried \^ to print the ^ character alone, ie., not followed by any text or numbers before or after. I get the following error:  "Missing \endcsname inserted. \end"  What am I missing? Any help is appreciated.

I need to display the symbol '^'  d <- dist(fascores, method = "euclidean")^2   How do I do that?


I'd like to be able to push values into the associative array below.  var car = []; car [0] = {type: "audi", age: "10"}; car [1] = {type: "bmw", age: "6"}; car [2] = {type: "tesla", age: "2"};   The method I've tried using to push is the following. Using car.length to push it into the next line of our car array, as it'll always be one higher. I don't know if that's good practice, but I guess it works.  value1 = "hyundai" value2 = "14";  car[car.length].push({type: value1, age: value2});   I absolutely cannot get this to work, and at this point, as a beginner JS'er, I'm out of ideas.

How do I append an object (such as a string or number) to an array in JavaScript?


I have a thread class:  private class Mythread extends Thread{        boolean mfinish = false;        private void finish(){            mfinish = true;            interrupt();        }        while(!mfinish){ do my work} }   and I use SparseArray<Mythread> mThreadArray to hold threads.  I registered a BroadcastReceiver in my service A:  private BroadcastReceiver myBroadcastReceiver = new BroadcastReceiver(){          public void onReceive(Context context, Intent intent) {           if(intent.getAction().euqals(STOP_THREAD)){                uid = bundle.getInt("uid");                pid = bundle.getInt("pid");                tid = bundle.getInt("tid");                if(mThreadArray.get(tid)==null){                     Mythread samplThread = new Mythread(pid, tid);                   mThreadArray.put(tid,sampleMainThread);                   sampleThread.start();               }           }           if(intent.getAction().equals(STOP_THREAD)){               uid = bundle.getInt("uid");                pid = bundle.getInt("pid");                tid = bundle.getInt("tid");                if(mThreadArray.get(tid)!=null){                     mThreadArray.get(tid).finish();                   mThreadArray.remove(tid);               }           }      }  }   In another application B, sentBroadcast() when there is a thread is created or ended. However, in my service A, I found the created threads can't be stopped when the "stop" intent comes.  Does any body know the reason?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Can Ddr3 Corsair  1600 MHz ram will support to my motherboard my motherboard Name ZEB H61 Zebronics motherboard H 61 can both ram run in my motherboard and my processor is i3 and 1TB hardisk and it also mention in my motherboard Box that support  H61 motherboard 1066/1333 & 1600   So I’m purchasing ram so that before buying i ask u about my Query  Below ram details :-  Corsair Vengeance 4Gb 240 Ddr3 Sd Ram 1600MHz Corsair Vengeance 8 Gb Ddr3 Sd Ram 1600Mhz   please confirm me

I don't have any knowledge in hardware and would like to know which RAM should I buy for my laptop.  How do I discover what RAM I need & how much my machine can take?  I have a Razer Blade 15 (RZ09-02705F76) 2018 but don't know if there is a specific type or format of RAM that suits it and don't know where to find this information.


Solve the equation $$\left( x^2+100 \right)^2 = \left( x^3 -100 \right)^3$$  I have no idea what to do. The equation is part of an exercise that goes as follows: Let $f:\mathbb{R} \rightarrow \mathbb{R}$ be a function such that $$f(f(x)) = x \quad \forall \; x \in \mathbb{R}$$  Prove that $f$ is $1-1$ or a bijection. ( done ) If $f$ is strictly increasing , then prove that $f(x)=x$. ( done ) Solve the equation $\left( x^2+100 \right)^2 = \left( x^3 -100 \right)^3$ using the above.  No idea how to combine the above to solve the equation. I'm interested in solutions that use high school methods preferably no derivatives; just pure functions (e.g composition or simple algebraic manipulations ) Wolfram Alpha gives $x=5$ as a solution.

Well, I was given a problem, find $x$, if:  $$(x^2+100)^2=(x^3-100)^3$$  I tried everything that I could, I even opened up the brackets which gave an ugly degree 9 equation, I also tried to plot the curves $y=\left(x^2+100\right)^2$ and $y=\left(x^3-100\right)^3$ and locate their point of intersection but it couldn't be done manually.  So, in the end I was forced to use hit and trial after doing which I got the answer, is their any way to solve this algebraically??


I need help to understand the probability derviation of a paper. Please help me. For the following, please only treat $|h_{R,B}|^2$ and $|h_{A,R}|^2$ as random variables (other parameters can be treated as constants). Those two random varibles are i.i.d. such that they are exponential distributed with parameter $E[|h_{R,B}^2|]$ and  $E[|h_{A,R}^2|]$ respectively for $|h_{R,B}|^2$ and $|h_{A,R}|^2$.  In particular, I don't understand what he did after line 74 (the yellowed part).

So assume $Y$ and $X$ are exponentially distributed with parameters $y_1$, and $x_1$ respecitively.  assume c is a constant.  I am having huge trouble to understand the integration of the following expression.  $P(Y<c/u(X))$  $=\int_{t}^{\infty}f_X(x)\int_{0}^{c/u(x)}f_Y(y)dydx +\int_{0}^{t}f_X(x)\int_{c/u(x)}^{\infty}f_Y(y)dydx$  where t is the cross-point that $u(x)$ change sign    here $c/u(x)$ is given by the plot below, t is the point crossing the zero:   Confusion:   I don't understand the second integration of the second term "$\int_{c/u(x)}^{\infty}f_Y(y)dydx$", this isn't right because Y an X only defined for y>0, and x>0. So it's the first quadrant in this plot.


I am planning to go up to Vermont this spring to visit Jasper Hill Farms and Shelburne Farms to buy a wheel of cheese each from their cheddar houses. Once I cut into the wheel, how long before it goes bad?

How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed.


How to install codec on live Ubuntu 16.04 LTS?  If I try run sudo apt-get update, I get this message:     comunicate "** (appstreamcli:6785): CRITICAL **: Error while moving old database out of the way.   "

I have created a USB stick with a persistent Ubuntu 16.04 (release version). I tried a couple of ways, using Startup Disk Creator and MultiSystem, but I get the same end result.  When I boot into the USB and do 'apt-get update', all is well.  When I try 'apt-get dist-upgrade' I get:     ** (appstreamcli:2761): CRITICAL **: Error while moving old database out of the way. AppStream cache update failed.   The only reference to this error message I can find is  but would appear to be fixed, at least fixed by the time the release version of Ubuntu 16.04.  Aside: I want to test Unity8, which includes installing software.  I don't have a spare computer, so I thought a persistent USB would do the trick.  Any takers?


Hi i wanted to know if the 2 are different or are they the same? If different can any1 shed some light and what are they used for? I Use UBUNTU 15.10 and was interested on installing "LAMP". I use my Ubuntu PC for everyday use of simple tasks like web browsing etc.. but i also am learning to code/software & app dev.. if Ubuntu 15.10 OS Different from Ubuntu 15.10 SERVER, would it the same or does the fact it has "Server" make my PC act different? or better yet what does it mean by server and what does server do or used for? Thank you..

What's the difference between the server version of Ubuntu and the desktop version?


The standard story goes as follows: gauge bosons cannot have a mass term because it would break gauge invariance in the lagrangian. This is clear, but why can't we just have massive vector bosons without any gauge transformations associated to them? My question arises from the standard model: spontaneous symmetry breaking gives you 3 massive bosons and a massless one, with a $U(1)$ residual gauge invariance from the subgroup of $SU(2) \times U(1)$ which leaves the $\varphi$ (vacuum) doublet invariant. My question is the following: why don't we just add massive vector fields with the desired masses and charges, without even defining gauge transformations for them?  On chapter 21 of Peskin&Schroeder they show how to quantize a spontaneously broken $U(1)$ theory in the $R_\xi$ gauge, and one interesting feature is that since the $\xi$ dependence drops out once you add both the (now massive) $A_\mu$ and the Goldstone boson $\varphi$ (with fake $\xi$ dependent mass) contributions, one can choose $\xi$ in different ways to prove different things, e.g. renormalizability, unitarity, and so on. Perhaps the theory wouldn't be renormalizable if we just added mass terms for the "non gauge" bosons, thereby making them fields with a Proca-like action.

Question: Why can't we add a mass term for the gauge bosons of a non-abelian gauge theory?   In an abelian gauge theory one can freely add a mass and, while this breaks gauge invariance, as long as the coupling current is conserved everything works fine (i.e., the scalar modes decouple and the theory is renormalisable).  In non-abelian gauge theories, it is often stated that the only way to introduce a mass term is through the Higgs mechanism. If we added a mass term without introducing the Higgs field, but the coupling current is still conserved, at what point would the theory break down? It seems to me that the scalar modes decouple as well, at least to tree level. I failed to push the calculation to one loop order, so maybe the theory breaks down here. Is this the most immediate source of problems, or is there any simpler observable which fails to be gauge invariant?  One would often hear that if we break gauge invariance the theory is no longer renormalisable. I may be too naïve but it seems to me that a (gauge-fixed) massive gauge boson has a $\mathcal O(p^{-2})$ propagator and therefore (as long as the current in the vertices is conserved) the theory is (power counting) renormalisable. Or is it?  To keep things focused, let us imagine that we wanted to give gluons mass, while keeping self-interactions and the coupling to matter (and ghosts) unchanged. Could this work without a Higgs?    There are many posts about that are asking similar things. For example,    asks about the mass of fermions, not of the gauge bosons.  same as above.  same as above.  is a list of modifications/generalisations to the Higgs mechanics, but doesn't discuss if it is avoidable at all.


Given a finite sequence of $s+1$ IID normal random variables $X_1, \ldots, X_{s+1}$ They are spherically symmetrical.  This means that the radial projection of the point $(X_1, \ldots, X_{s+1}) $ onto the unit sphere $S^s$ has uniform distribution on $S^s$.  My questions are: what is meant by radial projection and how can I prove that the resulting distribution will be uniform?

I am wondering how to generate uniformly distributed points on the surface of the 3-d unit sphere? Also after generating those points, what is the best way to visualize and check whether they are truly uniform on the surface $x^2+y^2+z^2=1$?


I need to write a module that need to handle user related details.  I'm able to create the module and add the necessary database changes in 'users_field_data' table. By using db_add_field in hook_install()  db_add_field('users_field_data', 'user_office', array(             'type' => 'varchar',             'length' => 255,             'not null' => FALSE,         ));   But one thing I noticed when installing some other standard module from drupal, when a new field is added to the database it saves some values to 'config' table and 'key_value'table. But when I install the module it only insert the fields to 'users_field_data' table.   Is there a way that I add the values to 'config' table and 'key_value' table when creating a new field in an existing table.

I'm new to drupal and I need some help.  I created a new module with name user_extra. Which create necessery table when Installing the module.  But I also need to insert some database field in 'users_field_data' table ('user_extra_id' and 'user_office')  In baseFieldDefinitions I wrote all necessery database table fields for user_extra table.   public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {     // Standard field, used as a unique if primary index.     $fields['id'] = BaseFieldDefinition::create('integer')         ->setLabel(t('Unit ID'))         ->setDescription(t('The unit ID.'))         ->setReadOnly(TRUE)         ->setSetting('unsigned', TRUE);      $fields['uuid'] = BaseFieldDefinition::create('uuid')         ->setLabel(t('UUID'))         ->setDescription(t('The unit UUID.'))         ->setReadOnly(TRUE);         .         .         .     $fields['user_info'] = BaseFieldDefinition::create('string')         ->setLabel(t('User Info'))         ->setDescription(t("The User Info"))         ->setSetting('max_length', 255)         ->setDisplayOptions('form', array(           'type' => 'string_textfield',           'weight' => 10,         ))         ->setDisplayConfigurable('form', TRUE);      return $fields;      }   When I install the module it inserts all values that I define in baseFieldDefinitions.  But I also need to create 'user_extra_id' and 'user_office' in 'users_field_data' table with setDisplayOptions and setDisplayConfigurable options.  This is the commenting that I made in entity file  /**  * @ContentEntityType(  *   id = "user_extra",  *   label = @Translation("user extra"),  *   handlers = {  *     "storage" = "Drupal\user_extra\UserextraStorage",  *     "storage_schema" = "Drupal\user_extra\UserextraStorageSchema",  *     "access" = "Drupal\user_extra\UserextraAccessControlHandler",  *     "list_builder" = "Drupal\user_extra\UserextraListBuilder",  *     "view_builder" = "Drupal\user_extra\UserextraViewBuilder",  *     "views_data" = "Drupal\user_extra\UserextraViewsData",  *     "form" = {  *       "default" = "Drupal\user_extra\Form\UserextraForm",  *       "add" = "Drupal\user_extra\Form\UserextraAddForm",  *       "edit" = "Drupal\user_extra\Form\UserextraEditForm",  *       "delete" = "Drupal\user_extra\Form\UserextraDeleteForm",  *     }  *   },  *   admin_permission = "administer user_extra",  *   base_table = "user_extra",  *   entity_keys = {  *     "id" = "id",  *     "label" = "name",  *     "uuid" = "uuid",  *   },  *   links = {  *     "canonical" = "/admin/user_extra/{user_extra}",  *     "add-form" = "/admin/user_extra/add",  *     "delete-form" = "/admin/user_extra/{user_extra}/delete",  *     "overview-form" = "/admin/user_extra/${user_extra}/overview",  *     "edit-form" = "/admin/user_extra/{user_extra}",  *     "collection" = "/admin/user_extra",  *     "children" = "/admin/user_extra/{user_extra}/children",  *   },  * )  */


I am an Indian planning to take a train from Disneyland Resort (Marne-la-Vallée/Chessy) to London. Please let me know where France and UK immigration respectively will be done.

I know that when going from Paris, Brussels or Bourg-St Maurice, UK border checks are done at these stations, and when going from Marseille, you get off the train at Lille for the checks.  But what about the trains from Marne-la-Vallée Chessy? Some people say it takes place at Marne-la-Vallée Chessy, some people that you get off at Lille, and some that the checks are done in London.  Which is correct? Does anyone have recent experience?


There was this Elder Dragon that kept spawning everytime I fast travel. The dragon is already dead, but I can't get its soul. Any answers?

I have just finished the main quest line, and now every few hours I will fast-travel somewhere and a dragon corpse will drop out of the sky in front of me. It's always dead, the corpse is always empty, and it never decays to a skeleton or performs the Absorb Soul animation. So far I have been rained on by an ancient dragon in Whiterun, two elder ones in Riften and Sky Haven Temple, and other dragons at random times.  What has not happened yet, since I finished the main quest, is a random encounter with a living dragon. I don't know if this is related, but it seems odd. I don't remember this happening on my previous play-throughs. I have Dawnguard and Hearthfire installed, but otherwise the mods I am running are the same as I have been running for months.  Has anyone else encountered this particular problem and/or know how to stop it?


I had done dual boot on my laptop as Windows and Ubuntu. But unfortunately the wifi option is not shown in Ubuntu but it works fine on Windows.I had tried many solution but not get exact solution for this problem.    lspci -knn | grep Net -A3; rfkill list gives:    03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]         Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter [17aa:c024]  0: ideapad_wlan: Wireless LAN         Soft blocked: no         Hard blocked: no  1: ideapad_bluetooth: Bluetooth          Soft blocked: no          Hard blocked: no  2: hci0: Bluetooth          Soft blocked: yes          Hard blocked: no

I'm trying to install drivers for my Wifi on my HP All-in-one desktop. I've been told to show the output of the command "sudo lshw -C network" so here it is:  *-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: enp1s0 version: 15 serial: 48:ba:4e:5c:06:5f size: 100Mbit/s capacity: 1Gbit/s width: 64 bits clock: 33MHz capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.21 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s resources: ire:31 import:e000(size=256) memory: fea04000-fea04fff memory:fea00000-fea03fff  *-network UNCLAIMED description: Network controller product: Realtek Semiconductor Co., Ltd. vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:02:00.0 version: 00 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress cap_list configuration: latency=0 resources: import:d000(size=256) memory:fe900000-fe90ffff   Output from "lspci -nnk | grep -A2 0280":  02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821] Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:831a] 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader [10ec:5229] (rev 01)


I'm a brand new user so I'm not sure of my way around the system yet. I want to change my computer's name, so I tried to edit the name in /etc/hostname, but it is a read-only file. Adding the ! character didn't help. I'm using vim to edit the file.

I want to change the OS hostname but I do not want to restart.  I have edited /etc/hostname but it requires a restart to get implemented. How to avoid this?


I'm trying to practice algorithm complexities, How do I do this?! I don't understand the problem or what calculations I have to do to get it... ANY help would be wonderful! int N = 50 ; int sum = 0 ; for (int n = N ; n > 0 ; n/=2 ) {     for (int i = 0 ; i < n ; i++) {         sum++ ;     }  }

Most people with a degree in CS will certainly know what . It helps us to measure how well an algorithm scales.   But I'm curious, how do you calculate or approximate the complexity of your algorithms?


Is it possible to redirect a URL from the Edit Form page?  I've read something about changing the source url, but it doesn't seem to be working for me.  Currently, when the user enters in information and presses save, the page goes back to the main list which they do not need to see.

I am trying to use the Source QueryString Parameter once the user makes changes to the Edit Form.  Here's the Source URL I am using:  https://mysite/sites/hhc/finance/ap/Lists/APInvoiceForm/EditForm.aspx?ID=76&Source=/sites/hhc/finance/ap/   I paste it into the URL, hit enter, and it will work the first time when you press save, but every other time after, it defaults back.  Is this not possible to use with the Edit Form?


Say $0 \to M_1 \to M_2 \to M_3 \to 0$ is a short exact sequence and each $M_i$ is an $R$-module. If $M_2$ is finitely generated, then so also is $M_1$?

I'm looking for an example of a finitely generated module with submodules that are not finitely generated.  I've found  dealing with group (i.e. an example of a finitely generated group with subgroups that are not finitely generated). But I can't figure out whether that question do help to this one.  And I actually want to find a more "module-like" example rather than an example derived from a 'strange' group.  Can you please help? Thank you!


I copied thousands of files into an exFAT MicroSD card.  The number of files and bytes is identical, but how do I know whether the data is corrupt or not?  It would be good if the JackPal Android Terminal also supports the command.

I have a home file server that I use Ubuntu on.  Recently, one of my drives filled up so I got another and threw it in there.  I have a very large folder, the directory is about 1.7 T in size and contains a decent amount of files.  I used  to COPY the files from the old drive to the new one and it seems to have worked fine.  I want to now validate the new directory on the new drive against the original directory on the old drive before I delete the data from the old drive to free up space. I understand that I can do a CRC check to do this.  How, specifically, can I do this?


I can't assume that this is the series representation of $e^x$. I know how to do this for the case where $x\geq 0$. I'm struggling with the case $x < 0$. I have tried to split the series as   $\sum_{l=0}^{\infty} \frac{x^{2l}}{(2l)!} - \frac{|x|^{2l+1}}{(2l+1)!}$  but it doesn't seem to work. Any hint?

How to prove that the exponential function is strictly positive ?


I modified my $PS1 variable. The problem now is that the cursors jumps to the left side of the $ when I scroll through the bash history via Arrow-UP .  That is my $PS1 now. admin@OLAF:~$ declare -p PS1 declare -- PS1="\\[\\e]0;\\u@\\h: \\w\\a\\]\${debian_chroot:+(\$debian_chroot)}\\[\\e[1m\\e[38;5;208m\\e[48;5;24m\\u@\\h\\[\\e[0m\\]:\\[\\e[97m\\]\\w\\[\\e[0m\\]\\\$ "

I have an issue where if I type in very long commands in bash the terminal will not render what I'm typing correctly. I'd expect that if I had a command like the following:  username@someserver ~/somepath $ ssh -i /path/to/private/key myusername@something.someserver.com  The command should render on two lines. Instead it will often wrap around and start writing over the top of my prompt, somewhat like this:  myreallylongusername@something.somelongserver.comh -i /path/to/private/key  If I decide to go back and change some argument there's no telling where the cursor will show up, sometimes in the middle of the prompt, but usually on the line above where I'm typing.   Additional fun happens when when I Up to a previous command. I've tried this in both gnome-terminal and terminator and on i3 and Cinnamon. Someone suggested it was my prompt, so here that is:  \[\033[01;32m\]\u:\[\033[01;34m\] \W\033[01;34m \$\[\033[00m\]  Ctrll, reset, and clear all do what they say, but when I type the command back in or Up the same things happens.  I checked and checkwinsize is enabled in bash. This happens on 80x24 and other window sizes.  Is this just something I learn to live with? Is there some piece of magic which I should know? I've settled for just using a really short prompt, but that doesn't fix the issue.


As a graphic designer I have found it always very interesting that how designs made in past look very outdated, unfit, out of place, underwhelming and just wrong. Even though i know it's true designs/trends of today WILL become the old ones in near future. But why...what is it about us or designs that makes them like that to us.  So far I have thought of several things maybe it's one of these or mixture....   Newer designs/trends are in fact an Improvement? or .. Novelty of newer designs hasn't just worn off? So in comparison they look better. Old designs are beautiful it's just they functionally hard for us as we are accustomed to other forms of retrieving message.    But the thing that bothers me is that if most/some designs' newer version looks better just because it's better related to current era, achievements, and technical capabilities, then why does it appear that designs have improved in all last 10 iterations per decade. If my view is subjective to previous and newer design..then why do designs of era in which i don't live in or lived in appear progressively getting better.  For that i have also happen to have some things in my mind...   I am shortsighted in a way that most designs i get to see today are on digital media and digital media has been technologically challenged in its abilities so That means there is "Good Design" for the most part. There is Good Design and recently good UI, public representation, marketing is becoming a more of a priority...seriously most sites in past looked liked they were meant to be used by desperate people.  They were just designed bad without consideration of aesthetics..I say that because some art looks just amazing even if it was made 2000 years ago..some things just do look beautiful.   So do old art/designs/logo/typography look repulsive subjectively or they objectively are inferior?

What makes a design look old? How subjective is this? Who decides?   Look at this Bell logo:    It's from 1969. And boy, does it look that way. It's simple and minimal, but.. it looks old.  Take a look the this BP logo:    Old. And not too pretty. And yet.. someone thought it's a good idea.   And something I find ridiculously curious: the old Chrome vs the new Chrome logo:    I remember when I first saw the new icon. I thought it was pretty bad. It lacked something. Today, I look at the old one and smile, thinking "aw, that was ugly. In a cute way, though".  This doesn't only apply to logos that have been improved, I think:    Sorry, Nike. I love the brand, but that logo looks like you paid $35 back in '71 for it.  Now let's go for something else, though a bit off the real logo-esque topic:    I'd believe if someone told me this was a 2013 model. I want one, by the way.  Take a look at most cars from the 90s. 80s. 70s. 95% look horrible. 4% are nearly classic, 1% are so ugly they have their own cult.  What drives the way we perceive "new" vs "old" design?  Look at the web. Flat UI is becoming more and more popular, making gradients look old.  Why? Who decides this? How much of this is about taste and how much about trends?  I mean.. you couldn't slap the old, rainbow-colored Apple logo on the back of every MacBook out there and make it look good today, could you?


Planning to stay in South Korea for two weeks. Would be nice to have GSM prepay card for data transfer.   Found two providers:  EG sim http://www.egsimcard.co.kr/eng/buy-eg-sim-card/online/buy-egsimcard.asp Cost 5GB = 60000 KRW  KT http://roaming.kt.com/rental/eng/product/sim.asp Cost unlimited data 10 days - 38,500 won    Which one has better coverage and more reliable. What are hidden costs? Where to buy?   There are more providers?

What is the best way to get smartphone access when traveling for a few days in South Korea? I am mostly interested in getting cheap data access (google maps...).


Searching for some help with this exam review proof. If we let $x$ be a eigenvector for $Q$, that is, a non zero vector satisfying $Qx=cx$ for some scalar $c$. How do I show that $c= \pm1.$   EDIT: $Q$ is a matrix with orthonormal columns

Let $A \in M_n(\Bbb R)$. How can I prove, that     1) if $ \forall {b \in \Bbb R^n}, b^{t}Ab>0$, then all eigenvalues $>0$.    2) if $A$ is orthogonal, then all eigenvalues are equal to $-1$ or $1$


I am new to configuring Nginx servers and I've been bashing my head against a wall for a few days now. I know it's been asked a lot and even though I've read all the answers, the Nginx documentation and whatever else I could find out there I couldn't get to the bottom of this.  server {    listen 80;     root /var/www/gofive;    index index.html indx.htm;       server_name gofive.justadev.com localhost 127.0.0.1;     location /webhooks/ {       root /var/www/webhooks;    } }   My intention is is to serve content from a different directory when requests are made to /webhooks/. I've tried many variations of this configuration file but every request I make to /webhooks/ is a 404. Am I doing something wrong? I've also granted 755 permission to everything under /var/www and restarted the Nginx service after each configuration change.  I am running Nginx on an Ubuntu 14.04 LTS distro.  The /var/www/webhooks dir contains just a simple index.html file. After checking the error logs, I found this error:  2015/10/23 20:06:33 [error] 24723#0: *1 "/var/www/webhooks/webhooks/index.html" is not found (2: No such file or directory), client: [my_ip], server: gofive.justadev.com, request: "GET /webhooks/ HTTP/1.1", host: "gofive.justadev.com"   Apparently it repeats the /webhooks/ part on the file system. Why is this happening?

I've got a pretty much default sites-enabled set up in my nginx on debian squeeze and i'm now trying to get it to serve up my munin graphs on myhost/munin/  Heres the location i've added to the config         location /munin             {                     root /var/cache/munin/www/;                     index index.htm index.html;             }   And here is the error I recieve:              2012/07/09 23:52:03 [error] 3598#0: *13 "/var/cache/munin/www/munin/index.htm" is not found (2: No such file or directory), client: 93.*.*.*, server: , request: "GET /munin/ HTTP/1.1", host: ""   This set up used to 'just work' in apache. I'm new to nginx so a bit lost as to why its adding the extra /munin when looking for the path. Any advice?


asked on UX has as the highest-upvoted answer, something that does not address the question at all: instead it just points out that this is generally a bad practice.  The asker already commented that its not applicable in his case as he can't easily dispense of a Reset action, since then I've seen the upvotes on this answer go from ~10 to 30+.  If the intent is to point out bad practices, that can also be done by actually answering the question and mentioning the drawbacks of its premise (instead of ignoring the actual question asked). Should such replies be encouraged as actually answering the question? Personally I feel this would be more suitable as a comment on the question instead.  Another issue is that the later upvoters probably ignored or never read the asker's comment, but that's another discussion on whether useful info can be left in comments or not :)    2 mins after posting, I saw  in the sidebar. This is almost a duplicate, but has the added proviso that the 'don't do it' answer did get replied to by the asker promptly that yes, he had considered this aspect but was going to do so anyway.

If someone asks how to do XYZ, and you think doing XYZ at all is a Bad Idea™, is it valid to post an answer saying so? You aren't answering the question, but instead, arguing the question's validity.  You could do this in a comment, but I don't think comments carry enough weight on occasion.  For example, I came across this today ; for those not wanting to link away:     I would like to build a wiki based website about professors, so that students can share information and check the reputation of the professor before working for him.   and I really wanted to post an answer that said, "I think this is a very bad idea". (In fact I did anyway, despite awareness that it could get myself flamed.)  Was I wrong? What should I have done instead?


says:  Any creature can cast a spell of 1st through 5th level into the ring by touching the ring as the spell is cast. The spell has no effect, other than to be stored in the ring.   says:  When you cast a spell that targets only one creature and doesn’t have a range of self, you can spend a number of sorcery points equal to the spell’s level to target a second creature in range with the same spell.  Can I use metamagic to cast a twinned spell into the ring, (meaning anyone can cast that spell twinned out of the ring) and if so are there any additional restrictions?

The Ring of Spell Storing is a unique item in that it allows one spell to be cast two times. The first time is when the spell is cast into the ring:     Ring of Spell Storing, DMG 192      This ring stores spells cast into it, holding them until the attuned wearer uses them. [...] Any creature can cast a spell of 1st through 5th level into the ring by touching the ring as the spell is cast.   The second time, when the spell is cast from the ring:     Ring of Spell Storing, DMG 192      [...] While wearing this ring, you can cast any spell stored in it. [...]   Metamagic works on a per-cast basis:     Metamagic, PHB 101      You can use only one Metamagic option on a spell when you cast it, unless otherwise noted.   Furthermore, it's possible for two Sorcerers to share one RoSS. The first one can cast, for example, one Heightened and Empowered fireball into the ring, and then give it to the second. The second would then be able to cast the previously-Metamagicked fireball from the ring, but also apply Careful Spell on top of another Empowered Spell.  This seems to make it possible, albeit with some difficulty/resources/planning, to cast one spell with four applications of Metamagic. Is this possible, or am I missing a rule that forbids this?


I am on the verge of building a mini metropolis in Terraria but no one is arriving? What do I need to do? I have a table chair and light source but nothing for the last hour. What do I need to do?  I tried going through the post that has been on here but still got nowhere. It was the wiki and that post that I tried to follow before (and that post that brought me to this site) Seems that only Josh wants to be helpful though

I read on the wiki that people will move in under the following conditions:   You do something to please them An empty house is available with a light source, table, and chair (also with walls).   I have a house which is about 7x8, then a roof space above that; about half the area. I could put furniture up there too, but will anyone move in?


I’m an Indian passport holder with a D category long-stay student visa (Stemp2). I’m going to India via London Heathrow with two hours layover. My .  Will I need a UK Transit visa?

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


I was trying to re-do recover my Gmail account; I now have two Gmail accounts. I'd really like my first original one back, as I have business cards using the first Gmail account. Can you help me on if there's a way to fix this issue?

I have forgotten the password or username for my Google account, or I'm unable to access my account for other reasons.  How can I recover my account?  (This Q&A is meant as a general description for all Google and Gmail username/password questions. See: )


Prove that if the sequence $\,\{a_n\}\,$ converges to $A$, then $\,\{|a_n\}|\,$ converges to |A|.  Also, is the converse true?

Problem 3. Show that for a sequence $(x_n)$ the following are true:   (i) $\lim x_n=0$ if and only if $\lim |x_n|=0$.   (ii) $\lim x_n=L$ implies $\lim |x_n|=|L|$. Is the converse true? Prove or give a counterexample.    (i) is already done, easy.  I'm halfway done with (ii), I split it into three cases:  $L = 0$, $L > 0$ and $L < 0$.  For $L = 0$ I just refer to part (i).  For $L > 0$, we know that $|x_n - L| < \epsilon$   if lim $|x_n|$ = $|L|$, then we must have  $||x_n| -|L|| < \epsilon$  but by the reverse triangle equality, $||x_n| - |L|| < |x_n - L|$ so clearly $||x_n|-|L|| < \epsilon$, thus  lim $x_n = L$ $\implies$ lim $|x_n| = |L|$ for $L > 0$  for some reason I'm confused as to part three, $L<0$. I'm having trouble seeing the difference between $L>0$ and $L<0$, and i'm starting to think that splitting it up like that isn't necessary at all.


Is there a package that loads all images (tikz, pgfplots, images, etc.) only as empty boxes? This would greatly speed up compilation of documents when making edits to the content and layout when the positioning of positioning is needed, but the adjusting of the actual graphical content is not.

I'm working on a fairly big document that has a lot of graphs of functions- so far it has around 200, by the end it will have around 1500. I use pgfplots for each graphic, and the functions are pretty basic: exponential, rational, polynomial, and trigonometric.  Once I am happy with each graph, I don't necessarily need to see it every time I compile, and would like to minimize compilation time for future drafts. Naturally, the document is already chopped up into chapter files, but each chapter contains around 100 figures.  Having studied the pgfplots documentation, I haven't found a draft mode, but I'm interested in knowing if one could be created.    I'm envisaging something similar to the draft mode of the graphicx package, in which graphics are not included, and blank boxes are put in their place.  Some things I've considered:   the  documentclass; but with about 1500 figures, wouldn't this mean over-modulization?  tikzexternalize, but this still requires an initial 'monster' compilation to get the images externalized before the draft option could be invoked   Here's a MWE to play with  \documentclass{article} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture}     \begin{axis}         \addplot {x^2};     \end{axis} \end{tikzpicture}  \end{document}


I was reading about Future methods in Salesforce and had this query - Is there any reason why future methods should be static and void?

I am new to Salesforce and hence a lot of silly questions. What is the rational behind defining future methods as Static? I mean has these methods been not static what harm would have they caused?


I am trying to simplify $7 \cdot\sqrt{5x}\cdot\sqrt{180x^5}$, given that $x$ is negative. The answer is $-210x^3$, but I am getting $210x^3$. Below is my reasoning:  For a $ k > 0 $, let $ k = - x $. Then, $7\cdot\sqrt{5x}\cdot\sqrt{180x^5}$ = $7\cdot5\cdot6\cdot i\sqrt{k} \cdot i\sqrt{k^5}$ = $210\cdot(-1)\cdot k^3$ = $ 210 \cdot (-1) \cdot k^3 = 210\cdot (-1) \cdot (-x)^3 = 210x^3$.  What am I doing wrong?  Any help is greatly appreciated

I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


I configured all requirements for deploy Apps from store and i can access all apps, browsing and download. On trying to load the App, I get an error as follows:  This page can't be displayed •Make sure the web address  is correct.

I configured all requirements for deploy Apps from store and i can access all apps, browsing and download available after find it on apps i can add it but;      This page can't be displayed    •Make sure the web address  is correct.    any solution?


In ZFC, does there exist a continuous map $f: \omega_1 \to \mathbb{R}$ (with order topology on $\omega_1$ and standard topology on $\mathbb{R}$), which is not a constant starting from some countable ordinal?

show that every continuous real-valued function defined on $S_{\mathbb{\Omega}}$ is eventually constant.Where $S_{\mathbb{\Omega}}$ denote the first uncountable ordinal.  There is a hint that for each $\epsilon$,there is an element $\alpha$ of $S_{\mathbb{\Omega}}$  such that $|f(\alpha)-f(\beta)|<\epsilon$ for all $\beta>\alpha$. However, I couldn't figure out how to prove this statement.


I am a student of electronics, I am also new to it but I am interested in the whole world of electronics. I've managed to get a hang of everything for now without much of a problem. But there is one thing, ground. They never truly explained to us what ground is except a discharge of electricity in real ground. I would like to ask the community to help me out as simple as you can so I can intuitively know what ground is and how it works exactly. Thank you on your time guys! P.S. I got this problem when learning about a breadboard online and didn't acctualy understanded how do you ground something on a breadboard.

I'm a bit confused about the concept of ground, and perhaps voltage as well, particularly when trying to analyze a circuit. When I learned about Ohm's law in grade school, I learned how to apply the law to calculate current, voltage, and resistance of simple circuits.   For instance, if we were given the following circuit:    We would be could be asked to calculate the current passing through the circuit. At the time, I'd simply compute (based on the rules given) 1.5V/1Ohms=1.5A.  Later on, however, I learned that the reason the voltage of the resistor would be 1.5V is because voltage is really the difference in potential between two points, and that the difference of the voltage across the battery would be the same as that of the resistor (correct me if I'm mistaken), or 1.5V. I got confused, however, after the introduction of the concept of ground.   The first time I tried to do the current calculation for a circuit similar to the previous circuit on a simulator, the program complained about not having a ground and "floating voltage sources". After a bit of searching, I learned that circuits need ground as a reference point or for safety reasons. It was mentioned in one explanation that one can pick any node for ground, although it's customary to design circuits so there is a "easy place" to pick ground.   Thus for this circuit    I picked ground at the bottom, but would it be okay to pick ground between the 7 ohm and 2 ohm resistor - or any other place? And what would be the difference when analyzing the circuit?  I've read that there are 3 typical ground symbols with different meanings - chassis ground, earth ground, and signal ground. A lot of circuits I've seen used in exercises either use earth ground or signal ground. What purpose is there in using earth ground? What is the signal ground connected to?  Another question: since the ground is at unknown potential, wouldn't there be current flowing to or from ground to the circuit? From what I've read we treat the ground as 0V, but wouldn't there be some sort of effect because of a difference in potential of the circuit and ground? Would the effect be different depending on what ground was used?  Finally: In nodal analysis, one customarily picks a ground at the negative terminal of the battery. However, when there are multiple voltage sources, some of them are "floating". What meaning does the voltage of a floating voltage source have?


I have been searching this for hours and every services I found have limitations or cost that do not work for me.  My quest is simple. I have hundreds of thousands of image files (time lapse jpg images < 5 MB) which are organised in folders and subfolders.  I originally hosted them with HostGator. Unfortunately, they see them as storage only because no file was displayed on a web page for 2 months.  So HG is kicking me out.  I need to quickly find an alternative service which works like a web server so I can organise the files exactly the same way, upload them via FTP or PHP script, and rsync from HG to move all the first (initially) AND be able to display the image file in a normal image tag in a web page.  My local ISP in RSA is too expensive and also limit the hosting space to very little. You know the story for HostGator. SmugMug has unlimited storage but only allows upload via their web pages or LightRoom. Would cloud storage be a good option?  Can someone recommend a good and affordable service for this?

This is a "catch-all" question designed to serve as an answer for all questions about choosing web hosting.  Pro Webmasters no longer accepts new questions about how to choose hosting.  All future questions pertaining to finding web hosting should be closed as a duplicate of this question. For more information about this policy please see .    How to find web hosting that meets my requirements?  What we're looking for in answers to this question are the basics about web hosting:   What is web hosting? What is the difference between shared, VPS, and dedicated hosting? How does a content delivery network relate to web hosting? Anything else you feel is helpful in finding a web host.   What we do not want is:   Endorsements or recommendations for specific web hosts We do not want your experience or other subjective information (just the facts please)


Let there be two tables:   Table A  id | name 1    x 2    y  Table B  foreign_key | value | external 1             1       60 1             2       50 2             3       80 2             4       90    The desired result is a JOIN looking like this:  id | name | external 1    x      50 2    y      90   i.e., for each row in A we get the corresponding external from B where value is max for a given id.  What I have so far is this:   SELECT     A.`id`,     A.`name`,     B.`external` FROM `A` LEFT JOIN `B` ON A.id = B.foreign_key GROUP BY id   This obviously returns the first B.external encountered instead of the one with the highest value:  id | name | external 1    x      60 2    y      80   Is there a way to achieve this, preferably without using subqueries?

My table is:     id home datetime player resource     1 10 04/03/2009 john 399   2 11 04/03/2009 juliet 244   5 12 04/03/2009 borat 555   3 10 03/03/2009 john 300   4 11 03/03/2009 juliet 200   6 12 03/03/2009 borat 500   7 13 24/12/2008 borat 600   8 13 01/01/2009 borat 700     I need to select each distinct home holding the maximum value of datetime. Result would be:     id home datetime player resource     1 10 04/03/2009 john 399   2 11 04/03/2009 juliet 244   5 12 04/03/2009 borat 555   8 13 01/01/2009 borat 700     I have tried: -- 1 ..by the MySQL manual:   SELECT DISTINCT   home,   id,   datetime AS dt,   player,   resource FROM topten t1 WHERE datetime = (SELECT   MAX(t2.datetime) FROM topten t2 GROUP BY home) GROUP BY datetime ORDER BY datetime DESC  Doesn't work. Result-set has 130 rows although database holds 187. Result includes some duplicates of home. -- 2 ..join  SELECT   s1.id,   s1.home,   s1.datetime,   s1.player,   s1.resource FROM topten s1 JOIN (SELECT   id,   MAX(datetime) AS dt FROM topten GROUP BY id) AS s2   ON s1.id = s2.id ORDER BY datetime   Nope. Gives all the records. -- 3 ..something exotic:   With various results.


I need to allow special characters including ' in MySQL. I have a "bio" text field which allows user data and I am using the POST method. My PHP is included:      $uid = $_POST["UID"];     $bio = $_POST["bio"];      $update_query = "UPDATE `User` SET bio = '$bio' WHERE uid = '$uid';";     $conn->query( $update_query );     $conn->close()   All the users are verified so there should be no danger in allowing them to use special characters. How can I update my code?

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I might have made a $150 mistake. I saw a WD MyBook 8TB External Drive for $150, and thought that it was quite a bargain and wanted to use it as an internal drive on my  2010 Mac Pro tower.  Before cracking it open, I partitioned/formatted to a Mac OS format. Now, when put inside a Mac, it’s not seen at all. The usual “Can’t recognize drive” message doesn’t appear, nor can I access it via disk utility.  I wrote to Western Digital, and got a canned reply. My question was whether the WD80EZAZ drive was built in a way that it would not function without the PC board that converts from SATA to USB? I am looking for confirmation that this type of sabotage is possible, and if there is any work-around.   FWIW, I saw this other question “” but in that case, the drive functioned fine, and I’ve done this before with other drives, which is why this caught me by surprise.

I have a 3TB Seagate Backup Plus Desktop USB 3.0 drive, which works fine when in its enclosure, but when I get it off its enclosure and directly plug it as an internal SATA drive, it's just not properly recognized (it works again when used in the enclosure). My systems’s motherboard is an , which has two SATA 6.0 Gb/s and four SATA 3.0 Gb/s ports.  When used as an internal SATA drive Windows 7 asks if I want to format the drive, as if it didn’t have a proper filesystem, and if I use the DISKMGMT.MSC tool (typing that in the start menu) I get completely wrong information about the drive.  It says the drive has 3 partitions (349,31GB of RAW data and two unassigned partitions of 1698,68GB and 746,52GB). This information is plain wrong, since the drive, when used in the USB enclosure, works as a single NTFS partition (2794,52GB). How come it’s shown as 3 partitions without filesystem when connected through SATA?!  Is Seagate using some proprietary way of storing the data when using the drive in its provided USB 3.0 enclosure? I didn’t use any kind of encryption. I just plugged the drive with USB 3.0 and started using it straight away, since it apparently came pre-formatted with an NTFS filesystem.


I have looked through the many questions about this theorem on this website, but none that I could see adressed exactly what I am wondering about. For completeness, I will state the theorem below and the part of the proof I am wondering about. 2.41 Theorem If a set $E$ in $\mathbb{R}^{k}$ has one of the following three properties, then it has the other two:  $E$ is closed and bounded. $E$ is compact. Every infinite subset of $E$ has a limit point in $E$.  The part of the proof I am wondering about concerns proving that (3) implies that $E$ is closed. The proof is set up by proving the contrapositive. Proof If $E$ is not closed, then there is a point $\mathbf{x_{0}}\in R^{k}$ which is a limit point of $E$ but not a point of $E$. For $n=1,2,3,...,$ there are points $\mathbf{x_{n}}\in E$ such that $|\mathbf{x_{n}} - \mathbf{x_{0}}| < 1/n$. Let $S$ be the set of the points $\mathbf{x_{n}}$. The proof continues, but the part I am wondering about is the last part, namely "let $S$ be the set of points $\mathbf{x_{n}}$." I understand that because $\mathbf{x_{0}}$ is a limit point, there must exist such points for all $n$. However, is just knowing that such points exist enough to form a set consisting of such points? For each $n\in \mathbb{N}\setminus \{0\}$ there must exist infinitely many such points since $\mathbf{x_{0}}$ is a limit point, must there not? And if so (since such points are not unique), if we want to form the set $S$ described above, must we not either specify some procedure describing these points for each $n$, or appeal to the axiom of (countable?) choice to choose one such point for every $n$? Unfortunately my instructor has deemed set theory "boring" every time I have tried to talk to him about the potential usage of the axiom of choice. Thank you very much in advance to anyone that took the time to read this post. Any answer is much appreciated.

Can we prove that a bounded closed subset of $\mathbb R^n(n \ge 1)$ is compact without using Axiom of Choice?  This is  which was closed.


We have to write a rap in physics, and it has to answer a prompt he gave us on this packet. The prompt for the verse I am writing is:     Pretend you are driving a car on the freeway going 65 mph. The freeway turns to the right and during the turn you are still going 65 mph. Explain why you are accelerating and yet going the same speed.    Can you help me answer it? I should be able to write lyrics after that.

I have been taught that a perpendicular force acting on an object will only change the direction of its velocity, not its magnitude. The explanation that was provided to me is that because there no force in the direction of its velocity, there must be no work done and thus change in the object's kinetic energy. However, I have also studied the vectorial form of the equations of motion   $$\vec v_f = \vec v_i + \vec a\cdot t$$   So I assume that the velocity after a constant force has acted on it for a period of time is simply the vector sum of $\vec v_i $ and  $\vec a \cdot t$, which I just assume is the acceleration vector (determined by the force) scaled up by a factor of the time the force acts.Diagrammatically, I took the sum as    It is obviously clear from the diagram that the new speed (which is the length of the $\vec v_f$ vector) is bigger than the previous speed.  This can be confirmed by Pythagoras's theorem, the magnitude of the $\vec v_f$ vector is   $$ |\vec v_f|=\sqrt{|\vec v_i|^2 + |\vec a|^2 \cdot t^2}  $$  which is very clearly not equal to $|\vec v_i| $  So, I conclude that the speed of the object has changed even though the force acting on it was perpendicular to its velocity. So my question is, what have I missed?  Is my assumption that the final velocity is the vector sum of the initial velocity and the product of acceleration and time incorrect? Or have I made a mistake somewhere else?  Thank you in advance for your help.


Attempting to update I am encountering unmet dependencies errors(below) Running sudo  apt-get install -f leads me to a pipe error(second snippet). Is there something I'm Missing?  `libglvnd-dev: Depends: libglvnd0 (= 1.2.0-1~b~padoka0) but 1.2.0-1~b~padoka0 is installed                   Depends: libglvnd-core-dev (= 1.2.0-1~b~padoka0) but 1.0.0-2ubuntu2.3 is installed                   Depends: libegl1 (= 1.2.0-1~b~padoka0) but 1.2.0-1~b~padoka0 is installed                   Depends: libgles1 (= 1.2.0-1~b~padoka0) but 1.2.0-1~b~padoka0 is installed                   Depends: libgles2 (= 1.2.0-1~b~padoka0) but 1.2.0-1~b~padoka0 is installed                   Depends: libgl1 (= 1.2.0-1~b~padoka0) but 1.2.0-1~b~padoka0 is installed                   Depends: libglx0 (= 1.2.0-1~b~padoka0) but 1.2.0-1~b~padoka0 is installed                   Depends: libopengl0 (= 1.2.0-1~b~padoka0) but 1.2.0-1~b~padoka0 is installed`   Preparing to unpack .../libglvnd-core-dev_1.2.0-1~b~padoka0_amd64.deb ... Unpacking libglvnd-core-dev:amd64 (1.2.0-1~b~padoka0) over (1.0.0-2ubuntu2.3) ... dpkg: error processing archive /var/cache/apt/archives/libglvnd-core-dev_1.2.0-1~b~padoka0_amd64.deb (--unpack):  trying to overwrite '/usr/include/EGL/egl.h', which is also in package libegl1-mesa-dev:amd64 1:19.3~git191017152900.82f18b7~b~padoka0 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libglvnd-core-dev_1.2.0-1~b~padoka0_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)```

For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.


if("String ".intern().trim()=="String"){     System.out.println("Equals"); }else{     System.out.println("Unequal"); }   above code is showing Unequal. I don't understand why? Can someone explain it?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


A software engineer used hp as username while installing Ubuntu on my device, and I want to change it to my name but all efforts have proved fruitless.  current state:  hp@phavor-george:~$   I want to change the hp part to my name, for example  muxx@phavor-george:~$

Some time ago, when I installed Ubuntu, I chose a rather stupid username for my account that I do not want to use anymore. How do I change this (including the name of my home directory, and the name in the terminal) without losing settings for applications? How do I keep permissions and my keys for various authentification (e.g. email, SSH, GPG and more)? What settings could possibly get lost if I changed my username?


Recently, my collection of photos from the past years has jumped over the limit of 7 Gb. And it is starting to be increasingly difficult to maintain, or to search through, so I've decided to invest in some kind of photo management software.  The main considerations being,     - ability to tag people (well, tag in general)     - it having a simple (clean) interface     - it should not store metadata in images, but instead in separate files (for example, in a file in a folder where the images it relates to are stored)  Can anyone give me their experiences with their current choices, considering?

If I wanted to just view, sort, and organize (via tags or folders or both), what programs are geared toward doing this quickly?  I know I could do this in most any photo editor, but it's not ideal for reviewing hundreds of images. I've also seen people use the image previewers built into their computer's OS, but that can't be the best option either.  What program would you suggest instead?  Extra info on the program is appreciated, i.e. OS requirements and cost.


I wanted to know how I can grab numbers out of a string in C++.  I'm getting the string from an input and will be getting multiple lines, but I already have the line reading working. Note: the lines always have an even number of ints  Here's what I'd like the code to look something like:  std::getline(std::cin, line);// line looks something like "10 3 40 45 8 12" int a, b; while(!line.empty() /*line still has ints to extract*/) {     a = someMethod(line);//gets first int.  So, 10 first loop, 40 second, 8 third     b = someMethod(line);//gets second int. So, 3 first loop, 45 second, 12 third     myMethod(a,b);//a method from elsewhere in my code.  It's here so you know that I need both a and b }   Anything similar would help. Thank you very much!

What's the C++ way of parsing a string (given as char *) into an int? Robust and clear error handling is a plus (instead of ).


If I have two semisimple Lie algebras $\mathfrak{g}$ and $\mathfrak{h}$, then I have read that the irreducible representations of $\mathfrak{g} \oplus \mathfrak{h}$ are precisely the tensor products of the irreducible representations of $\mathfrak{g}$ and $\mathfrak{h}$.  Why is this the case?  My question is two-fold.  First, if $V$ and $W$ are irreps of $\mathfrak{g}$ and $\mathfrak{h}$ respectively, then why is $V \otimes W$ an irrep of $\mathfrak{g} \oplus \mathfrak{h}$?  And second, if $U$ is an irrep of $\mathfrak{g} \oplus \mathfrak{h}$, then how can I decompose it into a tensor product $V \otimes W$ such that $V$, $W$ are irreps of $\mathfrak{g}$, $\mathfrak{h}$ respectively.

I'm trying to prove the following. Let $\frak{g}$ and $\frak{h}$ be (semisimple) Lie algebras. Then every representation $d$ of $\frak{g}\oplus\frak{h}$ is the tensor product of representations $d^1$ on $\frak{g}$ and $d^2$ on $\frak{h}$; that is $d=d^1\otimes d^2$.  $d^1$ and $d^2$ are cannot be defined by restriction (see comment below). I don't know how to define them so that their tensor product must give back $d$. In particular how do I know that the vector space $V$ of $d$ decomposes appropriately for this to work?  Any hints would be much appreciated!


I have looked everywhere and all the information is outdated to version 2.8. There used to be an option in the "options" drop down that said "Manipulate centers only" or "affect location only". Anybody know where this feature went? Because it is a pretty useful feature and I can't for the life of me figure out where it went off to. Edit: This got flagged as being a possible duplicate question of another question, but that other question was for 2.8 NOT 2.9. I am looking for the feature in 2.9  This image above is what I see when I click the options drop down menu

I have looked just about everywhere on the Internet and I can't find the answer to this question. Where the hell is the "Manipulate Centers Only" button in Blender 2.8???? It's the the double arrow icon here:    I seem to have enabled it somehow and I can't scale or rotate my object.


I don't know if the purpose that we always see the vest is to show other players that you have armor on but it kinda ruins the fact that you can clothes your character with those ugly vest. Is there a way to hide the bulletproof vest in online mode ?

It's kind of hard to shop for clothes with a big bullet proof vest on.  Is there a way to take off the armor after missions, or at least hide it?


I've been having some issues with Windows 7 lately and have scoured as many relevant forum threads Google can muster up, but to no avail. The problem seems somewhat common among users, but each potential solution seems to go off in a completely different direction than the next, so here I am making my own customized post and seeking your expert advice.  Randomly when running any application (even just Event Viewer or the file browser, but also when using Chrome, Skype, Adobe products, etc.), my computer will freeze for anywhere between 30 seconds to 1.5 minutes. I usually notice my system is going to lock up when internet tabs stop loading. I see the loading wheel in the Chrome tabs, and I know the program is about to hang. Shortly after one application begins to freeze, most of the other applications I click on/mess with freeze too. Interestingly, for programs that are recording or outputting sound (Skype calls, YouTube videos, iTunes) will continue to play/record sound so long as I don't touch them. Once a minute or two has gone by, the entire system frees up again and all the applications continue as normal, all at the same time.  Custom computer build specs (PCPartPicker list: /list/MfMHhq):   CPU: AMD FX 8350 8-Core 4.00 GHz  mobo: Gigabyte GA-970A-DS3P ATX AM3+  GPU: Gigabyte GeForce GTX 970 4GB WINDFORCE 3X  CPU Cooler: Noctua NH-D14 65.0 CFM (applied Arctic Silver 5 AS5-3.5G thermal paste) SSD: Transcend 256GB 2.5"  HDD: WD Blue 2TB 5400 RPM SATA 6 Gb/s 64MB Cache 3.5" RAM: 2 ✕ 4GB DDR3-1600 (it should be noted that I had a difficult time installing one of the RAM sticks during assembly. It seemed like one of the bays was a tiny bit smaller than the stick so I had to be more forceful than I'd hoped/liked. Nothing snapped/broke to the best of my knowledge.)   DVD: Asus 24x DVD-RW SATA Internal OEM optical drive   PSU: Corsair CXM 750W 80+ Bronze Semi-Modular ATX    OS: Windows 7 Professional 64-bit SP-1 (activated)     I wore an anti-static wrist band apparatus during entire build time.  Troubleshooting steps already taken:   Boot the system with many things disabled (from msconfig) --  System File Checker -- nothing to report Downgrading from Windows 10 (when it was a free upgrade. It sucks for me now.) Reinstalling Windows 7  Check Disk -- took literally 24 hours to complete and it found a few corrupted or missing things (not sure of the jargon here...) but offered to fix them so I accepted. They were raw image files (.NTF) I had imported from my Nikon D3200 DSLR camera. "Smart Scan" with Avast Antivirus (free) --  I'm not sure what to think, but I'm not thinking too deeply about this. Updating drivers -- I've updated all my drivers that programs like AVG and Avast have told me are out of date, but none of by devices that connect with USB 3.0 work in any of the ports on my motherboard. I've installed the Eltron USB3.0 Host Controller driver from Gigabyte's website, and I (hope) this is a separate issue I can solve later. Keeping Event Viewer and Task Manager open at all times to observe behavior during freezes -- I've looked through all (yes, all) of the logs under Applications and Service Logs/Microsoft/Windows and the only section that had anything that matched the timestamp of the latest freeze was the "CAPI2" Operational log. Lots of "Information" level entries and one or two "Error" entries. When applicable, I've copied the URLs in the "Details" tab of the "Error"-level entries, downloaded the file, right-clicked, and chosen "Install CRL". I've always restarted my computer after installing any CRL files. Nothing's fishy in Task Manager during these freezes either. About 80-88% from System Idle Process, 13% from svchost.exe, and maybe 8-12% from Chrome during the most recent freeze.  I'm guessing you'll want to see those CAPI2 entries, so just let me know of the best way to dump that information.   Any and all help/suggestions are appreciated. I will gladly run any necessary tests thrown at me and will report back results. Just make sure I know how to report/dump the results.

A machine is described as being "really slow" or "freezing". How can I troubleshoot/resolve this issue? What should be the first steps to take?


This may be very simple question ,but I cannot find the reason of this ,so at first I want to say that I am sorry.  class A{   public:      printA(void){          cout << "\nA is the first letter of the alphabet";     }   private:      double x; };    class B : public  A{   public:      printB(void){          cout << "\nB is the second letter of the alphabet";         cout << "\nSize of y = " << sizeof(y);     }   private:      float y; };   int main(void){      A firstObj;     B secondObj;     cout << "\nSize of firstObj = " << sizeof(firstObj);     secondObj.printB();     cout << "\nSize of secondObj = " << sizeof(secondObj);      return 0; }   I expected that size of obj1 is 8 because of double data member and my expectation is validated by the function main().  However, size of obj2 is equal to 16. Actually, I hope that It become 12 because of 8 + 4.  Why is size of obj2 equal to 16 ?

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


I have two features. One line feature and another polygon feature. I want the line feature label not to appear when it is within a polygon similar to the one in the figure. That is, I want the label to only appear when the line is outside the polygon. Is it possible to do this in QGIS 3?  I tried the field calculator with the within function but it didn't work very well.    Below is the code I tried to do in the QGIS field calculator:  CASE    WHEN within('Lines_4e1a1089_ba02_495e_8c79_d32b79cf3b54','polygon_406a7fae_06b4_45a1_a20e_d64b8682e501') THEN " "    ELSE "Label" END

With QGIS 2.12.2, how can I set up layer labeling to avoid placing labels where features from another layer already exist?  For example, if I have a stream/river polyline layer that contains lake "centerlines", and I place a "lake" polygon layer above it in the drawing order, I don't want the river layer to place a label inside the lake.  Instead, I would rather have the river labeled outside of the lake (as needed).  That way, I can place labels from the lakes layer and I don't run into label collisions.  Here is an example, where (I have intentionally put the lines on top for visual purposes) what I am hoping to achieve is no river center-line labels shown inside the lake polygon:


I am attempting to install PHP 5.6 on Ubuntu 14.04. I have tried a whole raft of different things and none of them work. To start with I have tried to download via this repo:  sudo add-apt-repository ppa:ondrej/php5-5.6  Followed by:  sudo apt install php5  As most of the Google results I can find tell me to do, but when I check php -v I find I am still on 5.9.9, which is no use for what I need.  I have also tried:  sudo apt install php5.6  As I have seen listed elsewhere, but I just get a message saying the repository does not exist.  I have also tried installing using this repository:   sudo add-apt-repository ppa:ondrej/php5  As listed in this question:   But the repository doesn't appear to exist any more.  I have also tried installing PHP 5.6.10 and 5.6.12 from tarballs, but I can't seem to get the installation instructions contained within the tarballs to work, and running either make or make install from within the directory that contains Makefile.frag, Makefile.gov etc does nothing.  Is there another way to install the required version of PHP, or can anyone perhaps give me instructions on how to install either of the above tarballs now I have unzipped and untarred them? I found a guide suggesting to find the 'dbase' folder but this does not appear to exist with these particular versions of PHP.  I have also tried installing PHP 7.0 but have found this doesn't work with the Laravel repository I need to work with (I have also tried using Vagrant Homestead to install the right version of PHP, but this has produced other issues on my system).  I have attempted to run   ./configure make make install   In the root directory the tarball has untarred to, but although the ./configure seems to work fine, when I run make I see:     make: *** No targets specified and no makefile found. Stop.   I have already tried running:  sudo apt-get install libapache2-mod-php5.6   As per the answer to the linked to similar question marked as possible duplicate of mine. Which results in this output:  Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libapache2-mod-php5.6 E: Couldn't find any package by regex 'libapache2-mod-php5.6'"   Even after adding this repository:  sudo add-apt-repository ppa:ondrej/apache2

I am trying to update to install PHP 5.5, 5.6 or 7.0 in Ubuntu 12.04/14.04/16.04 LTS, and I can only get PHP 5.3.10 for Ubuntu 12.04, PHP 5.5.9 for Ubuntu 14.04 or PHP 7.0.4 for Ubuntu 16.04 using official repositories (using apt-get).  I'm not really sure how to do a manual update – as I need:   to play around with the new(est) PHP features to install older PHP version due support in the software


I have a face being mirrored with a mirror modifier. Is it possible to inset it as if I have both selected?

I was following a tutorial to create a helmet. A the step for the mesh under the cube he insets a face to create an indent, but only insets the side of the mesh, not the open border. How did he do it?


I have been working with bipartite, four colorable, and five colorable graphs for a while now, and I came across a problem that I understand visually but not mathematically. Why is it true that any graph which isn't five colorable must have at least two disjoint cycles? I've tested this out by drawing on paper and it seems to make sense, but I am not sure how to prove this rigorously.  Any help would be greatly appreciated!

Prove that if a graph does not have two disjoint odd cycles then χ(G) ≤ 5, where χ(G) denotes the minimum number of colors needed to color the vertices of G. χ(G) is the chromatic number of G.  Intuitions:  It is clear that any odd-cycle must have a chromatic number of 3. Each clique of the graph that has an odd-cycle must thus have a chromatic number of three, but I don't see how this helps the proof.  On a related note: would it be easier to prove the contrapositive or use a proof by contradiction?  For self-study.


Normally when we do logistic regression, we would have a dataset something like:     X1 X2 Y 1:  A  3 0 2:  A  4 0 3:  A  3 0 4:  B  4 1   (4 observations)  However, for some reasons, I only have the aggregated version:     X1 X2 count Y_count 1:  A  3     2       0 2:  A  4     1       0 3:  B  4     1       1   (i.e. a summary table. e.g. 2 records with X1 = A and X2 = 3 but the number of Y = 1 is 0)  Now, I understand that I can simply replicate and do the logistic regression normal way; but my question is whether I can simply use the summary table to do logistic regression (potentially in R). Any implications?  There're other posts of similar questions: . Also I'm aware that "weights in logistic regression differs from ... weights in linear regression) ()

Suppose I have a $2 \times 2$ table that looks like:             Disease       No Disease Treatment         55                67 Control           42                34  I would like to do a logistic regression in R on this table. I understand that the standard way is to use the glm function with a cbind function in the response. In other words, the code looks like: glm(formula = cbind(c(55,67),c(42,34)) ~ as.factor(c(1, 0)), family = binomial())  I am wondering why R requires us to use the cbind function and why simply using proportions is not sufficient. Is there a way to write this out explicitly as a formula? What would it look in the form of: $$ log\left(\frac{p}{1-p}\right) = \beta_0 + \beta_1X $$ where $X = 1$ if we have treatment and $X=0$ for control? Right now it seems like I am regressing on a matrix for the dependent value.


I bought a gaming PC during last winter () and it was working very well the first couple months.  I'm not sure if it's when I wanted to start streaming on Twitch a bit, but my RAM started acting weird. Whenever I would use around 60% memory, the whole computer would start freezing and telling me that it doesn't have enough memory to run an application (For instance, Overwatch wouldnt launch without encounterring this error).  So, the problem is: My computer has 16Go RAM, but won't use more than 60-65%.  What I've tried:   I tested each RAM module individually to see if there was one faulty, but they both seemed OK (PC detects it, and I can use the memory without having anything crash) I ran a memory test (), and used the maximum memory I could. I checked if my drivers were up to date (not sure if can have an impact) Ran virus/malware scan   Additionnal information : Sometimes, it will be worse, and by that I mean that I only have Google Chrome opened, and my computer will shut it down because it doesn't have enough memory (especially since the latest Chrome update). When I just remove / put the RAM back in its place, it will sometimes go back to the "usual" 60-65% RAM limit.  Anyone has an idea of what I can do to fix this problem?  I don't want to take it to the repairman just yet because I need my computer for my studies too (not just gaming!)

This System Information is from Process Explorer. There is still physical memory available but the system shows nearly no RAM left.  Task Manager also shows that about 74% of total RAM is used.  Since installing Windows 8.1, the computer had 4+8=12 GB of RAM. I upgraded it by changing the 4 GB to an 8 GB module. Could that be the problem? Or is this behavior normal and I've just misunderstood the meaning of available physical memory?


What do you call a person who doesn't/can't usually keep his/her word ?

I'm somewhat vexed in that I cannot think of a word that means a "promise breaker" or "person who breaks a promise". There are words that may subsume that, such as "miscreant" or "liar", but I cannot come up with an English word that is limited to a person who breaks promises.  The closest I've come is "piker", which is (a) informal and (b) limited to Australia/NZ, but means (according to the dictionary on my Mac):     a person who withdraws from a commitment.   Is there a more formal and common word that can be used to refer to people who break promises?


I am running kubuntu 14.04.   Recently as part of a python development project changed the DM to xdm. Since then I have not been able to get the system to let me back past the login page.  To be precise, if I enter my password it just blacks the screen then presents me with the Login page again.  I can raise a command line and have tried running dpkg-reconfigure lightdm, which seems to have worked, but to no avail.   I have also run apt-get autoremove, apt-get clean etc in order to try and clean the system of any broken packages, redundancies etc. that might be causing problems.  I tried:   sudo dpkg-reconfigure lightdm  sudo dpkg-reconfigure -a   and restarted...same thing  If I try to start the system and then ESC during startup the system seems to be looping over the same block of instructions.   I  have looked at comments for earlier versions of k/Ubuntu but can't find anything that sorts this. Hence the new question.  Suggestions, please? ls -al $HOME/{.ICE,.X}authority  gives  -rw------- 1 peter peter 29018 SEp 26 12:18 /home/peter/.ICEauthority  -rw-rw-r-- 1 peter root 155 Sep 26 12:18 /home/peter/.Xauthority   (After the changes described below)

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


It is easy to add text in page after loading thanks to javascript but I would like to add a link with a link  and be able to catch the click event without reloading page  $("#div").html("new link");   // not work, because no  $("#new").click(function(e) {     e.preventDefault();     alert('click'); });   Do you know if there is a way ?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I am a new Ubuntu user. I just keep seeing "-" in every command line, such $lsb_release -a $sudo apt install catkin -y $rm -v!("filename") ... this keeps happening, does anybody have any references so I can study them all? Thanks

I can see there are a lot of command line options in Ubuntu.  For example: the -l and -v options in sudo fdisk -l and sudo shred /dev/sdb1 -v .  Does anyone know where I can find all of the options with their functions?  I've used many commands, these make sense, but the commands' options do not. I would like to know about them.


I have used \faketableofcontents in my file.  I need to compile the file twice -- once with \faketableofcontents present and once with \faketableofcontents commented out. I wonder if there is a way to compile the file from terminal and use a true or false argument which specify whether \faketableofcontents must be included or ignored during compilation.

I compile most of my documents via Makefiles which take care of the bibliography, indexes, etc. Often I'd like to compile different versions from the same TeX file changing only small things (e.g. a beamer presentation plus a version with the handout option).  Is there any standard mechanism for passing parameters to the TeX file so that I can just type make handout to get the handout version in the above example?


So here is my situation: I am applying for a PhD for Fall 2022. Not too long I found ago that my ex boyfriend had used my name online to post all kinds of crap. This includes revenge porn, as well as racist and anti-semitic comments. I have filed police reports, but all of this is still attached to my name (which is a very rare name btw) and available online, and probably will never go away. I am so scared of not being admitted because of this. Is there anything I can do?

I have an ex who has posted nude photos of me online in the past, linked to my online social media, and posted my full name and where I live. I am concerned he may do so again once he finds out I'm now in a PhD program (he's very jealous of any success I have), and may link to my school bio page, or worse.   Revenge porn is illegal in my state, and the case against him is currently pending. I have also gotten the photos taken down with a DMCA letter (I hold the copyright over the photos in question). At this point, I am concerned with how a future attempt could affect my career.  I can handle the embarrassment now that I've been through it once, so if that's the biggest concern, I can deal. I just don't want to lose a career over it, given how small academia really is and how a reputation might follow one around.  My question is, if I don't change my name (I've considered this, assuming I can keep him from finding out) and my photos are circulated and discovered by faculty or students, how likely am I to be thrown out of my PhD program or later lose a job as an untenured prof? Is a name change worth it?   (If it makes any difference, they are essentially just topless portraits; I'm not engaged in any sexual activity or anything weird, and were taken 10 years ago when I was very young and foolish.)


I was reading "" by Robert Plomin (online preview on webpage) and got stuck when I got to these two sentences in the prologue:  "We are the same as every other human being for more than 99 per cent of these 3 billion DNA steps, which is the blueprint for human nature." (page X)  "familiy members differ a lot genetically - you are 50 per cent similar genetically to your parents and siblings, but this means that you are also 50 per cent different." (page XI)  How does it fit together? Is he talking about different measures of similarity here?

Obviously I am more related to my sister than to a chimpanzee, so what do these different percentages actually refer to?   Here is my preliminary research: