That might be a silly question, but I'm staring at this code for a while and can't think of what's wrong. On compiling:  #include <string> #include <map>  template <typename T> struct my_string_map {     typedef std::map<std::string, T> type; }; template <typename T> bool add_to_string_map(my_string_map<T>::type map,         std::string str, T x) {     if (map.find(str) != map.end())          return false;     map[str] = x;     return true; }   I get:  foo.cpp:8: error: template declaration of ‘bool add_to_string_map’ foo.cpp:8: error: expected ‘)’ before ‘map’ foo.cpp:8: error: expected primary-expression before ‘str’ foo.cpp:8: error: expected primary-expression before ‘x’   (Definition of my_string_map class was taken from another thread of this forum)  When i specialize what template type I'm using, like in   bool add_to_string_int_map(my_string_map<int>::type map,         std::string str, int x) {     if (map.find(str) != map.end())          return false;     map[str] = x;     return true; }   everything works fine. Why it's not working and/or how to get it working?  Thanks in advance for your help

In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway?    I have the following code:  template <typename T, typename Tail> // Tail will be a UnionNode too. struct UnionNode : public Tail {     // ...     template<typename U> struct inUnion {         // Q: where to add typename/template here?         typedef Tail::inUnion<U> dummy;      };     template< > struct inUnion<T> {     }; }; template <typename T> // For the last node Tn. struct UnionNode<T, void> {     // ...     template<typename U> struct inUnion {         char fail[ -2 + (sizeof(U)%2) ]; // Cannot be instantiated for any U     };     template< > struct inUnion<T> {     }; };   The problem I have is in the typedef Tail::inUnion<U> dummy line. I'm fairly certain that inUnion is a dependent name, and VC++ is quite right in choking on it. I also know that I should be able to add template somewhere to tell the compiler that inUnion is a template-id. But where exactly? And should it then assume that inUnion is a class template, i.e. inUnion<U> names a type and not a function?


My home is 42 years old. The kitchen lighting consists of 2 48" fluorescent shop lights each plugged into a normal 110v receptable. It uses a standard, 1 way, on/off switch. I want to convert from fluorescent to incandescent and still use the plug. I intend to use a 6 light incandescent vanity bar and low wattage (25w or 40w bulbs). However, since there will not be any other type of fixture being plugged into that receptacle except the incandescent light bar, can I use a dimmer switch without hard wiring the fixture? can I use the plug/receptacle? The circuit uses a 15A circuit breaker. I do not want to violate and electrical building codes.

I live in an older house and have some outlets in our kitchen that don't make sense to me. We have one outlet that is tied to a dimmer switch on the opposite side of the room. I can detect that the outlet is hot using my voltage detector (when the dimmer switch is all the way on), but it pulses. I get about 6-7 beeps, then it skips one, beeps 6-7 more times, skips, continue. My GFCI tester shows an open hot. The outlet doesn't work.  I'm not very experienced with electrical work but this sounds highly unusual to me. Where should I start with fixing the issue?


It seems to me there is no mention of any other prison in the wizarding world apart from Azkaban. But the books mention that is it only for every serious crimes, and considering it has Dementors as guards I would agree.   Surely they do not lock up everyone in Azkaban? What about theft or burlgary? Grevious Bodily Harm (GBH), Actual Bodily Harm (ABH), fraud etc?   What happened to wizards convicted on petty or lower crimes that would not constitute a one-way ticket to Azkaban?

The only prison that I can remember being mentioned in Harry Potter is Azkaban.  Some simple research indicates one person was imprisoned for owning Sphinxes and Hagrid was sent there, apparently as a precautionary measure, after the re-opening of the Chamber of Secrets.  This implies that even though living in Azkaban is a terrible ordeal, that it's possible to be sent there for smaller crimes.  Are there other prisons in the magical world, or is Azkaban the only one?  And if there are, has JKR ever made any comments about why one would be sent to Azkaban as opposed to another prison?  Are there also prisons that might be more like a "minimum security" setup without dementors for lesser crimes?


It seems to me that if we introduce such numbers, due to Fourier series we would be able to express the value of any periodic function at infinity as a trigonometric series of the above values.  It would be also possible to express the values of functions such as $\cos 1/x$ at zero, making them continuous.  For instance, if we define $w=(-1)^\infty$ then $\cos^2(\infty)=(w+\frac1w)/2+1/2$  We also would possibly be able to assign precise values to the series like $\sum_{k=0}^\infty (-1)^k$

I had a  over what seems like a simple question:     Is $\sin \infty$ an ?   What do you think? :)    I'm labelling this as (soft-question) to be safe, but it should have a clear answer depending on the definition of indeterminate form used. The term "indeterminate form" is seldom used in post-calculus mathematics, but I believe it has one or more accepted definitions, which are either informal or formal. So any answer which takes a standard definition and argues the case would be interesting to me.  How to make a good answer:   State the definition of indeterminate form, either from an online or textbook source, or a definition you came up with on your own. Determine, using your stated definition, whether $\sin \infty$ is indeterminate or not.   EDIT: What do I mean by $\sin (\infty)$?  It's not a well-defined expression, but neither are any of the other indeterminate forms: $\frac{0}{0}$ doesn't exist, $1^\infty$, doesn't exist, and so on. So the question is whether this expression -- which is not well-defined, just like any other indeterminate form -- is an indeterminate form.


Suppose I want to estimate the proportion parameter for a binomial distribution, and my method for constructing a 95% confidence interval (e.g. MLE +- 1.96 SDs) gives an interval of let's say (-.1, .3). Then what is the standard practice? I mean it's not wrong by my understanding of what a confidence interval is, but on the other hand would it be better to truncate the interval? So if the normal approximation gives (a,b), the CI should be (max{a,0},min{b,1})

Suppose I analyze a distribution and determine that a 95% CI for some measure is [-1, 1] (bearing in mind the actual value in this case cannot be < 0). And suppose another 95% CI for some other measure is [0,1]. Can I, based on the CI, conclude anything different for these two CIs? What if the first CI was [-100,1]? My intuition says that, eg, the [-100,1] example i should expect a lot more values near zero than in the [0,1] example. The question boils down to: Does a CI that contains 'impossible' values contain information above the tradition interpretation of that CI, that conducting after the experiment a lot of times, 95% pf the results will be in [0,1]?


Why is this code gives an Debug Assertion Fail?     std::string query;    int ClientID = 666;    query = "select logged from login where id = ";    query.append((char *)ClientID);

I thought this would be really simple, but it's presenting some difficulties. If I have std::string name = "John"; int age = 21;  How do I combine them to get a single string "John21"?


I have an old house that was remodeled with a bathroom addition added years ago. I have two breaker panels: the outside service entrance panel (A) and another panel in the garage (B). I found bonds from neutral to ground at the service entrance panel (A) and in the garage panel (B).    The service entrance panel (A) was added for the remodel; it has a 125 amp breaker that feeds the garage panel (B) (3 wires: 2 hot and 1 neutral but no ground). It also feeds the bathroom addition. The neutral and ground are bonded in both panels.   What panel should have the neutral and ground bond?

So to continue my line of electrical questioning (and perhaps narrow down my ), I took a look through the two panels in this house.  There is a 200amp main service in the basement, which then feeds up to a 100amp sub-panel for the main floor.  This 100amp sub feeds a kitchen (fridge, microwave, dishwasher, gas range), a bathroom, 3 bedrooms, and a living room.  The 200amp main feeds the 100amp sub, 2 bedrooms, a living room, a washer/dryer (gas dryer), a utility room (well pump, pressure tank, gas water heater, gas furnace), and an A/C.  My first concern is that the main service panel has the bare ground and neutral wires mixed on the two bus bars.  Reading around, some say this is OK, other's say it is bad.  Any thoughts?  The sub-panel is wired with grounds and neutrals on separate bars.  My second concern- is a 100amp sub sufficient for the main floor?


In 2014 I used to listen to a song by a male singer/band from what I remember and the music video had the monsters In from where the wild things are I've tried a few like seafret Atlantis daughter youth but it's not these videos I also don't think the song is from the original sound track

I'm searching for a music video that has a scene exactly the same as the  film, with the boy and the monster.   It's not a song from the soundtrack!  It's just an underrated song with an awesome video.


Let $R$ be a field and consider $$A=\{n\in \mathbb N^*\mid \underbrace{1+...+1}_{n\ times}=0\}.$$ Assuming that it's not empty, prove that its smallest element is prime.  I have no idea how to do it. It looks here that we are in $\mathbb Z/n\mathbb Z$ and since $R$ is a field and that $A$ might be a subfield, then $n$ will be prime, but this don't answer the question since they ask for the smallest element.  If my question is unclear, let me know.

I'm trying to prove that the characteristic of any field $F$ is either $0$ or a prime number, but I have no idea what to do.  Help?


There are lots of discussion about this topic, but I wanna clear my ambiguity or confusion - my mixed code make sense or not.   Previously I thought Jquery is most comfortable in every aspects, from easiness to the level of flexibility. There is no doubt we can create the vast and robust client side application with the usage of Jquery.  So I had been using Jquery even in small and simple tasks. But while concerning about performance, I found peoples are recommending pure JavaScript if you can. I read in lot of forums, question/answers about the performance, then I realized I am using Jquery unnecessarily.  For example, I had using to do simple task   var value = $('#div').text();   instead of   var value = document.getElementById('div').innerHTML;   In addition, I had used maximum $.each even in simple selection which can be done with document.querySelector or pure javascript for loop    I can't avoid the usage of Jquery, but can minimize. So, browser have to load jquery.   Now I have minimized jquery usage in external .js file, using pure javascript code for simple task and using jquery for only complex.   Now my question is   Now would my perfomance be better and fast than previous my way (where I had used jquery only) ?  OR  if $ is initialized once, does it affect other pure javascript code ?  To be more clear,  Does second one is faster than first one ?  Jquery only  function purchase(){     $.ajax({         url:"fetch.php",           method:"POST",           data:{prch_id:'pty'},         beforeSend: function() {             $('.pty').html('Processsing');         },         success:function(data){             $('.pty').html(data);             auto_select();         }     });  }   Javascript with Jquery  function purchase(){     var http = null;     if(window.XMLHttpRequest){         http = new XMLHttpRequest();     }     else{         http = new ActiveXObject('Microsoft.XMLHTTP');     }     var vars = "prch_id=pty";     http.open('POST','fetch.php',true);     http.setRequestHeader('Content-type','application/x-www-form-urlencoded');     http.onreadystatechange = function(){         if(http.readyState==4 && http.status==200){             var data = http.responseText;             $('.pty').html(data);             auto_select();         }     }     http.send(vars);         $('.pty').html('Processsing'); }   if we used pure JavaScript only - it is sure it is speedy, but I want to know mixing of jquery and JavaScript improves or does not make any sense.

