Is it preferable to brush one's teeth before or 30-60 minutes after breakfast?  I found plenty of blog posts / testimonials but no actual scientific studies. I'm looking for the latter.    Waiting at least ~30 minutes before toothbrushing has been shown to be useful in a few studies, e.g. :     It is concluded that for protection of dentin surfaces at least 30 min should elapse before toothbrushing after an erosive attack.   Here is an example of some dentist advising to toothbrush before breakfast:  :     Brush and floss your teeth after you eat. This is the most logical answer .You do not want bacteria eating the left-overs in your mouth from breakfast . Remember to floss . Take responsibility for the food that can not be brushed or removed between your teeth.    look very similar but the options they considered were before vs. what after breakfast. They didn't consider comparing before vs. 30 minutes after breakfast. As a result, it isn't a duplicate.   contains some arguments in favor of before and after:   arguments for brushing before:   Bacteria  begin to metabolize sugars into acids almost instantly.  Salivary calcium levels are lowest in the morning putting your teeth are at a much higher risk of acidic damage from bacteria and dietary acids in the morning than at any other time Better to brush with fluoride toothpaste before so you have some fluoride left in your mouth when eating. That fluoride will immediately protect your teeth from the acidous attack of consumed carbohydrates and acidic foodstuff.   arguments for brushing after (waiting >~30 minutes):   gentle brushing can help neutralize the pH in the mouth after a meal. Obviously, if you eat something acidic which will temporarily demineralize your teeth, don't start scrubbing away.

Usually in the morning I brush my teeth after breakfast. But my dentist told me that it's better not brush them right after eating food, because eating makes them soft.  So now I brush my teeth before breakfast. Is this the correct procedure?  PS. Just found , the author has the same opinion.  Just want to get a additional confirmation.


I am trying to make a simple table of clients which will be in russian language. But problem is, it gives me some unknown letters in mysql.  For example my problem is like this:   I put data in russian to my form form inserts data into datatable in russian database shows unknown letters table in webapp shows in russian properly and can be edited in russian aswell.   only results from within mysql give unknown letters  Here are my settings for enabling utf8   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">   Also have set my mysql database as:  +--------------------------+----------------------------+ | Variable_name            | Value                      | +--------------------------+----------------------------+ | character_set_client     | utf8                       | | character_set_connection | utf8                       | | character_set_database   | utf8                       | | character_set_filesystem | binary                     | | character_set_results    | utf8                       | | character_set_server     | latin1                     | | character_set_system     | utf8                       | | character_sets_dir       | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+     +----------------------+-------------------+ | Variable_name        | Value             | +----------------------+-------------------+ | collation_connection | utf8_general_ci   | | collation_database   | utf8_general_ci   | | collation_server     | latin1_swedish_ci | +----------------------+-------------------+   I looked for many information about this issue and thought it was php file encoding problem. So I've also added   header("Content-Type:text/html;charset=utf-8");   I also tried by adding  mysqli_set_charset('utf8');   but now it doesnt load whole table..  Please help me with your tips  Thank you in advance

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Consider two cars going in opposite direction one at speed $c/2$ and other just greater than $c/2$, then one bus will appear to other moving at speed more than $c$. How can an object travel at speed more than light?

Let's say I fire a bus through space at (almost) the speed of light in vacuum. If I'm inside the bus (sitting on the back seat) and I run up the aisle of the bus toward the front, does that mean I'm traveling faster than the speed of light? (Relative to Earth that I just took off from.)


I need your support to draw an arrow like this in Tikz. White inside, black border. I’d like to insert it between two nodes and change the length, width and head extend. Accordingly with the distance. I got this once \draw[-{Triangle[width=8pt,length=5pt]}, line width=3pt] (bloco2.east) -- (bloco3.west); but I can’t fill it in white. I would be grateful for easy solutions. Thanks!

I would like to draw an arrow like this using TikZ:    This is taken from . I didn't succeed in reproducing the arrow; is somewhat beyond my (extremely limited) TikZ abilities. I don't need all the workflow stuff. I simply want to draw such an arrow at a certain place in my text, e.g. -->  \documentclass{article} \usepackage{<???>} \usepackage{tikz} \usetikzlibrary{<???>} \begin{document} Donec vehicula augue eu neque. Pellentesque habitant morbi \tikz <???code for the arrow???> ; tristique senectus et netus \end{document}   PS: Some explanations in your solution would be much appreciated, otherwise it will be difficult to customize it.


I have a problem with my Stack Overflow account. My edit access was disabled for all posts. I saw some similar questions related to my problem, which explained some of the reasons why this might happen. So I waited for 5 days but it wasn't resolved. My questions therefore are   How can I get back my privilege to edit posts? What is the exact reason for this problem? How can I see my edited posts?

I edited some questions before, but now I get an error message when clicking the edit button. I thought there was a problem with the specific question, but I cannot click it on any question.  What's going on?


I am having a hard time understanding what the difference between the following declarations is...  var User = function(name, email) {   this.name = name;   this.email = email; };   and  function User(name, email) {   this.name = name;   this.email = email; };

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


If $A$ and $B$ are positive definite, $A-B$ is positive definite, can we say $B^{-1}-A^{-1}$ is positive definite? I think this should be true but I don't know how to prove it.   It would be great if someone can offer help :) Thanks a lot!.

I've found this while googling some properties of  matrices. (Unfortunately, I cannot remember where I've discovered it.) If this is true, it'll greatly save my time in my work. Is it true? How can you prove it?    Let's say I have two real symmetric and positive definite matrices $\mathbf A$ and $\mathbf B$ of the same size. Also, assume that $\mathbf A - \mathbf B$ is positive semidefinite too. Then, $\mathbf B^{-1} - \mathbf A^{-1}$ is also positive semidefinite.


How to automatically prevent typing in browsers address bar for non English keyboard layout?

Is it possible to assign default keyboard language for specific applications? I know that there is an option to always start an application with a default keyboard language but this is not what I want.  I'm looking for something similar to "fixed workspaces" which you can set using CompizConfig (You set Chrome to always open at X1Y1, terminal at X2Y1 etc). Something where I would set Chrome: Czech, terminal: English, Spotify: English, ...


I have read several topics about the display of floating point numbers display in C++ and I couldn't find a satisfying answer.   My question is: how to display all the significant digits of a floating point numbers in C++ in a scientific format (mantissa/exponent) ?  The problem is that all numbers do not have the same number of significant digits in base 10.   For example a double has 15 to 17 significant decimal digits precision, but std::numeric_limits<double>::digits10 returns 15 and consequently, for some numbers I will loose 2 extra decimal digits of precision.

In my  I was printing a double using cout that got rounded when I wasn't expecting it.  How can I make cout print a double using full precision?


Let $ax^2 + bx+c =0$ A fair six-faced die is thrown three times to determine the values of a, b and c. What is the probability of the root being real?  My solution: The probability is number of triples (a,b,c) such that $b^2-4ac \ge0$ over $6^3$ I ran a computer program and found out that there are 43 triples that have this property. Hence the probability is $\frac{43}{6^3}=0.1991$. My question is, how could I have found all values (a, b, c) without the use of brute force?

Question :     The coefficients a,b,c of the quadratic equation $ax^2+bx+c=0$ are   determined by throwing a die three times and reading off the value   shown on the uppermost face of each die. i.e, if you throw a 1, 5 and   3 respectively, the equation is $1x^2+5x+3=0$.      Find the probabilities that the quadratic equation you obtain :         has real roots;   has complex roots;   has equal roots.      Thank you for your attention.


I been trying all day long to get https work on my local website using self-signed ssl certificate.  I was following all the necessary instructions:   Generated .crt and .key files following the guide on  Configured nginx to use ssl   listen 443; ssl on; ssl_certificate /usr/local/etc/nginx/ssl/server.crt; ssl_certificate_key /usr/local/etc/nginx/ssl/server.key;  Added generated certificate into mac's keychain and checked it as 'Always trust'   But it didn't make https work and I keep getting Chrome's (or other browser's) "Your connection is not private"  mac OS Sierra 10.12.6, nginx installed via homebrew  What did I do wrong?

As of Chrome 58 it no longer accepts self-signed certs that rely on Common Name: $3ACanary%7Csort:relevance%7Cspell:false  Instead it requires using Subject Alt Name. I have been previously following this guide on how to generate a self-signed cert:  which worked great because I required the server.crt and server.key files for what I'm doing. I now need to generate new certs that include the SAN however all of my attempts to do so have not worked with Chrome 58.  Here is what I've done:  I followed the steps on the above mentioned Heroku article to generate the key. I then wrote a new OpenSSL config file:  [ req ] default_bits        = 2048 distinguished_name  = req_distinguished_name req_extensions      = san extensions          = san [ req_distinguished_name ] countryName         = US stateOrProvinceName = Massachusetts localityName        = Boston organizationName    = MyCompany [ san ] subjectAltName      = DNS:dev.mycompany.com   Then generated the server.crt with the following command:  openssl req \ -new \ -key server.key \ -out server.csr \ -config config.cnf \ -sha256 \ -days 3650   I'm on a Mac, so I opened the server.crt file with Keychain, added it to my System Certificates. I then set it to Always Trust.  With the exception of the config file to set the SAN value these were similar steps I used in prior versions of Chrome to generate and trust the self-signed cert.  However, after this I still get the ERR_CERT_COMMON_NAME_INVALID in Chrome 58.


How to add number of days into a given date in the format mm/dd/yyyy .  If my date is 9/12/2007, I want to add 30 days into the date and the result should be 10/12/2007.  I have many frequencies like Weekly, monthly, Every 2 weeks, Twice a month, Every 4 weeks, Once in 2 months, Every 3 months, Every 6 months, Every 3 months, Annually, etc.   If we  select the different frequencies from the list, the result should vary based on the frequency. Can anyone help me on this ?

I'm working with a date in this format: yyyy-mm-dd.  How can I increment this date by one day?


