We are buying and selling a house.  Our new house closes one day before our current house closes, therefore we require a bridge loan to make the down payment. I would like to understand the risks involved and what questions I should be asking my banker or lawyer.  IE: I understand this is high-interest loan, meant to be short term. But is there a risk of the loan going beyond that one day and the potential to pay alot more interest than anticipated?  Thank you in advance!

I am looking to sell and buy a house. But with the current market being as crazy as it is (houses are selling fast for sometimes 150,000 over asking), I'm afraid if we sell first, we could be stuck without a new house. Or stuck settling on or over-paying for something and wishing we never sold at all. I'm wondering if it's possible to buy first. What is the best way to secure my next house before selling my current house without getting locked into a B-lender mortgage or risking too much?  I know there would be some risk putting an offer on a new house without knowing how much the current house will sell for, or the risk we don't sell the current house before the new house closes. I'm also afraid conditional offers will not be considered. Are there any other options?  (We do have a mortgage on the current house, but because the market has gone up so much there is also a good chunk of equity.)


I am trying to write a proof for-  show that if [b] and [c] are both multiplicative inverses of [a] in Zn, then b congruent c (mod n)   I don't know a lot about multiplicative inverse proofs and any help will be appreciated.

This is my first time posting on Math exchange. I have been self-teaching myself Mathematics and recently started learning some Algebra. I was posed the following questions, in which I would like to answer before I proceed, but having some trouble finding proper solutions. So the format will be question, and my answer.      What name do we give an element $a \in \mathbb{Z}_n$ that has a multiplicative inverse?   A modular multiplicative inverse of an integer $a$ is an integer $x$ such that $ax \cong 1 (\mod m)$. This means that the remainder after dividing $ax$ by integer $m$ is equal to $1$.      Give an example, for some $n \in \mathbb{N}$, of an element of $\mathbb{Z}_n$, that does not have a multiplicative inverse?   This question is throwing me off because - does the $n$ we speak of matter for both $n \in \mathbb{N}$ and $\mathbb{Z}_n$ ot solely $n$? My guess here would be $0$ because we cannot have an inverse of $0$.      Prove that multiplicative inverse are unique; an element $a \in \mathbb{Z}_n$ cannot have two multiplicative inverses.    Suppose that an element $a\in\mathbb{Z}_n$ has an inverse $a'$. Next, suppose that $a^*$ is also an inverse of $a$. Then, $a'$ is a solution to $a \cdot_n x=1$, and similarly $a^*$ has a solution to $a \cdot_n x=1$.   Lemma: Suppose $a'$ is multiplicative inverse of $a$ in $\mathbb{Z}_n$, then for any $b \in \mathbb{Z}_n$ the equation $a \cdot_n x=b$ has a unique solution, such that $x = a' \cdot_n b$.   By Lemma, equation $a \cdot_n x = 1$ has a unique solution, namely $x=a'=a^*$. Therefore, an element $a\in \mathbb{Z}_n$ cannot have two multiplicative inverses.    Thank you for the help. I would love any constructive feedback for these. If you can help me elaborate on some ideas, that would be really helpful also.  Thank you very much!


Why is "has" correct in Sentence 1 and "have" correct in Sentence 2?        Earth has soil.   Mars doesn't have soil.

Sometimes, especially on this forum, I am wondering wether I should say "what does it mean" or "what does it means" ? And should I say "it means that..." or "it mean that..." ?


I have been assigned this homework problem and I'm having trouble figuring out how to prove these statements.  If $n_1,\dotsc,n_k\in${$6z+1\mid z\in\mathbb{Z}$}, show that $n_1n_2\cdot\cdot\cdot n_k\in${$6z+1\mid z\in\mathbb{Z}$}.  Next, show that {$6z+5\mid z\in\mathbb{Z}$} contains infinitely many primes. (Without using Dirichlet's Theorem).  Thank you in advance!

There should be infinitely many primes of the form $5+6n$. How do you prove it? The same should be true for $7+6n$.


I am an American studying abroad in Germany, but I want to spend up to 90 days as a tourist in Spain following the end of my program and the expiration of my residence permit.   I entered the Schengen zone on the grounds that I have US citizenship and can therefore enter without a visa and stay in Germany for up to 90 days while applying for a residence permit. However, I do not know if the two months that it took me to officially receive my residence permit count as ~60 out of the 90 days. I do know however that time passed within the period of the res permit does not count towards the 90 days, as other posts have pointed out.  The main thing I want to know is if my residence permit retroactively covers that two-month period that passed before I officially received it (I was already applying for it upon arrival, but it got delayed and so the sticker in my passport officially says the term is March-June, even though I arrived in January). If so, I would have never started an 180 day cycle and can therefore just make a stop in the UK and get a re-entry stamp to Spain to begin my 90 days as a tourist.

I have a 1-year residence permit from one Schengen country that is now expiring. Upon its expiration, I would like to get my 90/180 days validity as a tourist to stay, or return here as soon as possible.  I understand that the tourist short-stay scheme is based on the 90/180 days "counter". But what happens if my previous stay was not tourism but residence (as searching year). Wouldn't that mean that I can quickly exit and re-enter the Schengen area to activate my tourist stay?   Also, is there a way to change this purpose of stay without exiting the Schengen area?


I am getting ORA-00928: missing SELECT keyword error. I have SELECT * from dual. insert all  into appointment(app_id,pat_iddd,doc_idd,nurs_idd,dateetime) values('AP001','PR001','D0002','STF001',TO_DATE('2020-02-03 09:28','YYYY-MM-DD HH24:MI')) into appointment(app_id,pat_iddd,doc_idd,nurs_idd,dateetime) values('AP002','PR002','D0001','STF001',TO_DATE('2020-05-01 07:22','YYYY-MM-DD HH24:MI')) into appointment(app_id,pat_iddd,doc_idd,nurs_idd,dateetime) values('AP003','PR003','D0003','STF002',TO_DATE('2020-12-03 19:36','YYYY-MM-DD HH24:MI')) into appointment(app_id,pat_iddd,doc_idd,nurs_idd,dateetime) values('AP004','PR004','D0004','STF002','TO_DATE(2020-12-01 01:25','YYYY-MM-DD HH24:MI')) into appointment(app_id,pat_iddd,doc_idd,nurs_idd,dateetime) values('AP005','PR005','D0005','STF002',TO_DATE('2020-08-11 03:11','YYYY-MM-DD HH24:MI')) SELECT * FROM dual;


I googled, but it ignore the "%". all about pid. My system is macOS. Here's the code: cat /usr/local/var/run/php-fpm.pid #I got this. 7260%   #When I use vim open it. only have text "7260" 7260  Could you tell me why ? Thank you very much.

I've noticed this on occasion with a variety of applications. I've often thought it was because the output was cancelled early (ctrl+c, for example) or something similar, and zsh is filling in a new line character. But now curiosity has gotten the best of me, since it doesn't seem to do this in bash.   zsh    bash    The Sequence program is something I pulled from a book while reading on Java certifications and just wanted to see if it would compile and run. I did notice that it does not use the println() method from the System.out package/class. Instead it uses plain old print().  Is the lack of a new line character the reason I get this symbol?


I have a similar problem to the person in this post:  I don't see the Minecraft folder in Application Support. Does anyone know where the folder can be located?

I'm having a really, really hard time figuring out how to install mods on Minecraft. I've looked everywhere I can think of for help but the information is almost always outdated or unhelpful.  I've seen on several sites about the use of something called Forge. The Mod I want to use requires 1.6.4 Forge and I have both Forge and the Mod folders sitting in my downloads folder.  I haven't installed any kind of mods for any game prior to this and I have little clue to the technical side of Minecraft, so please keep this in mind when you give me an answer please!  Things that might help you figure out how to help me:   I want to play this mod  and am using the 1.6.4 Forge given on a link that website gives


I'm interested to know in which case I should create a primary key on multiple columns and why ? To be more specific about my question, I want to know  what are the advantages and disadvantages of primary key on multiple columns in terms of performance. I did some research and found  where someone is saying  Another good question is SHOULD a primary key be multiple columns. :) – Sonny Boy Nov 17 '09 at 17:31 Well, that's a different question, and the answer is NO, NOT EVER, AND IF YOU DO I WILL HUNT YOU DOWN AND HURT YOU. Just a personal preference, of course :-) – Stu Dec 4 '09 at 16:46  Despite the joke, there should be some good reason on why one shouldn't use primary key on multiple columns but I couldn't find any answer.  I was wondering about this because I have a concrete problem. Consider the following table: CREATE TABLE IF NOT EXISTS `user_travel_data` (   `id` int(10) unsigned NOT NULL AUTO_INCREMENT,   `id_user` int(10) unsigned NOT NULL,   `day` date NOT NULL,   `origin` varchar(8) NOT NULL,   `destination` varchar(8) NOT NULL,   `data` varchar(255) NOT NULL,   PRIMARY KEY (`id`),   UNIQUE KEY `ukey` (`id_user`, `day`, `origin`, `destination`) )   In this table, for each user I have some data for each day and for each  travel from origin to destination. I need this table because it's very easy to use WHERE clause on it. However, the numbers of line in this table are just insane. Usually, a user has ~50 origins and ~100 destinations. With 30 days filled & 200 users, there's ~30 million lines in my table. Because each user has around ~150000 lines, I had to create some tools for them to edit/delete/add lines in group. And, because of these tools, users tends to delete old lines and create a whole bunch of new lines. This leads to a very fast increase of my primary key. While it is not a problem now, it could be one pretty soon. So, since I don't use the id on this table, I was wondering if I could do something like : PRIMARY KEY (`id_user`, `day`, `origin`, `destination`)   is also quite useful but didn't help with my problem

Let's assume you have a table groups and a table item. Each item belongs to exactly one group. It is an inherent part of that group. An item cannot exist outside of a group and it cannot be moved to another group.  When trying to decide on a primary key for the item table, what should I use?  Should I make up an artificial global serial key like this:  CREATE TABLE items (     item serial PRIMARY KEY,     group integer NOT NULL REFERENCES groups(group), );   ... or should I rather use a composite key and per-group item serial like this:  CREATE TABLE items (     group integer NOT NULL REFERENCES groups(group),     item integer NOT NULL,      PRIMARY KEY(group, item) );   The reason why I'm leaning more towards the second solution is that the post URL will always show the group and item, so it makes sense to have both of them as the composite primary key. In case of the first solution, the URL contains superfluous information because the group ID can already be deduced from the item ID alone. The URL structure is given, however, and cannot be changed.  The disadvantage of the second solution is that you have to manage a per-group serial (i.e. each item integer should start from 0 for each group).  What's better in terms of best practices, normalization and performance? Or is it simply a matter of taste?


