Showing $\langle a,b\mid ab^2＝b^3a, ba^2＝a^3\rangle$ is isomorphic to the trivial group.

I want to show $$\langle a,b\mid ab^2＝b^3a, ba^2＝a^3\rangle$$ is isomorphic to a trivial group.  My text book proved this like following.  $bab^2a＝a^4b^2a\to ba＝a^4b^2$  $a^4b^2a＝a^3b$ (omitted some process), so $ab^2a＝b$  $b^2a^2＝1, a＝a^4b^3a b^3a^2＝1, b^3＝b^2\to b＝1, a＝1$  This proof is too difficult for me to imitate because there is no oriented strategy of each process. Firstly, I cannot understand why we should start from $bab^2a$.  Other way to prove is also appreciated, I would be happy if you could give me an strategy of deformation.


What pressure should I run my Road Bike tyres at?

There's a question for mountain bike tyres but I can't seem to find anything on here for road bikes. At the moment I'm running at around 90psi. Is that too much? too little?  Also, am I more likely to get punctures running at higher pressure?  I seem to be getting a lot lately.


I want to make a map using ArcGIS and for that I need the limits of the cities of the area. Where I can get shapefiles for cities in the US?


In SQL Server 2005, how do I set a column of integers to ensure values are greater than 0?

This is probably a simple answer but I can't find it.  I have a table with a column of integers and I want to ensure that when a row is inserted that the value in this column is greater than zero.  I could do this on the code side but thought it would be best to enforce it on the table.  Thanks!  I was in error with my last comment all is good now.