I recently encountered this following proposition:  For every polynomial, there is some positive integer for which it is composite.  What is the most elementary proof of this?

It seems like there is no polynomial with finite variables known, which could generate all prime numbers, by integer assignments. Is there a proof that such polynomial can not exist and does anyone have one in his/her stack?


I am currently working on a Encryption/Decryption exercise. Main functionality is done however it was done in console. Now I will create the application in win form.  My Encryption/Decryption methods take byte arrays as arguments. I used DES as per program specifications. I was population the byte arrays like this   //were mk is a string byte[] mkBytes = System.Text.UTF8Encoding.UTF8.GetBytes(mk);    However CreateDecryptor method was giving "Specified key is not a valid size for this algorithm" error.  Therefore to go around the problem I was forced to do this, hard code the whole bit array and worked fine.  byte[] masterKey_bytearr = { 0x12, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x23 };   But now I face the problem again since the user will be inputting the string in a textbox and cannot hard code them myself.  How can I get the string from textbox and assign it to a byte[] suitable for DES CreateDecryptor method?

How do I convert a string to a byte[] in .NET (C#) without manually specifying a specific encoding?  I'm going to encrypt the string. I can encrypt it without converting, but I'd still like to know why encoding comes to play here.  Also, why should encoding even be taken into consideration? Can't I simply get what bytes the string has been stored in? Why is there a dependency on character encodings?


For this problem $a,b,n\in\Bbb{Z},n\ge 1$  Prove that there exist integers $r,s$ such that $ar+ns=1$ if and only if there exists a non-zero integer $b$ such that $ab\equiv 1 \pmod n$  So far this is my proof: $(\impliedby)$ Assume $\exists$ a non-zero integer b such that $ab\equiv 1\pmod n$  (Want to show there exists integers $r,s$ such that $ar+ns = 1$).  By assumption, $n|ab-1\implies ab-1=ns$, where $s$ is an integer. I am not sure what to do next I see that I can get the $1$ on the right hand side but how do I bring in $r$ in the equation. Also because it is a biconditional proof I know I need to show the other way as well but I am stuck.

Isn't finding the inverse of $a$, that is, $a'$ in $aa'\equiv1\pmod{m}$ equivalent to solving the diophantine equation $aa'-mb=1$, where the unknowns are $a'$ and $b$? I have seem some answers on this site (where the extended Euclidean Algorithm is mentioned mainly) as well as looked up some books but there is no mention of this. Am I going wrong somewhere or is this a correct method of finding modular inverses? Also can't we find the Bézout's coefficients by solving the corresponding diophantine equation instead of using the extended Euclidean Algorithm?


Force is generally a function of $\mathbf{r}(t)$, $\mathbf{v}(t)$  and $t$. $$1-)\begin{cases} \mathbf F: \mathbb R^3\times\mathbb R^3 \times \mathbb R \  \rightarrow \mathbb R^3\\ (\mathbf r, \mathbf v, t) \longmapsto \mathbf F(\mathbf r,\mathbf v,t) \end{cases}$$   But I do't understand it . Because function from $\mathbb{R^7}$ to $\mathbb{R^3}$ I don't know how is that .    Can we conclude that $\mathbf F(\mathbf r(t),\mathbf v(t),t)=\mathbf F(t)$ ??

I know that :  Position $$r:\mathbb{R} \to\mathbb{R^3} \ \ \ \ \ ;  \overrightarrow{r}(t)$$  Velocity $$v :\mathbb{R} \to\mathbb{R^3} \ \ \ \ \ ;  \overrightarrow{v}(t)$$  Acceleration $$a:\mathbb{R} \to\mathbb{R^3} \ \ \ \ \ ;  \overrightarrow{a}(t)$$  Now i want to know that , what is function of force $F$ and work $W$ ?


Check or falsify: There is a $C^\infty$-map  $S^1 \to S^1 \times S^1$ that is surjective.  Comments: I think it's not true, because $\dim S^1 = 1$ and $\dim S^1 \times S^1 = 2$ but I do not know how to justify.

My professor was lecturing today and he made this statement which I was unable to verify.  (I worded it nicer)  There is no map which is both smooth and onto from $S^1$ to $S^1$$\times$ $S^1$.  When he said this he included the original "one can clearly see" statement which is usually when the most people seem to be confused in his class.  Thus, I was hesitant to ask why.  So, please no one lecture me on the fact that I should have asked anyway.  If it is really that obvious, I would rather look stupid here than in class :)


I wanted to know what hardware is installed in 8051 such that whenever i write a program it accepts it and execute it. My query is what happens at the hardware level whenever i feed a program to 8051.

I understand that binary is effectively functioning as a “virtual representation” of low voltage and high voltage. However, I do not understand how the instruction set to MAKE the voltage high or low is being executed. Within a computer, what is physically happening to change a circuit to a “high voltage state” or a “low voltage state”?  This is presumably the lowest level instruction set that exists within computers...and I’m not quite sure I understand how it is being implemented. What is making the circuit change between high and low voltage states...and, moreover, how are these instructions designed to ENACT such a change in voltage state actually being carried out?   This is like the “instruction set that proceeds all other instruction sets”...or the “instruction set that exists BEFORE binary instruction sets can even be formed”. How does one program a circuit to do something before a programming language even exists?  In other words: How does a computer chip convert the "text" or bits that make up the program into action? How does it read the code, decide what the code is saying, and then act on what the code is saying?


If $S$ is the set of all complex $n \times n$ matrices and for any two arbitrary $A$ and $B$ in $S$ we have $AB=BA$ then all matrices in $S$ have a common eigenvector. I can show the result for two digonalizable matrix. But I don't know how to show that for all matrices in $S$. Also there is no condition of being digonalizable in this question.

I've come across a paper that mentions the fact that matrices commute if and only if they share a common basis of eigenvectors. Where can I find a proof of this statement?


I've been trying to find this word for ages. It's on the tip of my tongue, but I can't find it. Here's a scenario:        Guy 1: Did you see that curve ball by that baseball player?     Guy 2: Yeah that was really well done!     Guy 3: I don’t understand a thing Guy 1 and 2 are saying. They are using so much _____      The blank part is a word that I can't remember.

If a word or phrase is used and has evolved its own meaning peculiar to a specific group, is this described as jargon or is there a closer semantic match?


Given that the convergent positive series \begin{eqnarray} \sum\limits_{n=1}^{\infty}a_{n} \end{eqnarray} prove the following positive series converges. \begin{eqnarray} \sum\limits_{n=1}^{\infty}\sqrt[n]{a_{1}a_{2}\dots{a_{n}}} \end{eqnarray} We see that the mean inequality$H_{n}\leq{G_{n}}\leq{A_{n}}\leq{Q_{n}}$,which defines as \begin{eqnarray} \dfrac{n}{\sum\limits_{k=1}^{n}\dfrac{1}{x_{k}}}\leq{\sqrt[n]{\prod\limits_{k=1}^{n}x_{k}}}\leq{\dfrac{\sum\limits_{k=1}^{n}x_{k}}{n}}\leq{\sqrt{\dfrac{\sum\limits_{k=1}^{n}x_{k}^{2}}{n}}} \end{eqnarray} so that we come to the conclusion \begin{eqnarray} \dfrac{1}{n}\sum\limits_{k=1}^{n}a_{k}\geq{\sqrt[n]{a_{1}a_{2}\dots{a_{n}}}}\geq{\dfrac{n}{\sum\limits_{k=1}^{n}\dfrac{1}{a_{k}}}}\end{eqnarray} And next step how to solve it?

If $\sum\limits_{n=1}^\infty a_n$ converges where $a_n>0,\ \forall n\in\mathcal N$, prove $\sum\limits_{n=1}^\infty \sqrt[n]{a_1a_2\cdots a_n}$ and $\sum\limits_{n=1}^\infty\frac{n}{\frac{1}{a_1}+\frac{1}{a_2}+\cdots+\frac{1}{a_n}}$ converge.  $\sum\limits_{n=1}^\infty \frac{\sum\limits_{i=1}^na_i}{n}$ diverges, so one can not use the bound of the GM-AM relation at least directly.


Can a maths undergraduate apply for a physics PhD without going into masters program? Given that during his undergraduate course he published a couple of papers on physics in respectable physics journals

Can I be admitted to graduate school in a different field from my degree?  Specific cases include:   If I've taken plenty of advanced courses in field X in the process of completing a degree in another field, can I apply to graduate school in X? What if I haven't taken many courses in X, but I have acquired a good grasp of X through self-study or working in a related field? What if I've never studied X, but I have done very well in an unrelated field?  Could I be admitted to graduate school in X on the basis of general intellectual promise, and then make up the missing background after enrollment?   Note that this question is an attempt to provide a comprehensive answer, to avoid the need for a profusion of field-specific questions on this topic (see the associated ). Please feel free to edit the question or answer to improve them.


