I learnt about JAVA basic level. Then, I meet some problem... the inner class instance is not created.  public class example {     class book {          private String name = null;         private int page = 0;          book(String name, int page) {             this.name = name;             this.page = page;         }          String getName() {             return this.name;         }          int getPage() {             return this.page;         }      }      public static void main(String[] args) {         // TODO Auto-generated method stub         book b1 = new book("book1", 300);       // this line is making an error         System.out.println(b1.getName());         System.out.println(b1.getPage());         System.out.println();     } }
What is the main difference between an inner class and a static nested class in Java? Does design / implementation play a role in choosing one of these?
What is the progression route in Terraria? sqlplus doesn't work in Crontab /oracle/GR1/121/bin/sqlplus / as sysdba &lt;&lt;EOF &gt;&gt; $LOGFILE whenever sqlerror exit sql.sqlcode; set echo on; set serveroutput on; STARTUP; EXIT EOF   Already tried it with the path, but it hasn't worked. Can a familiar attune and wear or use a magic item? Is it possible for a familiar to attune to and then wear or wield a magic item? Good way to make \textcircled numbers? This question led to a new package:      I'm trying to make some good-looking numbers in a circle, using the simple command:  \textcircled{1}   However, the circle is misaligned vertically with the number, and look a bit sloppy:    Any suggestions how can I adjust the vertical alignment so that the numbers look more centered w.r.t to the circles? Or, if that's not an option, what other ways to achieve the same results are possible?  I will use those only for numbers, and in very few places, so manual adjustment per glyph is an option.  I'm using pdfLaTeX with Computer Modern, if that matters. Baked beans still firm after soaking and hours of cooking jQuery Validate Plugin - How to create a simple custom rule? How do you create a simple, custom rule using the jQuery Validate plugin (using ) that doesn't use a regex?  For example, what function would create a rule that validates only if at least one of a group of checkboxes is checked? There are many cases in maths where doing the same thing over and over again will bring you closer to a value. Derivation of polynomials is the striking example: no matter what you start with, you end up with 0. In a series expansion, the longer you continue the sequence the closer you get to the real value.  This concept applies in areas other than math (Wikipedia's everything-leads-to-philosophy phenomenon, for example). It's a little unrelated but it just proves the concept.  Hashing algorithms are just special math. Following logically, hash entropy supposedly decreases the more you hash a value. So is there a point at which any input value will give the same hash as any other?  (Let me just specify that we're not re-injecting any new data every time we hash, as if we're trying to increase the security of the hash by salting and re-hashing. It's strictly a matter of md5(md5(md5(... if that's the algorithm we're using.  I can see some problems with this already. Algorithms like md5 are designed to change their output radically when the input changes only by one bit of information. So even if a common hash for two values appears along the way, it itself will start changing. But then, does the fact that the output appears to be very different actually mean the possibilities are still many? A few years ago, I applied for a UK visa. The visa was initially refused and I had no rights of appeal. However, the refusal letter had some glaring mistakes and I sent an email to the Embassy. The refusal was "overturned" by an ECM.  I am now making an application for a visa which has the question "Have you ever been refused a visa?". How should I answer it? How to update to the latest numpy and scipy on Ubuntu 14.04LTS On my Ubuntu 14.04LTS, for python3, I have   &gt;&gt;&gt; import numpy  &gt;&gt;&gt; import scipy  &gt;&gt;&gt; numpy.__version__  '1.8.2'  &gt;&gt;&gt; scipy.__version__  '0.13.3'   I want to update numpy and scipy to the most , I tried with the following commands  sudo pip3 install --upgrade numpy sudo pip3 install --upgrade scipy   both commands ran successfully, but the version numbers didn't change to 1.9.2 and 0.16.0 at all for both python packages (after restarting the computer). Anyone knows how to update to the most version? Thank you very much!! Impossible to hide navigation bars in Safari iOS 7 for iPhone/iPod touch Edited vs emitted - why one t vs two t's Why does "edited" have one "t" and  and "emitted" has two? "Edit" and "emit" are so similar in spelling and pronunciation.  I keep wanting to type "editted" for some reason. Is it possible to show our custom message in QGIS Status bar using python? Is there any way to show our custom message in Qgis Status bar using python? Just like in arcgis IApplication.statusbar.message(0) = "Please wait..."  like that is there any option to show progressbar in Qgis like IApplication.progressbar.show() How do I bake multiple texture maps into 1 UV, In Blender Cycles? My 5 year- old daughter is constantly defiant! My 5-year old daughter is very defiant.  It started getting bad about 6 months ago. She doesn't do what she is told, and any time she hears the word "no" she throws terrible, dramatic fits, screaming ridiculously loud, and in some cases hitting.  She refuses to make eye contact when I warn her to stop doing something even when I am down at her eye level and it takes multiple orders to finally get her to look at me. She constantly tells me no.  I feel like I constantly tell her no and that she feels this gives her the right to tell her father and I no.  I have tried time outs which are not effective at all; she only throws a fit the whole time, never seeming to run out of wind. Spankings are only effective until the shock of the action itself wears off and then she returns to the same behavior.  My husband and I recently took away ALL of her toys/ possessions being she is a pretty materialistic child (she loves getting toys and always wants something new). We told her that if she was good and listened and stopped telling us no and throwing fits, that after three days we would let her choose three boxes of toys to bring back in her room. This worked but as soon as she got those three boxes unpacked, we packed them back up because she went right back to the no's and fit-throwing within a few hours.  I am mainly the one disciplining her and I feel she is definitely the most defiant with me. I believe in explaining to her why things are not OK and why I tell her no, but I really don't feel it helps and I never feel as if she listens to what I tell her.  I am at my wits' end and feel like a failure of a mother. She is my first and only child, and the only grandchild on both sides of our family. She is an angel at school but home is completely different.  I need help figuring this out but nobody I talk to really has any advice for me. I am at the point where I am wondering if she or I need counseling because I feel out of options. Implement numbering scheme like A,B,C... AA,AB,... AAA..., similar to converting a number to radix26 I want to implement numbering scheme like Microsoft Word uses for numbering.  first one gets = A,next is  B, next is C, .... then AA, then AB,....and so on.  as shown below   A        B  C  .   .  AA  AB  AC  .  .  AAA  AAB  ....   '=>' here means converted to.  some examples:       1 =&gt; A 26 =&gt; Z 27 =&gt; AA 52 =&gt; AZ 53 =&gt; BA   and heres the code for it:     var convertToNumberingScheme = function(n){         var x = n-1,             r26 = x.toString(26),             baseCharCode = "A".charCodeAt(0);          var arr = r26.split(''),             len = arr.length;          var newArr =arr.map(function(val,i){             val = parseInt(val,26);              if( (i === 0) &amp;&amp; ( len &gt; 1)){                 val = val-1;             }              return String.fromCharCode(baseCharCode + val);         });         return newArr.join('');     }   It seems to work fine, but any ideas if there are some potential bugs or ways to  optimize this. Steady-State Current I am in the process of completing some homework and have come across a question that says: "What is the steady-state current?" It is asking in reference to a circuit that includes two capacitors in parrallel and a DC source of 24V and an AC source given by $\epsilon = 20 \cos(120 \pi t)\ \text{V}$, where $t$ is in seconds. I assume that it is asking when the current is constant. Because naturally the current is not constant due to the AC source, would I just consider the DC source for this? I accidentally clicked reject on the suggested edit on this question(). I can't find the button to change it to Approve? When a spaceship is experiencing a constant acceleration of $10m/s^2$, the astronauts will be moving at nearly the speed of light after about a year in the earth's reference frame. This means the spaceship's energy will start to diverge as a function of the speed $v$ so there will be a huge amount of energy necessary to increase the speed of the ship any further. This way, the speed of light can never be crossed.  All of this is clear to me, but all of this is also formulated in earth's reference frame. But from the astronaut's reference frame: the spaceship is simply accelerating at $10m/s^2$ and so the force on the spaceship is constant. Then why would we need huge amounts of energy to accelerate the spaceship?  For example, I read somewhere that the amount of energy that would be needed to accelerate a large spaceship to half the speed of light is more than 2000 times the current world annual energy consumption. How does this make sense in the astronaut's (non-inertial) frame? How do I show that a two-qubit state is an entangled state? The Bell state $|\Phi^{+}\rangle = \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle )$ is an entangled state. But why is that the case? How do I mathematically prove that? java.sql.SQLException Parameter index out of range (1 > number of parameters, which is 0)