Is least squares the standard method to fit a 3 parameters Gaussian function to some x and y data?

A participant in one experiment needs to decide whether a flash and a sound are simultaneous or not for many possible asynchronies between the flash and the sound (x in seconds). For each asynchrony, the flash and sound are presented 100 times. In the below graph the proportion of 'simultaneous' responses (y) is plotted as a function of the asynchrony    I want to fit a 3-parameter Gaussian distribution to these data. I used least squares (below). My question is whether least squares is the most standard/orthodox form to proceed for this kind of fitting. It makes sense to use maximum likelihood estimation here? How can be done?     x<-seq(-.3,.3,.1)   yes<-c(10,45,90,100,60,10,5) #simultaneous responses   y<-yes/100    leastSquares<-function(p) sum((y-p[1]*dnorm(x,p[2],p[3]))^2)   p<-optim(c(.001,0.1,.210),leastSquares)$par    xseq<-seq(-.3,.3,.01)   yseq<-p[1]*dnorm(xseq,p[2],p[3])    plot(x,y)   lines(xseq,yseq)


Is it appropriate to use the salutation "Dear All" in a work email?

I have observed that in my work place, whenever a mail is sent to more than one person( like an information, meeting request or a notice etc.), the mail starts with the salutation "Dear All". This, somehow, doesn't seem correct to me. For me, a salutation should address the reader individually, at least in its singular form, as in "Dear Colleagues".  Am I correct in thinking that?


How to instantiate a class given its name as a string?

Give some class definitiona in python, e.g.  class A(object):     def __init__(self):         self.x = 5  class B(object):     def __init(self):         self.x = 42   I want to instantiate one of these classes given its name as string. So for example, if classname is A, then I want to do something like  myinstance = SOMETHING(classname)   which should correspond to   myinstance = A()   Is there a way to do this without the use of eval eval or maps? If not, I would do the following:   map = {'A': A, 'B': B} myinstance = map[classname]()


How do I temporarily remove grub from mbr?

I have a dual-boot system with Ubuntu 14.04 and Windows 7.  Windows 7 has recently released an update that won't install due to grub.  I want to restore the windows bootloader so it can install this update, and then go back to grub.  I don't want to uninstall windows or ubuntu.  How can I do this?


Didn't you USED TO or Didn't you USE TO?

I was somehow confused encountering this sentence: Didn't you USED TO work with Annie at Macy's?. Should we use USE TO here since we are using Did which needs the base form of the verb.


I have heard from some of TV series. They are saying "suite your self", what does it mean?


I have a ton of the  items stuck in my inventory. It was a long evening, and I have lost the chance to go back to a save point before I picked up the  quest.  These stupid rocks are taking up 12 "pounds" in my inventory and I have no interest in completing it.  Is there any way for me to drop this quest or lose the super-heavy quest items?  A game mod? A dirty-letter campaign to the game designer?  Voodoo witchcraft? Anything?


How to deal with blinding when the new paper is a continuation of one's own prior research?

