Where am I going wrong with this do/while and for statements

So my program won't stop when the user inputs quit and also the variables keep adding up each time it's ran, when I only one them to count the characters in one run, then count the next input. So the program counts the specific characters in a string but I want it to count no matter what the first time and after the first time I want the user to have the option to say stop and end the program  public class Count {     public static void main (String[] args) {         String phrase;    // a string of characters         int blankCount;   // the number of blanks (spaces) in the phrase          int length;       // the length of the phrase         char ch;          // an individual character in the string          Scanner scanner = new Scanner(System.in);          System.out.println ();         System.out.println ("Character Counter");         System.out.println ();         System.out.print ("Enter a sentence or phrase: ");          blankCount = 0;         int aCount = 0;         int eCount = 0;         int sCount = 0;         int tCount = 0;         int timesRan = 0;             do {                 phrase = scanner.nextLine();             length = phrase.length();              for(int i=0; i<length; i++){                 switch(phrase.charAt(i)){                 case ' ':                     blankCount++;                     break;                 case 'a':                     aCount++;                     break;                 case 'A':                     aCount++;                     break;                 case 'e':                     eCount++;                     break;                 case 'E':                     eCount++;                     break;                 case 's':                     sCount++;                     break;                 case 'S':                     sCount++;                     break;                 case 't':                     tCount++;                     break;                 case 'T':                     tCount++;                     break;                 }                 timesRan++;                   }             System.out.println ("Number of space characters: " + blankCount);             System.out.println ("Number of a's: " + aCount);             System.out.println ("Number of e's: " + eCount);             System.out.println ("Number of s's: " + sCount);             System.out.println ("Number of t's: " + tCount);              System.out.print("Enter a phrase or enter quit, to quit: ");         } while(phrase != "quit" && timesRan >= 0);     }     }


Why would there be a binary incompatibility between packages for different Linux distributions?

The  project is an effort to create a binary compatibility between different Linux distributions. But why would this be necessary? The implication is that the source code for the package works on any distribution, but when compiled, it would no longer work on any except that for which it is compiled. I thought the Linux kernel was monolithic and did not change from distribution to distribution. Why would the binary hooks to the kernel be any different on one distribution than they are on another?


PHP issue passing results of variables from one function to another in same file but works on other pages

I am having an issue accessing my global variables inside the same file where the variables exist. However, they work just fine when I call the same variable in other files. To call the variable in another file I have used the required_once to call my file where the globals are located and then called each variable I need individually like  global $example_vairable. The issue is that when I use  global $example_vairable later on in the same file where I defined  global $example_vairable it does not work. Inside of another function on the same page I have called my variable  global $example_vairable and then just tested with either an echo or a var_dump. echo shows no display and var_dump provides a bool(false)  telling me I have an error but I have no idea where or why. This is in wordpress so I am using my functions file where my variables are located. Here is my code: THE FUNCTIONS FILE GLOBAL VAIRABLE function Total_Result(){     global $total_result, $resultx;       $resultxs = array($resultx);      $total_result =  count($resultxs[0]);     //return($total_result); } add_action( 'after_setup_theme', 'Total_Result' );  Then the function on the same file (functions.php) that I am trying to call the global from: add_action("wp_ajax_getvendorresponsestatus", "getvendorresponsestatus"); add_action("wp_ajax_nopriv_getvendorresponsestatus", "getvendorresponsestatus");  function getvendorresponsestatus() {     global $wpdb, $endResult,$total_result ;     if(isset($_POST['action']) == 'getvendorresponsestatus'){                      echo $total_result;         var_dump($total_result);             var_dump($endResult);             echo $endResult->posted_by;           }; }  I have also tried to pass the variable in the function itself but it too doesnt work. add_action("wp_ajax_getvendorresponsestatus", "getvendorresponsestatus"); add_action("wp_ajax_nopriv_getvendorresponsestatus", "getvendorresponsestatus");  function getvendorresponsestatus($endResult, $total_result) {     global $wpdb;     if(isset($_POST['action']) == 'getvendorresponsestatus'){                      echo $total_result;         var_dump($total_result);             var_dump($endResult);             echo $endResult->posted_by;           }; }


How can I test a python code in blender?

I want to run a code when I change the frame. I figured out that  may be useful but I don't know how to test it: import bpy   def my_handler(scene):     print("Frame Change", scene.frame_current)   bpy.app.handlers.frame_change_pre.append(my_handler)  I entered the codes in the Python Console but nothing happens when I change the frame:  How can I see the output of this basic code?


I have installed both OpenJDK 6 and 7. When I run "java somefile" from the command line, OpenJDK 6 is invoked. I do not want to change this default behavior. What command can I use to run my non-default OpenJDK 7 installation instead?  (I am used to running "python somefile" to invoke the default Python, "python2.7 somefile" to use Python 2.7 specifically and "python3 somefile" to use Python 3 specifically.)


Explaining Object Oriented Programming with an object declaration and instantiation

HashMap myMap = new HashMap<Character, Character>();  Map myMap = new HashMap<Character, Character>();   What is a more technical way to describe the difference between the two above lines of code, in terms of object oriented programming and polymorphism during an interview?  A non technical way seems like it would be:  The left side of the equals sign is how we "talk" to the object, the right said is what the object actually is.  The left side could be an interface, but the right has to be an instantiable class since we can't instantiate an interface.


I am new to complex numbers and wondered, what is $i^{(1/2)}$ and how do I actually create a complex number, so that $i$ has a different power than $1$ in tuple form, like $(a, b) = a + b*i^2$? Is it just $(a, bi)$?


Newly added button doesn't activate onclick function

So I have two different buttons:  <input type='button' class='EditData btn btn-warning' value='Edit' name="{{id}}">  <input type='button' class='AddNew btn btn-success' value='Add Allocation' id="{{id}}">  This is my JQuery  $(function () {     $('.AddNew').click(function(){         console.log(this.name);     });     $('.EditData').click(function() {          var y = document.getElementById("location_"+this.name);          y.innerHTML = '<input type="button" class="AddNew btn btn-success" value="Add Allocation" id="'+this.name+'">'     }); });   AddNew just prints something to the console. EditData replaces the EditData button with an AddNew Button.   AddNew works successfully.  EditData successfully replaces itself with an AddNew button, however this button doesn't not work as intended and doesn't print anything on console when clicked.


I have problem with Adobe Flash Player. While using Opera, few of pages show me that I don't have flash installed. When I run this command in terminal:    sudo apt-get install flashplugin-installer,    I get information that it's already installed. So I try to use this page  to install flash. When I want to install version for Ubuntu, I get internal error in /usr/bin/apturl-gtk with message:    apturl-gtk crashed with AttributeError in doEnableChannel(): module 'apt_pkg' has no attribute 'Config'    I also tried to install it manually in Opera Web Browser using this tutorial  but this method also failed. Any help?


So I opened blender and to my supprise certain windows are missing as seen bellow   I want the default editors that come with new blender files. How would one go about adding them back in, I need it arranged like when you open a new blender file like this?


Initializing a HashMap isn't working Java

I'm unit testing a method that uses a Date and everyway I initialize it seems to cause a NPE when I pass it.  The HashMap is initialized and I can see the value when I debug to know there is a date but at my put statement the Date just seems to through the exception.  EDIT  Map<Double, Date> actualTimes = new HashMap<>(); Date date = new Date();  testMethod() {       clearProductMaps();     calendar.set(Calendar.MONTH, Calendar.JULY);     calendar.set(Calendar.DAY_OF_MONTH, 21);     calendar.set(Calendar.YEAR, 2016);     date = calendar.getTime();      try {         date = sdf.parse("2016-10-15");     } catch(ParseException ex) {         System.out.println("ParseException " + ex);     }      System.out.println("Debug:" + " " + sdf.format(date).toString());     if(date != null) {        actualTimes.put(1.50, date);     }     //assertTest call }   I don't need the date formatted to be apart of the map and I have gotten strange responses with my null conditional check so I'm not what I'm doing wrong.


jq: parse json file with constraint from other field

Extend of this question:  Above link's output also include the "name" of folder type, need to exclude these "type":             "date_added": "13170994909893393",            "date_modified": "13184204204228233",            "id": "2098",            "name": "ElasticSearch",            "sync_transaction_version": "1",            "type": "folder"   How to get only field if "type" of the same object is "url", otherwise ignore:  A valid pattern that will be put in the output:             "type": "url",            "url": "https://url_here"


I need place a visualforce page as tab in lightning experience. I created a visualforce tab and added it to salesforce1 navigation but it is not showing up.. I need to place a tab on the below place to open a VF page..


What are these things that look like vaporators?

At the very start of Rogue One, we see several objects that look like this:    This looks very similar to a moisture vaporator from A New Hope:    Moreover, we learn that these objects are used for farming. However, it seems unlikely that the ones in Rogue One are used for moisture farming, since: (the following spoiler is extremely minor)      it rains a short time after we first see them - and the presence of mosses and very green grassland suggest that this is not a rare event in this climate. It's also worth noting that we don't see any evidence of crops or livestock, just green ungrazed grassland and bare rock.   Given this, my question is, what are these objects and what are they used for on this world? What does this farm produce?


How to add help text next to CommandButton in Visualforce page?

How can I have textHelp next to the Find button as shown below.   here is my Visualforce page source:

           Search:	           <apex:inputText style="width:100%" value="{!SearchText}" />	                        &nbsp;             <apex:actionStatus id="SearchIcon">               <apex:facet name="start">                 <apex:outputPanel >                   <apex:commandButton style="float: left;" disabled="true" value="Find" />                                    </apex:outputPanel>               </apex:facet>               <apex:facet name="stop">                 <apex:outputPanel >                   <apex:commandButton action="{!Find}" value="Find" rerender="BoxPanel" status="SearchIcon" />                 </apex:outputPanel>               </apex:facet>             </apex:actionStatus>


I am a frequent reviewer, mostly in suggested edits, and something I notice a lot is people submitting the same kinds of stupid and incorrect suggested edits over and over, most of the time being rejected, but occasionally being accepted by lazy-reviewers. There is generally loads of unnecessary suggested edits in the queue (although not as many as there are in the close votes-queue), and people never quite seem to learn.  A way to prevent more of these edits could be to put users submitting three rejected edits on a cooldown for a day or more, presenting it with a page/guide for how to correctly edit posts.  I'm adding this as a , let me know if you think this is a good idea or not, or what could improve it. Thanks.


Can a wizard use more than one wand at the same time?   Kind of like 2-gun shooting gunfighters in the Old West?


Dimensionality reduction using self-organizing map

Self-organizing maps are claimed to be an approach for dimensionality reduction. However, I am kind of confused about this claim.  Consider the following example, I have a data set with 200 data points and each data point is represented by a feature vector with 1000 dimensions. Assume I would like to train a map with a $1 \times 2$ grid. In other words, I will map these 200 points to two cells. Just for illustration purposes, suppose the first 100 points are mapped onto the first cell and the latter 100 points are mapped onto the second cell.  From the viewpoint of dimensionality reduction, we can say we use a 1-dimensional output space to represent the original 1000-dimensional space. But this really confuses me a lot. According to this example,  it looks to me that the first 100 points will share the same feature vector, which is just 1 in the one-dimensional space; and the latter 100 points will share the same feature vector, which is 2 in the same one-dimensional space. Is my understanding correct?


How can I Get a list of all files modified , say 3 months ago. I checked  question but I was not able to apply it to my scenario. I am trying this now , it seems to be working , but I know there should be a better way using find.  ls -ltR | grep -v '2011-05' | grep -v '2011-06' | grep -v '2011-07' | grep -v '2011-08


Accidentally used dd on my main OSX drive

I've made a bit of a balls up...  When attempting to create a bootable Ubuntu usb drive I accidentally ran dd on my main system drive :(  sudo dd if=/path/to/image.img of=/dev/rdisk1 bs=1m   I realised what I'd done pretty quickly but everything seemed fine so I re-ran the command on the correct drive /dev/disk2 and thought "phew not sure how I got away with that"... Then things started going wrong... I could continue using the applications I had open but opening anything new / accessing the hdd caused that thing to lock.  Sadly I haven't been using time machine, lesson learnt!   I spoke to AppleCare who said I need to reformat the machine but I'm really hoping there's some way to restore whatever 1m I destroyed (I'm assuming something to do with the partition information). Wishful thinking?  Also, AppleCare told me to restart, which means I can only user repair mode utils.  Help!


I develop an application with Laravel 5 and use sqlite during development. I want to switch to something faster later on. I'd like to have a string as unique identifier for the users-table. Is this a problem in any way? For example with foreign keys? Or is there no difference to auto-increment integers?


What does increased caster level affect?

A  adds +1 caster level, what does this affect?   Damage from spells? (Like fireball) Duration and area of effect? "Amount" of effect (Like number of missiles from magic missile) Spells known by a wizard (ie +1 caster level mean a level 2 wizard gets the spells as if they were level 3?) Anything else?


I've been writing some simple machine learning algorithms and looking at time-series data. In doing so, I have come across the use of feature scaling: rescaling and standardizing as they are referred to on .   For something like k-Nearest Neighbors, I imagine rescaling to be the best scaling to use so there's a completely level playing field between variables' influence. Is that true?   When would you apply standardizing to data instead? What are the advantage of standardizing and rescaling?


Java Servlet/JSP: Checking whether role is NULL or admin in Database

I have created the following function which is supposed to check whether the "role" column in my Database contains admin or is Null (which means it's a regular user). I try to test it in my Servlet class as shown in the code below but it redirects me to the USER JSP page every time. Is there any error in my checkRole() method? Thank you in advance.  checkRole() method  public static boolean checkRole() {      boolean find = false;     PreparedStatement pst = null;       ResultSet rs = null;       try(Connection conn= ConnectionConfiguration.getConnection()){         pst = conn.prepareStatement("SELECT * FROM users WHERE role=?;");           pst.setString(1, role);           rs = pst.executeQuery();         while (rs.next()) {        if (rs.getString("role").equals("admin") {            find = true;             } else {find = false;}         }     } catch (SQLException e) {         e.printStackTrace();     }     return find;   }   SERVLET code          {                  String pass1 = request.getParameter("password");                 String email = request.getParameter("email");              //checks whether user credentials are right and if it is admin                 if(User.validate(email,pass1) && User.checkRole()){                      request.setAttribute("email",request.getParameter("email"));                     request.setAttribute("pass", request.getParameter("password"));                     s.invalidate();                     forwardTo(ctx, request, response, "/Admin.jsp");                 }       //checks whether user credentials are right and if it is a regular user                 else if (User.validate(email, pass1) && !User.checkRole()) {                          request.setAttribute("email",request.getParameter("email"));                         request.setAttribute("pass", request.getParameter("password"));                         s.invalidate();                         forwardTo(ctx, request, response, "/RegularUser.jsp");                     }                  else {                      //show some error message                  }             }


How can I prove this question about unbounded?

Let $K= \{x: Ax\leq b, x\geq0\}, b\geq 0$. Show that if there is a nonzero solution $x\geq 0$  of $Ax\leq 0$, then $K$ is unbounded. ($A$ is $m \times n$, $x$ is $n \times 1$ matrix, $b$ is $m \times 1$ matrix)?


NullPointerException in android while fetching data from SQLite database?

I'm trying to fetch the data from SQLite database in the form of String array.  In my Activity:  public class CreateTagActivity extends Activity  {      ListView tagList;     DBFunctions db;     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_create_tag);          tagList=(ListView)findViewById(R.id.list_of_tags);         db=new DBFunctions(CreateTagActivity.this);          String[] tagsLists=db.getAllTag();          ArrayAdapter adapter=new ArrayAdapter(CreateTagActivity.this,android.R.layout.simple_list_item_1,tagsLists);         tagList.setAdapter(adapter); } }   In my Database File :  public class DBFunctions extends SQLiteOpenHelper { private static final String DATABASE_NAME="maindb"; private static final int VERSION=1; private static final String event_tags="CREATE TABLE "+TABLE_TAGS+"(_id INTEGER PRIMARY KEY AUTOINCREMENT,tag TEXT)";  private final Context context;  public DBFunctions(Context context) {     super(context, DATABASE_NAME, null, VERSION);     this.context=context; }  @Override public void onCreate(SQLiteDatabase db) {      db.execSQL(event_tags); }  @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {      db.execSQL("DROP TABLE IF EXISTS "+event_tags);     onCreate(db); }  public long insertTag(String tag) {     SQLiteDatabase db=this.getWritableDatabase();     ContentValues values=new ContentValues();     values.put("tag",tag);     long id=db.insert(TABLE_TAGS,null,values);     return id; } public String[] getAllTag() {     SQLiteDatabase db=this.getWritableDatabase();     String[] columns={"tag"};     Cursor cursor=db.query(TABLE_TAGS,columns,null,null,null,null,null);     int length=cursor.getCount();     String[] value=new String[length];     while(cursor.moveToNext())     {         int i=0;         int index=cursor.getColumnIndex("tag");         value[i]=cursor.getString(index);         i++;     }     return value; } }   then i got an error as NullPointerException in tagsList.  here is the Error log:  09-17 11:17:03.695    3084-3084/? E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: pack.proj PID: 3084 java.lang.NullPointerException         at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:394)         at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362)         at android.widget.AbsListView.obtainView(AbsListView.java:2255)         at android.widget.ListView.measureHeightOfChildren(ListView.java:1263)         at android.widget.ListView.onMeasure(ListView.java:1175)         at android.view.View.measure(View.java:16540)   Please help me on this. Thanks.


prove that $f(x)=\log(1+x^2)$ is Uniform continuous with $\epsilon ,\delta$ ...

I have to prove that $f(x)=\log(1+x^2)$ is Uniform continuous in $[0,\infty)$ (with $\epsilon ,\delta$ formulas...)  I wrote the definition: (what I have to prove):  $\forall \epsilon>0 \quad \exists \delta>0 \quad s.t. \quad \forall x,y\in [0,\infty) : \quad |x-y|<\delta \quad \Rightarrow \quad |f(x)-f(y)|<\epsilon $  So I tried developing $|f(x)-f(y)| = |\log(1+x^2)-\log(1+y^2)| = |\log(\frac{1+x^2}{1+y^2})| $...   now this is where I try to make it bigger and simplify the expression so i can choose the right $\delta$ which depends on the $\epsilon$, and then say that if the simplified bigger expression is still smaller than $\epsilon$ then of course the original $|f(x)-f(y)|$ is smaller than $\epsilon$      but what can I do with this expression? any algebraic tricks?


Compare referrer domains over time in Google Analytics without an "all traffic" line?

I would like to look at my referral traffic over time on a per domain-basis in Google Analytics. This is what I have done:   Set New visits as advanced segment  Navigated to traffic-sources -> Referrals Checked a coulple of domains Clicked plot rows   The individual domains now show up in the graph, but the problem is that "all traffic" is also visible. All traffic is much bigger than the graphs for individual domains. This makes it very hard to see any changes as they look all values are Zero.  Is there any way to hide "Visists" from the graph in order to zoom in on the vertical axis?


Best way to create an system of equations environment?

I am trying to write a few systems of equations, and I want the terms to be nicely spaced as below  2x  +   y  +  3z  =  10   \\   x  +   y  +   z  =   6   \\  x  +  3y  +  2z  =  13    Now, using some very ugly code, I was able to produce the results above.  \documentclass[10pt,a4paper]{article} \usepackage{mathtools} \usepackage{amsmath}  \begin{document}  \begin{align*} \begin{bmatrix} \begin{tabular}{r c r c r c r } $2x$ & $+$ & $ y$ & $+$ & $3z$ & $=$ & $10$ \\ $ x$ & $+$ & $ y$ & $+$ & $ z$ & $=$ & $ 6$ \\ $ x$ & $+$ & $3y$ & $+$ & $2z$ & $=$ & $13$ \end{tabular} \end{bmatrix} \end{align*}  \section{Another system of equations, now without the brackets}  \begin{table}[!htpb] \centering \begin{tabular}{r c r c r c r } $2x$ & $+$ & $ y$ & $+$ & $3z$ & $=$ & $10$ \\ $ x$ & $+$ & $ y$ & $+$ & $ z$ & $=$ & $ 6$ \\ $ x$ & $+$ & $3y$ & $+$ & $2z$ & $=$ & $13$ \end{tabular} \end{table}  \end{document}       I would very much want a more automatic way to do this, and a simple method for controlling the spacing between elements. I have looked at earlier posts like     It seems that I am looking for a simple version of this one. I have no need to use side-by-side equations, nor have numbers in front of them.  Using ideas from the post above, I guess the result is done by redefining commands such as - and + inside of the table? I tried to do something like this, but the code looked rather complex =(  To sum it up: Is there a way to define a simple System of Equations enviroment, with proper alignment and a optional command for defining the spacing?


What are the spawn rates for any given spawn point?

For any given Pokemon spawn point, after a Pokemon is caught there or despawned, how long does it take for another Pokemon to respawn at that point?


oracle 11g sql compare larger number of values

I am writing the java program in which I need to compare the large number of List<String> ids to see are these ids are exist in the database ? I know it can be done with big select query select id from my_table where id in ('1','2''3''4''5'...) which leads very big sql query.  is there any other way of doing this in Oracle 11g ?  Thanks


Friendly agreement for the betterment of user involvement in interest intersecting sites (for AI related sites)

This question is mainly intended for the sites related to artificial intelligence only. This is not intended for getting a feature on all sites. The area I am discussing is restricted to . Any site that has significant intersection with the artificial intelligence can be considered for this question. There are several sites in our . Among them, some has intersecting interests. For this question, the significant interest intersecting sites to  are as follows     Some sites has good amount of expert users, while some other sites has good amount of beginners.  Some questions are on-topic on several sites, if the question falls in to the intersection part. Some questions are on-topic on one site and the same are off-topic on other sites, but related. With this context, I want to propose/discuss the idea of streaming important questions of a site in its interest intersecting sites. The importance of question may be decided based on activeness or some other property of the question. This can be done by either integrating news feed or by a column on the right side of the main site that can be similar as Hot Network Questions i.e., Hot Related (network) Questions. I like the latter better than the former since most of the active users stares at the main page of the site than in chat rooms. It will be highly useful for users on other sites to identify the existence and also to participate in the overlapping sites. It is also helpful for the progress of the related sites. Some sites need attention of experts from other related sites, so that the expert users can contribute to both the sites. This applies to beginners  or intermediates also for asking questions. If we view our contribution is to a single Stack Exchange network and our intention is to contribute to public, I am feeling that this proposal is appreciable and implementable. You can read  for more details.


Prime factorization of $x + 1$ given prime decomposition of $x$

Suppose you had the prime factorization of $x = \prod_{k=1}^m p_k$. Are there any algorithms for deciding the prime factorization of $x + 1$? Are their prime factorizations related in any way at all?  EDIT: It's known that $x$ and $x + 1$ are coprime. That means that you get some amount of information about the prime factors of $x + 1$. Can the information about prime factors of $x$ be used to figure out the prime factors of $x + 1$ faster than just "prime sieve" + "filter out the factors of $x$"?


Can PhD be written as PH.D in a name card?

I came across a name card from an academic staff, with title after the name written as PH.D    Is this proper?  WW


Give an example of a continuous function $f:R\rightarrow R$ which attains each of its values exactly three times.    Ed.: answered by the duplicate above   Does there exist a continuous function $f:R\rightarrow R$ which attains each of its values exactly two times?   Ed.: answered by


Can the group recommend a good introduction text/resource to applied resampling techniques? Specifically, I am interested in alternatives to classical parametric tests (e.g. t tests, ANOVA, ANCOVA) for comparing groups when assumptions such as normality are clearly violated.   An example problem type I would like to educate myself as to a better way to solve may involve something such as:  I) 2 Groups: Treatment and Control    Dependent Var: Change in account balance dollars after intervention  Covariate: Pre intervention account balance dollars.  Issue with applying ANCOVA: Many subjects will not have any change (many zeros).   II) 2 Groups: Treatment and Control  Dependent Var: new accounts added  Covariate: Pre intervention number of accounts.  *Many subjects will not have any added account (many zeros).   Can I use a bootstrap? A permutation test? This is the type of analysis I would like to apply nonparametric resampling methods to.


Adjectives After an Object That Comes After Transitive Verb

I'm very aware of how verbs, indirect objects, and direct objects relate.   I gave Sam a ball.  Sam - indirect object and ball - direct object. Very simple! But what about when an adjective comes after a direct object?  I find her utterly repulsive!  What role does repulsive play in this sentence? Could this be one of those uncommon instances in which the adjective comes after the (pro)noun?


Troubleshooting ERROR 000989 Python syntax error from ArcGIS Field Calculator?

I'm trying to used the Python syntax in ArcGIS 10's field calculator and am thoroughly confused. So far the most basic calculations are failing me, and I don't understand why. I'm trying to create a function to just set the values of all cells in a column to be a multiple of the argument that I pass in ( I wanted to try something simple to test it out, as anything more complicated I tried also failed).   However, the error messages are telling me that my syntax is incorrect:    but I can't understand what is incorrect.     As an aside, I'm also horrified at how hard it is to write readable python in the field calculator box as there is no syntax highlighting, or clear indentation. It would be quicker, and easier to write an external Python script to do this calculation, but I want to try to figure out how this new function worked within the program.


Why doesn't the Continuum Hypothesis show that $\text{ZFC}$ is simply consistent?

Where is my error? A system is simply inconsistent is every formula is provable (if $\text{A} \wedge\neg \text{A}$ were provable for some formula $\text{A}$, then by $\neg$-introduction, any formula can be proven).  Taking the contraposition, we get that if there exist some formula that is unprovable, the system is simply consistent. Since the Continuum Hypothesis is undecidable and thus unprovable in $\text{ZFC}$, shouldn't that mean that $\text{ZFC}$ is simply consistent?  This also shows the other direction of Gödel's first theorem: if the system is incomplete, then it is consistent. I know all of this can't be right because I haven't read any of this and it can't be that easy, so I must be missing something.


I have a dozen of included \usepackages and I'd like to collapse them using curly brackets { } in TeXstudio, but I'm getting error when I do that.                          ↓    Do you know either how to avoid errors, or another method to collaps a chunk of \usepackages in my preambule?


Ubuntu 19.04 apt update fails Update from such a repository securely

E: The repository 'http://archive.ubuntu.com/ubuntu disco Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://archive.ubuntu.com/ubuntu disco-updates Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://archive.ubuntu.com/ubuntu disco-security Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   sources.list  deb http://archive.ubuntu.com/ubuntu disco main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu disco-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu disco-security main restricted universe multiverse


I want to root my samsung galaxy note2 n7100. I saw lots of tutorials on internet. But no tutorial give me a 100% guarantee. :( can anyone help me to root my mobile?


I am trying to validate the input for E-Mail via JQuery:  My JQuery  <script> /* <![CDATA[ */   jQuery(function(){    $( ".mail" ).keyup(function() {    var VAL = $(this).val();    var email = new RegExp(^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$);     if(VAL.test(email)){    alert('Great, you entered an E-Mail-address');    }    });   });   /* ]]> */   </script>   This won't alert even though I entered example@example.com. I already tried .test() and .match(), what did I do wrong?


How widespread is the practice of delegating LoR writing to the applicant?

At least two questions (, ) on this site indicate that in more than a few isolated cases at least, letters of recommendation are in fact written by the applicant and only signed off (or perhaps rephrased somewhat) by the recommender, who would actually be responsible for writing the letter.  Is there any evidence about the prevalence of this practice that goes beyond anecdotes? I realize that cross-country (cultural) difference may play a role.


Restore all applicable files in a backup device in T-SQL

I'm using SQL Server (2008 R2 in this case) and I am backing up my databases into backup devices (one per database). Every Sunday the device is overwritten with a new full backup, every night a differential backup is added and every hour a transaction log backup is added to the backup device.  When restoring this onto a new server using SSMS I first create a new database, then add the backup device and then restore from that backup device. I then have to manually select the applicable files:   The Full backup (always the first one in the list) The latest differential backup All transaction log backups that came after the last differential backup.     This works fine for the occassional restore, but I need to automate this in T-SQL.   There is some logic on which files to pick, but I don't even know how to get to the content of the backup device yet.  I would like to have a stored procedure that takes the name of the database and the backup device and restores the latest version. Anybody knows of such a thing?  Or do I miss something here and there is a simple command for this?


Tikz: Curved parallel arrow around a circle

I have a simple following code:   \begin{tikzpicture} \draw[thick] (2,0) circle (1.5cm); \end{tikzpicture}`   I would like to create a curved parallel naming arrow around this circle as shown in the image.    Please help


How can I control which tabs are available to be opened in the MS Word 2010 ribbon?  Under Word Options > Customize Ribbon > Main Tabs there are several groups checked (Blog Post, Insert (Blog Post), Outlining, Background Removal), but they don't appear on the ribbon even though there is space for them. How is one supposed to turn them on or get to them?  The one in particular I'm after today is the Blog Post tab, which I know I can get to in a round about way via File > New > Blog Post Template. However I don't want a new post, rather an old one, which means File > New > Blog Post Template > Open existing > [select from list] > [close new blog post window] > [slap No I don't to save darn it]. Extra work for nothing is irritating; how do I get Blog Post (or Outlining or ...) to show up in that nice empty space next to AddIns?


How can I fix this annoying "broken depenencies" error?

An error keeps popping up my ubuntu distribution. I am on 14.04 LTS, and this error pops up when I use Synaptic Package Manager and I click "Fix Broken Packages" so the error stops:  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 13B00F1FD2C19886  W: Failed to fetch http://repository.spotify.com/dists/stable/InRelease    W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/openshot.developers/ppa/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found  W: Some index files failed to download. They have been ignored, or old ones used instead.   How do I fix this?


User reputation league site switcher doesn't show the selected site name

In the , if I select any site in the site switcher it will be set as Stack Overflow or some random site in the drop down list's selected site name.  For the Stack Overflow, Super User, Server Fault and Meta Stack Exchange, the site switcher is set to the selected site name, but the remaining do not retain the selected site name. For English Language and Usage, it changes to Physical Fitness for some reason. All the others I've tried  switch to Stack Overflow.  It can be replicated in Chrome and Firefox.  GIF for the same:


How do I align my partition table properly?

I am in the process of building my first RAID5 array. I've used mdadm to create the following set up:  root@bondigas:~# mdadm --detail /dev/md1 /dev/md1:         Version : 00.90   Creation Time : Wed Oct 20 20:00:41 2010      Raid Level : raid5      Array Size : 5860543488 (5589.05 GiB 6001.20 GB)   Used Dev Size : 1953514496 (1863.02 GiB 2000.40 GB)    Raid Devices : 4   Total Devices : 4 Preferred Minor : 1     Persistence : Superblock is persistent      Update Time : Wed Oct 20 20:13:48 2010           State : clean, degraded, recovering  Active Devices : 3 Working Devices : 4  Failed Devices : 0   Spare Devices : 1           Layout : left-symmetric      Chunk Size : 64K   Rebuild Status : 1% complete             UUID : f6dc829e:aa29b476:edd1ef19:85032322 (local to host bondigas)          Events : 0.12      Number   Major   Minor   RaidDevice State        0       8       16        0      active sync   /dev/sdb        1       8       32        1      active sync   /dev/sdc        2       8       48        2      active sync   /dev/sdd        4       8       64        3      spare rebuilding   /dev/sde   While that's going I decided to format the beast with the following command:  root@bondigas:~# mkfs.ext4 /dev/md1p1  mke2fs 1.41.11 (14-Mar-2010) /dev/md1p1 alignment is offset by 63488 bytes. This may result in very poor performance, (re)-partitioning suggested. Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=16 blocks, Stripe width=48 blocks 97853440 inodes, 391394047 blocks 19569702 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 11945 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks:          32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,          4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,          102400000, 214990848  Writing inode tables: ^C 27/11945 root@bondigas:~# ^C   I am unsure what to do about "/dev/md1p1 alignment is offset by 63488 bytes." and how to properly partition the disks to match so I can format it properly.


$X=(-\infty,0]\cup\left\{{1\over n}:n\in\mathbb N\right\}$ with subspace topology Then

$X=(-\infty,0]\cup\left\{{1\over n}:n\in\mathbb N\right\}$ with subspace topology. Then   $0$ is an isolated point $(-2,0]$ is an open set $0$ is a limit point of the subset $\left\{{1\over n}:n\in\mathbb N\right\}$ $(-2,0)$ is open set.   $0$ is not an isolated point of $X$ as every nbd of $0$ contains a point of the form $1\over n$ so  $3$ is true and $1$ is false, $2$ is false as $0$ is not interior point, $4$ is true as every point is interior point. Am i right?


After iterating through a list in Python, print out remainder


Is it possible to get Views data in the views-view.html.twig file?

I see this template just uses  {{ rows }}   Is it possible to get values from the views fields in this file?


What's the point below which electrical current is generally considered safe for "casual" human contact?  Is either voltage or amperage more "dangerous" (e.g. high voltage / low amperage vs. low voltage / high amperage), or is the only consideration the total current?


How do I hide all windows in Ubuntu 18.04 by one click?

Just updated my Ubuntu to 18.04, but I couldn't find how to hide all windows with one click by the icon. In 16.04 it was something like "show Desktop" icon on the Ubuntu dock (left sidebar).


How far from the LIGO event would we have to be to hear it?

I imagine that at some optimum distance the gravitational waves would create compression and rarefaction waves in air sufficiently loud to be heard by the human ear. What is that distance? The previous reference given came up with a change in length of 1% at 2000 miles distance. That IMHO would be a planet wrecker. I am looking for a distance where the sound could just be heard.


Close command prompt after executing batch file

I have this in a .bat file (windows 7):  taskkill /F /IM CouchPotato.exe TIMEOUT /T 5 CouchPotato.exe exit   (The couchpotato tends to crash alot.)  The command prompt stays open until the process ends.  Is there a way to close it after the process has excecuted?  I tried /silent after the .bat shortcut, but doesn't work..


How to count post meta key values for all posts in database

In my post meta data I have the following 'key' for every post: "image_details" a typical value of which is an array such as:  a:3:{s:23:"info_window_bg_image_id";s:3:"128";s:12:"colour_start";s:7:"#000000";s:10:"colour_end";s:7:"#b7b7b7";}   In the above example - info_window_bg_image_id is equal to 128  Ideally I would like to find out how many posts have the image_details['info_window_bg_image_id'] set to 128 but I would settle to find out if any of the posts have that value set.  The only way that I can think to do it (with my limited knowledge) is something along the lines of:   Retrieve an array of every post in the database Foreach through the array using the ID's Use get_post_meta(ID, Key) to get the "image_details" key Check the value of the 'info_window_bg_image_id' element of the result to see if it matches the value.    This seems like it would be a heavy load because I would have to do this multiple times to check for other values.  Is there an easier way of doing this? Perhaps with a direct SQL query via the WP_Query class?  Just to reiterate my ideal would be to get a result that lets me know there are:   6 posts have post_meta image_details 'info_window_bg_image_id' set to 128 10 posts have post_meta image_details 'info_window_bg_image_id' set to 127 0 posts have post_meta image_details 'info_window_bg_image_id' set to 126   etc etc  But I would also be happy with a result that just says:  128 is used, 127 is used, 126 isn't used etc


Windows 1803, 7z 18.05  Trying to archive and compress a folder structure with multiple NTFS junctions referencing parts of the said structure (i.e. no "outside" links) - any possibility to compress the structure without 7zip resolving the junctions, resulting in duplicates?   Preserving the junctions would be neat, archiving the junctions as empty folders would also be acceptable - but archive size has absolute priority.  Choosing tar or wim as format has options about NTFS symlinks, but doesn't seem to involve compression (only store is presented as compression level) - I'd have to compress afterwards, which seems an unnecessary intermediate step.  I could delete the junctions before archiving, but I'd rather not to, if possible.


Top bar scrunched/smooshed Ubuntu 20.04 (GNOME)

I run Ubuntu 20.04 LTS with the GNOME desktop. Within the last few days the top bar was suddenly smooshed (see image below). I am not sure how it happened and it occurs on all monitors. How do I fix it?  Notes:  I have an NVIDIA GPU This is not an issue anywhere else on the desktop, just the top bar


Selected position of combobox on reputation league page is broken

Changing the selected item in the dropdown combobox on the  works wrong for many sites:        It seems that numbers of sites (communities) are changed  and not synced on the page.


How to enable thumbnail view on file dialog boxes?

I find it very inconvenient when I need to upload a file from a folder with A LOT of pictures and I need to inspect each file to find the image I'm looking for.   How do I make file dialog boxes view thumbnails like the way your file manager does?  Basically, from this:    To this:    I hear it's impossible. Is it true?


Already translated strings have lost their translations

Recently I noticed that some strings in Transifex have lost their translations. E.g. :   You've earned the "$badgeName$" badge ($badgeDescription$) for "$postTitle$".    I know that same string was already translated and used on ruSO for the long time. Now translation is lost, but even Transifex says that there is 100% match string in suggestions (acquired from the translation history). This means that new string is the same as the old one and should not be reset as happens if original string is slightly modified (even with one symbol).        Why did this happen? Did you change the string's key generation (hash) function? Could this be prevented in the future updates to minimize losing of translations?


Move Ubuntu Dock to primary monitor in Ubuntu 20.04 Focal Fossa

I've just installed Ubuntu 20.04 Focal Fossa and I have a dual monitor setup (laptop + external monitor). I want the top bar and the task bar (Ubuntu Dock) on the external monitor.  Problem is that if I select the external monitor as primary, the taskbar moves to the laptop screen. If I select the laptop as the primary, the taskbar shows up on the external monitor, but window switches, notifications and the top bar appear on the laptop, which is really annoying (especially when trying to switch windows).  Why are the top bar and the dock divorced that way?


I want to create a graph with different stock values starting and ending at a certain day. To do that I create a table like this:    Where the first column is the market and the second one is the ticker of the company. Under both of them is the name of the company combined in two cells.  Now, I want to make a call to Google Finance to get all the stock values daily since a date specified in other cell and sheet:  =GoogleFinance(""&A1&":"&B1; "price"; Stocks!A28; TODAY())   This returns X rows x 2 columns with the headers Date and Close. i.e:    What can I do to remove the header row, "Date" and "Close", from the table?  I saw  using the function INDEX to return a value of the array, but I think it only returns one single value and is not possible to return a lot of them starting with an offset:   =INDEX(GoogleFinance(""&A1&":"&B1; "price"; Stocks!A28; TODAY());2;2)   I also tried using FILTER or OFFSET but I don't know if they just don't work for this or I'm doing something wrong.


Remove or hide the submit button on search block in Drupal 7

I need to do some custom theming on the search block in Drupal 7.  Specifically, I need to add a class to the submit button that makes it invisible and removes it from the content flow.  So:
   <input type="submit" id="edit-submit" name="op" value="Search" class="form-submit">
   Becomes...
   <input type="submit" id="edit-submit" name="op" value="Search" class="form-submit">
   I added element-invisible to the edit-actions div element.  However, I can't figure out how to do this.  What's the best practice for doing this sort of thing?


Difference between apt-get -d install & apt-get download

Apt (Advanced Packaging Tool) has option to download only package by apt-get -d install [pkg-name]. I have also find apt-get download [pkg-name] to download packages.  Then what is the difference between --download-only (apt-get -d install)and download (apt-get download)?  And When should I use between them?


PHP - MySQL DB Select from Joined table, display column with duplicate name?

I am trying to use PHP to display a table on a page. My select statement consists of a join of two tables and each table contains the columns called "id", where one table's "id" column is joined via the other table's "project_id" column.  i.e. Table A A.id, A.description  Table B B.id, B.project_id  WHERE A.id = B.project_id  My problem is that when I try to display both the "project_id" column and the "B.id" column (without aliasing the columns) it just automatically grabs the "A.id" column. I have aliased the table names, but not the column names, and I have tried using "B.id" instead of just "id" in the PHP code.  How do I grab the right data column?? I would like to know if there is another solution besides aliasing the columns, or if that is the proper way to deal with this situation.  Thank you


I did not find the TryParse method for the Guid.  I’m wondering how others handle converting a guid in string format into a guid type.  Guid Id; try {     Id = new Guid(Request.QueryString["id"]); } catch {     Id = Guid.Empty; }


Why is `[` a shell builtin and `[[` a shell keyword?

As far as I know, [[ is an enhanced version of [, but I am confused when I see [[ as a keyword and [ being shown as a builtin.  [root@server ~]# type [ [ is a shell builtin [root@server ~]# type [[ [[ is a shell keyword   TLDP says      A builtin may be a synonym to a system command of the same name, but   Bash reimplements it internally. For example, the Bash echo command is   not the same as /bin/echo, although their behavior is almost   identical.      and      A keyword is a reserved word, token or operator. Keywords have a   special meaning to the shell, and indeed are the building blocks of   the shell's syntax. As examples, for, while, do, and ! are keywords.   Similar to a builtin, a keyword is hard-coded into Bash, but unlike a   builtin, a keyword is not in itself a command, but a subunit of a   command construct. [2]   Shouldn't that make both [ and [[ a keyword? Is there anything that I am missing here? Also,  re-affirms that both [ and [[ should belong to the same kind.


Should we remind users with a link to their question?

What this question is about:  It occurred to me that even experienced users occasionally forget that they either:    received viable answers to existing questions or  need to edit existing questions to get more appropriate answers.   What this question is not about:   I'm not suggesting that we badger "or otherwise nudge" users into accepting answers to their questions, as per this discussion:  I'm not duplicating the discussions about reminding/educating new users to accept answers to their questions, as discussed here:  and elsewhere.   My personal rationale:  I suspect that OPs occasionally hesitate to accept an answer in hope that someone will later post a better answer even though there may already be acceptable answers provided. I know that I have done this in the past and then forgotten about my question, only to remember months or years later that I hadn't yet accepted a viable answer to my question.  For busy people, it's inconvenient to go through your activity history and find the question with the upvoted answer that still was never accepted. The inconvenience factor is enough of a deterrent that busy people don't always do it.   My proposal:  For a question with unaccepted answers for over a year, could we please alert the OP with a link (this is the key feature) to their question with a suggestion to perhaps review their question to edit it if no acceptable answers have been provided (or something like that)?  Perhaps there could be other criteria to prevent obnoxious reminders, such as the question needing to have at least 3 suggested answers or that the suggested answers must have been upvoted at least 3 times or that the question has been upvoted at least once or something like that.


The subgroup $S_1$ (the unit circle) in the multiplicative group of complex numbers without 0 is a normal subgroup. Identify the quotient group $\mathbb{C}^\times / S_1$. I thought the quotient group was isomorphic to $S_1$ but it's not. My thought was that $e^{i\theta_1}*e^{i\theta_2} = e^{i\theta_1+i\theta_2}$ and this is bijetive homomorphism. I set $S_1 = ${$e^{i\theta} \mid \theta \in [0,2 \pi)$}. Is this wrong because the quotient group $ \mathbb{C}^\times / S_1 = ${$r* e^{i\theta} \mid  r \geq 0, \theta \in [0,2 \pi)$} ? Edit: I think $ \mathbb{C}^\times / S_1 $ = {$r*S_1 \mid r \geq 0 $} So then the quotient group is isomorphic to $\mathbb{R}_{>0}$ ? because $ \mathbb{C}^\times / S_1$ is all circles about the origin with fixed positive radius?


Is there a PPA for the latest Blender version?

I am interested in trying out the Blender 2.54 beta, but  don't have the time or patience to download and install all of the dependencies for it and compile it myself.  Is there a PPA somewhere that I can use to obtain a pre-compiled package for it?


In my current project, I need to communicate between a microcontroller and some sensors over I2C. One of them is a temperature sensor, it needs to be placed at approximatively 2 meters far from the microcontroller. I cannot choose another protocol (the sensor is on a module with given connector/pins/protocol).  Do you think it is possible to communicate in this configuration? What information should I look up to ensure it can or can't be possible? Do you have some advice?  It is my first time communicating with IC outside the PCB.


Is there any software for converting my jar into a .deb file?

I have my .jar file.I want to convert it into .deb file. Is there any software for this?  please dont give comments like.....you can execute a jar straight away by giving "java -jar io.jar". I need to know about the software which converts a jar or some other file in to a Ubuntu exetuble.


I'm used to GNOME Classic and personally don't want to change to anything else, but it seems there is no more GNOME Classic in the Oneiric release. After apt-get installed gnome-session and all, though there comes back the GNOME Classic option in the session listbox, however, after logged in, it seems not the expected one.  There is no System menu in the top bar, and I couldn't customize panels at all. I want to change the appearance(theme), but I can't find Appearance menu at all. And much more differences to my previous experience of GNOME classic shell.    There are multiple valid answers for this question spanning over several versions of Ubuntu. For your convenience an index of each below:    and up      &


How can I connect a texture node to a material with Python?

The Setup:  I was trying to create a material and a texture, and then attach the texture to the material's Displacement slot, but I couldn't find the texture node's outputs through the Python api.  Here's my test scene:  import os, bpy  bpy.context.scene.render.engine = 'CYCLES'  # new texture texture=bpy.data.textures.new('tex', 'IMAGE') texture.use_nodes = True texnodes = texture.node_tree.nodes  # new material mat = bpy.data.materials.new('mat') mat.use_nodes = True matnodes = mat.node_tree.nodes  # assign texture to material's displacement disp = matnodes['Material Output'].inputs['Displacement'] mat.node_tree.links.new(disp, texnodes["Output"].color)   That last line threw the error:     TypeError: NodeLinks.new(): error with argument 2, "output" -  Function.output expected a NodeSocket type, not Color   I've seen this method used elsewhere:  mat.node_tree.links.new(disp, texture.outputs[0])   But if I try it in this situation, it throws this error:     AttributeError: 'ImageTexture' object has no attribute 'outputs'   ???  The Plot Twist:  Then I discovered that if I create the texture directly on the material, like so:  texture=matnodes.new("ShaderNodeTexImage")   ...the texture.outputs[0] method works, although then the texture node claims it doesn't have a node_tree property.  Questions:  What's the difference between these two textures? Is there a way to make my first try work like the second? What's the best way to do this?


SEO best practices for one page websites?

I build many one page websites that dynamically load content through AJAX/jQuery. I keep reading how bad one pagers are for SEO. Regardless, how can you get the most SEO results out of a one page website, without splitting it up into multiple pages?


Why does Python code use len() function instead of a length method?

I know that python has a len() function that is used to determine the size of a string, but I was wondering why it's not a method of the string object.  Update  Ok, I realized I was embarrassingly mistaken. __len__() is actually a method of a string object. It just seems weird to see object oriented code in Python using the len function on string objects. Furthermore, it's also weird to see __len__ as the name instead of just len.


Possible Duplicate:          Coudl someone explain me the following: Why should $x^2+1=0$ have uncountable infinite many solutions $x\in\mathbb H$?  In my opinion it has only 4 solutions, namely $i^2=j^2=k^2=ijk=-1$ ?


I'm posting my whole thought process, but I'd like to ask specifically about whether is my expansion of $\log(1+y)$ into Taylor series good & allowed in this situation? Is there an easier (not saying this isn't an easy way) to compute this limit?  $$\\ \lim_{x\rightarrow \infty}x(e-(1+\frac{1}{x})^x) = \lim_{y \rightarrow 0}\frac{e-(1+y)^{\frac{1}{y}}}{y} = \lim_{y \rightarrow 0}\ \frac{e-e^\frac{\log(1+y)}{y}}{y} = \lim_{y \rightarrow 0} \ \frac{e-e^\frac{y-\frac{y^2}{2}+O(y^3)}{y}}{y} = \\ =\lim_{y \rightarrow 0}\ \frac{e-e^{1-\frac{y}{2}+O(y^2)}}{y}= e\lim_{y \rightarrow 0}\ \frac{1-e^{-\frac{y}{2}+O(y^2)}}{y} = (-e)\lim_{y \rightarrow 0}\ \frac{e^{-\frac{y}{2}+O(y^2)} - 1}{y} =\\ (-e)\lim_{y \rightarrow 0}\ \frac{e^{y (\frac{-1}{2})+O(y^2)} - 1}{y}$$  And now, from $$ \lim_{y \rightarrow 0}\ \frac{e^{ay} - 1}{y}  = a$$  Follows  $$ (-e)*(\frac{-1}{2}) = \frac{e}{2}$$


I am currently trying to go through Humphrey's Linear Algebraic Groups and am stuck on a problem that sounds deceivingly simple but can not seem to figure out (Problem 5 from Section 7). I have spent a fair amount of time on it and expect it to be something silly that I just am not seeing. The problem is:  A closed subset of an algebraic group which contains e and is closed under multiplication is a subgroup


I have an application from where I suppose to run another console based exe and read the output of that console application? Assume the console application is third party exe which writing it using printf.


When should I use "didn't" instead of "haven't"?

Is haven't supposed to mean something I may still do and didn't not?  Can I use didn't for something I might still do?


Discs are naturally occurring shapes in the world, because any soft object experiencing rotation on a single axis will stretch itself into a disc shape such as pizzas and galaxies due to centrifugal forces caused by rotation. Galaxies and pizzas are "soft" in the sense that the tensile forces holding the structure together are not strong enough to resists being stretched by rotation. Rocks on the other hand, do not stretch when rotating because the average tensile forces between the atoms of a rock are strong enough to resist centrifugal forces, given that rotation is not too fast. If Earth is mostly fluid, why does it not stretch as it rotates?


Pstricks stops working after update 18-2-19, problem with pgf?

I tried to fix my problem with dotsymbols in pstricks (see ) and end up with an update of several packages in miktex. Now (after update) pstricks stops working. I get the following error:  (C:\Users\flenk1\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/utilities\pgfkeysfi ltered.code.tex \pgfkeys@tmptoks=\toks20 )) (C:\Users\flenk1\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/utilities\pgffor.co de.tex Loading [  ! LaTeX Error: Missing \begin{document}.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.10 \ProvidesPackageRCS[v                           \pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf...  ? x   I tried the following compile commands:  C:\Program Files\MiKTeX 2.9\miktex\bin\x64\latex.exe C:\Program Files\MiKTeX 2.9\miktex\bin\x64\xelatex.exe C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe C:\Program Files\MiKTeX 2.9\miktex\bin\x64\lualatex.exe   but all end up with the same error. Even after a complete reinstallation of miktex the same error remains.  My Minimum example is really minimal:  \documentclass{scrartcl} \usepackage{pstricks} \begin{document} This is a test \end{document}   Is there a possibility to switch back to an older version of pstricks or pgf? Most of my files use pstricks, so for me this error is catastrophic.  Thanks for any help.


The 'Darth Plagueis' all but confirms that with the Rule of Two, the dark side of the force is concentrated in the two Sith. Does this mean that the Jedi have less to draw on? Or was this comment innacurate,and the Force is infinite?


How to optional parameter in a constructor in C#?

so i have a class customer, the constructor customer has 5 parameters    class customer     {         public customer(string fname, string lname, string address,DateTime dob, int phone, string email  )         { }   parameters email and phone can be blanks. is there a way to accomplished it without creating another constructor that only takes the necessary fields?


I want to get a Ph.D. in statistics. What books should I read after Elementary Statistics?

It has been some time since I've been in a statistics course. I actually have a degree in statistics but it has been some time, so I can't recall the upper level stats. I know Elementary Statistics and Statistical Methods but as for theoretical stats I would need some help. As for proofs in stats, would I need to read, intro to proofs, analysis and linear algebra books before proceeding into reading higher level stats. I would really appreciate feedback, I would love to contribute to the mathematics world and I really enjoy statistics.


Is the Vulcan ability to control emotions dictated by genetics?

I've seen a few Vulcans lose control of their emotions in various Star Trek media. Primarily Spock, who is in fact half-Vulcan.  I was under the impression that the ability to control emotions was down to training and ritual. Is it also linked to genetics?


Linux: remove file*..but not file1 and file2

Usually on bash i did  shopt -s extglob rm !(filedontwantremove)   and remove all files except filedontwantremove  But if i want to remove all file except filedontwantremove and "antotherfilewithatotaldifferentname"?  There is a find solution,but i prefer i thing like rm !()


How do I declare an array when I don't know the length until run time?

I originally had an array[1..1000] that was defined as a global variable. But now I need that to be n, not 1000 and I don't find out n until later. I know what n is before I fill the array up but I need it to be global therefore need a way to define the size of a global array at run time.  Context is filling an array with a linear transformation of the bytes in a file.  I don't know how big the file is until someone wants to open it and the files can be of any size.


should use singular or plural with numbers ? 5 years experienced or 5 year experienced?

Being a student of English language I'm confuse should I use singular or plural with number greater then 1?   For example, please consider and guide if I'm wrong in my use:     I'm a 5 years experienced accountant   or it should be:     I'm a 5 year experienced accountant


I’ve been told that a greater binding energy means the nucleus is more tightly bound, and therefore that decreases the mass of the nucleus with respect to its nucleons when separated. But why does a tighter nucleus mean a smaller mass?


Exec format error of gcc-compiled Hello World c++

On AWS Ubuntu Server, I wrote C++ Hello, World program:  #include <iostream> using namespace std;  int main(){         cout<<"Hello, World!"<<endl;         return 0; }   And compiled it:  ubuntu@ip-xxxxx:~/dev/c++$ g++ -c ./test.cc -o out ubuntu@ip-xxxxx:~/dev/c++$ chmod a+x out ubuntu@ip-xxxxx:~/dev/c++$ ./out -bash: ./out: cannot execute binary file: Exec format error ubuntu@ip-xxxxx:~/dev/c++$ file ./out ./out: ELF 64-bit LSB  relocatable, x86-64, version 1 (SYSV), not stripped ubuntu@ip-xxxxx:~/dev/c++$ uname -a Linux ip-xxxxx 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ubuntu@ip-xxxxx:~/dev/c++$ gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4   It seems that architecture x86-64 is the same each other. What is the problem here? Do I have to add more C++ flags?


proving $ \sqrt{10} - 1 \leq \lvert z-4 \rvert\leq \sqrt{10} +1$

if $z$ is a complex number how to prove that $$ \lvert z−(1 + i) \lvert \leq 1 ⇒ \sqrt{10} - 1 \leq \lvert z-4 \rvert\leq \sqrt{10} +1$$ .  to do the right side : $ \lvert z−4 \lvert = \lvert z−(1+i)+(-3+i)\lvert \leq \lvert z−(1+i)\lvert + \lvert -3+i\lvert \leq \sqrt{10} + 1 $ i know how to prove the right side $\lvert z-4 \rvert\leq \sqrt{10} +1$ but i dont know how to do the left side $\sqrt{10} -1 \leq \lvert z-4 \rvert$


Interpretation of a probability problem: expected value.

I am having a few doubt on the interpretation of this problem that I have read on book about interviews questions.  Here the text:  A mythical city contains N=100,000 married couples but no children. Each family wishes to continue the male lane but they do not wish to overpopulate. So, each family has one baby per annum until the arrival of the first boy. Assume that all the children are equally like to be born male and female (and independent). Let $p(n)$ be the percentage of children that are male at the end of the year n. How is this percentage expected to evolve through time?  This is the problem and the solution says that the percentage is expected to remain constant at a level $\frac{1}{2}$.  Thanks in advance; if something is not clear, just ask.


How to clean folder leftovers of the apps that are no longer in use?

I'm running Ubuntu 12.04 and I'd like to know are there possibilities to clean folder leftovers of the apps that I don't use anymore and not planning to again. For example in /home when I press Ctrl+H folders appear and some of them belong to apps that I don't use anymore and I have to manually to search for them and delete each by one. So I wonder are there any commands I can use in Terminal to clean those leftovers, if they are?


Show that for $\eta > 0$, $\alpha_\eta=-\infty$

We consider the differential equation $y'=x+y^2$ and for any $\eta \geq 0$ we denote by $\phi_\eta:(\alpha_\eta,\beta_\eta)\rightarrow\mathbb{R}$ the unique saturated solution of the Cauchy Problem $y'=x+y^2$, $y(0)=\eta$. I am required to show that for $\eta > 0$, $\alpha_\eta=-\infty$ and for the Cauchy problem $z'=x-z^2,z(0)=\eta$ the saturated solution is defined up to $+\infty$. At this last ones I am lost. Any help, please?


Is there an expiration time for free invocations?

The Fate Core book doesn't seem to indicate when free invocations expire; seemingly they stay around forever. This feels rather broken to me as I could carry several throwing daggers with me, add “Sharpened” aspect to all of them with free invocations, and get +2 to my roll with all of my dagger throws.  Do they actually expire at any point? Is there anything that might prevent me from doing this?


What is the purpose of prefixing a new Date with the unary `+` operator?

I am porting some javascript code (not my strongest language) and came across this:  Common._nowStartTime = +(new Date());  Common is a module and nowStartTime is a property of that module. I'm not sure what the right hand of the expression means? Why prefix with the unary + operator?


How to find $\sum_{i=1}^{\infty} 0.5^i \cdot i^2$?


In LyX I enter a figure/graphic at the end of a paragraph using Insert > Float > Figure.  I assume this is the command that I want since I want to include a graphic with a description (please let me know if there's a better command for this).  However, when it shows up in the PDF, (i) the figure is inside the paragraph and (ii) the spacing between the bottom of the figure and the remainder of the paragraph is abnormally large. I've tried manually editing the vertical space, but LyX either puts no space or too much space for this particular figure (I've never had this issue before).  I have a MWE below. In this case the spacing issue no longer appears but the figure appears above the paragraph instead of below. How can I put the figure below the paragraph (or precisely where I want it to appear?  (I) Source Code for Paragraph:   \noindent \begin{center}  \begin{figure}  \includegraphics[scale=0.6]{\string"Thesis/blank billard 7\string".jpg}\caption{A Billiard table $B_{\alpha}$ with a barrier of length $\alpha$}  \end{figure}   \par\end{center}   (II) Source Code for Entire Source:   \documentclass[oneside,english]{amsart}  \usepackage[T1]{fontenc}  \usepackage[latin9]{inputenc}  \usepackage{amsthm}  \usepackage{graphicx}  \usepackage{setspace}   \makeatletter  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.  \numberwithin{equation}{section}  \numberwithin{figure}{section}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.  \title[Short version]{Long version}  \usepackage{mathtools}   \makeatother   \usepackage{babel}  \begin{document}   \subsection{Veech's Examples and a Billiard Interpretation of these Examples}   \begin{doublespace}  \noindent In {[}8{]}, Veech constructs examples of minimal and not uniquely ergodic dynamical systems as follows (see {[}7{]})....  \end{doublespace}   \noindent \begin{center}  \begin{figure}  \includegraphics[scale=0.6]{\string"Thesis/blank billard 7\string".jpg}\caption{A Billiard table $B_{\alpha}$ with a barrier of length $\alpha$}  \end{figure}   \par\end{center}  \end{document}   UPDATE Here is the figure.  [![enter image description here][2]][2]


What is the meaning of 1N, 2N, 4N, 6N (and probably others) in the semiconductors name?

There are many discrete semiconductors with names like 1N4148, 1N4007, 4N35 or 6N137... And they can be produced by many manufacturers. So it looks like it is not a marketing names.  Looks like 1N are diodes of any kind, 2N - transistors, 4N and 6N optocouplers...  How does they appeared hystorically?  What means the first digit and the N letter?  How is it possible that these devices have the same parameters while comming from different producers?  Answers for  question does not explaining the meaning of 4N and 6Ns and does not explaining the background of these naming conventions. I'd like to have more reading on this. Reference to JEDEC made by winny is very useful. I think that I will be able to find something there.


8 dice and probability of distinct values

NOT HW just practrice question  If eight distinct dice are rolled what is the probability that all six numbers appear ?  The chapter is INclusion and exclusion and the answer in the back of the text is :  $\frac{6^8}{6^8}-\binom{6}{1}\frac{5^8}{6^8}+\binom{6}{2}\frac{4^8}{6^8}-\binom{6}{3}\frac{3^8}{6^8}+\binom{6}{2}\frac{2^8}{6^8}-\binom{6}{1}\frac{1^8}{6^8}$  I am trying to understand this answer.. and what I follow is that the first term $\frac{6^8}{6^8}$ is the probability of the first number and then we subtract probability of the second number appearing $\binom{6}{1}\frac{5^8}{6^8}$ but why is it multiplied by $\binom{6}{1}$ or perhaps I am not interpreting the answer correctly. Could use some intuition n understanding this answer.


Why do I need batteries to use solar when the grid is down?

I am considering a home solar photovoltaic installation, probably 5 kW or so.   The usual configuration around here is with a  and .  But when the grid goes down, the inverter shuts off (to avoid back-feeding into the power grid and electrocuting linemen). We are interested in being able to use the solar when the power goes down (not infrequent in this rural area).   According to the solar installer, the only way it is possible to do this is to also install a battery system like .   The idea is that when the inverter loses the 60 Hz sinewave from the grid it shuts off; the inverter in the PowerWall supplies this sinewave, so the inverter doesn't shut off, and there's also a mechanism to disconnect from the grid. That sounds reasonable.   But the cost is not.  Two PowerWalls would roughy double the cost of the installation.  During outages, we would be satisfied to only have power when the sun shines; this would keep food safe, allow us to draw water, etc.  Electrically, there is no reason this can't be done without the expensive battery system.  All that is necessary is to generate the 60Hz reference for the solar system's inverter, and to disconnect from the grid. Has anyone been able to manage such an installation? Would it be strictly DIY (perhaps feasible as I'm a electrical engineer)?


How can I teleport back to my house or even get close to it

I was wondering off to find a wolf, and I got lost. I flew in the air to look for my BIG house and I can't find it. Now, I am totally confused and worried and I don't want to rebuild because it is AWESOME and I used a map, looked it up, and tried everything. So can you please help me? I even tried to teleport but it wouldn't work. I also live by a lake.


Difference between "Thanks" and "Thank You"

What is any difference between Thanks and Thank you? Are they both same in all aspects?


I want to light up an LED with 220 VAC using least components. These two circuits come to mind:    R1, R2 will be around 200K - 300K depending upon the brightness that I will need. Not much brightness is required so I can even go higher if I am able to get some amount of light out of the LED.  Which one (if any) will work?  (I am not much concerned with efficiency as these will be used as indicators when a high power device is turned on. For ex - a geyser. This circuit will be wired in parallel with the geyser to accomplish that. If I use 200K resistor, I'll be using up around 0.25 watts which will be negligible as compared to 1000 watts being consumed by the main device.)


Understanding Stack Overflow's "unanswered" questions

When I navigate to the "Unanswered" section, it displays a list of questions, but those questions have answers.  What does "unanswered" question actually mean? 0 answers OR user yet to accept the answer?  I found it the answer: "questions with no upvoted answers"


Removing duplicate rows from table in Oracle

I'm testing something in Oracle and populated a table with some sample data, but in the process I accidentally loaded duplicate records, so now I can't create a primary key using some of the columns.  How can I delete all duplicate rows and leave only one of them?


How to make a texture from the view of the camera live (cycles)

i am making a security camera and a want the view of the camera to display as a texture on a monitor. How do i do that?


Array.forEach with objects returns references

As demonstrated below, it appears that Array.forEach(myObject => callback) returns myObject as a reference to the exact object in my Array.  Is there any built-in or graceful way to return an unreferenced copy of myObject in an Array.forEach without calling something like myObject = _.cloneDeep(myObject) on each iteration?    Thanks.    const trades = [   { qty: 0 },   { qty: 2 } ];  trades.forEach((trade, index) => {   trade.qty += 1;   trades[index].qty += 1;   console.log(trade); });  console.log(trades);


I have a variable called created = created[1],created[2], created[0] that outputs a date in the form of [(12, 11, 2019)]. I want the date to be formatted like 12/11/2019. How would I got about changing the formatting in python. created = time.localtime(user.created / 1000) created = created[1],created[2], created[0]


I can't see objects created in Blender unless I select them

Am brand new to Blender. When I watch tutorials I see you open the program and see a default cube which is a light gray. However, when I open it, I don't see it in light gray but rather in an orange outline. If I deselect my cube it then becomes invisible. I tried to see if it was a setting or something but after much searching and asking, I am starting to suspect it is either a bug or a graphics card issue or something else? Not sure! I apologize if there is a simple fix and I am just new. I've tried everything I can think of. I have:  Windows 10 AMD FIrepro V5900 graphics card (a little over 5 GB I believe?) Blender version 2.8 (I had to download this from a non-Blender site, as when I try to click on "Download 2.8" on Blender it automatically redirects me to 2.92. I can't use that version, it crashes before it will even open. I already figured out this is because I don't have a graphics card that works with it apparently...so I heard getting an older version would work better).  I've tried:  fiddling with viewport shading settings. rolling back my driver (apparently I can't do this - my computer had it as an option but it was greyed-out, I don't know if this means my driver is already at it's oldest version? I actually checked it was updated to the latest driver back when I was trying to install 2.92)


Fell asleep with slow cooker on warm for 9 - 10 hours? Still good?

Making applesauce in slow cooker.  Was supposed to put it on 4.5 hrs on high but cooked it 4.5 hrs on low.  It then switched to warm and sat on warm for 8 hours.  I'm planning to turn it back on high for another 2 - 3 hrs.  Thoughts?  It should still be good right?  The only ingredients in the cooker are apples, cinnamon, cloves and nutmeg.


When we're searching for an unanswered question, we're faced with thousand of finished questions, but unanswered, because there was a conversation via comments.  A good new feature would be to add a "finished" or "solved" button, this button could appear only if someone commented, where moderators or the owner could press, but the question would be open for new comments or answers.


Logitech M705 left mouse button doesn't stay down when pressed

I'm nearly sure that this is only solvable by replacement of the device but I'd like to vent the issue.  About 9 months ago i got a nice Logitech M705 mouse. which inspired me to add paging via scroll wheel to my mupdf and now i think i wouldn't like it any other way. well, back to the present.  The symptoms are that the left mouse button can't be held down. It'll emit multiple button release and press events when pressed down and more when released. This makes drag and drop impossible. I've opened the mouse and verified that it has the same problem even when the actual button is pressed by hand and that it's not due to any damage nor dirt. What's funny is that the scroll wheel and the right button work as they should producing only one press event when pressed and one release event when released.  Due to that I know that it isn't a problem with anything in my computer as if it was you'd think it would effect the right mouse button too. And it's not a problem with the wireless as the mouse tracks nicely (although it doesn't track as good on worn particle board which is uneven do to water exposure as this Logitech M-UR69 but that's a wired usb mouse).  And I can see the extra button events using xev these only appear when the left button is pressed but not the right for that it gives the perfect response of one press event when pressed and one release event when released.  So if its not my laptop nor the wireless and it doesn't effect the right button or the wheel nor the tracking, it must be that i broke in some weird way the left mouse button's switch.    I did find that some one else had this issue with this mouse:     I've recently encountered problems with the left mouse button not   staying closed when I hold it down. Trying to drag things across the   screen becomes a major malfunction when the button lets go and I have   no idea where the icon was just dropped. Taking the mouse apart and   blowing it out thoroughly seemed to resolve the issue but why did I   need to do that to a six month old mouse in the first place? And how   long before the problem comes back?   From   That's what made me think that it could have been a dirt issue, but I didn't find that helped.


Align Equations Over Multiple Tabular Rows

I'm trying to set up a table with some equations in it, however I would like the equations on multiple rows to be aligned properly. So far I have  \begin{tabular}{cc} \hline \multicolumn{1}{l}{Header 1} \\ \hline $a = \sum_j b(c)$ & $c = d$ \\ \hline \multicolumn{1}{l}{Header 2} \\ \hline $\begin{aligned}          e&=fghij(y) \\          klm(x)&=nop         \end{aligned}$ &        $\begin{aligned}         qr&=vwxyzstu \\         abcde&=fghij         \end{aligned}$ \end{tabular}   which looks like    Note how the equals signs in the top row are not aligned with the corresponding equals signs in the bottom two rows.   So my question is; is there a way to align across different rows or am I going about this completely the wrong way?


What is the difference between apt and apt-get?

I read about the new fancy progress bar which was added to apt 1.0 in  and how to enable it . However on running sudo apt-get update, I did not see the fancy progress bars. On reading the second link again, the solution explicitly requires you to use sudo apt update.  Hence my question is the difference between apt and apt-get. I thought they were one and the same.


What is the difference between a Java virtual machine and a VMWare VM?

I know that they are both called 'virtual machines', but what is the exact difference?


Unable to login as root from the login screen even though I have a root account

I have installed 12.04 LTS but surprisingly not able to login as root. I have unlock and set the password for root but while login i can not see 'other' option in GUI login where i can put root id and password.  please help me.


Proving that $f: N\times N \rightarrow N$ is surjective

I am having trouble proving that the function $$f: N\times N \rightarrow N, \ \ f(i,j)=2^{i-1}(2j-1)$$ is surjective.   Work: I know that using the theorem in which $n$ is the product of prime numbers play an important role. For instance, $n=2^{i-1}p$, $p$ is the product of all prime factors of $n$. However, from here I don't know how to proceed. What makes it difficult for me is that how am I suppose to find an arbitrary $n\in N$ such that $f(i,j)=n$?


Develop apps for Ubuntu touch: Learning by doing

I really want to develop apps for Ubuntu touch. I have set up the Ubunut sdk and i am currently reading tutorials about qml but one will not learn programming by reading books or tutorials so i am looking for like little tasks (with solutions), which focus on QML and Ubuntu touch.You don't get alot of information about how Ubuntu touch works and how you combine the different languages. Is there any way, which makes the start easier? I really need an overview of how the whole thing works and finally start doing something.


I accidentally compile a code that looks like this:  #include <iostream> using namespace std;  struct Thing {     Thing(const int a) : a(a) {};     int a = -1;     void set_a(const int a) { this->a = a; }; };  void strange(Thing& t) {     t.set_a(-1), 2, t.set_a(3); // <-- ? }  int main() {     Thing t(3);     strange(t);     std::cout << t.a; //output 3     return 0; }   But why does it compile in the first place ? What does , mean in the declaration of the function strange ?


$\max_{t\in[0,T]}|x(t)|^2 \le |x(0)|^2e^{\int_0^T|y|^2\,\mathrm ds}.$ using gronwall's lemma?

Given $\frac{\partial x}{\partial t}+x^3=yx^2$, $x(0)=x_{0}$, where $x$ : $\mathbb{R}^+ \mapsto \mathbb{R}$ and  $y$ : $\mathbb{R}^+ \mapsto \mathbb{R} $ with $\int_{0}^{t} y^2(s) ds < \infty$ for all $t$  if $x(t)$ is continuous function satisfying the above equation in $[0,T]$  $$\Large \max_{t\in[0,T]}|x(t)|^2 \le |x(0)|^2e^{\int_0^T|y|^2\,\mathrm ds}.$$   It seems like it has something to do with Gronwalls lemma.  My first approach was to set $x(t)'<y(t)x(t)^2$ and find bound for $x(t)$, but it did not work nicely.   Can anyone help me?


I can not see the reputation and badges from an Android phone

I can not see my reputation points nor badges from my Android Phone on the black strip at the top of the page.    But they are displayed when the page in seen on my PC:    Is this a change in feature or is there some specific reason for this? I hope that it's not some kind of problem from my end. This question is only for Android smartphones with the Chrome browser.


Java Class not found exception if running from jar, running fine if run from IntelliJ

This is my pom.xml   <build>     <plugins>         <plugin>             <groupId>org.apache.maven.plugins</groupId>             <artifactId>maven-jar-plugin</artifactId>             <executions>                 <execution>                     <goals>                         <goal>test-jar</goal>                     </goals>                 </execution>             </executions>             <configuration>                 <archive>                     <manifest>                         <addClasspath>true</addClasspath>                         <mainClass>com.ttn.dailyreport.RunTest</mainClass>                     </manifest>                 </archive>             </configuration>         </plugin>     </plugins>   And this is the manifest.mf -   Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Built-By: Shubham Class-Path: poi-3.17.jar commons-codec-1.10.jar commons-collections4-4  .1.jar opencsv-4.0.jar commons-lang3-3.6.jar commons-text-1.1.jar com  mons-beanutils-1.9.3.jar commons-logging-1.2.jar commons-collections-  3.2.2.jar postgresql-42.2.2.jar log4j-1.2.17.jar mail-1.4.7.jar activ  ation-1.1.1.jar Created-By: Apache Maven 3.5.2 Build-Jdk: 1.8.0_161 Main-Class: com.ttn.dailyreport.RunTest  It has all the external jars in classpath still throwing class not found exception. Let me know if you need more details or code.


How can I clean white burn marks in the center of my glass top burner?

I have this glass top burner for almost 5 years. It was fine until I cooked food in Aluminum Pot and Aluminum frying pan... the base of these pots leaft white marks on the glass. It looks like part of the glass now. I tried Baking Soda, Cerama Bryte, Soap but no results. How can I get rid of them pr will never will?


Is it safe for me to root my s7 sm-g930f model phone

I would like to know if it is worth me rooting my galaxy s7 sm g930f phone and if there are any problems after its done.   thank you


I Cancelled Microsoft 10 Reservation and uninstalled KB3035583 but Window 10 is still trying to install

I cancelled the Microsoft Windows 10 Reservation and uninstalled KB3035583, but Windows 10 is still trying to install.   After I uninstalled KB3035583 and restarted my laptop as instructed, I could not find KB3035583 to hide it.   Now Windows 10 is sitting in my Windows Update saying that it will install when I restart my computer.


On OS X, what files are excluded by rule from a Time Machine backup?

In addition to whatever files I may choose to exclude, what files does the system exclude by rule or classification?    It might make sense not to backup Trash or Caches, but I'm looking for a way to tell what files are skipped "behind the scenes." Knowing if the system maintains an exclusion list or exclusion pattern would be very helpful in managing larger groups of macs.


I'm having trouble getting clang++ to work as I compile my code. Specifically, I'm getting a make: clang++: Command not found error.  I've run sudo apt-get install llvm, and also sudo apt-get install build-essential and sudo apt-get update. What do I have to do to get clang++ installed?


I've seen similar questions on how to take pictures, but those questions are for the render engine, cycles, and others. I have a set of weapons, and want to take a picture from the side view. When you swap to your weapon, your newly selected weapon will show its picture on the right side of your screen, like other FPS games. In other words, I am looking for a way to take a screenshot in the GE; if you can, then can I also change the resolution? Any help is appreciated, thanks!


If I keep the shaft of a DC motor in place while it is running does this harm it in any way?  Is it bad for it at all?


Is it right to use the words Deep/Shallow copy of a pointer

My question is not about the concept but about the use of these words.   Assuming this case:  int *a=new int[3]; int *b=a; // It is called shallow copy   My question: Is it right to call it a shallow copy? I can not see any shallow copy. int* is a pointer and it is all about storing some address. So, in the previous example every thing about it was totally copied because the actual data is not part of it. So, why it is called shallow not deep?  For more clarification, I see it like if someone do this:  std::string file_path="C:/file.txt"; std::string another_path=file path;   and called a shallow copy because the file was not really copied.  BTW, are deep/shallow words well-defined in the C++ standard?


Run ubuntu-desktop on WSL (Ubuntu 18.04 LTS)

I am running 18.04 LTS on Windows subsystem for Linux (WSL). I have installed the Ubuntu Desktop by running  sudo apt-get install ubuntu-desktop   However, when I start Linux only the terminal starts. How do I get the Desktop to start?


Why is screentime and app usage reporting different numbers?

I have screentime set up for managing apps and usage and am having a hard time making sense of the numbers. In this instance I have set all apps to be limited to 2 hours, and you can see that the time used is around that amount (I changed the limit to 30 minutes just before this screenshot because I was experimenting). However, the used time is nearly 5 hours. Why does my screentime report 4:42 and usage continues without hindrance. Changing it down to 30 minutes hinders usage but to allow later usage, I have to allow > 4:42. This is inconsistent with the app usage and makes management difficult. What’s being counted and why does it vary so wildly?


Java if statements with user input (beginner)

This is just something im trying out, i just recently started coding in java would like some help. Would like to ask user to pick their favorite movie, then take their input and use if statements to give different responses to each response.   import java.util.Scanner; public class miniFFF { public static void main (String[]p) {      System.out.println("What is your favourite movie? pick from the answers below:");     System.out.println("a");     System.out.println("b");     System.out.println("c");     System.out.println("d");     System.out.println("e");          answer();     //ifStatements();     System.exit(0);     }      public static String answer() {         String favMovie;         Scanner test = new Scanner(System.in);         favMovie = test.next();          if(favMovie == "a") {             System.out.println("1234");         }          else if (favMovie == "b") {              System.out.println("123");         }         return favMovie;   }   }


Can we write linked list using class?not using structure?

I went to an interview last month the interviewer asked an interesting question: Can we write linked list using class not using structure? I said yes and also I wrote something like the code below. Can anyone explain whether it is right or wrong?  class list {     public:        int a;      class *list;  };


How can I calculate the current through an LED?

I am trying to find out if increasing current increases the brightness of an LED. I'm pretty sure this is the case now that I have looked into semiconductor band theory physics and p-n junctions. However, I still don't understand how I can calculate the current through an LED if I have been given the brightness and vice versa. I'm also not sure if I understand exactly why the brightness increases with an increase in current (if it does), but this is probably too big of an ask for someone to explain.


How do I search my command-line history for commands I used before?

Other than viewing the history, is there a way to filter my history?  Say I want to search for a command that started with "ssh"?


Error when pass variable values to new Activity on Android

Error:     java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.vinicius.chatandroid/com.example.vinicius.chatandroid.Janela}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference;   code:  public void sendMessage(View view) {     EditText ip = (EditText) findViewById(R.id.txtIp);     EditText porta = (EditText) findViewById(R.id.txtPorta);     String txtIp = ip.getText().toString();     String pota = porta.getText().toString();     int txtPorta = Integer.parseInt(pota);     Intent intent = new Intent(this, Janela.class);     intent.putExtra("ip", txtIp);     intent.putExtra("porta", txtPorta);     startActivity(intent); }   new activity   public Janela() {     Intent intent = getIntent();     String ip = intent.getStringExtra("ip");     int porta = intent.getIntExtra("porta",0);     this.conexao = new Conexao(ip, porta);     conexao.addObserver(this);     escreve("Chat iniciado com " + conexao.getIp() + ":" + conexao.getPorta()); }


Why can't I access the files that I own?

I encountered a very strange situation with a bunch of directories: user1$ ls -l example/ ls: cannot access 'example/a.txt': Permission denied ls: cannot access 'example/b.txt': Permission denied total 0 -????????? ? ? ? ?            ?  a.txt -????????? ? ? ? ?            ?  b.txt  user1$ sudo ls -l example/ total 12345 drw-rwxr-x 2 user1 user1    4096 Jul  7  2018  ./ drwxrwxr-x 7 user1 user1   54321 Dec 14 12:15  ../ -rw-rw-r-- 1 user1 user1 2444333 Mar 17  2018  a.txt -rw-rw-r-- 1 user1 user1 1333222 Mar 17  2018  b.txt  With sudo, I can read the files successfully, change the permissions, etc. Without it, there is no way I can access those files. I tried to sudo chown user1:user1 the files, as well as sudo chmod a+r them: the commands succeed, but nothing changes. What could possibly have happened to those files? How do I make it possible to access them?


Proving the existence and uniqueness of a cyclic group of $G$ (Group Theory)

Let $G$ be a cyclic group of order $n$. For every divisor $d$ of $n$, prove that $G$  has exactly one subgroup of order $d$  What i tried  I know i have to prove the existence and uniqueness here  For the portion on existence  Since $G$ is a cyclic group, the $G$ is written in the form $G=<g>$ Where $g$ is the generator of the group $G$  I then let $g^{k}$ be the subgroup of order $d$ and i thus have to prove its existence, ie prove the following statement  $$o(g^k)=d$$   Also another info that i have is that $d$ is the divisor of $n$ thus  $$d|n$$ which implies $$n=kd$$  next i make use of the formula  $$o(g^k)=\frac{n}{gcd(n,k)}$$  in order to get what i want to prove  Next   given that $n=kd$ implies $k=\frac{n}{d}$  subsituting into  $gcd(n,k)=$  i  got  $$gcd(n,k)=gcd(n,\frac{n}{d})=\frac{n}{d}$$  Which thus implies that  $$o(g^k)=\frac{n}{gcd(n,k)}=\frac{n}{gcd(n,\frac{n}{d})}=\frac{n}{\frac{n}{d}}=d$$ which thus prove the statement that $o(g^k)=d$ Is my proof correct. Could anyone explain. Thanks


How to validate phone number with a plus (+) sign and "(0)" by regex?

I see a lot of solutions to validate a phone number by Regex... But I want some characters in my phone number such as +31(0)12 for example.  If you have string with the value +31(0)12-1234567. This is a correct notation of a phone number. How could you validate by using Regex?   I have tried this:   Regex phonePattern = new Regex(@"\+\d{3}?(\0)\d*\-\d*");    What do I wrong?   Other examples are: +31(0)6-12345678 or +31(0)123-123456


Notation or verbiage for the opposite of 'iff'?

Given the statement $X \implies Y$ and $Y \implies X$, we have the common notation $X \iff Y$. Ok so is there an opposite of this concept? Suppose I have $X$ doesn't imply $Y$, nor does $Y$ imply $X$...i.e. neither implies the other. What would you say or write for this? Whats the correct word?


Any way to make mashed sweet potatoes less stringy?

Is there a way or technique to make mashed sweet potatoes less stringy? Does it just come down to potato selection or can it be improved by a technique?


Why use Change Event triggers over existing async methods?

When and why should we use  over  or  methods?  Also do they use sync or asynch limits? I cannot find any clear documentation stating this.