Ubuntu switching between monitor settings while booting
Is there to make the login screen appear on the external display in 18.04?
How to make a jquery click event fire only on first click Appendix without letter in TOC why does OSX add extra '._' when I tar a directory? I'd just like to know why if I "tar -czf" a file/directory, osx adds a:  ._  for each file? I see these when I untar in linux. Or when I work with the uncompressed project in eclipse as it doesn't like them at all. I use 10.7.5. External Styles in JasperReports I'm working on a system that includes a large number of reports, generated using . One of the newer features is that you can define styles for reports.  From the available docs I believe there is some way to have an external file defining styles to use, and you can reference that in your jasper reports. This allows a single style to be used by multiple reports.  I can't find any concrete information on whether this is an actual feature, and if it is, how to use it. Does anyone know if it is possible to have external styles for jasper reports, and if so, how to do it? Can sudo be reinstalled after being removed? This seems to be a chicken-egg problem. The most common task using sudo is installing and removing software.  sudo apt-get purge &lt;appname&gt;   But sudo itself can be removed.  sudo apt-get purge sudo # Do not run this command on production computers!   This is where the fun comes  ubuntu@ubuntu:~$ sudo bash: /usr/bin/sudo: No such file or directory   Although it's obvious that no person in his right mind will purge sudo (other than me), someone can be fooled to run this command (not directly, in its hex mode, or whatever it's called) or a person could SSH in disguised as tech guru and do the mess.  So is there a way of reinstalling sudo? What do I need for extreme macro photography? Why is there no absolute maximum temperature? If temperature makes particles vibrate faster, and movement is limited by the speed of light, then I would assume that temperature must be limited as well. Why is there no limit? New question asking form sometimes leads to accidental double posts of questions I've noticed that with the new question asking form, sometimes, attempting to submit a question will post two identical copies of the same question.  I've  (), but at the time, I assumed it was just a temporary fluke. As far as I remember, I just reviewed the question, saw no errors, and submitted it. (That's all the info I have.)  However, I just saw this happen to someone else, so it can't just be a fluke on my end. , and . The author claims there that they did indeed double click the "Review" button, but their question didn't go through since it didn't have a required tag, but when they tried to submit the question with the required tag, they only clicked it once.  Also, now that I think about it, it could not have been just a temporary client-side issue on both our ends. The system is supposed to  if one tries to post more than one question in 30 seconds. Neither of us got a CAPTCHA. This means that the server accepted the double post, and so it's a server issue.  This has the effect of denying users badges that they would have otherwise qualified for, since a single negatively-received, closed, or deleted question . This means that even if the double post is deleted and the original is upvoted, the user won't qualify for that day since they've made a "bad" question on that day. (While they may be able to later reverse this 60 days later by undeleting and re-deleting their question - questions deleted more than 60 days later aren't considered "deleted" for the check - they often won't be able to, since most of the time, users will have downvoted the double post, which also disqualifies one from the badges.)  Can an employee go through server logs to see what happened in both these cases, and add some safeguards to prevent accidental double submissions of questions? This seems to have come up when the new asking form was deployed.  Update: There was another case just now:  was . As both have the exact same time of submission, this is an instance of this bug, since as I said above, this thing is ordinarily prevented by a CAPTCHA. If my account is already a member of the administrator group why do some functions on Windows 7 require me to run them as administator? I kind of thought that was implied? I'm reposting  I asked on the  SE, bacause I have been redirected to Super User.  I have successfully set up two Linksys routers running DD-WRTv24 to do WDS. They have the same SSID, but different static local IP addresses. There is no security: it's just for testing; no Internet connection.   When I open my notebook, I see the SSID shared by the routers in the list of WiFi access points, and I can connect to it. Once connected, I can ping both routers' local IP addresses, so I know that the WDS is working. But I can't find a way to find out which of them I have actually connected to.  I wouldn't like to have different SSIDs, because I plan to have the access points hand-off users to one another, and I want it to be transparent for the users. I configured one AP to distribute DHCP IP addresses in one range, and the other in another range, so I can discover which AP I connected to at first, but I want a way to discover which AP I'm connected to now, so that I can find out whether the hand-off actually occurred. If $Ax = Bx$ for all $x \in C^{n}$, then $A = B$. Can I use variables inside {} expansion without `eval`? Can I use variables inside {} expansion without appealing to eval? If so, how?  This doesn't work:  $ touch 1.foo 1.bar $ ls 1.{foo,bar} 1.bar  1.foo $ extensions=foo,bar $ ls 1.{$extensions} ls: cannot access 1.{foo,bar}: No such file or directory   It works with eval:  $ eval ls 1.{$extensions} 1.bar  1.foo I have this function $$f(x) = x\cos(1/x)$$ defined for all $x \geq 1$.      How do I prove that    $$f(x+2)-f(x)&gt;2$$    for all $x\geq 1$?   I found $$f'(x)= \cos(1/x) + \frac{\sin(1/x)}{x}$$ and $$f''(x)=-\frac{\cos(1/x)}{x^3}.$$ How do i use this information? Is there a way to convert an image to grayscale? onKeyUp not firing for ESC in IE Farkas/guards pursuing me glitch I was doing a quest for the companions. When I entered Jorrvaskr, Farkas pulled out his sword and began to talk to me. Every time I would try to leave the conversation he would just follow me and try to talk to me again. This lead to me paralyzing Farkas and running away.   By the time I got to the gates of Whiterun he had already gotten up, ran to me and started another conversation. I quickly made it to the gates and exited, he followed me through the gates but I whirlwind sprinted to Shadowmere then attempted to fast travel - which game me the "Can not fast travel when guards are pursuing you" message even though no guards were following me.   I knew Farkas wasn't far behind so I quickly jumped on a carriage and I traveled to the nearest hold which was Dawnstar. Now I can't leave Dawnstar because the same message appears. I have tried to pay off my debt to the Dawnstar guards but it didn't fix the problem. How can I resolve this issue? Detect if program is running with full administrator rights How do I take a screenshot on my Mac? What's the easiest way to take a screenshot of my Mac?  I've used Grab.app, but it's a bit annoying just to get a quick screenshot. Is there a faster way? What are the differences between mocks and stubs on Rhino Mocks? I haven't play enough with this and usually use mocks, but I wonder what are the differences between this two and when to use one or the other on Rhino Mocks.  Update:  I also found the answer to my question in :  The difference between stubs and mocks You can get the actual definition of the these terms in this article: . I want to focus on the difference from the point of view of Rhino Mocks.  A mock is an object that we can set expectations on, and which will verify that the expected actions have indeed occurred. A stub is an object that you use in order to pass to the code under test. You can setup expectations on it, so it would act in certain ways, but those expectations will never be verified. A stub's properties will automatically behave like normal properties, and you can't set expectations on them.  If you want to verify the behavior of the code under test, you will use a mock with the appropriate expectation, and verify that. If you want just to pass a value that may need to act in a certain way, but isn't the focus of this test, you will use a stub.  IMPORTANT: A stub will never cause a test to fail. Everything was working fine for a long time. But suddenly the device is getting slower than usual (e.g. apps react slowly when starting an action -- like the RSS reader takes "ages" to open an article). Also, several apps start crashing: force-closes as well as unexpected restarts. Sometimes this even involves some automatic reboot of the device.  Is there anything I can do, besides doing a factory-reset? Preferably it should work on un-rooted devices.  Remark: not all described problems may occur together, so on one device e.g. there might be no automatic reboot involved. Question remains the same, nonetheless.