Ubuntu 17.04 to Ubuntu 18.04 LTS and Dual Boot Windows 10

I am new to the Linux community and ended up installing 17.04 a while back ago. However, now I really regret that.  I need to have both Windows 10 and want to upgrade to 18.04 LTS as I hear it's available today. Can you please provide me a step by step guide on doing this? I don't have a great understanding of Linux systems yet, so I would appreciate a guide in layman's terms.


Can you leave the US as a dual citizen with an expired US passport?

My daughter has dual citizenship: US/German.  We will be flying from Germany to the US in 6 weeks. Her US passport will expire during our stay in the US, but not on the day of our flight (4 days later). Do you think I should get ESTA for her? Just to make sure that the airline will let her board the plane? Will there be any problems with getting back to Germany without ESTA and with an expired US passport?


If you have a Nintendo Network ID on your Wii U and you get another Wii U, can you log in on the other Wii U with your same account?

I got a Wii U, and I made myself a Nintendo Network ID. Then one day I made my sister a Nintendo Network ID,too. Now, my sister is getting a Wii U, and we don't know if she can use her account on the Wii U she's getting, or if she will have to create a new account. Please let us know if she can log in with her account on the Wii U she's gonna get. NOTE: I didn't know there was a similar question. If I knew why would I ask the same question instead of just reading another one. And honestly I didn't even know that NNID meant Nintendo Network ID. I don't know what to do if it's EXCATLY the same....


appologies if i get the question format wrong, this is my first post.  so im writing my thesis at the moment, and all of a sudden natbib seems to stop working entirely.  im not sure why, but all of a sudden citet just reverts to bracketed number..  the format i need is that citep appear as bracket numbers, i.e. [1;2;4] etc. and that citet appear as NAME (YEAR), but no matter what i try citet print square bracketed version..    so i tried to create a dummy document with nothing in it, and citet seems to be working the same way.. what am i doing wrong here guys?  \title{natbib issue} \author{         James } \date{\today}  \documentclass[12pt]{article} \usepackage{natbib} \begin{document} \maketitle   \section{citep} This is how citep is working\\ ...As seen in previous work \citep{bibreference}. \paragraph{}  should be\\ ...As seen in previous work [1].  \section{citet} This is how citet is working\\ \citet{bibreference} reports that... \paragraph{}  should be\\ Abbasi et al. (1999) reports that...  \bibliography{paper} \bibliographystyle{plain}   \end{document}


Defining projection, reprojecting, and wrong area values

My data:  (USGS circa 2003 data on aquifers in the contiguous U.S.) Program: ArcGIS 10.1   The shapefile has no coordinate system or spatial reference. The metadata specifies NAD 1983 and in decimal degrees. My goal is to render this in such a way as to obtain 'normal' area/length/etc. values in meters for the purposes of calculating overlays with other spatial data. I cannot project the data because it has no coordinate system (error: no input coordinate system specified; paraphrasing)...batch/define doesn't work correctly either (the former same error, the latter (technically for use with rasters?) defines the projection, but reprojecting using the project tool doesn't do anything substantive (i.e. areas for huge swaths of the U.S. "46.1" etc. etc.).


How to create column - aligned entrys in a itemize enviromenment (in 2nd. level)

i'd like to itemize a list of properties for my experiment protocol. What I want is:    there is some nice way to align itemized entrys in  and in  but I can't get it properly done in the 2nd level itemize. Here is what I got at the moment  \documentclass{book}  \begin{document}    \begin{itemize}     \item Analysewaage     \begin{tabular}{p{0.4\textwidth}p{0.5\textwidth}}  \begin{itemize}   \item Topic Apple:  \item Topic Watermelon:   \end{itemize} & \begin{itemize}   \item[] Something to say about it   \item[] Something to say about it \end{itemize} \\  \end{tabular}  \end{itemize}   \end{document}


Does a derivative exist if it is equal to infinity

I recently was reading through my James Stewart calculus book and learnt  the limit laws . Take for example the sum rule if the limit of 2 functions exist then the sum of their limits is equal to the limit if their sums.this we can use to prove the sum rule for derivatives. However when they say exists what exactly do they mean for example does the limit need to be a real number.for example if the limit of some function is $\lim_{x \to a} f(x)$=$+\infty$ Does the limit not exist and hence we cannot use the sum rule ?


MLE for logistic regression, formal derivation

I am currently working through Bishops' Pattern Recognition and Machine Learning where the following issue came up.  It is closely related to the unanswered post below, but I wanted to propose a more formal approach.   The confusion arises in Bishops chapter 4, when he introduces logistic regression for a two-class problem where he estimates the posterior $p(C\mid x)$ by ML. Just a few paragraphs above he had shown how to calculate the likelihood for MLE estimates of means and variances of two Gaussian class-conditional distributions. Therefore, the product of the joint distribution accross all samples is calculated and the log-likelihood is then minimized.  Introducing the MLE for logistic regression for the $w$ parameters in the sigmoid $\sigma(w^Tx)$ however, it appears that he only takes the product of the posterior probabilities $p(C=t_i \mid x_i)$ (approximated for members of the exponential family by sigmoids $\sigma(w^Tx)$) and comes up with the logistic cross-entropy loss function $$\ell(w) = \sum_i t_i \log(\sigma(w^Tx))+(1-t_i)\log(1-\sigma(w^Tx)).$$ Then he goes on discussing properties of the function and minimization algorithms.  Now, my problem: Why can he apparently start logistic regression MLE from the product of posteriors $\prod_i p(C=t_i\mid x_i)$? If you like, in the post cited above you can find an (incomplete) motivation for this that I suggested.   Here I wanted to propose a slightly different approach for an answer and ask for your opinion.  Isn't he actually only pararmetrizing the posterior with the sigmoid function? So maybe a more complete derivation of log-reg. MLE could read:  \begin{align} \ell(w)  &= \log\prod_{i=1}^N p(C=1, x_i)^{t_i} \cdot p(C=0, x_i)^{1-t_i}  \\[8pt] &= \log\prod_{i=1}^N p(C=1\mid x_i)^{t_i} \cdot  p(C=0\mid x_i)^{1-t_i}~~p(x_i) \\[8pt] \end{align}  and only then parametrize $p(C\mid x)=\sigma(w^Tx)$ to obtain $$\ell(w) = \sum_i t_i \log(\sigma(w^Tx))+(1-t_i)\log(1-\sigma(w^Tx))+log(p(x_i)).$$  Finally, as the marginal $p(x)$ is not parametrized with $w$ it will not influence the minimum-location w.r.t. $w$.  Intuitively this seems to make some sense, as the log-reg just gives a (linear) discriminant depending on the targets and does not provide (being a probabilistic discriminant) an estimate for the marginal/unparametrized $p(x)$.  Is this a valid starting point for thinking about this?


and my recent experiences in the suggested edits review queue (e.g.  or ) made me realize a very typical pattern: Keywords are put into backticks and line-breaks not followed by two empty spaces or a paragraph are <br>ed. This is so trivial it could actually be an automated action by some folks massively gaming the suggested edit system to farm rep. I declined those edits as too minor, but they seem to appear so regularly that maybe a mechanism should be implemented to detect these "edits"?


Specifications for LED strips - power supplies + installing in automobiles

There never seems to be any talk of using a "LED driver" when using LED light strips in automotive applications.  From my research it seems that LED strips have no voltage regulation and only a voltage dropping resistor.  This mean that the 14.2 typical peek "full alternator charging voltage" could cause some damage to these.   Why does no one seem concerned?  Also I seem to read a lot of double talk about "LED drivers".  Shouldn't these just be common DC power supplies that supply a constant voltage of 12V with an amperage capacity that meets or exceeds that defined as required by the LED strip?  And thirdly, why is there not much talk then of the amperage required by a string of "sticky tape" LED strips?   Is it because the industry only talks in "LED driver speak" rather than "volt and amp speak"?  ****** UPDATE AFTER ANSWER 1 BELOW:  I guess what I am asking, and thanks for this detail by the way, regarding the common "roll of LEDs" on a spool that are made and shipped from China that so many people are selling now, regarding these, what I have read is that they use single resistors for each LED in the strip so something to regulate the voltage would be needed.   Now a) is this true, that most of them use individual resistors and b) isn't that really just a constant 12V power supply with an amp rating greater than or equal to that required by the sum of the strips and c) doesn't this mean that the 14.2V commonly reached when an alternator is charging an auto battery at full capacity, that the strip is over powered and will burn out more promptly?   Thanks again.


Getting “Enter passphrase for key” for a linux machine from shell script

Context: Want to automate a process which requires a connection to Linux vm machine from code running on AWS cloud.  Code Snippet:  #!/bin/sh ssh -i LinuxVM.ppk testuser@<ipadress> 'df -h'.   Result: When I am running the above shell script I am getting an error "Enter passphrase for key 'LinuxVM.ppk':"  The same PPK file I am using to connect the remote vm through 'putty' and I am through.  While creating the PPK from puttygen file I have not given any phrases.


I have heard that when the speed of the object increase, the mass of the object also increase. ()  So inertia which is related to mass, increase with speed?  So, if I accelerate on a bus, my mass will increase and my inertia will increase for a while on the bus, until the bus stops?


Aggregate Summaries of Posts of Different Blogs in Multisite Instance

I have a Multisite Wordpress installation with 7 different blogs. I want to show an aggregate of the summaries of posts from those 7 blogs in the main blog. Do you know a good way to do this?


Omit data from the bib file in citation, but show it in the bibliography

