I might end up teaching philosophy in Finnish lukio/gymnasium. I will not get an opportunity to practice teaching it - I do get to practice teaching mathematics a fair deal, though. (The situation is somewhat unfortunate.) I have taken subject studies in philosophy at university. They amount to around 60 credits (ECTS).  Suppose I give the students an exam, which asks them to write an essay or two. After that my task is to grade the exams in a fair way and comment them in such a way that the students can learn from the feedback.  -  Suppose the task was to write an essay on the problem of universals - nominalism and realism, say. Let us say 6 points is the perfect score for this task.  I would expect the students to define nominalism and realism (2 points, maybe?) and explain the problem (2 points). Remaining two points for taking some stance and arguing for it - realism is more reasonable because so and so. Partial credits for demonstrating only partial understanding.  -  Am I missing some important aspects of philosophical thinking? Should I emphasize the different parts of an answer in a different way? I suspect my perspective is influenced by fairly extensive mathematics education - is there something particular I should watch out for?


Nikon macro lens for portrait photography?

Many photographers use macro lenses for taking portraits. For example Canon's 100 L Macro is one of their sharpest lenses.  But I use Nikon and don't know much about their macro lenses so was wondering what is the sharpest Nikon macro lens, and are macro lenses really suitable for portraiture?


hp pavillion dv6 on win8 stuck in black screen while installing 14.04 ubuntu

Hp pavilion dv6 on win8  I was installing Ubuntu 14.04 using my external hard disk as a USB flash drive. My CPU is a 32 bit laptop. Its not progressing past a black screen with cursor on left top.


I have attached the problem together with the solution I have with me. I am facing problem deciding status of 2 BJT's. Please give me a generalised approach to tackle such problems.


Countable set of finite sets is countable (without the axiom of choice).

So i have the infinite family of sets: $$\{A_0, A_1, A_2 \dots\}$$ and $\forall i \in \omega,\; A_i$ is finite. I need to show that $\cup A_i$ is countable  ($\exists f: \cup A_i \rightarrow \omega $ and f is bijection). I seem to understand it intuitively, but I can't prove it. I also don't have to use the axiom of choice. Any tips ?


What are the differences between pictures shot with spherical and aspherical lenses?

I read about some differences between spherical and aspherical lenses. Mostly about geometry though. I was wondering what is the difference on the pictures.   How are the pictures of an aspherical lens different? I see some lenses being advertised as aspherical (). However the specs of other lenses do not specify if they are spherical or aspherical. For instance the . Why is that? Is the latter spherical?


This is the Grandi's series: $1-1+1-1+1-1+\dots$  The series can be equal to $0$   $$(1-1)+(1-1)+(1-1)+\dots=0+0+0+\dots=0,$$  or to $1$   $$1-(1-1)-(1-1)-(1-1)-\dots=1-0-0-0\dots=1,$$  or to $1/2$   $$S=1-1+1-1+1-\dots,\quad\quad    S=1-(1-1+1-1+1-1+1-...)$$ $$\Rightarrow   S=1-S\Rightarrow     2S=1\Rightarrow    S=1/2$$  Isn't this a contradiction? The integers are closed under addition and subtraction, but we get a fraction. Why?


How to use resources in C# Visual Studio?

I write C# Windows form in Visual Studio.  In code of application I load image from local maschin using absolute path:  string path = "C:\imag.png"   Ater I load this in pictureBox.  Problem is that when I compile program and run on another computer I get errors, because there are not files, that should be loaded.  How can I use resources in VS or compress images in exe file?


How to let players roll perception checks without suspicion?

I am a new GM playing Pathfinder. I am curious about perception. How can I have the players roll for perception without making them really suspicious? For example, if a trap is in the middle of a room and they fail to perceive it, then they know something is up and probably would be super careful, even though they really didn't notice the trap. Thanks in advance!


Is it possible to send invites from a non-Gmail address?

I'm relatively new to Google Calendar / Gmail. I've used it mainly for private mails/events. Since a couple of weeks I also added other emails to my Gmail account like my work email. This is great as I can manage all of my mail conversations from Gmail.  Now I'm wondering about the following. The web didn't get me any conclusive answer. I have multiple calendars on Google Calendar, e.g. Work and Private.  If I add an event to Work and would like to add guest getting invited is it possible to send the invite from my work email added to gmail which is a NON Google address?  I can write emails from my work and sending through Gmail so I was wondering if I could also send invites from a calendar event using it. This would be great as I would prefer clients to see my work email and not my private one.


How does lifelink affect indestructible creatures?

My 4/4 lifelink creature is blocked by his 1/1 indestructible creature. How much life do I gain, if any?


I've got this pretty simple HTML page with a jQuery datepicker:      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>     <title>jQuery Datepicker</title>     <link rel="stylesheet" href="../App_Themes/Default/ui.datepicker.css" type="text/css"         media="screen" title="Smoothness" />      <script src="../Shared/Scripts/jquery-1.2.6.min.js" type="text/javascript"></script>      <script src="../Shared/Scripts/jquery-ui-1.5.3.min.js" type="text/javascript"></script>      <script language="javascript" type="text/javascript">         $(document).ready(PageLoad);          function PageLoad() {             $('#textBox').datepicker();         }     </script>  </head> <body>     <input type="text" id="textBox" /> </body> </html>   The datepicker itself seems to work perfectly but I can't apply my theme. Am I missing something really stupid here?  Thanks !!!!


LWC Navigation: "this[f.NavigationMixin.Navigate] is not a function"

When attempting to use the Lightning navigation service in my component's base class (.js), I get the following error when functionally testing in the UI:  this[f.NavigationMixin.Navigate] is not a function  I am calling the NavigationMixin function provided by the lightning/navigation module. I have imported the module: import { NavigationMixin } from 'lightning/navigation';  And am calling the function as below: this[NavigationMixin.Navigate]({     type: 'standard__recordPage',     attributes: {         recordId: this.org.Id,         objectApiName: 'Account',         actionName: 'view'     } });


take Application.exe in another folder,does not launch

I am new to .net application development. I have made small application. If I take only one application.exe file to another folder from my project file and try to launch, it does not launch. But If I take all .dlls and config file with it, it launces fine. Now I want to launch Applicaiton with only .exe file. So what should I do? Do I have to package them all in one? If yes, then how?


Why does Java's hashCode() in String use 31 as a multiplier?

Per the Java documentation, the  for a String object is computed as:   s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]       using int arithmetic, where s[i] is the    ith character of the string, n is the length of    the string, and ^ indicates exponentiation.   Why is 31 used as a multiplier?  I understand that the multiplier should be a relatively large prime number. So why not 29, or 37, or even 97?


Alter a Views query to use "OR" through the user interface

I have a view with a few different displays, each of them with slightly overridden filters, like this one used in a panel.  How do you add this pseudocode via the UI?  AND (node.type='story' OR node.comment_count >=1)   I found an article (), but I still don't know what to do.  What does the following code do, and what is "advf_filter"?  if ($view->name == 'YOURVIEW') {   $view->query->add_where('advf_filter',"(node.type='%s' OR node_comment_statistics.comment_count >= %d)",'forum',1);   $view->query->set_group_operator('AND'); }


Does C++ pass objects by value or reference?

A simple question for which I couldn't find the answer here.  What I understand is that while passing an argument to a function during call, e.g.  void myFunction(type myVariable) { }  void main() {     myFunction(myVariable); }   For simple datatypes like int, float, etc. the function is called by value.  But if myVariable is an array, only the starting address is passed (even though our function is a call by value function).  If myVariable is an object, also only the address of the object is passed rather than creating a copy and passing it.  So back to the question. Does C++ pass a object by reference or value?


Handle Facebook Connect and regular registration form (merge account)

I have a web application that is offering registration through a regular registration form (email, password) and facebook connect.  I'm facing a problem that I'm sure lot of other are facing. I'm ending up with duplicated account for the "same" user (using different emails).  case of study:    User register with regular login form using aaa@email.com       -> A new account is created User left the site (and logout - session expires) User come back and user Facebook Connect, the email linked is bbb@email.com    -> A new account is created User logout User logback in using regular form and aaa@email.com User go to profile and click "Link my Facebook Account"   -> Facebook information are returned and an existing account with bbb@email.com is detected.    How to handle this?


How can we depend on the mathematical axioms that break down at the nano-level?

Mathematics "makes sense" at our scope of view. For example, gravity seems to obey the fact that it accelerates at a rate of 9.8 meters a second^2. However, when an object drops, the force of gravity is too weak to overcome the electrostatic force - so it never reaches 0.   Could we say then, we "discover physics"? We describe certain equations for the physical phenomena that is happening? Couloub discovered his equations that led to the above conclusion.  Also, why don't we see a bright sky at "night"? Because of physics (universe expansion, etc).  My question is, how can we depend on mathematics 100% in physics if it leads to obstacles like these? Instead, if we took it with a large grain of salt, it could work.


Proving that $a \mathbb{Z} \cap b\mathbb{Z} = \operatorname{lcm}(a,b)\mathbb Z$

Given $m \in \mathbb{Z}$, let $m\mathbb{Z}$ denote the set of integer multiples of $m$, i.e. $m\mathbb{Z} := \{mk\mid k \in \mathbb{Z}\}$.   Now let $a,b \in \mathbb{Z}$ with $a,b$ not both $0$. Prove that $a\mathbb{Z} \cap b\mathbb{Z} = \operatorname{lcm}(a,b)\mathbb{Z}$.   I am trying to write a proof for this, but I am unsure of what method to use. Also I am confused by $mk\mid k$, because wouldn't $m=1$ for this to be true.


If you can slow down the speed of a photon, how does it speed back up to the speed of light once the slowing down is disabled?


Asana Math + XeLaTeX: missing math upon resaving or editing in Adobe Acrobat Pro

Related to this question:   I experienced similar problems with a PDF produced by XeLaTeX (v0.9998) with MiKTeX 2.9 and Adobe Acrobat Pro IX or XI:  The PDF produced by XeLaTeX and opened in Adobe Acrobat looks good and all fonts are embedded including Asana Math. However, after saving with another name or after editing (for example, extracting pages), a lot of Asana Math is replaced by questionmark symbols.   The only solution that worked so far is replacing Asana Math by XITS Math.   PS. I was not sure to post this as a new question or an answer to the question mentioned above. It was assumed in  that this is a bug in Adobe. If so, the issue has not been solved, even when using the newest versions of Adobe Acrobat, MiKTeX and XeLaTeX.


1.) Money is all that I need. 2.) Money is all what I need.   Which one is right? or which one have you not ever seen? and is there any difference between them?  But, what about the following?   If we consider the word "all" as an adverb, not as a noun, what would you like to say?   (In addition: I am wondering the reason why my question is labeled as an answered question, because if you look at it you will notice that they are not the same at all.)


How do I load the contents of a text file into a javascript variable?

I have a text file in the root of my web app  and I'd like to load it into a variable in javascript.. in groovy I would do this:  def fileContents = 'http://localhost/foo.txt'.toURL().text; println fileContents;   How can I get a similar result in javascript?


The cloth looks funky. I don't know how to fix that. Help! The more I subdivide the plane, the more I lag so Thats not an option here.