I would like to create a custom message when user did unexpected error it should show this message  Invalid parameter please enter correct values . It should not show this message.   The website encountered an unexpected error. Please try again later.  I would like to create    try {     ...      }       catch{         Invalid parameter please enter correct values;     }   please help with simple example

In /core/includes/errors.inc, when there is a fatal error it outputs a response with the message "The website encountered an unexpected error. Please try again later." and a back-trace, if error_level is set to verbose, and without the back-trace otherwise.  It seems like at this point, there's no way, with an event subscriber to capture the response and alter it.  Is that correct?  Or is there a way to wrap the output from line 268 of errors.inc in Drupal 8.4 with markup?    Note, there's another , but that doesn't offer a complete solution.  Also, I looked into .htaccess and Apache ErrorDocument directive, but that . Once Apache passes off to PHP, it can no longer use that directive.  That's for real server errors.


I was trying to install JRE on my 64-bit ubuntu 10.04 installation.  Just to be sure that that is what I really want, I need to run a .jar file.  I downloaded java from this .  Then I chose linux x64 and downloaded the tar file, I extracted it and tried to compile the source code but had the error.  I don't know whether I downloaded the wrong file or I ran the wrong commands in the terminal  After I changed directory using the cd command to the extracted directory, I tried  ./configure    but I got this error:  ./configure: command not found     I know that there is an easier way to install java but I just want to understand how to install an application from source in linux as it seems that I will face this problem in the future.  Thanks in advance

I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle?  Before release Java 7, I followed  to install Java 6.  But it doesn't work for Java 7. There is no package sun-java7-xxx. How can you install Java 7?


can you please explain why really i need use interface instead  of  directly declaring and implementing method inside of Class. Above i have two example. Class with interface and without.  Thanks in advance.       EXAMPLE1 Why i should  use this   interface ISampleInterface {     void SampleMethod(); }  class ImplementationClass : ISampleInterface {     // Explicit interface member implementation:      void ISampleInterface.SampleMethod()     {         // Method implementation.     }      static void Main()     {         // Declare an interface instance.         ISampleInterface obj = new ImplementationClass();          // Call the member.         obj.SampleMethod();     } }      EXAMPLE2  why i shouldn't use this   class ImplementationClass     {         void SampleMethod()         {             // Method implementation.         }          static void Main()         {             // Declare an interface instance.             ImplementationClass obj = new ImplementationClass();              // Call the member.             obj.SampleMethod();         }     }

I understand that they force you to implement methods and such but what I cant understand is why you would want to use them. Can anybody give me a good example or explanation on why I would want to implement this.


/usr/bin/env: ‘node\r’: No such file or directory   I keep receiving this output when i try to run something.  Any ideas on how to fix this?

I have this script:  echo $HOME cd $HOME cd / cd /usr/local/src/   When I run it like this  . script.sh   I get this output:  /home/user : No such file or directory : No such file or directory : No such file or directory   If I run it normally (I added #!/bin/bash before the first line)  sh script.sh   I get this output:  : not found.sh: 2: script.sh /home/user script.sh: 3: Can't cd to /home/user script.sh: 4: Can't cd to / script.sh: 5: Can't cd to /usr/local/src/   The script was run from $HOME directory each time. If I run each command one by one from shell, it executed without problems (invoking cd $HOME from within $HOME simply didn't change directory).  What must I do to make this work?


What is the LaTeX command for this font style shown in the following picture:

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


I always thought that blood is necessary to perform the summoning jutsu. However, I saw the second Mizukage and Madara performing it while being , so is it really possible?

In Naruto, I have seen that to create summoning contract and to use summoning jutsu, the user uses their own blood.  Why is this required? What is the significance of using blood here?


Mo Salah's goal against Manchester United was not awarded offside. Plz tell me why as I did not understand it clearly.

While watching the Liverpool vs Manchester United Premier League game in January 2020, I got confused on the offside rule when Salah scored a goal.  Salah was well offside when Allison passed the ball to him. I'm confused as to how that is not an offside. I thought it won't be offside when goalkeeper passes the ball only when it's a goal kick, but it wasn't a goal kick, Allison got the ball in open play after deflecting from one of the Manchester players.


Different sources are giving me different formulae for combining relative uncertainties. One tells me to simply add the relative uncertainties together to get the combined uncertainty while another gives me this formula. $ \sqrt{(\delta x/x)^2+ (\delta y/y)^2} $. Which is the correct method?

1) Up until now, during practical work sessions, I always used these formulas for uncertainty propagation:  if $C = A+B$  or  $C = A-B$ $$\Delta C = \Delta A + \Delta B$$ if $C = AB$ or $C = \frac{A}{B}$ $$\frac{\Delta C}{C} = \frac{\Delta A}{A}  + \frac{\Delta B}{B}$$ if $C = A^m$ $$\frac{\Delta C}{C} = |m|\frac{\Delta A}{A}$$   These formulas are derived from the expression for the differential of a function of multiple variables:  if $C = f(A,B)$ $$ dC = \frac{\partial C}{\partial A}dA + \frac{\partial C}{\partial B}dB \Rightarrow \Delta C = \frac{\partial C}{\partial A}\Delta A + \frac{\partial C}{\partial B}\Delta B$$  and I think that makes sense because the value C is just a function of two variables that happen to be measurements.  2) But this morning, I was told that this is wrong and I should actually use these instead:  if $C = A+B$  or  $C = A-B$ $$(\Delta C)^2 = (\Delta A)^2 + (\Delta B)^2$$ if $C = AB$ or $C = \frac{A}{B}$ $$\left(\frac{\Delta C}{C}\right)^2 = \left(\frac{\Delta A}{A}\right)^2  + \left(\frac{\Delta B}{B}\right)^2$$  which are apparently derived from a general formula:  $$(\Delta C)^2  = \left(\frac{\partial C}{\partial x_1}\Delta x_1\right)^2 + \left(\frac{\partial C}{\partial x_2}\Delta x_2\right)^2 +   \hspace{0.3cm}...$$  or   $$\Delta C  = \sqrt{\left(\frac{\partial C}{\partial x_1}\Delta x_1\right)^2 + \left(\frac{\partial C}{\partial x_2}\Delta x_2\right)^2 +   \hspace{0.3cm}...}$$  3) So:   Why is this formula better?  Where does it come from? What does it actually represent? (Do I recognize the shape of a norm in that last formula?)  What is wrong with the formula of the differential?   I'm asking a lot, but the propagation of uncertainty always confused the ship out of me.


HTML CODE:  <!DOCTYPE html>   <meta charset="UTF-8" /> <title>Practice</title>  <link rel="stylesheet" href="my.css" />
Practice Page

click on ^ to show am alert().

Put your mouse here to make every paragraph red &lt;p&gt; get the class highlighted
   I have imported a jquery file already with another  which isn't included here, and my current javascript code is as follows:  head = function() {   alert("I'm a heading"); }  redtext=function(){     $('hoverable').attr("#hoverable","#highlighted");  } setup = function() {   jQuery('h1').click(head);   jQuery('p').mouseover(red);      } jQuery(document).ready(setup)   With my css code being:  .highlighted {   color: red; }   I'm trying to make it so when ever i highlight over the hoverable id, all the paragraphs turn red, so the new id would be highlighted for all the paragraphs,  I tried changing the id, but i can't seem to get it to work

I need to change an element's ID using jQuery.    Apparently these don't work:  jQuery(this).prev("li").attr("id")="newid" jQuery(this).prev("li")="newid"   I found out that I can make it happen with the following code:  jQuery(this).prev("li")show(function() {     this.id="newid"; });   But that doesn't seem right to me. There must be a better way, no? Also, in case there isn't, what other method can I use instead of show/hide or other effects? Obviously I don't want to show/hide or affect the element every time, just to change its ID.  (Yep, I'm a jQuery newbie.)  Edit I can't use classes in this case, I must use IDs.


I have no clue what is going on, all of my other repos update just fine except these two. Upon visiting the links in my browser, they appear as text, as they should.     EDIT: The error is this: Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) THESE ARE THE ONLY TWO PACKAGE ARCHIVES RECEIVING THIS ERROR.  I am on a mobile connection, which does have a transparent proxy, but I am tunneled on a VPN while doing this.  I have already cleared /var/lib/apt/lists to no avail. Any help is greatly appreciated, Walaryne

So I am on my college network which requires me to sign in to the browser before I start using the internet. I do so succesfully but on a clean install of Ubuntu, when I try to do sudo apt update, I get the following output:  $ sudo apt update Get:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease [2,847 B] Err:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease                     Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [2,854 B]     Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease              ... Get:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [2,855 B]    Err:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease ... Get:4 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [2,857 B] Err:4 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Fetched 11.4 kB in 0s (18.3 kB/s) Reading package lists... Done E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) ... E: Some index files failed to download. They have been ignored, or old ones used instead.   But when I do wget http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease, I get this output success:  2017-04-01 05:34:57  http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Resolving in.archive.ubuntu.com (in.archive.ubuntu.com)... 91.189.88.162, 91.189.88.149, 91.189.88.152, ... Connecting to in.archive.ubuntu.com (in.archive.ubuntu.com)|91.189.88.162|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 246846 (241K) Saving to: ‘InRelease.3’  InRelease.3         100%[===================>] 241.06K   110KB/s    in 2.2s      2017-04-01 05:35:00 (110 KB/s) - ‘InRelease.3’ saved [246846/246846]   Clearly I have internet access from my browser and on wget but when I do sudo apt (or apt-get) update I get this error.  PS: This question is not similar to other threads as their solutions do not seem to work on mine        As I have found out, this problem is happening only to me, not others on the college network. Despite setting up the network according to instructions, this still happens. Any more help would be appreciated  EDIT: So as it turns out, 50% of us in the college are facing this issue, while 50% aren't despite having no issues with the hardware and sudo apt update before the last week. Thanks to @David Foerster for helping me throughout all this time.  As it stands, the issue has been raised to our college's networking department :)


