Ubuntu Server/Desktop 18.04 how update Vim from 8.0.1453 to 8.2

I am working with Ubuntu    Server and Desktop    and both are based with the 18.04 version  I need work with vim - by default it is installed in Server - it has the 8.0.1453 version.  But in the Desktop is not installed, therefore for the Desktop I did the following:   sudo apt update sudo apt upgrade sudo apt install vim   All ok, Vim is installed how is expected but again it is based for the 8.0.1453 version.  Even if in the Server I do   sudo apt update sudo apt upgrade   Nothing to update but Vim remains with the 8.0.1453 version  I am confused because in  page has the following note:  Version  Vim 8.2 is the latest stable version. It is highly recommended, many bugs have been fixed since previous versions.   Therefore from 8.0.1453 to 8.2 there is a considerable difference between the releases.  I am assuming that I should do a reference for a special 'repository' (I had this experience through MySQL), which one? and from where I should take that 'official' reference?


I have to hash a message with MD5, digitally sign it, and then verify.  I have looked around, but I can't find a step-by-step example. I understand how RSA works when a message is given as number (not hashed). But I am confused when I have to sign a hash.    For example: $n=33, d=7, e=3$.     I have a message: Hi I compute the MD5 hash, $H(m)$, which is c1a5298f939e87e8f962a5edfc206918. Now I have to sign it with $S = H(m)^d \bmod n.$   I get confused here: How can I perform this $H(m)^d$?  What will the result be after that?


Making a book with clickable buttons to move to Spawn, The Nether and The End

I have been working on getting a server up and running and I don't want to use anything but NBT data edits and command blocks no plugins, but any who I'm very tired and cant seem to wrap my head around this so I'm asking someone else, I have this snippet of code:  /tellraw @p ["",{"text":"Yes","color":"green","bold":"true","clickEvent":{"action":"run_command","value":"/tellraw @p {\"text\":\"Confirmed!\",\"color\":\"green\"}"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Confirm","color":"green"}]}}},{"text":"/","color":"dark_gray","bold":"false"},{"text":"No","color":"red","bold":"true","clickEvent":{"action":"run_command","value":"/tellraw @p {\"text\":\"Cancelled\",\"color\":\"red\"}"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Cancel","color":"red"}]}}}]   I believe I found that somewhere on Arqade and I need a book through the /give. I believe the when opened will present you with 3 options 1 for the world spawn 1 for nether(or just another set of /tp cords that I can change the xyz to what I need as I do not think you can travel between dimensions via commands) and 1 for the end if you could help that would be awesome


Are there differences between a VPN and proxy server in terms of anonymity?

From what we've been taught at networking lessons, I understand that a VPN (Virtual Private Network) is made to interconnect physically separate networks or computers via the Internet and sort-of emulate a local area network over these computers. I take applications like Hamachi, Tunngle or Evolve (RIP) as the main examples of a VPN.  Yet when I usually see a VPN mentioned, it is in sentences like "get a VPN to become anonymous" or "I am using VPN to hide my real IP address on this server". I fail to understand a) how could a VPN be utilized to connect to the Internet when it is made to interconnect private networks, and b) why is VPN used in such a manner when its purpose is different?  In these examples, people seem to be using a computer in the network as a medium in the transmission, masking the original IP address. Yet this usage matches another device I know - a proxy (Tor coming to my mind as one of the examples). But setting up a whole VPN seems pointless to me when all they need is a proxy server. Is it just me or do people really mix these terms up?


Prove $(a+q*d,n) = 1$ where $q$ is the product of all primes which divide n but not a.

Let $n,a,d$ be given integers with $(a,d) = 1$. Let $m = a + q*d$ where q is the product of all primes which divide n but not a. Prove that $m \equiv a \; (mod \; d)$ and $(m,n) = 1$.  The first part follows from the rules of congruences. $(m,n) = (a +q*d,n) = \ldots$ My idea would be to apply the Euclid property $(a,b) = (a-bq,b)$ here. However, I didn't manage to go so far with it. Do you see alternative strategies? References Apostol, Introduction to Analytic number theory, Exercise 4.


How to inject arguments into forest as tree