I'm creating a learning module using html and jquery. It is a series of  situations that contain forms with dynamically generated 'select' elements and checkboxes. They are appended to id's on the dom on load through the following function:  For clarity: b=branch, s=situation, a=answers, t=type, l=label, f=form.  function appendAnswers() {   for (var i = 0; i <= data.length - 1; i++) {     if (data[i].b.indexOf(selectedBranch) !== -1 && data[i].s === situationToLoad) {       var checkBox = '' + data[i].l + '';       var select = '<option value="' + data[i].a[0] + '"> Select Answer </option><option value="' + data[i].a[1] + '">' + data[i].a[0] + '</option><option value="' + data[i].a[2] + '">' + data[i].a[1] + '</option><option>' + data[i].a[2] + '</option>';       (data[i].t === 'dropdown' ? $('#f' + data[i].f + data[i].q).append(select) : $('#f' + data[i].f + data[i].q).append(checkBox));     }   } }   The user selects their answers and then clicks on a check button to have their answers checked. This is an onclick even in the html that takes a form number as an argument.  Example: onclick="checkAnswers('3849')"  If correct, the background color is set to green, otherwise it is set to red using the classes 'correct' and 'incorrect'.  The check function is as follows:  function checkAnswers(formToCheck) {   for (var i = 0; i <= data.length - 1; i++) {     if (data[i].b.indexOf(selectedBranch) !== -1 && data[i].s === situationToLoad && data[i].f === formToCheck) {       var currentQuestion = data[i].f + data[i].q;       var selectedAnswer = $('#f' + currentQuestion + ' > option:selected');       if (data[i].t === 'dropdown') {         if (selectedAnswer.text() === data[i].c) {           $('#f' + currentQuestion).removeClass('incorrect').addClass('correct');         } else {           $('#f' + currentQuestion).removeClass('correct').addClass('incorrect');         }       } else if (data[i].t === 'checkbox') {         $('#f' + currentQuestion + '>.checkmark').removeClass('incorrect');         if ($('#f' + currentQuestion + '>input').is(':checked').toString() === data[i].c) {           $('#f' + currentQuestion + '>.checkmark').addClass('correct');         } else {           $('#f' + currentQuestion + '>.checkmark').addClass('incorrect');         }       } else {         console.log("Error: The answer's type is undefined!");       }     }   } }    My problem is that when I click the button to check my answers (only in IE, of course... :/) nothing at all is happening and I am getting no errors at all in my console. I logged incorrect/correct to the console and it seems that it working properly, but the 'correct/incorrect' classes aren't getting added to the elements. Have any of you dealt with an error like this before?  Thanks in advance!  *Edit was added variable for better legibility

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


I'm about to begin studying for the comprehensive examinations (comps) my masters program (Computer Information Systems) requires.  I'm curious as to the point of even having them in the first place.  I'm not concerned about whether or not I'll pass my comps.  I know that I will.  It just seems like a lot of wasted time in both preparation and the fact that I'll have to burn a precious day of vacation to take them.  I could understand if, as stated in another post regarding PhD programs, we were required to take them after our first year of the program as part of a larger weeding out process.  However, that isn't the case.  We're simply required to take them before graduation.  In four separate exams, we're tested on the four core courses for our program.  Didn't I pass those courses already?  Haven't I already earned a satisfactory/passing grade for each course?  Would someone please provide my ignornant mind with some insight into the possible reasons why?  It feels like double jeopardy...  Thanks!  EDIT: The exams are written by the same instructors who taugh the specific class I took.  For example, both Dr. Jones and Dr. Smith teach CourseX.  However, since I took Dr. Jones for that course, he is the person who wrote the comp for the course.  At least, that's my understanding of how they're written and by whom.  I apologize for leaving this nugget out.  I shouldn't write these questions while I'm sleep deprived...

If I were a Spanish Major as an undergraduate and decide to pursue a PhD in a completely unrelated field (like Theoretical Physics), it makes sense to give a qualifying exam to check that I had the necessary skills to begin the program.  But if I'm coming from a B.S in math to a PhD program also in math, it doesn't seem to make sense to give a qualifying exam, as if the knowledge I gained in my undergraduate was insufficient.  I presume that one is accepted into a PhD program because he/she has already demonstrated the "qualifying" skills.  Thus, I'm baffled by the notion of the qualifying / prelim exam.   I'm curious about the ultimate goals of these exams, and how they relate to the professional development of a graduate student.


Electric field lines never intersect. We know that. So closely spaced field lines mean a stronger field and field lines farther apart mean a weaker field.  How are we really sure that they never intersect? Can it be proven?

The the title is self explanatory, I guess.  Why can two (or more) electric  never cross?


I am trying to deep clone the objects. I got the code for deep cloning from a blog  which is working perfectly for me. I have parent object as opportunity and child object as Line_item__c. After clicking clone button i want to be redirected to edit page. So i replaced   return new PageReference('/' + headClone.Id);   With:  return new PageReference('/' + headClone.Id + '/e');   But now it is redirecting me to home page on clicking save or cancel from edit page. Rather i would like to go detail page(which is a custom page) of newly cloned record on clicking save and old record detail page on clicking cancel.Please guide.

Related:    I have implemented a wizard that sends the user to the standard edit page at the end of the wizard.  It's working wonderfully!  The only problem I'm facing is the next step.    According to , the standard edit action:     Navigates the user to the edit page for the record that is currently in context. After this operation is finished, the edit action returns the user to the page where the user originally invoked the action.   This means I'm being sent back to the wizard, when I'd really much rather be on the standard detail page.  Is there a normal way to do this?


It seems as though in the U.S./in English we have a million words to connote endearment to men(albeit in a somewhat strange way) that are used with varying degrees of gender neutrality. But I'm wondering if anyone has any traditionally feminine terms of endearment or terms of endearment traditionally used for women?

I commonly use the word 'guys' to refer to a group of males colloquially. It's colloquial but not rude, off putting, condescending, patronizing (though I wouldn't use it with a group of men at a board meeting (hypothetically of course), unless I knew them). So, some that I would not consider as replacements would be    buddies: too old-fashioned dudes: too informal boys: too patronizing men, gentlemen: too formal or false respect   I realized that I had also been using it for any group of people, males and females, even just females. It worked for me and I didn't think of the gender implications, that women might not care for it. No one ever complained, directly or indirectly (rule of life: sometimes people don't complain about things they should).   But it occurred to me (maybe by reading something that sparked realization) that the intended hearers might not all care for it.  What might be a female gendered or non-gendered version of 'guys'?  Some that I've considered don't feel right about (though these may be reasonable answers) are:   dolls: too old-fashioned babes: too informal  ladies: too formal or I've heard from women, too creepy women: too factual girls: too patronizing (as much as 'boys') everyone, you all: too bland y'all: perfectly non-sexist but too regional (might work, but not everywhere)   Hopefully I haven't eliminated all the possibilities -- any suggestions?


I already know how the Sun uses quantum tunneling to create nuclear fusion, but can't apply it to enzymes. Also, since I'm only in eighth grade, please use relatively simple language. Thanks!

The hydrogen protons undergo quantum tunnelling in the the sun to fuse into helium, but are only able to do so as they are under immense heat and pressure and the protons and electrons get separated. But our digestive system also makes use of quantum tunnelling to quicken the digestive process, but how do the enzymes free up the electrons when our body temperature is so low?


