I am trying to install Yeoman in my machine but i am getting the error  node outdated,when i checked my versions i got this.   node --version && npm --version  v0.10.37 1.4.28   if my versions are ok then why i am getting these error.Whats the cause for this.      Running sanity checks on your system  ✔ No .bowerrc file in home directory ✔ Global configuration file is valid ✔ NODE_PATH matches the npm root ✖ Node.js version  List item  Your Node.js version is outdated. Upgrade to the latest version: https://nodejs.org  ✔ No .yo-rc.json file in home directory ✖ npm version  Your npm version is outdated.  Upgrade to the latest version by running: npm install -g npm   Found potential issues on your machine :( npm WARN unmet dependency /usr/lib/node_modules/npm/node_modules/npm-package-arg requires semver@'4' but will load npm WARN unmet dependency /usr/lib/node_modules/npm/node_modules/semver, npm WARN unmet dependency which is version 2.3.0 npm WARN unmet dependency /usr/lib/node_modules/npm/node_modules/rimraf/node_modules/glob requires inflight@'^1.0.4' but will load npm WARN unmet dependency /usr/lib/node_modules/npm/node_modules/inflight, npm WARN unmet dependency which is version 1.0.1 npm WARN unmet dependency /usr/lib/node_modules/npm/node_modules/rimraf/node_modules/glob requires minimatch@'^2.0.1' but will load npm WARN unmet dependency /usr/lib/node_modules/npm/node_modules/minimatch, npm WARN unmet dependency which is version 1.0.0 npm WARN unmet dependency /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/glob requires inflight@'^1.0.4' but will load npm WARN unmet dependency /usr/lib/node_modules/npm/node_modules/inflight, npm WARN unmet dependency which is version 1.0.1


Is it possible to walk between all three terminals in Dubai Airport without leaving airside?

We are arriving into Terminal 2 on the 28th December and want to go to the business lounge in Terminal 1 before getting a flight from Terminal 3 eight hours later.


Can you leave at a connecting airport and miss the leg to the destination?

I've booked a flight for my daughter from New York to Dublin via Heathrow. She works in the UK. We are changing planes in Heathrow; can she just get off and leave the airport in London, instead of flying to Dublin only to to fly back to Heathrow?


Case field mapping with custom object fields?

i have posted this question earlier but i'm not getting the proper solution  please read the requirement carefully.* i have a custom object Integration__c and it has fields username__c,password__c,url__c,account__c(lookup field) fields. and Integration__c has some records.   here comes my requirement is i have created a trigger on Case object as after insert event. 1.when case creating must be select an account lookup field with one salesforce account. 2.now after clicking the save button it will check with Integration__c custom object records with the matching account field in case record. 3.if any record is in the Integration__c is match with the case object account field then returns the field values of integration__c from that record only. for that i have developed a trigger on Case : trigger Type on Case (after Insert) {      List<ID> cIds = new List<ID>();           Set<String> lst_accountName = new Set<String>();     List<String> allaccountnamesList = new List<String>();          //Map<ID, Integration__c> mapIds = new Map<ID,  Integration__c>();                           for(Case cObj : Trigger.new){                        if(cObj.Account.Name != null && cObj.IntegrationTo__c != null){                                cIds.add(cObj.Id);                                } lst_accountName.add(cObj.Account.Name);                        }allaccountnamesList.addAll(lst_accountName );                  List<Case> cas = Trigger.new;          List<Integration__c> listAll = [SELECT id,name,username__c,password__c,URL__c,account__c,integrationwith__c FROM Integration__c ];                      for(Case c : cas  ){             for(integer i=0; i<=listAll.size();i++){                     if(listAll.get(i).IntegrationAccount__c.contains(c.Account.Name)){                                                                                String name = listAll.get(username__c);                      String pwd = listAll.get(password__c);                      String url = listAll.get(URL__c);                                                                        }        }    } }  How can I get the only matched account field value on case with any of the records in Integration__c, then return the record  details from that record only? when i saving the above code it shows an error called :  Error: Compile Error: Variable does not exist: username__c at line 32 column 48


What happens if I decide to skip saving?

What happens if I am afflicted with a condition that worsens on a failed save and choose not to try to save? Do I:   Automatically suffer the effects of the failed save? Keep my current condition? Have no choice and must roll the save regardless?   This came up in a game earlier this afternoon when we decided to just stop saving against the effect that was causing us to fall unconscious.


Does it have convergent subsequence in that form?

Let $P_i$ be sequence of prime numbers i.e $P_1=2,P_2=3,P_3=5 ...$  Euler has proved that the sum $$\sum_{i=1}^{\infty}\dfrac{1}{P_i}$$ is divergent.   Set $a_i=P_{P_i}$ then $a_1=P_2=3$ , $a_2=P_{3}=5$ and $a_3=P_5=11$ ...  My question is that $$\sum_{i=1}^{\infty}\dfrac{1}{a_i}$$ is convergent or not. From a more general perspextive if set $$a_i=P_{P_{P_{._{._{P_i}}}}}$$ (n times sub) then can we conclude that   $$\sum_{i=1}^{\infty}\dfrac{1}{a_i}$$ is convergent ? if it is so, what is the minumum of such $n$ ?


How much ram is being used on my laptop?

I have 3987MB of RAM on my laptop. Task (System) Manager says that I am using 700MB of this RAM, whilst the command "free -m" says I am using nearly 1500MB. Which one is correct and why do they show two different values?   Thanks for any help.


New users required to take a tutorial on how the site works

I'll start with  which sparked my thinking cap. It's becoming extremely overwhelming with the great number of new users who seem to think that Stack Overflow is a forum, that they can ask whatever they want, ignoring the FAQ and the strict guidelines we have here. It seems that anyone who has a simple question can come create a new account here, throw their entry-level question up, and expect a bunch of people to tell them exactly what they need. Unfortunately, that's of course not how these sites work.  Imagine a new user who's never used any Stack Exchange sites, and doesn't know how it works, coming to Stack Overflow for the first time. They are new to programming, and have a lot of learning to do. They create a new account, and ask their question such as "How to write a web hook with a third-party API?". Now imagine how critical people will be to them. That user will cringe and start fighting back in the comments with "Why do you have to be so mean?"  Now, imagine a new user, same as before, coming to Stack Overflow for the first time. When they go to register, first of all a page will show with a message explaining that Stack Overflow is not a forum, and doesn't work like the rest of the sites they might be used to. Make this mandatory for them to read and approve before even creating an account. Then, once they've registered, require that they go through a short but thorough step-by-step tutorial to understand how they should contribute to the site. Make sure they understand how everything works before they dive into it.  I personally work for a software company which has troubles getting our clients to understand how to use our software, and they always mis-use it. Kind of like selling someone a 747, but instead of flying it, they strap a bunch of mules to the front and sit on top with a whip. It's very huge and complex (inventory/point-of-sale) and there's a lot to know before using it. Well, Stack Overflow works in the same precise manner, and it's expected that people follow by the rules of how it was designed. So now I'm making training videos for them.  Currently, when you sign up, there is nothing that really forces you to read and accept before using the site. I signed up for an account a short while ago, and I did not face anything which really made sure I knew how the site worked before letting me in. Sure, there's a first question guide, but it's just one single step, kinda like a terms & conditions checkbox, which everyone tends to ignore anyway. This needs to be a step-by-step (not all in one page) tutorial. And a clear warning before they even create an account. It really sucks when you sign up for something all excited, then when you finally get to ask your first question, you're faced with terror. It's a lot better to tell someone the truth up front before they begin than to lure them in and once they're here we practically say "Oh, by the way, your questions probably will not be answered."  It's simple. We educate the newbies.


What is the purpose of using a decision tree?

I don't understand what is the purpose of the decision tree? The way I see it is, it is a series of if-else. Why don't I just use if-else instead of using a decision tree? It is because it decreases the complexity of my code?  I am still spared from calculating entropy and information gain because there are prebuilt algorithms for them where I just plug in the rules right? (Like ID3)  Why do we use it with machine learning now? Because we don't even have to come up with the rules while before we needed to? The machine learns from the training data and based on the attributes it can predict a result?  Does implementing ML in my code decrease overhead more and it makes my code less complex, more effective, faster?


Does Unity have a map size limit and if there is what is the limit? Is there a way to work around it? I am making a open world zombie survival world and I want to make a really big map. Thanks!


Is there a standard way to organize methods within a class?

There seem to be many different ways of organizing methods in a class. I could group methods by access, and order them alphabetically. I could group related methods together. I could use a mix of the two, or something else entirely. Is there a standard way to approach this? If not, how do you approach it?


Determining an optimum and distribution range from species abundance vs environmental gradient data

Hi and thanks for any help re the below  This is a fairly complex question so I will attempt to ask it in a fairly basic manor.   I have data on the abundance of 99 different species of estuarine macroinvertebrate species and the sediment mud content (0 - 100 %) in which each observation was obtained. I have a total of 1402 observations for each species (i.e. a massive dataset).   Here is a subset of the raw data for one species to give you an idea of the data I'm working with (if I had 10 reputation points i'd upload a plot of real raw data:  Abundance: 10,14,10,3,3,3,3,4,5,5,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,6,0,0,0,0,12,0,0,0,34,0,0 Mud %:     0.9,4,2,10,13,14,6,5,5,7,22,27,34,37,47,58,54,70,54,80,90,65,56,7,8,34,67,54,32,1,57,45,49,4,78,65,45,35   The primary aim of my research is to determine an "optimum mud % range" (e.g. 15 - 45 %) and "distribution mud % range" (e.g. 0 - 80 %) for each of the 99 invertebrate species.  As you can see the abundance data for the above species contains a significant number of zero values. Although this significantly skews any sort of model that I run on the data (i.e. GLM, GAM), even if I model the non-zero data only, the model for certain species does not fit the data at all well.  So, my question is: what would be the best, most robust way to determine an "optimum" and "distribution" mud range for a given species, given that responses vary significantly between species?


Reliability function, proving exponential distribution

We are given $R(t)$ = $P(X>t)$ for all $x > 0$ and  $$R(0) = 1 - Fx(0) = 1\text{ and }\lim\limits_{t \to \infty} R(t) = 0$$  The random variable $X$ also satisfies the memoryless property:  $$P(X>s+t|X>t) = P(X>s)\text{ for }s>0\text{ and }t>0$$  Let $R'(0) = - \lambda\ where \  \lambda\ ,$  is some positive constant. I need to show that X must be exponentially distributed.  Given that $\dfrac{R(t + h) - R(t)}{h}$ = $R(t)\left[\dfrac{R(h) - 1}{h}\right]$   Show that by letting $\lim\limits_{h\to \infty}$ $\dfrac{dR(t)}{dt} = -\lambda$$R(t)$  (I think we should use Hopital's rule here I am not sure by differentiating $\left[\dfrac{R(h) - 1}{h}\right]$ and letting $h$ tend to $0$, we will get $-\lambda$ for this part but I got stuck afterwards).  Also argue that $X$ is an exponential random variable with rate parameter $\lambda$  by solving the differential equation above respecting the conditions:  $$R(0) = 1 - Fx(0) = 1\text{ and }\lim\limits_{t \to \infty} R(t) = 0$$