Proof that if $a > 0$, then $\frac{1}{a} > 0$ using just field and order axioms

This is my attempt to prove that, if $a > 0$, then $\frac{1}{a} > 0$, using just field and order axioms.  $$a > 0 \implies a \cdot \left(\frac{1}{a}\right)^2 > 0 \cdot \left(\frac{1}{a}\right)^2 \implies a \cdot \left(\frac{1}{a}\right)^2 > 0 \implies a \cdot \left(\left(\frac{1}{a}\right) \cdot \left(\frac{1}{a}\right)\right) > 0$$  By associativity of multiplication:  $$\left(a \cdot \left(\frac{1}{a}\right)\right) \cdot \left(\frac{1}{a}\right) > 0$$  We know that $a \cdot \left(\frac{1}{a}\right) = 1$, because one is the multiplication inverse of the other.   So we have:  $$1 \cdot \left(\frac{1}{a}\right) > 0 \implies \frac{1}{a} > 0 $$  Which is what we wanted to prove.   My question are:    In the field axioms, there's no axiom that says that $0$ times another number is $0$, but I have used this property. How would you translate it to field and order axioms? I have assumed that $\left(\frac{1}{a}\right)^2$ is positive, have you noticed? Note that I need a positive number in order not to change the $>$ sign. But this is not present in the field or order axioms. How would you explain this?


I have recently dual booted to ubuntu 13.10 with windows 8. I have windows 8 before having ubuntu, I had to do a boot-repair so I can choose which to load, it all went fine, no problem.  But then again I decided to upgrade to windows 8.1, I thought I can just install it, then just use a live usb, to do a boot-repair again, but it gave me this error   Kernel panic - not syncing: VFS: Unable to mount root (0,0)   What should I do?


How I can remove word "Archives" in head title in category page? I'm using the Twenty Twelve theme and WordPress 4.   <head> <title>"name of category" Archives  | "name of sites"</title> </head>


Conditional expectation, show two random variables are equal almost surely.

