apt-get update gives errors in Ubuntu 17.10

When I run apt-get update it gives following output:  root@V211:~# apt-get update Ign:1 http://archive.ubuntu.com/ubuntu artful InRelease Ign:2 http://archive.ubuntu.com/ubuntu artful-updates InRelease Ign:3 http://archive.ubuntu.com/ubuntu artful-security InRelease Err:4 http://archive.ubuntu.com/ubuntu artful Release 404  Not Found [IP: 91.189.88.31 80] Err:5 http://archive.ubuntu.com/ubuntu artful-updates Release 404  Not Found [IP: 91.189.88.31 80] Err:6 http://archive.ubuntu.com/ubuntu artful-security Release 404  Not Found [IP: 91.189.88.31 80] Reading package lists... Done E: The repository 'http://archive.ubuntu.com/ubuntu artful Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://archive.ubuntu.com/ubuntu artful-updates Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://archive.ubuntu.com/ubuntu artful-security Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   /etc/apt/sources.list contains following lines:  deb http://archive.ubuntu.com/ubuntu artful main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu artful-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu artful-security main restricted universe multiverse   Please let me know how to fix this issue.


What's the best signature for clone() in C++?

As Scott Myers wrote, you can take advantage of a relaxation in C++'s type-system to declare clone() to return a pointer to the actual type being declared:  class Base {     virtual Base* clone() const = 0; };  class Derived : public Base {     virtual Derived* clone() const };   The compiler detects that clone() returns an pointer to the type of the object, and allows Derived to override it to return a pointer to derived.  It would desirable to have clone() return a smart pointer that implies transfer of ownership semantics, like the following:  class Base {    virtual std::auto_ptr<Base> clone() const = 0; };  class Derived : public Base {     virtual std::auto_ptr<Derived> clone() const; };   Unfortunately, the relaxation of the conventions does not apply to templated smart pointers, and the compiler will not allow the override.  So, it seems I am left with two options:   Have clone() return a "dumb" pointer, and document that clients are responsible for disposing of it. Have clone() return a smart base pointer, and have clients use dynamic_cast to save them to a Derived pointer if they need it.   Is one of these approaches preferred?  Or is there a way for me to eat my transfer of ownership semantics and have my strong type safety too?


