Why does mass not matter on how quickly an object falls?

I've seen all the mathematical proofs and physics demonstrations in vacuums.  However, for example, if a hammer falls to the Earth it falls very quickly. But, it can be interpreted another way. The hammer doesn't fall to the Earth, the Earth falls to the hammer. Then, on the moon, (since the smaller gravitational acceleration) the moon falls a lot slower to the hammer than the Earth falls to the hammer.


How to search for multiple filename extensions in Windows 8?

How can I search for multiple filename extensions in Windows 8?  Semicolon does not work:


I'm looking for extremely flexible flight search engines.  Here are the features I'd like to be able to utilize:   More flexible date search, specifically, I want to be gone between 7 and 12 days, but I'm good with leaving and arriving any time within two months. I can search on a site like kayak, but only within a few days, and it won't preserve my trip length. "Super long" layovers, rather than 3-8 hours in a layover, I'd like a longer layover, more like 16-48 hours.  Sometimes these pop up in the searches, but I can't figure out how to locate them specifically.   Is there any site that works well and has more options than a site like kayak?  For what it is worth, I'm looking to travel from DSM to RIO in September or October of this year.


How to set default style for arrow tips in TikZ?

I am creating multiple TikZ pictures within one document and would like to set the default style of arrow heads for all the pictures to the latex style, i.e. like -latex does, so that I don't have to do this every time I draw an arrow.  I'm new to TikZ, but have searched and must not be choosing the correct terms.


$X^4-10X+1$ reducible in $\mathbb{F}_p[X]$ for all prime $p$

Show that the polynomial $X^4-10X+1$ is irreducible in $\mathbb{Z}[X]$ but reducible in $\mathbb{F}_p[X]$ for all prime $p$.  I could show the irreducibility in $\mathbb{Z}[X]$ but not sure how to proceed in case of $\mathbb{F}_p[X]$


Does anyone know the SRID for an equal area projection that is suitable for the whole of Australia?  I realize that I could make my own (which I have done) but I am looking for one that is present already that I can use in both PostgreSQL and Proj4


Evaluating $\int_{-\infty}^{\infty} \frac{x\sin(kx)}{x^2+a^2} \,\mathrm dx$ using complex analysis

I'm trying to solve the following integral:  $$\int_{-\infty}^{\infty} \frac{x\sin(kx)}{x^2+a^2} \,\mathrm{d}x$$  I don't really have any idea where to start. The previous parts of the question involved complex numbers and Cauchy's Integral Formula, however I can't  think how I'd applying that here.  Any help would be greatly appreciated :)


Module to list menu_router / path debug info?

Every now and then, mostly when looking at a new site, I find myself wanting to know   What's the source of this particular page?  Usually, I end up starting to dig in the menu_router table, and possibly also alias tables. Is there a module that will be helpful in finding and displaying this, and other relevant, information for me?


ubuntu 18.04 hp printer 2600 not working

I have a wireless hp deskjet 2655 all in one printer.  I can not get it to connect.  I have looked in settings, printer and it says, "Sorry, the system printing services doesn't seem to be available" What do I need to do to fix this.


Setting values -in a constructor- from another class

I have two classes (Date and Employee).  Class Date doesn't have a constructor, but it has 3 variables with their setters.  Class Employee has a constructor where I initialized its variables. But I have to attach the 3 variables in Class Date to it.  I tried using Setter method, but when I run the code, it says that there's an error with:               hire_date.setDay(1); hire_date.setMonth(1);  hire_date.setYear(2018);     //In class Empolyee   private String name;  private Date hire_date;  private double monthly_salary;       public Employee() {         name = "Jody";         hire_date.setDay(1);         hire_date.setMonth(1);          hire_date.setYear(2018);                  monthly_salary = 2000.0;     }   //In class Date   private int day;     private int month;  private int year;      public void setDay(int day) {         this.day = day;     }      public void setMonth(int month) {         this.month = month;     }      public void setYear(int year) {         this.year = year;     }


How set height of select dropdown list in IE 9

I found a bug with select tag in IE 9... In IE 10 and 11, FF, Chrome, Safari everything works fine, but in IE 9 - when list with options become visible, it's going over , browser window and monitor display:    May I somehow manually set height of options list, or set count of visible options (before scrolling) using CSS and JS?   P.S. it's just select tag and many options inside.  Please, help. Thanks.


Is being good at mathematic contests necessary to pursue a career in mathematics or physics?

I am extremely poor in solving a problem quickly, which leaves me doing badly in olympiads and other contests. But, if I just don’t give up on a problem, no matter how much time it takes, I usually end up solving it. To have a future in mathematics or physics, is it necessary for me to excel at contests, because these days children excelling at contests have an advantage over those who don’t (not complete advantage, but advantage nonetheless)?


In the special theory of relativity, each event is a point in 4d spacetime. And we can represent our life as a world line in the spacetime. Then, if we somehow find out the mathematical equation of somebody's world line, then can his future be predicted?


Does Android support the EXT (filesystem) for removable storage cards?