$ \newcommand{ \F }{ \mathcal{F} } \newcommand{ \prob }{ \mathbb{P} } \newcommand{ \G }{ \mathcal{G} } \newcommand{ \L }{ \mathcal{L} } \newcommand{ \exp }[1]{ \mathbb{E}\left[ #1 \right] } \newcommand{ \ind }[1]{ 1_{ #1 } } $     $\exp{X|Y}=Y \text{ almost surely}$ and $\exp{Y|X}=X \text{ almost surely}.$       Show that $P(X=Y)=1$.   Attempt  I know that if $X \in \L^1(\Omega, \F,\prob)$, $\G \subset \F$ then there exists $Y$ that is (i) $\G$ measurable, (ii) $\exp{|Y|} < \infty $ (iii) $\exp{ Y \ind{ F} }= \exp{ X \ind{G } } $ for all $G \in \G$.  \begin{align} P(X=Y)=1 &\Leftrightarrow P(X \neq Y ) = 0 \\ &\Leftrightarrow P( \{X<Y\}\cup\{Y<X \}) =0\\ &\Leftrightarrow P(X<Y) + P(X>Y) =0 \\ &\Leftrightarrow P(X<Y) = P(X>Y) =0 \\ \end{align}  I am not sure where to go from here.


Change views exposed filter value only on page reload

Is there a clean way to alter a View exposed filter field, but only on page reload and not each time you submit the exposed filters form ?    Example  I have a View with exposed filters. When a user is loading this View, I want to change the value of an exposed filter field, depending on a cookie value.  I've managed to make it work with the hook_form_views_exposed_form_alter function.  function HOOK_form_views_exposed_form_alter(&$form, FormStateInterface $form_state, $form_id) {     if ($form['#id'] == 'views-exposed-form-MY-VIEW') {         $cookies = \Drupal::request()->cookies->all();         if (isset($cookies['MY_COOKIE'])) {             $form['MY_FIELD']['#value'] = $cookies['MY_COOKIE'];         }     } }   Problem is : if the user manually change the exposed filter and submit the form, the value is getting back to the first one because the hook_form_alter is getting called again.  Here is a video :     Poor solution  I've found a solution, but it doesn't looks like a good one. I've found out that when the hook_form_alter is getting called by a submit, there is a new entry ('a' => '') in the UserInput array that you can find by calling $form_state->getUserInput().  First load :  [     'MY_FIELD' => 'All',     '...' => '...' ]   After submit :  [     'MY_FIELD' => 'New value',     'a' => '',     '...' => '...' ]   So now I can use the following to change the field value only on the page load :  if (isset($cookies['MY_COOKIE']) && !array_key_exists('a', $form_state->getUserInput())) {     $form['MY_FIELD']['#value'] = $cookies['MY_COOKIE']; }   But I'm not even sure it is fully functional, is there a better way to do it ?    Clean solution  Thank's to @NoSssweat, here's a cleaner solution :  function MODULE_views_pre_build(ViewExecutable $view) {     $request = \Drupal::request();     $is_ajax = $request->isXmlHttpRequest();     if (!$is_ajax) {         $cookies = \Drupal::request()->cookies->all();         if (isset($cookies['MY_COOKIE'])) {             $view->setExposedInput(['MY_FIELD' => [$cookies['MY_COOKIE'] => $cookies['MY_COOKIE']]]);         }     } }


I use _ character often in text mode, so I changed category of underscore: \catcode\_=12, but that applies also to mathmode and now I'm unable to make subscripts with underscore in mathmode. Is there a way to make latex interpret underscore in text mode as the underscore character, and in mathmode as subscript?


Does class that is being called from Process Builder also runs in system Mode?

I am having global class "with sharing" and invocable method in that, I am aware that Process Builder runs in system mode, however I am having confusion around the class which is getting called from Process builder will also run in system mode?  The reason I am asking this is because, security scanner suggested me to add CRUD checks in this class, however I want to run all logic in system context, so I am thinking to make it as false positive(I will be updating it to without sharing) Please advise.


Eigen-Decomposition of Householder operator

Define the eigen decomposition of householder operator $H=I-2ww^*$ where $\vert\!\vert w\vert\!\vert=1$, geometrically! I know that the eigen-values are $[-1, 1 \dots 1]$ but I cannot understand about the eigen-vectors and in particular I cannot depict the solution, geometrically! Can anybody possibly help me to understand it through drawing a geometrical interpretation? Thanks alot


Due to the rain the children didn't go out an play

Should it be:     Due to the rain the children didn't go out and play.   Or     Due to the rain, the children didn't go out and play.   This question has come up before, but I can't find an answer that includes an explanation of introductions saying why. I don't know what sort of phrase it is.  I think the latter.


Completeness of $\langle \mathscr{C} [0, 1], \| \cdot \|_1 \rangle$

That's really embarrassing, however I need to ask it. I could not prove that the normed space    $\langle \mathscr{C} [0, 1], \| \cdot \|_1 \rangle $ is complete (as a metric space), where $\| f\|_1 = \int_0^1 |f(x)|dx$. I don't really know how to explicit a continuous functions as a limit of a Cauchy sequence. I tried to prove that the pointwise limit (of the Cauchy sequence) have just a finite number of discontinuities (I don't know if it's true) and then approximate it by a continuous function.  Thanks in advance.


Is it possible to block all porn, chat sites, and adult content web pages on a Samsung Galaxy Ace 2? And is it possible to hide the fact that they are being blocked?


Does anybody know how can I make a table like this?

I am writing my final degree but I can´t find on the web something that could help me. I would like to do a table like this. I tried to use \multirow{}{}


As an administrator, how can remove a users rights to use SUDO. Is there a simple command to do this?


Visualising the sum of the first $n$ positive odd integers

Using the fact that $1+2+\cdots+n=\frac{n(n+1)}{2}$, we can deduce that sum of first $n$ positive odd integers is $n^2$. However, is there a way of finding the sum of $1+3+5+\cdots+(2n-1)$ visually?


I am under the impression that to review frrom mobile one can only go to the full site theme and review from it. Am I right? If so, is there any reason why there is no way of doing this from the app or mobile site? And if I'm wrong and there is such a way, which is it?


Fitting an infinite collection of balls in an infinite dimensional unit ball

Given an infinite dimensional normed linear space, how would one show that it is possible to fit an infinite collection of non-overlapping balls of radius $\frac{1}{4}$ in the unit ball?  I guess one can immediately reduce the problem to a normed linear space of countably infinite dimensions. The solution seems clear if the concept of orthogonality exists, but not every normed linear space has an inner product so it's not possible to apply something like Gram-Schmidt to produce an orthogonal basis. Is there any way around this, or there another approach that can be used?


Let $0<a<b<\infty$ be real numbers and define the sequence $x_1=a$, $x_2=b$,  $x_{n+1} = \sqrt{x_n x_{n-1}}$. Find the limit of $(x_n)_{n=1}^\infty$. So I have proved that the sequence is a contraction  and that $\lim_{n\rightarrow \infty} (x_{2n+2}-x_{2n+1})=0$. Therefore the sequence converges to some number $x$ in the interval $(a,b)$. Numerically, I have found that the limit is actually $x=(ab^2)^{1/3}$, but I'm stuck in actually proving this result analytically. A hint will be the selected answer.


How nested interface in a class behave like?

For below code,  interface SuperInterface{     void f();     interface StaticNestedInterface{         } }  class Sub implements SuperInterface{     public void f(){      } }  public class Dummy {      public static void main(String[] args) {         Sub x  = new Sub();     }  }   Compiler does not ask class Sub to implement interface StaticNestedInterface.  Is class Sub a valid java code?


Is the Android SE app transmission encrypted?

I’d like to know the transmission of SE  Android app is encrypted or not with https. Please make me confirm.


Given the polynomial $f = X^4 - 6X^3 + 13X^2 + aX + b$ you have to find the values of $a$ and $b$ such that $f$ has two double roots.  I went about this by writing the polynomial as: $$f = X^4 - 6X^3 + 13X^2 + aX + b = (X - r)^2(X - s)^2$$  ... and from there I arrived at a system of four equations from where I could find the desired values. However, there's quite a bit of work to do it this way; is there a shortcut?


How can I run Drush 8 and Drush 9 together on same machine to test some module on it?

As in my earlier environment I was running Drush 6 and Drush 8 together.  I need help with the Drush 8 and Drush 9 installation. Is there any possible way to achieve it?  I tried to do porting command following , without success.  Any help would be appreciated.


Android HELP my if statement does not work

Hi I am making a logo quiz game and my if statement does not react to my input I made a textview and I pirnted out the input and it was yahoo (i entered yahoo in edit text and i declered if statement to check if it is yahoo)...  package com.example.logogame;  imports....  public class Yahoo extends Activity implements OnClickListener{  EditText et; Button check; TextView test;  @Override protected void onCreate(Bundle savedInstanceState) {     // TODO Auto-generated method stub     super.onCreate(savedInstanceState);     setContentView(R.layout.yahoo);      et = (EditText) findViewById(R.id.editTextAnswer);     check = (Button) findViewById(R.id.buttonCheck);     test = (TextView) findViewById(R.id.test);      check.setOnClickListener(this); }  @Override public void onClick(View v) {     // TODO Auto-generated method stub     switch(v.getId()){     case R.id.buttonCheck:          String content = et.getText().toString();          //its always wrong here...         if(content == "yahoo"){             Toast toast = Toast.makeText(this, "Correct! Good work", Toast.LENGTH_SHORT);             toast.setGravity(Gravity.CENTER, 0, 0);             toast.show();         }else{             test.setText(content);             Toast toast = Toast.makeText(this, "Wrong...", Toast.LENGTH_SHORT);             toast.setGravity(Gravity.CENTER, 0, 0);             toast.show();         }          break;      } }


Linear transformation of random variables

We have to stochastic variables X and Y, and we define   $ \begin{pmatrix} \tilde{X} \\ \tilde{Y} \end{pmatrix}=\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} X \\ Y \end{pmatrix} $  for $a,b,c,d \in \mathbb{R}$, i.e. $\tilde{X}=aX+bY$ and $\tilde{Y}=cX+dY$. We know that both $X$ and Y, and $\tilde{X}$ and $\tilde{Y}$ are uncorrelated, and the distribution of (X,Y) has density $g(x,y)=f(x)f(y)$. Here $f$ is a density with respect to the lebesgue measure for a probability measure on $\mathbb{R}$, and f is continous and strict positive.      Furthermore, we say that the distribution of (X,Y) is invariant to orthogonal matrices $\begin{pmatrix} a & b \\ c & d \end{pmatrix} $ if $(X,Y)$ and $(\tilde{X},\tilde{Y})$, have equal distributions. In general, a matrix O is orthogonal if $OO^T=O^TO=I$, where I is the identity matrix.   Now I have to show that if the distribution of $(X,Y)$ is invariant to orthogonal transformations, then it holds that  $f(x)f(y)=f(0)f(\sqrt{x^2+y^2})$  for alle $x,y \in \mathbb{R}^2$.   Can anyone help me with this problem?


It is possible in Oracle 18c to rename the default sid (XE) in a custom SID? I tryed using Oracle Database Configuration Assistant but having not success. how can i possibly do? Thanks


How to convert string without delimiter to list in python

So I have string like this:  "UFFKTEWKW"   And I need to convert it to a list or tuple like this:  ("UFF", "KTE", "WKW")   So every 3 letters from the string goes to separate element of list or tuple.  I can't use split() here because string doesn't have any delimiters. I don't wanna make some dummy for cycle for it. And I think there should be simple solution for it.


I would like to add some fields to the ssh MOTD.  MOTD today:  Linux toker 2.6.31-22-generic-pae #69-Ubuntu SMP Wed Nov 24 09:04:58 UTC 2010 i686  To access official Ubuntu documentation, please visit: http://help.ubuntu.com/    System information as of Tue Jan 25 19:25:53 CET 2011    System load:  0.23                Processes:           139   Usage of /:   76.8% of 911.20GB   Users logged in:     1   Memory usage: 17%                 IP address for eth0: 192.168.1.102   Swap usage:   0%    Graph this data and manage this system at https://landscape.canonical.com/  38 packages can be updated. 38 updates are security updates.  No mail. Last login: Tue Jan 25 19:22:06 2011 from 192.168.1.106   I know that I could change this to a static message by pointing /etc/motd to something else than /var/run/motd but I do not want to loose the generated data that is presented today.  Is it possible to add the disk usage off two additional hard drives to the message that is generated by default? For example:  Linux toker 2.6.31-22-generic-pae #69-Ubuntu SMP Wed Nov 24 09:04:58 UTC 2010 i686  To access official Ubuntu documentation, please visit: http://help.ubuntu.com/    System information as of Tue Jan 25 19:25:53 CET 2011    System load:  0.23               Processes:           139   Memory usage: 17%                Users logged in:     1   Swap usage:   0%                 IP address for eth0: 192.168.1.102    Usage of /:            76.8% of 911.20GB   Usage of /media/hddb/:    8% of 1.8T   Usage of /media/hddc/:   16% of 1.8T    Graph this data and manage this system at https://landscape.canonical.com/  38 packages can be updated. 38 updates are security updates.  No mail. Last login: Tue Jan 25 19:22:06 2011 from 192.168.1.105


Figuring out when $(\frac{2}{p}) = 1$ for $p$ an odd prime

First I want to define the Legendre symbol $(\frac{a}{p})$.  $(\frac{a}{p}) = 1$ when a is a square mod p, and $(\frac{a}{p}) = -1$ otherwise.   I want to figure out when $(\frac{2}{p}) = 1, -1$. According to the answers, $(\frac{2}{p}) = 1$ for $p = 1, -1 (mod 8)$ and $(\frac{2}{p}) = -1$ for $p = 3, -3 (mod 8)$. What I can't figure out is how to get to the answer.   What I do know is that for any odd prime $p$, $p = 1, 3 (mod 4)$ and intuitively it seems that this is related to $mod 8$ somehow,  but I'm not sure how to make the connection.  Any help would be appreciated! (And apologies in advance for my horrible formatting here.)


Two websites with semi-similar keywords on same IP server / SEO affecting SERPS

Two websites have semi-similar (main) keywords   1 brand site /w keyword "Superman shoes" and 1 retail site named shoes.com   They both run on the same server/hosting, same SSL cert, comparable design, same NS, similar DNS data and same IP.   I understand from some blogs and rumours that this can confuse search engine like Google and Bing. And the keyword "shoes" in this instance is not been giving the SERP that one would expect for both sites. (The reason why search engines do is that some companies have tried to obtain both SERP 1, 2 and 3 listings with similar websites but different domains. In this case though it is legit.).  Now my question: what would one have to do to separate these two websites so they are treated as separate websites? (where changing what they stand for, or what they are is not possible)   One advice I got was: set-up a separate IP for the two websites. But is there more I should worry about and organize when I do this "separation"?  (the server software and NS I cannot change)  I appreciate your help / advice


I'm trying to use the url_rewrite system for php but, as i'm a rookie i have a conflict problem (i suppose) between rules.  I have these three htaccess rules. The first two are working, the last one not.   RewriteEngine On RewriteRule ^([^/]*)/([^/]*)\.html$ /site/product.php?cid=$1&n=$2 [L]  RewriteEngine On RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /site/product-detail.php?  cid=$1&pid=$2&n=$3 [L]   RewriteEngine On RewriteRule ^([^/]*)/([^/]*)\.html$ /site/news-full.php?id_news=$1&nw=$2 [L]   This is how the link is set on my php page:   <a href="<?php echo WEB_ROOT.$id_news."/".$name_news; ?>.html">   when i load the page, i don't have any data print on page. i tried to use also prefix but doesn't work  What can i do? Thanks


When deriving the formula for the area of a solid rotated about an axis, my textbook (Stewart calculus) uses portions of circular cones and integrates their lateral areas. I understand this process.  My question is why doesn't integrating the lateral areas of circular cylinders work as well. After all, we can use rectangles (and not trapezoids) to evaluate areas under curves, using cylinders as opposed to cone segments seems like the three dimensional equivalent.  I've been through both processes and I see why they don't give the same formula, but conceptually I don't understand why cylinders are wrong.  Thanks a lot


How to install latest stable dolphin file manager on Kubuntu via xdg-open(Discover)?

I am running latest Kubuntu 20.04 with dolphin file manager version 19.12.3. However the latest stable version is already available as 20.04.3  Therefore, I am wondering if the release cycle is different as officially I couldn't download it and latest available version is still locked to the older version of 19.12.3  I realised that i could possibly simply fetch the latest version from flatpak as well  However, I am interested to know why it was not available to download officially. Also, I would like to know the lifecycle of latest stable version of KDE packages to be released for Kubuntu/Ubuntu repository and when would it be available to download officially? Thank you


“There is the people” vs “there are the people”

So, we got in a discussion with a friend about it. The whole sentence he mention was:     There is the people with standards and the people who have fun.   By now we are pretty certain it should be there are but there's still some confusion here. On top of that, there are the lyrics of John Lennon's song Immagine:     Imagine there's no countries   So that confuses everything.


Number of well-ordering relations on a well-orderable infinite set $A$?

Given a well-orderable infinite set $A$, can we always say that the set $$\left\{R\subset A\times A:\langle A,R\rangle\, \text{is a well-ordering}\right\}$$ has cardinality $2^{|A|}$? How much Choice is required for the proof of this? I believe that where $A$ is countably infinite, we can proceed without any use of Choice. Is that correct?


I have a 3 month old Dell inspirion 15 3521 laptop with a core i3 CPU. I want to upgrade it to i5 or i7 whichever suits.   Is it possible to upgrade the CPU? Wat are the other parts can I upgrade?


I am making an invite system. I am using ajax to load a list of search results. When an li is clicked I push the user's id into an array and append a checkmark to the li to let them know they were added to the list.   The push is working but the splice is not. Also when the list is empty the submit button does not return to its disabled state and original styling.   Lastly, when I search again (re-calling the ajax) it removes the appended checkmark. Is there a way with javascript to store which user was click on and retain the appended checkmark when they search for another name?  (^ when i load the results with ajax i check if a person is invited or not in my db i could do it so if they are already invited a click would delete from table..if not on li click i insert with an ajax and setTimeout on success.. do you think that would be a bad practice?)  Below is my html && script  HTML

$usersname
     <input type='hidden' value='$otherUserID'>
   $(function(){      var inviteList = new Array();        $(document).on('click', '.inviteUser', function(){            var inviteUserID = $(this).children('input').val();            inviteList.push(inviteUserID)            $(this).children('span').append("
&#x2713;
");            if(inviteList.length > 0) {                document.getElementById('imcSubmitButton').disabled = false;               $('#imcSubmitButton').css({'opacity':'1'});            } else {                document.getElementById('imcSubmitButton').disabled = true;               $('#imcSubmitButton').css({'opacity':'0.25'});           }        });        $(document).on('click', '.remove', function() {            inviteList.splice($(this).index(), 1);            $(this).remove();        });  });


Handle a virus infection by Trojan-Spy.Win32.ZBot.a

Since a couple of days I have a prompt from my KIS 2016 saying that he found this Trojan in MEM. I try to clean and restart the PC, all goes well, but in a while this message appears again. I have tried to download the ZBotKiller from Kaspersky website but it does not find anything (maybe because my antivirus has already cleaned the object). My question is, how can I understand in which way it infects and background runs again? I logically wish to solve this problem from the source! Maybe I have an open port in my firewall? I am not a newbie and I have never had this kind of problem.  P.S. Computer performances are excellent and I do not notice anything strange in behavior (like ads, popups, etc.). My main concern regards sensible data stored in my PC.  P.P.S. I do not click on spam or phishing mails nor I have downloaded anything strange.


Why doesn't the potential energy of any object equal 0

Consider a particle on the ground. This particle is raised by a force of magnitude $mg$ to a height $h$ above the ground. At this point, the work done on the particle by the force is $mgh$, which is equal to the potential energy of the particle. But, during this period, the force of gravity also acts on the particle and is displaced by $h$, and so does a work of $-mgh$ on the particle. Shouldn't  the two cancel and no net work should be done on the particle?   If they don't cancel, then where did the energy that came from the work done by the force of gravity go?


What is the maximum number of pucture repairs an inner tube can take?

Any thoughts - my spare tube that I carry in my bag currently has a dozen or so patches on it, but still works fine. I'm tempted to keep going to see how many I can get on there until it get impossible to mend.  What is the most number of patches you reckon a tube can take ?  (And I know new inner tubes are only £5 or so, but a puncture repair costs about 10p if you buy the patches and glue in bulk, so "It's cheaper to buy a new one" is not necessarily true...)


How positron and electron annihilate forming photons?

Electron is a particle with momentum $p$ and it spins up. Positron is its antiparticle having momentum $-p$ and it spins down. "A positron is an electron travelling backwards in time" said by Feynman. Therefore how an electron and positron annihilate producing photons since total momentum is $p-p=0$. Therefore how they produce photon with momentum?


Math mode: Why \left and \right is considered bad?

A most respected moderator repeatedly advises against the automation of \left and \right in math mode. (Among others, .) There must be some good argument behind that. I am just curious, why?


Formatting an algorithm with a nice presentation

I was reading  and I think is really nice the format how they present the algorithms, how can I do this? what packages are needed and the styles.     Thanks in advance.


Error in playing a sound using ALSA inside LXC container

I am using host Ubuntu 16.0.4 system to run my lxc container. I uninstalled pulseaudio as I wanted to use ALSA directly.  After uninstalling pulseaudio from the host machine, I was able to play sounds using the command like one below(on host machine):  aplay /usr/share/sounds/alsa/Rear_Right.wav   Inside the lxc container, I have installed alsa libs and alsa utils. When I use the same command as above inside the container, I get the following errors:  ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:654: audio open error: No such file or directory   The sound devices inside container are:  bash-4.2# ls -al /dev/snd/* crw-rw---- 1 root   29 116,  5 Nov  1 17:21 /dev/snd/controlC0 crw-rw---- 1 root   29 116,  2 Nov  1 17:21 /dev/snd/controlC1 crw-rw---- 1 root   29 116, 10 Nov  1 17:21 /dev/snd/controlC2 crw-rw---- 1 root   29 116,  9 Nov  1 17:21 /dev/snd/hwC0D0 crw-rw---- 1 root   29 116, 13 Nov  1 17:21 /dev/snd/hwC2D0 crw-rw---- 1 root   29 116,  6 Nov  1 17:21 /dev/snd/pcmC0D3p crw-rw---- 1 root   29 116,  7 Nov  1 17:21 /dev/snd/pcmC0D7p crw-rw---- 1 root   29 116,  8 Nov  1 17:21 /dev/snd/pcmC0D8p crw-rw---- 1 root   29 116,  4 Nov  1 17:21 /dev/snd/pcmC1D0c crw-rw---- 1 root   29 116,  3 Nov  1 17:27 /dev/snd/pcmC1D0p crw-rw---- 1 root   29 116, 11 Nov  1 17:21 /dev/snd/pcmC2D3p crw-rw---- 1 root   29 116, 12 Nov  1 17:21 /dev/snd/pcmC2D7p crw-rw---- 1 root   29 116,  1 Nov  1 17:21 /dev/snd/seq crw-rw---- 1 root   29 116, 33 Nov  1 17:21 /dev/snd/timer  /dev/snd/by-id: total 0 drwxr-xr-x 2 root root  60 Nov  1 17:21 . drwxr-xr-x 4 root root 360 Nov  1 17:21 .. lrwxrwxrwx 1 root root  12 Nov  1 17:21 usb-126c_4.1_amplifier-00 -> ../controlC1  /dev/snd/by-path: total 0 drwxr-xr-x 2 root root 100 Nov  1 17:21 . drwxr-xr-x 4 root root 360 Nov  1 17:21 .. lrwxrwxrwx 1 root root  12 Nov  1 17:21 pci-0000:00:03.0 -> ../controlC0 lrwxrwxrwx 1 root root  12 Nov  1 17:21 pci-0000:00:14.0-usb-0:5:1.0 -> ../controlC1 lrwxrwxrwx 1 root root  12 Nov  1 17:21 pci-0000:01:00.1 -> ../controlC2


I'm running into a performance problem with a query that I can't seem to get my head around.  I pulled the query out of a cursor definition.  This query takes seconds to execute  SELECT A.JOBTYPE FROM PRODROUTEJOB A WHERE ((A.DATAAREAID=N'IW') AND ((A.CALCTIMEHOURS<>0) AND (A.JOBTYPE<>3))) AND EXISTS (SELECT 'X' FROM PRODROUTE B WHERE ((B.DATAAREAID=N'IW') AND (((((B.PRODID=A.PRODID) AND ((B.PROPERTYID=N'PR1526157') OR (B.PRODID=N'PR1526157'))) AND (B.OPRNUM=A.OPRNUM)) AND (B.OPRPRIORITY=A.OPRPRIORITY)) AND (B.OPRID=N'GRIJZEN'))) AND NOT EXISTS (SELECT 'X' FROM ADUSHOPFLOORROUTE C WHERE ((C.DATAAREAID=N'IW') AND ((((((C.WRKCTRID=A.WRKCTRID) AND (C.PRODID=B.PRODID)) AND (C.OPRID=B.OPRID)) AND (C.JOBTYPE=A.JOBTYPE)) AND (C.FROMDATE>{TS '1900-01-01 00:00:00.000'})) AND ((C.TODATE={TS '1900-01-01 00:00:00.000'})))))) GROUP BY A.JOBTYPE ORDER BY A.JOBTYPE   The actual execution plan looks like this.    Noticing the server wide setting was set to MaxDOP 1 I tried playing around with maxdop settings.  Adding OPTION (MAXDOP 0) to the query, or changing the server settings results in much better performance and this query plan.    However, the application in question (Dynamics AX) doesn't execute queries like this, it uses cursors.  The actual code captured is this.  declare @p1 int set @p1=189527589 declare @p3 int set @p3=16 declare @p4 int set @p4=1 declare @p5 int set @p5=2 exec sp_cursoropen @p1 output,N'SELECT A.JOBTYPE FROM PRODROUTEJOB A WHERE ((A.DATAAREAID=N''IW'') AND ((A.CALCTIMEHOURS<>0) AND (A.JOBTYPE<>3))) AND EXISTS (SELECT ''X'' FROM PRODROUTE B WHERE ((B.DATAAREAID=N''IW'') AND (((((B.PRODID=A.PRODID) AND ((B.PROPERTYID=N''PR1526157'') OR (B.PRODID=N''PR1526157''))) AND (B.OPRNUM=A.OPRNUM)) AND (B.OPRPRIORITY=A.OPRPRIORITY)) AND (B.OPRID=N''GRIJZEN''))) AND NOT EXISTS (SELECT ''X'' FROM ADUSHOPFLOORROUTE C WHERE ((C.DATAAREAID=N''IW'') AND ((((((C.WRKCTRID=A.WRKCTRID) AND (C.PRODID=B.PRODID)) AND (C.OPRID=B.OPRID)) AND (C.JOBTYPE=A.JOBTYPE)) AND (C.FROMDATE>{TS ''1900-01-01 00:00:00.000''})) AND ((C.TODATE={TS ''1900-01-01 00:00:00.000''})))))) GROUP BY A.JOBTYPE ORDER BY A.JOBTYPE ',@p3 output,@p4 output,@p5 output select @p1, @p3, @p4, @p5   resulting in this execution plan (and unfortunately the same multiple-second execution times).    I've tried several things such as dropping cached plans, adding options in the query inside the cursor definition, ... But none of them seem to get me a parallel plan.  I've also searched google for quite a bit looking for parallelism limitations of cursors but can't seem to find any limitations.  Am I missing something obvious here?  The actual SQL build is SQL Server 2008 (SP1) - 10.0.2573.0 (X64) which i realise is unsupported, but I cannot upgrade this instance as I see fit. I would need to transfer the database to another server and that would mean pulling a fairly large uncompressed backup over a slow WAN.  Trace flag 4199 doesn't make a difference, and neither does OPTION (RECOMPILE).  The cursor properties are:   API | Fast_Forward | Read Only | Global (0)


How to run a script when a specific flash-drive is mounted?

Is there a way to run a script when a particular USB device is mounted?  I keep my videos on a separate USB and would like to run a script that would mount the video folder on the USB device to the one in the home folder.


I have file   head file1 12 0  9 3  12 0  12 0  12 0  12 0  7 5    I want to convert the second column into row  head desired  12 0 9 3 12 0 12 0 12 0 7 5   Thanks


Formatting label expression with newline using Python parser?

I'm having trouble with syntax in 10.2.1, and have have tried just about everything.  With arcpy, I am attempting to access a label.expression of an ArcMap layer and modify it to:  lbl.expression = '[FIELDNAME] + "\n" + "taco"'   I can't get the "\n" part to force the rest of the expression to a new line.


Let $0<U_n<1$ be a sequence of decreasing numbers that converges to $0$. Let us consider $V_n$: $$V_n = \prod_{k=0}^{n} (1-U_k)$$  Since $V_n$ is decreasing and lower bounded by $0$, we can conclude that it converges as $n$ tends to $\infty$. Let us write this limit $V_\infty$. What would be a simple/minimal condition on $U_n$ to guarantee that $V_\infty > 0$ ?  For instance, I already know that, if $U_n$ is upper bounded by a geometric sequence with ratio $r<1$ and initial value $a<1$, then: $$ V_n \geq \prod_{k=0}^{n} (1-ar^n) = (a;r)_n,$$ with $(a;r)_n$ denoting the $q$-Pochhammer symbol. But I'm not even sure on the condition on $a$ and $r$ such that $(a;r)_\infty > 0$. It seems to me that it is always the case, but after some google search I've not found the information anywhere.


Error when installing OpenCV 3 - unable to locate package python3-opencv

julham@DESKTOP-JTEILQT:~$ sudo apt install python3-opencv Reading package lists... Done  Building dependency tree Reading state information... Done E: Unable to locate package python3-opencv


Configure R Studio to use Biber for APA on Beamer Slides (Biblatex + Biber + R Studio + MiKTeX)

I'm trying to generate with R Studio a beamer presentation that uses backend=biber option.  Here is my MWE:  \documentclass{beamer} \usepackage[american]{babel} \usepackage{csquotes} %apa requires biber \usepackage[style=apa, backend=biber]{biblatex} \DeclareLanguageMapping{american}{american-apa}  %create file in house \begin{filecontents}{refs.bib} @Article{fakecite,   author =   {ACME Inc.},   title =    {\LaTeX the Destroyer},   journaltitle = {JSS},   date =     {2014}}  @Manual{textbook,   author =  {Newman Newday},   title =   {Rock n Roll},   address = {Reading},   year =    {2001}}  \end{filecontents}  \bibliography{refs}  \begin{document}   \being{frame}      \frametitle{Captain America}     A fake citation \parencite{fakecite}.     See also \cite{textbook}.    \end{frame}    \begin{frame}     \printbibliography   \end{frame} \end{document}   The error message I am receiving is:  LaTeX Warning: File `refs.bib' already exists on the system.                Not generating it from this source.   The output that is displayed is two frames. The first frame only has the keywords to access bib citations in bold font. The second slide is blank.   I have MikTeX v2.9 x64 bit, R Studio 0.98.766, and biblatex-apa v6.5 installed.  So far, what I've done is:   Downloaded biber from , moved it into C:\Program Files\MiKTeX 2.9\miktex\bin\x64 , and ran "Refresh FNDB" in MiKTeX Settings (Admin) so that MiKTeX knows biber exists. I've used the following R Script to ensure the right directory is acted upon:  setwd("~/Presentation") Sys.setenv(TEXINPUTS=getwd(), BIBINPUTS=getwd(),BSTINPUTS=getwd()) Ran compile to pdf once. The error was then generated. Ran compile to pdf again. Same error. (bibtex's apacite normally required two runs.) Deleted refs.bib, bibexample.nav, bibexample.bbl, bibexample.bcf, bibexample.run, bibexample.snm, bibexample.syntax, & bibexample.toc. Then run compile to pdf again. Same error is generated. Read  . Noticed that in C:\Program Files\MiKTeX 2.9\tex\latex\biblatex-apa\apa.bbx the command causing errors in previous post was present ( \RequireBiber[3] ). I changed the command based on the responses left on that post to \RequireBiber[2] and then \RequireBiber[1] to no avail.  I've also tried to reproduce the following posts to no avail:  and     Any help would be appreciated.


Is there an entire function with bounded real part

Is there an entire not constant function with bounded real part?  I've seen a solution which involves the exponential and Liouville's theorem.  I wanted to see a more direct proof. If $f$ is an entire function and we have a continuously differentiable function $\gamma:[0,\infty)\rightarrow\mathbb C$ and we know that $\Im (f\circ\gamma)(t)\rightarrow\infty$ (for $t\rightarrow\infty$), can we construct an analogous curve for the real part?  I'm having trouble to get an intuition for how the real part of a holomorphic function looks like in relation to its imaginary part. The only thing I can visualize is that the gradient of the two are orthogonal, but I kind of struggle what that means for the potential of those two gradients, i.e. the real and imaginary part.


If $a_n = \sum\limits_{r=0}^n \binom{n}{r} b_r$, prove $(-1)^n b_n = \sum\limits_{s=0}^n \binom{n}{s} (-1)^s a_s$

Suppose that sequences of real numbers satisfy:  \begin{align*}   a_n &= \sum\limits_{r=0}^n \binom{n}{r} b_r \\ \end{align*}  Prove that:  \begin{align*}   (-1)^n b_n &= \sum\limits_{s=0}^n \binom{n}{s} (-1)^s a_s \\ \end{align*}  My work:  The $n=0$ case:  \begin{align*}   a_0 &= b_0 \\   b_0 &= a_0 \\ \end{align*}  Then $n=1$ case:  \begin{align*}   a_1 &= \binom{1}{0} b_0 + \binom{1}{1} b_1 = b_0 + b_1 \\   -b_1 &= \binom{1}{0} a_0 - \binom{1}{1} a_1 = a_0 - a_1 \\   b_1 &= a_1 - a_0 = b_0 + b_1 - a_0 = b_1 \\ \end{align*}  The inductive step:  \begin{align*}   (-1)^{n+1} b_{n+1} &= \sum\limits_{s=0}^{n+1} \binom{n+1}{s} (-1)^s a_s \\ \end{align*}  I'm not sure where to go from here. I tried substituting $a_s$ into that last equation and it didn't help. Any ideas?


I can't start any virtual machine in virtualbox.I get this error message every time when I try to start a virtual machine:   NS_ERROR_FAILURE (0x80004005) ConsoleWrap IConsole {872da645-4a9b-1727-bee2-5585105b9eed}   My pc is 10 years old. cpu: AMD Athlon x2 64 5200+. Gpu: Nvidia gt 710 2gb vram. 4 gb of ram. What's the problem? Please help!


How to avoid showering twice when cycling to and from work?

I'm at the stage where even a light cycle to/from work raises an appreciable sweat.   I shower when I get into work,  but I'm sweaty when I get home too. How do I avoid showering twice a day?


Pre-loading/refreshing the page in backend before showing on the browser

I wanted to know if there's a way to refresh/pre-load the CSS of a page before it shows on the browser to a user. Because sometimes we make crucial design changes to our website and the next time we open it the design shows all messed up, until the user refreshes the browser, which then puts the design in the intended positions.  So, what I want is to have a way to refresh a page before it completely loads, so that a user doesn't have to look at a messed up design and doesn't have to leave the site because of such a problem.  Please Help. Appreciated.


Sufficient statistics for Uniform $(-\theta,\theta)$

So, I know that $\max(-X_{(1)},X_{(n)})$ is a sufficient statistic for the parameter $\theta$. But can I also say that $(X_{(1)},X_{(n)})$ are jointly sufficient for the parameter $\theta$ ?  In other words, can a single parameter have jointly sufficient statistics?


What would become of the earth's orbit if half of the sun's mass were suddenly to disappear?

I shall assume that the sun is at rest, so before the half mass disappear, the orbit of earth is an ellipse.


Is it possible to turn off the trackpad low battery notification?

Generally speaking I like to change the battery once the battery is completely used up, but the system will kept notifying me once the percentage dropped below 20%. Is there a way to turn it off (or make the notification only comes up once it dropped below 5%)?


How can I detect if a gameObject has collided with two other specific objects at the same time?

How can I detect if a gameObject has collided with two other specific objects AT THE SAME TIME?  This is what I intend to do but it does not work:  void OnCollisionEnter (Collision col) {  if(col.gameObject.name == "object1" && "object2") {     Destroy(gameObject); } }   How can I correct this piece of code?


Cannot post a duplicate message on chat even after the first message is edited, chat eats up the second message

When you edit a message and repost the contents of  its first revision, the repost is eaten up by chat.  Steps to reproduce:   Join any chat room Post something. Let's say you post abcd Edit that to something else. For example, --- Try to post abcd again. The green (pending) message will show up, but when the response is received, it disappears (the server spits out {"id":null,"time":null} as the response)   This happens more often than you think. Many a time I post something, only to realize that I want to use the magic separator (---) to separate it from a previous block. So I up-arrow, Ctrl-X, and type ---, and then I repost the cut text. Which gets eaten up by the server -- making a small change to the repost fixes things.


I Can't find out how to format my usb stick. Have read some guides but can't find "Format Device" anywhere.  Anyone got the same problem? Or have a solution to my problem?  Greatful for all answers.  SOULUTION  Go to Dash and find the program Disk, open it and Right Click on de device you want to format. Or you can use GParted.


Firefox Display Issue in Menu Bar at the Top

Firefox doesn't display the "Stack Exchange Sites", "Recent Inbox Messages" and "Recent Achievements" popup buttons located in the menu bar at the top. The buttons are there - just invisible, though. Hovering over with the mouse will display the tool tips, and they work as expected.  This is Firefox 28 on Windows 7 SP1 (usually, I'm on Safari, and there is no issue).  How do I solve this issue?


How is undergraduate Indian percentage converted to US 4.0 GPA by graduate schools?

I am applying for Fall, 2015 in PhD programs (Computer science).   The admissions page of many universities I saw, demand an undergrad GPA of at least 3.0 and graduate GPA of at least 3.5  Now, I excelled in the two masters degrees I have (MBA, MS).  But I was an average student in undergrad. Average in India means that I scored around 68% in my undergrad years (I.T.)  If you ask me, I think this conversion thing is crazy. Many colleges in India grade/score very stringently, since the minimum percentage required to graduate is 50%. So, if I were an average student at an elite college in India, my CGPA/ Percentage would be 7.0 or 70%. Using this conversion table, my GPA on a 4 point scale would be 2.3.          In the US, however, you need a min. GPA of 2.75 to graduate. A GPA below 3 is considered to be a shocker, while a GPA between 3 and 3.5 would be considered below average. It'll never work; it's like comparing Apples with Oranges.  Am I missing something here? Any thoughts on how universities make this conversion?  Also, should I be using WES to ensure a "fair" reflection of my performance.


I'm creating a web page, when opened in iphone safari browser, a cookie will be created. I am also creating iOS application in which it has to read the cookie created by my web page in safari browser. Is it possible to read that cookie from my iOS application?


How to specify the entire sheet as range in Google Sheets?

The best workaround I have found so far is:  worksheet_name!$A$1:$YY   but ideally I would like to be able to simply write, e.g.:  worksheet_name!   So, does anyone know: is there a syntax for specifying a whole sheet as a range?


How to merge two or more rasters which overlap?

How to merge two or more rasters with values 0 and 1, where the value 1 does not overlap with other rasters. Finally, I want one raster file with pixel values 1 from all raster files as 1 and the rest 0.


Help me with differential equation of harmonic motion.

I asked this question before, but I don't quite understand it.  So the question is   A particle undergoes simple harmonic motion. Initially its displacement is 1 , velocity 1   and acceleration is -12. and find out displacement and acceleration when the velocity is   square root of 8.  Someone says that harmonic equation takes the form y(t)=Acos(Wt+@)    But, I can not solve this equation by taking derivative and putting in the values//  Someone help me plz


Get full match instead of capturing group

Say there is a string:  16 NIP 712-10-08-323 2020   I'd like to have a full match what comes after NIP until first character different from [0-9-]. So I'd like my full match be 712-10-08-323. I've come up with the following regex, but it matches NIP 712-10-08-323 instead of 712-10-08-323.


If someone asks for advice on something, and someone replies with a humorous story about what they did in a similar situation, it may get more upvotes than any other answer, not because it's good advice, but because other people were amused by it. This can lead to a false sense that this is the general consensus of what the appropriate action is, especially if the OP doesn't understand that the votes were for mere liking an answer rather than agreeing with it. I don't have a great idea on how to solve this. My only idea is having three options for each category, upvote for you agree it's a good answer, downvote for you think it's a bad answer, or "like" which doesn't mean you think it's a good or bad answer; you just were amused by it. This may over complicate the issue and create even more confusion, I am not sure. But I think it is a real issue I wanted to bring up.


How Can I Make HTML Elements Unhighlightable?

I'm trying to make it so certain text and images on an HTML page cannot be highlighted with the cursor, so it appears as if they're a part of the background.


Story about a crashed female human with POV switching between her and aliens

So a few years ago I read a young adult book about a female human who crash landed on a planet and meets some aliens who help get her somewhere, but I forget where. The aliens are described as being reptilian, and I think near the beginning a passing reference is made to one of the alien POV character's relatives regrowing a limb. The POV shifts between the human and the aliens, and they have to find ways to communicate across a language barrier. I think, but I'm not sure, that the human protagonist's name was Hannah, but I know the aliens thought it was funny because in their language, her name meant either "twig" or "little twig". I'm pretty sure that the world the story takes place in is heavily forested or thick swampland, or at least the part the human lands in. The atmosphere is breathable to the human protagonist. I'm pretty sure the story starts from the POV of the aliens, and that they are harvesting some sort of plant. I don't think they have a high tech society, I think it was more of a subsistence agriculture kind of thing. I'm pretty sure the aliens help get the human back with the use of a tool the human had, which may or may not have beeped when pointed in the direction of wherever the human was trying to get to. Sorry a lot of the details are so vague, I can't remember a lot of it.


Is there any way to get the path of a folder in macOS?

I can do Get Info on a file or folder but this gives the path of the containing folder not the target file or folder. Say I want to copy a full path into a file dialog; how can I do this?


Is there a way to match some Unicode range exactly. Let's use the  as an example: U+400 to U+52f  The whole range of chars could be printed (from bash or zsh) with:   $ echo -e $(printf '\\U%x' $(seq 0x400 0x52f)) ЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѠѡѢѣѤѥѦѧѨѩѪѫѬѭѮѯѰѱѲѳѴѵѶѷѸѹѺѻѼѽѾѿҀҁ҂҃҄҇ҊҋҌҍҎҏҐґҒғҔҕҖҗҘҙҚқҜҝҞҟҠҡҢңҤҥҦҧҨҩҪҫҬҭҮүҰұҲҳҴҵҶҷҸҹҺһҼҽҾҿӀӁӂӃӄӅӆӇӈӉӊӋӌӍӎӏӐӑӒӓӔӕӖӗӘәӚӛӜӝӞӟӠӡӢӣӤӥӦӧӨөӪӫӬӭӮӯӰӱӲӳӴӵӶӷӸӹӺӻӼӽӾӿԀԁԂԃԄԅԆԇԈԉԊԋԌԍԎԏԐԑԒԓԔԕԖԗԘԙԚԛԜԝԞԟԠԡԢԣԤԥԦԧԨԩԪԫԬԭԮԯ   $ a=$(zsh -c 'echo -e $(printf '\''\\U%x'\'' $(seq 0x400 0x52f))')     To filter some range of it, lets use 0x452 to 0x490, this is the expected output:  $ b=$(bash -c 'echo -e $(printf '\''\\U%x'\'' $(seq 0x452 0x490))') $ echo "$b" ђѓєѕіїјљњћќѝўџѠѡѢѣѤѥѦѧѨѩѪѫѬѭѮѯѰѱѲѳѴѵѶѷѸѹѺѻѼѽѾѿҀҁ҂҃҄҇ҊҋҌҍҎҏҐ $ echo "$b" | xxd 00000000: d192 d193 d194 d195 d196 d197 d198 d199  ................ 00000010: d19a d19b d19c d19d d19e d19f d1a0 d1a1  ................ 00000020: d1a2 d1a3 d1a4 d1a5 d1a6 d1a7 d1a8 d1a9  ................ 00000030: d1aa d1ab d1ac d1ad d1ae d1af d1b0 d1b1  ................ 00000040: d1b2 d1b3 d1b4 d1b5 d1b6 d1b7 d1b8 d1b9  ................ 00000050: d1ba d1bb d1bc d1bd d1be d1bf d280 d281  ................ 00000060: d282 d283 d284 d285 d286 d287 d288 d289  ................ 00000070: d28a d28b d28c d28d d28e d28f d290 0a    ...............     But it seems impossible to filter with sed. This doesn't work:  $ echo "$a" | sed 's/[^\x452-\x490]//g'   Nor this (the result match other characters (probably a collating issue)):  $ echo "$a" | sed $'s/[^\u452-\u490]//g' АБВГжзийклмнопрстуфхцчшщъыьэюяёђєѕіїјљњћќѝўџҋҍҏҐҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӐӒӔӝӟӡӣӥӧөӫӭӯӱӳӵӹԅԇԉԋԍԏ   Not even this (same collating issue):  $ echo "$a" | sed 's/[^ђ-Ґ]//g'   This work with awk:  $ echo "$a" | awk '{gsub(/[^ђ-Ґ]/,"")}1'   But the only way to use an hex range is to use shell to convert hex to an unicode character  $ echo "$a" | awk $'{gsub(/[^\u452-\u490]/,"")}1'   or (two solutions):  $ c=$(bash -c 'printf "\u452-\u490"')  $ echo "$a" | awk '{gsub(/[^'"$c"']/,"")}1' $ echo $a | awk -v ra="[^$c]" '{gsub(ra,"")}1'   Questions:   Is there a way to do this with sed? Could awk do it in hex numbers without a higher shell. If possible, what is exactly the range matched by the collating sequence that sed use with sed 's/[^ђ-Ґ]//g'.   P.S.: I know that could be done in perl, thanks.


javascript named function expressions - scope accessibility

I'm following  and I've found something I don't clearly understand. Following code defines a named function expression:  var ninja = function myNinja(){   console.log(myNinja); // function myNinja() {...} }; myNinja; // undefined   As I can see, in the current scope (suppose it's global), ninja is the variable that holds reference to the named function myNinja. ninja variable is accessible in the scope - that's clear, but myNinja is not accessible in the scope (but it's accessible inside its own function). How come?  If I define a function (not using a function expression, but function declaration):  function Cheese() {   console.log(Cheese); }   then it's accessible in the current scope. I know that this just works like that - but can someone explain why is that?


I want to define boolean function in my latex document but can't find the symbol I'm looking for. My function gets an input of A and renders a true or false value to it. I have added an image to make it clear. I am looking for the symbol L


How can I make the name of a website to appear in bibliography?

I am new at Latex, so Im sorry if I made things too complicated. I want to cite a website and @article probably isn't the best option for this, but here is what I tried:  @article{struers,   title={About Grinding and Polishing},   author={Struers - Ensuring Certainty},   isbn={},   url={https://www.struers.com/en/Knowledge/Grinding-and-polishing#},   year={2020}}  There wasn't a specific author mentioned in the website, but I want the name of the website to appear in references instead. Therefore I tried to put it as it was the author, but then it appears as this in the bibliography page: [2]  S. E. Certainty.  About grinding and polishing.  2020  while using: \bibliographystyle{abbrv}  So the question is, how can I make the websites name appear fully in references without messing up my other citations? Thank you :)


Why is this coin-flipping probability problem unsolved?

You play a game flipping a fair coin.  You may stop after any trial, at which point you are paid in dollars  the percentage of heads flipped.  So if on the first trial you flip a head, you should stop and earn \$100 because you have 100% heads.  If you flip a tail then a head, you could either stop and earn \$50, or continue on, hoping the ratio will exceed 1/2.  This second strategy is superior.  A paper by Medina and Zeilberger () says that it is an unsolved problem to determine if it is better to continue or stop after you have flipped 5 heads in 8 trials: accept \$62.50 or hope for more.  It is easy to simulate this problem and it is clear from even limited experimental data that it is better to continue (perhaps more than 70% chance you'll improve over \$62.50):    My question is basically: Why is this difficult to prove?  Presumably it is not that difficult to write out an expression for the expectation of exceeding 5/8 in terms of the cumulative binomial distribution.  (5 Dec 2013). A paper on this topic was just published:  Olle Häggström, Johan Wästlund. "Rigorous computer analysis of the Chow-Robbins game." (pre-journal ). The American Mathematical Monthly, Vol. 120, No. 10, December 2013. (). From the Abstract:     "In particular, we confirm that with 5 heads and 3 tails, stopping is optimal."


How to get all possible unique variants from all possible combinations


Can I download the Stack Exchange Android app for CyanogenMod without Google apps?

I'm one of those exceptions that deviates from the norm: I run CyanogenMod without any Google apps.   Is it possible to download the Stack Exchange Android app .apk directly?


Defining coordinate system for finding distance in meters

What should I do to find the distance between two very far points?  p1 = "POINT(6.2 61.1)" p2 = "POINT(6.1 61.0)"  select ST_Distance(   ST_Transform(ST_GeomFromWKT('$p1'), 'EPSG:4326', '$epsg'),   ST_Transform(ST_GeomFromWKT('$p2'), 'EPSG:4326', '$epsg') ) as distance   with EPSG:3857 this is 25550.25 but with EPSG:32632 I'm got 12382.11 and leaning on Google that's right.   I'm using GeoSpark library in my calculations.  Update: My range of longitude approximately from 20 to 190  Update 2: I can't use PostGIS, I'm using Hadoop and GeoSpark


how write in script bash: su - user, command, password, without ask me password?

i will create file sh (bash script)  #!/bin/bash su - username -c XXXXXXXX   xxxxxx= command  where i put my password?( but NOT ask me password in terminal..how?)


Passing type as a parameter in an api that takes a generic type

I can see many similar questions, but I can't find a solution covering this case:  I have the following code:  Service.AddQuery(T => new ServiceFactory.New()     .AddQueryType<Test>()     .Register(T)     .Create());   public class Test {     ... }   it's not my code and it can't be changed.  Since the system has a plugin architecture, I cannot know the Test type ahead of time, so I need to do something like:  RegisterService(Type MyQueryType) {     Service.AddQuery(T => new ServiceFactory.New())         .AddQueryType<MyQueryType>()         .Register(T)         .Create()); }   but I can't find how to make this work.  I tried to pass typeof, I tried to create an instance with Activator.CreateInstance, etc and I can't find how to make this happen.  How can this be done?    Edit:  This was flagged as a possible duplicate of , although the first line of my question said:     I can see many similar questions, but I can't find a solution covering this case   The answer in the other question is calling one method based on its name. Here the place to inject the type is in the middle of a chain (between AddQuery and Register) and I don't see how the method in that answer could work. But I'd be happy to be proven wrong.


Waveform issues with inverting amplifier

I'm trying to achieve a gain of exactly -1, however the output of this circuit isn't the expected waveform (correct gain, just wrong wave).   Is there an issue with the circuit?


How to check if a polynomial is cyclotomic?

If I have a fourth degree polynomial $P_4$, how do I show it is not cyclotomic? Just to be sure, in order for $P_4$ to be cyclotomic, does that mean it can only have roots of unity? So can I just check that $x-1, x^2-1,x^3-1,x^4-1$ doesn't divide $P_4$?


how to find capital letters in a string in python

I want to find the capital letters in a string at any position, I want that if a string consists of capital letters at any position in a string then against that string "1" should be print and if string does not containing any capital letter at any position then "0" should be print against that string. for this i write a python code but it does not work properly  file='C:/Python26/test.txt' f=open('letters.txt','w') pattern='[A-Z+]' with open(file, 'r') as rf:      for word in rf:         for i in word.split():             if word[0].isupper():               ## finding letters starting with uppercase letters                   f.write(word.strip("\n")+"\t"'1'"\n");             elif word.isupper():                ## finding string containing all capital letters                   f.write(word.strip("\n")+"\t"'1'"\n");             elif re.search(pattern, word):      ## finding string containing capital letter at any position                    f.write(word.strip("\n")+"\t"'1'"\n");             else:             f.write(word.strip("\n")+"\t"'0'"\n");     f.close()   my exemplary data is like this     Src     mAB                                                                                32DC32 P50 The activation fan .  NFKappaB  IL23RE cat .  but my out put is like this  Src 1     mAB 1                                                                                32DC32 1 P50 1 The 1 activation 0 fan 0 . 0       1 NFKappaB 1 IL23RE   0 cat      0 . Which produce wrong result. It does not cater the white space and gave the title "1" and because of this nelection the period (.) did not get any label neither of "0" nor of "1"


Assuming I have 2 standard vectors:  vector<int> a; vector<int> b;   Let's also say the both have around 30 elements.   How do I add the vector b to the end of vector a?   The dirty way would be iterating through b and adding each element via vector<int>::push_back(), though I wouldn't like to do that!


Is it possible to search for down voted questions?

I want to search for new downvoted questions to improve or flag them.   I tried in the searchbar: votes:-1 is:question   but votes:XX only works with positive numbers. I can't query for downvoted questions. Is there a work-around to this? If there's not, should this feature be added?


sudo: No protocol specified in Ubuntu 17.10

I updated to Ubuntu 17.10. Hardware is working perfect and the only issue I found is that I try to edit files with atom like this:  sudo atom ~/Downloads/my_text_file.txt   and I get   No protocol specified   Under 16.04 I didn't have that issue. What can be the problem?   Edit: I switched to xorg as suggested and the issue persists.


What are good resources to learn about GLM?

Generalized linear models (GLM's) are apparently widely used, but I'm having some trouble to find comprehensive but still simple resources to explain it to someone who is not a statistician but has a basic background on statistics.  Currently I have found the following references:   Wikipedia GLM article This book (I didn't have access to it yet):MCCULLAGH, Patrick; NELDER, John A. Generalized linear models. 2nd ed. London: Chapman & Hall/CRC, 1995. 511 p. This paper (very hermetical): McCullagh, Peter. "Generalized linear models." European Journal of Operational Research 16.3 (1984): 285-292.   Looking for websites, books or research papers.


Login loop with Xorg on Ubuntu 17.10, but Wayland works

I am using Ubuntu 17.10. I was using xorg session because some screen monitoring applications were not working in Wayland (e.g. Timedoctor taking blank screenshots).  Yesterday when I turned my computer on to log in (in Xorg), after I entered my password a black animation type screen appeared and the login screen came back. I tried again but it wasn't working.   On the default session I have no problem logging in. I have also tried to installed Unity, but with that I have the same problem as with Xorg.   I want to use Xorg session. How can I fix the login loop?


Let $X$ be a metric space. Every sequence in $X$ has a convergent subsequence in $X$ then $X$ is a compact metric space. Let $\{O_i\}_i$ be any open collection that covers $X$. I know that choosing an $O_i$ open set in the cover set which covers the limit point, and choosing other finite points by other $O_k$ I can reduce the cover to finite cover. But how about other points in the space $X$. I also tried to contrapositive: Assume $X$ is not compact so there exists an infinite cover that we cannot reduce it to the finite cover. So choosing $x_i$ in each $O_i$ we can construct a sequence $x_n$ but since finite $O_i$ cannot cover whole $X$, $x_n$ has no subsequence that has limit. (so vague)  Is the statement correct?  How to prove that?


If I have a member function that looks like this:  const T& temp const( const T& t) const{     //some code     return t; }   What do each of the const do, in the order left to right? Is this right or wrong?    return const object can't change any of the member fields that are not mutable can only pass in const objects of type T this is a const member function, can only be called with a const object


JSON-LD makes website result with no thumbnail in Mobile Search

I saw that it was picking one of the images from my portfolio, so I planned to add explicitly one image for Google Mobile Search result to pick up using JSON-LD tags. A funny thing is that, it says the following issues:  We do not detect any structured data on your site. We did not find any rich card structured data on your website.  My website is a personal website, which is "@type": "person" and my full JSON-LD looks like this: <!-- JSON-LD Markup --> <script type='application/ld+json'>  {   "@context": "http://www.schema.org",   "@type": "person",   "name": "Praveen Kumar Purushothaman",   "jobTitle": "Cook, Cat Lover, Front End Architect, Web Developer Evangelist & Cloud Computing Consultant",   "url": "https://praveen.science/",   "address": {     "@type": "PostalAddress",     "addressLocality": "Camborne",     "addressRegion": "Cornwall",     "addressCountry": "United Kingdom"   },   "image": "https://i.imgur.com/IjdZYJVm.jpg" } </script>  I believe I have specific everything right. I am not sure what's happening, but it shows this way in mobile:  At least last time it was showing an image like this:  But what I am expecting is Google should show :  Would appreciate any guidance to making this work, thanks.


I have saved multiple images from google books. I wanted to convert them to a single pdf file, where in I need some inputs. The below two images(one png and one jpeg) are two continuous pages.      I save them in my system. I converted them to pdf using the command below  convert books.png books.jpeg combined.pdf   However the combined.pdf is not giving me expected results, not the combination of the two.  I also tried making individual pdf files, then combining them using pdftk, with no luck  convert books.png book1.pdf convert books.jpeg book2.pdf pdftk book1.pdf book2.pdf cat output combined.pdf


How to change permission of a drive in an external hard disk?

I had an old laptop. When it got complaint I removed its hard drive and started using it as external hard disk. It has an 80 GB of memory allocation for the windows C drive partition. But now i don't need that partition anymore. But the problem is I am not able to access that drive to paste files into it. How can I make read and write permission to this drive using terminal?


Fibonacci divisibilty properties $ F_n\mid F_{kn},\,$ $\, \gcd(F_n,F_m) = F_{\gcd(n,m)}$

Can any one give a generalization of the following properties in a single proof? I have checked the results, which I have given below by trial and error method. I am looking for a general proof, which will cover the all my results below:   Every third Fibonacci number is even. 3 divides every 4th Fibonacci number. 5 divides every 5th Fibonacci number. 4 divides every 6th Fibonacci number. 13 divides every 7th Fibonacci number. 7 divides every 8th Fibonacci number. 17 divides every 9th Fibonacci number. 11 divides every 10th Fibonacci number. 6, 9, 12 and 16 divides every 12th Fibonacci number. 29 divides every 14th Fibonacci number. 10 and 61 divides every 15th Fibonacci number. 15 divides every 20th Fibonacci number.


I insert to my Activity section and look at this... The BADGES section height is too long and up on the tabs section (I use Google Chrome).


Are Kryptonians affected by Kryptonite if Earth's sun turns red?

Kryptonians get their power from Earth's yellow sun, however when they are on a planet that has a red sun, they are essentially human.    Kryptonite was irradiated by Krypton's explosion, it's not affected by the radiation from the different suns.  Green Kryptonite is deadly to Kryptonians due to the radiation it absorbed from the explosion, it doesn't remove their powers, it simply poisons them.    So with that said, if a Kryptonian were on Earth, full powers and everything, and the Earth's yellow sun was turned into a red sun, thus gradually 'turning' the Kryptonians into humans(I know they aren't transformed into humans, but they more or less share the same physiological attributes), would these Kryptonians still be affected by Kryptonite?


Placement of "only" word in the sentence

I read a text where kids share their experiences about activities in a language camp, and I came across this sentence:  And we spoke only English.  I feel that something is wrong with this sentence, but I'm not sure. At first I thought it should be  And we spoke English only.  Then I thought that maybe this is the correct sentence:  And we spoke only English there.  Please help. Which version is correct?


Restore windows 7 without "system repair disk"

I have a blank hard drive. I also have a Windows 7 system image backed up on an external hard drive. I don't have a system repair disk (SRD) and also don't have Windows 7 disk. I only have the recovery disks that came with my laptop. There is no option in the recovery disk to restore from a system image. So, I am forced to use the old stuff in the recovery disk.   I have few questions:    Can I restore my system from an image on a USB based HDD, without any SRD? Can I create an SRD in a windows 8 system for a windows 7 system? I know this might sound strange, but what if an SRD is just a collection of backup utilities? If no microsoft based answer is there, then is there any commercial software which can do this instead?   I don't even have access to an original Windows 7 disk right now. So, that option is ruled out too.


Running programs in the background from terminal

How do I run a program in the background of a shell, with the ability to close the shell while leaving the program running? Lets say my UI is having problems or for some reason, I need to boot up a program from the terminal window, say, nm-applet:  nm-applet   When it's started, it occupies the foreground of the terminal window.  Is there any simple way to run the program in the background without needing to leave the terminal open or have it occupy the whole terminal?  On that note, I did find a way to run programs from the terminal and have it allow for other inputs, by appending an ampersand (&) to the command as such:  nm-applet &   But this isn't much use as any processes started in the terminal are killed once the terminal is closed.


Looping through all raster cell values using GDAL via Python?

I'm trying to identify null/0 values in each of my raster bands. How can I loop through all the values of each band? I've tried this code, straight from the gdal/python cookbook website but this just gives stats for each band as a whole and for some reason it actually doesn't print a minimum value of 0 even though my raster does have 0 values, it shows a minimum value of 1.   I want to print every single cell value. Is there a way to do this?   from osgeo import gdal import sys  src_ds = gdal.Open( "INPUT.tif" )  print "[ RASTER BAND COUNT ]: ", src_ds.RasterCount for band in range( src_ds.RasterCount ):     band += 1     print "[ GETTING BAND ]: ", band     srcband = src_ds.GetRasterBand(band)      stats = srcband.GetStatistics( True, True )      print "[ STATS ] =  Minimum=%.3f, Maximum=%.3f, Mean=%.3f, StdDev=%.3f" % ( \             stats[0], stats[1], stats[2], stats[3] )


Does light induce an electric current in a conductor?

I know that electromagnetic waves induce electric currents in conductors and that's the basis for radio, wi-fi etc.  I also know that light is also an electromagnetic wave. So, can light induce a current in a conductor (like a metal wire? or a coil?). And, if the answer is yes, is the same visible for other high-frequency waves (X-rays, gamma)?  I heard about the photoelectric effect, but it seems related to the particle theory of light (photons transferring their energy to electrons).  So, do high-frequency electromagnetic waves generate electric currents? Is it possible to measure them? Is the skin effect relevant here?


How to install VM VirtualBox on 14.04 without errors?

I am continuously attempting to install VirtualBox on Ubuntu 14.04, but I continue to receive errors.     Kernel driver not installed (rc=-1908)      The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or   there is a permission problem with /dev/vboxdrv. Please reinstall the   kernel module by executing      '/etc/init.d/vboxdrv setup'      as root. If it is available in your distribution, you should install   the DKMS package first. This package keeps track of Linux kernel   changes and recompiles the vboxdrv kernel module if necessary.   After receiving this error, the Ubuntu sidebar and desktop disappear. I am able to resolve this issue by reinstall the desktop and unity. However, I am told elsewhere to purge and remove everything VirtualBox related and then reinstall. I have attempted to reinstall both through Ubuntu's Software Center, but have also gone the path of installing the .deb file from VirtualBox's website.  I have browsed through both Ubuntu and VirtualBox forums without success. Any help is much appreciated.


How can I guarantee USB wlan0/wlan1 order?

From doing research, I think I understand that the order of wlan0 and wlan1 ( and so on ) is determined by the order that the USB devices are recognized.  My question is whether or not this order is deterministic;  once plugged in and recognized in a specific order, will two or more adapters continue to be recognized in that order in subsequent reboots?  If not, is there a way to influence that order to become deterministic?


I want to plot two bar plots next to each other. This works without a problem. However both use the first color defined in a pre or selfdefined colorseries. I tried to modify the color manually in the plot, but the color and fill definitions have no effect:  \documentclass[border=5mm]{standalone} \usepackage{pgfplots, pgfplotstable}  \begin{document}  \pgfplotstableread[header=false, col sep=comma]{  1, first item 5, second item }\datatable  \begin{tikzpicture}   \begin{axis}[             ,xbar     ,bar width=2ex, y=3ex     ,enlarge y limits={abs=0.75}     ,ytick={data} % (\empty,data,{coordinate list})     ,yticklabels from table={\datatable}{1}   ]   \addplot table [     ,red!20!black,fill=red!80!white,     y expr=-\coordindex, % Use negative coordinate index as y coordinate     x index=0 % Use first column as x coordinate   ] {\datatable};   \end{axis} \end{tikzpicture}  \end{document}   The plot is still in the default blue.


Why are you forced to have an empty method to use a method with input parameters?

I'm calling an apex controller class method from my visual force page using an actionFunction like so:  <apex:form >         <apex:actionFunction name="FunctionName" action="{!MyControllerFunction}">             <apex:param name="Src" value="MySrc"/>         </apex:actionfunction>  </apex:form>   Initially, this controller method had no input parameters, but I had to add one during development. When I tried to do so on the controller class, I was notified that other pages were using the previous method with no parameters, and to change those first.   public PageReference MyControllerFunction(String Src) {     //Some stuff     return pr;     }   Sure, so I added the parameter as shown above in my actionFunction definition. But, when I try to save this, I'm given yet another error:  Error: Unknown method 'MyController.MyControllerFunction()'  Quick Fix   Create Apex method 'MyController.MyControllerFunction'   Does this mean I'll have to go back and create a blank method of:  public PageReference MyControllerFunction()     {         //Some stuff         return pr;         }   whenever I need to add parameters to any function? Or am I missing something here?    Update:  <apex:form >         <apex:actionFunction name="GetPageRef" action="{!MyControllerFunction}">             <apex:param name="Src" value="MySrc" assignTo="{!SrcVal}"/>         </apex:actionfunction>     </apex:form>   Apex:  public transient String SrcVal{ get; set; } public PageReference MyControllerFunction()     {         //Some stuff         //Use SrcVal         return pr;         }   When it tries to use SrcVal in the controller function, it is coming up blank.  From your updated answer, it appears that in order to use the transient property for my global variable, I need to also apply the rerender attribute on the actionfunction call. I'm having difficulty finding the keywords allowed for this, should it just be "variables" similar to how you are rerendering "messages" in your example?


Calculating impact velocity and time with non-uniform acceleration

Here goes:    imagine a spacecraft with engines shut off in a free fall towards some celestial body x. let's say the distance to surface is $100 000$ $\text{meters}$.  initial vertical velocity is $500$ $\text{m/s}$.  gravitational pull experienced by the body is obviously given by $F=G \frac {m_1  m_2}{r^2}$. acceleration of said craft is calculated as $a = \frac{F}{m}$.   Given constant $F$ and therefore $a$, impact velocity and time are easy to calculate, but how exactly do I solve this, considering  that gravitational pull and  acceleration are constantly changing as we approach the surface?  Key question in  is "To what value does the velocity v of the particle converge to as x approaches infinity if the particle starts at some point x0?"  The answer by David H involves the following formula $v_f = \sqrt{\frac{2k}{x_0} + v_0^2}$  In my case x goes from 100000 to 0 m (surface), in other words, there is a clearly defined endpoint which is not equal to infinity. Therefore I do not see how David's formula is applicable in my situation.


According to the Wiki on the Rs, the Rs of the observable universe is 13.7BLY.  (The observable universe's mass has a Schwarzschild radius of approximately 13.7 billion light-years.[7][8])  The reference for this statement is:   and the Encyclopedia of Distances  Can someone please explain this to me...  Is this simply because to get into the non-observable portion of the universe, you have to go faster than the speed of light?


I would like to compress a text file using gzip command line tool while keeping the original file. By default running the following command  gzip file.txt   results in modifying this file and renaming it file.txt.gz. instead of this behavior I would like to have this new compressed file in addition to the existing one file.txt. For now I am using the following command to do that  gzip -c file.txt > file.txt.gz   It works but I am wondering why there is no easier solution to do such a common task ? Maybe I missed the option doing that ?


I gave someone +200 rep and a Mortarboard Badge

I've been utilizing Stack Overflow in different ways. Recently it's taken the form of finding a user and upvoting interesting answers to questions until they've received the Mortarboard badge.  My requirements for finding a user:   Must be active, e.g. appear on this list:  Must have at least 20 answers to questions. Must not have the Mortarboard Badge (badge for obtaining 200 daily rep in a day).   My process for upvoting that user:   Go through their answers to questions. Read a question. If the question is interesting, and the users answer to that question is valid & correct, I'll go ahead and upvote the user. Basically if I've learned something new, I give out my vote. Repeat the above until the user has received the badge.   Up until recently I didn't know my upvotes were being reverted. This is understandable as it isn't normal behavior - Maybe I'll pace out the +200 rep throughout the day... but that's not the point.  The main question is - what's the difference in using the site in this manner vs. browsing the "interesting" section of the website and doing the same thing? Why is this considered a bad thing? The questions:       Do not apply to this question. I know this is serial upvoting. I want to know why it isn't allowed is certain situations such as this.


How to understand the drawbacks of K-means

K-means is a widely used method in cluster analysis. In my understanding, this method does NOT require ANY assumptions, i.e., give me a dataset and a pre-specified number of clusters, k, and I just apply this algorithm which minimizes the sum of squared errors (SSE), the within cluster squared error.  So k-means is essentially an optimization problem.  I read some material about the drawbacks of k-means.  Most of them say that:   k-means assumes the variance of the distribution of each attribute (variable) is spherical;  all variables have the same variance; the prior probability for all k clusters is the same, i.e., each cluster has roughly equal number of observations;   If any one of these 3 assumptions are violated, then k-means will fail.  I could not understand the logic behind this statement. I think the k-means method makes essentially no assumptions, it just minimizes the SSE, so I cannot see the link between minimizing the SSE and those 3 "assumptions".


Shipping conditions based on a custom field

I have custom fields in my customer profiles (so I don't use the dynamic addressfield) like name, streetname, number, postalcode and country. Now I would like to create 3 different shipping services with conditions based on different countries.  For example:  Shipping 1 = Netherlands, Shipping 2 = Germany, Shipping 3 = Belgium.  In my customer profiles I have a custom field called 'country' which have the values Netherlands, Germany and Belgium in a select list.  When setting a condition for the selected shipping service I am unable to select the correct data selector (order address component comparison doesn't work, cause that only works with the dynamic addressfield). I tried using 'entity has field' but that doesn't seem to work either (or I used the wrong settings?).  Any suggestions?


What's the difference between the simple past tense and the present perfect?

The simple past tense indicates that an activity or situation began   and ended at a particular time in the past.      The present perfect expresses the idea that something happened (or   never happened) before now, at an unspecified time in the past.The   exact time it happened is not important. It also expresses the   repetition of an activity before now. The exact time of each   repetition is not important.   Even though I understand the explanation above, I can't figure out: If the present perfect states the idea that something happened in the past, why not use the simple past?  For example, would you please explain the following sentence to tell the difference between these two tenses?         The plane crashed there.    The plane has crashed there.      What is the biggest difference between them?


Did George Lucas ever comment on why he created Jar Jar Binks?

Everyone seems to hate Jar Jar Binks.  So why did George Lucas create him?  The story of Binks and his people doesn't really contribute anything to the story, and I find that the parts involving Binks and his people are annoying or boring, adding unnecessary length to The Phantom Menace (which is boring enough with all that trade federation stuff and the endless pod racing).  So why exactly did he do it?  What necessary element did Lucas feel that Binks was contributing that Star Wars would have lacked otherwise?   Has he ever said anything directly about Binks?


How do I transfer my Watch settings to an additional Watch?

I understand how to transfer Watch settings to a new Watch . Is there a way to transfer settings while adding the new watch as and additional paired watch? Can I copy the settings from my old watch to the new one while keeping the old one paired?


differences between the real image and virtual image

which image can be seen by us and photographed simultaneously -  real or virtual. I don't understand the major difference between the two.


Show that a group of order $2016=2^5 3^2 7$ is not simple

That's a question I found in a french list of exercises online. I'm preparing myself for an exam, I think solving this question would really help. Thank you  The tip given by the exercise is to analyse the 7-Sylow.  I can't go any farther than $n_7=1$ or $8$ or $36$ or $288$.  Then I should analyse for each case.  I found similar questions online but couldn't quite understand the reasoning behind. They always show that the number of the Sylows can't be different than 1, which should show that the 7-Sylow is normal. The problem is that I can't understand how the usually get to show that $n_7=1$.  Would you please help me solve it or send maybe some papers about it or solved similar exercises?


Removing my name from Indian immigration blacklist

Respect. I have came to India with student visa and i have overstay for 16 months after that i applied for Exit Visa in order to go back to my country (IRAQ) after 4 months of leaving India I applied foe student visa in the Embassy of India In Baghdad, Iraq, and they rejected my application. because my name is blacklisted in FRRO of India. so What is the process to remove my name from the Blacklist?


How to include "Bookman Old Style" font as a main font in my Ph.D thesis?

I am unable to figure out simple solution to add "Bookman Old Style"  as a main font in my latex document. I have used below line but does not give me required font.  \usepackage{bookman}   Could not find any Simple correct answer for this. Pl. suggest how to do it.  I am using windows, pdflatex.  thank you


I have an Object A. I assign values from A to Object B.  Object A is then changed, but I want to maintain the original values in Object B.  ObjectA a = getObjectAValues();  ObjectB b = new ObjectB();  b.setval(a.getValA());  //object A updated here  return b;   When I check the second object, it has the updated values, rather than the original value when I first assigned it.  Any ideas how to get past this?


I have this super fundamental query about negative string indexing in python

If I have a string s = "dave" then the expression: s[::-1] is supposed to reverse the string ("evad"). But how is it happening considering that I am starting from the first position and then decrementing the step by 1. So should it not be the element in the first position and then the original string in reverse order ("deva")?


Why Use Arbitrary Unions and Finite Intersections in Topology?

Why the definition of a topological space defined under finite intersection and arbitrary union What if we change the conditions by arbitrary intersection and finite union?


Unkillable and undeletable virus (Windows 10)

I downloaded something off a link and once I installed it a few minutes later this thing popped up in task manager: Microsoft Edge Update Setup/libmfxsw32.exe. I tried to open its file location in Task Manager (located in "%APPDATA%/Mxmetamux") and it says that access is denied, along with that the folder never displays in file explorer. I looked up the exe's name and it says that it executes these files: icalcs.exe, cmd.exe, and fontdrchost.exe. I know that icalcs.exe is the one that manages folder permissions, and I once tried both the takeown and icalcs commands that were "executed successfully" but didn't make the folder accessible. I tried ending the libmfxsw32.exe process but it keeps popping up again in task manager.


I mean groups and not abelian groups. In Grp, categorically, he product is the cartesian product and the coproduct is the free product. So what place takes the direct sum? Can it be defined categorically in Grp or any similar category? I would be surprised if can't be defined using limits of co/cones or something similar. If not, are they really useful (the direct sum of groups) for something?


Retrieve the position (X,Y) of an HTML element relative to the browser window

I want to know how to get the X and Y position of HTML elements such as img and div in JavaScript relative to the browser window.