If not using virtual-box for 5 min, it goes automatically in standby. How do I increased the time for it to stay a bit longer. Is my VM goes into standby
I run Mythtv on some Ubuntu 11.10 based machines.  In the power settings, I can choose from a list of time periods from 5 minutes up to 1 hour for the the machine to suspend when inactive.  I would like to set the suspend to occur at a longer interval, like 2 hours or 4.  Previously with Gnome, I would think that I could go into the gconf editor and find the key there, I am not sure with Unity where to override a setting like this.  Any suggestions?
We have a SQL Server 2012 instance that contains a database with data for many product lines.   We are looking for a way to take subsets of this data into another database on the same instance.  This doesn't have to be continuous as we are looking for ways to make it easy to export backups of the subsets that we can send out to vendors (we have a company that loads this data into their own sql server to produce a product we sell, naturally its huge and we want to trim it down to just the product lines they work with on a regular enough basis) or use to load SQLite DB's for use with offline applications.  ProductDB - the superset of all product line data.  ProductLine1DB - A subset identical in structure to ProductDB, but with data only relevant to product line 1.  ProductLine2DB - A subset identical in structure to ProductDB, but with data only relevant to product line 2.  This can be done nightly, weekly, as often as we need to but not a continuous replication.  We don't want to add in distributor servers or even extra subscriber servers. We would like the replication to happen on the same server with the subscriber databases being on the same server.  Is this a good candidate for transactional replication?  Why or why not?  We obviously have other options to load this data, but it seems like this might be a good case to use something like transactional replication. I've heard its powerful but prone to issues when not setup optimally.  Note: I am not a DBA, simply a developer, but we are currently looking for a new DBA and some of us are taking over duties like this temporarily. What should I do when a hacker gives me hacked money? I was peacefully playing GTA Online (yeah, was killing someone coming out of ls customs) then a hacker came and killed me using explosive ammos, I called him a hacker and he teleported to me and gave me 790k. I know that people get banned for receiving this kind of money, what should I do to avoid the ban? In MTG, what happens when a player loses in multiplayer? In Magic: The Gathering, the rules for a player losing in a multiplayer game are quite complex, so I'd like to try to understand them by example. I would be happy to ask each of these situations as a separate question if that is preferred, but they all seem related, and I would love to have one place to look up all of these answers.  Let's say I'm playing with two friends, Bob and Chloe, in a simple free for all. Unfortunately, I lose. When I lose, suppose the following:   I controlled an  which has exiled Bob's , does he get his bear back? I have a  on the stack targeting Chloe, does Chloe take the 2 damage still? Earlier in the turn I cast  to prevent damage to one of Bob's . If it later takes 3 damage, will that damage be prevented? Something I controlled gave Bob a 1/1 soldier token. What happens to the token? Something Chloe controlled gave me a 1/1 soldier token. What happens to the token? I had a  enchanting one of Bob's army of . What happens to the bear? I had also played  on Bob's final . What happens to the last bear? Chloe had  my . What happens to the Clone? Are there any other situations specifically addressed by the rules? Copy files excluding x,y,z causing error in shell script I'm not well versed in shell scripting but I imagine this to be a painfully easy fix but its eluding me.  I need to copy the contents of a directory excluding a number of files. I have a command that works when I enter it into the terminal, but when its run in a shell script it fails with a syntax error or just doesn't work.   The command in question is:  cp -r path/to/!(dir1|dir2|dir3) destination   Any help would be greatly appreciated! How do I know if I am flagging correctly? Is there any way to know how useful are the flags of a user? I read that flagging - weights used to exist (were visible) before, which would indicate this. However, what indicator is there now?  Is percentage of accepted flags a good measure of useful flagging, so to say? If yes, then what percentage would indicate that a user is flagging correctly or in a useful way?  I am asking about interpreting the numbers in terms of how useful you are. Is a 80% good or a 90% good? Or does the percentage even matter?     contains some explanation regarding the issue. I recently got a new router, a DRL-600L Router from D-Link, and was setting up some filters to block out certain websites.  One problem I am having is blocking out addresses that use https instead of http.  For example, I'm trying to block out Facebook, because Facebook.   So far, the filter filters http://www.facebook.com perfectly fine, but for the url https://www.facebook.com, it won't block that.  How can I block those kinds of websites? Format a number with optional decimal places in Excel I have numbers in cells in Excel. I want the numbers formatted so that if they have decimal places they show to a maximum of two, and if they have no decimal places it doesn't show any.  For example.    15 should be formatted as 15, NOT 15.00 14.3453453 should be formatted as 14.35 12.1 should be formatted as 12.1  0 should be formatted as 0   The closest custom format code I've come up with is 0.##. Unfortunately this formats 15.00 as 15. (note the extra decimal point).  To further complicate the issue, the spreadsheet is a result of an export from SQL Server Reporting Services. So no macros are possible. Oh well, it looks like 0.## is my best bet, and they can just live with the extra period. I'm looking for an idiom or saying that I could use when people are focusing too much on small details and not seeing the big picture.  A couple that come to mind are "being penny-wise and pound foolish" and "rearranging deck chairs on the Titanic". However, the former doesn't fit what I'm thinking of because the present activity might not be wise. The latter implies too much about impending doom.  For example, let's say some company is spending all their time refining a small detail in their product, while ignoring a major opportunity shift in the industry. What phrase could I use there? How do you set a default value for a MySQL Datetime column?  In SQL Server it's getdate(). What is the equivalant for MySQL? I'm using MySQL 5.x if that is a factor. Grammatically, what is "It" in the following sentence? I'm currently working at a private academy in Korea, and my boss just asked me a real head-scratcher.   In the sentence:     It doesn't have to be hot and humid for players to lose too much water from their bodies.    I'm aware that "It" is a subject pronoun replacing "The weather." Besides that, however, I'm unsure.   Is it a false subject? I wouldn't think so since it's a pronoun. Is it some crazy kind of indirect object?  Anyway, thank you all for your help! What is a good strategy to deal with lots of engineers turtling on the other team? Now that the Engineer update has come, there will be lots of Engineers building up everywhere.  How should this best be handled? Short story or novel from the 1970s or before about two warring alien tribes How do I determine which graphics card I'm using? Abstract algebra book recommendations for beginners. I am taking abstract algebra in this semester. I find that my lecturer didn't provide enough examples for understanding. So I would like to ask what are the recommended books which has lots of solved problems and exercises? The lecturer said in this semester, he will cover group theory, ring theory and a bit of field theory. Which book contains extensive information in these three fields? Answers to a  mention that it is illegal for a US citizen to enter/leave their home country on a foreign passport. However this raises the following questions:   What is the maximum prescribed penalty for violating these rules? Are US immigration officials known for actually applying the penalty? E.g. the Cuba embargo banning visits to Cuba was almost never enforced, so it's possible this law is ignored as well. Obtain the joint PDF of $\theta_{1} - \theta_{2}$ and $\theta_{1}$ where $\theta_{1}$ and $\theta_{2}$ are i.i.d $\text{Uniform}[0, 2\pi)$ I have 2 i.i.d Uniform random variables $\theta_{1}$ and $\theta_{2}$ on $[0, 2\pi)$. Here the problem pushes us to consider that all operations are made modulo $2\pi$. My question is how to obtain the joint PDF of $\theta_{1} - \theta_{2}$ and $\theta_{1}$ and then obtain the conditional PDF of $\theta_{1}$ given $\theta_{1} - \theta_{2}$??. For the second part It can be deduced from the first by writing it as the joint PDF divided by the PDF of $\theta_{1}$. But for the first part, A common idea that I saw is to derive the $\text{CDF}(x, y) = P(\theta_{1} - \theta_{2} \le x$, $\theta_{1} \le y$) and then perform derivations respect to $x$ and $y$. Is this a right approach? If yes, how to proceed with CDF especially with our uniform distribution restrictions? Evaluating limit (iterated sine function) The limit is   $$\lim_{x\rightarrow0} \frac{x-\sin_n(x)}{x^3},$$  where $\sin_n(x)$ is the $\sin(x)$ function composed with itself $n$ times:  $$\sin_n(x) = \sin(\sin(\dots \sin(x)))$$  For $n=1$ the limit is $\frac{1}{6}$, $n=2$, the limit is $\frac{1}{3}$ and so on.  Can we define a recurrent relation upon that given hypothesis? Also, how do I involve $n$ into calculation, because the final limit will depend on it?  Any suggestions on how to tackle this?  Thank you! Padding trailing whitespaces in a string with another character I'd like to output hello world over 20 characters.  printf "%-20s :\n\n" 'hello world!!'  # Actual output hello world!!        :  # Wanted output hello world!!========:   However, I don't want to complete with spaces but with "=" instead. How do I do that? wilcox.test usage in R I would like to know if there is a difference in the values taken from measurements of a given characteristic sampled at primary forest (Point=1) and secondary forest (Point=0)  I'm using two vectors, one with the data itself (DATA$Measurements), and the other one with the category of sampling point (DATA$Point).  How should I perform the wilcox.test fucntion?  I'm doing this way:  wilcox.test(DATA$Measurements~DATA$Point) But I notice that are other forms of performing this test:  wilcox.test(DATA$Measurements,DATA$Point) wilcox.test(DATA$Measurements,DATA$Point,paired=TRUE) Which one is more suited for testing my question of interest (Is there a difference between points for this given characteristic), and what is the difference between these options?? I have a sentence that contains a number of long dataset names. I would like to allow LaTeX to break these names at certain positions that I would like to specify somehow just like I can use \- to allow a word break with hyphenation. But: I would like LaTeX not to insert a dash (which could be mistaken as belonging to the dataset name). How can I do this?   (Something similar is realized in the url package so I guess I could just read that code :) I would not like to use the url package here to be able to make a syntactical (and typographic) difference between urls and datset names.)