CPU Cycles, Memory Usage, Execution Time, etc.?  Added: Is there a quantitative way of testing performance in JavaScript besides just perception of how fast the code runs?


I need help to find asymptotic solution of this recurrence equation $T(n)=\sqrt{n}T(\sqrt{n})+cn$ where $c$ is constant.

$$T(n) = \sqrt{n} T \left(\sqrt n \right) + n$$  Master method does not apply here. Recursion tree goes a long way. Iteration method would be preferable.  The answer is $Θ (n \log \log n)$.  Can anyone arrive at the solution.


Does the sequence $$a_n=\displaystyle \frac{n}{\sum\limits_{k=1}^{n}\Big(\frac{k}{k+1}\Big)^n}$$   converge?   Attempt. Since for $k=1,\ldots,n$ $$\frac{1}{2^n}\leq \Big(\frac{k}{k+1}\Big)^n \leq  \Big(\frac{n}{n+1}\Big)^n,$$ we get $$\frac{n}{2^n}\leq\frac{1}{a_n}\leq \Big(\frac{n}{n+1}\Big)^n$$ but the sequences $$\frac{n}{2^n},~\Big(\frac{n}{n+1}\Big)^n$$ fail to converge to the same limit. So the squeeze theorem does not work here.  Thanks in advance.

Does the sequence $$\displaystyle \frac{n}{\sum\limits_{k=1}^{n}\Big(\frac{k}{k+1}\Big)^k}$$   converge?   Attempt. Since $\Big(\frac{k}{k+1}\Big)^k \rightarrow 1/e\neq 0$ and the terms are positive, the series $\sum\limits_{k=1}^{\infty}\Big(\frac{k}{k+1}\Big)^k$ diverges to $+\infty$. I find hard to determine if $n$ or the sum goes faster to $+\infty.$   Thanks in advance.


Let $ \{a_i \}_{i \geq 0} $ be a sequence of positive reals such that $\sum_{i \geq 0} a_i := S$ exists and is finite. Define $S_i = \sum_{ j \geq i} a_i$. Prove that $\sum_{i \geq 0} \frac{a_i}{S_i}$ is divergent.  I tried a bunch of things like writing $b_i = \log \frac{a_i}{S_i}$ and working with that and using $-(1-x) \geq \log x$ or $e^x \geq 1+x$ but couldn't go very much further. A hint would be appreciated

Let $\displaystyle \sum a_n$ be  convergent series of positive terms and set  $\displaystyle b_n=\sum_{k=n}^{\infty}a_k$ , then prove that $\displaystyle\sum \frac{a_n}{b_n}$ diverges.   I could see that $\{b_n\}$ is monotonically decreasing sequence converging to $0$ and I can write $\displaystyle\sum \frac{a_n}{b_n}=\sum\frac{b_n-b_{n+1}}{b_n}$, how shall I proceed further?


While reviewing a pull request, I noticed my colleague is using a lot of truthy checks in the following manner:  if ($var === 1)   This doesn't work as expected for one condition in particular:   if(!empty($myArr) === 1) {  } //   I know this won't work as expected in javascript, upon consulting , I am not 100% sure if this would work properly in PHP either.  My question is, would this work OK in PHP? Which one is a better way of checking for comparisons?  true or 1  Using php 7.2

What is the difference between == and ===?  How exactly does the loosely == comparison work? How exactly does the strict === comparison work?  What would be some useful examples?


Is there any reason why the path "//" stays as "//" while all other paths consisting only of slashes becomes "/" ? $ cd / ; echo $PWD / $ cd // ; echo $PWD // $ cd /// ; echo $PWD / $ cd ////////////////// ; echo $PWD /

I'm working on a python script that passes file locations to an scp subprocess. That's all fine, but I'm in a situation where I may end up concatenating a path with a filename such that there's a double '/ in the path. I know that bash doesn't care if you have multiple file separators, but I'm wondering how exactly that is rectified. Is it bash that strips extra /s or does it really not matter ever?  I ask because it will save me several lines of code to check for extra /s while concatenating. I know it's not a big deal, but I'm curious as well. I have a bash script that has the line cd //usr (instead of cd /usr), which seems to imply there might be a significance to using multiple /s in a path


I am sorry if I am asking a basic question here but have no idea what I am talking about  :).  My question is this:  I have a digital camera that requires DC supply. I have a couple of power supplies but not sure if either are any good.  On the camera it states: DC12W 5Watt Max  On power supply 1: INPUT 100-240 VAC 50/60Hz 0.5A OUTPUT +12V 1A  On power supply 2: INPUT 100-240 VAC 50/60Hz 0.8A OUTPUT +5V 4  Are either power supplies powerful enough or are they too much?  Thanks

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