SQL select list as comma separated values

I have a table with INT Id column. I need to select Ids as comma separated values in a subquery.  I tried:  DECLARE @ids VARCHAR(MAX) SELECT @ids= COALESCE(@ids +',' ,'') + Convert(nvarchar(8), Id) FROM TableX  SELECT @ids   It works but the problem is that I cannot use declared variable. Is there a way to avoid variable use?  Example:  SELECT Id FROM TableX   Result:  1 2 5 7   I want:  1,2,5,7


Nullpointer exception while creating bitmap from text in android

I have text file that has got datas in "%02x " format. For example my text's content like "AA 00 11 CC...". I want to have bitmap from this text file.  I have tried many solutions about this. Firstly I have converted this datas to byte array like that;      Inputstream is = getResources().openRawResource(R.raw.ep2data);     InputStreamReader inputStreamReader = new InputStreamReader(is);     BufferedReader bufferedReader = new BufferedReader(inputStreamReader);      String line;     StringBuilder text = new StringBuilder();      try {          while ((line = bufferedReader.readLine()) != null) {              text.append(line);             text.append('\n');         }      } catch (IOException e) {          e.printStackTrace();     }      String s = text.toString();      //convert string to byte array     String[] tokens = s.split(" ");     Log.d("string array length", "" +tokens.length);     byte[] data = new byte[tokens.length];      for (int i = 0; i < tokens.length - 1; i++) {          data[i] = (byte) ((Character.digit(tokens[i].charAt(0), 16) << 4)                 + Character.digit(tokens[i].charAt(1), 16));      }      Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length, options);   As a result, I'm getting bitmap as null. So I can not create bitmap from this text. How can I create bitmap from text string. I have tried many solution but I couldn't get solution about this subject.


"physical block size is 2048 bytes, but Linux says it is 512" when formatting USB - How to create a bootable USB without this error

I was using:  dd  if=/path/to/my/ubuntuiso/ubuntu.iso  of=/dev/sdb1  bs=4M  &&  sync   In order to create bootable Ubuntu USB drives on older Ubuntu versions. It was working perfectly. Sometimes I used the Startup Disk Creator program, which  worked well.  But when I use the same methods on Ubuntu 16.04 LTS, I get some warnings while formatting it afterwards.   The installation media works as expected, but when I try to format that USB stick after my work is done, I get the following warning :    The partitioning of that Pendrive looks strange :    And it also shows my 16GB pendrive as 64GB.  After struggling a lot with Gparted, I will somehow format it. But Why is it happening like this ?? Is there any better methods of creating bootable Ubuntu in 16.04 ?  EDIT : there is a related question . But my question is not about how to format it properly. My question is "How to create a bootable USB without that errors." & "Wht are the causes of that error"


In Cycles, a sun lamp is treated as infinitely far away - only the angle matters, not the position. Other lamps have their sizes defined in blender units: a point lamp with size 1 emits light from a area with size of 1. But if a sun lamp at infinity had a size of 1 blender unit, the angular arc of that sun would be nonexistent.  Clearly, when you change the size of a sun lamp, shadows get fuzzier or sharper. But what does that actually mean? What are you changing?


Can't view just one photo in Affinity when more than one is loaded

When loading more than one photo in Affinity I get 1/4 of one on top of another photo. I have to stop Affinity and then quit Affinity to load another photo. Is there a way I can load more than one photo and select which one I want to work on?  Mac 10.13.2


18.04 | Cannot use the Laptop without external monitor [SOLVED]

I have a Laptop running the Ubuntu 18.04. At the beginning, I was using only the Laptop screen. And then, I tried to connect an external monitor via HDMI. At first, system couldn't detect the external monitor. I made some research and updated my GPU drivers. Recently, the second monitor is working fine, but the laptop screen is blank. And, I cannot see the laptop screen at the displays page. Unfortunately, I can no more use the Laptop screen by itself. I must always connect to an external monitor via HDMI. What do you think the problem is? As if needed, system has an i7-8750H and a GTX1060 in it. Here is a screenshot from the additional drivers page:  Here is a screenshot from displays page:  EDIT: I switched the GPU driver to nouveau driver. Now I can use the Laptop screen and system can detect the external monitor but not properly. Here is screenshot from Displays page:  If I mirror the screens, I can only see the cursor on the external screen. The Laptop screen works properly. If I try to use only the Laptop screen, no problem occurs. If I try to use only the external screen, I can see all windows but cannot click on them. The interesting thing is that I can move the mouse. How the hack, lol If I try to join the screens, I can only see a black screen on the external monitor and Laptop screen works properly.  EDIT 2: I discovered something new.  If I de-activate external GPU by calling sudo prime-select intel, the external screen goes black and I only have the Laptop screen. After then, I can only see the "Built in Display" settings in the Displays page.  Same happens after activating the external GPU. I call sudo prime-select nvidia and then Laptop screen freezes with a blank screen on it. It also has the cursor at the bottom right corner. But, I cannot switch to it.


I just loaded a fresh copy of Ubuntu onto my Raspberry Pi, and now I am attempting to configure it for running a PLEX server at home. I got the stage where one enters a new password to replace the default password of ubuntu, but whenever I enter a random string I selected as a password, such as M8YaSLq2iP, it will not accept it, and instead outputs: passwd: Authentication token manipulation error passwd: password unchanged Connection to 10.0.0.57 closed.  [process exited with code 10]  I am connected to my Pi over a LAN connection, using Windows SSH to connect to it. I have been searching the forums for a solution, and as far as I can tell, the password should be a valid UNIX password. Also, every fix for the error mentioned requires you not to set up your password for the first time, as you need to be able to run other commands in the command line. Thank you for any help you can provide in lessening my headache here!


Can anyone tell me how to solve this recurrence efficiently $F(n) = F(n-1) + F(n-2) + F(n-1)*F(n-2)$. I will be provided value of $F(0)$ and $F(1)$ and have to calculate $F(n)$.  $0 \le N \le 10^9$


Gaining intuition over central extension of algebras

Conformal algebra in 2 dimensions admits a central extension and while the procedure itself is explained in many textbooks quite well, I haven't found a source in which it is reasoned as to why we should carry out the central extension.    In  Wikipedia article, it is stated that the symmetry group of a quantized system usually is a central extension of the classical symmetry group, and in the same way the corresponding symmetry Lie algebra of the quantum system is, in general, a central extension of the classical symmetry algebra.  Can someone please elaborate on this and explain why this is the case?


I' am still searching on why am getting 0 when doing a ajax call on wordpress. I know that when a ajax call is successfull it returns 0. I' am returning some value from the ajax call and it returns 0 with it.  Here's my code Javascript  $.ajax({     url: "/wp-admin/admin-ajax.php",     type: 'POST',     data:{         action: 'registerform',         name: 'John',         age: '38'     },     success: function( data ){         alert(data);     } });   PHP Function  function registerform(){     echo $_POST['name']; } add_action('wp_ajax_registerform', 'registerform'); add_action('wp_ajax_nopriv_registerform', 'registerform');   Above Code returns John0  Please help?


I used projected (Hungarian EOV) orthophoto for segmentation and classification in eCognition (I defined EOV in ecognition as well), the result was exported into shapefile. I opened orthophoto and shapefile in QGIS and ArcGIS, but exported shapefile doesn't overlap with orthophoto even they have the same coordinate system. Can anyone help me to deal with this issue.


How to access attributes from linked tables (QGIS 2.14.2 Essen)

I have one source shapefile like this:  It consist the geographical coordinates of weather stations:    And several attribute files, which contain the Temperature data of each date for several years    I managed to linked them through the ID (project properties/ Relations).  Now I want to access for example the Temperature from the weather station 3 at a specific date. With the attribute table I can see all the values, but I don't know how to query some values with the Field Calculator. I can’t access the linked data.


How to make a linux script its output to a new text file from within the script?

I have a script getInfo.sh I made in Linux that collects information about the user, date, number of users logged into current environment, and many other features.  I could easily outside of the file have something where it is ./getInfo.sh > results.txt.  However I would like this to happen automatically within the script.  If I were to include the ./getInfo.sh > results.txt within the script itself it would create an infinite loop as each time it hits the ./getInfo.sh it will re-run the script and create an infinite loop.  Any alternatives here?


Function to get single field from database with PDO

I created the following reusable code to get the value from a single database field using dynamic input:  function query_column($columnName,$tableName,$whereColumn,$whereValue) {    global $db;    $query = $db->prepare("SELECT :columnName FROM " . htmlspecialchars($tableName) . " WHERE :whereColumn = :whereValue LIMIT 1");    $query->execute(array(':columnName' => $columnName, ':whereColumn' => $whereColumn, ':whereValue' => $whereValue));    if($query->rowCount() > 0) {       while($result = $query->fetch(PDO::FETCH_ASSOC)) {          return $result['$columName'];       }    } else {       return Null;    } }   I call it like this:  $this->author = query_column("name","author","authorid",$authorId);   I already figured out that you can't bind the table name to a parameter with PDO, but what else could I be doing wrong? It keeps returning Null even though it should be returning data.


tangential acceleration for uniform circular motion

I understand that circular motion is defined by 2 components of acceleration, one tangential and one radial and their resultant is what causes circular motion.  I am confused though as to why it is said that in uniform circular motion (constant angular velocity) there is no tangential acceleration. How can the radial vector be always pointing towards the centre? Is there is no tangential vector component to it?  So is there still a vectorial tangential acceleration (since the vector points to a different point at each time)?  And is centripetal acceleration the resultant of the tangential and radial accelerations?


We have 2 PCs and 4 laptops in the office, and we use D-Link 2750U to connect to internet. All the computers can connect to the internet successfully.  One thing that I noticed recently, is that PCs (with Ethernet cables) are not able to ping laptops (with wireless connections). Also, the wireless laptops are not able to ping wired PCs.  For example, the IP of PC1 is 192.168.1.33 and the IP of laptop1 is 192.168.1.36. The following are the ping results from both devices trying to ping each other:      Why is this problem happening?  What should I do solve this problem?  Your time and help is appreciated.  P.S. 1  The PCs ping each other successfully.  P.S. 2  If we connect the laptops with Ethernet cables (not wireless), the ping is successful; i.e. the PCs can ping laptops, and also the laptops can ping PCs with successful responds.


Dual nature of matter and electromagnetic radiations

I haven't completely understood the dual nature of matter and electromagnetic radiation. If all matter has wave nature and and all waves have particle nature then how will one distinguish between particles and waves? If there is no distinction between a particle and a wave then what is a matter wave...shouldn't all waves be called matter waves? (I am new to this concept so the question may be silly)


Where can I find a factory image for the Moto X 2nd Gen 2014?