I a Multiple linear regression model, from published literature, I am implementing a spreadsheet to generate new predictions based on the published model. the literature stated Coefficients and the error in each as well as the RMS error. However to estimate prediction interval i need to know the matrix (X'X)^-1  Where X is a k+1 by N model matrix. and X' it the transpose of X  As per   (Slide 45)   So, I downloaded the training set of data from the supplementary data, and tried to make my own X matrix.  However, I have tried inverting (X'X) in both excel and R without success. Excel gives me garbage output while R gives me a singularity error. However, if I eliminate the "column of one's" from the X matrix making it an k by X matrix, now (X'X) inverts just fine.  Just to see what is going on, I've also tried feeding the training set of points into Excel's Linnest function as well as R's lm , and I get a model out of both with co-efficient s that are very close  to the published literature models. So this makes me think the matrix shouldn't have any issues like this.  Also note, the model has 5 quantitative and 1 qualitative dimension (with 42 possible results), so final model has 49 dimensions.  So I am wondering where I went wrong? why is my X'X matrix not invertible when I include the column of ones?   Thanks

Please see the model below (). The independent variables are properties of 2500 companies from 32 countries, trying to explain companies' CSR (corporate social responsibility) score.   I am worried about the VIF scores of especially the LAW_, GCI_ and HOF_ variables but I really need them all included in the model to connect it to the theoretical background the model is built upon. All variables are discrete numeric values, except the law LAW_ variables: they are dummies as to which legal system applies in the companies' country of origin (either english, french, german or scandinavian).    Amongst other articles, I have read  about dealing with collinearity. Often-suggested tips are removing the variable with highest VIF-score (in my model this would be LAW_ENG). But then other VIF-scores increase as a result. I do not have the proper knowledge to see through what is going on here and how I can solve this problem.   I have uploaded the corresponding data  (in SPSS .sav format). I would really appreciate somebody with more experience having a quick look and tell me a way to solve the collinearity problem without taking out (any or too many) variables.  Any help is greatly appreciated.  P.S. For reference, I am including a correlation table ():


I have trouble reading the elements inside a 2d array.  To contextualize, the user delivers an input like this:  7   1 2 3 1 2 4 3 5 4 6 3 7 5 6   Where the first digit is the number of next inputs (n in my code). And every next first digit is a course, and the digits that follow it are it's requirements (courses too). For example, course 3 needs courses 1 and 2 approved.  I need to count the occurrence of a String inside a 2D array but not considering the first element of each array (list1[i][0]). Also the first row list1[0] is not filled to make index call easier (that's why my function starts with i=1).  The problem is that it won't recognize the items that are inside the 2d array, so the count returns always 0. This is my function  static int count(String[][] list, String s, int n) { //n is the number of rows     int x=0;     for (int i=1;i<=n;i++) {         for (int j=1;j<list[i].length;j++) {             if (list[i][j]==s) {                 x++;             }         }     }     return x; }   The function actually works for an array defined like this:  String[][] list1= {{null},{"1"},{"2"},{"3","1","2"},{"4","3"},{"5","4"},{"6","3"},{"7","5","6"}};   Where, for example, count(list1,"1",7) returns 1 and count(list1, "3",7) returns 2.  But for the array where the inputs are saved as strings (list2), supposedly just like list1, the count returns 0.  The way I initialized the 2D array list2:   String[][] list2 = new String[n+1][];     String[] L1 = new String[n+1]; //just an auxiliary array     for (int j=1; j<=n; j++) {                 list2[j] = new String[n+1];                 L1[j] = sc.nextLine();                 list2[j] = L1[j].split(" ");             }   The weird thing is that if a call an array or an element of list2, it returns what is supposed to (for example, using the input above, list2[3]=["3","1","2"]) but the function just doesn't work.  I had the same problem with another homework, and it was related to adding arrays to another array, I couldn't solve it so I changed the way the inputs were saved, but now due to restrictions I have no other choice.  Any help will be appreciated

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


What is the fastest way (general method) to calculate the quantity $a^b \!\mod c$? For example $a=2205$, $b=23$, $c=4891$.

How do I efficiently compute $a^b\bmod c$:  When $b$ is huge, for instance $5^{844325}\bmod 21$? When $b$ is less than $c$ but it would still be a lot of work to multiply $a$ by itself $b$ times, for instance $5^{69}\bmod 101$? When $(a,c)\ne1$, for instance $6^{103}\bmod 14$?  Are there any other tricks for evaluating exponents in modular arithmetic?  This is being asked in an effort to cut down on duplicates, see  and .


I know that in mathematics, the relation a = 2b is called an equation.  Is the relation a > 2b still called an equation or is it called something else?

When talking about statements that two terms are mathematically (un-)equal (e.g., 1 = 1, 1 < 2, or 1 != 2), what is the correct notion for such mathematical statements? Are there special cases w.r.t. "mixed" relations like x <= y? Can some notions be used interchangeably?  It seems many online sources use "equation" and "inequality" but there is also a . Apart from personal posts in forums, I have not found any sources using "equality" in such a situation, yet. Systematically, I would think that "equation" and "inequation" would make more sense than "equation" and "inequality", but not everything (probably very few things) in natural languages have developed according to a purely logical system.  Note that this question is more general than  for that it particularly asks for the relation between the notion for equations and the one for inequalities. Equations are not part of the existing question at all.


I save my dates as datetime in my db (e.g. 2013-09-23 15:00:00).  When I create an object I call this date by  $event->start   When I just echo it, I get the right value but it is a string and no longer a datetime. That is why this won't work:  date_format('d-m-Y', $event->start)   To use date() I need a timestamp, which I don't have. What is a possible solution?  I tried this:  date_format(strtotime($event->startdate), 'd-m-Y')   But still getting 'Date_format() expects parameter 1 to be DateTime'  SOLUTION  $dt = new DateTime($event->start); echo $dt->format('d-m-Y');

I have a datetime column in MySQL.   How can I convert it to the display as mm/dd/yy H:M (AM/PM) using PHP?


Can anyone tell me when I should use either.  For example, I think I should use an IList when I want to access the .Count of the collection or an individual item, correct?  Thank you.

When I have entities in my domain with lists of things, should they be exposed as ILists or IEnumerables? E.g. Order has a bunch of OrderLines.


After installing Ubuntu Bionic Beaver, the right-click button of the touchpad stopped working.  Any fixes?  Thanks!

I'm experiencing a serious problem with the new Ubuntu 18.04:  System Dell XPS 13 with a freshly installed Ubuntu 18.04 LTS.  Problem description The touchpad provides only primary button (single click and double click), but no secondary button. In particular, when using the "test Your Settings" option in Settings -> Devices -> Mouse & Touchpad, any click on the touchpad is signaled as primary button, no matter where I click (left or right side of the touchpad). This remains the case even after I change the Primary Button from Left to Right (in Settings -> Devices -> Mouse & Touchpad -> General).  In comparison, an external mouse connected to my laptop (via usb) works fine: it provides both primary and secondary buttons with sides corresponding to the choice of Primary Button (in Settings -> Devices -> Mouse & Touchpad -> General).  This may be related to   Any ideas?  Update: Meanwhile, I found out that in addition to the solution proposed by EntropyWins, one can also control this touchpad behavior via the Tweaks tool (a.k.a. gnome-tweaks) under Keyboard & Mouse -> Touchpad -> Mouse Click Emulation. In any case, as EntropyWins explains in his answer, this is not a bug.


Here is what my Achievements dialogue looked like earlier today.   These three items were highlighted in blue: a +10 (one upvote on an answer), a +15 (three upvotes on a question), and a -1 (a downvote I cast).  The sum of these should be +24 (or possibly +19 or +14 if I had "seen" one or two of the question upvotes already).  How could these three sum to +1?  The browser window for this screenshot is >1200 pixels wide, so I don't think it's a compression issue where things are getting cut off, and it's an up-to-date latest release (44.0.2) of Firefox.   This seems like one of those things that will either be obvious to someone other than me right now, OR a real bug.

In the top bar, the green “achievements” number shows +14. But when I open the dropdown, I see four items totalling +20. Why does the total not match the sum of the items?    No lower entries were highlighted.


So today I was completing a few quests and after I cleared a dungeon out i wanted to trade with my follower but he wasnt there!I checked the WHOLE dungeon and no sign of him.I also dont have any quest which makes you have another follower.Also if I try to recruit another follower it just says I already have one.  Also im on PC and my follower was called Stenvar.I have tried the prid 000B998C moveto player command and it doesnt work.

I had parked my follower at an inn with a bunch of valuable items that I didn't want to carry. I guess I have been out a bit too long as this message appears:      Your follower tires of waiting and leaves.    There have been other situations where my follower has mysteriously disappeared as well.  How can I find my follower when they get up and leave or disappear into thin air?


Sorry if it's an obvious question, but here's the deal: I have a notebook with dual boot (Ubuntu 12.04 + Win7) and an extra NTFS partition for general storage.  I want to wipe out all of it and do a clean installation of only Ubuntu 16.04. How should I proceed? Just booting up Ubuntu Live DVD and choosing "Erase disk and install Ubuntu" will delete/format all my partitions and install a fresh Ubuntu?  TL;DR: I want to start from fresh and wipe all my partitions table (format and delete them) to install Ubuntu 16.04.

I have 2 partitions (Windows and Ubuntu 13.04) and I am asked which one to boot each time I turn on my computer.  I want to install Ubuntu 13.10 to the entire disk.  I do not mind if all previous Ubuntu/Win data are lost.  How can I do that?


This is a very basic question to illustrate an idea, but I'd be curious if I'm missing something. Let's say I have some positive natural numbers, $x,n,Q$ and I know the following: $x^3 = nQ$ and $x > Q$. Can we infer $x = fQ$, where $f$ is also a natural positive number? I'm not sure if there's a standard way to approach this, but my thoughts are this; we begin by not assuming $f$ a natural number, but note it must be a positive rational number. As it reduces to a positive number after multiplication by $Q$, then we express it as $f = P/Q$ where $P$ is also a positive natural number and $P>Q$. Then, we note $x^3 = (fQ)^3 = (P^3/Q^3)Q^3 = nQ$ and thus, $n = P^3/Q$. Now, if (P/Q) is a natural number, then we're done. But if not, then $P = mQ + a$, when $a$ is a natural number less than $Q$. It follows that $P^3/Q = n$ leaves a fractional term of $a^3/Q$, and thus the only way this can equate to a natural number is if $a=0$ and $f$ is a natural number. My two questions are (a) is this logic / proof outline correct, or am I missing something? and (b) Is there a clearer way to show this?

I think this is true because of prime factorisations, i.e.  If $3$ a factor of the prime factorisation of $q^3$, then $3$ is a factor of the prime factorisation of $q$.  Therefore If $3$ divides $q^3$, then $3$ divides $q$.  Or for a general case, if $n$ divides $q^3$; then $n$ divides $q$. Is this correct?


How can I type another word for the statement \while in the pseudo-code? Normally, it writes, While *some termination condition* do  and I want to change it to: DONGU: *some termination condition*  And here is the MWE: \documentclass{article} \usepackage[ruled,vlined]{algorithm2e} \usepackage{algorithmic} \begin{document} \begin{algorithm}[ht] \centering \begin{algorithmic} \caption{some algorithm} \label{alg:myalgo} \While {a termination condition bla bla}{     \STATE $do\;something $\;            } \end{algorithmic} \end{algorithm} \end{document}

I have a similar question as this :     How can I get rid of the do in a for loop and the then in an if   statement when typesetting algorithms using the algorithm and   algorithmicx packages?   but I want the same thing for algorithm2e package.  A minimal compilable example:  \documentclass[10pt]{article} \usepackage[linesnumbered,ruled]{algorithm2e} \SetKwRepeat{Do}{do}{while} \SetKw{KwGoTo}{go to}  \begin{document}  \begin{algorithm} \DontPrintSemicolon \KwIn{$A,B$} \KwOut{$C$} \While{$B > 0$} {      $C = C+1$;      $B = B-1$;     \uIf{$C > A$}        {            \textbf{break}\;        } } \caption{ABC} \end{algorithm}  \end{document}


I have a covered back porch.  Sloped roof attached to the house on one end and supported by four 4x4's which are cemented in the ground on the other end (I assume there are cement footers below the soil.  This was done by the previous owner). I want to remove the existing pavers and pour a concrete slab as my floor.  Are there any dangers to having it poured around the wooden posts holding up the porch roof?  Do I need to protect them somehow before the pour?

I would like to pour a concrete patio under my deck.  The concrete company said they would just pour the concrete around the posts with a expansion joint around the posts.  I thought that would cause water build up around the posts since the concrete would be on top of the existing footing and not allowing the water to escape.  Also, the existing footings are uneven, with greatest difference being close to 4", so I can't just pour the concrete to the top of the footings.  See the attached picture.  Any suggestions?


I've switched from C4D (getting too costly for a retiree) to Blender 2.8. I've created a simple scene consisting of the monkey atop a plane.  Why is everything in the viewport and eevee shaded in violet (see attached screenprint)?

I made a character, and its one of my first times texturing, and I saved my character into a new folder, and when I came back to the model ALL the textures were pink, I used to know what to do, but I stopped texturing, how do I bring my textures back?


I'm using an emission texture to use as a light, but it doesn't show anything. What could be wrong? When a put Render mode (cycles) doesn't work eiter. Light should be seen behind the TV. Thank you in advance

The closest I can get to making mesh lights affect their environment in Blender Eevee is giving them an Emission material and turning on "Bloom". But this isn't emitting proper light, it just looks like it is, but it doesn't light the surroundings whatsoever.     I would like to be able to light a scene with meshes without having to put point lamps everywhere just to make them emit light.


I see a lot of posts regarding people asking how to turn off memory compression, whether paging is a good idea etc, with the consensus reply always being that "Windows 10 knows best" and won't compress memory unless it needs to.  I bought a new laptop with 32gigs of ram, and I'd be willing to sign an affidavit in a court of law that the usage has never, ever gone above 19GB of ram, and only then whilst playing a game with a machine learning process training in the background.  Nevertheless, my "in use" and compressed memory right now is 15.GB (2.5GB compressed). Why is Windows compressing memory when it doesn't need to?  Multitasking is still fast, however when I resume some old open applications, it sometimes still takes a few seconds for them to become responsive.  I realize, based on prior discussions, that disabling memory compression, paging etc will most likely not fix this problem and will instead make the system unstable. I realize also that a lot of professionals actually believe that Windows 10 will only compress or page memory when it needs to.  I speak from experience that this is not true. Windows is compressing/paging memory when it does not need to, and when it has never, since its installation, reached close to its maximum capacity.  With this in mind, given infinite ram, is there any way to disable the delay when alt-tabbing to old processes that were never shut? To me this is a fundamental design flaw if there is no way to disable this delay, whatever the cause, if the user were in theory to have an infinite amount of ram, and Windows 10 would nevertheless compress ram anyway.

my former wrong assumption: it drains my notebook battery and I've no shortage of RAM. In Task manager you see ntoskrnl.exe is eating more CPU time than any other process. this feature does not appear to be optional and came 2 days ago with the 1st Win10 Update (Win10Pro in my case).  Edit:  I want to disable it, at least to exclude it as a culprit for my (unproven) assumptions. That process never came to my attention in the last 2 months and in task manager's long name it's called "system memory and compressed memory".


Seemingly ever since the Windows 10 Creators Update installed itself on my computer, I've been having issues when using the File Open/Save dialog. If I try and open a file, save a file, or upload a file to attach to an email, the application that I'm using will crash (whether it's Chrome, Word, Paint etc). Edge, however, works fine and weirdly, Firefox also works fine.  I have been doing some debugging, trying to figure out what it could be, but I'm running out of things to try.  I've tried the following:   Resetting folder views to default Enabling "Show all Folders" in Folder View Settings Starting computer in safe mode (where the dialog would work just fine)   I have also run some tests using MS Paint. I downloaded an application called DebugDiag 2, and had that watch the mspaint process to capture the exceptions thrown when the application would crash. These are the ID's of those exceptions:   0XC000001D 0XC000041D   Still using MS Paint as my test application, if I ran it as an adminstrator, I was able to use the File Open/Save dialog perfectly fine, but closing the application then reopening as a normal user would then end with the application crashing upon trying to open a file.  Another thing I've noticed is that when I first sign into Windows, I have about 30 seconds where I can open MS Paint, and be able to use the File Open/Save dialog just fine. After that time, if I close the dialog and then try to use it again, the application will crash.  I've read online that this issue is sometimes caused by the File Open/Save dialog trying to show a folder that no longer exists, or is on an unreachable network drive. So with that in mind, I have restarted my computer (getting that 30 seconds of grace when I first sign in) to be able to open MS Paint, and save a new file to my downloads folder, in the hopes that it would update the "last used folder". Unfortunately, this didn't solve the issue.  Is there anything else I can try?

In recent insider builds, lots of desktop apps crashes upon saving a file or browse for a file. The error is something as below  Unhandled exception at 0x00007FFA166E134D (shell32.dll) in Xamarin Workbooks.exe: 0xC0000005: Access violation writing location 0xFFFFFFFFFFFFFF8B.   Now I am using the Build 15063.14 with latest updates. This is really really frustrating as I cannot attach a file as attachment in outlook.com with Google Chrome or save a workbook in Xamarin Workbooks.  This error happens on both my machines which both run insider builds


When I launch Ubuntu 18.04.1 on my  desktop PC with Intel i915 graphics, I experience heavy eyes within 5-10 minutes, and after a few hours develop severe dizziness and sometimes headaches.  When I boot with Windows 7, it causes no strain at all, and I can use it for prolonged periods without issue.   I am part of a small but growing community at LED Strain () who experience these issues on most modern devices, games consoles, smartphones, even Smart TV apps cause problems. We believe there has been a change of rendering introduced (temporal dithering?) which may be the cause.  Does the Ubuntu desktop use any form of dithering, and is there a way to disable this as these extra artifacts on modern Operating systems are causing severe issues for a minority of users.  **  PC Make / Model - Acer Aspire AX3950 Graphics - Intel GMA HD Graphics Monitor -  (via HDMI) its best res is 1920X1080 @ 60Hz   Output of sudo lshw -C display:  *-display                            description: VGA compatible controller           product: Core Processor Integrated Graphics Controller           vendor: Intel Corporation           physical id: 2           bus info: pci@0000:00:02.0           version: 12            width: 64 bits           clock: 33MHz           capabilities: msi pm vga_controller bus_master cap_list rom           configuration: driver=i915 latency=0           resources: irq:26 memory:fb800000-fbbfffff memory:d0000000-dfffffff ioport:dc00(size=8) memory:c0000-dffff      Output of uname -a:  Linux paul-Aspire-X3950 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux     00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12)

Hi I saw lots of posts here regarding Ubuntu eye strain issue. But none could answer my question. I use Intel i5 processor, AMD radeon Graphics card.  When I use my Win 7, there is no issue with my eyes for long time, but as soon as I use Ubuntu for even less than 1.5 or 2 hours, it makes my eyes dull. It makes eye strain, causes dryness of eyes.  UPDATE :  When I try the xrand -r 120, it says that the refresh rate is not available for the size.  I use a sony vaio 15 inch led laptop


I am running an Ubuntu laptop which is connected to WiFi and is capable of accessing internet. There is my old desktop machine which do not have the WiFi card. So I connected my laptop to WiFi and configured a proxy server on this machine and connected the desktop and laptop via LAN wire.  Now desktop is set to use the proxy server on the laptop machine. Problem is that laptop considers the eth0 interface as default interface and wlan interface as secondary interface. So when I connect the LAN to laptop, it cannot access internet using the wlan interface but it tries to connect over the eth0 interface( I think). how to assign the wlan2 as my primary interface. I am not asking how to share connection but how to change default connection

I want to share the wireless Internet connection on my desktop with my old laptop, through ethernet.  I have ticked the option "Make available to others" on both connections, on my desktop, but my laptop doesn't connect. Am I doing something wrong or is it a bug?


I'm using an old build of Windows 10 (Version 1511 Build 10586.753, found through winver). I haven't received any updates because I disabled Windows Update in services.msc a while back, but I've since re-enabled it and have tried updating Windows. Windows detected that there were available updates and downloaded them, but when it prompted me to restart my computer to install the updates, it kicked me out of the update at about 30% to the Windows login screen.  I tried restarting my computer to re-try the update, but nothing happened and I went straight to the login screen again. I went into Windows Updates to check for updates, but it's not detecting updates for some reason (I've ensured Windows Update in services.msc is enabled and running). I thought it might not be detecting any because the latest version was already downloaded, so I used Disk Cleanup to get rid of Windows installation files. I rebooted and checked Windows Update again, but it's still not detecting any updates.  My laptop, which was also upgrading from this same build, also could not install the update properly. I ended up re-imaging my laptop, and was able to update from that, but my desktop has a TB of programs that I'd need to back up or re-download, so I'd prefer not to wipe it. What can I try to update my desktop without re-imaging it?

Windows 10 downloaded a big update not long ago and went through a lengthy upgrade process. Partway through the system locked up. The little progress spinner stopped spinning and it sat there for hours.  So I powered down, the system appeared to go through a recovery process, and then I checked for updates again. It says that "Your device is up to date", but the current version is 1511, build 10586.633. That version isn't current; version 1607 was released in August.  But whenever I check for updates, it says that the system is up to date.  Windows Update troubleshooter reports no problems.  How do I persuade Windows to install 1607?


I'm learning to develop with apache wicket, and I tried  to integrate Spring  this is the dependency into the pom.xml file  </dependency>         -->         <dependency>              <groupId>org.apache.wicket</groupId>              <artifactId>wicket-spring</artifactId>              <version>${wicket.version}</version>         </dependency>         <!-- spring dependency -->         <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-core</artifactId>            <version>3.0.5.RELEASE</version>         </dependency>          <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-context</artifactId>            <version>3.0.5.RELEASE</version>         </dependency>           <dependency>            <groupId>org.springframework</groupId>            <artifactId>spring-web</artifactId>            <version>3.0.5.RELEASE</version>         </dependency>   and this is the SpringIntegrationPage.java  public class SpringIntegrationPage extends WebPage {      private static final long serialVersionUID = 1L;     @ SpringBean(name="userModel")     private UserModel userModel;     public SpringIntegrationPage(){         add(new Label("namelbl", new PropertyModel<String>(userModel, "name")));         add(new Label("genderlbl", new PropertyModel<String>(userModel, "gender")));         } }     I get org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public com.beton.SpringIntegrationPage() Caused by: java.lang.NoClassDefFoundError: org/springframework/core/ResolvableType  org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public com.beton.SpringIntegrationPage()'. An exception has been thrown during construction!     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:194) ~[wicket-core-7.8.0.jar:7.8.0]     at      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) [catalina.jar:7.0.12]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) [catalina.jar:7.0.12]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [catalina.jar:7.0.12]     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562) [catalina.jar:7.0.12]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.12]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395) [catalina.jar:7.0.12]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250) [tomcat-coyote.jar:7.0.12]     at      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_45]     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:175) ~[wicket-core-7.8.0.jar:7.8.0]     ... 32 more Caused by: java.lang.NoClassDefFoundError: org/springframework/core/ResolvableType

