For example if I have annotation @MyOwnAnnotation and have these classes in my classpath, so that I could scan classpath possibly with some kind of filter (example. scan only packages starting with my.own.app.*)  and get list of all classes with annotation @MyOwnAnnotation? I'm using guice as injection framework and I don't use Spring.
What is the best way of searching the whole classpath for an annotated class?  I'm doing a library and I want to allow the users to annotate their classes, so when the Web application starts I need to scan the whole classpath for certain annotation.  Do you know a library or a Java facility to do this?  Edit: I'm thinking about something like the new functionality for Java EE 5 Web Services or EJB's. You annotate your class with @WebService or @EJB and the system finds these classes while loading so they are accessible remotely.
Every time I insert the SD card from my camera into the card reader, I get this dialog:    Of course there is no need to scan it. Is there a way to disable it? What can I do if my USB flash drive is write-protected or read-only? Dilemma: Present Perfect Or Perfect Continuous? How to smooth shade an object while retaining hard edges? I frequently come to the problem of having a mesh with parts I would like to render smooth and "hard" edges connecting them.   How can I set the mesh to show the sharp edges but render everything else smooth?  In the example I would like the sides of the individual cylinders render smooth but the intersection between bottom and top to be sharp/flat Does the Darkness spell block vision? In discussing , I came to realize that the real question was whether Darkness blocks vision or merely creates "darkness".    Per the wording of the spell:     Magical darkness spreads from a point you choose within range to fill a 15-foot-radius sphere for the duration. The darkness spreads around corners. A creature with darkvision can’t see through this darkness, and nonmagical light can’t illuminate it. (emphasis mine)   Normal darkness is defined in the game as creating a heavily obscured area and the only description added to the darkness is that it is magical, which (to me) just means that it is created by magic and is subject to the magical rules.    Darkvision is defined in the game as basically being able to see in darkness as if they were seeing in dim light. So, the text "darkvision can’t see through this darkness" merely means that it affects darkvision in the same way it affects normal vision. (See earlier versions of the spell below, which had similar wordings.)    I see nothing there that implies it is a barrier to vision, just an active  and utter absence of illumination.    Previous editions have varying descriptions.  and  give accurate accountings of the various versions.   The 1e Wizard version seems to actually imply a sphere of opaque blackness that even blocks infra/ultravision, while the 1e Cleric version is a reversal of the Light spell and creates totally normal darkness, with no block to special visions.   The 2e version is similar to the 1e Cleric spell. It creates an area of darkness "equal to an unlit interior room".   The 3.0e version comes closest to the 5e version. It "causes an object   to radiate darkness out to a 20-foot radius. Not even creatures who can normally see in the dark (such as with darkvision) can see in an area shrouded in magical darkness." Still no reference to any sort of opacity and the wording makes it clear that darkvision is being treated specifically here.   3.5e Darkness is similar, although instead of darkness, it creates "shadowy illumination". This affects darkvision as well as normal vision.   4e doesn't have a Darkness spell, but rather a Cleric Utility called Veil of Darkness, which creates "a zone that is heavily obscured and blocks line of sight." So, finally, a reference to opacity, in "blocks line of sight", although I question if opacity was the intent. Open Windows Terminal as admin with WIN+R What is the maximum RAM supported by the desktop and server editions? I have just downloaded "ubuntu-14.04.1-desktop-amd64.iso" and "ubuntu-14.04.1-server-amd64.iso" through "".   Please can someone confirm the maximum RAM that is supported.  According to many sites, Maximum RAM supported by the OS  ubuntu-14.04.1-desktop : " 2^64 bytes " -- Kindly confirm  ubuntu-14.04.1-server : " 2^64 bytes " -- Kindly confirm Associativity of symmetric difference of sets Adding related resources or hyperlinks in edits So, I've been rejecting the addition of resources/hyperlinks to posts simply because I had no idea that this was an acceptable practice.  Today, I was browsing through the edits page and saw:     Some common reasons to edit are:         to fix grammatical or spelling mistakes   to clarify the meaning of a post without changing it   to correct minor mistakes or add addendums / updates as the post ages   to add related resources or hyperlinks      Why is this an acceptable practice?  I can see adding links to official documentation, but the quality of outside resources is (potentially) subjective.  I see the merit in adding resources, but it seems to me that these additional resources should be placed in comments, not inserted into the post via an edit.  Anyone have thoughts on this? I have a long sequence of hex digits in a string, such as      000000000000484240FA063DE5D0B744ADBED63A81FAEA390000C8428640A43D5005BD44   only much longer, several kilobytes.  Is there a builtin way to convert this to a bytes object in python 2.6/3? Xubuntu or Lubuntu on a Mac mini? My Mac mini doesn't have sufficient hardware for Ubuntu 11.04 (specifically Unity I think), and so I have to use the classic environment, which is fine, but it seems to run slower on 11.04 (I'm upgrading now to 11.10).  However, I heard  that if it runs slow I should use Xubuntu or Lubuntu.   So my question is:    What is the best way to upgrade from Ubuntu 11.10 to Xubuntu or Lubuntu and which one would be better for a late 2005 model Mac Mini PPC? Creation of a matrix Auto Package download for TeXLive I use MiKTeX on Windows and quite satisfied with it. Recently I started switching all my tasks toward open-source alternatives, and in the course I would love to use Linux. In Linux TeXLive is available as alternative to MiKTeX. The thing I really like about MiKTeX, is its ability to install packages automatically. Can I do the same in TeXLive too? Is there a way I can enable such or install some plugins for it?  I am using Fedora 18, if that's needed. Extraneous solution from substituting in equations I came across this example of how you could end up with an extraneous solution but I was wondering how it arose. We have the equation: $$x^2+x+1=0 $$ Since x=0 does not satisfy the equation, you can divide by x on both sides which yields: $$x+1+\frac{1}{x}=0$$ which is equivalent to our first equation. From our first eqution we can conclude that: $$-x^2=x+1$$ We now substitute that into the second equation to get:$$x^2=\frac{1}{x}$$ which results in $$x^3=1$$ which is equivalent to our previous equation since x cannot be 0. However, one solution from our last equation is x=1, which is not a solution to our original equation. I have a vague idea that it may have to do with the fact that you get a cubic equation and you began with a quadratic, and that steps imply the following and not vice versa, but can you provide a very detailed answer as to why it arises? Can you please provide more examples? Is there a way to set my current location manually on Windows 8? Is there a way to set my current location manually on Windows 8? I don't have a GPS module, but the device is always located at the same place. The automatic detection via network sets a place 200 kilometers from here.  I searched for a setting that allows me to set the location by hand, but I didn't find one. I'm new to blender and have this issue: I'm using the "Industry Compatible" keymap. In "Edit Mode" the keys 1, 2 and 3 swap between vertex, edge and face select - Great!  Now i want to customize it, so i'm adding a new preset "My keymap". As far as i understand this now is based on the "Industry Compatible" keympap and everything works accordingly. But if i close and start blender again, the 1, 2 and 3-key aren't working anymore. I need to go back to the preferences, set the "Industry Compatible" keymap and then set back to "My keymap". Then the 1, 2 and 3-key work again as expected.  This is reproduceable on the last Blender 2.8 version on several different machines. Am i doing something wrong? Is this a bug? I found  presentation document by D. J. Bernstein. Is it possible to create it in latex?  Screenshot When running umount /path I get:  umount: /path: device is busy.   The filesystem is huge, so lsof +D /path is not a realistic option.  lsof /path, lsof +f -- /path, and fuser /path all return nothing. fuser -v /path gives:                    USER        PID ACCESS COMMAND /path:            root     kernel mount /path   which is normal for all unused mounted file systems.  umount -l and umount -f is not good enough for my situation.  How do I figure out why the kernel thinks this filesystem is busy? Is the universe isomorphic to a universal turing machine? I often think about problems that require an understanding of the very essence of computation and its inherent limitations. So, my questions are as followed:   Is the universe isomorphic to a universal turing machine? Is the universe isomorphic to a universal quantum computer? What evidence do we have within our universe to support an answer to such a question? What corollaries follow from a universe that is or is not isomorphic to a universal turing machine (or universal quantum turing machine)? Is this question really answerable, and what is the current literature on this subject?   I'm mostly interested in the implications and corollaries that follow from a universe that is or is not isomorphic to a turing machine (or universal quantum computer) and the insights that it would provide us with, about the nature of computation. Am I being scammed by a sugar daddy?