java techniques for automatic resource release? "prompt cleanup"?
Is there a destructor for Java?
Let's say I use a  with a lot of code inside. To improve readability and reusability I'd like to use helper/private methods. However, a Drupal .module file is not a class.  The idea is to split big methods from this file into more readable and reusable smaller methods.  What is the correct way to call helper/private methods from a Drupal .module file? Should the downvoters/upvoters have enough reputations on all the tags of the question/answers? Can the Hubble constant be measured locally? The Hubble constant, which roughly gauges the extent to which space is being stretched, can be determined from astronomical measurements of galactic velocities (via redshifts) and positions (via standard candles) relative to us. Recently a value of 67.80 ± 0.77 (km/s)/Mpc was published. On the scale of 1 A.U. the value is small, but not infinitesimal by any means (I did the calculation a few months ago, and I think it came out to about 10 meters / year / A.U.). So, can you conceive of a measurement of the Hubble constant that does not rely on any extra-galactic observations?  I ask because, whatever the nature of the expansion described by the Hubble constant, it seems to be completely absent from sub-galactic scales. It is as though the energy of gravitational binding (planets), or for that matter electromagnetic binding (atoms) makes matter completely immune from the expansion of space. The basis for this claim is that if space were also pulling atoms apart, I would naively assume we should be able to measure this effect through modern spectroscopy. Given that we are told the majority of the universe is dark energy, responsible for accelerating the expansion, I wonder, how does this expansion manifest itself locally?   Any thoughts would be appreciated. Why do my lamps require an insane "strength" value of 1 million? recently, I was using mesh planes to emit some light, and they had a strength of 8.0.. this worked well now, I want to swap these out for area lamps (to improve performance) i've positioned these area lamps in the place of my emitter polygons i've scaled them such they have 1.0 transform scale, and in the lamp settings, I set the size to 1m across (to size-match the previous emitters) the problem is, the lamps require a crazy "strength" of at least 1 000 000 (one million!) to produce any reasonable amount of light... this seems bonkers! point lamps, area lamps, and the others, are all effected my scene is scaled using the Centimeters preset.. the foreground is only a meter a way, and the more distant background is more like 5 meters back i've paid special attention to the sizing and scaling of this scene, I can't figure out why the mesh emitters are working with a sane Strength of 8, and the lamps require something out of this world? something must not be right...     Edit: Remastered scene corrects scales, problem persists       i've remastered the scene so that all of the objects have a proper scale factor of 1.0 this should correct any sizing discrepancy/confusion my scene must be in centimeters preset, all my other work is in centimeters the area lamp size is now definitely 1m, as highlighted in the above screenshot (and it is not affected by the 1.0 transform scaling factor, also highlighted (I also verified the delta scale is also 1.0)) despite correcting the scaling of my scene, strength 1 000 000 is still required is blender simply not accounting for my scene's Unit Scale setting? Can you retrain the Magic Initiate spell using the Spellcasting feature? got me thinking about the mechanics of the Magic Initiate feat when you have class levels in the class into which you were inducted.    Among the classes you can pick with this feat are the Bard, Sorcerer, and Warlock, which know a limited number of spells and all have the same statement under Spells Known.     Additionally, when you gain a level in this class, you can choose one of the [class] spells you know and replace it with another spell from the [class] spell list , which must also be of a level for which you have spell slots.   The term "learning" is used both to describe new spells acquired on level-up and the spell acquired through the feat. This would seem to indicate your Magic Initiate spell counts among the spells you know, and is thus eligible for retraining if you learned it as a spell of your class.  An odd change in wording occurs during the Magic Initiate feat description (emphasis mine):     In addition, choose one 1st-level spell from the same list. You learn that spell and can cast it at its lowest level.   This generalization in describing the learned spell's level seems to imply that there exists a scenario where it would not be appropriate to restrict the spell to being cast as a 1st-level spell.  Could one of the charisma casters retrain Magic Initiate into a higher level spell, which they could then cast once per long rest without using a slot?  This would turn an otherwise unexciting feat into, effectively, a Mystic Arcanum for Bards and Sorcerers. This seems too powerful to be intentional,  but the feat description appears to have gone out of its way to permit it. Seeking free elevation data for Europe? Where can I find free elevation data for Europe?   The available resolutions and terms of use are important details that I also seek. Prove $f(S \cup T) = f(S) \cup f(T)$ Why can't I update my Nexus 4 to Lollipop? As I understand it, Android Lollipop (5.0) is now generally available over-the-air. My Nexus 4 briefly offered for an hour or two to install it. I said yes, and watched it start to download. When I next went to unlock my phone, it obviously wasn't installed. Now, when I go into the Settings app, and manually check for updates, it says my phone is up-to-date. It's still on Android 4.4.4.  I don't particularly want to install the developer image, as that'll wipe all the data from my phone. Is there any way I can encourage it to update?  I'm in the UK, if it's relevant. htaccess subdomain Assuming there are 5 items in the settings file (MySetting1 to MySetting5), why does PropertyValues have 0 items while Properties has the correct number?   Console.WriteLine( Properties.Settings.Default.PropertyValues.Count); // Displays 0 Console.WriteLine( Properties.Settings.Default.Properties.Count);     // Displays 5 How to populate UIList with all material slot in scene? 2.8 How many Marvel Earths (Universes) are there? I know that there are at least 3 Marvel Universes:  Marvel Cinematic Universe -    Has all of the main ongoing Marvel movies    (1, 2)  (1, 2, 3)  (1, Age of Ultron) etc    Marvel's Ultimate Universe -    Has the other Marvel movies    (1, 2, 3, Origins: Wolverine, First Class, The Wolverine, Days of Future Past)  (1, 2)  etc       Main comic book continuity This is the big one, it contains         etc     Then there are apparently off-shoot Earths, continuities which deviate from the main continuity (Earth 616). How many Marvel Earths (Universes) are there?   Further Reading: Is there any way to create a bootable Ubuntu USB flash drive from the terminal without using any third-party applications like , , ,  etc.  I tried to create a bootable Ubuntu flash drive with dd method,  sudo umount /dev/sdb sudo dd if=/path/to/ubuntu.iso of=/dev/sdb bs=1M   It creates files on the USB disk, but when I try to boot the USB disk it shows an Operating System Not Found error. Detect if program is running with full administrator rights So, I'm working creating a lamp... yes, newbie here.  After modeling for a bit, I noticed that my point of origin was no longer the center of my object:    How to I reset an object origin point to the center of it's geometry? Extracting usernames from the /etc/passwd file How to get the file name and a line number of a function call? How do I get a mesh data-block with modifiers and shape keys applied in Blender 2.8? I'm trying to update an exporter to work with Blender 2.8 but can't seem to get a mesh data-block modified by modifiers or shape keys. It always gives me the base mesh.  I'm currently using Object.to_mesh(). But reading Object.data or bmesh.from_mesh(obj) all returns only the base mesh. So what is the new function to call for getting a mesh data-block with the modifiers and shape keys applied? Sort sections according to alphabetical order Is it possible to tell latex, that it should sort the sections you used in your document according to their alphabetical order in the final pdf document? I.e. I want to have something like this  \begin{document} \section{A} \section{C} \section{B} \end{document}   and in the pdf I get the result as  A B C   Is that possible, and if yes, how? Putting the sections into separate files is not preferred (but possible if scripted) due to having ~300 sections. Edit: I can also rewrite it as   \begin{sortEnvironment}{Title} Content \end{sortEnvironment}   if that makes it easier. Proof of Convergence: Babylonian Method $x_{n+1}=\frac{1}{2}(x_n + \frac{a}{x_n})$