I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this?


Something like "cannot monitor file system , run sudo tee 1000 |"..., but then it disappears before I can read the full message. Dropbox seems to work ok so not sure what this is about?

Dropbox gives me an error that mentions echo tee 100000 but then it disappears. How to fix or remove msg?


I created a mysql database. i have set characters to utf-8 and collation to utf8_general_ci. In database table the text is okay. But when i view it on webpage it looks like this "Ø§Ù„Ø³Ù„Ø§Ù". When i retrieve this code to my android app i am having the same problem.   php code (index.php)  $con = mysqli_connect("mysql.hostinger.ph", "db_name", "passwrd", "u242667358_test"); if (mysqli_connect_errno()) {     echo "Failed to connect to MySQL: " . mysqli_connect_error(); } mysqli_set_charset($con, "utf8");   php code (index.php)  require_once('db.php');  $query = "SELECT * FROM BalochiNames ORDER BY RAND() LIMIT 1";     mysqli_query($con, $query);   $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) {     echo stripslashes($row['BalochiName']); } mysqli_close($con);

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I have been given this circuit in a design guide and it does not make sense for such a complicated circuit to be implemented just to get 1.1V out.  It requires 3.3V (input) and will give 1.1V out. The 1.1V is used to run digital functions in the chip; so I can imagine it possibly pulling too much current. Can I not use a simple voltage divider to get the 1.1V?  This image was obtained from  (page 12).  EDIT:  This is related specifically to a system-on-chip (SoC) application.   I am trying to simplify the design without losing its functionality. Is the inductor necessary and all that.