From the documentation, there is something called action character=@ to unfold macros. But if i try to use it with this code:   \newcommand{\hierarchy}[1] {  \bracketset{action character=@}  \begin{forest} forked edges, for tree={     font=\sffamily\bfseries,     line width=1pt,     draw=linecol,     ellip=5,     align=center,     grow'=0,     edge+={color=linecol, line width=1pt, rounded corners=5pt, -Stealth},     drop shadow,     anchor=parent,     l sep'+=5pt, }, where={isodd(n_children())}{%     for n/.wrap pgfmath arg={{#1}{calign with current edge}}{int((n_children()+1)/2)} }{}, where level=2{tier=second}{}     @{#1} \end{forest} }  }   there is a error which says:     Package forest error: nodewalk stepped to the invalid node   I guess it has something to do with the second #1 expression in   where={isodd(n_children())}{%      for n/.wrap pgfmath arg={{#1}{calign with current edge}} {int((n_children()+1)/2)} }{},   Any suggestions how to handle this?  Here is an complete example document:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[edges]{forest} \usetikzlibrary{arrows.meta,shapes.geometric,shadows} \title{Tests}   \date{October 2017}   \tikzset{ellip/.append style={rounded rectangle, inner color=blue!30, outer color=blue!40}}  \newcommand{\hierarchy}[1] {  {\footnotesize  \bracketset{action character=@}  \begin{forest}     forked edges,     for tree={         font=\sffamily\bfseries,         line width=1pt,         draw=black,         ellip=5,         align=center,         grow'=0,         edge+={line width=1pt, rounded corners=5pt, -Stealth},         drop shadow,         anchor=parent,         l sep'+=5pt,     },     where={isodd(n_children())}{%         for n/.wrap pgfmath arg={{#1}{calign with current edge}}{int((n_children()+1)/2)}     }{},     where level=2{tier=second}{}     @{#1} \end{forest} } }  \begin{document}  \hierarchy{  [Test1[Test2][Test3[...]]] }  \end{document}


What are the differences between the original Kaito Kid specials vs. the new Kaito Kid 1412 series?

I am currently watching . Should I watch the other  anime films?  What's the difference between this version and the 1412 version?  And another question, what's the meaning of 1412?


Dock shown both at bottom and left in Activities overview / search window

I'm using Ubuntu 18.10. I have installed Dash to dock gnome extension. But when i click on Activities button, two docks are shown. One at the bottom and one at the left. I want to see only at the bottom. Is there a way to remove the left dock??


How to decide if an advisor should be considered as a co-author of a paper or not?

I’m a PhD student working in CS. My advisor does not understand the subject I’m working on as it’s a bit off-topic compared to the topics addressed in the lab. He does get the main idea, but does not have enough technical background to input valuable comments that could contribute to the project. Plus, he does not seem to be that much interested in the topic: I barely see him, and he does not write any papers with me. He rather waits for me to finish the paper, then reads it lazily and comes up with one or two typos and advice about putting figures in a box and such. Quite disappointing and not the kind of contributions I’d expect from a co-author!  The first time I submitted this paper, I put him as a co-author hoping that it would get him to at least try to grasp some of the technical subtleties. Unfortunately, that didn't work. The paper got rejected eventually and I am now working on a new improved version. But I’m considering authoring it solo this time. When I hinted at it, my advisor told me that he pays for my PhD, and that my work belongs to his institution. So this is supposedly why he should be a co-author of this paper.  Do you have any thoughts or advice about what to do? I'd also like to know if this is common in CS: Advisors neither participating in the research nor writing papers with students?


Did anyone else get an attachment from the Super User newsletter?

What in all actually is this PDF attachment doing with the newsletter?    I'm fairly confident that this also came from Stack Exchange, so would someone care to enlighten me as to what's going on?  I admit I'm rusty at reading mail headers, but the sources seem to line up just fine.  Delivered-To: --REDACTED-- Received: by 10.229.68.6 with SMTP id t6csp224071qci;         Fri, 20 Mar 2015 12:28:47 -0700 (PDT) X-Received: by 10.55.31.97 with SMTP id f94mr119580342qkf.10.1426879727323;         Fri, 20 Mar 2015 12:28:47 -0700 (PDT) Return-Path: <do-not-reply@stackexchange.com> Received: from mx-out.stackexchange.com (mx-out.stackexchange.com. [198.252.206.125])         by mx.google.com with ESMTPS id i90si5136899qge.83.2015.03.20.12.28.46         for <--REDACTED-->         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);         Fri, 20 Mar 2015 12:28:47 -0700 (PDT) Received-SPF: pass (google.com: domain of do-not-reply@stackexchange.com designates 198.252.206.125 as permitted sender) client-ip=198.252.206.125; Authentication-Results: mx.google.com;        spf=pass (google.com: domain of do-not-reply@stackexchange.com designates 198.252.206.125 as permitted sender) smtp.mail=do-not-reply@stackexchange.com;        dkim=pass header.i=@stackexchange.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stackexchange.com; s=dk;     h=Content-Type:Message-ID:Date:Subject:Reply-To:To:From:MIME-Version; bh=1OWPTURI/S9xuD+By0vS6qm84rNbZTEnVTBe0n3jV2Q=;     b=VEwIjIH/yuaj1DiAJMIuXOs8vPo1fhJOHhM7v9IWtvRozVyDnMzZBeFVsaAiUDSmsMrXb8sH3X0TU2a94KkuzByGyong8s4pRn6CridgSwOJuQ1OLhN/zSNiSu00rPENBxFhmiABN0PNx8m6S8OZHwMMPob6SzQUm5IK1JsjFxY=; Received: from [10.7.2.15] (helo=[10.7.2.101])     by mx-out.stackexchange.com with esmtp (Exim 4.72)     (envelope-from <do-not-reply@stackexchange.com>)     id 1YZ0VC-0006l0-SY     for --REDACTED--; Fri, 20 Mar 2015 17:14:30 +0000 MIME-Version: 1.0 X-Mailer: MailBee.NET 7.0.4.334 From: "Stack Exchange" <do-not-reply@stackexchange.com> To: --REDACTED-- Reply-To: do-not-reply@stackexchange.com Subject: Super User Weekly Newsletter - Friday, March 20, 2015 Date: Fri, 20 Mar 2015 17:14:30 +0000 Message-ID: <2.9e47a33dae2ecd6e7599@NY-WEB01> Content-Type: multipart/alternative;


80's show or movie about Martian colonists, ships floating across the desert

I'm not sure if it's a film, a TV programme, whether it was from the 80's or the 70's, I think it was colonists on Mars, it had aliens, ships that floated across the desert (Mars I think) and that's about all I can remember, just something i watched when very little, would love to know what it's called. I seen somebody asked a very similar question, but the answer from what i could see was from some animated thing, this is not animated what I'm referring to.


This video  talks about the background radiation which we can observe today. It's from the beginning of the universe and has traveled so long that the expansion of the universe has changed its wavelength to microwaves, instead of visible light.  The way the video describes it i would think that as some point the waves from the background radiation would have to not be observable anymore, because they have been absorbed by an object along the way. Could they lose energy and not only their wavelebgth gets super long, but also their amplitude very low? And finally: will the universe at one point expand so fast (faster than light speed) that the background radiation waves cant ever catch up to us and we wont be able to observe them? If it ever should cease to be observable by us, when would that be approximately?  As i stated in the title: Will the background radiation get "dimmer"? If so when will it be "turned off"


after sudo apt-get install git:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.  The following information may help to resolve the situation:  The following packages have unmet dependencies:  git : Depends: liberror-perl but it is not installable E: Unable to correct problems, you have held broken packages.   after sudo apt-get install liberror-perl:  Package liberror-perl is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'liberror-perl' has no installation candidate


Is there a function to align string with spaces or special character?

EDIT: This is A duplicate.     &  Answered my question  I want to output a menu in C but I can't get it look good. I have search functions to do this in C and cannot find any?    A website used C# and String.Format() to achieve this, I wonder if this is possible to do in C ?  > [C#] Console.WriteLine("-------------------------------"); > Console.WriteLine("First Name | Last Name  |   Age"); > Console.WriteLine("-------------------------------"); > Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Bill", > "Gates", 51)); Console.WriteLine(String.Format("{0,-10} | {1,-10} | > {2,5}", "Edna", "Parker", 114)); > Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Johnny", > "Depp", 44)); Console.WriteLine("-------------------------------");   OUTput be like:   -------------------------------  First Name | Last Name  |   Age  -------------------------------  Bill       | Gates      |    51  Edna       | Parker     |   114  Johnny     | Depp       |    44  -------------------------------   In my own C I am trying to format one string and space or special character before and after such as:    -------------------------------- ------This x costs y dollar----- ------This i costs j dollar----- ... ... -------------------------------   The front would be %s the item name, and latter would be %d the cost. My idea was like to print this in a loop, it loops m(total items) times define a line width of 30 total. Each loop find the length of the item name, use another loop to /10 of the cost to find it's len and add both of them together. print ((line-totalLen)/2) in front, print the string and do the same after the string? The small problem would be if the whole string is odd or even number.


If the deity is both omnipotent and omniscient can the deity then construct a riddle so difficult that even he can not solve it?

If he can't create a riddle he can't solve then he can't do everything so he is not omnipotent and if he can create a riddle he can't solve then he is not omniscient...So which is it?   (Ok I know it's a bit silly but IS THERE an answer?)   So far no attempt of an answer... How come people only try to answer seriously those and only those questions that are too complicated for them to find an answer to? I aint saying its a paradox but perhaps an antinomy?  Theres a slightly positive comment though. // If you do a search on this stack exchange, you will find plenty of answers to this. The typical phrasing involves creating a rock so heavy he can't lift it, but they are all the same paradox. – Cort Ammon 1 hour ago //  Isnt the correct answer that NOTHING IS BOTH omnipotent and omniscient? Those who claim that god is both, are just trying to flatter him, thinking god is easy to fool?


access controller variable in javascript

Is there any way to access controller variable set in a Method in Javascript. In the example above the value is set in constructor. But when I set it in a method it is showing as NULL in Javascript  In controller:  public class abc {     public string varA { get;set; }     public void fn(){         varA='hello';     } }   In VFPage:  function hello(){     var bool = '{!varA}';     alert(bool); }   The alert statement in the VF Page(i.e bool) is displayed as null. Can you please help how to access a variable set from a method instead of constructor?


There are infinitely many $N$ such that $\frac{N}{2}$ is a perfect square, $\frac{N}{3}$ is a perfect cube, and $\frac{N}{5}$ is a perfect fifth power

Show that there are infinitely many $N$ such that $\frac{N}{2}$ is a perfect square, $\frac{N}{3}$ is a perfect cube, and $\frac{N}{5}$ is a perfect fifth power.    A hint is given with this question, which is: $7^{30}$ is a perfect square, a perfect cube and a perfect fifth power.  Can anyone solve this? Thanks!


I have problem in bookmark. For example   \section{fraction $\frac{a}{b}$}   in bookmark is not true! Please help me.


How do I do a clean install of Yosemite?

I'd like to start from scratch with Yosemite. I have Mavericks running on my iMac now but I'd like to just wipe the system and start with a clean Yosemite install.  How do I do a clean install of Yosemite on my machine, not an upgrade install?


We know that light is an electromagnetic wave which follows the wave equation. We write the wave as  $$f(x, t) = A\sin(kx - \omega t + \phi ),$$ which is sinusoidal. So my question is why can't it be a square wave or any other wave form which follows the wave equation?


I tried to recover my external HDD data as it got corrupted, and I succeeded, but now those folders are in primary memory with no permissions and my system booting saying disk space 0. I am using Ubuntu 14.04. Login screen takes password and then endless wait...  What should I do?


No proper responses to a bounty question

I don't want to award a bounty if I feel that the user hasn't answered the question in the right fashion. How do I prevent it?


"A cheap and dirty solution" - help me offend someone

Looking for one word with a negative connotation to describe "a cheap and dirty solution" in a professional (software) environment.   "The proposed solution is (a) ...."  Basicly synonyms of: "The proposed solution is shitty", "The proposed solution is bogus", "The proposed solution is bullshit".


What is the purpose of a self executing function in javascript?

In javascript, when would you want to use this:  (function(){     //Bunch of code... })();   over this:  //Bunch of code...


I would like to prove it using Euler's Theorem, which states that if $\gcd(a,n)=1$,then $a^{\phi(n)}=1 \pmod{n}$. Then, $480$ should be factored, but I am unsure how to proceed with the proof. Thanks in advance.


system willnot acknowledge ethernet or wifi

The machine has a Broadcom 802.11ac network adapter with Intel Ethernet Connection I217-LM. Works fine in W10, but nothing when trying to install Ubuntu 18.04. Is there a way making 18 work or should I change to another version?


Why wont my imported obj appear, it says its in blender but I cant actually see it

basically, in the little sidebar on the right, it has everything and it shows that my object is in the blender, but when I look at the actual grid thing, there are arrows and I'm able to move an invisible something however the object I can't see it (its a Roblox Character)


how to set my own message on beforeunload event

how to set my own message here, on my own language Whatever is set as returnValue the resulting message is Changes you made may not be saved. window.addEventListener("beforeunload", function(event){     if(saved == false){         event.preventDefault();         event.returnValue = "You didn't save changes";     } });


How to save an activity state using save instance state?

I've been working on the Android SDK platform, and it is a little unclear how to save an application's state. So given this minor re-tooling of the 'Hello, Android' example:  package com.android.hello;  import android.app.Activity; import android.os.Bundle; import android.widget.TextView;  public class HelloAndroid extends Activity {    private TextView mTextView = null;    /** Called when the activity is first created. */   @Override   public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);      mTextView = new TextView(this);      if (savedInstanceState == null) {        mTextView.setText("Welcome to HelloAndroid!");     } else {        mTextView.setText("Welcome back.");     }      setContentView(mTextView);   } }   I thought it would be enough for the simplest case, but it always responds with the first message, no matter how I navigate away from the app.  I'm sure the solution is as simple as overriding onPause or something like that, but I've been poking away in the documentation for 30 minutes or so and haven't found anything obvious.


Can I use prepositions 'in' and 'for' interchangebly in this context?

Question:      Which option is right. In case if both are right- for which case the using is more appropriate or I can use them interchangeably in some cases?   .     1) IN or/and FOR    I haven't seen him in a few years I haven't seen him for a few years      2) IN or/and FOR    I haven't seen him in a seven years  I haven't seen him for a seven years


c++ <= operator does not seems to be working

I am having quite an ununderstable problem here.  I want my x value to get from 0.0 to 1.0, increasing by 0.05.   It seems like a quite eazy thing to do. However, at the end of my loop when evaluating x <= L ( with x = 1.0 and L = 1.0) I get a 0 value.  I also tried hard writing L, It does not change the behaviour.  std::ofstream& operator<<(std::ofstream& ofs, Solver& s) {  double x = 0.0; double L = 1.0; while( x <= L){     //Do stuff related to my project      x += 0.05; } std::cout << "x= : " << x << std::endl;// 1 std::cout << "L= : " << L << std::endl;// 1 std::cout << "(x <= L)= : " << (x <= L) << std::endl;// 0 std::cout << "(1 <= L)= : "<< (1 <= L) << std::endl;//1 std::cout << "(1.0 <= L)= : "<< (1.0 <= L) << std::endl;//1 std::cout << "(x <= 1)= : "<< (x <= 1) << std::endl;//0 std::cout << "(x <= 1.0) : "<< (x <= 1.0) << std::endl;//0 std::cout << "(1.0 <= 1)= : "<< (1.0 <= 1) << std::endl;//1  } return ofs; }   At the end of the code you can see some printing test that I have performed.   Normally all of those test results should be 1.  Does anyone has an idea of how and why the test doesn't pass ?


Marking question answered if the answer occurs in the comments section?

I've begun noticing questions that look unanswered to the standard "answered" interface, but in the question area an answer was provided fully in the form a comment or several comments.  Protocol for handling this issue was discussed here in 2010:   A potential solution to the problem was offered (and declined) here in 2009:    Looking at instances where this happens it usually involves a very short answer, a simple solution, a link out, or a conversation where the answer is acheived during member interactions in the comments (there's an example here: )  The interface is designed intentionally so that comments cannot be marked as correct answers, and marking an individual comment as a correct answer would sometimes be inappropriate or impossible (because the answer is distributed). However, there is a real need for questions answered like this to be marked as answered: the interface improperly shows the question as unanswered (leading users who may know the answer to open it needlessly, and users who may need the answer to skip the question when it could solve their issue).  So I have a feature request:  Allows the member who asked the question (or moderators and super-users) to mark a question as answered even if there are no answers provided outside of the comments field. I don't know exactly how this would be best implemented, but it would ideally allow comments that contribute to the answer to be (optionally) highlighted so that later viewers can quickly find the key bits in a long string of comments. I think such a feature would be a real improvement for the StackOverflow interface and the value of the site.


Select max status from table with same id

I have table PartNo| Revision Status 501.   1.       Current 501.   2.       Internal 502.   1.       Internal 502.   2.       Trail  Want to retrieve from 1. PartNo 501 having status is current  2. Part 502 having status is Trail  Based on status preference I need to fetch part no based on status sequence 1. Current 2. Trail  . In Oracle SQL.


Widening Multiple Polygons at same time in ArcMap?

I am trying to edit polygons in the same feature class. I have a feature class which contain a number of polygons. I will need to increase the size of the polygons but only the width (the length has to remain). The polygons are not perfect rectangles thus making it a bit harder to edit as well.  I am wondering if I can do this using geoprocessing tools or DIE to edit the polygons at the sametime thus I do not have to edit the polygons one by one. I have quite a number of polygons to edit. If I have a tool to run or something the results will be more consistent compared to editing by hard.    Or I am wondering if it is possible to add a polygon on top of the original polygon with the same length but larger width.  Example:    The edited polygon should look like this:


How to know add/edit page in hook_form_alter?

I want to know whether form is add/edit in hook_form_alter. In Drupal 7 we can get all these in hook_form_alter.  I tried like this in D7:  function MYMODULE_form_alter(&$form, &$form_state, $form_id) {   // Check pages(s) , don't use $_GET.     if (strpos($form['#action'], '/add/') !== FALSE) {       $page = 'add';     }     if (strpos($form['#action'], '/edit') !== FALSE) {       $page = 'edit';     } }   Here I am getting add/edit in D7. Whereas in D8 I am not getting any it in $form['#actions']. And i don't want to use $_GET. Is there any way to check add/edit page in hook_form_alter.


How about hiding answer score for first few hours?

On Stack Exchange sites I have always felt answering in the right time can result in a good score. The first few answers always get some advantage. If the scores are hidden for some specific time (maybe 6-12 hours) and all the answers are shown randomly, then I think the process will be more unbiased.  Edit: Considering what Gamecat has told, the score may be kept visible only for the respective answerers. May be for the questioner also.


Splitting up comma separated values in a single cell to new rows

Every night, we run a batch that sends data from a point of sale service that sends data to Google Sheets, with the hope that we can trigger a Mailchimp automation or add subscribers (the POS software doesn't have an integration :().  The data is sent as an array value, which outputs like this...   The data is sent in single cells, nightly. This day in particular, 82 records were added as a single row, with commas separating the values.  What we need is to take those 82 values, and have them as separate rows in a different sheet automatically. Once that's done, we can use Zapier to send each new row to Mailchimp as a subscriber.  Pic below for desired effect...    Hope this makes sense!


tufte-book: Custom fullwidth environments

I'm using tufte-book and would like to define and environment that is fullwidth but also align-ed (from amsmath).  I've tried doing this with   \newenvironment{walign}{     \begin{fullwidth}\begin{align} }{     \end{align}\end{fullwidth} }   and this visually seems to work, but the compiler throws compilation errors;  LaTeX Error: \begin{align} on input line 35 ended by \end{walign}.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.37 \end{walign}  Your command was ignored. Type  I <command> <return>  to replace it with another command, or  <return>  to continue without it.   main.tex, line 39 LaTeX Error: \begin{list} on input line 35 ended by \end{document}.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.39 \end{document}  Your command was ignored. Type  I <command> <return>  to replace it with another command, or  <return>  to continue without it.   Minimal working example;  \documentclass[     a4paper,     nofonts,     justified ]{tufte-book}  \usepackage{amsmath}  \newenvironment{walign}{     \begin{fullwidth}\begin{align} }{     \end{align}\end{fullwidth} }  \begin{document}  This paragraph and the below \texttt{align} environment are regular-width, and leave space for a margin notes column to the right. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel facilisis volutpat est velit egestas dui id. Tempor nec feugiat nisl pretium fusce id. Venenatis tellus in metus vulputate eu. Quam elementum pulvinar etiam non quam lacus. Facilisi cras fermentum odio eu feugiat pretium nibh ipsum consequat. Sed lectus vestibulum mattis ullamcorper velit sed ullamcorper.  \begin{align}     Z_\theta &= \sum_{\tau \in T} q(\tau) e^{R(\tau)} \end{align}  \begin{fullwidth}     This paragraph and the below \texttt{align} environment are full-width, and bleed into the margin notes column.     Magna eget est lorem ipsum dolor sit amet. Enim eu turpis egestas pretium aenean pharetra magna. Massa placerat duis ultricies lacus. Cras ornare arcu dui vivamus arcu. Urna molestie at elementum eu facilisis sed odio morbi. Odio ut sem nulla pharetra diam sit amet nisl. Eu facilisis sed odio morbi quis commodo odio aenean. Mi tempus imperdiet nulla malesuada pellentesque elit. Id aliquet lectus proin nibh. Pulvinar sapien et ligula ullamcorper malesuada proin.      \begin{align}         Z_\theta &= \sum_{\tau \in T} q(\tau) e^{R(\tau)}     \end{align} \end{fullwidth}  I would like to define a custom environment `\texttt{walign}' that creates a \texttt{fullwidth}, \texttt{align}-ed environment, but doing so with \verb+\newenvironment{}{}+ gives compilation errors whenever I use the environment;  \begin{walign}     Z_\theta &= \sum_{\tau \in T} q(\tau) e^{R(\tau)} \end{walign}  \end{document}   What is the correct syntax / usage of the \newenvironment{}{} command?


Travelling to India from US via Germany; do I need a transit visa?

I have a valid US visa as I study there. I am returning back home via Germany. Do I need a transit visa in Germany?  Also, the ticket has no information about the flight terminals.


If every open set of a metric space $(X, \rho)$ is $\mu^*$-measurable, then $\mu^*$ is a metric outer measure.

Let $(X, \rho)$ be a metric space and $\mu^*$ and outer measure on $X$. Then, if every open subset of $X$ is $\mu^*$-measurable, $\mu^*$ is a metric outer measure.   I'm stuck with this problem. I'm supposed to prove that for every $A$, $B$ subsets of $X$ with $d(A, B) = \inf\{d(a,b) \mid a \in A, b \in B \} > 0$,  $$\mu^*(A \cup B) = \mu^*(A) + \mu^*(B)$$ and the hypothesis says that if $U \subset X$ is open, then  $$\mu^*(E) = \mu^*(E\cap U) + \mu^*(E\cap U^c)$$ for every set $E$ but I don't know how to do it. I thought of letting $E = A \cup B$ and then try to find some choice of $U$. With that choice of $E$, we have that  $$ \begin{align*} \mu^*(A\cup B) &= \mu^*((A\cup B) \cap U)+\mu^*((A\cup B)\cap A^c)\\ & =\mu^*((A\cap U) \cup (B \cap U))+ \mu^*((a \cap U^c)\cap (B\cap U^c)) \end{align*}$$  So at first sight, it looks like the open set $U$ we seek for has to be of one of the following two forms, $U \subset A$ and $B \subset U^c$ or the inverse, $U \subset B$ and $A \subset U^c$. The problem is that, even though the existence of an open set $U \subset A$ is always guaranteed, I don't know why it should also satisfy the property that $B \subset  U^c$ as well. My guess is that there is some property of metric spaces that I'm not aware off (or maybe I am really off the track here). Any help would be appreciated. Thank you!


Olvidé mi contraseña de Edubuntu pues dejé de utilizar mi equipo por casi un año. Hoy intenté actualizar el software y no pude pues me solicita permisos de administrador y sin la contraseña no puedo acceder a ellos. ¿Existe alguna forma de cambiar la contraseña sin utilizar la que olvidé? ¿Qué otra solución tengo sin incluir reinstalar Edubuntu?  I forgot my Edubuntu password because I stopped using my computer for almost a year. Today I tried to update the software and I could not because I requested administrator permission and without the password I can not access them. Is there a way to change the password without using the one I forgot? What other solution do I have without including reinstalling Edubuntu?


I have seen the following sentence: I can't get no satisfaction.  Can we say ''don't/can't [verb] no...''? I would like an explanation about this expression.


How do I export the code documentation in C# / VisualStudio 2008?

I have always made a point of writing nice code comments for classes and methods with the C# xml syntax. I always expected to easily be able to export them later on.  Today I actually have to do so, but am having trouble finding out how. Is there something I'm missing? I want to go Menu->Build->Build Code Documentation, but there is no option to do that, there.


I am working on an existant web page and I modify the DOM with jQuery.  In my script, a POST Ajax call sends to a php file the parameter registration_id, which is only composed of numbers (for example 310). This parameter is passed in a SQL request which returns 3 elements (id, context_id, time_spent from trackings table)  So, I have implemented some security in my php code:   I check if the POST Parameter is set I check if the length is < 5 I check if the parameter is only composed of numbers with ctype_digit() 4th security: the access to the database is strict: I created a user which can only SELECT on trackings table the fields id, context_id, time_spent.   What do you think about that ? Do you think I have to make prepared requets ?  Thank you in advance for your advices  Thomas


How to present changes to public after using git?

I'm a newbie in git. After I finish messing with the versions and stuff, how can I deploy my final version to the /var/www/html directory? I cloned the repo, but there is probably a better way of doing it. Thanks!  I'd like to update /var/www/html (i.e what the end user sees) whenever I push updates to /user/my-repo.git


How do I show that all continuous periodic functions are bounded and uniform continuous?

A function $f:\mathbb{R}\to \mathbb{R}$ is periodic if there exits $p>0$ such that $f(x+P)=f(x)$ for all $x\in \mathbb{R}$. Show that every continuous periodic function is bounded and uniformly continuous.   For boundedness, I first tried to show that since the a periodic function is continuous, it is continuous for the closed interval $[x_0,x_0+P]$. I know that there is a theorem saying that if it is continuous on a closed interval, then it is bounded. However, I'm not allowed to state that theorem directly. Should I just aim for a contradiction by supposing f is not bounded on the interval stated above?


Insufficent space for downloading APP from Play store

I am using a Micromax Canvas HD, which has an internal memory of 2Gb and the free memory is 1.3 Gb  I also have an 8Gb memory card on which the free memory is about 3.2 Gb and I'm am still getting the error: no sufficient Storage for downloading.


Is $\nabla \cdot (\nabla\times \textbf{F})$ = div $\textbf{F} $? Where $(\nabla\times \textbf{F})$ = rot $\textbf{F}$. If yes, why?


I've just upgraded to MikTeX 2.9, and find that biblatex under the natbib=true and style=authoryear options now interprets the \citet{} command to place a comma between authors' names and the bracketed year.  This was not the case under my previous MikTeX.  Here's a MWE:  \documentclass{article} \usepackage[natbib=true,style=authoryear,backend=bibtex]{biblatex}   \addbibresource{bib.bib}  \begin{document} From the outset, \citet{mar-84} gives the end away.  \printbibliography \end{document}   where the contents of 'bib.bib' include  @BOOK{mar-84,   author = {Gabriel Garcia Marquez},   title = {Cien a\~{n}os de soledad},   year = 1984,   publisher = {Catedra} }   I'd be grateful to hear of solutions or workarounds.


I installed SQL Server, I deleted my windows user account, now I'm trying to access SQL Server using administrator account but it could not connect. It throws error like this     The database TEST is not accessible. (ObjectExplorer)


I was just checking inner classes and I know we can declaired the private and static inner class however I do not under stand what can we achieve by declaring a inner class private and static.  class OuterClass {      private static class InnerClass{     } }   As this class is private no other class would be able to access InnerClass so Static would not help I think.  Is it just allowed for simplicity in java


I am searching for the title of a book I read a long time ago, from the style I would say that it was "golden age" sci-fi. The Earth is attacked by a race of aliens who have set up camp on the moon and are bombarding Earth with poison gas shells. Ordinarily this would not be a problem as Earth is protected by a superweapon called AKKA, that can easily see off any threat. However due to fear of it falling into the wrong hands it is stored dismantled, and the aliens have cleverly kidnapped the scientist(s) who can can reassemble it. Our heroes, who are out on space patrol beyond Pluto survive the initial attack and travel to the aliens homeworld and rescue at least one scientist and return him to Earth. There, using just bits of random junk, he constructs an AKKA device and points it at the moon, which simply vanishes along with all the aliens on it. The meaning of AKKA is never revealed in the book, as far as I can remember.   I also remember that before setting off, the heroes take a bit of time out to tune up their 6-cylinder space engine for maximum performance, that was some good thinking.


Why can't IP addresses start with 0 or 255?

It was specified somewhere (presumably in an RFC) that Class A addresses range from 1-126 in the first octet, and that class E addresses range from 240-254, but that leaves out two potential networks on either side, namely a 0 and a 255 network.  I believe that addresses starting with these IPs are invalid. Does this mean that they wouldn't work on a private network, and is there a reason for them being invalid?


Lenovo Ideapad 720S and Ubuntu 17.10 does not see rtlwifi NIC rtl8821CE

This system does not see the interface.  I have seen solutions regarding the rtl8821AE device, but I am not sure if that is what I need to do to make this wifi network show up.  The settings reports that there is no wifi card installed.  It looks to me like the modules for rtl8821ae are available, but it doesn't seem to work.  I will continue to search, but I am posting here because I can't figure out exactly what to do.


How do i know which wheels will fit my bike?

my bike is:  and everything I have came with the bike, only now the axle of the rear wheel bent and the skewer has lost its grooves.  and I would like to replace the rear wheel with the 12 x 142mm version of:   I want to reuse the old casettes and disc break. I was told to buy new rotor bolts, will these do?   Will I be able to migrate all my previous parts onto this new wheel and will the wheel fit onto my bike?  update: A replacement axle would be prefered. What axle would work for my bike?


I want to upgrade from Ubuntu 12.10 to Ubuntu 13.04 but I cant.  I downloaded the iso of Ubuntu 13.04 but it's only allowing a clean install.  The "software updater" (update manager as it was called in 12.04) only offers an upgrade to Xubuntu.  Is there a way to upgrade to what I want?


Convexity of the set with the fixed norm

These are the circles $\Vert x \Vert = a, a > 0$ for various norms of the form $ \Vert x \Vert = \left(\sum_i |x_i|^p \right)^{1/p}  $  And the $p = 1/2$ norm is not a norm, because it does not satisfy the triangle inequality : $$ \Vert x + y \Vert \leq \Vert x \Vert + \Vert y \Vert $$ And the set, with the fixed norm is not convex, whereas for other cases it is. Does it hold for any norm, that the level set with the fixed norm is convex in order to satisfy the triangle inequality?


Let $f: \Bbb R \to [0,\infty)$ be a continuous function such that $g(x)=(f(x))^2$ is uniformly continuous. Which of the following is always true?

A. $f$ is bounded      B. $f$ may not be uniformly continuous      C. $f$ is uniformly continuous      D. $f$ is unbounded.   Let $f(x)=\sqrt x$. Then $g(x)=x$ is uniformly continuous and unbounded. Hence option A can not be true.  Let $f(x)=1$. Then $g(x)=1$ is uniformly continuous and bounded. Hence the option D can not be true.  How should I check uniform continuity?  EDIT:  Since $g$ is uniformly continuous, hence for a given $\epsilon \gt 0$, $\exists \delta \gt 0$ depending only upon $\epsilon$ such that $|g(x)-g(y)| \lt \epsilon$ whenever $|x-y| \lt \delta$  $\forall x,y$.  $\Rightarrow |\sqrt g(x) -\sqrt g(y)||\sqrt g(x)+\sqrt g(y)|\lt \epsilon$ whenever $|x-y| \lt \delta$.  $\Rightarrow |f(x)-f(y)||f(x)+f(y)|\lt \epsilon$ whenever $|x-y| \lt \delta$.  What should be my next step now? How can I use the continuity of $f$?


If I have a lagrangian, then I can get the equations of the motion using the Euler-Lagrange equations. My question is about the converse of this statement: If one knows the equations of motion, like $𝑥=0$ and $2𝑦″+3𝑦2=0$, then how to derive the lagrangian (or equivalent lagrangians)? By $(x,y)$, I mean, generalized coordinates $q:=(x,y)$.


As far as I know, Version 1809 of Windows 10 was the last version that worked for my EMU1212M sound card and EmulatorX3.  Both of these are fairly expensive to replace.  I have both of them working in Version 1809 right now; unfortunately, my Windows 10 1809 has become corrupted and the Microsoft store and Windows Update no longer work.  Is there somewhere I can legally get Version 1809 of Windows 10?  I got Windows 10 for free many years ago after upgrading from XP (Paid big Bucks) to Win 7 (Paid Big Bucks) to Win 8 (Was pretty cheap) and finally Win 10 (which was free for me).  I don't see an install.ESD file in the $WINDOWS.~BT folder on my 1809 instance:   NOTE: I also have Emulator X3 and my 1212M working in a test copy of Windows 7 right now; unfortunately, I'm afraid if I upgrade that working Windows instance, I will be forced to select a version later than 1809 that will not support my EMU1212M.  I do have valid Win XP, Win 7 and Win 8 license keys but they were all used to upgrade to Windows 10 so I don't THINK I am technically allowed to use them for an extended length of time unless I perform a permanent downgrade.  I did not get a Windows 10 license key.  I got Win 10 through a free upgrade offer and it is tied to my Windows Live email account.


formula field to exclude weekends and public holidays

Currently i have a formula field on case object, which will return the no. of days the case is not touched. Here, i wanted to exclude the weekend days and the public holiday (which are already created in the company information).  Here is my current logic. Any suggestion is appreciated.  IF( IsClosed , null,  IF(ISNULL(PostDate__c),FLOOR(NOW() -  CreatedDate), DATETIMEVALUE(TODAY()) - DATETIMEVALUE(PostDate__c))).   Thanks


I got some output for my python script on the console. I would like to save the output in a separate file. can anyone have any idea?


My code is:  $description = $_POST['description']; $description = htmlspecialchars($description);   I use it to insert some description into a table:  $insertBillIndexQuery = "INSERT INTO $billIndexTableName (type, exp_category, shopping_date, shop, description, total_amount, paid, due, mode_of_payment) VALUES ('Expense', '$exp_category', '$billDate', '$shop', '$description', '$total_amount', '$paid', '$due', '$modeOfPayment')";   This works fine usually. However, when I type a special character such as a single quote, the system breaks, and I get an Error Querying Database error. I'm sure that the single quotes are causing the problem. Am I using htmlspecialchars wrong?


Event handler binding on updated div after successful AJAX

PHP populates div using result set from SQL with the following code: <div id="products-div"> <?php while ($row = $result->fetch_assoc()) {    generate_category_product_div($row); } ?> </div>  After i update this div with the following jquery/ajax post it seems that the click event handler is missing from any div in data. It only works when i reload the page. $(function() {    $('.category').on('click', function() {        var category = this.id;        $.post('category.php', {          category: category,       })       .done(function (data) {          $('#products-div').html(data);       });    }); });  Any help will be much appreciated.


Number theory: find $a, b$ such that $\frac{a}{b} = b.a$ in a general base $\mathcal{B}\neq 10$

I was playing with numbers and thinking about this "coincidence"  $$\frac{5}{2} = 2.5$$  That is, for positive $a$ and $b$ we have  $$\frac{a}{b} = b.a$$  And those questions came into my mind:  1. Could we find all such integers pair $a, b$? (clearly in base $10$)  And due to the fact that we work in base $10$, a more general problem popped up, that is, to write our numbers in a base $\mathcal{B}\neq 10$  and thence look for triplets $(\mathcal{B}, a, b)$ such that   $$\frac{a}{b} = b.a$$  When $a, b$ are written in base $\mathcal{B}$.  2. Could we find a general formula that will produce infinitely many such integer triples?   I am not really into number theory, except for few little questions, so this is more a sort of "I am asking to you experts in the field" question.  If for some reason this problem is unclear or wrong or impossible, just tell me!  Thank you!


Does æ differ or not (American English)?

There is a Cambridge American English Dictionary web-site. I was checking pronunciation on some words that have a common sound "æ". Although the sound supposed to be the same, its pronunciation differs in my opinion. I splitted two groups based on how the words sound.  The web-site I used is .  The first is group:  , , ,   The second one is:  , , ,   First question, does the sound really differ or it is me hearing it differently for some reason?  If it is different in the recordings, should that sound sound the same in all the words?  If it should sound the same, may it possibly differ in the recordings because they were taken from people living in different parts of America?  UPDATE:    Here is my recording in which I read the words from the list by two ways:  1) the one I heard in an American English phonetics video and from a girl living in Minnesota.  2) the one I taught in school and heard from one guy living in Michigan that said that the first option is more Canadian or something.  Are they both possible ways of saying it and I can choose any? If not, what is most correct way of saying it? And please tell me what sounds I make in the terms of transcription. Thanks!


What makes this construction?  int a[10]; int x; x = 2[a];   I do not understand what makes 2 [a]. It is another senility of C language?


How to integrate this type of integral: $\lim_{n \rightarrow \infty}{\int_ 0^1}\frac{n x^{n-1}}{1+x}dx$

What should be the strategy to solve these type of integrals. And how to solve this integral.  $\lim_{n \rightarrow \infty}{\int_ 0^1}\frac{n x^{n-1}}{1+x}dx$  I tried to solve it by substitution: multiplying and deviding by $x^n$ and substibution $t=x^n$  I got this   $\lim_{n \rightarrow \infty}{\int_ 0^1}\frac{1}{1+x^{1/n}}dx$   and don't know what to do now.


How to define a special hashtable with tikz?

Is there a way to create something that looks like this?


$I$ and $J$ are coprime ideals iff $x \to (x + I, x + J)$ is surjective.

I'm stuck on this exercise and any help would be well appreciated:     Let $R$ be a commutative ring with ideals $I,J$. Show that $R=I+J$ if and only if $\phi(x)= (x + I, x + J)$ is surjective from $R$ to $R/I \times R/J$.   Assuming surjectivity I got as far as to realize that I need to show $R\subset I+J$ since $I+J\subset R$ always holds (as they are both subrings of R). Now I'm not sure how to proceed.  Also, I don't even know where to begin in the direction $R=I+J$ implies $\phi$ is onto.  Again, any help, pointers or references are much appreciated.  Thanks in advance.


What is the explanation of the quantum entanglement in the quantum field theory framework?


The Vectorization operator: vec() can be typed     how to type inverse Vectorization operator ivec() in latex?


Trying to work on a project but keep getting this error.     Error  1   Inconsistent accessibility: parameter type 'GICT_Project.IObjects' is less accessible than method 'GICT_Project.DatabaseService.Insert(GICT_Project.IObjects)'  E:\GICT_Project\GICT_Project\DatabaseService.cs 86  28  GICT_Project   Don't know whats wrong. Have tried to change stuff to public but no dice.  Here's the problematic code:  public static void Insert(IObjects classType) //insert tool data {     string query = "";     string type = (classType.GetType()).ToString();     switch (type) {         case "Tools":             query = "INSERT INTO group2.Tools (ToolID, ToolName, Quantity) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Service":             query = "INSERT INTO group2.Services (ServiceID, ServName, ToolID) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Location":             query = "INSERT INTO group2.Location (LocationID, Location, Features) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Appointments":             query = "INSERT INTO group2.Appointments (AppointmentID, CustomerID, ServiceID, LocationID, EmployeeID) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Employee":             query = "INSERT INTO group2.Employee (EmployeeID, EmpName, EmpBirthday, EmpAddress, LocationID) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Customer":             query = "INSERT INTO group2.Customer (CustomerID, CusName, CusBirthday, CusAddress) VALUES(" + classType.GetSqlInfo() + ")";             break;         case "Skills":             query = "INSERT INTO group2.Skills (SkillID, SkillName) VALUES(" + classType.GetSqlInfo() + ")";             break;             //many to many tables need to create rows on connecting tables when initialised     }     InsertQuery(query); }   And this is separate class:  interface IObjects {     string GetSqlInfo();     int GetId();     void InsertData(); }


PKG will be sending the Private key,so it may not be secure,some one may get the private key,how to overcome this problem in IBE. Please help am unable to justify.


I have a scatter plot but I want to make a 3D plot where the points will be still in the XY plane but there will be a line over every point which will have different values for different (x,y) point.     I could not find any suitable image so I had to draw one. I have tried to modify the code available in pgfplots.pdf (I have mentioned below), but could not manage to get what I am looking for. Any help? Thanks.   \documentclass[tikz, border=2mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.12}  \begin{document}  \begin{tikzpicture} \begin{axis}[     view={120}{40},     width=420pt,     height=420pt,     %grid=major,     %z buffer=sort,     xmin=0,xmax=19,     ymin=0,ymax=19,     zmin=0,zmax=19,     enlargelimits=upper,     xtick={1,5,...,20},     ytick={1,5,...,20},     ztick={1,5,...,20},     xlabel={$x$},     ylabel={$y$},     zlabel={$z$},     %point meta={x+y+z+3},     %colormap={summap}{     %   color=(black);      %   color=(blue);          %color=(black); color=(white)          %color=(orange) color=(violet)          %color=(red)     %},     %scatter/use mapped color={     %   draw=mapped color,fill=mapped color!70},     ]     % `pgfplots_scatter4.dat' contains a large sequence of     % the form     % l_0   l_1     l_2          % 1     6       -1           % -1    -1      -1           \addplot3[only marks,scatter,mark=cube*,mark size=7]          table {s.dat}; \end{axis} \end{tikzpicture}  \end{document}


What equations so I can model a "bouncing particle"?  I've initially started with just $$f(x,y)=(x,\text{abs}(\sin(x)))$$  But I'm interested in doing gravity and speed changes and stuff. So how to proceed?  Some other equations perhaps?


Let $a$ and $b$ be the number of divisors of two positive integers , is it possible to explicitly express the number of divisors of their product only in terms of $a$ and $b$? If not , how can it be calculated efficiently without actually calculating the product?


length contraction in a gravitational field

As space-time is distorted in a gravitational field, relativistic effects such as time dilation and length contraction take effect.  Time dilation is explained simply enough: closer to the source of gravity, slower the time passage.  However, space contraction gives no such clear answer. for example, a single thread on the matter contains the following:   gravitational field would produce a transverse expansion of distances gravitational fields produce increased distances in the direction perpendicular to the field [gravitational fields] produce decreased distances in the radial direction   So, to pose the question as bluntly and directly as I can:  Ignoring all other effects (relativistic or otherwise), which is shorter: a measuring stick closer to the source of gravity or a farther one?  If the orientation of the stick plays a part, try to answer for both the case where it's pointing towards the source of gravity, as well as perpendicular.  Similarly, if the position of the observer relative to source of gravity plays a part try to take that into account (but it doesn't seem to in the case of time dilation so I don't expect it here either)


"the better" vs "the best" of two players

I used the book "Grammar and Style" and one example confused me:      He was the better/ best of two players.    The answer was the better but learners wonder how is it true since we use best after the definite article, the.   Was the answer given above correct?


Upgrade to 200 amp by adding another main panel?

I want to install central air conditioning in my home but my current service is 100 amps. If I were to upgrade to 200 amps service, could the breakers be configured where I have two 100 amp main breakers, one will be the already existing breaker box servicing the house as usual, and the other would be just for the central air conditioning. Is this possible to configure like this?


I have mistakenly deleted a file via while connected ssh. How I can recover that file or, if ubuntu has something like trash bin or so ?


How to get the date in a batch file in a predictable format?

In a batch file I need to extract a month, day, year from the date command.  So I used the following, which essentially parses the Date command to extract its sub strings into a variable:  set Day=%Date:~3,2% set Mth=%Date:~0,2% set Yr=%Date:~6,4%   This is all great, but if I deploy this batch file to a machine with a different regional/country settings, it fails because month, day and year are in different locations.   How can I extract month, day and year regardless of the date format?


What is a heap in the context of the JavaScript Event Loop?

I was looking at the event loop in Javascript and it keeps mentioning the word heap. The only source I could find explaining was a small one-line definition on the MDN website:     Objects are allocated in a heap which is just a name to denote a large   mostly unstructured region of memory.   Can someone provide a more detailed explanation of what a heap is in the sense of the JavaScript event loop, and its role in JavaScript?


I've enabled logging on my desktop application by configuring app.config  <system.diagnostics>   <trace autoflush="true" indentsize="4">     <listeners>       <add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="application.log" />       <remove name="Default" />     </listeners>   </trace> </system.diagnostics>     And then I can log on my application with a line like this  System.Diagnostics.Trace.TraceInformation("Start tailing file: {0}", watcher.FileLocation);   Now I want to enable the log file ONLY when I start application on Debug mode, because I don't want to distribute my package with log enabled.  Is there any way to configure it?


A word to describe an independent man/woman, believes in their thoughts and opinions?

Looking for a word or phrase to describe a man/woman, who has his/her own thoughts and opinions and isn’t afraid to put them across into conversation even when their opinion is outnumbered..?


Programmatically disable apt unattended upgrades

How can I programmatically/script disable apt unattended upgrades? Running Ubuntu 16.04.


Why a thread would interrupt another thread

In Java multi threaded applications, we deal with InterruptedThreadException. This Exception is thrown if another thread interrupts the current thread. Now what is the reason another thread might want to interrupt the current thread when it knows that it is going to cause an Exception?


How to add new line between lines in a file?

I have a file test.txt. It has 120 lines in it. I want to add on line 70 a new line "test" so I get: line 68 line 69 test line 70 line 71  How can I do it in one line command without using text editors such as vim?


If $(y_{2n}-y_n) \to 0$ then $\lim_{n\to \infty} y_n$ exists

Assume  $$\lim_{n\to \infty}  (y_{2n} - y_n)=0$$  then  $$\lim_{n\to \infty} y_n$$  exists.  I know it's not true, and I can see a sequence that disprove that $(1,1,2,1,3,2,4,1,5,3,...)$ but I want a sequence that has formula.  hint/help?  thanks


Assert shell script runs from desired directory

I have a small app I'm building and when I hand it off to other team members to work on I'd like to abstract out them having to execute the python script with args directly, and instead have them call on a shell script to do it automatically.  Repo structure below:  src/     app.py     module_name.py scripts/     runAppWithArgs.sh   In runAppWithArgs.sh, I thought to cd ../src and then execute my python code, however I found that if I called on the script as ./scripts/runAppWithArgs.sh (i.e from the top-level directory) since the 'working directory' isn't scripts/, I'm getting errors because it doesn't know how to cd into src/ correctly.  What is the fix for this?  At a high level I would like to "assert" that the shell script is running in the right directory context, and the only workaround i can think of seems kind of hacky where I try to parse out the working directory from pwd and then move to the correct directory as-needed, although I think that will require some hard coding that I'm not comfortable doing.  Any pointers would be appreciated!


I try to insert a graphic but it does not work. I try the following one ;  \begin{figure}[!htb] \centering     \includegraphics[width=5in]{D:\Utilisateurs\e0g411j00nm\Dropbox\images/phasediagram1.eps}     \caption{Effects of ....}   \label{fig:SOvsBAU} \end{figure}   why it does not work ? All my documents are in the same file.


Tell me hint for solve :  1) $ 2222^{5555}+5555^{2222} \equiv \mathord? \pmod 7$  2) $ 9^{2n+1}+8^{n+2} \equiv \mathord ?\pmod{73}$  thank you.


What's wrong with the following differentiation?

Consider $f(x)=x^2$ Then $f'(x) = 2x$ But $f(x) = x+x+x + ...+x$ ($x$ times)      then $f'(x)=1+1+1+...+1$         i.e. $f'(x)$         $=x \ne 2x$ So this implies that if we see derivative as an operator, its proper usage needs that the term that we differentiating must NOT be variable in terms of size. The representation should be fixed wrt to the variable that we are diffrentiating i.e the ones that consist of $f(x)=\sum_{i=lo}^{hi}g(i)$ with $lo,hi$ independent of the variable $x$. Is there any better explanation?


I have to get a regression model for a dataset, and it seems that the best fit is obtained by log transforming the outcome, so that I simply applied the least squares on the trasformed response vector.  $ \hat{log}({Y}) = \hat{f}(\bf{X}) = \hat\beta_0 + \bf{\hat\beta}^TX$   A prediction with this model estimates $E[log(Y)|X]$, which is NOT the same as a generalized linear model (log-linear), that estimates $log(E[Y|X])$.  In the latter case, if I wanted to get the vector of the estimated outcomes, I would simply compute $\hat{Y} = exp(\hat{f}(X)) = exp(log(E[Y|X])$.  Is there a way to retrieve $\hat{Y}$ in my case?  SOLVED: The difference between the two cases is that in the latter you get $E(Y|X)$ simply by exponentiating the mean of the normal distribution, while in the former you need to consider the mean of the associated lognormal. Multipling $exp(\hat{f}(X))$ by $exp(\frac12\hat{\sigma}^2) = exp(\frac12MSE) $ corrects the bias.


Tooltips on the badges page need checking

I just hovered over the Gold tag-badge on the badges page and this is what I saw*:     4 problems:   The tooltip says it needs 20 answers. The text says 200. The silver is incorrect too. Other tooltips appear correct in their numbers. Bronze badges have a single : all silver and gold badges ::... That's a bit odd. I'd suggest just one : Could we have some title-case for the badge type? What is "score"? Having  (oh the humanity!) it occurs to be that the language should probably be explicit and say it's talking about a vote score.   Taking the above into account, badge tooltips should read like:  Gold Badge: Earned at least 1000 net votes....   And this seems to be network-wide (which makes sense).  * Well that's almost what I saw. On my screen there was a mouse-cursor over the badge but KSnapshot is a massive racist** and won't let my cursor be seen by other users because it's white.  **Maybe it's just misunderstood.


An abelian group of order 6 has an element of order 6.

Let $ G $ be an abelian group of order 6.  Then $ G $ has one element of order 6.  And so, $ G $ is cyclic and isomorphic to $ \mathbb Z _6 $.  In general, It is not true that an abelian group of order $n$ has an element of order $n$.  However in the case of $n=6$, it is true. I'm wondering there is any rule of the case (for example, a rule of $n$ that makes an abelian group cyclic).


How to determine equation for $\sum_{k=1}^n k^3$

How do you find an algebraic formula for $\sum_{k=1}^n k^3$? I am able to find one for $\sum_{k=1}^n k^2$, but not $k^3$. Any hints would be appreciated.


A couple years ago I ran upon a  video demonstrating how researchers used x-rays given off by tearing tape off its spindle in hopes to miniaturized and cheapen future x-ray devices. As of late I have been wondering what interactions are causing this. I understood from the video that the electrons are being ejected due to the added energy to the system (peeling). This instinctively pointed me towards QED where interactions between electrons produce a photon for short periods. 1)Are those same photons from electron interaction the resulting x-rays? 2)Are the frequencies of the photons being limited by the $\Delta$energy$\Delta$time uncertainty, and/or $\Delta$position$\Delta$momentum uncertainty (at the vertex of the ripping tape, where high densities of electrons may accumulate) ? Note: I've also considered that the van der Waals force may come into consideration, not certain though. Looking for a QED based descriptions/answers. Any elementary references to this work is appreciated.


Why is zsh ignoring my -f switch when removing files?

I just moved to  from  on my mac, i hope this is the right place to ask.  Works great, although I've noticed that if I run rm, for example   rm -rf my directory   I always get a prompt asking me to confirm. Why does it do this despite me having the -f switch?  Can I turn it off?


When comparing two elements, should we use "more" or "most"? Example: "There are two locations, you can choose the more/the most convenient one."


How to handle large number of categories in a regression model?

I have a dataset with 200,000 entries with four columns (time_of_day, order_size, time_taken, shop_number). I need to build a model and predict time_taken using the other three variables. There are more than 30,000 shop ids.  My approach has been to: 1. Try to use one_hot_encoding to encode each shop no. However, this leads to very large number of columns in my dataset. 2. Build a separate model for each shop assuming all shops have different efficiencies independent of one another.  Any other approach will be appreciated? Also, what type of model should I use in my data? I have tried simple linear regression and bayesian regression till now.


Into how many chunks can one cut a round piece of cheese with n straight cuts?  Consider the $3D$ version  My try:   f(x) = number of pieces and $'x'$ as number of cuts.  $f(1)=2$  $f(2)= 2 + f(1)$   and therefore   $f(n) = n + f(n-1) $ and after solving the recurrence relation I got  $f(n) = [n^{2}+n+2]/2 $  Is this correct?


“the top levels of government” -- why not "of THE government"?

Example taken from: :     However no information has emerged as to the possible motive the men could have had in killing the charismatic opposition leader. His allies believe his assassination was a hit ordered by the top levels of government determined to silence dissenters. The allegation has been strenuously denied.   Why not say by the top levels of the government? What do you think the difference would be?


Let $M$ be the set of natural numbers that can be written using only $0$ and $1$(in the decimal system). Prove that, for any natural number $k$ $\exists m \in M $ s.t   i) $m$ has exactly $k$ $1$'s, and ii) $m$ is divisible by $k$. (e.g, if $k=3$, then the number $101010 \in M$ is divisible by $3$)    Any hint or solution is welcome. If anyone have any hint in mind please give me step by step. Problem seems to be very interesting to me.


How to get Ubuntu installer to sense Windows 8.1 as an OS

When I go to install Ubuntu so I can dual boot Ubuntu with windows 8.1 on my Toshiba Satellite C55 the Ubuntu installer does not sense My pre-installed windows 8.   I referred to these guides:  and , but the first link suggests, to use the install Ubuntu along sideoption or make an EFI partition however it also says to only have one EFI partition on the hard drive and windows is in an EFI Partition.   So I need to know how to Get Ubuntu to sense windows 8.1 or how to manually partition the hard drive so I can dual boot. Just so you know I have a Kubuntu 13.10 on a disk, Ubuntu 13.10 on a disk, and Ubuntu 12.04 on a disk.    If you need any more tech specifications I can give them to you.


About the continuity of the function $f(x) = \sum\limits_k2^{-k}\mathbf 1_{q_k \leq x}$

Let $q: \mathbb{N} \to \mathbb{Q}$ be a bijection and denote the image of $k \in \mathbb{N}$ by $q_k$.  Let $f: \mathbb{R} \to (0,1)$, $$ f(x) = \underset{q_k \leq x}{\sum_{k \in \mathbb{N}}} 2^{-k} $$  Show that:  1) $f$ is strictly increasing  2) $f$ is continuous at $x$ iff $x \in \mathbb{R} \setminus \mathbb{Q}$.  My work:  Let $x, y \in \mathbb{R}$, $x < y$. Then there exists $q_n \in \mathbb{Q}$ s.t. $x < q_n < y$. Now $$ f(x) = \underset{q_k \leq x}{\sum_{k \in \mathbb{N}}} 2^{-k} < \underset{q_k \leq x}{\sum_{k \in \mathbb{N}}} 2^{-k} + 2^{-n} \leq \underset{q_k \leq y}{\sum_{k \in \mathbb{N}}} 2^{-n} = f(y) $$ so $f$ is strictly increasing.  I think my proof of 1) is ok, but how can I prove 2)?


