As seen in the image, expiryTime is printed out as null as shown in the console. However, it bypass my if condition and i even printed out (expiryTime == null) and (expiryTime == "null"). However, it is giving me as false. Why is this possible?
I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?
Scala 2.10 + Json serialization and deserialization I'm using a custom class file.  My main file looks like this:  \documentclass[12pt,a4paper]{thesis} \begin{document} \frontmatter     \pagenumbering{alph}      \pagenumbering{roman}     \clearpage      \cleardoublepage     \tableofcontents     \clearpage     \listoffigures     \clearpage     \listoftables   \mainmatter        \part{test}       \input{test} \end{document}   If I put this in my test.tex it does work:  \chapter{test} \label{chapter:test} test    When it becomes more text (lets say 40x the word "test") I get the error stated in my question title.  To test it I brought my class file down to this:  \ProvidesClass{thesis} \NeedsTeXFormat{LaTeX2e}  % Based on the memoir class \DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}} \ProcessOptions \LoadClass{memoir}   I'm totally confused what is causing my error now.  This is the complete error:  ! pdfTeX error (font expansion): auto expansion is only possible with scalable  fonts. \AtBegShi@Output ...ipout \box \AtBeginShipoutBox                                                    \fi \fi Why do people not upvote, or accept answers that worked for them? I am regular Stack Exchange user, especially at Stack Overflow.  One of the things I really dislike about new and sometimes veteran users is that:   Either they do not accept an answer that works for them, Or they accept the answer but do not vote it up   I mean they can really both accept the answer and vote it up but somehow they wouldn't =(.  How many of you feel the same way? What's amazing about these open world games is the freedom I have as a player. If I don't want to follow the main story line for a while, and just explore, I can do that, and the game won't break.  On the other hand I don't particularly like the feeling of having made a significant, bad choice in the game, among the lines of Yeah, that dialog option you selected hours ago? This amazing quest line is now off limits.  If I recall correctly, in Morrowind, I had to progress through a few different guilds' quests in the right order, otherwise it'd have stopped my progress in a few guilds.  As a Skyrim example, it doesn't appear that the very first choice made in Helgen at the very beginning has much significance. If someone told me It's not that significant, you still get to choose sides (or, rather not told me "This is important"), that'd help.  Another example: Based on a question I read here, I should probably make sure that I don't throw away any of the dragon priest masks and need to make sure to collect one during a specific quest. This would be relevant for this topic if I could easily miss it otherwise while doing that question.  This includes accidental problems possibly caused by bugs: It appears .  It doesn't matter too much which of the love triangle guys in Riverwood I support: That's not nearly significant enough.    Are there non-obvious, hidden decision points in the quests and story lines? When playing in a certain area, doing a certain quest, what do I need to make sure to do or not do, to not accidentally prevent me from getting or achieving something significant?  I still want to explore on my own, but want to be aware of which choices are important.  This is somewhat related to . How can the pixel values of a raster image be extracted under a polygon fishnet? 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. Complex towers: $i^{i^{i^{...}}}$ If $w = z^{z^{z^{...}}}$ converges, we can determine its value by solving $w = z^{w}$, which leads to $w = -W(-\log z))/\log z$.  To be specific here, let's use $u^v = \exp(v \log u)$ for complex $u$ and $v$.  Two questions:   How do we determine analytically if the tower converges?  (I have seen the interval of convergence for real towers.) Both the logarithm and Lambert W functions are multivalued.  How do we know which branch to use?   In particular $i^{i^{i^{...}}}$ numerically seems to converge to one value of $i2W(-i\pi/2)/\pi$.  How do we establish this convergence analytically?  (Yes, I have searched the 'net, including the tetration forum.  I haven't been able to locate the answer to this readily.) In my case I'm talking about Assassin's Stance, but I'd like to know the answer for stances in general.  I feel like I might be missing something incredibly obvious caused by missing a word or two (or a paragraph), but I can't find anything that explicitly states whether or not I can use the Tome of Battle stances with ranged weapons like the bow (or crossbow).  I realize that half the classes have "blade" in their names so using ranged weapons is not in the spirit of things, but I'm looking for an explicit answer (or as close to one as possible) from any WotC official resource. If this has already been answered I'm sorry, but I could not find the answer myself from searching. Placement of varistor with respect to fuse My design includes a pretty standard AC/DC converter powered by mains for intended use at home. For overvoltage and overcurrent protection, I am planning to use a combination of varistor and fuse placed before the power converter.  I understand it is good practice to put the fuse before the varistor - in an overvoltage event, the varistor will draw a large current that may blow the fuse, protecting the rest of the circuit and even the upstream circuitry.  However, due to extremely tight layout, it is very hard to put the fuse before the varistor.  What risk am I running if I put the varistor before the fuse?  What if I put a second fuse in series with the varistor? Does it negate the varistor's protection of the downstream circuit? "I let him do it" and "I allow him to do it", why exactly does one require 'to'? If $f$ is continuous, then there exists $x+\frac{1}{n}\in[0,1]$ and $f\left(x+\frac{1}{n}\right)=f(x)$ Let $f:[0,1]\to \mathbb{R}$ is continuous, such that $f(0)=f(1)$. For each $n\in\mathbb{N}$, prove that $\exists x\in [0,1]$ such that $x+\dfrac{1}{n}\in[0,1]$ and $f\left(x+\dfrac{1}{n}\right)=f(x)$.   My approach: The interval $[0,1]$ is connected, then if $f$ is continuous, we have $f([0,1])\subset\mathbb{R}$ is a interval. And I suppose that, I can define a closed path such that $f(0)=f(1)$. Any hint pls, I'm working in C, and I have to concatenate a few things.  Right now I have this:  message = strcat("TEXT ", var);  message2 = strcat(strcat("TEXT ", foo), strcat(" TEXT ", bar));   Now if you have experience in C I'm sure you realize that this gives you a segmentation fault when you try to run it. So how do I work around that? Let $a,b,c\in\mathbb{R}^*_+$, $abc=1$.  How can i show that $\left(a-1+\frac{1}b\right)\left(b-1+\frac{1}c\right)\left(c-1+\frac{1}a\right)\leq1$ ?  I got $\left(ab-b+1\right)\left(bc-c+1\right)\left(ca-a+1\right)\leq abc=1$, but i can't go any further ...  If i expand it :   $2-ab-\frac{b}a-c-ac-\frac{a}c-b+2a+\frac{2}a-bc-\frac{c}b-a+2b+\frac{2}b+2c+\frac{2}c-4$  Which gives using $c=\frac{1}{ab}$ :   $5ab-\frac{b}a-\frac{1}{ab}-a^2b+\frac{1}a+b+\frac{1}b-2$ Error: class X is public should be declared in a file named X.java What are my best options for a tripod for up to $100? I'm looking to buy a tripod + head (for my Canon 40D), but am not sure if I want to spend more than $100 on it.  So can you suggest options for best tripods for $100 or less? Or, is it important to spend more than that on a tripod?  Extra props for options which might be available in India. Antisymmetric Relations Is it possible to prove $g^{|G|}=e$ in all finite groups without talking about cosets? "Failed to create user" due to regular expression error I'm running Ubuntu 12.10 desktop 32 bit. Currently I have only a user, type administrator. I'd like to create another administrator user but I keep getting the following error:  Failed to create user GDBus.Error:org.freedesktop.Accounts.Error.Failed: running '/usr/sbin/adduser' failed: /usr/sbin/adduser returned an error (1): adduser: Please enter a username matching the regular expression configured via the NAME_REGEX[_SYSTEM] configuration variable.  Use the `--force-badname' option to relax this check or reconfigure NAME_REGEX.  Any suggestion is appreciated. Subfields of finite fields How to make the taskbar blink my application like Messenger does when a new message arrive? Is there an API call in .NET or a native DLL that I can use to create similar behaviour as Windows Live Messenger when a response comes from someone I chat with?