I have a custom class that includes some array lists, I initialize them in the constructor and then I have a method that adds to these arraylists, but when I run the code, I get this error: java.lang.NullPointerException  public class GameMenu { private ArrayList<String> player1Moves; private ArrayList<String> player2Moves; private ArrayList<String> allMoves;  }  public GameMenu(long limit, Player player1, Player player2) {     this.player1Moves = new ArrayList<>();     this.player2Moves = new ArrayList<>();     this.allMoves = new ArrayList<>();     System.out.println("test"); }  private void writeDownMoves( Pieces piece , int xCordination , int yCordination ){     if ( isPlayer1sTurn == true ){         this.player1Moves.add("**" + piece + piece.getXCordination() + "," + piece.getYCordination() + " to " + xCordination + "," + yCordination + "**");     //the line above is where the program stops.     }     else{         this.player2Moves.add("**" + piece + piece.getXCordination() + "," + piece.getYCordination() + " to " + xCordination + "," + yCordination + "**");     }     this.allMoves.add("**" + piece + piece.getXCordination() + "," + piece.getYCordination() + " to " + xCordination + "," + yCordination + "**");     piece.setXCrdination(xCordination);     piece.setYCordination(yCordination); }   I made sure that I had called the constructor by putting a System.out.println("test"); at the end of that constructor, so while these arraylists are initialized I still get this error. any. ideas about what the problem is?


Run C++ program like a command from the terminal

Hi,  I've created a small program in C++ I would like to run like a command from the terminal. With that I mean that I can open the program from and in the terminal (as it is a console application) regardless of which directory I'm in, without having to specify the path to the program. I know how to arrange it so that I would only have to type /program_name, but I'm interested in how the above would work. Thanks in advance!


Step 1. Go to Your Name --> My Settings Step 2. select Personal | Reset My Security Token  what shown above, creates new security token and sends email to the registered user. how can i know what is the security token value without sending email/clicking "Reset My Security Token" button


How can I remount a disk partion and clear its data?

Long ago, I had to reinstall Ubuntu on my Laptop. Unfortunately my disk got split into 2 partitions. Now I want to remount the 2nd partition. However I am not sure what steps to take.   Do I need to clear the 2nd partition first? (no useful data there)  Which tools should I use? (e.g. Gparted)   Any other good advice?     I'd like to clear sda4 and remount it to sda5


Please help, mounting other partitions on startup

These are my all partitions.    This is my /etc/fstab    I would like to auto mount sda3 (NTFS), sda6 (ext4), sda7 (ext4) on startup, please help me edit the /etc/fstab file.  I've searched for GUI way of doing this but I cannot find pysdm on the software center.  Thanks.  Edited!!!    I've edited fstab as shown in the picture, I got error during booting, please help me find out what went wrong. P.S. I've created /mnt/extdisk1, I copied and pasted the UUID so it was not misspelling.


Ungenerate command in ArcGIS for Desktop?

I am searching for the ungenerate command in argis10 desktop. I get to know that is available only for workstation. But i don't have workstation. Is there any way to use this command or any other way to get the same result as that of ungenerate command.


I downloaded ubuntu 14 version for desktop from this site and after that absolutely nothing happened. I am new and lost. I don't see anything. I am using windows 7. This was 998 MB or so and it took an hour downloading


Footnote numbering when using paracol package

I have a document where footnote numbers restart every page, when I use the paracol environment this seems to stop working. In my MWE the footnotes in each page are okay for normal text but the second paracol environment numbers the footnotes as 3 and 4 instead of 1 and 2 even though it is on a new page.  \documentclass[10pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx}  \usepackage{everypage} \AddEverypageHook{\setcounter{footnote}{0}} % resets footnote counter on every page  \usepackage{paracol}  \begin{document}     this is the first page\footnote{footnote 1 page 1}     \pagebreak%      second page\footnote{footnote 1 page2}     \pagebreak%      \begin{paracol}{2}         \setlength{\columnseprule}{0.4pt}         \setlength{\columnsep}{15pt}          left column              \switchcolumn%           right column\footnote{a footnote}\\%          \switchcolumn*%          left column again          \switchcolumn%               right column again\footnote{2nd footnote}\\%     \end{paracol}      \pagebreak%      another page with normal text\footnote{and a footnote}      \pagebreak%      \begin{paracol}{2}         \setlength{\columnseprule}{0.4pt}         \setlength{\columnsep}{15pt}          left column              \switchcolumn%           right column\footnote{a footnote}\\%          \switchcolumn*%          left column again          \switchcolumn%               right column again\footnote{2nd footnote}\\%     \end{paracol}   \end{document}


How can I install google-chrome-stable on Ubuntu 14.04.3 LTS?

When I'm going to install the Google Chrome,it says on the Ubuntu Software Center that Dependency is not satisfiable: libappindicator1


I don't mean the first encrypt password, but that login name that appears in logout from user mode, change user, etc. The second password where I wrote my real name.


How to provide user name and password when connecting to a network share

When connecting to a network share for which the current user (in my case, a network enabled service user) has no rights, name and password have to be provided.  I know how to do this with Win32 functions (the WNet* family from mpr.dll), but would like to do it with .Net (2.0) functionality.  What options are available?  Maybe some more information helps:   The use case is a windows service, not an Asp.Net application. The service is running under an account which has no rights on the share. The user account needed for the share is not known on the client side. Client and server are not members of the same domain.


List of sites is sorted weirdly on the leagues page

There's a  and the listbox with sites is sorted by site creation date, I suppose, and it looks kinda like this:  Not very easy to alphabetically find a site you're looking for when it's sorted like that :p


Prove $1! + 2! + . . . + n! < (n + 1)!$ using mathematical induction

$1! + 2! + . . . + n! < (n + 1)!$  This question has left me stumped for quite some time. I am not sure how to approach it. (I am really bad at induction).


How can I anonymously store supplemental research data that I submit with papers?

I'm writing a contribution for a double-blind submission system.   Since I would like to supply more data than I could show on a small number of pages, I'm looking for a way to reference supplemental data in my manuscript, such as software scripts, figures or databases.  I could upload on GitHub, RPubs, Figshare and Zenodo, but all of these would expose my real user name (and I don't feel like making a throwaway e-mail account with a new repository for every anonymous publication that I intend to write).  Is there any way to get the above services to do what I want? Or is there a similar service that would allow anonymous hosting of research data?   It would be even better if I could later (e.g. after publication) declassify the information, with the link from the manuscript still being intact.


I have a model I want to fit parameters to. I know the likelihood $P(D|\theta)$. Let's say I have two parameters with prior belief, $\theta^1 \sim \mathcal{N}(\mu_2,\sigma_2^2)$, $\theta^2 \sim \mathcal{N}(\mu_1,\sigma_1^2)$. However, I know that both parameters are positive and so I bound it below by 0.  For the proposal distribution $q$, I'm using a normal centred at the previous value of $\theta^i$, with variance some scalar multiple of the initial value of the parameter (so different for each parameter). I can draw a random smaple from this proposal distribution to obtain a new sample, \theta'. (I can then repeat this for each parameter using their respective proposal distribution). However, I'm keeping in mind that the parameterds are bounded below by 0.  To calculate the acceptance ratio, I need to find  $\alpha = \min\{1,\frac{\mathcal{L}(D|\theta')q(\theta_{t-1}|\theta')P(\theta')}{\mathcal{L}(D|\theta_{t-1})q(\theta'|\theta_{t-1})P(\theta_{t-1})}\}$.  Normally, I'd be happy that I could ignore the proposal distribution here as it is symmetric. However, is this still this case given that I don't want negative parameter values? I'm a bit confused as to how I calculate $P(\theta_i)$. Does it just mean calculate $\frac{1}{\sqrt{2\pi \sigma_i^2}}e^{-\frac{(\theta^i - \mu_i)^2}{2\sigma_i^2}}$, and plug that number in? (So the value of the pdf, rather than the 'probability')? How do I incorporate the 'truncatedness' of the distribution when doing this? Or would I be better off using a gamma prior?  Example:  Would the following be correct: Let's just consider one parameter $\theta$ with prior belief $\theta \sim \mathcal{N^+}(0.16,0.06^2)$. Let's say $\theta_{t-1} = 0.14$. I draw a new proposal from the proposal distribution $\mathcal{N^{+}}(0.14, 0.05^2)$, which gives me $\theta' = 0.15$, say. Then the exponential part of the  proposal pdf will be the same for both the numerator and denominator of the acceptance ratio, so I only need to deal with the normalising constant. So the proposal ratio part of alpha just becomes $\frac{\Phi(\theta_{t-1}/\sigma)}{\Phi(\theta' /\sigma)} = \frac{\Phi(0.14/0.05)}{\Phi(0.15/0.05)}$  Does this then mean that overall, my acceptance ratio becomes  $\alpha = \min\left\{1,\frac{\mathcal{L}(D|\theta')\Phi(0.14/0.05)e^{-\frac{(\theta'-0.16)^2}{2(0.06)^2}}}{\mathcal{L}(D|\theta_{t-1})\Phi(0.15/0.05)e^{-\frac{(\theta_{t-1}-0.16)^2}{2(0.06)^2}}}\right\}$.


Let$\ p_n$ be the$\ n$-th prime. Can you give me a proof for$\ \prod_{i=1}^\infty \frac{p_i-1}{p_i}=P\approx \frac{1}{11.0453}$?

I found$\ \prod_{i=1}^\infty \frac{p_i}{p_i-1}\approx 11.0453$ on . Moreover, writing a paper, should one provide a proof or it is trivial? Thanks in advance.


I have installed a windows 8/ubuntu 13.04 dual boot. Grub2 seems to have been installed allright and I can boot windows 8 from it without a problem. Ubuntu booted allright the first time (right after the installer's reboot). However, whenever I try to boot it again, it just hangs at a blank purple screen. No ubuntu splash with changing dots under it. I tried ctra+slt+f1, nothing happens. I tried leaving it for a while, nothing changes. No hdd activity either.   Any idea what it might be? I read that it could be nvidia drivers (I have an nvidia 740m), but the funny thing is that it did boot and work the first time after install, and seems to have stopped after that. If it were a driver issue, shouldn't it have failed every time I reboot it? Also the first time it (successfully) booted, I seem to remember a type of nouveau DMS pointer error/printout on boot, but it booted fine after that.  Any help is much appreciated.


GCC Templates: expected »(« before »>« token

I don't understand why the following code doesn't compile:  template< typename TypeArg > class Data { public:     struct Selector1     {     };      template< typename Selector >     void foo()     {     } };  template< typename TypeArg > class Test { public:     void test(); };   template< typename TypeArg > void Test< TypeArg >::test() {     Data< TypeArg > data;     data.foo< typename Data< TypeArg >::Selector1 >(); }   I have tested it with GCC 4.6 and GCC 4.9. Both give me the same error:     test.cpp: In member function »void Test::test()«:   test.cpp:28:51: Error: expected »(« before »>« token   test.cpp:28:53: Error: expected primary-expression before »)« token   Can somebody tell me what needs to be done for the code to compile?


Conditional formating if cell is a formula

I'm trying to have cells which value has been entered manually and cells that are the result of a formula differently, is there a way to do that?


Check whether two strings are similar to each other

I am a beginner to java. I developed a Java code to compare whether two user input Strings contain similar characters at equal frequencies and print them to the screen. But it shows a run time error ( ArrayOutOfBoundException ) during the compilation process. Help me to find the error.  import java.util.Scanner;  public class Checker {          public static void main(String[] args) {          Scanner scan = new Scanner(System.in);         String x = scan.next();         String y = scan.next();          boolean anws = similarCharctr(x, y);           System.out.println( (anws) ? "Similar" : "Dissimilar" );     }              static boolean similarCharctr(String x, String y) {         boolean status = false;          if(x.length() == y.length()){            status =  false;         }                         String e = x.toUpperCase();             String f = y.toUpperCase();             char c []  = new char[e.length()];            char d []  = new char[f.length()];             for(int i = 0; i<c.length; i++){                c[i] = e.charAt(i);                d[i] = f.charAt(i);            }                for(int j = 0; j< (c.length - 1); j++){                  for(int i = 0; i< c.length; i++){                      if( c[j] >c[i+1])                     {                         char temp;                            temp =   c[j];                        c[j] = c[i+1];                        c[i+1] = temp;                          char temp1;                            temp1 =   d[j];                        d[j] = d[i+1];                        d[i+1] = temp1;                        }            }            }                for(int i = 0; i< c.length; i++){                  if(c[i] == d[i]){                       status = true;                 }                     else{                      status = false;                 }                }             return status;                  }         }


Title of old sci fi movie with two men compelled by a telepathic force to build a device

This was a movie in color 50s 60s maybe 70s.  It opened with two men, maybe scientists, who were in an office or at a home, and who were compelled by a telepathic force to build a device - they had no idea what they were building.  It turned out to be some sort of screen on the wall - I seem to remember the keystone shape of the Heinz 57 shield - and it either functioned as a communication device, a teleportation device, or both.  The two find themselves on another planet and during one scene they see a demonstration of a laser generator that burns a hole through a very thick steel plate.  I don't remember much else, including what the aliens wanted...


Let $D$ be the set of all gaussian integers of the form $m+ni$ where $m,n \in Z$. Carry out the construction of the quotient field $Q$ for this integral domain. Show that this quotient field is isomorphic to the set of all complex numbers of the form $a + bi$ where $a,b$ are rational numbers.  Well I know how to show that the quotient field is isomorphic, I just don't know how to construct such a quotient field.  In the case of integers, we have the quotient field $[a,b] = [c,d]$ if and only if $ab = bc$, so I am guessing maybe the quotient field for the gaussian integers should follow that, $[m+ni,r+si] = [m_1 + n_1i,r_1+s_1i]$ if and only if $(m+ni)(r_1+s_1i)=(r+si)(m_1+n_1i)$, is that right?


My external hard disk 2 TB NAS MyBookLive stopped working so I remove the drive and trying to format it in Ubuntu.  When I format, I get an error message as below  Error Formatting Volume:- Error wiping device. Failed to probe the device 'dev/sdc' (udisks-error-quark,0)  Is my disk dead? If not how to format it please?  Many thanks  Assessment says - Disk is OK, but one bad sector.  Update:-  I am not worried to recover the data, as I already have the backup. I only wish to format it and bring the hard disk back to life to use it as another extra backup drive.


What to do with remaining pieces of PROJECT Hextech Crafting loot?

Here's what I got in my Hextech Crafting loot:     9 PROJECT Cores 2 Augment Cache shards PROJECT: Zed Skin shard (Unlockable with 11 Cores)     It seems like I cannot earn PROJECT crafting stuff anymore (the event is over ?). I only need 2 cores or/and one cache to unlock that skin previously mentioned.  I've heard that those pieces of stuff are going to disappear in November. Does anyone know something about that ? Is there any way to collect more PROJECT Hextech cratfing stuff ?


MySQL join query need array of values for one column

I don't know whether it is possible in MySQL or not. If someone has tried it, will reduce my time and number of lines in the code.  I have rating table, which has the following field    I have reason table, which has the following fields,    Also i have mapping table called rating_reason_mapping for mapping rating table and reason table    And i have the below query to fetch the details of these tables  SELECT ratings.id AS rating_id, ratings.user_id, ratings.mdn, ratings.rating_value, ratings.rated_time, ratings.comment, reasons.reason FROM ratings, reasons JOIN rating_reason_mapping WHERE rating_reason_mapping.rating_id = ratings.id AND reasons.id = rating_reason_mapping.reason_id   Of course it will display the result like below,    But this is not the result i am expecting one , i don't want the repetation of all the rows instead i need the reasons in an array.For example you can see that rating_id 59 has repeated three times. All the values except the reasons are same for these three. I don't need this to be repeat in three times. I just need this in one time only. But i need all the reasons of the three rows. The reasons should be in an array.Like below    Of course the rating id 71,46,47 and 20 will have values in the above result  Is this possible in MySQL ???


How do I concatenate JavaScript files into one file?

I want to create a compiled JavaScript file for my website.  For development I would prefer to keep the JavaScript in separate files and just as part of my automated scripts  concatenate the files into one and run the compressor over it.  My problem is that if I use the old DOS copy command it also puts in the EOF markers which the compressor complains about:  copy /A *.js compiled.js /Y  What are other people doing?


Why is $X^4+1$ reducible over $\mathbb F_p$ with $p \geq 3,$ prime

I have proven that in $\mathbb F_{p^2}^*$ exists an element $\alpha$ with $\alpha^8 = 1$.      Let $f(X) := X^4+1 \in \mathbb F_p[X]$. How can I prove that $f$ is reducible over $\mathbb F_p$?    Has $f$ a zero in $\mathbb F_p$ ?


Should users be able to downvote a moderator's action?

It is apparent to me that the moderators aren't really moderated. I have read many articles where moderators get overzealous in their quest to have "perfect" information.   It's like some kind of cult where if you can get in and follow the creed you can do whatever you want. There's no second opinion and no way to obtain one.  A great example is a question "" It's a good question, but the moderator decides to close it saying It's unclear what you're asking. I know exactly what he is asking. Its very clear to me.   He wants to know, does the internet exist? If so what's the proof?  There is another post here which asks "?" This is a question of the poster's perspective on the moderation. It doesn't address what the community in general things about the moderator. It also appears to be a question of escalation rather than feedback. So I think it is a different question. My question is more about a way for the entire community to give numerical feedback about a moderator's specific action. If the community likes their moderation they can know how much or how little with something like an upvote or downvote. It's a lot of work to "have recourse" on someone and that's not what I'm asking. I'm asking about a way to provide feedback about monitor activity in a non-black and white way. Meaning non-recourse needed, merely "I don't like what you did" way.


I am currently monitoring a change event on a table cell with ID drawing-n-1. all works, except when I delete this cell and then recreate it in Javascript. the event is no longer picked up. any help on this please  Code to monitor the cell value:  var drawing_input = 'drawing-n-1'; $('#'+drawing_input).change(function(e) {     var data = $('#'+drawing_input).val();     console.log(data); });   html code to create the table:  Drawings

     Drawing Number	     Description	     Sheet Number	     Issue

     <textarea name="drawing-n-1" id="drawing-n-1"  /></textarea>	     <input name="drawing-d-1" type="text" />	     <input name="drawing-s-1" type="text" />	     <input name="drawing-i-1" type="text" />

   Function used to delete row and recreate the row  function clear_drawing_Table()  {     var table = $('table#myTable tbody');     for(var i = 1;i<document.getElementById('myTable').rows.length;){         document.getElementById("myTable").deleteRow(i);     }     len = document.getElementById('myTable').rows.length -1;         table.append(                            '
<textarea name="drawing-n-'+ (len+1)+'" type="text" />	<input name="drawing-d-'+ (len+1)+'" type="text"/></textarea>	<input name="drawing-s-'+ (len+1)+'" type="text" />	<input name="drawing-i-'+ (len+1)+'" type="text" />
'       );     $("#myTable").trigger('create'); }


Difference between parentheses and braces in terminal?

( du /etc; du /var; ) > tmp.txt  { du /etc; du /var; } > tmp.txt   Is there a difference between the () and {}?  The output of tmp.txt seems exactly the same, and I was wondering whether i'm missing something here.


Let $T : [0, 1]^2 → [0, 1]$. Consider the following properties:  $T_1 : T(x, 1) = x$  $T_2 : T(x, y) = T (y, x) $  $T_3 : T(x, T (y, z)) = T(T (x, y), z) $  $T_4 $: If  $x ≤ u  , y ≤ v \Rightarrow T(x, y) ≤ T(u, v) $  Function $T: [0, 1]^2 → [0, 1]$ that satisfies $T_1 −T_4$ is T-norm . For $T(x) = \begin{cases}min(x,y),&max(x,y)=1,\\0,&o.w.\end{cases} $ conditions 1, 2 and 4 obviously.  Can you help me prove condition 3.


Let $R$ be a ring, and $M$ an $R$-leftmodule. Let $\operatorname{Ann}_R(M)$ be the annihilator of M, meaning that $r m = 0 \space\space\space\space  \forall r \in \operatorname{Ann}_R(M), m \in M$.  Let $I \subseteq \operatorname{Ann}_R(M)$ be a two-sided ideal. Show that M is naturally an $R/I$-module.  Thanks in advance! I'm not that used to annihilators, so any help would be appreciated.


tikzpicture: Position object from \newcommand

how can I position an object from \newcommand?  Let's consider my , for example, I want to position a new colorbar (\MakeMeAColorbar) to the page center, the code should be:  \begin{tikzpicture}[remember picture,overlay]     \node at (current page.center) {\MakeMeAColorbar{1.5}{2}};        \end{tikzpicture   But doesn't work.  Thanks


I am trying to build a code but while using switch case this is showing an error like **A Constant value expected ** in my switch case. can not we write like this case "CRLR'" + CaseDetails.registerno + "' of '" +CaseDetails.year+"'- R ": CaseDetails.details = tabledata.LastChild.PreviousSibling.InnerText.Trim();in switch case? If no please let me know how to get non constant value in switch. this is my code       public CaseDetailsParser ParseCaseDetails(HtmlDocument htdocment)     {         CaseDetailsParser detailsParser = new CaseDetailsParser();         if (htdocment.DocumentNode.InnerText.Contains("THIS CASE IS NOT REGISTERED"))         {             return detailsParser;         }         var data = htdocment.DocumentNode.SelectNodes("//table").Where(x => x.Attributes.Contains("bgcolor") && x.Attributes["bgcolor"].Value == "Azure");         foreach (var value in data)         {             var rowvalue = value.ChildNodes;             foreach (var tabledata in rowvalue)             {                 var tdatas = tabledata.ChildNodes;                 if (tabledata.Name != "#text")                     switch (tabledata.FirstChild.NextSibling.InnerText.Trim())                     {                         case "Date of query :": CaseDetails.dateOfQuery = tabledata.LastChild.PreviousSibling.InnerText.Trim();                             break;                         case "Time :": CaseDetails.Time = tabledata.LastChild.PreviousSibling.InnerText.Trim();                             break;                         case "CRLR'" + CaseDetails.registerno + "' of '" +CaseDetails.year+"'- R ": CaseDetails.details = tabledata.LastChild.PreviousSibling.InnerText.Trim();                         //    break;                       }             }


Control panel items access for active directory users

Active directory group policy have options to disable different things. My question is that how can i enable control panel items for certain users i.e. printer access / date time properties access.  I've windows server 2003. It does not show all the control panel its in GPO under User Configuration. I just can view Add or Remove Programs, Display, Printers and Regional and Language Options.  Can you please a little brief that in which definitions should i put?


I recently voted to close a question as "too broad;" several others chose "primarily opinion-based." When the question was put on hold, the message shown was:     put on hold as primarily opinion-based by user1, user2, T.J. Crowder, user3, user4   This has always bothered me: Could we please make that message accurate?     put on hold as         primarily opinion-based by user1, user2, user4   too broad by T.J. Crowder, user3      I don't see it reducing comprehension (to the extent people read it at all), and may well give some useful additional feedback to the OP (to the extent people read it at all).  This particular example is a "meh" (e.g., the question was probably both), but I've sometimes felt the need to actually add a comment disassociating myself from a close reason that made no sense (but was the one the majority picked).


Why is momentum conserved in an inelastic collision and kinetic energy is not conserved?

We know that in an inelastic collision that total momentum of the system before collision equals the total momentum after collision. But total kinetic energy before collision is not equal to total kinetic energy after collision.   How is possible given that the formula of momentum is $mv$ and the formula of kinetic energy is $\frac{1}{2} mv^2$; both are dependent on mass and velocity.


How to find out what is waking up my computer?

I often find that I put my computer to sleep, and find it next morning with exhausted battery. Or just open the lid a bit later to find it awake. Or suddenly in the middle of the night my cooler wakes me up. Something is bringing it out of sleep. How to find out what? All of the powercfg -requests show None.  Dell XPS 9560 Windows 10 Pro


How can you burn an ISO image on a USB Flash Drive using K3b?

I'm quite new of Ubuntu...  I'm using Ubuntu 14.04 and what I want is to burn a Windows ISO image on a USB Flash Drive.  Now, using the default Startup Disk Creator, seems that it doesn't recognize ISO images different from Ubuntu (or at least, I try to select the Windows ISO but nothing really happens). Then I've installed K3b but, then again, this time the problem is that it seems to not recognize media different from a CD. I'm sure that there's a way to do it with K3b and I'm just missing it. Anybody can help me?


I am looking for the symbol := and the symbol ::=  the first one means "expressed as" (e.g. a sentence A is expressed as a juxtaposition of words bcd) and the second one means "defined as", in various applications of logic and language theory. in Linux, typing := one after one (in kile or lyx) causes vertical misalignment of the characters. I expect the center point between two dots of : and the center line through the two lines of = be on the same line, but often = is positioned too high, and also the space between them is too large, and a negetive space of -0.1 em does not look good.  Anyone like to help, telling me where to find these two symbols?


i want to get difference of days by subtracting dates in java using Gregorian calendar:

GregorianCalendar last = new GregorianCalendar(py,pm-1,pd); System.out.println(last.getTime()); GregorianCalendar present = new GregorianCalendar(py,pm-1,pd); System.out.println(present.getTime());  long diff = Math.abs(prsent.getTime() - last.getTime());   Problem facing when subtracting these two dates


Good day.   For some reason I see a strange purple reflection in my scene. I know that this is usually an indication to a missing UV-Map. But I unwrapped every object in my scene. The background is transparent with an image added in the compositor.  Do you guys have some ideas where this might come from?


Why the SUSY particles of fermions have spin 0 but not 1?

As the supersymmetric particles have spin which differs by half, why cant the superpartners have a spin = 1. Why does it always have to be 0?


ssh port forwarding from remote location to computers on server's network

I've been hunting all over the inter webs and I cannot find a simple example of the form of port forwarding that I am looking for. Well, the truth is, I may have just simply not understood the jargon used and then overlooked a valid solution.  Here is the proposed setup. I have a computer at home (homeC) and I typically connect to a server at work (workServer.com), but whenever I connect to the server, I am generally (90%+ of the time) simply hopping over to another computer on the network (localC 192.168.x.y). I would love to setup workServer.com to port forward over to the other local computers ip addresses if I use a non-standard port (e.g. 12345).  Assume all computers involved are running some variant to unix, but that the user only has root access on some computers (not workServer.com). In fact, the username user is the same on all computers. I am trying to find ways to solve the following problems:   a command to use in workingServer.com which will forward a port to a given local computer (I also need to know which ports are available, I suppose) the command to run on homeC to connect to localC   On a side note, it would be interesting if it were possible to limit the mac-addresses of computers that can connect to user@workingServer.com because I see this as greatly increasing my security.  If you have any other ideas or useful suggestions, I would greatly appreciate them.


I am studying the phasor method for solving electrical circuits. Have tried using tables and researched a lot on the internet but have not found a simple command to represent the numbers a and b in the diagram below:    Thanks for any help.


Analogue of the Cantor-Bernstein-Schroeder theorem for general algebraic structures

The Cantor-Bernstein-Schroeder theorem states that if there are two sets $A$ and $B$ such that there exist injective (alternatively, surjective, assuming choice I think) maps $A \to B$ and $B \to A$, then $A$ and $B$ are in bijection.  It then seems natural to try to strengthen the result to other structures.  If $A$ and $B$ are, say, groups (or rings, modules, etc) such that there are injective homomorphisms from each to the other, then $A$ and $B$ are isomorphic.  I'm wondering if there are any results on this, or if there are known counterexamples.  The theorem for sets alone is nontrivial, so I feel like any results about how it holds for other structures would be quite interesting.


Let $\mathbb{C_+}=\{z\in\mathbb{C} :\text{Im}(z)>0\}$. If $f: \mathbb{C_+} \to \mathbb{C_+}$ is analytic and $a\in  \mathbb{C_+}$, is $|f'(a)| \leq \frac{\text{Im} (f(a))}{\text{Im}(a)}$?  This seems like it would be related to Schwarz's lemma, but we are in $\mathbb{C_+}$ instead of in $\mathbb{D}$.


uninstall xampp on ubuntu using terminal command

I want to uninstall XAMPP on Ubuntu on VM. Please advise command to archive this.  I have downloaded package using wget command and run sudo ./xampp-linux-1.8.3-2-installer.run. How to delete folder using terminal located at /opt/lampp?


Optimal way to use a credit card to build better credit?

I have a credit card with a $700 limit and I am curious how to optimize credit gain with it. Right now, I use it once a month (usually on something small like a drink from a convenience store or something) and pay it off immediately. I am basically using it like a once-a-month debit card for tiny purchases.  I do this because I always hear that loading up your credit card to its limit looks bad (as if you "need" to use it, and are therefore more risky). Is what I am doing optimal or can I improve my credit in other ways?  This card also has an annual fee (something like $30) so part of me also wonders if I am wasting money. I don't particularly use/need credit cards, but I don't want to lose out on building credit, either, in case I want a house someday. I have student loans but I don't know how much those actually help.  I pay off all my debts each month otherwise.


PHP function building a default variables?

I am trying to build a function that has 2 default values, but on some occasions I need to supply only the first argument, and others only the second. Is there a way in PHP that I can do this, or is there a way of doing what I want that is considered standard?  Example  function ex($a, $b = null, $c = null) {     .... }  ex($a, $b, $c) // WORKS FINE  ex($a) // WORKS FINE  ex($a, $b) // WORKS FINE  ex($a, $c) // WANT VAR C TO BE VAR C IN THE FUNCTION AND NOT VAR B   Thanks


I am building a form.  What is the best practice to ask a gender of a person in a form. In a dropdown? In radio buttons? or in some other forms? Please also tell some techniques to style these fields.  Thanks in advance!


iMac won’t boot up from internal drive but can boot from external drive, but internal drive can boot other Macs

I am seeking suggestions on what may be going in with an iMac I am currently troubleshooting, as it’s displaying behaviour I do not recall seeing before.  Short story  This iMac refuses to boot up. It gets the Apple logo, gets past the progress bar, and then gets stuck on the grey screen for about two minutes before rebooting itself. However, what makes this odd is that I can:   Start the iMac in Target Disk Mode and use it to successfully boot up other Macs. In doing so everything seems to work perfectly fine. Successfully boot the iMac from an external drive and everything seems to work perfectly fine.   Long story  I was presented this iMac about 2 weeks ago as it refused to bootup. That is, it would commence booting up and cycle through the Apple logo and progress bar, but after the progress bar completed it would remain on the grey screen for a couple of minutes before rebooting itself and doing the same thing all over again.   To address this I undertook the following troubleshooting steps:   Resetting SMC - failed Resetting NVRAM - failed Starting up in Safe Mode - failed Starting up in OS X Recovery Mode – failed Starting up in OS X Recovery Mode via the internet – failed Undertook an extensive hardware test using Apple Hardware Test (AHT 3A213) - passed Started iMac in Target Disk Mode and retested hard drive using Scannerz on another iMac - passed Started iMac in Target Disk Mode and reformatted the hard drive and did a clean install of Mac OS X El Capitan 10.11.6 - successful Migrated data from a Time Machine backup - successful   After these steps I tested the iMac for four days with no issues in terms of booting up and using the computer. On the fifth day I needed to manually import seven Apple Mail mailboxes. I did these one by one and six of them imported within minutes.  The last mailbox was showing as being 270 GB in size. I knew this was inaccurate, but I decided to import the mailbox so I could do a mailbox rebuild to correct whatever corruption had taken place. This import took over 12hrs to do but seemed to work fine and Mail was displaying the emails.  I then tested the iMac on and off for another day to ensure it had no problems booting up. This was successful.  I then decided to initiate the mailbox rebuild, but as soon as I did the screen went black and stayed that way regardless of any keyboard shortcuts I tried using. I waited an hour, forced a reboot, and ever since the iMac has returned to its original behaviour of not booting up – it would get past the progress bar and stay on the grey screen for a while before rebooting itself and starting the whole vicious cycle again.  I have again retested the hard drive, processor, RAM and Video Ram by starting the iMac from an external hard drive and using a combination of the following packages:   Apple Hardware Test (AHT 3A213) Scannerz TechTool Pro Memtester (under the Homebrew subsystem)   And now I have a situation where I can boot the iMac from external hard drives, and also use it in target disk mode to boot up other Macs, but cannot use it to boot from its own internal drive.  At present I have isolated the internal hard drive and am running a scan to check for any malware.   In the meantime, I am wondering:   Has anyone come across a similar scenario and, if so, what was the cause? Assuming I find no malware, do I go through the reformat/clean install/migration process again, but this time not import the last mailbox and see whether the iMac works fine? Any other suggestions?   iMac specs are as follows:   iMac (27”, mid 2011) 3.1 GHz Intel Core i5 8 GB RAM AMD Radeon HD 6970M 1024 MB 1 TB 3.5” SATA HD Mac OS X El Capitan 10.11.6


Polynomial bounded real part of an entire function

Let $f(z)$ be an entire function whose real part is bounded by a polynomial in $|z|$. Does it follow that $f(z)$ is a polynomial?  Or, without loss of generality and more suggestively $$(f(z)=\sum_{k=0}^\infty a_k z^k \quad \land \quad \operatorname{Re}(f(z))\leq |z|^n)\quad \forall z\in \mathbb{C} \qquad \Rightarrow \qquad f(z)=\sum_{k=0}^n a_k z^k \quad\forall z\in \mathbb{C}$$


I wanted To show that if E is connected subset then $\bar E$ is also Connected By Using Definition. There is one answer regarding this question but that does not use Definition So this question is not repeated .My attempt: On contrary $\bar E$ is disconnected so  $\bar E$=$A \cup B$ Where A and B are disjoint open set .I had only info about E is connected that means E can not be written like above . From Hint:E$\subset$ $\bar E$=$A \cup B$ So E=$(A\cap E) \cup (B\cap E)$   $(A\cap E)$ and   $(B\cap E)$ are both open and disjoint Because In case x$\in(A\cap E) \cap (B\cap E)$ Then x$\in A \cap B$ Which contradicts with Given .Is this is enough to show ?


I've been stuck with this for a while now. I have this chain of reasoning that would imply $e^{-\pi}=e^\pi$, obviously false, since $e^\pi$ and $e^{-\pi}$ are two real distinct numbers and so I must have made an assumption somewhere that I cannot actually do. I know I have to be very careful when working with complex numbers, especially when they're in the exponents, and so I tried to make the steps as small as I could so that it would be easier to point out where it went wrong.  \begin{align} e^{-\pi}&= e^{\pi\cdot -1}\tag{1}\\ &=e^{\pi\cdot i^2}\tag{2}\\ &= e^{\pi\cdot i\cdot i}\tag{3}\\ &= \left(e^{\pi\cdot i}\right)^i\tag{4}\\ &= (-1)^i\tag{5}\\ &=\left(\tfrac{1}{-1}\right)^i\tag{6}\\ &=\left((-1)^{-1}\right)^i\tag{7}\\ &=(-1)^{-1\cdot i}\tag{8}\\ &=(-1)^{-i}\tag{9}\\ &=\left(e^{i\pi}\right)^{-i}\tag{10}\\ &=e^{i\pi\cdot -i}\tag{11}\\ &=e^{-i^2\pi}\tag{12}\\ &=e^\pi\tag{13} \end{align} I suspect it has something to do with changing the base from $e$ to $-1$, but what does that mean? Are complex powers only defined for positive bases? Any help is appreciated.


How can I insert a Parent* object (which points to an &Child object), into a vector?

I've provided an extremely simplified version of the code which reproduces the error.  class Shape {     public:         virtual void func()=0; };  class Circle : public Shape {     public:         Circle() {  }         void func() { } };  class Square : public Shape {     public:         Square() {  }         void func() { } };  int main() {     Circle c;     std::vector<Circle> circs;      std::vector<Shape*> shapes;      shapes.push_back(&c);      circs.push_back(shapes[0]); //ie, the Circle object that was just pushed into the 'shapes' vector.  }   I know that as of right now, this is functionally useless, and that I could just push the Circle object to the vector - however, in keeping with the shape analogy, my project also has triangles, squares, etc. I process data using a function which accepts Shape& as a parameter, so that I can send all shapes to one function, instead of separate functions for each shape. That's besides the point, but gives insight into why I'm doing what I'm doing in the simplified code.   The last line in this code will not work. Could anyone tell me why? Or provide me with a solution/work-around? Is this considered bad programming-style?  EDIT: So I've solved the Object Slicing issue I was having. For anyone with the same issue, look at fgp's answer in the following thread:    I used the following to help allow what I was trying to do (Move a Circle object to a Shape*, compute some things, then push the Circle (which is in the Shape* vector), to its final resting place, a Circle vector:  class Shape { public:     virtual Shape& operator=(const Shape& s) {         assign(s);         return *this;     }      virtual std::string getName() = 0;     virtual         int getEdges() = 0;    protected:     std::string name;     int         edges;      void assign(const Shape& s) {         this->name = s.name;         this->edges = s.edges;     } };  class Circle : public Shape { private:     int radius; public:     Circle() { name = "Circle"; edges = 1; }     Circle(int rad) { name = "Circle"; edges = 1; radius = rad; }      virtual Circle& operator=(const Shape& s) {         if (const Circle* c = dynamic_cast<const Circle*>(&s))             assign(*c);         else{             std::cout << "BAD ASSIGNMENT IN CIRCLE.";                     //THROW ERROR HERE INSTEAD OF THE ABOVE COUT             }         return *this;     }      std::string getName() { return name; }             int getEdges() { return edges; }             int getRadius() { return radius; }            void setRadius(int r) { radius = r; }  protected:     void assign(const Circle& c) {         Shape::assign(c);         this->radius = c.radius;     }  };  int main() {     std::vector<Shape*> shapes;     std::vector<Circle> circs;     Circle c2(5); //Creates a circle with 5 for the radius.      shapes.push_back(&c2); //Pushing the 5-radius circle into the Shapes* vector     Circle c3; //Creates a circle with default constructor (which does NOT define radius)     c3 = *shapes[0]; //Now, the overloaded assignment operator. Look at Circle::assign(const Shape&) function     circs.push_back(c3); //We push our newly assigned circle to our Circle vector     std::cout << "c3 radius: " << circs[0].getRadius(); //This will be 5! }   It was a pleasant surprise to see this work! c3 will now know about c2's radius, showing that the overloaded assignment operators work for a Shape->Circle conversion.  If anyone has some suggestions, please let me know! (I will be creating a Circle constructor that takes a (const Shape&) param, so I can use Circle c = *shapes[0], instead of having to separate the lines since it cannot find a constructor that accepts that parameter).   EDIT2: Also, if you use this, make sure you throw an error (I left a comment where you should).


Implement an upper FPS limit in the gameloop

I implemented my game-loop as described in , using the last approach with an unlimited FPS and a constant game-speed.  My problem is, that the unlimited FPS cranks up my CPU usage to nearly 100%. I understand that this is desired (as the hardware does as much as it can), but for my game, it's not really necessary (it's pretty simple). So I'd like to limit the FPS to some upper bound.  Consider my game-loop:  private static final int UPDATES_PER_SECOND = 25; private static final int WAIT_TICKS = 1000 / UPDATES_PER_SECOND; private static final int MAX_FRAMESKIP = 5;  long next_update = System.currentTimeMillis(); int frames_skipped; float interpolation;  // Start the loop: while (isRunning){     // Update game:     frames_skipped = 0;     while (System.currentTimeMillis() > next_update             && frames_skipped < MAX_FRAMESKIP){         // Update input, move objects, do collision detection...         // Schedule next update:         next_update += WAIT_TICKS;         frames_skipped++;     }     // Calculate interpolation for smooth animation between states:     interpolation = ((float)(System.currentTimeMillis() + WAIT_TICKS - next_update)) / ((float)WAIT_TICKS);     // Render-events:     repaint(interpolation); }   How would I implement a maximum FPS?  If i implement the repaint the way I implemented the update (or use a sleep instead of "do-nothing-cycles"), then the FPS is locked, right? That is not what I want. I want the game to be able to work with lower FPS (just as it does now), but limit the FPS to a maximum of, say 250.


Unable to move launchers for bash scripts onto 'favorites' on ubuntu 18.04

Just upgraded Ubuntu 16.04 to 18.04. On 16.04, I had a lot of shortcuts with custom icons on 'Launcher' for quick access. After the upgrade, all the icons are changed to standard text (?) icons and I'm unable to move them to 'Favorites' which seems to have replaced the 'Launcher' on 18.04. What to do?


When should I use an interface and when should I use a base class?   Should it always be an interface if I don't want to actually define a base implementation of the methods?  If I have a Dog and Cat class. Why would I want to implement IPet instead of PetBase? I can understand having interfaces for ISheds or IBarks (IMakesNoise?), because those can be placed on a pet by pet basis, but I don't understand which to use for a generic Pet.


How can we decide FILLFACTOR of tables on production database?

I am using SQL Server 2008 R2 E2 x64. on production machine having 8 core processor, 32 GB RAM.  My database is being used commonly for OLAP & OLTP both.  There are some constraints from Infra, "we can not change disk, RAID configuration and can't move database to another server.  tempdb, T-Logs & .mdf are located on seperate partition.  Then I thought to do, what may be possible at database end.  I retrived some information about indexes using below query.  Now the question is;-   Does proper FILLFACTOR value of Index helps to reduce disk IO? If Yes, then how can we decide FILLFACTOR value based on the data I get using this query or Experts query (will be appreciated)?  Select             a.[Table Name],a.[Index Name],a.[Index Type],a.[Index Columns],a.[Row Count]             ,ips.avg_fragmentation_in_percent,a.[Fill Factor],a.user_seeks,a.user_scans             ,a.user_lookups,a.[Index Read],a.[Index Writes],a.[Last Used (Read)],a.[Last Used (Write)]             ,[Last Index Re-Built/Re-Organize] from (select Top 10  t.name [Table Name]             ,i.name [Index Name]             ,i.type_desc [Index Type]             ,c.name [Index Columns]             ,p.rows [Row Count]             ,i.fill_factor [Fill Factor]             ,ius.user_seeks             ,ius.user_scans             ,ius.user_lookups             ,(ius.user_seeks+ius.user_scans+ius.user_lookups) [Index Read]             ,ius.user_updates [Index Writes]             ,COALESCE(ius.last_user_seek,ius.last_user_scan,ius.last_user_lookup) [Last Used (Read)]             ,ius.last_user_update [Last Used (Write)]             ,STATS_DATE(s.object_id, s.stats_id) [Last Index Re-Built/Re-Organize]             ,i.index_id             ,t.object_id  from        sys.tables t inner join  sys.columns c on          t.object_id=c.object_id inner join  sys.indexes i on          t.object_id=i.object_id inner join  sys.index_columns ic on          t.object_id=ic.object_id and i.index_id=ic.index_id and c.column_id=ic.column_id inner join  sys.dm_db_index_usage_stats ius on          t.object_id=ius.object_id and i.index_id=ius.index_id inner join  sys.stats s on          t.object_id=s.object_id and i.index_id=s.stats_id inner join  sys.partitions p on          p.object_id=i.object_id and p.index_id=i.index_id Order by ius.user_lookups desc  -- Use to see by CPU, Resd, Writes, No. of Records. ) a cross apply             sys.dm_db_index_physical_stats(db_id(),a.object_id,a.index_id,0,DEFAULT) ips


How did the convention of 'multiplying' using $4\times 3$ become $4\cdot 3$?

How did the convention of 'multiplying' using  the cross symbol $4\times 3$ become $4\cdot 3$, using a dot in the middle?


Old story where a colonist is sent by a company to colonise a new planet where he meets a robot

Science fiction story where a colonist is sent by a company to colonize a planet and there a robot tries to sell him a depilating liquid by pulling a gun on him. The company who sponsored his trip to the new planet is extorting him by charging him exorbitant rates for anything they declare is not considered by them as bare necessities. The robot and man collaborate to get from the company the fair deal he deserves.


Is there any elegant function f such that f(n) is the n th prime?

I found many function generating prime numbers but all of them uses the knowledge of n-1 prime numbers that we already found or in a more inefficient way.  My question is not about existence of prime generating function but about the efficiency of such functions. Neglecting all other overheads, just the need to use all previously found primes making any algorithm to have $\Omega(n^2)$ running time.  Is there any efficient formula? If not, is there any argument supporting that you have to use all n-1 primes?


Cron: Setting PATH from shell script not working

I wrote a simple shell script in centOS and executing this from a cron job. My script looks like below:  #!/bin/bash  export PATH=$PATH:$(pwd)  echo $PATH echo $PATH| mail -s "PATH" me@gmail.com   And if I execute this script directly from terminal, it outputs below:  /sbin:/bin:/usr/sbin:/usr/bin:/vagrant   where /vagrant is the one I expected.  But if this is executed from cron job, it outputs (in my mail) like:  /usr/bin:/bin:/root   How I can set /vagrant properly when executed from a cron job?  UPDATE: I can set the /vagrant as PATH but it will work for me only. If I deploy my script to some other user, they have to make this directory. So I want to make the script like it will export the location from where it is running.  In my case , my script is running from /vagrant but the current directory is being exported as /root. This is the problem.  UPDATE: Sadly speaking, path was exported correctly but files from the /vagrant directory was reported to be not found.


What does "${debian_chroot:+($debian_chroot)}" do in my terminal prompt?

In my terminal prompt definition in my .bashrc file, among other things, I have this snippet of code:  ${debian_chroot:+($debian_chroot)}   What does this do, and do I need it?


I have made a raster elevation map of Greenland, and have information of the region, cities and more as vectors. The information is not in the same place as my elevation map.  I have selected EPSG:5938 on the bottom right in QGIS and on my informations and elevation map I have set the CRS to the same like the picture    How do I get it all on the same position?


If $f(x+y)=f(x)+f(y) ,\forall\;x,y\in\Bbb{R}$, then if $f$ is continuous at $0$, then it is continuous on $\Bbb{R}.$

I know that this question has been asked here before but I want to use a different approach. Here is the question.  A function $f:\Bbb{R}\to\Bbb{R}$ is such that  \begin{align} f(x+y)=f(x)+f(y) ,\;\;\forall\;x,y\in\Bbb{R}\qquad\qquad\qquad(1)\end{align} I want to show that if $f$ is continuous at $0$, it is continuous on $\Bbb{R}.$  MY WORK  Since $(1)$ holds for all $x\in \Bbb{R},$ we let \begin{align} x=x-y+y\end{align} Then,  \begin{align} f(x-y+y)=f(x-y)+f(y)\end{align} \begin{align} f(x-y)=f(x)-f(y)\end{align} Let $x_0\in \Bbb{R}, \;\epsilon>$ and $y=x-x_0,\;\;\forall\,x\in\Bbb{R}.$ Then,  \begin{align} f(x-(x-x_0))=f(x)-f(x-x_0)\end{align}  \begin{align} f(x_0)=f(x)-f(x-x_0)\end{align}  \begin{align} f(y)=f(x_0)-f(x)\end{align}  HINTS BY MY PDF:  Let $x_0\in \Bbb{R}, \;\epsilon>$ and $y=x-x_0,\;\;\forall\,x\in\Bbb{R}.$ Then, show that  \begin{align} \left|f(x_0)-f(x)\right|=\left|f(y)-f(0)\right|\end{align} Using this equation and the continuity of $f$ at $0$, establish properly that  \begin{align}\left|f(y)-f(0)\right|<\epsilon,\end{align} in some neighbourhood of $0$.  My problem is how to put this hint together to complete the proof. Please, I need assistance, thanks!


How to get graphical display when executing commands as another user, through terminal?

In my terminal, I did   $su nextuser   and logged in to that account. Now, when I try to open a text file in the home directory of that user by  $gedit test.c   I get  No protocol specified Cannot open display:  Run 'gedit --help' to see a full list of available command line options.   How can I use the graphical text editor to display files on the new user's account?


I have this string:  '2012-02-10' # (year-month-day)   and I need it to be as date type for me to use the date function isoweekday().  Does anyone know how I can convert this string into a date?


I want to apply this partly transparent png texture to one surface of the cube without losing the red color. How do I do that?    When I click on face texture the texture is visible on the surface but the rest of the object becomes black:


Regarding the `book`, `report`, and `article` document classes: what are the main differences?

What are the main differences between the book, report, and article document classes?  I am interested in the following:    visual differences in the final document; differences in the way the document must be coded; differences between the standard classes and their KOMA-Script equivalents; and any other significant differences.


I recently heard about some vulnerability in older versions of OpenSSL i.e. before 1.1.1i . I checked my servers and found that most have either 1.1.0l or 1.1.1f . The recommended update version was 1.1.1i . Checked for Ubuntu DEB packages for 1.1.1i and found no mention in Ubuntu site. In Debian site the versions 1.1.1i-1 is in Testing and 1.1.1i-2 is in Unstable Stage. Found there is an official TAR package from OpenSSL  If I install the TAR file should it cause problems for any other ubuntu software dependent on OpenSSL ubuntu package? I know that by installing the TAR file I have to handle future update/upgrades manually. Should I install or upgrade 1.1.1i from the TAR file only or wait for Ubuntu to release the update for 1.1.1i?


Convert HTML Entities using JavaScript (RegExp)

I wrote following code:  function convert(string) {   var before = '&';   var after= '&amp;';    var pattern = new RegExp(before, 'g');   return string.replace(pattern,after); } convert("Dolce & Gabbana");   And it works just fine - returns Dolce &amp; Gabbana. How could I do this through some loop, for multiple patterns, like this:  var multiple = {     '&' : '&amp;',     '<' : '&lt;',     '>' : '&gt;',     '"' : '&quot;',     '`' : '&apos;'   };


What is the mediascanner-service and how to avoid getting it installed?

Since a few months, on one of the desktop Ubuntu 14.04 systems I use, CPU has regularly been going up to 80-100% for no apparent reason. htop would usually attribute responsability to file system processes, such as nemo or ntfs. To get CPU back down I would kill these process, which in some cases would lead to loss of access to the file system and a consequent restart.  Days ago I noticed that whenever this situation happened another process was always present also using high CPU: mediascanner-service-2.0. Some research lead me to  that simply advised its removal. So I did.  The end result has been unexpectedly positive: not only are the high CPU load episodes gone, the system is altogether much faster. The speed up of the Lens is dramatic: finding an application like Calc now takes 2 seconds at most when previously it took some 20 seconds. Finding a file takes now some 5 seconds, whereas before it took in the order of 30 seconds. Heavy programmes like Eclipse are starting up faster and workspaces are more fluid. There seems to be also an overall reduction in the frequency of disk access.  What is exactly this mediascanner2.0 package? Is it part of Unity 7 or a dependency that gets installed a posteriori? Is it possible to prevent its installation?  Update: following  it is possible to track this package down to indicator-session:  $ sudo aptitude why mediascanner2.0 i   indicator-session         Recommends indicator-applet (>= 0.2) | indicator-renderer i A unity8                    Provides   indicator-renderer                             i A unity8                    Recommends unity-scope-mediascanner2                      pi  unity-scope-mediascanner2 Depends    mediascanner2.0                                  Apparently, mediascanner2.0 (and the Unity 8 shell) are part of the base 14.04 system. Left to answer is the exact function of this rogue package.


How can I find a generator of $\mathbb{F}_{743}[x]/(x^2+1)$ ?  (x-5) ??? Well it has something to do with primes that do not divide the order of 743 which is equal 2*7*53 ....?  Does one of you know how to do this?


Somehow suddenly Ubuntu is reading menu's to me - with a computer voice. How do I turn that off?  thanks


apple configurator 1.7 downgrade ios from 10 to 10

I am using apple configurator 1.7.2. Accidentally someone upgrade IOS to version 11 as image for every no ipod touch. Is any way I can go back to version 10? I need it for run older application which not support version 11 yet. Thanks for any help


im new in android programing and i want to add JSON to my recyclerview i was getting the adapter not attetched skiping layout but my CustomAdapter is giving me NullPointerException too.  my CustomAdapter    public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.CustomViewHolder> {  private List<RetroProduct> dataList;  private Context context;  CustomAdapter(Context context, List< RetroProduct > dataList){      this.context = context;      this.dataList = dataList;  }   class CustomViewHolder extends RecyclerView.ViewHolder {      final View mView;       TextView goodsId,categoryTitle,number,title1,title2;       CustomViewHolder(View itemView) {          super(itemView);          mView = itemView;           goodsId = mView.findViewById(R.id.tv_goodsId);          categoryTitle = mView.findViewById(R.id.tv_categoryTitle);          number = mView.findViewById(R.id.tv_number);          title1 = mView.findViewById(R.id.tv_title1);          title2 = mView.findViewById(R.id.tv_title2);       }  }   @NonNull  @Override  public CustomViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {       LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());      View view = layoutInflater.inflate(R.layout.item_row, parent, false);      return new CustomViewHolder(view);  }   @Override  public void onBindViewHolder(CustomViewHolder holder, int position) {       holder.goodsId.setText(dataList.get(position).getGoodsId());      holder.categoryTitle.setText(dataList.get(position).getCategoryTitle());      holder.title1.setText(dataList.get(position).getTitle1());      holder.title2.setText(dataList.get(position).getTitle2());      holder.number.setText(dataList.get(position).getNumber());  }   @Override  public int getItemCount() {       return dataList.size();  }  }   and im getting NullPointerException on    return dataList.size();   what should i do now? give it value or i dont know.  MainActivity  public class MainActivity extends AppCompatActivity { private CustomAdapter adapter; private RecyclerView recyclerView;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);       GetDataService service =           RetrofitClientInstance.getRetrofitInstance()                              .create(GetDataService.class);      Call< List<RetroProduct> > call = service.getAllProducts();     call.enqueue(new Callback<List<RetroProduct>>() {         @Override         public void onResponse(Call<List<RetroProduct>> call,       Response<List<RetroProduct>> response) {             generateDataList(response.body());             LinearLayoutManager manager = new       LinearLayoutManager(MainActivity.this);             recyclerView.setLayoutManager(manager);             recyclerView.setHasFixedSize(true);             recyclerView.setAdapter(adapter);             adapter.notifyDataSetChanged();         }          @Override         public void onFailure(Call<List<RetroProduct>> call, Throwable t)       {             Toast.makeText(MainActivity.this, "null",     Toast.LENGTH_SHORT).show();         }     }); }   private void generateDataList(List<RetroProduct> productList) {      recyclerView = findViewById(R.id.recycler_view);     adapter = new CustomAdapter(this,productList);       }   }


What does "Peer review in process" mean in ScholarOne submission?

I have submitted my manuscript to a journal that uses ScholarOne system. After 20 days, the status is still "Peer review in process". I don't know this means the Reviewers are reviewing my manuscript, or it is still on "Editor's desk"?


How does the Uncertainty Principle work?

In my textbook they have explained the  using the example where you cannot measure the position of the electron using the photon because the wavelength of the photon needs to be small which then causes it to have high energy which would knock off the electron by collision. So my first question is isn't this the observer effect?  My second question is, if I were to measure the position (the point with highest probability) how does that cause an increase in the uncertainty in momentum? How does that work?


Shouldn't rep gains from old questions & answers eventually stop (or at-least reduce)?

I see profiles of , ,  etc and realize that even if they were to go inactive, it'll take years to beat them in terms of total rep, because they'll hit the rep cap every single day, thanks to their popular old answers for years to come.  I do realize, the answers totally deserve the rep they get, they are brilliant! But they do have to stop generating rep at some point to be fair right?


Create DEM with 1 foot contours from lidar data with 1.4 meter resolution

I have Lidar data which contains multiple .las files for an entire quad. I have figured out which .las is the area I am looking for. I was told the data is in 1.4 meter resolution and would work to create a contour map with 1 foot intervals. So that's what I have to work with.   I am not sure what the 1.4 meter resolution means or how it helps to create 1 foot intervals. Would the first step be to use the las2dem tool? And what would I set the step size/pixel size to?   I have created a DEM by inputting my .las file, no filter, pixel size:1. I then used raster>extraction>contours and input my DEM with interval set to 1. Is this correct for 1' intervals, or is there something I need to do to compensate for the 1.4 meter resolution of the .las?   I am mostly confused on how to make sure the intervals are set to 1 foot and not 1 meter, and what the 1.4 meter resolution means.  Also, I am working in QGIS and using the LAStools set.


Python - Add a key (string) in a numpy array filled with float

I have a big array named A of arrays which follows the following structure :  [ [0.453,0.5452,0.252], [0.411,0.352,0.119], [...], ... , [...] ]   I have an other array named B with the same length but filled with string. For example :  ['toto1','toto2',...,'totoN']   Now I would like to associate each array of A with a string of B. So either like this :   [ ['toto1',0.453,0.5452,0.252], ['toto2',0.411,0.352,0.119], [...], ... , [...] ]   Or :  {'toto1':[0.453,0.5452,0.252],'toto2':[0.411,0.352,0.119],...}   depending of what it is possible to do and the most easiest way to do it.  First, is it possible to do this kind of thing ? If yes, could you please help me to figure out how I can achieve that ?   Thank you very much in advance


This is a software. Is this sentence incorrect? As per the explanation given, this has to be "This is software.", but I have seen the usage of "This is a software." even in newspapers. Could you please clarify this doubt for me.


An infinite generating set of a finite dimensional vector space contains a basis

Let $S$ be an infinite generating set of a finite dimensional vector space , then how do we prove that there is a subset of $S$ which is a basis of the vector space ?  Please help


How to compile multi cpp files with g++ when using singleton template

contents of three files are in the following, and then I use g++ command like this to compile them: g++ singleton_template_thread.cpp singleton_template_thread_safe.cpp -o /tmp/stts  the error is: /tmp/ccfFdxaW.o: In function `main': singleton_template_thread.cpp:(.text+0x9): undefined reference to `SingletonTTS<Book>::Instance()' collect2: error: ld returned 1 exit status  I don't know where the error is, I compile multi cpp files like this all the time  singleton_template_thread_safe.cpp #include "singleton_template_thread_safe.h"  static int count = 0;  template <typename T> T * SingletonTTS<T>::m_pInstance = nullptr;  template <typename T> std::mutex SingletonTTS<T>::m_mutex;  template <typename T> T * SingletonTTS<T>::Instance(){     if(m_pInstance = nullptr){         m_mutex.lock();         if(m_pInstance = nullptr){             m_pInstance = new T(count);              ++count;         }         m_mutex.unlock();     }     return m_pInstance; }  template <typename T> void SingletonTTS<T>::Destroy(){     if(m_pInstance){         m_mutex.lock();         if(m_pInstance){             delete m_pInstance;             m_pInstance = nullptr;         }         m_mutex.unlock();     } }  singleton_template_thread.cpp #include "singleton_template_thread_safe.h" #include <iostream> #include <thread>  int main() {     using namespace std;     Book *b1 = SingletonTTS<Book>::Instance();      return 0; }


An elementary way to prove that $\sqrt{2}+\sqrt{3}$ is irrational?   Disclaimer: I know about the rational root theorem. I am trying to answer it without using it.   I did the following:  $$\sqrt{2}+\sqrt{3}=\frac{a}{b}$$   $$5+2\sqrt{6}=\frac{a^2}{b^2}$$  $$24=\frac{a^4}{b^4}-10\frac{a^2}{b^2} + 25$$  $$\frac{a^2}{b^2}\left(10-\frac{a^2}{b^2} \right)= 1$$  At this point, I am a bit confused. I thought about this: If $A=\frac{a^2}{b^2}$ then $A^{-1}=\left(10-\frac{a^2}{b^2} \right)$ and then:  $$AA^{-1}=A\left(10-A \right)=10A-A^2=1\tag{$\star$}$$  This is a polynomial with roots: $A=5\pm 2\sqrt{6}$ which means that:  $$\frac{a^2}{b^2}=5\pm 2\sqrt{6}$$  $$\frac{a^2}{2b^2}-\frac{5}{2}=\pm \sqrt{6}$$  As $\frac{a^2}{2b^2}-\frac{5}{2}$ is rational and $\sqrt{6}$ is irrational, then we obtain a contradiction. Is this correct?


I have installed Ubuntu 14.04.5 Desktop 32 bit, and I can't find any icon or menu to launch the terminal. Is something wrong? How can I access the terminal?


Change the drive for system restore points?

I want to move my C: System Restore Points to my archive HDD D: (which is 8TB big). Any way I can do that? I don't want these system restore points on my 250gb SSD.


I've read that light travels in a straight line and has a wavelength of 400nm to 700nm. But I don't understand why does it have a wavelength and what creates its wavelength? I agree with the concept of sound which also has wavelength, thus called sound waves which are created by the vibrational movement in air. I'm not aware of calling light a wave. Does the light vibrate too? If so, then how?


Downloaded the latest copy of Tiny Cad but it throws out an error when I try to enable it. See the image below. I have no clue what is happening. Does anyone have a solution to this?  I am using Blender 2.75. Tiny Cad's version is 1.2.0


I feel one of the biggest improvements with Chrome on Windows is moving the tabs all the way to the top to the screen (so the mouse can just go all the way up, then click). I went with the kubuntu because they do not include the normal (pointless) Linux menu bar at the top of the screen. It took me an hour to get chrome on here and now I see there is a Giant pointless title bar across the top. It is a good 5% of the total screen area and it is just the title and close buttons. Is there anyway to have the chrome tabs all the way at the top of the screen like was intended by Google?


Identification of 404 picture from Stack Exchange Chat

The following picture appears on the  on :    My minimal knowledge of Star Trek tells me that these men are Captain Jean-Luc Picard (on the right), First Officer William Riker (on the left), and Lieutenant Worf (in the background), officers on the Enterprise during Star Trek TNG.  But where does this picture originate? Is it a screenshot taken from an episode of Star Trek? If so, which one? A Youtube clip including this scene would be great, if anyone has one!  Bonus points if you can explain why they're wearing funny hats: this picture's  is "404_funny_hats.jpg".


Why is my question still on hold despite of being narrowed down and added explanation?

I asked a question several days ago, and soon after being posted it was set to "on hold". The reason being that it was too general.  I tried explaining more and the question itself got edited as well, and I am 100% sure it is specific and thus should be set free from on-hold status.  Here is the link:


Word does not shutdown completely when my addin is enabled

I have built a MS Word Custom Taskpane addin.  When this addin is enabled in a Word Application, the entire Word application does not shutdown when i attempt to close Word.  The Active Document will disappear, but Word remains open.  I then have to go into Task Manager and kill the process.  When my addin is disabled, Word shuts down fine.  How do I shut down MS Word while having my addin enabled?  Update:  I open Word via OLE Automation


In a normed space $X$ with field $\mathbb{R}$, is $\{ x \in X \mid \|x\| =1\}$ compact in general?  In $\mathbb{R}^n$ yes but for completely general one, not sure if it's true.  If yes in general, is there any simple proof for it?


Failed to download repository information from 18.04

I am running 18.04LTS and am trying to get my system to download the 20.04 release.  Running update-manager with no arguments is failing.  It starts downloading the repository information, gets 90% done, then aborts with "Failed to download repository information.  Check your internet connectiion."  I am able to ping, traceroute and http to www.ubuntu.com and archive.ubuntu.com with no problems.  My internet connection is just fine for other destinations.  Now "apt update" is not working.  sudo apt update [sudo] password for jms:  Hit:1 http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic InRelease Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]       Ign:4 http://ppa.launchpad.net/videolan/stable-daily/ubuntu bionic InRelease    Err:5 http://ppa.launchpad.net/videolan/stable-daily/ubuntu bionic Release        404  Not Found [IP: 2001:67c:1560:8008::15 80] Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:7 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'> BrokenPipeError: [Errno 32] Broken pipe Reading package lists... Done E: The repository 'http://ppa.launchpad.net/videolan/stable-daily/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Skipping acquire of configured file 'allow-insecure=yes/binary-i386/Packages' as repository 'http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic InRelease' doesn't have the component 'allow-insecure=yes' (component misspelt in sources.list?) W: Skipping acquire of configured file 'allow-insecure=yes/binary-amd64/Packages' as repository 'http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic InRelease' doesn't have the component 'allow-insecure=yes' (component misspelt in sources.list?) W: Skipping acquire of configured file 'allow-insecure=yes/i18n/Translation-en' as repository 'http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic InRelease' doesn't have the component 'allow-insecure=yes' (component misspelt in sources.list?) W: Skipping acquire of configured file 'allow-insecure=yes/i18n/Translation-en_US' as repository 'http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic InRelease' doesn't have the component 'allow-insecure=yes' (component misspelt in sources.list?) W: Skipping acquire of configured file 'allow-insecure=yes/dep11/Components-amd64.yml' as repository 'http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic InRelease' doesn't have the component 'allow-insecure=yes' (component misspelt in sources.list?) W: Skipping acquire of configured file 'allow-insecure=yes/dep11/icons-48x48.tar' as repository 'http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic InRelease' doesn't have the component 'allow-insecure=yes' (component misspelt in sources.list?) W: Skipping acquire of configured file 'allow-insecure=yes/dep11/icons-64x64.tar' as repository 'http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic InRelease' doesn't have the component 'allow-insecure=yes' (component misspelt in sources.list?) W: Skipping acquire of configured file 'allow-insecure=yes/cnf/Commands-amd64' as repository 'http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic InRelease' doesn't have the component 'allow-insecure=yes' (component misspelt in sources.list?)


tools to manage your documents, songs, images with many categories?

Problem:  I have collection of many images or books which can belong to multiple categories like     C, algorithms, interview, database, OS, windows,    for images    icons, website headers, awesome, minimal, abstract, print design, photography   For songs  new songs, old songs, romantic songs, comedy songs, awesome songs, slow songs, fast songs   To properly organize all the items I have to create folder for each category and place duplicate copies or shortcuts (making shortcuts is also a hassle) in each folder. I want a alternate solution to this method  Current file browsers seem to ignore these type of cases or such functionality is hidden to normal user. (I am doubtful about the folder technology implementation in file browsers there should be something like tagging).  Does there exist a software or script or good folder structure to decrease my effort ??


after creating a startup usb disk Booting 16.04.1 I get error: "gfxboot.c32 not a com32r image". how do I get a valid image?


Relativistic Commutation relation for momentum and position

We all know that the canonical commutation relation give you   $$[x^i,p_j]=i\hbar~\delta^i_j,\qquad i,j=1,2,3.$$   Is there a relativistic version such as   $$[x^a,p_b]=i\hbar~\delta_b^a,\qquad a,b=0,1,2,3~?$$  If so what is the time operator $x^0$?


Let $a$ be any positive integer. If $x$ and $y$ are positive integers such that $max(x, y) = a$, then we know that $x = y$. I'm pretty sure this is a false claim, and I need to find what is wrong with the induction proof. For the base case, we let $a = 1$. Here, if $x$ and $y$ are positive integers such that $max(x, y) = 1$, then $x$ and $y$ must both be $1$. In the inductive case, we let $k$ be some arbitrary positive integer. The induction hypothesis assumes that if $x$ and $y$ are positive integers such that $max(x, y) = k$, then $x = y$ for some positive integer $k$. Consider the case where $a = k + 1$ and let $x'$ and $y'$ be two positive integers such that $max(x', y') = k + 1$. Now we have $max(x' - 1, y' - 1) = k$, which, by the induction hypothesis, implies that $x' - 1 = y' - 1$, and therefore that $x' = y'$. Thus, we have proven the claim. I can identify just one counterexample: if $a = 20, x = 10, y = 20$. Then, $max(10, 20) = 20$, but $20 \neq 10$.


How Can I Delete These Ubuntu Boot Entries

Long story short, tried to install Ubuntu on my new PC but ran into two huge bugs with the installer that almost broke my computer. Asked for help on here and whilst someone did spend some of their time trying to help me, we couldn't fix it.  So I'm done, I'm going back to Windows. I've tried to follow other guides on this site, but the commands needed for my use case seem to be different and I don't know what they are.  I'm using efibootmgr to remove the boot entries and this is what I get back with:  sudo efibootmgr  BootCurrent: 0007 Timeout: 2 seconds BootOrder: 0004 Boot0000* Windows Boot Manager Boot0001* UEFI: PXE IP4 Realtek PCIe GBE Family Controller Boot0002* UEFI: PXE IP6 Realtek PCIe GBE Family Controller Boot0003* Hard Drive Boot0004* ubuntu Boot0005* Windows Boot Manager Boot0006* ubuntu Boot0007* UEFI: Lexar JumpDrive 1100, Partition 1 Boot0008* USB   I want to remove the two Ubuntu entries and the duplicate Windows Boot Manager entry at Boot0005. Any help is very much appreciated.


When is absence of evidence not evidence of absence?

"Absence of evidence is not evidence of absence."  I think this statement raises some kind of epistemic problem.  Like, how are we supposed to conclude the potential non-existence of something, like Santa Claus or dragons?


Is there any way to get a list of the system-wide keyboard shortcuts currently in use?

Is there any way to get a list of the system-wide keyboard shortcuts currently in use, including what programs they are attached to?  I have noticed that some are overriding others unexpectedly and a couple are mysteriously tied up with something, on my main computer.


Let $f$ be a continuous real valued function on $[0,1]$ and $\int_0^1f(x)x^ndx = 0$ for $n = 0,1,2...$ Prove that $f$ is identically zero on $[0,1]$  This question was a part of a Topology exercise, but I cannot understand what relation it has to Topology. It seems like a real analysis question, where I integrate by parts (?) and show $f=0$ is required for the question to hold. But how to solve this from a topological perspective?   Unless I am understanding the "Prove that $f$ is identically zero on $[0,1]$" part wrong (?)


Is time dilation an illusion? Variation on the twins paradox

Consider the twins paradox with a slight variation:  Twins A and B are in separate space ships both capable of going at the speed of light instantly (i.e. without any acceleration). Both ships are stationary relative to each other in intergalactic space facing in opposite directions. They synchronize their clocks.  Then Twin A sees ship B zooms off to the "right" at the speed of light, and ship B travels a round trip of 8 years. Twin A sees ship B recede away from him at the speed of light (in fact, ship A just disappears).  When ship B returns, Twin B's clock will show he has been gone 8 years. But from Twin B's perspective, it's ship A that zooms off to the "left" at the speed of light, does an 8 light year round trip, and according to Twin A's clock, he has also been gone 8 years.  So they both would agree that one has been away from the other 8 years, and both have aged the same amount of time.  It would seem clocks do not actually run slower as they move closer to the speed of light. So is time dilatation just an illusion?


At the WineHQ site I followed the last step to install one of the available packages, I choose the stable branch and the command is sudo apt install --install-recommends winehq-stable, it unpacking some wine file and end up getting this error: dpkg: error processing archive /var/cache/apt/archives/wine-stable-amd64_5.0.2~ focal_amd64.deb (--unpack):  cannot copy extracted data for './opt/wine-stable/lib64/wine/d3dx9_24.dll' to  '/opt/wine-stable/lib64/wine/d3dx9_24.dll.dpkg-new': failed to write (No space  left on device) No apport report written because the error message indicates a disk full error         d pkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/wine-stable-amd64_5.0.2~focal_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


How to maintain 6 months bank statements for UK visit visa?

I am a doctor and I want to give my plab 2 exam in the UK.  As I am a recent graduate my father is supporting me financially. He is a retired government officer who gets pension, rents from his properties and interest from his fixed term deposits. Please tell me that how should I maintain his bank statement for 6 months, and is my employment necessary to get a visit visa as I heard from many guys that it shows ties back to your country.


When editing user questions, Stack Overflow warns that it might be spam

I recently tried to edit a user question, but I ended up quitting, because Stack Overflow wouldn't allow me to Save Edit. I originally thought the question needed improved formatting on some code and some corrections of English grammar.  The reason was because:    The original text was this:     I use Alamofire to download multiple files on the tableViewCell show download progress.   From my point of view I believe it's pretty essential that the user says he's using "Alamofire Framework". Though he can include it using the tags and avoid it in the text.  Question:  Is it okay to edit an answer in that degree that you'll might end up changing too much information?  Should all references to e.g. frameworks be added to the question using tags, if so, should editors delete all sentences/rewrite to avoid references to these things?


Can I travel Without Visa to Argentina using UE passport with a different first name on the ticket

I booked a plane ticket to Argentina with my name as it is on my Tunisian passport. Recently I changed my first name on my french passport so the first name doesn't match the one for the plane ticket/Tunisian passport. So my question is can I travel to Argentina using my Tunisian passport as document of identification and my french passport as a visa/proof of right of entry ? Or the airline may refuse it. Is there any other solution than applying for Argentinian visa with my Tunisian passport ?


My pokemon account is saying that my bag is full but it is not full. I have plenty of room and I can collect items no bother at pokemon stops. I can't catch pokemon  as it comes up saying my bag is full.  Can you help?


App version: 1.0.35 Device: Nexus 7 Problem: Users with weird/unusual name won't display on the Android app, there will just be a blank space where the username should be. For example,  user is showing as:   On a question:   On their profile:


Convert from String to Enum return not valid cast in WPF

I trying to convert from WPF combobox selected value to enumurator it return not valid cast in the runtime otherwise the string and the enum name is matched my code is  Siren.PfundMemberWebServices.Emirates EM = (Siren.PfundMemberWebServices.Emirates)cmbemirate.SelectedValue


RAID0: Can I transfer my disks onto another motherboard/RAID controller?

I have 2 1TB drives that I set up in RAID0. Unfortunately, my old system is in pretty crappy shape and I might not be able to boot onto it. This means that the motherboard and old RAID controller are not available.  I can set up a RAID0 on the new system, but it's prompting me to create a new RAID. Will this erase/format the disks, or will it just set up the RAID and leave any existing data on the disks? This is extremely important because I have about 1.5TB of data on these disks that I absolutely cannot lose, and want to transfer onto a new 2TB disk.


I would like to revise the default new user registration form in Drupal 7. Rather than to requst "username", I want to request "full name" with helper instructions to enter the text "username is your full name as you would normally use it."  There may be some other minor formatting changes I would like to make as well.  I cannot find an admin menu item to access anything relating to this question. And I am unable to locate a file within any director that has any text that would indicate it is the source for the new user registration form.  I realize this is a bit unconventional, however it is useful for our needs. I am aware of a module that allows the input of First Name / Last Name, but in processing it changes the input to first initial/lastname, ie Tom Thumb = username of "tthumb". The module "Realname Registration" would be just what I am looking for if it would only translate the username the same as the input.   That wouldn't necessarily solve the other formatting edits, but I would be very happy just to be able to manually edit the registration form help text under the username field, instructing the new user to register using thier real name.  Thanks for any help that you can provide.  J.M.


“Will have to” and “be going to have to”

Is there any difference in nuance?  I think you’re going to have to sell your stuff.  = I think you will have to sell your stuff.  If I think that something is a plan, I have to say “be going to have to”?


Yosemite : change sound output between speaker and headphone

I want to switch between headphones (jack) and internal speakers without having to insert/remove the jack?  Is it possible ? And how ?


I have seen proof of -: Sum of two rationals is rational and that implies that sum of all rational is always rational( by induction). Now my question is about Basel Problem-:. How can the sum of rationals be equal to an irrational number?


Three proper ladies are traveling on a train. Each turns red within one second if they become aware of dirt on their face. They are too proper to tell the other if they have dirt, and there are no mirrors. The conductor tells them "At least one of you has dirt on your face". Within 3 seconds, all three ladies turn red.  How many have dirt on their face? What is the reasoning of each of the ladies for believing they have dirt?  Assumptions: The conductor is telling the truth...the solution is either 1, 2 or 3 ladies have dirt on their face. (The answer can't be zero).


Many more vs much more / many fewer vs much fewer

This year there were:   many more people much more people   Alternatively:   many fewer people much fewer people   Which is considered better English?


How to write jUnit test case for method with private variable

private PreconfigGroupOpenLPolicyRulesService openlApi;  @Override public Object[] getPackageEligibility(IRulesRuntimeContext context, Dimension dimension) {     return openlApi.PackageEligibility(context, dimension); }   I am new to jUnits. Can anyone help me to write test case for method getPackageEligibility. Which are all i need to do @Mock.  i tried  PreconfigGroupOpenLComponentService preconfigGroupOpenLComponentService = new PreconfigGroupOpenLComponentService();  @Mock PreconfigGroupOpenLPolicyRulesService openlApi; @Mock IRulesRuntimeContext context; @Mock Dimension dimension;    @Test public void testGetPackageEligibility() {      Object[] arg = preconfigGroupOpenLComponentService.getPackageEligibility(context, dimension);     assertNotNull(arg);  }   But getting  java.lang.NullPointerException     at com.exigen.eis.preconfig.policy.group.services.impl.PreconfigGroupOpenLComponentService.getPackageEligibility(PreconfigGroupOpenLComponentService.java:32)     at com.exigen.eis.preconfig.policy.group.services.impl.PreconfigGroupOpenLComponentServiceTest.testGetPackageEligibility(PreconfigGroupOpenLComponentServiceTest.java:28)


Is there a way to calculate frequency of visible white light?

According to Wikipedia visible light lie between 405-790 THz   Can I just sum "maximum" spectrum of the light if by definition white light is sum of colors (frequencies)?  Like 405+790?  I just want to know what is frequency of bombarding by photons "white" noise rather specific "color"


Can the graph of a bounded function ever have an unbounded derivative?    I want to know if $f$ has bounded variation then its derivative is bounded. The converse is obvious. I think the answer is "yes". If the graph were to have an unbounded derivative, it would coincide with a vertical line.


Avoid copying element multiple times in sub-lists

I am creating a list with several sub-lists and sub-sub-lists like so:  a = [0.1, 0.2, 0.4, 0.8, 1.2] b = [[]] * 3 c = [[]] * 4 # Final list. d = [[b, c]] * len(a)   I need to create it this way because it depends on the length of various other lists, this is just a simplified example.  When I try to append a single element to d:  d[0][0][0].append(a[2])   I get the same element repeated throughout the list:  [[[[0.4], [0.4], [0.4]], [[], [], [], []]], [[[0.4], [0.4], [0.4]], [[], [], [], []]], [[[0.4], [0.4], [0.4]], [[], [], [], []]], [[[0.4], [0.4], [0.4]], [[], [], [], []]], [[[0.4], [0.4], [0.4]], [[], [], [], []]]]   I understand this is a problem with how I'm creating d but I'm not sure how can I prevent this behaviour.


When we want to open an application or file from the terminal, we type, say,  okular file.dvi   This opens the application, but also shows the status of the application. We cannot close the terminal, because it kills the process. Unfortunately, if you're trying to, for example, create a LaTeX file, you will need one tab for the text editor, one for the dvi file, and so on. And if you're trying to open all windows from the terminal, you can forget it. I'm trying use the terminal as much as possible, and while I have Yakuake, it is still a bother having so many tabs and seeing which of those have an application I've killed and so on.  So, is there a way to open an application/file from the terminal so that the status doesn't show and immediately gives the prompt so that we can use it to open more applications?


What would be physics of a star totally consisting of electrons?

What is the minimum radius and mass (if any) for such a structure to be stable? What is the ultimate future of such structure? Will the electron repellation always be stronger than any gravitational attraction? Even at any density?


How to skip "please [Enter] to continue" during automating apt-get install?

I have a script to install trough a automated process.  Here is an example:    sudo apt-get update     clear      sudo apt-get install -y nginx     clear   It works good, but not when I need to add a PPA.  Here I have this following message:  please [Enter] to continue or ...   At this point I need to press the enter to continue the process.  How can I skip this question and make it "Enter" by default?  This is an example that ask me to press [Enter]:  sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get install -y sublime-text-installer clear  sudo add-apt-repository ppa:webupd8team/java   sudo apt-get update sudo apt install -y oracle-java8-installer clear


Data tag parsing failed with command [see post] in 1.12.1

I'm trying to place a sign that places a command block in itself for some effects, but trying to activate the command block, I get the error:  Data tag parsing failed: Expected '}' but got 'H' at: ...1,CustomNameVisible:1,CustomName:"H<--[HERE]   Command:  /setblock ~ ~ ~ minecraft:standing_sign 0 replace {Text1: "{\"text\":\"right click\"}",Text2: "{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock ~ ~ ~ command_block 0 replace {Command:/summon armor_stand ~ ~ ~ {Unbreaking:1,Invisible:1,Invulnerable:1,NoGravity:1,Marker:1,CustomNameVisible:1,CustomName:"Hi"}}\"}}"}   Any help? I tried adding \" and such, but it didn't help. Note, I'm in 1.12.1  Thanks in advance!


Edit: I'm not sure this will help, but I'll try: I am asking "what's the whole idea with wheels?"; a list of wheel parts is not what I am after. /edit  I'm aware that SPSite - despite the confusing use of a singular noun - represents a site collection, whereas SPWeb represents a (SharePoint) web site.   In order to begin getting a grip on SharePoint I thought it prudent to understand what these two things are. The MSDN documentation got me to the above understanding and not an inch further.  Googling "spsite vs spweb" leads to posts on here with nice diagrams showing how the site collection contains a root web site that is itself a website collection (since it may have subsites) and this bit is very clear.  What is not at all clear is why the makers of SP would bother to do it this way. Since SPWeb is in fact both a web site and a collection of web sites, what need is there for the site collection concept? What is it for?  I realize that it may be difficult to know if your understanding of these concepts is objectively accurate - it is inherently imprecise. Still, I would much appreciate if someone could give me some feel for these core concepts either by explaining in their own words, or by pointing me to someone else's words.


So, I am planning on buying a new headset and the 3.5mm jack wire is both audio and microphone in one. I am unable to find out whether my case and/or motherboard supports this kind of wire.  Q1: What are these 'two-in-one audio/mic' 3.5mm jack cables called?  Q2: Which specification would I have to check (now, and in the future) to check for support?


Disable malfunctioning touchscreen at startup

My Asus Vivobook S200E has a problem with its touchscreen: it keeps pressing the right side of the screen, even when untouched.   I managed to disable the touchscreen in the Windows 8.1, and the configuration is saved every time I restart the PC. But if I boot into Ubuntu, the touchscreen is active again (of course). I have to run this in the terminal to turn off the touch:  xinput disable 'device name'    The touch would be off, but if I reboot Ubuntu, the touch is on again, so I have to type the script again at the start of my work with Ubuntu. I find this annoying, and is there any way that I can run the script at every startup?


Example of a sequence of closed and connected sets whose intersection is disconnected

How can I find an example of subsets which satisfies;  for every $i \in \mathbb{N}$   $c_1 \supset c_2 \supset c_3 \supset \cdots \supset c_n$ which are closed and connected subsets of $\mathbb{R^k}$ then $\bigcap_{i=1}^\infty c_i$ is not connected.  until now I have     $c_n=\{[n,\infty) , n \in \mathbb{N}\}$ $\Rightarrow$ $\bigcap_{i=1}^\infty c_i=\varnothing$ which is I couldn't decide whether if it is connected or not connected.  $d_n=\{ ( [-\frac{1}{n},\frac{1}{n}] \times \{0\}) \cup (\{0\}\times ([-1,1]\setminus \{0\})), n\in \mathbb{N}\}$ $\Rightarrow$  $\bigcap_{i=1}^\infty d_i= \{0\} \times [-1,1]$  which is connected. (here I want to seperate the vertical one from the point $(0,0)$ for not path connected implies not connected. If i rearrange  the $ [-1,1] \times \{0\}$ element -for not path connecting result-  as $(-1,1) \times \{0\}$ the set will be not closed but intersection is not connected.)   Thanks in advance for your guidances :)


How to open Nautilus (File Manager) preferences in 13.04?

Please could you tell me where can I find the File Manager Preferences in Ubuntu 13.04. I want to run a sh file.


I have a dict where each key references an int value. What's the best way to sort the keys into a list depending on the values?