I was studying about centre of mass and I found that if the line of action of force passes through centre of mass then it will execute pure translation. Moreover acceleration of centre of mass is net force applied on the body divided by the total mass of the body and my textbook says that its valid for all points on the body where the force is applied. I can't get this as when the line of action of force will not pass through centre of mass then body must also rotate and i think the acceleration(translational) of centre of mass must change (due to rotation of body). Assume that the body is rigid. Any help is appreciated.

I was trying to understand an aspect of rotational dynamics and thought of a problem to help me learn. I'm sure this problem has been considered by countless people in the past, but I'm having some trouble arriving at a solution.     Consider a disk of uniform mass distribution $\rho$ (measured in $kg / m^2$) and radius $R$ centered at the origin of an xy coordinate system at time $t=0$.   Apply a constant force $F$ in the positive $y$ direction to the disk at distance $r$ to the right of the center of the disk, where $0 \le r \le R$.   What will be the rotational speed and translational velocity of the disk at time $t_1 \gt 0?$   (Note that after some time has elapsed, the disk may have rotated from its original position.  If this happens, continue to apply the force at the same distance to the right of the center of the disk.  Also, assume that there is no friction anywhere in the system.)   My work so far:  I've figured out that if the force is applied to the center of the disk so that $r = 0$, then it's rotational speed will remain $0$ $radians/s$, and it's translational velocity can be obtained from Newton's second law $(F = ma)$.  In other words,  $$ F = ma, $$ $$ F = \rho \pi R^2 \frac{dv}{dt}, $$ $$ \int_0^{t_1} F dt = \int_0^{t_1} \rho \pi R^2 \frac{dv}{dt} dt, $$ $$ F t_1 = \rho \pi R^2 \int_0^{t_1} \frac{dv}{dt} dt, $$ $$ F t_1 = \rho \pi R^2 v_1, $$ $$ v_1 = \frac{F t_1}{\rho \pi R^2}. $$  It seems to me that the same should hold true in the case where $r \gt 0,$ although intuitively, it also seems like some of the impulse from the force should cause the disk to rotate.  If the above calculation is used to obtain the translational velocity of the disk, then the same impulse applied off-center for the disk will result in the disk reaching the same amount of translational kinetic energy as in the above case along with some additional rotational kinetic energy from the applied torque, which can't be right (this is like getting something for nothing). So I'm pretty stuck at this point.   I tried considering simpler systems, like a ring with uniform mass distribution $\lambda$ $(kg/m)$, but I think I would run into the same problems.  Another related system that can be considered is when an equal and opposite force is also applied left of the center of the disk at the same distance from the center of the disk as the first force.  In this case, all of the impulse from the two forces combined would go into the rotational kinetic energy of the disk, leaving its translational speed at $0$ $m/s$.  We can set the total impulse imparted to the disk equal to its change in rotational momentum.  So,  $$ \int_0^{t_1}2F dt = \int_0^{t_1} \int_0^R \int_0^{2\pi} \rho\;d\theta\;r^2\;dr\;\frac{d\omega}{dt}\;dt $$ $$ 2Ft_1 = \frac{2\pi\rho R^3\omega_1}{3} $$ $$ \omega_1 = \frac{3Ft_1}{\pi\rho R^3}. $$  However, I'm not sure if this helps me find how much impulse is used towards the translational versus rotational momentum of the disk in the general case of the original problem.  Is there a basic law of mechanics that I'm missing and need to apply in order to understand this system?  I feel like I'm missing something conceptually...


this is my first day with blender. Wow steep learning curve.  I keep losing my palettes. I'm down to two on screen and they haven't got little triangles in the corner so I can't drag to make more.   I don't seem to have collapse menus ticked. All I have on the Rhs is a a thing with transform which seems to be part of the 3d view window which is open. I can collapse and restore it with + but Previously I had palettes with a object tree and all sorts.  If I reload the app all is restored but as soon as I load the file I'm working on they go again. I suppose I could make a new doc and import but I'd like to know what I'm doing wrong.  Opening user preferences gave me a window with triangles and I was able to rebuild the UI in that but if I ever close the original window the app shuts down. Confused... Is there any way to make the new window 'primary' or to stop the UI being loaded with the file?  Thanks  Update: Hurray!!! I finally figured this out.  it happens if you go into the file open dialog and then instead of pressing OPEN or CANCEL, you use the window chooser to go back to 3D view. it leaves you with no drag handles.  The way to get out of it is to use the window chooser to go back into the  file open dialog and OPEN or CANCEL.

I don't know what the hell I did I just want to get back to modelling


I am a new Ubuntu user. I'm having a problem when trying to install GParted with these commands:  su root apt-get install gparted   Soon after running the commands, this error appears below, and I do not know what it is or how I can fix it. Thanks in advance.  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."

I have ubuntu 11.10 and when I run any package management command in terminal I get this message  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.    What is the problem and how can I solve it?


Let $A$ be a commutative ring with unity.  Suppose that $X=\text{Spec}(A)$ is a disjoint union $X_1\cup X_2$ of topological spaces.  Show that $A$ has a pair of orthogonal idempotents $e_1,e_2$ (i.e. $e_1+e_2=1$ and $e_1e_2=0$) such that $X_1=\operatorname{Spec}(e_1A)$ and $X_2=\operatorname{Spec}(e_2A)$.   I think it should be easy but I don't know how to proceed with unspecified topology on $\text{Spec}(A)$.  Do I use a mapping somehow from $A$ to $X$?    I see this post  but don't think is an "exact duplicate." At least, the wording is different enough so I had found it before and did not see it was a duplicate. (And I still don't think so.)

I'm solving a problem from Atiyah-Macdonald.      I have to show that if $X=\mathop{\mathrm{Spec}}A$ is not connected then $A$ contains idempotents $e \neq 0,1$.    The converse is easy. If $e \in A$ is an idempotent then $(e)+(1-e)=(1)$ and $(e)\cdot(1-e)=0$ so that $$   V(e) \cup V(1-e) = V(  (e) \cdot(1-e))=V(0) = X, \\   V(e) \cap V(1-e) = V( (e)+(1-e))=V(1)=\varnothing $$ then $V(e)$ and $V(1-e)$ are both closed and open and $X$ is not connected.   Now let $\mathfrak{a}$ and $\mathfrak{b}$ be ideals in $A$ such that $V(\mathfrak{a}) \cup V(\mathfrak{b})=X$, $V(\mathfrak{a}) \cap V(\mathfrak{b}) = \varnothing$. Then $$    V(\mathfrak{a}) \cup V(\mathfrak{b}) = V( \mathfrak{a} \cap \mathfrak{b} ) = X, $$ i.e. $\left\{ \mathfrak{p} - \text{prime} \mid \mathfrak{a} \cap \mathfrak{b} \subseteq \mathfrak{p}  \right\} = X$, i.e. $\mathfrak{a} \cap \mathfrak{b} \subseteq \cap \mathfrak{p} = \mathfrak{n}$ (nilradical). On the other hand since $$   V(\mathfrak{a}) \cap V(\mathfrak{b}) = V(\mathfrak{a}+\mathfrak{b})=\varnothing $$ we have $\left\{ \mathfrak{p} - \text{prime} \mid \mathfrak{a}+\mathfrak{b} \subseteq \mathfrak{p} \right\} = \varnothing$. Then $\mathfrak{a}+\mathfrak{b}=(1)$ because any ideal that is not equal to $(1)$ is contained in some maximal ideal. Then $\mathfrak{a}$ and $\mathfrak{b}$ are comprime and $\mathfrak{a} \cdot \mathfrak{b} = \mathfrak{a} \cap \mathfrak{b}$. So I have two ideals $\mathfrak{a}$ and $\mathfrak{b}$ with properties $$    \mathfrak{a} + \mathfrak{b} = (1), \\    \mathfrak{a} \cdot \mathfrak{b} = \mathfrak{a} \cap \mathfrak{b} = \mathfrak{n}. $$ I don't see any way to obtain a nontrivial idempotent $e \in A$ here. Please help me.


I have a Raspberry pi running full Buster but only boots to command line interface (CLI).  Currently, I can only login or log out.  I want to be able to stay logged in so my background processes can keep running, but lock the system so that someone can't walk up and accidentally mess with it.  I would also like to enable auto-login so certain scripts requiring a logged in user can run, but still have the security of a lock. This question has nothing to do with SSH anymore and thus the 10 year old SSH thread a moderator recommended is neither partially or wholly duplicative.

Possible Duplicates:             Hi!  I want to run program from my notebook by SSH-connection to remote server. The problem is I am going home with my notebook :)  How to keep program running?


Hi i am newbie to Drupal, i want to search particular content type only, if any modules or ideas pleases share with some examples please.   Current search module searching whole website and returned results, but i want search option for particular content type only.  Kindly help me.

Hi is it possible to make a search box which are searching only for some specific content.  it should be a search box that should look at titel, ingrediensliste, body, and who have made it.


If I summon a familiar and it dies, when I resummon it, is it another spirit taking the same form? If I just recast the find familiar spell, and get it to assume a new form I assume It's the same spirit.  Your familiar transforms into the chosen creature.  But is the same the case for when the familiar dies?

The 5e PHB is pretty unambiguous about familiar "death". Per the  spell description:  When the familiar drops to 0 hit points, it disappears, leaving behind no physical form. It reappears after you cast this spell again.  You can also use the spell to change your familiar's form. Is this familiar, for all intents and purposes, exactly the same being you summoned before? In other words, is familiar death in 5e just a temporary inconvenience, or does it have repercussions of some sort?


I want to format year to this format yy = 17 i tried with this code but not working it is wrong format .  <select id="CreditCardExpiryDateYear" class="dropdown form-control">        @for (var iYear = DateTime.Now.Year; iYear <= DateTime.Now.Year + 10; iYear++)           {            <option value="@iYear.ToString("yy")" @(DateTime.Now.Year == iYear ? " selected" : "")>@iYear.ToString("yy")</option>           } </select>