beginner here. Somehow I managed to reduce the camera view to this little square. How can I make it so the bounds are bigger? I've tried changing render dimensions,  focal length and camera sensor size, but this seems to only change the ratio. Simply scaling the camera does not work either.   Thnx

Please let me know how to change the size of the camera view. The red dotted line of the square is too small for me.


New York Times’ article written by Scott Schieman,  et al under the headline, “When Leaning in doesn’t pay off” starts with the following sentence;      “Why do women not have as many leadership roles in the workplace as   men do? Some have pointed to internal barriers, suggesting that the   problem is partly attributable to something about women themselves,   they are not “ambitious enough” at work, or are deeply committed to   work but too hesitant to climb leadership ladders in organizations. -   - - Sheryl Sandberg, in her now famous phrase, would have women “lean in,” to be more assertive at work and not let biases keep   them from pushing forward. By leaning in, women would obtain more   authority.       To understand the claims embedded in the “lean in” hypothesis, we   need to know why, when or how women decide to pursue positions of   authority in the workplace."   As I haven’t read Sheryl Sandberg’s book, I don’t know what she means by “lean in.”   Unfortunately none of Cambridge, Oxford, and Merriam Webster Dictionary includes “lean in” as an idiom, though all of them carry “lean on sb. / stg.”  What does “lean in” means? Does it mean stronger devotion to the work? In what instances is 'lean in' used as an idiom? Is “lean in” a neologism with specific implications /purposes invented by Sheryl Sandberg?   By the way:  Sheryl Sandberg’s ‘Lean In” is translated into Japanese by Yuko Kawamoto et al, published by Nihon Keizai Press, one of Japan’s leading newspapers known by the financial term, 'Nikkei Index' and a publisher recently, and widely read by Japanese businesswomen and men. It's becoming a best-seller.   The title and the word, ‘Lean In’ of the Japanese version are translated as “Make a step forward.” However, I wonder if “Make a step forward” exactly fits what Sandberg intends to convey and what you perceive with this word.   To me "lean in" and "make a step forword"- there's the axiom in Zen, 'Make a stepfoward at the end of a cliff to get Satori (spiritual enlightment) - sound different as a physical action or posture, setting aside the state and level of mind.

There's a book entitled .   It's not clear what exactly phrasal verb Lean in in it's title means. Does its meaning differ from the meaning of the verb to lean in the context of the book's name?


I want to find the determinant of  $$  \begin{pmatrix}  1/(n+1) & 1/n & \cdots & 1\\   1/(n+2) & 1/(n+1) & \cdots & 1/2\\  \vdots & \vdots & \ddots & \vdots\\  1/(2n+2) & 1/(2n+1) &  \cdots & 1/(n+2)  \end{pmatrix}.$$  More preciesly, I hope to show that this matrix has a nonzero determinant. How I prove this?

What is a smart way to see that $$A\stackrel{\cdot}{=} \begin{bmatrix} 1/2 & 1/3 & \cdots & 1/(n+1) \\ 1/3 & 1/4 & \cdots & 1/(n+2) \\ \vdots & \vdots & \ddots & \vdots \\ 1/(n+1) & 1/(n+2) & \cdots & 1/(2n) \end{bmatrix} $$is non-singular?  I computed $\det A$ for $n=1,2$ and $3$ but I failed to see the pattern.  The context is as follows: in $\Bbb R[x] $ with inner product given by $\langle p(x),q(x)\rangle \stackrel{\cdot}{=}\int_0^1p(x)q(x)\,{\rm d}x$, I want to see that if $U\stackrel{\cdot}{=} \{p(x) \in \Bbb R[x]\mid p(0)=0\}$, then $U^{\perp} =\{0\}$ (and hence $U^{\perp\perp}=\Bbb R[x]\neq U$). I took $f(x) \in U^\perp$ and computed  $\langle f(x),x^k\rangle$ for $k\geq 1$. I obtained a homogeneous system for the coefficients of $f(x)$ which has $A $ as the matrix associated. So if $A$ is non-singular I'm done.


When preparing a personal check to be mailed to the department of revenue of a U.S. state to pay taxes owed, is it advisable/permissible to cross the check, or mark the check as "account payee only"? Will the department of revenue accept crossed or account payee checks?