Keyboard shortcut helper app for windows?

I'm looking for an app like KeyCue for the Mac that will reveal all the keyboard shortcuts for the app you are currently using. For example in Photoshop the app would display a list of all the photoshop keyboard commands. Such a thing might not be possible on windows.  Are there any?


frictional force is nonconservative force

In nature there are mainly four kind of fundamental forces,electromagnetic force is one of them which is conservative force.If friction force is belongs to electromagnetic force then why it is not conservative force ?


Vim colors conflicting with terminal ones

For most vim colorschemes, they appear different than advertised when I open vim in xterm.   I've been using xterm-256color and set t_Co=256.  A similar thing happens when I use xfce-terminal, but the colors in the colorschemes will vary depending on which colors I set in the terminal's preferences menu. I've read that some colorschemes will rely on terminal colors, and that appears to be what's happening here.  Is there a way to prevent the vim colorscheme from conflicting with the terminal one?


Dynamic favicon using image manipulation similar to Gmail adding a count

I tried to figure it out looking at the source code but I couldn't figure it out.  I would like to know how to make a dynamic favicon with a count like Gmail does.     Any idea on how to do this?


Can I marry a british citizen  while I am in UK on standard visitor visa  though rules say I can't?


Java: Change Default Swing Orientation To RTL

How can I change default orientation of swing to RTL? All components of my application must be RTL and I need to change default orientation to RTL.  I know we can change Component orientation by this line:  Component.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);   But if I do this, I must change orietation of all buttons, textfields, ... one by one. My question just is how change default orientation of swing (maybe by use of UIDefaults).  If I can't do this, please say best way to implement such project. (All of components must be RTL)    for example we can see solution of changing default FONT in swing here:   Im looking for same solution for ORIENTATION.