I went to Motorola's site and requested one, but since it's Sunday, I don't think I will receive the file until tomorrow.  You would think that someone would host the image file somewhere just in Motorola's site went down or something. Is there a place I can download it from other than the manufacturers site that I do not know about?


How are  precisely defined?  In basic physics courses it is usual to see arguments on symmetry to derive some equations. This, however, is done in a kind of sloppy way: "we are calculating the electric field on a semicircle wire on the top half plane on the origin. Since it is symmetric, the horizontal components of the field cancel and we are left with the vertical component only".  Arguments like that are seem a lot. Now I'm seeing Susskinds Theoretical Minimum courses and he defines a symmetry like that: "a symmetry is a change of coordinates that lefts the Lagrangian unchanged". So if the lagrangian of a system is invariant under a change of coordinates, that change is a symmetry.  I've also heard talking about groups to talk about symmetries in physics. I've studied some group theory until now, but I can't see how groups can relate to this notion of symmetry Susskind talks about, nor the sloppy version of the basic courses.  So, how all those ideas fit together? How symmetry is precisely defined for a physicist?


Limit of : $\lim\limits_{n\to\infty}{(\sqrt[3]{n+1}-\sqrt[3]{n})}$.

I have to find $$\lim_{n\to\infty}{(\sqrt[3]{n+1}-\sqrt[3]{n})}$$ here what I did $$\lim_{n\to\infty}{(\sqrt[3]{n+1}-\sqrt[3]{n})}$$=$$\lim_{n\to\infty}{\left(\sqrt[3]{n\left(1+\frac{1}{n}\right)}-\sqrt[3]{n}\right)}$$ How can I proceed?


Display the value of the EditTextPreference in summary

I'm a learning how to develop in Android and want to make a setting activity,   My setting activity   public class Main extends Activity  {       protected SettingsFragment settingsFragment;       @SuppressLint("NewApi")     @TargetApi(11)     public class SettingsFragment extends PreferenceFragment implements             SharedPreferences.OnSharedPreferenceChangeListener {           @Override         public void onCreate(Bundle savedInstanceState) {              super.onCreate(savedInstanceState);             addPreferencesFromResource(R.xml.preferences);             setSummaries();           }           @Override         public void onResume() {             final SharedPreferences sh = getPreferenceManager().getSharedPreferences() ;             super.onResume();             sh.registerOnSharedPreferenceChangeListener(this);          }          @Override         public void onPause() {             final SharedPreferences sh = getPreferenceManager().getSharedPreferences() ;             super.onPause();             sh.unregisterOnSharedPreferenceChangeListener(this);         }          @SuppressLint("NewApi")         public void setSummaries(){             final SharedPreferences sh = getPreferenceManager().getSharedPreferences() ;               //Pref1             Preference stylePref = findPreference("editTextPref");             stylePref.setSummary(sh.getString("editTextPref", ""));              //here the other preferences..         }           @Override         public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {             if (key.equals("editTextPref")) {                 Preference pref = settingsFragment.findPreference(key);                 // Set summary to be the user-description for the selected value                 pref.setSummary(sharedPreferences.getString(key, ""));              }             //here the others preferences         }     }//End fragment      @SuppressLint("NewApi")     @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         settingsFragment = new SettingsFragment();         getFragmentManager().beginTransaction()                 .replace(android.R.id.content, settingsFragment)                 .commit();       }   }   and my res/preferences.xml file   <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">     <PreferenceCategory         android:title="BTA"         xmlns:android="http://schemas.android.com/apk/res/android">           <EditTextPreference             android:key="editTextPref"             android:title="Numero de telephone"             android:summary="This allows you to enter a string"             android:defaultValue="*"/>      </PreferenceCategory>  </PreferenceScreen>   So now i have the activity for the setting activity. But i want to display the value of the EditTextPref in android:summary. I have found many topics but all the functions was deprecated.  EDIT : thanks to @Ace_McIntosh , I edited my code for people who want it, it's working now.


Show that the relation defined on an integral domain by "$x\sim y$" ("$x$ is associated with $y$") is a relation of equivalence.

I did the following demonstration: Would it be possible to give me a feedbak if i'm to wrong. Be $A$ an integral domain and $x,y \in A$, then:  $x\sim y \Rightarrow$ $\exists u \in \mathfrak{U}(A)$ such that $y=xu \Rightarrow x \mid y$ and $y\mid x$. So there's $a,b \in A$ such that $xa=y$ and $yb=x$. $1º$ case: $x=0.$ $x=0$ and $xa=y \Rightarrow y=0.$ Take $u=1 \in \mathfrak{U}(A)$ and then, $0=0\cdot 1$, or $y=xu$. $2º$ case: $a\neq 0$. $xa=y$ and $yb=x$. $\Rightarrow xab=x$ $\Rightarrow x(ab-1)=0$ $\Rightarrow ab=1$ $\Rightarrow a$ is invertible. Taking $u=a \in \mathfrak{U}(A)$ and then $xu=y$. By hypothesis, $y=xu$, $u \in \mathfrak{U}(A)$. It follows that $x\mid y.$ In addition, from $y=xu$, we have $y \cdot u^{-1}=x$ and then $ y\mid x$. So, $x\sim y$. $\square$


why is there no itunes radio on my iphone 5 with the new update?

with the new update IOS 7 there is a itunes radio. well i've updated my iphone with the IOS 7 and the itunes radio has not shown up. i was told that it only works for the USA users and not the canadian or other users. now why is that?


How do I get a coverage with external object in Apex Class?

After retrieving data from an external object, I'm in progress type conversion to an External Object. However, when I run  test class, it is not covered from this point.             test__x objT = new test__x();             if(strObjectAPITemp !=null && strObjectAPITemp == 'test__x'){                 test__x objT = new test__x();                 String strKye;                  for(SObject obj : listResult){                     objT = (test__x) obj;                     strKye = objT.Id;                     if(objT.partid__r.Id == null) {                         mapSaleItemTemp.put(strKye, objT);                      }                 }             }           I'd like to know if there is a way to cover lines from this external declaration. Thank you so much.


After adding a custom prompt in my .bashrc, the typing seems to repeat in the second line

So I edited my .bashrc and decided to add the following code: bold=$(tput bold); if [ "$EUID" -ne 0 ]; then     PS1="\[${bold}\e[38;2;171;178;191m[\e[m\]";     PS1+="\[${bold}\e[38;2;97;175;239m\u\e[m\]";     PS1+="\[${bold}\e[38;2;152;195;121m@\e[m\]";     PS1+="\[${bold}\e[38;2;198;120;221m\h: \e[m\]";     PS1+="\[${bold}\e[38;2;86;182;194m\w\e[m\]";     PS1+="\[${bold}\e[38;2;171;178;191m]\e[m\]";     PS1+="\[${bold}\e[38;2;229;192;123m$ \e[m\]";   else     PS1="\[${bold}\e[38;2;224;108;117m[\u@\h \W]# \e[m\]"; fi  After doing so, the colours are working just fine however, after a quarter of the second line is completed, it sort goes back to the start of the second line and overwrites whatever was written over there and the moves on. I'm sure this is some sort of syntax error on my part, not sure what it is.


Sugar daddy scammer threatening with police

I got involved with an online person and we exchanged numbers and he told me he would pay me $500 a week allowance to hang out when our schedules permit and to message him. Looking over it, I should have known it was a scam but was a bit desperate so got involved.  He sent me a cashiers check which I deposited and, because I got worried, I called my bank and they put a hold on my account because they agreed with me that the check was probably fake. Now I have a sugar daddy scammer threatening me with FBI saying I'm a fraud, and saying he has my address which I did not give him, can he legally do anything? He also wanted me to forward 1500 dollars of the 2000 dollar check through zelle.    Awesome thank you so much! I wasn't sure if he could technically take legal action since I technically didn't follow through and hang out with him, this eased my mind!:)


What do you call a quote that is a modification/derivation of another quote?

There is the quote, . And then there are the quotes,  and . I'm not concerned about who said the quotes or why. My question is focused on whether a single word phrase exists that you could call each of the derived quotes, which are based on another quote (particularly, the first one, in this example). So something with meaning similar to "modified quote", "derived quote", "adjusted quote", "inspired quote", or "allusion quote", but as a single word if possible. Does such a word exist?


Dealing with space in file links using bash

I got a problem. Here is my bash script to merge videos with subs:  #!/bin/bash   cd /media/ptrknvk/'TOSHIBA EXT'/Shows/My/'Doctor Who'/  url0='DW s11e0' url1='DW\ s11e'  for(( i=1; i<11; i++ )) do     if ! [ $i -gt 9 ];      then         mkvmerge -o $url0$i.mkv $url0$i.mkv $url0$i.srt         rm $url0$i.srt     else         mkvmerge -o $url1$i.mkv $url1$i.mkv $url1$i.srt         rm $url1$i.srt     fi done   File have names like for example "DW s11e05.mkv" and they actually exist in the directory.  And here is a result:  mkvmerge v8.8.0 ('Wind at my back') 64bit Error: The file 's11e09.mkv' could not be opened for reading: open file error. rm: cannot remove 'DW': No such file or directory rm: cannot remove 's11e09.srt': No such file or directory mkvmerge v8.8.0 ('Wind at my back') 64bit Error: The file 's11e10.mkv' could not be opened for reading: open file error. rm: cannot remove 'DW\': No such file or directory rm: cannot remove 's11e10.srt': No such file or directory   As you can see '\' before a space doesn't work here. I also tried to use echo, but nothing changed (mb I've used it in a wrong way).   Sorry for my little bit nooby style.


Cannot take ownership of a folder I created even as admin

I created a folder on Windows 10, then deleted it, for whatever reason some glitch happens, it reappears and I cannot gain access to it. I cannot even take ownership of it  as I do have no way to do so :


When creating PDF from an image, what determines the screen dimensions when viewed at 100%?

I would like to use pdf for ease of use and annotations when creating previews of my screen designs. However, no matter how I create my pdf, I can't seem to figure out what determines the 100% view of my pdf file. Naturally, I would like my pdf 100% view to be the same size on screen as my photoshop layouts - how do you achieve that?  From my tests I can see that the dpi of the photoshop/tiff/jpg file affects what acrobat picks as 100% when importing the image from file (or saving as pdf from photoshop, for that matter), but seeing how about 95dpi for the image file results in a 100% pdf view that roughly is the same as my actual pixel size, I wonder what's the logic here.  Short answer as I understand it based on the answers: 100% size is determined by the "preferences > page display" ppi value, which is user/system specific


3 subfigures, 2 vertically aligned and one hortizontally

Hello,  Does anybody know how to vertically align two subfigures with another subfigure horizontally?  I mean i need to put two small images above each other beside another longer image as shown above.  \documentclass{article} \usepackage[pdftex]{graphicx} \usepackage{subfigure}  \begin{document} \begin{figure}     \centering         \subfigure[]{\includegraphics[width=0.5\linewidth]{cat1}}         \subfigure[]{\includegraphics[width=0.5\linewidth]{cat2}}         \subfigure[]{\includegraphics[width=0.5\linewidth]{cat3}}     \label{fig:cat1} \end{figure}  \end{document}


