Why doesn't the command do-release-upgrade doesn't require sudo?

I was wondering why the command do-release-upgrade doesn't require sudo? I mean, it does significantly change your system, so I would have guessed it requires sudo.   is from ubuntu self, but it isn't that helpful. I just want to know how this is secure for the integrity for my system, if every user can access this command.   Thanks in advance.  [EDIT]:  I used a new terminal window, thus no sudo that wasn't expired yet, and I used the command do-release-upgrade NOT sudo do-release-upgrade.So even with unexpired sudo I should be unable to upgrade.  [EDIT 2]:


Suppose that we have a vector space $V$ and the subspaces $U=\{(x,x,y,y)\in F^4:x,y\in F\}$ and $W=\{(x,x,x,y)\in F^4:x,y\in F\}$. Then how comes $$U+W=\{(x,x,y,z)\in F^4:x,y,z\in F\}?$$


Java Recursive method doesn't seem to be returning an exact string

I am trying to make a Palindrome checker in Java but my when I check the reverse method compared to the input string to see if they are equivalent, I am getting false. Even when I use obvious palindromes like "racecar". My reverse method uses recursion to reverse an input string.  public class Palindrome {     public static String reverse( String input )     {         if( input.length() == 1 )             return input;         return reverse( input.substring( 1 ) ) + input.charAt( 0 );      }      public static boolean isPalindrome( String input )     {         if( Palindrome.reverse( input ) == input )             return true;         return false;     }      public static void main( String args[] )     {         System.out.println( Palindrome.isPalindrome( "racecar" ) );     } }


Are the partial sums of $\sin (n)$ bounded?

My Calculus II teacher left us the task of finding a sequence that is conditionally convergent, and that if we multiply it by $(-1)^n$ it converges. I think that sequence could be  $\frac{sen(n)}{n}$. But first I have to prove that it is conditionally convergent, for that I will use the Dirichlet test. And one of his hypotheses is that the partial sums of $\Sigma_{n=1}^\infty \sin(n)$ are bounded , but I don't know how to do it. I would appreciate if  you do not use very complicated things in the proof, since I would also have to demonstrate them.


How can I mirror my weight painting to the opposed side of my character? I know that there is Mirror function, but it doesn't assign the weight to bones on the opposed side. Can I do it manually?


I migrated a project to a new host. So I transferred my files and my database. But since then, my sql queries with accented characters no longer work (NULL):  php file:  $ product = 'Gestion réseaux sociaux'; $ handle-> query ('SELECT social_networks FROM sale WHERE id_customer = "'. $ id. '" AND product = "'. $ product. '"');   In addition, the accented characters displayed in the view from the database are not displayed correctly.  However, the rest of the written text content that does not come from the database displays the accented characters.  I still put the meta:  <meta http-equiv = "Content-Type" content = "text / html; charset = UTF-8" />   So I deduce that it comes from the encoding of the database but it is identical to that of my former host (UTF8_unicode_ci)  What can be the reason for you?  Thank you in advance for your help !!


Existence of a maximal element in a set of Ideals

Let R be a commutative Ring with $1$ and $S\subset R$  multiplicatively completed ($s_1,s_2\in S\implies s_1 s_2 \in S$) and $I\subset R$ an ideal, such that $I\cap S=\emptyset$. Consider now $M:=\{J\subset R\ : J \ \text{is an ideal with} \ J\cap S = \emptyset \ \text{and} \ I\subseteq J \} $. Prove now, that $M$ has maximal Elements (with the partial order $\subseteq$).  The lemma of Zorn states, if every chain of elements is upper bounded, then there is a maximal element, but I'm struggeling to prove, that an upper bound must exist.


How can I integrate $\ln \left( x+\sqrt{1+x^2} \right) $?

How can I integrate $$\ln \left( x+\sqrt{1+x^2} \right) $$   The problem is from IA Maron Calculus, Problem 4.3.17. The problem is under the heading 'Integration by parts'. I have tried it, but it just leads to 2 unsolvable integrals


Repeat a previously labelled equation without changing the label

Somewhere in my document I have some equation:  \begin{equation}     \label{some_equation}     ... \end{equation}   I would like to repeat this equation later (so that the reader does not have to flip back and forth between sections), but would like it to appear with the same label (e.g. if it was numbered as equation (1), I would like its "clone" to also appear with the numbering (1)). Is there an easy way to do this?


how do I duplicate a partitioned table in SQL Server?

I have a database with several tables that are heavily partitioned and I'm trying to optimize part of an ETL operation that involves one of those tables. The table has 1347 partitions involving 35 different file groups. I want to recreate the table in a different database but I don't see a way to get the partition scheme definition or function definition for my new database (it's not included when I script the table out in SSMS). I can get other pieces of the puzzle with the query below but I can't seem to find a way to bring it all together! I've created the new database with all the filegroups and such to match the original.  select distinct  ps.Name AS PartitionScheme, pf.name AS PartitionFunction,fg.name AS FileGroupName, rv.value AS PartitionFunctionValue     from sys.indexes i       join sys.partitions p ON i.object_id=p.object_id AND i.index_id=p.index_id       join sys.partition_schemes ps on ps.data_space_id = i.data_space_id       join sys.partition_functions pf on pf.function_id = ps.function_id       left join sys.partition_range_values rv on rv.function_id = pf.function_id AND rv.boundary_id = p.partition_number     join sys.allocation_units au  ON au.container_id = p.hobt_id        join sys.filegroups fg  ON fg.data_space_id = au.data_space_id   where i.object_id = object_id('PartitionedTable')    The database is on SQL Server 2016 SP1 CU7 Enterprise Edition


How to prove the equation below in a simple way? $$\min_{\mu}\sum_{i=1}^n|y_i-\mu|=\text{median}\{y_1,\cdots,y_n\}$$


You can send empty messages in chat! Example . You get this by selecting the text box, hitting tab, then hitting backspace. Please fix it as it's annoying. Also, this does not send spaces, it seems to send empty characters. (Using ubuntu with firefox) I just noticed that this also works with mac. I think it's a FF bug.


Given the linear system: $$\begin{cases}  x_1 + kx_2 − x_3 = 2\\  2x_1 − x_2 + kx_3 = 5 \\ x_1 +10x_2 −6x_3 =1 \end{cases}$$ for which values of $k$ has the system (2): (a) No solutions (b) A unique solution. (c) Infinitely many solutions. I've been trying echelon form where i switched $R_1$ with $R_3$ and then i switched $R_2$ with $R_3$ So I have $\left[\begin{array}{ccc|c}1&10&-6&1\\1&k&-1&2\\2&-1&k&5\end{array}\right]$ but then I'm stuck and don't know how to get any further.


Example of open cover of (0,1) which has no finite subcover

Give an example of an open cover of the segment $(0,1)$ which has no finite subcover.  Example: Taking $G_n=(0,1-1/n)$ for $n>1$. It is obvious that $(0,1)\subset \cup_{n=2}^{\infty}G_n$ but $\{G_n\}$ has no finite subcover of $(0,1)$.  Does this example satisfy the conditions of problem?


Python script that takes xyz and returns the perspective matrix vertex coordinates

I've been trying to write a script that receives the xyz coordinates of a vertex of a 3D object and returns the xyz coordinates of the vertex in a prespective projection plane, more or less like in the following image:    Example:  get_prespective(3,4,8):      bla...      new_vector = [3,4,0]      return new_vector   Supposedly you need to multiply the vector with a prespective matrix, like this:     Or multiplying the vector by this matrix:    But I'm having some trouble figuring out which matrix to use or how to use it. If somebody has a better idea, that would be great ;)


Is the following result true about complex numbers?

Is the following result true? If $i^4 = 1$, $(i^4)^{1/4} = 1^{1/4}$, and$i = 1$, then won't it disprove $i = (-1)^{1/2}$? If no, give a proper reason?  Can this be a contradiction to complex numbers?


Does every number not ending with zero have a multiple without zero digits at all?   We consider numbers in their usual base 10 representation. we don't consider numbers ending with $0$, because all multiples of such numbers end with $0$.   It can be proven that all powers of $2$ have such a multiple: Indeed, for every number of the form $2^n$, we can find a multiple $l$ of it whose last $n$ digits are nonzero (This can be done by repeatedly multiplying a number by $10^k+1$, as explained ), and then forget all other digits; these last $n$ digits constitute a number that is still divisible by $2^n$, since it is obtained from $l$ by subtracting a multiple of $10^n$ which is in particular a multiple of $2^n$.  The same argument shows that every power of $5$ has a multiple without zeros, but this does not seem to generalize to other numbers.  My intuition is actually that the claim is not true, since the density of numbers without any zero digits approaches $0$ for big numbers. This is because the probability of a random number with at most $n$ digits to contain only nonzero digits is $(\frac{9}{10})^n$. Thus big numbers "nearly always" contain a zero. This hints on the existence of a counterexample, but does not prove its existence.


The problem is simple:  float f1 = Float.parseFloat("41.975779")  //Value for f1 is 41.97578  -> An error of 1ppm   And even worse!!  float f2 = Float.parseFloat("41.975645")  //Value for f2 is 41.975643  -> An error of 2ppm   It doesn't matter if I use Float.parseFloat or Float.valueOf, they both give the same result.  Note: This problem occurs me when programing in android, I didn't try it in pure-java but I assume will be the same result.


I don't know I should post this on Magento community site or Ubuntu community site, so I am posting here. I had PHP 5.3 installed. I upgraded to PHP 5.5, but for some reasons had to revert back to PHP 5.3. ISSUE: I have Magento and Codeigniter website on server. From now on, whenever I try to save image from website's dashboard, either Magento or CI, I get folder is not writeable like error. Then I checked online for solution and I found that Apache user should be owner, so I ran chown -R apache:apache /public_html on server. This solved images issue, I was able to save images from website's dashboard. But there is another problem, when I checkout on my Magento website I get this  error.  Do I need to install Apache all over again? or what should I do?