How to generate a data sample along a annulus (between fixed radii)?

I would like to create a random data sample to test a clustering algorithm using python. One specific data sample I would like to generate consists of two non-overlapping annuluses (annuli?); however, it's okay if the inner-most annuli is a circle - as in the image below ().    I realize that I can sample N values of angles ti such that 0 ≤ ti ≤ 2 pi. Based on some reading online, I think one can generate N samples of circular data by specifying a fixed radius r such that xi = r cos(ti) and yi = r sin(ti). Applying this reasoning to the desired annulus, I am thinking one can repeat the process for variable radii rmin and rmax; however, I am not sure how to proceed from this point. My thinking is to generate n samples of radii ri (where n < N, the annulus cluster is a subset of all the data) such that rmin ≤ ri ≤ rmax; doing so necessarily means the first cluster should be the n points within the the outer-most annulus and the second cluster should be the N-n points within the inner-most annulus/circle.   So my questions are as follows:  1) Is my approach so far reasonable? Are there (dis)advantages to this approach, such as clustering more near centers or borders?   2) If my approach is wrong, why is it wrong and what would be a better approach?  EDIT:  The original post that serves as a potential duplicate actually shows how to sample points within a circle, not an annulus. I am concerned with the case of an annulus.


Can't type password in the console after pressing ctrl+alt+f1

