Static enum vs. Non-static enum
In Java, are enum types inside a class static?
Add max value to a new column in R What should I do if I have two libraries that provide functions with equivalent names? "named" vs "that is named" In single-blind peer-review, can you reveal your identity without the editor's consent? In my field (chemistry), review is always done in a single blind process, i.e. the author does not know who the referees were, but the referees do know who the authors are. In ten years, I have never seen a referee breaching this anonymity, e.g. by signing their review, unless they got prior approval by the editor (in order to continue discuss things further with the authors, once the manuscript was accepted for publication).  So, it seemed logical to assume that in single blind peer-review, the reviewer should not disclose his identity without the editor's consent. Yet, some people have told me ( and ; also IRL a friend from human sciences) that they have seen people sign their reviews, or write emails to them after the review but before the paper is published.  So, in single-blind peer-review, can you reveal your identity without the editor's consent? Does it depends on the customs of each field, or is there a hard rule? (in which case, the few anecdotes I heard were outliers) How to determine exact contrast ratio Because of the recent Web accessibility Law in my region, I need to ensure I'm designing with an appropriate contrast ratio.  WCAG says the value of this ratio is 4.5:1    How do I figure this out in in Photoshop and Illustrator? Virtual member call in a constructor Setting READ UNCOMMITTED when reading DMVs I've seen several people call SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED before reading system DMVs. Is there ever any reason to do this, assuming you aren't mixing calls to DMVs and tables in the same transaction? If you're not used to seeing the 'low on internal storage' notification, what is it that you're doing to keep your phone's internal memory from filling up so quickly?   The 'SD Card and Phone Storage' menu in the settings doesn't really tell me much other than how much is free. And, I don't really have that many applications installed. The top 5 storage hogging apps on my phone are Gmail (18.6 MB), Twitter (17.5 MB), Facebook (12.55 MB), Maps (9.63 MB), and Swype (6.06 MB).  So, are there apps out there (besides your normal file manager ones, like Astro) that will help monitor internal phone storage? Is there something I should be doing to keep my phone storage use to a minimum? I am an undergrad in economics and really want to get a helping hand as I get from math and stats from a Stack Exchange site for economics. Where can I post my questions on economics topics? How can I turn on the Intel HD manually? For some weeks my MacBook 6.2 does not switch to the integrated graphics adapter (Intel HD). This is especially crucial when I work on battery (which happens quite often). I guess the runtime could be enhanced when it would take the HD adapter for display.  I checked that it automatically changes the graphics mode. I am running Snow Leopard 10.6.8.  I recently installed 8GiB RAM (not from Apple). Could this probably related to this issue? Actually I do not want to downgrade or use the expensive Apple RAM.  So, how can I manually turn on the internal graphics adapter? What is the problem with nested environments using \BODY (environ package)? This question led to a new package:      I want to define some environments, which place their content into multiple different other environments. To access the contents I used the environ package, which introduces the \BODY command. However at some point pdflatex seemed to be stuck in an infinite loop.  I reduced it to a minimal example:  \documentclass{article} \usepackage{environ}  \NewEnviron{assertion}{Assertion: \BODY} \NewEnviron{outerassertion}{\begin{assertion}\BODY\end{assertion}}  \begin{document}  \begin{assertion} test \end{assertion}  \begin{outerassertion} test2 \end{outerassertion} \end{document}   Any ideas how to work around this problem? I guess, the problem is with the \BODY command since everything works fine as long as I use it in only one of the new environments. Consider a string under tension, for example, a string on a guitar. When a guitar string is plucked, it vibrates at a certain frequency. When the tension on the string is increased by twisting the tuning peg at the end of the neck, the frequency of the string increases. According to , increasing the tension on a string also increases the speed of the wave moving through it. According to  the speed of a wave is higher in a more dense medium.  Does this mean that increasing the tension also increases the density?  This does not seem very logical to me, since density is the "compactness" of a substance, or how close together the individual molecules are. By twisting the tuning peg on a guitar, you rotate the cylinder that the string is fixed to, wrapping it around more tightly. This pulls more of the string around that cylinder, similarly to when you reel in a fishing rod. Since more of the string's molecules are now wrapped around the peg, there should be fewer molecules over the same distance between the bridge and the nut (the two ends of the vibrating portion of the string), therefore bringing the density down. At least two questions (, ) on this site indicate that in more than a few isolated cases at least, letters of recommendation are in fact written by the applicant and only signed off (or perhaps rephrased somewhat) by the recommender, who would actually be responsible for writing the letter.  Is there any evidence about the prevalence of this practice that goes beyond anecdotes? I realize that cross-country (cultural) difference may play a role. Contextually grey out panel element in python 2.8 I have a panel with split column.  In the 2nd row is 3 boolean variables. I want to grey out the 2nd and 3rd option by default. I want the 2nd to be changeable if 1st is true, and 3rd to be changeable if both 1 and two are true. I've read something about "poll()" but not how to actually use it, or set conditions. Physics should only be enablable if singleMesh, and destructable only if physics enabled.      # Create two columns, by using a split layout.     split = layout.split()      # First column     col = split.column()     col.label(text="Building Size:")     col.prop(bpy.context.scene.user_vars, 'buildingHeight')     col.prop(bpy.context.scene.user_vars, 'buildingWidth')     col.prop(bpy.context.scene.user_vars, 'buildingDepth')      # Second column, aligned     col = split.column()     col.label(text="Dynamics:")     col.prop(bpy.context.scene.user_vars, 'singleMesh')     col.prop(bpy.context.scene.user_vars, 'enablePhysics')     col.prop(bpy.context.scene.user_vars, 'destructable_Building')  #EDIT This is what the specific solution to my example looks like. col = split.column() col.label(text="Dynamics:") col.prop(vars, 'singleMesh') sub = col.row() sub.enabled = vars.singleMesh sub.prop(vars, 'enablePhysics') sub = col.row() sub.enabled = vars.enablePhysics sub.prop(vars, 'destructable_Building') Chrome: remove URL from autocomplete which doesn't show up in history? I accidentally visited gist.gihub.com (note the missing t), and now that URL auto completes each time I start typing gist.…. How can I remove this URL?  I've tried removing it from my history, but that doesn't help:     (note the empty search results) Equivalent of "both" when referring to three or more items? What would be the correct word to use when referring to three or more items, in the same manner as the word both?  For example, using two words, with the word both:     "There are several recommendations I   have to further improve the sites —   both to improve their profit, and   decrease their cost."   Using three words, with a blank space in place of the correct word:     "There are several recommendations I   have to further improve the sites —   _ to improve their profit, decrease their cost and improve their   usability."   So, what would be the correct word to use in place of the __? Proper fstab entry to mount a samba share on boot? I am a little confused on the proper fstab entry for a samba share in Ubuntu 12.04     I can get the drive to mount manually by using:  sudo mount -t cifs //192.168.2.2/raid_drive /mnt/homeserver -o username=jon,password=password  So I tried putting this in fstab:  //192.168.2.2/raid_drive /mnt/homeserver cifs username=jon,password=password,iocharset=utf8,mode=0777,dir_mode=07‌​77 0 0  Which gives me this error in syslog:  kernel: [ 2217.925354] CIFS: Unknown mount option mode kernel: [ 2217.936345] CIFS VFS: default security mechanism requested.  The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3  This  says to use smbfs although I believe smbfs is deprecated?   What is a common fstab configuration for a samba share in Ubuntu 12.04?   EDIT:  Using the accepted answer below I was initially getting this error message (from dmesg):  [   45.520883] CIFS VFS: Error connecting to socket. Aborting operation [   45.520990] CIFS VFS: cifs_mount failed w/return code = -115   although it turns out this was due to network connectivity issues, and not related to improper fstab entry. I am currently making a map in the Minecraft 1.13 snapshots and have encountered a problem. I want to use the title command to give the player the number of resources they have for a certain resource. For example Wood: 150. I looked this up and found you could do this using the title command. Example:   title @a[r=1] actionbar [{"text":"Wood: "},{"score":{"name":"@p","objective":"Wood"},"bold":true}]}}   This works in 1.12 but not in 1.13. It seems that the JSON format has changed in 1.13 but I can't find anything on the wiki or the changelog.  Could someone please help me to work this out? When is it appropriate to create an entity instead of a new content type? What is the benefit to creating new entity types over just building a new content type?    It seems a bit overkill to do all of the custom coding that is required to create a new entity when you have all of the CRUD and Views functionality already built into content types. Combining the second elements of a set of ordered pairs based on their first element