I’d like to cite a website including its name, maintainer and URL, but not the access date, in a footnote.  Using the \fullcite command, the whole entry appears in the footnote as well as in the bibliography. Is there a way to keep the access date in the bib file, so that it appears in the bibliography, but to omit it in the citation?  \documentclass{article} \usepackage[english]{babel} \usepackage[backend=biber]{biblatex} \usepackage{csquotes} \usepackage{filecontents} \begin{filecontents}{test.bib} @online{doe2015,         title = {My Website},         url = {https://website.org},         author = {Doe, John},         urldate = {2015-09-17}, } \end{filecontents} \addbibresource{test.bib} \begin{document} The fullcite command in a footnote:\footnote{For reference see \fullcite{doe2015}.} \printbibliography \end{document}


I've tried frying potatoes (generally cubed small, like 1/4") in my cast iron pan but they frequently stick very badly. Badly enough so I've got to resort to scraping with a metal spatula. The pan is not like 50 years old and perfectly well-seasoned or anything, but I have no trouble with any other kind of food sticking.  They generally come out ok but just not very brown and crispy, as you would like fried potatoes to be.  Anyone have any advice? Temperature ranges to try to improve the results?


How to prove the $n\times n$ matrix $A=\big(\frac{1}{i+j+1}\big)_{i,j\in [n]}$ is positive semi-definite?

We've been trying to show that the matrix $$A=\Big(\frac{1}{i+j+1}\Big)_{i,j\in [n]}$$ is positive semi-definite. We've tried induction on $n$ using the Schur complement, but there is no simple analytic way to find $A_{n-1}^{-1}$ for every $n$.   Any advice?


Why do some researchers publish preprints? I am not a scientist but asked this on a medicine professor. He said that it would be bad for a scientist's career if he or she publishes a preprint and someone takes the results and publishes the article before he or she gets the publication to a journal. Are there some benefits of preprints?


As the title states, I want to be able to print 101 in the following code:  #include <iostream> #include <sstream> #include <string>  class A {     public:         virtual int num();  // Method I want to override         std::string str(); };  class B: public A {     public:         int num(); };  int A::num(){     return 0;  // default value }  std::string A::str(){     std::ostringstream s;     s << num();     return s.str(); }  int B::num(){     return 101;  // overriden value }  int main(){     B b;     A a = b;  // Upcast     std::cerr << a.str() << std::endl;  // Want to print 101, but print 0      return 0; }   In the general case, I have multiple subclasses of of a parent (A) that implement their own logic for calculating something (num()), and the parent performs the same stuff on the output of that something (str()) for all different implementations of num(). I couldn't figure out how to do this in c++.  I come from a python background and am still learning c++. Normally this would work in python, but if this isn't a good design or not the right OOP way of doing this, feel free to offer an alternative solution that doesn't involve inheritance.


Is there any other way that we can take auto backup in oracle 11g apart from RMAN?

I have tried with RMAN. But is there any other possible way that we can backup database and tables. backup using queries or stored procedures is possible?


El Captain update download doesn't continue after restarting the Mac

I started to download the El Capitan upgrade, but then I shut down my computer. The day after I wanted to continue the download but in App Store it shows "Waiting..." and doesn't do anything. Also when I go to the updates section, it shows the button "Download" but it's inactive. Maybe someone can help me? I tried to find the download file in some directory to delete it and start over but I couldn't find it.


I have an adapter like this  if(modelSalesAct.getStatus().equals("2"))     {         viewHolder.ivStatus.setImageResource(R.drawable.ic_black);     }     else     if(modelSalesAct.getStatus().equals("3")||modelSalesAct.getStatus().equals("4"))     {         viewHolder.ivStatus.setImageResource(R.drawable.ic_yellow);     }     else     if(modelSalesAct.getStatus().equals("5"))     {         viewHolder.ivStatus.setImageResource(R.drawable.ic_red);     }   this is to set different image match with condition status. But I get a error message like this     java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageResource(int)' on a null object reference                         at com.kreators.nvmobile.dashboard.AdapterSalesAct.getView(AdapterSalesAct.java:133)   error stopped on line I am setImageResource from my drawable. Why is it happen ? I don't know what happen. Can anyone help me ?  FYI, this my my ViewAdapter          ViewHolder viewHolder; // view lookup cache stored in tag      final View result;      if (convertView == null) {          viewHolder = new ViewHolder();         LayoutInflater inflater = LayoutInflater.from(getContext());         convertView = inflater.inflate(R.layout.row_sales_act, parent,                 false);         viewHolder.ivHeader = (ImageView)                 convertView.findViewById(R.id.ivHeader);         viewHolder.txtCUSTID = (TextView)                 convertView.findViewById(R.id.ADAPTERCUSTID);         viewHolder.txtSalesName = (TextView)                 convertView.findViewById(R.id.ADAPTERSALESNAME);         viewHolder.txtSales = (TextView)                 convertView.findViewById(R.id.ADAPTERSALES);         viewHolder.txtChannel = (TextView)                 convertView.findViewById(R.id.tvCustomer);         viewHolder.ivStatus = (ImageView)                 convertView.findViewById(R.id.ivStatus);         viewHolder.txtTarget = (TextView)                 convertView.findViewById(R.id.tvTarget);         viewHolder.txtSI = (TextView)                 convertView.findViewById(R.id.tvSI);         viewHolder.txtPercentPSI = (TextView)                 convertView.findViewById(R.id.tvPercentPSI);         viewHolder.txtPercentSI = (TextView)                 convertView.findViewById(R.id.tvPercentSI);         viewHolder.txtSO = (TextView)                 convertView.findViewById(R.id.tvSO);         viewHolder.txtAR = (TextView)                 convertView.findViewById(R.id.tvAR);          result=convertView;         convertView.setTag(viewHolder);     } else {         viewHolder = (ViewHolder) convertView.getTag();         result=convertView;     }      viewHolder.txtCUSTID.setText(modelSalesAct.getCUSTID());     viewHolder.txtSalesName.setText(modelSalesAct.getSALESNAME());     viewHolder.txtSales.setText(modelSalesAct.getSALES());     viewHolder.txtChannel.setText(modelSalesAct.getChannel());      if(modelSalesAct.getStatus().equals("2"))     {         viewHolder.ivStatus.setImageResource(R.drawable.ic_black);     }     else     if(modelSalesAct.getStatus().equals("3")||modelSalesAct.getStatus().equals("4"))     {         viewHolder.ivStatus.setImageResource(R.drawable.ic_yellow);     }     else     if(modelSalesAct.getStatus().equals("5"))     {         viewHolder.ivStatus.setImageResource(R.drawable.ic_red);     }     viewHolder.txtTarget.setText(modelSalesAct.getTarget());     viewHolder.txtSI.setText(modelSalesAct.getSI());     viewHolder.txtPercentSI.setText(modelSalesAct.getPercentSI());     viewHolder.txtPercentPSI.setText(modelSalesAct.getPercentPSI());     viewHolder.txtSO.setText(modelSalesAct.getSO());     viewHolder.txtAR.setText(modelSalesAct.getAR());      return convertView;


Is it possible to remember a network but manually initiate connection every time?

I occasionally use my phone to connect to the work network for quick diagnostic purposes. I do not like being connected to it for regular use, as I don't like my phone activity to be traceable by my employer.  Is it possible to remember a WiFi network, but only connect when manually triggered?


How does peer review assess the validity of experiments carried out?

In a research paper scientific experiments are carried out and their results recorded.  Anybody can just fabricate experiment data saying they did an experiment and these were the results. The only way you'd know if it was true is if other non related people repeated the experiments and found the same data. Does the peer review process ensure experimental data being reported is accurate and how so?


I'm using a Lenovo Ideapad u330p. It came with Windows 10 preinstalled.  I installed Ubuntu 16.4 on a separate partition and the default boot loader was replaced with Grub 2.  I have since uninstalled Ubuntu but found I was unable to boot from a UEFI USB or CD/DVD device through Grub.  I uninstalled Grub hoping it would default to the Windows Boot Loader. This wasn't the case. I now receive the following error message;  "System boot order not found. Initializing defaults"  The system then resets and gets stuck in a loop with this error message.  If I load the boot order menu using the Novo button I am able to launch windows. However changing the boot order in the bios does not persist when I exit, as such I am still unable to use the windows boot manager to install anything.  Further more, I am unable to access the partition that Ubuntu was installed on.  It cannot be seen or accessed from within Windows.  Can anybody tell me how to;  a) Wipe the hard drive completely and reinstall an operating system? b) Repair the boot loader? c) Access the partition that Ubuntu was installed on? (It is on an LVM partition)  Any assistance would be greatly appreciated.


Why is it brighter at noon than at just after sunrise? Does it have something to do with the geometry of spheres? Or is it due to the atmosphere?


Microsoft SQL Server Not Showing Server Name in object Explorer

I Recently Installed Microsoft SQL Server 2014 (SSMS) on my local machine for development learning purposes. I am running Windows 10 32 bit. When i try to connect, Server Name does not appear. Screen Shot is attached.    According to my research, name of the local server should appear in the marked field.  I think that Installation is successful.  I am unable to find the solution to this problem. I installed SSMS 2015 RC0, Problem was not solved. Then i uninstalled it and Installed SSMS 2014. But the problem is not solved.  I remember perfectly that about a  year ago. I installed SSMS and there was no such problem. I can't figure out Why the server name is not appearing. When i try to connect by manually entering Local server name(./), the following error occurs   Any help would be appreciated.


suddenly I get an error on my SD Card (look at the image) and now I can't see what it is inside it or use it. I never done any works or something strange since I've bought it months ago. I think it's like a problem with some partition. Can anyone help me? I don't want to lose all of mine pics :( Thanks in advice for ur attetion]


Which are the essential differences between LaTeX and ConTeXt?

I know that LaTeX and ConTeXt are extensions of TeX but each is based in a different philosophy. Beyond of its tex engines (ConTeXt works with LuaTeX for example) this question is focused to understand the advantages and disadvantages depending its use.  Where is better use LaTeX or ConTeXt? Why ConTeXt seems less known? Advantages of use ConTeXt instead of LaTeX or viceversa


JAVA: Casting a String class to a String

import java.lang.reflect.Field;  public class ReflectGetFields {     public void modeString() throws IllegalArgumentException, IllegalAccessException, ClassNotFoundException{         ReflectionPoint rp = new ReflectionPoint(1,2);         Field[] fields = rp.getClass().getFields();         System.out.println(fields);         for (int i = 0; i < fields.length; i++) {             if(fields[i].get(rp)==Class.forName("java.lang.String"));             {                 String sss = (String) fields[i].get(rp);                 StringBuilder strb = new StringBuilder(sss);                 for (int a=0;i<strb.length();i++) {                     if (strb.charAt(a)=='b') {                         strb.setCharAt(a, 'a');                     }                 }             }          }          System.out.println(rp.toString());     }       public static void main(String[] args) throws IllegalArgumentException, IllegalAccessException, ClassNotFoundException {         ReflectGetFields rgf = new ReflectGetFields();         rgf.modeString();     } }   Eclipse says :  Exception in thread "main" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String     at com.github.user3301.Reflection.ReflectGetFields.modeString(ReflectGetFields.java:11)     at com.github.user3301.Reflection.ReflectGetFields.main(ReflectGetFields.java:36)   I just don't know where did I do wrong as fields[i].get(rp) returns a field in the class and there is a if statement to check if it is a String type, so why it cannot be cast into a String type?


what do you call a person who repeats the same mistakes over and over again?

A single word for the person who repeats same mistake again and again.


How to replace accented strings in attribute tables using Python or VBA ArcGIS 10.2

I need to replace accented words, into the Field Calculator, to the same non-accented ones.   For example: María  ---> Maria  Need some help with this VB Code:  Dim data as integer Dim contador Dim words string  word= [POLYGON_Name]   Dim v_matriz(5) Dim n_matriz(5)  v_matriz(0) = "Á" v_matriz(1) = "É" v_matriz(2) = "Í" v_matriz(3) = "Ó" v_matriz(4) = "Ú"  n_matriz(0) = "A" n_matriz(1) = "E" n_matriz(2) = "I" n_matriz(3) = "O" n_matriz(4) = "U"  for each i in v_matriz     data=InStr(word,v_matriz(contador))     if dato>0 then         word=Replace(word,v_matriz(contador),n_matriz(contador))     end if     contador=contador + 1 next   But I'm having problems, I'm new in this scripting style, and maybe I'm doing something wrong.  I could use Python also, if you want.    SOLVED: This code in Pre-Logic Script Code:  import unicodedata def strip_accents(s):    return ''.join(c for c in unicodedata.normalize('NFD', s)                   if unicodedata.category(c) != 'Mn')   This in VALUE=  strip_accents(***your accented column***)   Thanks for all!