Background: I want to install nvidia driver so I download NVIDIA***.run file and it should be installed in console with graphic interface closed. After press ctrl+alt+f1 I can enter console and ubuntu ask me to login before I can do something. And I know my username and password correctly. Problem: After I type username and press enter it shows 'Password:' but before I can type password the cursor jumps to the next line and wait for about 2 seconds, it shows login incorrect.When I type the password after the cursor jumps to next line and press enter(the password I typed can be seen in this line, I know for sure that password do not shows in ubuntu and I think I just can't type password under the problem), it show the same line 'login incorrect'.  It's not about the wrong username and password or some problem made by typing password in the right small keyboard.


Recurrence problem with a game of probability

Fair coin flipping (50% on both sides) $P_1$ and $P_2$ plays a few games of fair coin flipping. Assume player $A$ starts with $x$ coins and player $B$ with $y$ coins. Let $P_n$ denote the probability of player $A$ winning all coins. Find $P_0$ and $P_{x+y}$, then write a difference equation for $P_n$. Solve the difference equation Find the odds of player $A$ winning over player $B$ if $A$ starts with, e.g. half the coins $B$ starts with. How far I've come I've been able to produce a recurrence relation $P_n = \frac{1}{2}P_{n+1} + \frac{1}{2}P_{n-1}$. And I assume $P_0 = 0, P_{x+y}=1$, since when player $A$ has 0 coins, he also has $0\%$ chance of winning, and when player $A$ has $x+y$ coins, he's already won, therefore it would be $100\%$ Correct me if I'm wrong. All help appreciated, thanks a lot.


//turns a string of integers into an int[] array // reversed is the name of the string of integers  Here is the code:      public int[] makeintArray(){           intArray = new int[reversed.length()];           for (int i = 0; i < reversed.length(); i++){               intArray[i] = reversed.charAt(i) - 48;               System.out.println("int " + i + " is " + intArray[i]);   }   System.out.println("IntArray is: " + intArray);   return intArray;   }  //Whenever I run this I get the integer array returned as "cf814a82@I[" rather than [3, 3, 8, 2, 3, 8, 2, 8]


Strange roughness feeling on electrically ungrounded surfaces

When I have a device or a surface (typically metallic) that are not well connected to ground I feel a strange feeling when I pass (gently rub) my hand on them. Like the roughness of the surface is different.  I only feel it when I move my hand over the surface and not when it is still. I tested this with AC or DC currents, and I can feel it in both cases.  I know it has to be with charges accumulation at the surface (call it electrostatic charge), as expected from a conductive material, but I cannot see why exactly I feel that strange feeling while rubbing my hand and not when it's still.  Can it be related to something like an "electron drag force"? Or is there more into it?


I was filling out the visit visa form as my current company wants to take a few members of the team to the UK.   There is a question that asks you about your previous history in the UK and in it, they ask, if you have ever been deported, removed, refused or "required to leave the UK"? (There are also other options)  The first 3 are a no for me, but I'm not sure if "required to leave the UK" applies in my situation. I used to be on a student visa in the UK. I applied to extend my visa to another tier the day before my student visa expired, which means I was on 3C leave and technically lawful at the time. But then I withdrew my application after a while and I departed the UK in the next 2 weeks.   Technically this could mean I overstayed and was "required to leave", however it was a voluntary departure at my own expense.   Now I'm not sure if this period counts as "required to leave" and therefore I should include this on my visa form. I do have the original case reference number from voluntary departures and what not.


UPDATE statement where MAX query show error 1093

Why this query didn't work    update gaji set jumlah_gaji='10' where jumlah_gaji = (select max(jumlah_gaji) from gaji);


How do I remove a summoned Ender Dragon with no AI?

So I used the command /summon EnderDragon ~ ~ ~ {NoAI:1} so that I would have an Ender Dragon that would just sit there.    I then wanted to get rid of it, but doing /killall EnderDragon didn't work, neither did /killallnpc, and I can't seem to do any damage, even with a diamond sword and maximum strength using commands.    I'm not sure why I can't get rid of it; I think it's because the dragon has no AI, but I need to get rid of it somehow, any ideas?


On my laptop I have Ubuntu 11.10 and Windows 7 in dual boot mode.  I made a partition of 30 GB for Ubuntu but now it's too small and I want to increase this disk size from 32 GB to 100 GB.  This is home my disk looks like:  C Drive - 360 GB D Drive - 200 GB E Drive - 80 GB   On the F Drive I installed Ubuntu which contains 30 GB.  How can I increase this partition from 30 GB to 100 GB?  Someone suggested  tool to achiveve this. but there is a risk to lose my Windows or Ubuntu install.


Concerning the proof Euclid lemma on prime numbers

Euclid's Lemma: Let $p$ be a prime number, and let $a,b\in \mathbb{Z}$. Then $$p\mid ab\implies p\mid a\vee p\mid b$$  I know that there are proofs available in the websites. I'd like to get some feedbacks what you think about the proof i made here.  Proof: If $a,b=0$, the implication is clear. Now suppose $a,b\neq 0$. Suppose $p\mid ab$. We know that $(a,p)\mid a$ and $(a,p)\mid p$, which implies that $(a,p)\mid p$ (by Specialization). But $$(a,p)\mid p\iff (a,p)=1 \vee (a,p)=p.$$ Checking the cases $(a,p)=1$ and $(a,p)=p$, we see that $$(a,p)=1\implies p\mid b\implies p\mid b\vee p\mid a$$ where the first implication is used by the Bezout's lemma, and  $$(a,p)=p\iff p\mid a\wedge p\mid p\implies p\mid a\implies p\mid a\vee p\mid b.$$ Altogether, $$(a,p)=1 \vee (a,p)=p\implies p\mid a\vee p\mid b.$$ QED. Is this a valid proof? If there are mistakes in some directions, please let me know.


If I have edit privileges, how do I suggest an edit?

I have 2000 rep points and therefore have edit privileges, but I want to suggest an edit to an answer, because I wouldn't just improve grammar and formatting, but overhaul the answer to make it more clear and concise. I think the poster would appreciate it, but I want to get their permission first.  Possible solutions:   Use a private browsing session to suggest the edit as an anonymous user Go ahead and post it (and let OP roll it back if they prefer) Write a comment asking if OP would appreciate it


How do I bypass the google verification on my galaxy s6 after I factory reset the phone? Had to reset the phone after an app I downloaded made my phone have a melt down causing me to reset it but now I can not move past the Google setup. When I did the hard reset I was unaware that The gmail verification would be an issue unfortunately I no longer have access to the original google account. how do i get around this so i can use my phone???


Back button on question view does not work

Sometimes it's greyed out, sometimes it registers a press but does not respond. Sometimes minimising the app and returning resolves the issue, but generally the fastest solution is to manually close and reopen the app.    App Version: 1.4.3.7 Device: iPhone 6 OS Version: Version 9.2.1 (Build 13D20)


Finding the MLE if the second derivative is not less than 0

Let $X_1,\,X_2,\,X_3,\ldots ,X_n$ represents a random sample from each of the distributions.  I have a certain function :  $$f(x;\theta)=\begin{cases}e^{\theta-x}& x\geq\theta \\ 0 & x<\theta\end{cases}$$  for $\theta\in(-\infty,\infty)$.  Finding the MLE!  My answer is the following :  $$\begin{align} L(\theta;\,x_i)&=e^{-\sum_{i=1}^n(x_i-\theta)}\\ \ln{L(\theta;\,x_i)}&=-\sum_{i=1}^n(x_i-\theta)\\ \ln{L(\theta;\,x_i)}&=n\theta-\sum_{i=1}^n x_i\\ D_\theta\ln{L(\theta;\,x_i)}&=n>0\\ D_{\theta\theta}\ln{L(\theta;\,x_i)}&=0 \end{align} $$  But i'm having trouble to find $\hat \theta$  My professor said that we must use ordered statistics when we meet this case. I mean, when the second derivative is zero or greater than zero.  But how to use ordered statistics for finding the estimator?


How to install several independent firefox instances on ubuntu?

My wife helps out a friend with managing the social media accounts of their small business. For that, she would like to have three independent Firefox instances installed on her Ubuntu laptop, because she frequently uses different logins for facebook, twitter, etc. at the same time. Additionally, she wants that   Firefox remembers the logins, but separately for each instance, so she can always be logged in e.g. facebook with three different accounts. Logins and passwords should not be shared between the instances. Each firefox instance is somehow distinguishable by a different theme color or something. all of the instances share her Home folder, where she keeps all her files Any changes to her workflow are not debatable :-)   What I tried:  First, I wanted to just create three different users and run one version of firefox as each. Then I though about the home drive problem, and resorted to Docker. I created three docker containers running firefox, used an extension to color the tabs and mounted the home folder. Unfortunately, firefox seems to run very unstable in a docker container, tabs frequently are crashing, and there are additional problems (e.g. sound) that are for sure solvable, but I am asking if anyone knows another way to achieve her goal?  Apparently, firefox creates some hidden folders in the HOME directory, where stuff like extensions and logins are stored. Is there a way to change that location? Any other ideas? I was reading about "Profiles" in firefox, but was not able to find that in the newer versions (she uses v57 I think).