How can I access the html element div.card as shown below, the div returns as Proxy{}  in lightning and I cannot manipulate the DOM. The div comes from the content in controller because it is in rich text format, so I had to use lighting formattedText. Is there a way to access it in lightning? Thank you.


Is it possible to install Wubi using the ISO?

I have the Ubuntu 11.10 ISO downloaded but I want to install the Wubi for some specific reasons. When I do the click on the Wubi installer, it starts downloading files. Since I already have the ISO with me, is it possible to make use of this ISO during the installation?


Finding bounds on $\lim_{n\to\infty}\sum_{k=0}^{n}\frac{1}{\sqrt{n^2+k}}$

I am supposed to approximate the value of $\lim_{n\to \infty}\sum_{k=0}^{n}1/\sqrt{n^2+k}$. If it were $k^2$, then it could be rewritten as an integral, which would come out to be $\ln(\sqrt{2}+1)$. $$\lim_{n\to \infty}\sum_{k=0}^{n}\frac{1}{\sqrt{n^2+k}}\lt \lim_{n\to \infty}\frac{n+1}{n}=1$$ So the limiting sum should lie in the interval $(0,1)$. Is this correct? Thanks.


Changing Default File Manager in Ubuntu Gnome 18.04.2

...in Ubuntu Gnome 18.04.2  Dolphin doesn't tick all my boxes and I much rather prefer using Nemo.  In the Kubuntu you can set this under default applications, not in the Gnome  DE. How can this be done?


conjunction of disjunctions and disjunction of conjunctions

$(p∨q) ∧ (p∨r) ∧ (q∨r) \iff (p∧q) ∨ (p∧r) ∨ (q∧r)$  Without using set theory, how can I prove this using logical equivalences? I've tried to approach this problem with De Morgan and I've also tried the property of distributivity but I keep reaching a dead end.   How should I approach this problem?  Thank  you.


Is it common anywhere to say "scat" when one sneezes?

I use the phrase "SCAT" when I sneeze, and sometimes when someone in my presence sneezes.   I have lived in different parts of the US and don't know where I picked up this expression. Has anyone heard of this practice before, or is it common anywhere?


Proportion hazards assumption violated for Cox regression, is AFT an acceptable alternative?

PH assumption is violated for Cox regression (one continuous variable of four predictors is causing it). As one subgroup is small (n = 45), data stratification is not an option. If I would use AFT and report median survival times or time ratios, thus all assumptions are okay and I successfully made an adjusted survival analysis?


I have created the following Gantt-chart:  \documentclass{beamer}  \usepackage[utf8]{inputenc} \usepackage{pgfgantt}  \title{Sample title} \author{Anonymous} \institute{Overleaf} \date{2019}  \begin{document}      \begin{frame}{Gant-Chart}         \begin{ganttchart}[vgrid, hgrid,                             bar/.append style={fill=blue!80},                            milestone/.append style={fill=green},                            bar label node/.append style={align=left}]{1}{26}             \gantttitle{2019}{26} \\             \gantttitle{February}{4}             \gantttitle{March}{4}             \gantttitle{April}{4}             \gantttitle{May}{5}             \gantttitle{June}{4}             \gantttitle{July}{5} \\             \gantttitlelist{1,...,26}{1} \\             \ganttbar{Start of Project}{2}{2}  \\             \ganttbar{Task 1}{3}{3} \\             \ganttbar{Task 2}{4}{4} \\             \ganttmilestone{Milestone}{7} \ganttnewline             \ganttbar{Continuous Task}{1}{24}         \end{ganttchart}     \end{frame}  \end{document}   I have three issues with it:    Although I have added the line bar label node/.append style={align=left} the labels are not left-aligned.  The chart does not fit on my Beamer-frame. Is there a way to fix this? This would be a nice add-on but is no must-have: Is there a way to let the third row represent calendar weeks ? Because these would actually overlap with the months, i.e. month can end in the middle of a week.


In the 3d viewport I am using a border region to only render things inside the selected region. I did this with CtrlB. I cannot get rid of the region. How can I make the border disappear?


About average of sequence times average of the inverse of sequence: special case of Reverse Cauchy-Schwarz Inequality

Suppose we have a positive sequence $\{x_i\}$ where $i=1, 2, \dots , n$. And let $m=\mathrm{min}(x_i), \; M = \mathrm{max}(x_i)$. Notice that $m, M>0$. Prove this inequality (discrete version): $$ \frac{\sum_{i=1}^{n} x_i }{n} \cdot \frac{ \sum_{i=1}^{n} \frac{1}{x_i} }{n} \le \frac{m+M}{2} \cdot \frac{ \frac{1}{m} + \frac{1}{M} }{2} \;.$$ Or you can prove this continuous version, where $f(x)$ is positive and continuous on $[0, 1]$ , and $m$ and $M$ are min and max values of $f(x)$ on $[0, 1]$, respectively: $$ \int_0^1 f(x) \,\mathrm{d}x \int_0^1 \frac{1}{f(x)} \,\mathrm{d}x \le \frac{m+M}{2} \cdot \frac{ \frac{1}{m} + \frac{1}{M} }{2} \;.$$ Important: I do have a proof, because the continuous version is actually an excercise of a workbook of mine. But that proof is too tricky, lacking insight as to why the product of two types of "average"s is controlled by their max and min values. So I brought it up here in seeking of an insightful solution. Hopefully finding a proof directly to the discrete version, for it is easier to imagine with my brain. Note: This question already has answers here . But that is more of a general case. I am looking for a more insightful and easy-to-understand proof with regard to this specific situation where the $f(x), g(x)$ in the original answer is taken as $f(x), \frac{1}{f(x)}$.


Why didn't Sauron find Bilbo when he put on the ring like Frodo?

When Frodo put on the One Ring, both the Nazgul and Sauron himself found Frodo. However when Bilbo had the ring and possibly used it many times, Sauron sought Gollum to get a hint on where to look for the ring and send the Nazgul after it.   Sauron sought Gollum before Bilbo wore the ring at his birthday party, slightly after that time, he was very effective at locating Frodo when Frodo put on the ring. So I guess it's not a matter of Sauron gaining any extra powers with time.  Also Bilbo seemed to use the ring without it bothering him at any point, unlike Frodo who seemed to be very troubled when using the ring. How is that possible?


why is my program skipping the if statement?