I wrote a paper (P1) which went through peer review and got published. The paper introduced a new graphical user interface (GUI) primitive. I then wrote P2, which extends P1, turning it into a new class of UI, which had no analogs at the time of writing (and maybe still doesn't, but the window of opportunity is shrinking). P2 is not just a thin layer on top of P1, it comes with substantial enhancements that are the result of our "lessons learned from P1" analysis + new ideas. P2 stands on its own, and it refers to P1 as if it were written by other people, per conference requirements. P2 also provides a short intro about P1, such that someone unfamiliar with P1 can still get the picture. It also provides comparisons to analogs of P1, explaining how our approach differs and arguing that our approach is better. The set of P1 analogs consists of ~5 papers. One is a preprint, 3 are just providing their designs but not including any usability evaluation details at all, or deferring that to future work. This leaves us with one good alternative, which we were not aware of at the time work on P2 started. However, we did refer to this alternative in our related work section and compared it to our own product (there are some ideological differences in our approaches). P2 explains that we chose to base our work on P1, because at the time of writing P1 was the only artifact of its kind that has gone through formal usability tests and provides detailed results of their evaluation process. Of course, the fundamental underlying reason is that P2 is the continuation of our previous work on P1. P2 has been submitted for peer review, and a reviewer rejected it, one of the reasons being "it only considers one paper [referring to P1] containing a very similar design". What is the right way to explain why P2 is built on top of P1 without compromising anonymity? p.s. note that the reviewer in question seems to have forgotten about the section where we compare P1 to alternatives. It could be that that section is not convincing enough, not well-written - but in that case the reviewer would have said "it is not convincing enough" rather than "only considers one paper". The review is otherwise thorough, I cannot say that I have the impression the reviewer hasn't read the paper fully.


Bounty award on unanswered confirmed dupes

I have found  which is most probably . There is a bounty of 50 rep (not much I know..)  Is still would be interested in what happens, if none answers the question, but it is flagged and confirmed as duplicate


how many non-isomorphic group of order 15 are there?

Let $G$ be group of order $15 = 3 \cdot 5  = p \cdot q$ , where $p < q$ are primes. I know that there exists a unique non abelian group of order $pq$ and one abelian non isomorphic group of order $pq$. I think here are two non isomorphic of order $15$  Am i right or wrong ?


Sentence construction, adjective position

I need to phrase a title, and I am not sure what the best option is: Detect visited page without analyzing its features or  Detect page visited without analyzing its features


When will Allegiant open its schedule for December 2018?

I'm trying to book for Thanksgiving, but they are not showing that far in advance.  I emailed the company but didn't get an answer.


Let $S$ be an infinite subset of $\mathbb{R}$ with the property that the existence of $S$ can be proved within ZFC (and in particular the definition of $S$ does not invoke the negation of the continuum hypothesis), but the cardinality of $S$ is undecidable within ZFC.  Are there some concrete examples of such sets?  I.e. something more constructive than $S:=$ some subset of cardinality $\aleph_1$?  This question results from musing about intuitively obvious equivalents of $\neg CH$ in order to find evidence against the validity of $CH$. My (undoubtedly too optimistic) thinking was that if some such example of $S$ is concrete enough, it would be perhaps intuitively obvious whether it should be countable or continuum, despite this being undecidable formally.  My best guess for the moment is something along the lines of  $$S=\left\{\sum_n\frac{1}{a_n}:\; (a_n)\;\text{is a strictly increasing sequence of primes}\right\}$$  but surely the cardinality can be determined (though not quite sure how).


I'm designing a microsite that has all the usual functionality. There's a simple registration/login process.   Is it a bad idea to not have a login page and instead just have username and password fields as part of the navigation?


Why does one of my objects disappear when I render?

I'm new to Blender and I finished one scene. Everything is good when I look at the scene in the object mode or rendered preview, but when I actually render the scene, my doughnuts disappear and the icing starts looking very sharp and edgy. Please, look at the attached images. Could someone tell me what I'm doing wrong?


What is 1e100.net and why do I have TCP ports open to it?

I see my PC has TCP connections open to 1e100.net.  Then I checked the whois record and find it is registered to Google.  Weird.  A quick search seems to indicate that 1e100.net is pretty popular - about the same reach as adobe.com or bbc.co.uk according to Alexa - but what the hell is it?  I run Chrome so assume it might have something to do with that, but why is there so little information about it?


Why do larger black holes emit less Hawking Radiation than smaller black holes?

Pedestrian question from a non-physicist:  I read on Wikipedia that larger black holes emit less net Hawking radiation than smaller black holes.  This seems counterintuitive to me. If black holes are essentially sucking in mass and converting it to Hawking radiation, why wouldn't a more massive black hole emit more Hawking radiation?  Moreover, how is it that Hawking radiation can escape black holes in the first place when visible light (which I know to be another form of radiation) cannot?


symbolic link to ~/SomeDir relative to user home

I have some project, which I share with other people. It is stored and distributed in git.  It should contain links to directories outside the git archive, but inside th user home, where some common libraries are, like this:  Arduino -> /home/gilhad/GitHub/arduino-1.8.1 Arduino-Makefile -> /home/gilhad/GitHub/Arduino-Makefile Bare-Arduino-Project -> /home/gilhad/GitHub/Bare-Arduino-Project   It works for me (gilhad), but does not work for my friend. I would like to make links like this:  Arduino -> ~/GitHub/arduino-1.8.1 Arduino-Makefile -> ~/GitHub/Arduino-Makefile Bare-Arduino-Project -> ~/GitHub/Bare-Arduino-Project   which would effectively resolve to the previous on my account and to following on friends account  Arduino -> /home/friend/GitHub/arduino-1.8.1 Arduino-Makefile -> /home/friend/GitHub/Arduino-Makefile Bare-Arduino-Project -> /home/friend/GitHub/Bare-Arduino-Project   (regardless where this git/actual directory is actually placed , so ../../../GitHub/.... as target would not work, as the project can be placed in ~/tmp  as well as in ~/my/special/folder/for/projects, while GitHub is always placed in users home direcory (/home/gilhad or /home/friend or what ~ points to)


What happens if the input of a voltage regulator gets out of the operating range?

I know that for a linear regulator to go into regulation, it is necessary to maintain (at least) a specific dropout voltage between its input and output.  But what happens if the input voltage drops so much that it will be closer to the intended output value than the dropout? What will be the "new" output voltage?


Does a converging sequence of measurable functions necessarily converge towards a measurable function?

Say $f_n\geq0\ \forall n$ are measurable in the sense that $\{x\ :\ f(x)<\alpha\}\in\mathcal M\ \forall\alpha\in\Bbb R$ where $\mathcal M$ is the set of Lebesgue measurable subsets of $\Bbb R$. And $f_n\rightarrow f$  Is $f :\Bbb R\mapsto\Bbb R$ necessarily a measurable function in the same sense?


Normal subgroups that have only the identity in common commute with each other.

The following is taken from M.A. Armstrong's Groups & Symmetry, #15.6  If $H,J$ are normal subgroups of a group $G$, and if they only have the identity element in common, show that $xy=yx$ for all $x\in H, y\in J$.  This question looks so easy, but I cannot seem to answer it. Since $H,J$ are normal, $yH=Hy$ and $xJ=Jx$, and $yh=h'y$ for $h,h'\in H$ and $xj=j'x$ for $j,j'\in J$. I'm missing the hypothesis $H\cap J = \{{e}\}$. How does this figure?


i'm confused i need your help developers!  MyApp launch ERROR java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference a work with RecyclerView and CardView with a Fragment.   @Override public int getItemCount() {     //ERROR NullPointerException    return visitaList.size();  }   Entire Adapter Java Code  public class VisitaAdapter extends RecyclerView.Adapter {  private Context context; private List<Visita> visitaList;  public VisitaAdapter(Context ctx, List<Visita> visitaList){     this.context = ctx;     this.visitaList= visitaList; }  @Override public VisitaViewHolder onCreateViewHolder(ViewGroup parent, int viewType){     //inflating and return our view holder     LayoutInflater inflater = LayoutInflater.from(context);     View view = inflater.inflate(R.layout.layout_visita, null);     return new VisitaViewHolder(view); }  @Override public void onBindViewHolder(VisitaViewHolder holder, int position) {     //getting the product of the specific position     Visita visita =visitaList.get(position);      //binding data with the viewholder     holder.textViewEmpresa.setText(visita.getTitle_empresa());     holder.textViewMision.setText(visita.getMision());     holder.textViewFecha.setText(visita.getFecha());      holder.imageView.setImageDrawable(context.getResources()             .getDrawable(visita.getImage())); }  @Override public int getItemCount() {     //ERROR NullPointerException    return visitaList.size();  }   class VisitaViewHolder extends RecyclerView.ViewHolder {     TextView textViewEmpresa, textViewMision, textViewFecha;     ImageView imageView;      public VisitaViewHolder(View itemView) {         super(itemView);          textViewEmpresa = itemView.findViewById(R.id.textViewEmpresa);         textViewMision = itemView.findViewById(R.id.textViewMision);         textViewFecha = itemView.findViewById(R.id.textViewFecha);         imageView = itemView.findViewById(R.id.imageView);      } }   }  Fragment launch the recyclerview  public class ReplantFrag extends Fragment {  //Adding to the list all items List<Visita> visitaList;  //The Recycler view RecyclerView recyclerView;  public ReplantFrag() {     // Required empty public constructor }    @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     // Inflate the layout for this fragment     View view = inflater.inflate(R.layout.fragment_replanta, container, false);      //getting the recyclerview from xml     recyclerView = (RecyclerView) view.findViewById(R.id.reciclerview);     recyclerView.setHasFixedSize(true);     recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));      VisitaAdapter adapter = new VisitaAdapter(getActivity(), visitaList);      recyclerView.setAdapter(adapter);      //agregar items a la maqueta Recycler+CardView       List<Visita> visitaList = new ArrayList<>();      //adding items in list     visitaList.add(new Visita(             1,             "ARAUCO S.A.",             "Revisión Caldera",             "20-01-2018",             R.drawable.arauco_logo));      visitaList.add(new Visita(             2,             "ARAUCO S.A.",             "Inspeccion Nariz Toro",             "22-01-2018",             R.drawable.arauco_logo));      visitaList.add(new Visita(             3,             "COLBUN S.A.",             "Revisión Tuberias",             "25-01-2018",             R.drawable.colbun_logo));      return view; }   }  Thanks Mate!!


Are film capacitors affected by DC bias?

After looking around, I have found quite a few things about how DC bias reduces effective capacitance for a ceramic, or electrolytic capacitor, however nothing seems to talk about the effect on film capacitors. I've found a couple of papers about film caps (such as: ), and they mention frequency and temperature, but I can't find anything about DC bias reducing capacitance.  I have obviously checked the data sheet of the component I plan on using (), but there isn't anything about DC bias in that (unless I've just failed at spotting it).  This suggests to me that they aren't affected by DC bias, but that seems a bit of a bold claim, and I can't see that stated anywhere.  Are film capacitor values affected by DC bias? If so, can anyone point me to some data about what the roll off is?  I am planning to use some film capacitors in an application with 48-60V DC across the capacitors and a ripple current around 30 amps.


Would be possible to create a light saber using photons or plasma, like the ones in the Star Wars movies? If not what forbids it? What is the physics behind these sabers?


I am having a weird issue with my terminal wrapping, and after reading online I have found out it is likely because of my PS1 setup, however, I looked at it, and it seems to match what people are saying, so I am not sure whether or not I am doing something else wrong.  PS1='\[\e[1;36m\]\u\[\e[m\]\[\e[0;31m\]\a@\[\e[m\]\[\e[1;36m\]\aubuntu\[\e[m\]\[\e[1;31m\]\a:~>\[\e[m\]'   Anyone to possibly identify what might be wrong?   One way I tried to combat this was to set stty columns to 1000 but that made a lot of other things worst (such as ls and vim).


If $X=l^p$ ,$p \in [1,\infty)$ is nonunitial Banach algebra with coordinate multuplication and $\Delta(l^p)=\{e_n:n \in \mathbb{N}\}$, where $e_n(x)=x_n$ for $x \in l^p$, what is $C_0(\Delta(l^p))$ ?


Round function in Excel, worksheet function vs VBA

I had an application for returning closest matches to certain values in a large  cluster of values( as in my earlier )   and I chose a VBA solution. While in the course of using the said application, I observed that the results for the value of 0.5 were not correct. I had been using the VBA Round function which I found to be returning 0 for 0.5 rounded to integer whereas the worksheet round function returns 1. Strangely, the VBA round function returns 2 for 1.5. I had to substitute the worksheet function in place of the VBA one.  Am I missing something?


Inverse Fourier transform of $\frac{1}{(1+x^2)}$

Find the inverse Fourier transform of $\widehat{f}(\xi) = \frac{1}{1+\xi^2}$. I wanted to use the inverse Fourier formula to solve the problem. $$ f(x) =  \frac{1}{2 \pi} \int_{-\infty}^{\infty} e^{ix\xi} \frac{1}{1+\xi^2} d\xi $$ Integration by part is not helpful at the first stage, and I am not sure about differentiating both side w.r.t $x$ and then taking the derivative inside and then using integration by parts. (I have issue with taking the derivative as well, in the sense how do we know that function is differentiable and even ignoring that issue, I am not able to find a closed form).


Did Tolkien the linguist intend for the name of the dragon Smaug to be pronounced "Smog" [IPA: /smɒɡ/ or /smɔːɡ/]? The trailer for the second installment of The Hobbit trilogy pronounces the word (pronounced 'sma-ow-g' [IPA: /smaʊɡ/]) entirely differently than the way I have been reading it for all these many years.


How to start a Python Integer WITH leading 0s?

I have a web scraper, and I need the number to start at 000000001 as that's how the URL starts, however whenever I run it I get the "leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers" error - which I tried to use but that doesn't solve my issue. Is there any way around this? Excerpt: results = [] START = 000000001 LIMIT = 100 END = START + LIMIT + 1 row = 1  for i in range(START, END):     URL = f"{url}{i}"     result = parse(URL)     if not result:         print("this url doesn't exist: ", URL)         continue     for column_number, column_value in enumerate(result):         worksheet.write(row, column_number, column_value)     row += 1


Termination of an unresponsive process in Python - multiprocessing

Is there a simple way of making a process terminate if its alive status remains TRUE for a given timeout?  I am using Python multiprocessing module to launch processes in several cores. Sometimes those processes do not succeed and get stuck without doing anything, but with an alive status (is_alive()=TRUE).  jobs    = []                                # this list will contain all jobs  for i in studies:                           # we will call as many processes as elements in studies          arguments = (i)                         # my arguments     p = multiprocessing.Process(target = myprocess, args = arguments)       jobs.append(p)                          # list of jobs     p.start()                               # start process   I am looking for something that substitutes p.start() with something like:      p.start_with_timeout(t=mytime)   Thanks!


Strange set notation (a set as a power of 2)?

I am not very well versed on set theory or syntax, but I thought I knew the basics.  However, in a book about databases I am reading now, the author uses $2^x$ to signify "a set of $x$."  For example, $2^{\text{dogs}}$ is a set of $\text {dogs}$, etc.    The author never really explained this or why he does it, I just picked up the meaning from context.    I am not sure why the exponent operator is used, nor am I sure what the number $2$ has to do with it.  The sets being represented are NOT powers of $2$ (in size)... they come in all sizes.  Is this a valid notation?  I have not seen it anywhere before...


Prove that      $$\lfloor{x}\rfloor=\bigg\lfloor{\frac{x+1}{2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2}{2^2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2^2}{2^3}}\bigg\rfloor+  \ldots$$   $x\geq{0}$   How should I start? Any hints would be helpful.  Also how would the expression change for $x\lt{0}.$  EDIT:  Thanks to @Somos in the comments. I was able to come up with my own solution. (Adding here if someone ever stumbles upon here looking for a solution.)  Subtract $\lfloor{x}\rfloor$ from both sides.  Then we need to prove that, $$-\lfloor{x}\rfloor+\bigg\lfloor{\frac{x+1}{2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2}{2^2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2^2}{2^3}}\bigg\rfloor+  \ldots=0$$  We know that, $\lfloor{x}\rfloor=\bigg\lfloor{\frac{x}{2}}\bigg\rfloor+\bigg\lfloor{\frac{x+1}{2}}\bigg\rfloor$  Therefore, $-\lfloor{x}\rfloor+\bigg\lfloor{\frac{x+1}{2}}\bigg\rfloor=-\bigg\lfloor{\frac{x}{2}}\bigg\rfloor$  Subsituting this,  $$-\bigg\lfloor{\frac{x}{2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2}{2^2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2^2}{2^3}}\bigg\rfloor+  \ldots$$  $$-\bigg\lfloor{\frac{x}{2}}\bigg\rfloor+\bigg\lfloor{\frac{\frac{x}{2}+1}{2}}\bigg\rfloor+\bigg\lfloor{\frac{x+2^2}{2^3}}\bigg\rfloor+  \ldots$$  Similarly, I reach,  $$\lim_{n\to\infty}-\bigg\lfloor{\frac{x}{2^n}}\bigg\rfloor$$  i.e. $$=0$$  Hence Proved.


If $m$ tickets are drawn out of $n$ tickets numbered $1$ to $n$, find variance of the sum of the numbers on tickets

$m$ tickets are drawn out of $n$ tickets which are numbered from $1$ to $n$. If $X$ denote the sum of the numbers on the tickets drawn. Find $V(X)$.   $X = X_1+X_2+\cdots+X_m$ , if $X_i$ can be treated as the $i$th number drawn. Otherwise, $X_i$ can be treated as the indicator variable of the number $i=1,2,...,n$.  In either way, I am able to get expectation since dependence of variables does not matter. However, while calculating Variance, dependence does matter. While calculating $E(X_iX_j)$ the second draw is supposed to be dependent on the first draw since there is a constraint of the sum $X$.  Please answer.


Term for wordplay where a new spelling is made up for an existing word

I am familiar with homographs and homophones (and homonyms), but there is a different type of "word play" or "spelling play" I've seen come up as of recently that I'm trying to find out if there is a name for. Or if one for it simply just doesn't exist. There's a few examples I could list, but the best one I could think of is "kaiyote". This is obviously a play on the real word, "coyote". However, it's not considered a homograph or homophone because the word "kaiyote" in itself doesn't have any meaning — it's just a word spelled to make it sound like the actual real word "coyote". Could anyone tell me if there is any term for this type of practice?


What word could describe an operation of either importing or exporting?  X is to import and export as migration is to immigration and emigration.  Porting isn't the word I'm looking for, I don't think, but that's what I'm getting at. Cheers!


Why is a person's location exclusively tied to their communicator?

In Star Trek it is frequently seen that when a crew member wants to avoid being tracked, they'll leave their communicator somewhere (quarters, corridor etc) which throws the computer and ship's security off their trail.  However, the entire interior of the ship is under constant surveillance by the internal sensors. Barring damage to the ship or sensors, or some space phenomenon causing radiation X to create interference, why aren't these internal sensors able to continue tracking every person on board regardless of where their comm-badge is? In the worst case, they should be able deduce who the errant individual is by simple subtraction: "I can see where all the other comm-badges are, so subtract them and the remaining life form must be the person I am looking for." But this never seems to be done either.  Is Star Fleet security really so inept or is there some other limitation in play that is never mentioned?


When I try to start gnome terminal from launcher, nothing happens. except terminal Icon starts glowing for a few seconds and then nothing ....  But when I try to open it through urxvt, It starts without any kind of error or output.


Problem to change QSQLITE database code from PYQT4 to PYQT5

I want to use QSQLITE database, in my python application, however the  I found is in version 4 of PYQT and my PYQT is in version 5, I changed all imports from PYQT4 to 5 but the application does not work as expected. The application was to look like this:  But she was like this:  me when I try to add a row:  sportsconnection.py from PyQt5 import QtSql, QtGui   def createDB():     db = QtSql.QSqlDatabase.addDatabase('QSQLITE')     db.setDatabaseName('sports.db')      if not db.open():         QtGui.QMessageBox.critical(None, QtGui.qApp.tr("Cannot open database"),                                    QtGui.qApp.tr("Unable to establish a database connection.\n"                                                  "This example needs SQLite support. Please read "                                                  "the Qt SQL driver documentation for information "                                                  "how to build it.\n\n" "Click Cancel to exit."),                                    QtGui.QMessageBox.Cancel)          return False      query = QtSql.QSqlQuery()      query.exec_("create table sportsmen(id int primary key, "                 "firstname varchar(20), lastname varchar(20))")      query.exec_("insert into sportsmen values(101, 'Roger', 'Federer')")     query.exec_("insert into sportsmen values(102, 'Christiano', 'Ronaldo')")     query.exec_("insert into sportsmen values(103, 'Ussain', 'Bolt')")     query.exec_("insert into sportsmen values(104, 'Sachin', 'Tendulkar')")     query.exec_("insert into sportsmen values(105, 'Saina', 'Nehwal')")     return True   if __name__ == '__main__':     import sys      app = QtGui.QApplication(sys.argv)     createDB()  main.py import sys from PyQt5 import QtCore, QtGui, QtSql from PyQt5.QtWidgets import QApplication, QTableView, QDialog, QVBoxLayout, QPushButton import sportsconnection  def initializeModel(model):    model.setTable('sportsmen')    model.setEditStrategy(QtSql.QSqlTableModel.OnFieldChange)    model.select()    model.setHeaderData(0, QtCore.Qt.Horizontal, "ID")    model.setHeaderData(1, QtCore.Qt.Horizontal, "First name")    model.setHeaderData(2, QtCore.Qt.Horizontal, "Last name")      def createView(title, model):    view = QTableView()    view.setModel(model)    view.setWindowTitle(title)    return view      def addrow():    print(model.rowCount())    ret = model.insertRows(model.rowCount(), 1)    print(ret)      def findrow(i):    delrow = i.row()      if __name__ == '__main__':     app = QApplication(sys.argv)    db = QtSql.QSqlDatabase.addDatabase('QSQLITE')    db.setDatabaseName('sports.db')    model = QtSql.QSqlTableModel()    delrow = -1    initializeModel(model)         view1 = createView("Table Model (View 1)", model)    view1.clicked.connect(findrow)         dlg = QDialog()    layout = QVBoxLayout()    layout.addWidget(view1)         button = QPushButton("Add a row")    button.clicked.connect(addrow)    layout.addWidget(button)         btn1 = QPushButton("del a row")    btn1.clicked.connect(lambda: model.removeRow(view1.currentIndex().row()))    layout.addWidget(btn1)         dlg.setLayout(layout)    dlg.setWindowTitle("Database Demo")    dlg.show()    sys.exit(app.exec_())


I have been trying to use my Minecraft custom made skin i have used it in singleplayer and multiplayer working and lately I have been playing singleplayer no problem but when i play multiplayer i don't see my skin but other people do and yes i have bought minecraft  this is my skin just in case there is a problem with it:


Convergence of $A_nT$ to $AT$ in operator norm for compact $T$

$A_n:Y\rightarrow Z$ are operators that strongly converge to $A$. Also, $\|A_n\|_\text {op}\le c$ for $c>0$. Given a compact operator $T:X\rightarrow Y$, I need to show that $A_nT$ converges to $AT$ in operator norm (all spaces in this question are Banach spaces).     I was unable to prove this and I also do not understand why we need to assume that $T$ is compact. Any ideas?


How to remove the gridlines, row numbers, column headers, scroll bars and sheets tab from the excel web access webpart?

We are displaying an excel sheet via excel web access web part on a sharepoint page. There is only 1 excel sheet containing 2 charts.  This appears like a normal excel doc with grid lines, 2 charts and tabs below for sheets. How do I remove the gridlines, row numbers, column headers, scroll bars and sheets tab from the excel web access webpart for better look?


I have inherited a Linux Apache CentOS plesk server which has been hacked, which has websites which are in production.  I have been advised by my friend to rebuild it from scratch, since the attack apparently is quite widespread and it is hard to detect what is breached apparently.  I have never rebuilt a server, and I did not set the server in the first place, so what I am asking is, if there is a recipe or an easy to follow checklist on how to achieve a rebuild and restore everything as it should be?


Characteristic of an integral domain must be either $0$ or a prime number.

Proposition: Characteristic of an integral domain must be either $0$ or prime number.   I'm confused by this proposition.  I think the characteristic of an integral domain should be always $0$. Suppose it has characteristic $n$. Then $n * a = 0$ for all a of the integral domain.  since n is not $0$ and, if $c * d = 0$ in integral domain, it means $c=0$ or $d=0$, a should be $0$. Hence $n * a$ is not $0$ when $a$ is nonzero. Therefore, characteristic should be always $0$.  What's wrong with my thought?


I'm reading a text - Roger Koenker (2005) Quantile Regression [page 8] - that goes like this:  Consider the function $$R(\xi) = \sum_{i=1}^n \rho_\tau(y_i-\xi)$$ where $$\rho_\tau(y_i-\xi) =(y_i-\xi)(\tau - I[y_i-\xi<0])$$ If $\hat \xi$ solves $\min_\xi R(\xi)$ then the objective function must be increasing as  one moves away from $\hat \xi$. This requires that the left and right derivatives are both non-negative at $\hat \xi$. Thus   $$R'(\xi+) := \lim_{h \rightarrow 0} \frac{R(\xi + h) - R(\xi)}{h} = \sum_i( I[y_i-\xi<0]- \tau ) $$  with $R'(\hat \xi+) \geq 0$ and   $$R'(\xi-) :=  \lim_{h \rightarrow 0} \frac{R(\xi - h) - R(\xi)}{h} = \sum_i (\tau - I[y_i-\xi<0] ) $$  with $R'(\hat \xi- )\geq 0$.  My question is: Shouldn't $R'(\xi+) =  \sum_i( I[y_i-\xi\leq 0]- \tau )$ with a weak inequality in the indicator function rather than the strict?  Because for $y_i - \xi = 0$ the limit  $$ \lim_{h \rightarrow 0^+} \frac{(y_i-\xi-h)(\tau - I[y_i-\xi-h<0]) - (y_i-\xi)(\tau - I[y_i-\xi<0])}{h} =  \\[8pt] \lim_{h \rightarrow 0^+} \frac{-h(\tau - I[-h<0]) }{h} = -(\tau - \lim_{h \rightarrow 0^+}  I[-h < 0]) = 1-\tau$$ so the i'th summand in $R'(\xi+)$ should be $I[y_i-\xi\leq 0] - \tau$.


Why there's no stale properties executing a function in the console

I was hoping that this code let name = 'Sally' setTimeout(() => console.log(name), 3000) name = 'Pepe';  Would output Sally (because of the timeout handler declaration "capturing" the name), but it doesn't happen in the Console. Why is that? I know it is related to closures but it seems I didn't fully understand it, as this very same problem happens a lot to me in React but I wanted to simplify and couldn't.


Adverb placement in "Let's simply share"

To me the expression     Let's simply share   seems wrong.  I've always thought the adverb should come after the verb. Is that correct?


What is the most modern (best) way of satisfying the following in C#?  string encryptedString = SomeStaticClass.Encrypt(sourceString);  string decryptedString = SomeStaticClass.Decrypt(encryptedString);   BUT with a minimum of fuss involving salts, keys, mucking about with byte[], etc.  Been Googling and confused at what I'm finding (you can see the list of similar SO Qs to see this is a deceptive question to ask).


When would you use .concat() in javascript

Why/when would one use .concat() in place of assignment operators?  i.e. if I am trying to combine the following:  var p1 = "My name is "; var p2 = "Joe"; var sen = p1+p2; //Or you could use concat to do the same var sen2 = p1.concat(p2); //My question is, why would you ever use the latter?


Refereeing papers on behalf of a professor: should it be listed on a CV?

My professor sometimes asks me to referee papers for him.  Should I list the corresponding journals in the professionals activity section of my CV?


Is it possible to append to a file, by piping between servers/scp/etc.?

Short version  How can I pipe text from a local machine/server and append it (not overwrite) to a file in a remote machine/server?    Long version  I wished to append my ~/.ssh/rsa_pub (public key) from local to a remote ~/.ssh/authorized_keys.   So I tried this (and hoped for the best):  scp ~/.ssh/id_rsa.pub user@local:user@remote/.ssh/authorized_keys  So I accidently overwrote the remote authorized_keys instead of appending to it... Since my accident, I need to append all those authorized_keys that I lost, one by one, using copy-paste.  Is there a way I can append to the remote's authorized_keys, rather than overwriting it?   Perhaps there is a tool made specifically for things like authorized_keys, but I am also (and more) interested in a general solution along the lines of:  cat local_machine_file.txt >> remote_machine_file.txt   Where I only care about appending to the end of the file, and not at a specific line of a file.    What I tried  Well I read the whole of man scp, several ssh key generating tutorials, and . The latter is actually what inspired me to unintendedly overwrite remote's authorized_keys... After reading all these ssh key generating tutorials I am generally frustrating at how much they all seem to focus on "generating private/public keys from scratch", assuming the remote and local machines do not already have .ssh/* stuff already in them. I also spent several hours in total searching among: SO, SuperUser and here.


I have seen an answer which "has been awarded bounties worth 25 reputation by Community".  But according to the , the minimum reputation is 50.  Then, how is it possible?


Where do the language indicator icons live in OSX?   I'm on OSX Catalina but if different on Mojave, would appreciate where it is on Mojave too. I want to write a program that shows that icon in a different context.


Every - mixing singular and plural in one sentence

I'm confused by the use of plural and singular when Every is use. Which of the following sentences is correct?    Every business has its own unique set of challenges, resulting in a different approach even if they have the same goals. Every businesses have their own unique set of challenges, resulting in different approaches even if they have the same goals.


When I was browsing SO, I came upon a unexpected syntax highlighting quirk. In C# code, the "set" keyword, used in properties, was highlighted, but not "get". Could this be changed?  Here's a sample from a SO answer that I screen-captured.


2 domain pointing to single website with different meta description and title in SERP

Let's say I have one website abc.com.my, and now I want to create a new domain xyz.my but with its own meta description and meta title which points to abc.com.my. So I need to create one index.html inside the xyz.my domain then redirect to abc.com.my.  So in SERP I hope to see xyz.my with its own meta description and meta title and abc.com.my with a different meta description and title but both point to abc.com.my. So will this affect my ranking or is it bad for SEO?


I know about histograms and also know that if we connect the mid-points on the top of bars in a histogram we will get a frequency polygon. This polygon could then be 'smoothed' in a way that it generates a frequency curve like in normal distribution, Poisson distribution, etc. What is smoothing? How is it done? I have heard about the 'filtering techniques' and 'removing noise' but I don't understand the terms. Googling yields things like Kalman filter, moving average filter, low-pass filter, kriging, convolution, etc but they are very abstract concepts for me. Is there any good resource to start learning about these things from scratch?


WinterBash site exhibits some strange 404 behavior

I was poking around winterba.sh for secret hats and I figured there may be a secret hat linked to a URL so I decided to look at some different URLs and got plenty of 404s but, some pages throw different 404s than others. Why?  Example:  throws the classic "Page Not Found" winterbash style... but  just has the text "404"  ( used to throw just the text "404" but since that has changed)  Still happening at 2016 with .


I'm looking for a science fiction book which includes a city falling into a black hole

The book covers multiple story lines, and takes place over different times. The main story is about a multi-universal war against winged-spider like aliens that feed on the fear chemicals in sentient beings.  One protagonist is a centipede-like alien from another dimension/universe from which the spider creatures are scooping out pieces of the centipede alien's universe to convert to energy. One story line is a love story involving a space city that hurls itself into a black hole to escape the spider aliens. The book was written prior to 2004, and was part of a series exploring time, space, and dimension.


Is there a subsequence of (sin(n)) that converge to 1?

Just like the title, is there a subsequence of $(\sin(n))_{n \in \mathbb{N}}$ that converge to 1 ? If it is, how to prove it? If it's possible, how to construct this subsequence? If it is not exist, how to prove it?


Correct me if I'm wrong, 'Gamora 2014' was last seen after she nut-kicked Quill and questioned Nebula if he is the one (her future lover).  Following the infamous 'Ironman' snap, we saw Thanos disintegrates into dust together with his minions.  Did 'Gamora 2014' suffers the same fate as 'Thanos 2014' too?  If no, does it makes sense, timeline wise, if this 'Gamora 2014' joined the third GOTG movie?


How to cite author(year1,year2) in latex with authoryear style?

I use the following package:  \usepackage[backend=bibtex,style=author year,natbib=true]{biblatex}


I have a field so-called "Status" in my custome contact type. It is a List (integer) and widget type is "Radio buttons". I added two values for allowed values list:   0|Sold  1|Available   Default value is "Available". But Drupal lists this as below:   () N/A  () Sold  () Available   Why does Drupal add this unnecessary "N/A" to the radio buttons? I encountered this problem since D6. Now, I'm using the latest version 7.14. I'm still seeing this.  I know I can remove the "N/A" by writing a hook from a custom module. Nonetheless, I don't want to write additional codes for this kind of small thing. When I use "Select list", it is ok with an option "-None-", but the radio button is ideally suited for the two options.  How can I remove it without installing additional module? Am I missing some functionalities from Drupal core interface?


Questions about hardware for programming

I am on the lookout for a laptop for development. There seems to be no shortage of questions addressing this issue. However, the answers to these posts seem outdated. This is the kind of question which needs to be raised time and again as the market changes. I am pretty sure that a post titled "Budget Laptop for Development - 2010 Q3" will be closed in no time and downvoted mercilessly.  Could we have some way to protect such posts? This is definitely programming related and could also lead a lot (that's understating it) of search traffic to the site. Not to mention that the best answers to such a question are to be found nowhere else but on SO.  How do we go about discussing such topics? How do we protect such discussions from being downvoted/closed/flamed?


Related to , how did she know that Choi (boyfriend of Du Jour, the girl with the tattoo) would invite Neo to the club?                                  Neo is asleep at his computer.  All Trinity knows is that Choi and Du Jour are going to Neo's apartment to buy something on their way to a nightclub.  Choi invites Neo on a spur-of-the-moment impulse, not as part of a plan he devised ahead of time.       CHOI   Something wrong, man? You look a little whiter than usual.      NEO   My computer... it...  You ever have that feeling where you're not sure if you're awake or still dreaming?      CHOI   All the time. It's called mescaline.  It's the only way to fly.  Hey, it just sounds to me like, y'know, you need to unplug, man. Y'know? Get some R&R? What do you think, Dujour?  should we take him with us?      DUJOUR   Definitely.      NEO   I can't. I have to work tomorrow.      DUJOUR   Come on. It'll be fun. I promise.        NEO   Yeah. Sure.  I'll go.   For Neo to go with Choi, Du Jour, and , several things needed to happen:   Neo has to wake up for no apparent reason when the words "Wake up, Neo" appeared (almost silently) on his screen.  and make the mental connection to the messages he received from an anonymous hacker. The weirdos who came to buy stuff from him have randomly decide to invite him to the club where Trinity will meet him1. Neo has to accept the invitation1, despite the facts that:   It is late at night He was just sound asleep He doesn't appear to be personal friends with the weirdos He has to be at work in a few hours Instead of freaking out because someone is spying on him, knows about his felonious behavior, and has hacked into his computer, Neo has to obey his anonymous stalker and ignore the fact that this person could get him arrested2.    Let's assume that Neo is so curious about the mysterious "Matrix" that he'd accept the invitation to the club after seeing the tattoo, and that Trinity knows this.  We'll also assume that Trinity was certain that Neo would see the tattoo and make the mental connection to her message.  We're still faced with the problem of how Trinity could be sure that the weirdos would invite Neo to the club.    How did Trinity know that Choi would invite Neo to the club?    1Or alternatively, Neo has to invite himself, and the weirdos have to let him come along.  2Neo was asleep, and his computer was scanning through news stories about Morpheus, when the screen went black and a message from an unidentified person appeared - in other words, someone hacked his computer.  He regularly uses this computer to commit felonies.  The person who hacked his computer knows that a group of weirdos was about to knock on his door to buy illegal programs or code or whatever it was;  he or she also knew that one of the weirdos had a tattoo of a white rabbit on her shoulder - in other words, whoever sent the messages is spying on Neo's apartment building right now, and knows that he has just committed another crime.  If I were him, I would be destroying my computer and any other evidence of my criminal activity, not going clubbing with weirdos.


Problem about evaluating $\int_0^1 {3x^3 -x^2 +2x -4\over \sqrt {x^2-3x+2} } \; dx $

$$\int_0^1 {3x^3 -x^2 +2x -4\over \sqrt {x^2-3x+2} } \; dx $$  I tried to solve it but I couldn't get the right procedure..  I need help how should I start.


I'm working on a Java program that takes an input String called input which looks like   '(A A A A B C C D E E E E)   And my output, A String[] called Letters that should look like  [A,B,C,D,A,E]   And another Array, an int[] called count that should look like  [4,1,2,1,2,4]   And I have code that looks like below, but for some reason, every time I run it it won't work. The print statements read that it doesn't ever go to the if statement. Line 2 on the second loop reads:      Check if A == A   Then it goes to the else statement and prints     A != A   What am I doing wrong? Why is A (items[0]) not equal to A (checkagainst)?   private static boolean func2(String input){ /*input: '(A A A A B C C D E E E E)     input = input.replace("'","");//replace to null char     input = input.replace("(","");//replace to null char     input = input.replace(")","");//replace to null char     System.out.println(input);     String[] items = input.split(" |\u0000",0);     System.out.println("Array items "+Arrays.toString(items));      int position = 0;     int countlength = 0; for (String z: items)countlength += 1;//determines the MAX length of the letters array     String checkagainst = "";     String[] letters = new String[countlength];     int[] count = new int[countlength];     System.out.println("\n Letters: "+Arrays.toString(letters)             +"\nCount: "+Arrays.toString(count)             +"\nItems: "+Arrays.toString(items));     for (int x = 0; x < items.length; x++){         System.out.println("\n\nCheck if"+checkagainst+"=="+items[x]);         if (checkagainst == items[x]){             count[position] += 1;             System.out.println("Iteration:" + x                     +"\n Letters: "+Arrays.toString(letters)                     +"\n Count: "+Arrays.toString(count)                     +"\nSwitch: if");         }         else{             System.out.println("checkagainst != items[x]");             letters[position] = items[x];             count[position] = 1;             checkagainst = items[x];             position ++;             System.out.println("Iteration:" + x                                 +"\n Letters: "+Arrays.toString(letters)                                 +"\n Count Arrays"+Arrays.toString(count)                                 +"\ncheckagainst: "+ checkagainst                                 +"\nSwitch: else");         }     }


Yet another "Internet is not working fine on 14.04" question.

I installed Ubuntu 14.04 on my brand new laptop and got this annoying behavior: wireless connection works fine the first minutes and then it just stops working at all. Network manager says it is still connected, other devices works properly and ifconfig has a normal output. I have to reboot and after it Internet starts working fine again, at least for some minutes.


Windows 2008 R2, guest account repeatedly re-enabled through WMI

Here's a problem I've been banging my head against for months: Every night at a specific time (probably not significant, but it's 23:03 CET) the Guest account on my Windows 2008 R2 server gets reenabled by the SYSTEM user.  The server is running Windows 2008 R2 Standard SP1 (64bit). Its primary function is that it runs SQL Server 2012. It's recently had a large number of malware infections (Bitcoins miners mostly, but also attacks using EternalBlue that triggered reboots on the server for unclear purposes, so the scope isn't entirely clear). Through Windows updates, manual cleaning, nailing down firewall settings and running some anti-malware tools I've been able to get these off the system and prevent them from reappearing, but the Guest account problem persists. I'm fairly certain they're related, as previously the malware used to appear at the same time through the same mechanic, and the Guest account seemed to have a part in all of it.   Every night this shows up in the Event Log (under Microsoft-Windows-WMI-Activity/Operational):  ActiveScriptEventConsumer provider started with result code 0x0. HostProcess = wmiprvse.exe; ProcessID = 188; ProviderPath = %SystemRoot%\system32\wbem\scrcons.exe   And a few seconds later (under the Security log):  A user account was enabled.  Subject:     Security ID:        SYSTEM     Account Name:       MYSERVERNAME$     Account Domain:     MYADDOMAINNAME     Logon ID:       0x3e7  Target Account:     Security ID:        MYSERVERNAME\Guest     Account Name:       Guest     Account Domain:     MYSERVERNAME   What I know:   The effective Guest account policy on the server (determined by using rsop.msc), Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Guest account status, is set to Disabled. scrcons.exe then launches cmd.exe, which in turn launches powershell which executes some code (in a file-less manner) the end result of which is the Guest account gets enabled. I've determined this (or at least think I have) by using Process Monitor. How, through various methods, to limit and mitigate the effects of all this.   What I don't know:   Why this is happening. I have no idea what is actually triggering WMI to do all this, and that's what I need to find out. There's something malicious left on my server, be it a backdoor or whatever, and I don't know how to find it. This is the part I'm looking for help with (while trying to remain aware that my focus might be completely wrong and I could be barking up the wrong tree).    Obviously, the safest and simplest option would be to just wipe the server and reinstall Windows. Equally obviously, at least to me, the safest option would be to use a more modern version of Windows than 2008 R2. However, this is a production server and the reality of the situation is that these options are unviable in the short term (in the long term, the entire solution the server is part of is to be phased out, but right now it's absolutely business critical). And either way I feel highly uncomfortable not knowing what's hitting me.  I should also mention that my downtime windows for this server are extremely limited, and the average reboot time for the server is obscenely long. Troubleshooting that involves rebooting is not impossible, but highly impractical.  EDIT: With regards to this being labeled a duplicate, I understand on a conceptual level that wiping the server is an advisable option, and I agree, but I still think the question of how to find what the WMI provider server is doing is worth looking at. It has implications beyond this specific server, and probably beyond just forensics.


I just finished an animation project, and suddenly my camera is looking really weird.   The camera has 2 child of modifiers, to two empties (circle and sphere) I haven't animated the camera at all, only animated the empties  I believe I have pressed a shortcut (I'm a noob and I dont know all of them). I've searched around the internet but unfortunately cant find a solution, I dont even know what this is called.


C++ Vistual Studio 0xC0000005 Error 2d vector

I'm trying to make a 2d array in c++ which displays next digits of pi decimals.  but a line:   table[row][element] = (int)pi[counter] - 48;   I get this error: 0xC0000005 telling me that I violated access rules while reading in a location: 0x0000000000000000  How can I solve this error? I'm beginner at C++  vector<vector<int> > table; long int couner = 0;   const string pi = "3141592653589793238462643";     for (int row = 0; row < n; row++) {         for (int element = 0; element < n; element++) {             table[row][element] = (int)pi[counter] - 48;             counter += 1;         }     }


What is the easiest and safest way to perform triple-boot?

In my laptop I currently have Windows 7 and Ubuntu 12.04 in dual-boot.  I tried the newest version of WattOS (based in Ubuntu) today from a live-USB,  and decided to install it to my hard drive, to use whenever I am completely dependent on battery energy.  However I don't want to create any conflicts and boot problems, specially because my DVD drive is not working and thus I am unable to use Windows 7 DVD to repair MBR.  What is the safest way to install a second Linux distribution (in this case Watt OS) and update Grub Menu, without major trouble?


How can I set a length of \dotfill ?  I used \dotfill {3 cm} and \dotfill \phantom{3 cm} without success. I can create a box and put dotted line there, but can it not be simpler?   \documentclass{article} \begin{document} Write down your name ? \dotfill \newline  What is your age ? \dotfill {3 cm} and Gender \dotfill {3cm}  \end{document}


Does $(p(0)  \wedge (P(n) \implies P(n-1))) \implies P(n) \forall n\leq 0$?  In other words, what I'm asking is, can I use the axiom of induction for negative numbers? Why/why not?  E: This is not a duplicate from that other post, I ask nowhere about having a negative argument for the base case.


My first intuition was to think $P(\{\text{No two bdays coincide}\}) = \displaystyle{\frac{\binom{365}{n}}{365}}$ given $365 \ge n$. Turns out $P(\{\text{No two bdays coincide}\}) = \displaystyle{\frac{365 \cdot 364 \cdots (365 - n + 1)}{365^n}}$. Why is it important we line up the people instead of simply dealing with subsets? What do we undercount when we solve this problem according to my initial intuition? Thanks. Edit: Came here to understand the combinatorial reasoning behind the question, but I got a much better (obviously, personal opinion) answer based on probabilistic reasoning. That answer might be beneficial to future students struggling to grok the classical solution to this problem. Here it is below: Let $A_i$ be an event where the $i$th person shares bday with none of the $n−1$ people. Then we have $P(\bigcap_{i-1}^n A_i) = P(A_1)P(A_2\mid A_1)P(A_3\mid A_1, A_2)\cdots P(A_n\mid A_1,\ldots A_{n-1}) = \frac{365}{365} \cdot \frac{364}{365} \cdots \frac{365 - n + 1}{365}$


Replace the text between two lines with new text and keep the rest of the file unchanged

I have the text file (input.txt)  *HEADING *NODE, NSET=ALLNODES    1,   0.000000e+00,   0.000000e+00,   0.000000e+00    2,   2.500000e-01,   0.000000e+00,   0.000000e+00 *ELEMENT, TYPE=S9R5, ELSET=EB1   ...   ...   ...   ...  **  * END OF FILE   My goal is replace all the lines between the lines (*ELEMENT, TYPE=S9R5, ELSET=EB1) and (**) with a new lines.  and keep the rest of the file unchanged. Any solution using: open('input.txt', 'w') as f1: would erase everything in the file and write the new two lines and this is not the thing I need.


Evaluate $\int\sec^4(u) \operatorname d \!u$

Evaluate   $$\int\sec^4(u) \operatorname d \!u$$  I don't know what to substitute: I've tried $1+\tan(u)$ and integration by parts. I know the general formula for $\sec^n(u)$, but I want to be able to do this integral on my own.


I installed Ubuntu on my Windows 7 Sager laptop using Wubi. Hibernate (i.e. suspend to disc) is not an option from the power icon, only suspend, shutdown, etc. Hibernate is also not an option from my battery/lid close options. I understand that hibernation is disabled by default in Ubuntu 12.04. I tried running pm-hibernate but I get the following message:  Looking for splash system... none  s2disk: Snapshotting system   and then the computer just hangs with a black screen. According to the documentation  if this fails then I can't enable hibernate but it offers no help in making pm-hibernate succeed.  Could swap be my problem? It looks like I have very small swap:  user@ubuntu:~$ cat /proc/swaps Filename                Type        Size    Used    Priority /host/ubuntu/disks/swap.disk            file        262140  0   -1   The advice on  is only for the author's set up (e.g. I don't have an Ubuntu install disk since I used Wubi) and he says that 'INFO: This will not work for 12.04, resume from hibernate work differently in 12.04.'  Any advice? I really need to get hibernate working to use my laptop as a, er, laptop.  Thanks


maximum number of clients connected to the web service

How can I find the maximum number of clients that can connect to my web service at the same time?  Is there any way to know how many clients can connect to the web service at the same time?  What is the limitation of number of connections to the web service depend on?


Why do we need tensors in Tensorflow? I mean, if numpy can be used to create multidimensional arrays, which tensors essentially are, why do we bother creating tensors instead of numpy arrays?


How to got difference between 2 date in Years ,Month , Days is sql

I want to got difference between 2 date in Years ,Month , Days for   Example : Hirring Date : 25/7/1998 CurrentDate : 30/9/2017  The resulte to be like :  19 Years – 2 Month – 11 Days


How do we know that certain quantum effects are random?

I was looking at a website that claims to generate random numbers from observation of quantum effects. This lead me to question how we know that the numbers are truly random.  When we observe a probability wave and it collapses in one place into a particle, how do we know that the location of the particle is really random?  Do we have any evidence of the randomness, or is it just that no one can predict the location right now?


How to become an Editorial board member?Is it appropriate to contact journal's Editor in Chief to show interest for joining editorial board?


Ubuntu 16.04 LTS Failed to fetch / Hash Sum mismatch

Here's what I keep getting when I sudo apt update  Hit:1 http://archive.canonical.com/ubuntu xenial InRelease Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                    Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]      Hit:4 http://dl.google.com/linux/chrome/deb stable Release                      Hit:5 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu xenial InRelease Hit:6 http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu xenial InRelease       Hit:7 http://eg.archive.ubuntu.com/ubuntu xenial InRelease                      Hit:8 http://ppa.launchpad.net/linrunner/tlp/ubuntu xenial InRelease      Get:9 http://eg.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Hit:10 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial InRelease    Hit:12 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease           Hit:13 http://ppa.launchpad.net/plushuang-tw/uget-stable/ubuntu xenial InRelease Hit:14 http://ppa.launchpad.net/ubuntu-desktop/gnome-software/ubuntu xenial InRelease Get:15 http://eg.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Hit:16 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease Hit:17 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu xenial InRelease Hit:18 https://packages.microsoft.com/ubuntu/16.04/mssql-server xenial InRelease Get:19 http://eg.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [540 kB] Err:19 http://eg.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages   Hash Sum mismatch Get:21 http://eg.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [218 kB] Get:22 http://eg.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [298 kB] Get:23 http://eg.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [193 kB] Get:24 http://eg.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7,776 B] Get:25 http://eg.archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [7,792 B] Get:26 http://eg.archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2,548 B] Get:27 http://eg.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B] Get:28 http://eg.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [468 kB] Get:29 http://eg.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [453 kB] Fetched 847 kB in 6s (121 kB/s)                                                 Reading package lists... Done E: Failed to fetch http://eg.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/by-hash/SHA256/7ce67f72031f7cd7c4f24fffe8c90101935c8ae4e58502b1b60dfbb900f58841  Hash Sum mismatch E: Failed to fetch http://eg.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-i386/by-hash/SHA256/b4989c055e8da5afab24c96f86caf7157df19e46797e1217ad03a87d1b4a705a   E: Some index files failed to download. They have been ignored, or old ones used instead.   I have tried many solutions of similar related issue, but nothing worked for me :( Please help!  Edit: Solutions I found in Google that didn't work for me:


AFAIK, C++ offers destructors for primitive types for consistency reason. But that doesn't work for bool type.  bool*   vptr; vptr->~bool();  // Error. "Expected a class name after '~' to name a destructor"  int8_t* vptr; vptr->~int8_t(); // No error.   What's wrong with my code? Here's my compiler version.  Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin12.5.0 Thread model: posix


I am confused by the difference between "Cores" and "Processors". A lot of the computers are 2-cores, 4-cores. Does this mean that they have one processor with 2 or 4 cores on that single processor?  Also, for intel core i5, it seems that there are 4 CPUs in the task manager, are they referring to 4 core on a processors, or 4 processors with one core each, or 2 cores on 2 processors?


"Let $u, v$ be harmonic functions on a region G. Prove that if the product $uv$ is identically zero, then either $u$ or $v$ must be identically zero." Could sb. give me a hint for this question? I tried all the properties and theorems on harmonic functions (definition, poisson integral, max. principle, passed a holomorphic function,..), but could go nowhere.  Thanks.


Exporting several files at same time in QGIS?

I have a lot of .TAB files open in QGIS and I want to save them to .SHP so I can work with them in ArcMap.   Is there a way to save/export all these files at the same time or do I really have to "save as" separately for every single file?


Ways to give users some specific education about question quality and topicality

Important: This question is being asked here, and not on the Programmers Meta,  because I believe that several SE sites suffer from this same, specific problem.    On Programmers, I see a pattern emerging.   New User sees the "Programmers" site title, and asks their incomplete, "fix my broken code" question. Community members comment that their question is off-topic, and recommend Stack Overflow.  New User says "thanks" and leaves, leaving their undeleted question for the community to clean up.    What seems clear to me is that:   New User has never seen the "What kinds of questions can I ask about here" page, or if they have, they've clicked through it without reading it. New User doesn't know how to move their question to the right place properly  (i.e. post on new site, delete from old site). Community cleanup of such questions is onerous.  The moderators on Programmers, following the principle that the community should moderate itself for the most part, are not proactive about removing such questions unless they're especially egregious. Migration is even more onerous.   OK, so we have the .  Here's what it says about topicality, about halfway down the page:    Note to those who are confused about Programmers' site scope: it's all right there, in black and white.  However, I do notice a problem.  It's circled in red.  That's our fault, the fault of the Programmers community.  What we really meant to say was "Don't ask your code troubleshooting questions here; those belong on Stack Overflow."  Coding tools deserves its own bullet.  We should fix that.  However, what are the chances that the user is actually seeing this, and evaluating whether or not they should ask their question based on this?  So here's my question, in two acts:  ACT I:  Is there a way to highlight the pain points of a particular site to new users specifically, so that we can be very clear that we don't want those questions that are clearly and unambiguously off-topic on our site, before they ask their question?  ACT II: Failing that, is there a way that we can fast-track the removal of such questions so that they no longer pollute our front page?


I am getting the following error in the top menu bar:     An error occurred. Please run the Package Manager from the right-click menu or apt-get in a terminal to see what is wrong. The error message was:'Error:BrokenCount>0'.


Which is the valid syntax of this query in MySQL?  SELECT * FROM courses WHERE (now() + 2 hours) > start_time   note: start_time is a field of courses table


I have to find out which Linux distribution is running on a server. From uname -a I have the following output:  $ uname -a Linux lvmfacelifttap2b 3.10.0-514.6.1.el7.x86_64 #1 SMP SUn Dec 11 12:25:18 EST 2016 x86_64 x86_64 x86_64 GNU/Linux   I've tried googling but I couldn't find a match. Any help how to find out the distribution ? Thanks


Apt-get providing outdated version of youtube-dl

I just installed youtube-dl by doing sudo apt-get install youtube-dl, but after typing $ youtube-dl --version, I get 2016.02.22, which seems updated according to their github page, that says they are in version 2016.11.14.1.  I suppose I could remove it and download the package from their github page, but I wonder why it didn't work using apt-get, and how could I fix it, since using apt seems the standard way of doing it.


Which tools should be used to produce charts in computer science research papers?

What are good choices to produce charts in computer science research papers? For example, I think Figure 8 from  , included below, is great. What tools were used to produce it?    Source: Xiangyao Yu et al., , p. 215.


Hide Administrator account from Windows login screen

I have enabled the Administrator account so that I can use it with runas in command prompt, but now the account is displayed also on the login screen.    Is there a way to hide the Administrator account from the login screen without disabling/deleting it?


Inconsistency in which migrations count as "rejected"

Questions which have been migrated and then closed as duplicates count as "rejected" in the migration stats even though they aren't marked as rejected on the posts themselves.  Specifically, in the  page on , I see this:    But of the three questions migrated from Movies & TV in the last 90 days, the two  were  were closed as duplicates and so the migrations weren't rejected. The migration stats page on M&TV bears this out:    TL;DR: questions migrated and then dupe-closed show as "rejected" in the target site's stats even though they aren't.


Figure title created from picture's name - why?

Can anyone tell me why I'm getting that extra title (picture's name .jpg at the top)? I don't want to include it.


Error when importing UTF-8 encoded csv file containing "æ,ø,å" with datatool

I am trying to import a UTF-8 encoded csv file into a tabularx environment to sort the table in ascending order with respect to the first column. When compiling I get the error: Package inputenc Error: Unicode char (U+FEFF)(inputenc) not set up for use with LaTeX. \end{tabularx}. Here is my code   \documentclass[12pt,a4paper]{report} \usepackage{graphicx} \usepackage{tabularx,booktabs} \usepackage[norsk]{babel} \usepackage{datatool} \usepackage[utf8]{inputenc} \usepackage{array} \usepackage{booktabs} \usepackage{float} \usepackage{textcomp} \begin{document}     \DTLloaddb[noheader,keys={sangnr,engelsk,norsk}]{test}{test.csv}     \DTLsort{sangnr=ascending}{test} \begin{table}[H]     \scriptsize     \begin{tabularx}{\linewidth}{>{\bfseries}l X X }         \toprule         \textnumero &          Engelsk tittel &          Norsk tittel \\         \midrule         \DTLforeach{test}{%             \sangnr=sangnr,\eng=engelsk,\nor=norsk}{%             \sangnr & \eng & \nor \\         }         \\[-\normalbaselineskip] \bottomrule     \end{tabularx} \end{table} \end{document}     test.csv     %sangnr, engelsk, norsk 45, Have Thine Own Way{,} Lord, Dann meg{,} Herre 55, Jesus rose from the dead, Jesus stod opp fra døden 454, How Great Thou Art, Å{,} Store Gud   I know I can save the csv file in ANSI and write \o for ø, but this will be rather tedious in the long run. Can anyone see what I am doing wrong?


Issue with v.clean (GRASS command) in QGIS

I've trying to clean topology in certain shapefiles.  When I use v.clean command from GRASS 7 in QGIS, the results is a shapefile with a different CRS from original shapefile. Also, when I try to ejecute another commands over v.clean output (as buffer, i.e), results are vectors with no features.  For example:  I'm working in ETRS89 / UTM 30N by default and without "on the fly" reprojection (1).  Result of v.clean (green line) is accord with original vector (red lines)(2).  But when I check CRS in properties (3), it doesn't have one. Also, v.clean doesn't save a .qpj file with cleaned shapefile, but save a .prj file.  Checking the arguments of .prj file, it's completely different from original shapefile, project CRS and CRS configuration for new layers (original in top, result in bottom, 4).  Setting projection from properties box doesn't work, I can't ejecute basic geoprocesses over the "cleaned" layer.  I've tried in OS X and Windows QGIS 2.18 version without positive results. Is this a bug of last version or I'm doing something wrong?


Almost all finite groups have order $2^n$?

This might be a stupid question, but here it goes:  Is anything known about, whether:  $$\lim_{n\to \infty} \frac{\#\{\text{Groups of order }2^n\}}{\#\{\text{Groups of order} \leq 2^n\}} = 1$$  (where two groups are considered the same, if they are isomorphic).


I know how to CALCULATE dot product, but still don't understand MEANING of it.  I mean, If I have to explain vector addition I would say that "Sum of two vectors give you the third vector that has the same effect as other two combined"  But I don't know how to explain dot product. For example we have two vectors: v=(3,1) and w=(2,4). Dot product of these two is 3*2 + 1*4 = 10. What does this result (10) tell us?


Mac App Store, reuse apps after changing country

The answer of  explains that it is to install apps bought on the Mac App Store on multiple computers.  My problem is a little bit different. I moved to another country and I had to change the country also in my iTunes profile, due to my new credit card. As a result my iTunes store, App Store and Mac App Store are now associated to the new country.  How can I access and download my purchased Apps on my new MacBook Pro?  Probably one solution would be to change again the country, but it wouldn't be optimal.


I am trying to understand Forms.Timers better. As I understand, a timer is executed on a thread from the thread pool, in this case you should not update a control on the form from the timer (because this is not the thread that created this control).  But, in the examples provided by microsoft (  ) thay are updating a control from a timer.  So, my question is, is there any problem updating a control (like a label) from a timer (without a control.Invoke call)?  If not, why not? (because this is a thread from the thread pool and not the thread that created the control)


I know that this question is a bit old or maybe overdone, but I'm running the latest edition of Blender and when I use the Cycles engine I get really fuzzy results and I can't find a simple, non-compromising solution to the quality.  I don't know exactly what I'm doing wrong here, but I'm sure others share my frustration.  Leaving everything in default settings, I started a new project and switched to the Cycles render.  I duplicated the cube and set colors for two Diffuse BSDF shaders, then went ahead and made walls and a floor all sharing the same diffuse shader.  I made two windows to emit blue light.  The screenshot has gaps between the walls because of the setup:  I'm aware that it's considered very incomplete and many have come to terms with some amount of noise, but is this normal?  Furthermore, with default settings or not, I can't change the amount of noise produced.  Supposedly, using "progressively refine" in the rendering tab should make it refine itself indefinitely, however Cycles only counts to 10 refines and then stops, creating a render which is a pixel-perfect match of the ordinary rendering method when it's completed.  I understand that there are tricks that can be used to reduce noise, but at the cost of extra processing time and usually small quality conflicts, like blurring.  My question essentially boils down to is this Cycles' current limit?


How to create a grid for a specific area and scale?

I have a municipal boundary with parcels that I need broken down into smaller maps to better view the parcels.  My client wants each smaller map at a scale of 1:10,000.  I plan to used data driven pages for this series of maps.  So I know I need to create a grid.  I want to use the Grid Index Features tool, my problem is that I'm unsure of what to use for my parameters. I don't have a specific number of columns or rows and I don't know how big of a polygon I want.   So how should I set up my parameters?  And is there a better way to go about doing this?  I have ArcMap 10.2.2 - Advanced


I don't understand simple binary decoder code. How can this code work well?

First of all, stdio module is just used to call stdio.write() function that is exactly same as print() function in python. What makes me dizzy in understanding this code is this part. "while v > 0:" For my short point of view, v value never drops down below zero. So for me it looks infinite loop that doesn't stop. v will be halved in sequence. but it never go under zero for my opinion. So, i thought if i give 5 as a input value to this program, than this program would behave and yield the result like "1010000000..." but this program drives right answer "101" which is right binary code for decimal number 5. What am i missing ? import sys import stdio  n = int(sys.argv[1])  v = 1 while v <= n // 2:     v *= 2  print(v)   while v > 0:     if n < v:         stdio.write(0)     else:         stdio.write(1)         n -= v     v //= 2 stdio.writeln()


Get fields and values from an object by reflection in C#

With the class below, I try to get :   field name value   I tried this piece of code :  Dictionary<string, string> listField =          membership.GetType()             .GetFields(BindingFlags.NonPublic)             .ToDictionary(f => f.Name,                           f => (string)f.GetValue(null));   but I have nothing in the dictionary.  Any idea ?                            [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] [System.Runtime.Serialization.DataContractAttribute(Name="MyClass", Namespace="http://model.common.party.ent.gfdi.be")] [System.SerializableAttribute()] public partial class MyClass : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {      [System.NonSerializedAttribute()]     private System.Runtime.Serialization.ExtensionDataObject extensionDataField;      [System.Runtime.Serialization.OptionalFieldAttribute()]     private string firstName;      [System.Runtime.Serialization.OptionalFieldAttribute()]     private string lastName;      [System.Runtime.Serialization.OptionalFieldAttribute()]     private System.Nullable<long> fieldA;         [System.Runtime.Serialization.OptionalFieldAttribute()]     private bool fieldB;          [System.Runtime.Serialization.OptionalFieldAttribute()]     private int fieldC;      }


Is there a module that lists which tables are created, owned or modified by a particular module?  I need something that can show me what tables are created or modified by when new modules are installed.


explanation for a combinatorial identity involving the binomial coefficient

I am looking for an intuitive explanation for the identity:  $$\binom{n}{h}\binom{n-h}{k} = \binom{n}{k}\binom{n-k}{h}$$  Thanks!


I need to find the summation of:  $$\begin{align*} &\sum_{i=0}^{\infty} iar^{i} &\text{if }|r|\lt 1 \end{align*}$$  I found this result: $$\begin{align*} \frac{a}{1-r} &= \sum_{i=0}^{\infty}ar^i &\text{if }|r|\lt 1\\ \frac{d}{dr}\frac{a}{1-r} &=\frac{d}{dr}\sum_{i=0}^{\infty}ar^i&\text{if }|r|\lt 1\\ \frac{a}{(1-r)^2} &= \sum_{i=0}^{\infty}\frac{d}{dr}ar^i &\text{if }|r|\lt 1\\ \frac{a}{(1-r)^2} &= \sum_{i=0}^{\infty} iar^{i-1}&\text{if }|r|\lt 1\\ \frac{a}{(1-r)^2} &=\sum_{i=1}^{\infty} iar^{i-1} &\text{if }|r|\lt 1 \end{align*}$$  However I do not get the last step. Shouldn't it be:  $$\begin{align*} \frac{a}{(1-r)^2} &= \sum_{i=0}^{\infty} iar^{i-1}&\text{if }|r|\lt 1\\ \frac{ar}{(1-r)^2} &=\sum_{i=0}^{\infty} iar^{i} &\text{if }|r|\lt 1 \end{align*}$$  Thank you


I wanted to enter this character in my LaTeX code.But I am not able to find the command for it. Can anybody help me with it?


what is the procedure of ubuntu Installation in a new laptop

i want to install ubuntu in my new laptop 1st time.so,i request you to kindly tell the proceedure to install in a free dos laptop for 1 st time


What's the difference between Hedges' g and Cohen's d?

I have been reading  and the only difference I can find between the two is that they have ever so slightly different pooled standard deviation values but I don't understand how changing these SD values is meant to improve the accuracy of the estimate of effect size.  The differences in standard deviation are the following ($SD_{pooled}$ is the pooled SD for Cohen's d and $SD^{*}_{pooled}$ is for Hedges' g):  $SD_{pooled}=\sqrt{\frac{n_1 SD_1^2+n_2 SD_2^2}{n_1+n_2-2}}$  $SD^{*}_{pooled}=\sqrt{\frac{(n_1-1)SD_1^2+(n_2-1)SD_2^2}{n_1+n_2-2}}$


Delete sub-directories with YYYYMMDD in name older than N days

I have a directory where daily subdirectories are created, literally named according to $date. How can I delete folders and their contents that are older than 7 days according to the YYYYMMDD in the file name and not the metadata date? Say I have (skipped some for brevity):  20170817 20170823 20170828 20170901   I would end up with the following folders (which those should keep):  20170828 20170901   I created a variable that holds the date 7 days ago: dt_prev=$(date -d "`date`-7days" +%Y%m%d)  My thought was to ls -l a list of these folder names and compare row by row, but this involves cleaning that list, etc., and I figure there has to be an easier way.


How to find what channel the SSID is on?

I'd like to see what channel (e.g. 1-10, I believe) each SSID in the list is. How can I find that information?


Short brandable domain vs. long keyword domain

I need a counsel about my websites' domain.  Let's say I have just bought two domains: xyz.com and xyzphotography.com.  As we can see, the first one is shorter but way less meaningful than the second one. The second one contains a photography keyword but it's longer.  I have only one website which is my photography portfolio. Can you advise me how to set those domains to make it all as SEO-friendly as possible? Which one should be the main one, does the rest should work on their own or have some kind of SEO-friendly redirect to the main domain?


Is this a valid partial fraction decomposition?

Write $\dfrac{4x+1}{x^2 - x - 2}$ using partial fractions. $$ \frac{4x+1}{x^2 - x - 2} = \frac{4x+1}{(x+1)(x+2)} = \frac{A}{x+1} + \frac{B}{x-2} = \frac{A(x-2)+B(x+1)}{(x+1)(x-2)}$$ $$4x+1 = A(x-2)+B(x+1)$$ $$x=2 \Rightarrow 4 \cdot2 + 1 = A(0) + B(3) \Rightarrow B = 3$$ $$x = -1 \Rightarrow 4(-1) +1 = A(-3)+ B(0) \Rightarrow A = 1$$ Thus, $$\frac{4x+1}{x^2-x-2} = \frac{1}{x+1} + \frac{3}{x-2}\textrm{.}$$  The substitution of $x$ ($x = 2, -1$) is a common method to find out the coefficient of the partial fractions. However, the equation on the third line is obtained by multiplying $(x+1)(x-2)$, which is assumed to be nonzero. Here we have a contradiction. Furthermore, the original function is not defined at $x=-1,2$. How can we substitute these value for $x$? So is this method valid and rigorous? How to modify it so that it is rigorous?


Partitions disappeared after power loss while installing

I had Ubuntu 14.04 LTS installed on my Laptop. After a while I had some troubles starting it up. I decided to reinstall Ubuntu.  I had 3 ntfs partitions, 2 ext3 partitions the mount point for the first was / and for the second was ./local and a swap partition. During the reinstallation I chose the option: "erase Ubuntu 14.04 and reinstall".  During the reinstallation the power cut off. After it worked again I turned my laptop on to try to restart the installation process. I couldn't find any options other than:   Erase disk and install Ubuntu Something else   When I chose Something else I couldn't see my partitions. Instead I found this:  Device                         Type     Mount point     Format?     Size      Used     System     /dev/mapper/ubuntu--vg-root  /dev/mapper/ubuntu--vg-root   ext4                                 631381 MB unknown  Linux device-mapper (linear)(631.4 GB) /dev/mapper/ubuntu-vg-swap_1  /dev/mapper/ubuntu-vg-swap_1  swap                                 8493 MB   unknown /dev/sda  /dev/sda1                     ext2                                 254 MB    27 MB  /dev/sda5                                                          639877 MB unknown   At the Testdisk phase I have this:


How can I set the version number when uploading a file to SharePoint?

I have files from an old document control paradigm that I want to put into SharePoint.  If I have a file that the old paradigm called "version 14" how can I upload that document into SharePoint and assign it the initial version 14.0?  I was prompted for a version string when I uploaded and I provided one but when I view the file's version history, it starts at 0.1.


Network profile should list total reputation and badges across the network

Looking at your network profile, there is no number anywhere in your entire profile that has a sum of all your reputation across the network except for the flair page, which isn't always accurate because it's cached, and isn't exact because it rounds. Yet, there's so much empty space on the profile page.  My simple idea is to list the user's total reputation and badge counts below their Gravatar image like on any normal profile page across the network (keeping the rule of only accounts with over 200 reputation). It would make it incredibly easy to find and I wouldn't have to go search for myself on Area 51 to figure it out.


When I type "Students is the type of people you are looking for". Instead of "type of people", it may be something like: "somewhat", "the way to go", etc.. I have my grammar-extension complaining that I should use "are". So I wonder is it really wrong? Could you provide some examples of using plurals with "is"? (it is difficult to search)


Googling didn't help in this case, I'm posting here. I was wondering if there is a way to find how much memory a module takes when imported into Python?   Thanks


When will the .NET garbage collector release this object?

Employee obj = new Employee();  obj.Dispose(); //statement 1; obj = null; //statement 2   On which statement will the GC remove the object?  Exactly what will be happening behind the scene on statement 1 and statement2


How to open "." files for editing with text editors on macintosh

"." files like ".bashrc" are invisible to the finder. How do you make them visible so you can open then inside editors like textedit or sublime?


Prove that if in a certain set with associative operation $*$ defined, $ax = b$ and $ya = b$ have solutions, then that structure is a group.   My attempt:  $$ax = b \Rightarrow (\exists e )(axe = x \land be =b)$$  $$ya = b \Rightarrow(\exists n)(nya = y \land nb = b)$$ Now, I'm stuck - I don't know how to prove that $e$ and $n$ are the same thing and that if $be = nb = b$ then $e=n$.


Tag scores have not updated; script did not run

The tag scores script has not ran at the scheduled time of 03:00 UTC for a number of days.  Here are some other reports of this:      What's going wrong?   states I have a score of 0 across 1 question on :    But when I , it shows that I answered a 2nd question with a score of 2.    Update on 16/05/2013: The problem relapsed a few days ago and the tag scores are again stale. Can we get this fixed once and for all? Update on 14/05/2014: This has started receiving more upvotes over the last few days. My guess is this has relapsed again.


Final variables and methods inside a final class

Are there any benefits to finalizing a class and finalizing each individual variable  and method inside that class? Or would that be redundant?


Run an application at each system boot in Arch Linux

I am using Arch Linux. I don't have any special permissions, I am just user without any special privileges. I want to start an application after each boot.  I have already tried using crontab jobs, using @reboot . But it's not working.  How to run application at every system boot, (solutions for execution after login is even better).  Additional information: I have tried adding same cron job (using @reboot) job in Ubuntu also, but its also not working.  My crontab job:  @reboot /home/username/get_stats.py   Command should execute after first login after each reboot.


$E=mc^2$ resembles non-relativistic kinetic energy formula $E_K = \frac{1}{2}mv^2$?

The simplest equation expressing mass–energy equivalence is the famous $E=mc^2$ where $c$ represents the speed of light. Compare this with $E_K = \frac{1}{2}mv^2$.   Since $E=mc^2$ can be applied to rest mass ($m_0$) and rest energy ($E_0$) to show their proportionality as  $E_0=m_0c^2$, I ask whether this resemblance is just a coincidence created by the need of any equation to be homogeneous for units, or are the two equations fundamentally related?  I know about  but I could not find the answer I'm looking for there.


I can't find where this shortcut is defined. How can I disable it?


I tried to use \uppercase in \newcommand: \newcommand\universidad{My University} \newcommand\Universidad{\uppercase{\universidad}}   When I use it I get this,  My University  and not, as expected, this  MY UNIVERSITY  Why? EDIT I can't use \MakeUppercase because I need use latin quote, example: ingeniería. And this latin case has problems with \MakeUppercase


Prove a sequence is a divisibility sequence

Sequence: $a_n=2^n-1$   I want to prove that $a_m|a_n$ whenever $m|n$.   I started by approaching with induction, base/trivial cases being $m=n$, $n=0$, and $m=1$, but I'm not sure where to go from there or if there is a more straightforward method.  Note:  $m|n$ means for some $x$, $mx = n$  $a_m|a_n$ means for some $y$, $a_my=a_n$  Other similar questions appeal to laws beyond basic arithmetic and the definitions of divisibility and the sequence.


Show the content of a field only if the user is logged in?

I want to show a fields content in views not for guests, but only for logged in users. (Drupal 8.30)


Allow improving suggested edits on the mobile website

On the normal website, once you have submitted a suggested edit, you can just click [edit] again to improve it. This does not seem to be possible on the mobile version of the website. Especially given that there's no 'preview' option on mobile, it sometimes happens that the formatting can be improved, like here (expletive has been grayed out):    It shouldn't be hard to show an [edit] link between the [share] and [flag] links, like the normal site.


Migrate user accounts from Azure AD to on-premise AD?

My company uses Office 365 for Exchange, SharePoint, Lync etc. including the build-in user administration via Azure Active Directory.  Now we want to switch to a local AD on a Windows Server. It shall sync changes to Azure, but the primary user and group policy administration happens on the windows server.      How do we initially get the user accounts from the Azure AD into the on-premise (windows-server) AD?  edit1: Has anybody looked into this using Microsoft Forefront Identity Manager? It looks like this tool comes with DirSync. Open “miisclient.exe” on the DirSync server (Located in “C:\Program Files\Windows Azure Active Directory Sync\SYNCBUS\Synchronization Service\UIShell”). It may be possible to configure it to sync the other direction... may.


I am a newbie Linux User  I wrote a Lubuntu image to my 8GB usb drive, and made it bootable, using the dd command.  After that I wanted to format it or make it umount but when I plug it to my PC I face this error:  Unable to access "Lubuntu 17.04 amd64"  Error mounting /dev/sdb1 at /media/moji/Lubuntu 17.04 amd64: Command-line `mount -t "iso9660" -o  "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500" "/dev/sdb1" "/media/moji/Lubuntu 17.04 amd64"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb1,        missing codepage or helper program, or other error     In some cases useful info is found in syslog - try    dmesg | tail or so.


Pagination wont work with search results template

I can't seem to get pagination to work correctly in my search results template. The page links appear, but when i click onto page 2, it gives me a 404 error.  Search.php  <?php global $wp_query; $total_results = $wp_query->found_posts; ?>  <?php if(!$wp_query) global $wp_query; $search_refer = $_GET["post_type"]; if ($search_refer == 'archive') { load_template(TEMPLATEPATH . '/search-gallery.php');} else{load_template(TEMPLATEPATH . '/search-standard.php');} ?>   Pagination Code in Functions.php  function pagination($pages = '', $range = 4){    $showitems = ($range * 2)+1;     global $paged;  if(empty($paged)) $paged = 1;   if($pages == '')  {      global $wp_query;      $pages = $wp_query->max_num_pages;      if(!$pages)      {          $pages = 1;      }  }      if(1 != $pages)  {      echo "
Page ".$paged." of ".$pages."";      if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "&laquo; First";      if($paged > 1 && $showitems < $pages) echo "&lsaquo; Previous";       for ($i=1; $i <= $pages; $i++)      {          if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))          {              echo ($paged == $i)? "".$i."":"".$i."";          }      }       if ($paged < $pages && $showitems < $pages) echo "Next &rsaquo;";        if ($paged < $pages-1 &&  $paged+$range-1 < $pages && $showitems < $pages) echo "Last &raquo;";      echo "
\n";  } }   Search Results Template      <?php     $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;     $search_query = array(         'posts_per_page' => '10',         'paged' => $paged,         );     $wp_query = new WP_Query($search_query);      if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

                 <?php the_post_thumbnail(); ?>

<?php the_title();?>

                 <?php the_excerpt(); ?>

         <a title="Student Awards" href="<?php the_permalink();?>">Read More
<?php edit_post_link('Edit'); ?> <?php endwhile; ?><?php else : ?>
Sorry, nothing came back matching what you searched. Try again?
 <?php endif; ?>       <?php pagination(); ?>   Any suggestions?


Can't pass multiple arguments to SQL statement into wildcard

I have this fragment of code  final List<Account> result = this.jdbcTemplate.query(LIST_OF_ACCOUNT_SQL, new String[]{ids},  When I pass only one argument like         final String ids= "3213";  Code is working fine. But I have problem passing multiple arguments to my wildcard final String ids= "3213, 2313";  This is my SQL "SELECT ID, NAME FROM ACCOUNT WHERE STATUS = 'OK' AND ID IN (?) ";  I am using Oracle Database.


A group $G$ with a subgroup $H$ of index $n$ has a normal subgroup $K\subset H$ whose index in $G$ divides $n!$

I would be very thankful if someone could give me a hint with proving this. It's a very common exercise in abstract algebra textbooks.     If $G$ is a group with a subgroup $H$ of finite index $n$, then $G$ has a normal subgroup $K$ contained in $H$ whose index in $G$ is finite and divides $n!$.   I found the proof on  at some point (although the proof appears to be no longer there), but I got lost in one of the details.


So I'm trying to make a simple program, for the first JOptionPane Input its asking for the username, then I made an If statement that will print the word "admin" if the String that is attached to the username Input is "admin" However, It's not working and the else statement is executing every time. What am I doing wrong? import java.util.Scanner; import javax.swing.JOptionPane;  public class Shipping {      public static void main(String args[]) {         String user;         user = JOptionPane.showInputDialog ("Please enter your username ");         String pass;         pass = JOptionPane.showInputDialog ("Please enter your password ");         if (user == "admin")             System.out.println ("admin");         else             System.out.println("test");     } }


Should one say "0.1 degree Celsius" or "0.1 degrees Celsius"?

The value isn't exactly 1, it's a fraction. But 1 is the only number in the fraction. Should the word degree be singular or plural?


Stop gmail + terminal from pasting rich text

Since some recent update, when copying stuff from Terminal into Gmail compose window, it's pasted as formatted text, retaining all my terminal colors and fonts.     How to stop them (Chrome, Gmail, Terminal or whoever is to blame) doing that? This is really annoying.


If the definite integral from $x_1$ to $x_2$ for any $[x_1, x_2]$ of $f$ is $0$, then why is it that $f(x) = 0$ for all $x$?

Suppose $f = f(x,t)$. Suppose $f$ is continuous $\forall x, t \in \mathbb{R}$. Then suppose $$ \int_{x_1}^{x_2} f(x, t) dx = 0 \hspace{1cm} \forall x_1, x_2 \in \mathbb{R}. $$ Why is it that $ f(x, t) = 0$ for arbitrary $x$?


Are normal spell components consumed by the spell?

I was reading through the basic rules and noticed that the only time spell components were explicitly stated as being consumed was when they had a gp value attached to them. For example:     Arcane Lock   Components: V, S, M (gold dust worth at least 25 gp, which the spell consumes)   versus     Arcane Eye   Components: V, S, M (a bit of bat fur)    Does this mean that cheap spell components are not consumed when a spell is cast?


Is there a way to connect Azure to AWS with Site-to-site VPN ?  All guides and resources I have found in internet so far are using a VM that runs ipsec software (openswan/strongswan/RRAS), but I would like to explore native options first as that seem more elegant.  Note: "" may be seen as a duplicate, but I don't feel there is a satisfactory answer there. I could not get connection working using suggestions in that thread.


Dash-to-Dock: How to remove these black stripes?

When I maximize the window, these black bars appear, how to remove them? or How reset dash config?  Ubuntu 18.10, I did edit it's with  extension.


Why was I able to vote to close my own question (having 909 reputation only)?

I was able to succesfully vote to close , when I had just 909 rep.    I believed I need 3000 to cast close votes? Is this some kind of a feature or was it a bug?


Comparing an argument to a string when argument is a result of a command with etoolbox

I've got an example like that:  \documentclass{article}  \usepackage{etoolbox}  \newcommand{\ab}{a}  \newcommand{\aORb}[1]{%         \ifstrequal{#1}{a}{"a" was given}{not a}, %         \ifstrequal{#1}{b}{"b" was given}{not b}% }  \begin{document}  begin       \aORb{\ab{}}   end \end{document}   And the output of that code is:  begin not a, not b end   However, if I put simply "a" or "b" as an argument to \aORb instead of \ab{} then it works fine.  Is there another command in etoolbox package that will allow me to do such a comparison correctly?


Altium - create a mirror image of a board

I want to create an identical motor drive board in the right and left sides.  I just finished layout for the right side and I am wondering what is the easiest way to create the mirror image of this board for the left side?  For example: the connectors on the "top" side would now be on the bottom of the other board.  All components and tracks will also switch sides, layer stack will be inverted, etc.  Is there any command sequence in Altium that will do this without me having to manually re-assign everything to the other layer?


My character was lvl 19 on my account and yesterday when I tapped on the app, it brought me back to the original screen when you first start playing. I signed in which the same google account. Now every time I log in it's starts with the lvl 1 character. What can I do? How can i continue whit my lvl19 account...?


Confusion about testing hypothesis for tossing 2 coins

Suppose two coins $C_1$ and $C_2$ are tossed and suppose further that $C_1$ was tossed $40$ times and $C_2$ only $20$ times. The outcome for $C_1$ is $8$ times heads and $32$ times tails. For $C_2$ we have once head and $19$ times tails. My question is, what test do I use in order to try to show that the probabilities for having heads are significantly different for $C_1$ and $C_2$?  In addition I'd be interested if anyone could explain the following confusion to me. If I estimate the probability for heads of $C_1$ by $p_1=1/5$ then the probability of the outcome of $C_2$ under the hypothesis that the probability is $1/5$ as well equals $$ \binom{20}{1}\frac{1}{5}\left(\frac{4}{5}\right)^{19}\approx 5.7\% $$ which is not significant (I would like to have a significance level of $<5\%$). On the other hand If I reverse the situation I obtain for the probability of the outcome of $C_1$ assuming a probability for heads of $p_2=1/20$ $$ \binom{40}{8}\frac{1}{20^8}\left(\frac{19}{20}\right)^{32}\approx 0.06\% $$ which is by far smaller than $5\%$. So one test tells me the probabilities are significantly different, while the other doesn't (this is the source of confusion) but in fact I would just like to know how I can tell that $p_1\ne p_2$ significantly.


Setspace consistency along varying font sizes

Is there a way to get \setspace to work for the font size specified? In my MWE below you can see that when I use tiny the double spacing is the same as it would be for the default font. However, I want the double spacing to be tiny double spacing, not normalsize double spacing   \documentclass{article}  \usepackage{setspace} \usepackage{blindtext}  \begin{document} \setstretch{2}      \blindtext[1]      \begin{tiny}         \blindtext[2]     \end{tiny}  \end{document}