My credit card processor requires I send a two-digit year from the credit card expiration date. Here is how I am currently processing:   I put a DropDownList of the 4-digit year on the page. I validate the expiration date in a DateTime field to be sure that the expiration date being passed to the CC processor isn't expired. I send a two-digit year to the CC processor (as required). I do this via a substring of the value from the year DDL.   Is there a method out there to convert a four-digit year to a two-digit year. I am not seeing anything on the DateTime object. Or should I just keep processing it as I am?


I have a word document which contains multiple pages and i want to copy some pages into new word document using OpenXml SDK. I did some web search and got below code which reads entire document and copies into new one   string documentURL = filelocation;  byte[] docAsArray = File.ReadAllBytes(documentURL);   using (MemoryStream stream = new MemoryStream())   {     stream.Write(docAsArray, 0, docAsArray.Length);    // THIS performs doc copy     using (DocumentFormat.OpenXml.Packaging.WordprocessingDocument doc = DocumentFormat.OpenXml.Packaging.WordprocessingDocument.Open(stream, true))     {                 // perform content control substitution here, making sure to call .Save()                 // on any documents Part's changed.     }   File.WriteAllBytes(outputSplitDocpath, stream.ToArray());  }   Now, in the above code how can i read just specific pages and copy into new one? Please help with suggestions. Thanks

Does anyone know a way to display code in Microsoft Word documents that preserves coloring and formatting? Preferably, the method would also be unobtrusive and easy to update.  I have tried to include code as regular text which looks awful and gets in the way when editing regular text.  I have also tried inserting objects, a WordPad document and Text Box, into the document then putting the code inside those objects.  The code looks much better and is easier to avoid while editing the rest of the text.  However, these objects can only span one page which makes editing a nightmare when several pages of code need to be added.  Lastly, I know that there are much better editors/formats that have no problem handling this but I am stuck working with MS word.


I felt having integrated IDE with SO would be so nice. It would be really helpful to quickly verify the answers with out opening eclipse or other IDE.  Have SO engineers thought as a feature in coming upgrades?  EDIT  Most of the time I felt having in-built java editor when trying to answer questions. Agreed there other online tools available, my only thought was having in house.  I knew that is not any easy task.

I think a useful although grandiose feature would be to allow SO to run posted code snippets inside a secure sandbox (for various languages) for the purposes of: finding syntax errors, validating code, sometimes producing and posting actual results or output.   I would find this feature useful because I don't have all compilers frameworks and tools installed for which I would like to quickly try some of the unique stuff I see posted on SO. Also source code answers could be validated at deeper levels for weighting usability, etc. Also it might be great just to see the immediate results of code, inline with the posted answer, rather than mentally processing it.  The words "results" and "output" are used loosely here and could be anything from a parse tree to a step-through of code to actual console text or anything in between, whichever representation best suits the situation at hand. It could be automatic or chosen by the poster.  This feature request might seem really "out there" but it's fun to speculate about (well, for me). With recognition a lot of thought and work would have to go into it, but anything is possible if desirable.   One of the biggest challenges would be the fact code is often a fragment so running the native compiler would produce lots of errors. However syntax highlighting on SO is already a step in the right direction because it proves recognition of language features to a degree. Missing code might be mocked by a tool.


I'm writing a very basic query to get the count of contents which were not modified. The logic I'm applying here is simple too, just check if created = changed The SQL query is pretty straightforward too. SELECT COUNT(nid) FROM node_field_data WHERE type = 'my_content_type' AND created = changed  However getting this into EntityQuery syntax seems to be a bit difficult. $query = \Drupal::entityQuery('node')            ->condition('status', 1)            ->condition('type', 'my_content_type')            ->condition('created', 'changed', '='); //Need help here  $not_updated = $query->count()->execute();

I'm performing in Drupal 8 an entity query that searches for nodes that have not been changed since x days, where x is a numeric node field (node.field_days). So I would like to perform a query like:  $query = \Drupal::entityQuery("node")   ->condition('changed', strtotime('-node.field_days days'), '<=');   I know that condition takes as value a string and not a db column, but is it possible to use entity query with a dynamic value?


In my code below, 'single' refers to a finite list. I then need to get all possible pairs from this list; however, the program didn't finish executing. After messing around with some print statements, for some reason, despite 'single' having a finite number of elements (13122; I checked with len()) the for loop was running forever, until I but a break statement in which forcibly ends the loop when the index gets too high. Initially I thought this was because I was referencing over 'single' twice; however, even when I replaced 'single' with copy.deepcopy(single), the same problem occurred, and my fix no longer worked. If it is of any help, the elements of 'single' are themselves lists. ''' for index1, i in enumerate(single):     for index2, j in enumerate(single):         return_list.append([i,j])                  if (index1 > length):             break  '''

I have a list with 15 numbers in, and I need to write some code that produces all 32,768 combinations of those numbers.   I've found  (by Googling) that apparently does what I'm looking for, but I found the code fairly opaque and am wary of using it. Plus I have a feeling there must be a more elegant solution.  The only thing that occurs to me would be to just loop through the decimal integers 1–32768 and convert those to binary, and use the binary representation as a filter to pick out the appropriate numbers.   Does anyone know of a better way? Using map(), maybe?


I've just started working with the  framework and on their documentation for the navigation bar toggle they provided : document.addEventListener('DOMContentLoaded', () => {    // Get all "navbar-burger" elements   const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);    // Check if there are any navbar burgers   if ($navbarBurgers.length > 0) {      // Add a click event on each of them     $navbarBurgers.forEach( el => {       el.addEventListener('click', () => {          // Get the target from the "data-target" attribute         const target = el.dataset.target;           const $target = document.getElementById(target);          // Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"         el.classList.toggle('is-active');         $target.classList.toggle('is-active');        });     });   }  });  What I don't understand is the use of the '$' in some variable names. Does this imply some kind of special meaning? I've replaced all the variables with regular words and the function still seems to work fine but I know that even if it works there might still be something going on. Also if querySelectorAll returns  a whereby we can get the amount of elements with the'.navbar-burger' class, why is the method Array.prototype.slice.call required?

I quite often see JavaScript with variables that start with a dollar sign. When/why would you choose to prefix a variable in this way?  (I'm not asking about $('p.foo') syntax that you see in jQuery and others, but normal variables like $name and $order)


I am an Indian citizen visiting Germany for tourism on short-term (3 months)Schengen Visa. While in Germany, can I apply for a UK Tourism Visa in Germany (Munich/Duesseldorf)? I appreciate your answers.

Prior to 24 April 2015, Paragraph 28 of the Immigration Rules was (emphasis mine)...     An applicant for an entry clearance must be outside the United Kingdom   and Islands at the time of the application. An applicant for an   entry clearance who is seeking entry as a visitor must apply to a post   designated by the Secretary of State to accept applications for entry   clearance for that purpose and from that category of applicant.   Subject to paragraph 28A, any other application must be made to the   post in the country or territory where the applicant is living which   has been designated by the Secretary of State to accept applications   for entry clearance for that purpose and from that category of   applicant. Where there is no such post the applicant must apply to the   appropriate designated post outside the country or territory where he   is living.   Source: archives at   This meant that a person could apply in any country that had a British mission competent to issue visas.  So for example, a Russian national who was in France could use the British mission in Paris to apply as a visitor.  But on 24 April 2015, Paragraph 28 now reads...     An applicant for an entry clearance must be outside the United Kingdom   and Islands at the time of the application. An applicant for an entry   clearance who is seeking entry as a short-term student must apply to a   post designated by the Secretary of State to accept applications for   entry clearance for that purpose and from that category of applicant.   Subject to paragraph 28A, any other application must be made to the   post in the country or territory where the applicant is living which   has been designated by the Secretary of State to accept applications   for entry clearance for that purpose and from that category of   applicant. Where there is no such post the applicant must apply to the   appropriate designated post outside the country or territory where he   is living.   The text about visitors is gone.  It appears to have been replaced by text about short-term students.  Looking further, Appendix V to the rules contains this statement...     An application for a visit visa must be made while the applicant is   outside the UK.   Note that this is in an appendix.  So it looks like the applicant must satisfy three conditions...    outside of the UK (Appendix V) and outside of the UK and Islands (Paragraph 28) and in their home country (Paragraph 28)   This means in my example that the Russian national touring France would have to return to Russia to get a UK entry clearance.  Or alternatively, that an entry clearance issued in France to a Russian national would be illegal under Paragraph 28?  Or would the consulate in Paris be required to reject the application?  Or more confusingly, if the Russian national were in 'the Islands' (Guernsey or Sark for example) then it's ok for Appendix V, but forbidden by Paragraph 28.  Do all of these conditions hold?  If not, which 'rule' is senior?  Current immigration rules for Paragraph 28 and Appendix V are at   Note: Not very many of the various VFS and consular sites on the net have caught up with the recent rule changes yet so they are not totally reliable. Please use up-to-date links if citing something.  Note:  Regarding ambiguity over the clause, "where the applicant is living", this has always meant "where the applicant does not require leave to remain or has been given leave to remain for a period longer than 6 months"


A colleague of mine told me that after he executed the below command, he's not able to login to the system.   No user can login via ssh. Only normal users can login over physical console of the system, but no administrative commands are allowed, not even  # sudo su -    And the culprit command which did the damage was  # chmod -R 777 /   My question, of course is, how to deal with such a system? Is there a way to restore the default permissions on a Linux system and what's best way to handle such situations?

I was trying to run chmod -R 777 ./ but ended up typing chmod -R 777 / and set 777 on my entire machine. What can go wrong? How can I fix it?


After the wedding ceremony in Riften, before my wife left, I asked her where we should live. After I told her, me and her left and I can't find her at the house, OR at the Temple of Mara. Where can I find her?

I killed my first wife once I found out there is a mercenary you can marry who gives you up to 300 gold a day (in Whiterun). The only requirement, of course, being that I had to hire her first. So I hired her, and then I popped the question, to which she replied the usual: tell the priest to arrange the wedding.   When we reached Riften I told her to wait, just outside the bee and barb, and arranged the wedding. I went through the process, and the second it finished she left, I followed but as I left she was nowhere to be seen. I have tried going back to my house, the pub where I hired her and that same spot in Riften about 6 times each now, some during the day, some during the night and cannot find her at all.   Now this isn't to much of a problem because I can re-marry...oh wait, to remarry, my spouse has to die, so I can't claim gold off her and can't remarry, and the autosaves have been used up fast travelling to the places I thought she might've been. My last save is something like 6 levels ago, and I don't want to have to load it.   What should I do about this situation?


I am really stuck on this proving this statement, so could someone please help me get through this. Thank You.  P.S. This can be proved through elementary analysis results instead of going into topology.

The following is not a homework problem. I am doing it for self study.      Prove that any continuous function from $\mathbb{R}$ to $\mathbb{Q}$ is constant.    Here is my proof:     Let $f:\mathbb{R}\rightarrow \mathbb{Q}$ be such a function.    ? We first show that $\mathbb{Q}$ is disconnected. Let $p$ be an irrational number. Then we can write $\mathbb{Q}$ as  $$ \big( \mathbb{Q} \cap (-\infty,p) \big) \cup \big( \mathbb{Q} \cap (p,\infty) \big),  $$  which is a disconnection of $\mathbb{Q}$.      Moreover, $\mathbb{Q}$ is also totally disconnected, as any open subset $U$ of $\mathbb{Q}$ must contain two rational numbers and there is always an irrational number between the two, and we can use that rational number to create a disconnection. Therefore the only connected subsets of $\mathbb{Q}$ are the singleton sets $\{q\}$, where $q \in \mathbb{Q}$, which are closed.       We will show that $f(\mathbb{R})$ must be connected. Assume not, then    $$ f(\mathbb{R})= U\cup V, $$   where $U$ and $V$ are nonempty open subsets of $\mathbb{Q}$ such that    $$ U \cap V= \emptyset .$$    This implies   $$ \mathbb{R} = f^{-1} \big( U \cup V \big) = f^{-1}(U)\cup f^{-1}(V),  $$   where $f^{-1}(U),f^{-1}(V)$ are nonempty, nonintersecting subsets of $\mathbb{R}$. This, however, is a contradiction, as $\mathbb{R}$ is connected. Therefore no such set $U$ and $V$ can exist.       As we have already shown, the only connected subsets of $\mathbb{Q}$ are the singleton sets $\{q\}$, so $f(\mathbb{R})$ must be such a set.   Something about this does not seem quite satisfactory, as if I am missing something. Could anyone tell me a flaw in my logic? Also, is there a more satisfactory way to prove this theorem?


Let $a$ and $b$ be integers such that $a|b$ and $b|a$. Show that $a ∈ \{b,−b\}$. My attempt Since  $a\mid b$ and $b\mid a$, we have that $a\neq 0$ and $b\neq 0.$ I think I can use this result that appears in the book I am studying... If  $a\mid b$ and $b\neq 0$, then $a\leq |b|$.  Thus, in this case $a\leq |b|$ and $b\leq|a|$. The problem is that I don't see how to relate these two inequalities to get what I want.

Let $a$ and $b$ be nonzero integers. Prove that $a$ divides $b$ and $b$ divides $a$ if and only if $a = \pm b$.   Since this is a iff statement, I need to prove it both ways:  $\Rightarrow$ If $a=\pm b$, then  $a$ divides $b$ and $b$ divides $a$;  and  $\Leftarrow$ If $a$ divides $b$ and $b$ divides $a$, then $a=\pm b$.  I tried to prove it but I don't know how to manage the $\pm$ sign, can anyone give me a hit or suggestion to start this proof?  Thanks


I've this query which runs successfuly  SELECT customerNumber FROM ORDERS  GROUP BY customerNumber  ORDER BY count(orderNumber) DESC   But when I try to limit the number of rows returned to 1, I get the following error  ORA-00933: SQL command not properly ended    Here's what I've tried :  SELECT customerNumber FROM ORDERS  GROUP BY customerNumber  ORDER BY count(orderNumber) DESC fetch first 1 row only;   and   SELECT customerNumber FROM ORDERS  GROUP BY customerNumber  ORDER BY count(orderNumber) DESC WHERE ROWNUM=1;

Is there a way to make an Oracle query behave like it contains a MySQL limit clause? In MySQL, I can do this: select *  from sometable order by name limit 20,10  to get the 21st to the 30th rows (skip the first 20, give the next 10). The rows are selected after the order by, so it really starts on the 20th name alphabetically. In Oracle, the only thing people mention is the rownum pseudo-column, but it is evaluated before order by, which means this: select *  from sometable where rownum <= 10 order by name  will return a random set of ten rows ordered by name, which is not usually what I want. It also doesn't allow for specifying an offset.


I want to get all names and print them.  How to fill the array of structure and then print data from each element in the array?  I can't even get the name before the last one element. . The main problem in a char* because with string it works. But I need to do it without strings. It gives me this error:  Exception thrown at 0x0FADF6BC (ucrtbased.dll) in Vuz.exe: 0xC0000005: Access violation reading location 0x00000001  #include <iostream> #include <stdio.h> #include <vector> #include <algorithm> #define SIZE 2 using namespace std;  struct Student {     const char* name;     const char* surname;     const char* major;     int group;      Student(){}      Student(const char* name, const char* surname, const char* major, int grp)     {         this->name = name;         this->surname = surname;         this->major = major;         this->group = grp;     }  };   int main() {     Student* st = new Student[SIZE];      for (int i = 0; i < SIZE; i++)     {         char name[30];         char surname[30];         char major[10];         int group;          cout << "Enter name, surname, major and group of new student" << endl;         cin >> name >> surname >> major >> group;          st = new Student(name, surname, major, group);         *st++;     }     *st--;     *st--;//Here I have a problem     cout << st->name << endl;      return 0; }   I want to fill this array correctly(using char* ) and print all these names.

I know that the compiler will sometimes initialize memory with certain patterns such as 0xCD and 0xDD.  What I want to know is when and why this happens.  When  Is this specific to the compiler used?  Do malloc/new and free/delete work in the same way with regard to this?  Is it platform specific?  Will it occur on other operating systems, such as Linux or VxWorks?  Why  My understanding is this only occurs in Win32 debug configuration, and it is used to detect memory overruns and to help the compiler catch exceptions.  Can you give any practical examples as to how this initialization is useful?  I remember reading something (maybe in Code Complete 2) saying that it is good to initialize memory to a known pattern when allocating it, and certain patterns will trigger interrupts in Win32 which will result in exceptions showing in the debugger.  How portable is this?


For the past few days, when I click on the notification icon in the Stack Exchange Android app, it is closing suddenly.  So to view any notification regarding my post/comments, I need to go the profile first and then click the post. OR, I need to open the Stack Exchange site in Chrome. What's happening?

Recently upgraded to a Samsung S10e and Android 10, but all Q&A in the Stack Exchange app v1.0.95 are blank.  The title and comments are visible, but question/answer posts are just white space. Accessing the About page in the app is also blank.  I tried clearing data, cache and re-installing the app, but I still get the same behaviour.


I spotted a bulging capacitor through the top vent of my stereo amplifier, with white goo around the base (at top of first picture). The amplifier seems to work fine, though it has been in storage for many years and probably a wide range of temperatures (sub freezing winter to 30+ degree C summers - not ideal, I know). I pulled the cover off to get a better look at the problem. It seems that the white goo might be glue applied to the base of the capacitor, from comparing to other large capacitors in the amplifier (second picture). I poked it, and it seems quite hard. The top of capacitor is definitely bulging, and I am worried that if it has not burst already it will soon.   My questions are:   is the white goop indeed just glue? if it is glue: what is its purpose? does the capacitor need to be removed urgently?

I'm not an engineer, but my monitor stopped working yesterday (it just wouldn't display anything but still gets power) so I figured I'd like to take it apart and see what went wrong.  At the very least I'd get to see what the inside of a monitor looks like :).  Anyway, I took it apart, and also read around about my issue and it seems the capacitors have gone bad, at least some of them.  However, I also noticed some white elastic stuff all over the board.  Some of them are sticking two capacitors together and to the board, but I also see some from where power socket connects to the board.  My question is, what is the white stuff?  Should I replace all capacitors that have white stuff around it, and should I also replace the power socket part?  Or should I just replace the bulging capacitors and leave it at that?  UPDATE:


I have two integers, x and y so that x < y. How many prime numbers are there between x and y (exclusive). Is there a formula or algorithm to compute?


In thermodynamics, the evaporator evaporates and the condenser condenses a substance. While these devices have the same ending in other languages (e.g. French and German), how did it come to pass that these aren't called evaporator and condensator or evaporenser and condenser in English? Is this just a curious artifact of random change over time?

What’s the rule to decide whether you add -er or whether you add -or when creating an agent noun from a verb?    Sometimes it’s -er:      read > reader hate > hater hit > hitter   But other times it’s -or:    meditate > meditator collect > collector


Which one is correct?      I look forward to meet you during the coming festival.   or     I look forward to meeting you during the coming festival.   Please help me with explanation.

Should I say      I look forward to hearing from you   or     looking forward to hear from you?   I have doubt because I know that the form of a verb is "to+ infinity" without the addition of the -ing that changes it to become a noun.


I need to uncheck / check the below checkbox using jquery.  Please tell how to change the below checked attribute to unchecked attribute using jquery.  <input name="op1" type="checkbox" checked  id="chkEmailNotification" />

I'd like to do something like this to tick a checkbox using jQuery:  $(".myCheckBox").checked(true);   or  $(".myCheckBox").selected(true);   Does such a thing exist?


Let $A$ be a finite dimensional algebra over a field $K$. It is clear that if $A$ is semisimple, then every simple module is projective. Does the converse hold ?  It seems false, but I can't find a counterexample. A non-semisimple algebra with this property must have a non-projective indecomposable module, but that's as far as I could go.

As it is well-known, a ring with unity $R$ is semisimple if and only if each left $R$-module is projective. My question:      Is semisimplicity of $R$ equivalent to each simple left $R$-module being projective?    I think it is true for a finite dimensional algebra $R$. But, in general, I could not reach any conclusion. Any help would be thanked!


I asked  on a SE site I'm not particularly familiar with, which got put on hold because part of the question asked for a product recommendation which is apparently off limits - fair enough, and silly me. No argument from me.  However, I got no notification - meaning here something in the 'inbox' or similar - it had been put on hold (I did get a notification for the one answer). Had I got a notification, I would simply have deleted the limb of the question (the recommendation) that was off-topic. It's a bit late now.  Related:  - that is slightly different as it would be good to know as soon as your question gets put on hold, not only after (I'm told) 6 days when it is finally closed. Though I would clearly support getting notified when it is closed too.  Is there a reason questioners do not get alerted if their question gets put on hold? I'm asking this on meta.SE as I suspect this issue is pervasive to all sites.

I think it would really help if you get notified that a question of yours was closed.  Especially for the multi-site power user, usually (at least for me) a question is asked and then left alone for while. I rely on the network-wide inbox to tell me when someone has commented or answered, but if I don't receive any messages then I tend to assume that the question wasn't answered or even noticed. It's only when I check the question a day or two later to see what I can add do I find out it was closed.  This would be especially helpful for duplicates, where the answers you need are already there. A message to the effect of, "Closed as duplicate of question" is just like notifying me that a new answer has been added!  Unfortunately, question closures can remain unnoticed by their askers until months have passed. By then, the questions may either be too old to migrate to the correct site, or may , depending on the specific closing reason. We should notify users of these question closures so that they can improve them and learn from their mistakes.  Could closed questions get added to the inbox?


How can I customize word definition in Vim? The default is a series of character like _,[a-zA-Z] are considered as word. I'd like to add some other chars to this definition.

vi treats dash - and space   as word separators for commands such as dw and cw.  Is there a way to add underscore _ as well?  I quite often want to change part of a variable name containing underscores, such as changing src_branch to dest_branch. I end up counting characters and using s (like 3sdest), but it would be much easier to use cw (like cwdest).


I am interested in this command:  ls [A-D]?.txt   This is a Unix question on an assessment. We are asked to define what this command does.

I notice a lot of bash utilities like ls, cp, mv, grep use regular expressions and pattern matching. For instance symbols like * [] {} etc.   However, I find this to be different in some regard to other regular expression tutorials I find on the Internet. Is there a specific standard that these utilities follow or a comprehensive list of shortcuts somewhere?   Thank you


Given the following classes:  abstract public class Animal{     abstract public void greeting(); }  public class Dog extends Animal {     public void greeting() {         System.out.println("Woof!");     }     public void greeting(Dog another) {         System.out.println("Wooooooooof!")     } }  public class BigDog extends Dog {     public void greeting() {         System.out.println("Woow!")     }     public void greeting(Dog another) {         System.out.println("Woooooooooooow!")     } }   What is the difference between  Dog animal = new Dog() and Animal animal = new Dog()?  Because animal.greeting() produces the exact same result.  I know theoretically that later creates an instance of Dog but storing that in the superclass (or abstract in this class). But what does that really do? They both will check Animal class since Dog is extended to Animal.. Need some enlightenment here.  What is the difference between Animal animal = new BigDog() and Dog animal = new BigDog()? Won't they eventually check Animal class? Since BigDog is extended to Dog and Dog is extended to Animal.  Please provide concrete examples to explain this. I understand this in theory but having a hard time understanding what is actually happening behind the scene. Thanks for taking your time to read this. I only know Java so I'd appreciate if you explain using Java..  **EDIT: I have seen the duplicate but still only touching the surface of polymorphism and its relationship with abstract class. Please go read it. My question is specifically asks for the link between abstract and regular classes and between each regular class. I don't see how this is duplicate because I am asking for what is actually happening behind the scene: BigDog extends Dog and Dog extends Animal. So can someone explain what is actually happening here instead of flagging posts like a machine?

In terms of Java, when someone asks:      what is polymorphism?   Would overloading or overriding be an acceptable answer?  I think there is a bit more to it than that.   IF you had a abstract base class that defined a method with no implementation, and you defined that method in the sub class, is that still overridding?  I think overloading is not the right answer for sure.


What is condition for repeated roots of the fourth order polynomial   $$ x^4 + a x^3 + b x^2 + c x + d = 0 ?$$

Is there any way to tell whether a quartic equation has double or triple root(s)? $$x^4 + a x^3 + b x^2 + c x + d = 0$$


I'm looking to see if there is a way to catch an assertion exception in apex and handle it gracefully. For instance, I have some number fields with a default value as 0. However, I'm hoping to use an assertion exception to ensure those values will never be null. I've done some searches so far and one post suggests creating a custom exception to handle this, but 'm not quite sure how this would resolve the issue. Is this even possible?

Is there a way to catch System.AssertException?  For example, some class is known to throw assertions in certain cases and it's ok to deal with that on some upper level. But unfortunately straightforward try-catch doesn't work for assert. I expect that this code will not throw an exception but it does:  try{     System.assert(false, 'fail'); }catch(System.AssertException asEx){     System.debug('success'); }   So, is there a way to implement ability of catching asserts?


In my   www.my-site.com/index.html    there is a script tag  <script src="https://api.3rd-pary-site.com/some/path/js/foo.js"></script>   How can code in foo.js get to the "" ?

How can I reference the script element that loaded the javascript that is currently running?  Here's the situation. I have a "master" script being loaded high in the page, first thing under the HEAD tag.  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <script type="text/javascript" src="scripts.js"></script>   There is a script in "scripts.js" which needs to be able to do on-demand loading of other scripts. The normal method doesn't quite work for me because I need to add new scripts without referencing the HEAD tag, because the HEAD element hasn't finished rendering:  document.getElementsByTagName('head')[0].appendChild(v);   What I want to do is reference the script element that loaded the current script so that I can then append my new dynamically loaded script tags into the DOM after it.  <script type="text/javascript" src="scripts.js"></script> loaded by scripts.js--><script type="text/javascript" src="new_script1.js"></script> loaded by scripts.js --><script type="text/javascript" src="new_script2.js"></script>


The question pretty much says it all. Is there any force, or circumstance, or anything that we know of that can affect the measurement of a red shift?

I'm interested if any of the following explanations have enough predictive capability to explain the observations we see today. The claim is that the Universe is not expanding, and that red-shift of light is caused by:    Though a couple of these are simply ridiculous, I'm still interested. Keep in mind that I am not a creationist, but am looking for reasons to see if any of these are valid or invalid.


I was looking for a single regular expression that could match everything that does NOT contain a given set of substrings.  For example, a regular expression that will match everything that does not contain the substrings "abc", "def", ghi"  In this example, the regex would match against "student", "apple" and "maria", but would not match against "definition", "ghint" or "abc123"  Thanks in advance

I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "<Regex for 'doesn't contain hede'>" input   Desired output:  hoho hihi haha


I was playing a server which consists of insane builds. I wanted to download these maps, but when I tried the world downloader mod, it does not work. Is there a solution to download it without using any mods?

I have an 'online' Minecraft server that I have been building on for the past couple of months. There are some big edits that I want to make on the map, but the server only has 512mb of RAM so it crashes.   My question is, is it possible to download the world from the server so that I can load it up on my computer locally and run it in single player to make large edits? I would later hope to re-upload the map onto the server after I finish making changes.


When I double-click on a script in Nautilus in order to run it, the script opens in my text editor with no option to do so.  Using Nautilus, how do I run executable text files and/or scripts?

When I double-click on a script in Nautilus to run it, the script just opens in my text editor with no option to run it. Using Nautilus, how do I run executable text files and/or scripts?


i have designed a logo in photoshop but it has affected the quality of image and its pixels are not clear when i zoom the image really far, its looks pixelated.i have increased the size of image also increased its resolution to make image quality better but can't do it well. now i want to convert it in to vector image with the help of illustrator to improve the quality of image. can i do this?if yes, then how?

Is there a way to convert a .JPG image in to vector format?  I'm using Illustrator and I've tried that "Image Trace" but the result doesn't look any where close to my original.  Plus, I cannot select individual letters of a word like I can in an .AI or .EPS file.


I recently submitted a manuscript for publication, and soon after received a message saying that it was "with Editor".  A few days later, I received a message saying it was "transferred to Associate Editor", and a few days after that "transferred to Subject Editor".  My question is about the different levels/types of editors in this process, not about the acceptance/rejection of manuscripts in general.  What does this mean?

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


I want to create a file in javascript. Before you say that it is impossible, go read .  Here is what I have so far :  window.open("data:text/json;charset=utf-8," + escape("Ur String Object goes here"));   Now, my question is : How do I give a name to this file?

If for example you follow the link:  data:application/octet-stream;base64,SGVsbG8=  The browser will prompt you to download a file consisting of the data held as base64 in the hyperlink itself.  Is there any way of suggesting a default name in the markup?  If not, is there a JavaScript solution?


Using Ubuntu 16.04 with GNOME (which I added later, the original version has Unity), with a Dell Inspiron 15-3531.   After I turn off my computer (with the power button), or make it sleep (shut the lid), at the GNOME login screen which shows the profiles, I click mine, then enter my password. For about 2 seconds it seems like the computer will unlock as usual, but it then loops back to the gray screen with the profiles. It still responds to an extent, as it tells me if my password is incorrect.   I've only been able to temporarily fix it by a full shutdown, or by removing the battery for a minute. Granted, my laptop is old so it could just be that.   Edit: my .Xauthority file is not owned by root but by my user. Creating a new profile does work, however I would not necessarily want to use this new profile as my main. Any suggestions on how to change that? Renaming .Xauthority on my main profile returns "invalid user".

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


Is there a Stack Exchange site appropriate for asking, for example which is the best Scala book for getting an overview of the language?   If so, in which site could I ask the question?

Where should I post question like:     Where can I find books on [some programing subject]?   or      Online sources for learning  [some programing technique]?   ? ? Should it be community wiki? or is it a taboo in the ?


We have a sequence: $$a_1=\sqrt{6}$$ $$a_{n+1} = \sqrt{6+a_n}$$  The problem is to check convergence and then find the limit. We know that sequence converges when it is monotonic and bounded. With a little trying I can guess, that this sequence must be bounded by 3 and it's monotonic. Then I can prove my guess:  Proving upper boundary I guessed $a_n<3$:   For $a_1 = \sqrt{6} < 3$ $a_{n+1}= \sqrt{6+a_n}$ $a_{n+1} = \sqrt{6+3} = 3$   However, I personally don't like this proof. It requires guessing and checking if I was right.  Later I could use this and prove monotonicity, but I'd like to ask you for some better proofs you may know.

(Fitzpatrick Advanced Calculus 2e, Sec. 2.4 #12)  For $c \gt 0$, consider the quadratic equation $x^2 - x - c = 0, x > 0$.  Define the sequence $\{x_n\}$ recursively by fixing $|x_1| \lt c$ and then, if $n$ is an index for which $x_n$ has been defined, defining  $$x_{n+1} = \sqrt{c+x_n}$$  Prove that the sequence $\{x_n\}$ converges monotonically to the solution of the above equation.  Note: The answers below might assume $x_1 \gt 0$, but they still work, as we have $x_3 \gt 0$.    This is being repurposed in an effort to cut down on duplicates, see here: .  and here: .


I am looking for a way to store OpenSSL encrypted data in my MySQL database. When I store it, i can't retrieve the original string after, since it isn't storing the strings correctly.  Of course, I could save is base64 encoded and decrypt it later, which works like a charm. However, looking at efficiency I would like to know if there is a better way, since base64 encoding is eating disk space for storage.  Thanks for your advice


I installed Ubuntu alongside Windows 10, followed the instructions without deviation and now I can't boot Windows. The error message is boot loader is missing. I can still access my Windows files through Ubuntu, but booting Windows is not an option since installing Ubuntu. How can I fix this?

I installed Windows on my computer, followed by an installation of Ubuntu. However, now I'm unable to boot into my Windows install.  What can I do to fix this?


How do I delete selected text in the nano editor?  I came across this issue while needing to delete the virtual host file and replace its content completely by other content. But the problem is that I can't select and delete the entire text at once. And if I delete it character by character, it won't be a computer thing.

I can select all file by going to the 1st line Alt+\, start marking the text by Alt+A, go to the last line by Alt+/  But there, I don't know which key to remove the selected text. Hit delete doesn't work for me but Ctrl+K to cut the text will destroy my clipboard.  So, what is the hotkey to delete selected text?


I have searched the literature and I'm now have all the papers I need.   I'm reading the papers at the moment in order to write a lit review. I would like to know some strategies to read them, should I read them from first page to last page? or should I read specific sections only?

Ever since starting graduate school I've tried to make scientific reading a part of my daily ritual; I track pages read using , and the graph doesn't lie.  It keeps me honest.  I aim to closely read and summarize 5 pages per day and skim a few other abstracts besides that.  I spend about half my time looking at data and figures which doesn't contribute to my daily "page count."  When I'm reading about a new topic these five pages can take several hours, but on topics I have more background in five pages might only take an hour per day.  I guess since everybody defines "read" in a different way it's hard to get an objective answer about how much reading is enough.  How much people read seems like a bit of a sensitive topic among real-life colleagues because everyone has a bit of anxiety that they aren't reading enough.  But for those further along in their academic path, I'd like to hear how you approached the literature early in your graduate school career and what you think is a sufficient amount.  I guess this all distills down into two main topics:  When deciding what to read each day, should I focus on depth or breadth?  Is five pages of close reading per day enough?  I know it doesn't sound like much, but it takes significant mental energy to meet that goal.  And consistently reading 5 pages per day adds up to a lot over time.  Edited to add: I mostly read about petrology, volcanology, structural geology, and tectonics if that makes a difference.  By "page" I mean "page of text" so if I'm reading a structural geology paper with lots of maps and figures I discount for those and a "ten page" paper becomes a 5 page paper for my purposes.


Suppose a body is in projectile motion then what will be the maximum distance it can attain from origin?  Also in what case the range will be the maximum distance from the origin compared to other points in the path?

Is there an elegant or easy way to derive the maximum distance from the origin to a point of the parabola created by projectile motion (assume initial position is the origin)? Other than differentiating with respect to $x$ and equate to zero the distance given by $\sqrt{x^{2}+y^{2}}$?


1) What happens in the ovary and in the bloodstream that brings about this change in the uterus? 2) Why does the level of FSH decrease and remain at a relatively low level during the luteal phase of the cycle?    For 1 I was thinking: So estrogen levels increase and the follicle matures which first cause menstruation and then the lining reforms??  For 2 I was thinking: the follicle has already ruptured by the luteal phase

Is that possible that ovulation happens in the time of actual menstrual haemorrhage in human females - let say in a case that woman has 21 day cycle and her menstrual period is 7 days?   If yes, does it means that in this particular case the woman has lower chances to conceive?


Complex number is very weird to me, especially so when they appear in engineering and physics equations.  It is possible to  where  $i = \begin{pmatrix} 0&1\\ -1&0 \end{pmatrix}$ and $1= I$  However, the eigenvalues and eigenvectors of the $i$-matrix  are complex. Which means complex numbers may reappear even if we use the matrix representation.  Is it possible to totally get rid of complex number from our real world equations? Or is it so fundamental in our world?

The use of imaginary and complex values comes up in many physics and engineering derivations. I have a question about that: Is the use of complex numbers simply to make the process of derivation easier, or is it an essential ingredient, without which it would be impossible to derive some results?   I can identify two different settings where the answer may be different:   It doesn't look like it is mandatory for results in Newtonian mechanics, General Relativity and classical electrodynamics. Can we say the same thing about quantum mechanics either way for sure?   Could this be a difference in quantum mechanics over the classical picture?


So, my theme.libraries.yml file shows:  global-styling:   css:     theme:       css/style.css: {}       css/custom.css: {}   js:     js/myjavascript.js: {}   In mytheme.theme, hook_preprocess_node() I have added:  $variables['#attached']['library'][] = 'myjavascript.js';   Drupal is throwing this error message:  User warning: The following theme is missing from the file system: myjavascript.js in drupal_get_filename() (line 250 of core/includes/bootstrap.inc).   I cannot see where I'm going wrong. The javascript is definitely being injected, since it all works. Why am I getting this error?  thanks

I used the following code.  libraries.yml      my_module.admin:   version: VERSION   js:     js/my-module.js: {}   dependencies:     - core/jquery     - core/drupal     - core/drupalSettings   my_module.module   /**  * Implements hook_page_attachments().  */ function my_module_page_attachments_alter(array &$attachments) {  $attachments['#attached']['library'][] = 'js/my_module';   // $attachments['#attached']['library'][] = array('my_module', 'admin'); }   my_module/js/my_module.js  (function($, Drupal, drupalSettings) {     Drupal.behaviors.my_module = {       attach: function(context, settings) {         $(document).ready(function() {             alert("hello");             console.log('Loaded');           }         };       })(jQuery, Drupal, drupalSettings);   I have tried many other changes, but the JavaScript file is not used.  I have ported Drupal 7 code that implements hook_boot() and includes that JavaScript file, to Drupal 8.


If $A$ is a real matrix and $\lambda$ is a real eigenvalue of $A$, then there is a real eigenvector corresponding to $\lambda$.   How can I prove this?

If $\lambda$ is a real eigenvalue of a real matrix $M$, does there necessarily exist a real eigenvector of $M$ corresponding to $\lambda$?  Edit: Never mind. I figured it out.. If $\lambda$ is a real eigenvalue, then $\det(\lambda I-M)=0$, which means there exists a real vector $x$ such that $Mx=\lambda x$. Right?


I'm wondering whether the reputation limit in combination with a global clock doesn't create the following effect:  "The quality of the answers is the highest around 00:00 UTC and drops until 23:59 UTC." - idea  The rationale behind it is that each day, at 00:00UTC a new "SE day" begins. So everybody has zero reputation that day. But as time passes, more and more (high reputation) users earn the maximum reputation limit. The result is that some/most of these users don't have an incentive anymore to answer questions (decently; no insult intended at all). So the number of potential answerers (as well as the answerer-quality if reputation is a good measure) drops. Of course the claim not fully holds: people live around the global and most people won't answer questions in the middle of the night, simply to earn some reputation. Still there is probably some effect... Let's assume people work 8 hours everyday (and consult the site occasionally through the day), then the last person that become active on the site the first time that SE day does this at 16:00 UTC, so from that moment, the quality should start dropping significantly. Furthermore it depends on the concentration of IT-minded people on the globe (one expects the quality to drop faster if people in San Francisco, California are at work, since the concentration of programmers is higher in these regions). In other words, the best time to ask a question is around 00:00 UTC (based on probability reasoning, and probably later that day based on actual data). This can create problems, since most programmers don't decide when they want to run into trouble with their work. And furthermore people living in different countries are differently aligned to the global time. A possible solution to the problem - if any - could be that the "SE day" depends on where a user lives. There are probably some issues because users could change their location to tamper with the clock, but perhaps other solutions might work as well. Please note that I don't claim it is the "intention" of answerers to answer less questions. It's more a subconscious process that people tend to put less effort in things where they don't receive (immediate) rewards.

Can you get better answers on Stack Overflow when a question is asked at a certain time of the day?  Let's say the question is asked in the morning (GMT), will it attract more attention than a question that is asked at night?   Suppose that is true: What is the best time to ask questions?  On the other hand,    How long can one expect to get relevant answers?  Is a question after (let's say) 12 hours "lost"?    The question seems to attract no more answers after a certain time, unless the question itself is that relevant that a lot of people keep it active.


In the tense of present perfect, I learned that "I have finished the work" means 'recent past' and "The man has died"means'hot news' Are 'recent past' and 'hot news' the same in meaning?

A scholar has said that there are 4 usages of the present past tense:   The Universal sense of the Perfect, used to indicate that a state of affairs prevailed throughout some interval stretching from the past into the present       I've known Max since 1960.  The Existential sense of the Perfect, used to indicate the existence of past events     I have read Principial Mathematica five times.  The Stative/Resultative sense of the Perfect, used to indicate that the direct effect of a past event still continues     I can't come to your party tonight - I've caught the flu.  The Hot News sense of the Perfect, used to report hot news     Malcolm X has just been assassinated.    To what category does the recent past belong?


I am using the glossaries package together with hyperref, but I realize that I don't need the table of acronyms. Rather, I would prefer that on clicking an acronym, I want to reach the first instance of \gls{myacronym}. Is there anyway to do that.  Thank you  Edit: Added sample code  \documentclass[11pt]{article} \usepackage[a4paper, total={6.5 in, 9.5in}]{geometry} \usepackage{hyperref} \usepackage[acronym]{glossaries}  \newacronym{acr}{myacr}{My Acronym}  \makeglossaries \begin{document} \section{Introduction}  I refer to the acronym here \acrfull{acr}. Since, I don't have a list of acryonyms, on clicking the acronym link I want to go to the section where the acronym is explained.  \pagebreak  \section{Chapter on My Acronym} \gls{acr} is explained here in detail. On clicking an occurrence, the reader should be directed here. \end{document}    Edit 2: Some users have marked this question as a duplicate, but it's not. My question is that any occurrence of an acronym should link to it's first occurrence, rather than the list of acronyms. In contrast, the "other" question asks about linking the first occurrence with the list of acronyms.

By default, the glossaries package creates a link to the glossary for each occurrence of an entry (e.g. each time I use \gls{entry}). With the links visualized (e.g. using hyperref colorlinks). This becomes really cluttered if an entry is used many times.  I would rather prefer that only the first occurrence of an entry is hyperlinked. Is this possible?


When creating web page titles, is there any difference between using the word 'and' in the title compared to using an ampersand?

I am working on a site with a company name with an & in it. An alternative is using and instead of &.  Does & have some disadvantages in a company name we have to know of? Does it effect SEO? Can Google 'work' with it?  Are there some other disadvantages?   Update  The domain name is not a problem, because there is used and. It's not a problem to use and, but in the logo is & used. So on site they want to use & also.  But i think people are going to search for the and version. It's easier to type C and A instead of C&A (certainly in my case). But when i'm using & on the site everywhere Google might not discover we mean the same. Or is that a crazy though?


Could someone help me explain what is happening here. Not entirely sure what instance is all about.... Wouldn't I/ Couldn't I just use a static class.  I would appreciate if the following code would be annotated  public class Dingo {     public static Dingo instanceDingo;      private Dingo(){}      private static Dingo Instance     {         get         {             return instanceDingo ?? (instanceDingo= new Dingo());         }     } }

What real (i.e. practical) difference exists between a static class and a singleton pattern?  Both can be invoked without instantiation, both provide only one "Instance" and neither of them is thread-safe. Is there any other difference?


I'm  trying to make a website on my own, but i don't have a lot of pictures. Can anyone tell me a website with a lot of pictures of different styles like photography, flat design, etc...

I'm always on the hunt for free stock images to use while I design, what are some good resources for images that are under a a royalty free or creative commons licence?


In Episodes I~VII, we see several "Blue Ghosts" (I don't know the proper term, sorry!):   Yoda Obi-wan Kenobi Anakin Skywalker Qui-Gon Jinn (I think) possibly others I can't remember   How does someone qualify to become a "Blue Ghost"? Is it limited to Jedis?    If you can't tell, Star Wars isn't my main fandom...

In many of the Star Wars movies, Jedi come back as Force ghosts.    Why don't they stick around forever, giving advice to new generations, as well as countless knowledge from thousands of years?


The autobiographer badge conditions  because some fields were a bit too 'personal'; a specific reason in that post is:     A lot of the fields felt too personal to many people. "Age" and "Real Name" in particular rubbed some people the wrong way as a "requirement" for anything, even something as silly as a badge.   Which is kind of true, and seeing as SE acknowledges this fact, can we get rid of the mandatory 'real name' field when committing to a proposal?  I know I can just enter anything, like my username - but I shouldn't have to lie to commit to a proposal I think.

The Commitment form on Area 51 requires your full name to be provided. Is this publicly viewable? Why not just use the existing usernames?


Im trying to insert data into a table i created on Oracle SQL live. I was able to enter the data in one row at a time but when i try to enter it all at the same time, i get an error message that says SQL command not properly ended. Im using the code below. I don't know what i'm doing wrong:   Insert into PET_OWNER (OwnerID, OwnerLastName , OwnerFirstName , OwnerPhone , OwnerEmail)  Values (1, 'Downs' , 'Marsha' , '555-537-8765' , 'Marsha.downs@somewhere.com'),  Values (2 , 'James' , 'Richard' , '555-537-7654' , 'Richard.James@somewhere.com'),   Values (3 , 'Frier' , 'Liz' , '555-537-6543' , 'Liz.Frier@somewhere.com'),   Values (4 , 'Trent' , 'Miles' , 'Miles.Trent@somewhere.com');


I would like to include a similar picture in my bachelor's thesis.   I am looking for tips on how to make this (or in general) diagram(s) more beautiful.  Can you recommend programs for creating such diagrams? Preferably free and runs under Linux.

Is there any software that allows to draw block diagrams  like this:   or like this:


I have to dd a couple of 1TB hard drives. They are taking several hours to clone and I was wondering if there was any way possible of knowing how fast they are going, how much they have done and how long will they take to copy the rest.  All I can see is the terminal with the command running. When I run ps -e at least I know that dd is working from the CPU usage shown, but I have no way of knowing how much it has done or how long it will take to finish.  Kind of makes me crazy.

is a wonder. It lets you duplicate a hard drive to another, completely zero a hard drive, etc. But once you launch a dd command, there's nothing to tell you of its progress. It just sits there at the cursor until the command finally finishes. So how does one monitor dd's progress?


I am currently running Ubuntu 10.10 and I would lie to update.  For some reason my computer will not let get into the BiOs setup to install from the DVD of Ubuntu.  Please help

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


I was trying to reset the password and I held down the shift key when booting didn't where I wanted to go instead it said error attempting to read or write outside disc 'hd0' entering rescue mode.... grub rescue>

I tried to install Xubuntu 13.10 on an older computer. I noticed some difficulties during installation that may be relevant to my problems. Notably:   The screen resolution was extremely low. The windows were much larger than the screen and I had to move them around to get to the "Next" button. The mouse cursor was a blur of colours that was flashing all the time.   The installation finished and I tried to reboot the computer. Immediately I got:  error: attempt to read or write outside of disk 'hd0'.  Entering rescue mode...  grub rescue>   I made a  USB disk, booted it and chose the default repair. The application told me that the problem is repaired and that If this does not solve my problem I should show  to someone who can help me.  What should I do next? I already tried to install Ubuntu and Xubuntu, both with no success.  EDIT:  I found a workaround.   Insert the Xubuntu live USB Select "try Xubuntu" In the settings menu select "install Xubuntu"   This fixed the problem for me. Since it is solved I cannot test the answer.


Shortly after my wedding day my wonderful mother-in-law sat me down to say that my new name Barnes was to be spelled (in Christmas Cards) Love from the Barnes'. She went on to explain that her German mother-in-law had the same talk with her regarding Christmas Cards. So, in keeping with family tradition I have always said with love from the Barnes'   Now they are both on the other side and I am gaining a wonderful daughter-in-law and plan to keep the tradition going. But I am curious if it's grammatically incorrect.   Thoughts??

If I were to use the sentence "There are lots of John Smiths" in the world, would that be the correct use for saying that there are a lot of people named John Smith in the world?  I don't think there should be an apostrophe as that would imply ownership of something.  If my first example is correct, then what would you do if the name referenced already ended with an 's'?


I have an INI file which has data   like this.  [username] xxxxxxxxxx   [password] xxxxxxxxxx  Now i want to extract both username and password and store them separately into a string. I tried many things, but was not able to achieve this.  Any help would be appreciated.

Is there any class in the .NET framework that can read/write standard .ini files:  [Section] <keyname>=<value> ...   Delphi has the TIniFile component and I want to know if there is anything similar for C#?


I need to compress the webApps folder into webApps.war in windows command prompt  I have tried:   directory changed to webApps folder c:\webApps then jar -cvf webApps.war   it produce the error I mentioned in title.. Please suggest any other way.

Is there a way to include all the jar files within a directory in the classpath?  I'm trying java -classpath lib/*.jar:. my.package.Program and it is not able to find class files that are certainly in those jars.  Do I need to add each jar file to the classpath separately?


Windows 7 x64 blue screened every few minutes with error code 124, but worked in secure mode.(EDIT: safe mode) I tried reinstalling windows, which didn't work, so i tried to install various Linux systems which also didn't work. the computer freezes most times on installing or gives a detailed erro rmsg like this one (its always the same with CPU bank stuff):    Super detailed system specs:   The only thing that works is a 2013 version of parted magic, a "repair" linux distro. so we could do all sorts of checks!  btw, disabling cpu cores is not possible in bios.  is this just a simple "cpu is damaged" problem? i found the same cpu for 10€ on ebay  EDit:   @secure mode  its actually called safe mode (sry english is not my first language)  @resetting your BIOS settings to defaults?  yes, i tried that, and enabling disabling different features in bios  @other routine checks like running a memory checking tool  i did alot of test from this disc:  i did different memory checks, cpu tests and hdd checks. nothing interesting came out.  @cpufan  idk how to check this as it is a laptop. i can hear a fan and it dosnt crash or burn during "system stability tester" from parted magic. (wich is a program to stresstest cpu by calculating millions of digits of pi) sensors temperature is at 60°C during this stresstest, (65°C max only hit shortly) so i guess its working  @mobo  ill open it up and edit the post (the mainboard has been swapped by lenovo service)

I've been having problems with a blue-screening Laptop (BCCode 124), and I've been trying to track down whats causing it. (It bluescreened randomly after 5-30 minutes of running in win7). It worked in safe mode. I tried reinstalling Windows, which didn't work, so I tried to install various Linux systems which also didn't work.  The only thing working right now is the parted magic version of the ultimate boot cd.(Its a repair linux distro that runs live from ram)  I had the idea to run a bunch of stability tests to try and isolate the faulty component(s), and I wanted some input on my results.  I did different cpu stresstests for different times. No problem (temerature ~60°C sometimes peaks at 65)  I ran memtest with no errors many times.  I also did a GPU check wich is included in the ultimate boot cd - parted magic distro - no problem.  I also checked the hard drive with different tools included in parted magic - no problem there too.  Every linux system I try to install crashes when I try to install it. (It either freezes with no error (rarely happens) or I get something like this shortly after I tell it to install (tried about 20 different distros): [*] 3 photos in the dropbox  Trying to isntall windows 7 just gives a generic "there was a problem" / "an error has occured" screen with no further information.  The laptop is a Lenovo B570. Here are the detailed system specs (the ram is a 4GB kingston now) [*] the hardinfo file in the dropbox  I have 3 crashdumps from Windows wich I can not open. (visual studio says it cant open old crashdump files) [*] 3 dumps in the dropbox  Can you help me to track down the cause?  Edit: im not allowed to post more than 2 links here so here the dropboxfolder with all the things I mentioned:  [*]


show that $$I=\int_{0}^{1}\dfrac{(x-1)dx}{(x+1)\ln{x}}=\ln{\left(\dfrac{\pi}{2}\right)}$$ I say this integral background,today I have use this  play some function,and Suddenly I found this interesting problem I try solve this by hand, $$\dfrac{x-1}{(x+1)\ln{x}}=(1-\dfrac{2}{x+1})\dfrac{1}{\ln{x}}$$ then It's ugly then $$I=\int_{0}^{1}\dfrac{1}{\ln{x}}dx-\int_{0}^{1}\dfrac{2}{\ln{x}}d\ln{(1+x)}$$

Some time ago I came across  to the following integral:    $$I=\int_{0}^{1}\frac{1-x}{1+x}\frac{\mathrm dx}{\ln x}$$ What are the hints on how to compute this integral?


Can we write $\mathbb{R}$ as union of more than one disjoint open sets (in $\mathbb{R}$) ? If no, then can you explain why it is not possible ?

So I know that $\mathbb{R}$ is both open and closed. But given a set, $X\subset \mathbb{R}$, $X\ne \emptyset $ that is both open and closed, how does one show that $X=\mathbb{R}$?    Here is my attempt: Using the definitions I was given, $X$ open implies that for every $x\in X$ there is a $\delta \gt 0$, $(x-\delta,~ x+\delta)\subset X$.    Also, since $X$ is closed , $B=\mathbb{R}$\  $X$ is open.    However, I don't know how to proceed. NB: This is not a homework problem.


I want to calculate the integral, $\int_0^x \frac{t^n}{1-t} dt$, where $n \in \mathbb{N}$ and $x \in (0;1)$ are some constants, but I do not know how to do it. I tried the following methods:  Decomposition of $\frac{t^n}{1-t}$ into the sum of primitive fractions  $$ \begin{align*} \int_0^x \frac{t^n}{1-t} \, dt  &= \int_0^x \frac{(1-(1-t))^n}{1-t} \, dt \\  &= \sum_{k=0}^n (-1)^{k}C_n^k \int_0^x (1-t)^{k-1} \, dt \\  &= \sum_{k=0}^n (-1)^{k}C_n^k \int_{1-x}^1 t^{k-1} \, dt \\  &= -\ln(1-x) + \sum_{k=1}^n (-1)^{k}C_n^k\frac{1 - (1-x)^k}{k}  \end{align*} $$ And here I am stuck, not knowing how to find the closed form of this sum.  Integration by parts  $$ \begin{align*} \int_0^x \frac{t^n}{1-t} \, dt  &= \frac{1}{2} \int_0^x \frac{t^{n-1}}{1-t} \, dt^2 \\  &= \frac{x^{n+1}}{2(1-x)} - \frac{1}{2} \int_0^x \frac{t^2 ((n-1)t^{n-2}(1-t)  + t^{n-1})}{(1-t)^2} \, dt \\  &= \frac{x^{n+1}}{2(1-x)}  - \frac{n-1}{2} \int_0^x \frac{t^{n}}{1-t} \, dt  - \frac{1}{2} \int_0^x \frac{t^{n+1}}{(1-t)^2} \, dt  \end{align*} $$ $$\int_0^x \frac{t^n}{1-t} dt = \int_{1-x}^1 (1-t)^n d \ln(t) = -x^n\ln(1-x) + n \int_{1-x}^1 (1-t)^{n-1}\ln(t)dt$$ Neither of the right parts of those equalities seems to be any easier than the initial integral.  WolframAlpha   Standard computation time exceeded... Try again with Pro computation time

Solving this using integration by parts and by letting $u = x^k$ and $dv = (1-x)^{-1}$, it follows: $$\int_{0}^{1}\frac{x^k}{1-x} dx = -x^{k}\ln(1-x) + k\int_{0}^{1} \ln(1-x)x^{k-1} dx$$ It is known that $$\ln(1-x) = (1-x) - (1-x)\ln(1-x)$$ But doesn't this make the integration more complicated. Can I obtain a recursive formula for such an integration?


I recently switched to Ubuntu and after I installed my NVidia driver package by using  sudo apt-get install nvidia-current I relaunched my pc and everything seemed fine in the login screen but after I logged in the only thing I could was moving my mouse around on my background  I tried following the  thread and I got to the ccsm menu and checked the Ubuntu unity plugin as described but my icons would not appear so I rebooted but I ended up with the same problem   I would appreciate if someone could find a solution to my problem.

As expected, Nvidia drivers have reduced my customizations. I can't login to Unity 3D session. I can't find any content to help me to uninstall the driver and I don't know what to do as I have never uninstalled them before.


I want to understand :  How index work in oracle.  How they are stored in the disk.  How they increase the efficiency of a query?  By third point I means how Index contribute to the efficiency of query such as in joins,group by clauses.  One more point is How index behave in Flashback queries.

This question only needs one answer: a list of great resources for getting started with Oracle, including Database Administration, PL/SQL and SQL.   You may find your question has been closed as a duplicate of this one, if so, please don't be offended: we are trying to be as helpful as we can without . Closing a question as a duplicate of this one is us saying "What you really need is to spend some time reading some of the best resources available rather than have your specific question answered right now. If you do get through these resources, you'll soon be back with more !


I have for example the following class  public class MyClass<T> { private int id; T content; }   and in other part of my project I want to create a method that return Myclass<byte[]>[]  I wrote this code  Myclass<byte[]>[] tempArray=new Myclass<byte[]>[4];   > the eclipse says "cannot create a generic array of Myclass<byte[]  anyone knows how to solve it?

Due to the implementation of Java generics, you can't have code like this:   public class GenSet<E> {     private E a[];      public GenSet() {         a = new E[INITIAL_ARRAY_LENGTH]; // error: generic array creation     } }   How can I implement this while maintaining type safety?  I saw a solution on the Java forums that goes like this:  import java.lang.reflect.Array;  class Stack<T> {     public Stack(Class<T> clazz, int capacity) {         array = (T[])Array.newInstance(clazz, capacity);     }      private final T[] array; }   But I really don't get what's going on.


Let $$N=\{0,1,2,3,...\}$$ be the set of all non-negative integers and $A$ the set of all bijections from $N$ to itself.  Prove that   $i)$ $A$ is an infinite set.   $ii)$ There exist no bijection from $N$ to $A$

I guess it is too difficult a question to ask about the cardinality of $S_{\mathbb{N}}$ so I would like to ask whether it is countable or not.  I tried to prove it is uncountable somewhat mimicking the Cantor's diagonal argument but failed.


After googling this problem, it appears (as of 7 YEARS ago) that the only way to allow users to connect to new WiFi networks is to modify PolKit (, ). Is this still the case with Ubuntu 20.04, without having to install further packages?  Hard to believe that Ubuntu hasn't made this more user-friendly yet over the last 7 years. Edit: What I'm wanting to do is allow standard users to simply connect to any WiFi network (new or known) without having to enter the root password.  That's it.  Currently, my Ubuntu desktop requires standard users to type in the root password in order to connect to a new WiFi network.  That seems a little silly since Windows and Mac allows standard users to connect to whatever WiFi network they want with admin privileges.

So currently when my non-admin user tries to connect to  a new WiFi network (e.g. at a cafe say) NetworkManager prompts for the admin user's password. Is there a way to turn this off and to allow the non-admin user to connect to whatever Wifi network they like?  EDIT: just to clarify, I really mean a new WiFi network never connected to prior by the computer, so clicking 'Available to all users' on an existing established connection will not solve the matter- as currently no issue with the non-admin user reconnecting as many times as they like to the home network.


They are both the same menu way do they have different options? How do i get the left options to look like the rights?

So, i want to add some water to my scene. But i´ts the second video i am watching with options displayed that are missing in my blender. Am i missing something? It´s about the materials...   this is how it should look.   and how it looks on my blender. There are far less options. Where is Lambert for example? Can someone suggest another video/way to do it?


Problem: unable to horizontally center the image: Please see the code example here:   .row {   background: #f8f9fa;   margin-top: 20px; }  .col {   border: solid 1px #6c757d;   padding: 10px; }  .index-img-container {   width: 200px;   height: 200px; }  .index-img {   max-width: 100%;   max-height: 100%; } <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.css" rel="stylesheet"/>

Title here

           Some text is shown here with The Lorem Ipsum for photos.
                                                           Important message
+ Some note
          View Details

    If I removed the css class "index-img-container", the image will be centered. .index-img-container {     width: 200px;     height: 200px; }  I am unable to understand how this size-defining class can cause the image to align to left. But in order to keep all images the same size this class cannot be removed. Is there a solution? Thanks.

How can I horizontally center a
 within another
 using CSS?

Foo foo


The standard process of downloading and installing Adobe Flash involves downloading a small installer, that will itself download the full Flash version adequate to your system, and perform the complete install.  Is there a way to avoid this? I'm upgrading multiple computers in a network and I want to avoid wasting bandwidth by downloading the same installer multiple times, I need a OEM / redistributable installer.

I can't find Flash Player download link which will give me the full EXE/MSI file, not the tiny downloader which downloads data from the internet.  What's the proper download site for this?


I tried to compile this code using xelatex.  \documentclass[a4paper,12pt]{scrartcl} \usepackage{fontspec} \usepackage{mathpazo} \usepackage{lipsum}  \begin{document} \lipsum \end{document}   It seems the font is not loading.   How do I fix this?

I would like to use Zapf's Palatino font for the text in my document, which also includes a lot of maths. And I would like a good font for the maths. This is a snapshot of what I am doing.  \documentclass[10pt,letterpaper]{memoir} \usepackage{amsmath} \usepackage{amssymb} \usepackage{mathpple} \usepackage{upgreek} \usepackage{mathpazo} \usepackage{lipsum}  \begin{document}  \chapter{Demo}  Some regular text. \lipsum[1]  Now for some maths.  \begin{displaymath} P_{N-1 + m} = \frac{C}{N-{1} + m} \binom{N_{2} - N_{1}}{m}         \alpha^{m}\beta^{(N_{2} - N_{1}) -m} \end{displaymath}  The number 27 is the sum of the first 5 odd prime numbers: $27 = 1+3+5+7+11$  \end{document}   To me the text and math fonts seem a good fit but the text does not look like Palatino.


I am running the following queries in MS SQL Server (version 2016 if that matters).  SELECT DISTINCT Job_Number FROM table_A WHERE Job_Number IS NOT NULL   returns 2376 rows  SELECT * FROM table_A WHERE Job_Number IN (SELECT DISTINCT [House Bill] FROM table_B)   returns 137 rows  However,  SELECT * FROM table_A WHERE Job_Number NOT IN (SELECT DISTINCT [House Bill] FROM table_B)`   returns 0 rows. I would expect this would return 2239 rows (i.e. 2376 - 137).   Is there any fundamental concept of NOT IN that I have yet to understand here?

This issue came up when I got different records counts for what I thought were identical queries one using a not in where constraint and the other a left join. The table in the not in constraint had one null value (bad data) which caused that query to return a count of 0 records. I sort of understand why but I could use some help fully grasping the concept.  To state it simply, why does query A return a result but B doesn't?  A: select 'true' where 3 in (1, 2, 3, null) B: select 'true' where 3 not in (1, 2, null)   This was on SQL Server 2005. I also found that calling set ansi_nulls off causes B to return a result.


I am trying to install Git in Ubuntu 18.04 but it fails with errors.  Here is the command that I am using:  sudo apt install git   Here is the error that is shown:  Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  git : Depends: liberror-perl but it is not going to be installed        Depends: git-man (> 1:2.17.1) but it is not going to be installed        Depends: git-man (< 1:2.17.1-.) but it is not going to be installed        Recommends: less but it is not going to be installed  libegl1 : Depends: libglvnd0 (= 1.0.0-2ubuntu2.2) but 1.0.0-2ubuntu2.3 is to be installed  libgles2 : Depends: libglvnd0 (= 1.0.0-2ubuntu2.2) but 1.0.0-2ubuntu2.3 is to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).   I have tried the following commands but it doesn't help.  sudo apt-get update     sudo apt-get clean     sudo apt-get autoremove     sudo apt-get update && sudo apt-get upgrade     sudo dpkg --configure -a     sudo apt-get install -f   Here is the log for sudo apt --fix-broken install   Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   libegl1 libgles2 The following packages will be upgraded:   libegl1 libgles2 2 upgraded, 0 newly installed, 0 to remove and 23 not upgraded. Need to get 0 B/44.7 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 102811 files and directories currently installed.) Preparing to unpack .../libegl1_1.0.0-2ubuntu2.3_arm64.deb ... Unpacking libegl1:arm64 (1.0.0-2ubuntu2.3) over (1.0.0-2ubuntu2.2) ... dpkg: error processing archive /var/cache/apt/archives/libegl1_1.0.0-2ubuntu2.3_arm64.deb (--unpack):  trying to overwrite '/usr/lib/aarch64-linux-gnu/libEGL.so.1.0.0', which is also in package rockchip-mali-midgard14 1.6-1 Preparing to unpack .../libgles2_1.0.0-2ubuntu2.3_arm64.deb ... Unpacking libgles2:arm64 (1.0.0-2ubuntu2.3) over (1.0.0-2ubuntu2.2) ... dpkg: error processing archive /var/cache/apt/archives/libgles2_1.0.0-2ubuntu2.3_arm64.deb (--unpack):  trying to overwrite '/usr/lib/aarch64-linux-gnu/libGLESv2.so.2.0.0', which is also in package rockchip-mali-midgard14 1.6-1 Errors were encountered while processing:  /var/cache/apt/archives/libegl1_1.0.0-2ubuntu2.3_arm64.deb  /var/cache/apt/archives/libgles2_1.0.0-2ubuntu2.3_arm64.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.


A baby girl was born to Mr Arthur Keller and Kate Keller.   Why does it use 'to' instead of 'by'?  Please tell me differences.  Note: An  does touch on this some. I would like more information about "to" vs. "by" here.

I was born in 1980.   What part of speech is "born"? verb? past participle?   It can be a past participle as in " I was seen ."  It can be verb as in " It was pulled by a car ."


Should I be using "who" or "whom" in this sentence? How would I form the deep structure of this sentence? Is it "These days, a stay at home person is not whom"?

I can never figure out whether I should use who and whom. Most people use who for both colloquially, but some people say this is not correct.  What’s the rule for using who and whom correctly?


I'm not a parent but this is a question for parents.  I've been Agnostic for a while now, but my Mother is a Christian, and a very big one at that.  I'm kind of scared to tell her, but that may be my inferiority complex kicking in, so I would like some advice.  Edit: I'm still a young kid, and my Mother is the type of person who thinks she's always right, so I don't know how to go about this without major problems.

I have actually recently found a label for my religion (druidism). I am 15 and I actually established my personal beliefs years ago. I feel like a disappointment to my parents already because I'm bisexual but I don't feel right hiding my life from them.   I believe in reincarnation and I love life and cherish it and seek to actually practice my religion without the worries of being caught. I even felt the need to send my necklace that I ordered online to my friends house.   So how do I explain this to her without upsetting her too much? And its not like druidism is bad....  PS I am not a parent but I need advice from parents. Thankyou.


i want to download the DEM data SRTM of the world automatically using python script. How is it possible?

Is there an easy way to mass download SRTM data?  The data is published for download , but it's sliced into thousands of small files, and I don't see an FTP option for more efficient downloading...  Another issue is that the server seems to die (or run out of bandwidth) when I use a download manager like the "DownThemAll" Firefox extension to get them.  Is there a better resource for getting this data?


Travelling to India from Chicago via Paris (Charles de Gaulle Airport). I have a valid US visa, and Indian Passport(valid & expired).  Do I really need transit visa?  Looked up online and found this, ""   Foreigners who DO NOT NEED an Airport Transit French Visa, regardless their nationality are the following cases:  holders of the valid US visa.

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


I've got a problem in beamer. When using the fragile option on a frame, the compilation does not work.  For instance:   \documentclass{beamer}  \begin{document}   \begin{frame}[fragile]        Hello World    \end{frame}  \end{document}   I get the following error message:   File ended while scanning use of \next   Do you know why ?  I tried with miktex and Texlive, on windows and Mac.  Many thanks for your help,  Best,  Nicolas

OK, I've been staring at this for an hour.  I know there's an error in this frame, as the document compiles fine if I put \end{document} in the frame before this.  But this frame gives an error   File ended while scanning use of \next   Where is it?????  \begin{frame}[fragile] \frametitle{PROC TEMPLATE for a fancy graph (part 1)} \begin{alltt} proc template;  define statgraph scatdens2;  begingraph;   *BEGIN DEFINING THE GRAPH;    entrytitle "Scatter plot with density plots";     *CREATE A TITLE;    layout lattice/columns = 2 rows = 2     columnweights = (.8 .2) rowweights = (.8 .2)       columndatarange = union rowdatarange = union;    *LAYOUT LATTICE...SETS UP A GRID OF GRAPHS;    *COLUMNWEIGHTS AND ROWWEIGHTS SETS     THE RELATIVE SIZE OF THE INDIVIDUAL COLUMNS AND ROWS;  \end{alltt}  \end{frame}


I regularly use Adobe Reader to view PDF's, but I have to close the side bar on the right all the time.   Does anyone know how I can permanently hide it?

In Adobe Acrobat Reader DC, presently 2015.007.20033, how do I prevent the sidebar from opening by default?  It's not so bad when a PDF document is in portrait mode, but opening one in landscape takes up too much real estate.      February 1, 2017 update  The  is no longer correct for newer versions of Adobe.  Please refer to  for newer versions of Adobe; both Windows and Mac.


"Urban planning" is a brainteaser asking:  There are four towns positioned on the corners of a square. The towns are to be joined by a system of roads such that the total road length is minimized. What is the shape of the road?  well, the solution and question is as attached:    A,B,C,D are the 4 towns, dotted lines show the sequare, solid lines are the solution, $\angle AEB=\angle BFD = \frac{2}{3} \pi$.  It sounds convincing, but, how to prove mathematically the existence of the solution and, the valid of the solution?

I have four cities in $A=(0,0),B=(1,0),C=(1,1),D=(0,1)$. I am asked to build the shortest motorway to connect the cities. How can I do that?  I was thinking that first I need some compactness argument to prove that there really is the shortest way to connect cities. Or if one can prove that one can travel via finitely many line segments, the existence of minimal way migth be possible to prove via some olympiad-level inequalities.  Then I think I need to find points $E,F$ such that $\angle AEB=\angle CFD=120^\circ$. But I think it is difficult to prove that such a configuration is really a minimal.  Could anyone give hints/solution how to fill the details?  Bonus: Has anyone generalized this problem to $n$ cities in a regular $n$-gon?