i tried to write my program in different ways but i couldnt figure it out .. the program execute only the code under else even even if the condition is verified  can anyone help me please  thanks   here is my code :  table.addMouseListener(new MouseAdapter() {      public void mouseClicked(MouseEvent e) {          int row = table.getSelectedRow();         int col = table.getSelectedColumn();         String path=table.getValueAt(row, col).toString();         String equipementMOID=txt.getText();          if(table.isColumnSelected(4) ){             if(table.getValueAt(row, 3).toString()=="UNIT" ){                 String equipementDate2=comboBox_10.getSelectedItem().toString();                 String xmlFile2=con.XMLSelection(equipementDate2);                 GetNode ne=new GetNode();                 try{                     String equipementXml2=ne.nodeToString(xmlFile2, equipementMOID);                     System.out.println(equipementXml2);                     //GetNodeByPath node=new GetNodeByPath(equipementXml2,path);                 }                  catch (SAXException | IOException | ParserConfigurationException e1) {                     // TODO Auto-generated catch block                     e1.printStackTrace();                 }             }                 else{                 String equipementDate1=comboBox_9.getSelectedItem().toString();                 String xmlFile1=con.XMLSelection(equipementDate1);                 GetNode ne=new GetNode();                 try{                     String equipementXml1=ne.nodeToString(xmlFile1, equipementMOID);                     GetNodeByPath node=new GetNodeByPath(equipementXml1,path);                 }                  catch (SAXException | IOException | ParserConfigurationException e1) {                     // TODO Auto-generated catch block                     e1.printStackTrace();                 }             }                  }        } });


Why two separate batteries in a circuit don't work?

If electrons move from the negative side to the positive side in a battery (thus creating electricity when they flow), why does the same circuit with two separate batteries not create electricity?   As you can see in the diagram, electrons should be moving from A to B because the wire is connected from A - side (high pressure) to B + side (low pressure). Why is there no electron flow?


How to stop a sponge cake (chiffon cake) from deflating/sinking?

Beating of the whites is perfected.  When folding in the cake mixture and the egg whites is there a specific technique?  I place in about 1/3, fold, 1/3, fold, and the rest using a spatula, and turn the bowl to get it folded evenly.  Do I leave the cake to cool in the oven with the door open ajar? And for how long?  Or is there a specific way to cook it, e.g. high temp then low temp?


What's the geometrical meaning of $f'''(x)$?

It's well-known that $f'(x),f''(x)$ determine the monotonicity and the concavity of $f(x)$ respectively. Besides, we can see $f'(x)$ and $f''(x)$ from the graph of $f(x)$.  But how about $f'''(x)$ and other higher orderd derivative? What's its geometrical meaning on the graph of $f(x)$? Or, limited by our human-being's perception, we can't see high-orderd derivative?


Why bar magnet can produce magnetic field?

Say I wrapped a piece of wire around an iron bar in a closed circuit connected to a DC power supply, the electrons starts flowing and moving charge produce magnetic field. Yet a bar magnet can produce a magnetic field without any charged particles moving around, are the magnetic fields produced by the two objects different types?


How do I make environment variable changes stick in Python?

From what I've read, any changes to the environment variables in a Python instance are only available within that instance, and disappear once the instance is closed.  Is there any way to make them stick by committing them to the system?  The reason I need to do this is because at the studio where I work, tools like Maya rely heavily on environment variables to configure paths across multiple platforms.  My test code is  import os os.environ['FAKE'] = 'C:\\'   Opening another instance of Python and requesting os.environ['FAKE'] yields a KeyError.  NOTE: Portability will be an issue, but the small API I'm writing will be able to check OS version and trigger different commands if necessary.  That said, I've gone the route of using the Windows registry technique and will simply write alternative methods that will call shell scripts on other platforms as they become requirements.


I have a two JavaScript (.js) files in a static resource. When I enter the full  of a JavaScript file in the browser,  the JavaScript file is displaying whereas if I do  the JavaScript file is not displaying.  FYI, both of the JavaScript files are in the same static resource. I have updated the VExpander.child.js file. Prior to my update, VExpander.child.js was displaying in the browser.  Is there a reason for not displaying the file?


Python scope: "UnboundLocalError: local variable 'c' referenced before assignment"

I am trying to figure out this:  c = 1 def f(n):     print c + n  def g(n):     c = c + n  f(1) # => 2 g(1) # => UnboundLocalError: local variable 'c' referenced before assignment   Thanks!


Is there a `for each` loop in primitive (La)TeX?

I am trying to iterate over the list of all basic colours:  \def\thecolors{black, blue, brown, cyan, darkgray, gray, green, lightgray, lime, magenta, olive, orange, pink, purple, red, teal, violet, white, yellow}   I want to define a command for each of them with some kind of for each loop, more or less as follows:  \foreach \x in \thecolors%   {\newcommand{\csname command\x\endcsname}     {\textcolor{\x}{Some text including the string \x.}}   I know this is more or less the way to do it with pgf/tikz, but I was wondering whether there is a way to do it only with (La)TeX primitive commands.  Thanks in advance for any answer.  PS: Do I need to explicitly define \thecolors or are LaTeX basic colours already stored in some command?  EDIT  I don't think this is a duplicate of  since it explicitly asks for a (La)TeX primitive method.


Does convergence in probability implies convergence of the mean?

Let $\{X_n\}_{n=1}^\infty$ be a sequence of random variables converging to a random variable $X$. Does this fact implies that $\lim\limits_{n\to \infty} EX_n = EX$?  If not, is there any other sufficient condition?


I have a function in my website meant to check if a user is blacklisted. The last part of it goes as:  $telefon = $_POST['tel_client'];     $numebl = $_POST['nume_client'];      $blacklist_res = mysql_query("Select * from blacklist where telefon_blacklist = ".$telefon." OR nume_blacklist = ".$numebl."") or die(mysql_error());     $blacklist_row = mysql_fetch_array($blacklist_res);     $blacklist_count = mysql_num_rows($blacklist_res);        if ($blacklist_count > 0) { echo      "
Warning: This client is blacklisted for : ".$blacklist_row['motiv_blacklist']."
";     }   ERROR I GET IS:  Unknown column 'smith' in 'where clause' // smith is actually the data I add as name taken from the $_POST['nume_client'];  If I run the query only with the check of the number of the client, it works.  $blacklist_res = mysql_query("Select * from blacklist where telefon_blacklist = ".$telefon."")   So the problem might be after I include to check if the name of the client is also blacklisted. Any help is appreciated.


How to stop windows to automatically reconnecting to paired audio devices?

I have a frequent problem at home - I try to connect to an audio device from my phone and fail, because the moment I turn it on my computer connects to it. So I have to go to the computer and manually disconnect the device. Is there a way to tell windows not to reconnect automatically to Bluetooth audio devices?


How to normalize by the covariance matrix?

I am trying to understand an image processing research paper [1] that calls for normalizing a distance between an object's center point and the center of a cluster of points by the covariance matrix of the cluster.  Given  $m^f_c$ - center of cluster $c$ at frame $f$ (2 dimensional $x,y$ point)  $m^f_t$ - center of cluster $t$ at frame $f$ (2 dimensional $x,y$ point)  $\Psi_c$ - covariance of cluster c  For each object $t$, the distance to each cluster $c$ is calculated $D_{ct}=\frac{1}{f}\sum_f(m^f_c-m^f_t)(\Psi^f_c)^{-1}(m^f_c-m^f_t)^T$  The paper says "It is important to normalize the cluster-to-[object] distance by the covariance matrix of the cluster to handle the scale variation of objects"  What is meant by "normalize by the covariance matrix"? I understand normalization by a scalar, but by a covariance matrix is confusing me.  [1] Anjulan, A., & Canagarajah, N. (2009). A Unified Framework for Object Retrieval and Mining. IEEE Transactions on Circuits and Systems for Video Technology, 19(1), 63–76. doi:10.1109/TCSVT.2008.2005801


A function is monotonic on the interval $[a, b]$ and traverses all intermediate values between $f(b)$ and $f(a)$. Prove that the given function is continuous on the interval $[a, b]$.  From symmetry we can assume that the function is increasing on $[a, b]$ Now for a given $\epsilon>0$, for all $c\in[a, b]$ we have $f(a)<f(c)<f(b)\implies f(x)-f(b)<f(x)-f(c)<f(x)-f(a)\implies|f(x)-f(c)|<\min(f(b)-f(x), f(x)-f(a))$ So if $\epsilon>\min(f(b)-f(x), f(x)-f(a))$ then we are done and if $\epsilon \leq min(f(b)-f(x), f(x)-f(a))$ Now from here I don't know how to move forward?


How can I make keyboard shortcuts register on key release, rather than on key press?

I want to have shortcuts like in Windows; Super opens the start menu, Super+S opens a search window, Super+E opens Thunar, etc.  I know how to set keyboard shortcuts, but when I set Super to open whiskermenu, whiskermenu also pops up in every other instance of Super+* shortcuts. I think this is because XFCE registers the shortcuts as they come, rather than waiting for simultaneous release (like in Windows).  How do I set that up?


Difference in velocity of light in change in medium

It is often seen that according to physics the light changes it's velocity according to the medium through which it is traveling. So can it be explained that why so happen?


How do I increase my internal Kubuntu partition size? (in dual boot with windows)

My internal memory (I'm not good at English so i don't know exactly what we say it) is full for know. Look at this image 👇🏻👇🏻👇🏻  This sentence is in my dolphin (Home folder) How I can increase it? I use Kubuntu 20.4 LTS I have both Kubuntu and Windows. Feel free to edit my question because I am sure it may have some spelling and writing problem's. Note:  is not my answer because this is for v 12.4 and i use 20.4


NoSuchMethodError when using assertThat+is with data type short

I have a class, with a public short status, and this line in a test:  assertThat(order.status, is(0));   But it gives me the following error:  java.lang.NoSuchMethodError: org.hamcrest.Matcher.describeMismatch(Ljava/lang/Object;Lorg/hamcrest/Description;)V      at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)     at org.junit.Assert.assertThat(Assert.java:956)     at org.junit.Assert.assertThat(Assert.java:923)     at com.example.OrderTest.testStuff(OrderTest.java:101)     ...   However, if I do the following, which is uglier, the error goes away:  assertThat(order.status, is((short) 0));   What's up with that? 😕


Switching between two power sources when getting to threshold

Im not exactly from the EE field and I would happy for guidance. long question a head: Im trying to build a circuit for keep running Raspberry Pi using solar panel + rechargeable battery. I came across this nice . on the bottom of it, there is section of Power Sharing which seems like good and working design. but the thing is that this design talking about two scenarios: 1. what happens when power source connected (both load and battery getting current) 2. what happens when power source disconnected (load getting current only from battery)  Now, I thought to use that design and add the solar panel so it will feed both the load and the battery. On sunny day, we have no problem, both the load and the battery getting current:  The issue is what happens on bit cloudy day. the solar panel could output much smaller voltage than 6v so it will be necessary to detach the solar panel from the P-Channel-Mosfet, so the load will get its current only from the battery. If I keep the wiring like this:  The voltage could be not low enough for influence the Gate and feed the load only from battery + the DC-DC will not react good to 3v\2v\1v because it minimum voltage is ~6v. So I understand that there is a need to disconnect the solar panel , so the gate will 'turn on' the mosfet and current will flow from Drain to Source and feed the load + disconnect the charge controller. so we have two options: option 1:  option 2:  So, I guess my questions are:  The main question- How can I disconnect the solar panel (option 1 \ option 2) when the voltage gets under threshold voltage (for example 4v)? there is a need with another power source of that threshold for comparison (less preferred option)? if there is a way implementing it without chips \ minimum waist of current from solar panel (I guess with mosfets) it will be very helpful.  The values on this example are not set yet (solar panel + DC-DC conv + pull down resistor), Im looking for DC-DC that can get as input range of ~3v to >15v and output 5v but couldnt find one, minimum input is about 6v.. is there unit that can implement that? (the rest of the values will be set according to DC-DC input volatage)   Sorry for the long question :) Thank you all!


Geometric description of canonical commutation relation

Does there exist any geometrical description of canonical commutation relation (CCR) of quantum mechanics $$[\hat{x},\hat{p}] = i \hbar \, ,$$ e.g. in phase space?  The commutator, along with the normalization condition, leads to the discretization of energy of a bound system, so does there exist some kind of phase space representation as in  which would tell me why and how exactly using the CCR actually leads to the discretization of energy? I would like to avoid going for the Wigner representation (WR) because, if I remember correctly, the RW has commuting functions in phase space. While we're at it, does the phase space of a quantum system has to do anything with connes noncommutative geometry since $\hat{x}$ and $\hat{p}$ do not commute so we cannot do something like  as we do in classical mechanics?


Selling my broken Macbook. How to make sure there's no personal information on the hard drive?

My Mac won't turn on but I'd like to sell it for spare parts. How can I make sure there's no personal information stored on the hard drive for the buyer to retrieve?


I hope this question actually is in order since it does not seem to have a "correct" answer:  I am about to get into drawing game-theoretic trees and while I am familiar with LaTeX in general, I am not so much with TikZ and particularly not with the drawing of trees.  From what I found, tikz-qtree and forest seem to be the two most common packages to be used (please correct me if I am mistaken). Since I will have to use the syntax of one either way, my question is: which one of the two to go for. Is one considered easier to use, more widespread/stable, more flexible, etc. - or are they not actually to be compared?


Inequality operators of both directions aligned vertically in one expression?

I would like to put inequality operators of both directions, i.e. < and >, aligned vertically in one expression. Can anyone help?


Finding and moving images without extensions between two directories

I have an old disorganized repository of files in a directory. I would like to move solely the images files to a new directory for archival purposes. The problem is that in this directory I have a mixture of multiple different types of files, including videos and movies. In addition, I have multiple types of images. Many of the images have no extension and I would like to move only the "jpeg" images to the new repository, so I can organize the jpeg files in a folder for its type.  How can I do this?


I am looking for an explicit description of the additive, multiplicative group structure and automorphism group of the field with 729 elements.   Sorry for not being clear. I have no clue what does "explicit description" mean, but I am guessing that the underlying group might be cyclic, but I do not know how to give a proof.   For its automorphism group, What I have tried:  1). Comparing this with the Galois group of this field over $F_3$ which is cyclic.  2). I also know that Aut(Z_3） = Z_2, which is, in general, true for or prime fields. That is why I am guessing that the underlying additive group should be cyclic, then by the same method, I can show that the automorphism group is a cyclic group of order 728 probably.


Why can't yield return appear inside a try block with a catch?

The following is okay: try {     Console.WriteLine("Before");      yield return 1;      Console.WriteLine("After"); } finally {     Console.WriteLine("Done"); }  The finally block runs when the whole thing has finished executing (IEnumerator<T> supports IDisposable to provide a way to ensure this even when the enumeration is abandoned before it finishes). But this is not okay: try {     Console.WriteLine("Before");      yield return 1;  // error CS1626: Cannot yield a value in the body of a try block with a catch clause      Console.WriteLine("After"); } catch (Exception e) {     Console.WriteLine(e.Message); }  Suppose (for the sake of argument) that an exception is thrown by one or other of the WriteLine calls inside the try block. What's the problem with continuing the execution in catch block? Of course, the yield return part is (currently) unable to throw anything, but why should that stop us from having an enclosing try/catch to deal with exceptions thrown before or after a yield return? Update: There's an  - seems that they already have enough problems implementing the try/finally behaviour correctly! EDIT: The MSDN page on this error is: .  It doesn't explain why, though.


Can I check in more than one bag with Qatar Airways?

I'm flying to Europe with Qatar Airways. Baggage allowance shows as 30 kg but I was wondering if I can take two small bags that weigh all together 30 kg instead of a single bag.  It might look like a stupid question but their website doesn't really explain it but I saw someone post somewhere that they checked in 3 bags and it was fine because all together they weighed 30 kg.


How do you evaluate this integral $\int \frac{6x^{3}+7x^2-12x+1}{\sqrt{x^2+4x+6}}dx$

$$\int \frac{6x^{3}+7x^2-12x+1}{\sqrt{x^2+4x+6}}dx$$  I have met this complex integral today, how do you evaluate this? Can you do this in more steps?  Is this an elliptic integral? I don't know how to evaluate this integral at all.


For regular moving objects around us, how many times can I differentiate their position with respect to time until I reach a constant?

When I practise problems, I come across ideal situations like constant velocities, constant accelerations, etc. But in real situations, objects usually don't magically gain momentum or acquire acceleration. Correct me if I'm wrong, but velocities often fluctuate due to a rate of change, i.e., acceleration, and accelerations must also be fluctuating as forces are not built up instantaneously. Therefore, there is a rate of change for each of these parameters. So, how many times do I have to repeat this process, i.e., differentiate x(t), for real objects(not particles) to reach a constant rate of change?


This is more for a feature request. I would like to have queries at the same level as questions and answers in SE. I would like to be able to comment on them, vote them up and down, and notify the author if the query no longer works.


Prove $N_1N_2/(N_1\cap N_2)\cong (N_1N_2/N_1) \times (N_1N_2/N_2)$, where $N_1, N_2$ are normal subgroups of $G$

Prove the following statement: $N_1N_2/(N_1\cap N_2)\cong (N_1N_2/N_1) \times (N_1N_2/N_2)$ where $N_1, N_2$ are normal subgroups of $G$  How do I approach this question? I tried using the first isomorphism theorem, but got stuck. Maybe I should use a different approach.


Calculate geographic position based on azimuth, distance and height

How to calculate the geographic position of an object in sky (Point B)(like an aircraft) from Home Point (Point A) based on only four variables:  Lattitude and Longitude at Home Point, Azimuth at point B, Distance from home point to point B and height of point B?


Let $f$ be positive and continuous on $[0,1]$. Find $\lim_{p \to 0} ( \int_{0}^{1} f(x)^p dx)^{1/p}$ My approach: $f$ is continuous on $[0,1] \implies$ $\exists \min_{x\in[0,1]}{f(x)}$ (call it $m$) and $\max_{x\in[0,1]}f(x)$ (call it $M$). so we have $0<m\leq f(x) \leq M$ for all $x\in[0,1]$ therefore $m\leq (\int_{0}^{1} f(x)^p dx)^{1/p} \leq M$ so by Intermediate value theorem, $\exists c\in[0,1]$ such that $f(c) = (\int_{0}^{1} f(x)^p dx)^{1/p}$ Then $\lim_{p \to 0} (\int_{0}^{1} f(x)^p dx)^{1/p} = \lim_{p\to 0} f(c)$ Can't proceed further


black screen on dual boot - but not always (Win 7 / Ubuntu 16.04)

I know this is a common problem but even after like four days of reading through different forums I wasn't able to fix it. I'm fairly new to Linux, by the way, so sorry in advance. Here's the situation:  I have an old Toshiba Satellite C660 with Windows 7. A week ago I installed Ubuntu 16.04 as the second OS, using the method of creating a new partition by shrinking an existing one. Even though Ubuntu installed just fine, ever since that time when I start the laptop I have about 50% chance of just getting a black screen. No BIOS splash screen, no recovery mode, nothing. I have to do a hard reboot and then it starts normally, BIOS splash screen, then grub loader etc. The weird thing is, it really only happens in about 50% of cases and at other times it boots normally. Even though I can always start the system eventually by doing the hard reboot, it's very annoying.  What I tried so far: Boot-Repair on recommended mode Updating / reinstalling the grub Editing the grub file in different ways (quiet splash, nomode set, etc.)  I don't know if it's related but my brightness keys don't work either.   I use integrated graphics: Mobile Intel® GM45 Express Chipset.  The output of sudo lshw -c display:  *-display:0                     description: VGA compatible controller        product: Mobile 4 Series Chipset Integrated Graphics Controller        vendor: Intel Corporation        physical id: 2        bus info: pci@0000:00:02.0        version: 07        width: 64 bits        clock: 33MHz        capabilities: msi pm vga_controller bus_master cap_list rom        configuration: driver=i915 latency=0        resources: irq:29 memory:f2800000-f2bfffff memory:d0000000-dfffffff ioport:1800(size=8) memory:c0000-dffff   *-display:1 UNCLAIMED        description: Display controller        product: Mobile 4 Series Chipset Integrated Graphics Controller        vendor: Intel Corporation        physical id: 2.1        bus info: pci@0000:00:02.1        version: 07        width: 64 bits        clock: 33MHz        capabilities: pm bus_master cap_list        configuration: latency=0        resources: memory:f2100000-f21fffff   Thank you guys in advance for any help. Apart from this issue I'm having a blast using Ubuntu and learning all this new stuff, it's really awesome.


Show a group cannot have order $2n$ for some odd $n\gt 1$ and be simple (without Cauchy's Theorem)

We were asked to prove the following today:     Let $G$ be a group. Prove that if $G$ has order $2n$ for some odd integer $n$ greater than $1$, then $G$ contains a proper non-trivial  normal subgroup and cannot be a simple group.   We were told that Cayley's Theorem would be very beneficial to the proof but all I managed to get was to say that with a group $G$, we have a map $\varphi$ such that $$\varphi (g) = T_g $$ where $T_g$ is simply a function $G \to G$ where $T_g(x) = gx \ \ \ \forall x \in G$  Next I am told we need to show that $G$ definitely has an element of some order. Naturally I wanted to used LaGrange for this but I was told this isn't the correct approach. Searching for help after this I see that Cauchy's Theorem is used but we haven't covered that in class so we can't use that. Is there a way that I can continue from here using only Cayley's Theorem? As for a bit of reference, the exact proof of Cayley's Theorem we went over is "Every group is isomorphic to a group of permutations"  After proving we were supposed to use it to show that a group of order $216$ cannot be simple. Assuming the theorem is true, I still don't know how this can be, seeing that $216 = 2*108$. $108$ is an even number so does the theorem we are supposed to prove even play a role in this case?  This has been bugging me all morning and I'm not getting any further along looking at it by myself. So any help would greatly be appreciated.


I know here exists a lot of topics with this header but I am new on android developing and tried many things but don't reach a solution.  I have a MainClass with a TextView. The MainClass calls a Method in a second Class ("Check"). The second Class should only create an intent with a string which i print out in textview of the mainClass. (Later it should be more complex but first I have to get that).  Here my Code of MainClass:      package com.projektarbeit;      import android.app.Activity;     import android.content.Intent;     import android.os.Bundle;     import android.widget.TextView;      public class MainActivity extends Activity {          public static TextView output = null;          @Override         protected void onCreate(Bundle savedInstanceState) {             super.onCreate(savedInstanceState);             setContentView(R.layout.activity_main);              //Variable initialisieren             output = (TextView) findViewById(R.id.output);             //App gestartet ausgeben             output.setText("App started");              Check check1 = new Check();             check1.doCheck();              Intent intent = getIntent();             String myString = intent.getStringExtra("Test");             output.setText(myString);         }     }   Here my Code of CheckClass:      package com.projektarbeit;      import android.app.Activity;     import android.content.Intent;     import android.os.Bundle;     import android.view.Menu;     import android.view.MenuItem;      public class Check extends Activity {          @Override         protected void onCreate(Bundle savedInstanceState) {             super.onCreate(savedInstanceState);             setContentView(R.layout.activity_check);         }          public void doCheck (){              Intent intent = new Intent(getApplicationContext(), MainActivity.class);             intent.putExtra("Test", "This is a test");             startActivity(intent);          }      }   Am I totally wrong or what is my mistake?


How can I trigger a notification when a job/process ends?

The place I work at has commands that take a long time to execute.   Is there a command/utility that I can use to notify me when the command execution is over? It could be a popup window or maybe a little sound.


How to correctly format hydrates with chemformula?

Chemformula has a quite convenient . command to put in adduct. However, if I were to put in something like \ch{UO2(NO3).6H2O} I get the 6 as a subscript. If I put in 2 spaces (\ch{UO2(NO3). 6 H2O}) I get a full height number, but there are spaces that should not be present. Is there a way to get a proper adduct (hydrate, "ate complex")?  MWE:  \documentclass{article}  \usepackage{chemmacros}     \chemsetup{formula=chemformula, %use chemformula instead of say, mhchem     }   \begin{document}  \ch{UO2(NO3).6H2O}  \ch{UO2(NO3). 6 H2O}  \end{document}


Using sObject.get() to fetch a field value from a related parent object

I have a contact in a generic sObject in apex and while I'm able to easily get detail field values using   sObject.get('MyContactField__c')  I'm not able to get fields off the related parent object, and I'm sure the related field is in memory, based on the debug logs. This returns a runtime error:  sObject.get('Account.MyAccountField__c')  with the error     Invalid field Account.MyAccountField__c' for Contact   How do I get a field value off of a parent on a generic sObject?


Using Client Side People Picker in SharePoint Page Not App

I have seen plenty of examples of how to use the Client Side People Picker in a SharePoint App, but can't find anything related to how to leverage it within a SharePoint Page on a SharePoint Site. I thought this AngularJS directive looked promising but it is asking for the App URL. Is it possible to leverage this with in a SharePoint Page (not App) or does anyone else have a recommendation?


Why is "He said me he was ..." ungrammatical, but "He told me he was ..." is not?

a.1) He said he was moving to New York.    a.2) *He said me he was moving   to New York.      b.1) *He told he was moving to New York.    b.2) He told me he was moving   to New York.   Why is a.2) wrong, but b.2) is right?   Can anybody explain what the difference between these verbs (say, tell) is, obviously with regard to the rule, if any, for which "me" has to be omitted in a.1) but not in b.2).


