I have a module as part of a framework that provides common features to other modules. I have created a class (UtilitiesForTesting) that provides some utils to be used only in my tests, so it's stored in test section of the module.  The module has the following structure:  project     -src        -main          -java            -com              -company                -product                  +Foo        -test          -java            -com              -company                -product                  +FooTest                -utility                  +UtilitiesForTesting   UtilitiesForTesting class is visible inside the project but when I compile it the resulting jar does not contains any test class.  Now I want to use the modules in other modules, because I need this common functionality, but also I want to use testing utilities.  I don't want to place UtilitiesForTesting in the /main section, since I don't want to allow the use of this class in production code, only in test.  I want to have just a module that provides production classes to other module and test util to the same module, but restricting using the test utilities in the /main section.  Is there any way to use a class of the test scope of a module in other module?
How can you depend on test code from another module in Maven?    Example, I have 2 modules:   Base Main   I would like a test case in Main to extend a base test class in Base.  Is this possible?  Update: Found an , which involves creating a test jar.
All chromium extensions throw errors since update to 13.10 JavaScript: document.getElementById slow performance? How is it possible in Eclipse JDT to convert a multiline selection to String. Like the following  From:  xxxx yyyy zzz   To:  "xxxx " + "yyyy " + "zzz"   I tried the following template   "${line_selection}${cursor}"+   but that way I only get the whole block surrounded not each line separately. How can I achieve a multiline processing like commenting the selected block? Default constructor with empty brackets Is there any good reason that an empty set of round brackets (parentheses) isn't valid for calling the default constructor in C++?  MyObject  object;  // ok - default ctor MyObject  object(blah); // ok  MyObject  object();  // error   I seem to type "()" automatically everytime. Is there a good reason this isn't allowed? Intuition on proof of Cauchy Schwarz inequality To prove Cauchy Schwarz inequality for two vectors $x$ and $y$ we take the inner product of $w$ and $w$ where $w=y-kx$ where $k=\frac{(x,y)}{|x|^2}$ ($(x,y)$ is the inner product of $x$ and $y$) and use the fact that $(w,w) \ge0$ . I want to know the intuition behind this selection. I know that if we assume this we will be able to prove the theorem, but the intuition is not clear to me. Display current layout (language code/country flag) in keyboard indicator Just upgraded from 10.04 to 10.10, and the keyboard indicator applet no longer displays the two-letter country code for the active layout.  This is terrible. Is this the default behaviour? Anyone using two layouts can't tell which language they're in.  I can't seem to find the setting for this, it used to be in the preferences for keyboard layout.  Update 1: In case this wasn't obvious - I have two keyboard layouts - English and Hebrew. I just upgraded form 10.04, where the country code (USA/IL) was displayed, overlaid on the flag.  Now all I get is a vague keyboard icon, and can't find the settings for this.  Update 2: this seems to be a , and is now back in Maverick "Z-level" in TikZ How to install and configure Wine? I am looking for a step by step instruction to guide me in the ways of installing, configuring and debugging many of the issues new users have when dealing with Wine in Ubuntu.  What is the recommended way of installing Wine, some of the key issues that it has and how to solve them?  If I have a specific problem with an App in Wine, how do I go about solving it? What are the recommended steps to ensure that I can fix a problem related to an app I wish to use? For $n \geq 2$, prove that $(1- \frac{1}{4})(1- \frac{1}{9})(1- \frac{1}{16})...(1- \frac{1}{n^2}) = \frac{n+1}{2n}$ For $n \geq 2$ prove that $(1- \frac{1}{4})(1- \frac{1}{9})(1- \frac{1}{16})...(1- \frac{1}{n^2}) = \frac{n+1}{2n}$  We need to use induction.   The Principle of Mathematical Induction, Theorem 4.2.1, states that $n_0 \in \mathbb{Z}$. For each integer $n \geq n_o$, let $P(n)$ be a statement about $n$. Suppose that the following two statements are true:   $P(n_o)$ $( \forall n \geq n_o)[P(n) \rightarrow P(n+1)]$   Then, for all integers $n \geq n_o$, that statement $P(n)$ is true.  Suppose,  $(1- \frac{1}{4})(1- \frac{1}{9})(1- \frac{1}{16})...(1- \frac{1}{n^2}) = \frac{n+1}{2n}$, the equation, is true for some natural number $k$.  $\frac{1}{2^2})*...*(1- \frac{1}{k^2}) = \frac{k+1}{2k}$  The induction hypothesis $P(k) \rightarrow P(k+1)$ must hold for any natural number $k, P(k),$ from the basis and inductive step.  $(\frac{1}{2^2})*...*(1- \frac{1}{k^2})*(1- \frac{1}{(k+1)^2}) = \frac{k+1}{2k}(1- \frac{1}{(k+1)^2})$  $\leftrightarrow$ $\frac{k+1}{2k}(\frac{(k+1)^2}{(k+1)^2}- \frac{1}{(k+1)^2})$  $\leftrightarrow$ $(\frac{(k+1)}{2k})( \frac{(k+1)^2-1}{(k+1)^2})$  $\leftrightarrow$ $( \frac{(k^2+2k+1-1}{(2k)(k+1)})$  $\leftrightarrow$ $( \frac{(k^2+2k}{(2k)(k+1)})$  $\leftrightarrow$ $( \frac{k+2}{(2)(k+1)})$  We need to demonstrate that   $(\frac{1}{2^2})*...*(1- \frac{1}{n^2}) = \frac{n+1}{2n}$  holds true for $n \geq 2$  The question is do I just substitute a number that is greater than two after I did the induction? Error message on Terminal launch You can’t buy your kids clever. What’s more, if they’re merely above average, by sending them to some hideous Holland Park hothouse, you’re probably buying them miserable.  — Alex Proud,   ""   As far as I know, clever and miserable are both adjectives, not nouns. So why were they used with to buy? Is this an idiomatic way of saying You can't buy your kids intelligence and you're probably buying them (moral) misery? If so, what is the idiom used here? I'm not familiar with it. I want to leave my Mac awake overnight so it syncs 4GB of data from Dropbox. I need to prevent the machine from going to sleep because that pauses the Dropbox sync  I've been using  to keep the computer awake, but it also keeps the computer unlocked which is insecure.  I need a method to keep my Mac awake (so that Dropbox can sync overnight) but also locked (so no one can read my email). It'd be great if this method also turned off the screen (to preserve power), but honestly that's not even 100% necessary. why could a check if (document.addEventListener) returns false Alignment issue for the last modified information in the "Top Questions" page In the  (homepage), the asked/modified X mins ago text was left-aligned next to the tags. Previously the text was right-aligned. Seems some alignment issue introduced on that page recently. Screenshot for reference:      Configuration Version     Operating System Windows 10 Pro   Mozilla Firefox 89.0 (64-bit)   Google Chrome 91.0.4472.101 (Official Build) (64-bit)     Update: I see the same alignment issue in all other Stack Exchange site's &quot;Top Questions&quot; page too. Inequality involving sides of a triangle How can one show that for triangles of sides $a,b,c$ that   $$\frac{a}{b+c}+\frac{b}{c+a}+\frac{c}{a+b} &lt; 2$$  My proof is long winded, which is why I am posting the problem here.   Step 1: let $a=x+y$, $b=y+z$, $c=x+z$, and let $x+y+z=1$ to get   $\frac{1-x}{1+x}+\frac{1-y}{1+y}+\frac{1-z}{1+z}&lt;2$  Step 2: consider the function $f(x)=\frac{1-x}{1+x}$, and note that it is convex on the interval (0,1), so the minimum of   $\frac{1-x}{1+x}+\frac{1-y}{1+y}+\frac{1-z}{1+z}$  is reached when the function takes the extreme points. i.e. $x=y=0, z=1$.    But going back to the fact that this is a triangle, we note that $x=y=0 \implies a=0$ which is not possible, so the inequality is strict. How to safely upgrade from an older Ubuntu version to a newer one? Somewhere in the provided answer:   $$\int \frac{1}{\sqrt{2-x^2}} dx = \sin^{-1}{\frac{x}{\sqrt{2}}}$$  How did they get that? What I have:   $$\frac{1}{\sqrt{2-x^2}} = \frac{1}{\sqrt{2(1-\frac{x^2}{2})}} = \frac{1}{\sqrt{2} \sqrt{1-\frac{x^2}{2}}}$$  $$\frac{1}{\sqrt{2}} \int \frac{1}{\sqrt{1-(\frac{x}{\sqrt{2}})^2}} = \frac{1}{\sqrt{2}} \sin^{-1}{\frac{x}{\sqrt{2}}}$$  So I have an extra $\frac{1}{\sqrt{2}}$ ... I probably had some stupid mistakes? A customer running Windows 7 Home must have reserved or okayed the Windows 10 upgrade because I am seeing daily messages that the upgrade is failing to install.   This customer is not ready for Windows 10 so it's good that the install is failing. But how to make it stop trying?  Once permission is granted for the upgrade, how do I revoke that permission so it stops attempting to upgrade?  I ran the Windows Update troubleshooter to clear out updates, and I uninstalled and hid KB3035583, but it is still trying to upgrade. In Task Manager, there is no GWX.EXE process.  Event log failure message:  Log Name:      System Source:        Microsoft-Windows-WindowsUpdateClient Date:          8/5/2015 1:28:58 AM Event ID:      20 Task Category: Windows Update Agent Level:         Error Keywords:      Failure,Installation User:          SYSTEM Description:   Installation Failure: Windows failed to install the following update with                 error 0x80240020: Upgrade to Windows 10 Home.   Relevant lines from WindowsUpdate.log:  2015-08-05  01:28:57:885    1068    6698    Agent   ************* 2015-08-05  01:28:57:885    1068    6698    Agent   ** START **  Agent: Installing updates [CallerId = AutomaticUpdates] 2015-08-05  01:28:57:885    1068    6698    Agent   ********* 2015-08-05  01:28:57:885    1068    6698    Agent     * Updates to install = 1 2015-08-05  01:28:57:885    1068    6698    Agent     *   Title = Upgrade to Windows 10 Home 2015-08-05  01:28:57:885    1068    6698    Agent     *   UpdateId = {27E79986-1150-4342-BDD2-76DF82C768D5}.201 2015-08-05  01:28:57:885    1068    6698    Agent     *     Bundles 1 updates: 2015-08-05  01:28:57:885    1068    6698    Agent     *       {FCD6621E-F5D4-4A95-AD43-28F0C58DD2F3}.201 2015-08-05  01:28:58:181    1068    6698    DnldMgr Preparing update for install, updateId = {FCD6621E-F5D4-4A95-AD43-28F0C58DD2F3}.201. 2015-08-05  01:28:58:181    27280   6f84    Misc    ===========  Logging initialized (build: 7.6.7601.18917, tz: -0700)  =========== 2015-08-05  01:28:58:181    27280   6f84    Misc      = Process: C:\Windows\system32\wuauclt.exe 2015-08-05  01:28:58:181    27280   6f84    Misc      = Module: C:\Windows\system32\wuaueng.dll 2015-08-05  01:28:58:181    27280   6f84    Handler ::::::::::::: 2015-08-05  01:28:58:181    27280   6f84    Handler :: START ::  Handler: Windows Setup Install 2015-08-05  01:28:58:181    27280   6f84    Handler ::::::::: 2015-08-05  01:28:58:181    27280   6f84    Handler   : Updates to install = 1 2015-08-05  01:28:58:181    1068    5ecc    AU  &gt;&gt;##  RESUMED  ## AU: Installing update [UpdateId = {27E79986-1150-4342-BDD2-76DF82C768D5}] 2015-08-05  01:28:58:181    1068    5ecc    AU    # WARNING: Install failed, error = 0x80240020 / 0x00000000 2015-08-05  01:28:58:181    27280   6f84    Handler   : WARNING: Exit code = 0x80240020 2015-08-05  01:28:58:181    1068    5ecc    AU  Write OSUpgradeState =14 with OSUpgradephase =2 2015-08-05  01:28:58:181    27280   6f84    Handler ::::::::: 2015-08-05  01:28:58:181    27280   6f84    Handler ::  END  ::  Handler: Windows Setup Install 2015-08-05  01:28:58:181    27280   6f84    Handler ::::::::::::: What is the difference between Ubuntu and its derivatives? What different Ubuntu derivatives are there? And what is special with them? Splitting all lines in layer at vertices using QGIS