nullPointerException between fragment and main activity, android/android-studio

I want to make a communication between my fragment and main activity so I need to get switch.isCheked but get:     java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.app.Activity.findViewById(int)' on a null object reference   MainActivity.java  public class MainActivity extends AppCompatActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);     getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new NotesFragment()).commit();         BottomNavigationView bottomNavigationView = findViewById(R.id.bottom_navigation);         final   NotesFragment notesFragment = new NotesFragment();         final   RemindersFragment remindersFragment = new RemindersFragment();         final   SettingsFragment settingsFragment = new SettingsFragment();          final Switch aSwitch =    settingsFragment.getView().findViewById(R.id.switch_pop_up);          bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {             @Override             public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {                 Fragment selectedFragment = null;                  switch (menuItem.getItemId()) {                     case R.id.action_notes:                         if(aSwitch.isChecked())                         Toast.makeText(MainActivity.this, "Your Notes", Toast.LENGTH_SHORT).show();                         selectedFragment = notesFragment;                         break;                     case R.id.action_reminders:                         if(aSwitch.isChecked())                         Toast.makeText(MainActivity.this, "Your Reminders", Toast.LENGTH_SHORT).show();                         selectedFragment = remindersFragment;                         break;                     case R.id.action_settings:                         if(aSwitch.isChecked())                         Toast.makeText(MainActivity.this, "Settings", Toast.LENGTH_SHORT).show();                         selectedFragment = settingsFragment;                          break;                 }                 assert selectedFragment != null;                 getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container,                         selectedFragment).commit();                 return true;             }         });     } }   SettingsFragment.java  public class SettingsFragment extends Fragment {      Switch switch_pop_up;     boolean stateSwitchPopUp;     @Nullable     @Override     public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {          View v = inflater.inflate(R.layout.fragment_settings, null);         switch_pop_up  = v.findViewById(R.id.switch_pop_up);           return inflater.inflate(R.layout.fragment_settings,container,false);     } }   I think it is because of :  final Switch aSwitch = settingsFragment.getView().findViewById(R.id.switch_pop_up);   How can I fix this?