claims: $$\sum_{n=0}^m n x^n = \frac{(m x - m - 1) x^{m + 1} + x}{(1 - x)^2} \tag{1}$$ I know that one can differentiate the geometric series to compute $(1)$ when it is a series, i.e. $m=\infty$. However, I'm wondering how the closed form for the partial sum is obtained. Actually, WolframAlpha gives an explicit formula for $$\sum_{n=0}^m n(n-1)(n-2)\cdots (n-k)x^n \tag{2}$$ where $k$ is an integer between $0$ and $n-1$, so it seems that there are some differentiation involved. But already for $k=5$, the formula becomes .   My question: How to prove $(1)$ and how to build a similar formula for $(2)$ assuming $k$ is given?


Trying to sort on 2 field for wrapper list. First on dueDate then on timeAllocated. Im having trouble with the CompareTo

global class TimeSortWrapper implements comparable {     public TableData timeObject;      public TimeSortWrapper(TableData t) {         timeObject = t;     }      global Integer compareDate(Object compareTo) {         TimeSortWrapper compareToTime = (TimeSortWrapper)compareTo;          Integer returnValue = 0;         if (timeObject.dueDate > compareToTime.timeObject.dueDate){             returnValue = 1;          } else if (timeObject.dueDate < compareToTime.timeObject.dueDate) {             returnValue = -1;          }          return returnValue;     }      global Integer compareTimeAllocated(Object compareTo) {         TimeSortWrapper compareToTime = (TimeSortWrapper)compareTo;          Integer returnValue = 0;         if (timeObject.timeAllocated > compareToTime.timeObject.timeAllocated){             returnValue = 1;         } else if (timeObject.timeAllocated < compareToTime.timeObject.timeAllocated) {             returnValue = -1;         }         return returnValue;     }     /*     private Integer sortMatchingDueDates(TimeSortWrapper obj) {            if (this.timeObject.Project__r.Due_Date__c > obj.timeObject.Project__r.Due_Date__c) {                 return 1;             }              if (this.timeObject.Project__r.Due_Date__c == obj.timeObject.Project__r.Due_Date__c) {                 return 0;             }              return -1;         }*/      public Integer compareTo(Object obj) {             TimeSortWrapper timeObj = (TimeSortWrapper)obj;              if (timeObject.dueDate == obj.timeObject.dueDate) {                 return compareTimeAllocated(timeObj);             }              if (timeObject.timeAllocated == obj.timeObject.timeAllocated) {                 return 0;             }     } }