How is it possible that individually, Z correlates with X and Y (Spearman's) but when multivariate linear regression analysis is done X and Y cannot predict Z at all. Am I doing something wrong? This doesn't make sense to me.

In a multiple linear regression, why is it possible to have a highly significant F statistic (p<.001) but have very high p-values on all the regressor's t tests?  In my model, there are 10 regressors. One has a p-value of 0.1 and the rest are above 0.9    For dealing with this problem see the .


I have an application (server application) that needs an extensive amount of logging implemented and shouldn't be too affected performance wise by enabling logging.  The application has a thread pool of worker threads performing the work.  Originally I was going to just log on these thread pool threads, but then I'd need to lock practically the whole thread and so there goes my 'multithreaded' app.    I have been looking at better ways to log from multiple threads and I've found using a Queue or ring buffer could be an idea.  Can anybody suggest (perhaps from experience) any good ways to implement effective logging (to a file mostly) for a multithreaded application that also should stay somewhat performant?  I would like to use the Boost Logging Library.

I am working on a performance critical multi-threaded application. I looked at rlog, Ace and Boost logging. I chose rlog because I read it was the fastest (when logging is disabled, it has the least overhead).  The problem I have is it shows the file name, line number etc. even in release mode. If you can tell me how to shut that information off, my problem might be solved. In any case what is the most efficient logger in C++ for my situation?


I am writing my CV and I can't understand what's wrong with my code but it doesn't work.  I'd like to have my name on the left, my picture on the right and the information just next to the picture but I can't display the personal information in any way.  Here what I wrote:  \documentclass[11pt,a4paper,sans,english]{moderncv}         \moderncvstyle[left]{casual} \moderncvcolor{black} %\nopagenumbers{} \usepackage[utf8]{inputenc} \usepackage[scale=0.75,a4paper]{geometry} \usepackage{babel} \firstname{AAA} \familyname{BBB} %\title{}                                \address{CCC, DDD}{12345}{EEE}          \mobile{+1 23456789}                           \email{xxx@gmail.com}                                               \photo[64pt][0.4pt]{picture}  \begin{document} \makecvtitle \section{Section1} \end{document}   But this doesn't show anything next to the picture but just in the footer:    How shall I do to make something appear?  T

I am using documentclass moderncv to style my resume, and I'd like to put the information that normally goes at the bottom of the document, such as phone number and email, to the space next to the name aligned on the left of the document. I'm a beginnner user, so I'd love to get some enlightenment on this.  \documentclass[11pt,letterpaper,sans]{moderncv}  % moderncv themes \moderncvstyle{casual} \moderncvcolor{blue} \usepackage[scale=0.75]{geometry}  % personal data \firstname{John} \familyname{Doe} \mobile{+1~(234)~567~890}  % content  \begin{document} \makecvtitle \pagestyle{empty}  \section{Education} \cventry{1998-2007}{Degree}{Institution}{City}{\textit{Grade}}{Description}   \section{Computer skills}  \thispagestyle{plain} \end{document}    Simply put, I want to move \mobile from the bottom to the top left.


I have installed VLC 2.0.8 TwoFlower and I was wondering where I can find VLC's source code.  I am using ubuntu 13.10 and I don't plan to do anything with the code, I just want to have a look at it.

I am assuming that all application installed through apt-get are open source; but for those that are available in that manner, where can I get the source code for these applications as well as update them?   I have a couple applications I use regularly that aren't being actively developed any longer and I would like to add features. Where would I go to get the rights to update these applications?  In this case specifically, I am referring to the hellanzb package


In part of a theorem that I do not bother to mention  writer supposed that there are two metrics on (0,1) (called d ,D) such that set of all open sets of d is equal to set of all open sets of D and also (d,(0,1)) is complete while (D,(0,1)) is not complete. I ,  could not find any example for such metric spaces(d, D) I will appreciate if some one can give an example .

The question  is "Does  there  exist  a  complete  metric  on  $(0,1)$  that  induces  the  usual  topology?"  Now does complete  metric  on $(0,1)$ means $(0,1)$  is  complete  under  the  supposed  metric? If  two  metrics induces  the  same  topology  then  are  not  they   similar? Then  this , if  exists, will  be  similar to   the  euclidean metric but  $(0,1)$  is  not  complete  under  euclidean metric. So  such  a metric  does  not  exist. Or  have  I  got  the  question  totally  wrong? Does  it  mean something  other  than  what  I  assumed?


When I use the aggregation framework to get values from my database and I got complex data structures, such as arrays of struct with doubles, I get inaccurate values.   I use the ToList() on my IAsyncCursor to get my values. The double values should be such as 13.23 and in the return json string the values are like 13.2300000001 or something like that. This is just a behavior if I use this complex structures of data.  What can I do against this Inaccuracy? Am I using the false classes and methods of the csharp api?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I'm having reports from users of my community that the peoples profile flairs are displaying the old beta icon instead of the correct one for their community.  Here is what I see:    The combined flair seems to be unaffected.  Even after clearing my browser cache, I see this on Area 51:    It seems to be affecting Beta and Graduated sites, but not Meta.SO for some reason:

This was originally noticed and fixed back around the beginning of July. As of August 1, this problem seems to have returned. New bug report is here:   I just happened to notice that my SO flair has some sort of a B icon right before my username (instead of the expected site icon) Snapshot of the unknown icon:    My current (live) flair for monitoring:  It currently showing up like this for all users on all sites, but not on Combined or Meta flairs. For example Jon Skeet flair on programmers:    Live flair:


I have a problem. I recently updated to Windows 10. A few days ago I recognized, that if I open a path that has more than 256 chracters it crashes.  I searched a lot in the internet for solutions and I tried a few.  I tried to fix this with gpedit.msc where I can activate the longer win32 paths. Even after a restart, it didn't worked.  I also tried it with regedit. But it didn't work either.  My Windows Version:  Windows 10 Pro (1607) 64bit  Does somebody have any idea?  Thanks in advance.

I updated to the Windows 10 home anniversary edition version 1607 and set LongPathsEnabled to 1 with regedit.exe but the File Explorer doesn't seem to work with long paths still. If you select a long path file and try to rename it, no option will be available. I restarted the computer after making the changes and update.   Is there any way to enable renaming in the File Explorer in the new updated version? Did I miss a step somewhere?


As we know, any proposition can translate to Godel numbers, such as  $$( \exists x)\space (x=sy)$$Its Godel numbers is $2^8 × 3 ^4 × 5^ {13} × 7^ 9 × 11^8 × 13^{13} × 17^ 5 × 19^ 7 × 23^ {17} × 29^ 9=a \space big \space number $  We also could get the character sequence "$( \exists x)\space (x=sy)$" through prime factorization of 243,000,000.  Such as$$243,000,000=2^6×3^5×5^6 $$ $$6\space\space\space\space\space 5\space\space\space\space\space 6 $$ $$\downarrow\space\space\downarrow\space\space\downarrow$$ $$0\space\space\space=\space\space\space 0 $$ So the Godel numbers of "$0=0$" is $243000000$  There are four axioms in Godel's PM system, here are two of them: $$(p\lor p)\subset p$$ $$p\subset (p\lor q)$$ through these two axioms, we can prove "$(p\lor p)\subset(p\lor q)$" is a true theorem.   And these two axioms and a theorem all have a corresponding Godel numbers, can we prove this theorem is true through Godel numbers? If it works, how?  Many people think it is a question unrelated with Mathematica, but what I think is that if Gödel numbers could make a proof, then we can build an Association between characters and numbers in Mathematica, and add some rules, then we can prove propositions. But I’m not sure Gödel numbers can make a mathematical proof.

As we know, any proposition can translate to Godel numbers, such as  $$( \exists x)\space (x=sy)$$Its Godel numbers is $2^8 × 3 ^4 × 5^ {13} × 7^ 9 × 11^8 × 13^{13} × 17^ 5 × 19^ 7 × 23^ {17} × 29^ 9=a \space big \space number $  We also could get the character sequence "$( \exists x)\space (x=sy)$" through prime factorization of this big number.  Such as$$243,000,000=2^6×3^5×5^6 $$ $$6\space\space\space\space\space 5\space\space\space\space\space 6 $$ $$\downarrow\space\space\downarrow\space\space\downarrow$$ $$0\space\space\space=\space\space\space 0 $$ So $243000000$ is the Godel numbers of "$0=0$"   There are four axioms in Godel's PM system, here are two of them: $$(p\lor p)\subset p$$ $$p\subset (p\lor q)$$ through these two axioms, we can prove "$(p\lor p)\subset(p\lor q)$" is a true theorem.   And these two axioms and a theorem all have a corresponding Godel numbers, can we prove this theorem is true through Godel numbers? If it works, how?


I am trying to get the timer working to move the ball. It just isn't working. I am getting alot of errors which i don't yet understand  Can someone tell me what i am doing wrong.  Here is the error that i got.  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at Paneel$TimerHandler.actionPerformed(Paneel.java:30) at javax.swing.Timer.fireActionPerformed(Unknown Source) at javax.swing.Timer$DoPostEvent.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)   Thanks in advance.  import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*;  public class Paneel extends JPanel  {     private int height, width;     private boolean moveLeft, moveRight, moveUp, moveDown;     private Timer timer;     private Ball ball;      public Paneel()      {         TimerHandler timerHandler = new TimerHandler();         timer = new Timer(20, timerHandler);         timer.start();     }      public void paintComponent(Graphics pen)     {         super.paintComponent(pen);         ball = new Ball((double)getWidth(), (double)getHeight());         ball.drawBall(pen);     }      class TimerHandler implements ActionListener     {         public void actionPerformed(ActionEvent e)          {             ball.moveDown();             repaint();         }     } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I'm learning the texturing,give color, uv unwrap and baking through tutorial on youtube.  Somehow i got this error "no active image found in material slot"  ( link 1:  ) ( link 2:  )  tried to solve it by reading forum but still cannot understand what does it mean by material slot, let alone to fix it.  what did i do wrong? need help. version used: 2.8

I followed the guide here:   I unwrapped my UV, created a new image, created an Image Texture node and selected my new image with that, and hit bake. I then receive the error in the title. Here is a screenshot of my view:   I'm definitely doing something wrong, hopefully one of you can point out what that is.


I have a Microcontroller with a DAC output of 0-3.3V. What external circuitry can I use to convert it into a 4-20mA current transmitter.

I've got an MCU with a 3.3V DAC onboard and I'd like to convert the 0-3.3V signal to a 4-20mA output. Any ideas on how to do this?


I remember firefox used to store search engines in a XML file. Google is annoying because it automatically uses my home language and it often messes with my search results, since I most often search for programming-related questions.  Google.com/ncr is a redirect, but where can I change this?

Possible Duplicate:          I am currently working from Germany. From Firefox, if I give something to search in the Google search box in the browser, it is automatically taking me to google.de, and is returning results which is of no use for me.   Is there any chance, that I can change the default to google.com or google.co.in or google.co.uk, something like that which gives me English results?


Problems:    footnotes are not filed with info from *.bib instead only the cite key is shown no bibliography shown   I use texmaker on iOS with The MacTeX-2014 Distribution.  quick build: LaTeX + Bib(la)tex + LaTeX (2x) + dvips + ps2pdf + viewpdf As bib file I use the example bib delivered with biblatex    Here my code:  \documentclass[12pt, oneside]{Thesis}  \usepackage[%     backend=biber,%     style=verbose-ibid% ]{biblatex}  \addbibresource{biblatex-examples.bib}  \begin{document}  Lorem ipsum dolor sit amet, consectetur adipiscing elit.\autocite{aristotle:rhetoric}  \printbibliography  \end{document}     What I noticed, that no *.bbl is being created.  I don't know how to fix this am trying for days reading through manuals and stack exchange but I'm stuck here...  Solution to my problem: I changed it "/usr/texbin/biber" to "/usr/texbin/biber" %.bcf in the texmaker preferences

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


I need to query all the related children of an object, the connection is via a lookup relationship.  Query as follows to illustrate:  SELECT (SELECT Id FROM Orders)  FROM Invoice__c   Error message:     sObject type 'Invoice__r' is not supported. If you are attempting to   use a custom object, be sure to append the '__c' after the entity   name. Please reference your WSDL or the describe call for the   appropriate names.   What am I doing wrong?

SELECT      Id,     CurrencyIsoCode,      ExpirationDate__c,     (SELECT           Id,          Regional_Starting_Price_2__c       FROM           SBQQ__QuoteLine__c)  FROM      SBQQ__Quote__c   WHERE      Id ='quote_Id'


I am trying to use the tensorflow-gpu, however tensorflow only supports CUDA 10.0 and not 10.1. It seems that only CUDA 10.1 is available from the apt repository provided by nvidia. I have searched in vain for a way to install CUDA 10.0 on my Ubuntu 18.10. It does seems possible on Ubuntu 18.04.  How do I install CUDA 10.0 on Ubuntu 18.10?

I need to use CUDA for work and have upgraded Ubuntu without checking (my bad) whether CUDA supports Ubuntu 18.10, turns out .  The last supported version is Ubuntu 18.04.5. When do you think CUDA will support Ubuntu 18.10 ? And if it'll take a while, what would be the best way to downgrade my version to 18.04 ?  Thanks for your time.


how do I know which path exactly super() is going to take in the MRO?

What's the difference between:  class Child(SomeBaseClass):     def __init__(self):         super(Child, self).__init__()   and:  class Child(SomeBaseClass):     def __init__(self):         SomeBaseClass.__init__(self)   I've seen super being used quite a lot in classes with only single inheritance. I can see why you'd use it in multiple inheritance but am unclear as to what the advantages are of using it in this kind of situation.


I have data on GDP growth as a dependent variable and growth in main production sectors of Pakistan such as mining, electricity, communication, manufacturing and electricity. I am supposed to run a regression on it. Is there any difference between multiple regression and multivariate regression? If so, than what is it?  Which is suitable for my data?

Are multiple and multivariate regression really different? What is a variate anyways?


Such a basic thing I can't find anywhere in google. I just need to re login as another user, without having to annoyingly logout. Logout closes my putty terminal, and I have to relaunch and reconnect again

Coming from Mac OS X, there is a possibility for every ordinary user to open Terminal and type in 'login' to change to a different user account.  When I do this with Ubuntu, it provides the following error message:  login: Cannot possibly work without effective root   Is there any way to remedy this?  Which file do I need to edit and with what to enable the use of this command (even for a standard user)?


I wrote a paper a few months ago, which I submitted to a journal and is currently under review. My field is mathematics.   Lately I have been thinking about a few things with a colleague and we came up with a small project which uses the results of my paper. The new paper is already written, and we are planning to submit it to a journal (not the same one).   The results from my paper, while obviously original, are not unexpected, and they extend previous (published) results to more general situations. This means that, at least for experts, the results themselves should be correct, so it's not something suspicious.   Is it acceptable to submit our new paper and cite the relevant results from my previous, still under review, paper? I don't think I want to wait for acceptance since it could still take a few more months and job application time is getting closer.  EDIT: I forgot to mention that my paper is available online, both on my home page and the arXiv.   EDIT: In  there is a somewhat similar situation. I think mine is different in two aspects:  1) the fields, and hence the common practices, are generally different. 2) the second paper in question is with a second coauthor. It's out of the question to consider merging both papers into one, for example.