How to view Environment texture in Solid / Texture / Material view?

I saw this happening in some tutorial, but have forgotten for the moment, What I want is : To make the HDR environment texture appear in 3D viewport without going into Render Mode. I can use the following :   Material Mode Texture Mode Solid Mode   Actually, there is some Setting (i suppose) through which this is achieved. Object textures are available but Environment texture is hidden in these 3 modes, and the Reason behind this question is that I dont want to burn my CPU, just in order to switch b/w modes to see the OBJECTs & HDR that they fit well or Not


Create my own pre-name like "std" in C++

Generally when somebody creates a console program he writes   #include <iostream> #include <stdlib.h>  int main(){     std::cout<<"hello world"<<std::endl;     system("pause"); }   The std must be included to call cout and endl statements.  When I create a library using the headers and the code in the .h and .cpp, and then I include that library, I must use the name of functions/clases/structs/etc directly. How can I make it so I have to use a pre-word like the std for cout and endl?


What is the best way to sort using a GridView and LINQ?

The one thing that LINQ seems to be missing for me is a way to reference columns by text string. For example, I have a typical GridView set up with sorting like this (the DataSource is bound to a LINQ query in the code-behind):  <asp:GridView ID="MyGridView" runat="server" AllowSorting="True">     <Columns>         <asp:BoundField DataField="field1" SortExpression="field1" HeaderText="Field 1" />         <asp:BoundField DataField="field2" SortExpression="field2" HeaderText="Field 2" />         <%-- etc. --%>     </Columns> </asp:GridView>   To get the sorting to work, I have to use two giant Select statements in the MyGridView_Sorting event handler (to handle ascending and descending):  Dim query = From t In context.MyTables  If e.SortDirection = SortDirection.Ascending Then     Select Case e.SortExpression         Case "field1"             query = query.OrderBy(Function(x) x.field1)         Case "field2"             query = query.OrderBy(Function(x) x.field2)         'etc.'     End Select Else     Select Case e.SortExpression         Case "field1"             query = query.OrderByDescending(Function(x) x.field1)         Case "field2"             query = query.OrderByDescending(Function(x) x.field2)         'etc.'     End Select End If   There has got to be a better way to do this, doesn't there? I'm getting the field name and sort direction from the grid - you'd think there would be a way to easily feed that to the LINQ query without having to translate it field by field. Anyone have a better way?


Why present perfect in "How many points have you scored this season"?

Normally we use the past simple instead of present perfect when an action happened at a specific time in the past and is not linked with the present.   Why is this sentence grammatically correct?      How many points have you scored this season?   Don't the words "this season" indicate a specific time here? Why can't I use past tense instead? As in, "How many points did you score this season?"  Why is the latter wrong?


Is there any way to get number of combinations of matrices exclude "equal"?

I have width, height of matrix and range in which item can be. For example, for width = 2, height = 2 and range = 2 I have the following matrices:  00 10 01 00 00 11 00 10 01 10 01 01 10 11 11 11 00 00 00 10 01 00 11 10 01 01 10 11 11 01 10 11   But I need to consider matrices as equal if one can be obtained from other by swapping any rows or columns. So these matrices are equal:  10 01 00 00   Considering this, set of matrices will be:  00 10 11 10 10 01 11 00 00 00 10 01 11 11   And answer is 7. Trying to solve it, I noticed that elements in row or in column remains the same, only their order changes, so I wrote script on python that make all combinations of matrices excluding "equal". Function detecting "equal" matrices works like this:  1 get arrays of sorted rows for both matrices   2 translate them to mapping array. For example [1, 0, 2] shows that row 0 in first matrix mapped to row 1 in second matrix.  3 make same steps for columns.  4 go through matrix comparing them like this:  if matrix1[i][j] != matrix2[rowsMapping[i]][columnsMapping[j]]:     return False   5 If there is no different elements, we have "equal" matrices.   It works, but not very fast and I suspect that I'm going in wrong way. Maybe there is some combinatorics formula to solve this task?


grep to search word in a file and result given that word with ZIPfile name that contain that word

Here is what I am doing: I want to find which zip files includes this number with number itself for example i want the result be like this :  7505857289 AIRCDR   where the number is my search result and AIRCDRis zipfilename that contains this number among 100000 files


Using language Portuguese on Appendices throws unsupported control sequence

I am trying to compile my work under MikTex 2.9 windows 7 and/or Kyle 2.1.2  The appendices are throwing an unsupported control sequence error when I try to compile with the langage set to Portuguese.    This is my preamble where the packages are loaded.  \usepackage[brazil,american]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{indentfirst} \usepackage{natbib} \usepackage{url} \usepackage{xcolor,graphicx,url} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb,amsthm} \usepackage{epstopdf,placeins} \usepackage{glossaries} \usepackage{caption} \usepackage[toc,page]{appendix}   If I set the language to English, document compiles ok.  The error message points to the .out file:  \BOOKMARK [0][-]{section*.40}{Refer\352ncias}{}% 35 \BOOKMARK [0][-]{Ap�ndice.1.A} <-------------- this line is throwing the error   Tried to compile it on Kyle (linux) and on Windows (MikTex), and both have the same error. Only difference is the character ê is printed on the .out file in Linux, and windows has that stupid question mark encoding error thing.  If I switch languages before calling the appendices chapters, everything runs fine.  Also, if I override the \def\appendixname{Ap\^endice}% from the PT babel file without the accent, it compiles just fine.  How can I compile the appendices in Portuguese (keeping the correct spelling of the word) without that error?


Functional Equation $f(m + f(n)) = f(m) - n$

Well, similar questions have already been asked. But they are not identical and the solution methods offered there are not the same one as here. Anyway, I want to solve functional equation $f(m + f(n)) = f(m) - n$ where $f:\mathbb{Z}\rightarrow \mathbb{Z}$. Somehow I showed that such function doesn't exist and will be very grateful if someone checks my proof. Thanks in advance.  1) $f(f(n)) = f(0 + f(n)) = f(0) - n$. From this we get that $f$ is injective since if $f(m) = f(n)$ then $f(0)-m = f(0)-n$ and thus $m=n$.  2) $f(n+f(0))=f(n)-0=f(n)$ and by injectivity we have $n + f(0) = n$ and $f(0) = 0$.  3) $f(f(n))=f(0)-n=0-n=-n$  and then $f(m-n) = f(m+f(f(n))) = f(m)-f(n)$.  4) $f(-n)=f(0-n)=f(0)-f(n)=0-f(n)=-f(n)$  and then  $f(m+n)=f(m-(-n))=f(m)-f(-n)=f(m)-(-f(n))=f(m)+f(n)$.  5) Now it is a standard result that any function $f: \mathbb{Z} \rightarrow \mathbb{Z}$ satisfying $f(m+n) = f(m) + f(n)$ must be of the form $f(n) = kn$ for some $k \in \mathbb{Z}$. Then on one side $f(f(1))=k^2$ and from above $f(f(1))=-1$. Thus $k^2 = -1$ which doesn't hold for any integer and so no such function $f$ exists.  EDIT. Why duplicate? My question was asked in 2015, and the one you mention is from 2016!


Why an R-module is an R/I-module precisely when it is annihilated by I?

Let $I$ be an ideal of $R$ and let $M$ be an $R$-module. Prove that the formula $(r + I) \cdot m = r \cdot m$ for $r + I \in R/I$, and $m \in M$ makes $M$ into an $R/I$-module if and only if $i \cdot m = 0$ for all $i \in I, m \in M$.   I don't quite understand why we must have $i \cdot m = 0$ instead of $I \cdot m \in M$. This is for proving the only if part.


I have a 1.5GB RAM PC , with 32bit processor and I run windows 8.1 in it without any problem and it runs normal in Windows 8.1 and I needed a specific version for my PC please don't recommend me Lubuntu or Xubuntu please I need Ubuntu only please specify me with a particular version of Ubuntu only, I don't need Lubuntu or Xubuntu. Thanks,


If a function requires add_action('init') how can I run it only once on plugin activation?