Is there characterization of groups $G$ which can be written as the semi-direct of two other groups? One obvious necessary condition is that $G$ should have a normal subgroup. Is that the only condition? Thank you in advance...


Best way, and how much time to allow, from Heathrow Airport to Waterloo Station?

And is Waterloo the right station for a train to Corbridge?  (They need to come into London first to do some on-arrival shopping and to store a bag they won't need until they get back to London, so I think that does mean finding a "central" station...)


Calculating P-Value of a Z-Score without using Z-Table

I couldn't find any videos or documentation that shows how to calculate p-value of a z-score without using z-table. Isn't it possible or is it that hard?  I know i can use scipy to get that information but how can we calculate without needing them?


Here my HTML

Home

 Title vertical middle

     The class .wrap is covers the full screen. That is perfect! My problem ist that the third child element (div with img-responsive) ends in the middle of the screen size.   How can I make that the third child is at least the space between the Navbar and the footer. Of Course it should extend if the content ist is more...  here the css classes:  .wrap {     min-height: 100%;     height: auto;     margin: 0 auto -60px;     padding: 0 0 60px; } .img-responsive{     display: block;     max-width: 100%;     height: auto; } .startpage {     padding-top: 20px; }   And the next question ist: How can I make the h1 Tag vertical Align middle ?


From command line open package installer

From the command line is it possible to open a package installer window (not install the application).  I understand I could run the application using sudo installer -pkg ..... -target ....... Instead i would like to open the package in a similar way to if I double clicked the package within the Finder.


I had Linux and Windows 10 on my device and then I deleted the Linux via the disk management of the windows 10. But I messed up that part and now when I open my laptop, it takes me directly to the grub rescue and I cannot even access my bios. In the grub rescue, I have tried the ls, set boot and insmod normal commands and none of them worked. It gives me errors and there is literary nothing I can do on grub rescue.  I am really lost what should I do?


I have been researching the Freshman's Dream Quotient Rule for awhile now and have been unable to find an example for which the rule works. I want to know if anyone knows of 2 function which it works for.   Rule is:  $$\left(\frac{f(x)}{g(x)}\right)'=\frac{f'(x)}{g'(x)}$$


In the past day or two, the profile tab for 'activities' was changed to 'all actions'.  Part of this included a change to the URL parameter for that tab, ?tab=activities became ?tab=allactions.  If you attempt to access ?tab=activities, you're presented with a 404 (or if you're a mod, you get a "Could not find a user or deletion record" page, which was hilarious when I loaded that URL for my own profile).  That seems like a terrible reaction to loading a long-time functional tab, so I submit this feature request.  Create a redirect so when someone tries to load ?tab=activities, they're redirected to ?tab=allactions.  This then means tools that loaded the activities tab continue to function, and URLs don't break in confusing manners.  An alternative to this would be to just load the user's profile page, since we provided an invalid parameter in the URL, we didn't load a completely garbage URL.


