I am accessing a Unix server using SSH client from my Windows machine (M/C name: MyComp). I have logged in as user id: MyID.  Is there any way I can determine what are the active session in Unix?  e.g something like "someone from Mycomp Logged in at  xx:xx  using MyID"
In a multi server architecture, is it possible to find out from which machine a user logged into current machine using ssh?  For example, user1 logged into host1. From there, the user logged into host2 as sruser using ssh.  In above example, would it be possible to trace the sruser session of host2 back to user1 session in host1?  Would it be possible to get the hostname or terminal of user1 session?
Is it possible to create an instance of a generic type in Java? I'm thinking based on what I've seen that the answer is no (due to type erasure), but I'd be interested if anyone can see something I'm missing:  class SomeContainer&lt;E&gt; {     E createContents()     {         return what???     } }   EDIT: It turns out that  could be used to resolve my issue, but it requires a lot of reflection-based code, as some of the answers below have indicated.  I'll leave this open for a little while to see if anyone comes up with anything dramatically different than Ian Robertson's . Lost USB BlueTooth Dongle for Keyboard and Mouse I lost my USB bluetooth dongle (from HP) which I used for a wireless keyboard and mouse. They came together in a set when I bought my last HP computer.  Are the keyboard and mouse useless now? or will any bluetooth dongle allow them to work? If I can just buy a new one - any recommendations on a replacement (good price, and perhaps works with Windows and Ubuntu out-of-the-box?   Forgive me if this is an easy question. I'm just not that familiar with wireless mice/keyboards. I installed an Ubuntu alpha or beta and have been keeping it up to date.   So, Should I presume that my system has automatically updated to the next alpha or beta, and will be running the official release when it's finished? I have added the png transparent image with the setting and its not showing transparent black background is seen. I have the base color aluminum and i want to add that logo of png on to it. The image is black letter with transparent background why its showing in white letters and black background. May i know where im going wrong any suggestion or help. Are getters and setters poor design? Contradictory advice seen How do I generate random integers within a specific range in Java? How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum. Acer Aspire E15 will not dual boot I installed Ubuntu 14.04 onto my Acer Aspire E15. The PC has a 500 Gigabyte HDD.   During the installation it divided the HDD into separate partitions. However every time I turn on the PC it goes directly into Windows 8.1. It doesn't allow you the opportunity to select which OS you want to use.   Question 1: How do I set the PC so it will allow me to select the OS?  Question 2: And if #1 isn't possible. How to I remove Ubuntu from the PC and recover the partition for Windows Macbook Air - how to install a dual bootable Ubuntu 14.04 LTS On my Macbook Air 10.9.2 without crashing the current setup, how can i install as dual boot: Ubuntu 14.04 LTS ? (can anyone please advise some step by step please) How to align floating point variables in Latex3 I would like to have the variables (defined in Latex3) aligned in a table with the decimal point. Of course, without using the &quot;trial and error&quot; extra space &quot;,&quot;. Is there any possibility? Thank you very much. \documentclass{article} \usepackage{xparse} \usepackage[version=4]{mhchem}  \usepackage{siunitx,booktabs}  % \ExplSyntaxOn \NewDocumentCommand{\calcnumd}{o m}   {\IfValueTF{#1}      {\num[round-mode = figures, round-precision = #1, round-integer-to-decimal]{\fp_to_decimal:n{#2}}}      {\num{\fp_to_decimal:n{#2}}}   } % data \fp_set:Nn \dhfbiox {33.18} \fp_set:Nn \dhftetrox {9.16} \fp_set:Nn \dgfbiox {51.31} \fp_set:Nn \dgftetrox {97.89} \fp_set:Nn \cpbiox {37.20} \fp_set:Nn \cptetrox {77.28} % calculations % \ExplSyntaxOff % \begin{document}  \begin{center} \begin{tabular}{l|ccc}    &amp; $\Delta_f H^{\ominus}$ &amp; $\Delta_f G^{\ominus}$ &amp; $C_P$ \\    &amp; \si{\kilo\joule\per\mole} &amp; \si{\kilo\joule\per\mole} &amp; \si{\joule\per\kelvin\per\mole} \\ \midrule \ce{NO2} &amp; \calcnumd{\dhfbiox} &amp; \calcnumd{\dgfbiox} &amp; \calcnumd[4]{\cpbiox} \\ \ce{N2O4} &amp; \,\,\,\calcnumd{\dhftetrox} &amp; \calcnumd{\dgftetrox} &amp; \calcnumd{\cptetrox} \\ \bottomrule \end{tabular} \end{center}  \end{document} Don't automatically edit the post to insert "possible duplicate" links When a question is closed as a duplicate, its body is edited to auto-insert the link to that duplicate. I think there are a couple problems with that:   If the question is reopened, the auto-generated insert isn't automatically removed. It allows the poster (or anyone else) to roll back the post and protest the closure by reverting the automatic edit.    I propose that the links to the duplicate(s) are moved into a separate "header" field above the post instead of being edited into the body of the question. That way it could be removed or hidden if the question is reopened and it could not be edited or reverted without reopening the question.   There is some potential for loss of functionality there, since right now it is possible to edit the post to either include additional related links or remove obsolete/incorrect ones. That could be addressed by making the "duplicate field" editable at a certain reputation level (10k?) and enabling others to suggest edits for it that'd go through the usual approval/rejection process.  Thoughts? Prove that for $ 0&lt;x&lt; \pi $, $$ \quad S_n(x) = \sin x + \frac{ \sin3x }{3} + ... + \frac{ \sin((2n-1)x) }{2n-1} &gt;0 \quad \forall n = 1,2,... $$  Having trouble with this problem. This is an olympiad-style question, so an answer that doesn't use calculus or analysis would be preferred. A possible approach is induction, but for this we need to find a function in terms of $n$ and $x$ so that we can actually use the inductive step. If anyone has any ideas they would be appreciated.  If you really want to go down the calculus route (at this point I don't mind), then $ S_n' (x) = \cos x + \cos 3x + ... +\cos((2n-1)x) $ , which you can find a closed form for, but I don't know how useful that is. I created the shiftcommandn shortcut for Firefox in Syst Prefs to match other browsers' behavior.     It registers in the Firefox Menubar.     But pressing the shortcut opens a new non-private window, and it loads there the first item in my "Top Sites".   I imagine I could create another shortcut to override this behavior, but what is this behavior? I don't see anything highlighted in the Firefox Menubar when I hit the shortcut. Or might there be another solution (other than using a different shortcut to open new private windows)?   Problem exists on both Mojave and High Sierra. Default Firefox shortcut (shiftcommandp) still opens a new private window. Updating the SubscriberKey on the All Subscriber table through the API I'm trying to update an existing Subscriber in the All Subscriber Table through the API; i've set up the AppId in the App Center and have connected and created Subscribers, but i'm still having issues updating.  What call do I need to be making to do this? These are the ones i've been trying. Usually when a word starts with a vowel, we will use "an" before it. But for union, it is "a union" not "an union." It is not explained in the previously mentioned  why union is an exception. It explains how to know exceptions for h like hotels.   Also are there any exceptions for the opposite side, where there should be an "a" but is an "an" instead? (Unfortunately I have no example of a case like this.) When should I use a fixed or variable time step? So, my friend just implemented a bunch of new mods into his SMP server, which meant a host of new commands to play with.  I thought I'd give the /mobspawn command a few goes, and see what I could achieve.  So I headed off to the server's jail (I forget why this particular location compelled me), and gave it a few spins.    I seem to have made a bit of an error in judgement.     What can I do to get rid of this mess?  Is there a command or some other technique I can use to clear out any mobs in my immediate vicinity? How to recursively download a folder via FTP on Linux I'm trying to ftp a folder using the command line ftp client, but so far I've only been able to use 'get' to get individual files. How much meat should I serve per person? Are there any banned subjects on Area 51? I know of the following rules for creating a proposal on Area 51:  The scope must be reasonably well-defined, not too unclear (e.g. &quot;cool stuff&quot;), too opinion-based (e.g. &quot;car reviews&quot;), too broad (e.g. &quot;life on Earth&quot;), or too narrow (e.g. &quot;The 1995 academic misconduct scandal at East Oak Mews High School&quot;). One  come to Area 51 with an already existing community rather than hope to build one on Area 51. Proposals that are subsets of existing sites are not acceptable (e.g.  — deleted). These get closed as &quot;This subject is already well-covered by a live Stack Exchange site. We generally do not split off subjects simply to give them their own space.&quot; Proposals for non-English sites .  Other than the criteria above, are there any per se restrictions on site content for an Area 51 proposal? If so, what topics are currently banned? I would expect a proposal for a &quot;Let's organize a lawsuit against Stack Exchange&quot; or &quot;[Specific SE staff member] sucks, amirite?&quot; would get closed for obvious reasons, but I'm interested if there are any non-obvious topics that are not currently allowed in proposals regardless of how well-defined, well-scoped, original, and well-supported by a community they are. Having a list of banned topics would be helpful to potential proposers as well as the communities that back them. For example, I wouldn't want to go to all the effort of organizing a community, bringing them to Area 51, etc., only to have my proposal closed with a curt &quot;Sorry, due to the political climate, we are not currently accepting proposals for sites about real-life weapons.&quot; custom closure. To be clear, I am asking solely about topic restrictions (e.g. &quot;no sites about fishing, hunting, or weapons&quot;). I'm not asking about clarity requirements, the requirement to have a pre-existing community, not duplicating an existing site, or the requirement to not use sock puppets to artificially inflate proposal stats. Those requirements are already well-defined elsewhere or else are common sense. Also to be clear, I don't have a specific proposal idea in mind right now or the community to make it happen. I'm asking in general. The question could be rephrased as &quot;What are those topics where I shouldn't even bother to try to define, gather a community, etc. because any attempt to propose a site will be summarily closed due to covering a banned topic?&quot; This is not a duplicate of  because that question is about the appropriateness of expanding a proposal to cover things that are acceptable proposal topics but arguably don't make sense in combination with the original proposal scope. My question is about topics that are completely banned from proposals regardless of whether they are included in the original proposal description or tacked on by the community later. Change name on the main Stack Exchange profile