Is it true that $\displaystyle \left( \lim_{n \to \infty} x_n \right)^\alpha = \lim_{n \to \infty} x_n^\alpha $

Let $\{x_n\}_{n=1}^\infty$ be a squence of nonnegative real numbers such that $\displaystyle \lim_{n \to \infty} x_n =x \in \Bbb R$. If $\alpha \in (0, \infty)$, is it true that $\displaystyle \lim_{n \to \infty} x_n^\alpha =x^\alpha$?  I read the proofs for $\alpha$ integer and for $\alpha=1/2$, but I wonder what happens with the other cases.


What are the bonuses of providing a gun at an altar?

The game gives me the ability to provide a gun at an altar, to dead heroes. Are there any bonuses of this?


What does the author mean by 'back to back' and 'hidden city' ticketing hacks?

At this link about   what does the author mean by this?   Back to back and hidden city ticketing. Sometimes airlines will charge far more for tickets to that do not include a Saturday night stay, on the assumption that those passengers are business travelers who aren’t flexible and can afford to pay more. Yet those who commute between cities eventually realize that they can purchase one round-trip ticket that covers their first outbound and last return, followed by round-trip tickets to return home on the weekends.


Prove that $(a+1)(a+2)...(a+b)$ is divisible by $b!$

The problem is following, prove that:  $$(a+1)(a+2)...(a+b)\text{ is divisible by } b!\text{ for every positive integer a,b}$$    I've tried solving this problem using mathematical induction, but I don't think that i did it correctly. Here's what i've done  $1.\ b=1\ (Basis)$  $$b!| (a+1)(a+2)...(a+b)$$ $$1 | a+1 \text{, which is true}$$  $2.\ b=k\ (Induction\ Hypothesis)$  $$k! | (a+1)(a+2)...(a+k)\text{, we assume it's true}$$ $$k!*n = (a+1)(a+2)...(a+k)\text{, n is some positive integer}$$  $3.\ b=k+1\ (Inductive\ Step)$  In order to prove I should get:  $$(k+1)!*m = (a+1)(a+2)...(a+k)(a+k+1)\text{, where m is some positive integer}$$ $$(a+1)(a+2)...(a+k)(a+k+1) = k!*n*(a+k+1)$$ $$(a+1)(a+2)...(a+k)(a+k+1) = (k+1)!*n + k!*n*a$$ $$(a+1)(a+2)...(a+k)(a+k+1) - a(a+1)(a+2)...(a+k) = (k+1)!*n$$ $$(a+1)(a+2)...(a+k)(k+1) = (k+1)!*n$$  And as you can see I'm returning at the beginning.  Also I've tried to use the fact that in b consecutive numbers, there must be at least one that divides b, but since i eliminate that number (because I couldn't be sure that the quotient is divisible with (b-1) or (b-2) or ... or 2. And after this i can't continue with (b-1) using this method, because it's not necessary for the other (b-1) to be consecutive.


How exactly are the beta and gamma distributions related?

According to Wikipedia, the  is related to the gamma distribution by the following relation:  $$\lim_{n\to\infty}n B(k, n) = \Gamma(k, 1)$$  Can you point me to a derivation of this fact? Can it be generalized? For example, is there a similar relation that results in something other than a constant 1 for the Gamma second parameter? What if we have  $$\lim_{n\to\infty,m\to\infty,n=mb}n B(k, m) $$  That is, the two variables go to infinity while maintaining a constant ratio b.  The reason I'm asking is because I'm trying to figure out how to simplify a hieraerchical bayesian model involving the beta distribution.  (This is my first post; sorry for the math notation, the MathJaX syntax was too daunting, but I'll try to learn)


I have a function which takes a const char* argument. I need to concatenate two string literals and an int to pass to this argument. Basically this is what I'm trying to do:  open(const char* filename) {}  void loadFile(int fileID) {     open("file" + fileID + ".xml"); }  int main() {     loadFile(1);     return 0; }   How can I make this work as simply as possible? I tried changing the loadFile function to take a const char* and then doing open(std::string("file").c_str() + fileID + std::string(".xml").c_str()); but then I get error: invalid operands of types 'const char*' and 'const char*' to binary 'operator+' so I'm pretty lost.


how to make a c# library invisible by main call?

I want to make a c# library for my customer. But I don't want let them see the library content. My only need is to let them use library. Not seeing my library  code  in my Library:   using System;  using System.Collections.Generic;  using System.Linq;  using System.Text;  using System.Windows.Forms;   namespace Tcp1  {      public class Tcp1     {         public class Tcp        {            int a11;            string b11;            public Tcp(int a, string b)            {                a11 = a;                b11 = b;             }             private  static string Add(int a, string b)           {               string ss = a.ToString() + b;               MessageBox.Show(ss);               return ss;            }     }    } }   I need to hide the library code from customer, And I need to support the library for my customer, But I don't want my customer to  see the content of my detailed library code. I got to hide the library code & still could be used by customer at the meantime.  I am not sure what the customer call will be, Likewise:     int a;    string b;    string c;    Tcp ss = new Tcp();    c= Tcp.Add(a, b)


How much can your grad school GPA affect your chances of getting into a Phd Program?   Some of my teachers suggested that your motivation to be a researcher is what matters the most, but i am still not ready to buy in on that and would it be an advantage if you have a masters which focuses more on research ?   P.S Sociology major


Book where people try to steal/break something by digging under a force field using a tank/mech they steal from a museum

I am searching for a book (probably early 2000s) which contains a specific scene. I do not remember everything and the details might be somewhat different, however, this is the gist:  The story plays at least a couple of hundred years in the future, in a technologically advanced society (spaceships, force fields).  A group of people try to [steal something/break something/???] in a heavily secured [facility/spaceship shipyard]. To achieve this, they first steal an "ancient" (by their standards) [tank/mech/piece of technology] (from a museum?). This [tank/mech/piece of technology] has a specific trait, namely, it can dig well - so they use it to dig under the [force field/shield] that surrounds the facility, but only reaches X meters below the surface. Of course something goes wrong with their plan, but I don't remember what, and how they worked around it (if they did).  IIRC, this should be somewhere on the axis between soft and hard sci-fi, so its not some kind of Star Wars wonderland.


90s(?) book about a female protagonist, who was in an accident and is transplanted into a cyborg body

I read this book between 1999 and late 2004. I am pretty sure it had a blue cover and may have been published by Penguin. It was a paperback.  The story goes, as far as I can remember, that after an accident her body was too badly damaged and she was implanted into a cyborg or bionic shell, which had been cast aside by other wealthy people who upgrade their "cyborg bodies" when they get bored or for new upgrades. Undamaged real bodies were a premium and the poor could sell their healthy bodies for money to purchase older model cyborg bodies.  I think the protagonist has recurring memories or that they play a part in it somehow.


How to ask "If you have any problem then ask me" in polite manner.  While discussing problem with my brother in chat, he most of the times ask me how you get to the solution and then I have to explain each step. And in between he keep on asking me questions. This was about chat so there is no problem.   Now if I'm writing a mail, what I do is I write the solution to the problem and ask him that 'if you have any problem then ask me'.   He is my brother so he understands but if I do same with with any professor then that will be a trouble for me.   Please help me with some phrases which means "if you have any problem then ask me" but in polite manner.


I'm trying to learn C, but currently stuck. I'm trying to get the same output as below, but I'm not sure how to round the last few decimals points in my code to get the same output below.  1. ENTER AN INTEGER 2. 5 3. DIAMETER: 10.000000 4. CIRCUMFERENCE: 31.415900 5. AREA: 78.539750     int main() {      float num1, diameter, circumference, area;      printf("ENTER AN INTEGER\n");     scanf("%f", &num1);      diameter = 2 * num1;     circumference = 2 * 3.14159 * num1;     area = 3.14159 * (num1 * num1);      printf("DIAMETER: %f\n", diameter);     printf("CIRCUMFERENCE: %.6f\n", circumference);     printf("AREA: %.6f\n", area);       return 0; }   The output of my result.  1. ENTER AN INTEGER                                                                         2. 5                                                                                3. DIAMETER: 10.000000                                                                      4. CIRCUMFERENCE: 31.415899                                                                  5. AREA: 78.539749


If I properly understand relativity, time ticks faster for an object sitting still than for an object passing by.  So, in a universe with only two objects which have the same "age", object A is sitting still and object B is quickly approaching it, then we can assume that when object B stops, object B will be "younger" than object A. That works if you choose object A as your point of reference, but what if you choose object B as your point of reference? In that case, object A is the one moving and therefore will end up being "younger" than object B.  How is this possible? How does relativity account for this paradox?


Where can you provide feedback or feature-requests to Ubuntu?

I know this question has been asked before, but these questions were asked back in 2011-12 and the answers may be outdated in 2019? I have just started using Ubuntu Desktop 18.04 LTS and have subscribed to Ubuntu One and I am not sure where to post feedback or feature requests to Ubuntu where they will be seen and considered by developers?


Maintaining a concentration spell beyond casting range

Tonight, I had a bard cast Hungar of Hadar into a room, then circle back through the dungeon to flank while maintaining concentration on the spell. The spell has a range of 150 feet. Is it possible to maintain concentration on the spell despite losing line of sight and moving beyond the 150 foot casting range?  Concentration was allowed despite exceeding the original casting range. One person questioned the ruling, so I am curious if there is an official stance on the subject.


Proof of limit of quotient sequence property

I am struggling to prove the following property of limits of sequences:     If $(a_n)_{n\in\mathbb{N}}$ is a sequence such that $\forall n:\ a_n\ne0$ and $\lim\limits_{n\to\infty} a_n = L \ne 0$, then   $$\lim\limits_{n\to\infty} \frac{1}{a_n} = \frac{1}{L}$$   Using the definition of limit, $$\forall \varepsilon>0\ \exists n_0\ \forall n \ge n_0\quad \left|a_n - L\right| < \varepsilon$$ what I have up to now is $$\begin{equation}\label{eq:inv-limit}     \left|{\frac{1}{a_n}-\frac{1}{L}}\right| =      \left|{\frac{L-a_n}{a_nL}}\right| =      \frac{\left|a_n- L\right|}{\left|a_nL\right|} <      \frac{\varepsilon}{\left|a_n\right|\left|L\right|}\,.    \end{equation}$$  But now the coefficient of epsilon is not constant, so that is not sufficient to prove that $\frac{1}{a_n}\to\frac{1}{L}$. How to proceed?


extracting energy from cosmological expansion

This question is a more concrete reincarnation of an .  Are there mechanisms to extract energy from the cosmic rate of expansion? putting some extremely long ropes across the universe and extract work from their increase of separation?  assuming this is possible ( i don't see why it would not ), what form would take the back-reaction force? in all physics, every time you extract work from some system by some force, this system will exert a force back. Can we slow down cosmic expansion by variations of these mechanisms?


Why when i insert a figure in a section and then move on to a new section do my figures not stay where they are suppose to be

This is about the 4th or 5th time i have encountered this. Im very new to latex but I'm growing tired of not understanding why this is happening  I place a figure in document with the following code  \begin{figure}[h] \subfloat{ \includegraphics[width=.7\textwidth]{currentdischarge} } \caption{Expected current discharge} \end{figure}   Then i go and start a new section and continue on with my article  \section{blah blah}   I do a typeset to check my work and every single time my figures are no under my new section instead of where they are suppose to be!  Someone please help! I spend more time fighting latex then i do actually working


What is causing this strange shading when adding bump/normal maps? This happens in the viewport and the final render.  See image below were the sun transitions into shadow. It should be more smooth.  Blender v2.79 Cycles HDRI lighting        Bump map close-up:   Also, it seems that adding subdivions increases quality but at a great cost of performance.


Criteria for convergent sequence (Baby Rudin Theorem 3.22)

Theorem 3.22 of Rudin's Principles of Mathematical Analysis says:     The series $\sum a_{n}$ of (real or) complex numbers converges iff for every $\varepsilon > 0$, there is an integer $N$ such that    $$ \left| \sum_{k=n}^m a_{k} \right| \leq \varepsilon $$    if $m\geq n \geq N.$    My doubt is: The condition is that the sequence of partial sums {$s_{n}$} is Cauchy, i.e for every $\varepsilon>0$ there is an integer $N$ such that  $$ \left|s_{m}-s_{n} \right|<\varepsilon $$  if  $m \geq n \geq N.$  But $\left|s_{m}-s_{n} \right|$ would be $\left|\sum_{k=n+1}^m a_{k}\right|$, isn't it?  How come the summation starts from $n$ in the theorem? How are the two summations equivalent?


Im in the process of connecting to a SOAP api, passing some data and then reading the response. Im to the point where I get the SOAP request to send and I get a response but I cannot seem to figure out how to parse the returned XML.  First I pass credentials to receive an auth_ticket:  $rap_soapUrl = "https://technet.rapaport.com/webservices/prices/rapaportprices.asmx?wsdl"; $client = new \SoapClient($rap_soapUrl, array('trace' => 1)); $result = $client->Login($rap_credentials); $response = $client->__getLastResponse();   This is the point where Im getting stuck. If I echo $response I get  <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><AuthenticationTicketHeader xmlns="http://technet.rapaport.com/"><Ticket>TICKETHASH</Ticket></AuthenticationTicketHeader></soap:Header><soap:Body><LoginResponse xmlns="http://technet.rapaport.com/" /></soap:Body></soap:Envelope>   What I need to parse out is TICKETHASH, which is then used in the next request.  I am able to manually parse the string, searching for anything between <Ticket> and </Ticket> but it feels very hacky and not the correct way to handle it.  I tried to use $xml = simplexml_load_string($response); but it returns an empty simplexml object.


my dell has AMD radon graphics but it run on intel graphics?

I have Dell Inspiron15R 5521 which has both on die Intel HD graphics and a 2GB AMD Radeon HD 8730M Graphics card.  But it is using Intel graphics.


How to change the number of a subsection used in a cross-reference?

I was wondering if I could change the number that appears in my "\labelcref"? (I use hyperref, cleveref and nameref packages) More precisely, I'm writing a document where there are several sections which are composed by a few subsections. I wrote the code:  \renewcommand{\thesection}{\Roman{section}} \renewcommand{\thesubsection}{\arabic{subsection}}   So that my sections go by I,II,III,... and every subsection by 1,2,3,..(and not I.1,I.2,..).  But I'd like to have "see I.1" and not "see 1" (which could confuse the reader because it doesn't state in which section it is). My code looks like that:  \documentclass[10pt,a4paper]{article}  \usepackage[utf8]{inputenc} \usepackage[francais]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsthm, thmtools}   \usepackage{amsfonts} \usepackage{amssymb} \usepackage{lmodern} \usepackage{soul}   \usepackage{mathrsfs}  \usepackage{enumitem}   \usepackage{xcolor}    \usepackage{hyperref, nameref, cleveref}  \begin{document}  \section {First} \subsection {one} \label{I.1} blablabla \subsection {two} blablabla \section {Second} \subsection {one} blablabla and see \labelcref{I.1} \end{document}   Thanks for any answer!


Undefined reference to not used class template method

In general, templates are implemented in the header files (as many answers in Stack Overflow point out) so the code template is available to the compiler when it needs it to create a new instance of the class/function. However, in my case, some of the methods in my template class can be used only for a certain type, so my class looks like:  Class header  #ifndef LEC_H #define LEC_H  #include <iostream>  template <typename T> class LEC { public:   LEC()   {   }    void func() const;    void func2() const   {     std::cout << "Func 2" << std::endl;   } };  #endif  // LEC_H   Class cpp  #include "lec.h"  template <typename T> void LEC<T>::func() const {   std::cout << "Func: " << typeid(T).name() << std::endl; }  template class LEC<float>; template class LEC<double>;   The last two lines of the cpp file allow me to use func() because I explicitly instantiate this class template for these two types. When I use this class template in a program I can use any type as long as I do not call func():  #include "lec.h"  int main() {   LEC<float> a;   LEC<double> b;   a.func2();   a.func();   b.func2();   b.func();   LEC<char> c;   c.func2();   return 0; }   But, since the code is not available for the compiler to intsantiate func() for a LEC class with type char, I cannot do c.func() or I will get a compiler error:     undefined reference to `LEC::func() const'   This is a simplification of my real code. However, in my code, when I do LEC<char> c to create an instance of the class I get the error, without calling any methods, only by constructing the class.    Any idea on how to find out why this, apparently not used method, has to be linked anyways?  Is there a way so the compiler (in my case I am using clang++: clang version 6.0.0-1ubuntu2) points out where is this method used within the code?  Otherwise, can somebody explain why this (not having to link to a non-used class method) is working in the provided example and not in my code?   Edit The cmake looks like:  add_library(lec_lib SHARED lec.cpp lec.h) add_executable(lec_main main.cpp) target_link_libraries(lec_main lec_lib)   Hence, the compiled library is linked with the executable.  Edit 2 Please avoid suggesting answers such as  since I already know that the template has to be available to the compiler when the class is instantiated for a new type. My question is different. Why can I instantiate a type for which not all the template implementations are available as long as I do not use the specific class methods for which the template implementation is not provided at instantiation time (in the example case func())  Edit 3 Regarding the suggestion that this is a duplicate of . Again my question is different. I am looking for answers on why in the example I can instantiate LEC<char> when LEC<char>::func() is not visible for the compiler when it compiles the main program. And inthe case that this cannot be done and L3C<char>::func() is required to be linked, how to find why the method linkage is required while it is not being used (which is what happens in my real code).


Inspired by  about seeing confirmation of successful flagging.  I would like to see flags I've submitted recorded on my profile, maybe under the Activity tab.  It's easy enough to find them using the 10K tools, but for the sites on which I don't have 10K yet it'd make finding the flagged posts a whole lot easier.  As justification, consider the situation in which you flag a post, edit something offense out of it and someone rolls the offensive bit back in.  I would want to pay attention to that and get a moderator on it to lock the post or something (short of entering into a rollback war).  EDIT: Wasn't thinking about the public aspect of our profiles (...)  In light of that it'd definitely need to be on a private tab.


Which Class and Packages for typesetting War and Peace ( a novel narrative)

Project: format  on 8.5" X 5.5" double sided pages, using open source software, with a pdf submittal.  The utf8 text is freely available to anyone, and no one can own sole publication rights, since that work falls into the public domain.  The goal is take as few hours as possible, while making it look as good as possible. The pdf would include everything except the front and back cover of the book, all the inner pages in other words.   (War and Peace is actually a Book of "books" rather than "parts" each with many chapters).    So, what manuals for compiler, class and other packages would be best to read up on, or would you skip LaTeX and use another open source tool?  Images, Colors and Scientific Formula etc., are not allowed in the finished product.    Edit:  I've read a few introductions to LaTeX and can quickly compile long books.   War and Peace has a lot of narrative, and it's very quick to markup with LaTeX then compile into a pdf book.  But the result isn't what I'm looking for when I try to use a minimal amount of introductory LaTeX.    The basic question at the top revolves around what classes, packages and/or compilers could be used.  There will probably only be a few short answers, so I disagree with placing this question on hold.  More folks than formatters of academic and scientific documents should be empowered to effectively use the full capability of LaTeX.   I've read lots of comments, but zero solutions.  see below.  Why?  I feel that this question was marked on hold because it wasn't fielded for an academic or scientific work, and folks are certainly acting like I'm asking for their programming trade secretes.


How did Planck arrive at the idea that energy is quantized?

Max Planck, arguably the leading theoretical Physicist of his day, apparently used of experimental data to formulate his equation for , which was a major step in the birth of quantum mechanics. For this seminal event of the 20th century, I would expect a detailed explanation of how Planck arrived at his conclusion that energy MUST be quantized. I've even read his Nobel lecture but was non the wiser.  Can some kind person please explain it, or give me even just a hint?


Can I connect ground to neutral in a 3 wire outlet?

I have a 3 wire outlet with the entrances for hot, neutral and ground. But I know that the ground entrance is not really grounded, so in effect useless. Now, since the neutral is grounded, could I connect the ground entrance with the neutral therefore "grounding" the ground? What would be the problem with that?


I have a problem with my JQuery, I don't understand why the remove button don't work, could you help me please ? =) So here is my code :    $('.removeBook').on('click', function() {   $('div').remove(); });  $('#createBook').click(function() {   $('#list').append('
Hello' + '<button type="button" name="removeBook" class="removeBook">Remove</button>' + '
'); });  <button type="button" name="createBook" id="createBook">Create</button>

     Thanks in advance if you can help me !


Default argument for a class function defined in constructor

Is there a possibility to define a variable that will be used as a default argument in the constructor?  #include <iostream> class Foo { public:     Foo(int x) { num = x;}     void print(int y = num)     {         std::cout << y << std::endl;     } private:     static int num; }; int main() {     Foo f(5);     f.print(); }   this compiles but I get linking errors LNK2001 unresolved external symbol "private: static int Foo::num" (?num@Foo@@0HA)


\begin{tikzpicture}     \begin{axis}[         symbolic x coords={-2,-1,0,1,2,3,4,5,6},         xtick=data       ]          \addplot[ybar,fill=blue] coordinates {             (-2,0)             (-1,730974)             (0,20059)             (1,5492)             (2,729)             (3,151)             (4,30)             (5,5)             (6,1)         };     \end{axis} \end{tikzpicture} \end{figure}   When the graph is plotted, I get an axis from 0*10^5 to 8*10^5. How may I change the axis so that I get numbers 0 to 800000 instead?


How can I protect my save data from casual hacking?

What options are there for saving game data in a secure manner? I'm interested in solutions specifically tailored for C++.   I'm looking for something that is fast and easy to use. I'm only concerned about storing simple information such as   Which levels are and are not unlocked The user's score for each level   I'm curious again to know what's out there to use, any good libraries to use that give me nice, secure game data files that the average player can't mess with.   I just found  here which looks very nice, but it would be great to get some opinions on potential other libraries/options out there.


Someone wants my account details and password to transfer money to me

Someone in another state asked me to be his personal assistant.  From the start I was suspicious.  He said he was doing a lot of projects in my state and needed my help.  Then he said he needed to transfer some money to my account (via mobile), but in order to do so he requires my full name, account number, username, and password.  I've never heard of this.  Please advise, as this sounds really weird and risky!


Admin login returns 'Sorry, unrecognized username or password.'

When I attempt to login to my admin account, I'm getting a 'Sorry, unrecognized username or password.' message. The weird thing is that the password and username are correct. I've looked them up in the SQL database. I've even tried changing the password in the database, but have had no luck getting it to work. After every 5 attempts, I've had to use the DELETE FROM 'flood'; sql command in order to reset the attempts.  In my local environment, I'm having no trouble logging in. This is also the first time I've attempted to login to the production website.   Is there anything I can try to fix this?


Pasting mm:ss into excel - gets mistakenly formatted as hh:mm

If I paste a dataset including times in mm:ss format into excel, how can I prevent it from interpreting them as hh:mm?  Changing the number format before or after pasting doesn't help, Excel still sees them as hours and minutes rather than minutes and seconds.


Is there a way to get myself killed in a beginners game?

I'm planning to attend a beginners D&D session in a few days time. This is a casual session with stock random characters.   For (ahem) reasons I'd like to get killed quite early on in the game. The aim is to do something, preferably a single, plausible action, that's likely to result in my character's death but without it being too obvious as a suicide attempt.  I know very little about DND beginner sessions, but I strongly suspect that the bulk of it will be spent in dungeons. There may even be a dragon.  What is that action?    For the record, I'm looking for a technical/social solution within the rules of the game, not a social engineering solution in real life (faking a cramp, faking a call, speaking to the DM, etc).


This is hard to describe by words but the following code and the picture is worth more than a thousand words I can use to describe my question. Thanks in advance \documentclass[12pt, xcolor=dvipsnames]{beamer} \beamertemplatenavigationsymbolsempty  %no navigation pane \usetheme{CambridgeUS} \usecolortheme{seahorse} %\setbeamertemplate{page number in head/foot}{\makebox[-1em][r]{}}  \title[A Large Topic Name for the Presentation]{A Large Topic Name for the Presentation That Cannot Be Shortened} \author[John Doe]{John Doe} %\subtitle{} %\setbeamercovered{transparent}  %\setbeamertemplate{navigation symbols}{}  %\log_2o \institute[]{\includegraphics[height=1.5cm]{image-placeholder.jpg}} \date[{\includegraphics[height=2mm]{image-placeholder.jpg}}]{Some Day in 2021}  %\subject{}   \begin{document}  \begin{frame}[noframenumbering, plain] \titlepage \end{frame}    \section{some section} \subsection{some subsection} \begin{frame}{\centerline{A Slide}}  \vspace{12em}  I need the middle section of the bottom line to be larger sacrificing equally from the "name" and the "frame number" stips.  $$\downarrow $$  \end{frame}  \end{document}


jQuery: How do I identify an element whose ID contains a dot?

Here is my current code:  jQuery(document).ready(function($) {   $("#edit-name").change(function() {     $("#Membership_UserName").val($(this).val());   });   $("#edit-pass-pass1").change(function() {     $("#Membership_PassWord").val($(this).val());   });   $("#edit-pass-pass2").change(function() {     $("#.Verify_Password").val($(this).val());   }); });   Everything works fine, except for updating the value of the element whose ID is .Verify_Password. The reason seems pretty apparent to me (that jQuery is getting confused after seeing # and . right next to each other) but maybe that's wrong...  Regardless, the ID can't be changed because it's being sent to a remote endpoint and it needs to match on that end.  So my question is: is there a way to tell jQuery that .Verify_Password is an ID (and not a class)?


Explode MULTILINESTRING into individual segments in PostGIS 1.5

I have a MULTILINESTRING in PostGIS consisting of several LINESTRING's. Consider each LINESTRING to have a set of POINT's      P1, P2, ... PN   forming the line segments     L1, L2, ... LN-1   where LX is the line segment connecting PX to PX+1.  Using PostGIS 1.5 how can I explode the MULTILINESTRING into individual line segments of each LINESTRING?


Creating Running Headers and Footers, but not on the First Page

I want a header similar to Microsoft word that appears at the top of each page. However I do not want this on the first page. I would like to have the name of the project on the left, my name in the middle, and the date on the right.   What packages and commands will create a header as described above? What approaches can I take to customize the header?


R software installation sudo apt-get install R

How  to install R software in ubuntu using terminal codes. I tried using sudo apt-get install R ?


Can I rely on reading SQL Server Identity values in order?

TL;DR: The question below boils down to: When inserting a row, is there a window of opportunity between the generation of a new Identity value and the locking of the corresponding row key in the clustered index, where an external observer could see a newer Identity value inserted by a concurrent transaction? (In SQL Server.)  Detailed version  I have a SQL Server table with an Identity column called CheckpointSequence, which is the key of the table's clustered index (which also has a number of additional nonclustered indexes). Rows are inserted into the table by several concurrent processes and threads (at isolation level READ COMMITTED, and without IDENTITY_INSERT). At the same time, there are processes periodically reading rows from the clustered index, ordered by that CheckpointSequence column (also at isolation level READ COMMITTED, with the READ COMMITTED SNAPSHOT option being turned off).  I currently rely on the fact that the reading processes can never "skip" a checkpoint. My question is: Can I rely on this property? And if not, what could I do to make it true?  Example: When rows with identity values 1, 2, 3, 4, and 5 are inserted, the reader must not see the row with value 5 prior to seeing the one with value 4. Tests show that the query, which contains an ORDER BY CheckpointSequence clause (and a WHERE CheckpointSequence > -1 clause), reliably blocks whenever row 4 is to be read, but not yet committed, even if row 5 has already been committed.  I believe that at least in theory, there may be a race condition here that might cause this assumption to break. Unfortunately, documentation on Identity doesn't say a lot about how Identity works in the context of multiple concurrent transactions, it only says "Each new value is generated based on the current seed & increment." and "Each new value for a particular transaction is different from other concurrent transactions on the table." ()  My reasoning is, it must work somehow like this:   A transaction is started (either explicitly or implicitly). An identity value (X) is generated. The corresponding row lock is taken on the clustered index based on the identity value (unless lock escalation kicks in, in which case the whole table is locked). The row is inserted. The transaction is committed (possibly quite a lot of time later), so the lock is removed again.   I think that between step 2 and 3, there is a very tiny window where   a concurrent session could generate the next identity value (X+1) and execute all the remaining steps, thus allowing a reader coming exactly at that point of time to read the value X+1, missing the value of X.   Of course, the probability of this seems extremely low; but still - it could happen. Or could it?  (If you're interested in the context: This is the implementation of . NEventStore implements an append-only event store where every event gets a new, ascending checkpoint sequence number. Clients read events from the event store ordered by checkpoint in order to perform computations of all sorts. Once an event with checkpoint X has been processed, clients only consider "newer" events, i.e., events with checkpoint X+1 and above. Therefore, it is vital that events can never be skipped, as they'd never be considered again. I'm currently trying to determine if the Identity-based checkpoint implementation meets this requirement. These are the exact SQL statements used: , , .)  If I'm right and the situation described above could arise, I can see only two options of dealing with them, both of which are unsatisfactory:   When seeing a checkpoint sequence value X+1 before having seen X, dismiss X+1 and try again later. However, because Identity can of course produce gaps (e.g., when the transaction is rolled back), X might never come. So, same approach, but accept the gap after n milliseconds. However, what value of n should I assume?   Any better ideas?


Prove that for every $n \in \mathbb{N}$ $\sum\limits_{k=2}^{n}{\frac{1}{k^2}}<1$

$$\sum\limits_{k=2}^{n}{\frac{1}{k^2}}<1$$   First step would be proving that the statement is true for n=2   On the LHS for $n=2$ we would have $\frac{1}{4}$  therefore the statement is true for $n=2$   Now we must assume the statement is true for $n=j$ with $j\geq2$   $$\sum\limits_{k=2}^{j}{\frac{1}{k^2}}<1$$   Now we must prove true for $n=j+1$   $\sum\limits_{k=2}^{j+1}{\frac{1}{k^2}}<1$  $\Rightarrow \sum\limits_{k=2}^{j}{\frac{1}{k^2}}+\frac{1}{(k+1)^2}<1$  I cant seem to introduce the induction hypothesis


Is it possible to name a GRID with letters and also not from top down but from left to right?


Extensions of degree two are Galois Extensions.

This question from Allan Clark's "Elements of Abstract Algebra"  Show that an extension of degree 2 is Galois except possibly when the characteristic is 2. What is the case when the characteristic is 2?  Tips are helpful, a solution is ideal.   Thanks.


Why didn't anyone go back in time to prevent the damage cause by Narada's actions?

Why was the timeline not repaired after the Narada came back in time and changed everything? I have seem the Time Travel Repairmen go back in time for much less impactful things than this. So why not? Just how picky are the Time Cops?


I know this has been asked but I don't see any answers, just comments on the form of the question or responses that don't seem to speak my language.  I unintentionally (yes, I meant to use that word) installed Windows 10 on a HP desktop.  Since then I can't open web pages, can't print my calendar, some programs don't work while others only function on a part time basis and many other glitches that prevent me from doing my work.    After the install I saw a message that said the old files would remain for 30 days then be deleted.  I presumed that meant I could switch back.  I can't continue to function without a computer.


What is a reference value in Java and why does it change?

Coming from Languages without a GC (C/C++/Rust..) i am wondering what exactly is happening if an array is reallocated.    if we're in a c++ like language(pseudo code), this is considered bad:   Obj *x = xarr[2]; xarr.push(new Obj(12)); do_with(x);   running example in c++   after the push, x may point to freed memory due to reallocation of xarr.  x is basically just a pointer sized integer storing the memory address of xarr[2].  if i do the same in java. this is working just fine and i am wondering why?  List<OBJ> list = new ArrayList<>();     list.add(new OBJ()); list.add(new OBJ()); list.add(new OBJ());  OBJ x = list.get(2); for (int idx = 0; idx < 1000000; idx++) {     list.add(new OBJ());     } do_it(x);   what exactly is x and how and why is the memory address of x changed after  the array is seemingly reallocated?  obviously java is not deepcopying the array because x2 could not change x like in this code as you can see, the address of x is changing, too.  private static class OBJ {     int one;     String two;      public OBJ() {         this.one = 1;         this.two = "two";     } }  public static void do_it(OBJ o) {     System.out.println("o.two is: " + o.two);  }  public static void main(String[] args) {      List<OBJ> list = new ArrayList<>();     list.add(new OBJ());     list.add(new OBJ());     list.add(new OBJ());      OBJ x = list.get(2);      printAddresses("Address x", x);      for (int idx = 0; idx < 1000000; idx++) {         list.add(new OBJ());         }      OBJ x2 = list.get(2);     x2.two = "haha";      printAddresses("Address x", x);      do_it(x);  }    should not print out this  Address x: 0x525554440 Address x: 0x550882b80 o.two is: haha   full working example can be found here   so that begs the question how is the address of x changed after the reallocation of the list. And what exactly is the so called "reference"? I thought the so called "reference" in Java is just an ordinary pointer with something like autodereference and no pointer arithmetic because in Java everything is passed by value and not by reference. this is clearly evident in this code   public static void test1(OBJ o) {     o.one = 2; }  public static void test2(OBJ o) {     o = new OBJ();     o.two = "no reference"; }  public static void main (String[] args) throws java.lang.Exception {     OBJ x = new OBJ();     test1(x);     test2(x);      System.out.println("x.one: " + x.one + " x.two: " + x.two); }      printing out   x.one: 2 x.two: two   so it seems like x is behaving like a pointer but somehow java is redirecting it if necessary. How does this work? The term "reference" is extra confusing, why is it called like that?


"Restore With Replace" or drop/restore with Instant Initialization on?

What exactly does the restore argument "With Replace" do? I'm looking at needing to restore a database back to a beginning point on a regular basis, and I've been trying to figure out if there are any disadvantages to using Restore With Replace versus Dropping/Deleting the database entirely and restoring it.  Will "With Replace" wipe the log files and reset whatever bits might be left in system databases as well? It seems that it would be much quicker, as I don't have to wait for the database to finish dropping (the database in question is around 2TB). I've already checked the TechNet article on the Restore arguments, it doesn't go into this specific question.


Is the time loop on the cruise ship a second timeline in Triangle?

In , at the start when Jess arrives at the boat for the "first" time, is this the start of the continuation of the ending scene?  It's known that the cruise ship and any surroundings after leaving it is in a time loop.  Though Jess remembers the ship and tells Greg, she makes no indication that she is in the time loop. So yes, the movie was meant to confuse the user. But seeing that, according to the number of dead Sallys on board, the time loop occurs more than 20 times.  So, the first time she entered the loop, the storm sent her into an alternate reality with the never-ending time loop? Is this what the movie was showing? I noticed there is a deadly Jess that was not really in the foreground that got shot in the head, and stabs Sally and Downey in one of the rooms. I cannot really place where she falls into the picture seeing that one of the previous Jess instances killed that Jess instead of letting her jump overboard.  So is there a separate timeline/reality?


tense agreement (simple past tense after past perfect tense)

I found this sentence below in a test passage:     Less well known at the time was the fact that Freud had found out, almost by accident, how helpful his pet dog Jofi was to his patients.    Why is "Jofi was" used instead of "Jofi had been" when the tense of the main clause is "had found out"?


Find all real solutions for $x$ in $2(2^x−1)x^2+(2^{x^2}−2)x=2^{x+1}−2$.   I started off by dividing $2(2^x- 1) x^2 + (2^{x^2}-2)x = 2^{x+1} -2$ by $2$, and I got $(2^x-1)x^2 + (2^{x^2-1}-1)x = 2^x -1$. I tried dividing by $2^x-1$ on both sides which would give me a simple quadratic to solve for $x$, but I don't know how to simplify $\frac{(2^{x^2}-1)}{(2^x-1)}$. Am I missing a simple trick here, or am I on a completely wrong path to solving this?


What is causing Mint 18.1 "grub-efi-amd64-signed failed to install into /target/" and following installation failure?

The SSD is set to ACHI (whatever it is, it was automatically set). Secure boot is set to Other OS (only other choice).  Linux only. No Windows. Hate Windows. No dual boot. Microsoft hasn't touched my computer in years. Windows can suck it.  I formatted both SSD and HDD drives to GPT. - Corsair 30GB SSD (putting / and swap on here) - Old, ~300GB HDD. No problems with the drive have been found. (putting /home here)   The live Mint USB isn't corrupt. I did the checksum before installing, and have done multiple checks on the USB before booting.  Installing Mint in UEFI mode is resulting in "grub-efi-amd64-signed failed to install into /target/". Any forum I found on this error has not had a solution compatible with my problem. That package doesn't appear to exist. The installer will fail upon this message occurring. I have an internet connection. It's hardwired... (insert Metallica reference here). I can cruise the interwebs during the live boot.  Installing Mint in legacy, not UEFI, is resulting in no OS being found.  Specs: - 18.1 Cinnamon (3.2.6) 64-bit - AMD FX-8350 8 core x4 - 8GB RAM - AMD/ATI Turks XT, Radeon HD 6670/7670    I am not sure what the hell is going on anymore.


How to recover my files from memo and mobilse note after format factory?

I have Samsung galaxy s plus i9001. i have format factory my phone recently but i had some important notes in memo and mobisle Note and i didn't backup them before formatting, is there a way to restore them? i think they were stored in system storage.  i have a full copy of my usb storage, but i don't have copy of system storage, and i just need memo and mobisle note data, is there any copy of them in usb storage?


What does "speculative" exactly mean in philosophy?

Recently, I read a lot about "Speculative Realism" being the (not that) new kid in town. But what does "speculative" or "speculation" exactly mean in the domain of philosophy? What exactly distinguishes a speculative position from a non-speculative? And what are examples of this and that (beside of the SR)?


How do I close a new Firefox window from the Terminal?

I have multiple instances of Firefox running in Ubuntu 14.04. How can I close the most recently opened window/instance from the Terminal?  I tried using , but it didn’t work.


How can I find out which user groups my domain user belongs to?

Running Windows 7 on my work PC, how can I check which groups I am a part of on the domain from my PC? I know how to check the local groups using MMC (Microsoft Management Console), just not the groups managed on the domain. I do not have remote access to our domain controller to check this, as we use a proprietary admin tool to access the server and licensing prevents additional installation.


Example of primitive function which isn't Riemann-integrable on a closed interval [0,1]

Can you give me an example of a bounded f:[0,1]-> R , which has a primitive but it isn't Riemann-integrable? It must be on a closed interval from zero to one.


I've got a C++ program that uses SQLite. I want to store the SQL queries in a separate file -- a plain-text file, not a source code file -- but embed that file in the executable file like a resource.  (This has to run on Linux, so I can't store it as an actual resource as far as I know, though that would be perfect if it were for Windows.)  Is there any simple way to do it, or will it effectively require me to write my own resource system for Linux? (Easily possible, but it would take a lot longer.)


What is the difference between "Home" and"House"?

[1] *  I'm going to my friend's home*      [2 ]*   I'm going to my friend's house*   Which of the two sentences is correct?


Allowing comments in interactive zsh commands

It might be useful to allow comments in zsh commands written on the command line, as in bash, but  % echo test # test zsh: bad pattern: #   Any way to get the same behaviour as in the bash shell?


I'd like to create a regex statement in Python 2.7.8 that will substitute characters.  It will work like this...  ó -> o ú -> u é -> e á -> a í -> i ù,ú  -> u   These are the only unicode characters that I would like to change.  Such unicode characters as, ë, ä I don't want to change.  So the word, thójlà will become tholja.  I'm sure there is a way so that I don't have to create all the regex separately like below.  word = re.sub(ur'ó', ur'o', word) word = re.sub(ur'ú', ur'u', word) word = re.sub(ur'é', ur'e', word) ....   I've been trying to figure this out but haven't had any luck.  Any help is appreciated!


How do I check if my Java program is running in a virtual machine?

I have a Java software that needs to be licensed to clients. I have created a licensing module that would only allow the software to be executed on a specific hardware on which it was activated.   However I don't want the client to activate the software inside a Virtual Machine which would mean that multiple copies of the software could be used with a single license.  How do I stop my software from being installed in a VM?  Note:    I have done research on this and already found a solution. I'm posting it here so that it may be useful to other developers. It works only for VmWare and Virtual PC not on Parallels or VirtualBox I couldn't find a pure Java solution. It relies on native code.   If you know a better solution please post it as an answer.


I am trying to determine how many clusters to use for my k-means clustering using different methods. Gap statistic is giving me k=4 and Silhouette k=3. I have run k-means with both values and both of them seem to give decent result, but I still do not know which of them are the best. So I used the elbow method as well, in hope of it giving me either 3 or 4 but the plot looks strange and I cannot determine what k should be according to the plot. The total within sum of squares decrease by k=4, but suddenly on k=5 it increases and decreases once again on k=6, creating a "peak" between k=4 and k=6.   I am using the function "fviz_nbclust()" from the package "factoextra" in R:  fviz_nbclust(dataset, kmeans, method = "wss") fviz_nbclust(dataset, kmeans, method = "silhouette") fviz_nbclust(dataset, kmeans, method = "gap_stat")   Any advice would be helpful, as I am fairly new to the subject of clustering and may have missed important or basic knowledge.


Shortcode always displaying at the top of the page

I'm using a shortcode to pull in different loops via the loops-name.php. For some reason it is always at the top of the page. I googled it and using echo instead of return causes that problem but with my code I am not using echo. Here's the shortcode:  // setup the shortcode for use function friendly_loop_shortcode( $atts, $content = null ) { extract( shortcode_atts( array( 'category' => '', 'module' => '' ), $atts ) );  include(locate_template('loop-'.$module.'.php'));  }   Any idea why this is happening?


My question concerns the usage of "as if" as an idiomatic interjection. The references I have consulted (etymonline, online dictionaries, etc.) seem to agree that "as if" is used in this context to convey incredulity or doubt. This is how I have always thought of it.  The other day, I was with friends who used "as if" to express their surprise and joy about a wedding proposal. They weren't being sarcastic or incredulous; they were genuinely happy about the proposal. Here is a loosely paraphrased version of what they said:  "As if they're getting married!"  Is my friends' usage of "as if" standard? Is it a primarily regional distinction? (I am in Ontario, Canada right now.) The closest example we could come up with is someone says "I can't believe that you won first prize!" Of course, the person can and does believe it, so their words ought not to be taken literally. Is it the same idea with "as if"?


I have a csv with values like this:  "a very long value, with a comma","387621937291732193"  The number, despite being enclosed in quotes gets turned into a number in excel and shows up in scientific notation. How do you prevent excel from assuming that everything is a number? Why does excel not show any options when opening a CSV as it does for .txt files?


Expand div container to remaining height

I'm coding an image browser and I'd like to expand #panel-container to fill all available space of the viewport. The idea is to get rid of browser default sliders and let #panel-left and #panel-right do the job. Is this possible without JavaScript? Even with window resizing? This is what I came up with so far:   html, body {   width: 100%;   height: 100%; } #head {   background-color: yellow;   height:100px; } #menu {   position: absolute;   background-color: gray;   width: 250px; } #content {   display:flex;   flex-direction: column;   margin-left: 254px;   background-color: orange;    height: 50vh;  }  #panel-container {   display: flex;   flex-direction: row;   flex: 1;   border: 1px solid #BFBFBF;   overflow:hidden; }  #panel-left {   flex: 0 0 30%;   white-space: nowrap;   overflow: auto;   border-right: 1px solid #BFBFBF;   overflow: auto; }  #panel-right {   display: flex;   flex: 0 0 70%;   background-color: #eee;   overflow: auto;   align-items: top;   overflow: auto; }  #panel-right img {   max-width:100% }  <!DOCTYPE html>
HEADER

LEFT

 Line 1
 Line 2
 Line 3
 ...

      Some variable height content
   new line

Images

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20


setting counters for Lemmas proposition etc

\documentclass[12pt,reqno,a4paper]{amsart} %\usepackage[utf8]{inputenc} % not needed with up-to-date TeX systems \usepackage[english]{babel}  \usepackage{amsmath,amsthm,amsfonts,amssymb} \usepackage{mathtools} \usepackage{color} \usepackage{lineno} \usepackage{mathrsfs} \usepackage[all]{xy} \usepackage{tikz-cd} \usepackage[normalem]{ulem} % do you *really* need it? \usepackage{datetime}  \usepackage{hyperref}  \theoremstyle{definition}  \newtheorem{theorem}{Theorem}[section] \newtheorem{construction}{Construction}[section] \newtheorem{corollary}{Corollary}[section] \newtheorem{lemma}{Lemma}[section] \newtheorem{definition}{Definition}[section] \newtheorem{remark}{Remark}[section] \newtheorem{proposition}{Proposition}[section] \newtheorem{example}{Example}[section] \newtheorem*{question}{Question} \newtheorem*{solution}{Solution} \newtheorem{exercise}{Exercise}   \newcommand{\mc}{\mathcal} \newcommand{\mf}{\mathfrak} \newcommand{\xra}{\xrightarrow} \newcommand{\ra}{\rightarrow}  \pagestyle{myheadings}  \textheight 9.3in  \textwidth 6.5in \calclayout  % metadata  %\date{\today}  \title{***} \author{***}   \begin{document}  \end{document}   This is the minimal working example.   In this I am getting Definition 2.1, Lemma 2.1, Corollary 2.1  I am looking for a set counter that gives Definition 2.1, Lemma 2.2.  How do I change the code accordingly?  The following code   \numberwithin{equation}{section} \newtheorem{The}[equation]{Theorem} \newtheorem{Dfn}[equation]{Definition} \newtheorem{Lem}[equation]{Lemma} \newtheorem{Prs}[equation]{Proposition} \newtheorem{Crl}[equation]{Corollary} \newtheorem{Rmk}[equation]{Remark}   suggested by Mico is giving numbers which includes equations as well. I only want number sequence for theorem, lemma, proposition, corolalry etc but not equations.


How to include an external javascript file conditionally?

I have this code:  <script src="http://external/js/file/url.js"> </script>   I want to do something like this-  <script> if(2>1){ //include http://external/js/file/url.js } </script>   Any idea?


Splitting gzip-file into smaller gz-files without recompressing

I have a big .gz file. I would like to split it into 100 smaller gzip files, that can each be decompressed by itself. In other words: I am not looking for a way of chopping up the .gz file into chunks that would have to be put back together to be able to decompress it. I want to be able to decompress each of the smaller files independently.  Can it be done without recompressing the whole file?  Can it be done if the original file is compressed with --rsyncable? ("Cater better to the rsync program by periodically resetting the internal structure of the compressed data stream." sounds like these reset points might be good places to split at and probably prepend a header.)  Can it be done for any of the other compressed formats? I would imagine bzip2 would be doable - as it is compressed in blocks.


Can I tell if my VPS server (win 2008) is hosted on Hyper-V from within the image?

Is it possible, from within a windows 2008 virtual private server, to tell if the image is hosted in Hyper-V or some other virtualization technology? For example, are there any guest-os extensions that might be installed?  Background: I previously bought a VPS server from a company who offer VPS images hosted on either Virtuozzo or Hyper-V. I thought my original server was on Hyper-V, but it turned out I bought the wrong package. Now that the month is over I've ordered another server, and want to check I haven't made the same mistake.


As a Ph.D. student, should I spend time reviewing papers?

I am a PhD student halfway through my journey. After I published a few papers, I am getting review requests from some medium rank conference and journal editors. While certainly it is an honour for me, doing good review takes some time since I am not an expert of my broad field with everything at my finger tip. Does review experience add something to my CV particularly if I want an academic career? I am really sorry if the question sounds too shallow or cynical but I want to know whether I can cite the review experience to prove my worth as a researcher to a prospective hiring committee.


Is the shorthand $ \partial_{\mu} $ strictly a partial derivative in field theory?

The Euler-Lagrange equation for particles is given by   $$ \frac{d}{dt}\frac{\partial L}{\partial \dot{q}} = \frac{\partial L}{\partial q},\tag{1}$$  and for fields  it is   $$ \partial_{\mu} \frac{\partial \mathcal{L}}{\partial (\partial_{\mu}\phi)} = \frac{\partial \mathcal{L}}{\partial \phi}.\tag{2} $$  Comparing the two equations, the first one has a total time derivative $\frac{d}{dt}$ but the other one appears to have partial derivatives $\partial_{\mu}$. These derivatives come from integration by parts in the derivation of the EL equation. I was wondering why the field version has partial derivatives and the particle version has total derivatives?   I have also seen for the specific example (in Quantum Field Theory for the gifted amateur) of 1 dimensional waves on a string, the corresponding Euler-Lagrange equation is  $$ \frac{d}{dt} \frac{\partial \mathcal{L}}{\partial \left(\frac{d\phi}{dt}\right)} + \frac{d}{dx} \frac{\partial \mathcal{L}}{\partial \left(\frac{d\phi}{dx}\right)} = \frac{\partial \mathcal{L}}{\partial \phi}, \tag{3}$$  which uses total derivatives, so I am a bit confused.


Joining attributes from points to polygons

I have a polygon layer without data, and a point layer with attributes.  Each point is contained in one polygon, and I would like to have the data from the point layer joint in the polygon layer, so every polygon has the data from the point contained in it.  Is this possible with QGIS?


In the SE Android App, upvoted comments are not able to be un-upvoted

In the SE Android app, when I've upvoted a comment through the web interface, the tab for actions still shows up, and I have the option to upvote the comment when I click it. I can't un-upvote the comment from here though, so I shouldn't be able to click the tab at all.


How do you file a bug report for Windows?

I have come across an issue that I feel is a  in Windows 7. What is the official process for submitting an issue to Microsoft from a consumers perspective as an end user of Windows?


How to get pagecount dynamically in LaTeX?

I would like to get the page count in my LaTeX document such that I do not need to do manaually do it.  Pseudocode  \documentclass{article} \usepackage{hyperref} \begin{document}  Page count: % TODO here  \end{document}   Doing the thing with \usepackage{lastpage} ... \ref{LastPage} puts a hyperlink (blue) there, output in Fig. 1.  I want it without the hyperlink and in black.   Fig. 1


Proving that the sequence $a_1 = 4$, $a_{n+1} = \sqrt{a_{n} +20}$ converges and finding its limit

Given a sequence $\{a_n\}$, with $n\geq1$, where   $$a_{1}=4,$$   and    $$a_{n+1}=\sqrt{a_{n} +20}.$$   Prove via induction that, for all $n \geq 1$,     $$a_{n+1}>a_{n}.$$    Apparent Convergence   The sequence appears to be increasing, and possibly bounded at 5. How may I show convergence, and find its limit.   Regarding Notations   Additionally are there any beginners guide on using appropriate notations?  Thank you for your assistance.


How do we derive that $S^2$ is chi-squared distributed (with $n-1$ df)?

The claim is that $$(n-1)S^2/\sigma^2$$ is chi squared distributed with degrees of freedom $n-1$.   $(n-1)S^2/\sigma^2$ can be written as $$\sum_i^n \left(\frac {x_i-\mu}{\sigma}\right)^2-\left(\frac {\bar x-\mu}{\sigma/\sqrt n}\right)^2$$  I am almost there with understanding why this is $\chi^2_{n-1}$  distributed. I understand that each of these individual elements is $N(0,1)$ distributed, and that a sum of $n$  $N(0,1)$ distributed variables is $\chi^2_{n}$ distributed.   But my problem is, that the distribution of $\bar x$ is not independent of the $x_i$. How do we take this fact into account to derive the desired conclusion?  Note that the existing answers I've found did not specifically address that question.   EDIT: Note that I am not asking for an explanation of why we write $n-1$ rather than $n$. I am asking specifically how we can rigorously derive that it has the distribution that it has.   EDIT 2: Those who have marked this question as a duplicate of  may be misunderstanding my question. I am not asking for an explanation of why the degrees of freedom are $n-1$ rather than $n$. I am asking for a derivation that it is chi squared in the first place, and that it has $n-1$ degrees of freedom. My problem is clear from the question: How do we take the dependency with $\bar x$ into account? I'm not asking for an intuitive explanation of why it has $n-1$ df rather than $n$.


Was the explanation of the Back to the Future 2 timeline correct?

In the S08E05 of The Big Bang Theory, Leonard and Howard argue about the timeline of Back to the Future Part II. They talk about how the future Biff would go to a different future once he gives the almanac to 1955 Biff. And then when Sheldon came to explain it, I kinda lost it.


Unix ACLs - After Applying, normal permissions are wrong

I have a problem when using ACLs  I have one file  -rw-r----- 1 syslog adm 0 Sep  5 17:53 postfix_exporter_input.log   The permissions 0640 are correct and they need to stay like this. Now I want to apply an ACL, that allows a single user to read and write to that file. So I write:  setfacl -m u::rw,g::r,o::-,u:postfixexporter:rw postfix_exporter_input.log   getfacl now outputs the following, which is actually correct:  # file: postfix_exporter_input.log # owner: syslog # group: adm user::rw- user:postfixexporter:rw- group::r-- mask::rw- other::---   However, when I do a normal ls on that file, I get the following:  -rw-rw----+ 1 syslog adm 0 Sep  5 18:01 postfix_exporter_input.log   Why did the permissions change to group:rw ?


split rod in two at a random point and then split the two parts again into another

I have a rod of unit length which I split into 2 parts at a random point. Lets call the larger part X and the smaller part Y.  If we then split X into 2 parts at a random point and call X1 the larger part of this division and X2 the smaller part of this division.  and we also split Y into 2 parts at a random point and call Y1 the larger part of this division and Y2 the smaller part of this division.  What is the probability that X2 > Y1?   I get that the answer is 50% but when I try test it in a python program I get around 47.5%  Can somebody tell me if the answer is indeed 50% and if not can you explain why it isnt?


What do mathematicians mean when they say "form"?

As in differential form, modular form, quadratic form?   I'm sorry if this is a really silly question.


I have an assignment in which I have to give the steps of the installation. So I request you to be very specific on the steps


Are E and B fields synchronous in light waves?

says that     Classically, electromagnetic radiation consists of electromagnetic   waves, which are synchronized oscillations of electric and magnetic   fields that propagate at the speed of light through a vacuum. The   oscillations of the two fields are perpendicular to each other and   perpendicular to the direction of energy and wave propagation, forming   a transverse wave.   The page also includes this image:        which shows that.  But I find that sometimes the wave is represented with B-field at is peak on the nodes, like here:        taken , and it would make some sense, too, considering that it grows with acceleration and this is maximal there.  Can you please say if the second picture is wrong, and if those representations are both a mere pictorial, fictional, simplified, arbitrary representation of an EM wave?  Do you know if modern instruments are able to record with precision the oscillations of the electric and magnetic field when detecting photons (now we have lots of collimated photons in laser beams can you detect the fiels at the emittter or receiver) ?


I'm trying to use check_nrpe to check on a remote server, but it's not working and I can't figure out what am I missing...  # /usr/lib/nagios/plugins/check_nrpe -H XXX -c check_load -a 6,5,4 8,7,6 NRPE: Unable to read output #    remote's server syslog message:  nrpe[18058]: Connection from XX.XX.XX.XX port 16267 nrpe[18058]: Host address is in allowed_hosts nrpe[18058]: Handling the connection... nrpe[18058]: Host is asking for command 'check_load' to be run... nrpe[18058]: Running command: /usr/bin/sudo /usr/lib64/nagios/plugins/check_load -w 6,5,4 -c 8,7,6 nrpe[18058]: Command completed with return code 1 and output:  nrpe[18058]: Return Code: 1, Output: NRPE: Unable to read output nrpe[18058]: Connection from XX.XX.XX.XX closed.   to verify it manually, I issue same command on a remote shell:  bash-4.1$ id uid=497(nrpe) gid=497(nrpe) groups=497(nrpe) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 bash-4.1$ /usr/bin/sudo /usr/lib64/nagios/plugins/check_load -w 6,5,4 -c 8,7,6 OK - load average: 0.21, 0.23, 0.19|load1=0.210;6.000;8.000;0; load5=0.230;5.000;7.000;0; load15=0.190;4.000;6.000;0;  bash-4.1$


how to connect to a wifi (wpa/wpa2) in ubuntu server 14.04

I just isntalle ubuntu server 14.04.2, in the installation process i could easily choose the network name from a list and typed the password. After the installation i saw that Im not connected to the internet. It would be great if you tell me how to connect to the internet (noob version please :) ).


Having trouble understanding why $\sum_{i=1}^ni^2= \frac{n(n+1)(2n+1)}{6}$

So I understand $\sum\limits_{i=1}^{n}i^2 = \frac{n(n+1)(2n+1)}{6}$ but I'm not sure how to come to that conclusion. Having trouble understanding


How do I type two lines of subscript as shown below?


$A$ Noetherian and $f:A \rightarrow A$ suryective then $f$ inyective

I think this must have been questioned before, but after searching, I couldn't find it.   I thought of considering a set of $\{x_1, ..., x_n\}$ such that $\lt x_1, ... x_n\gt = A$. The hypotesis shows easily that $\lt f(x_1), ... f(x_n)\gt = A$  Also thought about having an ideal $I_1=Nu(f)$ and define $I_n$ such that I take an $x_n \in A -I_{n-1}$ and $I_n=I_{n-1} \cdot \lt x_n \gt$. Since A is Noetherian, for some m, $I_m=A$, but couldn't find a way with this to show that $f^{-1}(0)=0$ or anything else that shows that f is inyective.  One last thing I thought was the inverse of the first thought: I take a set that generates A, then the inverse of that set must generate A.   All of this trouble is because I'm assumming $A$ is infinite. If $A$ is finite it's easy because they have the same amount of elements


Let $(x - 1)^3$ divide $(P(x) + 1)$ and $(x + 1)^3$ divide$ (P(x) - 1)$. Find the polynomial $P(x)$ of degree $5$. I tried utilising the divisibility laws but to no result. I then tried bujte force to find two polynomials of degree 2 that satisfy both the equations. But still got no result. Please help me.


adding a constant to a polynomial so all its roots are real.

If I have a polynomial with real cofficients $p_x \in \mathbb{R}[x]$ , is it always possible to pick a constant $c \in \mathbb{R}$ so that $p_x + c$ only has real roots✱? Equivalently, does the following hold?  $$p_x + c \propto \prod_{j=1}^{\deg(p_x)} \left(x-a_j\right) \;\;\;\;\text{where}\;\; a \in \mathbb{R} $$  All constant polynomials are proportional to $1_x$ .  All linear polynomials are proportional to themselves.  A quadratic polynomial $ax^2+bx+c$ has only real roots if and only if $b^2 - 4ac$ is non-negative, which can be ensured by picking $c=0$ .  Geometrically, picking a constant $c$ is like picking where the x-axis is. It's definitely possible to pick a $c$ so that the line $y = c$ intersects the graph of $p_x$, but I don't have a good intuition for what the multiplicity is for the root I've created by choosing to intersect the graph of $p_x$ at some specific point.  For instance, $x^3$ has a triple root, but $x^3-1$ only has a single root. The graph of $x^3$ flattens out near the origin, but I'm not sure how to turn that into an actual argument.  Is it always possible to pick a $c$ so that the resulting polynomial has only real roots?    ✱ I'm thinking of an element of $\mathbb{R}[x]$ as a formal expression with a degree and as function drawn from $\mathbb{C} \to \mathbb{C}$ that's constrained to send reals to reals, so it makes sense to talk about its complex roots. The graph of $p_x$ is just a figure in $\mathbb{R}^2$, as usual.


If the series $\sum_{n=1}^{\infty} na_{n} $ converges, then $\sum_{n=1}^{\infty} na_{n+1} $ also converges?

I was tasked with proving or disproving the following statement:   If the series  $\sum_{n=1}^{\infty} na_{n}   $ converges, then  $\sum_{n=1}^{\infty} na_{n+1}   $ also converges.   I tried to disprove this using $\sum_{n=1}^\infty\frac{1}{n}$ and the fact it  diverges, and turning it to  $\sum_{n=1}^\infty\frac{1}{n^3} \cdot n$, but that didn't work. Intuitively the statement doesn't sound right because it is too specific.


How can I get system information from the command line?

Sometimes when I log on to a system via SSH (for example to the production server), I have such privileges that there can install some software, but to do that I need to know the system with which I am dealing.  I would be able to check how the system is installed there.  Is there a way from the CLI to determine what distribution of Unix/Linux is running?


Can rotating disk clocked at its center at the speed of light have an outer edge that travels faster than the speed of light?

I have been running this through my head for a few days and I understand I am probably missing something very simple here. If a wheel is spinning the outer edge will travel at a speed that is greater than the rotational speed of the center of the wheel as there is more distance to cover to keep up with the center. Should this same concept not apply to all speeds, including the speed of light. If the center is clocked at a rotation that equals the speed of light would the edge be clocked at a speed that is faster? I know this cannot be tested in a practical sense but is there a mathematical answer to this or have I, as I said earlier, missed something fundamental here?


Destroying a spammer does not delete their comments

Well, this is annoying. Last night some idiot who'd managed to earn the association bonus for his activity on Stack Overflow decided it'd be a brilliant idea to create accounts all over the network and post dozens of comments on other people's posts asking them to take some survey. Ok, no big deal, suspend him and destroy all these bogus accounts, taking the comments with them.  ...oh. Turns out destroying an account doesn't delete the comments. Given the description reads "all content", I'm considering this a bug. Steps to reproduce  Find a user that has commented somewhere. Destroy it. Note that the comments still exist.  Suggested resolution Since destroying an account already deletes all posts associated with that account (implicitly taking the comments with them), all that's really necessary here is to remove any comments that might remain on 3rd-party posts. So, do that.


I have a problem that when I try to delete the li that I made in js, the following code will delete all the list not just the clicked li and when choosing the parent the span does not work properly  function showdata() {     var newtodo = $("#newtodo").val();     $("ol").append('
' + newtodo + '' +" x" + "" + "
"); }  $(".deltodo").click(function() {     $(this).parents(".batodo").remove(); });


Strange output from java 8 file/word counting program

I'm working on an assignment which uses Java streams with lambda syntax. The program is supposed to be designed (1) To count a set of files (2) To count the words within those files (3) Print and display the result. This is an example of the output:  Count 11 files: word length: 1 ==> 80 word length: 2 ==> 321 word length: 3 ==> 643 .....   However, I'm getting this output instead:  primes.txt word length: 1 ==> hw8.WordCount@5c647e05 constitution.txt word length: 2 ==> hw8.WordCount@33909752 short.txt word length: 3 ==> hw8.WordCount@55f96302 ..... Count: 11 files   The program I've written is in two classes - FileCatch, which counts the files and WordCount, which counts the words (In theory). If anyone has any programming tips to help, I would be appreciated.  The FileCatch class  public class FileCatch8 {     public static void main(String args[]) {         List<String> fileNames = new ArrayList<>();         try {             DirectoryStream<Path> directoryStream = Files.newDirectoryStream         (Paths.get("files"));             int fileCounter = 0;             for (Path path : directoryStream) {                 System.out.println(path.getFileName());                 fileCounter++;                 fileNames.add(path.getFileName().toString());                 WordCount WordCnt = new WordCount();                 System.out.println("word length: " +  fileCounter + " ==> " + WordCnt);             }     }catch(IOException ex){     }     System.out.println("Count: "+fileNames.size()+ " files");    } }   The WordCount class:  import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.AbstractMap.SimpleEntry; import java.util.Arrays; import java.util.Map; import java.util.TreeMap; import static java.util.stream.Collectors.counting; import static java.util.stream.Collectors.groupingBy; import java.util.stream.Stream;  /**  *  * @author GeraldShields  */ public class WordCount {      /**      *      * @return       * @throws IOException      */     public Map<String, Long> WordCount()throws IOException {         Stream<String> lines = Files.lines(Paths.get("constitution.txt"));         Map<String, Long> wordMap = lines                 .parallel()                 .map(String::toLowerCase)                 .map(line -> line.split("\\W+"))                 .flatMap(line -> Arrays.asList(line).stream())                 .filter(word -> !word.matches("\\d+") && word.trim().length() != 0)                 .map(word -> new SimpleEntry<>(word, 1))                 .collect(groupingBy(SimpleEntry::getKey, counting()));         new TreeMap(wordMap).forEach((k, v) ->                  System.out.println(String.format("%s word length: 1 ==> %d", k, v)));         return wordMap;     } }


In Avatar TLA, why do Aang's tatoos light up in the avatar state?

In Avatar: The Last Airbender, Aang's eyes glow when he goes into the Avatar State. This seems to be the case with all Avatars, but Aang and the other airbending Avatars tattoos glow too.      Is there any reason for why airbending Avatars tattoos glow as well as their eyes?


I have a simple problem but I didn't manage to find any answer for it. In my title page, I just used  \title{Name of the title}   then  \hrule height 0,1cm \leavevmode \\[0,5cm]     {\Huge{\textbf{\@title}}}\\[0,5cm] \hrule height 0,1cm \leavevmode \\[0,5cm]   to print the title of my document. But it takes more than 3 lines on the PDF file, and I have a different spacing between the 1st and 2nd line compared to the 2nd and 3rd, which is a bit frustrating.   Anyone got an idea of why ?


I'm reading the Stein-Shakarchi. In Chapter 3 there is a problem and I need to check my solution:  Show that there is no function $f$, such that is holomorphic, defined on the open unit disk that extends continuously to its border, and is equal to the function $g(z)=\frac{1}{z}$ in the border.   Here is my "solution":  Extend the domain of $f$ in such a way that now is $\mathbb{C}$. Now is $\frac{1}{z}$ if $|z|\geq1$, and is equal to $f(z)$ otherwise. By Morera's theorem every triangle has integral egual to 0 at the border of $\mathbb{D}$, so is holomorphic, in the other hand, f and the new g agrees on a set with accumulation point, so they must be equal. Finally, $g$ is not holomorphic in all $\mathbb{C}$, and $f$ is, so we get a contradiction.  Is something wrong here? Do you have any other solution?


How to edit object array adding new data to set in C#

List<ChartView> data = new List<ChartView>();     var chartData = new object[data.length+1];     chartData[0] = new object[]                    {                        "Chart",                        "Standard",                        "BL"                    };     int j = 0;     foreach (var i in data)     {          j++;          chartData[j] = new object[]                          {                              i.particulars,                             i.originalDocuments,                             i.filingOfEntries,                             i.assessmentOfDuties,                              i.paymentOfDuties,                              i.releasing,                              i.gatePass,                              i.delivery                          };      }   How can i add new data in object without deleting the old data. In the above code charttData[0] have 3 value Chart,Standard,BL. I need to add new string to the set of object. It should become Chart,Standard,BL,Sample.  I am working on dynamic line chart like this. The number of lines must be dynamic it could be 1,2 or morethan 10.   Please note that this question is not about  (which was earlier suggested as duplicate).


I have a laptop. In said laptop I have windows 8.1 and 4 partitions.  My partitions list are as follows:    System Partition - Size:350 MB - simple driver Driver C (My windows 8.1) - Size:150 GB - simple driver Driver D - Size:390 GB - simple driver Driver E - Size:390 GB - simple driver   When I install Ubuntu on my laptop, my partitions are:   Unknown - Size: 1 MB because I install Ubuntu with my flash. Unknown - Size: 350 MB sda1 - Size: 150 GB sda2 - Size: about 800 GB   I want install Ubuntu on driver E or D but I can not see my drive E or D and drive D and E are sda2.


Pronouns and Gender Bias // Pronoun and Antecedent Agreement

I understand pronouns and their antecedents must agree (a singular pronoun must have a singular antecedent, and a plural pronoun must have a plural antecedent). However, I can not find an elegant writing option for singular pronouns, such as someone or everyone, without sounding gender biased.   Example:   "Everyone evacuated the city because he didn't want to expose himself to the deadly virus."  The above example may be correct but will sound gender biased to modern educated readers. If readers find the writing gender biased, they will be distracted from the content of the writing; thus, the writing will be rendered ineffective.   So modern tastes dictate the following:  "Everyone evacuated the city because he/she didn't want to expose himself/herself to the deadly virus."  The second example solves the gender bias problem but introduces the problem of clunky and graceless writing. The messiness of he/she, his/her, and himself/herself distracts readers (myself included). This gender unbiased writing is equally as ineffective as gender biased writing.   Is there an elegant solution that would allow pronouns and antecedents to agree without introducing gender bias or clunky writing?


How to store and restore the current font size?

In relation with this example: , I have to pass the current font size to the environment, but I prefer it takes it by itself?   To make it clear, I would like to store the selectfont parameters and reuse them later.  There is an obvious bracket solution, but the OP of the related question doesn't want to use brackets.  \documentclass{article} \pagestyle{empty}  \begin{document}  \begin{itemize}  \item Bla  \item{\small Small is small}   \item Bla is not small, but the OP of the related question doesn't want to use brackets.  \end{itemize}  \end{document}   I then try to make a switch system inside the \item macro and for this I have to know what are the fontsize parameters, to store and restore them.  \documentclass{article} \pagestyle{empty} \usepackage{paralist,xparse}  \newcommand{\Com}[1][\hspace{1cm}]{\item[#1\aftergroup\footnotesize]}  \NewDocumentEnvironment{Itemize}     {O{}    % item caracter ex $\bullet$     D<>{\normalsize}}{%     \begin{list}{#2#1\aftergroup#2}{%         \setlength{\labelwidth}{0em} % adapt as you want         \setlength{\leftmargin}{0pt}         \setlength{\itemindent}{5pt}%     }}{%     \end{list}}   \begin{document}  \large  \begin{Itemize}[$\bullet$]<\large> \item One \item Two \Com This is my comment \item Three \Com This is my comment \end{Itemize}  Back to current font size !  \end{document}


What is the full path for the pkill command?

I'm trying to add pkill to my sudoers file, but I think I need the full path for it to not give a syntax error. Does anybody know how to find it?


Trigonometry pre calculus level good question

Here is a trigonometry problem.     Given   $$\frac{\cos(\alpha-3\theta)}{\cos^3(\theta)}=\frac{\sin(\alpha-3\theta)}{\sin^3(\theta)} = m$$   Show that    $$m^2+m\cos(\alpha) = 2.$$   I tried to convert $\sin^3(x)$ into $\sin(3x)$ and similarly to cosine term, but couldn't get the answer. Please tell how to proceed further and any other way to solve it.


Number of irreducible quadratic polynomials over a finite field

To  find  the  number  of  irreducible  polynomials of  the  form $x^{2} + ax+b$  over  the  field  $\Bbb{F}_{7}$  I  manually  checked  all  the  possibilities  and  thus  found  the  answer  to  be  $21.$ Like $b=0$  is  not  possible  or  taking  $b=1$  and  checking  what  values  of $a$  works  here  etc. Surely it  was   tedious  and  time-consuming  process  and  I  don't  think  it  was  appropriate  either. For  what  should  be  done for  a much  larger  field$?$  Are  there  some  basic  theories  that  I  should  use. Hints  please.


How do you install windows 10 drivers for an old designjet 430 hp plotter?  It has a parallels port (LPT port), no USB.   I haven't been able to find Windows 10 drivers for it.


iOS 9.3 was released yesterday, so I wanted it on my iPhone 5s. However when I try to open Settings → General → Software Update, it pops up with a message:     Unable to Check for Update, an error occurred while checking for a software update.   I tried several things found on the internet like resetting the network settings, changing the DNS, switching to cellular network, but I am still getting the same error.  How can I download iOS 9.3 OTA?


The title is pretty self-explanatory. Do all the photons have the same energy?


How much swap space should I have? I have a 500GB HDD and 6GB RAM.  My specs:     Release 12.04 (precise) 64-bit   Kernel Linux 3.8.0-34-generic   GNOME 3.4.2   Memory: 5.7 GiB Processor: Intel® Core™ i3-3227U CPU @ 1.90GHz × 4   I just want to run Steam games smoothly.


I did run all tests in my sandbox and also tried to run them each individually - the overall avg code coverage is around 88%. However, when i try to validate my change set in prod, it is throwing an error saying "Code Coverage Failure Your code coverage is 73%. You need at least 75% coverage to complete this deployment." None of the test classes failed. Now i'm stuck at a place where it is unable to show what's causing this error nor any directives. I would really appreciate your help! Thanks!


awk how to separate in different files all the lines with the same content in a given column

I have a big csv file (Test.csv), which looks like this: 1,2,3,A,5 1,2,3,B,5 1,2,3,E,5 1,2,3,D,5 1,2,3,Z,5 1,2,3,B,5  I want to print the lines in which the 4th column has the same content in different files. Actually, I need to join these lines that have the same content in a new csv or txt file, named as the 4th column content. For example: Output: File A 1,2,3,A,5 1,2,3,A,5 1,2,3,A,5  File B 1,2,3,B,5 1,2,3,B,5  Since the input file is large, I have no idea how many different patterns there are in this 4th column. Column 4 contains only words and the other columns contain words and/or numbers. As I have no experience, I researched similar questions and even tried the following code: awk 'NR==FNR{a[$4]=NR; next} $NF in a {print > "outfile" a[$NF]}' Test.csv  but nothing worked. Can anyone help me, please? Thanks in advance.


I just received the following breadboard in a electronics starter pack I purchased.    I am a little confused in how I would go about prototyping on this board, all the tutorials I have read state that the breadboard should have a positive and negative  input on it. But it appears this one doesn't.  Could anyone help clear my confusion?


I have been to Schengen between 10/05/16 and 23/06/16 (45 days).  Now I wish to go back for 90 days. Do I have to wait for the beginning of new 180 days period? Or can I enter Schengen about 40 days before the end of the first one (let's say beginning of October) and then stay for 90 days? Can I go between 1/10/16-1/1/16?  I mean that way I would never overstayed in the last 180 days because every time a new day of my new staying is added,  an old one is expired of the 180.  Is there any official representative I could email to have an official answer?


For every $n \in \mathbb{N}$, find a function $f$ which is differentiable $n$ times at $0$, but not $n+1$ times.

For every $n \in \mathbb{N}$, (in this problem $\mathbb{N}$ starts at $n = 1$) find a function $f$ which is differentiable $n$ times at $0$, but not $n+1$ times.  The function I chose is the following:  $$ f_n(x) = \begin{cases} x^{n+1} &\mbox{if } x \le 0\\ x^{n} &\mbox{if } x > 0 \end{cases} $$  Now I can't think of the best way to prove that $f$ is differentiable  $n$ times at $0$ but not $n+1$ times.


JSOM to load pop with new item form if user is not created previously

I want to create one SP dialogue box at home page which load the new item form of list or survey if current login user is not created any item previously.  Is there any way to do that ?  I tried using query but it takes time to load data.  My Code is as below :  <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(init,'sp.js'); var context; var web; var user; var siteUrl = _spPageContextInfo.siteServerRelativeUrl ; //var userId= _spPageContextInfo.userId; var userId= 123; var flag=true; //var options = { title: "Announcements - New Item",url:"../Lists/Announcements/NewForm.aspx"}; var options = { title: "Announcements - New Item",url:"http://webtest:3333/Lists/test/NewForm.aspx"};  function init() { context = SP.ClientContext.get_current(); web = context.get_web(); //alert(flag); getCurrentUser(); retrieveListItems();  }  function getCurrentUser() { user = web.get_currentUser(); context.load(user); context.executeQueryAsync(onGetUserNameSucces, onGetUserNameFail); } function onGetUserNameSucces() { // TODO: implement your own succes handler     //alert(user.get_title()); } function onGetUserNameFail(sender, args) { // TODO: implement your own fail handler and do some logging }  function retrieveListItems() {       var oList = context.get_web().get_lists().getByTitle("test");      var camlQuery = new SP.CamlQuery();       //context.load(user);      //alert(userId);  camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name=\'Author\' /><Value Type=\'User\'>'+ user.get_title() +'</Value></Eq></Where></Query></View>');     this.collListItem = oList.getItems(camlQuery);      context.load(collListItem);     context.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded),Function.createDelegate(this, this.onQueryFailed));   }  function onQuerySucceeded(sender, args) {            //alert( _spPageContextInfo.userId);      var listItemInfo = '';     var listItemEnumerator = collListItem.getEnumerator();       while (listItemEnumerator.moveNext()) {         var oListItem = listItemEnumerator.get_current();         listItemInfo += '\nID: ' + oListItem.get_id() +              '\nTitle: ' + oListItem.get_item('Title');     }     alert(listItemInfo.toString());     if(listItemInfo==null){ //      flag='false';       SP.UI.ModalDialog.showModalDialog(options);            }      //alert(flag);        }  function onQueryFailed(sender, args) {     alert('Error: ' + args.get_message() + '\n' + args.get_stackTrace()); } </script>   I cant get result in the data


I have a kernel in which one initramfs is embedded.  I want to extract it.  I got the output x86 boot sector when I do file bzImage  I have System.map file for this kernel image.  Is there any way to extract the embedded initramfs image from this kernel with or without the help of System.map file ?  The interesting string found in System map file is: (Just in case it helps)  57312:c17fd8cc T __initramfs_start 57316:c19d7b90 T __initramfs_size


Various textbooks that I am currently consulting (including Spacecraft Dynamics and Control An Introduction - Anton H.J. De Ruiter | Christopher J. Damaren | James R. Forbes Section 1.4, page 32) use $\delta$, not $d$ or $\partial$ to express an infinitesimal quantity. In the context of the reference text above, the symbol is used as part of a general definition for the derivative of a vector. Specifically, given   $$\mathbf{\vec{r}}=\mathcal{\vec{F^{T}_{1}}}\mathbf{\vec{r_{1}}}$$   where   $$\mathcal{\vec{F^{T}_{1}}}$$   is a vectrix   $$[\mathbf{\vec{x_1}} \phantom{s} \mathbf{\vec{y_1}} \phantom{s} \mathbf{\vec{z_1}}].$$  The time derivative of the vector is defined as   $$\dot{\mathbf{\vec{r}}}\triangleq \lim_{\delta t\to 0}\frac{\delta\mathbf{\vec{r}}}{\delta t}.$$  In this context, what is the difference between $\frac{\delta\mathbf{\vec{r}}}{\delta t}$ and $\frac{d \mathbf{\vec{r}}}{d t}$ ?  Note about thermodynamic use of $\delta$: My understanding is that $\delta$ is used in thermodynamic equations to express path dependence of a scalar quantity such as heat or work. What does it mean in the context of an abstract physical vector?


Separating a certain section of lines in QGIS

I'm trying to separate a specific area of lines in a topo shapefile in Qgis so I can import it into Civil 3D without it taking several centuries to load in the full file, however when I use the "split features" tool it takes forever just to cut one line, and trying to cut multiple lines just generates an error.  Also, since it's hard to explain what exactly I'm trying to do in a few words: just imagine having a square polygon and cutting out a smaller square from the center and deleting the rest (but in this sentence replace "square" with "topo line data").


The top two tabs won't close. I've tried and can't seem to find out how to get rid of them on my own.


I've a large number of files, over 10,000, which I want to upload in FTP server. Now, I can't zip those files & upload it as I've to read those files individually in SAS software for my analysis.  If I use mput command, then the prompt as me to say "y" each time it tries to upload the file. This is very cumbersome. Is there any method by which it automatically upload the files without I've to manually entering "y" each time file wants to upload?  The command I was using was:  ftp ftp.myftp.com  *my ftp server name username:myusername password:mypassword ftp> lcd c:\local_folder ftp> mput *.*


Difficulties for Objects' Possessions (or Objects Prossession? What about Possessions of Objects?)

Well, as it is guessable from the title of the question, I have issues with possessions in general and for objects possession in particular.  Here is my main concern, hope to get durable solutions:   When should it be (object) + of + noun and when should it be (object) + (noun)? how about the ('s)? Do objects ever get ('s) for the possessions?


If $p$ and $8p^2+1$ is prime number than $$8p^2+2p+1$$ is prime number proof.  I know that prime number can write as a multiply 1 and $8p^2+2p+1$, so if I show that this number is a multiply $a*b$ where $a\not=1$ and $b\not=1$ than that is not a prime number, can someone help me?


All the time I gets this dependency issue when trying installing hostapd as mentioned here   Ubuntu version 14.04 Arch 64


Disable drag and drop option for multiple file uploader

These are the screenshots of multiple file uploader from the same SharePoint 2010 site. Some users are seeing the first and some are seeing the second one. Is it possible to disable the second view(drag and drop) by editing upload.aspx in the layouts folder?      Thank You


Comparing areas in scanned historical land use maps using QGIS?

I am a relative beginner to using GIS, and am running QGIS 2.0.1 in Linux. I have two historical maps which I want to analyze, that show land use patterns in the same area at two different moments in time. I have them scanned and geo-referenced as layers in one file. Side by side, they look like this:     The main thing I am interested in is to compare the extent of the light and dark green areas between the two maps. Is this possible, and if so, what is the simplest approach? Is there a way to do this based on raster analysis? And if I have to make a shapefile, what is the best way to do that?  What I have already considered:   Drawing shapefiles as polygons by hand, as described in . That would be VERY tedious. Creating simplified, high contrast raster images by using color selection, filters etc. by trial and error in the Gimp and converting that to a shapefile. The results were very sloppy.


References on De Broglie-Bohm pilot wave theory

Are there any good books related to the not much popular  and its application in ,  concepts?


There are only two clause in \ifthenelse—<then clause> and <clause>. If more than two test conditions are needed, the \ifthenelse has to be nested. This will make code awful and be hard to maintain. Is there a better way, for example, switch-case marco like this(like C language):  \switchconditon   {<case 1> <clause 1>}   {<case 2> <clause 2>}   {<case 3> <clause 3>}   an example by \ifthenelse:  \ifthenelse{\equal{#1}{ul}}%ul=upper left         {\let\position\AtPageUpperLeft}         {}     \ifthenelse{\equal{#1}{ll}}%ll=lower left         {\let\position\AtPageLowerLeft}         {}     \ifthenelse{\equal{#1}{pc}}%pc=paper center         {\let\position\AtPageCenter}         {}   Can you give a code to achive the last code function? Thank you.


Why different initialization of Python List giving different outputs for matrix multiplication

I was trying to do matrix multiplication, while initializing a list with a shortcut method i.e. C[[0]*column]*row.  The list was initialized how i wanted but it gave me the wrong answer. After that I tried initializing the code with for loop, it gave me the correct answer. Please help me out in understanding what is the reason behind this python list behavior.  This is my code:          A = [[1,2],[3,4]]         B = [[5,6,],[7,8]]         C = []         for i in range(2):             c = []             for j in range(2):               c.append(int(0))             C.append(c)         D = [[int(0)]*2]*2          for i in range(len(A)):           for j in range(len(B[0])):               for k in range(len(B)):                   C[i][j] += A[i][k] * B[k][j]                   D[i][j] += A[i][k] * B[k][j]          for r in C:           print(r)         print(D)    This is my Output:          [[19, 22],[43, 50]]         [[62, 72], [62, 72]]


Good or bad practice in Python: import in the middle of a file

Suppose I have a relatively long module, but need an external module or method only once.  Is it considered OK to import that method or module in the middle of the module?  Or should imports only be in the first part of the module.  Example:  import string, pythis, pythat ... ... ... ... def func():      blah      blah       blah      from pysomething import foo      foo()      etc      etc       etc ... ... ...   Please justify your answer and add links to s or relevant sources


bash shell store path to current file as variable?

When starting a project in Python, I want to save some environment variables in a file called environment_variables and source this file in the bashrc.  The file looks something like this:   username=$(whoami)  # project root path export PROJECT_DIR='/home/'$username'/nuclei_segmentation/'  # project data path export DATA_DIR=$PROJECT_DIR"data/"  # location of models  export MODEL_DIR=$PROJECT_DIR"models/"  # project output data export OUTPUT_DIR=$PROJECT_DIR"output/"   I would like to change the PROJECT_DIR path so it is platform/name independent. So this environment_variables file will always be in the root directory of the project and I want to set PROJECT_DIR to always be the location of the environment_variables file.  I thought I could do this with PWD but when called from bashrc this creates an error, I also thought of a solution using find to search for the file from the root directory but this seems to complex and think there must be a better way?


Why creating a new form and showing it in another thread does not raise cross-thread exception in Visual Studio?

Say I have a Windows form and then click a button to start a new thread.  If in that new thread I change something about the current form, like its background color, Visual Studio will raise an invalid operation exception as I have crossed threads doing UI work. However, if in that other thread I create a new form and show it, I get no such exception. Why is that?


Is there a way to backup save files in Machinarium?

Machinarium (Mac OS X) saves its files in a cache, so if you accidentally clear your browsing history, all of your files disappear. Is there any way to back them up?


I've got a problem with the finish of the answer of the following problem: .  How is that $(\mathbb{Z}^{n-1}\oplus\mathbb{Z})/(2,\dots,2)\mathbb{Z}$ with $n$ twos is equal to $\mathbb{Z}^{n-1}\oplus\mathbb{Z}_2$?   $\mathbb{Z}^{n-1}\oplus\mathbb{Z}=\mathbb{Z}^n$,since $n$ is finite and we have finite sequences, right? Or am I wrong?  Thanks in advance!


I'm now installing Ubuntu from a USB. I just clicked "Install Ubuntu" and the screen went black. I can't turn it off. It's a new Asus laptop with windows 10. What should I do?


What is the Difference between $F = mg$ and law of universal gravitation?

is (F=mg) equal to (F=GmM/r^2)? And what's the difference between them?