Let ${\rm f}:\left[a, b\right]\to\mathbb{R}$ be twice differentiable, and suppose   $$\lim_{x\to a^{+}} \frac{{\rm f}\left(x\right) - {\rm f}\left(a\right)}{x - a} = \lim_{x\to b^{-}}\frac{{\rm f}\left(x\right) - {\rm f}\left(b\right)}{x - b} =0 $$  Show that there exists $\xi \in \left(a, b\right)$ such that $\displaystyle{% \left\vert\vphantom{\Large A}\,{\rm f}''\left(\xi\right)\right\vert \geq \frac{4\left\vert\vphantom{\Large A}% \,{\rm f}\left(a\right) - {\rm f}\left(b\right)\right\vert} {\left(b - a\right)^{2}}}$.  I don't know how to start. Any hints ?.


Opening ArcGIS Desktop layer package (.lpk) file using QGIS on Mac?

I downloaded an LPK file from the ESRI site that contains USPS defined zip codes. Because I'm working with QGIS on a Mac, I converted the file to a .zip. There's a .lyr file that opened up in the zip, but I'm not able to open that up on QGIS.   Is there a way to convert the contents of an ESRI layer package file (.lpk) into a shapefile with the associated data, and that I can open with QGIS on a Mac?   I looked into using utilities like 7-zip, but it doesn't seem to work on a Mac.   Apparently one of the .xml files in the layer package should contain a link to the actual data under the packagelocation tag, but I wasn't able to find that tag in the .xml files.   Does anyone know if that tag name might have switched?   I downloaded the layer package file from .


If we pass a reference variable to method and modify the object's state, the modifications are permanent (Please correct me if I am wrong). Consider the code:   class CardBoard {     Short story = 200;     CardBoard go(CardBoard cb) {                        //....(1)     cb = null;     return cb;     }     public static void main(String[] args) {     CardBoard c1 = new CardBoard();     CardBoard c2 = new CardBoard();     CardBoard c3 = c1.go(c2);       //pass c2 into a method ....(2)     c1 = null;     // do Stuff     } }   When in the above code, we say cb=null and return cb, shouldn't c2 (and also c3) now have null reference? (PS: The original question asks for the objects that are eligible for gc after "//do stuff". The answer is given to be 2, but I am having problem in understanding it.)


Workspace stays fixed on external monitor, Ubuntu 14.04

My laptop is connected to two external monitors. When I switch workspaces, only the main monitor will switch, and the second monitor will stay fixed.  Since I want to switch between several task, each requiring the use of two monitors, this is really annoying.  I found another similar question here for Ubuntu 11.10. The answer provided was to execute the command:     gconftool-2 --set   /desktop/gnome/shell/windows/workspaces_only_on_primary false --type   bool   and re-login.  I managed to execute the command (no errors), but the problem continued even after a re-login.   Is this solvable on Ubuntu 14.04?


Given an Xml document, how would you populate a list of paths of attributes and elements

Given the following Xml:  <Student number='2020'>   <Subject>Comp</Subject>   <Credintials>     <Password>010101</Password>     <PasswordLength>6</PasswordLength>     <Contact>contact@example.com</Contact>   </Credintials>   <PersonalDetails age='30' height='2'/>   <Lecture age='30' height='2'>     <StudentName>Hakeem</StudentName>   </Lecture> </Student>   I would want to print out the following list:  Student.@number=2020 Student.Subject=Comp Student.Credintials.Password=010101 Student.Credintials.PasswordLength=6 Student.Credintials.Contact=contact@example.com Student.PersonalDetails.@age=30 Student.Lecture.@age=30 Student.PersonalDetails.@height=2 Student.Lecture.@height=2 Student.Lecture.StudentName=Hakeem   I am basically trying to get these paths for attributes and elements which have their values equal to the innerText, elements like StudentName, Password, Subject. atttributes like age, height etc  Thanks


Bash script to remove the oldest file from from a folder

I want to make a bash script to delete the older file form a folder. Every time when I run the script will be deleted only one file, the older one. Can you help me with this? Thanks


I have installed vlc from the software center. In its description, it says that it plays WMV files, but when i try to play one, it doesn't play it. The vlc window just opens for a fraction of a second and closes back. I have no problem with any other file, but wmv doesn't play. I tried delving for good helpful solution, but nothing worked out. Finally, this was the best place to get my problem solved. I uninstall and reinstalled vlc but it din't work any good.


How is the classical twin paradox resolved?

I read a lot about the classical twin paradox recently. What confuses me is that some authors claim that it can be resolved within , others say that you need . Now, what is true (and why)?


I have a player with a warlock character proficient in Deception.   Do the rules allows for this warlock to take the Beguiling Influence invocation and replace Deception with another skill they are not proficient in (in this case, Insight).   Or does the text on replacing skills or tools from multiple sources only apply to skills or tools to backgrounds?


We want to install Ubuntu on a , which had Windows 10 on it. We created a bootable USB, and followed the install instructions. It went well and at the end it asked us to restart. Since then it returns different errors and it does not even come up. We are not able to use the laptop any more. We do not have Windows anymore since we wiped it out during the installation.  Solution:  In the bootable USB, go to folder /boot/efi and rename the file grubx64.efi to mmx64.efi  Restart into the UEFI settings and change the controller to AHCI instead of Intel RST Premium  Updated the BIOS, install the latest update


How to name image files in multi language site?

I have one site with two languages: English and Spanish for example. What would be the proper convention to name image files?  From my point of view it would be stupid to duplicate image and then name it according to on which site it will be uploaded. It would be waste of resources IMO and unnecessary job to do.  What do you think about this one?


What does it mean speed of lens in analogue photography?

When reading some reviews on lenses in cons or pros are noted speed of lens. What does it means when we are talking about analogue cameras without autofocus?


Method for generating correlated non-normal data

