Can I fit a training tyre to my bike wheel?

I have a mountain bike with a tyre marked 26x2.00 and I'd like to fit a training tyre so I can use my bike inside.  I know that the 26 refers to the diameter of the wheel and the 2.00 is the width of the tyre but I have my eye on a training tyre which is marked 26x1.25.  Clearly the tyre width is smaller which is not a problem but what I don't understand is how I know whether it will fit my wheel rim.    Firstly, I don't know the correct place to measure the rim (it measures 26mm on the outside) but secondly how do I know which tyres will fit which rims?  Is this listed on the tyre somewhere to say it fits a specific width wheel?  Thanks


Proof that the multiplicative groups $\mathbb{R} - \{0\}$ and $\mathbb{C} - \{0\}$ are not isomorphic.

Is my proof for the question in the title correct?  Note that $\mathbb{R} - \{0\} \subset \mathbb{C} - \{0\}$, since every real number is a complex number. Therefore, since any $\phi: \mathbb{R} - \{0\} \to \mathbb{C} - \{0\}$ would map from a set to another set of bigger cardinality, no such $\phi$ could be  surjective. Thus, no isomorphism exists between the multiplicative groups $\mathbb{R} - \{0\}$ and $\mathbb{C} - \{0\}$.


Can modal Lightning components be displayed on the very top?

I have overridden the standard New object action with my custom Lightning Component Bundle. I am using the modal CSS styles as well as the modal backdrop to mimic a native modal dialog in SF. The problem is, on low-res screens my the top portion of my modal dialog goes under the SF header.  Here's my markup:

Custom Page

                       <lightning:button label="Cancel" onclick="{!c.cancel}"/>             <lightning:button label="Save" onclick="{!c.save}"/>

   Given the way components are isolated from each other I can't use z-index. Is what I want to do possible at all?  My last resort is padding the top using the CSS @media query but I'd rather find a better solution.


Android app crashes trying to open the site formerly known as Programmers

I let Android submit the crash report several times since the site was renamed to Software Engineering.  The side drawer icon is labeled "Unknown Site programmers".  Are other people seeing this problem?   App Version: 1.0.89 Device Manufacturer: LGE Device Model: Nexus 5X OS Version: 7.0 (3425233)


I'm experiencing "not enough space" error when trying to create system image to a USB hard drive:       Detailed error: ERROR - A Volume Shadow Copy Service operation error   has occurred: (0x8004231f) Insufficient storage available to create   either the shadow copy storage file or other shadow copy data.   Blah, blah...      There is not enough disk space to create the volume shadow copy on the storage location. Make sure that, for all volumes  to be backup   up, the minimum required disk space for shadow copy creation is   available. This applies to both the backup  storage destination and   volumes included in the backup. Minimum requirement: For volumes less   than 500 megabytes, the minimum is 50 megabytes of free space. For   volumes more than 500 megabytes, the minimum is 320 megabytes of free   space. Recommended: At least 1 gigabyte of free disk space on each   volume if volume size is more than 1 gigabyte. ERROR - A Volume Shadow   Copy Service operation error has occurred: (0x8004231f) Insufficient   storage available to create either the shadow copy storage file or   other shadow copy data.   I'd tried both - PowerShell     wbAdmin start backup -backupTarget:E: -include:C: -allCritical -quiet   and via Control Panel -> File History button  Clearly both EFI and Windows Recovery Environment partitions don't meet requirements coming from System Image tool (pic below)    On top of that all system partitions are now shown as 100% free in Disk Management, it's disturbing but far from the actual state.     My question is - hot to create System Image in Windows 8.1?


Dimensionality of null space when Trace is Zero

This is the fourth part of a four-part problem in Charles W. Curtis's book entitled Linear Algebra, An Introductory Approach (p. 216).  I've succeeded in proving the first three parts, but the most interesting part of the problem eludes me.  Part (a) requires the reader to prove that $\operatorname{Tr}{(AB)} = \operatorname{Tr}{(BA)}$, which I was able to show by writing out each side of the equation using sigma notation.  Part (b) asks the reader to use part (a) to show that similar matrices have the same trace.  If $A$ and $B$ are similar, then  $\operatorname{Tr}{(A)} = \operatorname{Tr}{(S^{-1}BS)}$  $= \operatorname{Tr}(BSS^{-1})$  $= \operatorname{Tr}(B)$,  which completes part (b).  Part (c) asks the reader to show that the vector subspace of matrices with trace equal to zero have dimension $n^2 - 1$.  Curtis provides the hint that the map from $M_n(F)$ to $F$ is a linear transformation.  From this, I used the theorem that $\dim T(V) + \dim n(T) = \dim V$ to obtain the dimension of the null space.  Part (d), however, I'm stuck on.  It asks the reader to show that subspace described in part (c) is generated by matrices of the form $AB - BA$, where $A$ and $B$ are arbitrary $n \times n$ matrices.  I tried to form a basis for the subspace, but wasn't really sure what it would look like since an $n \times n$ matrix has $n^2$ entries in it, but the basis would need $n^2 - 1$ matrixes.  I also tried to think of a linear transformation whose image would have the form of $AB - BA$, but this also didn't help me.  I'm kind of stuck...  Many thanks in advance!


Can the jQuery UI Datepicker be made to disable Saturdays and Sundays (and holidays)?

I use a datepicker for choosing an appointment day.  I already set the date range to be only for the next month.  That works fine.  I want to exclude Saturdays and Sundays from the available choices.  Can this be done?  If so, how?


Mysql how to get parent and all child for given ID?

I have two table (category, product) as below:   Category Table:   cid name parent 1  items Null 2    A    1 3    aa   2 4    ab   2 5    ac   2 6    B    1 7    ba   5 8    bb   5 9    bc   5 10   C    1 11   ca   9 12   cb   9 13   cc   9   Product Table:   pid  cid  pname 1     2   p1 2     3   p2 3     4   p3 4     4   p4 5     5   p5 6     5   p6   Here  I want to get all parent and child products for a particular parent. Here I have cid = 2, then I need all the products to cid=2 and its child.   Here I tried it something like this, but not sure how to join product table with this query:   select  cid,         name,         parent from    (select * from categories          order by parent, cid) categories,         (select @pv := '2') initialisation where   find_in_set(parent, @pv) > 0 and     @pv := concat(@pv, ',', cid)   UPDATES:  DB Model     Can anybody help me out?  Thank you.


Android Studio java.lang.NullPointerException: Attempt to invoke interface method

When running my code I get this error ("java.lang.NullPointerException: Attempt to invoke interface method") and I still can't figure why.  Here is my code:  @Override public void pointerReleased(int x, int y, int x2, int y2) {     bDrag=false;     selector.pointerReleased(x, y, x2, y2);     {         IDisplayTransformation dt=mapControl.getDisplay().getDisplayTransformation();          if (canMoveMap)         {             if (x>(dt.getDeviceFrame().getXMax()*0.9) || x<(dt.getDeviceFrame().getXMax()*0.1) ||                     y>(dt.getDeviceFrame().getYMax()*0.9) || y<(dt.getDeviceFrame().getYMax()*0.1))             {                 Point pt=new Point();                 dt.toMapPoint(x, y, pt);                 IEnvelope env=mapControl.getExtent();                 env.centerAt(pt);                 mapControl.refresh(env);                 return;             }         }           Point pt=new Point(selector.getX(),selector.getY());         Point result=new Point();         dt.toMapPoint(pt, result);         pts.add(result);         mapControl.repaint();     } }   Error message:  10-16 16:53:28.566 4185-4185/ E/MessageQueue-JNI: java.lang.NullPointerException: Attempt to invoke interface method 'void cn.creable.gridgis.display.IDisplayTransformation.toMapPoint(int, int, cn.creable.gridgis.geometry.IPoint)' on a null object reference 10-16 16:53:28.566 4185-4185/ E/MessageQueue-JNI:     at cn.creable.gridgis.controls.PanTool.pointerPressed(Unknown Source) 10-16 16:53:28.566 4185-4185/ E/MessageQueue-JNI:     at cn.creable.gridgis.controls.MapControl.pointerPressed(Unknown Source) 10-16 16:53:28.566 4185-4185/ E/MessageQueue-JNI:     at cn.creable.gridgis.controls.MapView.onTouchEvent(Unknown Source)


C++ Class Templates Inheritance Call Constructor/Destructor