When would you use a voltage regulator vs a resistor voltage divider?  Are there any uses for which a resistor divider is particularly bad?


I deleted the Ubuntu partitions from window seven then I restarted the machine but it wont start up but I cant get back to windows seven.Instead I get a no partition grub rescue> error.I cant even get to the bios options because when I immediately switch on the computer I get the error window.I can't do anything.I deleted the partition because I wanted to uninstall it from the dual boot the install it in a virtual box inside windows.The problem is that when I switch on my Toshiba satellite laptop I immediately get the error that there is no such partition grub error.I can't do anything but just look at the no such partition grub rescue on the black screen.

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


Is the function from $\mathbb{R}$ to $\mathbb{R}$ that maps every compact set to compact set and connected set to connected set continious?  I know that if the function maps only compact set (respectively connected) to compact (connected) it's not continious. I saw the counterexample. Is it also true when we take both properties?  Thanks in advance.

Greets   I came up the other day with the following question: Is it true that $f:\mathbb{R}^n\longrightarrow{\mathbb{R}^m}$ is continuous if and only if $f$ maps compact sets onto compact sets and maps connected sets onto connected sets?  I'm having trouble showing the "if", and I haven't found a counterexample to this part, so I would appreciate ideas to prove or disprove this.  Thanks


Similar to a previous questioner who did not appear to get an appropriate answer (being referred to a page that did not relate to his specific need) I wish to run a full 64bit version of Ubuntu 13.10 from my 64g USB3 stick. OK, I have actually done this, no problem.  But the issue is I would like to be able to boot from this large USB stick onto my UEFI laptop, running Win 8.1, which, of course won't recognise it without me changing the setup in a way that won't let me run Win 8.1 without changing the setup back again. Messy. I've already created a 'Live' 64bit Ubuntu 64bit 13.10 installation on another USB stick which I definitely know I could use to install Ubuntu onto a new partition on my UEFI - Secure Boot Win 8.1 machine. But I don't want to do that.  I simply want to run full Ubuntu from my large format USB stick on that machine - and I don't know a way of making that stick UEFI bootable at the same time as installing Ubuntu on it again (or diddling with the existing installation, if necessary). The problem is that I'm obliged to create any new installation on this stick via an old non-UEFI computer. I can't do it via my Win 8.1 machine. So I just to not get any option via the 'Something Else' installation method to choose EFI. Phew! Anybody know what I can do (apart from take a running jump)? David

If you are hurrying to reply, System → Administration → StartUp Disk Creator -- no, that's not what I'm talking about.   I want to try Ubuntu 11.04's Unity without touching my existing Ubuntu install.  To do this, I need to install the nVidia drivers first (sigh).  To do this, I need changes to persist a reboot.  To do this, I need to really install Ubuntu on a USB key.  How do you do that?    What I tried   I tried to make a USB key from , then boot from it, then choose "Install Ubuntu." The installer refused to install to the installation media itself. I tried, from my installed copy of Ubuntu:  sudo kvm /dev/sdb --cdrom .cache/testdrive/iso/ubuntu_natty-desktop-i386.iso   ...but the installer didn't detect the disk properly.


I am now working towards my PhD degree. In the very near future, I will have a citizenship change, which also leads to a name change. In detail, I am adding another given name to my current name with the original surname and given name untouched. So it's like going from  FirstName1 LastName   to  FirstName2 FirstName1 LastName   I already have some publications under my current name, FirstName1 LastName, which I do not wish to lose after my name change. At the very start of my PhD, my supervisor has advised me to stay consistent with the name for a better recognition in the field.  Is there a way to minimize my loss of recognition in the academia? Will the publication stats tools, such as Google Scholar, include my publications under my new profile?

My wife has publications under both her maiden name and her married name. How should she indicate that this is the case on her CV, if she wants to mention publications from both time periods?


Do I understand this correctly about a Level 1 Druid in 5e  with Wisdom modifier of zero, s/he can only prepare 1 spell despite having 2 slots from which to cast ?

I just want to make sure I have ALL of this correct.  Let's I'm a moon druid at level 3.     My druid has: 2 cantrips, 4 level 1 spell slots, and 2 level 2 spell slots.    Assuming a Wisdom of 16, I can prepare wisdom mod (+3) + level (3) per "instance" (before doing a long rest) which means that I can prepare 6 different spells.  I can choose any combination of 6 spells from the level 1 and 2 list since I only have level 1 and 2 spell slots.    I can cast the same spell as many times as I want (like I can cast goodberry (a lvl 1 spell) technically 6 times (4 level 1 spell slots, and 2 level 2 spell slots). The level 2 slots will increase the damage of course.   I could only cast spike growth (a level 2 spell) 2 times, because I cannot cast it as a level 1 spell.    I could do a long rest and re-prepare 6 more spells and my spell slots would all be refreshed.    Is this correct? Am missing something?


I've had few instances where my triple tap was aborted and the cooldown reset to 100 seconds. I couldn't find out why. What are ways the triple tap can be aborted?

This isn't about the level 20 ultimate talent.  There is a brief "arming phase" where Nova locks onto her target before shooting three bullets.  When something happens to her target during that phase (allied Devouring Maw, Divine Shield, etc.), sometimes Triple Tap is placed on the full 100 second cooldown, other times it is placed on a much shorter 10 second cooldown.  What triggers this 10 second cooldown?   Is this a timing issue?  I believe if she is interrupted after the shots start going out, Triple Tap is always put on the full cooldown.  Maybe I'm just seeing the ability get blocked right as the first shot goes out? Is this ability-specific?  Does stunning Nova have a different effect than a Devouring Maw or Void Prison on her target?  And is that different from a Divine Shield/Sanctification on the target? Is this determined by whether the line to the target was interrupted by an ally or an enemy hero?  For example, is there a difference between an allied Void Prison and an enemy Void Prison on the target?


This is a general question I had in years. When we want to declare possession, we use the apostrophe and the s.  For example: Bayern's best goalkeeper is Oliver Kahn.  What about the words that end with an s though? If I put the trailing s there, it doesn't sound nice to me.    If you have a better title in mind, please let me know.

What is the possessive of a noun ending in ‑s?  Are these both right, or is the second one wrong?   the boys' books the boss' car


I have two growth curve data sets, A (Martians) and B (Venusians). Data point sets of age (0 (birth) - 250 months, X axis) against height (0 - 200 centimeters, Y axis). The first set (A) contains 67 X Y point pairs, the second set (B) contains 27 point pairs. I have fit both data sets to my favorite version of the Logistic Equation using NonlinearModelFit. NonlinearModelFit returns estimates for my two independent variables: Increment, (N0), and Time Coefficient (k). Then following I invoked "ParameterTable" calculating: (1) Standard Errors (2) t-Statistics and (3) P-Values for both of the curve fitting exercises, Martians and Venusians. Of the three Parameters: Standard Errors, t-Statistics, and P-Values, which parameter indicates a better fit to an energy conservative logistic equilibrium? Standard Errors on the calculated Time Coefficients (k)? t-Statistics on the calcuated Time Coefficents (k)? My question, is growth on Mars more of an energy conservative mechanical process than growth on Venus? Are data sets with different numbers of point pairs directly comparable on Standard Errors, t-Statistics and P-Values?

I have two growth curve data sets, A (Martians) and B (Venusians). Data point sets of age (0 (birth) - 250 months, X axis) against height (0 - 200 centimeters, Y axis). The first set (A) contains 67 X Y point pairs, the second set (B) contains 27 point pairs. I have fit both data sets to my favorite version of the Logistic Equation using NonlinearModelFit. NonlinearModelFit returns estimates for my two independent variables: Increment, (N0), and Time Coefficient (k). Then following I invoked "ParameterTable" calculating: (1) Standard Errors (2) t-Statistics and (3) P-Values for both of the curve fitting exercises, Martians and Venusians. Of the three Parameters: Standard Errors, t-Statistics, and P-Values, which parameter indicates a better fit to an energy conservative logistic equilibrium? Standard Errors on the calculated Time Coefficients (k)? t-Statistics on the calcuated Time Coefficents (k)? Is growth on Mars more of an energy conservative mechanical process than growth on Venus? Are data sets with different numbers of point pairs directly comparable on Standard Errors, t-Statistics and P-Values?


I would like to show that if $G = \langle a \rangle$ with order $n$, then $\text{Aut}(G) \cong U(n)$.    I know that $\text{Aut}(G)$ is the group of bijections $\phi:G \rightarrow G$ under composition, but I don't know where to start.   Any help would be much appreciated.

I've tried, but I can't solve the question. Please help me prove that:  $\operatorname{Aut}(\mathbb Z_n)$ is isomorphic to  $U_n$.


I would like to know how I can address shortcuts for more than 4 workspaces in GNOME.   Unfortunately, I can only see 4 entries for the workspace 1-4 in the  keyboard settings.     I would like to switch to workspace 5 when I press  Ctrl+5. It already works for the Workspaces 1-4.  It is possible to create a new shortcut, but I don't know the command which I have to use.

I'm using GNOME Flashback (No effects) on Ubuntu 13.04 and I've got six workspaces however when entering System Settings -> Keyboard -> Shortcuts -> Navigation I only see options to address the initial four.  It used to be options up to 12 workspaces there and as I certainly don't need that much, I want to have at least enough for the amount currently active.  How can I restore or add more shotcuts specifically to navigate and move windows to workspace 5 and 6?


I'm having some trouble while searching files with find command and the way it handles the search.  Let's say I'm currently in the directory /tmp and the directory contains the files: backup-20151219.zip, backup-20151220.zip, backup-20151221.zip.  Then my search command is:  [root@server tmp]# find /tmp -type f -mtime +2 -name backup* -exec rm -f {} \;   And I get the following:  find: paths must precede expression: backup-20151219.zip Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]   That's because it matched the backup* regex and used it as the search pattern instead of using it to filter results. That I know.  If I change to another directory which does not contain files beginning with backup*, it shows the expected results.  So, I wanted to know if there is a way to search files using wildcards while being in a directory that may contain matches and show them as results.

Using find with grep, one can locate files that match a pattern:  # find | grep error ./solr-modifiedSolr4/SolrPhpClient/phpdocs/errors.html ./error_log ./includes/classes/error_log   However, using find alone the first file is not found:  # find . -name error* ./error_log ./includes/classes/error_log   Why doesn't find locate the errors.html file when not used with grep? How is find used to show this file as well?


I'm new to Jquery and I want to select ID in loaded div   My HTML page has div tag like this
   when document ready i loaded HTML page in to this div tag  $(document).ready(function () {         $("#customer_details_div").load("button.html"); });   My loaded button.html HTML like this
     <button class="btn btn-xs btn-info" id="edit_btn">
Edit
</button>
   so i need to write jquery function of on click button ,I wrote like this  $("#edit_btn").click(function (event) {     alert("clicked"));      });   but it's isn't work please help me to do this

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