A Monk with the Stillness of Mind feature can use their action to end one effect on themselves which is causing them to be charmed or frightened.  By virtue of having this ability, does the Monk know when they are charmed (such as by the charm person spell, or a vampire's Charm ability) in order to expend an action to activate it?  Specifically, does something feel "off" to them when they are charmed and thus allow them to override the charm's stated effects in favor of activating Stillness of Mind?


Force:Naviagte to Sobject in Lightning throwing exception in Lightning experience

I have vf page:    <apex:page standardController="case" extensions="Gss_CsHelathCheckExtension"  recordsetVar="lstAllUserData" sidebar="false" showHeader="false"> <apex:includeScript value="/lightning/lightning.out.js" /> <apex:includeLightning /> <div id="lightning" /> <script> var myList = {!lstSelUserDataIds};  $Lightning.use("c:GSS_CsHealthCheck", function(){     $Lightning.createComponent(         "c:Gss_CaseHealthCheck",         {caselist :myList},         "lightning",         function(cmp){             $A.eventService.addHandler({                 event: 'force:navigateToObjectHome',                 handler: function(event) {                     if (sforce && sforce.one) {                         // VF page in S1 or Lightning Exp                         sforce.one.navigateToObjectHome(event.$params$.scope);                     } else {                         // VF page in Classic                         // Ugg! We need an if branch for each possible object type.                         // Is there a better way of doing this?                         if (event.$params$.scope === 'Case') {                             window.location = '{!URLFOR($Action.Case.Tab, $ObjectType.Case)}';                         }                     }                 }             });          }); }); </script>     GSS_CsHealthCheck  <aura:application access="GLOBAL" extends="ltng:outApp" > <aura:dependency resource="c:GSS_CaseHealthCheck"/>   <aura:dependency resource="markup://force:*" type="EVENT"/>  </aura:application>   GSS_CaseHealthCheck.CMP  <lightning:button variant="brand" label="Cancel" onclick="{!c.CancelPage}" />   Js:  CancelPage:function(component,event,helper){      //window.history.back();     var event = $A.get('e.force:navigateToObjectHome');     event.setParams({         scope:'Case'     });     event.fire(); }   ERROR:     This page has an error. You might just need to refresh it. Action failed: c:GSS_CaseHealthCheck$controller$CancelPage [Cannot read property 'scope' of undefined] Failing descriptor: {c:GSS_CaseHealthCheck$controller$CancelPage}   I have refereed below post:


My wife was cooking a turkey leg/thigh quarter in the oven at 350.  She turned off the oven after cooking and mistakenly left it in there for two days(!).  If the leg/thigh was cooked to the right safe temperature to kill bacteria, and if 350 is hot enough to kill any bacteria in the oven, and if the oven was never opened after turning the gas off, would the turkey still be safe to eat?


print IntegerList - NullPointerException (thread)

I am working on a quite complicated code that I want to include threads in. For a better understanding, I was playing around with threads a little and got a NullPointerException that I don't know why it is there:  Here is my main method and the two classes that are used:  public static void main (String args[]) {          listInteger list = new listInteger();          for(int i = 0; i < 10; i++) {             list.add(i);         }         printList printy = new printList(list);         Thread no1 = new Thread(printy);         Thread no2 = new Thread(printy);         no1.start();         no2.start();     }   public class printList implements Runnable {      public listInteger list;      public printList(listInteger list) {         this.list = list;     }      @Override     public void run() {         while(list.size() > 0) {             System.out.println(list.getFirst());             list.removeFirst();         }     }    }   public class listInteger {     public LinkedList<Integer> list;      public Integer getFirst() {         return list.getFirst();     }      public void removeFirst() {         list.removeFirst();     }      public int size() {         return list.size();     }      public void add(Integer e) {         list.add(e);     }   }   I thought it would just print out the numbers. I wanted to see when the thread gets terminated and also play around with synchronized to see the difference of the output. The list was supposed to show me what the threads are doing but I didn't even get to that point. When does it point to null? Am I doing something wrong with .add()? (I am working on my actual code for many hours now. Forgive me if it is obvious, I just don't see it.)


I need your help with this: Let $f$, $p$, and $g$ be a polynomials in $F[x]$, assume that $f$, $g$, and $p$ are nononzero.  If $\gcd(f,p)=1$ and $fg$ is divisible by $p$ with no remainder, I need to prove that $g$ is  divisible by $p$ with no remainder  Thanks.


How can I simulate a slow machine in a VM?

I'm testing an AJAX-heavy web-application. I develop on a new Mac, but I use VmWare Fusion (currently 3.1.2) to test in Windows XP, using  to simulate older versions of IE.  This lets me see how older IE versions would render the site, but I'd also like to see how the site would perform on an older machine. I see in the VM's settings that I can decrease the RAM; is there a way to also dial down the processor speed? How else might I simulate a slow machine?  (I am also going to check out .)


I  would be happy to have a short comment by somebody on following simple situation: I submitted my paper in beginning of January. In the end or January the status changed from the administration (Editor) to "under review". After that, this has not changed, it is still "under review". Is this normal. My field is history.   The journal doesn't indicate the review-times in the pages, but from the same publishing house's pages I have seen other journals of the same field and noted that the time may vary from 3-4 months up to one year.  I have decided that I will patiently wait, but I am starting to feel insecure about if they have forgotten to push the status-button. So, it would be nice just to know, does this sounds normal? Another article a couple of years ago in another journal didn't take that long.


Let $R$ be a ring with identity such that $r^2=r$ for all $r\in R$. Show that the characteristic of $R$ is $2$ and that $R$ is commutative.   My argument was the following. But, the thing I am not sure about is, whether we can say that $f$ has at most two roots in any ring.  So, let $f(x)=x^2-x\in R[x]$. Then $f$ has at most $2$ roots. $0,1\in R$ and they are roots of $f$. So, $R=\{0,1\}$. Hence Char $R=2$ and it is commutative.  Appreciate if point out any errors.


OCPJP 8 What is a Symbolic link using NIO2

I am trying to get Java 8 certification i already have Java 6 a long time ago and Java 7 is my weak point because i havent work with it i am a little confuse.  What is a symbolic Link??  According to wikipedia.  In computing, a symbolic link (also symlink or soft link) is a term for any file that contains a reference to another file or directory in the form of an absolute or relative path and that affects pathname resolution.   My questions are.  How Java recognize a symbolic link i mean when this would print true?  final Path path = ... System.out.println(Files.isSymbolicLink(path));   Perhaps this is a silly question but i really want to know!!


How is XP awarded for combat encounters?

I am a very inexperienced DM. I have here what must be an obvious question, but I can't seem to find any solid clarification.  How is XP rewarded after a combat encounter? Is the total monsters' XP given to each player, divided between the players, awarded depending on which player killed each monster, or something else?  Or can anyone recommend discarding the XP system altogether and levelling up everyone when appropriate? If so, how exactly should that work?


What kind energy of electrons is lost when current passes through a resistor?  OR   What happens to electrons when they pass through a resistor? Does current decrease when its passes through a resistor? Does voltage also decrease???


Sum operation produces different result in Matlab/Python


Does potential energy of molecule and therefore bond length change with temperature?


function with two inputs: foo(a)(b), using react and redux

I'm trying to understand why the function "connect" is called with two inputs in the last line of the following snippet that uses React and Redux:  import {connect} from 'react-redux';   class SharedGraphScreen extends Component {...}  const mapStateToProps = (store) => ({   user: store.userState.user,   theme: store.userState.theme,   relations: store.core.relations,   knowClosure: store.core.knowClosure, });  export default connect(mapStateToProps)(SharedGraphScreen);  Here's the part I'm not understanding what the code is supposed to do: connect(mapStateToProps)(SharedGraphScreen)  I'm guessing that  connect(mapStateToProps) returns a function that is called with SharedGraphScreen as its parameter, but I'm not sure about this. Is that correct ? If that's the case, how can I know the name of the returned function ? I have searched for it on the redux documentation, but couldn't figure out which of all the functions described in the documentation was the one used in the code I'm presenting (). I understand that the final result of the code is the connection of the component 'SharedGraphScreen ' to the redux store, but I would like to know more details about the inner returned function.


Recover files in Windows 7 after a botched batch move that rewrote file names

My goal was to flatten a complex directory.  I went to the complex directory and searched for all files with * in the search box.  I sorted the results by file type and selected all the files -- in other words, I excluded the folder names.  I should have done a COPY at this point -- but I did a CUT (control x) and then pasted into the new target (flat) directory.  Turns out there were many files with the same names.  Accidentally I said "yes" to the replace files with same name question ("Would you like to replace the existing file").  Is there a way to recover the missing files?


Does warping of space under relativity suggest displacement

The picture I see in documentaries is a flat piece of cloth depressed downward by the large mass, say a star, and objects falling into the depression. But this is one side of the star.So if I were to look on the other side of the star, there would be another depression going on the opposite side. So, these two depressions should cancel right? Seems to me in this case the Newtonian concept of gravity being influenced by a point in the centre of the larger object ... seems more intuitive in this scenario


Converting DEM text file to tiff file in QGIS?

I am trying to convert a digital elevation model in txt file format to a raster file (tiff) with qgis.   The file format is *.dat. The coordinate system is Gauss Krüger, Bessel, 5. meridian.  First I imported the txt file with the appropriate coordinate system. Now I want to convert it to a raster file. However the viewed data are black and I dont see any heights. What did I do wrong? Follow the link to view the screenshot of the imported dem in qgis:   When zooming in it looks like this:   This is an example of the data:  LATITUDE    LONGITUDE   HEIGHT 5390.0125   5659.9875   258.6 5390.0125   5659.9625   252.6 5390.0125   5659.9375   243.9 5390.0125   5659.9125   237.1 5390.0125   5659.8875   234.5 5390.0125   5659.8625   231.2 5390.0125   5659.8375   233.7


Application of inverse function theorem for several variable functions

Let $f:\mathbb{R}^2\rightarrow \mathbb{R}^2$ be continuously differentiable, and assume $Df(x)$ is invertible for all $x\in \mathbb{R}^2$. Also for any compact $K$ in $\mathbb{R}^2$, $f^{-1}(K)$ is compact. prove $f$ is onto.  My Work:  This is an application of inverse function theorem because it satisfies the hypothesis of this thoerem. So $A=f(\mathbb{R}^2)$ is open in $\mathbb{R}^2$. So, $A^c$ is closed. Afterwards I was stuck. please give me a hint.


So I have an executable (output of gcc compiling a C program), that I would like to run after login so it is the first thing a user sees upon login. It is a graphical menu that displays system information (read only).  After experimenting around with /.profile, by simply adding the following bash command with the path to the executable:  exec /home/TUI/bin/main   I was able to get my program to run and display the UI after login, but then upon exiting, I am continually prompted to login again in a loop and the process repeats over and over. I believe I am not putting the script in the right location. Would it go in /etc/rc.local? ~/.bashrc ... ?  What would be the best way to go about getting the program to run after a user logs in? (I'm not very experienced with shell scripting and the initialisation process of Ubuntu.)


I have a login already using Facebook credentials. But I need another login on Stack Exchange itself. It's because I use my friend's Android device to access my account, and it does not let me in anyway...  I had been using it on the web using my laptop only, since my phone is a Windows Phone.  There is an option in the app for an SE username and password. But they are probably not as same as Facebook login.  How can I do it?


Let f be twice differentiable function on R with finite $\lim_{x \rightarrow +\infty} f(x)$ and $\lim_{x \rightarrow +\infty} f'(x)$. Then  $\lim_{x \rightarrow +\infty} f'(x) = 0$   I don't know how to prove this.


Understanding the algebra of polynomials on a linear space

My advisor and I are working through a paper on partition functions, and we got to the following passage:     Fix $n \in \mathbb N$ and let $W := ((\mathbb R^n)^{\otimes 3})^{C_3}$, where the $C_3$ means that we are looking at the subspace that is invariant under cyclic actions. Let $\mathcal O(W)$ denote the algebra of polynomials on $W$. For any $q \in \mathcal O(W)$, let $dq$ denote its derivative in $\mathcal O(W) \otimes W^*$.   We have been completely unable to track down any books or other sources on this algebra of polynomials. The paper does not have any references in this paragraph, and none of the references define these polynomials. I'm now wondering:  1) Are there any books or articles that explain what this algebra of polynomials is? The section on multilinear algebra in our library contained no books explaining it, and googling doesn't seem to turn up anything relevant.  2) Could anyone tell me what an element in this algebra looks like?  3) How is the derivative of this kind of polynomial defined? If it was just a formal derivative, shouldn't it be in $\mathcal O(W)$, not $\mathcal O(W) \otimes W^*$?


Forward declare a pointer to an STL container?

In my header file I want to avoid using #include  but my class will have a vector or a pointer to a vector. I'm content with just a pointer, but I can't figure out how to declare it. Will I have to declare it as a void* and always cast it? That would be lame.  // What do I type here to forward declare vector?  class Counters {     Counters();      void inc(const char* s);      void print();      void clear();  private:     std::vector<int>* Counts;     int total; };   Please note carefully that I only want a POINTER TO a container to be stored in my class, NOT a container. The size of pointers is known without needing to refer to the declaration of the container, so please do not answer that this can't be done because the compiler needs to know the container declaration.


Firstly, General Relativity states that Spacetime is dynamic and is consonant with the distribution of matter/energy. How does String Theory predict gravity, when it is background dependent, that is it starts off with a fixed, and presumably flat space-time?  Secondly, String Theory predicts the existence of a graviton, but seeing we don't have a quantum theory of gravity, how do we even know that this is the correct quantization of gravity? In other words how do we verify that the graviton should have the properties that String theory says it does, that is what grounds do we have for believing in the properties of the graviton?  Thirdly, how do we go from the existence of gravitons to the curvature of space-time? When we talk about gravitons aren't they already existing in some space-time framework?


Unable to install WineHQ (all guides not resolving issue)

May I please have assistance with installing WineHQ on Ubuntu 18.04 I have spent the last few hours going over the WineHQ official site's guide for install, and multiple other 3rd party linux based websites. I continue to get  E: Unable to correct problems, you have held broken packages   However, every fix I have come across (even on this site) results in  The following packages have been kept back.   Any suggestions?  As some background, I have had everything installed once I got this machine. Wine, Play On Linux, Steam, and some other things. Everything was working fine until a recent update caused my screen to not wake up from suspend/sleep. Then I continued to get OS error messages that I would "report" but then when checking my activity log, nothing was showing as an issue. So I reinstalled Ubuntu.


I have a table that has just two columns, Date and Profit:  Date            Profit 24 - March      25.00 24 - March      19.85 25 - March      5.25 26 - March      6.36 26 - March      10.18 26 - March      35.63   I want to calculate and display the average daily profit in one cell.  Please keep in mind that when I enter data for new dates such as 27 - March and it's profit, it should update the average daily profit cell.  Some days I do not make any sale; for example, if I make sales and profit for march 24, march 25 and march 27, I did not make a sale on March 26, I want it to calculate it regardless of me making a sale on a date or not. Meaning in a month that has 31 days, it should divide by 31 regardless on whether I made a sale on a specific date or not. Would that be possible?


In D&D 5e, does the superiority dice from the new superior technique fighting style become a d8 if you are a battlemaster?

I was just wondering if it functions the same as the martial adept feat's dice, which do become d8s as confirmed by Jeremy Crawford.


Recover files in Windows deleted with Windows Subsystem for Linux

Wanting to delete a symlink in WSL I accidentally included the -rf option, resulting in WSL deleting the underlying folder on my Windows partition.  Is there any way to recover my data?


Choosing a display format & printing a field in html.tpl.php

First question ever here... I'm so nervous!  I must display a field (field_asin) in the header of my page.  So I have added this to my template.php file :  function theme_preprocess_html(&$vars) {   $node = menu_get_object();    if ($node && isset($node->nid)) {     $node = node_load($node->nid);      node_build_content($node);     $vars['field_asin'] = render($node->content['field_asin']);   }  }   Now, I can print the field in html.tpl.php with     <?php print $field_asin; ?>   Yep, it works! But how do I choose the display format for this field?  Thanks!  Alex


Proving the Fibonacci identity $\sum_{i=1}^n f_i^2=f_nf_{n+1}$ by induction

I am having troubles with a proof question.     Prove that for any $n\ge1$, $\sum_{i=1}^n f_i^2=f_nf_{n+1}$, where $f_n$ is the $n$'th Fibonacci number.   I have the base case and the induction hypothesis, and I know what I need to prove (substitute $n+1$ in for $n$'s on both sides of the equation) If someone can just guide me in the right direction on where to go, using induction that would be helpful. Thank You


Convergence of $\sqrt[n]{x^n+y^n}$ (for $x, y > 0$)

How can I prove the convergence of the sequence $b_n=\sqrt[n]{x^n+y^n}$ where $x, y > 0$?  Can I divide it in two cases?  Case 1: $x > y$.  $$ b_n=\sqrt[n]{x^n+y^n} < \sqrt[n]{x^n+x^n} = \sqrt[n]{2 \cdot x^n}=x \cdot \sqrt[n]{2} $$  Case 2: $x < y$.  $$ b_n=\sqrt[n]{x^n+y^n} < \sqrt[n]{y^n+y^n} = \sqrt[n]{2 \cdot y^n}=y \cdot \sqrt[n]{2}$$  Result: Does the sequence converges to $\max(x,y)$?


What is/are a/some way(s) to combine two for each loops in java? here is a basic example:

public int combineArrays(int[] a, int[] b) {   int[] result = new int[a.length + b.length];  int index = 0;  for (int i : a) {   result[index] = i;   index++; } for (int i : b) {    result[index] = i;   index++;  } return result;   } Apologies, here is the correct code.


Is there a way to reset chrome://flags to their defaults?

I was messing around with chrome://flags/, and don't remember all the changes I made. Now I want to get it back to its default state.  Since I use Sync, does reinstalling Chrome do it? Or better yet, is there a way to do it without reinstalling?


Computing determinant of a specific matrix.

How to calculate the determinant of $$ A=(a_{i,j})_{n \times n}=\left( \begin{array}{ccccc} a&b&b& \cdots & b\\ b& a& b& \cdots& b\\ \vdots& \vdots& \vdots& \ddots&\cdots\\ b&b&b & \cdots&a \end{array} \right)? $$


Is $\emptyset \in \emptyset$ or $\emptyset \subseteq \emptyset$?

Can someone give an argument, if possible using only the axioms of set theory, because I'm very weak there and have virtually no background, except the usual knowledge of the operation with sets one has to have when doing non-set theoretic non-research mathematics, why $\emptyset \in \emptyset$ or $\emptyset \subseteq \emptyset$ should or should not hold?


Stack Overflow site loads in plain html page

Sometimes (Don't know when and why), Stack Overflow website opens in plain HTML format. As it is show in below picture.        This happening only  and not with other Stack Exchange website. I am using Google Chrome.


Fermat's Little Theorem: $24^{(54n + 1)} +11 \equiv 1 \mod 19$, where $n \in \mathbb{Z}^+.$

I'm supposed to use Fermat's Little Theorem $($ If $p$ is a prime and $p$ doesn't divide $a$, then $a^{p-1} \equiv1 \mod p)$    and  to find the least residue of the following:  $24^{(54n + 1)} +11 \mod 19$, where $n  \in \mathbb{Z}^+.$  The 11 is trivial, so I'm just concerned with reducing the term with  $24^{(54n + 1)}$.  (24, 19) = 1, so the Theorem applies.  $24\equiv 5\mod19$, so   $24^{(54n + 1)} \equiv 24^{54n}(5)\mod19$  At this point, I'm not really sure what to do next because I can't really see how to bring the theorem into play!


What metadata does a LibreOffice file contain and how to remove it?

I am using LibreOffice on Linux. One way I know of viewing and removing metadata from a LibreOffice file is going to File -> Properties -> General, unchecking  “apply user data” and click reset. Then go to “Description” and “Custom” Properties and remove information from there, if exists.   Does it truly remove all the metadata or something is left and what is it and what other methods can I use to remove it?   Also, if I unzip a LibreOffice file, is contents.xml the only place where metadata may be found?  If I forgot to remove any metadata, is it possible that the username is transmitted?


If i have a sorcery or instant or creature ability that allows me to return target permanent to its owners hand, can I use that ability or spell to return permanents from my graveyard


$n^x$, $x$ is irrational number what is the result?

if for a real number $n$ , $n^x$ where $x$ is an irrational number. What is nature of number $n^x$ ? Possible values or how to determine nature of number $n^x$ ?    value of square root of 2 rays to square root of 2.


Is it safe to use a laptop with a dropped screw somewhere in the motherboard?

I had to completely disassemble a laptop to get at the hard drive. While I was taking the screws out, I dropped one into the closed part of the laptop that can't be accessed. The screw is floating somewhere in the motherboard now. I am actually using the laptop right now and nothing seems to be wrong, but I am afraid to leave the laptop on and unattended because I am afraid that it could start a fire or something.  Are these concerns legitimate? Should I keep turning off my laptop whenever I leave it unattended? What is the worst that could happen? What dangers should I be aware of?


I am newbie into Drupal.   I want to add 2 form elements dynamically to existing form via AJAX based on particular condition. But in the examples I saw till now the AJAX callback defined returns only one element to form. I tried to achieve this by adding these two fields in fieldset and returning fieldset as a single item. But this replaces my container div completely. This works only at first time and then the contents returned by callback replaces the container.   function new_registration($form, &$form_state) {     $form['select-reason'] = array(         '#type' => 'select',         '#title' => t('Reason'),         '#options' => array('' => 'Select') + _global_reasons(),         '#description' => t('Reason.'),         '#ajax' => array(           'event' => 'change',           'callback' => 'is_true',           'wrapper' => 'options',           'method' => 'replace'         ),       );      $form['options'] = array(         '#type' => 'container',         '#prefix' => '
',         '#suffix' => '
'       );     }  function is_true(&$form, &$form_state) {       $product_quality = $form_state['values']['select-reason'];       if(_belongs_check($product_quality)) {           $form['a-add'] = array(               '#type' => 'fieldset',               '#collapsible' => FALSE,               '#collapsed' => FALSE,           );           $form['a-add']['detail'] = array(               '#type' => 'textfield',               '#title' => t ( 'Details' ),               '#description' => t ( 'Enter product name.' ),               '#maxlength' => 400,               '#size' => 100,               '#required' => TRUE,           );           $form['a-add']['num'] = array(               '#type' => 'textfield',               '#title' => t ( 'Number' ),               '#description' => t ( 'Enter number.' ),               '#maxlength' => 400,               '#size' => 100,               '#required' => TRUE,           );       } else {             //remove 2 fields added in IF block       }       return $form['a-add'];     }   I also tried to return HTML structure of these two and place it in #markup type of form element. But I am not convinced with this way as theming might be complicated. Can anybody help? Thanks in advance.


i am new on Blender and i have been modeling a sofa with pilows. Just wanted to create some creases on pillows. But when i try that, it sculpts as pixeled and two lines although i want it one unlike in some tutorials. I put the following picture to show it. How can i fix it ?


Standard @gmail.com and separate domain user alias?

I have a domain name and have added the Gmail MX records to it. I understand I can use the Send mail as for sending mail and the POP3 for receiving, but I currently don't have a mail server and I would rather just have Google Mail receive my domain emails through an alias.  Is there a way I can have my regular @gmail.com also receive mail from my personal domain?


Can I use my school ID card for an Indian domestic flight?

The only ID card I have is for my 7th year class. Can I use it as ID for domestic flight from LKO-DEL?  I am traveling with my father; he have all documents, so can I get verified by him ?


I don't like the 12.04 panel. Is there a simple way to make it look like 10.04 which was perfect in its design?  I installed gnome-panel and followed the instructions but nothing happened.


Bash - move/rename numeric sorted files from input number onwards

I have a numbered list of files like this:  01_file_name.log 01_file_name.txt 02_file_name.log 02_file_name.txt 03_file_name.log 03_file_name.txt 04_file_name.log 04_file_name.txt 05_file_name.log 05_file_name.txt   I want to insert new files for all 03* and 04* files. So from number 03 on wards all files need to be moved/renamed with its leading number increased by 2, so the list would look like this:  01_file_name.log 01_file_name.txt 02_file_name.log 02_file_name.txt 05_file_name.log 05_file_name.txt 06_file_name.log 06_file_name.txt 07_file_name.log 07_file_name.txt   I'm thinking of something like: bash script.sh 03 02 while 03 on $1 is the number of the file name to start with and 02 on $2 the number to be added. I tried to achieve this with a nested for-loop but I had to give up on the combination of using a counter ((++)) to make the loop run only through the files from the given number on wards.


Why should I use gksudo for Gtk apps instead of sudo?

I read somewhere that people should use gksudo for applications that use the Gtk GUI instead of sudo? What's the reasoning for this?


I want to propose for a Persian version of Super User (I will explain why later) so I want to create a proposal in Area 51, but this means non-English question and answers, Is this OK? P.S: This may be a question for other non-English proposals too. Update: The main question is: How can non-English site proposals pass the Commitment phase? How can the English community support non-English proposals? You can find some information in  about the Stack Exchange 2.0 Site Creation Process (specially Commitment phase):  How does this thermometer work? Intuitively, if Jon Skeet says that he’ll participate in the Sock Puppet Stack Exchange, that commitment is a better sign that the site will succeed than if we get a commitment from a random Internet user who has never participated in Stack Overflow. Sure, they’re both wonderful people, I’m sure, but Jon Skeet has proven that he likes to participate in Stack Overflow so it’s a good bet that he’ll participate in SockExchange, too. .... we’re going to require a selection of existing users with certain badges and reputation that proves that they’ll participate. For instance (and I’m making these numbers up), we might require that a site get at least 100 commitments from people with the Teacher badge, at least 20 from people with the Enthusiast badge, and at least 50 from people with a reputation of 1000 or more on some of our sites.


I have an old Toshiba Satellite, with  512 Mb of ram and a 1.6 GHz Celeron M, and 80 Gb Fujitsu hard drive. What would be the best Ubuntu distribution to install on this laptop?  Or any other suggestions?  Upgrade the RAM to 2 Gb is an option maybe, 2Gb is the maximum supported.  It's know it's getting old.


Apsotrophe for plural possessive noun. E.g. Company Name

Consider the following exemplary company names:        Texas Coffee Grounders   Mighty Chicken Wings   Super Pooper Scoopers      Should one reference the possessive form of any of the above company names, where should the apostrophe be placed?  E.g.      Texas Coffee Grounders's head office is based in Houston.   ...or...     Texas Coffee Grounders' head office is based in Houston.


What size hole will let air in but keep an 8"column of water from leaking out?

I have a 8 inch tall sports bottle into which I would like to make an air vent but not have the bottle leak when tipped up. What size hole would accomplish that?


Make Outlook emails display as a separate icon on taskbar

When I open/compose an email in Outlook, the window is kept in the Outlook stack, as following:    What I'd like to do is have the emails be stacked as a new icon, so clicking the Outlook icon will immediately maximize Outlook, rather than displaying the stack. How can I do this?


Explaining the source of funds for a bulk deposit; Would it help get a higher visa approval rate?

I will be applying for a UK visit visa on the second week of December and obviously I am on the process of gathering all the needed documents to get the visa approved.   I have gone through the list of requirements and paper works.   Talking about 6 months worth of bank statements.The bit I am a little worried about is my bank statement in July.  What I did was that I have saved cash manually since March 2017 and have done a bulk deposit of the money I have gathered for 5 months (March-July Manual Savings). Source of funds is from employment and the money sent by my husband monthly. I have the money transfer receipts.   Now, do I have to throughly explain via the application form of how I got the funds bulk deposited in July? Or do I just leave it as it is.    The bank account has regular money deposits from my employer which will coinside with my pay slips.   Your thoughts are much appreciated.


Who gets the dividend when a stock is bought/sold around the ex-dividend date?

I understand if I buy a stock one day before the ex-dividend date and it settles after the ex-dividend date I don't get the dividend.  If I sell a stock the day before the ex-dividend date and it doesn't settle until after the ex-dividend date Who gets the dividend?


UnReSolved Mean Adjust DataSet to achieve .5 Mean

Update So I've done some of my own work on transformational methods, and the best I can get is what I call an s transform as detailed in this workbook; however, various attempts at trying to mean adjust on the Summary page show that sometimes the values get fudged/overlap each other at .5...    Update: On further thought, the Monte Carlo method has seemed to fail me.  I was able to derive the integral of the dataset, but it's mean is not .5..  This is in the realm of data normalizing.  Here's a work in progress; I did borrow some ideas from integrals.    Update: People marking questions as duplicates ruins any new chance of conversation on a re-clarified topic, therefore, I deleted the old question.  It was suggested that this is the possible solution:    but I disagree.  I am not using random sampling.  I have the entirety of the data set.  This is not an me observing variables, but rather have a dataset and would like to transform it using said methods and then mean adjust the final output to .5  Update I now agree I can use the monte carlo simulation concept.  I just have to supply the entirety of my data set.  ...[deleted]  This was also suggested as a solution Scaling a Series of Numbers   but rank (and I have a method called Empircal Cumulative Distribution Function) ignores the size of the distance between elements. This is maybe where it's "not possible".  Maybe what I'm expecting isn't possible and can only be achieved with such a ranking function which destroys any individual distance between values.  Original Post:  I've figured out how to do a minmax transformation to achieve normalized data from 0 to 100%  Basically  (x-min)/(max-min)   However, it's mean can be anywhere, and not near 50% like I want.  I've kind of carried my transformation further, and decided to do a minmax transformation around average like so  if x <= average value = (x-min)/(average-min) else (x-average)/(max-average)   I do a follow transform around median  if x x<= median (x-min)/(median-min) else (x-average)/(max-average)   What this does is achieves a nice transformed distribution around .5 mean.  Not quite .5 though.  I can apply this concept to an entire matrix of values, and achieve quite pleasant normalized data that I can start to use on an nth Dimensional Problem.  However, one thing that bothers me, and causes issues down the line when combining these nth Dimensions together for an average of values...  My mean is never quite .5  Is there a way I can transform the data proportionally and achieve a .5 mean by still keeping the values that are above 50% above 50% and those below below?  I had an idea to do this using ratio's  I took the weighted ratio's of  1, 2, 3 NumOfElements = 3 sum = 6  1/6 = .166 2/6 = .33 3/6 = .5  Sum of ratio's = 1  Average of Sum = .333  If I wanted a .5 average, I would multiple each % by the NumOfElements 1/6*3 = .5 2/6*3 = 1 3/6*3 = 1.5 average = 1 desired average = .5 Divide by 2 (universal rule) achieve's .5 mean.   However... this doesn't respect my upper boundaries.  Applying such logic to my distribution merely factored up all the values, which probably could have been derived easier  by measuring the difference between the sum of the data elements compared to: .5 * number of elements, and factor up accordingly.  However, I don't want to factor "up" from 100%, and I have the problem of having normalized two sides of my data using different minmax anchors...  So, I figured.  If I could do one half in this fashion (<50% values) and the other half (>50%) using some method, maybe I can still achieve a .5 mean normalized mean.  Old Solution to the problem I would recursively do a  mean adjust from the difference of the matrix's mean from .5  ex... x= x + difference  That would give me a .5 mean.  However, it has the added affect of moving my min and max outside of 0 and 100% respectively, I would then just do another minmax around 50%.


How do you determine if two HashSets are equal (by value, not by reference)?

I am trying to determine if two HashSet objects in .NET 3.5 (C#) are equal sets, i.e. contain the same values. This seems like something one would obviously want to do but none of the provided functions seem to give you this information.  The way I can think to do this is by checking if the count of the two sets are equal and one set is a subset (not proper) of the other. I think the only way that can happen is if they are equal sets. Example code:  HashSet<int> set1 = new HashSet<int>(); set1.Add(1); set1.Add(2); set1.Add(3);  HashSet<int> set2 = new HashSet<int>(); set2.Add(1); set2.Add(2); set2.Add(3);  if(set1.Count == set2.Count && set1.IsSubsetOf(set2)) {     // do something }   Would this always work? Is there a better way? Why doesn't HashSet have a  public bool IsEqualSetWith() function?


Why is a '(' appearing in citation while using @inproceedings and @misc entry in .bib file?

I am making a .bib file and the citations are working well using @article. While using @inproceedings and @misc, I am getting one '(' in the reference. @inproceedings{Aggarwal06,    author={Aggarwal, Gagan and Hartline, Jason D.},    year={2006},    title={Knapsack auctions},    booktitle={Proceedings of the 17th Annual ACM-SIAM Symposium on Discrete Algorithms},    pages={1083-1092},    publisher={Association for Computing Machinery},    address={New York} }  The result is coming out to be:  Aggarwal, G., Hartline, J.D.   ‘Knapsack auctions’.   In: Proceedings of the 17thAnnual ACM-SIAM Symposium on Discrete Algorithms. (New York: Associationfor Computing Machinery, 2006. pp.  1083–1092.  Notice the '(' before New York. I am using IET Trans format. So, using iet.bst file for bibliography style. Following is the link that I am using:  Could anyone suggest how to get rid of this?


When we ride a bicycle, why do we tend to move left when we turn it right?

When we ride a bicycle, we tend to move our body left if we are taking a right turn and vice versa.  Why is it like that?


If $r$ is the remainder of dividing the number $17*2^{635}$ by $33$, then $8$ divides $r$

How can I prove the statement below?  $r\in \mathbb{Z}$ such that:  $ 0\leq r\leq 32$  If r is the remainder of dividing the number $17*2^{635}$ by 33, then 8 divides r


How can light bulbs' flicker rates be found?

The  is often said to be about $60\,\mathrm{Hz}$ for humans, meaning that humans tend to perceive cycling events happening faster than 60-times-per-second as a blur rather than as a discrete set of motions.  Obviously light bulbs tend to have a flicker rate faster than $60\,\mathrm{Hz}$ such that they don't look like strobe lights to humans, though I'm concerned about the comfort of other animals, e.g. falcons, who may have a faster flicker fusion threshold than humans.  Question:  For the layperson who knows nothing of this beyond the basic light spectrum, how would I find out the flicker rate of different kinds of light bulbs?


I am writing a PhD thesis using LaTeX. Every thing is going fine, but I have problem with the output of the mathematical symbols in the references lists. I copy one example from the Pdf file to make it clear for you. You can see that the fraction remains the same.      [1] Mezzacapo, F. and Cirac, J. I. (2010) Ground-state properties of   the spin-\frac{1}{2} antiferromagnetic Heisenberg model on the   triangular lattice: a variational study based on entangled-plaquette   states. New. J. Phys., 12,   103039.   You can see below the all the packages I use:  \documentclass[12pt,PhD,twoside,a4paper]{GB_muthesis}%[10pt,PhD, singlespace] \usepackage[pdftex]{graphicx} \usepackage[bookmarks=true,colorlinks=true,linkcolor=blue, urlcolor=blue,citecolor=blue]{hyperref} \usepackage[numbers,comma, sort&compress]{natbib} \usepackage{amsmath} \usepackage{amssymb} \usepackage{mathtools} \usepackage{rotating} %\usepackage{GE_manthesis} \usepackage{GB_thesis} \usepackage{bm} \usepackage{fmtcount} \usepackage{setspace} \usepackage{chapterbib} \usepackage{subfigure}% allow subfigures \usepackage{amsfonts} \usepackage{url, enumitem} \usepackage{lscape} \usepackage{notoccite}%This package is for ingnoring the citation in the caption of the figures and tables. \begin{document}


If a bard is Performing and he's playing, say, the flute, can he attack during the Performance?  At first, I'd say "no"; how do you swing a sword while playing? But then in  I read:     Maintaining a bardic performance is a free action, and does not interfere with other activities (such as spell casting, moving, attacking, etc.).   How is that?


I'm using Babel for writing a document in spanish.  However, it uses a comma instead of a period as a decimal marker (i.e. 3,14 instead of 3.14).  Is there any way to reverse the behaviour? I prefer the period, as it's done in english.   Also, I'd prefer it if it's something that can just be added to the preamble, instead of having to do it each time I want to write a number with a decimal part (like putting the period between brackets, for instance).


How can I install a recessed light container in an abnormally thick ceiling?

We are in the middle of our home remodeling and we have just noticed that our ceiling seems to be a bit thicker than what the maximum our recessed lights allow for.  As shown within the picture link below, our ceiling is comprised of different layers (of different thicknesses):     Lower layer: (visible from the room) made out of sheetrock (5/8in thickness) Mid layer: Plaster (3/4in thickness) Top layer: Lath (1/8in thickness)   The recessed light container we are using has adjustable clips for different ceiling thicknesses although we have just noticed that our ceiling is too think so the clips would not really sit on top of the ceiling but rather create resistance on the hole.    My question here is if there is some sort of drill bit that, after drilling the initial hole diameter where the container is going to fit in, could expand the hole diameter above the lower layer of sheetrock.


What do I tell the user if the image they have to upload is very specific in height and width?

Am making an android app. I need to make the user be able to upload an image of a button that is pre-configured in size. So they would essentially be only changing the design.  My questions:  1. Should I limit the size and reject any image that is not of exact size in pixels (807x185) - OR - not reject anything but make the user at fault if the button looks bad/distorted? (basically do I make the button and the image the same exact size or mold and fit the image into the 807x185 button frame no matter if it's smaller or bigger) 2. How should I tell the user about this limitation?


I just install MacTex and trying to compile my tex file with TeXShop:     Can't find required tool.      /usr/texbin/pdflatex does not exist. TeXShop is  a front end for TeX,   but you also need a TeX distribution. Perhaps such a distribution was   not installed or was removed during a system upgrade. If so, go to    and follow the instructions to (re)install   MacTeX. A less likely possibility is that a tool path is incorrectly   configured in TeXShop preferences. This can happen if you are using   the macports or fink distributions.   I found  similar but I got pdftex not found after typing  which pdftex.  Also, I try to find something like FixMacTeX2013.pkg of /Applications/TeX/ directory according to  and get a Setup-2015.pkg. Nothing happens after installation.  What could I fix it?     OS X EI Capitan 10.11.3


Cyrillic characters are not recognised by utf-8?

Trying to finalize this project, yet the Cyrillic characters are not appearing correct on the final version uploaded.  What it is meant to look like -   <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>   What it looks like -     No my question is not the duplicate of another question, as I am not establishing a server nor working with any databases or tables. Im a novice.


Bad alignement with forest package when drawing folder tree

I have this code:  \documentclass[tikz,border=5mm]{standalone} \usepackage[edges]{forest}  \definecolor{foldercolor}{RGB}{124,166,198}  \tikzset{pics/folder/.style={code={%     \node[inner sep=0pt, minimum size=#1](-foldericon){};     \node[folder style, inner sep=0pt, minimum width=0.3*#1, minimum height=0.6*#1, above right, xshift=0.05*#1] at (-foldericon.west){};     \node[folder style, inner sep=0pt, minimum size=#1] at (-foldericon.center){};}     },     pics/folder/.default={20pt},     folder style/.style={draw=foldercolor!80!black,top color=foldercolor!40,bottom color=foldercolor} }  \forestset{is file/.style={edge path'/.expanded={%         ([xshift=\forestregister{folder indent}]!u.parent anchor) |- (.child anchor)},         inner sep=1pt},     this folder size/.style={edge path'/.expanded={%         ([xshift=\forestregister{folder indent}]!u.parent anchor) |- (.child anchor) pic[solid]{folder=#1}}, inner xsep=0.6*#1},     folder tree indent/.style={before computing xy={l=#1}},     folder icons/.style={folder, this folder size=#1, folder tree indent=3*#1},     folder icons/.default={12pt}, }  \begin{document}   \begin{forest}     for tree={font=\sffamily, grow'=0,     folder indent=.9em, folder icons,     edge=densely dotted}     [main folder       [images, this folder size=20pt           [wallpapers]           [logo.pdf, is file]]       [tex-files           [chapter1.tex, is file]]       [main.tex, is file]       [main.aux, is file]     ]   \end{forest} \end{document}   Output:    The "main folder" text isn't centered above the line. How can I change it ?   Thank you.


Magnetostatic energy density -- derivation without introducing inductance?

I was looking for a derivation of the expression for the energy density at any point in a static magnetic field. I do know that it is  $$u_B=\dfrac {1}{2 \mu_0}\left|\mathbf{B}\right|^2,$$ I was just wondering if there was a derivation that could be built up the way one derives the energy density, $$u_E=\dfrac {\epsilon_0}{2}\left|\mathbf{E}\right|^2$$ at any point in an electric field, by considering the energy needed to build up a 'source' charge bit by infinitesimal bit.  Whatever proof I have come across seems to bring inductance into the picture -- is there a way of doing it without that? I ask because the corresponding proof for the electric field does not seem to need the definition of capacitance anywhere.


Why did Stack Exchange change the link at the top of the page?

The "Stack Exchange" link at the top of the page used to bring up a listing of all the sites I'm a member of.  That was a handy way to quickly visit any of my member sites without separate bookmarks in my browser.  Why did Stack Exchange do away with this handy feature?  I haven't memorized all of the sites I belong to so I have to scroll through the whole list to find my sites.  Seems needlessly complicated.  Please restore this useful feature!


Am I supposed to be reviewing spam flags?

I was just chatting in chat when I saw a little ping-like circle except it was blue and on the wrong side.    So I did what any good citizen would do and I clicked it. It quickly prompted me to review a chat message that was flagged.    I tried searching Meta for information on reviewing chat flags and if that is a privilege afforded certain users at certain rep levels and I found nothing. Is this intended behavior? Similar to review queues? Offensive flags seem a bit on the moderator side of things but I am uncertain.


For every natural number $n$, prove that $n^n > 1 \cdot 3 \cdot 5 \cdot 7 \cdots (2n-1)$.

For every natural number $n$, prove that $n^n > 1 \cdot 3 \cdot 5 \cdots (2n-1)$.  I tried solving this by assuming that the above equation is true for $n$ and tried proving it is also true for $n+1$, but did not reach anywhere.


Disable or hide cloud-init chatter on the login prompt

I have installed Ubuntu Server 20.04 and when I get to the login prompt, I see a lot of messages from cloud-init writing over that prompt. Is there a way to disable that or hide it or redirect it to another TTY? I've tried creating a service that waits for cloud-init.target, but that doesn't work. Uninstalling cloud-init works, but I'd prefer keeping it. The messages that I want to hide look like this: [  26.488167] cloud-init[768]: Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 running 'modules:config' at Fri, 06 Nov 2020 17:00:08 +0000. Up 26.39 seconds. [  28.318996] cloud-init[768]: Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 running 'modules:final' at Fri, 06 Nov 2020 17:00:10 +0000. Up 28.21 seconds. [  28.319963] cloud-init[768]: Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 finished at Fri, 06 Nov 2020 17:00:10 +0000. Datasource DataSourceNone Up 28.31 seconds. [  28.321070] cloud-init[768]: 2020-11-06 17:00:10,815 - cc_final_message.py[WARNING]: Used fallback datasource   They show up all mixed in with the login prompt...


Biblatex enumerating sorted bibliography (using authoryear-ibid style)

How can I set biblatex to insert "1. " before first bibliography item and so on? The bibliography is sorted by author and the numbers are not meant to be used anywhere else.


Why will a background image not show up?

Can someone please help me thanks!  this is where I got the image from


Prove the following product formulas for separability and inseparability degree: If $F\subseteq L\subseteq K$ are fields, then show that $[K : F]_s = [K: L]_s[L: F]_s$ and $[K: F]_i = [K: L]_i[L: F]_i$  This question has already been posted twice here   , and here  , but in one they do not answer and in another I do not understand the answer because they use another definition for this grade. I am following another book and in that book they define it in the following way:  Let $K$ be a finite extension of $F$. If $S$ and $I$ are the separable and purely inseparable closures of $F$ in $K$, respectively, we define the separable degree $[K : F]_s$ of $K/ F$ to be $[S : F]$ and the insepaTable degree $[K : F]_i$ to be $[K : S]$. With these definitions, we see that $[K: F]_s[K : F]_i = [K : F]$.  I then have that $[K: L]_s[L: F]_s=[S_1:L][S_2:F]$ where $S_1$ and $S_2$ are the separable closure of $L$ in $K$ and $F$ in $L$ respectively, how can I relate this to $[K:F]_s=[S:F]$?


Why we don't see guns in Harry Potter World?

They can shield bullets ? and a shot seems to be much stronger than a expelliarmus


How do I find the source of my virus that creates popups when new programs start up

I have a virus on my windows computer. It seems to create new chrome tabs when I start using a new application. For example, if I go to Youtube and I start up flash, it may create a new tab.   When I navigated to the superuser question entry field it created a new tab and that tab was an advertisement for a survey to win 50 bucks.  A friend of mine commented:     Hmmmm. You might be able to delete it manually if you find where it is   on your computer. If you go in the Task Manager, there's an option to   show the command line argument that was used to run a program so you   might find its filepath that way. You could also just try and stop it   from launching by deleting the launch operation from the Windows   Registry. Just google Regedit and find the section for .exe files and   check if there are any fishy things in it.   Any help is appreciated! :3   Windows 8  EDIT:  I've run  avast antivirus  ad-aware antivirus  ad-aware quaranteened some files, but the problem persists.


I would like to know when to say think(s) that, say(s) that and mean(s) that and when to omit that.


Finding the size of an array through pointers

I'm trying to find the number of elements in the menu1 array by using the current_menu variable but I'm not getting anywhere. I'm getting lost in a pointer inception kind of thing... const char *menu1[] = { "Menu title", "Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7", "Item 8", "Item 9" };  const char * *current_menu = menu1;  I tried: sizeof(*current_menu) / sizeof(*current_menu[0]) sizeof(*(*current_menu)) / sizeof(*(*current_menu)[0])  But nothing's working... How can I do it? Any help would be much appreciated!!


High paging and memory consumption in SQL Server

This is my first question about SQL Server, I'm new to SQL Server and I don't understand few things, so hope you can help me.  We got a SQL Server 2008 with 2 instances and also with Analysys Services installed (on same box).  The server is:     2 Quad core Xeon      80GB RAM   The SQL Server instances are configured by default, but we got times where memory consumption is high and also high pagination is presented, does this means that the memory is incorrectly configured?  Do I need to make changes in the configuration?  Actually, I'm starting to administer SQL Server, so I don't understand many things, any help or document is welcome.  Thanks.


How to change IP address using script on Windows?

I need fixed IP in three wireless networks I log in frequently.  It is a pain to set those IP and gateway everytime I change networks.  I am willing to write a script to change my IP and gateway between those 3 fixed IPs and a choice to make it get IP automatically (when I´m in another network).  A plus feature to my script would be if it could discover the wireless network I am logged in and decide the IP automatically.  Is it even possible?  Thanks.


I am sick of the new Windows 8. I just want to get rid of it completely and run Ubuntu.  I have a live CD. What do I need to do?


In , the question was raised: Are humans Summonable?  In the Triwizard Tournament, Harry Potter summons his broom.   In the second task, none of the contestants even attempt to summon the hostages. Is this because a human is un-Summonable?  I don't have my book right now, but Harry Potter attempts to Summon Rubeus Hagrid in the Battle of Seven Potters. However, as Hagrid did not come shooting towards him, the spell didn't work. But, Hagrid is half-giant.  We also see, in The Goblet of Fire, that Harry Summoned a fly. (Although it is mentioned that maybe the fly was just stupid, and that maybe the spell didn't work, and that it was a coincidence.)  Does 'Accio' work on a human being?


My computer originally had Windows 8 on it.  I completely reformatted my laptop and put Ubuntu 14.04 on it.  I tried using wine but It won't run my Technic launcher for Mine Craft.  I also can't get the Linux version of the Technic launcher to work.  So, I want to reinstall Windows 8 beside the Ubuntu so I can use the 8 for gaming and the Ubuntu for the rest of it.


I tried to host WordPress Directory but it didn't work. So i tried to get a simple index.php with phpinfo() in it to run. But if i try to access it, i get a blank site with the Words "File not found." My Nginx Error Log says:  *12 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream   But i don't know what i should do to fix that. I changed my Nginx Site Conf as follows:  location ~ \.php$ {     fastcgi_pass 127.0.0.1:9000;     fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;     include fastcgi_params; }  location /wp {     root /var/www/html/;     try_files $uri $uri/ /index.php; }   Any help is appreciated.  EDIT:  I tried to do this  "For those who don't understand exactly how the variable might be wrong: add to main Nginx http section the following: log_format scripts '$document_root$fastcgi_script_name > $request'; (or whatever you're feeding to SCRIPT_FILENAME), and to your server: access_log /var/log/nginx/scripts.log scripts. Reload and take a look at your new scripts log ;) "  Like mentioned in the linked Thread and my Log says  /var/www/html/wp/ > GET /wp/ HTTP/2.0 /home/user/Documents/vue_website/dist/favicon.ico > GET /favicon.ico HTTP/2.0   Which is not what i want if i understand it correctly. I don't know if i did it right, but the main goal for me is: If i go to my-domain.com it should show me the website stored at /home/user/Documents/vue_website/dist and if i visit my-domain.com/wp it should show the Content of  /var/www/html which is and index.php of WordPress.


I am having an access problem to some files and directories that I have tracked down to the group assigned to access them.    When I manually change the name of the group in the properties/permissions menu for a directory from the default setting (MyGroup) to www-data used by my Drupal Website, the directory error messages I get are gone.    There are a large number of files and directories that require this change.  If believe using chmod will change the owner which is set correctly and being new to Ubuntu, I am reluctant to experiment without a better understanding of how owner and groups work in the permissions settings.   What command changes the Group setting for a directory?


Is gravity due to the curvature of spacetime?

Having looked at this question online, multiple sources overwhelmingly support the statement that 'Gravity results from the curvature of space-time due to mass-energy'. However, discussions on the H-Bar (See ) have led to me doubting this.   So, is the above statement correct, or not? If not, then can it be corrected, or should it be completely disregarded? I cannot see how the curvature of space-time and gravity cannot be related, as gravity and curvature are both linked to the mass of an object. For example, a black hole results in massive curvature of space-time, and the gravitational forces are also massive.


Does $b_n = a_{n+1} - a_n $ is a zero sequence implies $a_n$ is convergent?

Let $(a_n)$ be a sequence in $\mathbb{R}$ and let $b_n = a_{n+1} - a_n $ be a zero sequence. According to my intuition, I would say that $a_n$ converges. But my solution says otherwise. How could that be? I just can't find a counterexample.


Convert Month Number to Month Name Function in SQL

I have months stored in SQL Server as 1,2,3,4,...12. I would like to display them as January,February etc. Is there a function in SQL Server like MonthName(1) = January? I am trying to avoid a CASE statement, if possible.


Laptop battery won't charge (0%), is it damaged?

My laptop battery won't charge anymore, sits at 0%, and the laptop only operates if plugged to the AC adapter (it detects the power cord, but charge remains at 0%) The battery is already 2.5 years old, saw extensive use (at least daily recharge). so I wouldn't be surprised if it is damaged/beyond repair, but could it just be a software issue? I'm running Arch Linux.


Log-like operator with math inside (e.g. p-lim)

I am looking to make a log-like operator that looks the same as $p \text{-lim}$. The best way so far I found to do this is  \DeclareMathOperator*{\plim}{\text{$p$-lim}}   Question: Is this the best way to do this? It seems like a bit of a hack.  If I remove \text{...} then it doesn't work.  (Also, I know I can use \operatorname* to give a more flexible implementation like  \newcommand{\plog}[1]{\operatorname*{\text{$#1$-lim}}  where now I can change the p to, say, a p+q when needed.)


Right to accommodation in case of delayed flight, missing connecting flight

A non-EU-citizen booked on a flight from outside the EU with a connection in Istanbul continuing into Europe experiences a flight delay of several hours due to bad weather on the first flight, and therefore misses the connecting flight in Istanbul. The connecting flight is re-booked to a flight one day later (>eight hours later). Both flights were booked with and are operated by the same airline.  According to  and  there should be accommodation, food and compensation, unless the delay is due to bad weather, in which case they are still supposed to provide assistance.  What are the passenger's rights regarding accommodation, food, and compensation then?


How "Google Pixel (XL)" activates the "unlimited full resolution photo and video backup"

Google offers Pixel-Phone customers "Unlimited Full resolution photo and video backup".  Does anyone know how Google handle this?      I can imagine 3 options - but does anyone know which one matches or how it will be handled exactly?  Three thoughts:     For instance, someone is buying the phone via the Playstore online with his google account and he wants to give it away as a gift. Does the unlock only counts for the user who bought the phone? or will it be activated for the person who activates/registers the phone the first time with a Google account? or does this always counts for any further user of the Pixel-Phone? Let's say Google Drive excludes the space-calculation for any picture/video which was taken with a Pixel-Phone?


an infinite monoid that is not free monoid and does not contain any free monoid

Let $H$ generated by some generators $H=\langle h_1, \ldots, h_n\rangle$ $(n\gt 1)$. My question is whether there exists any monoid $H$ such that $H$, is infinite and $H$ is not a free monoid and $H$ does not contain any free monoid?


VNC-Server as a virtual X11 monitor to expand screen

From a currently running X11 session, I would like to provide/run a  server such that it appears to my system as a second, “virtual” monitor – i.e. so that I can position it using xrandr and drag/position windows onto it.  How, if at all, could I achieve that?  Edit: More info from OP in comments: "Also asked , without an answer. "


Where I do find feature lists for upcoming Ubuntu versions? [16.04]

I'm just wondering what I can look forward to in the next Ubuntu version.  In this case it's 16.04.  I also want to be able to speculate on what it's probably going to break and whether or not I should go through the hassle of writing some code that wont last more than a few months.  Where does one find an official feature list, or (as it appears to be) is there none?


When does the tensor product distribute over an infinite direct product?

It is well known that the tensor product of $R$-modules over some ring $R$ does not, in general, distribute over infinite direct products, an obvious example being $\mathbb Z_p \otimes_\mathbb Z \mathbb Q \neq 0$. I also know that a sufficient condition for the tensor product to distribute is .  What other sufficient conditions are there? For instance, it would seem intuitive that $\mathbb Q \otimes_\mathbb Z \prod_\mathbb N \mathbb Z \cong \prod_\mathbb N \mathbb Q$. But is it?


How do you test multi-step time series forecasting?

Suppose you have n observations of a time series dataset. You split it up to n-k (train data) and k (test data) observations. You train a model using the train data and you can now make predictions. From what I understand multi-step forecasting means you want to predict the next q>1 observations. So you predict with your model the next q observations and you use a metric to compare them with their respective values from the test data. Now for the next step, will you need to train a new model which will also include the first q values from the test data and repeat the same process?


How do I find what's eating up all of my system's memory? (not SuperFetch)

How does one diagnose/discover memory-related problems, if Task Manager appears to not be reporting correctly?  I must have a memory leak or something -- I'm at 75% usage of my 12 GB of memory, but Task Managers listings of processes' memory usage isn't adding up (yes, "Show processes from all users" is checked).  It seems like this "phantom" memory usage grows in relation to how long the system's been up. It shows that there are 118 total processes. Besides the top 5, all of them are under 50 MB.  The top process is firefox, using 2.6 GB. Adobe Premiere at 900 MB. Plugin-container at 300 MB. Pale Moon at 275 MB. Explorer.exe at 94 MB.  How in the world can I find what's using up the rest of my memory? It seems as if Task Manager isn't seeing everything that's being used. Perhaps there's some kind of memory leak? Or program's aren't releasing used memory properly?  Resource Monitor reports (click for larger version):    NOTE:   As my main OS drive is an SSD, SuperFetch is disabled on my system. And I understand the principal that unused ram is "wasted" ram, so to speak. However, when I see my memory usage nearly used to peak capacity, it's stopping me from running/loading subsequent programs (from my own concern), and even sends me to task to close many down (with hardly much effect on decreasing memory usage, at least noticeably and within short time period). When the memory fills up, I hate seeing the 1GB page file on my SSD expand to the 6GB limit I've set, and me "sweating" with the knowledge that my "poor" SSD is likely being ground down to dust as Windows heavily/rampantly turns to using it as a full-fledged memory stick. (On that note, should I just hard-cap the page file to a static 1GB?)


Trying to download a torrent with magnet link  can not get this to work with q bit torrent and Firefox, please help I am new to Linux


Should tags that represent concepts be sponsorable?

I don't see any problem with companies sponsoring tags that are products/proper names, like  or  being sponsored by Adobe or  being sponsored by Android. However, I just noticed that the  tag is sponsored by Red Gate.  Does it really make sense to let someone sponsor a tag that represents a general concept? I mean, if they're willing to pay for it, so be it. But it just seems silly to think that someone might be able to sponsor tags like  or .


Default value stays after I dropped the default constraint

So, here is a test for fun on SQL SERVER 2012. I have a test table, you could choose any table you have in your local.  Then I add a NOT NULL column with default constraint:  alter table test add new_col8 nvarchar(25) not null constraint df_new_col8 default('aaa');   It won't be surprised to see the value get populated but the physical size is still 0. You could refer to the scripts in .  I used following script and you need to change it a bit when you tested it.  DBCC IND ('master', 'test', 0);  DBCC TRACEON (3604);  GO  DBCC PAGE ('master', 1, 692, 3);  GO   Now, I decided to drop the default constraint. I checked the table again, but the value stays but the physical size is still 0!  alter table test drop constraint df_new_col8;   I checked the sys.default_constraints table and sys.columns table, there is no clue for this default value. How does SQL SERVER still get the default value?!


Possibility of the encrypted text being the same as the supplied plain text!

I was learning DES when it occurred to me that there could be a possible case where a (key, plainText) pair could result in an encryptedText such that, plainText == encryptedText.  Quickly I found out that there exists weak keys (especially for DES!) that make it quite vulnerable. So, the worst that can happen with these weak keys is that double encryption would return the original plainText.  I want to look at one example where the output of the DES would be same as input.  What I've already tried:   A brute force: wrote a generator for random [key, pText] pairs and DES over them to see if the eText is same as pText. Got a C Language implementation from . Specs: len(pText) = 64b, len(key) = 56b, Generated random cases: 10M. I do understand that the number of cases barely scratches the surface, but I was hoping (naively I guess) I'd find at lease one such case. Gave a little thought and realised that, if the crypto function in the Feistel Structure returns 0 in every round, at the end of 16 rounds, we'd have the same output. This depends upon the inputs to that function (which are in-turn derived from the talked about pair) Yet another thought is that: if the input is small enough (yes assuming we have padding enabled) the output would also be of the same size, which means that there's a very high probability that the pText is same as eText. Just to make my thoughts more clear, if input is of size 1 bit, say 1, the output could be 0 or 1, implying, the chances of my case occurring is 50%!   May be I should see the mathematical model of the DES and infer if it's possible, but I feel like I've already spent too much time on this!  Please suggest me how do I go about cracking this case!  Thanks! :)


Is it possible to have mutliple lines in command line (CMD)? Something like  "C:\Program Files\WinRAR\WinRAR.exe" a  aaa.txt.hpp,  bbb.txt,  ccc.txt   instead of   "C:\Program Files\WinRAR\WinRAR.exe" a aaa.txt.hpp, bbb.txt, ccc.txt


Can ogr2ogr "reverse clip" (or "clip out" or "erase" or "difference") one shapefile from another?

Is there a means in ogr2ogr to "clip out" one shapefile from another?  I know ogr2ogr -clipsrc B.shp out.shp A.shp will remove any part of A.shp that is NOT in B.shp.  Is there an ogr2ogr command to remove any part of A.shp that intersects with B.shp?  I have seen this called "reverse clip", "clip out", "erase" (ArcMap), or "difference".  Note: this question is about ogr2ogr, the command line tool, NOT the OGR library, which requires programming.


If I take one brand new laptop and a brand new ipad to India, will I be subject to any duties?


How can I solve the problems of Combination + indistinguishable objects + repetition allowed?

Can I solve the problems of Combination with indistinguishable objects plus repetition allowed using a formula?  For instance,      How many $3$-letter combinations could be formed from the word $BBA$ if repetition of letters is allowed?   We know the answer is $4$, as $S=\{{AAA, BBB, ABB, AAB}\}$.  Can these kinds of problems be solved using a formula, or, do I need to manually solve it every time?  Note. The problem in this question is different from the problem posted in  problem which I posted earlier. Here we have $2$ letters and need to produce $3$-element combinations (i.e. $n<r$). On the other hand, in the previous problem, we had $3$ letters to choose from $26$ letters (i.e. $n>r$).


Please help me to solve this question:  Suppose $f:[a,b] \to \Bbb R$ satisfies:  $f''(x)+f(x)>0$ and $f(x)>0$ for all $x\in(a ,b)$; $f(a)=f(b)=0$.  Prove that $b-a>\pi$.  Thanks in advance.


Connected with limited access (drivers?)

My PC with Windows Vista had some wireless problems 3 years ago, so I bought a wireless adapter, which worked fine. But a few days ago, it suddenly didn't connect anymore; the network manager says it is "connected with limited access". So I brought a new wireless adapter (TL-WN823N), but the error does still occur. When I look at the problem it says there are driver or hardware issues, but it is the same on both adapters except the name.  Thanks in advance!  Note: It does work on other PC's.


Word for "willingness to accept status quo"

I'm looking for a word that would allow me to describe the willingness to settle for what there is, to accept status quo, instead of wanting something better.  It's the attitude that makes people use the aphorism "perfect is the enemy of good" to justify mediocrity.  Sample sentence:     The prevalence of [word] among engineers is why our industry produces so much substandard software.


iphone 6 is broken and my screen won't work

My iPhone 6 is broken and the screen won't work it just comes up with green and red and pink lines down and I can't see. I want to be able to back up all my photos. But i have a password so when i plug it onto my laptop is says I can't because my iPhone is locked.


Using a parameter in a lambda function in takewhile

I am trying to familiarize with itertools. As an exercise, I am trying to generate (x,y) integer pairs satisfying -1 < y < x <5. The following code using itertools produces incorrect results:  from itertools import * xs = xrange(0,5) allPairs = chain(*(izip(repeat(x), takewhile(lambda y: y < x, count())) for x in xs)) print list(allPairs)   The output is   [(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 1), (1, 2), (1, 3), (2, 0), (2, 1), (2, 2), (2, 3), (3, 0), (3, 1), (3, 2), (3, 3), (4, 0), (4, 1), (4, 2), (4, 3)]   The problem seems to be that the lambda function within the takewhile is using x = 4, the maximum in the range.  If I modify the code above to explicitly construct a lambda function for each x as follows the output is computed correctly.  from itertools import * xs = xrange(0,5) xypair = lambda x: izip(repeat(x), takewhile(lambda y: y < x, count()))  allPairs = chain(*(xypair(x) for x in xs)) print list(allPairs)   Output:   [(1, 0), (2, 0), (2, 1), (3, 0), (3, 1), (3, 2), (4, 0), (4, 1), (4, 2), (4, 3)]   Any idea why in the first code the lambda is constructed only using the last value of the iteration over xs?


Decoding URL encoding (percent encoding)

I want to decode URL encoding, is there any built-in tool for doing this or could anyone provide me with a sed code that will do this?   I did search a bit through  and on the internet but I couldn't find any command line tool for decoding url encoding.  What I want to do is simply in place edit a txt file so that:   %21 becomes ! %23 becomes # %24 becomes $ %26 becomes & %27 becomes ' %28 becomes ( %29 becomes )   And so on.


How to check if a question had ever hit HNQ

I am curious to know that is there a way to check whether a question has/had ever hit HNQ in the past (ever)?


Show that $\lim_{k\to\infty}\lim_{j\to\infty}\cos^{2j}k!\pi x=0$

The Dirichlet function is defined as the indicator function of rational numbers. I have also seen this function described by: $$f(x)=\lim_{k\to\infty}\lim_{j\to\infty}\cos^{2j}k!\pi x$$ How does this limit act as the indicator, and how does it yield an answer if cosine is limited to Infinity?


The space of continuous functions $C([0,1])$ is not complete in the $L^2$ norm

I am trying to prove that under the $L^2$ norm,  $C([0,1])$ does not give rise to a  complete metric space. To do this I am trying to find a Cauchy Sequence which does not converge in $C([0,1])$. As a template (on $C([a,b])$) I am led to believe the following is Cauchy: $$f_n (x) = \begin{cases}  1 &\mbox{if } 0 \leq x \leq \frac{1}{2} \\  1 - 2n(x-\frac{1}{2}) & \mbox{if } \frac{1}{2}\leq x \leq \frac{1}{2n} + \frac{1}{2}\\ 0 & \mbox{if } \frac{1}{2n} + \frac{1}{2} \leq x \leq 1  \end{cases}  $$ But I am struggling to show this is Cauchy, I have tried integrating from 0 to 1 but this is giving a very nasty integral and I was wondering if anyone has a better method?


I am baking the leather of a seat in cycles. I bake it and it looks like this.  But in rendered view with the material it looks like this.  This has never happened before. Does it have to do with my mesh? It has a lot of vertices.  these are the uv unwraps.    There are no extra faces. I did remove doubles.  The random black things on the uv map  are wrong.  also it won't let me comment to anything even though i can edit i cant respond to comments


Is it necessary to discern between 'owing to' and 'due to'?

I recently wrote a paper, and the examiner picked me up on using 'due to' when apparently I should have been using 'owing to'. I understand that there is some difference between them, as was discussed . My question is however, should I worry myself with using one in place of the other? Has their distinction fallen out of popular discourse?


I'm trying to automatically create cloud images using virt-builder.  I am using the following command in Centos 7 and it keeps failing. Any idea behind the issue ?  # virt-builder debian-9 -o /var/lib/libvirt/images/DB9-20G.qcow2 --format qcow2  --hostname ip.com --update --root-password password:root123 --firstboot-command 'dhclient ens3' --size 20G  This is the output:  [   2.3] Downloading: http://libguestfs.org/download/builder/debian-9.xz [   3.3] Planning how to build this image [   3.3] Uncompressing [   6.2] Resizing (using virt-resize) to expand the disk to 20.0G virt-resize: error: libguestfs error: resize2fs: e2fsck 1.42.9  (28-Dec-2013) /dev/sda1 has unsupported feature(s): metadata_csum e2fsck: Get a newer version of e2fsck!  If reporting bugs, run virt-resize with debugging enabled and include the  complete output:    virt-resize -v -x [...]   Update-01: Seems e2fsprogs in Centos 7 is quite old to handle this issue. Is there any alternative way to better handle creating of cloud images on fly from command line ?


Are carousels effective on non-Ecommerce sites

We run digital magazine websites. We use a carousel to feature content. Since we are interested in the user clicking through to view the content, and not converting them to anything (these are inhouse or association magazines, so no outside subscribers). Is this still a problem? Does the end user not see the carousel, or only sees the first image?


What would be the most efficient way to make a spiral curve for objects shaped as in the photo?


How do I disable client side decoration globally in GNOME?

I'm using Ubuntu GNOME 17.04. One encounters client side decoration (CSD) as most of the official GNOME applications (Nautilus, gedit, Evince etc.) use  (a combined title bar and toolbar, see linked screenshots) whereas other applications don't. This feature is disabled in Unity, all the applications use traditional separate title bars.  Screenshots (from ):     Nautilus with GtkHeaderBar   Nautilus without GtkHeaderBar     For consistency I want to disable GtkHeaderBars globally (in all the applications using it) and use separate title bars. Is there a way to achieve that?  I have heard of gtk3-nocsd package, but couldn't make it work with GNOME for all the applications.


Please help me to prove the following resut:  Let $R=\prod_{n\in\mathbb{N}}\mathbb{Z}$ and $M$ be $R$ regarded as $R$-module is usual way.     Then the submodule $N=\bigoplus_{n\in\mathbb{N}}\mathbb{Z}$ is not finitely generated   Hint: for every $n\in\mathbb{N}$, $e_n=(0,…,0,1,0,…)\in N$ (the $1$ is on the $n-$th position).  Thanks in advance


I already googled lots of thing about prevention of hair fall,but did not get any satisfied solution,can any one suggest me best thing to prevent hair fall,thanks in advance


I input a file inp.txt using its path relative to the directory containing the main.tex file and where I will run pdflatex:  \documentclass{article} \begin{document}     \input{../inputs/inp.txt} \end{document}   Is there a way to specify the absolute path of inp.txt, e.g. ~/inputs/inp.txt?  Since I am looking for a general solution to include \includegraphics, \input and \include files I try to use TEXINPUTS and modify my script:  \documentclass{article} \begin{document}     \input{inp.txt} \end{document}   When I run  TEXINPUTS=~/inputs pdflatex main.tex   it turns out I have changed my working directory producing the error message:  ! I can't find file `filepath.tex'.   Adding multiple paths TEXINPUTS=~/inputs:. produces other problems.  Is there a simple and concise solution?


After some googling, I have found this definition of a parameter in statistics:      "a numerical characteristic of a population, as distinct from a statistic of a sample"   Or, more generally for mathematics:     "a quantity whose value is selected for the particular circumstances and in relation to which other variable quantities may be expressed"   But my understanding of parameters is that they are the betas (coefficients) that appear before the variables (which may be themselves without any transformation or may appear with an exponent, log, square root, or some other transformation,) in a regression equation, and are interpreted as the partial effects of the independent variables on the dependent variable.  A few questions: Are parameters the same as coefficients? If not, what makes them different? While linear regression uses parameters that are linear, how would non-linear parameters look and be interpreted? Are there any concrete examples of parameters in the real world, such as some constant relationship in physics?


Shield bash with magic shield - is it a magic weapon?

Say I've got this Dwarf, Dwarfnir. He has a +1 magic shield that he's pretty happy about. He gets into a big fight and decides that, while it's all fine and dandy to hit things with his warhammer, that he'd sure like to smack some faces sideways with his +1 magic shield, especially that weird thing with all the eyes that seems to be unharmed by his wimpy and totally-not-magic hammer.  Would such an attack benefit from the shield being a magic +1 shield the same way as if it were a magic +1 club (with +1 to attack and damage rolls, and bypassing nonmagic weapon resistances)?  I get an understanding from  how the shield bash would work and that proficiency wouldn't apply, but I'm wondering specifically about Dwarfnir getting that sweet sweet magic weapon bonus.


Can a Force-user's natural ability develop over time? Is it better for a Jedi or Sith to begin training later?

Although most examples here come from or are potentially from the Skywalker line (which may or may not make their offspring more powerful),I want to ask, why is it that the Jedi order (before the events of a New Hope when force-sensitives became a rarity and they trained literally anyone 'cos, you know... no choice) thinks it's better to train Jedi at a young age?  Yoda complained about training Luke at the age of 19 in TESB, and even declared an eight-year-old Anakin to be too old. However, both turned out to be extrememly powerful Jedi, and even an untrained Leia was proficient at sensing events through the force.  Although I hate to bring this up with no clear answers yet, but maybe it'll be pertinent in the future: Rey, who received the least amount of training, was instantly able to master Jedi mind-tricks (which stumped a similarly-aged Ezra on his first- and conscious- attempt at doing so), great lightsaber fighting skills and Force abilities.  Is it simply because these Jedi were of the Skywalker line that makes them more powerful -passing on those (whispers midichlorians) like a pro...?     Why not allow users to develop both mentally and physically before teaching them about the Force? After all, Anakin- the youngest of these examples and longest trained- was not a liability due to his age, but due to his mental instability.


I'm trying to make a server for me and my friend, but newer versions lag so much for me, so I play version 1.12.2. How would I change the server version in server.properties?


Is there a way to update my empty image? Edited in another program, saved

I edited my empty image in Clip Studio, saved it, and when I go back to Blender, it doesn't refresh. Is there a way to refresh it or do I have to save it as a different file, and then drag it into blender, and then move and scale it to where I want it to be? Thanks.


$\mathcal{I} = \{X \in M_{n \times n} \mid X \text{ is invertible }\}$ is not-connected.

Let $\mathcal{I}$ be the set of all invertible real matrix $n \times n$. I have to prove that $\mathcal{I}$ is open and not-connected.  My attempt: Take any $A \in \mathcal{I}$. Puting $\varepsilon = \frac{1}{\|A^{-1}\|}$ we have that $\|A-B\| < \varepsilon \Rightarrow B \in \mathcal{I}$. Therefore $\mathcal{I}$ is open.  But I really don't know how I can show that $\mathcal{I}$ is not-connected.


How to manipulate a Variable from another class using a method call from that other class?

public class Main{ . . . Class class = new Class(); class.method(class.variableFromAnotherClass); sysout(class.variableFromAnotherClass) }  public class Class{ Int variableFromAnotherClass=0;  method(int var){     var=1;     } }   Output:  0   Im dealing with a situation similar to the one above except with more variables in my version of "Class". My issue is that the method within "Class" does nothing to the variable being passed through. Why does this happen? Is it because the variable being passed through already belongs to the class? Any suggestions on What should I do to solve this problem?


i want to remove a repository but every time i get the error "Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8))." ive tried updating apt-key and apt-get just to be sure but didnt solve the problem. please help. like this command $ sudo apt-key del 7D8D08F6 .


i update blender to 2.79 and the movie formats are gone


Here is a simple query and it's results using SQL Server:  SELECT Notes FROM DailyTaskHours WHERE Notes IS NOT NULL     AND Notes <> ''     AND NonScrumStoryId = 2264     I would like one row with one column returned. How do I accomplish this?


Windows 10 Music folder can't be deleted

A few folders appeared in my hard drive ("D:\Music" is one of them), and I can't delete them. I tried to go to Security properties and change the owner, but got "Owner cannot be displayed". When I try to change it, it says that "you do not have permission to view or edit". The same happens with trying to give Administrator privileges. I tried:  del "\\?\D:\Music\" the trick with WinRar by checking "Delete files after Archiving" through CMD → run as administrator → attrib -S -H -R "D:\Music\*.*" /S and attrib -S -H -R "D:\Music\" /S rd /S /Q "D:\Music" also failed  Nothing works. Can anyone help me?


Why is this code not running properly and is showing me NullPointerException

So I have just now started working on a minecraft plugin for joining pvpevents and  it is my first plugin so don't roast me too much on the code. I just want to know why it isn't running properly and these are the classes. Main public class Main extends JavaPlugin{     @Override     public void onEnable(){         System.out.println("PvP event plugin je upaljen");         getCommand("event").setExecutor(new EventCommand());             getCommand("join").setExecutor(new EventJoinCommand());              } }  EventCommand import org.bukkit.Bukkit; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.chat.ClickEvent; import net.md_5.bungee.api.chat.ComponentBuilder; import net.md_5.bungee.api.chat.HoverEvent; import net.md_5.bungee.api.chat.TextComponent;  public class EventCommand implements CommandExecutor{     @Override     public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] arg3) {         Player player = (Player) sender;         if (arg3[0].equalsIgnoreCase("host") || arg3[1].equalsIgnoreCase("gapple")) {             String kit = arg3[0];             String velikoSlovo = kit.substring(0, 1).toUpperCase() + kit.substring(1);             TextComponent message = new TextComponent(player.getName() + " je zapoceo " + velikoSlovo + " turnir. ");             message.setColor(ChatColor.LIGHT_PURPLE);             TextComponent ulazak = new TextComponent("Klikni da udes");             ulazak.setColor(ChatColor.YELLOW);             ComponentBuilder cb = new ComponentBuilder("Klikni na tekst da udes").color(ChatColor.AQUA);             ulazak.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, cb.create()));             ulazak.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND,"/join"));             message.addExtra(ulazak);             for (int i = 0; i < 5; i++) {                 Bukkit.getServer().spigot().broadcast(message);                 try {                     Thread.sleep(7000);                 } catch (InterruptedException e) {                     // TODO Auto-generated catch block                     e.printStackTrace();                 }             }         } else {player.sendMessage("Moras upisati tocnu komandu: /event [kit]");}                       return false;     }           }  EventJoinCommand import java.util.ArrayList;  import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player;  public class EventJoinCommand implements CommandExecutor{     static int i = 0;     static ArrayList<String> listaIgracaTurnira = new ArrayList<String>();     @Override     public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] arg3) {         Player igrac = (Player) sender;         if (EventUlazakJosTraje(sender)) {             igrac.sendMessage(ChatColor.DARK_RED + "Uspijesno si usao u event");         } else {             igrac.sendMessage(ChatColor.DARK_RED + "Nema eventa u kojeg mozes uc ili je vec startao");         }                           return false;     }     public static boolean EventUlazakJosTraje(CommandSender sender){         Player player = (Player) sender;         listaIgracaTurnira.add(player.getName());         i++;         return true;     }    }  And this is the error my server puts out:


Combined annual contribution limits for individuals

I am planning to invest some extra income I have. I am thinking of maxing out all my retirement accounts before I look into other investment opportunities. I am having some difficulty identifying which ones I can contribute to. It would be great if somebody here could help me here.  Currently I am on track to max out my employer sponsored 401K. I was under the impression that my contribution plus employer contribution should not exceed the maximum limit of $18K. However, I am told by my employer that I can contribute the maximum of $18K and employer match can add on top of it. Essentially, the total contribution can exceed $18K, is this correct.  I also make some money through my personal business. Can I open a separate individual IRA and contribute another pretax $5,500?  On the same note, can I also open a Roth IRA and contribute another post-tax $5,500?  In the nutshell, if I can contribute as mentioned above, I will be contributing as follows.  401K (pre-tax) => $18K + employer match  Individual IRA (pre-tax) => $5.5K  Roth IRA (post-tax) => $5.5K  Is this correct? Am I missing any other opportunity that I haven't mentioned above?  Thank you


How to install Ubuntu13.04 with windows xp & remove windows xp?

I want install Ubuntu13.04 from dvd. Is it possible without current windows xp os? If yes Please tell me the procedure in steps. If it is not possible then I will have to first install Ubuntu13.04 & uninstall windows xp professional. In this case  please tell procedure in steps


I'm considering getting a new cable modem.  Doing some research I found myself on Wikipedia: .  I'm wondering if it's worth the extra $30-40 for my home network to go ahead and get version 3.0 instead of 2.0.  The table on this page refers to number of channels that hardware must be able to support.  Is this referring to my router and network card?


Compare the structure of two MySQL Databases

I have two MySQL databases that are very similar to each other. How can I find out the differences in tables, and the differences in columns in each table?   the databases are in different schema. It's only the structure I want to compare, not the data.


How do you force quit an application in iOS 7?

In iOS 6 and below I could double tap the home button, tap and hold an app, and  click the red - to close an application(s).  In iOS 7 this does not work. How can I restart an app that's exploding without resetting the entire OS?


Wi-Fi adapter not showing any IPv4 address in Kali Linux

I have bought an Alfa AWUS036NH and I think I have set it up properly but when I type ifconfig while running Kali Linux, there is no device showing an IPv4 address.   Output:  eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255         inet6 fe80::a00:27ff:fef0:7ead  prefixlen 64  scopeid 0x20<link>         ether 08:00:27:f0:7e:ad  txqueuelen 1000  (Ethernet)         RX packets 2057987  bytes 1965468395 (1.8 GiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 743272  bytes 114166643 (108.8 MiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536         inet 127.0.0.1  netmask 255.0.0.0         inet6 ::1  prefixlen 128  scopeid 0x10<host>         loop  txqueuelen 1000  (Local Loopback)         RX packets 1198257  bytes 1736573576 (1.6 GiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 1198257  bytes 1736573576 (1.6 GiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  wlan0mon: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         unspec 00-11-22-33-44-55-30-3A-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)         RX packets 0  bytes 0 (0.0 B)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 0  bytes 0 (0.0 B)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


I'm looking to implement a similar program as tail in my python program.  I can listen to a named pipe via Unix:  tail -f mypipe  This works great (I can echo strings to said pipe), but I'd like to do it in python. I'd like to set the data coming through the pipe to a variable (it's preferable for a var to get updated with the last datum sent over the pipe).  So far I have:  cwd = os.getcwd() testpath = os.path.join(cwd, 'mypipe')  if os.path.exists(testpath):     os.remove(testpath)     mkfifo = os.mkfifo(testpath, 0644)     rp = open(testpath, 'r')     response = rp.read()     print 'response is ', response   There are two issues:   response reads once, but I don't know how I would read the stream upon data being received (something like a listener) I seem to be running into a blocking issue whereby the pipe is claimed and will not allow other programs to access it.  I don't totally understand accessing fifo pipes without blocks and am having a hard time w/ the docs for this.   I've attempted something like what is found  (the highest upvoted answer), but it doesn't seem to work for me.  I get an error:  IOError: [Errno 29] Illegal seek


How can I get enough reputation to get enough reputation?

I know that in order to understand recursion one must first understand recursion, but how can I build my reputation enough to post or vote or comment or anything when all these things require reputation to begin with?


How to install mathpazo correctly from TeX Live Manager?

I've just installed , which is the MacTeX equivalent of the TeX Live "small" scheme.  Using TeX Live Utility (MacTeX's GUI for tlmgr), I've installed mathpazo, but a minimal example  \documentclass{article} \usepackage{mathpazo} \begin{document} \end{document}   yields the error: (after the usual Metafont complaints)  ./small.tex:3: Font OT1/ppl/m/n/10=pplr7t at 10.0pt not loadable: Metric (TFM)  file not found.   After installing the palatino package, this error goes away, but a slightly less minimal example:  \documentclass{article} \usepackage[osf]{mathpazo} \begin{document} hello 123 \end{document}   Now yields the less promising:  !pdfTeX error: /usr/texbin/pdflatex (file fplrc8a.pfb): cannot open Type 1 font  file for reading  ==> Fatal error occurred, no output PDF file produced!   Uh oh. I'm stuck for ideas for what to try next.


What is the difference between saveNodeCoors and \psGetNodeCenter?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-node} \begin{document} \begin{pspicture}[showgrid](5,3) \rput(1.5,0.5){\trinode{CN}{NodeA}} \rput(3.5,2.5){\trinode{EN}{NodeB}} \pnode(! \psGetNodeCenter{CN} CN.x 2 add CN.y 1 add ){MyCNode} \ncline[linecolor=red]{MyCNode}{EN} \ncline[linecolor=blue]{CN}{EN} \end{pspicture} \end{document}   From the image, I don't think that the coordinate of MyCNode is (3.5,1.5 !?) \documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-node} \begin{document} \begin{pspicture}[showgrid,saveNodeCoors](5,3) \rput(1.5,0.5){\trinode{CN}{NodeA}} \rput(3.5,2.5){\trinode{EN}{NodeB}} \pnode(! N-CN.x 2 add N-CN.y 1 add ){MyCNode} \ncline[linecolor=red]{MyCNode}{EN} \ncline[linecolor=blue]{CN}{EN} \end{pspicture} \end{document}   From the above code, so (N-CN.x,N-CN.y)=(0,0) !? P\S: In pst-node documentation, there is a sentence which has the following content: In the following example it doesn’t work because the relative node setting via \rput is not taken into account. Truly, I do not understand it clearly.


do-release-upgrade not finding next version

I'm trying to upgrade a server currently running 19.04 No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 19.04 Release:    19.04 Codename:   disco  I'm trying to get it to upgrade to the current LTS 20.04 but not having any luck at all. I've set prompt=normal in the release-upgrades file but when I run do-release-upgrade -c I'm told the next version is 20.04 LTS and not 19.10 If I then try and run the upgrade regardless, it tells me that it isn't supported to upgrade straight to 20.04 (expected) but I've not found a way of forcing it to get the next release. It seems to be completely ignoring the prompt setting. Is there a way I can specify the version or change something else to get it to pick up? I'm currently completely stuck on 19.04 which isn't ideal.