As the subject indicates, does Android support any of the Extended File Systems ("ext", "ext2", "ext3" and "ext4") for removable storage cards (such as Micro SDXC storage cards)?  Android is a Linux-based operating system, so surely such filesystems would be supported?  My question relates to both Android 4.4-4.4.4 ("KitKat") and Android 5.0-5.1.1 ("Lollipop"), as I am just about to buy the Sony Xperia Z Ultra which runs the former, but has an upgrade available for "Lollipop"...  The reason I ask is because Extended File Systems have a number of distinct advantages over Microsoft filesystems, and I do not use Microsoft Windows-based operating systems at all (well, at work I do - but personal stuff can't be used with their computers...), so it's only logical to utilize Extended Filesystems where possible, for the technical advantages.


In linux, how to delete all files EXCEPT the pattern *.txt?

I know how to delete all txt file under current directory by rm *.txt. Does anyone know how to delete all files in current directory EXCEPT txt file?


I have a script in a folder:  /path/to/my/script.sh   I need this script to run every time the system starts (even if no one logs in to the system). What do I need to do in order to make this happen?


Any good book suggestions for abstract algebra

could you suggest me an easy book on abstract algebra with solved problems and theory. (or a pdf on the internet) thank you.


Calculate Fields with Null Values using arcpy.da.UpdateCursor of ArcGIS for Desktop?

How do you calculate fields with null values?  I have multiple fields that may have null values, that aren't being calculated in the third field.    import arcpy with arcpy.da.UpdateCursor(r"...gdb\test.gdb\test",["A", "B", "C"]) as cursor:     for row in cursor:         row[2] = row[0] + row[1]         cursor.updateRow(row)   The result of that calculation is this error:  Traceback (most recent call last):   File "C:\Users\Desktop\updatecursor2.py", line 4, in <module>     row[2] = row[0] + row[1] TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'   The result of the script are the same results when I try to use the field calculator:    How do you use the data update cursor, or field calculator to calculate the sum of the values in a new field if you have null values?  I'm using ArcGIS 10.1 SP1 for Desktop.


Took apart an Apple TV due to no power from the smps and its like 80% covered in a white rubbery adhesive.   I'm used to seeing this stuff (or similar) on bigger components like electrolytic caps to minimize vibration but I'm curious it's purpose on the bottom of the board where it's all smd? Other than to make it really annoying to chip away to test components


Evaluate of number represented by the infinite series $\sqrt{\tfrac{1}{3} + \sqrt{\tfrac{1}{3} + \sqrt{\tfrac{1}{3} + \cdots }}}$.

Evaluate of number represented by the infinite series   $$\sqrt{\tfrac{1}{3} + \sqrt{\tfrac{1}{3} + \sqrt{\tfrac{1}{3} + \cdots }}}$$


difference between real click and jQuery click

I create a new subject which is the next of .  I have a form on drupal.   There is a function to create it : commerce_checkout_account_pane_checkout_form  There is a function to validate it : commerce_checkout_account_pane_checkout_form_validate  There is a function to submit it : commerce_checkout_account_pane_checkout_form_submit  Everything work with Firefox, but not with Chrome or IE.  If I do a real click on the submit button, I go to the validate function. If I use jQuery to trigger click on the submit button, I can see ajax gif but my page is reloaded and there was no passage into validate function ( I use drupal_debug to log passage ).  How it is possible there is a difference, in two case there is a click on the submit button ?  All day on this problem, I really need to fix it quickly.


so I'm trying to ask the user to input value for control right after the SOP is done.  But it skips it for some reason.  public static void main(String [] args)       {          Scanner keyboard = new Scanner(System.in);           System.out.println("What's your balance?");          double initialBalance = keyboard.nextDouble();           Account chase = new Account(initialBalance);           System.out.println(chase + "; Would you like to deposit or withdraw?");          String control = keyboard.nextLine();           if(control == "deposit")          {             double deposit = keyboard.nextDouble();             System.out.println("How much would you like to deposit? " +                                  deposit);             chase.deposit(deposit);             System.out.println(chase);                                }        }


Exercise $ 3.4.15 $ of David Marker’s “Model Theory”.

I was reading David Marker’s Model Theory and came upon the following problem in Chapter 3.  Setting  Let $ \mathcal{M} $ be a saturated $ \mathcal{L} $-structure.   A definable subset $ X \subseteq M $ is said to be strongly minimal if and only if $ X $ is defined by an $ \mathcal{L}_M $-formula $ \phi(v) $ and every subset of $ X^{\mathcal{M}} $ definable in $ \mathcal{L}_{\mathcal{M}} $ is either finite or co-finite. $ {\text{acl}^{X}}(A) \stackrel{\text{df}}{=} X \cap \text{acl}(A) $ is the set of all $ b \in X $ such that $ b $ is algebraic over $ A $, i.e., there is an $ \mathcal{L}_{A} $-formula $ \psi $ such that $ \mathcal{M} \models \psi(b) $ and $ |\{ c \mid \mathcal{M} \models \psi(b) \}| < \infty $. $ A \subseteq X $ is called independent if and only if $ a \notin \text{acl}^{X}(A \setminus \{ a \}) $ for all $ a \in X $.   Problem  I would like to show that if $ b \in {\text{acl}^{X}}(A \cup \{ c \}) $ and $ b \notin {\text{acl}^{X}}(A) $, then $ c \in {\text{acl}^{X}}(A \cup \{ b \}) $, and that for any $ A \subseteq X $, there is an independent $ B \subseteq A $ so that $ A = {\text{acl}^{X}}(B) $.


Are $\mathrm{arccot}(x)$ and $\arctan(1/x)$ the same function?

In my textbook it asks for me to:  Prove that there is no constant $C$ such that $\text{arccot}(x) - \text{arctan}(\frac{1}{x}) = C $ for all $x \ne 0$. Explain why this does not violate the zero-derivative theorem.  But I believe I have found such a $C$, i.e. $C =0$! I even asked WolframAlpha () which corroborates my answer.    This question appears in Apostol's Calculus Volume I, Second Edition: Exersize 6.22-11b  Edit: Mathematica's definition of arccot is different from the one in my textbook. Apostol's arccot maps a real number into $(0, \pi)$ while Mathematica's maps a real number into $(-\pi/2, \pi/2)$ Here they are super-imposed:


How do I make my character jump in every direction?

My character can only jump when he is grounded, but he can only grounded in one direction I want him to jump in every direction, can anyone help?  CAN JUMP :    CAN'T JUMP :        Code:   using UnityEngine; using System.Collections;  public class Player: MonoBehaviour {  public float maxspeed = 10f; bool facingRight = true;  Animator anim;  bool grounded = false; public Transform groundCheck; float groundRadius = 0.2f; public LayerMask whatIsGround; public Vector2 jumpDirection = new Vector2(0f, 0f); public float jumpFocre = 500f;  bool doubleJump = false;  void Start () {     anim = GetComponent<Animator> (); }  void FixedUpdate () {     grounded = Physics2D.OverlapCircle(groundCheck.position, groundRadius, whatIsGround);     anim.SetBool ("Ground", grounded);      if (grounded)         doubleJump = false;      float move = Input.GetAxis ("Horizontal");     anim.SetFloat ("Speed", Mathf.Abs (move));      GetComponent<Rigidbody2D>().velocity = new Vector2(move * maxspeed, GetComponent<Rigidbody2D>().velocity.y); } void Update() {     if((!doubleJump) && Input.GetKeyDown ("up"))     {         anim.SetBool("Ground", false);         float move = Input.GetAxis ("Horizontal");         jumpDirection.x = move;         GetComponent<Rigidbody2D>().AddForce(jumpDirection.normalized * jumpFocre);          if(!doubleJump && !grounded)             doubleJump = true;     }   }  void Flip() {     facingRight = !facingRight;     Vector3 theScale = transform.localScale;     theScale.x *= -1;     transform.localScale = theScale;     } }


Kind of a simple question, but I was looking up some things related to the Dirac equation, and I noticed something about the $\gamma$ matrices. There's $\gamma^0,\,\gamma^1,\,\gamma^2,\,\gamma^3$, which form a "4-vector" of matrices, and then there's $\gamma^5$ which has something to do with chirality. But there's clearly one missing: $\gamma^4$. Why was it skipped? (Was it skipped?)


This is an assignment question: I just need know whether I am on the right track.....  Let $G_1,…,G_n$ be groups. Prove that the direct product $G_1×⋯×G_n$ is abelian if, and only if, each of $G_1,…,G_n$ is abelian.  I know that this question have already been discussed before, I've got two thing that I need clarification on.... Is it wise for me to start this prove by assuming that $G_1,....,G_n$ (which is for each group) are Abelian, and work toward showing that the direct product of the group is abelian secondly, is there any second part of the prove that I haven't considered..  thank you...  I'll really appreciate any help


According to the definition of Black-body, it absorbs all of the wavelength irradiates on it. A recent material   visible light rays. Therefore , can we say that it is the most closest (ideal) blackbody?


Whenever I click a tab lets say material I have to press the MMB and drag my mouse to the right or left instead of scrolling normally.


UK conference speaking: what if it's my job?

This is related to  and .  Consider a purely commercial conference, run entirely to make money. A US company pays a steep fee as a 'sponsor'. In return, the company receives a speaking slot. The company instructs a US citizen and resident to travel to the UK for a weekend to speak at the conference.  Based on the answers to those two questions, it seems as if this person would need to apply for a visa in advance, or else risk being trebuchetted right back to the US. Am I missing something?


Why don't we get the root key for "our" android?

I know what root is for and how to use it etc. but I'm always wondering why don't we get the key for root access for our android phones? Why won't they add an extra sheet to the box with the key so that it doesn't have to be hacked or make it possible to request it for advanced users?  If I bought a phone why can't I use it freely?  Can somone explain the rationale behind this?   Is it a legal matter or just you are too dumb to use your phones and we want to protect you from yourselves?.  On Stack Overflow I was told it's an opinion based question but how can it be opinion based? There must be a reason why they won't reveal the root keys. I'd like to know why they made this decision rather than what you think about it which then really be opinion based.


How do I retract a "leave open" vote for closure?

I fat-moused the "leave open" button for a question that should have been closed.    How do I change this to a close vote, or at least retract my vote?


Which is correct, [Does fluorine has] or [Does fluorine have]?

I want to google if fluorine has more s-character. So which one is more correct 'Does fluorine has more s-character' or 'Does fluorine have more s-character'. Both sound unnatural to me when I read them.  Also, are there other ways to ask this same questions without adding new chemical terms?


Warlock/Paladin: Using pact magic spell slots for Divine Smite

I'm currently thinking about doing an Aasimar Paladin / Celestial Warlock sometime in the future. Now, I've been looking at the Divine Smite feature of the Paladin (p. 85, PHB), which states the following (among other things), emphasis mine:     Starting at 2nd level, when you hit a creature with a melee weapon attack, you can expend one paladin spell slot to deal radiant damage to the target, in addition to the weapon’s damage.   The "instructions" on multiclassing class features on page 164 (PHB) state the following, emphasis mine:     Pact Magic. If you have both the Spellcasting class feature and the Pact Magic class feature from the warlock class, you can use the spell slots you gain from the Pact Magic feature to cast spells you know or have prepared from classes with the Spellcasting class feature, and you can use the spell slots you gain from the Spellcasting class feature to cast warlock spells you know.   Now, the second feature talks specifically about using spell slots for spells, not other features, while the Divine Smite feature specifically talkes about Paladin spell slots.  Therefore, my conclusion so far had been that - as per RAW - one could not use warlock spell slots for Divine Smite (or any other class features, for that matter).  Then I googled, and found a passage in the PHB Errata, that states the following:     Divine Smite (p. 85). You can expend any spell slot, not just a paladin spell slot.   This clears the first issue - you don't specifically need paladin spell slots.  What about the second issue though, with Pact Magic? Would one be able to use warlock spell slots for Divine Smite?


Who is the "Motherless bastard" that Petyr Baelish is talking about in S06E10?

In the episode 6x10 of GOT, Littlefinger speaks with Sansa      after they defeated the Boltons   He talks about his dream and they talk about who should lead the North. There Littlefinger has a line:     A trueborn daughter of Ned and Catelyn Stark born here at Winterfell or a motherless bastard born in the south?   Who does he speak of? In the context he could only mean Jon, because it's either him or Sansa who takes command.     But he talks about a motherless bastard from the south. Could Littlefinger know that Jon is the son of Rhaegar or did he only mean that he was born in the south, assuming that he is the child of Ned and that motherless means that no one knows who Jon's mother is?   Am I just over-interpreting things here, or does he speak of someone completely different?


I have a dual core core i5 with hyperthreading. Since hyperthreading allows for unused cpu time to be used by other processes, why would this make it seem like 4 logical processors (2 per actual core). How is this different than out of order execution?  Lets say core0/core1 are one core and core2/core3 are another. If core0 and core2 are at 100% is my cpu at 100% load or only 50%? If all of them are at 100%, what does that entail? Also, how come processes tend to execute on core0 and core2 rather than core1 and core3?


I’ve never seen the construction before, except in Spanish for dialogue and Toni Morrison using the variation “;—” in Beloved for denoting a strong pause (well, that’s what we decided in my English class). How does Henry Adams use “:—”? Is this grammatically correct? How can I incorporate this into my own sentences?  Among senses, smell was the strongest:—the smell of hot pine-woods and sweet-fern in the scorching summer noon; of new-mown hay; of ploughed earth — Henry Adams, in The Education of Henry Adams


Show that $\liminf\limits_{x\to \infty}|f'(x)|=0$ if $\lim\limits_{x\to \infty}f(x)/x=0$ and $f$ is differentiable

Let $f$ be a differentiable Function on $(0,\infty)$ such that $\lim_{x\to \infty}\frac {f(x)}{x}$=0.  I have to show that $\liminf_{x\to \infty}|f'(x)|=0$.  I had thought to apply the mean value theorem for the function $g(x)= \frac {f(x)}{x}$ over the interval $(x,2x)$ so that $$ \frac{\frac {f(2x)}{2x}-\frac {f(x)}{x}}{x}=g'(c)=\frac{cf'(c)-f(c)}{c^2} $$ for $c\in (x,2x)$. Then  $$ \frac {f(2x)-2f(x)}{2}=\frac{cf'(c)-f(c)}{c^2}=\frac {f'(c)}{c}-\frac {f(c)}{c^2} $$ How to proceed further I have no idea. Is my way is right? Or do I have to choose another way? Any help will be appreciated


What is the distribution for the maximum (minimum) of two independent normal random variables?

Specifically, suppose $X$ and $Y$ are normal random variables (independent but not necessarily identically distributed).  Given any particular $a$, is there a nice formula for $P(\max(X,Y)\leq x)$ or similar concepts?  Do we know that $\max(X,Y)$ is normally distributed, maybe a formula for mean and standard deviation in terms of those for $X$ and $Y$?  I checked the usual places (wikipedia, google) but didn't find anything.


I have Ubuntu 12.04 right now. For reasons I would like to switch back to windows 7. (Even though I love Ubuntu.) I was wondering if anyone could point me in the direction of a guide on how to do this? I do not want to keep Ubuntu. I have a flash drive and an external hard drive and I can use either or for the boot. I would like to wipe the whole computer to use windows 7, I also have the product key for it. Any feedback is great, thanks.


What exactly makes quantum computers faster than classical computers?

What feature of a quantum algorithm makes it better than its classical counterpart?  Are quantum computers faster than classical ones in all respects?


How to create nested directory in a single command?

Apparently, it's not possible to create a nested directory in a single command?  $ sudo mkdir x/y/z mkdir: cannot create directory 'x/y/z': No such file or directory


Where can i ask a question such as: "would anyone be willing to help mentor a software developer student in the Toronto GTA Area?"

What would the best section (if there is one) to ask this question?


I'm using a CTE to convert SSRS stored proc's into BO stored proc's, as apparently I can't use temp tables with Business Objects.  I'm having this query:  ;WITH cte1 AS (      SELECT  cv.issue             , cv.customfield             , CAST(STRINGVALUE AS NUMERIC) AS priority_num       --INTO    #temp_priority_val       FROM    proddb1.customfieldvalue cv WITH (NOLOCK)               INNER JOIN proddb1.customfield e WITH (NOLOCK)                  ON  cv.CUSTOMFIELD = e.id                   AND e.cfname = 'Issue Priority')    ,cte2 AS (      SELECT  a.ISSUE             , f.customvalue priority_num       --INTO    #temp_priority       FROM    cte1 a              INNER JOIN proddb1.customfieldoption f WITH (NOLOCK)                  ON  a.CUSTOMFIELD = f.CUSTOMFIELD                          AND CAST(a.priority_num AS NUMERIC) = f.id)   SELECT * FROM cte2    I keep getting an Error converting data type nvarchar to numeric. error on this execution.  The priority_num column is an nvarchar column that is CAST in the first CTE. When I execute this within the original statement that had the temp tables it works perfectly fine. It must be something with the CTE scope?


Do I have to give attribution to SO when using my own content elsewhere?

Content on SE sites is licensed under .  If I write a question/answer on your sites, do I still have copyright of the text I entered or does SE now hold all copyright to it? Can I put an answer I wrote on my blog without meeting any of the attribution requirements?    I'm not intending to do so; I am just trying to learn about how the license works better.


How do you redirect a reputable domain name to a spelling variation without losing SEO value?

We have a reputable news domain which is about 17 years old. We want to redirect this domain from example-all.tld to exampleall.tld. We will implement a 301 permanent redirect for all URLs.  Now traffic is coming from search on Google for the brand name and business keywords.  For these keywords we are first in the search results for pretty much all search engines.  We have many organic backlinks for example-all.com domain, Moz Domain Authority 64 & Page Authority 70.  When we redirect the domain, what types of SEO problems will befall the website? Will we get the same value of previous domain for backlinks, Google search, reputation, etc?  Is there any other method for this redirect from an SEO perspective?


Why does a template specialization require an inline definition?

In the example given in §14.4.1 "Accelerated C++, A. Koenig and B. E. Moo" I have problems if I implement the template specialization like it is presented in the book.  The minimum working example (top down) is:  g++ str.cpp main.cpp     main.cpp:  #include "str.hpp"  int main(int argc, char** argv)  {      Str n;                //def      return 0;  }     str.hpp:  #ifndef GUARD_str_h #define GUARD_str_h  #include <vector>  #include "ptr.hpp"  class Str {     public:         Str(): data(new std::vector<char>) { }     private:         Ptr< std::vector<char> > data; }; #endif     str.cpp:  #include "str.hpp"     ptr.hpp:  #ifndef GUARD_ptr_h #define GUARD_ptr_h  #include <vector>   template<class T> T* clone(const T* tp); template<> std::vector<char>* clone(const  std::vector<char>* vp);  template <class T> class Ptr {     public:         Ptr(): refptr(new size_t(1)), p(0) { }         Ptr(T* t): refptr(new size_t(1)), p(t) { }         ~Ptr();     private:         T* p;         size_t* refptr; };  #include "ptr.cpp" #endif     ptr.cpp:  template<class T> Ptr<T>::~Ptr() {     if (--*refptr == 0) {         delete refptr;         delete p;     } }  template<class T> T* clone(const T* tp) {     return tp->clone(); }  template<> std::vector<char>* clone(const std::vector<char>* vp) {     return new std::vector<char>(*vp); }   The problem is the last template specialization   template<> std::vector<char>*   It gives an   multiple definition of 'std::vector<char...>   error. It only works with   template<> inline std::vector<char>*   1) I do not fully understand why I need "inline".  2) Is this an error in the book? I tried to put this template specialization in the ptr.hpp file. Again, it only works with "inline".  Thanks to all who can put some light on this issue.


Word that means "plagiarism" but only in relation to plagiarized ideas

I'm looking for a word that has the same meaning as "plagiarism" but in relation to plagiarized ideas only, i.e. not related to writing, art work, drawing etc.


From this regex,  text.replace(/^\s+|\s+$/g,"").replace(/  +/g,' ')   how do I remove the regex just for trailing white space?  I am new to regex and did some research but I'm not able to understand the pattern.


I recently bought a new iPhone 5. When I was going through my contacts today, I noticed a lot of email adresses stored along with the other numbers. I didn't even know most of them! What has happened?


Characterisation of compactness in $\mathbb{R}^n$

Let $E$ be a bounded measurable set of $\mathbb{R}^n$.  If every countinuous function $f:E\to\mathbb{R}$ is also uniformly continuous, then $E$ is compact.   Since I do not know topological property of  $f(E)$, it seems that I must use some measure property to show $E$ is closed. However, measure and topology seems not quite relevant.   Thank you!


Should some of the SO related questions be migrated to the real meta SO sites?

Now that , do you think that some of the questions that are being migrated to this meta SE site should be migrated back to meta SO, especially if they are SO specific? I can see that from my end, there are a few SO specific questions that shouldn't really belong here in the first place:       Shouldn't they be migrated back to meta SO?


java.lang.NullPointerException error when method is called from a custom class

I get a null pointer exception when a call a method on a custom class. When i call my Map constructor on my driver i get a NPE error. I initialize my 2D array field in Map.java  public class Map { private Field[][] gameMap; private int row, col; private int rowPlayer, colPlayer;  public Map(){      gameMap = new Field[10][20];      rowPlayer = 0;      colPlayer = 0;      gameMap[rowPlayer][colPlayer].setPlayerLoc(); //NPE happens here  }  }   Here is Field.java  public class Field { private int playerLoc; private char fieldType; private int plantedDay, readyDay; private char typeOfCrop; public Field(){     fieldType = 'u';     playerLoc = 0;     plantedDay = 0; } public void setFieldUntilled(){     fieldType = 'u'; } public void setFieldTilled(){     fieldType = 't'; } public void setPlayerLoc(){     playerLoc = 1; } public void removePlayerLoc(){     playerLoc = 0; } public int getPlayerLoc(){     return playerLoc; } public void setPlantDay(int Day){     plantedDay = Day; } public void setReadyDay(int x){     readyDay = x; } }   I would like to know how to fix it and why the NPE happens. Thank you!


The infinite product of the sines of all positive integers is zero

I tried to prove that $\prod\limits_{k = 1}^\infty  {\sin k = 0}$  Define $$P(m)=\prod\limits_{k = 1}^m  {\left|\sin k\right|}$$  then I take the logarithm of both sides $$\log P(m)=\log \prod\limits_{k = 1}^m  {\left|\sin k\right|}$$  which can be written as $$a_m=\log P(m)=\sum\limits_{k = 1}^m  {\log\,\left|\sin k\right|}$$ for any $k\in\mathbb{N}$ we have $0<\left|\sin k\right|<1$, so all terms of the sum above is strictly negative.  I say that the sequence diverges: $\left\{a_m\right\}_{m\in\mathbb{N}}\to\,-\infty$  This is a delicate point on which I have some doubts.  I know that  $$\int\limits_0^\pi  {\log \left|\sin x\right|{\text{ d}}x}  =  - \pi \log 2$$ and that the function $\log \left|\sin x\right|$ is periodic with period $\pi$,  so the integral from 1 to $\infty$ diverges to $- \infty$. Then the series diverges as well for the integral test for convergence.  As $\log P(m)\to\, -\infty$ we can say that $P(m)\to\,0$ as $m\to\,\infty$  Therefore $$\mathop {\lim }\limits_{m \to \infty } \prod\limits_{k = 1}^m {\left| {\sin k} \right| = \mathop {\lim }\limits_{m \to \infty } \prod\limits_{k = 1}^m {\sin k = \prod\limits_{k = 1}^\infty  {\sin k = } 0} }.\quad \blacksquare$$


Is there a query in SQL Server 2005 I can use to get the server's IP or name?


What is the difference between multiple regression & mutivariate regression?

I have data on GDP growth as a dependent variable and growth in main production sectors of Pakistan such as mining, electricity, communication, manufacturing and electricity. I am supposed to run a regression on it. Is there any difference between multiple regression and multivariate regression? If so, than what is it?  Which is suitable for my data?


Question: Which of the following intervals contains integers satisfying the following three congruences: $x\equiv 2\pmod 5, x\equiv 3\pmod 7$ and $x\equiv 4\pmod {11}$, (i) $[401,600]$, (ii) $[601,800]$, (iii) $[801,1000]$, and (iv) $[1001,1200]$    After solving I have found $x=2292\equiv 367\pmod {385}$. But this does not belong to any of the above option.  How can I find this solution?


How to hide Site Contents link using PowerShell

I use SP 2013 on-premises and I am having a requirement to hide the Site Contents command/link.Is there any way I can achieve this with the help of PowerShell? I tried with the SPSecurityTrimmedControl using SP D 2013, but it has a drawback,that we won't be  able to see the context menu for a  item within the document library.So that option is ruled out.


How to reduce distance between two columns?

I have 5 columns in my table. So I want to reduce distance between two columns to make it look good. In the following figure, I want to reduce distance between column 1 and 2.   I tried \setlength{\tabcolsep}{5pt} but it didn't look good. I want top row to take only two rows, not three. how do I do that?    \usepackage{tabularx,booktabs}  \usepackage{array} \newcolumntype{Z}{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}X} \newcolumntype{C}{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p}  \begin{table}[t] \caption{Case studies} \centering  \begin{tabularx}{\textwidth}{C{3cm}*5{Z}}     \toprule  Nature of unreliability &  Sender SST &  Receiver SST &  Implementation SST &  Retransmission Bound \\      \midrule  Noisy (Single fixed error message) & DSST & DSST & DSST & Unbounded \\ \bottomrule \end{tabularx} \label{case-studies} \end{table}


Create and invoke a function in run time, C#

there is a way to create and invoke a function  in run time?  for instance, how could I do to invoke this function?      string function = @"public void Test(int num1, int num2)         {             int sum = num1 + num2;             MessageBox.Show(sum.ToString());         }";          System.Reflection.MethodInfo method = null; // some code to create a method info from the string function         method.Invoke(this, new object[] { 10, 20 });   All I could find were samples of System.Reflection.Emit.DynamicMethod, but none use a function in a string


Duplicate closure, possible or is it a bug?

I just saw these two questions are closed as duplicate of each other, forming a closure:       The first one is a duplicate of the second one, and the second one is a dupe of first. Is this even possible? Isn't this a bug or flaw in the system?  I tried manually closing a dupe of a dupe and I got this response:    Now how was the above two questions closed?


Can I /clone relative to entities, not the command block?

I am trying to make a map where you have to make a village from scratch, and I need help. I'm trying to make a /clone command happen relative to where a mob that's named house is, and I cant figure it out. Any help?


How to report Windows 8 bug to Microsoft

I recently (5 minutes ago) found a bug in my Windows 8 installation.  How can I report it to Microsoft?


Cannot install packages in Mint: "Unable to fetch some archives"

I'm running Linux Mint 16 (Petra). I was able to install packages normally until, at least, april 18th (two weeks ago). Since yesterday I cannot install packages anymore. For example, if I try to install screen:  sudo apt-get install screen   I get the following warning:  WARNING: The following packages cannot be authenticated!   screen Install these packages without verification [y/N]?   If I ignore the warning, I get  Err http://archive.ubuntu.com/ubuntu/ saucy/main screen amd64 4.0.3-14ubuntu10   404  Not Found [IP: 91.189.92.200 80] Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/screen/screen_4.0.3-14ubuntu10_amd64.deb  404  Not Found [IP: 91.189.92.200 80] W: Duplicate sources.list entry http://archive.getdeb.net/ubuntu/ trusty-getdeb/apps amd64 Packages (/var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_trusty-getdeb_apps_binary-amd64_Packages) W: Duplicate sources.list entry http://archive.getdeb.net/ubuntu/ trusty-getdeb/apps i386 Packages (/var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_trusty-getdeb_apps_binary-i386_Packages) W: You may want to run apt-get update to correct these problems E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   With other packages it's the same. First the warning, then some 404s, then the "unable to fetch some archives" error.  I've tried running apt-get update (which also throws lots of 404s), checked that I'm not behind a proxy, nothing worked.  From what I've read I guess it may have something to do with my distro being unsupported. But Petra when obsolete in July 2014 and I've had this problem since only a few days ago. If that's the problem, do I need to upgrade or is there another solution?


Can anybody help me with this, any help is appreciated.  I want to create a news blog where any anonymous user can put the news post, but for posting news article, the user must provide their valid email, the verification mail should be sent to that user. News should only be posted after only the email is verified.


meaning of comma in bottom of binomial coefficient

I know what the binomial coefficient means in combinatorics, e.g. $\binom6{2}$ means "6 choose 2" i.e. how many different subsets of size 2 can there be, out of a set of 6 elements.  But what does it mean when there is a comma in the bottom of the coefficient, for example $\binom6{2,2}$?  I saw this usage in the first answer here, and I'd never seen it before:


I installed Ubuntu along side windows xp, and at the choose OS screen my keyboard doesn't work. I can't even hit enter to just start xp I have to wait for the count down. Any ideas?


Whats causing my script is exiting while loop

What is causing this script to exit the loop at line "program is exiting loop here"? In the context it will loop twice but it won't if i have the CM_CHECK_STATUS where i have it. RUNLOG="log" OUTPUTFILE="output"  LIST=$(/usr/local/bin/sshpass -f $PASSWORD_FILE  ssh -o StrictHostKeyChecking=no $USER@$IP "ls -al" 2>> $RUNLOG > $OUTPUTFILE)  PS_VALS=$(cat $OUTPUTFILE)  if [[ $? != 0 ]] then   echo "There was an error at:" `date` >> $RUNLOG else   while IFS= read -r line;    do     # Check ls     echo "... $line ..."     CM_CHECK_STATUS=$(/usr/local/bin/sshpass -f $PASSWORD_FILE  ssh -o StrictHostKeyChecking=no $USER@$IP "ls -al")     #program is exiting loop here   done <<< "$PS_VALS"   echo "finished" fi  If i remove CM_CHECK_STATUS=$(/usr/local/bin/sshpass -f $PASSWORD_FILE  ssh -o StrictHostKeyChecking=no $USER@$IP "ls -al") and place it anywhere else outside the loop that command works fine and the loop runs as expected. Is there something wrong with using that command inside a loop?


Using different versions c# and .NET Framework with dll

A project with C# 3.0 and .NET Framework 3.5 can use a dll with the most recent version of C# and .NET Framework ? A project with C# 3.0 can use a dll with the most recent version of C# but similar .NET Framework version ? A project with .NET Framework 3.5 can use a dll with the most recent version of .NET Framework but similar C# version ?


What value should be used for an LED with current rating of 350mA ~ 1000mA

I looking to make a basic LED circuit using a CREE LED from eBay. My only problem is calculating what value resistor that I need. If it is really neccesary, I could purchase an LED driver, but before doing so I would just like to know what value resistor I need to operate the LED.  I know how to work out the value for the resistor, my problem is that I do not know what the current I should use to calculate it is. The current of the LED is stated as 350mA ~ 1000mA, so what value do I use, is any value between these okay?  Just incase, here's the specs of the LED: Colour: Red Wavelength: 620-625nm Luminous Intensity: 62 DC Forward Voltage: 2-2.4V DC Forward Current: 350mA-1000mA PCB Size: 20mm View Angle: 130 Degree  I know this is probably a really stupid question with a really simple answer, but my 2 functioning brain cells don't know what to do. Any help would be greatly appreciated, have a nice day!


Half of my lights and oulets are not working after heavy winds?

We have solar panels and mains power. Last night was very windy; we heard quite a few bangs from outside and thought it might be the wires getting knocked together. Woke up this morning and we have power to everything except the lights and our stove. We have a smart meter and it has no pulse light. What do you think could be the problem. Is it a main fuse coming into house before the meter?


Hello everyone I'm having problems with missing characters in my code, tried to use some things with utf-8 but didnt worked. the entire site is on php but the rest is working fine just this page that is having this problem.   <?php       $tipo =$_GET["tipo"];        $conexao = mysqli_connect("127.0.0.1","root","","db_tcc") or die ("Não foi possível se conectar com o servidor.");       $varsql = "SELECT * FROM tb_guias WHERE TIPO=$tipo ORDER BY id ASC";       $carregar_guias = mysqli_query($conexao, $varsql);           while ($linha = mysqli_fetch_array($carregar_guias))       {         $titulo = $linha["TITULO"];         $blob1 = $linha["IMG1"];         $blob2 = $linha["IMG2"];         $blob3 = $linha["IMG3"];         $texto = $linha["TEXTO"];          $img1 = imagecreatefromstring($blob1);           ob_start();          imagejpeg($img1, null, 80);         $data1 = ob_get_contents();         ob_end_clean();        $img2 = imagecreatefromstring($blob2);         ob_start();        imagejpeg($img2, null, 80);       $data2 = ob_get_contents();       ob_end_clean();        $img3 = imagecreatefromstring($blob3);         ob_start();        imagejpeg($img3, null, 80);       $data3 = ob_get_contents();       ob_end_clean();           echo "

$titulo

";         echo '';        echo"	";        echo '';        echo"	";        echo '';        echo "

$texto

";         echo "

";        }     ?>


Seems like I , I think I am missing something important.     Let $V$ be an $n$ dimensional inner product space ($n \geq 1$), and $T\colon\mathbf{V}\to\mathbf{V}$ be a linear transformation such that:         $T^2 = T$   $||T(a)|| \leq ||a||$ for every vector $a$ in $\mathbf{V}$;         Prove that a subspace $U \subseteq V$ exist, such that $T$ is the orthogonal projection on $U$.   Now, I know these things:   The fact hat $T^2 = T$ guarantees that $T$ is indeed a projection, so I need to prove that T is an orthogonal projection (I guess this is where $||T(a)|| \leq ||a||$ kicks in). To do this I can prove that:   For every $v$ in $ImT^{\perp}$, $T(v) = 0$ Alternatively, I can prove that for every $v$ in $ImT$ and $u$ in $KerT$, $(v,u)=0$. $T$ is  (according to Wikipedia) The matrix $A = [T]_{E}$ when $E$ is an orthonormal basis, is hermitian (this is equivalent to the previous point). What else?    I've been thinking about it for quite some time now, and I'm pretty sure there is something big I'm missing, again. I just don't know how to use the data to prove any of these things.  Thanks!


Not a single Software download from ubuntu software centre

I am using Ubuntu 12.04 and trying to install vlc via ubuntu software centre. When I press Install, the following prompt shows up  **Package dependencies cannot be resolved**  This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.   vlc: Depends: vlc-nox (= 2.0.8+git20140211+r49186+4+5~ubuntu12.04.1) but 2.0.8+git20140211+r49186+4+5~ubuntu12.04.1 is to be installed      Depends: libavcodec-extra-53 (>= 4:0.8-1~) but 4:0.8.10ubuntu0.12.04.1 is to be installed      Depends: libavutil-extra-51 (>= 4:0.8-1~) but 4:0.8.10ubuntu0.12.04.1 is to be installed      Depends: libc6 (>= 2.15) but 2.15-0ubuntu10.5 is to be installed      Depends: libfreetype6 (>= 2.2.1) but 2.4.8-1ubuntu2.1 is to be installed      Depends: libgcc1 (>= 1:4.1.1) but 1:4.6.3-1ubuntu5 is to be installed      Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.1-0ubuntu4.6 is to be installed      Depends: libqtgui4 (>= 4:4.7.0~beta1) but 4:4.8.1-0ubuntu4.6 is to be installed      Depends: libsdl-image1.2 (>= 1.2.10) but it is not going to be installed      Depends: libstdc++6 (>= 4.6) but 4.6.3-1ubuntu5 is to be installed      Depends: libtar0 but it is not going to be installed      Depends: libva-x11-1 (> 1.0.15~) but it is not going to be installed      Depends: libva1 (> 1.0.15~) but it is not going to be installed      Depends: libxcb-keysyms1 (>= 0.3.8) but it is not going to be installed      Depends: zlib1g (>= 1:1.2.3.3.dfsg) but 1:1.2.3.4.dfsg-3ubuntu4 is to be installed   Please someone help me....


How to convert a Unicode character to its ASCII equivalent

Here's the problem:  In C# I'm getting information from a legacy ACCESS database. .NET converts the content of the database (in the case of this problem a string) to Unicode before handing the content to me.  How do I convert this Unicode string back to it's ASCII equivalent?   Edit Unicode char 710 is indeed MODIFIER LETTER CIRCUMFLEX ACCENT. Here's the problem a bit more precise:     -> (Extended) ASCII character ê (Extended ASCII 136) was inserted in the database.  -> Either Access or the reading component in .NET converted this to U+02C6 U+0065     (MODIFIER LETTER CIRCUMFLEX ACCENT + LATIN SMALL LETTER E)  -> I need the (Extended) ASCII character 136 back.    Here's what I've tried (I see now why this did not work...):  string myInput = Convert.ToString(Convert.ToChar(710)); byte[] asBytes = Encoding.ASCII.GetBytes(myInput);   But this does not result in 94 but a byte with value 63... Here's a new try but it still does not work:  byte[] bytes = Encoding.ASCII.GetBytes("ê");    Soltution Thanks to both  and  for pointing in the right direction I solved the problem .


Why do we use encrypt-decrypt-encrypt (EDE) in 3DES, rather than encrypting three times?

I'm wondering why we use encrypt-decrypt-encrypt (EDE) sequence in 3DES (also known as DES-EDE, TDES or TDEA) with three keys instead of three times encryption (EEE) with three different keys?


Why isNaN(true) ( or (isNaN(false) ) is returning false?

Just a simple question...   Why this: isNaN(true) or this:  isNaN(false) return false ?  I can understand that false is evaluate to 0 and true to 1 or something...   But is it not the purpose of isNaN(...) to return false only if a variable or a value is "exactly" a number ?


Show that $f $ is differentiable in a endpoint

Let $f: [a, b]\to\mathbb{R}$ be continuous on  the interval $[a,b]$. Assume that  $f$ is differentiable on the open interval $(a,b)$. Assume that there is a  number $c \in\mathbb{R}$ so that   $$\lim_{x\to b^-}f'(x)=c$$    Show that $f$ is differentiable in the endpoint $b$ with $f '(b)=c$.    Hint: use the mean value theorem.  I hope you can help me, thanks :-)


What is the difference between memory, buffer and stack?

While learning C programming only the memory is mentioned, but in practice it seems that there is more; the buffer and stack words are also used.  What is the difference between these terms? Why are they relevant?  Please, I need a detailed answer. Short answers can't serve. Also some resources may be helpful.


How can I instruct yum to install a specific version of package X?

If there are two (or more) versions of a given RPM available in a YUM repository, how can I instruct yum to install the version I want?  Looking through the Koji build service I notice that there are several versions.


Find all pairs of primes $p,q$ such that $pq \mid 2^p +2^q$.  My attempt  : When either one of them is $2$ then easy case checking gives me set of solutions. But what happens when neither of them is $2$?


Do Schengen visa officers check employment status for all applicants?

I am 23, female, Indian, about to travel to Paris for a conference for 4 days. I am currently unemployed, but was employed until last month. I will be applying for a Schengen visa. Do you think it will be okay to write in the application that I am still employed, since I did get my salary until last month, so the documentation is good. Do the Schengen visa officers check the employment status for everyone? I think lying is never a good option, but I also think if I show that I am just unemployed last month and apply for a visa, they might think I am not planning to return.  In reality, I resigned to study seriously for exams that will allow me higher education in India, but I don't have an admit yet, and I go to a coaching institute during weekends (I started going in February). But saying that I had this thought of resigning exactly before going to Paris sounds fishy I think.  What should I do? My bank account has salary from my employer until a week ago, so just to reiterate, the documents seem perfect if I state that I'm still employed.  I have travelled for conferences before in the past to Schengen countries as well as the UK and the US, only the US visa is valid at the moment.


Edit button doesn't show error in the review queue

I was reviewing first posts and noticed that I could not edit one of the posts (I had too many pending edits), normally there is an error message to explain this, however there isn't in the review queue (this is reproducible by me?):    I realise this is similar to  and  however I do know why it is disabled (I checked by trying to edit on a normal question) and the feature has status-completed (and is working outside of the review queues)  Is this a bug or intentional behaviour?


NullPointerException in Gradle at compile 'com.x.c.l.d'

buildTypes    {debug {proguardFile getDefaultDexGuardFile('dexguard-debug.pro')proguardFile 'dexguard-project.txt' proguardFile 'proguard-project.txt'} release {proguardFile getDefaultDexGuardFile('dexguard-release.pro')proguardFile 'dexguard-project.txt'proguardFile 'proguard-project.txt'}}


mysqld is not starting up anymore due filled disk

How to clean logs or find largest files and reduce the space? also i do not understand 1.7T is not even used in this critical moment.  Mysqld is not running because 99% is used.  # df -h Filesystem      Size  Used Avail Use% Mounted on rootfs           20G   19G  279M  99% / /dev/root        20G   19G  279M  99% / devtmpfs         32G  268K   32G   1% /dev /dev/md3        1.8T  196M  1.7T   1% /home tmpfs            32G     0   32G   0% /dev/shm /dev/root        20G   19G  279M  99% /var/named/chroot/etc/named /dev/root        20G   19G  279M  99% /var/named/chroot/var/named /dev/root        20G   19G  279M  99% /var/named/chroot/etc/named.conf /dev/root        20G   19G  279M  99% /var/named/chroot/etc/named.rfc1912.zones /dev/root        20G   19G  279M  99% /var/named/chroot/etc/rndc.key /dev/root        20G   19G  279M  99% /var/named/chroot/usr/lib64/bind /dev/root        20G   19G  279M  99% /var/named/chroot/etc/named.iscdlv.key /dev/root        20G   19G  279M  99% /var/named/chroot/etc/named.root.key


In Python 2:  >>> class A: ...  pass ...  >>> A.__new__ Traceback (most recent call last):   File "<stdin>", line 1, in <module> AttributeError: class A has no attribute '__new__' >>> class A(object): ...  pass ...  >>> A.__new__ <built-in method __new__ of type object at 0x1062fe2a0>   Conclusion: object contains __new__ and subclasses inherit the method.  in Python 3:  >>> class A: ...  pass ...  >>> A.__new__ <built-in method __new__ of type object at 0x100229940>   __new__ is a defined method in our class, without any inheritance. How does this work? Where does __new__ "come from"?


How do I use “Trad et al. 2002 ” citation for more than two authors?

I am trying to use biblatex for citation. Whenever I am trying to use more than two authors for citation instead of using "et. al." , citation show the name of these three authors like this : D. O. Trad, Ulrych, and Sacchi, 2002 instead of Trad et al. (2002).  @article{trad2002accurate, title={Accurate interpolation with high-resolution time-variant Radon transforms}, author={Trad, Daniel O and Ulrych, Tadeusz J and Sacchi, Mauricio D}, journal={Geophysics}, volume={67}, number={2}, pages={644--656}, year={2002}, publisher={Society of Exploration Geophysicists}   }  I am using it as :  \documentclass{article} \usepackage[style=apa]{biblatex} \addbibresource{paper References.bib}  \begin{document} \section*{INTRODUCTION}  Reconstruction of seismic traces is important to provide a good sampling rate (\cite{cai2014data})  \printbibliography \end{document}   I tried to change the style of the bibliography using ieee, Chicago, natural, apa, mla but I can't get Trad et al. 2002 as was I expected.


SQL Server DMV to show if database is used

What is the best indicator in finding out whether a database is utilized or accessed?  I tried index statistics and  based on I/O utilization but none seem to be a good indicator.   Problem: I have a lot of databases on a development environment and due to space issues we are trying to decommission those that are not used without actually messing with the ones that are really needed.


JAX-RS Jersey: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

I'm trying to make a restfull endpoint using Jersey to an existing application.  When I try to get a list of data (Mails) from my database I get the following error:  java.lang.NullPointerException     product.security.restcontroller.MailController.allMails(MailController.java:40) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498)     com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)     com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)     com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)     com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)     com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)     com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)     com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)     com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)     com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)     com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)     com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)     com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)     com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)     com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)     com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)   This is my rest controller:  package product.security.restcontroller;  import java.util.List;  import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType;  import product.security.model.Mail; import product.security.service.entityservice.MailService;  @Path("/mails") public class MailController {  private MailService mailService; private List<Mail> allMails;   @GET @Path("/all") public List<Mail> allMails() throws Exception {     allMails = mailService.findAll();     return allMails;     } }   And this is my service function  @Override     public List<Mail> findAll() throws Exception {         Query query = em.createQuery("SELECT e FROM Mail AS e");         return (List<Mail>) query.getResultList();     }   Mail service  < bean id="mailService"     class="product.security.service.entityservice.MailServiceImpl"> </bean>   Please note that the application is already running using struts, and the service above works as expected  Update:   Seems like I have a problem with my services :  When I called mailService.findAll()  inside my controller,using Jeresey, I dont go to findAll() function, and it throws NullPointerException.  The same way, I tried to call findAll() function directly using Jeresy like below :   @GET @Path("/all")  public List<Mail> findAll() throws Exception {         Query query = em.createQuery("SELECT e FROM Mail AS e");         return (List<Mail>) query.getResultList();     }   Which did not work eather, and I got a NULL pointer Exception at the line which contains em instance. Knowing that Entity Manager is also managed by using services..  I have already separated xml file which manage the services beans, but it seems like Jeresy cannot see it somehow


So I am quite new to using PDO and although I have to it to work using static settings I would like to be able to change the table name in a statement.   and saw the highly up voted answer. So I attempted to recreate a simple version which would just dump all the information within a column.  Question: Why is my edited version of that persons example not work and return this error below.     Fatal error: Uncaught exception 'PDOException' with message   'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an   error in your SQL syntax; check the manual that corresponds to your   MySQL server version for the right syntax to use near '' at line 1' in   C:\xampp\htdocs\ *****\database.php:84 Stack trace: #0   C:\xampp\htdocs\ *****\database.php(84): PDOStatement->execute() #1   C:\xampp\htdocs\ *****\database.php(88): buildQuery(1) #2 {main}   thrown in C:\xampp\htdocs\ *****\database.php on line 84   The code from the example linked with my small alterations.  function buildQuery( $get_var )          {             switch($get_var)             {                 case 1:                     $tbl = `r16.7`;                     break;             }             global $db;             $sql = "SELECT * FROM $tbl";             $stmt = $db->prepare($sql);              $stmt->execute();             $result = $sth->fetchAll(PDO::FETCH_COLUMN, 1);             var_dump($result);         }         buildQuery(1);


General processing instructions for TeX editors?

Using TeXworks, I can put the following code at the very top of a TeX document:  % !TeX program = LuaLaTeX % !TEX encoding = UTF-8   When TeXworks sees that, it will automatically use LuaLaTeX as compiler, and utf-8 encoding for this document, even if the program preferences are set to something else.  Alternatively, I can use various commands such as  \ifluatex{no problem}{stop, and inform the user}   My question: For the various TeX-specific editors (not general text editors), would the processing instructions for TeXworks also do the same thing? Or, is there some general way of ensuring the correct processing from the very start, without having to detect and generate an error later?


Sugar mama threatening to send someone to kill and blackmail me. Is it a scam?

I will admit I am ashamed at what I did, and a little anxious, but I’ll also share this in hopes that someone will either learn from this, or that someone will know what to do (or even give advice). I was naive roughly two weeks ago, and a sugar mama (or possibly scam) found me on a dating app. I was intrigued by the idea, being a young adult, as well as afraid to say no, so I went along. We started talking and eventually I gave my SSN, address, name: basically info I shouldn’t have. There were no sexual favors involved and they seemed nice, though they had broken English and repeated themselves often (signs I noticed afterwards). Eventually I got the hint that something was wrong, told them I would not give information, and blocked the number. A few days after I blocked the first number, another number texted me, but it happened to be the same person. This time, they were supposedly “pissed” and threatened my life, as well as to send someone after me and my family, saying I could not hide and to watch my back. Even going as far as to use my info for bad things (ironically, they’re threatening to do all that they promised they wouldn’t do before). I eventually told my mother, as scared as I was, and we’re now working on trying to stay safe. So far we called police for precaution and we’re in the process of getting a new number for me + new SSN, but I was wondering as to if we should genuinely worry. Is this a scam? Is this a real but obsessive sugar mama? Are we doing the right thing? Or is it too much? (I apologize if this was too long.)


How I can find Longest Running Query and SPID on SQL Server 2008?


Data tag parsing failed: Encountered multiple top tags, only one expected

The command tag I have been using is as follows:  /summon EntityHorse ~ ~ ~ {Type: 3, Tame: 1, Saddle: 1} Attributes[Name:Horse Jumpstrength, Base:10,Name:Generic.Movementspeed, Base:20, Name:Generic.maxhealth, Base:5000]   I have also tried the following command:  /summon EntityHorse ~ ~ ~ {Type: 3, Tame: 1, Saddle: 1} Attributes:[{Name:Horse Jumpstrength, Base:10,Name:Generic.Movementspeed, Base:20, Name:Generic.maxhealth, Base:5000}]   Neither of them seem to be working. I am running on Minecraft version 1.10.2 on a windows desktop. What am I doing wrong?


How can we know that a black hole exists?

How can we know that a black hole exists if it attracts both matter and light, and to prove that it exists would need to observe it?  It's a very common question but I don't know the answer.


I am trying to merge 2 sorted LinkedList into one sorted List , but getting NullPointerException?

Here is the code i have written, it works fine until i get to the loop, it crashes showing NullPointerException  Looks like i am missing something very basic here.. but when i run the algorithm on pen & paper i don't see any problem at all.  What am i doing wrong please help !  package lesson.datastructure;  public class MergeSort {      public static Node getSortedNode1(){         Node n1=new Node();         n1.value=2;         Node n2=new Node();         n2.value=76;         Node n3=new Node();         n3.value=98;         n1.next=n2;         n2.next=n3;         n3.next=null;         return n1;     }     public static Node getSortedNode2(){         Node n1=new Node();         n1.value=23;         Node n2=new Node();         n2.value=65;         Node n3=new Node();         n3.value=87;         n1.next=n2;         n2.next=n3;         n3.next=null;         return n1;     }     public static void printNode(Node head,String name){          System.out.println(name);         while(head!=null){             System.out.print(head.value+"->");             head=head.next;         }         System.out.println("\n\n");     }      /* Main method ignore all other methods */     public static void main(String[] args){          Node head1,head2;         head1=getSortedNode1();         head2=getSortedNode2();          printNode(head1, "List 1");         printNode(head2, "List 2");          Node sortedMergedList=null;          if(head1.value<head2.value){             Node nextNode=head1.next;             Node isolatedNode=null;             isolatedNode=head1;             isolatedNode.next=sortedMergedList;             sortedMergedList=isolatedNode;             head1=nextNode;         }         else         {             Node nextNode=head2.next;             Node isolatedNode=null;             isolatedNode=head2;             isolatedNode.next=sortedMergedList;             sortedMergedList=isolatedNode;             head2=nextNode;         }           while(head1!=null || head2!=null){        //Null pointer here while accessing head1 or head2             if(head1.value<head2.value){                 Node nextNode=head1.next;                 Node isolatedNode=null;                 isolatedNode=head1;                 isolatedNode.next=sortedMergedList;                 sortedMergedList=isolatedNode;                 head1=nextNode;             }             else             {                 Node nextNode=head2.next;                 Node isolatedNode=null;                 isolatedNode=head2;                 isolatedNode.next=sortedMergedList;                 sortedMergedList=isolatedNode;                 head2=nextNode;             }          }             printNode(sortedMergedList, "merged sorted list");      }       }


How does the Divination wizard's Expert Divination feature work when you upcast a divination spell?

The School of Divination for a wizard has the feature  at level 6 (PHB, p. 116):  Expert Divination When you cast a divination spell of 2nd level or higher using a spell slot, you regain one expended spell slot. The slot you regain must be of a level lower than the spell you cast [...]  The wording of the feature is confusing to me. If a 6th-level wizard used a 3rd-level spell slot to upcast Mind Spike (a 2nd-level spell), does the Expert Divination feature count it as a 2nd-level spell (the original level of the spell) or a 3rd-level spell (since it was cast with a 3rd-level spell slot)?


Java class inheritance constructor problem

import java.util.*;  class Person {     protected String firstName;     protected String lastName;     protected int idNumber;      // Constructor     Person(String firstName, String lastName, int identification){         this.firstName = firstName;         this.lastName = lastName;         this.idNumber = identification;     }      // Print person data     public void printPerson(){          System.out.println(                 "Name: " + lastName + ", " + firstName              +   "\nID: " + idNumber);      }  }  class Student extends Person{     private int[] testScores;      /*   Class Constructor     */     Student(String fName, String lName, int id, int[] scores){         super(fName, lName, id);         for(int i = 0; i < scores.length; i++){             testScores[i] = scores[i];         }     }      public char calculate(){         int total = 0;         for(int i = 0; i < testScores.length; i++){             total = total + testScores[i];         }         int grade = total/testScores.length;         char mark = 'q';         if(grade <= 100 && grade >=90){             mark = 'O';         }         else if(grade < 90 && grade >= 80){             mark = 'E';         }         else if(grade < 80 && grade >= 70){             mark = 'A';         }         else if(grade < 70 && grade >= 55){             mark = 'P';         }         else if(grade < 55 && grade >= 40){             mark = 'D';         }         else if(grade < 40){             mark = 'T';         }         return mark;     }   }  class Solution {     public static void main(String[] args) {         Scanner scan = new Scanner(System.in);         String firstName = scan.next();         String lastName = scan.next();         int id = scan.nextInt();         int numScores = scan.nextInt();         int[] testScores = new int[numScores];         for(int i = 0; i < numScores; i++){             testScores[i] = scan.nextInt();         }         scan.close();          Student s = new Student(firstName, lastName, id, testScores);         s.printPerson();         System.out.println("Grade: " + s.calculate());     } }   I'm practicing Java class inheritance and I came across a problem running the above code. I made a person class with methods and instance variables and a student class that extends the person class with an additional instance variable of an array that holds the marks. Also, there is a method that calculates the mark based on the average. When I try to print all the info of the student it gives an error. I think the problem is the constructor of the subclass I'm not sure. Can you guys help me?


Python can't print Unicode when piped to file

Python correctly handles printing Unicode until you try to pipe it to a file.   Compare:  $ python -c "print u'\u2018'" ‘   To:  $ python -c "print u'\u2018'" > out.txt Traceback (most recent call last):   File "<string>", line 1, in <module> UnicodeEncodeError: 'ascii' codec can't encode    character u'\u2018' in position 0: ordinal not in range(128)   Why does this happen?


How to round up the result of integer division?

I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java.  If I have x items which I want to display in chunks of y per page, how many pages will be needed?


Android: "Corrupted" MicroSD reads/writes fine in my laptop, but can't be formatted

I was moving some files to my Android phone's MicroSD, and suddenly the file system became read-only. I put the card into my Linux laptop and it mounted fine. I can read and write to it, no problem.  However, I can't delete or format the partition, using Gparted, mkfs, gnome-disks or anything else. It will think it's formatted the card, but it will immediately show up again with the old filesystem (exfat).  And the Android won't recognize the card, which it says is corrupted, and formatting in the phone fails. So what can I do?


How to pass a string which contain UTF-8 characters from javascript to PHP?

I'm building a references generator and I need to keep track of the generated references. To achieve this, I'm currently using Javascript to store a cookie containing the raw data, then a PHP page embedded on the result page takes the cookie and logs it into an HTML page, however, some characters appears like this : �. I really don't know which way to go to solve this (base64 encoding, unicode encoded characters...)  Here's the link to the website :   [It's in french]  I can't give you the link to the HTML page for obvious confidentiality reasons, however I'll provide a screenshot :


What are the arguments against modals when a page loads?

I'm working for an e-commerce client who has requested a design for a newsletter signup modal to appear on page load the second time a user visits the site. I've tried to explain to them that blocking a users progress with a popup wall which forces them to click is bad UX, that modals should be triggered by a user action and not just by arriving somewhere and that there are ways to display this sign up that won't annoy users.   Are there more concrete figures/studies I can point to that help make avoiding this a bit more straight forward? They heard it "isn't so bad" from an "ECRM industry expert" and I'm pretty sure ECRM will beat poor old UX unless I get some support.


According to relativity, no useful matter can travel faster than light. Suppose that your are a light beam travelling. Now you have a parallel light beam travelling beside you. Suppose you look at the paralle light beam. Since both of your speeds are equal, will it appear stationary to you or ahead of you? If it does not appear stationary, how is it possible when both of your speeds are equal? If it appears stationary, won't  it violate maxwells equation?


PDO not executing bound variables correctly

So I am having this strange issue with PDO, in that queries with bound variables are not executing properly for some reason. Let me show some code:  $conn = new PDO("mysql:host=$db_host;dbname=$db_name", $db_user, $db_pwd); $sth=$conn->prepare("select count(*) from article"); $sth->execute(); var_dump($sth->fetchColumn());   This will print out the correct number of entries in the table "article".  However, if we change it slightly, by making the table a named parameter instead of a constant:  $conn = new PDO("mysql:host=$db_host;dbname=$db_name", $db_user, $db_pwd); $sth=$conn->prepare("select count(*) from :article"); $sth->execute(array(":article"=>"article")); var_dump($sth->fetchColumn());   This will print a boolean false. Both statements should return the same result, but I have no idea why the second one is not working. I suspect I have a typo somewhere, but I checked several times, and I don't see any issue. Anyone have any idea?


The time on my machine is wrong.  I have exhausted almost all the popular solutons without success.  I am not able to change the time even manually through settings.  I dual boot with Windows 10.


In class, I made the argument that economics is not science, because it cannot undertake repeatable experiments. Someone rebutted: this would mean that I am ignore an emerging body of work, some by prominent Nobel Prize winners, that is transforming economics into a field firmly grounded in fact.   How would you justify whether economics is scientific or not?


How to overcome a reverential fear when meeting the topmost minds in your field?

Once upon a time on one fortuitous conference, I stumbled upon one of the most outstanding and revered academician in my field. I had a nice question nicely formulated in my head, but when I finally met this towering intellectual figure I was struck with nigh-religious trepidation and lost my marbles for a brief moment. So my question is: When meeting the Einsteins/mega-stars of your subject how do you secure your composure?


Different HTTP status codes returned by requests and flask server

I have written a python script which uses the requests library in order to test a Flask application.  While testing the login mechanism, the script isn't able to distinguish succesful login attempts from failed ones. HTTP POST requests always return a 200 HTTP status code.  On the server end insted, succesfull user login attempts are logged with status code 302, since I redirect the user to the homepage after login.   Tester code (with correct user credentials):  >>> import requests >>> from utils import retrieve_csrf_token >>> url = 'http://localhost:5000/login' >>> token = retrieve_csrf_token(url) >>> session = requests.Session() >>> r = session.post(url, data={'email':'admin@test.com','password':'123456','csrf_token':token}) >>> r.status_code >>> 200   Server log:  Valid form submitted 127.0.0.1 - - [29/Dec/2018 17:33:32] "POST /login HTTP/1.1" 302 - 127.0.0.1 - - [29/Dec/2018 17:33:32] "GET /home HTTP/1.1" 200 - 127.0.0.1 - - [29/Dec/2018 17:33:32] "GET /favicon.ico HTTP/1.1" 404 -   EDIT:  After further inspection I noticed that, after sending the POST request, the response in r.text is the homepage source code.  Following the same steps using a proxy or inspecting the requests using Chrome Developer tools I see the correct codes.


I'd like to be able to search for questions by multiple tags; for example "questions tagged 'nhibernate' and 'web-services'".  I can get close by searching for "nhibernate web-services" but the results tend to be a few questions that relate to both terms--but much more largely just questions that relate to one or the other.


How to find the sum of the series $\sum_{k=2}^\infty \frac{1}{k^2-1}$?


All internal links on Stack Exchange sites should be protocol-relative

In preparation for the eventual deployment of full HTTPS support on Stack Exchange, and also to make the currently available "alpha" HTTPS support more usable, all links from Stack Exchange sites to other Stack Exchange sites should be .  Currently, at least the following places still feature links with explicit http: protocol prefixes:   the page footer, the "Hot Network Questions" and "Community Bulletin" modules in the sidebar,  (the site switcher menu is OK, though),   and, of course,   lots and lots of user-supplied links in post and comment content.   I've posted this feature request with the intent to provide a single central place for tracking these issues, rather than having them scattered across multiple meta threads.  If you find more places on SE where protocol-relative links should be used, please report them below.  I fully expect this request, in its full sense, to be treated as  for the time being; however, these issues do need to be fixed at some point before our HTTPS support is ready for "prime time".  Ps. Yes, the next release of  (v1.10) is going to include a general client-side fix for most of these issues.  In the mean time, the  plugin effectively provides the same functionality, and much more besides.


At what times before $1{:}30$ in the afternoon do all three doctors schedule their appointments to begin at the same time?

In a certain medical group, Dr. Schwartz schedules appointments to begin $30$ minutes apart, Dr. Ramirez schedules appointments to begin $25$ minutes apart, and Dr. Wu schedules appointments to begin $50$ minutes apart. All three doctors schedule their first appointments to begin at $8{:}00$ in the morning, which are followed by their successive appointments throughout the day without breaks. Other than at $8{:}00$ in the morning, at what times before $1{:}30$ in the afternoon do all three doctors schedule their appointments to begin at the same time?  I'm not sure how to approach this question. They all begin at the same time at $8{:}00$. Also doesn't the overlapping of appointments depend on how long their respective appointments take?


When having an LLC taxed as an S Corp, what difference does it make to retain a profit since it is a pass-through entity?

Suppose I have an LLC and for simplicity's sake I'm the only member and I choose to be taxed as an S Corp. I fill out a W2, becoming an employee-owner of the LLC and I pay myself 50% of the LLC's earnings.   From what I can gather, I must pay Social Security and Medicare tax on my salary but the LLC's retained profits are not subject to these taxes.  If the LLC is a "pass-through entity" (please correct my terminology if wrong), meaning all of its profits/losses personally belong to its members, then won't the profit not paid as salary become my income and be subject to Medicare/Social Security tax? Or is it only subject to income tax?


Why does the simplest \newenvironment not work as expected?

\documentclass{article} \usepackage{listings}  \newenvironment{hello}{\begin{lstlisting}[language=sh]}{\end{lstlisting}}  \begin{document}  \begin{hello} ls \end{hello}  \end{document}   The code cannot be compiled by xelatex, the compiler is hung.  What's the root cause?


How to get the children of the $(this) selector?

I have a layout similar to this:

   and would like to use a jQuery selector to select the child img inside the div on click.  To get the div, I've got this selector:  $(this)   How can I get the child img using a selector?


When I tar multiple files up, I end up with an extra file for some reason.  What I am doing is:  tar -czvf tests.tar.gz test1.csv test2.csv test3.csv   When I look at the tar structure, for some reason I end up with:   tar -tvf tests.tar.gz -rw-------  1 admin Users 519 Jun  8 11:55 ./._test1.csv -rw-------  1 admin  Users  52 Jun  8 11:55 test1.csv -rw-------  1 admin Users 152 May 10 11:09 test2.csv -rw-------  1 admin Users 152 May 10 11:09 test3.csv   I don't want the file ./._test1.csv . How do I create a tar that doesn't have this?  I am running this in OS X terminal.


How do I handle partially correct edits in the Suggested Edits review queue?

Contradicting Instructions While going through the suggested edits review queue, one sometimes stumbles upon partially useful edits like . Trying to follow the instructions listed in the descriptions doesn't lead to a conclusive answer. Considering our example:   Approve edits that clearly improve the post ↳ No, not *clearly* Improve Edit when you can make additional improvements to the post ↳ I most definitively can Reject and Edit to replace an ineffective edit with your own substantive changes ↳ It is ineffective in the sense that it made the post worse overall (imho) Reject edits that fail to improve the post or that make it worse ↳ Like the last option: yes Skip if you are not sure and want to go to the next suggested edit ↳ Well, yes. But that is really why I am here, asking this question   Reasoning about the remaining Choices This leaves us with three choices: Improve Edit, Reject and Edit and Reject (the last one slightly modified):  Improve Edit  + Acknowledges that some things in the edit where correct - Learning effect for author might vanish, as the improvement might get overlooked - Can't leave a custom message for edit author (except in comments, which pollutes the thread) - Doesn't trigger the system which "punishes" users who repeatedly have their edits rejected - Rewards the edit author with reputation for a poor edit   Reject and Edit  + Clearly shows the author that there were problems with the edit - Still can't leave a custom message explaining the problems of the original post. - One has to partially redo parts of the edit that have just been rejected, which might feel unjust to the original editor   Reject with a custom note and come back immediately to make a good Edit  + Clearly shows the author that there were problems with the edit + Possibility to leave an explanation as to what was wrong with the edit - One still has to redo parts of the edit that has just been rejected - Seems to be a weird workaround for Reject and Edit   Something else?   Each of the three options come with their distinct advantages/disadvantages making it non trivial to decide which one to pick.  Or does the answer simply depend on the quality of the edit? Like:  Improve Edit for subjectively slightly positive edits Reject and Edit (Or Reject and Edit) for subjectively slightly negative edits


How to select (highlight) text in Skype chat without using a mouse?

Recently I started learning to use keyboard shortcuts almost for everything I'm doing on the laptop, but soon enough after I started, I bumped into the problem of being unable to highlight (select) simple text in Skype chats.  I did some research and I couldn't find any solution to my problem. Have I missed an already answered question that is the same like mine or if not what solution can you suggest in order to achieve the results I want without touching mouse or touchpad or any cursor moving device?


As part of an investigation, a student of mine needed to evaluate the limit,  $$\lim_{\beta\to 0+}\int_0^\beta\frac{1}{\sqrt{\cos\theta-\cos\beta}}\,d\theta.$$ Mathematica gives the answer as $\frac{\pi}{\sqrt2}$, but I couldn't show her a nice way of proving this. Is there any way to do this that a (bright) high school student might understand? Or does it necessarily involve an excursion into the land of elliptic integrals?   For interest's sake: the limit arose when she was trying to see how well the circle approximates the .


Need to unlock Coby tablet; MicroSD card not formatted

My Coby Kyros MID7024 tablet is locked with a pattern lock. The person who set the pattern lock has unfortunately forgotten it. I tried to unlock the tablet using these methods:   The volume adjustment buttons are broken, so it is no use to use them to reset my tablet. When activated, the reset hole does not remove this pattern lock. Why? I plugged my tablet to my laptop (before its USB ports broke) and tried to unlock the tablet with ADB (which can be found in the Android runtime and developer tools from Google). Unfortunately, I forgot to enable USB debugging just in case it ever got locked up. My MicroSD card is not formatted right now, so I cannot download an app to unlock my tablet because I need to format the SD card before I put anything on it again.   I do not know of any other methods to unlock the tablet.


How to recover a Gmail account after changing the password?

I have changed my Gmail password, and I can not recover it. I have the Old password, which was working fine. I have lost my account data. I have changed my phone number. The alternative email have been closed by server provider(I do not sign in for long time). So, I tried several things, all failed, but I have found a software called "Gmail Account Password Hacker", Can I trust and install it?


After reading  thread, it appears to me that creating a new element is a game of chance some sort of an art. It also appeared to me that the higher you go, the harder it is to make an element.   Anyways, What's the use of creating new elements? Has there been any research on the practical applications of these new elements? Is there a limit on how  massive an atom can get?   I haven't done any research about this because it just popped up in my mind.


How do I run GIMP 2.10 from a command line in Ubuntu 20.04

I installed flatpack GIMP 2.10 in a fresh Ubuntu 20.04 VM, and I'm trying to run it from a command line. (I'm hoping that error messages will tell me why my Python script won't load.) Unfortunately, the terminal says that the "gimp" command doesn't exist. I suspect that adding GIMP to the PATH variable might help, but how do I find the path? (If it helps, the Python plug-in folder is: /app/lib/gimp/2.0/plug-ins .)


Another word for "theory" or "belief" that doesn't quite rise to the level of either. An atheist's "theory" of creation

Theory isn't the right word because my "theory" is nothing but an idea that works for me that would take forever to explain. Actually, explaining my "theory" is exactly why I need the word :) Since the subject is creation, I don't want to call my "theory" that word because it's completely non-scientific, hardly salt to the Theory of Evolution's pepper.  Belief isn't the right word either. Again, my thing doesn't rise to that level. I believe in global warming, evolution, apple pie and that Jon Snow will live until (maybe even THROUGH) the end! I don't believe in God in any sense that I've ever heard preached or that I've read. Faith doesn't work either. The word "faith" fits better to the Jon Snow reference above.  My degree of certainty that my "theory" is correct is kind of nil. I guess I can describe it as something my scientific psyche can accept and that makes me feel warm and fuzzy. I'd like to think my thingy is right.  So, what can I call it?


I have Ubuntu 12.04 installed on my PC, recently I have edited /etc/passwd  and changed  user1:x:00:00:user1,,,:/home/user1:/bin/bash   to give root permission to user1 and the system always need to login as root, for running some custom software.  Now it seems the sound is not working, the volume icon is disabled. I understand that the pulseaudio demon can't be run as root that's why the audio is not working. How can I resolve it, like set the permission of pulseaudio to run as root.   When I type the command    /usr/bin/pulseaudio --start   Giving me the output  W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified). E: [autospawn] core-util.c: Home directory /home/user1 not ours. W: [autospawn] lock-autospawn.c: Cannot access autospawn lock. E: [pulseaudio] main.c: Failed to acquire autospawn lock   Edit   Solution for problem:  I have fixed the problem by disable root checking for pulseaudio equalizer  sed -i 's/exit 1/#exit1/g' /usr/bin/pulseaudio-equalizer


Combining rows where dublicates are found

I'm trying to create an SQL query that will combine rows where a row sharing an ID is found, but print normally if now. I have a Computer and Harddisk database. The Computer DB has a Id and the Harddisk DB har a Id and a ComputerId for the associated computer. Some computers have more harddisks so I'd like to combine these into the same column. I've attached a image below explaining the two tables and the desired output:  My current query reads: $queryHDDS = "SELECT *,CONCAT(ComputerId) FROM HardDisk GROUP BY Id"; Trouble is it is no combining two harddisks that are associated by a shared ComputerId Hope someone is able to help me out with this!


We know Ungoliant is Shelob's mother and we know that Shelob lives high up in the mountains surrounding Mordor near Cirith Ungol (note the reference to Ungoliant) and eats whoever comes up there.  So what fate ultimately befell Ungoliant and Shelob?


is there an non-constant analytic complex function that receives only real values ?

I want to find something like $f(z) = |z|$ (complex function that get's only real values) the problem here is that $f(z)$ is not analytic.


Default route in debian with two interfaces

I have a debian machine with two interfaces, configured by dhcp:  allow-hotplug eth0 iface eth0 inet dhcp  allow-hotplug eth1 iface eth1 inet dhcp   On boot, a default route is added to eth1:  0.0.0.0         10.200.10.253   0.0.0.0         UG    0      0        0 eth1 10.0.2.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0 10.200.10.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1   But I need the default route to be a gateway on eth0 instead.  Deleting the default route and running dhclient after boot works:  $ sudo route del default $ sudo dhclient -v eth0   I know I can put this on rc.local, but is there a more "clean" way to do it?  I can't use a static address.


A group of order $p^2q^2$ is never simple

Let $p,q$ be primes and let $G$ be a group of order $p^2q^2$, what's the best way to show $G$ is non-simple?      I know it suffices to show that one of the Sylow-p or Sylow-q subgroup of $G$ is normal, but the counting elements argument doesn't work here since different Sylow subgroups may have non-trivial intersection.


Central location for what kind of questions can I ask on every SE site?

Sometimes don't understand this question better suits to which SE site. So I may have account on that site but not able to understand that question should be asked there. Or may get similar question on that site. But I wouldn't like to see faq of every site to check . We can see different types of areas here . There might be question which can fit into 2 or more sites.  Is there any central location for what kind of questions can I ask on every SE site? Or is there any collection of site with it's one faq saying .  Update: I am saying is there any central location also for reading what kind of question I can ask on this site like  And I am not saying to remove What kind of questions can I ask here? faq from all sites. I do read faq of every site. But it would be good if I know what kind of question I can ask on each site when do anyone join SE community. It would be helpful for searching my similar problems on that sites also.


After the upgrade to 13.10 I only see social media results in the finder

I've upgraded to Ubuntu 13.10. If I now click the Ubuntu logo the default is that it only searches in social media. I cannot find my programs any more!


Test diagonalizability of $T(A)=A^t$ over all $n\times n$ matrices

Let $V$ be the vector space of all $n\times n$ matrices over $F$. Let $T$ be the linear operator on $V$ defined by $T(A)=A^t$. Test T for diagonalizability, and if $T$ is diagonalizable, find a basis for $V$ such that the matrix representation of T is diagonal.  My attempt: if c is the eigenvalue of $T$, $T(A)=cA$, $A^t=cA$ $\implies$ $(A^t)^t=(cA)^t$ $\implies$ $A=cA^t$ $\implies$ $A^t=cA=c(cA^t)=c^2A^t$ $\implies$ $A=c^2A$ $\implies$ $c^2=1$ $\implies$ $c=1,-1$.  So $A^t=A$ or $A^t=-A$, if $A^t=A$, then $A$ is a symmetric matrix, for example, a $3\times 3$ matrix:$\begin{bmatrix}0&1&0\\1&0&0\\0&0&0\end{bmatrix}$ satisfies $A^t=A$.  if $A^t=-A$, for example:$\begin{bmatrix}0&1&0\\-1&0&0\\0&0&0\end{bmatrix}$ satisfies $A^t=-A$.  But how do I find a basis? I guess that the answer is that it is diagonalizable.


Is the information that the Linux kernel provides to the user via  a  of the information that the Linux kernel provides to the user via ?  If not, then which information is provided via sysfs that is not provided via procfs?


I have 2 buttons btn_openport and btn_closeport with below code: btn_openport opens the socket and allows for new connection : is working fine btn_closeport calls the below method in background in asynctask:  private static class closePort extends AsyncTask { @Override protected Object doInBackground(Object[] objects) {     Boolean closestatus = new OpenClosePort(port).closePort();              ......rest of code }  class openclose {     private Socket socket = null;     private ServerSocket server = null;      private static final String TAG = "ports";      private int port;      void openPort() {         try {             server = new ServerSocket(port);             socket = server.accept();         } catch () {         }         ..........     }      Boolean closePort() {         Log.e(TAG + "/closePort", ">>> Closing Port : " + this.port);         try {             socket.close();              return true;          } catch (Exception e) {             Log.e(TAG + "/closePort", "Error closing port: ", e);             return false;         }     } }   However, when this code for closing port is executed, I am getting NullPointerException, although the client is connected on the socket.  How can I fix this?  Error::  11-05 12:06:35.938 533-533/com.app.fi E/MyActivity/closePort: >>> Closing Port : 5556 11-05 12:06:35.941 533-533/com.app.fi E/MyActivity/closePort: Error closing port:     11-05 14:18:55.102 7460-8810/com.app.fi E/MyActivity/closePort: >>> Closing Port : 5556 11-05 14:18:55.104 7460-8810/com.app.fi E/MyActivity/closePort: Error closing port:      java.lang.NullPointerException: Attempt to invoke virtual method 'void java.net.Socket.close()' on a null object reference         at com.app.fi.OpenClosePort.closePort(OpenClosePort.java:54)         at com.app.fi.MainActivity$closePort.doInBackground(MainActivity.java:83)         at android.os.AsyncTask$2.call(AsyncTask.java:333)         at java.util.concurrent.FutureTask.run(FutureTask.java:266)         at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)         at java.lang.Thread.run(Thread.java:764) 11-05 14:18:55.109 7460-8810/com.app.fi W/checkPortStatus: Printing Socket value : Socket[address=localhost/127.0.0.1,port=5556,localPort=45524]


Alignment issues in achievements dialog on non-responsive pages when viewed on mobile

When viewing the achievements dialog on non-responsive pages (like the ) in Safari on an iPhone, the alignment is off: reputation changes take more horizontal space than badges. Also, the badges align to the bottom of the row instead of the top.    I am not sure if all pages will eventually get the responsive treatment; if they do, it's probably not worth the effort to solve it.


Can a stable structure actually enclose a black hole of a certain radius?

If a structure were sufficiently strong at a large enough radius from a black hole, could it completely enclose a black hole without collapsing in, since in some sense the material would pull on itself uniformly?


Different layer styles at different scales in QGIS?

I would like to be able to show a basic style for a layer at a large scale, e.g. GB-wide, with all polygons the same, but for this to change at a smaller scale, e.g. 1:25K, to differentiate between polygons.  Ideally I would like to be able to do this without changing the style/loading a saved style, each time I change scale.  Is this possible?


How to create "Send to "FOLDER" " similar to send to desktop shortcut?

I've been trying to keep some files in a separate folder as shortcut, so that I can keep track of my favourite media files and images etc in a specified folder as shortcut. I don't want to always copy these files everytime to that location so I was thinking of making it easier by adding a shortcut to the "send to" menu... I have windows 7 on my pc.  I'm trying to create a shortcut similar to the "send to Desktop (create shortcut)" that can simply place a shortcut in my "C:\Fav Media" folder, or similar location AS A SHORTCUT. Methods I had in mind:   Create a batch file that takes any file as input and creates a shortcut of that file in that folder. Thus any file can be dropped to the batch.bat.lnk shortcut and it's shortcut is sent to that folder. If file drop is successful, then I believe that send to option will do the same thing. I checked the "desktop (create shortcut).desklink" and it's extension is as already mentioned: .deskling.    I don't intend to play with registry, so if there's any file like a xml or txt or bat in windows that manages .desklink kind of extensions and does place shortcut from sendto menu no matter what the shortcut.desklink is named as, then maybe I could edit that xml and place the "C:\fav folder" as an addition in extensions to that xml with extension: ".favlink" ...  Is this possible? Can this be done in windows 7?  Thanks for any help.


SQL Server: how to generate comma separated string for distinct values in aggregated columns in group by statement

I would like to generate a comma separated string for the distinct occurrences for an aggregated column in a group by statement. So I have:  Select Column1, ???statement involving Column2??? from MyTable group by Column1   I can't figure out what to put between the questions marks.


What is the difference between parametric and non-parametric distributions?

I've learnt that for parametrical distributions you can describe the family of statistical model with the parameters, one such example has been the uniform distribution. I just came across a text saying that the uniform distribution is "inherently non-parametric". What is really the difference between parametric and non-parametric distributions? (I have already read the previous answers on this topic). edit: link  I don't have a background in statistics/mathematics/machine learning.


Iterate over array which name is in another variable in bash

I want to iterate over an array which name is in another variable. This is what I tried so far:  NTASKSLIST=(384 768 1536 3072)  # there are potentially more arrays like these, each custom defined for every entry in NTASKSLIST OV384LIST=("16 16 12" "16 16 16" "18 18 12" "18 18 16" "18 18 18") OV768LIST=("24 16 16" "24 18 18" "32 18 18" "36 18 18" "36 24 24")  for NTASKS in "${NTASKSLIST[@]}" do    OVLIST="OV${NTASK}LIST"   # OVLIST now holds the name of the array I want to iterate    # now I want to iterate over the array which name is in OVLIST but it does not work   for OV in "${!OVLIST[@]}"   do     echo $OV # prints "0" because OVLIST has only 1 item (the name of the array I want to iterate)      # here I want to do stuff with OV and NTASKS    done done   Do you have any suggestions how to do this? Alternative approaches which accomplish the same thing should to as well.  Edit:  As shown the comments by  the answer to my question is:      OVNAME="OV${NTASKS}LIST"[@]     OVLIST=( "${!OVNAME}" )      for OV in "${OVLIST[@]}"


Calculate all solutions of non linear congruence

Fermat's little theorem states that if $p$ is a prime number, then for any integer $a$, the number $a^{p}-a$ is an integer multiple of $p$. In the notation of modular arithmetic, this is expressed as $$ a^{p} \equiv a \quad(\bmod p) $$ Using Little Fermat Theorem: find all solutions: $x^{14} \equiv 9(\bmod 13)$ I'm having first experience with non linear congruences so i would be glad if somebody explained my how to make progress with that.