I have 2 laptops, A and B, same OS (ubuntu 18.04). My gnome terminal tab titles on A always show current path in the tab, whereas B show it the one I tell it via the tt and ntt commands I discuss in . I have tried   echo -ne "\033]0;MY TITLE\007"'   and   PROMPT_COMMAND='echo -ne "\033]0;MY TITLE\007"'   and   gnome-terminal --title="MY TITLE HERE"   but nothing works, it keeps showing the current folder in tab title. Whereas on laptop B, the same commands work! This is a slightliy different question from , because none of the 3 techniques above work.   I remember fiddling around with this a few weeks ago, I must have put something in place that dynamically updates the title every time there is a new prompt, so when I try the echo -ne, it immediately gets overwritten. The env commands shows that there is no PS1 or PROMPT_COMMAND already in place.  Any ideas how to fix this so that echo -ne works again? Is there like a settings file for gnome terminal, it loads every time it starts?

I have several instances of terminals running in my working environment, what I would like is to set a specific title for each one, in order to have a clear idea what purpose the specific terminal serves i.e. Apache, editing_ini, postgres etc...  Of course from the command line.


Why I get      System.IO.FileLoadException: 'Could not load file or assembly   'Serilog, Version=1.5.0.0, Culture=neutral,   PublicKeyToken=24c2f752a8e58a10' or one of its dependencies.   When I try to load this assembly from out side project.      The folloing method is exist in a separate class library project, and I add reference of that dll to my MVC project.  public class LoggingConfig     {         public static void RegisterLog()         {             const string template = "{Timestamp:yyyy-MM-dd HH:mm:ss} [{Level}] {Indent:l}{Message}{NewLine}{Exception}";             var logger = new LoggerConfiguration()                          .MinimumLevel.Debug()                          .WriteTo.Seq("http://localhost:657")                          .CreateLogger();              // Configure PostSharp Logging to use Serilog             LoggingServices.DefaultBackend = new SerilogLoggingBackend(logger);         }       }

I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error:  System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)** at x.Foo.FooGO() at x.Foo.Foo2(String groupName_) in Foo.cs:line 123 at x.Foo.UnitTests.FooTests.TestFoo() in FooTests.cs:line 98** System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.203, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)  I look in my references, and I only have a reference to Utility version 1.2.0.203 (the other one is old). Any suggestions on how I figure out what is trying to reference this old version of this DLL file? Besides, I don't think I even have this old assembly on my hard drive. Is there any tool to search for this old versioned assembly?


President Nixon declared, "I am not a crook." President Nixon declared: "I am not a crook." President Nixon declared "I am not a crook."  Do you agree that using the comma and the colon in the sentece above is "completly pointless" as one of the many manuals dedicated to the problem of quotation marks asserts? According to this manual the first two sentences are the examples of "bad style".

Sam developed an annual sweepstakes promotion entitled “The Free Gas Punt Return Game”.    Do I need a comma after entitled or not?


Is there a way to somehow map an XML file to entities, so that I can use Entity Framework with XML file as the data source. XML file is very similar to a database anyway.

Can someone point me to a good tutorial explaining the Entity Framework using an XML file instead of a database? I have seen some good tutorials with SQL databases, but I can't make the leap to an XML file.  Thanks!


Im trying to create my JFrame like I do always but I don't know why it throws a java.lang.NullpointerException.  I read that it is because you didn;t asign a value, or null can;t be used as a value but I'm almost sure my code is written correctly.   Here it is:  import javax.swing.*;  public class Mathme extends JFrame {     JFrame home;           JLabel title;       public Mathme(){         home.setResizable(false);           !!!13!!!!            home.setLocationRelativeTo(null);                     home.setVisible(true);         home.setDefaultCloseOperation(EXIT_ON_CLOSE);         home.setSize(600,500);         home.setTitle("Pruebax1");     }          public static void main(String[] args) {         Mathme c = new Mathme(); !!!!23!!!     } }   And it throws exactly this:  ***Exception in thread "main" java.lang.NullPointerException     at mathme.Mathme.<init>(Mathme.java:13)     at mathme.Mathme.main(Mathme.java:23) Java Result: 1 BUILD SUCCESSFUL (total time: 1 second)***   I will put the number of the line which is referred there.

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


I am an undergraduate student from Bangladesh. Two of my posters have been accepted at Sigmod undergraduate research poster competition.  Now, I am looking forward to attend Sigmod. I will be receiving some travel grant from Sigmod to attend the event. However, the fund seems insufficient as the airfare from my country to US is very high.  Is there any external source where I can apply for travel grants or support of similar kind?  I am determined about attending Sigmod and I will be paying the rest of the costs by myself. So it would be really helpful for me if I get some support.   N.B. : I have already seen the post . However, I believe I need some more concrete answers. Thank you for understanding.  I have already asked the chairs for student volunteering and others. In this case, SIG and conference funding is basically the same. So I do not have the option to apply for SIGs.

I am an undergraduate student doing independent research. My research work is selected for presentation at a very reputed conference in the US. I am from India. I cannot afford to attend the conference at all. How should I fund my trip? The travel grant for students available from the conference is very low. It can hardly buy me a one way ticket. What are my options?


Is there a neat and tidy way of adding comments, or text boxes, into the display of the Graphical Modeller of QGIS 3.14 for a model that one is building. This is straightforward in ArcGIS ModelBuilder but I can't find a neat way of doing this in the QGIS process model building tool.

I want to explain my model step by step so anyone can easely understand what's going on. So, is it possible to write comments in the QGIS's Graphical Modeler?


In a KPA attack model, an adversary $\mathcal{A}$ has access to pairs of messages $(m_i,c_i)$ which are encrypted using some asymmetric algorithm. However, assuming either El-Gamal or RSA algorithms, an adversary $\mathcal{A}$ (can/have) access to the public key. So, $\mathcal{A}$ can encrypt any message of its choice. Which is the scenario in the CPA attack model. Now, my question is that is it necessary, or does it sound, to study the KPA security of an asymmetric encryption algorithm? I believe it does not sound, but as far as I search, I've found nothing related.  Regards

In asymmetric ciphers we publish the public key for anyone, which means an attacker can encrypt any message they want and compare the ciphertext and plaintext without communicating with the owner of the private key. So do known-plaintext attacks make sense for asymmetric ciphers, or are they only for symmetric ciphers?  Ps. What are all the attacks there exist for public key ciphers? (I know of chosen ciphertext and timing attacks.)


My aim is to back up my laptop so it is restored just like it was before, with all the files, apps, app data, themes, and settings. I'm afraid that if I only backup home then my themes and settings will not backup, and only my personal files will, is that true? I'm not very familiar with the filesystems yet...

No, this is not a , nor is it a solicitation on  to backup or  and only a little bit about Where to backup and When to do it.  This is basically a strategy question: what, where and when all together. "How" is not really relevant: there are tons of back-up programs out there and they all do the same basic thing: make copies of data.  But the real question is: are these back-up programs making copies of the data important to you?  How should you install&run Ubuntu while safeguarding your data?  There is no "one size fits all" when it comes to computers, Ubuntu versions or a backup strategy, therefore I've split this up into 5 basic user types with each their own answer:       (or you're running in UEFI mode!)   And as the above does not fit everyone, one for the impatient:   !    So click one of the above links and go to your user type!  P.S. If you're running a server farm and you've read this question so far, I'm sorry: this is about a single PC, not a network, nor a server farm.


Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


As you can see on this screenshot in the Dock there are two icons of TeamSpeak. If I want to launch it i just press the square one and then it "creates" the round one. So here is my question: Can I somehow make it into one (With this little orange line that says that it is turned on)?