I have the following class.  template <class T> class DivideConquerTask { public: DivideConquerTask() = delete; DivideConquerTask(int problemSize, int branchingSize); virtual ~DivideConquerTask(); DivideConquerTask(const DivideConquerTask& other) = delete; DivideConquerTask& operator=(const DivideConquerTask& rhs) = delete; DivideConquerTask(DivideConquerTask&& other) = delete; DivideConquerTask& operator=(DivideConquerTask&& rhs) = delete; ...   and in cpp file  template <class T> DivideConquerTask<T>::DivideConquerTask(int problemSize, int branchingSize) :     _problemSize { problemSize }, _branchingSize { branchingSize } { }  template <class T> DivideConquerTask<T>::~DivideConquerTask() {     /* Currently no resources managed. */ }   I then have a class:  class MergeSortTask final : public DivideConquerTask<int> { public: virtual ~MergeSortTask(); MergeSortTask(int data[], int problemSize, int branchingSize); ...   with cpp file  MergeSortTask::~MergeSortTask() { } MergeSortTask::MergeSortTask(int* data, int problemSize, int branchingSize) :     DivideConquerTask(problemSize, branchingSize), _data { data } { }   and from this I get error messages:  undefined reference to Actors::DivideConquerTask<int>::~DivideConquerTask() undefined reference toActors::DivideConquerTask::DivideConquerTask(int, int)  where Actors is the namespace everything is declared/defined in.  What's the problem here? Why can't it find my base constructor/destructor?  Note: I have omitted some trivial functions that are working fine.


I want to install The Ubuntu OS not just the desktop

How will I then uninstall Windows?  I don't want to run both operating systems side by side.


Laptop charger 19V 6.32A 120W Adapter as replacement for 20V 7.5A 150W

Is it safe to use 19V 6.32A 120W Laptop Charger / Adapter , because I lost my 20V 7.5A 150W adapter and the only one I could find locally is the 19V 6.32A 120W , currently using the laptop for Gaming and not Rendering (yet)..?


How accurate is approximating the Earth as a sphere?

What level of error do I encounter when approximating the earth as a sphere? Specifically, when dealing with the location of points and, for example, the great circle distances between them.  Are there any studies on the average and worst case error compared to an ellipsoid? I'm wondering how much accuracy I'd be sacrificing if I go with a sphere for the sake of easier calculations.  My particular scenario involves directly mapping WGS84 coordinates as if they were coordinates on a perfect sphere (with the  defined by the IUGG) without any transformation.


How to write Singleton class JUnit test cases

I am new for Junit's and i wrote Singleton class Junit Test case in my below code but i am getting exception and second method for loop not getting to cover can some one help me please to get it solve   Singleton   public class MSA {     private static final _msa = new MSA(); // TA is a singleton     private ArrayList<MSThread> MSThreads = new ArrayList<MSThread>();      private String msaInfo = null;          public String getMsaInfo() {             return msaInfo;         }          public void setMsaInfo(String msaInfo) {             this.msaInfo = msaInfo;         }          private MSA() {}          public static MSA getInstance() {             return _msa;         }         public void shutdown() {         for (MSThread t: MSThreads) {             t.shutdown();         }     }   TestClass    @Test         public void setMsaInfoTest() throws Exception{             MSA fixture = MSA.getInstance();             fixture.setMsaInfo("sample");             assertTrue(fixture.getMsaInfo() == "sample");         }    @Test     public void testShutdown_1()         throws Exception {               MSA fixture = MSA.getInstance();         fixture.shutdown();     }   Error  java.lang.AssertionError     at org.junit.Assert.fail(Assert.java:86)     at org.junit.Assert.assertTrue(Assert.java:41)     at org.junit.Assert.assertTrue(Assert.java:52)     at com.verizon.dtix.microsvcagent.MSATest.setMsaInfoTest(MSATest.java:131)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)     at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)     at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)     at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)     at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541)     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)


In VF page how to make a selection Readable or Editable based on the picklist value selected

I have created a new VF page. In my VF page having Stage picklist same as Opportunity. If we select "Closed Won" then i need to make one a "Invoice selcetion" to editable, if we choose any other value in the picklist then "Invoice Selection" should be readable. I am trying this but didn't get any solution for this, using Salesforce PE. Kindly send any link for this to achieve. Thanks in advance, waiting for your reply.


Is it possible to detect two different mice at the same time, and have their movements recorded seperately?

I'm thinking of making a game that requires two mice to play. It needs to register the movement separately from one another. Is this possible? Or does the Windows architecture not allow for such things?


What are different ways to prove that $\sum_{n=1}^{\infty}\frac 1n$ is divergent?

I have been studying Cauchy criterion for sequences, and have come across a rather simple proof for the harmonic series, and why it diverges.   More so, we have the following:  $$\sum_{n=1}^{\infty}\frac 1n=\infty\Rightarrow divergent$$  Here is my simple proof:  Consider the sequence $\left\{a_n\right\}_{n=1}^{\infty}$ such that $a_n=\frac 1n$, then $\forall \epsilon>0,\exists \ N \in\mathbb{R}$ for $m,n\in \mathbb{N}$, such that,  $$m,n>N\Rightarrow|a_m-a_n|<\epsilon$$  Pick $m=2n$, then we have the following:  $$|a_{2n}-a_n|=\sum_{k=n+1}^{2n}\frac {1}{k}\geq \sum_{k=n+1}^{2n} \frac {1}{2n}=\frac 12$$  So pick $\epsilon=\frac 12\Rightarrow  \left\{a_n\right\}_{n=1}^{\infty}$ is not Cauchy and thus divergent.  My question is, are there any other slick and easy proofs for the above claim, and if so, what are they? This series at first surprised me, as it initially doesn't seem divergent.  Thanks in advance!


Prove that for every positive integer $n$, $1/1^2+1/2^2+1/3^2+\cdots+1/n^2\le2-1/n$

Base case: n=1. $1/1\le 2-1/1$. So the base case holds.  Let $n=k\ge1$ and assume   $$1/1^2+1/2^2+1/3^2+\cdots+1/k^2\le 2-1/k$$  We want to prove this for $k+1$, i.e.  $$(1/1^2+1/2^2+1/3^2+\cdots+1/k^2)+1/(k+1)^2\le 2-\frac{1}{k+1}$$  This is where I get stuck. Any help appreciated.


There are many general resource questions that ask questions such as "what is the best programming language?" or "How do I implement this commonly-confusing thing?", which get closed for being subjective or generalized.  While these are currently outside the scope of SE, many have generated .  Therefore, I suggest that instead of closing these questions, the best ones should be relocated to a new sister site like this:     assorted.stackoverflow.com (or any other prefix)   I've looked around and seen something like this suggested before, but what I found suggested things such as a compiled FAQ or separate site (which is similar, but then would be hard to search since all site questions would be merged into one long list).  Of course, I understand the implications of such a heady statement, and the effort that would be required to accomplish this must be immense.  However there are good reasons for this change:     This would provide a place to ask subjective questions, which means instead of closing questions against the community's will, misplaced questions can be migrated. This can discourage repetitious questions that continuously ask the same popular questions.  It certainly wouldn't get all of the duplicates, but it might help. This would encourage users to write new, useful questions that are inherently subjective,  but are still very helpful.   A number of technologies could accompany this that could make integration simpler:   Each site has the sub-site in the main toolbar listed between "chat" and "main/meta".  This allows for quick navigation between the sub-sites. The new sub-site could have its search results automatically included in the "main" portion of the site so that it can be seen by people posting their questions on the main page (to help avoid duplicates). Either a new rating system could be imposed which does not affect the user's rep (i.e. is local to the question only) so that the questions can be ordered by rating, or rating can be taken out altogether.  I don't recommend tying in the rating with the parent site because the sites may become indistinguishable. Allow for migration to the new sub-site.  Perhaps require less migration votes to move to this particular sub-site because A) it still pertains to the actual subject matter, and B) Migration would be more frequent to this sub-site.   Finally, if this would become a reality, Stack Exchange would likely require a change to their mission statement to include that there is a small subsection devoted to the most highly-valued subjective questions, or something along those lines.  Now, nothing ever gets done without first being discussed, so how does everybody feel about all of this?  NOTE TO DOWNVOTERS Thank you for your interest.  Downvoting does not mean that you dislike my post.  Do not downvote because the question happens to be a duplicate of a question that by all means, I would never have found without stumbling across it myself (yes, I took a good hard look before I asked this one).  Remember that downvoting is only meant to indicate a bad question or for feature requests, a poorly thought-out request.  I took a lot of time writing this request; because you do not agree with it is no cause for the (to quote another user) "Haterade".


Fellow like-minded people,  I'm writing my thesis in fake news detection on scrapped twitter data and facing an issue (among many others). Fake news consist of less than 10% of the total tweets or news content (during events), which means that there is a valid real-life class imbalance. I know there are models that respond well to such imbalances and I also have the choice of building my own training and validation set.  Question: Given the real life class imbalance, would my models benefit from keeping the huge class imbalance proportions in the data or should I build something more balanced? I understand what the accuracy paradox is, confusion matrix and such, but what is your say?


I've recently learned that many d20 games have their rules accessible for free under OGL in form of a System Reference Document. I'd been quite reluctant to d20, but since it's free, I've thought of giving it a try.  My question is: what do official books add compared to the free SRD, apart from nice illustrations? I mean, settings, hooks? Extra rules?


Which Linux-based OS would be best for my 32 bit PC?

My 32 bit PC has been running on Ubuntu 14.04, which is no longer supported. The subsequent Ubuntu releases are for 64 bit machines. I am therefore concerned to know about two things:  What exactly are the hazards of continuing with an unsupported OS like Ubuntu 14.04? If it is not advisable to continue with it, what other distributions can work for me and run my presently installed apps?


On the integral $\int_{0}^{1} \frac{\mathrm{d}x}{\sqrt{3x^4+2x^2+3}}$

I came across this integral $$\mathcal{J} = \int_{0}^{1} \frac{\mathrm{d}x}{\sqrt{3x^4+2x^2+3}}$$ According to W|A it equals $\frac{1}{2}$. However, I cannot find a way to crack it. It smells like a Beta integral , but I do not see any obvious subs. One could start by setting $u=x^2$ but there is no clear path after that. A promising way might be the following \begin{align*} \int_{0}^{1} \frac{\mathrm{d}x}{\sqrt{3x^4+2x^2+3}} &= \int_{0}^{1} \frac{\mathrm{d}x}{\sqrt{\left ( 3x^2 +2 \right ) x^2 +3}}\\   &=\int_{0}^{1}\frac{\mathrm{d}x}{\sqrt{3\left ( x^2+ \frac{1}{3}   \right )^2 + \frac{8}{3}}} \\   &= \cdots \end{align*} A clever trigonometric sub might clear things but I don't see something. On the other hand , I don't the theory of elliptic integrals is needed here nor complex analysis ( would be interesting to see a solution using contours, though ) So, any ideas how to evaluate it? P.S: Are there techniques available for these type of problems?


Prove:       $a|b \land b|a \iff a= \pm b$   So far I have $a|b \iff b=ka$ ($k$ is an integer), $b|a \iff a=mb$ ($m$ is an integer). Where do I go from here?    Step by step explanation please!


Alice and Bess are playing a game in which Alice thinks of a number in the set A = {1, 2, 3, 4, 5, 6} and Bess has to guess what it is. If she guesses correctly, she wins; if she guesses incorrectly, Alice increases or decreases her number by 1 (keeping it in the set A) before Bess’ next guess. What is the smallest number k such that Bess can guarantee to win within k guesses?  I think I have solved it by trial and error of sort and concluded that the minimum value of k=8; however I'm wondering if there is a way to solve algebraically.


How come Ubuntu 18.04 LTS has a 32bit iso installer?

As mentioned in the , Ubuntu 18.04 LTS will not have a 32 bit Desktop Image Installer. But in the  it has  32bit Desktop Images.  This is little off topic, but I'm confused.


Why getting 403 error in geoserver 2.10.2

I know this question asked many times (e.g.  and  ) but those all are not solving my issue.  I am working on WFS_T .Below is my code      var transactWFS_polygon = function (p, f) {     switch (p) {         case 'insert':             node = formatWFS.writeTransaction([f], null, null, formatGML_polygon);             break;         case 'update':             node = formatWFS.writeTransaction(null, [f], null, formatGML_polygon);             break;         case 'delete':             node = formatWFS.writeTransaction(null, null, [f], formatGML_polygon);             break;     }     s = new XMLSerializer();     str = s.serializeToString(node);     alert(str);     $.ajax('http://xxx:8076/geoserver/xxxx/ows', {         type: 'POST',         dataType: 'xml',         processData: false,         contentType: 'text/xml',         data: str     }).done(); }   I am getting 403 forbidden error in Options.How to enable option in geoserver which is running in localhost.


Are $_SESSION variables stored on the client or the server?


I'm getting this super weird error on a normal beamer presentation with just a simple line of math and I cannot figure out how to fix it.  The error I'm getting is: Undefined control sequence. \beamer@doifinframe ... Voor alle $0 \leq t_1 \lt                                                    t_2 \lt \cdots \lt t_n \lt... l.178 \end{frame}  Here's my code:  \documentclass{beamer}  \mode<presentation> {  \usetheme{CambridgeUS}   \usecolortheme{rose}   \usefonttheme{structurebold}  \setbeamertemplate{navigation symbols}{}  \setbeamertemplate{caption}[numbered] }    \usepackage[english,dutch]{babel}  \usepackage[utf8x]{inputenc}  \usepackage{amsmath,amssymb,amsthm,mathtools, array}  \usepackage{graphicx}  \usepackage{tikz}  \usetikzlibrary{automata,positioning} \begin{document} \begin{frame} Dit proces voldoet aan de Markov-eigenschap, ofwel het 'geheugenloos' zijn.\\ \begin{block}{Markov eigenschap} Voor alle $0 \leq t_1 \lt t_2 \lt \cdots \lt t_n \lt t_{n+1}$ \begin{align*}    P\big(X(t_{n+1})=j|X(t_{n})=i, X(t_{n-1})=i_{n-1}, \cdots, X(t_1)=i_1\big)= P\big(X(t_{n+1})=j|X(t_{n})=i\big). \end{align*} \end{block} \end{frame} \end{document}


If Thor's hammer is so heavy, why does it not crush the table it is on?

After watching the latest  , I couldn't help but wonder, if Thor's hammer is so heavy that the Avengers can't lift it, why does it not crush the coffee table it's placed on?


Add number new posts (post_status = pending) to administration menu

What I have: A custom post type. A front end posting form which creates new posts with post_status = pending until they are manually reviewed and status changed to published.  What I need: While I can go to the listing of posts and see if there are any with "Pending" to authorize; what I want is to add a round icon with a number inside just like what WordPress does when there are new comments. I can write the code to extract the number of pending posts but I have no idea how to insert it in the admin menu.  This is the code created by wp when a new comment is added:  1   A screenshot which shows one new comment, i need the same at Items.  I have been looking for a solution to this for a while now and cannot find it anywhere; my next stop if no one can answer me here is to take apart the WP core and see how they do it there.


Nested Transaction cannot find save point

I'm trying to use a Nested Transaction on SQL Server.  Here is my test table  CREATE TABLE [dbo].[Table2] (     [Id] INT NOT NULL );   And my query  BEGIN TRANSACTION masterTransaction     BEGIN TRANSACTION test         GO             INSERT INTO [dbo].[Table2] VALUES (200)                      INSERT INTO [dbo].[Table2] VALUES (201)     COMMIT TRANSACTION test      BEGIN TRANSACTION test2         GO             INSERT INTO [dbo].[Table2] VALUES (202)             INSERT INTO [dbo].[Table2] VALUES (203)     COMMIT TRANSACTION test2       -- Everything before that must be commited     BEGIN TRANSACTION test3         GO             INSERT INTO [dbo].[Table2] VALUES (204)             INSERT INTO [dbo].[Table2] VALUES (205)     ROLLBACK TRANSACTION test3  COMMIT TRANSACTION masterTransaction   My goal it's to have a main transaction and micro transactions inside that. If the user ask to abort, my masterTransaction will rollback all data inside. But the user have the option to abort and discard only the last transaction.   My error: Test3 can not be rolled back. No save or transaction point was found under this name.  What am I doing wrong?


How to break out of infinite while loop?

Here is the code giving me trouble:      String more = "yes";     Scanner in = new Scanner(System.in);      while (more != "no") {             //do stuff                       System.out.println("Want to add more? (yes or no)");             more = in.nextLine();     }   So long as the user does not enter "no," the loop should continue. The issue is that when I enter no, it still doesn't stop.


Can I use a game controller to play Diablo 3?

Can I use a game controller with Diablo 3? Since there are not that many keys that are actually used, can you map a controller to play? Or would this require some type of mod?


Why are nutrients from food absorbed more efficiently?

It seems to be common knowledge that micronutrients such as vitamins are more easily absorbed by your body when in your diet versus supplements such as pills. I am wondering what the reasons for this are.


What is the definition of convergence? The reason why I'm asking this question is to understand why $\frac1x$ diverges and $\frac1{x^2}$ converges.  The $\lim_{x\to\infty}\frac1x=0$ as does $\lim_{x\to\infty}\frac1{x^2}$. So why is one convergent and one divergent?


Updating from 9.04 to the newest version

I have recently acquired a laptop that runs ubuntu 9.04. I personally have never heard of or seen this OS and am pretty confused by it, after spending all day trying to log into it, i finally go in but now i cant seem to update it to the newest version. Please help this noob update his new laptop.


Display bounty expire time in the bounty tab

When I go to the question details page it shows the expire time form (picture one)... I am requesting it should also show in the bounty tab like (picture two). I think it will be helpful for question readers... Picture One  Picture Two


Below is my code n = 4 m = 4 figures = [1,2,2]  def almostTetris(n, m, figures):     grid = [[0] * m] * n      def shape1(count):         for i in range(n):             for j in range(m):                 if grid[i][j] == 0:                     print(grid[i][j])                     print(grid[1][0])                     print(grid[2][0])                     print(grid[3][0])                     grid[i][j] = count                     print(grid[i][j])                     print(grid[1][0])                     print(grid[2][0])                     print(grid[3][0])                     return      def shape2(count):         for i in range(n):             for j in range(m - 2):                 if grid[i][j] == 0 and grid[i][j + 1] == 0 and grid[i][j + 2] == 0:                     grid[i][j] = grid[i][j + 1] = grid[i][j + 2] = count                     return      for i in range(len(figures)):         if figures[i] == 1:             shape1(i + 1)         elif figures[i] == 2:             shape2(i + 1)          return grid  print(almostTetris(n, m, figures))  and this is what I got printed out: 0 0 0 0 1 1 1 1 [[1, 2, 2, 2], [1, 2, 2, 2], [1, 2, 2, 2], [1, 2, 2, 2]]  My question is how does grid[i][j] = count convert all numbers in the first column to 1 (the value of count)? I thought that because i and j are all 0, only the first element would change to 1.


I have MS Office 2010 64 bit SP2 which I would like to install on Ubuntu 14.04, how do I go about doing that?

I have MS Office 2010 64 bit SP2 (from my university) which I would like to install on Ubuntu 14.04, how do I go about doing that?  I have Wine 1.6 (not sure if there is a specific -bit version I need) as well as PlayOnLinux  Regards


I'm trying to decrement a number and then print it, all outsourced to two methods.   Why does the method decrement(number) return 10 and not 9?  public static void main(String[] args) {     int a = 10;     printB(a); }  private static void printB(int number){     decrement(number);     System.out.println(number); }  private static int decrement(int b){     b -= 1;     return b; }


I've been using Ubuntu 18.04 for about 3 days now and so far it runs smoothly. I now need to install a VPN for my work, and I got the following files from the sysadmin:   ca.crt VPNConfig.ovpn   I first ran sudo apt install openvpn. After that I wanted to install it using the GUI. So I went to the settings app and under "Network" I tried adding a new VPN. It gives the option to "Import from a file". So I selected the VPNConfig.ovpn file, but it says it can't import the file. I also tried importing the ca.crt file and importing the zip in which the two files came, but that didn't work either.   Could anybody help me out as to how I can make this VPN work?


Determinant of a non-square matrix tell you if it is non-linear?

Suppose a matrix $A = $\begin{pmatrix} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1\\ 0 & 0 & 0 \end{pmatrix}  How can we argue that the vectors are independent if we can't take the determinant?


Let f be a non-decreasing, integrable function defined on [0, 1]. Show that $${\left( \int_{0}^{1} f(x)\right)}^2 \le 2\int_{0}^{1} x{(f(x))}^2$$  I tried using by parts , but it is of no help,  ${\left( \int_{0}^{1} f(x)\right)}^2 \le\int_{0}^{1} {(f(x))}^2$  Any hints?


Why can this product of rectangular matrices not be the identity matrix?

Let $m > n$ be positive integers. Show that there do not exist matrices $A ∈ R_{m×n}$ and $B ∈ R_{n×m}$ such that $AB = I_m$, where $I_m$ is the $m × m$ identity matrix  If someone could explain it with an example, it will be appreciable.


How do I fix a null pointer exception when adding to an array list?

I am trying to add to an array list using a passed in object, but I keep getting a nullpointer exception when executing the line "order.add(shape)" below.  public void addSquare(Square shape) {     System.out.println(shape.toString());      order.add(shape); }   How do I fix the exception? Do I need to initiate shape somewhere?


I have a bunch of materials I created using Material Library VX. Now I am trying to apply them using Python. I tried the following but it doesn't seem to work with Material Library VX. object = bpy.data.objects[objectName] mat = bpy.data.materials.get("Metal")      if object.data.materials:         object.data.materials[0] = mat     else:         object.data.materials.append(mat)  I noticed this bpy.context.scene.matlib.apply within the plugin.  However, I can't seem to get that to work either. Any idea on how you can apply a material to a specific object name using Material VX?


How do I change background color of one Excel 2013 based on the value in another cell?

I am wanting to change the background color of a cell when it reaches the value of another cell. i.e. when the value in R10 = the value in H10+10 I would like the background to change color.I also want the cells in those columns to be independent of each other i.e. when cell R5 = H5+10 I would like R5 to change color but not any of the other cells in column R


NullPointerException when i use my custom view

Hello ive created a custom view who extends relativeLayout. an i want to make it customizable.  public class Niveauview extends RelativeLayout {  public TextView musiqueView = new TextView(getContext()), artisteView = new TextView(getContext()); public ImageView coverView = new ImageView(getContext()), carapaceView = new ImageView(getContext());  public Niveauview(Context context){     super(context); }  public void init(int cover, int musique,int artiste){      coverView = (ImageView)findViewById(R.id.cover);     coverView.setImageResource(cover);      musiqueView = (TextView)findViewById(R.id.musique);     musiqueView.setText(musique);       artisteView = (TextView)findViewById(R.id.artiste);     artisteView.setText(artiste);      carapaceView = (ImageView) findViewById(R.id.carapace);     carapaceView.setImageResource(R.drawable.carapacevide); }}   theres is my main activity  public class MainActivity extends Activity {  @Override public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     initNiveauView();  }  private void initNiveauView(){     Niveauview luv_grow_view = new Niveauview(getApplicationContext());     luv_grow_view = (Niveauview)findViewById(R.id.luv_growup_view);     luv_grow_view.init(R.drawable.luv_groweup,R.string.GrowUp,R.string.LilUziVert);  }}   and my xml files  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" tools:context="fr.freshkamekentrainement.skrt.MainActivity"> <ImageView     android:contentDescription="@string/header_content_description"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:src="@drawable/header"     android:id="@+id/header"     android:scaleType="fitStart"     /> <fr.freshkamekentrainement.skrt.view.NiveauView     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:id="@+id/luv_growup_view"/>     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/colorBackground" android:layout_margin="@dimen/niveau_view_elevation"> <ImageView     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:id="@+id/cover"/> <TextView     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:id="@+id/musique"/> <TextView     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:id="@+id/artiste"/> <ImageView     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:id="@+id/carapace"/>     it gets an NullPointerException but i don't know why  I set a value to luv_grow_view but it say that is a null object reference :/  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void fr.freshkamekentrainement.skrt.view.Niveauview.init(int, int, int)' on a null object reference                   at fr.freshkamekentrainement.skrt.MainActivity.initNiveauView(MainActivity.java:24)                   at fr.freshkamekentrainement.skrt.MainActivity.onCreate(MainActivity.java:17)


In early an early episode of season 6 of Game of Thrones, "Home", through his magic Greensight ability, Bran sees a vision of Winterfell in the past. , then named Wylis (Walder in the books) that could speak. Do the books, or series, explain any way why this changed, why Wylis became Hodor and stopped speaking? Hodor.


Why are daily rebalanced inverse/leveraged ETFs bad for long term investing?

I was reading this article about S&P 500 short ETFs:     and I was confused when it said: "investors should note that such products are suitable only for short-term traders as these are rebalanced on a daily basis". What is ETF rebalancing exactly? and why does it make these ETFs unsuitable for long-term short trading?


Who is Alex Jones referring to when he says: "I waited but he never came"?

While captured in the "wooden" prison in Prisoners, Alex Jones says: "I waited but he never came". Who is he referring to?


Are Monks proficient with unarmed strikes by default?

I can't find anything in the PHB that actually says that Monks are proficient with unarmed strikes by default. Their Proficiencies list just says simple weapons and shortswords. Their Martial Arts ability says it gives them "mastery of combat styles that use unarmed strike..." but not actually proficiency.   Am I missing something, or is it actually correct that Monks don't have their proficiency bonus with unarmed strike unless they get the proficiency from a feat or something?


Prove $\lim_{x\to0}\sqrt{4-x}=2$ using the precise definition of limits. (Epsilon-Delta)

Prove $$\lim_{x\to0}\sqrt{4-x}=2$$ using the precise definition of limits. (Epsilon-Delta)  I am not sure how to link $0<\left |x  \right |<\delta$ with $\left |\sqrt{4-x}-2\right |<\epsilon$ .  EDIT (Trying it out now)  I worked till here, then I basically got stuck.


I have a for loop that resizes and appends a number to an dynamically sized array. However the array only repeats a couple times then the program ends. #include<stdio.h> #include<stdlib.h> int main() { int *primes = (int*)malloc(sizeof(int)); for (int i = 0; i < 15000; i++) {     primes[i] = i;     primes = (int*)realloc(primes, (i+2)*sizeof(int)); }  for (int i = 0; i < sizeof(primes)/sizeof(int); i++) {     printf("%i, ", primes[i]); }  free(primes); return 0; }  This prints 0, 1, then exits Why does it not continue to 15000?


Animate a tube cylinder with "build" modifier - problem with round shape

I'm trying to recreate this animation:  I've got 2 tubes one inside the other (bezier curves + bevel attribute to make them thick). Since I need to animate the internal tube (the colored one), I'm using the build modifier. The problem is that the build modifier create the shape in a strange way similar to "wall brick building" (check the screenshot), while I need the tube to animate as it is made by water (so the internal tube grow parallel to the circumference), so smooth filling of the tube. Any idea/suggestion on how to proceed?


Fundamental Requirements For an Entry Level QA Engineer

I'm in a dilemma I'm sure most of you were at some point at the beginning of your careers. I'm about to start my Junior year in college this fall and I major in Information Systems. I currently work at a hotel doing administrative work and have been lucky to make contacts in the software industry.   The people I met have encouraged me to get my feet "wet" in QA before attempting to land a developer/programmer role at their company. My college professors have recommended I do the same.  I feel misled.   As I search job sites for QA Engineers, the requirements present a host of technologies you must be familiar with, none of which I have even heard of, on top of 3-5 years of experience. Software Quality Assurance does not seem like an entry-level role at all - it seems it is its own monster.   With that said, I can program intermediately in JavaSE and Oracle's SQL, have experience with PHP, XML, and MySQL for web development, and have very strong HTML and CSS skills, albeit all skills were obtained through school projects.  None of the above is in the list of requirements for an SQA engineer at any level on the job sites I have found. Why have my professors and peers in the software industry recommended I pursue this? It seems clear I am a much better fit for Web Development.   My Question:   If anyone out there did start in SQA, without the familiarity of the plethora of software suites to do debugging, what were the fundamental requirements you did have to have to get the job?


I currently have 2 R9 280's and according to blender all GPU's with the new OpenGL and GCN 1ste gen are supported. But in blender 2.79 and 2.82 I can't seem to use it in any way. I know AMD is not that great but I am saving up for a 2060 and the dual R9 280's should work for now. can someone please help me to fix this. and command line codes I have to run or scripts I can use.


How to restrict overexposed images while I am using canon t1i and 18-55mm lens? Reception desk light is overexposed, you can see.


When should I use "requirements of safety" or safety requirements?

I am confused, when we should use "OF" and when we should not. Example:  production guidelines or guidelines of production? safety requirements or requirements of safety?  Why do we use "angle of attack" and not "attack angle"?


I went to install Rapid SVN from the Ubuntu Software Center today as I have done before - it wasn't there.  I can install this using the command:  sudo apt-get install rapidsvn  Why can I apt-get install rapidsvn but not see it within the Ubuntu Software Center GUI?


Can I delete my own Question or Answer that already has comments?

I know you cannot delete your question if it already has answer(s) with votes. But can you delete your question or answer if someone else has already added comments on it?


I have a scene that has hundreds of modifiers in it. When I try to render my scene, it takes FOREVER, so long that I cannot even render the scene! Help me please! How can I apply all of these modifiers all at once? I don't want to have to manually click "Apply" hundreds of times!


Is this pass by reference or pass by value

so i was given this question in class.   consider the following method declaration:         public static int method(int[] x)  Is the int[] x parameter passed by reference or by value?   To my understanding only primitives can be passed by value. This therefore is passed by reference? I read from here ()  that 'java can only pass by value' and that the reference pointing to the object array x is being passed as a value.  so what is the answer? Is the int[] x parameter passed by reference or by value?  Can someone also give me an example of a pass by reference since java can't do this?   many thanks


Can we move "Start a bounty" to a more intuitive location?

Can we please move the  "Start a bounty" link to be in the same location as all of the other action buttons? It makes no sense to me for this to be buried after the comments - It's an action on the Question. It can be very difficult to locate, especially when your question gets .  I don't think this should be that difficult to implement - it's just moving the location of a design element. Can we please get this button moved?


A monoid where square of all elements are 1 is abelian

The following problem gives me a very hard time:     Let $M$ be a monoid with $a^2 = 1$ for $a \in M$. Show that $M$ is abelian.   It looks so simple as a monoid only needs to be associative and must have a neutral element (here $1$). So there are not much things to try. However, after some hours of trying I have to admit that I don't know what to try next.  Maybe somebody of you can give me a hint.  Kind regards!


How do I get the local machine name in C#?


I am trying to install ruby virtual machine by running commands from terminal.While installing rails some error occurs and terminal got stuck up.What should be the action in the specified case.I tried ctrl+esc, esc, ../ etc like command prompt from windows.But it doesn't work.What is the proper way to end the process without closing the terminal?


Why not add something to both sides of a purported identity to prove it?

A section in my precalculus book is devoted to establishing (=proving) trigonometric identities, and a typical problem in the book presents a purported identity and asks students to establish it. The book recommends this method for doing so: Consider the more complicated-looking side of the purported identity. Use rules of algebra and known trigonometric identities to manipulate that side until it matches the other side. (Sometimes you'll need to manipulate both sides until they match one another.)  The book then has this warning:     Be careful not to handle identities to be established as if they were equations. You cannot establish an identity by such methods as adding the same expression to each side and obtaining a true statement. This practice is not allowed, because the original statement is precisely the one that you are trying to establish. You do not know until it has been established that it is, in fact, true.   Huh? I mean, I understand that you need to be careful. I understand that you can't manipulate your purported identity thus:$$\{\textrm{purported identity}\}\Rightarrow\{\textrm{something else}\}$$I understand that every implication must be instead like this:$$\{\textrm{purported identity}\}\Leftarrow\{\textrm{something else}\}$$And therefore, for example, one cannot raise both sides of the purported identity to an even power, or multiply both sides by $0$. Fine. But what's wrong with "adding the same expression to each side and obtaining a true statement"??


How can I use firefox to take full page screenshots from command line?

I need to take a screenshot of a whole web page.  I have seen  where many ways to take a screenshot are proposed but I need to use firefox for a better effect.


Searching for questions that have ONLY a given tag (i.e. add a range operator for tags)

I was doing a little cleanup in a tag recently, and was wanting to find any questions with only that tag, since that often means they weren't tagged very well and are in need of a few more.  Unfortunately, there was no good way in the advanced search to do this. You can exclude a specific tag, but there doesn't appear to be a way to exclude all but one (or a subset). Also, tags can't be quantified with a range operator like, for example, answers can (i.e. answers:3 for all questions with 3 or more answers).  Is there a way to do this with the current search that I've overlooked? If not, could a tags:N search option be added to narrow down the search based on the number of tags a question has?


Show that $\Sigma_{j=1}^{n} \dfrac{1}{j(j+1)} = \dfrac{n}{n+1}$  I am  having trouble trying to show this since this series doesnt seem to represent any arithmetic or geometric form of common difference.


In what order should I watch the Ghost in the Shell series?

The Ghost in the Shell series is comprised of several movies and animated TV series.  TV series:        Movies:             For someone completely new to the series, what order should these be watched in? (Are the movies even important to the animated series?)


Prove that $a/b+b/c+c/a \geq a+b+c$ if $abc=1$

I am trying to prove the inequality,   $$\frac{a}{b} + \frac{b}{c} + \frac{c}{a} \geq a+b+c$$  if $a, b, c$ are positive reals and $abc=1$  I have been able to tackle a special case using the AM-GM inequality. Dividing the RHS by $\sqrt[3]{abc}$ and multiplying by $3$ we get the equivalent inequality:  $$3\left(\frac{a}{b} + \frac{b}{c} + \frac{c}{a}\right) \geq 3\sqrt[3]{\frac{a^2}{bc}}+3\sqrt[3]{\frac{b^2}{ac}}+3\sqrt[3]{\frac{c^2}{ab}} \tag1$$  If we assume that $$\frac{a}{b} + \frac{b}{c} + \frac{c}{a} \geq \frac{b}{a} + \frac{c}{b} + \frac{a}{c}\tag2$$  we can reduce $(1)$ to:  $$\left(\sum_{cyc}\frac{a}{b}+\frac{a}{c}+1\right)\geq 3\sqrt[3]{\frac{a^2}{bc}}+3\sqrt[3]{\frac{b^2}{ac}}+3\sqrt[3]{\frac{c^2}{ab}}$$  which is obtained by using $(2)$ and applying the AM-GM inequality once. The last inequality follows from the AM-GM inequality.   I am having trouble with the assumption $(2)$. Is there any way to adapt the method I have described above to prove the inequality without using $(2)$? If possible please include any motivation that led to your solution.


Find all $f:\mathbb R\to\mathbb R$ such that $\forall x,y\in\mathbb R$ the given equality holds: $xf(y)+yf(x)=(x+y)f(x)f(y)$.

Find all $f:\mathbb R\to \mathbb R$ such that $\forall x,y\in\mathbb R$ the given equality holds: $$xf(y)+yf(x)=(x+y)f(x)f(y)$$   My try: whenever $y=0$, we have $$x\cdot f(0)\cdot(1-f(x))=0$$ So the solutions can be either generated by: $$f(x)=\begin{cases}c & c\in\mathbb R & x=0\\ 1 & x\neq 0\end{cases}$$ where $c$ generate an infinite amount of solutions, or it can be any function satisfying $f(0)=0$. However, I can't seem to find a way to check such a solution on the initial equation (we have to check it since we've simply eliminated the impossible solutions and we've only found that the solutions can be somehow generated using the way I've shown). Note that this generates the trivial solutions $f(x)=0$ and $f(x)=1$ as well.  Is my reasoning correct? If so, how can I check whether all the generated functions satisfy the initial equation?  Off-topic, but do $f^2(x)$ and $f(x)^2$ denote the same concept? My teacher uses the former while my book uses the latter (for squaring $f(x)$). Which one is correct, or are both of them correct?


New 2.9 Feature: Correct Face Attribute (checkbox) not available in Options Drop-down

Now that I'm using Blender 2.9, I've been excited about using the Correct Face Attributes checkbox, which will allow me to resize my mesh and have the texture naturally extend (rather than be stretched). However, when I click on the Options drop-down, I see only the normal Transform checkboxes (Origins, Locations, Parents). But no other options such as when I'm seeing in all these YT vids where people illustrate it. Is there some new addon that I must activate to add this functionality? Thanks.


Programmatically access CPU fan on a laptop? (Windows)

Is there a Windows standard way to do things such as "start fan", "decrease speed" or the like, from C/C++?  I have a suspicion it might be ACPI, but I am a frail mortal and cannot read that kind of documentation.  Edit: e.g. Windows 7 lets you select in your power plan options such as "passive cooling" (only when things get hot?) vs. "active cooling" (keep the CPU proactively cool?). It seems the OS does have a way to control the fan generically.


Passport made strange scan alert sound when checking out of the country

Earlier this year I was in Japan and Korea. Now I'm back in my home country. However, when I was in Korea the "scan" machine before going to luggage inspection, right before accessing the boarding gates made a weird "alert" sound. It has happened at least twice already, but both times the officer just handed me back my passport and didn't ask me anything. They just made sure I looked the same as in the photo.  When I was checking out of Japan, before going to the boarding gates, when the officers scanned my passport, they all looked at each other confused but never looked at me or asked any question.  I'm wondering if there's something wrong with my passport and what it could it? I'm a little concerned even though I've never been asked anything whenever this happens.


How to make subquestions in Google Forms?

I want to make form with different length dependent on some previous responses.   For example:   Q1: Do you like cats? Yes/No Q2 (Q1=Yes): Which kind of cat do you like most? Q2 (Q1=No): Why do you dislike cats?   Or make some questions visible only in some conditions (Yes to some previous question).  How can this be done (if it is possible) in Google Forms?


All Stack Exchange sites in a small window causing display problems?

I am using a remote desktop to my Windows PC which can use Visual Studio (Darn Ubuntu and no compatibilities with MonoDevelop/Visual Studio form designer) and I came across the problem of the header colors and content not filling out the content of whole site, but only up to the size of my explorer window.   My window in the remote desktop is 800x600 and is smallest I can use while not taking too much space of my original screen. It's not just the screen size either; it's the width of the browser window, so users of any size screen can encounter this issue.  This happens in all major browsers.  Example (as you can see the right top corner; it appears in every SE site):       This is the another problem   while browsing this network in small screen.


Component systems: No inheritance hierarchy at all, or a basic one?

(I asked a similar question, but it had more questions inside it and I feel it wasn't clear enough, so I'm opening a new one).  Until recently I implemented all my games using an inheritance hierarchy. Those were simple games.  For example:            Entity           /    \       Movable  Static       /  \        /  \     Orc  Mage   Tree  Wall   This worked for simple games.  However recently I read about 'entity component systems'. Using this approach, a class doesn't inherit from another class in order to receive functionality. Instead it is composed with it, which allows for more flexible designs.  My question is this:  I know that each component is a class (derived from a common base class).  However, there is one thing I don't understand: In the 'component system' approach, is there one class that all entities are instances of - and the only difference between entities is the components they contain?  For example: There is a class Entity. All entities in the game are instances of this class.  The only differences between them is that they are composed with different Component objects.  For example:  Component aiComponent = new AIComponent(); Component movementComponent = new MovementComponent(); Component physicsComponent = new PhysicsComponent(); Component rangedAttackComponent = new RangedAttackComponent();  Entity orc = new Entity(); orc.addComponent(aiComponent); orc.addComponent(movementComponent); orc.addComponent(physicsComponent);  Entity shootingCastle = new Entity(); orc.addComponent(aiComponent); orc.addComponent(rangedAttackComponent); orc.addComponent(physicsComponent);   As you can see, both orc and shootingCastle are instances of the Entity class. But they are composed with different components.  Is this how 'entity component systems' are supposed to be? No inheritance hierarchy at all? Or is there still a basic inheritance hierarchy, but most of the logic is inside components?


Prove that the following polynomial has at least one zero in the interval $(0,1)$ by using Rolle's theorem

Suppose that:  $$\frac{a_0}{n+1}+\frac{a_1}{n}+\cdots+a_n=0$$  Prove that the polynomial: $a_ox^{n}+a_1x^{n-1}+\cdots+a_n$  has at least one zero in the interval $(0,1)$ using Rolle's theorem.


How to enable assembly bind failure logging (Fusion) in .NET

How do I enable assembly bind failure logging (Fusion) in .NET?


How to list open ports and application using them in windows?

I have trouble identifying the application using port 25 on my Windows-10 system. Any useful hints to list used ports and using applications without 3rd party applications ?


Redirecting non existing post to homepage; is that good for SEO?

I am checking my website out on Google Webmasters and I am seeing an astonishing 5000 links that could not be found by Google's Crawlers. That's normal, because my website is built in a manner that users can drop their own things, which also lead to 404 pages. Not a problem at all if I can find a workaround of course...  So my question is: what if I made a function or a mod rewrite that will check if the link exists (a post for example) and if not, it will redirect it to the home page. Is this good for SEO? Will Google see this as 'link found'? How do I have to look at this problem?


can't understand this kind of java reference

i  have questions in java ,as the below code "name" is a reference and "name" value changed during thread running, my question is why "name" doesn't print "hello,oscar" the  changed value?  public class MakeThread implements Runnable{     String name;     public  MakeThread(String name) {      this.name=name;     }     @Override     public void run() {     try {         System.out.println("i am going to sleep 10 sec");         TimeUnit.SECONDS.sleep(10);         System.out.println(Thread.currentThread().getName()+"name is:"+name);     } catch (InterruptedException e) {                   e.printStackTrace();     }        } }   public class TestRefer {         public static void main(String[] args) {     String name=new String("hello,world");     Runnable runnable=new MakeThread(name);      Thread thread2=new Thread(runnable);     thread2.start();     name= new String("hello, oscar");        System.out.println("TestRefer name " +name);     }   }   print results is :  TestRefer name:hello, oscar i am going to sleep 10 sec Thread-0 name is:hello,world


I'm a bit new to desktop programming, and I currently prefer to work with scripting languages (open source and all). When I polish a tool off I then want to release it for installation via apt-get but I have not found any guides or information whatsoever on how to release software on apt-get.  I understand that distributing the files to install can be done via a personal launchpad ppa, with the overhead of manually adding my ppa via apt-add-repository (Though I have not experienced this step, I just presume my understand is sound); Though I'm more interested in the next steps. Do I need to fill an application to get onto apt-get's default lists or what?  Appreciate your help <3


How to show that any subgroup of a cyclic group must be cyclic

If $G$ is a cyclic group that is generated by $g\in G$ so that $G= <g>$, how would I show that for any subgroup $H \subseteq G$ then $H$ must be cyclic?   I've already attempted to start this proof:  Let $G$ be a cyclic group and $H$ any subgroup of $G$. I claim that for some $m \in \mathbb{Z}$ we have $H=<g^m>$.  Case 1: If $H=\left \{ 1 \right \}$ then $H=<g^0>$ and so H is cyclic.  Case 2: If $H=G$ then $H=G=<g^1>$ and so H is cyclic,  Case 3: $H$ is a proper, non trivial subgroup. Then $\exists \ k\in H $ such that $k\neq 1 $ and since $k\in G \implies k=g^m$ for some $m \in Z$ and so $g^m \in H$. It then follows by closure under the binary operation on $H$ that $\forall  \ n\in \mathbb{Z}, (g^m)^n \in H \implies <g^m> \subseteq H$  My question is how do I show that $H \subseteq <g^m>$ in order to show that they are equal?


404 not found,when try to install anything

When I try to run apt-get update it shows this, root@karl:~# apt-get update Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease                  Ign:2 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu focal InRelease Hit:3 http://archive.ubuntu.com/ubuntu focal-proposed InRelease                 Hit:4 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu focal InRelease      Ign:5 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu focal InRelease Hit:6 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal InRelease Err:7 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu focal Release   404  Not Found [IP: 2001:67c:1560:8008::15 80] Err:8 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu focal Release   404  Not Found [IP: 2001:67c:1560:8008::15 80] Reading package lists... Done W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-focal.list:2 and /etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-focal.list:3 E: The repository 'http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-focal.list:2 and /etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-focal.list:3 W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-focal.list:2 and /etc/apt/sources.list.d/ubuntu-wine-ubuntu-ppa-focal.list:3  And I also can't install anything. This is my Ubuntu version No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 20.04.1 LTS Release:    20.04 Codename:   focal


I have a table with statistic of games which has next rows (I only write about rows that has interest in this context):  id        BIGINT PRIMARY KEY date      TIMESTAMP WITH TIME ZONE status    VARCHAR  -- 'WON' or 'LOSE' player_id BIGINT   -- FOREIGN KEY   I need to write a query that select number of consecutive win games (status = 'WON') by some user (user_id = %some id%).


How much gigabytes do I need to dedicate for the OS?

So I think I had problems with Ubuntu in the past installations I've tried, and I had only dedicated the OS a small amount of 10 gigabytes and the swap 8. Now that OS crashed for some reason after installing the "21 Updates" In the software center, I was thinking maybe there isn't enough space for the OS to handle.  so I decided I would change distros from Ubuntu and try out a larger size. I only have around 20 gigabytes to play (approximately 18.9) with though so how much can I dedicate for a comfortable gaming experience? (I want to use it as my day to day OS as well)  I'll try out the answers and if anything goes crashing again I'll ask them here. Thanks in advance!


Does nature have more than four dimensions?

Does nature have more than four spacetime dimensions?  If so, what is their size?  Are dimensions a fundamental property of the universe or an emergent result of other physical laws?  Can we experimentally observe evidence of higher spatial dimensions?


I'm trying to run htop on Ubuntu 16.04.1 LTS. Until the end of last week the command was working fine, and I haven't made any major changes to the system since then. Now, when I attempt to run htop, the screen goes black and I'm unable to exit using Ctrl-C, Ctrl-Z, q, or any of the standard escape characters. I'm forced to restart the terminal.  top still works just fine.  EDIT2: I ran  strace -o strace.log -f xterm -e htop   Examination of the output reveals that the htop reads all the existing processes until it gets to the last one, where it does      41049 read(5, "72165 (python) D 1 72113 72069 0"..., 2048) = 190     41049 read(5, "", 1858)                 = 0     41049 close(5)                          = 0     41049 stat("/proc/72113/task/72165", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0     41049 open("/proc/72113/task/72165/cmdline", O_RDONLY) = 5     41049 read(5,  <unfinished ...>   and then it never finishes reading the file.  Running ps -ef also causes the terminal to hang. It prints the names of all the processes before 72113, and then it freezes at 72113 and can't be escaped without closing the terminal.  If I type      sudo less /proc/72113/task/72165/cmdline   the terminal hangs. I have also tried       sudo kill -9 72113   which runs but does nothing; htop and ps -ef still freeze when run.  I'm puzzled about what's going on here.


How to interpret coefficients from a polynomial model fit?

I'm trying to create a second order polynomial fit to some data I have. Let's say I plot this fit with ggplot():  ggplot(data, aes(foo, bar)) + geom_point() +         geom_smooth(method="lm", formula=y~poly(x, 2))   I get:    So, a second order fit works quite well. I calculate it with R:  summary(lm(data$bar ~ poly(data$foo, 2)))   And I get:  lm(formula = data$bar ~ poly(data$foo, 2)) # ... # Coefficients: #                     Estimate Std. Error t value Pr(>|t|)     # (Intercept)         3.268162   0.008282 394.623   <2e-16 *** # poly(data$foo, 2)1 -0.122391   0.096225  -1.272    0.206 # poly(data$foo, 2)2  1.575391   0.096225  16.372   <2e-16 *** # ....   Now, I would assume the formula for my fit is:  $$ \text{bar} = 3.268 - 0.122 \cdot \text{foo} + 1.575 \cdot \text{foo}^2 $$  But that just gives me the wrong values. For example, with $\text{foo}$ being 3 I would expect $\text{bar}$ to become something around 3.15. However, inserting into above formula I get:    $$ \text{bar} = 3.268 - 0.122 \cdot 3 + 1.575 \cdot 3^2 = 17.077 $$  What gives? Am I incorrectly interpreting the coefficients of the model?


When I run sudo apt-get update get this output:   sudo apt-get update E: Type '<!DOCTYPE' is not known on line 1 in source list /etc/apt/sources.list.d/playonlinux.list E: The list of sources could not be read.   Also Ubuntu software Center is not opening.


How did people in the wizarding world know what Harry looked like?

In Harry Potter, Harry had no idea about the wizarding world until Hagrid came to get him. Since he was sent to the Dursleys as a baby, how do the other witches and wizards know what he looks like when he shows up at Hogwarts, and the Leaky Cauldron? It couldn't have been his scar, because in the Leaky Cauldron, everything was dark, and Harry had his bangs over the scar. In fact, Harry always had to lift up his bangs to let people see it.  "He pointed at Harry's forehead. Harry pulled back his bangs to show the lightning scar." (Harry Potter and the Philosopher's Stone -- chapter 6, page 99)  So how did the wizarding world know what Harry looked like before he knew about wizards?


Stopping to eat is tedious, is there any way to automate the process?

While I've managed to optimize and automate almost everything, constantly having to stop and eat is annoying (I run around a lot, so I get hungry quickly). Is there any device or tool that will keep me well fed at all times without having to stop and feed?


Circuit construction for Hamiltonian simulation

I would like to know how to design a quantum circuit that given a Hermitian matrix $\hat{H}$ and time $t$, maps $|\psi\rangle$ to $e^{i\hat{H}t} |\psi\rangle$. Thank you for your answer.


I would like to generate computer controlled touches on a capacitive touch screen (e.g. iphone) using the following setup: I have a conductive patch (size of finger) that I place on the touchscreen which is connected to a wire. When I touch the other end of the wire, it generates a touch at the location of the capacitive patch. However, also when I do make contact with the wire, it also generates a touch. I think this is because the wire (25cm) acts as an antenna and the capacitive signal is influenced by noise. I do not encounter this problem when the wire is shorter (e.g. 5cm).   My idea now is to place an electronic component close to the patch, which I can control digitally to connect/disconnect the wire (switch). So when the "switch" is open the wire is very short and will not generate a touch. When the "switch" is closed a touch will be generated because it is connected to the longer wire which generates a touch because of noise in the environment or/and the user is touching the end of the long wire. From my basic knowledge of electronics and transistors, I though that a transistor might be suitable as this can be as a switch that is controlled digitally. However, I did not come that far as I encountered the following problem using a PNP BC327:  I directly soldered the collector to the conductive patch that makes contact with the screen. When touching the screen with this setup (leaving the base and emitter disconnected) does not generate any touches. However, when connecting a loose wire to the base or emitter, a touch is generated without even controlling the transistor. I do not measure any conductivity between the Collector, Base, or Emitter using a multi-meter so I am very surprised that connecting these wires causes a change in capacitance on the collector.  Any help to beter understand this problem would be useful as well as input on other techniques on how to make the desired system/setup.


modprobe gives: “FATAL:  not found in directory” error

I am running standard raspbian on Raspberry Pi-3.  pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"   I want to load dvb-core.ko but it fails with an error saying that this module is not under /lib/modules/4.14.79-v7+/ path, but it actually is under that path.  pi@raspberrypi:~ $ uname -r 4.14.79-v7+ pi@raspberrypi:~ $ ls /lib/modules/4.14.79-v7+/kernel/drivers/media/dvb-core/dvb-core.ko  /lib/modules/4.14.79-v7+/kernel/drivers/media/dvb-core/dvb-core.ko pi@raspberrypi:~ $ modprobe /lib/modules/4.14.79-v7+/kernel/drivers/media/dvb-core/dvb-core.ko  modprobe: FATAL: Module /lib/modules/4.14.79-v7+/kernel/drivers/media/dvb-core/dvb-core.ko not found in directory /lib/modules/4.14.79-v7+   No new message is displayed in dmesg. I am confused by this false reporting. I am sure there is an explanation for this, but can't figure it out.


How many different sets of 6 and 7 different numbers can we list out from 11,13,18,19,19,20,23,25?    Please no repeating in any case, if the numbers appeared in a set are exactly the same as another but different order is not counted. For example, 11,13,18,19,20 is the same as 13,18,11,20,19. I had hard time listing them all out cause everytime when I look back there were always some sets repeat. Both 6 and 7 number of sets please.


Groups of units of $\mathbb{Z}\left[\frac{1+\sqrt{-3}}{2}\right]$

On page 230 of Dummit and Foote's Abstract Algebra, they say: the units of $\mathbb{Z}\left[\frac{1+\sqrt{-3}}{2}\right]$ are determined by the integers $a,b$ with $a^2+ab+b^2=\pm1$ i.e. with $(2a+b)^2+3b^2=4$, from which is is easy to see the group of units is a group of order $6$ given by $\{\pm1,\pm\rho,\pm\rho^2\}$ where $\rho=\frac{-1+\sqrt{-3}}{2}$.  First, why change the characterization of unit from integers solutions of $a^2+ab+b^2=\pm1$ to integers solutions of $(2a+b)^2+3b^2=4$? How did they arrive at their answer?


Credit Cards drawn as Cash Advance to the max and moved abroad altogether

I came to know through one of my friends that one of his colleagues, who lived and worked in US for 6+ years completely relocated to his home country (and no plans to return) and settling there. He has had 3 credit cards with credit line worth 35K combined. He drew all of them as Cash Advance and left US.   How are the CC companies going to pursue this issue? For one, he drew $14.5K from Amex CC. Are they able to pursue this guy abroad?   I guess this is a loophole. If people like these are unaffected after doing this, by moving abroad,  then it opens up huge abuse of system.


Special summoning two Interplanetarypurplythorny Dragons consecutively

If one of my monsters is destroyed and I have two s in my hand, can I summon both of them from that one monster destruction (assuming I have space for both monsters)


is there any value assigned to $^nC_{n+1}$?  My teacher wrote it equal to $0$, but what will negative factorial mean?  $$^nC_{n+1} = \frac{n!}{(n+1)!\cdot(n-n-1)!} = \frac{n!}{(n+1)!\cdot(-1)!}$$  Thanks


I'm doing a presentation with a long title, with code like the following  \documentclass{beamer} \usetheme{CambridgeUS} \title{...} \begin{document} ... \end{document}   and it doesn't fit in the middle section of the footnote at the bottom of each slide where titles are included. Is there a way to modify the size of the font within just this part of the footnote or use an abbreviated form of the title without modifying how it appears on my title page?


Canada Transit Visa - Will I need to submit my passport or does it come electronically?

My question may look similar to another question, but it still doesn't answer my query.  I have submitted the application and still haven't been asked to pay a fee (When I completed the application, it said my total fee is 0 CAD. I'm not sure if it will change in the future.)   Also like I've said, my application has been online. So I can't figure out if I need to submit my passport physically for the transit visa.  ________________________________________________________________________________  I am a student with Indian nationality, currently living in the US.  I am travelling to India in a couple of days and I have a return flight from India to Phoenix, US with a layover in Toronto, Canada. I have learned that I need a transit visa and have applied for one. It says that the average time to process an application is 42 days.  I just want to know the complete procedure that takes place once I submit my application. I scanned all the required documents and have uploaded them while submitting my application.   Do I need to submit my passport to the nearest Canadian consulate? Does the transit visa come by post or is it available in electronic format? What happens if I don't have my transit visa by the time I fly and get to Canada?   Any help and clarification will be most appreciated.


Hints/ Solution in finding a formula $\phi(n)$ for a binary square matrix

I don't know if this is a famous problem but my professor assigned this for a research project and I am hitting a dead end( I don't know what to do next).   Note: In $\phi(n)$ ; $n=rows=columns$ and this function throws out total combination of matrices that satisfies the following rule:  Rule for this square binary matrix:  Every Row and Column has two 1's.  So,    $$\phi(2)=1$$ \begin{bmatrix}    1 1 \\    1 1 \\ \end{bmatrix} $$\phi(3)=6$$  I can't write out all the possible matrices for $n=3$ but this is one of them (btw i did this by hand): \begin{bmatrix}    0 1 1 \\    1 0 1 \\ 1 1 0 \\ \end{bmatrix}   According to a program made by my friend, he told me:   $$\phi(4)=90$$ $$\phi(5)=2040$$


I connected my laptop to my LCD. Using the laptop display hotkey I can switch between different modes - only laptop monitor on, only LCD monitor on, both on and display the same view, both on and the desktop is stretched (divided).  But, I'm looking for something else - I would like to have two workspaces, one visible on the laptop monitor and the other on the LCD.  Is that possible?


Why is VirtualBox (Windows host) only allowing 32-bit Linux guests?

I have a fairly new cpu/mb etc. and I'm running a 64-bit version of Windows 10.  I did select the bios features for virtualization.    Unfortunately, I am unable to install, with Virtualbox, any 64-bit version of any distribution of Linux. I have in the past installed 64-bit versions of Linux, on this same computer.  Or for that matter, I've also installed 64-bit versions of other versions of Windows as guests.  When I say in the past, I mean, prior to upgrading to Windows 10 and maybe 1 year ago when I was running Windows 7 or Windows 8 as the host OS.  I've had to reinstall my OS.    What do I mean by saying that when I try to install 64-bit guest OSes, it doesn't work?  Well, basically, the 64-bit drop-down options either do not appear or they cannot be selected.  If I try to just go ahead and use a 64-bit version of Linux that I downloaded, it will give me a message that 64-bit versions of the OS are not supported on this system.  The only uncertainty I have that just came to mind, is whether or not I downloaded the 64-bit version of Virtualbox.  However, I did have the same problem in VMWare Player and it seems unlikely that I would have mistakenly downloaded a 32-bit version of both, when it was my intention to use a 64-bit version.    Again, my version of Windows 10 is a 64-bit version (this is the host OS).  I definitely have 64-bit cpu hardware (Core i7-3770). Does anyone have any suggestions?  Would this be something that must be set in the bios or within Windows after I boot into the system? Thanks, Bruce


Can I return to the USA as a tourist after living there illegally as a minor?

I am 20 years old. I live currently in Mexico and have been living here for 9 years. My parents took me to the USA when I was a minor (1 year and a half) and stayed until I was about 12 years old. I lived with my mom and sister. We asked to leave the US and exited voluntary. I have graduated from middle school and high school. I have an internship in accounting. I have my own small business and a family with 2 kids. I have never had any issues with the law in Mexico or in the USA. Is there a way that they will deny me automatically a visa for having been to the USA illegally? I want to go to the USA for a 4-day vacation fishing.


System Setting is not working and it doesn't show anything

This is what I get when I go to the System Settings (Ubuntu 14.04):    I tried to reinstall ubuntu-desktop et similia but anything changed  But if I uninstall ubuntu-desktop, System Settings shows me a few options like this:    What should I do?  EDIT:  I have already tried  sudo apt-get install --reinstall gnome-control-center sudo apt-get install --reinstall gnome-settings-daemon-schemas sudo apt-get install --reinstall ubuntu-desktop


no WiFi -- network UNCLAIMED for Intel network controller

I installed xubuntu 16.04.3 LTS on my fairly new MSI GL62M 7RD-058 laptop and Ethernet connection works, but not WiFi.   lshw -C network outputs:  WARNING: you should run this program as super-user.   *-network UNCLAIMED             description: Network controller        product: Intel Corporation        vendor: Intel Corporation        physical id: 0        bus info: pci@0000:02:00.0        version: 10        width: 64 bits        clock: 33MHz        capabilities: cap_list        configuration: latency=0        resources: memory:df200000-df201fff   *-network        description: Ethernet interface        product: QCA8171 Gigabit Ethernet        vendor: Qualcomm Atheros        physical id: 0        bus info: pci@0000:03:00.0        logical name: enp3s0        version: 10        serial: 4c:cc:6a:84:b8:0a        size: 1Gbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=alx duplex=full ip=10.20.21.23 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s        resources: irq:128 memory:df100000-df13ffff ioport:d000(size=128)   iwconfig ouputs:   lo        no wireless extensions. enp3s0    no wireless extensions.   How do I fix this?  I am upgraded to the latest version and updated. From reading other sources, I suspect there is either a missing driver or a driver conflict, but I am inexperienced.    EDITS: Output of lspci -nn | grep 0280:  02:00.0 Network controller [0280]: Intel Corporation Device [8086:24fb] (rev 10)  Output of uname -r:  4.4.0-98-generic


How do you know when to use singular or plural nouns if they're used as adjectives?  i.e.     32-bit computer vs 32-bits computer?      teacher union vs teachers union?      wedding planner vs weddings planner?      sport medicine vs sports medicine?      student council vs students council?   Which one is correct?


Why do students go for a PhD even when chances of getting academic jobs on its completion are slim?

This is in reference to my question: .  I was told in the answer of the above linked question that chances of landing a job as an assistant professor in Mathematics are quite slim. Very few people will actually get a permanent position in academia.  An article of 2014 shows only 0.5-3% of PhD graduates will actually get a job as an Assistant Professor.  But I have two questions:        Why do so many people still apply for a PhD in some reputed institutes in India even knowing the harsh reality? I found there are 1500 applications for four PhD scholarship positions.          One answer says that people move to industry, but I still don’t understand how after doing a PhD in suppose differential geometry or algebraic geometry one can do a job in industry if he/she gets no position as an assistant professor.   Will one be satisfied to do some managerial work in some Consultancy firm after doing a PhD in Mathematics?      Are people jobless after a PhD?   Completion of a PhD requires so much effort. So why is there no value after doing it?      NOTE:  In the most up-voted answer below it has been said that many who enroll for  a PhD don't even wish to pursue an academic career.  I have been asking my seniors who are currently pursuing a PhD or are in the verge of completing their degree or who have completed it. They said that they all want to be Professors in some Universities and want to be involved in research because that is the dream job for them.  I am obviously talking about PhD in Mathematics


ARMA lag selection for ARMA-GARCH models

When I read this group questions about lag selection for ARMA part of ARMA-GARCH models I found 2 different answers from moderator:  and   I can't understand - could I try to select AR and MA part order by information criterion ignoring that the errors have a GARCH structure, get lags for AR and MA parts (p and q for example) and after that select best model from ARMA(p, q)-GARCH(s, t), where p and q are constants, s and t could be in 1:N range, using, for example, AIC?   Thanks.


Let $a,b$ in a group $G$, where $ab=ba$. $|a|=k, |b|=s,$ where $k,s$ are finite  Prove that $|ab|=$  LCM $(|a|,|b|)$  we say $k,s$ in $N$ are co-prime numbers GCD$(k,s)=1$


So I've been doing a lot of reading about the twin paradox and have encountered several different explanations that strive to resolve it. First off let me start by saying general relativity is not an adequate explanation and in fact has nothing to do with resolving the paradox. (That much has been made clear to me from what I have read, as it has been pointed out that believing general resolves the paradox is a common misconception) To drive that point home let me propose a slight variation on the twin paradox that removes acceleration all together.   Some ancient race of aliens long ago set up an experiment for us without our knowledge to help us understand space time. The experiment contains two space craft with clocks on board separated by a very large distance. The first clock, clock A, was accelerated to .866 speed of light millions of years ago (Thus time runs at half speed) and is set on a trajectory to fly past earth. As it flies past earth it resets its clock to 0 and continues on its way. (The aliens also left behind a clock on Earth, clock C, that starts ticking the moment Clock A passes earth and resets itself to 0) The other clock, clock B, was also accelerated to .866 the speed of light long ago and is on the same trajectory as clock A but in the opposite direction so that it heads towards Earth. The two ships and their respective clocks pass each other at a distance of four light years away from earth at which point clock A transfers its time reading to Clock B. Clock B flies past earth and relays its time measurement so as to be compared to Clock C. The time reads half the time elapsed by Clock C, but how could this be possible if time dilation is always symmetrical?


How can I introduce a conditional OR into grep?  Something like, grepping a file's type for (JPEG OR JPG), and then sending only those files into the photos folder.  For example.  I know how to send the file where I want it, and get the file type, I just need some help with the grep part.  I'm on OS X, which IMO seems to have modified/customized *nix utilities than what I'm used to in a *nix environment.  So hopefully the answers can be as generic/portable as possible.


My teacher gave us some sample code to help to show how reflection in Java works however, I am getting some errors:   Note: DynamicMethodInvocation.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.   Here is the code:  import java.lang.reflect.*; import java.lang.Class; import static java.lang.System.out; import static java.lang.System.err;  public class DynamicMethodInvocation {   public void work(int i, String s) {      out.printf("Called: i=%d, s=%s%n\n", i, s);   }    public static void main(String[] args) {     DynamicMethodInvocation x = new DynamicMethodInvocation();      Class clX = x.getClass();     out.println("class of x: " + clX + '\n');      // To find a method, need array of matching Class types.     Class[] argTypes = { int.class, String.class };      // Find a Method object for the given method.     Method toInvoke = null;     try {       toInvoke = clX.getMethod("work", argTypes);       out.println("method found: " + toInvoke + '\n');     } catch (NoSuchMethodException e) {       err.println(e);     }      // To invoke the method, need the invocation arguments, as an Object array     Object[] theArgs = { 42, "Chocolate Chips" };      // The last step: invoke the method.     try {       toInvoke.invoke(x, theArgs);     } catch (IllegalAccessException e) {       err.println(e);     } catch (InvocationTargetException e) {       err.println(e);     }   }  }   I know nothing about reflection and if anyone knows how I can modify this code to get this to compile it would be very appreciated.


Is there a possibility to enable VIM support when writing questions and answers? This will allow basic commands to be available in the question/answer textarea on demand. In my opinion, it's the most widely used editor by IT experts.  Lets say all commands from this basic  without points: 5, 6, 7, 8, 10.


sed '5i\n\n\n' myfile inserts first \n as a literal n, and the other two \n\n as new lines, is it possible to insert all 3 new lines?

I'm writing a Bash script and when inserting lines to a file using GNU sed, the first new line is inserted as a literal n, while the rest is inserted as new lines. The command is this:  sed '5i\n\n\n' myfile   The output is this:  n     As seen, the first line in the output contains an "n" where it should be none, what am I missing about this behavior? is it possible to make sed insert only new lines with '\n'? Thank you.


I installed Ubuntu 16.04 LTS this afternoon. Previously I mainly used Linux Mint. I've tried other Ubuntu/Debian variants and Manjaro, including Ubuntu itself. Ubuntu was my first intro into Linux, and the first time I installed and used it, I was amazed, scared and confused! Now I've gotten much used to Linux...  Anyways, on Mint the following option in the "Additional Drivers" window wasn't enabled; instead "Do not use the device" was enabled, but here on Ubuntu, as seen from the following image, I see that it's been pre-enabled.    Now I have a bunch of updates on my Software Updater. Among them is "Processor microcode firmware for Intel CPUs" update...    What should I do now? Do I select the "Do not use this device" option and not bother with the update? Or do I keep using the proprietary device? I've found a bunch of articles here, but as I said I don't understand all that much, rather it's really confusing! A sure-fire answer would be of great help!  Thanks in advance...


Novel with a girl who can talk to animals. Intends to marry a man named/titled Kahn. Makes friend with a girl called Maya

The book was about a girl (I don't remember her name) who can talk to animals.  I remember that she had a friend cat, and in the beginning she asked the cat something like, "how do I look?" to which he replied "like a human."   At one point she goes to marry this guy named or titled Kahn(?) and she makes friends with another girl named Maya who is really good swimmer. They travel through a desert together.


This problem has been around for quite some time and I have never found a solution. I even had to format once to get rid of it. And I'm not the only one with this: ,  and here.  Basically, all of a sudden all folders in my Windows XP setup become (grayed) read only    For many programs this really isn't a big deal. But I found that Eclipse doesn't work anymore!     Tried re-installing applications, didn't solve the problem  doesn't solve the problem  doesn't solve the problem Changing Read-Only properties to sub-files/folders doesn't solve the problem Disabled my antivirus (Comodo Internet Security), didn't solve the problem   There have been  but none of them worked. This could end up as another Works for Me thing and never be solved.


How do I internally rewrite all requests to subdirectory?

I'm using Laravel 5.6, and I can only upload/edit files to/in the root of the website (/public_html). I cannot change the website root to /public_html/public. Is it possible to rewrite all requests (e.g. /, /login, /css/styles.css etc.) internally to /public_html/public/?  I don't know how to write .htaccess files. I tried many different things I found online. The last thing I tried was this in /public_html/.htaccess:  RewriteEngine On  RewriteRule ^(.*)$ /public/$1 [L]


Wave energy in terms of classical and quantum mechanics

If there are two light waves of same amplitude but of different frequencies then their energy will be same or different? If same then how will you define the light waves as photons and will there be a difference between the number of photons in both the Waves?


I have a Dell OPTIPLEX 380 CPU. It keeps on hanging only after running any 2-3 programmes simultaneously.  Here is the configuration   RAM - 2GB Processor- core 2 duo Hard Drive - 128 GB(HDD) OS - ubuntu 14.04 LTS   How can I fix it?  We have work for at least 10 hours a day on this system.  Is increasing the RAM is the only option to fix it?


Reboot loop after the "effective power" message

If you are not known about this phemomenon, sending this message to someone with iOS will cause the phone to reboot once.   However, this time the phone doesn't stop rebooting. After the reboot is finished, it starts with a new reboot. Basically I'm stuck.   Is there anything I can do to make this loop stop?  Thanks a lot in advance


Energy conservation limited by uncertainty principle

The way I learned it from practicing Fourier analysis and signal processing besides quantum mechanics, is that Energy conservation cannot be achieved in short time scales, and that limits energy conservation in Quantum mechanics.  In other words: Energy conservation is limited by the Heisenberg uncertainty principle in our universe.  $$\Delta E \cdot \Delta t \geq \frac{\hbar}{2}$$  As I posted this answer somewhere, someone said this is wrong. So I posted this issue here, for maybe I don't understand it properly and you guys could tell me why this is wrong.  Example:  A beta decay produces a W-boson, which is ~85 times larger in mass than the initial particles (which decays eventually to neutrino and some beta particle), and this is possible due to the very short time scale, during which the W-boson is produced. I.e, energy is not conserved in very short time scales.  Do I understand this correctly? Thank you.


I'm getting a couple of user registrations on my personal website (presumably from bots or people trying to hack my site). How do I disable new user registration entirely?


Application that shows what functions are referenced by in C

I would really like to know if there are any methods or applications which can show me which functions are referencing which functions. So say I would like to see from where a function change_state() is called/referenced, I get something like:                    /--app_init()<--main()                   | change_state() <--|                   |                   \--afile.c |<--trigger()                    /  line 100|                    |  line 156|                   |                   \--bfile.c|                      line 26|<--|--button_event()<--process_event()                      line 30|   |                                 \--move_event()    EDIT: I am using the Keil compiler in Windows 7.


How to add banners in sidebar of my theme

I am new to word press. I need to add 2 banners in my right side bar. Could you help me?? How can I do it?? What is the code which I have to insert in a text widget? I am using zeesynergie theme. Please help me


Navigation to section/subsection from Beamer headline titles

Beamer infolines themes, like CambridgeUS, insert the titles of the current section and subsection in the headline. These titles appear to be clickable (the screen pointer changes as if they were so) but nothing happens when one clicks them.   Is there a way to link the headline titles to the first frame of the corresponding section or subsection? Something like this already works on the theme footline: clicking on the presentation title takes you to the title page.   Edit: MWE  \documentclass{beamer} \usetheme{CambridgeUS}  \setbeamertemplate{navigation symbols}{} \title{Click on Headline} \author{A.~U.~Thor} \institute{X-University} \date{2015} \begin{document} \begin{frame}   \titlepage \end{frame} \begin{frame}[t]{Contents}   \tableofcontents[subsectionstyle=hide]  \end{frame} \section{Section 1} \begin{frame}{Section 1}   \centering \Large Section 1 \end{frame} \begin{frame}[t]{Section 1: Contents}   \tableofcontents[currentsection,hideothersubsections] \end{frame} \subsection{Subsection 1.1} \begin{frame}{Frame 1.1.1}   A frame of subsection 1.1 \end{frame} \begin{frame}{Frame 1.1.2}   Another frame of subsection 1.1 \end{frame}   \subsection{Subsection 1.2} \begin{frame}{Frame 1.2.1}   A frame of subsection 1.2 \end{frame} \begin{frame}{Frame 1.2.2}   Another of subsection 1.2 \end{frame} \section{Section 2} \begin{frame}{Section 2}   \centering \Large Section 2 \end{frame} \begin{frame}[t]{Section 2: Contents}   \tableofcontents[currentsection,hideothersubsections] \end{frame} \subsection{Subsection 2.1} \begin{frame}{Frame 2.1.1}   A frame of subsection 2.1 \end{frame} \end{document}


In (n,n) Shamir secret sharing if n shareholders do not have the public values (X values) can they still obtain the secret with only Y values?


I have multiple thumbdrives and external disks, some protected by Bitlocker and some not.  None of them will ever cleanly eject from my personal Windows 10 x64 laptop.    I've tried just about all of them in my Windows 7 x64 work machine and they have always ejected fine from there.  If on my personal Windows 10 x64 machine, I right-click on the Safely Remove Hardware Eject Media icon in the system tray and I get the message:    Problem Ejecting USB Mass Storage Device  Windows is unable to stop the device 'USB Mass Storage Device'. Don’t remove this device while it is still in use. Close any programs using this device and then remove it.  OK  How can I resolve this issue?


In what order does WordPress load plugin files?

In what order are plugins loaded in WordPress?   And within a particular plugin's folder, what order is followed for loading?


How do I calculate the difficulty of a multi-sided encounter?

From looking through the DMG for encounter building (p. 81-85), it seems clear to me that the rules for how to calculate encounter difficulty assume that there are only two sides in an encounter: PCs vs Monsters. However, I was wondering if there was a way to calculate encounter difficulty when there are more than two sides to the conflict.   I looked at the answers to  (which does address a similar scenario to what I have in mind) however I am not satisfied with the answers since I feel that tweaking the difficulty "on the fly" would break the immersion of the scenario, as would having the NPCs drop everything and focus only on the PCs.


Given a specific rational number, is there a way to find an n and k for the binomial coefficient that will evaluate to it?

Looking at Pascal's triangle, it looks as though all rational numbers can also be expressed as binomial coefficients. Given a rational integer, is it possible to calculate n & k for the binomial coefficient that will evaluate to it?


How does my life total work out with Angel's Grace and Ad Nauseum?

If I have a positive life total and cast  then  and draw my whole deck I know I can't lose the game, but is my life total one or negative a bunch?