How to automatically delete records in sql server after a certain amount of time

I have set up temporary user accounts on my sql database where the user names, passwords and date added of my websites users are stored.  I was initially going to have these records delete programmatically but now im wondering if sql server 2008 has a built in function that allows records to be auto-deleted after lets say one day.   This would resolve the issue of a user being able to stay logged into the system after their temporary account is closed  thanks


Can a purely biological account of man show a superiority over other animals?

Can a purely biological account of man show a superiority over other animals other than that of belonging to a later stage of evolution or of greater possibilities of action, a superiority “in his very being”?


Probability of tossing an even/odd number of heads

Lets say I toss a coin $n$ times where $n \geq 1$. Is it always the case that the probability of getting an even number of heads is $\frac{1}{2}$. If so can someone explain mathematically why? edit: as an additional question, If I introduce some subset of the n coins as unfair coins(i.e. probability of getting heads may not be 0.5) how does this effect the probability of getting an even number of heads?


How to add support for FileGDB (Esri file gdb API) driver in fiona?

There has been a tons of questions on that but none of them solved my problem.  I have a machine with:   Windows 7 x64 Python 3.4.3 x64 gdal installed: gdalinfo --version --> GDAL 1.11.4, released 2016/01/25; gdal was installed from a wheel GDAL-1.11.4-cp34-none-win_amd64.whl from    The GDAL is installed into C:\Python34\Lib\site-packages\osgeo. There I have a bunch of .exe files for gdal and ogr and .pyd files.    fiona installed: was installed from a wheel Fiona-1.6.3-cp34-none-win_amd64.whl, from the same website.   I am able to run this code and it executes successfully:  import gdal import ogr from gdalconst import *  shp = r"C:\Data\GIS\PTS.shp" driver = ogr.GetDriverByName('ESRI Shapefile')  dataset = driver.Open(shp)     layer = dataset.GetLayer() layer.GetFeatureCount()     schema = layer.schema fields = [field.GetName() for field in schema]     feature = layer.GetNextFeature()   I am also able to get OGR formats: ogrinfo --formats prints a bunch of them in the Windows cmd (with no FileGDB there though).  I am able to run this code and it executes successfully:  import fiona with fiona.drivers():   with fiona.open(path=r'C:\Data\GIS\TemplateData.gdb', driver='OpenFileGDB') as source:     print(source.meta)   However, this code won't run:  with fiona.drivers():     with fiona.open(path=r'C:\Data\GIS\TemplateData.gdb', driver='FileGDB') as source:         print(source.meta)   Because I don't have Esri File GDB compiled libraries which are required.  I have downloaded and unpacked FileGDB_API_VS2012_1_3.zip from the . As I understood, there is no need to compile anything as the .dll is already there.   What is the correct procedure to register the dll of the Esri File GDB API to be able to use them in fiona in my environment?    UPDATE: (based on Luke's answer)  I have downloaded the File Geodatabase API 1.4 version for Windows (Visual Studio 2010) from the . I copied the FileGDB_API_VS2010_1_4\bin64\FileGDBAPI.dll to the C:\Python34\Lib\site-packages\osgeo. Now I have two files in here, ogr_FileGDB.dll and FileGDBAPI.dll.  I have created a Windows variable GDAL_DRIVER_PATH : C:\Python34\Lib\site-packages\osgeo\gdalplugins. In the PATH variable, I don't have anything Python specific except the C:\Python34\Lib\site-packages\osgeo.  Now when running the ogrinfo --formats I get -> "FileGDB" (read/write) and am able to use the Python code for working with the FileGDB driver.


Is everyone in Guardians of the Galaxy speaking English?

In Guardians of the Galaxy, a human from Earth is taken to this other galaxy filled with many space-faring races.  He was picked up when he was old enough to speak, and in the film we don't see any communication issues (besides idioms and metaphors).  The various races and states seem to not have issues communicating between each other either.  Is everyone speaking English, or are they speaking some standardized language, or is there some translation mechanism in place to enable universal communication?


Can anyone tell what of kind of insect is in this image ? They have been showing up in my room for the past month; never happened before that. The room is generally hot during daytime.  Thanks


How can I get all tables and columns from a database? (SQL Server)

I would like to get all tables and their columns in one  table.  For example:  Table 1 | Column1 | Column2 | Column3 |   Table 2 | Column1 |  Table 3 | Column1 | Column2 | Column3 | Column4 | Column5  Table 4 | Column1 | Column2 |  Table 5 | Column1 | Column2 | Column3 | Column4 | Column5  Table 6 | Column1 | Column2 | Column3 | Column4 | Column5 | Column6 | Column7   EDIT:  Version I'm using: Microsoft SQL Server 2008 R2 (SP1) - 10.50.2550.0 (X64)


Book series with an astronomer exploring a golden egg shaped spaceship in Earth orbit

So when I was younger I got a series of books involving an astronomer with Kung fu abilities who discovers a rogue object orbiting Jupiter. Next, he and his team figure out that it has left Jupiter's orbit and is on a course to intercept Earth. In there somewhere is some Russian espionage, the astronomer seduces his intern, and then by the end of the first book the plan is to send the astronomer into orbit to check out the alien spaceship that is now orbiting Earth (I believe the spacecraft was specifically egg shaped and golden). He gets inside and everyone thinks that he dies when he runs out of oxygen, but there were three books I believe and in the second one they recover his body and it turns out that somehow he got self-replicating nanobots into his bloodstream that continuously repair his organs, to the point where he no longer needs to eat or sleep. It's been some time since I read this series, but I'd like to reread them if only I could remember what they were called or even just the author's name.


I am trying to gain root user access to another user so that I can run a command with adding sudo in front of any command.  Example: fdisk -l  Getting the error message as:  fdisk: cannot open /dev/loop0: Permission denied fdisk: cannot open /dev/loop1: Permission denied fdisk: cannot open /dev/loop2: Permission denied fdisk: cannot open /dev/loop3: Permission denied   I tried to give the root user access to the user with the name sudhir.  switched to root user with su -  visudoers   Added the user as   root    ALL=(ALL:ALL) ALL sudhir  ALL=(ALL:ALL) ALL     Saved with ctrl+o, switched to user & executed the command fdisk -l, still getting the same error.  Any idea?


Fibonacci Sequence and odd/even addition

Prove that f0 – f1 + f2 - … - f2n-1 + f2n = f2n-1 – 1.  For n is all positive numbers. I have an idea to what I must do, but I can't figure what the base case is. I think it is f(0) = 0 and f(1) = 1.  But then idk how to prove these?


Why are object references different after assignment in a static method?

Why a1==a2 is true after assignment a1=a2 in the main method, but a1==a2 returns false if we do the same in another static method m?  class A {}; public class Program {     static void m(A a1, A a2){         a1=a2;     }     public static void main(String[] args) {         A a1=new A();         A a2=new A();         a1=a2;         System.out.println(a1==a2);     } }   Output: true  class A {}; public class Program {     static void m(A a1, A a2){         a1=a2;     }     public static void main(String[] args) {         A a1=new A();         A a2=new A();         m(a1,a2);         System.out.println(a1==a2);     } }   Output: false


How to configure local DNS lookup in Ubuntu 16.10?

I freshly installed Ubuntu 16.10 and rsync'd a backup of my previous home directory from kubuntu 16.04 to my new install. Things work well, but I have not been able to resolve local addresses despite much trial and error.  All networking seems to be working flawlessly. Internet browsing, DNS lookup of outside addresses, ssh, etc. are great. Locally, I can access machines via ssh with their addresses, but not their names. It all works fine in nautilus/samba, meaning WINS works. The single problem, it appears, is local network DNS. I have avahi-daemon installed and running, as it came with Ubuntu.  I've included some troubleshooting, using <<>> to shorten redundant or correctly working portions.  $ nmcli g STATE      CONNECTIVITY  WIFI-HW  WIFI     WWAN-HW  WWAN     connected  full          enabled  enabled  enabled  enabled   $ ping tendril8 << or tendril8.local >> ping: tendril8: Name or service not known  $ ping gateway PING gateway (192.168.1.1) 56(84) bytes of data. 64 bytes from gateway (192.168.1.1): icmp_seq=1 ttl=64 time=4.16 ms  $ ping askubuntu.com PING askubuntu.com (151.101.129.69) 56(84) bytes of data. 64 bytes from 151.101.129.69 (151.101.129.69): icmp_seq=1 ttl=49 time=43.0 ms  $ nslookup askubuntu.com Server:     127.0.1.1 Address:    127.0.0.1#53 << followed by several IP addresses >>  $ nslookup tendril8 << or tendril8.local >> Server:     127.0.1.1 Address:    127.0.0.1#53 ** server can't find tendril8: NXDOMAIN  $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1  $ ls -la /etc/resolv.conf lrwxrwxrwx 1 root root 29 Oct 15 19:30 /etc/resolv.conf -> ../run/resolvconf/resolv.conf  $ cat /etc/nsswitch.conf # /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the `glibc-doc-reference' and `info' packages installed, try: # `info libc "Name Service Switch"' for information about this file.  passwd:         compat group:          compat shadow:         compat gshadow:        files  hosts:          files resolve [!UNAVAIL=return] mdns4_minimal dns [NOTFOUND=return] networks:       files  protocols:      db files services:       db files ethers:         db files rpc:            db files  netgroup:       nis   Note: I've spent a great deal of time looking at "older" solutions, prior to Ubuntu switching to systemd.resolved in 16.10. They have not worked for me and I don't believe this to be a duplicate question to similar ones with prior Ubuntu configurations.