I've been asked by a friend to help him solve this equation, but since we couldn't find the right answer, I thought about posting it here. Firstly, I thought about derivating both sides and get:  $a=be^{bx}$  and from here we could find the answer pretty quickly, but then I noticed that what I did was incorrect because I can't derivate both sides - the functions aren't equal.

A certain physics problem I have been working on has turned into a math problem. Particularly, I want to find the solutions of some equation of the form   $$f(x)=ae^{bx}+cx+d = 0$$  where $a, b, c,$ and $d$ are constant, real numbers that come from the physics problem and $x$ will be a real number. I do not know how to find the solutions of an equation of this form. In the special case where $c=0$, the solution is simply  $$x = \frac{\ln(\frac{-d}{a})}{b}$$  but for other values of $c$, I am stumped. If there is no exact form for the roots, is there a relatively simple way to estimate the roots?


I'm trying to insert an empty string in a non-nullable column in Oracle but fails. Here's the case:  create table trademark (   name varchar2(100) not null );  insert into trademark (name) values ('Kodak');  insert into trademark (name) values (' '); -- one space  insert into trademark (name) values (''); -- empty string Error: ORA-01400: cannot insert NULL into ("USER1"."TRADEMARK"."NAME")   What am I doing wrong?

I know that it does consider ' ' as NULL, but that doesn't do much to tell me why this is the case.  As I understand the SQL specifications, ' ' is not the same as NULL -- one is a valid datum, and the other is indicating the absence of that same information.  Feel free to speculate, but please indicate if that's the case.  If there's anyone from Oracle who can comment on it, that'd be fantastic!


