How to Fix 'java.lang.reflect.InvocationTargetException' caused by 'java.lang.NullPointerException' in javaX
What is a NullPointerException, and how do I fix it?
Sorting by "hot" - what does it mean and why are the sort option different between the homepage and the questions tab? It has come to my attention that on the homepage on any given SE you can sort by "active", "hot", "week", and "month".  The tooltip says the latter three sort by "most views, answers, and votes" over different periods of time.  So it seems that this is uses a different formula than the "arbitrary hotness points" that create hot network questions.  What is the formula and what is the rationale for using views here, but not in the network hot questions?    Also, what is the rationale for offering such different sorting options between the homepage and the questions tab?  I have been active for ~4 months and never realized there was a sort by hotness option on a different screen (as I have always looked at the questions tab to see what was new) until today. Express $\sqrt{3}\sin\theta - \cos\theta$ as: $a\cos (\theta + \alpha) $ Express $\sqrt{3}\sin\theta - \cos\theta$ as: $a\cos (\theta + \alpha) $  Can someone please explain to me how to go about doing this? In what segment (.BSS, .DATA, other) of an executable file are static variables stored so that they don't have name collision? For example:   foo.c:                         bar.c: static int foo = 1;            static int foo = 10; void fooTest() {               void barTest() {   static int bar = 2;            static int bar = 20;   foo++;                         foo++;   bar++;                         bar++;   printf("%d,%d", foo, bar);     printf("%d, %d", foo, bar); }                              }   If I compile both files and link it to a main that calls fooTest() and barTest repeatedly, the printf statements increment independently.  Makes sense since the foo and bar variables are local to the translation unit.  But where is the storage allocated?  To be clear, the assumption is that you have a toolchain that would output a file in ELF format.  Thus, I believe that there has to be some space reserved in the executable file for those static variables. For discussion purposes, lets assume we use the GCC toolchain. Obtaining client IP address in WCF 3.0 Is Design School a Requirement for Graphic Design? Is it required for people to go to design schools to become a Graphic Designer? I've heard many cases where they have started from scratch without previous education in design and are doing fine as freelancers/working in studios.  Would it be better to go to a design school to become a Graphic Designer? How much leverage would it give you if you went to one? For a given class I would like to have tracing functionality i.e. I would like to log every method call (method signature and actual parameter values) and every method exit (just the method signature).      How do I accomplish this assuming that:     I don't want to use any 3rd party AOP libraries for C#, I don't want to add duplicate code to all the methods that I want to trace,   I don't want to change the public API of the class - users of the class should be able to call all the methods in exactly the same way.     To make the question more concrete let's assume there are 3 classes:     public class Caller   {      public static void Call()       {          Traced traced = new Traced();          traced.Method1();          traced.Method2();       }  }   public class Traced   {      public void Method1(String name, Int32 value) { }       public void Method2(Object object) { }  }   public class Logger  {      public static void LogStart(MethodInfo method, Object[] parameterValues);       public static void LogEnd(MethodInfo method);  }   How do I invoke Logger.LogStart and Logger.LogEnd for every call to Method1 and Method2 without modifying the Caller.Call method and without adding the calls explicitly to Traced.Method1 and Traced.Method2?  Edit:  What would be the solution if I'm allowed to slightly change the Call method? using the \lstlistoflistings always named as Contents in table of contents.  I did look into   and  but the solutions there did not work.  Example: (my complete preamble)  \documentclass[11pt, oneside]{Thesis}  \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplots,filecontents} \usepackage{caption} \usepackage{subcaption} \usepackage{booktabs,colortbl} \usepackage{graphicx} \usepackage{rotating} \usepackage{listings} \usepackage{color} \usepackage{comment} \usepackage[official]{eurosym} \usepackage{colortbl} \usepackage{algorithm}  \usepackage{algpseudocode} \usepackage{indentfirst} \usepackage{latexsym} \usepackage{titlesec} \usepackage[square, numbers, comma, sort&amp;compress]{natbib}   \hypersetup{urlcolor=blue, colorlinks=true}  \renewcommand{\lstlistlistingname}{List of Code}   \begin{document}  \tableofcontents \lstlistoflistings \lstinputlisting[language=python,firstline=1,lastline=68,caption=some caption here., label=code:getbb]{Code/getBoundingBox.py} \end{document}   The renew command changes the header in the page but not in the table of contents. Any ideas?  EDIT x2:  Managed to get the naming correct by editing this in the Thesis.cls   }  \renewcommand\lstlistoflistings{  \btypeout{List of Listings}  \addtotoc{List of Listings}  \begin{spacing}{1}{ \setlength{\parskip}{1pt} \if@twocolumn   \@restonecoltrue\onecolumn \else   \@restonecolfalse \fi \chapter*{\lstlistlistingname   \@mkboth{       \MakeUppercase\lstlistlistingname}{\MakeUppercase\lstlistlistingname}} \@starttoc{lot} \if@restonecol\twocolumn\fi \cleardoublepage  }\end{spacing}   Now the name appears correctly in the TOC but the Listings do no show in the Listings page, its just empty..  A MWE can be found here: Is this noun used as an adjective? I read this recently in :     At the end of the summit, the French and European officials had   claimed a points victory over the Germans by getting them to agree   more firmly to a target date of January 1st next year to entrust the   European Central Bank (ECB) with the ultimate authority to supervise   the euro zone’s 6,000-odd banks.   "Points" is a plural, and I suppose it doesn't function as a noun in this sentence since it's following the article "a", so is it an adjective adorning "victory"? I'm on ub20LTS and I really dislike how much top space the topmost bars use. Any idea on how to remove or reduce their numbers?  Edit: Thanks to everybody's support, this is how my workspace looks like now. I've :  Installed gnome-extensions for firefox. Turned off menu bar in ff. Installed dash to dock. Installed hide top bar.  This way you can better utilize your screen space. Any time I am inserting new point feature in QGIS, the Feature Attribute dialog box is popping up. Is there a way to prevent it? (I am willing to insert many points at once and this pop up box slows down the process). Why is "bicycle" pronounced differently from other obviously related words? I have an upcoming trip where I will be flying to and from Copenhagen, through Toronto.  I notice that my departure and return gate in the Philadelphia airport is not in the international terminal.  Where will I clear customs? I tried to evaluate $$\lim_{x\to0}\frac{(1+x)^{1/x}-e}x$$but all my efforts were in vain . L'Hospital rule becomes very complicated. Options to hide reputation information on Stack Overflow? Easy way to disable a UITextField? Is there an easy way to disable a UITextField in code?  My app has 12 UITextField that are all turned on by default, but when a change is detected in my Segment Control I want to disable some of the UITextField depending on what Segment the user picks.  Just need to know how to disable it or make it non-editable?  Thanks Linux - Help, I'm running out of inodes! How can i find the python triggered by the GUI? he or she vs their when using 'one' as a pronoun Mindfulness allows one to cope with their daily challenges.   Is "one" correct with "their" here?  I want to know if it is okay to user their (instead of he or she) when using 'one' as a pronoun. I'm trying to identify a science fiction series on UK TV during the 70s, but I can only recall the following:   A party of adults and children. There was a woman with a telepathic bond to her cat: she could look into its eyes to see what it had seen. Time travel was involved. I think it may have been inadvertent or uncontrolled time travel. On one occasion the party encountered an Elizabethan seaman who demanded to know if Elizabeth was still queen. They party replied "err... yes" because they didn't want to have to explain time travel. How To Change The Fonts In Windows 8 In Windows 7, there is an option to change the fonts for things such as the active title bar, menu, etc. It was found by opening the Window Color and Appearance settings in the Control Panel. I just installed Windows 8 and would like to change the fonts, but I can't find anything to change the actual fonts (there is however a limited drop-down list to change a few font sizes in the appearance settings). Does anyone how to change the fonts used in Windows 8?