public class DictionaryBase&lt;T extends IData&gt; {     protected Map&lt;String, T&gt; mdic = new HashMap&lt;&gt;();      protected T Add(String Name) {         T objNew = new T();          objNew.Name(Name);         mdic.put(Name, objNew);          return objNew;     }   On new T() I have the Error. What is the correct way to do this?
I have got a template class as follows:  class MyClass&lt;T&gt; {     T field;     public void myMethod()     {        field = new T(); // gives compiler error     } }   How do I create a new instance of T in my class?
How do I backup all files? (.dbus and dconf backup problems) What are /home/user/.cache/dconf and /home/user/.dbus? Why does their backup fail?  I tried following  (see code below) but while it allowed me to backup the above files, now I am told it couldn't backup /home/[user]/.dbus/session-bus.    $ man chown $ sudo chown user .cache/dconf   [sudo] password for user:  $ sudo chown user .dbus $ man chgrp $ sudo chgrp user .cache/dconf $ sudo chgrp user .dbus   How do I fix it so it will not take my time closing an error message after each backup? Should I exclude these folders ? Why are they not needed? Why would someone want to back them up? Is a GUID unique 100% of the time? Is a GUID unique 100% of the time?  Will it stay unique over multiple threads? I made a map with annotations in QGIS 3.0.  This is how it looks like in the layout view:    If I print the map as PDF, one would expect to get the PDF to be WYSIWYG, right? However, it looks like this (it's about half the size):    Is there a way to influence the the scaling of the Annoations? I already tried to play with the Scale and Magnifier in the map view. I also tried to change the Scale in the map item.   The strange thing is, I believe it worked a few days ago. But today I installed QGIS 3.0 on a new PC and it showed the same behaviour... How to get a file's Media Type (MIME type)? Is there a way to configure your Stack Overflow account so that you receive notification emails when posts are made to specific tags?    Or do you simply have to log on to see new posts? I'm curious to see some real examples of where simply capturing the same photo in RAW (and being processed by someone who can do it justice) has significantly improved the photo at the end of the process.  I understand what RAW is and why you might want to use it over JPEG, however, I'd like to actually see some examples where it has allowed for a better result. More control over tone, conversion from the more detailed data to 8-bit RGB etc.  Does anyone have or know of some processed RAW+JPEG shots for exact comparison? MacBook Pro 2018 Random Restart > Previous shutdown cause: -20 Installing 64-bit geoprocessing of ArcGIS for Desktop? I am trying to install 64-bit processing to ArcGIS 10.2, but the ESRI .  One similar question on this exchange  that shows an option to include this, but my setup installation program (which I downloaded) does not show this installation window, but instead goes straight to selecting features to install as shown below.  I can't find any other documentation for running 64-bit geoprocessing on ArcGIS version 10.2.  Can anyone show me how to do this? or is it best to just try to install the service pack 1 version of it? rand() returns same values when called within a single function SEDE logs me out more often than it used to do I'm pretty sure that since a month or so,  seems much more eager to get rid of my session and log me out in that process. I don't mind logging in a couple of times per day, if that helps to reduce resource consumption, but the user experience isn't all that great when it happens. Here is why: I'm most often in the middle of writing a query for an MSE question, for example . So I have the edit window open and am creating a new revision of my query. When I click &quot;run,&quot; I do notice the button gets grayed-out, as it normally does, but I never get any result back. There is also no error message. To recover from this I have to copy the SQL text I have typed, open a new tab and load SEDE, log in, switch back to the stalled tab, refresh, paste the SQL text, run query. Repeat the process after 10 minutes. If the intended behavior is to log users out of their session on such short notice (I recall sessions lived for 24 hours), can there then be a slightly better handling in the browser of that state, so it is clear you're logged out once you click the run button? I prefer, however, to have the longer allowed sessions back. I'm experiencing this behavior mostly in Chrome on Win 10. How can one express frequentist p-value in terms of Bayesian concepts? Converting Raw HTTP Request into HTTPWebRequest Object LaTeX on Stack Overflow? in questions, answers, and comments. Can we get something like this going on Stack Overflow?  I think it’d be appropriate as I at least pretty often want to write something like n^2 and would benefit greatly from prettier markup. I'm writing a custom module for Drupal 8. It defines a field storage configuration object, in a file called modules/mymod/config/install/field.storage.bloom_stem.bs_twitter_ac.yml.  The problem is that this is not removed when I uninstall the module; it is apparently left behind because, when I re-install the module, I get a crash.   drush -y pm-uninstall mymod drush cr drush -y en mymod      exception 'Drupal\Core\Config\PreExistingConfigException' with message 'Configuration objects (field.storage.bloom_stem.bs_twitter_ac) provided by mymod already exist in active configuration'   So it seems I need to some how manually remove this configuration object. Do I need to provide some more code that deletes it when the module is uninstalled? What's the difference between the simple past tense and the present perfect? The simple past tense indicates that an activity or situation began   and ended at a particular time in the past.      The present perfect expresses the idea that something happened (or   never happened) before now, at an unspecified time in the past.The   exact time it happened is not important. It also expresses the   repetition of an activity before now. The exact time of each   repetition is not important.   Even though I understand the explanation above, I can't figure out: If the present perfect states the idea that something happened in the past, why not use the simple past?  For example, would you please explain the following sentence to tell the difference between these two tenses?         The plane crashed there.    The plane has crashed there.      What is the biggest difference between them? How to define a PowerShell function which requires elevation? Since I can't find any alternative to Linux'  elevation command, I have the following question:  How to define a PowerShell function which requires elevation? I mean UAC prompt.  Say, such function follows:  function system-check {     SFC /ScanNow }   System:  Windows 8.1 Pro 64-bit  PowerShell:   Major  Minor  Build  Revision -----  -----  -----  -------- 5      0      10586  117    EDIT1:  To be 100% understandable let me rephrase:   I run PowerShell as user I run the aforementioned function system-check I want the function to elevate in order to be able to execute the command; note, that I want the UAC prompt to appear Find $f$ if $ f(x)+f\left(\frac{1}{1-x}\right)=x $ Find $f$ if $$ f(x)+f\left(\frac{1}{1-x}\right)=x $$ I think, that I have to find x that $f(x) = f\left(\frac{1}{1-x}\right)$ I've tried to put x which make $x = \frac{1}{1 - x}$, but this equation has no roots in real numbers. Creating and configuring .bash_profile I was setting path for anaconda. an answer to a question  has the following solution. I searched for .bash_profile, but I can't seem to find it. How do I setup this file and get it to run on startup? Dynamic single-line printing in Python (time?) I have a mouse with lots of buttons, but it's not a mainstream make like Logitech. For Windows, I have a driver that lets me assign actions like close-window (Ctrl+W) or next-tab (Ctrl+Tab), but I don't have a Linux driver. Since Linux is so flexible, I thought perhaps there is a general way to do this, regardless of brand?  Update: Based on input from Cyrex, I installed and ran sudo apt-get install btnx which found several but not all mouse buttons. Found: left, right, wheel, wheelclick, thumb fwd, thumb back. Not found: wheel left, wheel right, thumb middle button. Vendor ID is 0x04d9, Model ID is 0xa015.  Update 2: In System>Prefs>Mouse there's a lightbulb icon for testing double-click speed. Every working button can turn the bulb on&amp;off, but the missing buttons can't. It would seem that Ubuntu isn't aware of these buttons and thus doesn't register their clicks. I guess I need to hunt for a driver, though a mainstream mouse is probably the easier way.