I have a figure and table placed next to each other the code but for some reason the spacing is way too large only on between theses two objects.     \begin{table}     \begin{center}     \begin{tabular}{|c|c|}      \hline     Measurement & Voltage \\ [0.5ex]      \hline\hline     $V_m$ & 10V  \\     $V_{o-ch1}$  & 10.1 V  \\     $V_{o-ch2}$ & 10.1 V  \\     \hline     \end{tabular}     \caption{\label{tab:table-name} Unmodified Full-Wave }     \end{center} \end{table}  \begin{figure}[h]     \centering     \includegraphics[scale=.3]{Full wave waveform.jpg}     \caption{Full wave: $V_m$, $V_o-Ch1$, and $V_o-Ch2$ }     \label{fig} \end{figure}  \begin{center} \begin{figure}[h]     \centering     \includegraphics[scale=.1]{10 perc.jpg}     \caption{10 \% Ripple Value}     \label{fig} \end{figure} \end{center}  \begin{table}     \begin{center}     \begin{tabular}{|c|c|c|}      \hline      Measurement &  Theoretical Voltage(V) & Experimental Voltage(V) \\ [0.5ex]       \hline\hline      $V_m$ & 10 & 10  \\      $V_{o-Ch1}$  & 10 & 14.1  \\      $V_{o-Ch2}$ & 10 & 13.2  \\      Ripple & 1.0 & 1.0 \\      \hline     \end{tabular}     \caption{Table: 10 \% Ripple voltage 100 uF}     \label{tab:table-name}     \end{center} \end{table} '''


Show that $\{\cos\ n:n \in \mathbb{N}\}$ is dense in $[-1,1]$ by using the fact below:      Suppose $x$ is irrational. Then there exists $p_n,q_n \in \mathbb{Z}$   such that $\bigg|x -\frac{p_n}{q_n}\bigg| < \frac{1}{q_n^2}$   I have no idea on how to apply the fact above to show the set is dense in $[-1,1]$. Can anyone help me?


How could we describe someone as “a native speaker”

Oxford advanced dictionary: native speaker  a person who speaks a language as their first language and has not learned it as a foreign language  Collins dictionary: native speaker A native speaker of a language is someone who speaks that language as their first language rather than having learned it as a foreign language.          Could someone speak three language: Germany, Italian, and English, described as “a native speaker of three language”?       Consider someone whose father is American, mother is Italian, and he was born in Germany and raised there.  Would he be a native speaker of three languages?      He would Learn English from his father, Italian from his mother, and Germany from friends, school and street.


Why do photons and gluons not interact with the Higgs field?

I'm looking for a non-mathematic answer as I am yet to begin studying physics or calculus, still half a year away. Just a simple explanation in layman's terms. As i understood it, electrons for example are massless before interacting with the field, like photons. so why do electrons interact with the higgs field and not photons and gluons?


I cannot install Wine using Ubuntu 14.10. It tells me I have unmet dependencies: wine1.7 : depends: wine1.7-i386 (=1:1.7.30-Oubuntu1~ppa1) E:Unable to correct problems, you have held broken packages.


how to use special utf-8 characters in submodules?

In my thesis (my first real project with LaTeX), I need Japanese and some Russian characters. I divided my thesis by submodules. My main module looks as follows:   \documentclass[11pt]{article}   \usepackage{amsmath}  \usepackage{amssymb}  \usepackage{graphicx}  \usepackage[utf8]{inputenc}  \usepackage[T1]{fontenc}  \usepackage{CJK}   \includeonly{spis_tresci}   \begin{document}   % Definition of title and author  \title{ My Thesis title. }  \author{Mazeryt Freager \\  \\  \begin{CJK*}{UTF8}{min}   一部の日本人のもの  \end{CJK*}  \\ śćóœ}  \maketitle   \clearpage    \input{Table_of_Contents}   \end{document}   And the above code works perfectly. The problem is in submodule "Table of Contents"   \section{Table_of_Contents}   %When I add here something more than ASCI code I got into compilation failure  %No mather if it is:  %\begin{CJK*}{UTF8}{min}  %一部の日本人のもの  %\end{CJK*}  %\\ śćóœ}  abcdefghijklmnoprstuwxyzABCDEFGHIJKLMNOPRSTUWXYZ  %but standard ASCI works   I search a lot about this but I didn't find any solution that works for me. Any idea?


Show $x_1,...,x_n>0\wedge x_1\cdot...\cdot x_n=1\Rightarrow \sum x_n \geq n$

Induction does not work here but why not?  Case   n=1  then $x_1=1$  Inductionstep  $x_1.....x_n+1=1\rightarrow x_1...x_n=\frac{1}{x_{n+1}}\overset{IH}{\Rightarrow}x_{n+1}=1$  This must be wrong becasuse for example   $2+\frac{1}{2}>2$ and also $1,\frac{1}{2}>0$ and $2\frac 1 2=1$ but neither is $1$. But the induction says that $x_{n+1}=1$ so the induction must be false!  I also want to know how I can solve the problem


Discrepancy between Mobile and Desktop Answer Count

On the Desktop, the "Answer Count" will include deleted questions. Meaning that  with only 3 non-deleted answers will have an Answer Count of 69:    However, on Mobile, only non-deleted answers are counted. So the answer count will be 3:    I'm fine with either functionality, but can we make this consistent?  Repro with Desktop: Google Chrome Version 74.0.3729.169 (Official Build) (64-bit) Mobile: iOS 12.1.4 Safari


I want to grep for 'AB...CDE', where ... stands for anythings until CDE first occurs.   I have tried grep 'AB*CDE' filename but this matches til the last occurrence of CDE.   How can fix this?  Suppose that my input is: JKIABTHIUCDELKJUCDE  and I want output as: ABTHIUCDE  which mean from AB until CDE


Pointwise a.e. convergence and weak convergence in Lp

I'm trying to prove the following   Theorem: Let $\{f_n\}_{n\in\mathbb N}\subset L^p(\Omega)$, $f_n \to f$ in $L^p(\Omega)$ ($\Omega\subset\mathbb{R}^n$ is open and bounded, $1\leq p \leq \infty$) and $f_n \to \hat{f}$ almost everywhere. Then $f=\hat{f}$ almost everywhere.  Ideas for the proof:  We should prove that $$\int (f-\hat{f}) =0$$ We can write $$\int (f-\hat{f}) = \int (f-f_n)+\int (f_n-\hat{f})$$ Then, by weak convergence, the first integral tends to $0$ (because $1\in L^\infty\subseteq L^p$).  The problem is the limit of the second integral. We can write $$ \int (f_n-\hat{f})=\int_{\Omega \cap E} (f_n-\hat{f}) + \int_{\Omega\cap E^c} (f_n-\hat{f})$$ where $E=\{x: f_n(x) \not \to \hat{f}(x)\}$. Then $|E|=0$ and the first integral vanishes.   My question is: What should I do with the second integral? Is it enough if I use the Lebesgue Dominated Convergence Theorem, since by Hölder inequality I can easily dominate $\{f_n\}$ in $L^1$?


I bought some fresh champignons from the supermarket. What's the proper way to clean them before cooking (or rather frying) them?  Should I just wash them with cold water? Should I peel them?


Storing and using UV and Normal Data with OpenGL

I'm having trouble mapping UV coordinates to vertices in OpenGL. I'm binding my buffers and enabling all of my attrib arrays perfectly well and things are rendering - but what I'm stuck on is how to map UV and Normal data.  You can't just store UV and Normal data with the Vertex data, because obviously you'll be re-using vertices, but not necessarily with the same Normal or UV.  For clarity this is the general flow of what I'm doing at the moment:   I bind my shader program. I bind my vertex array buffer with GL.BindBuffer I Bind my element buffer with GL.BindBuffer I use GL.Uniform (1, 2, 3 or 4) to bind values to my uniform variables I enable all of my vertex buffer attributes with GL.EnableVertexAttribArrau and then encode their layout using GL.VertexAttribPointer I draw using GL.DrawElements I disable all of my vertex attrib arrays again   I'm totally stuck on how to encode UV and Normal data to my vertex attributes. Do I need to use a second buffer? If so; how does OpenGL know to use a different set of indices to find them? I'm totally lost and any help would be greatly appreciated.


What can be done with an unconstructive moderator?

Explicitly a support question. I do not intend to discuss the particular case here.  I have searched for an answer to this  and here, where I found , which unfortunately discusses a protocol for moderators only. I am wondering what is the preferred thing to do when you disagree with a community moderator (not an employee of SE, Inc), without going into specific details.  Of course, the first thing to do is to ask on Meta. Now suppose the moderator in question makes it very clear that he is not going to be constructive on this matter (doesn't want to explain or support his decision and in no way tries to work towards an agreement) - what can be done? Are there rules or guidelines to point to that say that moderators are accountable and should explain their decisions as far as reasonably possible?   Even if other moderators agree with the particular decision and that conflict is, through them, resolved, the issue remains that that particular moderator isn't constructive. What can be done about that?   Should a new Meta question be opened? Or is it better to handle this in private, in chat with the other moderators, or with the SE team?


Links generated in while loop vulnerable to SQL injections

I have a database where I store data of users and devices. Every user has a list of devices. When the user logs into his account the php code below generates a list of the users devices:  $query_user="SELECT * FROM devices WHERE users_id = '".$user_id."'";  $result = mysqli_query($db, $query_user);  // generating device list and ON and OFF device links while($row = $result->fetch_assoc())  {     echo "

". $row["device"] ."
ON
OFF
"; }   The code also generates a ON and OFF link so the user can manipulate his devices. When the user click for example ON then the following URL is passed to the browser:  https://.../on.php?data=device23   The part of the on.php code that handles the URL data:  if(isset($_GET["data"])) {     $device_name = $_GET["data"]; }  $query_user="UPDATE devices SET status='ON' WHERE device = '".$device_name."'";  mysqli_query($db, $query_user);   So my problem here is that this approach is vulnerable to SQL injection, for example someone can type:  https://.../on.php?data=device17   in the browser and turn the device17 on.  My question is how the generate ON and OFF links for a list of devices and pass the data safe to the on.php and off.php files.  EDIT:  My main problem here is how to generate ON and OFF links for every users device (every user has a different number of devices). When the user clicks the ON link of for example device23 (or any other device, initially I don't know the device name, I am getting the device names from the first db query) I have to pass the device name to the on.php file so it can preform the SQL query that updates the device status.


Flagging for comments, questions and answers, can we flag users?

In one of the SE sites I frequent, we've now had two racially oriented questions asked. The user is very smart about how he words them, yet his phrasing indicates he (may be) racist.  If I find a comment, question, or answer offensive, or hate speech, I can flag them. How would we 'flag' a user?


Getting an error when passing a parameter std::array

The code basically checks the given array is symmetrical or not. When i send parameter std::array i get this error :     ccCPLdU9.o:main.cpp:(.text+0x5da): undefined reference to bool isItSymmetrical<5u>(std::array<int, >5u> const&)'   AppData\Local\Temp\ccCPLdU9.o:main.cpp:(.text+0x60b): undefined reference to >bool isItSymmetrical<2u>(std::array const&)'   std::array implementation should be work with unknown size, i couldn't figure out why it turned out. the error  Other implementations works well by the way.  My question5.hpp file   #ifndef question5_hpp #define question5_hpp  #include <iostream> #include <array> #include <vector>  bool isItSymmetrical(int const arr[], int size); template<std::size_t SIZE> bool isItSymmetrical(const std::array<int, SIZE> &arr); bool isItSymmetrical(const std::vector<int> v);   #endif /* question5_hpp */   Related question5.cpp file  template<std::size_t SIZE> bool isItSymmetrical(const std::array<int, SIZE> &arr) {     for (int i = 0; i < (int)(arr.size()/2); i++)     {         if (arr[i] != arr[arr.size()-i-1])         {             return false;         }     }     return true; }   And main.cpp  std::array<int,5> ar1  {2, 4, 6, 8, 10}; std::array<int,5> ar2  {2,4,5,4,2}; std::array<int,2> ar3  {1,2}; std::cout << isItSymmetrical(ar1) << "\n"; std::cout << isItSymmetrical(ar2) << "\n"; std::cout << isItSymmetrical(ar3) << "\n";


What is the possessive form of "Ralph's", "Ralph's" being an American store chain?


Generate google search result for my website like that of flipkart

I have my website which i can search in google and it comes up. But if i see flipkart search result on google, it is structured very well. Is there any module to do that in drupal?


Standalone Flash player app for swf -files

I use nowadays Opera because it just works for these swf -files.  No other browser work.   However, the problem with Opera is that it is big.   Is there any tool by which you can just view SWF -files?


Is it possible to repeatedly give someone else the Help Action for an eventual Initiative roll?

Let's say Bob really wants Fred to act quickly for an eventual fight which they feel will come soon.  Can Bob repeatedly give Fred the Help Action for his eventual Initiative roll ("Stay focused! Stay focused! Stay focused!") in order to give Fred Initiative advantage when the encounter begins?


Can I be compensated for a rescheduled Air India flight?

My flight FRA-DEL AI0120 was cancelled after boarding and rescheduled for the next day. I was given a transit hotel to stay in, but I lost a day. Do I get compensation for this delay?


todonotes: How to make multiple listoftodos?

In this MWE, I made two commands to highlight parts of the text as a reviewer comment, while the comments are colored uniquely to indicate the author whose comment is typeset.  If I want to make two listoftodos, each has the comments entries of one author, how can it be done?  \documentclass{article} \usepackage{hyperref,lipsum}  \usepackage[textwidth=2.5cm,colorinlistoftodos]{todonotes} \setlength{\marginparwidth}{2.5cm}  \newcommand\stR[2]{% 1st reviewer comment     \todo[%     author=1st Reviewer,noline,caption={1st Reviewer #1 Comment},color=blue!20%     ]%     {#1 Comment}{\color{blue}{\bfseries#2}}}  \newcommand\ndR[2]{% 2nd reviewer comment     \todo[%     author=2nd Reviewer,noline,caption={2nd Reviewer #1 Comment},color=red!50!white%     ]%     {#1 Comment}{\color{red}{\bfseries#2}}}  \begin{document} \listoftodos[Reviewers Comments] \section{Section} Text \stR{2nd}{2nd comment of the 1st reviewer} another text\vspace{\baselineskip} \lipsum[1]\vspace{\baselineskip} Some text \ndR{1st}{1st comment of the 2nd reviewer} continue text \end{document}


I want to find duplicated values on a String . I know there are other solutions to find that but i want to use HashMap. here is my solution.!! what i am missing on the last part ? i want to get just the duplicate letters public static void doublicatess(String str) {                            HashMap <String , Integer> hashmap = new HashMap<>();              String[] array = str.split("");              for( String string : array) {                  if(hashmap.get(string) == null) {                      hashmap.put(string, 1);                  }else {                      hashmap.put(string, hashmap.get(string) + 1);                  }              }                            for(int i = 0 ; i < hashmap.size() ; i++) {                  int target = hashmap.get(array[i]);                  if(target > 1) {                      System.out.print(hashmap.get(target));                  }              }          }  public static void main(String[] args) {         doublicatess("alaaass");     }  the output is null while it should be [a,s]


connect to server with IP address running sql-express instance through sql-management studio

I have my VPS server in a remote location with ip address 172.16.11.2 (for example) having two instances of sql-server express running.  one instance is Microsoft SQL Server 2008 R2 (SP2)  where I connect from my local PC using remote desktop with the following credentials:   servername : 172.16.11.2  authentication : sql - server authentication  userid: xx  password:xx   the other instance is:  Microsoft SQL Server 2008 R2 (SP2) with advanced services. To connect to this machine I remote desktop to the server and type in    servername : machinename\sql-express  authentication : sql - server authentication  userid: xx  password:xx   now using remote desktop from my local machine how will I connect to this instance of sql-server.  I tried    172.16.11.2\sqlexpress    but this failed. I also enabled sharedmemory/namedpipes/tcp-ip but still I am not able to connect. When I go to the machine where sql-express is installed and then type machinename\sqlexpress I am able to connect the sql-express instance, but from my local machine using sql-management studio if i type in ipaddress\sqlexpress I am not able to connect. It gives me network related issue error.


Why are some files not movable on Windows 10?

I'm trying to shrink my partition. In order to achieve the amount that I need, I'm using JKdefrag. I've seen that some files are marked red - not movable, like hibernation.sys and pagefile.sys.  In the end, they are just files, and I'm an administrator. The only thing I can do remove them by .  Why are they not movable?     Note: I'm not asking how to disable the hibernation.sys, pagefile.sys, etc. file. I'm looking for the reason why they are not movable. The answers in probable duped question don't contain the reason.


Why can I not Loop Cut my plane?  The yellow dots appear on the side... I just don't understand it. I guess it can only be really understood with the blend file, so I have uploaded it here:  Thank you.


When using Skype, we can log in to the same account from multiple PCs. Currently I have one PC logged into Skype with my account. The problem is that it was a laptop of my relatives and I cannot access it for now.  How can I sign out of Skype from everywhere logged in to my account?


I am a newbie on Ubuntu. here are the details  Output of lspci:  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC410 Host Bridge (rev 01) 00:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Bridge [int gfx] 00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 1 00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 3 00:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 4 00:12.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 Non-Raid-5 SATA 00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI0) 00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI1) 00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI2) 00:13.3 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI3) 00:13.4 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI4) 00:13.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB Controller (EHCI) 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 13) 00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB600 IDE 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB600 PCI to LPC Bridge 00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge 01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M] 02:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01) 03:00.0 Ethernet controller: Qualcomm Atheros Attansic L2 Fast Ethernet (rev a0)   Output of sudo lshw -c network:  *-network                       description: Network controller        product: BCM4311 802.11b/g WLAN        vendor: Broadcom Corporation        physical id: 0        bus info: pci@0000:02:00.0        version: 01        width: 32 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: driver=wl latency=0        resources: irq:16 memory:fe9fc000-fe9fffff   *-network        description: Ethernet interface        product: Attansic L2 Fast Ethernet        vendor: Qualcomm Atheros        physical id: 0        bus info: pci@0000:03:00.0        logical name: eth0        version: a0        serial: 00:1e:8c:d2:95:ff        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress vpd bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=atl2 driverversion=2.2.3 firmware=L2 latency=0 link=no multicast=yes port=twisted pair        resources: irq:40 memory:feac0000-feafffff memory:feaa0000-feabffff


CDN: How is it possible that my DNS delivers a different IP depending on the visitors location?

I found  how a CDN works. But there is one thing I don't really understand. Let's assume I setup multiple DNS servers at my location and they use the nameserver domains dns1.example.com, dns2.example.com and dns3.example.com. This DNS servers are able to deliver a server IP depending on the visitors location (ping, geo database, browser language or whatever). Now I update this nameserver settings for my domain www.example.org at the registry.  Now, the very first request on www.example.org with an expired TTL tries to resolve the domain. It asks:   the local .hosts/DNS, if TTL expired: the internet providers DNS, if TTL expired: the root DNS, if TTL expired: my local dns1.example.com   But if I understand it correct, the new IP is then added to all these nameserver caches until the TTL expires again. So how is it possible to send other IPs to the visitor depending on his location?  In  theandym said the request is "forwarded", but I don't think this is how a CDN works, because "forwarding" means lengthen the transmission way resulting a longer loading time. Or does a CDN require zero TTL for the domain?  Update1 Through  I found  describing how they optimized CDN performance. It did not explain how the CDN works in general, but there were interesting explanations like the following:     Thereafter, whenever a client attempts to fetch content hosted on the   CDN, the client is redirected to the node determined to have the least   latency to its prefix. This redirection however is based on the prefix   corresponding to the IP address of the DNS nameserver that resolves   the URL of the content on the client’s behalf, which is typically   co-located with the client.   This means Google checks at first the latency of all IP prefixes and defines a DNS resolution table (?) for all available prefixes. And if a visitor has the IP 198.51.100.231 the Google server IP is used, that is set for the prefix 198.51.100.0. But again: How does Google's DNS know which IP the visitor is using? Most visitors resolve Google's domain through their internet provider and by that the resolving is done through those external DNS servers or not?  As an additional example: If I start a DNS resolution for the domain facebook.com with different online tools (hosted in different countries) it is resolved to different IPs with different domains like:   31.13.92.36 Reverse: edge-star-mini-shv-01-frt3.facebook.com 31.13.76.68 Reverse: edge-star-mini-shv-01-sea1.facebook.com 31.13.69.228 Reverse: edge-star-mini-shv-01-iad3.facebook.com 157.240.2.35 Reverse: edge-star-mini-shv-01-ort2.facebook.com   After that I thought it could depend on the DNS server location used by the visitor, but I tried my own (Deutsche Telekom, Germany), Google's (8.8.8.8) and a major one from France (Orange) and they all returned for facebook.com the IP 31.13.92.36.


In the total destructive interference of a wave, the peak of one wave, perfectly aligns with the trough of another wave (assuming they have the exact same amplitude and phase), causing the waves to cancel out (I know this is very difficult experimentally).  An example using water waves would mean the output is the still surface of water, using sound waves, you would get complete silence, using light, you would get darkened etc.   I have been trying to get my head around the idea of destructive interference causing energies to “destruct”, leaving “nothing” behind but I know this is against the first law of thermodynamics, which means energy cannot be created or destroyed.  Have I misunderstood something fundamental?   I’m trying to understand this somewhat philosophically using analogies.


How to refresh the primary tab of console

I am trying to refresh the tab once i click on the update button . i have tried in the following way.  <apex:includeScript value="/support/console/22.0/integration.js"/>     <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> </script>      <script type="text/javascript">         function testRefreshPrimaryTabById() {             //Get the value for 'scc-pt-0' from the openPrimaryTab method             var primaryTabId = 'scc-pt-0';             alert("entering");             sforce.console.refreshPrimaryTabById(primaryTabId, true, refreshSuccess);             alert("exit");         }     </script>   page:  <apex:commandButton action="{!action}"  title="Submit" value="Update" reRender="id1" status="loadStatus"  rendered="{!controls}" oncomplete="testRefreshPrimaryTabById()"/>   but onclick of the update button the tab is not refreshing......  my computer code is:   <script type="text/javascript"> function RefreshPrimaryTab()          {             alert('hai');             sforce.console.getFocusedPrimaryTabId(showTabId);             alert('hello');         }          var showTabId = function showTabId(result)          {             var tabId = result.id;             alert('Primary Tab IDs: primaryTabId ' + tabId );             sforce.console.refreshPrimaryTabById(tabId , true, refreshSuccess);         };          var refreshSuccess = function refreshSuccess(result)          {             //Report whether refreshing the primary tab was successful             if (result.success == true)              {                 alert('Primary tab refreshed successfully');             }              else              {                 alert('Primary did not refresh');             }         };     </script>   button  <apex:commandButton action="{!function}" style="margin-left:900px;margin-top:4px;border-color: #e0e5ee;color:#fff;background: #0070d2;height: 32px;width:86px;"       title="Submit" value="Update" reRender="id1" status="loadStatus"  rendered="{!controls}" oncomplete="RefreshPrimaryTab();return false"/>   showing the both the alerts hai and hello .....but after that it is not refreshing the console.......  i want to refresh the tab as shown below attachment:


Will an un-scattered photon go to the edge of the universe?

Will an unhindered (un-scattered) photon go to the edge of the universe?


I have the following piece of code in which I am trying to store a child struct childStruct in std::map with the data part being the parent struct parentStruct. However, when I try to retrieve again the data part for the child which is variable2, I get a wrong value.  Here is the code:  // Example program #include <iostream> #include <string> #include <map>  struct parentStruct {     uint32_t variable1; };  struct childStruct : parentStruct {     uint32_t variable2; };   int main() {     struct childStruct test;     std::map<uint32_t, struct parentStruct> m_list;     test.variable1 = 50;     test.variable2 = 100;     m_list[1] = test;       struct childStruct *test2 = static_cast<struct childStruct *> (&m_list.at(1));      std::cout << test2->variable1 << std::endl;     std::cout << test2->variable2 << std::endl; }   The output of the previous program is:  50 138353   Instead of being:  50 100   How can I can the correct value which is stored in variable2.


Polynomial at least one root between 0 and 1

$p(x)=a_0+a_1x+...a_nx^n$ with $$a_0+\frac{a_1}2+ \cdots +\frac{a_n}{n+1}=0$$ Heuristically, I feel like this should have at least one root between 0 and 1, because at least one of the coefficients will have a different sign than the others making the graph of the function have a kink.  but I am very unsure where to start.


Do small objects really exert a gravitional force?

StackExchange articles such as "" seem to state that the gravitational force is only exerted by very large celestial objects that bend the space-time.  StackExchange articles such as "" seem to cite the  which apparently showed that two relatively small objects exert a gravitational force on each other.  What is the current scientific consensus on this?  Do small objects (like my pencil) exert forces on other small objects (like my eraser), or is it only large celestial objects that can exert a gravitational force?


I want to sort a text file with GNU sort, by the first field, with field separator ":":  $ cat aa a:895502/ a:2013-05-24 # without --stable, last resort comparison $ cat aa | sort -t: -k1 a:2013-05-24 a:895502/ # with --stable, should disable resort comparison $ cat aa | sort --stable -t: -k1  a:2013-05-24 a:895502/   The last output baffles me, since I expected to get back the contents of the original file. Any help will be very much appreciated.


Ubuntu 16.04 not installing, although it says installation completed

What I tried to do: Today I tried to install Ubuntu on a laptop and it would complete the installation process but when it asks you to restart, it just comes up with the installation process again as if it wasn't installed. I have previously installed Ubuntu on a different laptop with the same method (Downloading ISO image from the Ubuntu website, using Rufus to make USB into bootable device (or whatever it does I'm not completely sure) and plug it into the laptop, making sure that it is the 1st bootable device in the priorites list in the BIOS. What I think the issue is and why What I am suspecting is that, Ubuntu is not being installed on the laptops hard drive because whenever I unplug the USB when it restarts it just says "Operating System not found". Info about laptop A friend of my mums, had left this laptop and said my mum could have it. It wasn't until today we realised that it did not have an OS installed. When I booted it up it just said "Operating System not installed (or "found" i don't remember). This laptop by the looks of it is quite old, since it has a Windows 7 sticker, and an Intel Atom sticker. I thought that obviously Windows 10 is not going to run on this thing, since it has 1GB RAM. I find that Ubuntu is a nice OS and is pretty lightweight. TLDR I got old laptop that had no operating system, tried installing Ubuntu but it isn't actually installing even though it successfully goes through the installation process until it asks you to restart so that you can use the installation or something. then once it restarts it just asks if I want to install or try ubuntu (aka the start of the installation process)  again. Any ideas what could be going on?


Here's basically what I try to do:  \begin{tikzpicture}   \foreach \x in {1,2,3,4,5}   {     \draw (\x,1) node{\Alph{\x}};   } \end{tikzpicture}   However if I do that, I get  ERROR: Missing number, treated as zero.   I tried to prefix the number with \the:  \begin{tikzpicture}   \foreach \x in {1,2,3,4,5}   {     \draw (\x,1) node{\Alph{\the\x}};   } \end{tikzpicture}   and got:  ERROR: You can't use `the character 1' after \the.   After searching around on TeX.SE, I thought the following solution should work:  \begin{tikzpicture}   \foreach \c [count=\x] in {{A},{B},{C},{D},{E}}   {     \draw (\x,1) node{\c};   } \end{tikzpicture}   However that got me an error that \x is not defined.  So, how do I get the desired result?


One's brilliant vocabulary and a tendency to show it off

Possible Duplicate:          There are people who are blessed with a remarkable knowledge of vocabulary and diction – people who can come up with beautifully crafted sentences and expressions on most subjects at the drop of a hat. But some times, one tends to go overboard with a desire to show off the abundance of words one has at one's disposal and the result of that might create some confusion for a middling English speaker like me.  Of course, what appears confusing to me may not do so to others. Besides, I believe there is no clear line or distinction between using and overusing one's rich vocabulary. So, this post is not about what you would think showing off one's vocabulary is, but rather what you would call it.  To cut it short, I am looking for a word or phrase to describe  1) someone with an exceptional knowledge of vocabulary and diction 2) using of words and idiomatic expressions by someone in a way that appears to be more a show off and less necessary.


How to get information about BIOS from terminal?

I want to get BIOS information and print information about all structures.  How to get via command-line?


I noticed weird message about recent activity in  on mobile version of chat:        Chat room has been created today only, so last activity about 47 years ago is completely wrong. Looks like a using of an unitialized variable.


I  I want to create this symbol. any one help me.


Default value for ##UserId## no longer works

Normally, when I openend a  while logged in, UserId was pre-filled with my User ID on that particular site. This worked for all queries that used ##UserId##. Now, it doesn't work. I am logged in, but I still have to fill in the UserId manually.


Will Ubuntu work if I install it offline?

I´m going to install Ubuntu 12.04 on my laptop, and I don’t have internet at home.   I know that I can install it without internet, but , does it work?


How to say "говорящее название/фамилия"(speaking name) in English?

There is an idiom "говорящая фамилия" in Russian("speaking surname"). This means a last name that has a meaning. We could translate, for example, "Иван Кошкин" to "Ivan Cat". Is there a similar idiom in English?  A little bit of IT. My first problem is to come up with a name for a test method of the feature: I have an object class User   + name   + username   fill this object automatically. Faker guesses what data should be set in the property by its name. So the property "name" is filled with the value "Jhon"  and "username" is filled with the value "crazy-login-name". This feature is called "name guesser". I wanted to call the test "fill by speaking names", but it could be silly. I've got around this problem, but it is still interesting.


Export PNG image in Sketch, looks poor quality

I'm using Sketch 51 on a macOS High Sierra. The Instagram icon looks great in Sketch but when I export as PNG it loses a lot of quality.    To the right we can see the icon in Sketch with zoom in good quality, and to the left we can see the image once exported.   I export the image with these options: - First I create an Artboard and adjust it to the image - Icon size is 45x45 - I export the artboard and choose PNG


Is there a Stack Exchange site for R-related questions only?

Is there a Stack Exchange site for question about  (the statistics software) only?


Pls, have got this DVD-ROM I need installed on my Ubuntu 16.04. I'm pretty new to Linux system so I don't know how to go about this. In windows, I just have to put in the CD slot and install from there. I have tried sound juicer but that seems not to be helpful.


Every finite set contains its supremum: proof improvement.

Every finite subset of $\mathbb R$ contains its supremum (and its infimum)   Proof Let $A=\{a_1,...,a_n\}$ be a finite subset of $\mathbb{R}$. Since it is non-empty and it is bounded ($\max A$ is an upper bound), it has supremum, that is $\exists \sup A$ and by definition $\forall a \in A \;\, a \leq \sup A$. Let's suppose that $\sup A  \not\in A$ then, since $\max A \in A$ we have that $\max A < \sup A$. But considering that $\mathbb Q$ is dense in $\mathbb R$ we can conclude that $\exists r \in \mathbb Q$ s.t. $\max A < r < \sup A$, but this is absurd since $r$ is an upper bound of $A$ and it is lower than the supremum. Necessarily, $\sup A\in A$.  Is there anything wrong? Is there any way to prove this without using density of $\mathbb Q$ or another property? Thanks in advance.


I am learning the new c++11 features (was doing Java for a few years, trying to get back), and came across tuples. So I implemented something that compiles and works in VS2013 but not under gcc (yes I do pass in the c++11 switch, also tried  c++14 gcc 4.9.2, get the same error).  The idea would be that I have some data record class that has a function GetNumber() and another function GetText(). I'd like to implement a template class with the template argument of a tuple. This template class would fill the tuple elements by type, for a wstring it would call GetText() on my data record class, for an int it would call GetNumber(). Then it would save the tuple into a vector and would return it.   Here is the code that works in VS2013 and not under gcc:  #include <functional> #include <iostream> #include <tuple>        // std::tuple, std::get, std::tie, std::ignore #include <vector> #include <algorithm> #include <string> #include <memory> #include <exception>  class MyValues {  public:     int GetNum() const { return 999; }     std::wstring GetText() const { return L"blah"; }  };  template <class TVal> class GetVal  {  public:     TVal Get(const MyValues& v)     {         // This static assert with this code breaks the build in gcc         static_assert(0, "Unsupported datatype");     } };  template <>  class GetVal <int>  { public:     int Get(const MyValues& v) { return v.GetNum(); }  }; template <> class GetVal <std::wstring>  { public:     std::wstring Get(const MyValues& v) { return v.GetText(); } };  template <class TTuple>  class TupleMaker  {     MyValues mv_; public:     std::vector<TTuple> loadData()     {         std::vector<TTuple> ret;         TTuple tpl = std::make_tuple(             GetVal<std::tuple_element<0, TTuple>::type>().Get(mv_),             GetVal<std::tuple_element<1, TTuple>::type>().Get(mv_));             // The code below does work in GCC, but how to use the             // template argument as shown above?             //GetVal<std::tuple_element<0, std::tuple<int, std::wstring>>::type>().Get(mv_),             //GetVal<std::tuple_element<1, std::tuple<int, std::wstring>>::type>().Get(mv_));         ret.push_back(tpl);         return ret;     } };   int main(int argc, char* argv[])  {     std::vector<std::tuple<int, std::wstring>> data =         TupleMaker<std::tuple<int, std::wstring>>().loadData();      std::wcout << std::get<0>(data[0]) << std::endl;     std::wcout << std::get<1>(data[0]) << std::endl;      return 0;  }   Wherever gcc complains I put comments to the above code. Essentially I cannot use the template argument TTuple in TupleMaker's LoadData and the static_assert breaks the build even though specializations of the GetVal class cover all the cases that I want to use GetVal for.  Any help would be appreciated, thank you for reading this.


I'd like to find the files in the current directory that contain the text "chrome".  $ find . -exec grep chrome find: missing argument to `-exec'   What am I doing wrong?


If $\displaystyle \lim _{x\to +\infty}y(x)\in \mathbb R$, then $\lim _{x\to +\infty}y'(x)=0$

Not homework. I need this (or something similar) to solve 4. in .  Let $y:(a ,+\infty)\to \mathbb R$ be $C^1$.  Prove that $$\lim_{x\to +\infty}y(x)=\eta\text{ for some }\eta\in \mathbb R\implies\text{the following limit exists and } \lim_{x\to +\infty}y'(x)=0$$  Intuitively this is true because $\displaystyle \lim_{x\to +\infty}y(x)=\eta$ means that $y$ almost stops increasing or decreasing, so $\displaystyle \lim_{x\to +\infty}y'(x)=0$. But how to prove it?  I tried $$\lim_{x\to +\infty}y'(x)=0=\lim_{x\to +\infty} \lim_{h\to 0}\dfrac{y(x+h)-y(x)}h= \lim_{h\to 0}\lim_{x\to +\infty}\dfrac{y(x+h)-y(x)}h= \lim_{h\to 0}\dfrac{a-a}h=0,$$  but why I can change the order of the limits? If I can't even do that, how can I prove this?  After reading the threads Tyler provided, I now just need to prove that $\displaystyle \lim_{x\to +\infty}y'(x)$ exists? Please consider a suitable adaption to the  linked question.


$$\int_{0}^1 (1 + 4y^2)^{1/2} dy$$   So, how do I integrate this without the use of trigonometrical substitution? Can anybody give me a hint? Thank you!


How can $R^2$ have two different values for the same regression (without an intercept)

My question is multifaceted.  So I'll start by asking my question and then explain what has caused me to ask this question.  How can I calculate the coefficient of determination for a linear regression with a defined y-intercept?  The y-variable is the dependent variable and the x-variable is the independent variable.  For example, the y-intercept would be set equal to 0 when the x-variable is 0.  The equation of the line would be y = mx + b and b = 0.  My question came about when I was trying to plot experimentally measured fluid flow data.  I am plotting my data in a way that compares the data to , a phenomenological model for fluid flow through porous media that says for certain conditions the volumetric flow rate is proportional to pressure gradient.  Below is my dataset and my plot of the data.  x: {54, 25, 14, 7}  y: {458, 295, 204, 118}  Note*: For simplicity here, I rounded my dataset numbers to the nearest whole number.    I plotted the data in Microsoft Excel and applied a linear trendline with a the y-intercept set to zero.  I applied the trendline this way because based on Darcy's Law the y-variable (volumetric flow rate) should be zero when the x-variable (pressure gradient) is equal to zero.  Displaying the coefficient of determination on the plot, Excel shows it to be, R2 = 0.779.  When I use Microsoft Excel's  I get a coefficient of determination, R2 = 0.9602, as seen in the image below.      For the LINEST function I used: =LINEST(known y's, known x's, FALSE, TRUE), where in the third argument I used "FALSE" to set the y-intercept, b, equal to zero.  There is a discrepancy between the two coefficients of determination given by Excel, 0.779 versus 0.9602.  Furthermore, if I tell Excel's LINEST function to calculate the regression without a set intercept, e.g. := LINEST(known y's, known x's, TRUE, TRUE), where the third argument I used "TRUE" to, as Excel claims, "to calculate b normally".  I get a coefficient of determination, R2 = 0.9742, as seen in the image below.    This R2 value matches the graphical output Excel provides for the R2 value if I format the plot's trendline to not have a set y-intercept, as seen in the image below.    Since Excel calculated the same R2 value for a trendline without a set y-intercept, this leads me to believe there is something erroneous with the LINEST function when tryint to set y-intercept to zero (using "FALSE" as the third argument).  I have read multiple times that one should really not use Excel for any but the simplest of statistics, and sometimes not even then because Excel has a bunch of "gotchyas".  If I want to calculate the coefficient of determination by hand, how can I do it?  Further, what is going on with Excel, why is it calculating different values?  I am using Excel 2010.


How can I create a local function in my bashrc?

My .bashrc had some code that was repetitive so I used a function to simplify it  do_stuff() {   local version=$1   export FOO_${version}_X="17"   export FOO_${version}_Y="42" }  do_stuff '5.1' do_stuff '5.2'   However, now when I use my shell the "do_stuff" name is in scope so I can tab-complete and run that function (potentially messing up my environment variables). Is there a way to make "do_stuff" visible only inside the .bashrc?


Difference in meaning between "use", "employ" and "utilize"

I am confused with the words "use", "employ" and "utilize".  What is the difference in their meanings, and where they are supposed to be used? There is another topic with the same question, but it is poorly explained.  Could it be used in the title of articles as in the examples below?     Utilizing the advantages of Google mail.       Employing external phone numbers in corporate phone system.


I’m new to MacOS world.  By accident I deleted the admin partition (Directory). Every time when I want to install a programme, the system ask me for the admin login. I enter the login but it is not accepted.  I tried yesterday to reinstall a new OS via recovery to get everything new. The reinstallation was successful (it took more than 2 hours ), but as started the system I found that all my data is still there and I still have the same admin login problem and the same username.  I have tried resetpassword via Recovery but I get a window which says there is user account available   my question is:  How can i fix this problem quickly?  Any advice will be apreciated


PostGIS error while adding feature: no result buffer

Can anyone explain to me the following error and possible fixes?  I am using QGIS 2.12.3 to connect to a PostgreSQL 9.5 database.    What confuses me is that I was able to add a feature and save, but then the second feature I tried to add threw this error.  I've had this happen on previous days, only with QGIS 2.12.  When I use 2.8 I do not get this problem (but some other issues with default values arise with 2.8 so I would prefer to use 2.12)  Any clues as to what's going on?  Update for more detail: I have a postgis table of streets, and another table of signs (mostly freeway navigation signs) which are used for a navigation app.  The signs table does not have any geometry and is in the format (from_link, to_link, navigation instructions, sign_ID).  The from/to links are both ID numbers from the streets layer.  I never have any issue with adding features to the streets layer, only on the signs layer.  This is consistent for more than one layer (I have a separate table for each city) which leads me to believe there may be something weird going on with the lack of geometry?  Only constraint on the sign table is a primary key on the sign_ID  And here is the SQL used for creating the table.  You can ignore most of the fields, they are just various instructions for our navigation code:  CREATE TABLE public.austin_signs (   "Source_LinkID" bigint,   "Destination_LinkID" bigint,   "Sign_ID" bigint DEFAULT 0,   "Seq_Number" character varying(255),   "Exit_Number" character varying(255),   "Exit_LangCd" character varying(255),   "ExitNum_Tr" character varying(255),   "Alt_Ex_Num" character varying(255),   "Branch_RouteID" character varying(255),   "BrRte_Tr" character varying(255),   "Branch_RouteDir" character varying(255),   "Sign_TextType" character varying(255),   "Sign_Text" character varying(255),   "Lang_Code" character varying(255),   "SignTxt_Tr" character varying(255),   "Trans_Type" character varying(255),   "Toward_RouteID" character varying(255),   "TowRte_Tr" character varying(255),   "Straight_On" character varying(255),   id integer NOT NULL DEFAULT nextval('austin_signs_id_seq'::regclass),   CONSTRAINT austin_signs_pkey PRIMARY KEY (id) ) WITH (   OIDS=FALSE );   I am the owner of the database so I don't think it is a permissions issue


How to call multiple variables in an if statement

I'm trying to return a list of IDs from a variable, however I have more than one User ID. It works just fine with one user ID, however when there is multiple it doesn't work at all. Variables: var AuthorizedIDs = ["473903419497775114", "460188583043530762"]  Code: if (userData.id === `${AuthorizedIDs}`) {     response.redirect('/access/login') }  Any help would be greatly appreciated.


Can't find the Material Output in Cycles!

I can't find both Diffuse BDSF and Material Output, i am in fact in cycles render. Here is an image to show   Help would be highly appreciated since i can't really do anything without it at the moment.


Why is my CD command not working on a home-built shell?

I have written a very basic shell in C. It reads the input, then runs it using system(lineCopy); (lineCopy being a copy of the input). All commands will run fine in it, other than cd. When I try to cd to a different directory, it simply stays in the current directory. If I try to cd to a directory that doesn't exist, it says, as it should sh: 1: cd: can't cd to /some_nonexistant_directory. When I try to cd to a directory that DOES exist, however, it reads that command, but then stays in the same directory. The variable in which I store the current PWD is continuesly updating, so it cannot be that. All other commands work perfectly. But why does cd not?


I'm having difficulties opening Poker Stars

I have a problem running an updated version of Poker Stars using Wine. It run, but all I get is a grey window.


Publications list of CV: Comments between references

I'm currently putting together my CV to apply for postdoc positions.  After each paper in my publication list I want to put a short paragraph with an overview of the paper and exactly how I contributed to it.  I have been unable to figure out a way to do this cleanly and I'm currently using this workaround in BibDesk:  I click on the relevant publication and in the 'Year' field (which is usually the last field) I put the following:  2013 \newline \newline \begin{small} "text describing paper" \end{small}   This is quite a dirty workaround however as I am left with an additional full stop (  .) after the descriptive paragraph.  Also if the DOI field is used, it comes after the paragraph.  Does anyone have any suggestions as to how to better annotate references in a publications list?  I feel these descriptive paragraphs are critical for someone assessing my publication record.


Distribution of cosine of a uniform random variable

I am  trying to find the pdf of $Y=\cos(X)$ where $X$ is a random variable distributed uniformly in $[-\pi/2,\pi/2]$.   I tried to use the change of variable theorem but there is a detail in $[-\pi/2,\pi/2]$ since the cosine it's not monotone, and since $\cos(\pi/2)=0=\cos(\pi/2)$. I don't have a way to see the interval that corresponds to $Y$.  Thank you for helping!


It would be great if someone could help me with a Regex for phone numbers. I have one TextBox and I use the C# Control "RegularExpressionValidator" to validate it.   <asp:TextBox runat="server" ID="txtPhone"></asp:TextBox>  <asp:RegularExpressionValidator runat="server"         ErrorMessage="Pleace enter valid phone number "         ControlToValidate="txtPhone"        ValidationExpression="">  </asp:RegularExpressionValidator>   The TextBox text have to allow only to be entered this kind of phone numbers   ex: +934 888 555 22 13  Can someone help me for the Regex?  Thanks in advance


NameError: name is not defined web scraper

Hi I'm trying to build a simple webscraper of ESG data for S&P500 companies but for some reason I keep getting NameError:  name 'web_scraper' is not defined Tried a few things now but cannot get it to work. I'm a beginner so must be overlooking something. Thanks in advance from bs4 import BeautifulSoup import pandas as pd import requests import ipywidgets as widgets from ipywidgets import interact  def get_tickers():  # wiki_page = requests.get()   sp_data = pd.read_html('https://en.wikipedia.org/wiki/List_of_S%26P_500_companies')   ticker_df = sp_data[0]   ticker_options = ticker_df['Symbol']   return ticker_options    def level(x):     if x == 0.0:         return 'No Controversy'     elif x == 1.0:         return 'Little Controversy'     elif x == 2.0:          return 'Moderate Controversy'     elif x == 3.0:          return 'Relatively High Controversy'     else:         return 'Little Controversy'      def web_scraper(ticker):         elements = []         web_data = requests.get('https://finance.yahoo.com/quote/'+ticker+'+/sustainability?p='+ticker).text         soup = BeautifulSoup(web_data, 'html.parser')         esg_score = soup.find('div', {'class':'Fz(36px) Fw(600) D(ib) Mend(5px)'})         datapoint = esg_score.text         controversy_score = soup.find('div', {'class':'D(ib) Fz(36px) Fq(500)'})         controversy_datapoint = controversy_score.text         scores = soup.find_all('div', {'class': 'D(ib) Fz(23px) smartphone_Fz(22px) Fq(600)'})         for score in scores:             elements.append(score.text)      df = pd.DataFrame({'Total ESG Score': datapoint,                    'Environment Score': elements[0],                    'Social Score': elements[0],                   'Governance Score': elements[2],                  'Controversy Score': controversy_datapoint},                   index = [ticker])     df = df.astype('float')     df['Controversy Assessment'] = df.apply(lambda x: level(x['Controversy Score']), axis=1)     return df  @interact def get_esg(ticker=widgets.Dropdown(description='Ticker',                                       options=get_tickers(),                                     value = 'F')):   esg_data = web_scraper(ticker)   return esg_data


Deleting copied elements with jquery on click

I'm currently working on a minimal report building tool. My idea is that the admin is able to build a small form within the frontend. Everything within the white card body is to be displayed, the other table at the bottom is just visible for debugging. the idea itself: the user clicks on one of the dashed bordered buttons at the top and the code copies the coresponding tr from the table below to the main table. so for example, copying the Textbox the tr from below and appends that to the above table. This is working already as planned. The issue: I have a delete button as well, so whenever the user clicks on the delete button in the upper table, it's suppost to delete the table row within the button. here's the code I'm working with: <script>     $(document).ready(function(){         $('.addReportElement').on('click', function(){               let selected = this.id.replace('copy', '');              var row = $('#copy' + selected).closest('tr').html();             $('#tableberichte tbody').append('<tr>'+row+'</tr>');              /* ... */          });          $('.removeTableRow').on('click', function(){             $(this).parents('tr').remove();         });     }); </script>  I don't understand, why it's not deleting one of the copied tr elements, but deletes the ones in the second table.


What is the difference between `this` and `prototype`? javascript oop

While going through javascript course on codecademy.com, I've become slightly confused.  So first we've been learning how to add method to a Class:  function Dog (breed) {     this.breed = breed;     this.sayHello = function () {         console.log("Hello this is a " + this.breed + " dog");     } }; var someDog = new Dog("golden retriever"); someDog.sayHello();   Then we started the "prototype". And there was this example:  function Dog (breed) {     this.breed = breed; }; Dog.prototype.sayHello = function () {     console.log("Hello this is a " + this.breed + " dog"); } var someDog = new Dog("golden retriever"); someDog.sayHello();   Both examples are giving the same result.  Are these two examples are just two ways doing same thing? Or there is a practical difference between two of them?


Is Ubuntu 12.04 still vulnerable to the GHOST bug?

The  vulnerability was announced this week.  I've got a system that's running Ubuntu 12.04 appears to be vulnerable.  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 12.04.5 LTS Release:    12.04 Codename:   precise   ldd --version  ldd (Ubuntu EGLIBC 2.15-0ubuntu10.10) 2.15 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.   According to the link I provided, it was fixed between version 2.17 - 2.18.  I appear to be on 2.15.  I assume it's not been fixed by the Ubuntu team.  Can it be? it's such a major update.  Do I need to do a dist-upgrade?  I haven't seen any announcements or information for those running precise.


Switch statement fallthrough is one of my personal major reasons for loving switch vs. if/else if constructs. An example is in order here:  static string NumberToWords(int number) {     string[] numbers = new string[]          { "", "one", "two", "three", "four", "five",            "six", "seven", "eight", "nine" };     string[] tens = new string[]          { "", "", "twenty", "thirty", "forty", "fifty",            "sixty", "seventy", "eighty", "ninety" };     string[] teens = new string[]         { "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen",           "sixteen", "seventeen", "eighteen", "nineteen" };      string ans = "";     switch (number.ToString().Length)     {         case 3:             ans += string.Format("{0} hundred and ", numbers[number / 100]);         case 2:             int t = (number / 10) % 10;             if (t == 1)             {                 ans += teens[number % 10];                 break;             }             else if (t > 1)                 ans += string.Format("{0}-", tens[t]);         case 1:             int o = number % 10;             ans += numbers[o];              break;         default:             throw new ArgumentException("number");     }     return ans; }   The smart people are cringing because the string[]s should be declared outside the function: well, they are, this is just an example.  The compiler fails with the following error:   Control cannot fall through from one case label ('case 3:') to another Control cannot fall through from one case label ('case 2:') to another   Why? And is there any way to get this sort of behaviour without having three ifs?


Is this geometry problem uniquely solvable?

Knowing AC = BC, find x.    I tried to solve the question and found many angles.    And x + k = 110, x + y = 140, k + z = 130, z + y = 160.  But I still can't find x. Is this problem uniquely solvable?  The book answer is x = 30°.


Prevent Outlook from automatically deleting meeting emails

I'm using Outlook Web Access to read my email. When I receive a meeting notice and acknowledge it, Outlook adds it to my calendar then deletes the email. Is there a way to disable Outlook automatically deleting the meeting email?  There doesn't seem to be any way to configure this in Options - Messaging and Options - Calendar. Note that I'm using Outlook Web Access and not the desktop client.  From the copyright date this appears to be Outlook 2007.  Follow-up: Based on edusysadmin's comment I logged-in using IE8, which exposed a setting not available in Firefox - "Move out-of-date meeting requests and responses to the Deleted Items folder". However unchecking this box doesn't seem to impact the auto-delete behavior.  Follow-up 2: Keep in mind I am using Outlook Web Access via a web browser. I do not have the thick client Outlook installed.


How can I find the difference between two times

How to find the difference between to times in JavaScript?  Here is the pseudocode I've come up with  var firstTime = "20:24:00"; var secondTime = "20:00:52"; console.log(firstTime - secondTime);// 23:08 (23 minutes, 8 seconds)


Tikz for Gabriel and Auslander-Reiten quivers

In the context of representation theory, direct graphs —known there as quivers— appear all the time. Here are  a few samples (from the book of Assem, Simson andSkowroński) First, a couple of gabriel quivers:  These are in general directed graphs which allow parallel arrows (that is, the graph need not be simple) and loops. Next, the beautiful (!) A-R quiver of $E_6$ (which is missing a few dashed lines denoting the translation functor, but still)  I am 100% sure people working in the subject have come up with Tikz styles, tricks and whatnot to draw these things, but googling does not come up with much. In particular (and amazingly!) there is no AR quiver at   Do you have any relevant resources for this?


Why is my 2nd if statement in Java not working?

Good morning!  The goal of my code is to generate all possible three character strings that include A-Z and 0-9.  For example, I want all possibilities from AAA to 999.   Problem:  My own code will only output up to A99.  My 2nd if statement is not generating the next step, which is confounding me.  I need the 2nd if statement to work so that the A in A99 will increase to BAA and keep going.  Here is my code:  {             public static void main(String args[]) {          String[] AZ09 = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};          while (z < AZ09.length) {         System.out.println(AZ09[x]+AZ09[y]+AZ09[z]);         z++;                if ((AZ09[y]+AZ09[z]).equals("99") {                    System.out.println(AZ09[x]+AZ09[y]+AZ09[z]);                    x++;                    y = 0;                    z = 0;               }                if (AZ09[z].equals("9")) {                    System.out.println(AZ09[x]+AZ09[y]+AZ09[z]);                    y++;                    z = 0;               }             }   Solution?  Thoughts?  Please don't post as duplicate.  I tried the .equals() method and still no dice  Thank you so much!


Any benefits to running minecraft in a 64bit environment?

I'm wondering if I was to run minecraft in a 32bit or 64bit ubuntu server; would there be a benefit (speed improvements) or something else, or just the same?  Downsides?


How to resize boot partition or to free space for it?

I've been getting these messages right after I boot telling me I don't have enough space in my boot partition anymore. Today I reached a point I can't install anything else because of this. So I started researching how to resize it.  I found I could resize it using gparted, but I can't install it because there's no space left in /boot.  Some people suggested that those who need to clear some space in /boot should remove old kernels, but I have two issues with that: I don't know how to access /boot in the terminal and I'm not completely sure what a kernel is, so I might just as well delete something important or my current kernel, which I know can damage my OS.  What should I do?


Looking for a book with parallel universes like pages, possibly with "maze" in title, and a black Jewish female character

Looking for a book. A series,  actually.  The main characters were a Jewish man and a black woman who was his wife. There was a running gag when she would tell people her last name and they thought it was unusual that a black woman would have a Jewish name.    They went on adventures in parallel dimensions. I believe that each book had a word repeated in the title, maybe "mirror?" Or "maze?" Or "page..."  it seems they jumped into worlds through a tool like a mirror or a book.   The parallel universes were like pages, and the pages closest to you were most similar but the further you got the further they were from your life.  One page over might be that you had something different for breakfast and so now you have a tummy ache, a few more pages over you might have become a prostitute, too far and it was theorized that humans had evolved differently altogether, I didn't get that far in the series.  For adults, and humorous.  I read them about 15 years ago, so they are not new. I would love to find them again.


What's the difference between A a; and A a();?

What is the difference between the declarations of the classes below?  class A { public:     A()     {         std::cout << "A()\n";     }     ~A()     {         std::cout << "~A()\n";     } };  int main(int argc, char *argv[]) {     A a; // <-- this call the constructor and destructor     A b(); // <-- this is not!! what is a b()?     return 0; }   What is a b()?


$(n-1)^2$ divides $(n^k -1) $ if and only if $(n-1)$ divides $k$


In this thread, we look at examples of good uses of goto in C or C++.  It's inspired by  which people voted up because they thought I was joking.  Summary (label changed from original to make intent even clearer):  infinite_loop:      // code goes here  goto infinite_loop;   Why it's better than the alternatives:   It's specific.  goto is the language construct which causes an unconditional branch.  Alternatives depend on using structures supporting conditional branches, with a degenerate always-true condition. The label documents the intent without extra comments. The reader doesn't have to scan the intervening code for early breaks (although it's still possible for an unprincipled hacker to simulate continue with an early goto).   Rules:   Pretend that the gotophobes didn't win.  It's understood that the above can't be used in real code because it goes against established idiom. Assume that we have all heard of 'Goto considered harmful' and know that goto can be used to write spaghetti code. If you disagree with an example, criticize it on technical merit alone ('Because people don't like goto' is not a technical reason).   Let's see if we can talk about this like grown ups.  Edit  This question seems finished now.  It generated some high quality answers.  Thanks to everyone,  especially those who took my little loop example seriously.  Most skeptics were concerned  by the lack of block scope.  As @quinmars pointed out in a comment, you can always put braces around the  loop body.  I note in passing that for(;;) and while(true) don't give you the braces  for free either (and omitting them can cause vexing bugs).  Anyway, I won't waste any more of your brain power on this trifle - I can live with the harmless and idiomatic for(;;) and while(true) (just as well if I want to keep my job).    Considering the other responses, I see that many people view goto as something you always  have to rewrite in another way.  Of course you can avoid a goto by introducing a loop,  an extra flag, a stack of nested ifs, or whatever, but why not consider whether goto is  perhaps the best tool for the job? Put another way, how much ugliness are people prepared to endure to avoid using a built-in language feature for its intended purpose? My take is that even adding a flag is too high a price to pay.  I like my variables to represent things in  the problem or solution domains. 'Solely to avoid a goto' doesn't cut it.  I'll accept the first answer which gave the C pattern for branching to a cleanup block. IMO, this makes the strongest case for a goto of all the posted answers, certainly  if you measure it by the contortions a hater has to go through to avoid it.


How to check folder size in Google Drive

You can look up file sizes on Google drive but it does not show the size of the whole folder. I've been looking for ways to get the size of a folder on Google Drive but couldn't find any. Is there any way to see how much space a folder has taken on Google Drive?


If the order of a number (mod n) equals n-1 then n is prime?

I have trouble in understanding the last part of the sufficiency proof of Pépin´s Test ().  "In particular, there are at least least F_{n}-1 numbers below F_{n} coprime to F_{n}, and this can happen only if F_{n} is prime".   Can anybody explain me that? Is it true that if the order of a number (mod n) equals n-1 then n is prime?


Dealing with numbers above 100 quadrillions in JavaScript

Below values hardcoded to console.log does not match with condole output:  console.log(12345678901234567); // 100 quadrillions console.log(123456789012345678); // 1 quintillion console.log(1234567890123456789); // 10 quintillions console.log(12345678901234567890); // 100 quintillions     Why it happened and how I should to deal with it?


Odd number returning two as prime factor

This function takes a number and returns its prime factors as an array. I ran a bunch of test cases and all comes out correct except this number 90000004000000001.   The code is not optimized at all, so most numbers that large will time out. However, this one test case computes for some reason and it gives me the factors [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 89, 241, 1049] which is obviously nonsense since 90000004000000001 is an odd number.  When multiplying the factors together the resulting number is 90000004000000000. 1 lower than the original number.  That's strange, so I tried 90000004000000001 % 2 which returns0.  I'm starting to think my function might not be the problem here but rather modulus or numbers in javascript. How come an even number can be divisible by 2 as in this case?  I put a few test cases as console logs together with the code snippet so you can see the results.  Thanks!     // Assuming it works will factor an integer into its prime components and return them as an array function factorize(num) {   num = Math.floor(num);    // the array to store all factors   let factors = [];    // goes through all numbers starting at 2   // break when a factor is found   // will also break if num is prime (its own factor)   let i = 2;   while (true) {     if (num % i === 0) {       factors.push(i);       break;     }     i++   }    // i is the factor from the while loop   // if num is not prime recursively factorize the remainder after factoring out i   if (i !== num) {     factors = factors.concat(factorize(num / i));   }    return factors; }   console.log(factorize(16)); //[2, 2, 2, 2] console.log(factorize(101)); //[101] console.log(factorize(100001)); //[11, 9091] console.log(factorize(141)); //[3, 47] console.log(factorize(90000004000000001)); //[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 89, 241, 1049] console.log(factorize(90000004000000001).reduce((a, b) => a * b)); //90000004000000000


Convert Decimals to Integers Before Adding, Subtracting, Multiplying or Dividing Them

I put together a basic calculator where the user can type their equation into a text box and click solve. Any equation that includes addition, subtraction, multiplication and/or division can be entered example: 1*2+18/2+(7+2)  The problem is when decimals are used. I've found that there's no simple solution in JavaScript or jQuery to handle them in the context of a calculator. Every single JavaScript calculator tutorial doesn't work correctly with decimals.  I think the best way to handle them is to convert them to integers? I thought about multiplying the decimals by 100000, doing the math, then dividing by 100000 but this only works with addition and subtraction. What method would work to convert decimals to integers when the equation contains mixed operations such as 1*2+18/2+(1.2 + 0.64) then convert it back?  Fiddle:   HTML  <input type="text" id="userProblem" size="100"> <input type="submit" id="solveButton" value="Solve">

   JavaScript  solveButton.onclick = function () {     var answer = eval(userProblem.value);      answerDiv.innerHTML = answer; };


Is there a difference between them? If so, how and when are they used?  For example:     I fixed a little/small typo.


I ran something like:  sudo chmod -R 777 /.     In my Ubuntu 16.04 LTS it shows many errors on display, but anyway, the damage was done. Now I can't use sudo  sudo: error en /etc/sudo.conf, línea 0 mientras carga plugin 'sudoers_policy' sudo: /usr/lib/sudo/sudoers.so sólo tener permisos de escritura por el propietario sudo: error fatal, no se puede cargar los plugins   And besides of that I'm nervous about what else I have broken.  Is there a way to reestablish the right permissions of the system files?  I apologise for the English, that is not my native language.


Why doesn't Ubuntu 12.04 upgrade Libreoffice,as Firefox?

I use Ubuntu 12.04 in a machine for working,and don't know why Libreoffice doesn't upgrade to last version,and Firefox does.


When did The Doctor start running so much?

Thanks to Netflix Streaming, I've been watching some random classic Doctor Who stories.  One thing that strikes me as different between the modern Who and old Who was that in modern Who, they do an awful lot of running.  It's become a sort of running gag that they've referenced in-universe.  In the classic Who I've seen, he tends to drive around quite a bit instead.  In addition, The Doctor in modern Who is incredibly reliant on his sonic screwdriver, which I often don't see at all in classic Who stories.  Did the Doctor running and the sonic screwdriver get introduced over time in classic Who, or were they both added as part of the modern Who revival?


how do compression and expansion of air transfer energy(sound) and why it is adiabatic not isothermal?

Suppose a vibrating fork exerts force to the air particles to compress which leads to the increase of internal energy (heat).This heat or energy given by the fork is given to the next layer of air and in this way, this energy makes sound. But if it was so, it will be isothermal. And Laplace told it was adiabatic. How can it be? I am confused. The heat energy infact is the energy given by the fork. If it is adiabatic, how can the air pass this energy ?


Title does not appear when LaTeX code is compiled

I use Texmaker 4.0.1 to write LaTeX code. I have written the following code:  \documentclass[12pt,onecolumn,oneside,a4paper]{article} \begin{document} \title{test} some text \end{document}   I saved it with the name test.tex and compiled it with pressing F6 -> F6 -> F2 -> F9 in succession. When I press F7 (View PDF) I see no title in the pdf but only "some text" that is, title does not appear.  Later, I have written the following code and saved it with name test1.tex:  \documentclass[12pt,oneside,onecolumn,a4paper]{article} \begin{document} \title{some title} \end{document}   When I compile it pressing F6 -> F6 -> F2 -> F9 in succession, the following message appears,     test1.dvi -> test1.pdf ** ERROR ** Could not open specified DVI file: test1.dvi Output file removed.   And neither dvi or pdf file is made.  I use Miktex 2.9 on Windows 7.


how to make a 0.5w resistor from 0.25w resistors

Can I use two or more of 0.25 W resistors to get a 0.5 W resistor? How do I make a 220Ω 0.5 W resistor using 0.25 W resistors (no matter what the value of the resistors). All I know is  V=I×RV=I×R (which we call Ohm's law)  P=I×VP=I×V (sometimes called Watt's law)  am gonna explain more about the project ..  its a metal detector with a pulse induction and the problem was  at the coil poles it must be a 220 ohm 0.5w and the battery was 12 v 70 mA this is the shematic of the project   sorry for my bad english


I'm trying to rotate an arrow based on an attribute but the arrow is off by 90 degrees.    Is there a method for doing a mathematical expression on the attribute within the sld?    I've gone over  and  but have not had any luck.  It so far everything I have found pertains to arrows on lines and not arrows alone  this is how Im currently rotating   <se:PointSymbolizer>             <se:Graphic>               <se:Mark>                 <se:WellKnownName>arrow</se:WellKnownName>                 <se:Fill>                   <se:SvgParameter name="fill">#236de5</se:SvgParameter>                 </se:Fill>                 <se:Stroke>                   <se:SvgParameter name="stroke">#000000</se:SvgParameter>                 </se:Stroke>               </se:Mark>               <se:Size>30</se:Size>              <se:Rotation>                 <ogc:PropertyName>heading</ogc:PropertyName>             </se:Rotation>             </se:Graphic>             </se:PointSymbolizer>   After reviewing  along with reading the geoserver documentation again it is still unclear on where in the function you choose your operator.  In my case I would like to use addition.  The above question is for multiplication. I would be multiplying by 90 not adding 90, the documentation doe not have comparative examples of mathematical functions being used.  I do not see in the documentation where <ogc:Mul> is described. I can assume that <ogc:Add> would work but where is this supported with documentation.


Area under the ROC curve for continuous variable

I have the true output as the ratio between 0 and 1. I am trying predict the output using regression. I am supposed to find the area under the ROC curve between the prediction and true values. I am not aware of ROC curve calculations for continuous variables. Any suggestions are welcome.


Past participle as adjective without verb 'to be'

Looking at the clause      "... to talk to two separate people or groups involved in a   disagreement"   is the word 'involved' an adjective here? If it is, shouldn't it be 'that are involved'?


Searching Natural Language Processing in Google Image search gives many images of this type:      Note that there are only horizontal and vertical texts with random formatting. What is a generic way to get this?


What causes yogurt in sauces to split? How to prevent it?

A lot of my favorite curry recipes have a yogurt based sauce in them, but on a pretty regular basis when I make them, the yogurt ends up splitting into basically curds and whey. What causes that, and how can I prevent it?  As an illustrative example, last night I made a simple tofu curry as follows:   warm evoo in a pan add chopped onion, saute briefly add curry seasonings, allow to warm/season the oil add cubed tofu, toss to coat cook for a while, tossing periodically to lightly brown the cubes turn heat off add plain greek yogurt stir to combine   In the few minutes it took to finish the rest of the meal and start plating, the yogurt had separated so I had a clumpy, lumpy, yogurt soup instead of a smooth creamy sauce.


A term for when people insist on giving you help you didn't ask for?

People love to tell other people what to do. It may not be control, so much as trying to help, especially when you've asked for help directly. However, there's a difference between answering someone's question and answering while piling on recommendations the person didn't ask about, and this is what I'm seeking a term for. Advertising and marketing feel similar to me in this vein. In the worst cases this can be overzealous religious followers professing your damnation if you don't follow with them (I think in Christianity they call it "witnessing"). Any which way, it comes across to me as a form of unsolicited advice: I didn't ask for it, so I don't want it; I want to stay focused.  Is there a better term for this than "unsolicited advice"? Also, is there a term for a person who exhibits this kind of behavior frequently?


I need to use strncpy_s in my code. The code needs to be compiled using msvc71 as well as msvc90 compilers. It turns out that strncpy_s is not supported in msvc71. I have implemented my own version of strncpy_s  So I want to compile this implementation of strncpy_s only when the compiler is msvc71. How can I do this?


Ubuntu 12.04 installer does not recognize Windows 7

I recently purchased an ASUS N56VZ-ES71 laptop which came with Windows 7 Home Premium installed on it. I wish to dual boot Windows 7 and Ubuntu 12.04 on it. I shrank the hard drive partitions to leave about 150 GB unallocated for Ubuntu 12.04. When I boot the Live CD of Ubuntu and attempt to install, the installer does not recognize any other operating systems. Through reading a few questions, I have found that this is due to a GPT partitioning table that Windows uses.  I ran boot-repair as per other threads' suggestions. This was my output:   I suppose my question is: how do I proceed in order to get the installer to recognize Windows, so that I don't have to erase the current partition table and can get a safe install?  Thanks in advance.


Trying to find the index of an entry in a list

I am trying to find the index of an list entry using this simple method:  #!/bin/sh  partList="500 1000 2000 4000" a=( $partList ) echo ${a["500"]}   this returns Syntax error: "(" unexpected. And the same error if I try echo ${a[500]}. Where I was hoping it would return 0 if using 500.  I am simply looking for a quick and dirty way to tell, when am looping over a list as so:   for j in $partList; do    if [ $j is the first entry in the list $partList ]; then      stuff happens..    done  done   whether or not I have used the first element of that list and if so then do some logic.  I thought I could do this easily using the index of the list. But this appears difficult with #!/bin/sh.  Any suggestions?


to infinitive as direct object?! (as in : I promised to get there in time.)

I'm a passionate Korean English-learner, and I would like to ask you a question about grammar.   It was 3 years ago when I first started to study the to-infinitive as studying grammar with Grammar In Use series and English Grammar series by Longman, having been exposed to English for 3 years. There wasn't any mention of the author saying that the usage of the to-infinitive is as an (direct) object. And for me also, the times I have encountered sentences in which the usage of the to-infinitive, so to speak, as direct objects were used, I've read them as some kind of obligatory adverbial that shows what the verbs are about, not as objects, which means they are noun phases! 100% of Korean textbooks say the usage is as a direct object, but I doubt it. I think it's some kind of obligatory adverbial that shows what the verbs are about.    I thought it was better for me to ask Americans themselves. Do you read this usage of to-infinitive as a noun phrase or an adverbial?


Why there is no vaccine against Human Immunodeficiency Virus (HIV)?

I was informed by my teacher that this retrovirus changes its RNA, so there is not a drug which can recognize the RNA and somehow inactivates it. Are there any other reasons explaining why there isn't a vaccine for the HIV?


I've noticed a tendency in recent technical literature to use feminine pronouns, instead of the more traditional masculine. For example one might write she [the user] enters her password. It's not difficult to see how this may come to be in the age of political correctness, but I always found it quite amusing. To countervail, some computer scientists have started calling the motherboard "fatherboard", which is even funnier.  Which brings me to my question: When I write technical documentation, I use the plural them or their with a singular user. For example, I might write something along the lines of the user enters their password, in an attempt to sound vague and non gender-identifying, while at the same time preserving the notion of the user as a person. While this sounds acceptable to my foreign ears, it occurs to me that I might be severely abusing the language.   Is my usage of their in this context correct? Is there something else that I can use in its place?


Can the public track feature-requests via a view into the SO ticket tracker?

This other  seems mildly related, but not really.  Where can the [M]?S[UOF] community see whether features we've requested or bugs we've reported are being actively tracked and/or are in process?  Can we even see those? If not, I'm requesting to be able to :)


How to figure out where the UV shows on the Mesh?  I know that there is an option or button to find out what part of the UV mapping matches up with the mesh so that fixing problems is easier.   Does anyone know what that option is?


How to schedule a shutdown after finishing Windows updates without having to use command-line?

This is pretty much a repeat of the question from social.technet.microsoft.com:   After a quick Google search, the above link is the only link I could find which was directly related to what I am looking for. But on that page the discussion seems to have decayed into some inconclusive babble, and I thought Superuser might be a good place to get a conclusive result (even if it is in the negative).  So is there a way I can tell Windows to shutdown the machine after it is done installing the updates? Please note that I want it to shutdown and not restart, so that my PC doesn't stay on the whole night. I thought of scheduled tasks, but am not able to come up with a good argument that I can pass to make it do what I need it to.


If we think at conics as intersections of a plane with a double cone we can see the degenerate conics as intersections with a plane passing thorough the vertex of the cone.  For the real degenerate conics this gives an easy intuition of how a degenerate conic can be  a point, or  a line, or two intersecting lines. But how we can  see  (intuitively and in a simple way) the situation in which the degnerate conic is a couple of parallel lines, as for the equation $x^2+2xy+y^2=1$ ? Where is the intersection plane in this case?


Nullpointer exception when using HashMap's getValue method in java

I was trying to solve  : And my solution was this: import java.io.*; import java.util.*;  public class Solution {      public static void main(String[] args) {                  Scanner sc= new Scanner(System.in);           int n=sc.nextInt();         int size[]=new int[n];                  String str[]= new String[n];                      for(int i=0;i<n;i++)           {             //  System.out.println("INSIDE LOOP");               size[i]=sc.nextInt();              // System.out.println(size[i]);                               str[i]=sc.next();             }            for(int i=0;i<n;i++)           {               Map<Character,Integer> map = new HashMap<Character,Integer>();               int count=0;               int k=0;               for(int j = 0;j<size[i];j++)               {                   if(map.containsKey(str[i].charAt(j)))                   {                       map.put(str[i].charAt(j),map.get(str[i].charAt(j)+1));                   }                   else                   {                       map.put(str[i].charAt(j),1);                   }               }               for (Map.Entry<Character,Integer> var : map.entrySet())                 {                   if(var.getValue()==1) //**NULLPOINTER EXCEPTION IS OCCURING HERE**                   {                      k=1;                      continue;                   }                   if(var.getValue()%2==0)                   {                       count=count+var.getValue();                   }                                  }                                /*                  * for (Map.Entry<Character, Integer> var : map.entrySet()) {                  * if(var.getValue()==1) { count++; continue; } if(var.getValue()%2==0) {                  * count++; } }                  */               System.out.println(count);                          }                                                                                /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */     } }   And no matter which method I employ to traverse its giving me the same nullpointer exception. THIS IS THE ERROR: java.lang.NullPointerException at Solution.main(Solution.java:41) Now, I dont understand why it would give nullpointer exception when I'm just traversing. Is the map empty? How would it be if I added key, value pairs before? How to solve this nullpointer problem?


How i recover my icloud username and password

My device is iPhone 4. I forgot my icloud username and password. How can i recover my username and password ? Would you please help me ? Its important as i cant use my device.