I am currently writing 2 conference papers. One is highly quantitative in nature and the other is absolutely qualitative in nature. I am submitting both papers to conferences having deadlines in the next couple of months.  The papers present results on 3 different research questions on the same topic and are highly related with each other. You could argue that paper A + paper B together present a holistic view of the answer to these research questions. Individually, paper A and paper B show a different side to the problem since you generally get alternate points of view from quantitative and qualitative works.   Since the papers and their results are highly interrelated, there exists a compelling reason for me to ensure that they cite each other. I have seen  question and  question which are also highly related to my question. However, my question is different enough, in my opinion to warrant a separate question.    How should I cite these papers? (one paper is going to be in APA style and the other will be in ACM style) Does it make good sense to contact the Associate Chairs of these conferences for further clarification? The most important question for me is, is this ethical? Does it not break the double blind review system? I am ready to not cite these papers if that is the case.   I am having conversations with my adviser about this but just want some broader perspective from different disciplines if I am somehow missing something.


I am implementing a fragment in a navigation drawer menu. I want to read the content of the edit text on clicking a button and display the read content in a text view. But, I am getting the following error: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View    Fragment class:   public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {      editText = (EditText) getView().findViewById(R.id.id_editText);     button = (Button) getView().findViewById(R.id.id_button);     textView = (TextView) getView().findViewById(R.id.id_textView);     button.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             String Name = editText.getText().toString();             textView.setText(Name);         }     });      return inflater.inflate(R.layout.fragment_chat, container, false);  }   Fragment xml  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#566D7E" tools:context="com.example.jr.mybluetoothchat.ChatFragment">   <EditText     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:inputType="textPersonName"     android:text="Enter Text"     android:ems="10"     android:layout_alignParentTop="true"     android:layout_centerHorizontal="true"     android:layout_marginTop="90dp"     android:id="@+id/id_editText" />  <Button     android:text="Click"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_below="@+id/id_editText"     android:layout_centerHorizontal="true"     android:layout_marginTop="43dp"     android:id="@+id/id_button" />  <TextView     android:text="Entered Text"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_below="@+id/id_button"     android:layout_alignStart="@+id/id_editText"     android:layout_marginStart="43dp"     android:layout_marginTop="91dp"     android:id="@+id/id_textView" />     Content Main xml      <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/id_content_main"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="#BCC6CC"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     app:layout_behavior="@string/appbar_scrolling_view_behavior"     tools:context="com.example.jr.mybluetoothchat.MainActivity"     tools:showIn="@layout/app_bar_main">   </RelativeLayout>   Main Activity  public boolean onNavigationItemSelected(MenuItem item) {         // Handle navigation view item clicks here.         int id = item.getItemId();          if (id == R.id.nav_home)         {             Toast.makeText(this,"Home",Toast.LENGTH_SHORT).show();         } else if (id == R.id.nav_chat)         {             Toast.makeText(this,"Chat",Toast.LENGTH_SHORT).show();             FragmentManager fragmentManager = getSupportFragmentManager();             FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();             ChatFragment chatFragment = new ChatFragment();             fragmentTransaction.replace(R.id.id_content_main,chatFragment);             fragmentTransaction.commit();         } else if (id == R.id.nav_invite)         {             Toast.makeText(this,"Invite",Toast.LENGTH_SHORT).show();         }          DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);         drawer.closeDrawer(GravityCompat.START);         return true;     }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Let $ f_n :X \rightarrow R $ be sequence of continuous function on complete metric space $(X,d)$, which convergence pointwisely to $ f: X\rightarrow R  $ mean that $ f_n(x)\rightarrow f(x)$ $ \forall_x \in X$      I have to prove that $\forall \epsilon$  $\exists n$ $\exists V\neq\emptyset$, $ V \subset X$ , so that $|f(x)- f_m(x)|<\epsilon $ for $x\in V$, $m>n$ and $V$ - an open set.    Fortunately I managed to do it using some inequalities and triangle inequality, but I also have to prove that the assumption of the complete metric space is necessary here. I have a hint that I should set $Q$ in a series, use $(Q,d_e)$ as a space then set a base $B_1,B_2 ...$  in $Q$ and finally define continuous function $f_n : Q\rightarrow\{0,1\}$ that $f_n(q_i)=0$ and $f_n ^{-1}(1) \cap B_i \neq\emptyset$ for $i\le n$.     Honestly I just don't know how to start so every piece of advice will be helpful.

let $ f_n :X \rightarrow R $ be sequence of continuous function on complete metric space $(X,d)$, which convergence pointwisely to $ f: X\rightarrow R  $ mean that $ f_n(x)\rightarrow f(x)$ $ \forall_x \in X$ I have to prove that set of continuity points is dense in $(X,d)$. I did it using Baire theorem, but I also have to prove that assumption of complete metric space is necessary. There is a hint that I should use $(Q,d_e)$ as a metric space to find a counterexample. So I started to think about a function which is uncontinuous in every point. I set $Q$ in a string  $q_{n}$ then take $f(q_{n})=1/n$ and as a function $f_{m}$ take any continuous function(I was thinking about linear, but how to create such?)  such that  $ f_{m}(q_{n})=1/n$ for  $n=1,2,...,m$ Then $f_{m}$ converges pointwisely to $f$. Any hints? Am I thinking correctly?


Depending on my collaborators I use many with my MacBook Pro different videomeeting systems (zoom, google meeting, teams, blackboard, etc). I would like to be able to add a logo during the videocalls and more important, a countdown timer. I know there is not an universal way to do this, since each app has its specifics. Therefore I wonder if I can somehow "overlap" or put on top of my videosignal whatever picture/video I want. I googled a bit but found nothing. Do you know how to do this?