I'm using Ubuntu 17.10 with GNOME shell and Numix-Circle icon theme.   When I hover over the Numix icon for Nightly Web Browser, which is pinned to the dock I get the title "Nightly Web Browser".      But when I launch the program, another icon pops up at the bottom, with the name "Nightly".


I don't want equations to be numbered in general, but I want to be able to reference specific equations and have them follow the theorem counter. For instance, in my example there are two equations within theorem 1.1, and I want the first one to be labeled 1.2 so I can reference it in the proof.  \documentclass{article}  \usepackage{amsmath} \usepackage{amsthm}  \newtheorem{theorem}{Theorem}[section]  \begin{document}     \section{Section}     \begin{theorem}         We have some equations         \begin{align*}         \label{first}             1 + 1 = 2,         \end{align*}         and         \begin{align*}             2 + 2 = 4.         \end{align*}     \end{theorem}     \begin{proof}         See \ref{first}.     \end{proof}     \begin{theorem}         I want this counter to be 1.3     \end{theorem} \end{document}

Is it possible to create a counter that is a "slave" to another (master) counter, but also an exact duplicate?  The \@addtoreset{<slave>}{<master>} resets <slave> whenever <master> is incremented (similar functionality is offered by ), but I don't know about anything incrementing one counter (<slave>) automatically whenever another counter (<master>) is incremented.  The idea is to have a macro (say) \dupcntr{<slave>}{<master>} as an analogue to \@addtoreset. The application for this might be where one is interested in renaming a counter used/provided by a package into something more meaningful for the user (say, <slave>), without having to reference <master>. Or, if the original counter contains @ that needs to be escaped every time it's used, it is sometimes more convenient to have a "more user friendly" counter.  I know one way around is to use a macro that returns the value of <master>, but is it possible to perform the same manipulation with a macro than one could with the counter? Manipulation here refers to the printing of the counter (via \the<slave>) and perhaps it's representation (like \arabic, \alph, ...).


I am programming a program which should have a plugin feature, so that the user could add own actions. My question is how I could do that. Which language would be best (e.g. php or javascript). I don't want binary plugins, because plugin making should be easy.  And if I use for example JavaScript: how could I use it to interact with my Java Application?

How would you implement a Plugin-system for your Java application?  Is it possible to have an easy to use (for the developer) system which achieves the following:   Users put their plugins into a subdirectory of the app The Plugin can provide a configuration screen If you use a framework, is the license compatible with commercial developement?


I'm trying to program a button that randomly picks a color from the color array and chooses between these four values, and the color will be given to a new element.  They're classes that are defined in css. It's not working properly though as I don't see the issue with what I'm doing.      <script>     var colorArray = [ '.st1', '.st2', '.st3', '.st4'];     var randomColor = Math.floor(Math.random()*colorArray.length);     </script>        <label>         Class: <input type="text" id="new-class" value="randomColor">       </label>    <button type="button" onclick="addObject()">     Make Ball   </button>   Can anyone see to what I'm doing wrong?

How can I change the class of an HTML element in response to an onclick or any other events using JavaScript?


I have already installed  powertop , pm-utils , laptop-mode-tool , jupitor  , also power save with jupitor , cpu-frequency skilling powersave , pm-powersave true but power usage are 1 hour and 20 minutes on 50 percentage of battery , at least 130 minutes in window seven .   Ubuntu 12.04.3 kernel 3.8  ,lenovo z400 ,ivy i5-3230 M ,nvidia 740m with Intel 4000.

Last year I purchased a Dell Inspiron 5315 laptop shipping with Windows 7 preinstalled. I installed Ubuntu 10.10 alongside it with dual-booting. On upgrading to Ubuntu 11.10, I was upset to find I now get less than one hour of battery life! Windows 7 gives me 2.5 hours of running time.  Is there any possible explanation why  my battery is running out faster with Ubuntu? Can anybody tell me better power options?


I am new to statistics and have run into some trouble understanding computing confidence intervals and am seeking some help. I will outline the motivating example in my textbook and hopefully someone can offer some guidance.   Example   There is a population of mean values and your goal is to figure out the true mean (as best you can). In order to accomplish this, a number of samples are taken, each of which has a mean value.   Next, because we know by the central limit theorem that as the number of samples increase, the sampling distribution will be normally distributed, we use the equation $z = \frac{X - \bar{X}}{s}$  (noting that in this case s = standard error) to compute a lower and upper bound taking each sample mean as the mean for the z-score equation and z-scores of -1.96 and +1.96, for example,  to compute a 95% confidence interval.   I’ve included a graph from my textbook in attempt to add clarity.    So I do not understand how it is you can use each sample mean as the mean value in our z equation to compute intervals. We know that the sample distribution is normally distributed so isn’t it the case that only the mean of all the samples can be used? How can we compute an interval around each mean value that contributes to the sampling distribution?  Any help with this would be much appreciated    Note: I'm reading "Discovering Statistics Using IBM SPSS Statistics 3rd Edition" by Andy Field and this example is from pg 43-45

I know roughly and informally what a confidence interval is.  However, I can't seem to wrap my head around one rather important detail:  According to Wikipedia:     A confidence interval does not predict that the true value of the parameter has a particular probability of being in the confidence interval given the data actually obtained.     I've also seen similar points made in several places on this site.  A more correct definition, also from Wikipedia, is:     if confidence intervals are constructed across many separate data analyses of repeated (and possibly different) experiments, the proportion of such intervals that contain the true value of the parameter will approximately match the confidence level   Again, I've seen similar points made in several places on this site.  I don't get it.  If, under repeated experiments, the fraction of computed confidence intervals that contain the true parameter $\theta$ is $(1 - \alpha)$, then how can the probability that $\theta$ is in the confidence interval computed for the actual experiment be anything other than $(1 - \alpha)$?  I'm looking for the following in an answer:   Clarification of the distinction between the incorrect and correct definitions above. A formal, precise definition of a confidence interval that clearly shows why the first definition is wrong. A concrete example of a case where the first definition is spectacularly wrong, even if the underlying model is correct.


My (Israeli) passport expires on 15/3/2018, and I need to fly from Israel to Germany on 10/9/2017 for 4 nights. I won't be able to renew my passport before the flight in the normal process, only in an express process which costs considerably more and is a greater hassle.  I have asked the Israeli ministry of interior and they told me that I'll be able to leave the country (and come back) as long as my passport is valid, even on the last day before it expires, but from my knowledge, international travel requires a passport that is valid for 6 months.  Will I be able to enter and leave Germany with a passport that expires in 6 months and a few days?

in order to visit.   According to , Germany is not among them, but  says "U.S. citizens traveling on passports that expire in fewer than six months have increasingly been denied airline boarding or been detained upon arrival in certain foreign destinations, including popular European travel destinations in the Schengen area."   echoes that.   The State Department's  says "Some Schengen countries assume all travelers will stay the full three months allowed for visa-free visitors, meaning you may not be admitted unless your passport is valid for at least six months, regardless of the duration of your stay.  This requirement may also apply if you are transiting a Schengen airport for several hours en route to a non-Schengen destination."  Is Germany one of those countries?  Assume a US traveler planning to go to Germany for a few days with a passport that will be valid for more than three but less than six months after the return flight, with the departure flight too soon to go through the routine renewal process and be confident that a new passport would arrive prior to departure.  Can the traveler wait until after the trip to do the renewal?  The  from the US State Department suggests the traveler can wait, but even that page is inconsistent about the number of blank pages required and the Embassy Messages link produces a 404 error, so the page is of questionable reliability.


I can't change the html, so is it possible to do something like (a href="") in css?  I saw that I can use jQuery to do it, but there aren't any specific classes for each slide, just a general class:

...

...

...

...

...

...

   Is it possible to do something like this:  figure.slick-slide-inner[alt="PLANOS"]{     /*and command to add link*/ }

I'm hand-maintaining an HTML document, and I'm looking for a way to automatically insert a link around text in a table. Let me illustrate:

123456

   I would like to automatically make every text in a TD with class "case" a link to that case in our bug tracking system (which, incidentally, is FogBugz).  So I'd like that "123456" to be changed to a link of this form:  123456   Is that possible? I've played with the :before and :after pseudo-elements, but there doesn't seem to be a way to repeat the case number.


I have a Windows 10 64 bit with 3gb ram laptop and I am trying to find the lightest version that can run on my pc without destroying or crashing it but where can I find that version?

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I want to get minDate from columnOne and maxDate from columnTwo. My solution is C# Class Library for SharePoint.  This is my code :   SPListItemCollection myItemColForTable = list.GetItems(myQueryForTable);   List<DateTime> minDate = new List<DateTime>();  List<DateTime> maxDate = new List<DateTime>();    foreach (SPListItem item in myItemColForTable)   {      minDate.Add(Convert.ToDateTime(item["DepartureDate"].ToString()));      maxDate.Add(Convert.ToDateTime(item["ReturnDate"].ToString()));   }   Where I'm wrong ?

I'd like something like  int minIndex = list.FindMin(delegate (MyClass a, MyClass b) {returns a.CompareTo(b);});   Is there a builtin way to do this in .NET?


I would like to run a regression to test a hypothesis that alpha = 0 and Beta = 1. I understand minitab or SPSS regression will test whether alpha or beta is 0.   How do I test whether beta is equal to 1 using either one of the softwares?   Without needing to do extra calculation or changing the equation, is there a way to do regression(to test beta=1) using either one of these softwares ? I understand it can be done with eviews. Any “tricks” available with SPSS or Minitab?

In R, when I have a (generalized) linear model (lm, glm, gls, glmm, ...), how can I test the coefficient (regression slope) against any other value than 0? In the summary of the model, t-test results of the coefficient are automatically reported, but only for comparison with 0. I want to compare it with another value.  I know I can use a trick with reparametrizing y ~ x as y - T*x ~ x, where T is the tested value, and run this reparametrized model, but I seek simpler solution, that would possibly work on the original model.