I am using wp_insert_term() to insert a large number of taxonomy terms from a csv file. The contents of that csv file might change occasionally. According to the codex, wp_insert_term() needs to run on add_action('init') but I only want to run it once. How can I achieve that on plugin activation?  I am currently just doing this in my plugin's constructor which runs on every page load:     add_action('init', array($this, 'add_geo_terms'));   and then  public function add_geo_terms() {       $path = plugin_dir_path( __FILE__ ).'assets/uk-counties.csv';     $row = 1;     if (($handle = fopen($path, "r")) !== FALSE) {         while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {             $num = count($data);             $row++;             for ($c=0; $c < $num; $c++) {                 if ($c == 1) {                     error_log( $data[$c] . "<br />\n");                     wp_insert_term($data[$c],'reseller-regions');                 }             }         }         fclose($handle);     } }   I am using the activation functions provided by the  so I don't believe this is really a duplicate.  register_activation_hook( __FILE__, array( 'WPS_RESELLER', 'activate' ) );   public static function activate( $network_wide ) {         if ( function_exists( 'is_multisite' ) && is_multisite() ) {             if ( $network_wide  ) {                 // Get all blog ids                 $blog_ids = self::get_blog_ids();                  foreach ( $blog_ids as $blog_id ) {                     switch_to_blog( $blog_id );                     self::single_activate();                 }                 restore_current_blog();             } else {                 self::single_activate();             }         } else {             self::single_activate();         }     }  private static function single_activate() {     add_action('init', 'add_partner_terms'); // i have tried many variations with classname, self etc     add_action('init', 'add_geo_terms');  }


Overnight Layover at LHR for 17 Hours at Terminal 2

I am travelling from Delhi to Toronto via LHR. There is an overnight layover of 17 hours at Terminal 2 (Arrival 18:55 and Departure 12:00 on the following day). I am an Indian Passport Holder with Canadian Permanent Resident Card. Do I need to get a transit visa for the overnight layover considering new rule changes recently?


I want to exclude some large content directory  I'm Using it to chown Directory  chown -R admin /home/admin/web/public_html   is there anyway to exclude a subdirectory under html  Like:  chown -R admin exclude=/home/admin/web/public_html/content /home/admin/web/public_html   Something like that  Thanks


Why does non-commutativity in quantum mechanics require us to use Hilbert spaces?

I am reading Why we do quantum mechanics on Hilbert spaces by Armin Scrinzi. He says on page 13:      What is new in quantum mechanics is non-commutativity. For handling this, the Hilbert space representation turned out to be a convenient — by many considered the best — mathmatical environment. For classical mechanics, working in the Hilbert space would be an overkill: we just need functions on the phase space.   I understand the definition of a Hilbert space, but I do not understand why non-commutativity compels us to use Hilbert spaces.  Can someone explain?


i have a table fetching data in ajax. so  i want get some value return values. mainly i need check box checked count in server side data. i have try many more time. sorry i have no idea how to explain this. I'm New web development.please check my code here   this is my firt html code

      server side script   if(isset($_POST["action"])){  // fetch data in mysql      $output = '

      name	      checkbox	      Change	      Remove
   ';   while($row = mysqli_fetch_array($result))   {    $output .= '
      '.$row["SliderId"].'	      '.$row["Name"].' 	      <input type="checkbox" name="vehicle" value="abc" id="'.$row["SliderId"].'">	      <button type="button" name="update" class="btn btn-warning bt-xs update" id="'.$row["SliderId"].'">Change</button>	      <button type="button" name="delete" class="btn btn-danger bt-xs delete" id="'.$row["SliderId"].'">Remove</button>
    ';   }   $output .= '
';   echo $output;  }   when i have click  checkbox. i want alert check box checked count.


Inaccurate Battery Consumption Metrics: Is This Behavior Normal?

I own a OnePlus6 running OxygenOS 9.0.9. I noticed that lately my battery doesn't last as long as it used to. I used the Battery Monitor app to check if there's anything suspicious. This is what I noticed:     In this screenshot my battery is at 88% (12% consumed), yet, the app consumption sums up to 8% as opposed to the 12% that is actually consumed.   Is this behavior normal? Is the remaining 4% being consumed by the OS or is there some rogue app that's consuming my battery?


Which side should I put the close button on a window?

Is there any known preference for users between putting the "Close button" on the top right or top left of a window? Does it simply matter?  Mac users should be used to the top left and windows' ones to the top right and you can find this button randomly placed around the web.


Preferred mount points for internal HDDs

I am relatively new to Linux and I apologise if this is a silly question. I read the Linux FS Hierarchy document but it didn't answer my question.  I would like to know if there is a typical drive mounting scheme for general-use internal HDDs in Linux. I ask because I have two HDDs that were mounted as "E:" and "F:" in Windows, but since they hold various types of files (movies, music, personal documentation, source code) I'm not sure where they fit in the Linux filesystem hierarchy.  My instinct was to mount the HDDs in /mnt/hdd{1 | 2} or /media/hdd{1 | 2}, but that goes against what LFSH suggests is the purpose of these two directories. I think mounting in /home would be the most sensible. Thank you.


Number of n-words such that a and b are not neighbors.

Question:How many n-words from the alphabet {a,b,c,d} are such that a and b are never neighbors?   1.There are $4^n$ ways to arrange the four letters.  2.There are $(n-1)$$2^{n-1}$ ways of arranging a and b together.(is it so?)  3.Hence,the required number is $4^n$-$(n-1)$$2^{n-1}$.  Have I counted the right number of things?  I am looking for a very beautiful Combinatoric proof.     Edit:I realized I had incorrectly assumed that a and b occurred only once in the sequence.


Is there any reason not to typedef a structure?

Regarding structures, are there any reasons not to use typedef?  like:  typedef struct{     int member1;     unsigned long member2;     char *member3; } myType;   instead of:  struct myType{     int member1;     unsigned long member2;     char *member3; };


Proof of the existence of the energy-momentum tensor

I have a problem providing or finding a general proof for this statement i found in , section $10.3.2$:  Due to the locality of the theory there exists a local field $T_{\mu\nu}(x)$, called the stress-energy tensor, defined by the variation of the local action $S[\varphi]$ under the infinitesimal transformation $x^{\,\mu} \rightarrow x^{' \mu} = x^{\,\mu} + \epsilon^{\,\mu}(x)$  $$ \delta S \, =\, \frac{1}{(2 \pi)^{D-1}} \int d^Dx \, T_{\mu\nu}(x)\, \partial^{\,\mu} \epsilon^{\,\nu} $$  where it says that the factor $(2 \pi)^{D-1}$ is there for later convenience   Now I've seen the proof for a real scalar field which is clearly a field without local interactions.  What is the proof in the general case? Is there a place (book or article) where I can find the proof?


How can aperture be f/11 on a lens with an aperture range designation of 3.5-5.6?

I made a series of outdoor shots with Nikon D5000, with the 18-55mm 1:3.5-5.6G VR kit lens.  On some shots, I see in the EXIF info f/11, and in another shot, f/9.    How can that be, that the f-number is greater than 5.6, when that's listed as the maximum in the lens spec?


How do I evaluate $\prod_{r=1}^{\infty }\left (1-\frac{1}{\sqrt {r+1}}\right)$?

I am not being able to find the specific product $\prod_{r=1}^{k} \left(1-\frac{1}{\sqrt {r+1}}\right)$ so to evaluate the given problem when $k \to \infty $.


I have an iframe I am working with, when I place it on my wp site and try to apply the css it is not applying, the external css is still there. Please see this page:   If you inspect it and go the .cover class, I am trying to change the width and height to 65px. However it is not applying. I put this in my theme css:  .cover-overlay, .cover { width: 65px !important;   }   Help!  <link type="text/css" rel="Stylesheet" href="http://gandlp.com/radio?sccss=1&ver=4.3" />  <iframe name="frame" frameborder='no' scrolling='no' src='http://radio.securenetsystems.net/songdata/v5/index.cfm?stationCallSign=CIDC&width=573' allowtransparency='true' style='width:573px;height:250px;margin-top:10px;overflow-y:auto;overflow-x:hidden;border:1px solid #676767;'></iframe>  <script type="text/javascript">  var cssLink = document.createElement("link")  cssLink.href = "http://gandlp.com/radio?sccss=1&ver=4.3";  cssLink .rel = "stylesheet";  cssLink .type = "text/css";  frames['frame'].document.body.appendChild(cssLink); </script>


Is it entirely correct to use the adjective 'whose' when the grammatical subject is not a person but a thing? For instance,     The first poem whose publication he ever sanctioned


Can a VBA function in Excel return a range?

I seem to be getting a type mismatch error when trying to do something like this:  In new workbook:  A1 B1 5  4  Function Test1() As Integer     Dim rg As Range     Set rg = Test2()     Test1 = rg.Cells(1, 1).Value End Function Function Test2() As Range     Dim rg As Range     Set rg = Range("A1:B1")     Test2 = rg End Function   Adding =Test1() should return 5 but the code seems to terminate when returning a range from test2(). Is it possible to return a range?


Does heat metal continue to function regardless of range?

After being targeted with a Heat Metal spell, does it continue to function if the caster is concentrating but the target has moved out of range?  The RAW doesn't specify in the spell description and I want to know if just running away is a reasonable strategy to survive instead of trying to doff armor.  The only range limitation mentioned is in the initial casting of the spell.  I find it hard to believe a 2nd level spell has an infinite range of effect, but maybe there are other examples.  Related questions:   Power of spell:   Doffing armor:


I have 7 *.txt files each with 2 columns of data thus:  time(mins) contacts 3.25    8 1.166666667 4 3.2 6 3.2 7 2.25    8 5.466666667 12 2.25    3 2.166666667 7   I'd like to plot them in separate scatter plots (via TikZ or other at your discretion) but on the same page. I've exported excel versions and they look somewhat unprofessional. Can you point me in the right direction, or a push to get started?  I'd also like to put on a linear regression line with its equation and R^2 value. I can provide both but I see in  it's possible to do it automatically.   an MWE:  \begin{tikzpicture}[only marks, y=.5cm]  \draw plot[mark=*,xshift=-6cm] file {data/ScatterPlotExampleData.data}; \draw[->,xshift=-6cm] (6,0) -- coordinate (x axis mid) (17,0); \draw[->,xshift=-6cm] (6,0) -- coordinate (y axis mid)(6,27); \foreach \x in {6,8,10,12,14,16}     \draw [xshift=-6cm](\x cm,1pt) -- (\x cm,-3pt)         node[anchor=north] {$\x$}; \foreach \y/\ytext in {0/0,2.5/5000,5/10000,7.5/15000,10/20000,12.5/25000}     \draw (1pt,\y cm) -- (-3pt,\y cm) node[anchor=east] {$\ytext$}; \node[below=1cm] at (x axis mid) {Education}; \node[left=2cm,rotate=90] at (y axis mid) {Income}; \end{tikzpicture}   Equally this matlab2tikzlooks interesting


Can I visit UK with Italian stay permit?

I'm an Egyptian citizen, who holds Schengen visa and stay permit in Italy. Can I go to UK for some days with my stay permit and Schengen visa?


I want to call my equation $NS_\alpha$ in such a manner that rather than      (1.1)   the equation shows up with      ($NS_\alpha$)


Show unconfirmed email addresses in the preferences tab

The email for getting notifications can be changed by clicking the "preferences" tab in your profile. After entering a new email address, the "Save email settings" button becomes clickable:    Clicking the button turns it grey:    So all looks well. But if you don't confirm the email by clicking on the link sent to your email inbox, the next time you go back to the preferences, you will see your old email address with no indication that it changed.  You can subscribe to the weekly newsletter from the "edit" tab of your profile. If you click the option and save, the next time you visit the edit page before confirming your email you get this message:    Once you confirm the email, the resend link disappears so you know the subscription is set up:    Ideally, the two systems would be unified so that all email subscriptions happen the same way. But short of that, it would be very helpful to indicate that an email address is unconfirmed for notification emails just like newsletters.


Sometimes you come across this format suggesting 'one or more', in not as many words, like "Please select the book(s) you wish to loan". But what happens in that case of plurals that don't follow the same standard like Entry (Entries)?  Is it      1 of 1 entry(s) selected   or      1 of 1 entrie(s) selected?


Statement i:     I will refuse nothing to a soul that makes a request of me in virtue of my passion. In this hour you can obtain everything for yourself and for others for asking - statement (i)   I tried to re-phrase the above statement as shown below.  Statement ii:     If someone makes a request to me, for the sake of my passion, I won't refuse their request. In this hour you will obtain everything that you are asking for   - statement (ii)   Are the statements (i) and (ii) equivalent?  If you are curious about where the statement (i) is from, see .


Why is it so that the principal value of $\operatorname*{arccot} x$ is between $0$ and $\pi$?

The principal value of $\arctan x$ is between $-\frac\pi 2$ and $\frac\pi 2$. But then why isn't the principal value of $\operatorname*{arccot} x$ the same as that of $\arctan x$? I know that this is only a convention. But in every other cases of principal values of inverse trigonometric functions, I can find a pattern  The modulus of the elements of the range of inverse trigonometric functions are always kept as low as possible.  If there are two different ways to determine the set principal values, then the one consisting of the positive portion will be preferred.   This holds true for every inverse trigonometric function except $\operatorname*{arccot}x$. So, then why does $\operatorname*{arccot} x$ not comply?


What happened to my bounty on this closed question?

It seems that  was closed as not constructive.  While I could argue on the "not constructive" part, especially because it was already protected and made a CW, I'd be especially interested on what happened to my earned bounty.  I checked the reputation recalc page and it is gone. I am a little bit confused because I thought .


Reporting Mann-Whitney U-Test without homogenity of variance

The Mann-Whitney test requires homogeneity of variance if a median difference is suppossed to be statistically significant.  In case homogenity of variance is not met, but the test is significant:  Which aspects of the test can I report?


Can't run gnome-screenshot while right click menu is open in eclipse

I have my print-screen button set to run 'gnome-screenshot' and it normally works fine but if I right click on a project in eclipse the program seems to be blocked from running until the right-click menu is off the screen.  I should also note that I'm running i3-wm and I'm also blocked from using 'win+d' to open another program.  It opens no problem when I try the same thing in Firefox.  Any ideas on why this happens?


How to stop Gedit, Gvim, Vim, Nano from adding End-of-File newline char?

Sometimes I want the last line of a text file to be a simple string of text with no newline character appended: ...eg. to concatenate another file to it.    Several editors automatically modify my text by adding a newline character, even though I have not pressed Enter.    Remains unmodified: Emacs, SciTE, Kate, Bluefish, Notepad(wine)   Newline is added: Gedit, Gvim, Vim, Nano  I would like to know if there is some way to tweak Gedit, Gvim, and Vim to only save what I have typed.... and even Nano might come in handy  I currently use Gedit, and I'm dabbling in Gvim/Vim.. so it would be useful to know how to "toggle" these on/off...    PS. Upon re-opening  the same file in Gedit, Gvim, and Vim, the cursor's end-of-file placement is at the end of the text, whereas it should really show up on the next (empty) line. This is misleading (but that's because of what I'm used to).   I used a hexeditor to check the above observatons.


How to prove that $\mathbb{Z[i]}$ is a UFD

I tried factorizing the $-4$ in $\mathbb{Z\left [ i \right ]}$ as follows $$-4=2\times-2$$ but we can also write as $$-4=2i\times2i$$  then i think that $\mathbb{Z[i]}$ is not a UFD but then see that $$-4=2\times-2=2\times2\times i\times i$$ that i was writting the same number in same form again,  Now my question is how can we prove that $\mathbb{Z[i]}$ is a UFD  Please Help  Thank you


Is it possible to create a live-USB with more than one Linux distribution?

I'd like to have in a single USB-drive the choice of different Linux distributions, for both live or installation to a computer.  Would it be possible? A kind of grub on live-USB?  In my case I have in mind having Ubuntu, Mint, UbuntuStudio.


I don't really get lambda expressions. While they've been around since the days of ALGOL, I didn't start hearing about them until fairly recently, when Python and Ruby became very popular. Now that C#  has the => syntax, people in my world (.NET) are talking about lamdba expressions more and more.  I've read the Wikipedia article on the lambda calculus, but I'm not really a math guy. I don't really understand it from a practical perspective. When would I use lambda expressions? Why? How would I know that it's what I should be doing?  Can you show examples of how you would solve problems with lambda expressions, in a before-and-after format? Any imperative language is fine, but C# would be easiest for me to understand.


Is $(\frac 1{n^2 \sin n })$ convergent ? If so , what is the limit?

Is the sequence  $\left(\dfrac 1{n^2 \sin n }\right)$ convergent ? If it does, with what limit?


I've been looking at ways to implement gmail-like messaging inside a browser, and arrived at the  concept. However, I haven't been able to find a good .NET implementation that allows me to do this within IIS (our application is written in ASP.NET 2.0).   The solutions I found (or could think of, for that matter) require leaving a running thread per user - so that it could return a response to him once he gets a message. This doesn't scale at all, of course.  So my question is - do you know of an ASP.NET implementation for Comet that works in a different way? Is that even possible with IIS?


I want to find out whether a package that is not installed on Ubuntu is available in my configured repositories using a shell script, preferably not one that needs to examine the output from a command to determine what is happening. I have no problems determining whether a package has been installed, but determining if it is available is another problem.


My name has "Mr" appended on airline ticket reservation. Would that cause problems at the airport?

I recently booked tickets to travel by plane from the UK to Greece. The website I booked through (airfasttickets.co.uk) lists my name correctly, as "Mr Georgios [My surname]", exactly the same as in my passport.  When I log in to the airline's (Aegean Air) website using the booking number the above website gave me, my name is somehow listed as "Georgiosmr [My surname]" (the title "Mr" seems to have been appended to my first name).  Since I'm going to be travelling from the United Kingdom and my name is obviously non-english, I'm afraid they may have doubts about the "mr" at the end being a mistake instead of part of it and deny me entry.  I've sent two e-mails to Aegean but it's been more than a week since the last one and 2-3 weeks since the first and they haven't replied. Calling them would be too expensive since they're based in a different country than my phone provider and I'd rather avoid it.  Is there anything else I can do? Is it likely that they'll think "mr" is part of the name of the ticket's owner?


Prove that $(C^1[0,1], \|\cdot\|)$ is not a Banach space

Given the normed space $C^1[0,1]$ of differentiable functions with continuous derivatives on $[0,1]$. The norm is defined as $$\|x\| = \max_{[0,1]} |x(t)|$$ I'd like to prove that the given normed space is not a Banach space. In the attempt of solving this problem, I have thought about the possibility to construct a Cauchy sequence in the space which doesn't converge in the space. However until now I haven't got any idea. Then I proceeded to think about constructing an equivalent norm to the given one where the space can be easily proven to be not a Banach space. However, I have got nothing either. Now I'm stuck without a clue. Please give me a hint to a correct direction. Any help is greatly appreciated.


How can I move a load of zone records from a web based system to text based one?

I have a few domains with Dreamhost where I have set a load of records using their web based domain name system, and I've like to move them to another provider that lets me enter info directly as a text file for their name server, bind 9 to use. (If you're interested, I'm moving them to Gandi.net).  Previously when I used a cpanel based system to do something similar, there was a tool that let me simply enter a domain name, and any available domains were automagically entered into a system, saving me typing it myself (and bringing down sites with silly typos in the process).  What open source tool can I use to query a domain for all the relevant subdomains and records and list them in a format like a zone file, that I can use with other name servers?


Warn or Block Internet Access When No VPN?

I use a paid VPN service (TorGuard) and when I run it on my computer, I am able to configure the client to completely block Internet access if the VPN is disconnected...  The Android version of my VPN client does not have this option, so my question is, is there another way I can completely block Internet traffic if my VPN is disconnected?  Alternatively, is there a way I can get some sort of warning when the VPN is disconnected?  I'm using a Kogan Agora 6+, running Android 6.0 ("Marshmallow").


I am working on some project. I want that I lock some file whenever I run the script. So that noone can delete/modify the file.


Looking for a calculus based physics book

Ive gotten through University Physics by freedman et al and I realised i really enjoy the calculus problems in them which involve integrating infinitismal element (moment of inertia, charged rods, shell theorem, etc). Can anyone recommend a book that places heavy emphasis on such infinitismal element calculus?


Adding/updating field to polygon feature class that lists bordering (neighbor) polygons?

I have a dataset of zipcodes.  I want to add a new field "NEIGHBORS" that includes bordering polygons in a comma delimited manner such as attached image:


Does SO's still use localStorage to auto-login users?

I was searching about how SO authenticate and manage users sessions across multiple sites/domain and found this question from 2010:    However, I didn't found anything about it in 2020. Does it still use localStorage and StackAuth iFrame to share login tokens in the actual days?


Per title on v2.91 .. is it broken still (in UV Editor)? I tried v2.81 and it also does not snap to vertex. It's also not listed in UV Editors Pivot Point list for unknown reasons. I do see it in Snapping but again .. it doesn't work. The whole concept of a 2D and 3D cursor is rather backwards. I came from Anvil 2D, AutoCad, and Rhino. In AutoCad it's so easy and direct to align one object (be it a 3D solid, a mesh, or some planer geometry) with another object. With mbuttonpan set, middle click becomes a snap menu. So .. select Move command and pick your object .. middle click and pick a snap point for object origin (say an end point) ... go to target object (it can be a coordinate as well), middle click and pick end point .. hit Enter. Done! .. and without perplexing offsets and no ridiculous Closest (which should NOT be default, vertex should be) when you've already defined Origin and Destination points. A variation of that lets you do 3D alignment .. easily. Blender is great at the organic mesh generation and shaping but lousy at some procedural functions. Not sure if 3DS follows the same paradigm as Acad but likely does. So I'm asking if it does work and maybe I don't have something set right?


How do slanted indices work in special relativity?

What is the difference between $T^{\mu}{}_{\nu}$ and $T_{\nu}{}^{\mu}$  where $T$ is a tensor?


$d_A(x) = \inf_{a \in A} \|x-a\|$ is convex if and only if $A$ is convex

Let $A \subset \mathbb{R}^n$ be closed and $d_A(x) = \inf_{a \in A} \|x-a\|$. I need to show that $d_A$ is convex if and only if $A$ is convex.  I have no good ideas in either direction. Can somebody please give me a hint?  For the direction ($\Longleftarrow$), my attempt was:  Let $a_1 := \operatorname*{argmin}_{a \in A} \|x-a\|, a_2 := \operatorname*{argmin}_{a\in A} \|y-a\|$, then:  \begin{align*} d_A(x) &= \inf_{a \in A} \|\lambda x + (1 - \lambda)y - a\| = \inf \|\lambda(x-a) + (1-\lambda) (y-a)\|\\ &\leq \lambda \|x-a_1\| + (1-\lambda)\|y-a_2\| = \lambda d_A(x) + (1-\lambda)d_A(y) \end{align*}  However, I'm not sure whether the inequality in the third step is actually correct.


How to change add read write permissions

I have newly installed Windows 8.1 on a new miniDesktop:           Model Lenovo ThinkCentre   CPU Intel® Core™ i5-4570T  @ 2.90GHz × 4   RAM 3.7 GiB   Disk 32.9 GB     I dual booted it with Ubuntu 18.04 LTS. Problem is that I am not able to add write permissions to my Windows partitions. I have tried: sudo chmod -wrx /media/pmay3/Data  All it returns with is chmod: changing permissions of '/media/pmay3/Data': Read-only file system  Even if the folders are accessed from the graphical interface, and changing their permissions is attempted, it is Screenshot of Permissions Tab:  Share your expertise please. I have re-installed Ubuntu 20.04 LTS, and 18.04 LTS twice.


Define a function $\alpha$ :Hom$_R$($R^n,M$) $\rightarrow M^n$ which is a $R$-module isomorphism.

Suppose $R$ is a commutative ring, $M$ is an $R$-module, and $n \ge 1$. Define a function $$\alpha : \hom_R(R^n,M) \to M^n$$ which is a $R$-module isomorphism.


Concurrent modification exception java (not dup)

edit: This is not a duplication. The other question linked is asking how to remove elements while iterating and not get the CME exception, in my question I don't want to iterate and remove elements at the same time. In fact I want to make sure that doesn't happen.   Im getting conccurrent modification error when trying to itterate through the vector theSpace, all my methods that affect it are synchronized so I dont understand whats causing the exception? (sorry for messy code new to java)  public class TupleSpace implements aTupleSpace {   private Collection<aTuple> theSpace;    public TupleSpace() {     theSpace = new Vector<aTuple>();   }    public synchronized void out(aTuple v) {     theSpace.add(v);     notifyAll();   }    public synchronized void in(aTemplate t, aMonoVariable<aTuple> result) {     while (true) {       for (aTuple tup : theSpace) {         if (t.matches(tup)) {           result.becomes(tup);           theSpace.remove(tup);           return;         }         try {           wait();         } catch (InterruptedException e) {           // TODO Auto-generated catch block            e.printStackTrace();         }       }     }   }    public synchronized void rd(aTemplate t, aMonoVariable<aTuple> result) {     while (true) {        for (aTuple tup : theSpace) {         if (t.matches(tup)) {           result.becomes(tup);           return;         }         try {           wait();         } catch (InterruptedException e) {           // TODO Auto-generated catch block            e.printStackTrace();         }       }     }   } }   ==========code for .matches and .nth (helper)==========  public boolean matches(aTuple t) {      if(this.elements.size() == t.length() ){         for (int i=0; i<t.length(); i++) {             if (!(this.nth(i).equals( t.nth(i)))){return false;}         }         return true;     }return false; } public TypedValue nth(int n) { if( n < 0 || n >= elements.size()) return null; else return elements.get(n);


To score a RandomForestClassifier using GridSearchCV  for multiclass classification, I decided to use Brier score. However, I could only manage to get the Brier score for each class. Is it reasonable to get the average of that as an overall performance measure? Or can you think of a better way instead? Edit: I am aware  question is similar, so I'll explain why I think it's a different problem: When I run my model with brier_score as defined by that question's author (brier_multi), the score obtained for the best model is 202.3 However, when I apply the following code (made by me) def brier_score_multi(y_true, y_pred):         y_true_bin = label_binarize(y_true, classes=[0,1,2])     y_pred_bin = label_binarize(y_pred, classes=[0,1,2])     score = mean([brier_score_loss(y_true_bin[:,0], y_pred_bin[:,0]),brier_score_loss(y_true_bin[:,1], y_pred_bin[:,1]),brier_score_loss(y_true_bin[:,2], y_pred_bin[:,2])])     return score  The best score is 0.0432. As you can see, this is a big difference, and given the definition of a the brier score, I'm biased towards the second result. EDIT 2: Seeing as the first result is incorrect, I started thinking... maybe instead of the average between classes, the sum of the brier score between classes makes more sense?


How prove this inequality $\frac{x^2y}{z}+\frac{y^2z}{x}+\frac{z^2x}{y}\ge x^2+y^2+z^2$

let $x\ge y\ge z\ge 0$,show that $$\dfrac{x^2y}{z}+\dfrac{y^2z}{x}+\dfrac{z^2x}{y}\ge x^2+y^2+z^2$$  my try: $$\Longleftrightarrow x^3y^2+y^3z^2+z^3x^2\ge xyz(x^2+y^2+z^2)$$


Force MacBook to drain the battery while connected to charger

I leave my MacBook Pro on my desk nearly all the time, connected to the charger with the lid closed, connected to an external display.  I've heard this is bad for the battery health, and everyone in my office have to replace swollen batteries every couple of years. I want to regularly discharge the battery, per , but I don't want to physically unplug it because that temporarily turns off the external monitor, and then I have to reconnect the monitor.  So I am looking for a software method of disabling the power input, to force the laptop to discharge its battery to 20% and then re-enable the power input.


T-SQL: Selecting rows to delete via joins

Scenario:  Let's say I have two tables, TableA and TableB.  TableB's primary key is a single column (BId), and is a foreign key column in TableA.  In my situation, I want to remove all rows in TableA that are linked with specific rows in TableB: Can I do that through joins? Delete all rows that are pulled in from the joins?  DELETE FROM TableA  FROM    TableA a    INNER JOIN TableB b       ON b.BId = a.BId       AND [my filter condition]   Or am I forced to do this:  DELETE FROM TableA WHERE    BId IN (SELECT BId FROM TableB WHERE [my filter condition])   The reason I ask is it seems to me that the first option would be much more effecient when dealing with larger tables.  Thanks!


How to make a RewriteRule on Apache .htaccess to fix a broken image?

My page has:     But it should be:     As you can see I need to add /INDEX.PHP in front of this image url.  How do I add a RewriteRule to my Apache2 .htaccess to fix that?  1000 Thanks!


Is there a clever way to show that  $$|x| - |y| \leq |x-y|$$  I believe I can think of a way to solve this using cases, but the book I'm working out of said that "A very short proof is possible if you write things in the right way" which has motivated me to figure out this quick way, but I've failed thus far and any help would be appreciated


How to add a directory permanently to my Path?

Basically I want to know that. How can I add a directory (/tmp in my case) to the Path permanently from the terminal?


Easiest way to create a polygon from an unmarked municipality (using QGIS)

Is there any easier way to create a polygon from the white empty space in: ? This space is associated with a municipality but the best i can do is this:   using the add polygon feature in QGIS, which as you can see is not great. Is there an easier way to completely cover this blank area and assign information to it?


I downloaded Blender 64 bit and the OS indicated that the program was not compatible with my computer chip. I then downloaded the 32 bit version which seemed to allow me to install. However the blender Icon in windows when pressed informs me that the program is not a window application. I have an Intel(R) Core (TM)2 Duo CPU E7300 @2.66Ghz if that is important and I am running XP. I am fairly sure I am doing something wrong here- can anyone help please?


Get the parent directory of a given file

Suppose file stores the pathname of a non-dir file.  How can I get its parent directory?  why does the following way by appending /.. to its value not work  $ cd $file/..    cd: ./Tools/build.bat/..: No such file or directory   Thanks.


Prove that $x^4 + 131 = 3y^4$ has no integer solution

So I came across this problem in a book. I figured a few steps out but I am not sure if it is correct. x4 + 131 = 3y4 x4 + 2 = 3y4 - 129 x4 + 2 = 3(y4 - 43) x4 + 2 ≡ 0 (mod 3) x4 ≡ 1 (mod 3) Let x4 = 3k + 1, y4 = k + 44 I have no idea what to do next, or how to find a contradiction.


Error: \pdfendlink ended up in different nesting level than \pdfstartlink

I'm using overleaf to write my mnras report and I get this error when I am writing a caption for a figure.  ./main.bbl:1: pdfTeX error (ext4): \pdfendlink ended up in different nesting le vel than \pdfstartlink. \AtBegShi@Output ...ipout \box \AtBeginShipoutBox                                                \fi \fi  l.1 \begin{thebibliography}{1}   My caption is this:  \begin{figure} \includegraphics[width=0.5\textwidth]{SED} \caption{Graph of relative flux against observed wavelength for a  redshift 7 galaxy depicting the 4 wavelength breaks discussed in section  1.3. The blue and green shaded areas at the bottom are bands used in the Hubble Space Telescope, and the red areas are} \end{figure}   but as soon as I add the next word in the caption, I get the above error. Can anyone help me please!


I just bought a new lenovo G510 laptop with FREE DOS.Specs of my laptop are  4th gen core i5 4200M processor 4GB RAM 500 GB HardDisk  I downloaded, amd64 bit iso file from the website, made my pendrive bootable using unetbootin on windows, when I connected bootable pendrive to my new machine, firstly it showed me a window which had two options, 1)Try ubuntu 2) Install Ubuntu..  When I clicked on Install Ubuntu then screen got blank and installation process didnt start..  So I am not understanding what wrong I am doing here..  Please help me out  Regards Ranjit


Anime space opera from the 80s, possibly involving some temporal paradox

I'm trying to identify an old anime movie from my childhood. I saw it around the might-eighties.  It was a space opera, and I can recall the following elements:   A big space fleet that is escaping their dying homeworld attacks Earth in order to conquer it. There might have been some time travel paradox or loop involved, like the invading fleet turning out to be from a future Earth or somesuch. Visual element: I believe a flashback (or perhaps a dream sequence) had a rose in it.


I want to set the default document viewer, but cannot change ImageMagick

Set default document Viewer  but no change ImageMagick(display). I'm trying, but I can not change.


How do I use filenames that start with a dash "-" as command arguments?

This may be a simple question, but how do I use files starting with "-" with command line programs?   For example,  I am trying to use pdfgrep on a file named -2013-01-01.pdf but it complains that there are no options defined for 2, 0, 1, 3 and so on.  Changing the filename to something that does not start with "-" solves it, but this is not an option since the files aren't created by me. I simply want to check for a specific change I know is coming.


What is the difference between "I've been to China" and "I've gone to China"?

Both are in the present perfect, but one uses the verb 'to go' and the other 'to be'. Is there a rule for this?  Is there any chance that the differences between "I have been" vs. "I have gone", are differences in English dialect (I don't know if this is the right word).  Edit Could I say that North American English speakers use "I have gone", and maybe U.K speakers say "I've been"? Or vice versa.


Changing votes for an answer, which has been "edited" in the grace period

I upvoted an answer, and remained on the page and read a few more answers, while noticing that the user that I originally upvoted made several edits. I later noticed something from one of the edits that made me want to remove my upvote, but I got the message: "You last voted on this message 6 minutes ago.  Your vote is now locked unless the answer is edited."    I noticed that no edits were indicated, so they must have taken place during the grace period.    This was not a case of me rushing or misreading, the answer originally posted was fine.  An edit was made during the grace period.  I went back 6 minutes after I upvoted, saw something that I didn't approve of appended to the original answer and wanted to change my vote, but couldn't.    To clarify, I understand that this is ;  I am NOT trying to report a bug. I am requesting that a feature be implemented such that this situation can be resolved without having to resort to making a fake-edit and a following rollback.    Potential Solution: Perhaps votes that occur during the grace period should simply not be locked-in.


Feature request: Add pronouns to usercards?

One of the questions people have raised about the new rules about pronouns is how users will know what pronouns are preferred.   We've had a trolling question which got  when the user included their preferred pronouns at the bottom of the question, and I agree that particularly on Stackoverflow (rather than sites like Interpersonal Skills or Workplace), this should be considered as 'noise' since it isn't the strict Q&A this site is about. (The codez should work whatever your gender).  Currently, the suggested way of displaying your pronouns is to put it in your profile's 'About Me' section. However, this is suboptimal, since it requires opening a new page.  I suggest adding a 'preferred pronouns' field in the user profile, and displaying this on a user's usercard. There's currently a 'new contributor' label, so it could be similar to that, with she/her pronouns or whatever they choose.  In comments, it could be appended to the reputation score that currently gets shown when you hover over a name:   4,305 reputation, she/her pronouns  The default would be blank. No flair updates, no hover-in-comments update. If a user fills in this field in their profile, then it will show.


How to create a reference to a Ruby method so it can be executed later?

I would like to do the following in Ruby:   Create a class with a method in it 1.5 Create an instance of the class Create a reference to the method in the instance Execute the method later   Something like this:  class Cat   def meow     puts "meow"   end end  my_cat = Cat.new portable_meow = my_cat.method("meow") portable_meow.execute # outputs "meow"


I'm having issues with my broadcom BCM4313 wireless adapter. Everything works just fine when connected (with additional drivers & Connman), but it takes about 5 minutes to connect to my network when i just started my computer! When resuming from hibernation it goes very quick though, so just when I boot my pc it's taking forever...  This is what I found in the dmesg output:   [   16.778057] eth1: Broadcom BCM4727 802.11 Hybrid Wireless Controller 5.60.48.36  [   16.808768] type=1400 audit(1295859939.727:2): apparmor="STATUS" operation="profile_load" name="/sbin/dhclient3" pid=833 comm="apparmor_parser" [   16.808815] type=1400 audit(1295859939.727:3): apparmor="STATUS" operation="profile_replace" name="/sbin/dhclient3" pid=799 comm="apparmor_parser" [   16.808825] type=1400 audit(1295859939.727:4): apparmor="STATUS" operation="profile_replace" name="/sbin/dhclient3" pid=826 comm="apparmor_parser" [   16.809367] type=1400 audit(1295859939.727:5): apparmor="STATUS" operation="profile_load" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=833 comm="apparmor_parser" [   16.809415] type=1400 audit(1295859939.727:6): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=799 comm="apparmor_parser" [   16.809435] type=1400 audit(1295859939.727:7): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=826 comm="apparmor_parser" [   16.809705] type=1400 audit(1295859939.727:8): apparmor="STATUS" operation="profile_load" name="/usr/lib/connman/scripts/dhclient-script" pid=833 comm="apparmor_parser" [   16.809755] type=1400 audit(1295859939.727:9): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=799 comm="apparmor_parser" [   16.809769] type=1400 audit(1295859939.727:10): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=826 comm="apparmor_parser" [   16.844083]   alloc irq_desc for 22 on node -1 [   16.844087]   alloc kstat_irqs on node -1   Any ideas how come? Thanks in advance!


I dont see any materials in EEVEE Material Preview, Rendered and material isnt showing in material preview cycles


Since Cas came back from death after Lucifer killed him in Supernatural, I suppose angels must go somewhere upon death. Where do they go?


How do I put a custom potion in a shulker box with a command block?

This is a command of a working /give potion. It places a potion of the desired colour in the inventory.  What I'm having a problem with is when putting it inside a chest that I'm spawning, the command does not work. Can you help me? I am trying to put it inside of a shulker box  /give @p minecraft:potion 1 0 {Potion:"minecraft:water",CustomPotionColor:16777215,CustomPotionEffects:[{Id:9,Duration:100}],display:{Name:"Custom Name"}}]}}


MBP 13' (mid-2010; 7,1) 2.4 Core 2 Duo P8600 supporting 16 GB RAM under Win7?

I’ve got a MBP 13′ (mid-2010) 2.4 Core 2 Duo (full specs below) that I’m now operating solely under Win7 64Bit. It formerly run as well under OS X 10.6.8, relatively to which the firmware seems up to date (MBP71.0039.B0B).  Would my system recognize 16 GB RAM if operated under Win7 64 Bit? Or would it require the latest firmware (MBP71.0039.B0E) of OS-X 10.7.5 (which was never installed on my MBP) anyway?   As far as I have read elsewhere, using 16 GB RAM under OS X seems to definitely require this later version of OS X (including the respective firmware update); so I'd like to know whether this is an issue of OS X or (as I suspect) the firmware.    Modellname: MacBook Pro Modell-Identifizierung: MacBookPro7,1 Prozessortyp: Intel Core 2 Duo Prozessorgeschwindigkeit: 2,4 GHz Anzahl der Prozessoren: 1 Gesamtzahl der Kerne: 2 L2-Cache: 3 MB Speicher: 4 GB Busgeschwindigkeit: 1,07 GHz Boot-ROM-Version: MBP71.0039.B0B SMC-Version (System): 1.62f6


Integrate $\int_{0}^{\infty}\frac{\ln(x+1)}{x^2+1}$ using the residue theorem

Well I already made the integral and I know the value of it is $\pi \ln(2)$. My professor asks us to use the following theorem "Be $z= Re^{i\Theta}$, consider the contour $Q:[-R,R] \cup G$ where $G$ is the semicircle that has the interval $[-R,R]$ as diameter, then if there exist $M>0, k>1$ and certain values of $R$, that $|f(z)|\le M/R^{k}$  then $\lim_{R\to \infty} \int_{G}\frac{\ln(z+i)}{z^2+1}=0$. So as $\int_{Q}\frac{\ln(z+i)}{z^2+1}=\int_{-R}^{R}\frac{\ln(x+1)}{x^2+1}+\int_{G}\frac{\ln(z+i)}{z^2+1}=\pi \ln(2)$ using the residue theorem. The problem I have is that I dont know how to find $M$, $k$ and the certain values of R that verify  $|f(z)|\le M/R^{k}$   :c


Using remove_reference in function header

Say I have the following:  template <typename... A> class MyClass { public:      void func(A... args)     {         // do stuff     } };   What I really want is for func() to take l-value references, so something like this:  template <typename... A> class MyClass { public:      void func(std::remove_reference<A>::type&... args)     {         // do stuff     } };   This doesn't compile; is this sort of thing possible? Thanks.


Where are the default settings saved for the Command prompt defaults?

Where are the default settings saved for the Command Prompt defaults?  Are they stored in the registry somewhere, or in a file?  I would love to make a .reg file to set my default preferences when logging into a machine for the first time.  I'm talking about the default application settings: QuickEdit mode, buffer size, text color, etc.


I can only see a few feet ahead in Game engine

Look at the link, This is how I want mine to be.    this is my error I am working on a game similar to Zelda / Mario games. in the 3d world. But I do not get the image / video to be fine. I only see a few feet ahead. then it's gray I want to get rid of it. Hope you understand my question.  Soory My English is not so good.  Edit! I   // Robin Willmann


What is the "Private information" section of profile for?

So the birthday field is used to display age in full years, ok, but what is the reason to fill out Real name and Email fields if they're not shown publicly? I know my name, so what's it for?


Wifi signal strength and internet connection is slow

I hope that I have asked this question in the right topic.  Basically I use BT (In the U.K.) and I have problems with my router receiving a weak signal in certain rooms of the house, which, therefore makes the internet really slow in some cases it won't work at all.  I have had experience working with Virgin Media (UK) before and just changed the channel number and this worked fine, but, do not know if I would receive the same outcome on BT.  Could anyone suggest any other things that I could try alongside of the channel change in order to /hopefully/ get a stronger signal, without having to install Ethernet cable?


What is the regex expression to extract 3 letter word starting with M followed by 2 number?

I want to extract first 3 letters of the sentence which start with M and are followed by 2 digits.   If sentence is M30 INTHE SKY then output should be M30. IF sentence is THE INTHE SKY then answer should be np.nan(i.e. false as it didnot start with M)


Can Aufbau principle be derived/proved with a definite reason?

How is  derived or proved? on a note, why does the energy of 3d subshell is More than that of 4s subshell, instead as 4s is greater in extent than 3d,4s should have greater energy! though I have read the answers here    I cannot find a definite explaination or proof of the above theory(rule)


Ingredients for SQL Server Version decision

We are going the create our Sql-Servers new on new hardware / VM's and think about which Sql-Server Version to go with. We are actually using Sql Server 2008 R2. We have already done a project for testing everything for any compatibility issues between 2008 and 2014 - and have fixed all issues in application code as well as in the db schemas to be ready for 2014.   Now the question for simply dismissing 2014 and directly go to 2016 came up. We are not sure.  I have ran SQL 2016 Upgrade Advisor - it said "ready for upgrade (2016)" and raised around 500 warnings for deprecated ntext, text and image columns.   Are there any special additional downsides of going to 2016 instead of 2014? Are there new compatibility issues? AFAIKS there have been no new deprecations in 2016 that are not yet in place of 2014... What do we have to consider?


We will and we have in the same sentence

Trying to write a sentence as follows:     Of course, we will, and have already, try to respond promptly.   My problem is connecting the word try with we will and have already.  Any help would be appreciated.   Thank you


Good day for all.  My question is about the power on a transformer and its functionallity. I know that the power is the same in both inductors (ideally),  if I've a source at 240V/10A then the power is 2400W, when the transformer output is 24V then the current up to 100A.   First question: If I have a circuit that work at 24V, 1A, It will be in fire for the high current?  Second question: If anyone (very tired with the life) took the output filaments, all the 100A current trip across his body and he is over forever?  Well, both questions are the same, I believe. The core is, albeit I've 100A, Can I took only the necessary for my electronic component, always that it will be for 24V?, Is the output current value not important?  Thanks.


In "Red", who shoots Joe as he leaves Dunning's house?

While Joe and Frank are at Dunning's house, the FBI (or maybe the CIA, or maybe both!?) surrounds them. Victoria tells them they are surrounded and there is no clean exit, but she can cover them to the woods, if they can create a distraction. Frank tells Cooper he is surrendering and coming out, and Cooper swears that he will be safe. He issues a no-shoot order.  As Frank (Joe pretending to be Frank) leaves the house he is shot instantly.    Who shot him and why?


Can a picklist be dependent on 2 controlling picklists?

I have 3 fields. Category, sub-category and products. Sub-category is the dependent picklist of category and Products is the dependent picklist of Sub-category. But, not all Categories have Sub-categories so Products should also be a dependent picklist of Category. Is it possible for Products to have 2 controlling picklists? I did my research and it stated that this can be achieved only through VF page. Is there no possible way I can do this using customisation? Also, can someone please tell me how to do this using a VF page? I did read the other post on this topic but it was mentioned that this can be done using VF page. But the question is pretty old so is there any provision to do it now with the recent releases? Thanks!


Can we ascertain the size of the electron? If it really is zero radius, then it can't be matter because it doesn't occupy space?  Definition of matter (Google): physical substance in general, as distinct from mind and spirit; (in physics) that which occupies space and possesses rest mass, especially as distinct from energy.


How do I increase the loop cut amount on macOS Blender 2.8?

How do I increase the loop cut amount on macOS? I have no where in the UI where I can change it.  Mouse wheel doesn't work, page up/down doesn't work, and numbers don't work.


Automatically add discontinuities in some plots

I have multiple plots (about 15 different figures) that have the same axes (i.e., same ymin and ymax values and same xticks). One of the plots has very large values. I don't want to either increase ymax nor use log scale for the y-axis. I want to display the y values greater than ymax by adding a discontinuity on the y-axis.  Here is an MWE:  \documentclass[preview=true]{standalone} \usepackage{pgfplots} \begin{document} \begin{preview} \begin{tikzpicture} \begin{axis}[ymin=0,ymax=100, log ticks with fixed point, ] \addplot table { 1 10 2 20 4 25 }; \end{axis} \end{tikzpicture}% \begin{tikzpicture} \begin{axis}[ymin=0,ymax=100, log ticks with fixed point, ] \addplot table { 1 50 2 100 4 200 }; \end{axis} \end{tikzpicture} \end{preview} \end{document}   What I need:    I have added the short lines on the axes and the plot are to denote the discontinuity. The numbers 100 and 200 on the y-axis may not be a good idea; this kind of presentation may be a source of misunderstanding. It may be better to display y values as labels near data points as follows:    The input data of plots comes from a pgfplotstable.


Prove that $\sum_{r=0}^n({n\choose r})^2={2n\choose n }$

Prove that   $\sum_{r=0}^n{n\choose r}^2={2n\choose n }$  I don't know how to prove such probems. Any proof by combinatorics?


I'm trying to make an external system call using mono. I'd like to know if it's possible to emulate something like the example below (Of course I'm looking for cross platform support).  public static int ExecuteExternalApp()             {                 int ExitCode = -1;                 Process Process = new Process(); ;                  //Defining the filename of the app                 Process.StartInfo.FileName = "java";                  //Assigning the args to the filename                 Process.StartInfo.Arguments = @"-jar """ + ConfigurationManager.AppSettings["JarPath"].ToString();                  try                 {                     //Starting the process                     Process.Start();                      //Waiting for the process to exit                     Process.WaitForExit();                      //Grabbing the exit code                     ExitCode = Process.ExitCode;                      //Close the process                     Process.Close();                 }                 catch (Exception ex)                 {                     throw new Exception(ex.Message);                 }                  return ExitCode;             }   **UPDATE: This code does work in mono. The first implementation did not work because of a non-existent reference to the System namespace (no idea of how that happened), this code block works as long as the System.Diagnostics namespace is used.


I am wondering which is the correct version?        Furthermore, the official length of my programme of study: 3.5 years   of full-time study and 16 weeks of internship.   Furthermore, the official length of my program of study: 3.5 years of   full-time study and 16 weeks of internship.


How do save-or-die effects modify CR in 5e?

I have a homebrew monster with an ability that can drop a target to 0 hp if they fail a saving throw. How should this alter its CR?


I remember encountering a word (it was a neologism, not a popularly accepted word) that meant something like "having-a-strong-but-completely-uninformed-opinion". It might have been the related idea of "arguing-vehemently-without-really-knowing-what-you're-talking-about".  I wanted to use this word recently (political climate, doncha know), but couldn't (and can't) remember it.  Can anyone help me recall?    Example usage (pretty sure it was an adj):     Geez, the commenter on that thread is so ________.


1). I have no choice but to run away. 2). I have no choice but running away.  Which one is correct and Why ?  If both are correct, What is the difference in meaning between these two sentences?


How web browser determines when to use IPv4 or IPv6 to connect to the destination?

I saw couple of related posts on this topic:  and   The first post is couple years old so I am not sure if it is still relevant and the 2nd one didn't answer my question.  Reason I ask is I installed  to help blocking ads.  I setup my router to use pi-hole as my IPv4 DNS server, however I still see advertisements when browsing site like CNN.  I then realized that my ISP provider (Comcast) provided two IP addresses, one IPv4 and one IPv6 and my router also supports IPv6.  When I manually disable IPv6 on my network card then advertisements stop showing up when I browse CNN website.  Therefore I concluded that I was using IPv6 to connect to the CNN website.  My question is when a web browser decides to use IPv4 or IPv6 to connect to the destination?  Does is simply try to use IPv6 first and if succeeded then use it, otherwise fall back to IPv4?  A side note, apparently Arris SBG6700-AC modem/router only allow you to configure IPv4 DNS server but not IPv6 DNS server.  To specify your own IPv6 DNS server, I must set that up from the computer itself.


Can I reach temperatures of 1400F In 2-4 Milliseconds With a 12 Gage Wire?

I need a thicker, more sturdy wire that can put in a high PSI environment and still reach temperatures of 2-4 millisecond. The problems i see is thicker wire don't have as much resistance and a smaller mutil-twisted smaller wire. Is there away i can change that and still reach my desired temp of 1400F?


Ubuntu Crashing/Freezing random on completely new T460P

So i'm getting quite desperate here.  I bought a brand new T460P. I then tried to install Ubuntu on it(15.10, 16.04, 16.10) and also debian. My problem is that it freezes seemingly random. It's a hard freeze meaning only a hard reset can fix it. Sometimes there goes a couple of hours and other times it's just minutes. It also happens during the boot sequence(when loading ubuntu). I haven't run anything else such as windows on it so i don't know how that reacts.  Specs:   Intel HD 530  Intel Core I5 6300HQ 8GB Ram 8260 AC Wireless Dual Band   I've had somewhat success with reproducing the crash by transferring a large file through netcat. It only takes a few seconds to crash. Using:      nc -l -p 1234 > out.file   But if it were network related it wouldn't be crashing during boot would it?  I have used all the built in tools to test for hardware defects and also updated the bios, intel-microcodes, i915 drivers. I have also tried just around every kernel(4.2, 4.4, 4.5, 4.6, 4.7, 4.8) with no luck.  I would post some logs but i really can't find anything related to the crash. If you need any logs or anything just reply and i'll post.


sfdx won't pull down full profile information

I'm using sfdx force:source:retrieve -m Profile what returns is a list of profiles but only the userPermissions, none of the object permissions or other things.


Is it allowed selling a kvm virtual machine with Ubuntu? what about copyright?

I would like know if it is allowed creating a package with a KVM virtual machine + Ubuntu as OS and sell this package. Is there any restriction due to copyright or fees to pay?  I would not modify anything on the KVM or Ubuntu (just add java & firefox), just add my scripts on Ubuntu for the customers. I saw that KVM's parts are licensed under various GNU licenses:   KVM kernel module: GPL v2 KVM user module: LGPL v2 QEMU virtual CPU core library (libqemu.a) and QEMU PC system emulator: LGPL Linux user mode QEMU emulator: GPL BIOS files (bios.bin, vgabios.bin and vgabios-cirrus.bin): LGPL v2 or later   And ubuntu with GNU GPL. Any idea?  Thanks for your feedback!


The hypotenuse of any Pythagorean triple seems not to be divided by some primes such as $3, 7$. What are the others? Are there infinitely many such primes?  In other words, I am looking for number $c$ such that $a^2 + b^2 = kc$  have no integer solutions for any positive integer $k$ and $a,b < c$.


I am trying to get Emacs-like Keybindings in GTK, Firefox, Chrome, etc.  I have followed the directions recommended  (and in lots of places) but to no effect.  In other words, I added gtk-key-theme-name = "Emacs" to my .gtkrc-2.0, and I also ran gconf-editor and set /desktop/gnome/interface/gtk_key_theme to "Emacs".  I even rebooted just for good measure.  I am using an ordinary 12.04 install, with Unity 3D as the desktop environment.


Hi, Iam new to salesforce, cant able to write test class for below code

public class countthecontacts {     public void insertcontact(){         list<Account> acclist = new list<Account>();         list<contact> conlist = new list<contact>();         set<id> accids = new set<id>();         for(contact con : conlist){                           accIds.add(con.accountId);                    }             for(account acc:[select id,No_of_Contacts__c,(select id from contacts) from account where id in:accids]){             acc.No_of_Contacts__c=conlist.size();              acclist.add(acc);         }              update acclist;          }         }


My WiFi is not working. I am using HP p001TX laptop with Broadcom BCM43142 802.11 bgn wifi adapter. Please tell me what to do.


Are there any rules or rule clarifications regarding multiple characters riding a single mount?

Are there any rules or clarifications that say anything about limitations or mechanical implications of having multiple characters on a single mount?


I'd like to improve my duplicator script. bpy.ops.object.duplicate() seems to require me to select the object first. I'd like to just feed the object straight to it instead.  Is there a smarter way to handle it than I did so far?  def duplicator(name):     # select the object     obj = bpy.data.objects.get(name)     obj.select_set(True)      # Loop 3 times, duplicate it, name it     for i in range(1,4):         # duplicate selected object         bpy.ops.object.duplicate()          # name new object with a string and number         newObj = bpy.context.selected_objects[0]         newName = 'Plane_' + str ( i )         newObj.name = newName   duplicator('Plane_0')


Please help how do I convert int to string. For example  int num = 9; Console.WriteLine(num.ToString("X"));   Will display     9   Expected Output:     9 = nine


Error accessing files in home directory?

If I want to open downloads in terminal like cd downloads, it says no such file or directory.


Where or when would one would use namespace aliasing like  using someOtherName =  System.Timers.Timer;  It seems to me that it would just add more confusion to understanding the language.


Is there a name for this type of sentence structure: "She looks as though she's been poured into her clothes, and forgot to say 'when'"?

Comedians seem to use phrases that employ this type of sentence structure - is there a name for it?  Examples of Groucho Marx's one liners seem to fit this pattern — and if memory serves, Emo Philips.       One morning I shot an elephant in my pajamas, how he got in my pajamas, I don't know.     I've had a perfectly wonderful evening, but this wasn't it.


How to use stack flair in a WordPress site

I want to add stack flair in my WordPress site. How can I use that?  My site is .  I want to put it in the right column.  How can it be achieved?


how to escape special characters dot and double quotes in java?

Columnname : Meta Data["1. Information"] String column = columnname.replaceAll(".","\\.").replaceAll("\"", "\\\\\"");  I am trying to escape both double quotes and dot character,How can i do this?


How many Pokemon in X & Y are Legendaries?

So I'm pretty sure there's at least 2, one for both X & Y.   Much like other iterations of the other Pokemon games, are there other Legendaries? How many legendaries, and what are their names?


How do I generate high quality prints with an ink jet printer?

Creating high-quality photo prints using an ink jet printer is no trivial matter. Depending on the tonal range and color depth desired and the expected viewing platform, how you approach printing may differ. The choices you make when printing also affect how effectively you are using your printers capabilities, resolution, and ink.  So, how does one generate high quality photo prints using professional ink jet printers, such as  or , while maximizing the use of ink and the printers capabilities?     Empirical Studies:     (New!!)


Cannot navigate on desktop files by keyboard arrows in Ubuntu 20.04 LTS

I cannot navigate on desktop files by keyboard arrows in Ubuntu 20.04.


When I tried to install a current version of a software, someone  for where the binaries are located so that it can be used with the command below.  curl -silent -location https://blabla | sudo --preserve-env bash -   I've been informed that under Linux, it's unusual to download the binaries and install those, like it's common in Windows. Now, I'd like to install Chrome but the command below didn't give me anything useful.  sudo apt install chrome   I only get the message saying that Unable to locate package chrome. So I figure that I probably need to use the syntax with curl and bash. However, I don't know where I should obtain the URL that's supposed to be used.  At the Chrome's page, there's only a button to download the binaries but that's the Window way, I understand. I prefer to do it properly, as supposed to.  Where do I get the URL to curl for installing the binaries?