I'm looking for a very simple way to add a watermark to my screen which should be shown whatever I'm doing, is it during a Zoom call, or is it when giving a presentation, or similar (I don't necessarily need it to show during fullscreen mode). The reason is that I want to record my screen using QuickTime Player, and the watermark should be on the video. I know that there are many post-production tools that offer adding watermarks, but I don't want to do any post-production, I want to have everything on screen while recording already. (I also know that there are screen recorders which offer placing a watermark to the end result. I'd rather also avoid using another screen recording software, but if I don't find any other way to do it, then I'm open to a simple, non-pricy alternative to QuickTime Player.)


A paper I am writing is quite figure-heavy, and one of my sections has more figures than text.  Unfortunately, because of this, the figures get spread out through the rest of my paper and even end up on several pages after the end of my text.  I would like to avoid this behavior by making sure the figures all get placed before a certain spot in my paper, towards the end (like my references section).  Is there a command that forces LaTeX to place all the figures not yet placed by a certain spot in the text at that spot in the text?  I wish to emphasize that it is not my desire to use the [H] specifier.  I am just fine with LaTeX positioning my figures for me, I just want them to all be placed before a certain spot in my paper.  Also please note that \newpage and \clearpage are not options for me.  I don't want to force a page break; I would like the subsequent text to follow the figures naturally without a page break between the figures and the following text.  I basically want the float-placing behavior of \newpage without actually making a new page.  Here is a minimum working example to try and explain what I am talking about.  Currently, this code places all the text on the first page interspersed with all the figures, and the two-column wide figure* gets placed on the second page.  What I was is the text of the first section to appear on the first page with as many figures as possible (the normal LaTeX thing to do), and then the second page to get all the leftover figures (the larger figure* in this case) and for the second section's text to appear after that figure and not as a new page, but on the same page as that figure.  \documentclass[twocolumn]{article} \usepackage{lipsum} %used to generate filler text   \usepackage[demo]{graphicx}  \begin{document}  \section{Section with figures} \lipsum[66]  \begin{figure*} \includegraphics[width=\linewidth]{} \end{figure*} Some more text. \begin{figure} \includegraphics[width=\linewidth]{} \end{figure} \begin{figure} \includegraphics[width=\linewidth]{} \end{figure} \begin{figure} \includegraphics[width=\linewidth]{} \end{figure} Some more text yet again. \begin{figure} \includegraphics[width=\linewidth]{} \end{figure} And, yet again, more text. \begin{figure} \includegraphics[width=\linewidth]{} \end{figure}  \section{After figures} I want this text to appear {\bf after} all the figures above, but not simply on a fresh page after the last figure.  I would like it to start running after the last figure.  For instance, if the last figure takes a page, I would like this text to continue right after it such that the figure is on the top half and this text is on the bottom half of the page.  \lipsum[66]  \end{document}

How to influence the position of float environments like figure and table in LaTeX?   This is a general question and should collect useful answers for all users. I hope we can use this as a reference


First: This is not a question for an assignment!  I have an ellipse given by the equation \begin{equation}   \frac{x^2}{2^2} + \frac{y^2}{1^2} = 1 \end{equation} and the intersection point $(0,4)$ of two tangents to this ellipse.  How do I determine the two tangent points to the ellipse for the aforementioned tangents?

The problem I have to solve is:     If tangent lines to ellipse $9x^2+4y^2=36$ intersect the y-axis at point $(0,6)$, find the points of tangency.


Is an airline obliged to refund the cost of a booked flight if the passenger is unable to fly because his tourist travel visa has been rejected? I am interested specifically in some sort of legal or professional obligation governing EU airlines in particular. My specific case is with British Airways.

I'm an Indian. I'm planning to book a journey from Mumbai to Johannesburg, South Africa and back (conference visa). I looked at refundable tickets, while they are priced higher, they give you half your money back, for instance if the to and fro flight costs INR 40,000 they give you INR 20,000 . But this is if you are cancelling for some reason.   What if you have to cancel because your visa application or the transit visa application got rejected. As far as I understand the procedure is :-  a. Buy airline tickets   b. Apply for Visa   c. Wait between 1-6 weeks to get update about your visa application, for both visa and transit visa (although transit visa should be shorter I guess.)  d. If visa is granted then move on to planning other things about the trip.   Now in case, if the visa application fails (for whatever reason ) what recourse does the traveler have ?  Are there any airlines who are better understanding than others about this situation ?  In non-refundable tickets, I guess that all is lost or is there some way to save money there too.   Lastly, I read travel insurance can help in this case. How does travel insurance help in the above scenario ?  Edit :- One of the pre-conditions of getting the visa is   Proof of a Valid Return or onward ticket or purchase of ticket. This is from   and


I want to know what Spatial reference system is most accurate to calculate area? I want to use it for entire world (-180,+180,-90,+90 area in WGS84 system) I have every thing ok I only need to reproject my layer to an accurate SRS and calculate area,Can you help me to find most accurate Spatial reference system for calculate Area entire world?

I have multiple polygons, all located offshore around the UK. I am trying to calculate the areas of these polygons in square kilometres, without splitting them by UTM zone.  Is it possible to do this accurately? I have been using World Mercator, but there are big distortions at this scale. If the polygons were limited to the east coast, say, I would use UTM31N. However, as they are all over the UK waters, I am unsure what to use.  Is there a coordinate system that covers this area? British National Grid does not extend far enough out to sea to be of use.


I was messing around with my sudo file (bad idea), but was trying to get service to start without the use of a passwrd, now i am getting an error:  /etc/sudoers: syntax error near line 34 <<< sudo: parse error sudo: no valid sudoers sources found, quiting....   how can i fix this? i can login with another account, but can't access sudo either...

How do I edit an invalid sudoers file? It throws the below error and it's not allowing me to edit again to fix it.  Here is what happens:  $ sudo visudo >>> /etc/sudoers: syntax error near line 28 <<< sudo: parse error in /etc/sudoers near line 28 sudo: no valid sudoers sources found, quitting


I got a formula: $$ s(b_1) = \sqrt{\frac{1}{n-2}·\frac{\sum{(y_i-\hat{y}_i)^2}}{\sum{(x_i-\bar{x})^2}}} $$ , is this correct? and how can I calculate the standard error of the intercept?  I am leanring R, When I execute the command "summary(lrfit)",it will give result as follow. I am interested how these values calculated...  Coefficients:             Estimate Std. Error t value Pr(>|t|)     (Intercept) 2.341231   1.096730   2.135 0.044170 *   X0          1.615907   0.170735   9.464 3.25e-09 *** X1          0.014385   0.003613   3.981 0.000631 ***

For my own understanding, I am interested in manually replicating the calculation of the standard errors of estimated coefficients as, for example, come with the output of the lm() function in R, but haven't been able to pin it down. What is the formula / implementation used?


I would like to add an addon preference setting to the user preferences for my addon. I would like to have a list there where you can add and remove things (at first only Strings). This sets it up: class AddonPref(bpy.types.AddonPreferences):     bl_idname = __package__      FileName : StringProperty()      presets_List = ["hi", "bye"]      addRemove : EnumProperty(         items = [('one', 'add', ''),                 ('two', 'remove', '')                 ])      def draw(self, context):         layout = self.layout          box = layout.box()         split = box.split()         col = split.column(align = True)                  col.prop(self, "FileName")         row = col.row()         row.prop(self, "addRemove", expand = True)         col.operator("presets.addremove")          for x in self.presets_List:             col.label(text=x)  And now I would like to edit the list with an operator (I already have got the add/Remove Enum and the FileName String properties. Only thing missing: the operator class PresetsADDREMOVE(bpy.types.Operator):     bl_idname = "presets.addremove"     bl_label = "resets func"     bl_options = {'REGISTER', 'UNDO'}      def execute(self, context):         preferences = context.preferences         addon_prefs = preferences.addons[__package__].preferences          presets = addon_prefs.presets_List          if addon_prefs.addRemove == 'one':             presets.append(addon_prefs.FileName)         else:             presets.remove(addon_prefs.FileName)                    return {'FINISHED'}  This operator does work correctly.Though, I have got one big problem. The list is not the same in other blend files. It does not behave as an addon preference "property". So what would I have to do to fix this problem? Thanks for the help! :D

I am trying to create a script that will allow me to generate a list and store it in the blend file. The list starts out blank and then strings get added to the list, resulting in: ["test1","test2","test3"] I create a PropertyGroup Class for the enum, define a new scene property as a CollectionProperty type with access to that enum Class, before appending a new item into the enum: import bpy  class item_set(bpy.types.PropertyGroup):     myItems = []     enums = bpy.props.EnumProperty(name="My Items", items=myItems) bpy.utils.register_class(item_set)  bpy.types.Scene.myItemSet = bpy.props.CollectionProperty(type=item_set)      newItem = bpy.context.scene.myItemSet.add() newItem.myItems.append("test")    I need to be able to add items to the list, save the blend file, re-open the file, run the script again and retrieve the list from the scene. However, the  states:  One thing to keep in mind is that after saving and reloading your blend-file, your new property will have disappeared...    ...To make the values you assigned in a previous session available again, you need to redefine the property. So after reopening the blend-file you need to rerun: bpy.types.Object.myProperty = bpy.props.StringProperty()   I can do the appending into and retrieval of the property values absolutely fine upon an initial run, but as the documentation states, the property is unavailable when trying to view it's contents on a reload of the file (after having run the script, saved and re-opened the file), but I am unsure how to redefine it without clearing all it's values. If I redefined the scene property, it would presumably also need the enum Class to be available, which would currently set myItems back to [] (empty). Do I need to change the way I am initially setting the items in the class or am I on entirely the wrong track with all of this? All I need to do is store a list in the blend file, so if there is a better way please let me know. Thanks. (I would hope, eventually, to be able to store sub lists [["a","b"],["c","d"],["e","f"]], I'm just trying to get normal lists to work first.)


When I wrote  \polylongdiv[style=A]{x^6+x^5+x^4+x^3+x^2+x+1}{x^2+x+1}   I get that there is no reminder.... but the reminder is 1 if I'm right....  I hope is OK to post things like that here...  Thank you.

Original  The remainder provided by polynom.sty is NOT complete (as shown in the following figure).      My Objective  When I was in senior high school, my teacher made the diagram like below. :-)  Thus the final step must show the TOTAL remainder and mark it with L-shaped curve.  NOTE  I am sorry. The previous post I forgot to put back -1/4 in the original position. It have made you confused. Now there is no mistake anymore. :-)      Minimal Code  \documentclass{article} \usepackage{polynom,array} \usepackage[table]{xcolor}   \makeatletter \def\pld@ArrangeResult#1{%     \ifx\pld@remainder\@empty         \@tempcnta\pld@maxcol\relax         \pld@InsertItems@do\pld@lastline             {\pld@firsttrue\pld@PLD{\pld@R{0}{1}}}%     \fi     \ifnum\pld@currstage>\z@         \pld@Extend\pld@allines{\pld@lastline\cr}%     \else         \pld@InsertFake\pld@lastline     \fi     \pld@iftopresult         \def\pld@lastline{\pld@PrintPoly\pld@divisor%         %====================================================================================         \quad\smash{{\color{red}\rule[-6pt]{\arrayrulewidth}{17pt}}}\kern-\arrayrulewidth&}%         %====================================================================================     \else         \let\pld@lastline\@empty         \ifx B\pld@style\else             \def\pld@lastline{\pld@leftdelim\strut\pld@rightxdelim&}%         \fi     \fi     \expandafter\pld@AR@col\expandafter\pld@PLD                            \expandafter\pld@lastline#1+\relax+%     \pld@SplitQuotient     \pld@iftopresult         \let\pld@currentline\@empty         \expandafter\pld@AR@col\expandafter\pld@PLD                                \expandafter\pld@currentline                                            \pld@quotient+\relax+%         \expandafter\pld@AR@col\expandafter\pld@XPLD                                \expandafter\pld@currentline                                            \pld@shadow+\relax+%         \edef\pld@subline{%             \noexpand\cline{\tw@-\pld@maxcol}%             \noalign{\vskip\jot}}%         \pld@Extend\pld@currentline{\expandafter\cr\pld@subline}%     \else         \@tempcnta-\@tempcnta         \advance\@tempcnta\pld@maxcol\relax \advance\@tempcnta\@ne         \edef\pld@span{\the\@tempcnta}%         \ifx B\pld@style           \pld@AddTo\pld@lastline{%             &\multispan\pld@span${}=%             \pld@PrintPolyWithDelims\pld@divisor             \expandafter\pld@IfSum\expandafter{\pld@divisor}{}{\cdot}%             \expandafter\pld@IfSum\expandafter{\pld@quotient}\pld@true                                                              \pld@false             \pld@if \pld@leftdelim                     \pld@PrintPolyShadow                     \pld@rightdelim               \else \pld@PrintPolyShadow \fi             \pld@firstfalse             \expandafter\pld@PrintRemain\expandafter{\pld@remainder}$}%         \else           \pld@AddTo\pld@lastline{%             &\multispan\pld@span$\pld@leftxdelim\strut\pld@rightdelim             \pld@div             \pld@PrintPolyWithDelims\pld@divisor=             \pld@PrintPolyShadow             \ifx\pld@remainder\@empty\else                 +{}%                 \setbox\z@=\hbox{$\displaystyle                   \frac{\let\strut\@empty\pld@firsttrue \expandafter                         \pld@PrintRemain\expandafter{\pld@remainder}}%                        {\let\strut\@empty\pld@PrintPoly\pld@divisor}$}%                 \dp\z@=\z@\box\z@             \fi             $}%         \fi     \fi \expandafter\pld@AR@\pld@allines\relax} \makeatother   \arrayrulecolor{red} \arrayrulewidth=0.8pt \def\strut{\rule[-6pt]{0pt}{12pt}}  \begin{document} \polylongdiv[style=A]{\frac{3}{7}x^9+x^2-\frac{1}{4}}{\frac{9}{5}x^4-1}  \vspace{1cm} \polylongdiv[style=A]{x^4-1}{x^2-1} \end{document}


I need to phrase a title, and I am not sure what the best option is: Detect visited page without analyzing its features or  Detect page visited without analyzing its features

I'm proof-reading a thesis by one of my friends and there's some recurring construct which I always mark as false but I'd like to check with you.    In the comments I was told that the example I provided didn't really match the sentence I found in the thesis therefore I'm adding the actual sentence from the thesis. I'm sorry for the confusion; I'm not a native speaker/in the field of language and thus didn't really see the difference.   So here we go. Which of the following is preferable?        To illustrate the necessity of some steps a bad representative of the taken radiograms is used.     To illustrate the necessity of some steps a bad representative of the radiograms taken is used.        I'd use the latter because it is closer to "[...] of the radiograms taken previously is used".    Original example  In the English language, one can use the (past) participle of a verb as an adjective, this allows for example to express that I'm creating a scrapbook using the pictures that I have taken previously.     What's the correct way to state this?         I'm doing a scrapbook from the taken pictures.     I'm doing a scrapbook from the pictures taken.        I'd use the latter because it is closer to     I'm doing a scrapbook from the pictures taken previously.


I have Windows 8.1(64-bit), i want to dual boot it with ubuntu 13.10(64bit),  I shrunk the C: drive by 20 GB. created a bootable pendrive and booted through it    when i clicked on "something else", the 20GB data i have partitioned is showing "unusable"    i tried using gparted its showing "it is not possible to create more than 4 primary partitions"  please help, i am new to ubuntu  my system specs: core i3(3rd gen), 4GB RAM, 500GB HDD, Dell inspiron 14r  I do not have enough reputation to upload images so i have given the links.

I would like to install Ubuntu alongside Windows 7 on a HP G62 Notebook. Although I have installed  Ubuntu in a dual-boot many times before, I found out that this model has already four partitions.    Partitions:   SYSTEM (NTFS, 199MB, used 66.59MB) Partition without any tag: NTFS (579GM, used 129GB)  RECOVERY (NTFS 16.74 GB, used 2.42GB)  HP_TOOLS (FAT32, 103.34 MB, used 13.23MB)   Since I am not an expert with partitions I would like to get advice on how to do this.  My first idea is this one:   Free some space from /dev/sda2 (I don't know if could also free some other space) delete the HP_Tools partition (I have already created a backup) create an extended partition with the free space in #1 containing three parititions: swap (1gb); / (EXT4, 30GB);  /home (EXT4, 120GB)   Another option is to use wubi instead.  What do you think? Is there any other way to achieve this?  PS: I really think this HP policy of using 4 partitions is not a coincidence  PS: I tried using gparted from the live CD and I got a warning message saying that if I freed some space from /dev/sda2 I could create serious issues in the system


In an analysis class I'm teaching, I stated a different definition of the Riemann integral, which I thought was equivalent to the usual one.  But now I'm not so sure.  Notation: let $f : [0,1] \to \mathbb{R}$ be a bounded function.  A partition $\pi$ is a finite sequence $\pi = \{0 \le x_0 \le \dots \le x_n \le 1\}$.  The mesh $|\pi|$ is defined as $\max_i |x_i - x_{i-1}|$. For a partition $\pi$, define:   the upper sum $U_\pi(f) = \sum_{i=1}^n \sup_{x \in [x_{i-1}, x_i]} f(x) \cdot (x_i - x_{i-1})$ the lower sum $L_\pi(f) = \sum_{i=1}^n \inf_{x \in [x_{i-1}, x_i]} f(x) \cdot (x_i - x_{i-1})$ the right sum $R_\pi(f) = \sum_{i=1}^n f(x_i) (x_i - x_{i-1})$.   A standard definition of Riemann integral (see, e.g., Baby Rudin) goes as follows:     $f$ is Riemann integrable, with integral $I$, iff $\inf_\pi U_\pi(f) = \sup_\pi L_\pi(f) = I$.   The definition I gave, which here I'll call "right Riemann integrable", is this:     $f$ is right Riemann integrable, with integral $I$, iff for every $\epsilon > 0$ there exists $\delta > 0$ such that for every partition $\pi$ with $|\pi| < \delta$ we have $|R_\pi(f) - I| < \epsilon$.  (In other words, $\lim_{|\pi|\to 0} R_\pi(f) = I$.)   The idea is to mimic the "right endpoint rule" definition given in introductory calculus classes.  Now it's well known that $f$ is Riemann integrable iff it is continuous almost everywhere, in which case the Riemann integral equals the Lebesgue integral.  I can prove that if $f$ is continuous almost everywhere, then it is right Riemann integrable, and the right Riemann integral equals the Lebesgue integral.  Hence, every Riemann integrable function is right Riemann integrable, and in this case all integrals agree.  What I can't prove is the converse.     Is it true that every "right Riemann integrable" function is Riemann integrable?   I thought of doing something like the following: given a partition $\pi$, for each $i$ let $t_i \in [x_{i-1}, x_i]$ be a point at which the supremum $\sup_{x \in [x_{i-1}, x_i]} f(x)$ is almost attained.  Then refine $\pi$ to a new partition $\pi'$ by throwing in all the $t_i$.  I would like to say that $R_{\pi'}(f)$ is then close to $U_\pi(f)$.  But if $t_i$ was very close to $x_{i-1}$ then the effect of throwing it in to $\pi'$ may not affect the right sum very much.

Definitions  Suppose $P\colon a=x_0<x_1<\dotsb<x_n=b$ is a partition of $[a,b]$. Let $\Delta x_k=x_k-x_{k-1}$ and $\lVert P\rVert$ denotes $\max_{0<k\le n}\Delta x_k$.  The Cauchy integral of a function $f$ on closed interval $[a,b]$ equals to $I$ if and only if for each $\epsilon>0$, there's some $\delta>0$, for each partition $P$ of $[a,b]$ such that $\lVert P\rVert<\delta$, we have $\left\lvert\sum_{k=1}^nf(x_k)\Delta x_k-I\right\rvert<\epsilon$.  Problem  If $f$ is bounded on $[a,b]$ whose Cauchy integral equals to $I$, then $f$ is Riemann-integrable and $\int_a^bf=I$.  Background  It's an exercise from our calculus(analysis) problemset book, and there's a hint: consider the partitions whose $x_k-x_{k-1}$ is a constant for different $k$'s, and try to estimate the Riemann sum for each of these partitions through the Cauchy integral.  I have no idea about such estimation. After drawing some pictures, I discouraged. I googled on the Internet and found an . I realized that it's a quite different approach and with some advanced techniques (such as the analysis of a positive measure set -- discontinuities). I hope there will be some simpler approachers, just as the hint says. I need a more detailed hint, or a solution. Can anybody help me? Thanks!


I would like to know why it display only tomate and not both words.  $ a="tomate" ; echo $a tomate $ (a="poivron" ; echo $a) poivron $ echo $a tomate

I want to set a variable if my condition is true on my Ubuntu system.  This proves that my if-statement is correct:  $ (if [ 1 == 1 ]; then echo "hi there"; fi); hi there   This proves that I can set variables:  $ a=1 $ echo $a 1   This shows that setting a variable in the if-statement DOES NOT work:  $ (if [ 1 == 1 ]; then a=2; fi); $ echo $a 1   Any ideas why? All my  indicates that it should work like this...


Would it make sense to use KL-Divergence to measure the difference in predictions versus ground truth for a regression problem? I've tuned four models and serve the average as a prediction in the production environment. I plotted the ecdf and kde for each model's prediction versus the ground truth, and I want a way to capture the closeness of the distributions in one number that I can track over time. I use an evaluation metric for MAE for assessing performance, but I also wanted a way to capture how similar or different the shapes of the distributions for prediction and ground truth are in a single number.

Does the cross-entropy cost make sense in the context of regression (as opposed to classification)? If so, could you give a toy example through TensorFlow? If not, why not?   I was reading about cross-entropy in  by Michael Nielsen and it seems like something that could naturally be used for regression as well as classification, but I don't understand how you'd apply it efficiently in TensorFlow since the loss functions take logits (which I don't really understand either) and they're listed under classification


In a query selection I would like to display the result whether a field satisfies a condition.   Imagine that I have a table called stock. This table has a column that tells me the number of each item in the stock.  What I would like to do is something like this:  SELECT      stock.name, IF (stock.quantity <20, "Buy urgent", "There is enough") FROM stock   Is there any function in SQL Server to do that?

How do I perform an IF...THEN in an SQL SELECT statement?  For example:  SELECT IF(Obsolete = 'N' OR InStock = 'Y' ? 1 : 0) AS Saleable, * FROM Product


I am talking about a "Page(s)" and "Timeline(s) as defined by the following link:    I've registered a personal account (standard account; "Timeline"). I don't need a personal account. And preferred to only have my name as a "Page" due to the extra features (and due to "commercial" use).  Now, suppose that I .  Would I still need a personal account ("Timeline") or is it possible to only have a "Page" account?

In the past, Facebook used to let business create pages or apps without a personal account. This account created in the page/app creation process had limited capacities and could be switch to a full personal account after—if needed (irreversible).  But today, if I want to create a page for a new brand, without having a Facebook account, it seems I can’t anymore. And I can’t find any communication from Facebook regarding this change.   Anybody has any info? Is it still possible (in a new way maybe)?


So I'm looking to start a new build, using some of the parts from my old PC.  One thing I wanted to do was try out Intel (current is AMD) and to have two GPUs.  This build has Oculus Rift in mind.  The question I have is in regards to the GPUs.  Obviously, having two of the same would make the most sense, but the primary reason I want two is ultimately to have as many video outputs as possible (I only have two right now, and would like 3 or 4, I do a lot of multitasking).  If I were to go with two different video cards, does it matter how good the second one is?  I would probably get one very powerful one, capable of running all the games I'd want to play on it's own if necessary, and the second one I really just need for outputs.  Would this effect the performance of the two as a unit?  Perhaps this is the completely wrong way to go about this, I'm not sure.  This is only my second ever build, I'm still very much a novice.  Hopefully if there is a better solution, someone can let me know!  tl;dr: I need 3 to 4 video outputs, but only need 1 good video card.  If I need a second (to achieve the number of outputs I want), does it have to be a good one?  NOTE: After some googling, it appears I am not fully aware of the difference between a GPU/Graphics card.  Maybe someone could shed light on this in the context of my situation.  Thanks!

I was told I can ask computer hardware related questions here. I currently have two Geforce GTX 470s that are SLId.  I have dual monitors and a TV plugged in. The monitors are on one card and the TV is on the other.  My question is, would it make more sense to buy one good graphics card like the  or two decent cards that are SLId together like   This is strictly a gaming rig and the occasional programming / photo shop user.  My main concern with one card is, will I still be able to have 3 outputs? The two monitors are DVI and the TV is an HDMI mini.  I haven't decided on a motherboard CPU combo yet if that makes any difference.


I am making a dictionary/translator but I want to let the user write, 'hello' and 'Hello' and still receive the result 'Ronne'.  print ("English to Exrian Dictionary") search = input("Enter the word you would like to translate: ")  if search == "Hello":     print ("Ronne") elif search == "Bye":     print ("Zio") else:     print ("No matches were found for '" + search + "'")

How can I do case insensitive string comparison in Python?  I would like to encapsulate comparison of a regular strings to a repository string using in a very simple and Pythonic way. I also would like to have ability to look up values in a dict hashed by strings using regular python strings.


I want to know the exact bloodline of aragorn wether being mixed with elves or edain because it is not clear in the books.

I know Aragorn is descended from Elros the half-Elf, and from what I've been able to find, there are somewhere between 64 and 99 generations separating Elros from Aragorn.  I can't do the math, I don't know how many generations actually separate them, and I don't know if Aragorn had any other Elves in his family tree.    So how much Elven blood flows through Aragorn's veins?  What percentage of his total DNA comes from Elves?


I want to give the "italic" button back the "styling" behaviour, rather than the spammy <em>. I want that button to print a <i> tag, rather than <em>.  <em> tags became popular to spam search engines, but now I want it to be what it is: a styling feature to e.g. change the voice of the narration.  I've got a script to create my own styles, so I'll include the <em> tag there, to use it as what it REALLY is: EMPHASIS. I'll then style it accordingly (big, bold).  So now my problem is, I'm sure I can find the setting / string / parameter to hack in JavaScript, but... Do you know a way to hook it from / for WordPress?

For example,  Did you know that hot was used to mean " sexually attractive" as long ago as 1450? (Though it seems that in earlier use, it more commonly meant "sexually attracted".)   The second use of  in the above is correct: I want to emphasise the suffix -ed. However, the first use is incorrect. I want to use italic type to indicate the “use/mention distinction”. This is the proper preserve of the  tag. But WordPress autoconverts  to . Is there any way to get around this?


Trade electricians often work on live household circuits carrying 120V AC.  I've gotten shocked by accidentally touching such hot wires often enough to recognize the 60Hz AC buzz.  Fortunately, human skin has pretty high resistance: even when drenched in sweat, mine measures in the hundreds of kΩ.  If we assume a lower-end skin resistance of 120kΩ, then through unbroken skin 120V service will only pass 1mA through my body.  Conventional "wisdom" says that working in a main panel calls for more caution because one might make contact with 400A service, as compared to the 20A one is facing working at the end of a typical circuit.  But this sounds incorrect:  If skin has significant enough resistance that at 120V only milliamps flow through it, then is a 200A service supply any different from a 20A breaker in terms of the experience of touching a hot wire (holding all else equal)?  Does ground contact matter in terms of skin contact with residential electric service? E.g., at 1mA, 120V, and half a 60Hz cycle would an insulated 20-gallon vat of saline take enough charge to slow the current significantly relative to the current it would receive if it were connected to the ground?

Related:        From what I've heard:   110 V (or 220 V; household voltage pretty much) is dangerous (i.e. can kill you) I think there's consensus on this, no need to try :) 60 V (old telephone lines) is supposedly dangerous (never tried, only heard it once... probably won't try)   From what I know first-hand:   9 V is not dangerous (I've put a 9-V battery on my tongue, nbd... actually it kinda hurt!) 1.5 V can indeed be quite shocking with enough current (fell for one of those "Do you want some gum?" tricks back in high school...), but they sometimes do not use 1.5 V with the low amperage levels, some use a DC motor to vibrate and complete the trick.   So I guess there's two parameters here, voltage and current... but are there rough numbers on how much of each (or in combination, which I guess would be power) would be considered hazardous?  No old telephone lines have always been 48vDC well at least since from 1950s, if your skin is wet you can feel it slightly, like on your forearm.  Now the ring voltage is 90-110vAC with a 2 on 4 sec off cycle (USA).  It will ring your bell but good, should you be touching the wires when someone calls. The ring voltage rides on top of the 48vDC, so its present on the same two conductors that the voice voltage(DC) is on. Luckily it's 4 seconds off will give you a chance to get off the conductors with a scream (of pain).


i was export my 3d model from blender using .fbx file and i am facing a problem. i can use the material in unity but not work properly. material look like disoganized.

I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender?


trigger DTrigger on D__c (before insert,after update) {      Map<Integer, String> firstMap = New Map<Integer, String>();     firstMap.put(100, 'lokesh');     firstMap.put(101, 'lokeshA');     firstMap.put(102, 'lokeshB');     firstMap.put(103, 'lokeshC');     firstMap.put(104, 'lokeshD');      Map<String, Map<Integer, String>> secondMap = New  Map<String, Map<Integer, String>>();      for(Integer varl : firstMap.keySet()){         String valu = firstMap.get(varl);          if(!secondMap.containsKey(valu)){             secondMap.put(valu, New Map<Integer, String>());         }else{             secondMap.get(valu).add(firstMap);         }     } }

I am trying to add map of map values, I have to intialize the map key first and then try to add value later. Below is the exact logic i am trying to achieve.  Map<string,Map<string,List<string>>> finalMap = new Map<string,Map<string,List<string>>>();  Map<string,List<string>> subMap = new Map<string,List<string>>(); submap.put('One',new list<string>{'One','TWO'});  finalMap.put('SUB1',new Map<string,List<string>>());  //Do some logics and finally try to add the values with the key  finalmap.get('SUB1').put(subMap); //Error as stated below  System.debug(finalmap);      ERROR :Method does not exist or incorrect signature:   [Map<String,List<String>>].put(Map<String,List<String>>)


Let $p(n)$ be the number of partitions of $n$.  Prove that growth rate of $p(n)$ is superpolynomial, meaning that for every given $k$ there is $p(n)= \omega (n^k)$.

I'm currently a Combinatorics student trying to parse through this solution. I do not understand the proof currently. Any help understanding it is greatly appreciated.    Question Let the number of partitions be given by the function $p(n)$, i.e. the number of ways of writing the integer $n$ as a sum of positive integers. Prove that that if $g$ is any polynomial function in $n$, then there exists an integer $N$ such that $g(n)<p(n)$ for all $n>N$. Do not use the asymptotic Hardy-Ramanujan formula.    Provided Proof.    Enough to show $n^a<p(n)$ for fixed positive integer $a$. (This is just saying that we want to show $p(n)$ grows faster than any degree polynomial of $n$, right?) We have that $(i_1,i_2,\ldots,i_{a+1},1^{n-i_1-\cdots -i_{a+1}})$ is a partition of $n$ as long as $i_{a+1}\leq i_a\leq \cdots i_1 \leq \lfloor\frac{n}{a+1}\rfloor$. (I really don't understand this step. What is this partition? Of the coefficients or terms of polynomial $p(n)$? And how do we know this is $\leq \lfloor\frac{n}{a+1}\rfloor$?) The number of partitions $n$ of this form is multiset binomial coefficient $$\left(\dbinom{\lfloor \frac{n}{a+1}\rfloor}{a+1}\right)=\frac{\lfloor\frac{n}{a+1}\rfloor(\lfloor\frac{n}{a+1}\rfloor+1)\cdots(\lfloor\frac{n}{a+1}\rfloor+a-1)}{(a+1)!}$$ (I'm assuming that if I can understand (2.) then I can understand this line) This means $p(n)>\left(\binom{\lfloor \frac{n}{a+1}\rfloor}{a+1}\right)$ for all $n>0$. Since $a$ is constant, the given fraction grows with order $n^{a+1}$, which means $p(n)>n^a$ for $n$ sufficiently large. (Why does it grow with order $n^{a+1}$?)   Thanks all again in advance!


When I wish someone a good thing, I would say: God protects you. But I have found all expressions that pray to God use verbs without "s". Now I need to know what is the correct one. God protects you and helps you.

I was wondering why this expression is not “God saves the Queen”. According to my very first English teacher, when the subject is he, she or it, “to save” is conjugated “he/she/it saves”.  Is it an exception?


I recently made a typo in a cd command and found that I was not only able to cd to /, but also if I ran the command:  cd //   For instance (I could put stuff after it such as files and folders in the / directory and it would still show the same // as well as actually go to the right places), I would be able to actually go to // which is seemingly acting the same as / and this appears to be the only difference:  <username>@<computer-name>://$   Apart from pwd also showing the // in the output.  So why is there a / and a //? What is the difference? Is this a bug or is there some purpose for having both of them? I am running Ubuntu GNOME 16.04.1 with GNOME 3.20.

I mistakenly typed cd // instead of cd /. To my surprise, current directory showed up as //.   What is that directory? Why does it exist?  apple@snipped $ pwd /home/apple apple@snipped $ cd / apple@snipped $ pwd / apple@snipped $ cd // apple@snipped $ pwd // apple@snipped $ cd /// apple@snipped $ pwd /


I have a Turkish “special passport” which exempts me from the requirement to hold a visa for the Schengen area.  My arrival date is: 13 June 2015, 11.00am My departure date is: 10 September 2015, 11.55pm  Do these dates exceed the limit of stay in the Schengen area?

I have searched the web a lot and could not find an answer that fits my situation. Here are two links that are quite contradictory:       My situation:  I've visited Portugal in December 2012 for 29 days on a Schengen visa valid from December 1st, 2012 to February 1st, 2013 for research purposes (I am a Ph.D. student). I want to visit Sweden from February 10th, 2013 to May 10th, 2013 (89 days). I have applied for a Schengen visa again (for research). How will the 90/180 rule work in my situation?


Gnome-Software in Ubuntu 16.04 is partially loading, and I can't install software and only appears the core package in software installed, and I can only find the software of the core packages.  Does anybody know how to fix this?

After installing Ubuntu 16.04, the Gnome Software Center was working.  I then started to have issues with it freezing.  I decided to uninstall it through the terminal, and then reinstall it through the terminal.  If I try to open the software through Unity, the icon opens, but after a time disappears.  If I type in gnome-software in the terminal, the command just hangs until I kill it.  I've tried uninstalling and reinstalling using various commands I've found on this forum and others, but nothing will successfully reinstall the software.  All other software seems to be working fine.  Can anyone help?  Thank you.


I have upgraded my Ubuntu 16.04 to Ubuntu 18.04 and now the print screen is not working.

It works on Ubuntu 17.04 with Unity, however neither via upgrade or a fresh install, does the screenshot keyboard button work on Ubuntu 17.10 with GNOME shell.   Can anyone tell me why or how to fix it?


True of false? Every subgroup of a simple group is itself simple. May i also get some examples on this as well to verify my answer.

True or False. Every subgroup of a simple group is itself simple.  Our solution:The statement is false.  As a counter example, let $G$ be equal to the group of even permutation of $10$ letters and $H$ is the subgroup of $G$ which is $$H=\{e,(12)(34),(56)(78),(12)(34)(56)(78)\}.$$ $H$ is not simple since $K=\{e,(12)(34)\}$ is also normal in $H$.


I do not pretend to "demolish" the Darwinian theory of biological evolution and the "survival of the fittest", that's far from my intention. I have this doubt because of the fact that humanity, as Homo sapiens sapiens, extinguished the Homo sapiens neanderthalensis because we were fitter to survive.  Please consider this question as if the humanity hadn't appeared yet (because we have domesticated rabbits).   Thanks in advance.  Edit: I have assumed that wolves and rabbits (or hares, maybe) live in the same ecosystem.

I've often heard that a population, human or otherwise, will continue to grow as long as there is food available (assuming nothing else is killing them off).  It makes sense: if you have food you can live, and if nothing is hunting you you'll survive to reproduce.  I recently designed a piece of software to simulate an ecosystem, with groups of creatures of different species eating and hunting and reproducing alongside each other.  It was very simplified (each animal had simple attack/defense/speed/stealth values, etc), but something became rapidly apparent: in every simulation the predators overwhelmed the prey, reproducing until their numbers could not be sustained by the herbivores, and leading to an inevitable die-off of both groups.  I could delay the die-off by adjusting different values and initial population counts, but it would always happen eventually.  The predators would eat and breed and eat and breed until the entire system collapsed.  At first I thought it was just the product of my over-simplified system, but it got me thinking: what prevents predators from overpopulating in real life?  It seems like the natural tendency would be for (for example) the sharks to continue breeding and eating until all the fish are gone, or the wolves to eat all the deer, etc.  Obviously some predators have predators of their own, but that's just putting off the question: if the hyenas don't overpopulate because the lions eat them, then what's keeping the lions from overpopulating?  I can't come up with anything that would prevent the apex predators from growing too numerous, then fighting each other over a dwindling prey population, then dying off entirely when there was no more food to find.  Do predator populations self-regulate to prevent putting undo stress on their prey populations?  Or is there some other mechanism to keep the predator hierarchy from becoming top-heavy?


I have the following code:  \documentclass{article} \usepackage{tikz}  \begin{document}  \begin{tikzpicture} \clip (-5,-5) rectangle (5,5); \draw[help lines] (-5,-5) grid (5,5); \draw[->] (-5,0) -- (5,0) node[right] {$x$};  \draw[->] (0,-5) -- (0,5) node[above] {$y$};  \draw[<->,domain=-5:5,smooth,variable=\t]     plot (\t, {pow(\t,2)}); \end{tikzpicture}   \end{document}   Is it possible to add arrowheads to the ends of the parabola after it has been clipped?

This question is kind of the opposite of . Is it posisble to clip a path but let the line caps lokk as the path would end at the clipping area.  basic example  \documentclass[border=10mm]{standalone}  \usepackage{tikz}  \tikzset{line/.style={blue,line width=10mm}}  \begin{document} \begin{tikzpicture}     \draw (0,0) grid (5,5);     \clip (0,0) rectangle (5,5);     \draw [line] (0,1)  -- (5,4); \end{tikzpicture} \end{document}   With the output    but the desired output is    I want to clip a plot in this way and I cannot specify it in a way that the domain equals the clip box, so I must use a clip box, but I don’t want to loose the regular line caps …  more realistic example  Case 1: I want to set the yrange of the two plots according to the y axis, but gnuplot writes all data points to the table file, even if they are out of range (they are marked with an o in a third column, whereas i indicates that the point is in range). It is possible to set xrange in a way that the plots start at the same y value but this is a lot of try and error, since the xrange mus be found individual for every plot.  Case 2: I got a curve that is define by some points an the first and the last of them must be roots, i.e. y = 0. The problem is that the second root lies out of the axes bounds … I guess I could use the (coord)!pos!(coord) syntax but this is try and error again to let this curve end at the same x value as the plots.  \documentclass[border=10mm]{standalone}  \usepackage{tikz}  \tikzset{line/.style={blue,line width=10mm}}  \begin{document} \begin{tikzpicture}     \def\yzoom{50}% needed to prevent overflow     % Axes     \draw [<->] (0,0.07*\yzoom) |- (10.5,0);     % Clip     \clip (0,0) rectangle (10,0.07*\yzoom); % CASE I     % Plots     \draw [line width=2pt,line cap=round]         plot [smooth,raw gnuplot, id=\jobname-plot] function {%             set xrange [1.4:10];             set yrange [0:0.06*\yzoom];             set samples 100;             f(x) = \yzoom*(0.26/(x-1) - 1/(x**2));             plot f(x);         };     \draw [line width=2pt,line cap=round]         plot [smooth,raw gnuplot, id=\jobname-plot] function {%             set xrange [1:10];             set yrange [0:0.06*\yzoom];             set samples 100;             f(x) = \yzoom*(0.28/(x-1) - 1/(x**2));             plot f(x);         }; % CASE II     % Curve, defined by three points.     % P1 and P3 must have y=0     \draw plot coordinates {(2,0) (5,2) (18,0)}; \end{tikzpicture} \end{document}   Unclipped output:    Clipped output but the round caps are missing …


I've got a class with a JTextField as a instance variable, that I pass a reference to in the class's constructor.   Problem is: I keep getting a NullPointerException if I try to getText() or setText(). I fee like I passed it properly but I'm obviously doing something wrong. Anyone have any idea what I should do to fix it?  code below:  public class GraphicCalculator implements Runnable {     private JFrame frame;      @Override     public void run()     {         frame = new JFrame("Calculator");         frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);          createComponents(frame.getContentPane());          frame.pack();         frame.setVisible(true);     }      private void createComponents(Container container)     {         GridLayout gl = new GridLayout(3,1);         container.setLayout(gl);          JTextField out = new JTextField();         out.setEnabled(false);         JTextField in = new JTextField("0");          container.add(out);         container.add(in);         container.add(new ButtonPanel(in, out));      }      public JFrame getFrame()     {         return frame;     } }       Problems Start down here:  public class ButtonPanel extends JPanel {     private JTextField in;     private JTextField out;      public ButtonPanel(JTextField input, JTextField output)     {         super(new GridLayout(1, 3));         this.createComponents();          this.in = input;         this.out = output;       }      public void createComponents()     {         JButton addition = new JButton("+");         JButton sub = new JButton("-");         JButton zero = new JButton("Z");           System.out.println(this.in.getText());         String s = this.out.getText();            add(addition);         add(sub);         add(zero);     }  }   Output:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at ButtonPanel.createComponents(ButtonPanel.java:33)     at ButtonPanel.<init>(ButtonPanel.java:12)     at GraphicCalculator.createComponents(GraphicCalculator.java:32)     at GraphicCalculator.run(GraphicCalculator.java:15)     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)     at java.awt.EventQueue.access$500(EventQueue.java:97)     at java.awt.EventQueue$3.run(EventQueue.java:709)     at java.awt.EventQueue$3.run(EventQueue.java:703)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)     at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)     at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have a list of exercises that I want to answer using LaTeX. Is it possible to format it like this?    Is it possible to jump right from a) to c) in LaTeX? I have looked at the exercise-package, however it did not seem to be able to solve the indentation. The exercise was pushed below the exercise name.

I would like to skip an \item in a sub-enumerate level. More specifically, I want the output to look something like:  1.       a)      b)      e)      f)      etc.  2.   However, when I use \addtocounter{enumi} (within the first \begin{enumerate} \end{enumerate} block obviously), it increases the outer counter and I get:  1.       a)      b)      c)      d)      etc. (no skips!)  3.   So I am looking for a way to specify which counter to increase. Greatly appreciate the help!