I have a string, with a bunch of sentences separated by periods. For example:  const test = 'Dolore nostrud enim ea fugiat amet cupidatat enim. Fugiat qui tempor adipisicing velit et officia aliqua aliqua culpa ad veniam fugiat. Velit voluptate pariatur minim labore occaecat qui velit nostrud non deserunt non est voluptate. Quis est veniam sint nisi do.'   My desired outcome is to be able to turn each sentence of this paragraph into bullet points. I'm not concerned about creating the bullet points, I just need to break up this paragraph into an array of strings.  I'm assuming I need to write an algorithm that splits each sentence by a delimiter (doesn't have to a period but I used one in this example) and push them to a new array. I'm not that good working with regular expressions so I would appreciate any help.

I have this string  'john smith~123 Street~Apt 4~New York~NY~12345'   Using JavaScript, what is the fastest way to parse this into  var name = "john smith"; var street= "123 Street"; //etc...


When I navigate to http://example.com it correctly redirects to https://example.com.  The problem I'm having is that when I navigate to http://example.com/sub/directory/page.htm it redirects to https://example.comsub/directory/page.htm.  Why is it not redirecting to https://example.com/sub/directory/page.htm?  Here is the apache config:  <VirtualHost *:80>         ServerName example.com          Redirect permanent / https://example.com/  </VirtualHost>  <IfModule mod_ssl.c>  #NameVirtualHost *:443  <VirtualHost *:443>          ServerName example.com          [...]          ProxyRequests Off         ProxyPass               /          http://localhost:8444/         ProxyPassReverse        /          http://localhost:8444/  </VirtualHost>   The Apache version I am using:  Server version: Apache/2.4.18 (Ubuntu) Server built:   2017-09-18T15:09:02

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


StudentTest.java: Has my Main(), tests the classes I've set up.  public class StudentTest {      public static void main(String args[])      {         Student s1 = new Student("Matt", "Patitz");         s1.setMidterm(78, "B");   Only the first couple lines because the error is on that last line.  Student.java: The Student class, includes the setMidterm(int, String) method I'm trying to call  import java.util.Scanner;  public class Student {     Scanner input = new Scanner(System.in);     private String FirstName;     private String LastName;     private Exam Midterm;     private Exam FinalExam;     private Coursework Homework;     private Coursework InClass;      public Student(String firstName, String lastName){         FirstName = firstName;         LastName = lastName;     }     public void setMidterm(int score, String grade){          Midterm.setScore(score);         Midterm.setLetterGrade(grade);     }   Again, not the whole class file. The error is on Midterm.setScore(score);  Exam.java: The Exam class, includes the setScore(int) method.  public class Exam {      private int Score;     private String LetterGrade;      public Exam(int score, String letterGrade){         if(score>100){             Score=100;         } else if(score<0){             Score=0;         } else {             Score=score;         }         if(letterGrade=="A" || letterGrade=="B" || letterGrade=="C" ||              letterGrade=="D" || letterGrade=="F")              LetterGrade=letterGrade;         else{              System.out.println("Invalid Grade");              LetterGrade="F";         }     }           public void setScore(int score){         if(score>100){              Score=100;         } else if(score<0){              Score=0;         } else {             Score=score;         }     }   That should be everything that's relevant from my project. Here's the error message itself:     Exception in thread "main" java.lang.NullPointerException         at Student.setMidterm(Student.java:19)         at StudentTest.main(StudentTest.java:6)   The 19 and 6 lines are the ones I pointed out. Thanks for any help!

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I'm new to the area this question was posted in, and I don't have a "correct" answer to hand, but I want to get them a clue as to why the question is not perhaps the right rabbithole, and namely that webdriver uses a different mechanism for handling browser "alerts" or as the OP seems to hint pop-ups. How do I leave a comment if I only have not enough rep in this link below? . I'd hate to give a partial answer like I am hinting at above, am I breaking the rules if I leave a half-answer? It just feels better than nothing, and I don't know when next I will pass this way again. Curiously I'm unable to even upvote these helpful comments below, which people have notably left as a comment not an answer, which I'm not allowed to leave on other people's posts confusingly.  is a 5 year old post, I know about it, and I am actually more interested in how does a person who is not an expert go about gaining 50 points when everyone is happy to give my -3 points just for asking. Yes, I know this is a duplicate question, but as I just pointed out, I'm unable to participate in that 5 year old question about this problem. I'm not a very fast typist, how do I gain 50 points? Or should I provide a half-answer and hope I get an upvote? Is that what people are telling me? Seems, the way to get points, is to answer a question quickly, and keep editing your answer and improving the answer so that you get in there first. Learn the markup language to make your answer easier to read. And then hope the poster comes back and give you a vote later on. Although I miss-trust systems with badges and ranks, this is the best way to help and be helped.

Users with less than 50 reputation points cannot write comments on questions and answers that they don't own.  Why does this limit exist? But I want to contribute now. What should I do instead? But I can't write a good answer without more information! Shouldn't I be allowed to post comments if I have reputation on a different site? But I saw a new user posting a comment! How did they do it? Why do I need 50 reputation to comment on my own post?   See also:    in the Help Center


MainActivity  com.example.vivek.settleup; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.util.Log; import android.view.Menu; import android.view.MenuInflater; import android.view.View; import android.widget.Toast;  public class MainActivity extends AppCompatActivity {     Toolbar toolbar; DrawerLayout drawerLayout; private static final String log = "myLogg"; @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     toolbar = (Toolbar) findViewById(R.id.toolbar);     setSupportActionBar(toolbar);     drawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);     toolbar.setTitle("Home");     getSupportActionBar().setTitle("Home");     toolbar.setNavigationIcon(R.drawable.ic_action_name);     toolbar.setNavigationContentDescription("Navigation Icon");     getSupportActionBar().setDisplayShowHomeEnabled(true);     toolbar.setNavigationOnClickListener(             new View.OnClickListener() {                 @Override                 public void onClick(View v) {                 Toast.makeText(MainActivity.this,"touched",Toast.LENGTH_LONG).show();             }         }      );      NavigationDrawerFragment1 drawerFragment = (NavigationDrawerFragment1) getSupportFragmentManager().             findFragmentById(R.id.fragment);             drawerFragment.setUp(drawerLayout,toolbar); /**this call is throwing nullpointer exception**/    }    @Override   public boolean onCreateOptionsMenu(Menu menu) {       MenuInflater inflater = getMenuInflater();       inflater.inflate(R.menu.main,menu);       return super.onCreateOptionsMenu(menu);   } }   NavigationDrawerFragment1  package com.example.vivek.settleup; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.widget.Toolbar; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup;   /**  * A simple {@link Fragment} subclass.  */ public class NavigationDrawerFragment1 extends Fragment {     DrawerLayout mDrawerLayout;     ActionBarDrawerToggle mDrawerToggle;     private static final String log = "myLog";      public NavigationDrawerFragment1() {         // Required empty public constructor     }      @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container,                              Bundle savedInstanceState) {         // Inflate the layout for this fragment         return inflater.inflate(R.layout.fragment_navigation_drawer_fragment1, container, false);     }      public void setUp(DrawerLayout drawerLayout, Toolbar toolbar) {         mDrawerLayout = drawerLayout;         mDrawerToggle = new ActionBarDrawerToggle(getActivity(),drawerLayout,toolbar,                 R.string.drawer_open,R.string.drawer_close){              @Override             public void onDrawerOpened(View drawerView) {                 super.onDrawerOpened(drawerView);             }              @Override             public void onDrawerClosed(View drawerView) {                 super.onDrawerClosed(drawerView);             }         };         mDrawerLayout.addDrawerListener(mDrawerToggle);     }     }


I noticed that for elliptic curves of the form $y^2≡x^3+a\pmod p$ sometimes the number of points is always $p+1$ for any choice of $a$. This seems to be the case for all $p ≡ 5 \pmod 6$. Moreover, when this does not happen, i.e., for $p ≡ 1 \pmod 6$, it looks like there are exactly zero curves of such form where the number of points is $p+1$. Can someone point me towards the right direction as to why this happens?

Let $p > 3$ be a prime such that $p \equiv 2 \pmod 3$. Define the elliptic curve $E$ over $\mathbb{F}_p$ by $y^2 = x^3 + 1$. Prove that $E(\mathbb{F}_p)$ consists of $p+1$ points.  Using Fermat's little theorem you can prove that $x^3 + 1$ is a bijection on $\mathbb{F}_p$. Hence, $$\#E(\mathbb{F}_p) = \#\{(x,y) \in \mathbb{F}_p^2 : y^2 = x^3 + 1\} + \#\{\infty\} = \#\{(x,y) \in \mathbb{F}_p^2 : y^2 = x\} + 1.$$ But then I am stuck trying to prove that $y^2 = x$ has $p$ solutions $(x,y) \in \mathbb{F}_p^2$.


Let $G$ and $H$ be finite abelian groups. Show that if for any natural number $n$ the groups $G$ and $H$ have the same number of elements of order $n$, then $G$ and $H$ are isomorphic.   I know, that   for an infinity group doesn't work : $ \Bbb Z_{27}$  It seems to me that I can use finitely-generated abelian group  It is possible that this simple fact, but I would ask  to write a proof .

Suppose $G, H$ are finite abelian groups with the same number of elements of any given order. Show they are isomorphic.   Since finite abelian groups are isomorphic if and only if their Sylow subgroups are, we may restrict our attention to the case where $G, H$, are $p$-groups, but I can't quite make it past there...


Is there any difference is placing a question mark before the exclamation mark and placing a question mark after the exclamation mark? More like... the speaker is astonished more or confused more?

We've all wanted to express certain questions, rhetorical or not, with annoyance, excitement, surprise, frustration and so on. What better way than with both a question mark (?) and an exclamation mark (!), right? I've seen two ways of punctuating such questions:  Where is this place?!    Who do you think you are!?  (Things like ?!?, !?!, ?????!!!!!, ??!?!!?!?!!??, etc are irrelevant here.) Which is the proper way to order the two symbols? Or does each of the above two have a distinct and grammatically correct meaning? Or is the interrobang (‽) the clear winner here? ;)


Is measuring the  of an object a way of measuring the strength of the gravitational force between the atoms of the object (measuring quantum gravity)? From reading Snell's law of refraction, it would appear that the refraction index is caused by  based on the mass of the object. With the  being 1.52, it would appear that the force of gravity is very strong at the atomic level.

So light travels slower in glass (for example) than in a vacuum. What causes light to slow down? Or: How does it slow down? If light passes through the medium, is it not essentially traveling in the "vacuum" between the atoms?


In a thesis, is it allowed to include graphs from other papers without an explicit permission from the publisher? (assuming citation is provided)

In the introductory chapter of my thesis, I've been surveying the previous work in my field. As part of this, I've used images from some of those publications and included them as Figures in my own thesis.   Occasionally, I have slightly edited them - for instance, changing the labelling.   I usually only use one image from each paper.   My understanding is that this falls under academic fair use, and I do not need permission from any of the publishers to re-use these images in my thesis.   Am I correct?   Update:  It is fairly easy to get permission using RightsLink with most publishers. Just fill out the form on the website and you get the licence immediately.   Bill Barth's comment is extremely important - fair use is a defence rather than a prophylactic and I for one don't want to be in a position of having to defend my use of Figures in a court of law.   Of course, it is extremely unlikely that any publisher would do such a thing, but my feeling is it's better to be safe than sorry.


I have a RaspberryPi. I want to download a big file with wget but the problem is that once I log into the Pi and use wget to download the file, it will abort the download when I close the session.  How can I force wget to continue the download after the session is terminated?

I sometimes have long running processes that I want to kick off before going home, so I create a SSH session to the server to start the process, but then I want to close my laptop and go home and later, after dinner, I want to check on the process that I started before leaving work. How can I do that with SSH? My understanding is that if you break your SSH connection you will also break your login session on the server, therefore killing the long running process.


What is the right or the best way to backup and restore android app data by terminal emulator in a rooted phone?  su -c cp -r /data/data/the.app.id /sdcard/the/backup/directory can copy the app data, but copying them back will cause some problems. For example, the owner and group of them are not correct, permissions are not right, only root can access them.  I've searched for a while and got some solutions that I don't want. adb backup the.app.id needs a computer. Some apps cannot access sdcard, so switching to it then copying is not possible. Also, to copy it, iterate through the whole directory and chmod with root takes a lot of time and may not work.  If the question needs more explanations, please tell me by comment. Thanks for reading or answering this.

I am able to backup my app's data from the root/data/data/you.package.name directory by just moving it to SD card manually. however, when i reverse the process,                                                                                AKA paste the data back to simulate a restore, the app just force closes, i have tried it with a bunch of apps and noticed the same reaction. Where am i wrong?


I'm new to the photography scene and although I managed to take a reasonable night time lightning strike on long exposure, during the daytime, I can't seem to get it right (too bright) and a friend told me to use an ND Filter. Is this something to consider and what type as my research led me to so many different types.   I am using a Canon 600D with the 18-55mm kit lens.

I've seen a few related posts on the site but nothing specifically on this point:  I'd like to be able to take long exposure photos during daylight (like the examples in ). I'm told that you can do this by using a neutral density filter. So my question is: what is a neutral density filter exactly, and how is it used to achieve that smooth long exposure effect?


I just visited , and Stack Exchange offered to log me in, so I did so (refreshing the page in the process). The page then told me that I should upvote the question and answers if I found them useful. I can't upvote them, because the question is locked. Since I can't actually vote, I shouldn't have been prompted.

I just opened a URL to a question on programmers.SE and got the message:     But the question was locked, so I couldn't do what it asked me to do.  I consider this to be a very minor edge case bug and it's likely not worth investing developer time into it. But since this  I guess it's worth reporting even if it's just for making you aware of it.


I dont get how the following codes work?  function odd($var){    return ($var & 1); } echo odd(4); /* returns and print 0 */ echo odd(5); /* returns and print 1 */   this function returns true if argument is an odd number  and returns false if argument is an even number. How it works ?

I'm someone who writes code just for fun and haven't really delved into it in either an academic or professional setting, so stuff like these bitwise operators really escapes me.  I was reading an article about JavaScript, which apparently supports bitwise operations. I keep seeing this operation mentioned in places, and I've tried reading about to figure out what exactly it is, but I just don't seem to get it at all. So what are they? Clear examples would be great! :D  Just a few more questions - what are some practical applications of bitwise operations? When might you use them?


I currently have an server with an E5-2620V3 6 cores cpu.  I run an python app using nginx and gunicorn.  If I load test the app with 150 clients in a continuous loop it has a throughput of 20k req/minute. However the cpu is only used for 40%.  I can switch to the same cpu with 12 cores.   Will this double my throughput given that there are no I/O, memory bottlenecks?

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


I am using Ubuntu 19.04 and getting this error.    How to fix this?

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


Scenario 1  public static void main(String[] args) throws Exception {         String s1 = "Testing";         String s2 = new String("Testing");         s2.intern();         if(s1==s2){             System.out.println("s1 equals to s2");         }else{             System.out.println("s1 is not equal to s2");         }      }   OUTPUT:    s1 is not equal to s2.  Scenario 2  public static void main(String[] args) throws Exception {                String s1 = "Testing";         String s2 = new String("Testing").intern();         if(s1==s2){             System.out.println("s1 equals to s2");         }else{             System.out.println("s1 is not equal to s2");         }     }   OUTPUT:  s1 equals to s2 .  My question is what is the difference between new String("Testing") and new String("Testing").intern() ?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


So I'm trying to render something beautiful for my PHP code using the \lstdefinestyle command.  I think the basic configuration is good, but I would like to highlight the function name to render it in the color normal.  Here is my code:  \documentclass[10pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{listings}             % to insert code \usepackage{xcolor} \definecolor{background}{RGB}{40, 44, 52}           % gris foncé \definecolor{comment}{RGB}{92, 99, 112}             % gris clair \definecolor{keyworld}{RGB}{86, 182, 194}           % cyan \definecolor{string}{RGB}{152, 195, 121}            % vert \definecolor{identifier}{RGB}{198, 120, 221}        % mauve \definecolor{classic}{RGB}{224, 108, 117}           % genre de rouge \definecolor{normal}{RGB}{171, 178, 191}            % blanc \definecolor{specialkeyworld}{RGB}{229, 192, 123}   % jaune orange \definecolor{veridad}{RGB}{209, 154, 102}           % orange jaune  \lstdefinestyle{myPHP}{   language=PHP,                 backgroundcolor=\color{background},      basicstyle=\footnotesize\ttfamily\color{normal} ,        keywordstyle=\color{keyworld},        commentstyle=\color{comment},        numberstyle=\color{background},    identifierstyle=\color{classic},   stringstyle=\color{string},       emph        =[1]{function,try,return,catch, new},   emphstyle   =[1]\color{identifier},   emph        =[2]{Exception, PDO},   emphstyle   =[2]\color{specialkeyworld},   emph        =[3]{true, false},   emphstyle   =[3]\color{veridad},   emph        =[4]{connectAccess},   emphstyle   =[4]\color{normal},   stringstyle=\color{string},        breakatwhitespace=false,                 breaklines=false,                            keepspaces=true,                   numbers=left,                      numbersep=4pt,                    showspaces=false,           showstringspaces=false,       } \begin{document}     \begin{lstlisting}[style=myPHP]     /**      *  Connect an Access database      *  @param  string  $path   Name of the database you want to connect to      *  @return PDO object initialise      */     function connectAccess($path){       try {         $db = new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb)}; Dbq=$path;");         return $db;       } catch (Exception $e) {         echo 'Connection failed: ' . $e->getMessage();         return false;       }     }     \end{lstlisting} \end{document}   and the result :     I would like to replace the two lines    emph        =[4]{connectAccess},   emphstyle   =[4]\color{normal},   with something that will highlight what is between function and ( without selecting those two, because I will be displaying a lot of code in my document and I dont want to escape the function name each time.  I've tried moredelim=[is][\color{normal}\ttfamily]{function}{(}, but it render like this :     with moredelim=[s][\color{normal}\ttfamily]{function}{(}, the 'function' selector is also rendered in the \color{normal} font...  and I have pretty much the same results with morecomment.  What am I doing wrong? aren't moredelim and morecomment the right parameters to use? if not, what are the original purpose of these two?  Is there a(nother) way to do it or will I have to escape the function name each time?  Thank you for your time and answer, Guillaume

I want to implement a function name color highlighting and I use the listings package. My 'regex' for this is def %s( where def (including space) is the first delimiter %s is the function name and ( is the second delimtier. Now my aim is to color only %s in purple. So basically I want to only touch the part between the delimiters and the delimiters should stay untouched.  Here is what I tried so far:  \documentclass{article} \usepackage{xcolor,listings} \usepackage[ngerman]{babel} \usepackage{fontspec} \setmonofont{Courier New}  \begin{document}  \lstset{language=Python,     escapebegin=\color{orange},     keywordstyle=\color{blue}\bfseries,     commentstyle=\color{orange!80!red},     stringstyle=\ttfamily\color{gray},     %moredelim = [is][\color{blue}\bfseries def \mdseries\color{purple}]{def\ }{(},     moredelim = [s][\color{purple}]{def\ }{(},     showstringspaces=false} \lstset{literate=%    *{0}{{{\color{red}0}}}1     {1}{{{\color{red}1}}}1     {2}{{{\color{red}2}}}1     {3}{{{\color{red}3}}}1     {4}{{{\color{red}4}}}1     {5}{{{\color{red}5}}}1     {6}{{{\color{red}6}}}1     {7}{{{\color{red}7}}}1     {8}{{{\color{red}8}}}1     {9}{{{\color{red}9}}}1 }  \begin{lstlisting}[basicstyle=\ttfamily,mathescape] def fancy_function_name(page_url = 'tex.stackexchange.com'):     return page_url.split('.')[0] \end{lstlisting}  \end{document}   This code will generate:   You can see that it matches the right place but is too greedy and colors the delimiters too. So I thought about the uncommented line: %moredelim = [is][\color{blue}\bfseries def \mdseries\color{purple}]{def\ }{(}, If I use this one and uncomment the line below I get this result:    It's nearly what I wan't but I cannot add the last, now missing ( in black color.  Does anyone has a solution for this without pretouching the code and add all the @@ symbols?


I am creating a program that fixes ALL issues with Windows Update. I need to make this program create a shortcut on the desktop. I am using Iexpress.exe. I will be installing this on many computers with different user account names. I cannot specify the user account if I type in the file path like C:\Users\%Cannot specify user%\Desktop.

how to create a shortcut for a exe from a batch file.  i tried   call link.bat "c:\program Files\App1\program1.exe" "C:\Documents and Settings\%USERNAME%\Desktop" "C:\Documents and Settings\%USERNAME%\Start Menu\Programs" "Program1 shortcut"   but it did not worked.  link.bat can be found at


I wanted to change my theme, so I installed the gnome-shell-extensions pachage.  Unfortunately, all I got was something like this:

This is how my desktop looks after the update, the top bar turning grey and the addition of the bottom bar happened after the update.    From my searching of screenshots this does not appear to be how it is supposed to be. Is there any way to fix it?


I know I can see a list of upvotes in the user profile section, but the list is paginated so I often have to click through the pages to find a specific answer.    It would be very helpful if it was possible to search/filter the upvotes list.  Is there a way to do this I have not yet found?

I voted for an answer, but forgot to mark that question as a favorite.  I don't remember:   the user who asked the question the user who answered the question the question's title   The only thing I remember is that I voted the accepted answer.  How can I find it again?


I'm trying to import downloaded SVG-Files into QGIS to use them as layer symbols, but nothing works. This question was asked before, but unfortunately, the suggested solutions don't work.  When I do      "Settings->Options->System->SVG Path"    And open the folder, there are no files in it. The only way I can access those is by opening the folder without any QGIS involved, click on the files and open them in a browser, then it shows me the symbol, but after hours of trying I didn't find any possibility to import them into QGIS.   I only can open them in the browser-window, but not add them as a layer. When right-clicking on properties it says under the headline "Meta Data": Error.  It would be very nice if someone could help me. I may try to figure out the problem more extensive.

I've downloaded the SVG icon pack from   Using the Import from URL has never worked for me, so how do I import these symbols into QGIS?   As far as I can tell I need an .XML defining each symbol.


I want to write something like $|X|||G|$ but it is not clear that order of X divides order of G. How can I make this right?

In group theory it happens very often that you want to say: "The order of $H$ divides / does not divide the order of $G$." But the length of | is then always the same:  $ |H| | |G| $ produces |H|||G|  which is not ideal at all. (The negation \nmid has just this length too.) The length of "divides" should be longer than the "cardinality length". I could use   $ |H| \big| |G|$  but then there is no good way to say "does not divide" with the same length. Also, \big| is no solution when the expression has to be used in subscripts.   I thought it was just me, but I asked other group theorists, and nobody had a solution. I hope there is one.  I am seeking a division sign which is a little longer than the usual | , allows negation (with the same length) and proportionally correct use in subscripts (also under \sum etc.). It does not look professional if the "order sign" has the same length as the "divides" sign. (And what about combinations with absolute values, norms - although personally I don't use them as often as group orders.)


I want to save multiple files into a PDF presentation in Photoshop. When I save it at the high pdf setting the file is much too big. when I save it at the low quality option its too small and the quality falls significantly. Can I set a Photoshop PDF presentation to set too a particular file size in between eg. 10MB

Is there a way when exporting a .psd as a .pdf to make the file smaller?   My client always has me work in Photoshop and send them finished work as .pdf's, but they say the files are too big. These products are eventually printed out, so while I need to make the files smaller, they still need to have good quality. Everything is in CMYK mode already. I just don't know a lot about compression and changing file sizes


I wanted this:    Hence my solution was  Solution: \begin{enumerate}[label=(\alph*)] \item  \leavevmode\\[-2.75\baselineskip] \begin{flalign*} \mbox{US}\$10 &= \mbox{S}\$10\times1.33&\\ &= \mbox{S}\$13.30& \end{flalign*} \item  \leavevmode\\[-2.75\baselineskip] \begin{flalign*} \mbox{S}\$1 &= \mbox{US}\$1 \div1.33&\\ &= \mbox{US}\$0.75188&\\ \mbox{S}\$20 &= \mbox{US}\$20\times0.75188&\\ &= \mbox{US}\$15.04\mbox{ (2DP)}& \end{flalign*} \end{enumerate}   Is there a more elegant way of doing this? As I need to guess about the spacing to shift up the equation beside (a) using [-2.75\baselineskip].

How to make the first line of aligned equations sit in the same baseline as the bullet and make the equation left justified?    \documentclass{article} \usepackage{amsmath} \begin{document} \begin{itemize}     \item $3!=3\times2\times1=6$     \item $\tfrac{5!}{3!}=\tfrac{5\times4\times3!}{3!}=5\times4=20$     \item \begin{align*}                     \frac{n!}{(n-2)!}   &=\frac{n\times(n-1)\times(n-2)!}{(n-2)!}\\                                                         &=n\times(n-1)\\                                                         &=n^2-n                 \end{align*} \end{itemize} \end{document}


Im new to js so sorry if this is common knowledge. I tried to search but couldnt find exactly what im looking for.  Ive created a sceduling system and part of its job is to calculate a completion date. Its been working fine for a few months but one of my users noticed some schedules were a day early. After some bug fixing I narrowed the issue down to one line of code and one specific date. The date is Sunday 31st March (UK clocks change on this date for daylight saving).  function calculateCompletionDate(startDate, duration) { let currentDate = new Date(startDate); while (duration > 0) {     let check = checkIsNotWeekend(currentDate);     if (check) {         if (duration === 1) {             break;         }         currentDate.setDate(currentDate.getDate() + 1);         duration--;     }     if (!check && duration >= 1) {         currentDate.setDate(currentDate.getDate() + 1); // this line fails on March 31st!!     } } return currentDate;   }  The problem I found is at on March 31st, the increment only adds 23 hours 2019-03-31T00:00:00.000Z - 2019-03-31T23:00:00.000Z. The knock on affect is the loss of a day.  Has anyone got any ideas what im doing wrong?   Thanks alot,  Dan

How to add days to current Date using JavaScript. Does JavaScript have a built in function like .Net's AddDay?


I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.


Using \underbar{Categorical} produces    But how do I automatically produce \underbar{Cate}g\underbar{orical}, which looks like    I mean automatic in the sense that I don't have to single our the g, or other long letters like y and j etc.

I'm very well aware that it is considered best practice not to use underlining other than on typewriters and in handwriting. But sometimes it is needed nonetheless.  In my opinion the typographically least offending way to underline in print is to leave out the descenders. This is also how I learned to do it in handwriting. Very few fonts offer a pre-made underlined variant, but some text-processors (e.g. OS X text-engine) do -- depending on the font used -- an acceptable job at emulating this effect:    How would I tweak any of the existing ways/packages for underlining to do the same?  As a bonus, I'd like to be able to tweak the behaviour (extent of the omitted part, apply to which letters) per font and text style, preferably working with XeLaTeX.


When customers reply to any of our promo emails or our ship confirmations, the email address that auto populates for our response looks like this: blablabla.hotmail.com@companyname.com  The reps answer emails really quickly and often forget to change the email to the correct format.   Is it possible to fix this, in a way that just customer email auto-populate when reps are responding back to customers?

We've set up RMM to forward replies to routing address and SFMC adds our subdomain to the replier's From email address (i.e. replier@gmail.com becomes replier.gmail.com@oursubdomain.com). However, their reply-to address remains the same.  It seems like DMARC Forward Reply Rewrite is enabled, but we were advised not to touch it as that may affect email deliverability.  Is there any workaround to this? And what will happen if we disable this feature?


When I open a request to a server it opens to a default directory (user directory).  I want to get a file that is in a completely different path.              FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://" + txtHost.Text);             request.Method = WebRequestMethods.Ftp.ListDirectoryDetails;             request.Credentials = new NetworkCredential("xxxx", "yyyy");             request.UseBinary = true;             FtpWebResponse response = (FtpWebResponse)request.GetResponse();   Now the request points to '\user\ssfactor' and I want a file in '\factor\dktest\pdi'  Is this possible?  If not, can someone offer me another programmatic way? I tried Ssh.Net, but it only seems to work on ssh servers.

Can someone tell me how to change directories using FtpWebRequest?  This seems like it should be an easy thing to do, but I'm not seeing it.  EDIT  I just want to add...I don't have my heart set on FtpWebRequest.  If there's a better (easier) way to do FTP in .NET please let me know.    Apparently there's no way to do it using a live connection, you need to change the uri to trick ftpwebrequest into using a different request (thanks Jon).  So I'm looking for a 3rd party client...  Some of the open source solutions I tried didn't work too well (kept crashing), but I found one open source solution that's passed some of my preliminary tests ().


Here is a report when I run boot-repair off a live-usb   So at this point I can either:  A.  Set my booting priority in BIOS to my SSD with Ubuntu 16.04, get the grub2 menu but no option to boot into Windows 10 but two memtest86+ options.  or  B.  Set my booting priority in BIOS to Windows Bootloader (the SSD with Windows 10), the computer starts up Windows 10 and grub2 doesn't show up at all.  How do I go about dual booting so that I can boot from my Ubuntu 16.04 drive -> grub2 and have the option to select which OS I want to boot from?  On a side note, is there a significance after this process is done for the memtest86+ options?  I've honestly tried a bunch of links but if there is one I missed that addresses this particular case please direct me.  Thank you  EDIT:  A user posted a link to this question:     and after following those steps now I end up with no grub2 menu at all upon startup.  Will edit further after I run boot-repair.  EDIT:  After booting from live-usb and running boot-repair this is my report:    So the original problem has now changed to not being able to boot into grub2 at all.  Please don't direct me to more links that don't answer my question and make my problem worse.

I have finally installed Ubuntu on my second drive. When I start my computer GRUB only offers me to boot Ubuntu, not Windows 7. What needs to be done so that I can choose between Ubuntu and Windows in GRUB?  When I press F12 for boot menu at startup and I choose Windows Boot Manager it boots into Windows 7.    I ran command sudo fdisk -l and here is log ():  WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0xc3ffc3ff     Device Boot      Start         End      Blocks   Id  System /dev/sda1               1  1953525167   976762583+  ee  GPT Partition 1 does not start on physical sector boundary.


I am new to latex. I am able to define symbols for instance: \newcommand{\imageA}{\includegraphics[width=3em,valign=c]{image_01}}  I can call this symbol (\imageA) multiple times thus greatly simplifying my code. How can I define a function that is similar to the symbol above except that it can take the name of an image as an argument \functionA{image_01}? Question How do I define a latex function that takes as an argument the name of an image (image_01.png) and outputs: \includegraphics[width=3em,valign=c]{image_01.png}  So that I can call this function multiple times with different arguments in math mode: \[ \functionA{image_01.png} \functionA{image_02.png} \functionA{image_03.png} \]

I set this new command:  \newcommand{\dd}{{\rm d}}   I want to set the same command but now in a generic way. Something like that:  \newcommand{\##}{{\rm #}}   How to do that?  Edit: The new command that I set (\newcommand{\dd}{{\rm d}}) only works for the letter d right?  I want to write the same new command but now working with any letter.


This particular question was asked in masters entrance of a university for which I am preparing.  Question Let $p$ be a prime number. How many distinct subrings ( with unity) of cardinality $p$ does the field $\mathbb F_{p^2}$ have?   $0$  $1$  $p$  $p^{2} $   Unfortunately, I am unable to even start this question as such kind of questions were not done during Abstract Algebra course. So, I am unable to show any attempt. Also, this question was asked before here:  But I had some questions in proof of Answer, so I asked user who answered to supply the proof. But as he didn't supplied the proof, so I have no option other than asking it here.  Question in the answer of User who answered the question in link are : 1.why subring will always be a vector space over prime field?  2.Can you please prove it. Also, how does dimension of $F_{p^2}$ over prime field must be 2.  Also if someone wants to answer with a different approach, that also would be really appreciated.  But kindly  give a proof of a result which you are assuming.

let $p$ be a prime number; then  how many distict subrings (with unity) of cardinality $p$ does the field $F_{p^2}$ have?  1.$0$  2.$1$  3.$p$  4.$p^2$  I think it will have only one subring of cardinality $p$. Am I right?


I have Ubuntu 16.04 on my computer and I recently installed GNOME 3.18, alongside Unity.   Being used to having the window buttons on the left side, I changed their position with  some command lines I found on the web. The only problem is that by doing so I also added minimize and maximize buttons which I didn't want.  I tried to remove them and although I did it the buttons remained on core apps such as files and maps. I tried out everything I could think of, but the GNOME Tweak Tool doesn't do much and neither do the commands I found on the net.   Does anyone have any idea?

I am using the  for GNOME Shell, similar to the old Maximus extension for GNOME 2 / Unity. When I maximise a window, the title and menu bars are hidden.  But I don't want the minimise, maximise or close buttons to appear in the Activity Bar. , so I have been able to remove the minimise and maximise buttons by disabling them in Tweak Tool.  How do I similarly disable/remove the close (X) button?  (I guess this is the opposite of )


I'm looking to get a tattoo of the gate depicted in episode 63, but I don't know what it is that I'm looking for. I know that there are two gates, and one of them is "The Tree of Life".  I'm looking for the other one, depicted in this screenshot from episode 63 at 16:46:     What is depicted on the second gate?

In Fullmetal Alchemist the door in the Truth realm has a huge symbol with all kinds of things on it:    I've seen the opening of Neon Genesis Evangelion today and noticed that the same symbol is shown in the beginning of the opening around 0:10 - 0:13.  I first thought that it was just a random symbol in FMA, but now that I've seen it in the opening of NGE, I believe that it must come from something else since there is no connection between those anime.   What is this symbol, where does it come from and what does it describe?  Here is a more detailed picture of the symbol:


I am a fairly new user to Ubuntu.  As stated in the title, I have a Dimension 2400 that I put 13.04 on.  Everything seemed to go perfectly, once I booted it up I got to my login, and then *Boom, nothing happens, all I see is my mouse and wallpaper.  I have done most of what has been said already in the forums:   Remove your xorg.conf  sudo rm /etc/X11/xorg.conf  Reinstall xorg completely  sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-dri:amd64  sudo dpkg-reconfigure xserver-xorg  Reboot  sudo reboot  dconf reset -f /org/compiz/  unity --reset-icons &disown  sudo apt-get update sudo apt-get install --reinstall ubuntu-desktop    I have also tried this:     Press Ctrl+Alt+F1 and log in.      Install the jibby you'll need to configure the settings by running   this:  sudo apt-get install compizconfig-settings-manager       Then run it by doing this:  export DISPLAY=:0 ccsm       The first part tells the terminal which display you want it to load on   (otherwise it won't have a clue).      Press Ctrl+Alt+F7 (or Ctrl+Alt+F8 sometimes) to get back to the   graphical display where there should be a CompizConfig Settings   Manager screen sitting there.      Find the Unity plugin. Enable it.      Everything should spring into life but if it doesn't, you might have   to restart. You can do that by going back to TTY1 and running sudo   reboot.   And still nothing works. Every time I log in, it's still the same screen.  *During using ccsm I can see the unity plugin, but it dosen't have a checkmark next to it.  I have to open it up, to then try and enable it.  But it never gets enabled.  Additionally I have tried to run this command just for it to say Command not found yet I can browse to the exact spot it's in.  /usr/lib/nux/unity_support_test -p   Also when I run echo "$DESKTOP_SESSION" it comes back with ubuntu, which means unity 3d should be running.  Please help, at this point I am so lost, and just want to go back to running Windows.    This is what my screen looks like after login. Nothing is there:

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


Output from Node.js repl:  > ["1", "2"].map(i => parseInt(i)); // correct [ 1, 2 ] > ["1", "2"].map(i => i); // correct [ '1', '2' ] > ["1", "2"].map(parseInt); // what is causing the NaN? [ 1, NaN ]   Should not the last result be [1, 2]?  Version:  $ node --version v6.9.1

From the :  [1,4,9].map(Math.sqrt)   will yield:  [1,2,3]   Why then does this:  ['1','2','3'].map(parseInt)   yield this:  [1, NaN, NaN]   I have tested in Firefox 3.0.1 and Chrome 0.3 and just as a disclaimer, I know this is not cross-browser functionality (no IE).  I found out that the following will accomplish the desired effect. However, it still doesn’t explain the errant behavior of parseInt.  ['1','2','3'].map(function(i){return +i;}) // returns [1,2,3]


Occasionally when I am trying to figure things out with someone asking a question, I come to the conclusion that it would be better to use the chat. This typically happens well before the stage where the software will automatically prompt ("Comments are not for extended discussion. Would you like to take this discussion to chat?"), and sometimes even a third party will intervene ("could you please take this to chat") before the software would come to that conclusion. The problem is, it is an incredible amount of work to actually do so, and even I - as a nearly 10-year veteran - struggled to figure out a way to do it at all. See, I did the things that are expected of a self-reliant problem solver. After failing to observe anything in the UI directly, I did a web search and managed to find a 9-year-old (!) meta.SE post with comments (!) claiming that there is a "Chat" link at the top of SO and every SE site. That still didn't highlight the next step for me, but it at least offered a hint. Eventually I figured out that that there is a plain text, normal-sized, linked word "chat" (!) between "help" and "log out" (!!) inside the drop-down menu on the far right (!!!). I want to make it clear here that people can use the Stack Exchange network perfectly well day-in, day-out without ever opening that menu, or even necessarily recognizing it as a menu. So it seems miraculous to me that I was even able to figure out that much, and have no idea how or why I should be expected to know about this obscure "chat" link. But even then, it does not solve the problem. Once I have clicked chat here, I - apparently - have to scroll to the bottom of page 1 of the list of existing chat rooms, find and click a "create a new room" button that is labelled in quite small text, fill out a form to create the room - and then go back to the original post in order to write a comment manually including an invite link. All of this to reproduce what is single-click functionality - but only when the system arbitrarily decides that it's had enough comment spam. I am on my hands and knees - please help me to avoid spamming comment sections, because I do not want to spam comment sections. It has been  that people have been asking for this, and now when I search I am sent around in circles of such ancient meta posts (, ). As far as I can tell from those posts, there has never been a non-trivial objection to this feature, just... a lack of action. The last link in particular shows many well-respected community members filing in at various points over the last 9 years to voice support. I don't understand why the site bothers to offer chat functionality at all if it's going to be this obscure. I have an easier time figuring out Wikipedia governance's internal processes than this.

When comments get too chatty the move-to-chat feature asks if you'd like to move it out. But this often happens after the fact and thus doesn't prevent it.   I propose that:   Move-to-chat be provided as a button along side so that a user who knows their question or conversation may become drawn out may elect to preempt and take the conversation "off-line"


Consider set $$A=\{1/n:n\in\mathbb{N}\}$$ show that 0 is only limit point. Though I prove that but to prove 1 is not a limit point. For this  consider neighborhood  $(1/2,3/2)$ of 1, so if we delete 1 from it we get points like 0.6 , 0.7, 0. 8 but the set $A$ also contains it as it is between 0 to 1. Please let me know where I am incorrect.

In $\mathbb{R}$ , what is the limit point of the set $G= \{1/n: n \in \mathbb N\}$?  Definition:  A point $p \in X$ is a limit of of E if every neighborhood of $p $ contains a point $q \in E$ $q\neq p$  I do understand $0$ is a limit point but shouldn't it be the case that all the points in [0,1] are limit points by the definition?


I had lost my wallet at the Amsterdam airport which had my residence permit, issued by a country in the Schengen area. I realized it only when I reached my destination. Luckily, the authorities found my wallet and my residence permit. The problem is that it is with the authorities in Amsterdam, while I am in Dubai. When I spoke with the authorities, they told me I can travel to Amsterdam and tell the Immigration officer that my residence permit is with them.   Still, I am worried that the airline won't let me check in without it. I do have a duplicate copy.   UPDATE:   The Lost and Found department has found my wallet and now the immigration officers have my residence permit.  A big lesson learnt : Even though you lose your IMPORTANT PROPERTY in an airport, try to contact the lost and found department of the airports to check if they have your lost property.

My friend got stuck in Morocco and is not allowed to come back France as she lost her residence permit card.   She has a long stay visa and residence permit card (carte de séjour, type: student) in France. Unfortunately, it was stolen in France just a couple days before her departure to Morocco (Chinese are able to travel to Morocco visa-free). She filed a police complaint of the loss (Récipicé de déclaration) and hadn't obtained the new permit card before her departure.   When she tried to come back, the airline staff declined her at check-in, as she doesn't have a visa for France. Now, she's stuck in Morocco.  She tried to ask for a return visa (visa de retour) from the French Embassy in Casablanca, but they declined her request. They also suggested that she return to China to apply for a new visa.   Instead of going back to China, are there other solutions to allow her to return to France?     Update:  Finally, I suggested my friend buy a combined ticket, Morocco --> France --> China, and try to go through French customs. Luckily, the officials in Paris passed her through customs. She is on the way to the Pink City:-)


If I have this code:  class MyClass {... } ... std::vector<MyClass*> myObjects; for(int i = 0; i < 4; i++) {     MyClass m;     myObjects.push_back(&m); }   Is code such as this safe? Note that I am not "newing" the objects up, but creating them on the stack, but storing pointers to them. i.e. what (if anything) in the C++ spec is there that guarantees that it won't "re-use" (part of) the stack memory that m occupies, either for a subsequent iteration of the loop, or for something else entirely?  It compiles fine and seems to work ok. But I'm not sure whether there is any mechanism that recognises that I have taken a pointer to the object, so don't overwrite the memory address with something else.

I see in C++ there are multiple ways to allocate and free data and I understand that when you call malloc you should call free and when you use the new operator you should pair with delete and it is a mistake to mix the two (e.g. Calling free() on something that was created with the new operator), but I'm not clear on when I should use malloc/ free and when I should use new/ delete in my real world programs.  If you're a C++ expert, please let me know any rules of thumb or conventions you follow in this regard.


I have found myself in situtations where the internal battery has been used frequently. How do I check its status without diving into the mountain of directories?  NOTE I need to know about the CMOS battery. not the laptop's power supply, so this isn't a duplicate of those questions

I would like a command that displays the battery status in the terminal.


Why is my render not working?  I have tried setting camera, render setting in EEVEE or cycle also render progression in 0%

A scene I made is not rendering, at all. This grey screen stays the same and nothing changes.  Here are my settings:  [


I'm currently learning modeling for my game, below is a mesh I'm working on which will be part of my character model for unity.    I suspect the scaling in the front face will cause some distortion for the connecting faces, so I use the mesh clean up tools split non-planar faces    So the connecting two faces are indeed non-planar faces. I tried to fix it but there's no easy way at least for my current knowledge of modeling. Should I take care of it before I export it to Unity or this kind of non planar face is OK for game models?   I tried to google answers about non planar faces in modeling, the information is mixed as some articles saying non-planar faces are no but some post also says non-planar faces especially for biological objects are not something to be concerned as game engine will split them to triangles eventually, so I'm confused.  Edit: I have read the post , I think my problem here is: this mesh is gonna be a part of a mech, and I also want to keep the polygons low so I'm not sure if subdividing/smoothing it is the way to do it.

I think my question relates to a fundamental of 3D modeling that I haven't picked up on yet. It's very simple:  Let's say I have a flat quad. A plane on the XY plane inserted into am empty blender file is a great example. Now let's say I start moving each of the 4 vertices around on in any direction, especially the Z axis.   At this point, there would still be one face, but its extremely unlikely that the face would be planar (I just learned this word). So blender does its best to make sense of what this should look like.  The problem I'm having is that it seems like my quads are always like this, but they never look the way I want. There are edges and seams that look like they are dangling in space, and what tends to happen is that my mesh looks great when viewed from most angles, but if you look at it from just the right angle, you notice the dangling edges or sometimes even some kind of impossible geometry. And so I might try to nudge the problematic vertices around, but this often seems to either make it worse, or just hide the bad geometry until you see it from a different angle.  For me, this always seems to happen whenever I'm trying to move vertices to add roundness to something that is originally square.   There is another question on here about how to actually flatten the quads. That's great, and I might use some of the techniques mentioned there. My question is:   Why does this happen? (Can someone explain this better?) What are some tips and tricks to avoid this situation? What are some tips and tricks to mitigate this situation?   EDIT Here is an illustration:  The overall mesh as viewed from a distance looks decent (for my skill level)    But if you get closer and look from a certain angle...    Super close up:    The "edge" that is pointed to by the arrow is not actually an edge, but some kind of artifact created when blender tries to show the quad. The way the vertices are positioned, it shouldn't actually be possible to see the sliver of the face that I marked in red, since this face is supposed to be around the corner from the edges. The edges should form the silhouette on the right side of my figure.     Here is the side view. Maybe it is the angled topology that skews the face in a funny way?  But I'm not looking for help with this one particular issue, but rather a better understanding of why this happens, and ideas to prevent this in future models.


I have a Linux CentOS server, the OS+packages used around 5GB. Then, I transferred 97GB data from a Windows server to two folders on this Linux server, after calculated the disk usage, I see the total size of the two folders is larger than the disk used size.  Run du -sh on each folder, one use 50GB, the other one use 47GB  But run df -h, the used space is 96GB. (50GB + 47GB + 5GB) > 96GB  Is there any problem? Those two folders contain lots of files (1 million+). Thanks.

When I sum up the sizes of my files, I get one figure. If I run du, I get another figure. If I run du on all the files on my partition, it doesn't match what df claims is used. Why are there so many different figures for the total size of my files? Can't computers add?  Speaking of adding: when I add the “Used” and “Available” columns of df, I don't get the total figure. And that total figure is smaller than the size of my partition. And if I add up my partition sizes I don't get my disk size! What gives?


I am reading Naive Set Theorey by Halmos, and am struggling to understand the Axiom of specification.  I understand: Axiom of specification. To every set A and to every condition S( x) there corresponds a set B whose elements are exactly those elements x of A for which S( x) holds.  But I don’t understand what Halmos is talking about here: It follows that, whatever the set A may be, if B = {x ∈ A: x ∉′ x}, then, for all y, Can it be that B ∈ A? We proceed to prove that the answer is no. Indeed, if B ∈ A, then either B ∈ B also (unlikely, but not obviously impossible), or else B ∈′ B. If B ∈ B, then, by (), the assumption B ∈ A yields B ∈′ B–a contradiction. If B ∈′ B, then, by () again, the assumption B ∈ A yields B ∈ B–a contradiction again. This completes the proof that B ∈ A is impossible, so that we must have B ∈′ A. The most interesting part of this conclusion is that there exists something (namely B) that does not belong to A. The set A in this argument was quite arbitrary. We have proved, in other words, that nothing contains everything,  How can B ever belong to B?  Thanks in advance

In Halmos's Naive Set Thoery, I'm having a lot of problems in the Axiom of Specification. Halmos takes an example where a set $B$ is obtained from a set $A$ using the following specification:  $$B = \{x \in A : x \notin x \}$$  He then proceeds to prove that $B \notin A$.   While I'm still struggling with the proof, I have a more fundamental doubt here. Just a few lines ago he had argued that $A \notin A$ is an impossible set (which seems true enough), but doesn't the same reasoning apply to $x \notin x$? How can an element ever contain itself? It seems to me that because such a specification is impossible, it is absurd to derive any proof from it.  Please shed some light!


I get this error when I update the system:  W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 241FE6973B765FAE  is there something to work it out ?

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


The link text in the flag summaries displayed when you visit questions and answers as a moderator are showing the closing anchor tag (<\a>). I don't think they should be:

I awoke this morning to a spam flag on a site I moderate, and noticed this when I went to read the post.    Notice answered, which I imagine isn't meant to have the  there.  I also confirmed that this displays asked for other types of flags (namely, closed without comment).   I looked around for a duplicate of this but can't seem to find it, so maybe it's a recent change?


If $p^3+p=q^2+q$ where $p$ and $q$ are prime numbers,    Find all the solutions (p, q)    I tried to solve this exercise using that:  $p^2 = -1(\text{mod} \, q)$ and $q = -1(\text{mod} \, p)$;     So: $q+1=ap$ and $p^2+1=bq$, where $b$ and $q$ integers.   Then I tried to solve a quadratic equation, but I could not finish the problem

I need help proving the following statement:  For all integers $x$ and $y$, if $x^3+x = y^3+y$ then $x = y$  The statement is true, I just need to know the thought process, or a lead in the right direction. I think I might have to use a contradiction, but I don't know where to begin.  Any help would be much appreciated.


Pls help me in resolving this i can't enable the network adapter so that i can change my IP address.

I have a Debian Wheezy VM running in virtual box with the 1st adapter being NAT. However I want to also add a Host-only network but I can't add 2nd adapter to network for VM, it is grayed out.  Any ideas?


I am trouble proving $P(a\cap b)\ge P(a)+P(b)-1$  $P(a \cup b)=P(a)+P(b)-P(a \cap b) $  so  $P( a \cap b)= P(a)+P(b)-P(a \cup b)$  I am not a student.

I want to prove $P(A\cap B)\geqslant P(A)+P(B)-1$.  How can I simplify the following proof?  $P(A\cap B)=P(A)-P(A\cap B^\mathsf{c})=P(A)-1+P(A^\mathsf{c}\cup B)=P(A)-1+P(A^\mathsf{c})+P(B)-P(A^\mathsf{c}\cap B)=P(A)+P(B)+P(A^\mathsf{c}\cap B^\mathsf{c})-1\geqslant P(A)+P(B)-1$


I'm trying to locate the dimensions of the object in 2.81. I'm watching an online tutorial made in 2.7. In Transform object properties used to be Dimension window after Scale Window. Is the window moved in another property or it became irrelevant and taken off for good? Thank you.

Anyone seen this panel? Essential for precise modeling.


i want to multiply 10.03 to 100 (exactly : 10.03 * 100). I wrote this code below. but the output is not what I expected. i think the output should be 1003.0 but it prints 1002.9999999999999 why does it happen? here's my code : public class ComputeChange {  public static void main(String[] args) {     double num = 10.03;     System.out.println("number is : " + num);     double multiply = num * 100;     System.out.println("multiply to 100 : " + multiply); }  }

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I am a physics major taking freshman year physics courses. We did a lab experiment where we were given three objects and inclined plane, and we were asked to find the coefficients of kinetic and static friction for each object. The coefficient we found for static friction was greater than kinetic friction in each object. It was greater by about 0.05 in each object (e.g. mu_s = .22, mu_k = .29).  Our method to find the coefficient of kinetic friction was to measure the acceleration down the ramp using a vernier sensor, then solve using the mass and the angle, which was arbitrarily chosen to be 26.8 degrees.  Our method to find the coefficient static friction is not very precise. We used a pulley system to elevate the ramp until the object was just barely sliding, and we measured the incline at that point. Therefore, our coefficient of static friction is really only a best estimate.   As the saying goes, "it's a poor workman who blames his tools,"  or in this case his experimental method. But there is no special condition to make this situation predictable, and I can't find another explanation other than our "best estimate" method simply isn't accurate enough. Or is the 0.05 a negligible amount?  Any ideas?  The current draft of my lab report is posted here.

I was recently wondering what would happen if the force sliding two surfaces against each other were somehow weaker than kinetic friction but stronger than static friction. Since the sliding force is greater than the maximum force of static friction, $F > f_s = \mu_s F_N$, it seems that the surfaces should slide. But on the other hand, if the force of kinetic friction is greater than the applied force, there'll be a net force $\mu_k F_N - F$ acting against the motion, suggesting that the surfaces should move opposite to the direction they're being pushed! That doesn't make sense.  The only logical resolution I can think of is that the coefficient of static friction can never be less than the coefficient of kinetic friction. Am I missing something?


When using stepwise feature selection for a classifier, is it typical to measure progress by using the loss (e.g., cross-entropy loss) or the accuracy?  Is there any basis for choosing one or the other?

This is a general question that was asked indirectly multiple times in here, but it lacks a single authoritative answer. It would be great to have a detailed answer to this for the reference.  , the proportion of correct classifications among all classifications, is very simple and very "intuitive" measure, yet it may be a . Why does our intuition misguide us here and are there any other problems with this measure?


Is there a way, a setting for blender to put the focus on the current selection of vertices you edit in edit mode, automaticaly? Pivoting around the selection is dizzying if you don't  continuously press the point key (.) just to focus on it, which i think is so redundant. but i don't want it also zooming in TOO close in your face every time like when blender focuses on things.

To be honest, it's dizzying to navigate yourself around the vertices you are trying to edit while quickly modelling something on the side, I know you can press . to pivot around it, but is there a setting that does this for you automatically so you wouldn't have to?   Also, how can you set this convenience for the Outliner, VSE, NLA, Timeline, Dope Sheet and Graph Editor too?


I've edited my .bashrc file because of errors like the one below keeps popping every time I open a terminal.  Command 'ls' is available in '/bin/ls' The command could not be located because '/bin' is not included in the PATH environment variable.   So far I've tried( in my .bashrc file):   export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin exportPATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games   export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" export PATH=$PATH:/usr/bin   still, I've to enter explicitly one of the above-said commands in the terminal every time I open a new one. I'm using Ubuntu 16.04.   Any help will be appreciated.

I accidentally unset all the directories of $PATH while trying to add a new one in ~/.bashrc. I opened a new terminal window as I was editing and now $PATH is empty. I'm worried if I boot from another drive to find the $PATH I won't be able to boot into this drive again.  Basically, what is the default result of echo $PATH?


When i format my dekstop i use "/" and "/Home" as ext4 journaling file system. What are the differences  between "/" and  "/home"

In Windows there’re perhaps only a couple of important folders (by important I mean important in my logical picture of the Windows file system) in the installation drive (in my case C:\). Namely Program Files and Windows. I simply stay away from Windows folder and the “add remove program files” is good enough to handle the program files folder of Windows. Of course there’s a folder named Users where the users (who are not admins) can access only their folders.  Thus there’s a clear picture at some level in my mind of the Windows file system. In Ubuntu, when I reach the location /, there’s a huge list of folders, most of which I have no clue as to what they contain. The /bin folder seems to be the equivalent of the Windows folder in windows. The /usr folder seems like it’s the equivalent of the Users folder in Windows. But even the /home folder looks like it can fit the bill.  Please understand that I do understand, that Ubuntu (Linux) has a different character than that of Windows, i.e., there need not be exact equivalent of Windows functions, in Ubuntu. All I am looking for is a bit more clearer picture of the Ubuntu file system.   This question is a part of a bigger question which I am splitting up to make it more answerable. The original question can be found here:


I have data that I need to scrape on a web page that usually includes a ZIP code.  In the source code the HTML will look like this 12345
USA.   My pattern looks like this:  $pattern = '\d{5}
USA';  I'm sure I'm not escaping the HTML tags or something, but I can't find the proper way to write this.

Why do PHP regexes have the surrounding delimiters? It seems like it would be more clear if any pattern modifiers were passed in as a parameter to whatever function was being used.


I recently tried downloading a mod, and found out my mods folder had disappeared. I wanted to try making a new folder but i realized that wouldn't do anything. I have been searching on the Internet to find a video about this, but rarely does a Minecraft mac website/video appear. Can anybody help me?

I'm having a really, really hard time figuring out how to install mods on Minecraft. I've looked everywhere I can think of for help but the information is almost always outdated or unhelpful.  I've seen on several sites about the use of something called Forge. The Mod I want to use requires 1.6.4 Forge and I have both Forge and the Mod folders sitting in my downloads folder.  I haven't installed any kind of mods for any game prior to this and I have little clue to the technical side of Minecraft, so please keep this in mind when you give me an answer please!  Things that might help you figure out how to help me:   I want to play this mod  and am using the 1.6.4 Forge given on a link that website gives


How does user remove the stubborn 'Google Play Services' from the Android phone? Android 8.1 'Google Play Services' does not allow remove updates option. Why does 'Google Play Services' behave similarly like the Microsoft Edge web browser that is stubborn and can't be removed.   User buy the Android phone should not be denied from uninstall stock apps such as the notorious 'Google Play Services' that use data usage without user permission!  Please do not provide answers such as root the android phone because this question is about no-root phone (meaning the phone is not rooted). Also,  PoGO has new TOS that does not care about user privacy!

Hi I'm using Moto X style and most the space consuming apps are stock Google one which I basically don't use at all. Is there a way to remove them without rooting the device. I know it's an hard ask but I'm just taking a chance here ?


I tried linking a Stack Exchange network account to my careers profile but the points are not up to date. How frequently is this updated?

Just curious how this works:  My Stack Overflow reputation on my Stack Overflow CV shows an amount X, which is less than my actual Stack Overflow reputation Y. It's been this way for a few days. In addition, some of my 'favorite answers' on my CV have a lower # of votes than they do in reality.  How long does it take for this (I assume cached) value to be updated?


says this:     There is considerable speculation as to why the observable universe is composed almost entirely of ordinary matter, as opposed to a more even mixture of matter and antimatter.   And on :     For example, excited antihydrogen atoms are expected to glow the same color as regular hydrogen. Antihydrogen atoms should be attracted to other matter or antimatter gravitationally with a force of the same magnitude that ordinary hydrogen atoms experience. This would not be true if antimatter has negative gravitational mass, which is considered highly unlikely, though not yet empirically disproven (see gravitational interaction of antimatter).   If antimatter had negative mass and generally repelled matter in large quantities that had little other forces acting them, we could have vast "pockets" of antimatter and matter peacefully coexisting, repelling one another.  In fact, if antimatter looks the same "color" as matter and all we have to look at in deep space is light, for the most part, then we could have "anti-galaxies" that look the same as ordinary galaxies. It seems this idea has been considered, as :     Antimatter may exist in relatively large amounts in far-away galaxies due to cosmic inflation in the primordial time of the universe. Antimatter galaxies, if they exist, are expected to have the same chemistry and absorption and emission spectra as normal-matter galaxies, and their astronomical objects would be observationally identical, making them difficult to distinguish. NASA is trying to determine if such galaxies exist by looking for X-ray and gamma-ray signatures of annihilation events in colliding superclusters.   How would we know, in this case, that some of the galaxies we see aren't "anti-galaxies?"  Based on what I know, the thing that doesn't add up with anti-gravity is this:  Light is affected by gravity.  If anti-matter's gravity is negative, then either (1) light only cares about the magnitude of gravity and is attracted to anti-matter or (2) light is repulsed by antimatter.   This would be weird that light "acts" like "matter" in that it's attracted to matter and but also like "antimatter" in that it's attracted to "antimatter".  A is attracted to B.  B is attracted to C.  A is not attracted to C.  That's weird. This sounds like it could be related to dark matter.   See also arguments on Wikipedia's article on .   addresses the issue of antimatter galaxies, but it does not consider the possibility of antimatter having negative mass.  There are (2) positively scoring answers on that question (which assumes the following: a star composed of antimatter hydrogen would fuse to anti-helium in an analogous way to our own Sun, and it would emit light and radiation at the same wavelengths as any regular matter star and would cause the same gravitational forces):  First positively-scoring answer:        This argument assumes that antimatter and matter regions would be close enough or connected such that annihilation would be visible.  If we assume that antimatter and matter regions are gravitationally attracted to one another, like the question assumes, then this answer makes sense.  My question assumes the opposite - that antimatter gravitationally repulses matter and vice-versa.  Therefore the thin inter-galatic medium strands connecting gravitationally bound filaments might not exist between antimatter and matter (anymore - they've been annihilated, causing an actual void, or at least the visible appearance of one).  Here is what the second positive-scoring answer has to say:        This answer admits that "the telltale sign would come from supernova neutrinos, although at present we can only detect such neutrinos from nearby galaxies".  The absence of anti-neutrino emissions (today's measurements) would only imply that "nearby galaxies" are not anti-matter.  What about galaxies that we can see that aren't nearby?  This answer doesn't address those.

Given that  galaxies are theoretically possible, how would they be distinguishable from regular matter galaxies?  That is, antimatter is equal in  and all properties, except for the opposite reverse charge of the particles, identical to regular matter. Hence a star composed of antimatter hydrogen would fuse to anti-helium in an analogous way to our own Sun, and it would emit light and radiation at the same wavelengths as any regular matter star and would cause the same gravitational forces for planetary systems to form as in any other star system.  Hence, what would be a telltale sign if you were observing a galaxy made up entirely of antimatter?  Also, is there any evidence for that half of all galaxies are not made of antimatter -- while general theories currently assume that there is an imbalance of matter over antimatter in the universe, then what is the rationale for not assuming that there is in fact an even balance between the two?


I have configured my MySQL Database to require passwords on all users, even root from the machine itself.  Now I discovered that there are empty Users in my Database  Reproduce: mysql -u root -p and then use mysql; & select * from user;  It gives me 2 entries, one with "localhost" and user <empty> and one with the machine's hostname and <empty>.  Now I tried to access the account with mysql -u ' ' (yes it's correct, leave a space between the ' things) and I log in without a password. The user can "only" see information_schema and test, the two databases created by default. He does not has access to mysql or any other custom created databases.  I already changed the Password of this user to something I won't tell you  mysql -u root -p use mysql; UPDATE mysql.user SET Password=PASSWORD('thisisasecretpassword') WHERE USER='root'; FLUSH PRIVILEGES;   Now my Questions:   Is any MySQL Server vulnerable for an attack with this entry? Could an attacker break out of this account or the two default databases? Should I password-protect those Users or can I delete them? Are They required for some MySQL-internal things?

Apparently, I can connect to MySQL (at least from my localhost) without having to provide any username or password. I can even put anything as username, as long as the password is empty. I have access to the information_schema and test databases. I can create tables. If I run SELECT USER() it returns the proper value randomstring@localhost, where the random string is whatever I used for username when I connected.  The mysql.user table contains root@localhost, root@127.0.0.1, @localhost and pma@localhost. I manually set encrypted passwords to all the records (UPDATE user SET password=...) and only root has any privileges, the other two records have "N" for all privileges. That record with the empty username looks suspicious, but I don't think it has anything to do with this and I think it was there from the beginning.  To make matters worse, if I add a user with a password, I can only connect using empty string as password (just like if I put anything as username). If I try to connect using the username I created and password I supplied when creating it (CREATE USER .. IDENTIFIED BY ..) it doesn't work.  Does anyone know what is wrong and how I can fix this?  Note: I am using MySQL 5.5.16 for Windows, provided by the XAMPP package.


folks! I have a list of lists (actually, imported from PostgreSQL as JSON) that looks like this:  [{'person_name': 'FRAUDSTER_3', 'score': 10.33}, {'person_name': 'FRAUDSTER_5', 'score': 10.11}, {'person_name': 'FRAUDSTER_2', 'score': 10.44}, {'person_name': 'FRAUDSTER_4', 'score': 10.22}, {'person_name': 'FRAUDSTER_1', 'score': 10.55}]   Is there is a neat way to sort it by 'score' value using list.sort or sorted? Probably, lowest score first so I can use pop to get N records with maximum score first.

I have a list of dictionaries and want each item to be sorted by a specific value. Take into consideration the list: [{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}]  When sorted by name, it should become: [{'name':'Bart', 'age':10}, {'name':'Homer', 'age':39}]


I've had this movie scene stuck in my head for 20 years now and it's driving me nuts. SCENE #1 Dad hears kids (two small boys) screaming from bedroom. Runs in to look. He sees a humanoid monster/alien standing over the bed wearing an old McDonald type overalls outfit (redneck look). The monster/alien holds its hand over the bed and it shows the boy start shriveling up (Very graphic, like only an 80s horror scene can be). The boys then turn into these floating glowing balls, which come up out of their corpses. The father hits the monster/alien with something (maybe baseball bat) and it hits the floor dead. SCENE #2 Father talking to someone (friend/therapist maybe) and says the boys/kids (now just two floating glowing balls) just follow him around the house. Given the age, and how disturbing I remember the scene being, I'd say the movie/short story was definitely from the mid to late 80s. I don't know if it was from a typical movie or from a Creepshow (short stories) style movie. Maybe even a tales from the Crypt show. I just don't know. The fact that it's from the 80s (golden era of horror) makes it nearly impossible to guess.

I think it was the 80s. All I remember were these floating, green/black orbs that at one point came to hover over some kids in bed. Then the kids feet started shriveling and rolling up the legs. I don't remember if it showed what happened then, like the like were absorbed or souls sucked into the orb or something like that.   For some reason I've associated this for a long time with the Body Snatchers so maybe it was around the same time. Since then I've learned it wasn't that movie.


Let $a_n$ be the sequence defined by $a_1 = 3, \ a_{n+1} = 3^{a_n}$. Let $b_n$ be the remainder when $a_n$ is divided by $100$. What is $b_{2004}$?

A detailed solution will be helpful. Given that $a_1=3$ and $a_{n+1}=3^{a_n}$, find the remainder when $a_{2004}$ is divided by 100.


"If you can spare me a few minutes" is, to the best of my knowledge, proper English. Yet the article "a" does not match the noun "minutes". Unless few here is a noun. Then it's fine. Except then it raises a questions regarding both the dictionary definition of "a few" as an adjective meaning some, and the rules for how you string together a set of nouns, like "computer program". If "few" is a noun, then it has changed the plurality of "minutes". If that's the rule, then why isn't it "a computer programs", instead of "the computer programs"? Even though I'm a native English speaker, (my grandfather was British and I learned from his old texts to before I started elementary school in America), so if there are differences here, I'd love to know both perspectives. I've become quite an advocate for "going to hospital" instead of "the hospital", because when I was a school child I never dreamed of going "to the school". I assume this is because a school teacher would have boxed the ears of any child that got that one wrong, but that hospitals were less common and countable nouns is a difficult concept to teach. (I still struggle with that.)

I have few friends.   I have a few friends.      I thought "few" means just one, two or even none. "A few" typically means more than two. However it seems to me some people say "few" when they really mean "a few", am I right?


I'd like to understand what exactly is a dot product; why it get created ? differences with cross product ?  Demo of: cos(a+b) = cosacosb - sinasinb ?  Thanks a lot :)  EDIT: an other topic was given but there's no real explication, just how to calculate or apply formulas

I know how to calculate the dot product of two vectors alright. However, it is not clear to me what, exactly, does the dot product represent.  The product of two numbers, $2$ and $3$, we say that it is $2$ added to itself $3$ times or something like that.  But when it comes to vectors $\vec{a} \cdot \vec{b}$, I'm not sure what to say. "It is $\vec{a}$ added to itself $\vec{b}$ times" which doesn't make much sense to me.


When replying to comments you can do @username to make sure they get a notification of your response. But what should you do if you wanted to get the attention of to people? Would @username @username2 do that, or should you make two different comments?

How do the comment replies (aka "pinging users") work?  Who can I send an @reply to? How do I respond to a specific user when entering my comment? Will they be notified? What do people mean when they talk about "pinging" another user?  Related:


I'm looking for a "multi-goal" path-finding algorithm. Problem I'm running into is I'm not sure what it is called... I'm not even sure "multi-goal" is what I'm actually after. I've looked at Djiskra's, which is looking for shortest path between two points (as is A*), and I've looked at travelling salesman, which is multi-goal, but is a "stop where you started".  What I'm looking for is:   given an unsorted list of nodes with equal priority given a starting node where not all of the nodes are connected to each other and nodes have a minimum of one edge generate a path that efficiently hits all of the grid locations (i.e. back-tracking is allowed, does not have to be shortest path, end point does not matter).   I'm assuming that there's an algorithm out there for this sort of a path-finding problem. (Or it may be a goal seeking problem, I'm not sure either.)  One option I was thinking of is a depth-first bounded search, but without a better idea of how to represent branching choices, I'm not sure how good the search would be.   I'm estimating this at about 300 nodes, with about 50 nodes as "nodes that must be visited", which may also be a small enough space that a brute force approach may be the easiest manner.  Any advice on what to look for, or even an algorithm that I could implement?  Thanks!

I have a undirected graph with about 100 nodes and about 200 edges.  One node is labelled 'start', one is 'end', and there's about a dozen labelled 'mustpass'.  I need to find the shortest path through this graph that starts at 'start', ends at 'end', and passes through all of the 'mustpass' nodes (in any order).  (  /  is the graph in question - it represents a corn maze in Lancaster, PA)


What is the coefficient of $x^{10}$ in the expansion of $(5x^2 +3)^{14}$  Leave answer as an expression rather than number.  Do I have to expand using the pascal triangle 10 times or is there a formula cos they said leave it as a mathematical expression?

What is the coefficient of $x^{10}$ in the expansion of $(5 x^2 + 3)^{14}$?   (I would prefer to know the answer as a mathematical expression rather than a number.)  May I know how to approach this question and what will be the answer? Thanks


Below is my code:   public class Test2 {     public static void main(String args[]){      String[][] a = {         {"type"},         {"emergency"},         {"manual"},         {"brand"},         {"accessGroup"},         {"memberRef"}                  };      String[][] b = {             {"ab"},             {"cd"},             {"ef"},             {"gh"},             {"ij"},             {"kl"}                      };      ArrayList<String[][]> al = new ArrayList<String[][]>();     al.add(a);     al.add(b);     Iterator<String[][]> itr = al.iterator();     while(itr.hasNext()){     System.out.println(itr.next()); //prints: [[Ljava.lang.String;@2a139a55     }     }  }   The problem here is that the 2D array is inside an ArrayList, and I am not sure on how to use 2 for loops to scan through each elements and print it. Could anyone help? Thanks in advance.

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I am trying to learn threading here. I have this demo class which prints the nth fibonacci number. No I am trying to create a thread for this demo object in another class threadtest1 and execute it. but I keep getting the following error  Starting thread :Thread[Fibonacci thread,5,main] Exception in thread "main" java.lang.NullPointerException     at threadtest1.startThread(threadtest1.java:21)     at threadtest1.main(threadtest1.java:27)   Can anyone help?  DEMO  class demo implements Runnable { private int limit; public demo(int l) {     limit = l; } public demo() {     limit = 10; } public void startDemo(Thread t) {     t.start(); } public void run() {     int c = 1;     if(limit>2)     {         int i,a = 1,b = 1;         for(i = 3;i<=limit;i++)         {             c = a+b;             a = b;             b = c;         }     }     System.out.println("Fibonacci number["+limit+"] = "+c); } }   THREADTEST1  class threadtest1 { private Thread t; private demo d; private int l; public threadtest1(int l) {     this.l = l;     demo d = new demo(l); } public threadtest1(int l1, int l2) {     this.l = (int)Math.max(l1,l2);     demo d = new demo(l); }  public void startThread() {     t = new Thread(d,"Fibonacci thread");     System.out.println("Starting thread :" +t);     d.startDemo(t); }  public static void main(String args[]) {     threadtest1 t1 = new threadtest1(5);     t1.startThread(); } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I've always thought that using the word "his" as a gender-nonspecific pronoun has been acceptable; in recent years, however, I've been told off by people when I do this, saying it is now "politically" correct you use "her" for a gender-nonspecific pronoun. I've always have, since these occurrences, used "his/her" (or "his or her") instead, though I am now pondering which of these to use, for I am currently writing a paper, and have no idea which pronoun to use; the "his or her" seems a little clunky, and I would much rather prefer an alternative.  This is not a duplicate of , because I am asking which is generally accepted; also I am unable to use the word "one," as my paper should be understood by little ones. I already know that the use of the singular "they" is frowned upon (by English professors, both mine and others'), and that using a plural noun doesn't work for a good deal of my sentences that encounter this problem.  Any clarification is appreciated!

Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end.


I will find myself often resizing art boards in illustrator when Im designing websites (if a page needs to be longer or shorter) and wanted to know if there is a way to trim away transparent pixels on an art board just like in photoshop. Right now I just use the art board tool to resize it manually but if theres a quicker way Im all ears. It would be quite a nifty tip to know

Consider the following two images:    The second image is my desired result: the artboard dimensions perfectly match the layer/selection/content. However, I had to resize the artboard manually. Is there a way to do this automatically? Ultimately I'm saving the file as an SVG. Rather than resizing the artboard, is there some setting that tells illustrator to export a file with the final dimensions being the size of the content or selection? Some googling suggests that this was possible in CS3 using Save for Web, but I didn't see any option like this in CS6.


All of a sudden my Finder windows keeps disappearing and reappearing every 30 seconds or so. I restarted the computer, and emptied the trash can as some Google search suggested, but none of them worked. Any ideas? I was just browsing the web, wasn't installing/uninstalling anything.  BTW, it's a 2010 iMac with Mavericks.

I use spaces with 10.9. I run a few applications in full screen mode. While focused on an application in full screen mode every minute or so I switched back to the first space. This happens with no input on my behalf.   I suspected it was an application in the background taking focus. I shut down all applications that do this and have also disabled space switching on application focus. After a reset the issue persists.   I noticed that the tool bar glitches out after the switch happens. It feels like a bug because when the application is not in full screen mode the icons on my desktop will disappear for a split second and then reappear. This seems to be happening with the same frequency as the space switching issue. Has anyone en-counted this? Is there a fix? It's driving me nuts!


This has been bugging me for some time now, and I can't find anything on it.   It's a movie I remember watching as a kid with my father and I only remember bits of the movie, just images mostly.   It involves:   A female telepathic alien that crash lands on earth. She finds a local human detective/cop (?) and teams up with him to kill some big bug-like aliens.  The two protagonists, the female alien and the cop, are walking up some stairs after a meeting. She's in front and as she climbs the stairs he looks at her butt. She immediately turns around and says something to the effect of "that's gross".    I hope this is enough for someone to help me identify the movie. Thank you in advance!

In 1991 or 1992 I saw a two-part (probably made for) TV US movie. It is about an alien starship crash landing on planet Earth (in the USA). An attractive 100% human-looking woman (I believe the only survivor) interacts with our male lead so that they can solve a problem at hand (like communicating with other aliens, or recovering the ship, or working against an alien threat, something like that). She is telepathic and lost her spouse in the space ship wreck (or maybe she just can't ever get back to him because of the broken-down ship?). I remember her flashbacks where she is intimate with her spouse by the touching of hands.  During their time together on earth they fall in love and I believe she stays in the end.  I know this is not much but there aren't that many two-part sci-fi TV movies so someone may remember?


Normally I know how to do these kind of questions using different kind of methods, but on this specific one I have no idea what to do:   Determine if $f(x)=\sin(x^2)$ is uniformly continuous on $(-\infty,\infty)$  any solutions or maybe advice? Thanks!

If I want to prove that the function$\ f(x)=\sin(x^2)$ is not uniformly continuous on the domain $\mathbb{R}$, I need to show that: $\exists\varepsilon>0$ $\forall\delta>0$  $\exists{x,y}\in\mathbb{R}\ : |x-y|<\delta$ and $|\sin(x^2) - \sin(y^2)|\geq\varepsilon$. So let's take $\varepsilon = 1$. Then I want $|\sin(x^2)-\sin(y^2)|\ge1$. That's the case if $\sin(x^2)=0$ and $\sin(y^2)=\pm1$. Thus $x^2=n\pi$ and $y^2=n\pi + \frac{1}{2}\pi$. Now I'm stuck on expressing x and y, which I want to express in $\delta$, to ensure that $|x-y|<\delta$. Thanks in advance for any help.