I'm interested in finding out a method for generating correlated, non-normal data. So ideally some sort of distribution that takes in a covariance (or correlation) matrix as a parameter and generates data that approximates it. But here's the catch: the method I'm trying to find should have the flexibility to also control its multivariate skewness and / or kurtosis.   I'm familiar Fleishman's method and the use of the power method of normal variates, but I believe most of those extensions only allow the user for certain combinations of marginal skewness and kurtosis, leaving the multivariate skewness / kurtosis just out there. What I was wondering is if there is a method that helps specify the multivariate skewness and / or kurtosis, alongside with some correlation / covariance structure.   About a year ago I took a seminar on copula distributions and I remember the professor casually mentioning that through the use of vine copulas, one could generate data which is, say, symmetric in each one of its 1-D marginals but jointly skewed and vice-versa. Or, even further, that any lower-dimensional margins could have some skewness or kurtosis while keeping the highest dimensions symmetric (or not). I was marveled by the idea that such flexibility could exist I've been trying to find some sort of article or conference paper that describes said method but I have been unsuccessful :(. It doesn't have to be through the use of copulas, I'm open to anything that works.  Edit: I have added some R code to try to show what I mean. So far I am only well-acquainted with Mardia's definition of multivariate skewness and kurtosis. When I first approached my problem I naively thought that if I used a symmetric copula (Gaussian in this case) with skewed marginals (beta, in this example), univariate tests on the marginals would yield significance but Mardia's test for multivarite skewness/kurtosis would be non-significant. I tried that and it didn't come out as I had expected:  library(copula) library(psych) set.seed(101)  cop1 <- {mvdc(normalCopula(c(0.5), dim=2, dispstr="un"),              c("beta", "beta"),list(list(shape1=0.5, shape2=5),              list(shape1=0.5, shape2=5)))}              Q1 <- rmvdc(cop1, 1000)             x1 <- Q1[,1]             y1 <- Q1[,2]   cop2 <- {mvdc(normalCopula(c(0.5), dim=2, dispstr="un"),              c("norm", "norm"),list(list(mean=0, sd=1),              list(mean = 0, sd=1)))}              Q2 <- rmvdc(cop2, 1000)             x2 <- Q2[,1]             y2 <- Q2[,2]  mardia(Q1)    Call: mardia(x = Q1)  Mardia tests of multivariate skew and kurtosis Use describe(x) the to get univariate tests n.obs = 1000   num.vars =  2  b1p =  10.33   skew =  1720.98  with probability =  0 small sample skew =  1729.6  with probability =  0 b2p =  22.59   kurtosis =  57.68  with probability =  0  mardia(Q2) Call: mardia(x = Q2)  Mardia tests of multivariate skew and kurtosis Use describe(x) the to get univariate tests n.obs = 1000   num.vars =  2  b1p =  0.01   skew =  0.92  with probability =  0.92  small sample skew =  0.92  with probability =  0.92 b2p =  7.8   kurtosis =  -0.79  with probability =  0.43   Upon inspecting the contours for 'cop1' VS 'cop2' as well as the empirical bivariate density plots, I can also see that none of them look symmetric at all. That's when I realized this is probably a little more complicated than I thought.  I know that Mardia's is not the only definition of multivariate skewness/kurtosis, so I'm not limiting myself to finding a method that only satisfies Mardia's definitions.  thank you!


Forgot to add Sugar in cookie dough . Is there any way to add sugar?

While adding ingredients to mixture(for cookies), I forgot to put brown sugar..  Now that when i've baked cookies, what alternate can I add to retain their taste?


Question about the meaning of finite complement topology.

I want to eventually show that the "" is in fact a topology. But first I want to make sure I understand the definition. My book says:     Let X be an infinite set. Show that $\mathscr{T}_1=\{U \subseteq X : U = \emptyset $ or $ X\setminus U $ is finite $ \}$   note: It seems very paradoxical, to me, to say $U$ is $X \setminus U$. That is like saying "$U$ is not $U$". Then I found on wikipedia "a cofinite subset of a set X is a subset A whose complement in X is a finite set. In other words, A contains all but finitely many elements of X. "  So I want to be sure that I'm understanding what this means; writing a couple specific examples:  (1) If $X = \{1,2,3...\}$, then some examples of $U$ would be  (a){2,3,4...} because the complement is {1} (b){5,6,7...} because the complement is {1,2,3,4} (b){1,3,5,7}$\cup${9,10,11...} because the complement is {2,4,6,8}  Or  (2) If $X = (0,10)$, then some examples of $U$ would be  (a)(0,1)$\cup$(1,10) because the complement is {1} (b)(0,1)$\cup$(1,2)$\cup$(2,3)$\cup$(3,4)$\cup$(4,10) because the complement is {1,2,3,4}  Or  (3) If $X =  \mathbb{R} ^2$ , then some examples of $U$ would be (a) $U$ = points without integer coordinates OR any point with coordinates greater than 10, because the complement would be points with integers that are less than 10.   I know that none of those are complete list, but are those examples correct? Is it even possible to write a complete list of $U$'s for any given set?  Before I even begin this proof, I want to be sure I understand what is being asked.


This is an image of a 50 samples render of my scene. I know, low samples but no matter what samples I render it at the textures are always blurred.     This is my camera options.    And this is my render options. How do I un-blur these textures?


I found several entries about the fact that the ifthen package is . So my question is: how to define a condition check then? I have searched and I find several example for ifthenelse (contained in the ifthen) package OR the statement "ifthen package is obsolete".


JavaFx : Open Stage of another Class with TextField Input

Opening Stage of another Class is achievable on Button Click, how can I open stage of another based on TextField Input.  Example :     enterWordtxtfld.setOnAction(event ->{      eventDisplayCard edc = new eventDisplayCard();      if(enterWordtxtfld.getText() == "1") {     //class to open     edc.start(eventDisplayCard.classStage);      }     else if(enterWordtxtfld.getText() =="2") {          //class to open     edc.start(eventDisplayCard.classStage);       }     else if(enterWordtxtfld.getText() =="3") {     //class to open         edc.start(eventDisplayCard.classStage);     }       //clear field     enterWordtxtfld.clear();  });   I anticipate any suggestions


Is there a number whose absolute value is negative?

I've recently started to think about this, and I'm sure a couple of you out there have, too.  In Algebra, we learned that $|x|\geq0$, no matter what number you plug in for $x$. For example: $$|-5|=5\geq0$$  We also learned that $x^2\geq0$. For example: $$(-5)^2=25\geq0$$ The exception for the $x^2$ rule is imaginary numbers (which we learn later on in Algebra II). Imaginary numbers are unique, in that their square is a negative number. For example: $$4i^2=-4$$ These imaginary numbers can be used when finding the "missing" roots of a polynomial equation.  My question to you is this: Is there any number whose absolute value is negative, and how could it be used?


How to remove the watermark in the rendered image?

I used Blender cycles to render an image, but the output has a watermark with some words in the top left hand corner.   How can I make it disappear by changing the related setting?


using Regex to Identify specific strings

I have html table td data with   id="ctlHoursReport_rptrHoursReport_tdMon_29",  id="ctlHoursReport_rptrHoursReport_tdTue_29",  id="ctlHoursReport_rptrHoursReport_tdWed_29",   etc. through to Sun.  The number at the end is the row number of the table.  Each td represents a day of the week.  I'd like to remove the entire id including the day abbreviation. But I would like to keep the ids of the other tds in the row, eg. id="ctlHoursReport_rptrHoursReport_tdPayRate_29"   How can I put this into a single Regex.replace method?  [edit] This is what I put in so far.  It works, but is really clunky:  html = Regex.Replace(html, "id=\"ctlHoursReport_rptrHoursReport_tdMon[^\"]+\"|id=\"ctlHoursReport_rptrHoursReport_tdTue[^\"]+\"|id=\"ctlHoursReport_rptrHoursReport_tdWed[^\"]+\"" +                                     "|id=\"ctlHoursReport_rptrHoursReport_tdThu[^\"]+\"|id=\"ctlHoursReport_rptrHoursReport_tdFri[^\"]+\"|id=\"ctlHoursReport_rptrHoursReport_tdSat[^\"]+\"" +                                     "|id=\"ctlHoursReport_rptrHoursReport_tdSun[^\"]+\"", String.Empty, RegexOptions.IgnoreCase);   [2nd edit] The ids I want to remove - days of the week begin with M, T, W, T, F, S, S. The ones I don't want to touch - PayRate, Reg, OT, begin with different letters.  So I was able to reduce the statement to:  html = Regex.Replace(html, "id=\"ctlHoursReport_rptrHoursReport_td[MTWFS].+[0-9]\"", String.Empty, RegexOptions.IgnoreCase);   So, it's cleaner, but what I would like to say is something like:  html = Regex.Replace(html, "id=\"ctlHoursReport_td[Mon,Tue,...Sun]_[0-9]\""


How to initialize a struct in accordance with C programming language standards

I want to initialize a struct element, split in declaration and initialization. This is what I have:  typedef struct MY_TYPE {   bool flag;   short int value;   double stuff; } MY_TYPE;  void function(void) {   MY_TYPE a;   ...   a = { true, 15, 0.123 } }   Is this the way to declare and initialize a local variable of MY_TYPE in accordance with C programming language standards (C89, C90, C99, C11, etc.)? Or is there anything better or at least working?  Update I ended up having a static initialization element where I set every subelement according to my needs.


Practical limit on the number of btrfs snapshots?

I am considering using btrfs on my data drive so that I can use , or something like snapper, to take time based snapshots. I believe this will let me browse old versions of my data. This would be in addition to my current off site backup since a drive failure would wipe out the data and the snapshots.  From my understanding btrfs snapshots do not take up much space (meta data and the blocks that have changed, plus maybe some overhead), so space doesn't seem to be a constraint.  If I have a million snapshots (e.g., a snapshot every minute for two years) would that cause havoc, assuming I have enough disk space for the data, the changed data, and the meta data?   If there is a practical limit on the number of snapshots, does it depend on the number of files and/or size of files?


How do I restructure my current data into this specific format in a database?

I'm trying to extract product categories from a csv file. The categories are hierarchical, but in string form like this: Parent,Child,Grandchild.   Each row in the csv file is a product, and the categories are repeated for every product.  I'm working with PHP 7.2, MySQL 5.7 and Laravel 5.8.  I don't even know where to start. I'm usually good at hacking something together that works, and then continuing working on it until it's looking good. But this time I'm kind of stumped.     So, to summarize:  I would like to loop through strings like these:   Parent,Child Parent,Child,Grandchild Parent,Other Child,Other Grandchild Other Parent,Different Child,Different Grandchild   And get this organized into my MySQL database:  | id | parent_id | title                |  | 1  | null      | Parent               | | 2  | 1         | Child                | | 3  | 2         | Grandchild           | | 4  | 1         | Other Child          | | 5  | 4         | Other Grandchild     | | 6  | null      | Other Parent         | | 7  | 6         | Different Child      | | 8  | 7         | Different Grandchild |   Duplicates (by title) should just be merged, but not if they have a different parent.  Maybe there's some better way to organize it in the database to make this easier? I'm open to suggestions if you have any. Thanks in advance.


What is the meaning of "that" in "that excites me"?

I reach for my phone I don't know who to call. That excites me.      There ain't enough time or days in a week. That excites me.   Source:   Does it mean that not knowing who to call and not having enough time excites her?  Or does it mean that she doesnt know the person that excites her and there isn't enough time which excites her?


I'm utterly confused why PHP is behaving the way it is below.  Context: I'm using a third party payment gateway library. For some reason some of my payments are getting charged 1c less! Which is a huge problem for us. To make things even more odd, it only seems to be for some specific amounts  Looking at their code I was able to reproduce this in a simple php script.  <?php $val = 568.3 * 100; echo $val; echo "\n"; echo (float) ($val); echo "\n"; echo (int) ($val); echo "\n"; echo intval($val); echo "\n"; ?>   Expected output would be 56830 for all the echo's but instead, when its casting or using intval it prints out 56829 (1c less) and using no type cast or float works. The fix seems to be just not using int or intval conversions but am very curious why this is happening.  If you put in 56830 then it all prints fine. Reproduceable with 568.31 * 100 but not 568.32 * 100.  Can anyone help me understand whats happening?  EDIT: float / floatval / no casting returns the expected value.  The follow works, just when using 568.3 it loses 1 cent! $val = 5.3 * 100; $val = 56888.3 * 100;


Long ago in grade school we were taught the correct spelling WAS "Cancelled." When did they (spelling police?) decide it is "Canceled?" Personally drives me nuts. I dislike flying and try to avoid it. Being at a airport during heavy thunderstorms and seeing every board with flights that are "Canceled" trips my OCD. Spelling differences between US & UK, however, I find interesting.


Prove that $f$ is a non const continuous map then the image of an uncountable set under the map is uncountable.

Prove that $f$ is a non const continuous map from $\mathbb{R} \to \mathbb{R}$ then the image of an uncountable set under the map is uncountable.  Here's the proof I am talking about ,  There is a proof on stackexchange which uses the method of negation to prove the statement. Is there a general proof for this ,other than the method of negation? If yes then can someone give me some hints on how to do this.


How to control internet access for each program?

I would like to use a software to control which program may connect to the internet. I know that this behaviour is associated with the word "firewall", but some Linux users are very upset if somebody demands a Personal Firewall. I don't want to upset you by demand such a program. I don't want to "secure ports" or other stuff a Personal Firewall promises on Windows. I looked into iptables but it does not fit my requirements.  I saw an excellent answer here () but it's very uncomfortable to set this up.  Is there a software that asks for each program if it may access the internet?


Eclipse String cache is wrong, == does not work as expected

I have a simple application with a main method that compares two literal strings:  public class App {     public static void main (String[] args) {         String first = "a";         String second = "a";         System.out.println(first == second);     } }   When I run this program in Eclipse, I get false as result. But when I compile and run this program by the command line, I get true.  The result should be true for both. Why does Eclipse return false?  I have tested it using JDK 7 and 8.    Note that I am aware that comparison with == compares for identity.  The JLS requires "a" to come out of the internal String cache, for both variables.  String first = "a";  // Creates instance, stores in cache and returns String second = "a"; // Should return instance from cache   However, if I run this from Eclipse I get false for the comparison, so both instances seem to be different although the JLS requires them to be the same.  Therefore, see :     Moreover, a string literal always refers to the same instance of class String. This is because string literals - or, more generally, strings that are the values of constant expressions () - are "interned" so as to share unique instances, using the method String.intern.