I have Ativ 9 Lite, on which I have installed the Ubuntu (Gnome) 14.04 daily. I after I complete the install and restart using the option offered at the end of the installation procedure, Ubuntu boots fine (from the SSD). However, if I now restart (or start from cold) it gives the error:  All boot options are tried. Press F4 key to recover with factory image using Recovery or any other keys for next boot loop iteration.  I have a EFI (with boot flag) and a / partition. The firmware boot order list is empty. I have set both Secure boot and Fast boot to disabled, and the firmware looks for both UEFI and CSM. How do I make the firmware find Ubuntu, as the installer also could? here is my boot-repair output:

I have a Samsung Chronos 7 laptop (NP770Z5E) pre-installed with Windows 8, and I wanted to install Ubuntu 13.04 alongside it, so I can dual boot. Here is what I've done:  Updated BIOS to lastest version (P04ABU) using Samsung Updater Reduced Win8 partition by half, I left the others untouched Created a bootable USB stick using  and a Ubuntu 13.04 64-bit image Disabled FastStartup on Win 8 Disabled Fast BIOS Mode Boot Mode changed to CSM OS  Update:  Also disabled Secure Boot (I had to disable it in order to select CSM OS)  After that I saved the BIOS settings, and shut down the computer. I plugged in the USB drive, powered the computer on, entered the BIOS and tried to change the boot order. Oddly, there was only one option in the boot order screen, the USB drive (HDD didn't show up in the boot priority screen). I ignored that and installed Ubuntu. I've created 3 partitions from the unused spaced left: a 8GB swap, a 100MB BIOS boot partition, and the rest to ext4, mounted in /. Boot loader installed on /sda. After a reboot, this message appears:  All boot options are tried. Press <F4> key to recover with factory image using Recovery or any other keys for next boot loop iteration.  So I went to the BIOS to change the boot device priority, and the list is empty! Enabling Secure Boot and Fast BIOS had no effect. I used the Ubuntu Live USB to check the disk contents, I can see the Ubuntu and Win 8 partitions. I've used Boot Repair (using the Recommended Repair), with no avail, the Boot Repair log is here:  Boot Repair showed me a message about the system being a"EFI system". I suppose that means that I should have checked out the advanced settings. I don't know how to proceed. I don't know if it's a good idea to "recover with factory image" since I have modified the original partitions. Maybe I need to experiment with Boot Repair's advanced settings.


I am a brit visiting family and friends in South Africa with my duel brit/south african GF, I have already been granted a 90 day Visitor visa which expires the end of July, unfortunately i haven't been able to do the rest of my itinerary yet and am wanting to leave South Africa and return until October (which is when the return flight to England is booked) I have read lots of conflicting information about going on holiday to Botswana or similar surrounding countries for a few weeks or having to return home to then come back again to obtain the new 90 day visa. I have also called the Embassy who informed me that you have to leave 90 days between each 90 day visa is granted which is crazy surely? She also wasn't really listening and never asked me my country of origin. Any help would  be appreciated as I am eager to return for another adventure with my GF. I do not intend on overstaying as we both live in England etc and have just taken a year travelling break both visiting Australia and now visiting South Africa. Thanks

How many times can an Australian leave and re-enter South Africa (90 days at a time without a visa) in a year, and do they need to be out of the country for a certain period of time before they re-enter?  I want to be in South Africa for as long as I can, however as an Australian without a visa I can only stay for 90 days at a time. What I would like to do is simply leave South Africa and go to another country in Africa for a few days, before returning with a new 90 day allowance.    Is this possible, or must I wait a certain period before re-entering South Africa/is there a limit to the amount of times I can do this in one year?