I grew up in Australia, and learned that when I write a check, I should generally cross it with two diagonal lines with Not Negotiable written between them.  The idea being that this signifies that the check  I read, obliquely,  on this site that a similar thing can be done in the United States by saying For Deposit Only. Do two diagonal lines mean the same thing on an check in the United States? For those who think this is urban legend see on the National Australia Bank website.  Effect of crossing If you cross a cheque (by drawing two parallel lines from top to bottom across the front of the cheque), you are telling NAB not to cash it over the counter. The cheque therefore must be paid to a bank (e.g. into a customer's account). If NAB does cash a crossed cheque, it may be liable for any loss suffered by the true owner. Meaning of 'not negotiable' You may write the words 'not negotiable' between the two parallel lines on your cheque. This means that if the cheque is transferred to another person, the person who obtains the cheque has no greater rights to it than the person who gave it. For example, if the cheque was stolen, the person from whom the cheque was stolen might recover the amount of the cheque from the person who received payment, even though that person who received it may have done nothing wrong.


My code: #include <iostream>  using namespace std; int main() {     unsigned int  a = 0x0009, b = 0x0002;     unsigned int  c = a + b;     cout << c; }  Now c = 11  I want to this: c = 000B  How can I do ?

I want to do:  int a = 255;  cout << a;   and have it show FF in the output, how would I do this?


I want to change the style of each element inside enumerate. It should be:  Ad (1) Ad (2)   I have tried to do it by:  \begin{enumerate}[Ad. (1)]   \item    \item \end{enumerate}   But a result is not what I expected. I would like to change it only locally inside specific enumerate block. And I don't want to use any extra package.

In an enumerate environment, I want a few (not all) of the items to have asterisks which appear before the number (I don't feel strongly about whether the number or the asterisk is horizontally aligned with the other numbers).  Is there a less crufty way to do this than, say, using multiple lists (or — horrors — numbering manually)?  I'm already using enumitem for an unrelated purpose, if that helps, although I didn't find a solution after a quick skim of its manual.


In trying to create getters and setters for my APEX classes, I am creating standard methods such as:  public String getName() {     return name; }   But, I noted that APEX supports C#-like shorthand, i.e. {get; set;}. When attempting to use this shorthand - anticipating it will create the getName method automatically - I receive an error that the method does not exist.  I assume that the shorthand was not made to support this type of usage, but it does then beg the question: what is its purpose? I also noted that it is required that the variable be declared public. Again, if the variable is already made accessible from outside the class, defining a getter and setter would seem redundant.

I've built a few apex controllers, and like most people have copied some code from here and there. In the controllers, there's typically an expression that looks like the following:  public *var type* someName {get; set;}   Initially I thought I needed to supply a function to the get part if the VF page was grabbing data, something like so:  get = getData(); set;  public function string getData(){     return 'data!'; }   And the opposite for set (if users were inputting data). But now I see my controllers work perfectly well just having the top expression as {get;set;}.  I've looked through the salesforce docs and I've read all the parts regarding creating custom controllers - I see the get; set; being referenced, but nowhere explaining what this part does and how I can use it.  Have you come across any docs on what this part does and how I can use it?  Thank you all!  Zac


I am making a CNN with 6 classes. The 8400 training samples are batched into 84 batches of size 100. I run the model and print out the loss after every batch, the loss is always either 0.0 or some arbitrary number in scientific notation such as 1.74463e+06. Is this normal or am i doing something terrible wrong?    def train_network(x):     pred = convolutional_network(x)     loss = tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(labels = y, logits = pred))  train_op = tf.train.AdamOptimizer(learning_rate=0.01).minimize(loss) with tf.Session() as sess:     sess.run(tf.global_variables_initializer()) # Initialize all the variables     saver = tf.train.Saver()      print("RUNNING SESSION...")     for epoch in range(num_epochs):         train_batch_x = []         train_batch_y = []         for i in range(0, 84):             train_batch_x = BATCHES_IMAGES[i]             train_batch_y = BATCHES_LABELS[i]              print('Starting feed_dict on batch ', i)             _, loss_value = sess.run([train_op, loss], feed_dict={x: train_batch_x, y: train_batch_y})             print('Finished batch --- loss: ', loss_value)         print('Epoch : ', epoch+1, ' of ', num_epochs, ' - Loss: ', loss_value)      correct = tf.equal(tf.argmax(pred, 1), tf.argmax(y, 1))     acc = tf.reduce_mean(tf.cast(correct, 'float'))     print('Accuracy:', acc)      save_path = saver.save(sess, MODEL_PATH)     print("Model saved in file: " , save_path)   ```   When printing the output i get something like this:

I'm training a neural network but the training loss doesn't decrease. How can I fix this?  I'm not asking about overfitting or regularization. I'm asking about how to solve the problem where my network's performance doesn't improve on the training set.    This question is intentionally general so that other questions about how to train a neural network can be closed as a duplicate of this one, with the attitude that "if you give a man a fish you feed him for a day, but if you teach a man to fish, you can feed him for the rest of his life." See this Meta thread for a discussion:   If your neural network does not generalize well, see:


I am doing a propensity score matching(nearest neighbor matching) in R with simulated data and I keep getting the above warning messages. please I need help.  The following is my code  m.out<- matchit(Trt_Grp~Age + Base_DBP + Gender + Race + Trt_Difference, data.frame(Data1), method = "nearest")  I generated my data using the following codes set.seed(12345) Age <- rnorm(100, 50, 10) round(Age, digits = 0) Base_DBP <- rnorm(100,95 , 8) round(Base_DBP, digits=0) Trt_Grp <-rbinom(100, 1, prob =0.5) print(Trt_Grp) Race <-rbinom(100, 1, prob = 0.8) print(Race) Gender <-rbinom(100, 1, prob = 0.5) print(Gender) Patient_ID <-seq(1, 100, by=1) print(Patient_ID) Post_DBP <-rnorm(100, 80, 10) print(Post_DBP) round(Post_DBP, digits = 0) n = 100; y1 = rnorm(n, 75, 5);  y2 = rnorm(n, 85, 5)  # same SD where y1 is post_DBP for drug and y2 for placebo w = rbinom(n, 1, .20)     #where w is Trt_grp   Post_DBP = w*y1 + (1-w)*y2   round(Post_DBP, digits = 0) round(y1, digits = 0) round(y2, digits = 0) summary(y1)  summary(y2) summary(Post_DBP) Trt_Grp <- ifelse(Post_DBP<=80, 1, Trt_Grp) Trt_Grp <- ifelse(Post_DBP>80, 0, Trt_Grp) print(Trt_Grp) summary(Trt_Grp) table(Trt_Grp) or <- cbind(Patient_ID, Age,  Race, Gender,Trt_Grp, Base_DBP, Post_DBP) round(or, digits = 0) Trt_Difference <- Base_DBP - Post_DBP round(Trt_Difference) Data <- cbind(Patient_ID, Age,  Race, Gender,Trt_Grp, Base_DBP, Post_DBP, Trt_Difference) round(Data, digits = 0)

I'm trying to predict a binary outcome using 50 continuous explanatory variables (the range of most of the variables is $-\infty$ to $\infty$). My data set has almost 24,000 rows. When I run glm in R, I get:  Warning messages:   1: glm.fit: algorithm did not converge   2: glm.fit: fitted probabilities numerically 0 or 1 occurred    I've read the other responses that suggest perfect separation might be occurring, but I'm confident that isn't the case in my data (though quasi-complete separation could exist; how can I test to see if that's the case?). If I remove some variables, the "did not converge" error might go away. But that's not always what happens.  I tried using the same variables in a bayesglm function and got the same errors.  What steps would you take to figure out exactly what's going on here? How do you figure out which variables are causing the problems?


Is it okay to soak peeled potatoes in the fridge for more than 24 hours food safety-wise? It's only about 30 hours so far but everything I've read says they are okay up to 24 hours. (I didn't intend to soak them for that long).  Thanks!

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


I'm not really sure where to begin with this but for a simplified example I have a set of integers:    {11, 22, 3, 12, 1, 23, 21, 13, 2}     I need to partition these into K=3 clusters with initial means of the clusters of 1,2,3 using Euclidean distances.  I'm assuming I need to find the distance of each value and compute new means but no idea how to go about it and everything I've read online doesn't seem to help    If someone can give me the basic ideas on how to tackle this much appreciated.

The following describes what I'm trying to accomplish, but it's possible an alternative problem statement can describe my goal:  I want to    divide the following numbers into groups where the variances of the numbers within each group are not too large, and the differences between the averages of groups are not too small  compare the distribution obtained in the end with the "perfect" ones and see how "different" it is from being perfect.     Layman's explanation of goal  , and determine the "income brackets" each population is in.  The income bracket is supposed to be self-adjusting based on the input data.  My goal is to ultimately measure or calculate the difference between the income brackets.  I assume there will be many brackets, and want to see how far "apart" each tier is.  Here is a sample of hourly income for a sample set of a population of 20, and a total income of 3587:  Population= 10                   pop=2   population=5              population =3 10, 11,13,14,14,14,14,14,15,20,  40,50  ,90,91,92,93,94      999,999,900    How can I use mathematical concepts to group, sort and analyze data that acts like income distribution over a given population?  At the end of the calculation, I want to determine tiered income distribution, where a perfect distribution would look (something) like this   (each person makes $10 more per hour than the previous; total is 3587) 89, 99, 109, 119, 129, 139, 149, 159, 169, 179, 189, 199, 209, 219, 229, 239, 249, 259, 269, 279   or this:   (evenly distributed groups of people make the same per hour)  (gaps between income groups is consistent and not "too far") (income total is 3587) 99 99 99   129 129 129   159 159 159   199 199 199  229 229 229  269 269 269    Question  How should I analyze the population groups, and measure the gap in a way that will tell me how much is needed to make it more like the last two model sets listed above?


Got a brand new Lenovo G 510 laptop with the following specs:- aled i5-4200m , 8 GB RAM ,1 TB HDD, 2 GB AMD-RADEON GRAPHICS CARD with Windows 8.1.  I installed Ubuntu 14.04, alloting  around 150 GB, inclusive of 8 gb for swap and  10 gb  for bios space( where bootloader location was set) , but I am not able to dual boot alongside Windows 8.1. I installed Ubuntu in Legacy Mode coz I couldn't boot from USB in UEFI MODE. Ubuntu is installed, but it wouldn't load. It goes directly to WIndows 8.1. I also updated grub, but wouldn't work. Please help me to sort this out.  Thanks in advance.

I have a Lenovo Ideapad with pre-installed Windows 8.1 In order to install Ubuntu I disabled secure boot and changed boot mode from UEFI to Legacy. This allowed me to install Ubuntu and the grub loader is also showing an option to either boot into Windows or Ubuntu, but whenever I try booting to Windows it says Cannot load.  This happens because the boot order is set to Legacy mode and Windows 8 will boot only with UEFI. I am unable to access my BIOS from where I can change the boot order. I press F1/F2 on booting but it doesn't load the BIOS, and directly goes to the grub loader screen.  How can I make my Windows 8 run along with Ubuntu?


Which one is correct?:   I have never heard of "Oranges".   or   I have never heard of "Oranges."

The American convention in quotations is (typically) to place punctuation inside quoted text. But I always run into situations where the punctuation of the quote interferes with the punctuation of the sentence. How would you punctuate this (American, non technical)?     When my friends ask, "What do you want for your birthday?", I never know how to respond.   It seems odd to place the last comma outside the quote simply because of the question mark. Is that the preferred (i.e. most often accepted) standard?


Using the open-cover definition of compactness (if X is a topological space, a collection of sets {$U_{\alpha}|\alpha\in A$} with each being open in X, is said to be an open cover of X if $X=\bigcup_{\alpha\in A}U_\alpha$. The space $X$ is compact if for every open cover of $X$, there is a finite subcollection of {$U_\alpha$} that is also an open cover of X.) prove that the continuous image of a compact set is compact. This implies compactness is a topological property? The exercise hints at starting with an arbitrary open cover of the image space. Any further hints would be appreciated. Thanks in advance!   Edit: I believe  concerns a less general case in $R^n$. Also, the answers do not address open covers which is the source of much of my confusion.

How to prove: Continuous function maps compact set to compact set using real analysis?  i.e. if $f: [a,b] \rightarrow \mathbb{R}$ is continuous, then $f([a,b])$ is closed and bounded.   I have proved the bounded part. So now I need some insight on how to prove $f([a,b])$ is closed, i.e. $f([a,b])=[c,d]$. From Extreme Value Theorem, we know that $c$ and $d$ can be achieved, but how to prove that if $c < x < d$, then $x \in f([a,b])$ ?  Thanks!


I am making a login form and I am quite confused with how to use bind parameters to select data.   My current code looks like this:  $stmt = $mysqli_conn->query('SELECT * FROM user WHERE email = ? AND password = ?');     $stmt->bind_param('ss', $emailclean, $passwordclean);      $stmt->execute();      $result = $stmt->get_result();     if ($row = $result->fetch_assoc()) {         $finalmessager['success'] = 'You are logged in';         $_SESSION['finalmessagelog']= $finalmessager;         $_SESSION['authenticateduser']= $emailclean;         header('location:../index.php');         unset($_SESSION['logErrors']);     }   I don't understand why this isn't working

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


Hi Everyone first thing is that i got a problem when i suspend the PC, it suspends like a normal PC but when i try to resume that's when i get the problem.... i can't resume, the PC turns ON but in the screen theres no signal only blackscreen here my PC specs.  PC specs: Video Card:AMD Radeon HD 6480M Discrete-Class RAM: DDR3 de 4 GB Microprocessor: 2.5 Ghz VISION A4 Technology from AMD with AMD Dual-Core A4-3310MX Accelerated Processor Display: 35,5 cm (14,0") High-Definition LED HP BrightView Display (1366 x 768) Hard Drive: 500 GB SATA (5400 rpm)  If need more specs, please advise me.   PS: i know, i saw other posts but i was unsure if those methods were going to work in Ubuntu 14.04LTS 64Bit

I have been facing this issue from the last week after some update. Whenever my laptop wakes up from suspend state it just shows me a blank screen. Regardless of whatever I do(move my mouse, press keyboard buttons) it just refuses to wake up. I am forced to do a restart and lose all my unsaved files. Has this issue been reported for Ubuntu 12.04?  I am using a Lenovo X200 with Intel Mobile 4 Series Graphics Chipset. Please let me know if any body has found a fix for this.


I am unable to get my bibliography to show up in my LaTeX document when using bibtex. I have already debugged the .bib file, have cited papers so I shouldn't need a \nocite*{} (I think), and I'm not receiving any errors during compilation. Any time I do cite, it shows as a [?]. How can I fix this? Citation in paper: ... commercial or research purposes \cite{FAA-Aerospace-Forecast}.   What is in the bibtex: @misc{FAA-Aerospace-Forecast,     author = {{Federal Aviation Administration (FAA)}},     title = {{FAA Aerospace Forecast -- Fiscal Years 2019--2039}},     howpublished = {Online: https://www.faa.gov/data{\_}research/aviation/aerospace{\_}forecasts/media/FY2019-39{\_}FAA{\_}Aerospace{\_}Forecast.pdf },     year = {2019},     note = {TC19-0002}, }

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


Given a | b, it must be true that a | b^2. However, I was wondering about the conditions necessary for a and b such that given a | b^2, it must be true that a | b.

I'm not sure I've got this right. When proving $a^n \mid b^n \Rightarrow a \mid b$, can we do this indirectly? In short,  "Suppose $a$ does not divide $b$, this implies that $a^n$ does not divide $b^n$. But $a^n \mid b^n$, hence $a$ divides $b$."  How about $n^n \mid m^m \Rightarrow n \mid m$? Can we do this the same way?


I'm trying to prove that the complex function $f(z) =\frac{z}{1+|z|}$ is injective and have made the following start. Assume there exists some $z=x+iy$ and some $w=a+ib$, Then $f(w) = f(z)$ implies that $w=z$ which would prove that the function is injective. We have $\frac{w}{1+|w|} = \frac{z}{1+|z|}$ Then $w = z \ \frac{1+|w|}{1+|z|}$. This is where I struggle to see the next step. I know that I want to prove that $|w| = |z|$ and therefore $1+|w|=1+|z|$ but I can't see how to do this without making premature assumptions. Furthermore, the question states "prove by using polar co-ordinates or otherwise" but again I'm not sure how this is helpful as far as I can see I will still be in the same position at this step even in polar form. Any help or advice with this question would be very much appreciated. Thank you!

So i have to prove if $f(z_1)=f(z_2)$ then $z_1=z_2$ .  I tried substituting $z=x+yi$ i also tried proving their differences in absolute value are zero.None of this work .Im sure im missing a property or something that will make this very easy. I also tried making the first part of the eq belonging is $R$  so the  second part of the eq must have imaginary part  zero. I just dont get to the result i want.


Right now, for job seekers in Career 2.0,  it looks like they can choose the following  filters:   what where distance (use slider) 20 miles      Only telecommute jobs Only jobs offering relocation     I am aware that companies can opt to not reveal their Joel Test Score in the posting, but for those that do, it would be nice if this was available as a filtering option for job seekers.  Was this debated previously and I missed it?   The Joel Test Score is something I have not seen anywhere else on the web. As I contemplate my next career move, it is something I would definitely take into account. In fact, I would probably give a Joel test result more weight than any of the other current search filters, because it gives a lot of clues as what my quality of work life would be like at that company as well as the company culture.   In the Search section, how hard would it be to add a checkbox with label like "JoelTest Publicized" to the list?

Can we have a filter to hide job postings without a certain Joel Test Score or certain Joel Test Score items checked off?  Basically, I don't want to have to sift through jobs without their Joel Test Score visible, a low test score, or certain items not checked.  For, example, there are two filters on the right hand side for: "Work remotely", "Offers relocation", we can add "Passes Joel Test with 9+", or "Shows Joel Test Results"  If not can we have this as a premium option?  Rough possible mockup:


I have an iPhone 4 and for the last few days there has been a spinning circle in the right hand side of the status bar. I am wondering why this is.  I've tried turning off the Wi-Fi and restricting cellular data of all apps and nothing has worked. I am worried that there is something wrong with my phone. It seems to be draining my battery also.

Can someone point me why this activity indicator is spinning? All apps are closed. It's starts to spin right after I'm activating wifi. Wifi turned off - activity indicator disappearing.


I was trying to answer a puzzle . But this question is marked protected and says, posting an answer now requires 10 reputation on this site..  I do have 100+ reputation, but still the site is not allowing me to answer. What could be the issue?

Questions can be protected (i.e. marked "highly active").   What does it mean for a question to be protected? Why are some questions protected? Who can protect and unprotect questions? Who can answer a protected question? How are protected questions displayed? When should I protect or unprotect a question? When does the Community user protect a question?


I wanted the following url www.example.com/userprofile.php?username=username To www.example.com/username  Below is my htaccess file  Options All -Indexes RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] RewriteRule ^([^\.]+)$ $1index [NC,L] RewriteRule ^([^\.]+)$ $1login [NC,L] RewriteRule ^(.*)$ userprofile.php?username=$1 [QSA]   When i type www.example.com/username the GET username is echoed as   username.php   I've tried everything but can't get a solution  Any help is appreciated

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


I have a mesh that forms a plane with loop cuts running in both directions. Part of this area is cut out and I need to fill it back up, maintaining the loop cuts in both directions. Is there an automated way of doing this? If not, what's the easiest method?

I tried crating faces but it left missing edges. In the end I was left with all the right lines but there was no vertex in the center.    Here's a follow up image in case you're wondering what I mean. Notice how there's no vertex in the center.


I'm new to Blender and I was wondering how to correct this; i'm not sure what to call it on my faces...      i'd be grateful if you legends could enlighten me?

I was following  on creating a watch and noticed that when I rendered the watch, some pieces were messed up.  I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture:    Other examples:     I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it?


I'm learning about splines and the equation for a spline trying to predict the true function given data points is expressed as $$f(x)=\sum^k_{m=1}\beta_mh_m(x)$$ Where $\beta_m$ is some linear coefficient, $h_m(x)$ is a basis function and $k$ is the number of regions/areas separated by knots. I read that the least squares criterion is used to estimate the coefficients($\beta$), which makes perfect sense for evaluation. Then it goes on to say you can solve for all $\beta_m$ using matrices. $$H = \begin{bmatrix}h_1(x_0) & ... & h_k(x_0)\\ ... & ... & ... \\ h_1(x_n) & ... & h_k(x_n)\end{bmatrix}$$ $h_i, i\in[1,k] :$ basis functions $x_l, l\in[0,n] :$ Independent data points being approximated $$\vec{\beta}=(H^TH)^{-1}H^T\vec{y}$$ $\vec{y}$ : Vector of response variables to each $x_l, l\in[0,n]$ so $\vec{y}=[y_0,...,y_n]$ $\vec{\beta} = [\beta_1 , ..., \beta_k]$ How does $\vec{\beta}=(H^TH)^{-1}H^T\vec{y}$ result in minimizing least square criteria?

I usually hear about "ordinary least squares".  Is that the most widely used algorithm used for linear regression?  Are there reasons to use a different one?


I have the following function, which is invoked immediately and binds a click event to elements.  (function (window, $, undefined) {     var methods     = {},     selector = $('.selector');      methods.init = function () {          selector.find('> .section').on('click', function (e) {           alert('hey');         }     }      if (selector.length > 0) {         methods.init();     }  }(window, jQuery));   I needed it to also bind elements that had been added dynamically, so I changed to this:  var modules = modules || {}; modules.stuff = (function (window, $, undefined) {     var methods     = {},     selector = $('.selector');      methods.init = function () {         selector.find('> .section').on('click', function (e) {           alert('hey');         }     }      if (selector.length > 0) {         methods.init();     }       return methods;  }(window, jQuery));   And then added dynamic elements, then called modules.stuff.init(); I can see that the init function is ran but the click events don't fire?

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.


There are many posts regarding linear regression, so I'm sorry I'm still coming back to this subject. However, I still have some questions about it. I know for sure that the model should be linear within the parameters. That meaning we cannot have something like:  $$y = \beta_0 + \beta_1^2x_1$$  But I've read somewhere that the relationship between Y and X should be linear. Is this correct? If so, what does that mean? Does this mean that the relationship between Y and all $x$'s should be linear? If that is correct, why would $y = \beta_1 \cdot x^2$ be a linear regression model?

I was reading the following link on non linear regression . My understanding from reading the first section "Nonlinear Regression vs. Linear Regression" was that the equation below is actually a linear regression, is that correct? If so why?  $$y = b_1x^3 + b_2x^2 + b_3x + c$$  Am I also to understand that in non linear regression multicollinearity isn't an issue? I know that multicollinearity can be an issue in linear regression so surely if the model above is in fact a linear regression there would be multicollinearity?


I have a toolbar Fragment being called with the property of a left icon listener defined in the Main Fragment(defined below)   Toolbar fragment (common toolbar fragment used everywhere as header)  public void refresh(commonFragment f) {         if (view != null && f != null && !commonFragment .class.equals(f.getClass()) && !BlankcommonFragment .class.equals(f.getClass())) {              setRightIcon(f.getRightIcon(), f.getRightIconListener());             setLeftIcon(f.getLeftIcon(), f.getLeftIconListener());           }     }   Common Fragment (common properties kept here for re use)       public Integer getLeftIcon() {             return R.drawable.left_fragment_icon;         }          public View.OnClickListener getLeftIconListener() {             return new NavigationOnClickListener(this, new LeftFragment());         }  public View.OnClickListener getRightIconListener() {          return MenuFragment.instance().getDashboardIconListener();     }   Page Fragment (page where issue occurring on left icon listener)   @Override     public Integer getLeftIcon() {         return R.drawable.back_icon;     }      @Override     public View.OnClickListener getLeftIconListener() {          return new NavigationOnClickListener(this, new HomeFragment());     }   NavigationOnClickListener (usage for navigation)  public class NavigationOnClickListener implements View.OnClickListener {     private Common Fragment from;     private Common Fragment to;      public NavigationOnClickListener(Common Fragment from, Common Fragment to) {         this.from = from;         this.to = to;     }      @Override     public void onClick(View v) {         from.navigate(to);     } }   back button icon and left icon toggles (same image view but with different id of image) on click on according to the different page. For example: There are 3 Fragments: A, B and C, B is the Home Fragment. By clicking on the left icon on B it takes you to A, and clicking on the back icon on C takes you to B  The issue is double clicking on back icon crashes the app  NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference   Error comming on  views.setAdapter       public View build(final LayoutInflater inflater, final ViewGroup container, Bundle savedInstanceState) { //line added            ...      View home = inflater.inflate(R.layout.fragment_home, container, false);      final Activity activity = this.getActivity();     final HomeFragment fragment = this;            @Override         public void onSuccess(Call<List<xyzView>> call, Response<List<xyzView>> response) {             ListView views = (ListView) container.findViewById(R.id.course_list);             views.setAdapter(new xyzAdapter(activity, R.layout.fragment_home_item, response.body(), fragment));   How to prevent crash on multiple clicks on back button?

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 have a specific workspace that I must navigate to that is annoyingly long. like/really/damn/annoyingly/long/and/it/takes/a/while/to/type. I wanted to write a shell script that would just cd me into it, but of course, that won't work. Is there another way to make it so I can just cd into this directory without the hassle of typing it out?   Don't tell me copy and paste.  Thank you!

In the Ubuntu terminal I find myself spending considerable time to switch to a particular directory every time the computer starts up. Is there some way I can make this process easier? Is there some hotkey or some quick directory change that I can use (like speed dial on a phone)?   eg:     cd 1:Changes to saved directory one


After I successfully installed Adobe Flash Player, after some difficulties, Ubuntu 14.04 the pepflashplugin-installer is constantly trying to get and install further data.    I am enclosing the pop-up, but it is in Danish so basically it says that: The pepflashplugin-installer is trying to get further data after the package installation, but the data could not be found, or the data could not be processed. The installer will try again later, or you can try again now.  I can now close the pop-up, or try again. How do I stop this request from popping up?  Thank you in advance.

I know, it's been asked before but I couldn't really get a satisfying answer for some details/backgrounds and I guess it's an important question for many.    Some application seem only to be running with Adobe Flash 15 (or at least I know it does, because I have that version on my Windows Partition).  The official Adobe website says:     NOTE: Adobe Flash Player 11.2 will be the last version to target Linux as a supported platform. Adobe will continue to provide security backports to Flash Player 11.2 for Linux.   Some search on the web like "Ubuntu Adobe Flash 15" or similar does not return any good websites.  I found something that says   (using a "pepper-based version"), and  .   Is it impossible to use this for Firefox too? Would it be a privacy risk?  Are there no alternative projects (I know it's closed source but there are so many so very bright people out there using something similar to wine but just for the plugin....)?  How about the Mac-Version? Shouldn't someone be able to port that one to Linux?


For using Counterspell, a spell needs to contain some kind of component, otherwise it cant be countered.  When casting spells from magical items the spell is cast at the lowest possible spell level, doesn't expend any of the user's spell slots, and requires no components, unless the item's description says otherwise. DMG p141. spells you cast from items can be countered   So, does it mean that the magic items are considered as the material components of the spell?

Some magic items allow you to cast spells using them, even if you are normally unable to cast such spells, such as the Wand of Magic Missiles or the Helm of Telepathy.  When you cast a spell with such a magic item, can you be visibly seen to be casting the spell? This is relevant to    Whether or not the spell can be Counterspelled Whether it is obvious to observers that any magic has occurred, if it's a spell like Detect Thoughts that has no visible effect after being cast.


Why is it assumed that angular acceleration is 0 when a ball is midair after rolling off a surface with constant velocity?

An everyday is example would be cars. If you were to drop a car, not taking air resistance into account, would a front-heavy car tumble forward as it fell? And a car with a perfect 50/50 front/rear weight distribution fall straight? Does mass distribution/center of mass affect free fall? Or would they both fall straight down without tumbling? Can you explain why please?


I have this json file  myjson=[{u'faceRectangle': {u'height': 72, u'left': 214, u'top': 125, u'width': 72}, u'scores': {u'anger': 0.180509463,  u'contempt': 1.50903434e-05, u'disgust': 0.008213697, u'fear': 0.418243885, u'happiness': 0.0259612668, u'neutral': 0.0001996803, u'sadness': 0.00102899456, u'surprise': 0.365827948}}]   I want to print from scores the sentiment that has the biggest probability with its probability next to it.   Any suggestion?  Thanks

I have a dictionary: keys are strings, values are integers.  Example:   stats = {'a':1000, 'b':3000, 'c': 100}   I'd like to get 'b' as an answer, since it's the key with a higher value.  I did the following, using an intermediate list with reversed key-value tuples:  inverse = [(value, key) for key, value in stats.items()] print max(inverse)[1]   Is that one the better (or even more elegant) approach?


I have some information against each company we deal with.  For e.g. number of employees, business volume, average salary, etc. Which technique can I use to rank each company against the others? Thanks!

I have four numeric variables. All of them are measures of soil quality. Higher the variable, higher the quality. The range for all of them is different:  Var1 from 1 to 10  Var2 from 1000 to 2000  Var3 from 150 to 300  Var4 from 0 to 5  I need to combine four variables into single soil quality score which will successfully rank order.  My idea is very simple. Standardize all four variables, sum them up and whatever you get is the score which should rank-order. Do you see any problem with applying this approach. Is there any other (better) approach that you would recommend?  Thanks  Edit:  Thanks guys. A lot of discussion went into "domain expertise"... Agriculture stuff... Whereas I expected more stats-talk. In terms of technique that I will be using... It will probably be simple z-score summation + logistic regression as an experiment. Because vast majority of samples has poor quality 90% I'm going to combine 3 quality categories into one and basically have binary problem (somequality vs no-quality). I kill two birds with one stone. I increase my sample in terms of event rate and I make a use of experts by getting them to clasify my samples. Expert classified samples will then be used to fit log-reg model to maximize level of concordance / discordance with the experts.... How does that sound to you?


I have read that external HDDs have a possible lifespan of just 3 - 5 years, which obviously rules them out as a long term storage device, however others on Superuser suggest this is wrong: Who is right and what are the facts?  3 - 5 years:     Long term storage:

Do you guys know how much time needs to pass until the data stored on a hard drive starts to degrade?   To keep the data intact for long periods of time, I heard you need to periodically rewrite it on the hard drive, like every 5 years or so. Is it true?


basically, in the little sidebar on the right, it has everything and it shows that my object is in the blender, but when I look at the actual grid thing, there are arrows and I'm able to move an invisible something however the object I can't see it (its a Roblox Character)

I try to import .obj files from this project:  - the files contain Polygon Mesh Data.  When I import the obj file into blender, the outliner shows a new mesh added, but nothing is visible in the 3D viewport:      Any help will be appreciated.


To be honest, I have to solve the following exercise, but I don't know what trigonometric formulas should I use (if I should), to get to a form where I can use the Taylor series. $$\lim_{x\rightarrow 0} \frac{\sqrt{1+ x\sin(x)} - \sqrt{\cos(2x)}}{ \tan^2(x/2)}$$ I have tried to convert the tan function (using trig formulas) but it didn't work, also I tried to use Taylor series on the $\sin(x), \cos(2x)$ functions.

I need to evaluate the limit without using l'Hopital's rule.  $$\lim_{x \to 0}{\frac{\sqrt{1+x\sin{x}}-\sqrt{\cos{2x}}}{\tan^{2}{\frac{x}{2}}}}$$


I have a problem while starting ubuntu,  When I start my laptop this appears on my screen  What should I do?

I dual boot Ubuntu and Windows 7. I was browsing on FireFox in Ubuntu and all of a sudden I get some error message, so I rebooted.  Now when I try to boot into Ubuntu I get this message:  fsck from util-linux 2.26.2 /dev/sda6 contains a file system with errors, check forced. /dev/sda6: Inodes that were part of a corrupted orphan linked list found.  /dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.         (i.e., without -a or -p options) fsck exited with status code 4 The root filesystem on /dev/sda6 requires a manual fsck  Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs) _   How can I fix this?


I'm very new to ubuntu and I'm trying to find a command that tells what packages and the versions are installed on my "sandbox" I'm looking to bundle this as a output file

I'd like to output a list of all installed packages into a text file so that I can review it and bulk-install on another system.  How would I do this?


Let's say I have a file named 'newfile' . Now I do some text substitution using sed command  sed 's/text1/text2/' newfile > newfile   In the above command I am subsituting text1 with text2 and then redirecting the output to the samefile. However after executing this command when I use   cat newfile   An empty file is showed.   What's the problem here?

Redirection is not allowed here. Is cat not allowing? But isn't redirection independent of any command running with it?  $ cat bk > bk cat: bk: input file is output file  Why does the following redirect empty the file:  $ less  bk > bk   awk also works in the similar way as less in regard to redirection. awk is the one with which I actually found the problem, while the above examples are meaningless   In general, what are the right way to use redirect?


I'm looking for a way to do programmatically detect the delta ratio between two strings. I can use string length, but this doesn't give much useful information for like-sized but different inputs. There is a java diff tool on google code , but it hasn't been updated since 2011 and I don't need to actually modify the Strings themselves.   I'm attempting to do change detection with threshold values, for instance: Updated string is 42% different than existing string, are you sure you want to proceed?  Does anyone know of a library that could be used for this, or is java-diff-utils my only option? I couldn't find much in apache commons, and googling is returning irrelevant information.

I'm looking for a high performance Java library for fuzzy string search.  There are numerous algorithms to find similar strings, Levenshtein distance, Daitch-Mokotoff Soundex, n-grams etc.  What Java implementations exists? Pros and cons for them? I'm aware of Lucene, any other solution or Lucene is best?  I found these, does anyone have experience with them?


Let $x_0 = 5,$ and $x_{n+1} = x_n + \frac {1} {x_n}$ for n = $0, 1, 2, . . ..$ Show that $45 < x_{1000} < 45.1.$  First noticing that $x_{n+1}-x_n= \frac {1}{x_n},$ we get $\sum \limits_{n=1}^{1000} \frac{1}{x_n} = x_{1000} - 5$ with some simple telescoping.   Now we want to find some inequalities for $\sum \limits_{n=1}^{1000} \frac{1}{x_n},$ which I tried to do with more telescoping, but I've had no luck finding a good way to express $\frac{1}{x_n}$ between two bounds.

If $x_0 = 5$ and $x_{n+1} = x_n + \frac {1}{x_n},$ show that $45<x_{1000}<45.1$ This problem is taken from the list submitted for the $1975$ Canadian Mathematics Olympiad (but not used on the actual exam). SOURCE : (Page Number 3 ; Question Number 162)  I tried writing out the first few terms : $x_1 = 5+ \frac{1}{5} $ $x_2 = \big(5+\frac{1}{5}\big) + \big(5+\frac{1}{5}\big)^{-1} = \frac{x_0^2 + 1}{x_0} +  \frac{x_0}{x_0^2 + 1} = \frac{(x_0^2 + 1)^2+x_0^2}{x_0(x_0^2+1)}$ $x_3 = \frac{(x_0^2 + 1)^2+x_0^2}{x_0(x_0^2+1)} + \frac{x_0(x_0^2+1)}{(x_0^2 + 1)^2+x_0^2} = Messy$ I tried a lot but could not find any general formula for the $n$th term. Does there even exist any? Also it is clear that $\big(x_n + \frac{1}{x_n}\big)$ is an increasing function. So I think sequence diverges, but how can the $1000th$ term be calculated or aprroximated? Any help would be gratefully acknowledged :).


I see this notation a lot but I am not sure why we write  $\int_{0}^tf(r)dr$  instead of $\int_0^tf(t)dt$. If we assume $\int f(x)dx=F(x)$ we have: $$\int_0^t f(r)dr=F(r)|_{r=0}^{r=t}=F(t)-F(0)$$ $$\int_0^t f(t)dt=F(t)|_{t=0}^{t=t}=F(t)-F(0)$$ And we get $F(t)-F(0)$ in both case.I saw this notation in such integrals a lot but  I don't understand the logic of presenting a new variable (which is "$r$" here) to calculate the definite integral. And is it logically (or mathematically) wrong to write $\int_0^tf(t)dt$ instead of $\int_0^tf(r)dr$?

I am told that an expression like $$ \int_a^x f(x)dx $$ is not well formed, i.e. it should be $$ \int_a^xf(t)dt $$ or similar.  Why is it that the limits of integration can't depend on the variable of integration?


I am not going to bother going into much detail but basically there is a game over alert I want to set up if the player takes too long while playing my game.  var time();  //Game over Alert function fail() {     swal({         title: "Gameover!",         text: "Click Retry To Start Again.",         timer: 1500,         showConfirmButton: false     }); }  //Timer function timer() {     var time = window.setTimeout(function () {         fail();     }, 1000); }  //Timer Reset function stillplaying() {     window.clearTimeout(time);     timer(); }   The problem is the timer doesn't rest when I activate the still playing function. However, if I rapidly activate still playing the same alert flashes again and again. Not to mention the reset button and the game it's self flickering. Can anyone fix the timer and find a way to fix the glitch?

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


I'd like to create the following equation:  Could you please give me a solution? Thank you.

How do I produce a conditional expression with large brackets? For example: X = 0 if a=1, 1 otherwise, with a large left bracket and specifying each condition in a line?


A few of us over on MITx have noticed that $\int f(x)  dx $ is appearing as $\int dx  f(x)$.  It's not the maths of it that worries me. It's just I recently read a justification (analytical?) of the second form somewhere but can't recall it or where I saw it.  Can anyone give me a reference?

From reading answers here, I've noticed that some people write integrals as $\int dx \; f(x)$, while other people write them as $\int f(x)\;dx$.  I realize that there is no mathematical difference between the two notation forms, but was wondering why some people choose the first method over the second.  Is there some place in higher maths that it becomes beneficial to write the differential first?  (I, personally, have always used the second method, just because I was taught that way...)


Are there any simple proofs that obtain this result? I haven't been able to find one online.

I know how to prove the countability of sets using equivalence relations to other sets, but I'm not sure how to go about proving the uncountability of the transcendental numbers (i.e., numbers that are not algebraic).


Doing the desktop automation with help of sikuli but when trying to call the image that time give the "NullPointerException" exception.   Code :  public static Screen s;   public static void main(String arg[]) throws IOException, InterruptedException, Exception {         Runtime.getRuntime().exec("images/Nintei_launch.exe");         Thread.sleep(5000);         s.click("c:/Users/abc/Desktop/Winword/selectSession.PNG");   thank in advance

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?


How does brightness affect the color of light? For instance, the sun might be yellow because of the blue scattering when the light travels through the atmosphere - but if you look at it, it seems brighter and looks more white. So how does brightness affect the number of photons we perceive? Something must have an effect on the color because otherwise I cannot see why it would look white when not all photons are present.

So the atmosphere scatters light on its way to earth, making the color of our sky. For example, when the sky is blue on a clear, sunny day, the sunlight appears somewhat yellow because the blue light has been scattered away. However, there is something about this that I do not understand. If certain colors are scattered away, why is there 99.5% of the time some white when you look at the sun (e.g. in pictures)? Even at red sunsets with reddish skies, the sun seems to be somewhat white - how can this happen if almost all the original colors/photons have been scattered away and thus the rest should not be able to constitute a whitish color?  Example:


The square $$\sqrt 2+ \sqrt{3} \approx 3.14$$ Is this a coincidence or is their some mathemtical significance?

Just curious, is there a geometry picture explanation to show that $\sqrt 2 + \sqrt 3 $  is close to $ \pi $?


I need to decode this assignment:  jvm_xmx=${jvm_xmx:-1024}

I saw this in the end of an awesome shell script but I can't understand the login here because I think it's being short-handed for a longer command.  spark ${@:-`cat`}   This apears at the end of . Any ideas?  + Marks for some one who extends it into a full segment of code, even if its slower (Better for explanation)


I am using Ubuntu 13.10 and come from Ubuntu 13.04.   First check locahost, It's work fine. PhpMyAdmin is also work fine. I look some related problem . But some similarities with this answer and still I have problem when I write for-example http://localhost/PHP_Work/ in a browser.  Problem  Forbidden You don't have permission to access /PHP_Work/ on this server.   Path of PHP_Work folder is : /var/www/PHP_Work  Following results of line write by using terminal:  conf.d files  zeb@zeb-Lenovo-B570:/etc/apache2/conf.d$ ls  Result:  empty folder  zeb@zeb-Lenovo-B570:/etc/apache2/conf-available$ ls  Result:   charset.conf            localized-error-pages.conf    security.conf javascript-common.conf  other-vhosts-access-log.conf  serve-cgi-bin.conf   Site File  zeb@zeb-Lenovo-B570:/etc/apache2/sites-available$ ls  Result: 000-default.conf  default-ssl.conf  Don't know how and what changes make in virtual host directives. Or what should I do to sort it out , any help would be appreciated.

I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.


I have a somewhat new MacBook Pro running Catalina, and very recently I began having a fan issue. No matter what I did, my fans seemed to be running at full power, and I can't for the life of me figure out why. I checked my Activity Monitor, and it keeps saying accountsd is using 300+% of my CPU. Is there any way to fix this? I presume both things are going hand in hand— perhaps there is a different reason as to why my fans are so loud?  Processor: 1.4 GHz Quad-Core Intel Core i5

This dreaded issue started at some time after upgrade to OS X (Yosemite) 10.10.3. accountsd uses about 60% CPU constantly, making the laptop hot and noisy.  I'm not using iCloud at all.  Killing it doesn't help, because it starts again quickly.  Probably related question, but it's about iOS:


Is the detection of  a reality with nowadays technology?  Are there recent news?

Is there a good chance that gravitational waves will be detected in the next years?  Theoretical estimates on the size of the effect and the sensitivity of the newest detectors should permit a forecast on this.


I have an array like this:  ["News & Politics", "Personal Journals", "Society & Culture", "Technology", "Arts", "Natural Sciences", "Business", "Comedy", "History", "Tech News", "TV & Film", "Design", "Performing Arts", "Education", "Christianity", "Investing", "Sports & Recreation", "Professional", "Social Sciences", "Automotive", "Science & Medicine", "Management & Marketing", "Sexuality", "Philosophy", "Self-Help", "Literature", "Buddhism", "Places & Travel", "Music", "Language Courses", "Careers", "Food", "Kids & Family", "National"]   I need to "push" these values into a select with each of the items in the array being it's own option.  How do I go about accomplishing this?  The array is stored as variable all_cat_unique, but (of course) the following doesn't work. I just appends the entire array to the select a bunch of times.  $.each(obj.entry, function(i, data) {      $('#all-categories').append('<option>'+all_cat_unique+'</option>'); });   Thanks.

What is the best method for adding options to a <select> from a JavaScript object using jQuery?  I'm looking for something that I don't need a plugin to do, but I would also be interested in the plugins that are out there.  This is what I did:  selectValues = { "1": "test 1", "2": "test 2" };  for (key in selectValues) {   if (typeof (selectValues[key] == 'string') {     $('#mySelect').append('<option value="' + key + '">' + selectValues[key] + '</option>');   } }   A clean/simple solution:  This is a cleaned up and simplified :  $.each(selectValues, function(key, value) {      $('#mySelect')           .append($('<option>', { value : key })           .text(value)); });   Changes from matdumsa's: (1) removed the close tag for the option inside append() and (2) moved the properties/attributes into an map as the second parameter of append().


I often see the users having strong profile. I can get a lot of info and knowledge from their profile. I wish to read the answers and questions of that user. But there is no option in StackExchange to save / mark favourite that profile.   I think, It should be there

Possible Duplicate:          I want to Favorite Users.  There are several users whose questions I always enjoy reading.  I would like to be able to Favorite them so I don't have to remember their usernames.


I have this simple SELECT procedure:  create or replace PROCEDURE CST_FEEDBACK (   LineID IN Integer ) AS BEGIN  SELECT      T1.* --  ,   Mgr.UserName as UserName FROM F_Feedback T1 --LEFT JOIN tblUsers Mgr --ON T1.EmpID = Mgr.EmpID  WHERE     T1.Line_ID = LineID  ORDER BY T1.Comments_TS DESC;  END CST_FEEDBACK;   I am an Oracle n00b, we were using SQL Server in our shop but were suddenly forced to switch to Oracle.  I'm getting this message when I try to compile it:     Error(7,1): PLS-00428: an INTO clause is expected in this SELECT   statement   Can anyone tell me why this is happening, and if there's some way to get around it?

How can I get a PL/SQL block to output the results of a SELECT statement the same way as if I had done a plain SELECT?  For example how to do a SELECT like:  SELECT foo, bar FROM foobar;   Hint :  BEGIN SELECT foo, bar FROM foobar; END;   doesn't work.


I must add a JavaScript to Sharepoint 2013.  I must add by JavaScript dropdownlist with links. How could I add a Link to dropDownList which will work at site Sharepoint 2013.

I have got a problem with JavaScript. I want to add a drop down list control with a link as Value of it. After it will be choosen and clicked button it schould redirect me to chosen link. I tried this code from this Article:       <select name="list" id="list" accesskey="target">     <option value='none' selected>Choose a theme</option>     <option value="index.html">Theme 1</option>     <option value="theme2.html">Theme 2</option>     <option value="theme3.html">Theme 3</option> <select> <input type=button value="Go" onclick="goToNewPage()" />  <script type="text/javascript"> function goToNewPage() {     var url = document.getElementById('list').value;     if(url != 'none') {         window.location = url;     } }     but when I tried to add by the script, or by html on site, or by designer its erase me that sort of text:  <input type=button value="Go" onclick="goToNewPage()" />   It's live only:  <input type=button value="Go" />


I wanted to write shell extensions for windows in plain C++, but then I got confused by the keyword interface. In many articles I read that I can create interfaces in C++ by writing classes containing only virtual methods without any code. For example:  class IIsThisAnInterface_QuestionMark {     virtual MyMethod (         int firstParameter,         double secondParameter) = 0;     virtual AnotherMethod (         wchar_t *firstParameter) = 0; }   But the author of  article defined interfaces by using the interface keyword. So my question is: How to correctly define interfaces in C++? (Becuase I grew up in C#'s world, I know interfaces as constructs specifying methods for classes that are implementing these interfaces.)

How do I setup a class that represents an interface?  Is this just an abstract base class?


@Werner has marked this question as duplicate, but I do not feel the original question deals with the detail of the result as Heiko has given.  The answer marked here provides more detail and a more robust solution.  I'm transcribing some work for a professor of mine and I've come across something that I've never encountered before. I'm trying to reproduce the subscript of this    I'm sure I could manage this with Tikz, but I am wondering if there is any other way to accomplish such a thing?

Like this:     Tried P_{30:20^{\ulcorner}}, but I want the \ulcorner to be more near to the text.


I understand this has been asked before, as per search, but none of the other questions tried to engage [in my opinion] and provide an actual solution.  The Problem:  Lately, I've been feeling completely unwelcomed to the community of Stack Overflow, it seems as if questions that are deemed as "stupid" or "couldn't you just look up documentation" are down-voted.  The Specifics:  Just recently a pretty popular guy who obviously knew his stuff went super passive-aggressive on me with "[Just do X]?", I was trying to explain to him how to me, this is new and I don't have as much experience as him. Unfortunately, I see this is a recurring thing.  A suggestion: Now, surely, a question should have:   Good structure, name the problem, what you tried and what you think of as a solution. Be clear about it, don't add unecessary words, just precisely what is needed.    Give an example, if you can. These help a lot. If it's about code, post what you have so far.   There are plenty of questions that seem to follow these points and don't seem to be duplicates.  The search function is not perfect, therefore, we can't expect everyone to find their answers right away, just as I didn't myself on some questions.  If you think about it, they're low-quality, unfortunately, there's no clear distinction between stupid and simply being a newbie, in the community's eyes. I don't think most of them should be down-voted, instead...  The Solution:  My proposal is, if you think something's of low quality and I believe most people are mentally capable to distinct from trolling / straight-up low effort, just offer some improvements, link to another question and, well, do your part. That user will continue to ask questions the way he's done, if he's not told that's not the best way to do it, resulting in a ban, usually and a feeling of anxiety towards asking questions.  Obviously, I want to start a healthy discussion as to why this is happening, but can't help to say: We've all been there, give others a break, why is this happening and what can we do?

There is a distinct decline in the level of civility on all the sites here.  Some of this is due to new users coming in and posting spam and other nonsense, but the off-topic and downvote buttons are doing a pretty good job of keeping this under control. Unfortunately, a lot of this is coming from more experienced users, and the site's built-in moderation system does not (and probably cannot) handle this very well.  Folks are rushing to pound new users down with "this belongs on meta!", "this is off topic", "this is a duplicate!" and "read the Help!". (Which is correct, but should be done nicer) All this, of course, is accompanied by a flurry of downvotes.  This is not very welcoming to new users who don't know about meta, the Help, or what counts as off-topic. Now I am not proposing that we just allow off-topic, meta, or duplicate questions.  However, I think we could be gentler in the way we express these sorts of things.  Explain what meta and the FAQ are and provide useful links.  Just using please and thank-you when asking folks to read the FAQ or post something on meta would be an improvement.  I also think we could rein in the downvoting a bit.  Not that we shouldn't vote stuff down, but unless a new user's post is clearly spam, voting it down to -1 or -2 should be sufficient to send a message without piling on. I like Stack Exchange and I want it to become a resource for everyone, not just an elitist site for high-rep users on the sites.


In QGIS 3.16 "Hannover", copied vector features appear near grid 0.0, at coordinate numbers that are the long and lat values. The attribute table with desired fields is updated as expected. The project CRS is set as the default for new layers and on the fly is enabled. Reprojecting the layers does not change the result. I do not understand what I am doing incorrectly. After 24 hours: STILL ????? New projects default to a CRS, new layers are set to the default CRS. Added a GPKG. Selected items in the area set produced by bringing in the GPKG, and they show properly in attribute table. Copy the selection and then paste it to a new layer with attribute table structured with desired fields, and the attribute table is filled as expected. Click the new layer and zoom to it and it is way down by the equator. Still struggling.

I do not understand why there can be in QGIS different CRS for project and for layers. I have worked previously with subsurface petroleum software and there CRS "stuff" was lot more strict in that sense that data was almost always tied to the CRS of the project. Will the data be prone to inconsistency if there is different CRS for project and layers?


can someone please explain what -> operator does in C++?  Example below:  struct X{ int a[sz];}  void print(X* x){ for(int i =0; i<sz; i++){     cout << x->a[i] << ' '; // -> is like dereference??   My guess is that it assigns index i in array a with the value of the object that x is pointed to.

What is the arrow operator (->) a synonym for?


I used composer create-project drupal-composer/drupal-project and have happily been using composer install composer require and composer update to keep my development system up-to-date and moving it around different development machines.  However, the upgrade to Drupal 8.1.0 from 8.0.6 was clumsier that I'd expected. Is there a slicker way of upgrading all the symfony dependencies than this?  composer require drupal/entity:8.1.0-alpha2 drupal/core:8.1.0 \     symfony/process:~2.8 symfony/console:~2.8 symfony/event-dispatcher:~2.8 \     symfony/yaml:~2.8 symfony/translation:~2.8 symfony/validator:~2.8 \     symfony/serializer:~2.8 symfony/routing:~2.8  symfony/http-foundation:~2.8 \     symfony/http-kernel:~2.8 symfony/dependency-injection:~2.8 \     symfony/class-loader:~2.8  drush @mysdevsite updb  drush @mydevsite cr   BTW This current (25 April) sole answer to the duplicate question didn't work for me. e.g. - drupal/entity 8.0.1 requires drupal/system <8.1.0 -> satisfiable by drupal/core[8.0.6, 8.0.x-dev]. caused Your requirements could not be resolved to an installable set of packages. So I had to require each of 8.1.0's dependencies in turn just the same as without the --update-with-dependencies option. Painful.

This is excerpt from my composer.json file (trimmed for readability). It was created by running composer create-project drupal/drupal my_site_name 8.0.* as described on :  {   "name": "drupal/drupal",   "type": "project",   "require": {     "composer/installers": "^1.0.21",     "wikimedia/composer-merge-plugin": "^1.3.0"   },   "replace": {     "drupal/core": "~8.0"   },   "minimum-stability": "dev",   "prefer-stable": true,   "extra": {     "merge-plugin": {       "include": [         "core/composer.json"       ],       "recurse": false,       "replace": false,       "merge-extra": false     }   } }    If I just do composer update - core is not updated, only packages inside vendor dir. If in addition to the above, I update my composer.json file and replace core version with ~8.1 - still core not affected.   The only thing that worked for me was to:   Remove core dir, vendor and composer.lock. Edit composer.json and:   Remove replace section. Add "drupal/core": "~8.1" to require section.  Run composer install.   That worked however every installed package complained that:     Class Drupal\Core\Composer\Composer is not autoloadable, can not call post-package-install script   So I'm not sure if the whole process completed flawlessly. Also removing core directory seems like a desperate move.  What is the recommended procedure of updating core to the next minor version with composer (for example 8.0 => 8.1)? Note that I am not using  as suggested in .  Update 1  After trying to use composer require --update-with-dependencies "drupal/core:8.1.*" I got no results:  $ composer create-project drupal/drupal my_site_name 8.0.* Installing drupal/drupal (8.0.6)   - Installing drupal/drupal (8.0.6)     Cloning c5afca05cde0c94ef4d7aff5b078be27024670d2  Created project in my_site_name Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files > Drupal\Core\Composer\Composer::preAutoloadDump > Drupal\Core\Composer\Composer::ensureHtaccess Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? Y $ cd my_site_name/ $ composer require --update-with-dependencies "drupal/core:8.1.*" ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Writing lock file Generating autoload files > Drupal\Core\Composer\Composer::preAutoloadDump > Drupal\Core\Composer\Composer::ensureHtaccess   I'm using composer version 1.1-dev.


I have postgresql 9.2 installed on a windows XP machine. I have lost the postgres password.  I looked at answers given to a similar question asked 6 months ago. The answer given there required the editing of a file pg_hba.conf however I cannot find that file anywhere. Windows search doesn't find it.  I have tried uninstalling the postgreSQL installation but that seems to leave behind the password and security settings as on installing again the step to set the postgres password is missed out.  Help please?

This morning I’ve been trying to connect the PostgreSQL database on my Windows 7 Professional desktop.  The default value is ‘postgres’, but sure enough I forgot what password I used when I originally installed it.  I have googled and found a  related to resetting your password. I followed the steps, but the end result is a bit different then mentioned in the post. I used—  net user postgres postgres   to reset the password for my database but instead of a success message I am getting:     "System error 5 has occurred. Access is denied."   system error. How do I avoid this error and reset the password?


While executing below code i'm getting NullpointerException.   public class SftpConn       {       public List<String> searchableFields(String sheetName, int column) {               if (sheet == null) {                   sftpConnect();               }               List<String> test=null;               sheet = wb.getSheet(sheetName);               int rowcount = sheet.getLastRowNum();               for (int i = 1; i <= rowcount; i++) {                   Row r = CellUtil.getRow(i, sheet);                   key = CellUtil.getCell(r, column).getStringCellValue();                   System.out.println("key = "+key);                   test.add(key);               }               return test;           }       }      2.Below is the main class where i'm calling "searchableFields" from searchableFields 3.every time i'm seeing same error please suggest"                 public class MyTest {                 public static void main(String[] args) {                     // TODO Auto-generated method stub                     SftpConn sftp = new SftpConn();                     List<String> list = sftp.searchableFields("Searchable Fields", 0);                     System.out.println(list);                 }             }                             Below is my Out put please suggest that what could be the issue.           Session connected  true               key = Check Document                Exception in thread "main" java.lang.NullPointerException                  at com.brcc.tool.Configuration.SftpConn.searchableFields(SftpConn.java:120)                  at com.brcc.tool.Configuration.MyTest.main(MyTest.java:10)   *

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?


So basically, Im making a datapack and I want to send 2+ players from a certain place in a world but when i do a certain command it will tp them to a another world but same coordinates.  Also when they're in the nether i want them to tp to the same coords but in a different nether world. And same thing with the end.

Is there any way to teleport a player from the overworld to the end?   Or a way of teleporting a player to a random enderman in the end?