If equals to not working
How do I compare strings in Java?
Stack Overflow interesting questions implementation According to the tooltip of the 'interesting' tab, interesting questions are     "questions that may be of interest to you based on your history and tag preferences"   Does Stack Overflow use a recommendation engine or just some sql sort/filter? I've started using the dashicon fonts in my theme options page for WP 3.8+ users. To take care of users on &lt; 3.8, I've added the dashicon fonts to my theme folder and also an entry at the top of my custom admin stylesheet:  @font-face {     font-family: 'dashicons';     src: url('fonts/dashicons.eot'); }  @font-face {         font-family: 'dashicons';         src: url(data:application/x-font-woff;charset=utf-8;base64,xxx) format('woff'),         url('fonts/dashicons.ttf') format('truetype'),         url('fonts/dashicons.svg#dashicons') format('svg');     font-weight: normal;     font-style: normal; }   (I've left out the base64 encode for brevity)  This works great, however, I'm getting a bit of strange behavior with the fonts. When I leave the admin open in a tab and go away for a bit, then come back, every once in a while, the webfonts have turned to squares, as if the font is missing.  This does not happen every time. It appears to be somewhat random.  In those cases, simply doing a mouseover the page usually returns the webfonts to their proper symbols.  The screenshots below show the issue. The first screenshot is what I see when the problem occurs. The second screenshot is what I'm expecting to see when things go well.   Notice in the first shot, how the wordpress labels themselves have gone to a default serif font. Can't execute terminal commands: "the command 'sudo' is available in '/usr/bin/sudo'" "going to" vs "will" I know several questions were asked about the difference between "going to" and "will". Based on several answers (see, for instance, ,  and ), I understood that "will" is more spontaneous and "going to" is used with more planned actions.  So, it seems that everything is pretty fine. However, in , Kosmonaut has an answer in which he states: "Let's say that tomorrow you will walk your dog from 7 - 8 AM".  On the one hand, you probably planned to walk your dog long before and thus I should use "Let's say that tomorrow you're going to walk your dog from 7 - 8 am".   On the other hand, since I'm saying "let's say...", I'm deciding right now (thus, unplanned) that you will walk your dog. So, even though in this hypothetical situation you made a plan, I'm in a more spontaneous mood deciding right now that that's what you will do tomorrow, and, thus, I should use "will".  Which one (if any) of the above explanations is right? Once a world enters hardmode, corruption and hallows being spreading at an alarming rate, including the underground. Grass, which grows on dirt, succumbs easily to both. Jungles and glowing mushrooms grow on mud and provide unique and valuable items. Will corruption/hallows destroy these if left unchecked? If they do destroy mud-based life, how can I preserve these fragile ecosystems? I know that both can mean "inside" but what I don't have clear is whether both mean the same when talking about time. For example:   The party is in two days = The party is within two days ??   According to this link  within means a limit that can be exceeded, so I'm wondering too if say "the party is within two days max" is correct or redundant. Is there a way to convert number words to Integers? I need to convert one into 1, two into 2 and so on.  Is there a way to do this with a library or a class or anything? this works in viewport but not in render.  import bpy from math import *  def frame_handler(scene):     z = scene.objects['Lift'].location[2]     scene.objects['Text'].data.body = str(floor(z / 4.0) - 2)  bpy.app.handlers.frame_change_pre.clear() bpy.app.handlers.frame_change_pre.append(frame_handler)   How to get it working in render? I've read  and changed from "bpy.data.objects" to "scene.objects" as already seen in the script. What am I missing? Blender v. 2.81.16  Edit. Tried that depsgraph thing mentioned in comments and changed to frame_change_post:  import bpy from bpy.app.handlers import persistent from math import *  @persistent  # maybe not relevant but doesn't harm anything? def frame_handler(scene, depsgraph):     z = scene.objects['Lift'].evaluated_get(depsgraph).location[2]     scene.objects['Text'].data.body = str(floor(z / 4.0) - 2)  bpy.app.handlers.frame_change_pre.clear() bpy.app.handlers.frame_change_post.clear() bpy.app.handlers.frame_change_post.append(frame_handler)   Now the Text doesn't show up at all in rendered (but works in viewport). What's the difference between align and align*? After some brief searching I can't find the difference between align and align*. Google summarily ignoring the * is making it harder I think.  Can you tell me the difference between these two?  Moreover, can you tell me where you generally go for this type of information? As a relatively new user I'm still building up my resources. Prime/Maximal Ideals in $\mathbb{Z}[\sqrt d]$ Replace \input{fileX} by the content of fileX automatically Suppose I have a document with multiple include or input statements  \input{fileA} \input{fileB}   etc.   Is there an easy way to generate a single .tex file where \input{fileA} is replaced by the actual content of fileA etc. without copying it manually? I flew a long range flight carrying my laptop, a quite heavy one, inside a neoprene briefcase in the passenger cabin. The recommendation by the aircrew was to place it in the overhead compartment or under the seat in front of me. However, during take-off and landing, the vibrations on the plane are quite strong and, as a result, it received minor damage.   Placing them in the overhead compartment might be equivalent to placing it on the floor under the seat, with the added issue of additional luggage in the compartment shifting.  I considered the alternative of holding the laptop by the handle while sitting, so it won't be any contact with the aircraft's floor. This is impracticable during cruise, but I thought it could be better during the take-off and landing segments. Another option I considered is to wrap it with completely with bubble wrap before boarding the plane.   Which is the safest way to transport a laptop during flight? Why say "of x's" instead of "of x"? I have often heard people say "x of his" or "x of mine". But since his and mine point out ownership, isn't using "of" here doubles that ownership? Wouldn't it be more appropriate to say "x of him" or "x of them" etc.?  Example:     I was a good friend of your dad's. He told me all about you` ASP.NET MVC Default Project Structure and the Scripts Folder How to resolve merge conflicts in Git repository? I want to resolve merge conflicts in my Git repository. How to do that ? Change owner of internal hard drive partition from root to user I have a number of drives internal and external. Some are partitioned. Most mount automatically at boot (all did at one point).    One partition is owned by root and therefore does not mount automatically. I know how to mount it as root.   I do not know how to take ownership of that partition as user X. I have tried changing permissions using the gui in Nautilus as root. They are not accepted and immediately revert.  The partition is NTFS. The other parition on that drive is owned by me as user and mounts automatically Frequently when EM waves are taught, it is said that the change in electric field causes a change in the magnetic field, which then causes a change in the electric field, and so on and so forth.   But from my understanding of basic electromagnetics, it is not necessarily a changing electric field that creates a change in magnetic field, but instead an accelerating charge. and it is this charge that creates both the electric and magnetic field. Again, from my understanding, a changing magnetic field is not generated by a changing electric field, but instead just happens to always be present perpendicular to a changing electric field due to the laws of electromagnetism.   Am I wrong? Or is the "mutual generation" concept between the electric and magnetic components of an EM wave an actual thing? When you hit up a site, such as cnn.com, does the TCP/IP packet contain the MAC address of your network card?  Could cnn.com theoretically record my MAC address? How do I change the computer name? When I connect to my server (ubuntu server 10.10), I get this:  name@server-name.belkin ~&gt;   How can I remove ".belkin"? How was this answer posted after this question was closed? Question:   Answer:   The question was closed at 11:57:57 (according to the hover-over-"x-mins-ago" bar) and the answer was posted at 12:16:35. It's a fairly lengthy answer, so it's possible that it was started to be written before it was closed but I swear I've started to answer a question then I got a banner along the top saying "this question has been closed" and the answer was no longer post-able.